moment-with-locales.js 607 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239
  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. arrLen = arr.length;
  64. for (i = 0; i < arrLen; ++i) {
  65. res.push(fn(arr[i], i));
  66. }
  67. return res;
  68. }
  69. function extend(a, b) {
  70. for (var i in b) {
  71. if (hasOwnProp(b, i)) {
  72. a[i] = b[i];
  73. }
  74. }
  75. if (hasOwnProp(b, 'toString')) {
  76. a.toString = b.toString;
  77. }
  78. if (hasOwnProp(b, 'valueOf')) {
  79. a.valueOf = b.valueOf;
  80. }
  81. return a;
  82. }
  83. function createUTC(input, format, locale, strict) {
  84. return createLocalOrUTC(input, format, locale, strict, true).utc();
  85. }
  86. function defaultParsingFlags() {
  87. // We need to deep clone this object.
  88. return {
  89. empty: false,
  90. unusedTokens: [],
  91. unusedInput: [],
  92. overflow: -2,
  93. charsLeftOver: 0,
  94. nullInput: false,
  95. invalidEra: null,
  96. invalidMonth: null,
  97. invalidFormat: false,
  98. userInvalidated: false,
  99. iso: false,
  100. parsedDateParts: [],
  101. era: null,
  102. meridiem: null,
  103. rfc2822: false,
  104. weekdayMismatch: false,
  105. };
  106. }
  107. function getParsingFlags(m) {
  108. if (m._pf == null) {
  109. m._pf = defaultParsingFlags();
  110. }
  111. return m._pf;
  112. }
  113. var some;
  114. if (Array.prototype.some) {
  115. some = Array.prototype.some;
  116. } else {
  117. some = function (fun) {
  118. var t = Object(this),
  119. len = t.length >>> 0,
  120. i;
  121. for (i = 0; i < len; i++) {
  122. if (i in t && fun.call(this, t[i], i, t)) {
  123. return true;
  124. }
  125. }
  126. return false;
  127. };
  128. }
  129. function isValid(m) {
  130. if (m._isValid == null) {
  131. var flags = getParsingFlags(m),
  132. parsedParts = some.call(flags.parsedDateParts, function (i) {
  133. return i != null;
  134. }),
  135. isNowValid =
  136. !isNaN(m._d.getTime()) &&
  137. flags.overflow < 0 &&
  138. !flags.empty &&
  139. !flags.invalidEra &&
  140. !flags.invalidMonth &&
  141. !flags.invalidWeekday &&
  142. !flags.weekdayMismatch &&
  143. !flags.nullInput &&
  144. !flags.invalidFormat &&
  145. !flags.userInvalidated &&
  146. (!flags.meridiem || (flags.meridiem && parsedParts));
  147. if (m._strict) {
  148. isNowValid =
  149. isNowValid &&
  150. flags.charsLeftOver === 0 &&
  151. flags.unusedTokens.length === 0 &&
  152. flags.bigHour === undefined;
  153. }
  154. if (Object.isFrozen == null || !Object.isFrozen(m)) {
  155. m._isValid = isNowValid;
  156. } else {
  157. return isNowValid;
  158. }
  159. }
  160. return m._isValid;
  161. }
  162. function createInvalid(flags) {
  163. var m = createUTC(NaN);
  164. if (flags != null) {
  165. extend(getParsingFlags(m), flags);
  166. } else {
  167. getParsingFlags(m).userInvalidated = true;
  168. }
  169. return m;
  170. }
  171. // Plugins that add properties should also add the key here (null value),
  172. // so we can properly clone ourselves.
  173. var momentProperties = (hooks.momentProperties = []),
  174. updateInProgress = false;
  175. function copyConfig(to, from) {
  176. var i,
  177. prop,
  178. val,
  179. momentPropertiesLen = momentProperties.length;
  180. if (!isUndefined(from._isAMomentObject)) {
  181. to._isAMomentObject = from._isAMomentObject;
  182. }
  183. if (!isUndefined(from._i)) {
  184. to._i = from._i;
  185. }
  186. if (!isUndefined(from._f)) {
  187. to._f = from._f;
  188. }
  189. if (!isUndefined(from._l)) {
  190. to._l = from._l;
  191. }
  192. if (!isUndefined(from._strict)) {
  193. to._strict = from._strict;
  194. }
  195. if (!isUndefined(from._tzm)) {
  196. to._tzm = from._tzm;
  197. }
  198. if (!isUndefined(from._isUTC)) {
  199. to._isUTC = from._isUTC;
  200. }
  201. if (!isUndefined(from._offset)) {
  202. to._offset = from._offset;
  203. }
  204. if (!isUndefined(from._pf)) {
  205. to._pf = getParsingFlags(from);
  206. }
  207. if (!isUndefined(from._locale)) {
  208. to._locale = from._locale;
  209. }
  210. if (momentPropertiesLen > 0) {
  211. for (i = 0; i < momentPropertiesLen; i++) {
  212. prop = momentProperties[i];
  213. val = from[prop];
  214. if (!isUndefined(val)) {
  215. to[prop] = val;
  216. }
  217. }
  218. }
  219. return to;
  220. }
  221. // Moment prototype object
  222. function Moment(config) {
  223. copyConfig(this, config);
  224. this._d = new Date(config._d != null ? config._d.getTime() : NaN);
  225. if (!this.isValid()) {
  226. this._d = new Date(NaN);
  227. }
  228. // Prevent infinite loop in case updateOffset creates new moment
  229. // objects.
  230. if (updateInProgress === false) {
  231. updateInProgress = true;
  232. hooks.updateOffset(this);
  233. updateInProgress = false;
  234. }
  235. }
  236. function isMoment(obj) {
  237. return (
  238. obj instanceof Moment || (obj != null && obj._isAMomentObject != null)
  239. );
  240. }
  241. function warn(msg) {
  242. if (
  243. hooks.suppressDeprecationWarnings === false &&
  244. typeof console !== 'undefined' &&
  245. console.warn
  246. ) {
  247. console.warn('Deprecation warning: ' + msg);
  248. }
  249. }
  250. function deprecate(msg, fn) {
  251. var firstTime = true;
  252. return extend(function () {
  253. if (hooks.deprecationHandler != null) {
  254. hooks.deprecationHandler(null, msg);
  255. }
  256. if (firstTime) {
  257. var args = [],
  258. arg,
  259. i,
  260. key,
  261. argLen = arguments.length;
  262. for (i = 0; i < argLen; i++) {
  263. arg = '';
  264. if (typeof arguments[i] === 'object') {
  265. arg += '\n[' + i + '] ';
  266. for (key in arguments[0]) {
  267. if (hasOwnProp(arguments[0], key)) {
  268. arg += key + ': ' + arguments[0][key] + ', ';
  269. }
  270. }
  271. arg = arg.slice(0, -2); // Remove trailing comma and space
  272. } else {
  273. arg = arguments[i];
  274. }
  275. args.push(arg);
  276. }
  277. warn(
  278. msg +
  279. '\nArguments: ' +
  280. Array.prototype.slice.call(args).join('') +
  281. '\n' +
  282. new Error().stack
  283. );
  284. firstTime = false;
  285. }
  286. return fn.apply(this, arguments);
  287. }, fn);
  288. }
  289. var deprecations = {};
  290. function deprecateSimple(name, msg) {
  291. if (hooks.deprecationHandler != null) {
  292. hooks.deprecationHandler(name, msg);
  293. }
  294. if (!deprecations[name]) {
  295. warn(msg);
  296. deprecations[name] = true;
  297. }
  298. }
  299. hooks.suppressDeprecationWarnings = false;
  300. hooks.deprecationHandler = null;
  301. function isFunction(input) {
  302. return (
  303. (typeof Function !== 'undefined' && input instanceof Function) ||
  304. Object.prototype.toString.call(input) === '[object Function]'
  305. );
  306. }
  307. function set(config) {
  308. var prop, i;
  309. for (i in config) {
  310. if (hasOwnProp(config, i)) {
  311. prop = config[i];
  312. if (isFunction(prop)) {
  313. this[i] = prop;
  314. } else {
  315. this['_' + i] = prop;
  316. }
  317. }
  318. }
  319. this._config = config;
  320. // Lenient ordinal parsing accepts just a number in addition to
  321. // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
  322. // TODO: Remove "ordinalParse" fallback in next major release.
  323. this._dayOfMonthOrdinalParseLenient = new RegExp(
  324. (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +
  325. '|' +
  326. /\d{1,2}/.source
  327. );
  328. }
  329. function mergeConfigs(parentConfig, childConfig) {
  330. var res = extend({}, parentConfig),
  331. prop;
  332. for (prop in childConfig) {
  333. if (hasOwnProp(childConfig, prop)) {
  334. if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
  335. res[prop] = {};
  336. extend(res[prop], parentConfig[prop]);
  337. extend(res[prop], childConfig[prop]);
  338. } else if (childConfig[prop] != null) {
  339. res[prop] = childConfig[prop];
  340. } else {
  341. delete res[prop];
  342. }
  343. }
  344. }
  345. for (prop in parentConfig) {
  346. if (
  347. hasOwnProp(parentConfig, prop) &&
  348. !hasOwnProp(childConfig, prop) &&
  349. isObject(parentConfig[prop])
  350. ) {
  351. // make sure changes to properties don't modify parent config
  352. res[prop] = extend({}, res[prop]);
  353. }
  354. }
  355. return res;
  356. }
  357. function Locale(config) {
  358. if (config != null) {
  359. this.set(config);
  360. }
  361. }
  362. var keys;
  363. if (Object.keys) {
  364. keys = Object.keys;
  365. } else {
  366. keys = function (obj) {
  367. var i,
  368. res = [];
  369. for (i in obj) {
  370. if (hasOwnProp(obj, i)) {
  371. res.push(i);
  372. }
  373. }
  374. return res;
  375. };
  376. }
  377. var defaultCalendar = {
  378. sameDay: '[Today at] LT',
  379. nextDay: '[Tomorrow at] LT',
  380. nextWeek: 'dddd [at] LT',
  381. lastDay: '[Yesterday at] LT',
  382. lastWeek: '[Last] dddd [at] LT',
  383. sameElse: 'L',
  384. };
  385. function calendar(key, mom, now) {
  386. var output = this._calendar[key] || this._calendar['sameElse'];
  387. return isFunction(output) ? output.call(mom, now) : output;
  388. }
  389. function zeroFill(number, targetLength, forceSign) {
  390. var absNumber = '' + Math.abs(number),
  391. zerosToFill = targetLength - absNumber.length,
  392. sign = number >= 0;
  393. return (
  394. (sign ? (forceSign ? '+' : '') : '-') +
  395. Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) +
  396. absNumber
  397. );
  398. }
  399. var formattingTokens =
  400. /(\[[^\[]*\])|(\\)?([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,
  401. localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
  402. formatFunctions = {},
  403. formatTokenFunctions = {};
  404. // token: 'M'
  405. // padded: ['MM', 2]
  406. // ordinal: 'Mo'
  407. // callback: function () { this.month() + 1 }
  408. function addFormatToken(token, padded, ordinal, callback) {
  409. var func = callback;
  410. if (typeof callback === 'string') {
  411. func = function () {
  412. return this[callback]();
  413. };
  414. }
  415. if (token) {
  416. formatTokenFunctions[token] = func;
  417. }
  418. if (padded) {
  419. formatTokenFunctions[padded[0]] = function () {
  420. return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
  421. };
  422. }
  423. if (ordinal) {
  424. formatTokenFunctions[ordinal] = function () {
  425. return this.localeData().ordinal(
  426. func.apply(this, arguments),
  427. token
  428. );
  429. };
  430. }
  431. }
  432. function removeFormattingTokens(input) {
  433. if (input.match(/\[[\s\S]/)) {
  434. return input.replace(/^\[|\]$/g, '');
  435. }
  436. return input.replace(/\\/g, '');
  437. }
  438. function makeFormatFunction(format) {
  439. var array = format.match(formattingTokens),
  440. i,
  441. length;
  442. for (i = 0, length = array.length; i < length; i++) {
  443. if (formatTokenFunctions[array[i]]) {
  444. array[i] = formatTokenFunctions[array[i]];
  445. } else {
  446. array[i] = removeFormattingTokens(array[i]);
  447. }
  448. }
  449. return function (mom) {
  450. var output = '',
  451. i;
  452. for (i = 0; i < length; i++) {
  453. output += isFunction(array[i])
  454. ? array[i].call(mom, format)
  455. : array[i];
  456. }
  457. return output;
  458. };
  459. }
  460. // format date using native date object
  461. function formatMoment(m, format) {
  462. if (!m.isValid()) {
  463. return m.localeData().invalidDate();
  464. }
  465. format = expandFormat(format, m.localeData());
  466. formatFunctions[format] =
  467. formatFunctions[format] || makeFormatFunction(format);
  468. return formatFunctions[format](m);
  469. }
  470. function expandFormat(format, locale) {
  471. var i = 5;
  472. function replaceLongDateFormatTokens(input) {
  473. return locale.longDateFormat(input) || input;
  474. }
  475. localFormattingTokens.lastIndex = 0;
  476. while (i >= 0 && localFormattingTokens.test(format)) {
  477. format = format.replace(
  478. localFormattingTokens,
  479. replaceLongDateFormatTokens
  480. );
  481. localFormattingTokens.lastIndex = 0;
  482. i -= 1;
  483. }
  484. return format;
  485. }
  486. var defaultLongDateFormat = {
  487. LTS: 'h:mm:ss A',
  488. LT: 'h:mm A',
  489. L: 'MM/DD/YYYY',
  490. LL: 'MMMM D, YYYY',
  491. LLL: 'MMMM D, YYYY h:mm A',
  492. LLLL: 'dddd, MMMM D, YYYY h:mm A',
  493. };
  494. function longDateFormat(key) {
  495. var format = this._longDateFormat[key],
  496. formatUpper = this._longDateFormat[key.toUpperCase()];
  497. if (format || !formatUpper) {
  498. return format;
  499. }
  500. this._longDateFormat[key] = formatUpper
  501. .match(formattingTokens)
  502. .map(function (tok) {
  503. if (
  504. tok === 'MMMM' ||
  505. tok === 'MM' ||
  506. tok === 'DD' ||
  507. tok === 'dddd'
  508. ) {
  509. return tok.slice(1);
  510. }
  511. return tok;
  512. })
  513. .join('');
  514. return this._longDateFormat[key];
  515. }
  516. var defaultInvalidDate = 'Invalid date';
  517. function invalidDate() {
  518. return this._invalidDate;
  519. }
  520. var defaultOrdinal = '%d',
  521. defaultDayOfMonthOrdinalParse = /\d{1,2}/;
  522. function ordinal(number) {
  523. return this._ordinal.replace('%d', number);
  524. }
  525. var defaultRelativeTime = {
  526. future: 'in %s',
  527. past: '%s ago',
  528. s: 'a few seconds',
  529. ss: '%d seconds',
  530. m: 'a minute',
  531. mm: '%d minutes',
  532. h: 'an hour',
  533. hh: '%d hours',
  534. d: 'a day',
  535. dd: '%d days',
  536. w: 'a week',
  537. ww: '%d weeks',
  538. M: 'a month',
  539. MM: '%d months',
  540. y: 'a year',
  541. yy: '%d years',
  542. };
  543. function relativeTime(number, withoutSuffix, string, isFuture) {
  544. var output = this._relativeTime[string];
  545. return isFunction(output)
  546. ? output(number, withoutSuffix, string, isFuture)
  547. : output.replace(/%d/i, number);
  548. }
  549. function pastFuture(diff, output) {
  550. var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
  551. return isFunction(format) ? format(output) : format.replace(/%s/i, output);
  552. }
  553. var aliases = {};
  554. function addUnitAlias(unit, shorthand) {
  555. var lowerCase = unit.toLowerCase();
  556. aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
  557. }
  558. function normalizeUnits(units) {
  559. return typeof units === 'string'
  560. ? aliases[units] || aliases[units.toLowerCase()]
  561. : undefined;
  562. }
  563. function normalizeObjectUnits(inputObject) {
  564. var normalizedInput = {},
  565. normalizedProp,
  566. prop;
  567. for (prop in inputObject) {
  568. if (hasOwnProp(inputObject, prop)) {
  569. normalizedProp = normalizeUnits(prop);
  570. if (normalizedProp) {
  571. normalizedInput[normalizedProp] = inputObject[prop];
  572. }
  573. }
  574. }
  575. return normalizedInput;
  576. }
  577. var priorities = {};
  578. function addUnitPriority(unit, priority) {
  579. priorities[unit] = priority;
  580. }
  581. function getPrioritizedUnits(unitsObj) {
  582. var units = [],
  583. u;
  584. for (u in unitsObj) {
  585. if (hasOwnProp(unitsObj, u)) {
  586. units.push({ unit: u, priority: priorities[u] });
  587. }
  588. }
  589. units.sort(function (a, b) {
  590. return a.priority - b.priority;
  591. });
  592. return units;
  593. }
  594. function isLeapYear(year) {
  595. return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
  596. }
  597. function absFloor(number) {
  598. if (number < 0) {
  599. // -0 -> 0
  600. return Math.ceil(number) || 0;
  601. } else {
  602. return Math.floor(number);
  603. }
  604. }
  605. function toInt(argumentForCoercion) {
  606. var coercedNumber = +argumentForCoercion,
  607. value = 0;
  608. if (coercedNumber !== 0 && isFinite(coercedNumber)) {
  609. value = absFloor(coercedNumber);
  610. }
  611. return value;
  612. }
  613. function makeGetSet(unit, keepTime) {
  614. return function (value) {
  615. if (value != null) {
  616. set$1(this, unit, value);
  617. hooks.updateOffset(this, keepTime);
  618. return this;
  619. } else {
  620. return get(this, unit);
  621. }
  622. };
  623. }
  624. function get(mom, unit) {
  625. return mom.isValid()
  626. ? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]()
  627. : NaN;
  628. }
  629. function set$1(mom, unit, value) {
  630. if (mom.isValid() && !isNaN(value)) {
  631. if (
  632. unit === 'FullYear' &&
  633. isLeapYear(mom.year()) &&
  634. mom.month() === 1 &&
  635. mom.date() === 29
  636. ) {
  637. value = toInt(value);
  638. mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](
  639. value,
  640. mom.month(),
  641. daysInMonth(value, mom.month())
  642. );
  643. } else {
  644. mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
  645. }
  646. }
  647. }
  648. // MOMENTS
  649. function stringGet(units) {
  650. units = normalizeUnits(units);
  651. if (isFunction(this[units])) {
  652. return this[units]();
  653. }
  654. return this;
  655. }
  656. function stringSet(units, value) {
  657. if (typeof units === 'object') {
  658. units = normalizeObjectUnits(units);
  659. var prioritized = getPrioritizedUnits(units),
  660. i,
  661. prioritizedLen = prioritized.length;
  662. for (i = 0; i < prioritizedLen; i++) {
  663. this[prioritized[i].unit](units[prioritized[i].unit]);
  664. }
  665. } else {
  666. units = normalizeUnits(units);
  667. if (isFunction(this[units])) {
  668. return this[units](value);
  669. }
  670. }
  671. return this;
  672. }
  673. var match1 = /\d/, // 0 - 9
  674. match2 = /\d\d/, // 00 - 99
  675. match3 = /\d{3}/, // 000 - 999
  676. match4 = /\d{4}/, // 0000 - 9999
  677. match6 = /[+-]?\d{6}/, // -999999 - 999999
  678. match1to2 = /\d\d?/, // 0 - 99
  679. match3to4 = /\d\d\d\d?/, // 999 - 9999
  680. match5to6 = /\d\d\d\d\d\d?/, // 99999 - 999999
  681. match1to3 = /\d{1,3}/, // 0 - 999
  682. match1to4 = /\d{1,4}/, // 0 - 9999
  683. match1to6 = /[+-]?\d{1,6}/, // -999999 - 999999
  684. matchUnsigned = /\d+/, // 0 - inf
  685. matchSigned = /[+-]?\d+/, // -inf - inf
  686. matchOffset = /Z|[+-]\d\d:?\d\d/gi, // +00:00 -00:00 +0000 -0000 or Z
  687. matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, // +00 -00 +00:00 -00:00 +0000 -0000 or Z
  688. matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123
  689. // any word (or two) characters or numbers including two/three word month in arabic.
  690. // includes scottish gaelic two word and hyphenated months
  691. matchWord =
  692. /[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,
  693. regexes;
  694. regexes = {};
  695. function addRegexToken(token, regex, strictRegex) {
  696. regexes[token] = isFunction(regex)
  697. ? regex
  698. : function (isStrict, localeData) {
  699. return isStrict && strictRegex ? strictRegex : regex;
  700. };
  701. }
  702. function getParseRegexForToken(token, config) {
  703. if (!hasOwnProp(regexes, token)) {
  704. return new RegExp(unescapeFormat(token));
  705. }
  706. return regexes[token](config._strict, config._locale);
  707. }
  708. // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
  709. function unescapeFormat(s) {
  710. return regexEscape(
  711. s
  712. .replace('\\', '')
  713. .replace(
  714. /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
  715. function (matched, p1, p2, p3, p4) {
  716. return p1 || p2 || p3 || p4;
  717. }
  718. )
  719. );
  720. }
  721. function regexEscape(s) {
  722. return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
  723. }
  724. var tokens = {};
  725. function addParseToken(token, callback) {
  726. var i,
  727. func = callback,
  728. tokenLen;
  729. if (typeof token === 'string') {
  730. token = [token];
  731. }
  732. if (isNumber(callback)) {
  733. func = function (input, array) {
  734. array[callback] = toInt(input);
  735. };
  736. }
  737. tokenLen = token.length;
  738. for (i = 0; i < tokenLen; i++) {
  739. tokens[token[i]] = func;
  740. }
  741. }
  742. function addWeekParseToken(token, callback) {
  743. addParseToken(token, function (input, array, config, token) {
  744. config._w = config._w || {};
  745. callback(input, config._w, config, token);
  746. });
  747. }
  748. function addTimeToArrayFromToken(token, input, config) {
  749. if (input != null && hasOwnProp(tokens, token)) {
  750. tokens[token](input, config._a, config, token);
  751. }
  752. }
  753. var YEAR = 0,
  754. MONTH = 1,
  755. DATE = 2,
  756. HOUR = 3,
  757. MINUTE = 4,
  758. SECOND = 5,
  759. MILLISECOND = 6,
  760. WEEK = 7,
  761. WEEKDAY = 8;
  762. function mod(n, x) {
  763. return ((n % x) + x) % x;
  764. }
  765. var indexOf;
  766. if (Array.prototype.indexOf) {
  767. indexOf = Array.prototype.indexOf;
  768. } else {
  769. indexOf = function (o) {
  770. // I know
  771. var i;
  772. for (i = 0; i < this.length; ++i) {
  773. if (this[i] === o) {
  774. return i;
  775. }
  776. }
  777. return -1;
  778. };
  779. }
  780. function daysInMonth(year, month) {
  781. if (isNaN(year) || isNaN(month)) {
  782. return NaN;
  783. }
  784. var modMonth = mod(month, 12);
  785. year += (month - modMonth) / 12;
  786. return modMonth === 1
  787. ? isLeapYear(year)
  788. ? 29
  789. : 28
  790. : 31 - ((modMonth % 7) % 2);
  791. }
  792. // FORMATTING
  793. addFormatToken('M', ['MM', 2], 'Mo', function () {
  794. return this.month() + 1;
  795. });
  796. addFormatToken('MMM', 0, 0, function (format) {
  797. return this.localeData().monthsShort(this, format);
  798. });
  799. addFormatToken('MMMM', 0, 0, function (format) {
  800. return this.localeData().months(this, format);
  801. });
  802. // ALIASES
  803. addUnitAlias('month', 'M');
  804. // PRIORITY
  805. addUnitPriority('month', 8);
  806. // PARSING
  807. addRegexToken('M', match1to2);
  808. addRegexToken('MM', match1to2, match2);
  809. addRegexToken('MMM', function (isStrict, locale) {
  810. return locale.monthsShortRegex(isStrict);
  811. });
  812. addRegexToken('MMMM', function (isStrict, locale) {
  813. return locale.monthsRegex(isStrict);
  814. });
  815. addParseToken(['M', 'MM'], function (input, array) {
  816. array[MONTH] = toInt(input) - 1;
  817. });
  818. addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
  819. var month = config._locale.monthsParse(input, token, config._strict);
  820. // if we didn't find a month name, mark the date as invalid.
  821. if (month != null) {
  822. array[MONTH] = month;
  823. } else {
  824. getParsingFlags(config).invalidMonth = input;
  825. }
  826. });
  827. // LOCALES
  828. var defaultLocaleMonths =
  829. 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  830. '_'
  831. ),
  832. defaultLocaleMonthsShort =
  833. 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  834. MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
  835. defaultMonthsShortRegex = matchWord,
  836. defaultMonthsRegex = matchWord;
  837. function localeMonths(m, format) {
  838. if (!m) {
  839. return isArray(this._months)
  840. ? this._months
  841. : this._months['standalone'];
  842. }
  843. return isArray(this._months)
  844. ? this._months[m.month()]
  845. : this._months[
  846. (this._months.isFormat || MONTHS_IN_FORMAT).test(format)
  847. ? 'format'
  848. : 'standalone'
  849. ][m.month()];
  850. }
  851. function localeMonthsShort(m, format) {
  852. if (!m) {
  853. return isArray(this._monthsShort)
  854. ? this._monthsShort
  855. : this._monthsShort['standalone'];
  856. }
  857. return isArray(this._monthsShort)
  858. ? this._monthsShort[m.month()]
  859. : this._monthsShort[
  860. MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'
  861. ][m.month()];
  862. }
  863. function handleStrictParse(monthName, format, strict) {
  864. var i,
  865. ii,
  866. mom,
  867. llc = monthName.toLocaleLowerCase();
  868. if (!this._monthsParse) {
  869. // this is not used
  870. this._monthsParse = [];
  871. this._longMonthsParse = [];
  872. this._shortMonthsParse = [];
  873. for (i = 0; i < 12; ++i) {
  874. mom = createUTC([2000, i]);
  875. this._shortMonthsParse[i] = this.monthsShort(
  876. mom,
  877. ''
  878. ).toLocaleLowerCase();
  879. this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();
  880. }
  881. }
  882. if (strict) {
  883. if (format === 'MMM') {
  884. ii = indexOf.call(this._shortMonthsParse, llc);
  885. return ii !== -1 ? ii : null;
  886. } else {
  887. ii = indexOf.call(this._longMonthsParse, llc);
  888. return ii !== -1 ? ii : null;
  889. }
  890. } else {
  891. if (format === 'MMM') {
  892. ii = indexOf.call(this._shortMonthsParse, llc);
  893. if (ii !== -1) {
  894. return ii;
  895. }
  896. ii = indexOf.call(this._longMonthsParse, llc);
  897. return ii !== -1 ? ii : null;
  898. } else {
  899. ii = indexOf.call(this._longMonthsParse, llc);
  900. if (ii !== -1) {
  901. return ii;
  902. }
  903. ii = indexOf.call(this._shortMonthsParse, llc);
  904. return ii !== -1 ? ii : null;
  905. }
  906. }
  907. }
  908. function localeMonthsParse(monthName, format, strict) {
  909. var i, mom, regex;
  910. if (this._monthsParseExact) {
  911. return handleStrictParse.call(this, monthName, format, strict);
  912. }
  913. if (!this._monthsParse) {
  914. this._monthsParse = [];
  915. this._longMonthsParse = [];
  916. this._shortMonthsParse = [];
  917. }
  918. // TODO: add sorting
  919. // Sorting makes sure if one month (or abbr) is a prefix of another
  920. // see sorting in computeMonthsParse
  921. for (i = 0; i < 12; i++) {
  922. // make the regex if we don't have it already
  923. mom = createUTC([2000, i]);
  924. if (strict && !this._longMonthsParse[i]) {
  925. this._longMonthsParse[i] = new RegExp(
  926. '^' + this.months(mom, '').replace('.', '') + '$',
  927. 'i'
  928. );
  929. this._shortMonthsParse[i] = new RegExp(
  930. '^' + this.monthsShort(mom, '').replace('.', '') + '$',
  931. 'i'
  932. );
  933. }
  934. if (!strict && !this._monthsParse[i]) {
  935. regex =
  936. '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
  937. this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
  938. }
  939. // test the regex
  940. if (
  941. strict &&
  942. format === 'MMMM' &&
  943. this._longMonthsParse[i].test(monthName)
  944. ) {
  945. return i;
  946. } else if (
  947. strict &&
  948. format === 'MMM' &&
  949. this._shortMonthsParse[i].test(monthName)
  950. ) {
  951. return i;
  952. } else if (!strict && this._monthsParse[i].test(monthName)) {
  953. return i;
  954. }
  955. }
  956. }
  957. // MOMENTS
  958. function setMonth(mom, value) {
  959. var dayOfMonth;
  960. if (!mom.isValid()) {
  961. // No op
  962. return mom;
  963. }
  964. if (typeof value === 'string') {
  965. if (/^\d+$/.test(value)) {
  966. value = toInt(value);
  967. } else {
  968. value = mom.localeData().monthsParse(value);
  969. // TODO: Another silent failure?
  970. if (!isNumber(value)) {
  971. return mom;
  972. }
  973. }
  974. }
  975. dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
  976. mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
  977. return mom;
  978. }
  979. function getSetMonth(value) {
  980. if (value != null) {
  981. setMonth(this, value);
  982. hooks.updateOffset(this, true);
  983. return this;
  984. } else {
  985. return get(this, 'Month');
  986. }
  987. }
  988. function getDaysInMonth() {
  989. return daysInMonth(this.year(), this.month());
  990. }
  991. function monthsShortRegex(isStrict) {
  992. if (this._monthsParseExact) {
  993. if (!hasOwnProp(this, '_monthsRegex')) {
  994. computeMonthsParse.call(this);
  995. }
  996. if (isStrict) {
  997. return this._monthsShortStrictRegex;
  998. } else {
  999. return this._monthsShortRegex;
  1000. }
  1001. } else {
  1002. if (!hasOwnProp(this, '_monthsShortRegex')) {
  1003. this._monthsShortRegex = defaultMonthsShortRegex;
  1004. }
  1005. return this._monthsShortStrictRegex && isStrict
  1006. ? this._monthsShortStrictRegex
  1007. : this._monthsShortRegex;
  1008. }
  1009. }
  1010. function monthsRegex(isStrict) {
  1011. if (this._monthsParseExact) {
  1012. if (!hasOwnProp(this, '_monthsRegex')) {
  1013. computeMonthsParse.call(this);
  1014. }
  1015. if (isStrict) {
  1016. return this._monthsStrictRegex;
  1017. } else {
  1018. return this._monthsRegex;
  1019. }
  1020. } else {
  1021. if (!hasOwnProp(this, '_monthsRegex')) {
  1022. this._monthsRegex = defaultMonthsRegex;
  1023. }
  1024. return this._monthsStrictRegex && isStrict
  1025. ? this._monthsStrictRegex
  1026. : this._monthsRegex;
  1027. }
  1028. }
  1029. function computeMonthsParse() {
  1030. function cmpLenRev(a, b) {
  1031. return b.length - a.length;
  1032. }
  1033. var shortPieces = [],
  1034. longPieces = [],
  1035. mixedPieces = [],
  1036. i,
  1037. mom;
  1038. for (i = 0; i < 12; i++) {
  1039. // make the regex if we don't have it already
  1040. mom = createUTC([2000, i]);
  1041. shortPieces.push(this.monthsShort(mom, ''));
  1042. longPieces.push(this.months(mom, ''));
  1043. mixedPieces.push(this.months(mom, ''));
  1044. mixedPieces.push(this.monthsShort(mom, ''));
  1045. }
  1046. // Sorting makes sure if one month (or abbr) is a prefix of another it
  1047. // will match the longer piece.
  1048. shortPieces.sort(cmpLenRev);
  1049. longPieces.sort(cmpLenRev);
  1050. mixedPieces.sort(cmpLenRev);
  1051. for (i = 0; i < 12; i++) {
  1052. shortPieces[i] = regexEscape(shortPieces[i]);
  1053. longPieces[i] = regexEscape(longPieces[i]);
  1054. }
  1055. for (i = 0; i < 24; i++) {
  1056. mixedPieces[i] = regexEscape(mixedPieces[i]);
  1057. }
  1058. this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  1059. this._monthsShortRegex = this._monthsRegex;
  1060. this._monthsStrictRegex = new RegExp(
  1061. '^(' + longPieces.join('|') + ')',
  1062. 'i'
  1063. );
  1064. this._monthsShortStrictRegex = new RegExp(
  1065. '^(' + shortPieces.join('|') + ')',
  1066. 'i'
  1067. );
  1068. }
  1069. // FORMATTING
  1070. addFormatToken('Y', 0, 0, function () {
  1071. var y = this.year();
  1072. return y <= 9999 ? zeroFill(y, 4) : '+' + y;
  1073. });
  1074. addFormatToken(0, ['YY', 2], 0, function () {
  1075. return this.year() % 100;
  1076. });
  1077. addFormatToken(0, ['YYYY', 4], 0, 'year');
  1078. addFormatToken(0, ['YYYYY', 5], 0, 'year');
  1079. addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
  1080. // ALIASES
  1081. addUnitAlias('year', 'y');
  1082. // PRIORITIES
  1083. addUnitPriority('year', 1);
  1084. // PARSING
  1085. addRegexToken('Y', matchSigned);
  1086. addRegexToken('YY', match1to2, match2);
  1087. addRegexToken('YYYY', match1to4, match4);
  1088. addRegexToken('YYYYY', match1to6, match6);
  1089. addRegexToken('YYYYYY', match1to6, match6);
  1090. addParseToken(['YYYYY', 'YYYYYY'], YEAR);
  1091. addParseToken('YYYY', function (input, array) {
  1092. array[YEAR] =
  1093. input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
  1094. });
  1095. addParseToken('YY', function (input, array) {
  1096. array[YEAR] = hooks.parseTwoDigitYear(input);
  1097. });
  1098. addParseToken('Y', function (input, array) {
  1099. array[YEAR] = parseInt(input, 10);
  1100. });
  1101. // HELPERS
  1102. function daysInYear(year) {
  1103. return isLeapYear(year) ? 366 : 365;
  1104. }
  1105. // HOOKS
  1106. hooks.parseTwoDigitYear = function (input) {
  1107. return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
  1108. };
  1109. // MOMENTS
  1110. var getSetYear = makeGetSet('FullYear', true);
  1111. function getIsLeapYear() {
  1112. return isLeapYear(this.year());
  1113. }
  1114. function createDate(y, m, d, h, M, s, ms) {
  1115. // can't just apply() to create a date:
  1116. // https://stackoverflow.com/q/181348
  1117. var date;
  1118. // the date constructor remaps years 0-99 to 1900-1999
  1119. if (y < 100 && y >= 0) {
  1120. // preserve leap years using a full 400 year cycle, then reset
  1121. date = new Date(y + 400, m, d, h, M, s, ms);
  1122. if (isFinite(date.getFullYear())) {
  1123. date.setFullYear(y);
  1124. }
  1125. } else {
  1126. date = new Date(y, m, d, h, M, s, ms);
  1127. }
  1128. return date;
  1129. }
  1130. function createUTCDate(y) {
  1131. var date, args;
  1132. // the Date.UTC function remaps years 0-99 to 1900-1999
  1133. if (y < 100 && y >= 0) {
  1134. args = Array.prototype.slice.call(arguments);
  1135. // preserve leap years using a full 400 year cycle, then reset
  1136. args[0] = y + 400;
  1137. date = new Date(Date.UTC.apply(null, args));
  1138. if (isFinite(date.getUTCFullYear())) {
  1139. date.setUTCFullYear(y);
  1140. }
  1141. } else {
  1142. date = new Date(Date.UTC.apply(null, arguments));
  1143. }
  1144. return date;
  1145. }
  1146. // start-of-first-week - start-of-year
  1147. function firstWeekOffset(year, dow, doy) {
  1148. var // first-week day -- which january is always in the first week (4 for iso, 1 for other)
  1149. fwd = 7 + dow - doy,
  1150. // first-week day local weekday -- which local weekday is fwd
  1151. fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
  1152. return -fwdlw + fwd - 1;
  1153. }
  1154. // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
  1155. function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
  1156. var localWeekday = (7 + weekday - dow) % 7,
  1157. weekOffset = firstWeekOffset(year, dow, doy),
  1158. dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,
  1159. resYear,
  1160. resDayOfYear;
  1161. if (dayOfYear <= 0) {
  1162. resYear = year - 1;
  1163. resDayOfYear = daysInYear(resYear) + dayOfYear;
  1164. } else if (dayOfYear > daysInYear(year)) {
  1165. resYear = year + 1;
  1166. resDayOfYear = dayOfYear - daysInYear(year);
  1167. } else {
  1168. resYear = year;
  1169. resDayOfYear = dayOfYear;
  1170. }
  1171. return {
  1172. year: resYear,
  1173. dayOfYear: resDayOfYear,
  1174. };
  1175. }
  1176. function weekOfYear(mom, dow, doy) {
  1177. var weekOffset = firstWeekOffset(mom.year(), dow, doy),
  1178. week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,
  1179. resWeek,
  1180. resYear;
  1181. if (week < 1) {
  1182. resYear = mom.year() - 1;
  1183. resWeek = week + weeksInYear(resYear, dow, doy);
  1184. } else if (week > weeksInYear(mom.year(), dow, doy)) {
  1185. resWeek = week - weeksInYear(mom.year(), dow, doy);
  1186. resYear = mom.year() + 1;
  1187. } else {
  1188. resYear = mom.year();
  1189. resWeek = week;
  1190. }
  1191. return {
  1192. week: resWeek,
  1193. year: resYear,
  1194. };
  1195. }
  1196. function weeksInYear(year, dow, doy) {
  1197. var weekOffset = firstWeekOffset(year, dow, doy),
  1198. weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
  1199. return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
  1200. }
  1201. // FORMATTING
  1202. addFormatToken('w', ['ww', 2], 'wo', 'week');
  1203. addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
  1204. // ALIASES
  1205. addUnitAlias('week', 'w');
  1206. addUnitAlias('isoWeek', 'W');
  1207. // PRIORITIES
  1208. addUnitPriority('week', 5);
  1209. addUnitPriority('isoWeek', 5);
  1210. // PARSING
  1211. addRegexToken('w', match1to2);
  1212. addRegexToken('ww', match1to2, match2);
  1213. addRegexToken('W', match1to2);
  1214. addRegexToken('WW', match1to2, match2);
  1215. addWeekParseToken(
  1216. ['w', 'ww', 'W', 'WW'],
  1217. function (input, week, config, token) {
  1218. week[token.substr(0, 1)] = toInt(input);
  1219. }
  1220. );
  1221. // HELPERS
  1222. // LOCALES
  1223. function localeWeek(mom) {
  1224. return weekOfYear(mom, this._week.dow, this._week.doy).week;
  1225. }
  1226. var defaultLocaleWeek = {
  1227. dow: 0, // Sunday is the first day of the week.
  1228. doy: 6, // The week that contains Jan 6th is the first week of the year.
  1229. };
  1230. function localeFirstDayOfWeek() {
  1231. return this._week.dow;
  1232. }
  1233. function localeFirstDayOfYear() {
  1234. return this._week.doy;
  1235. }
  1236. // MOMENTS
  1237. function getSetWeek(input) {
  1238. var week = this.localeData().week(this);
  1239. return input == null ? week : this.add((input - week) * 7, 'd');
  1240. }
  1241. function getSetISOWeek(input) {
  1242. var week = weekOfYear(this, 1, 4).week;
  1243. return input == null ? week : this.add((input - week) * 7, 'd');
  1244. }
  1245. // FORMATTING
  1246. addFormatToken('d', 0, 'do', 'day');
  1247. addFormatToken('dd', 0, 0, function (format) {
  1248. return this.localeData().weekdaysMin(this, format);
  1249. });
  1250. addFormatToken('ddd', 0, 0, function (format) {
  1251. return this.localeData().weekdaysShort(this, format);
  1252. });
  1253. addFormatToken('dddd', 0, 0, function (format) {
  1254. return this.localeData().weekdays(this, format);
  1255. });
  1256. addFormatToken('e', 0, 0, 'weekday');
  1257. addFormatToken('E', 0, 0, 'isoWeekday');
  1258. // ALIASES
  1259. addUnitAlias('day', 'd');
  1260. addUnitAlias('weekday', 'e');
  1261. addUnitAlias('isoWeekday', 'E');
  1262. // PRIORITY
  1263. addUnitPriority('day', 11);
  1264. addUnitPriority('weekday', 11);
  1265. addUnitPriority('isoWeekday', 11);
  1266. // PARSING
  1267. addRegexToken('d', match1to2);
  1268. addRegexToken('e', match1to2);
  1269. addRegexToken('E', match1to2);
  1270. addRegexToken('dd', function (isStrict, locale) {
  1271. return locale.weekdaysMinRegex(isStrict);
  1272. });
  1273. addRegexToken('ddd', function (isStrict, locale) {
  1274. return locale.weekdaysShortRegex(isStrict);
  1275. });
  1276. addRegexToken('dddd', function (isStrict, locale) {
  1277. return locale.weekdaysRegex(isStrict);
  1278. });
  1279. addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {
  1280. var weekday = config._locale.weekdaysParse(input, token, config._strict);
  1281. // if we didn't get a weekday name, mark the date as invalid
  1282. if (weekday != null) {
  1283. week.d = weekday;
  1284. } else {
  1285. getParsingFlags(config).invalidWeekday = input;
  1286. }
  1287. });
  1288. addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {
  1289. week[token] = toInt(input);
  1290. });
  1291. // HELPERS
  1292. function parseWeekday(input, locale) {
  1293. if (typeof input !== 'string') {
  1294. return input;
  1295. }
  1296. if (!isNaN(input)) {
  1297. return parseInt(input, 10);
  1298. }
  1299. input = locale.weekdaysParse(input);
  1300. if (typeof input === 'number') {
  1301. return input;
  1302. }
  1303. return null;
  1304. }
  1305. function parseIsoWeekday(input, locale) {
  1306. if (typeof input === 'string') {
  1307. return locale.weekdaysParse(input) % 7 || 7;
  1308. }
  1309. return isNaN(input) ? null : input;
  1310. }
  1311. // LOCALES
  1312. function shiftWeekdays(ws, n) {
  1313. return ws.slice(n, 7).concat(ws.slice(0, n));
  1314. }
  1315. var defaultLocaleWeekdays =
  1316. 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  1317. defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  1318. defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  1319. defaultWeekdaysRegex = matchWord,
  1320. defaultWeekdaysShortRegex = matchWord,
  1321. defaultWeekdaysMinRegex = matchWord;
  1322. function localeWeekdays(m, format) {
  1323. var weekdays = isArray(this._weekdays)
  1324. ? this._weekdays
  1325. : this._weekdays[
  1326. m && m !== true && this._weekdays.isFormat.test(format)
  1327. ? 'format'
  1328. : 'standalone'
  1329. ];
  1330. return m === true
  1331. ? shiftWeekdays(weekdays, this._week.dow)
  1332. : m
  1333. ? weekdays[m.day()]
  1334. : weekdays;
  1335. }
  1336. function localeWeekdaysShort(m) {
  1337. return m === true
  1338. ? shiftWeekdays(this._weekdaysShort, this._week.dow)
  1339. : m
  1340. ? this._weekdaysShort[m.day()]
  1341. : this._weekdaysShort;
  1342. }
  1343. function localeWeekdaysMin(m) {
  1344. return m === true
  1345. ? shiftWeekdays(this._weekdaysMin, this._week.dow)
  1346. : m
  1347. ? this._weekdaysMin[m.day()]
  1348. : this._weekdaysMin;
  1349. }
  1350. function handleStrictParse$1(weekdayName, format, strict) {
  1351. var i,
  1352. ii,
  1353. mom,
  1354. llc = weekdayName.toLocaleLowerCase();
  1355. if (!this._weekdaysParse) {
  1356. this._weekdaysParse = [];
  1357. this._shortWeekdaysParse = [];
  1358. this._minWeekdaysParse = [];
  1359. for (i = 0; i < 7; ++i) {
  1360. mom = createUTC([2000, 1]).day(i);
  1361. this._minWeekdaysParse[i] = this.weekdaysMin(
  1362. mom,
  1363. ''
  1364. ).toLocaleLowerCase();
  1365. this._shortWeekdaysParse[i] = this.weekdaysShort(
  1366. mom,
  1367. ''
  1368. ).toLocaleLowerCase();
  1369. this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();
  1370. }
  1371. }
  1372. if (strict) {
  1373. if (format === 'dddd') {
  1374. ii = indexOf.call(this._weekdaysParse, llc);
  1375. return ii !== -1 ? ii : null;
  1376. } else if (format === 'ddd') {
  1377. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1378. return ii !== -1 ? ii : null;
  1379. } else {
  1380. ii = indexOf.call(this._minWeekdaysParse, llc);
  1381. return ii !== -1 ? ii : null;
  1382. }
  1383. } else {
  1384. if (format === 'dddd') {
  1385. ii = indexOf.call(this._weekdaysParse, llc);
  1386. if (ii !== -1) {
  1387. return ii;
  1388. }
  1389. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1390. if (ii !== -1) {
  1391. return ii;
  1392. }
  1393. ii = indexOf.call(this._minWeekdaysParse, llc);
  1394. return ii !== -1 ? ii : null;
  1395. } else if (format === 'ddd') {
  1396. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1397. if (ii !== -1) {
  1398. return ii;
  1399. }
  1400. ii = indexOf.call(this._weekdaysParse, llc);
  1401. if (ii !== -1) {
  1402. return ii;
  1403. }
  1404. ii = indexOf.call(this._minWeekdaysParse, llc);
  1405. return ii !== -1 ? ii : null;
  1406. } else {
  1407. ii = indexOf.call(this._minWeekdaysParse, llc);
  1408. if (ii !== -1) {
  1409. return ii;
  1410. }
  1411. ii = indexOf.call(this._weekdaysParse, llc);
  1412. if (ii !== -1) {
  1413. return ii;
  1414. }
  1415. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1416. return ii !== -1 ? ii : null;
  1417. }
  1418. }
  1419. }
  1420. function localeWeekdaysParse(weekdayName, format, strict) {
  1421. var i, mom, regex;
  1422. if (this._weekdaysParseExact) {
  1423. return handleStrictParse$1.call(this, weekdayName, format, strict);
  1424. }
  1425. if (!this._weekdaysParse) {
  1426. this._weekdaysParse = [];
  1427. this._minWeekdaysParse = [];
  1428. this._shortWeekdaysParse = [];
  1429. this._fullWeekdaysParse = [];
  1430. }
  1431. for (i = 0; i < 7; i++) {
  1432. // make the regex if we don't have it already
  1433. mom = createUTC([2000, 1]).day(i);
  1434. if (strict && !this._fullWeekdaysParse[i]) {
  1435. this._fullWeekdaysParse[i] = new RegExp(
  1436. '^' + this.weekdays(mom, '').replace('.', '\\.?') + '$',
  1437. 'i'
  1438. );
  1439. this._shortWeekdaysParse[i] = new RegExp(
  1440. '^' + this.weekdaysShort(mom, '').replace('.', '\\.?') + '$',
  1441. 'i'
  1442. );
  1443. this._minWeekdaysParse[i] = new RegExp(
  1444. '^' + this.weekdaysMin(mom, '').replace('.', '\\.?') + '$',
  1445. 'i'
  1446. );
  1447. }
  1448. if (!this._weekdaysParse[i]) {
  1449. regex =
  1450. '^' +
  1451. this.weekdays(mom, '') +
  1452. '|^' +
  1453. this.weekdaysShort(mom, '') +
  1454. '|^' +
  1455. this.weekdaysMin(mom, '');
  1456. this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
  1457. }
  1458. // test the regex
  1459. if (
  1460. strict &&
  1461. format === 'dddd' &&
  1462. this._fullWeekdaysParse[i].test(weekdayName)
  1463. ) {
  1464. return i;
  1465. } else if (
  1466. strict &&
  1467. format === 'ddd' &&
  1468. this._shortWeekdaysParse[i].test(weekdayName)
  1469. ) {
  1470. return i;
  1471. } else if (
  1472. strict &&
  1473. format === 'dd' &&
  1474. this._minWeekdaysParse[i].test(weekdayName)
  1475. ) {
  1476. return i;
  1477. } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {
  1478. return i;
  1479. }
  1480. }
  1481. }
  1482. // MOMENTS
  1483. function getSetDayOfWeek(input) {
  1484. if (!this.isValid()) {
  1485. return input != null ? this : NaN;
  1486. }
  1487. var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
  1488. if (input != null) {
  1489. input = parseWeekday(input, this.localeData());
  1490. return this.add(input - day, 'd');
  1491. } else {
  1492. return day;
  1493. }
  1494. }
  1495. function getSetLocaleDayOfWeek(input) {
  1496. if (!this.isValid()) {
  1497. return input != null ? this : NaN;
  1498. }
  1499. var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
  1500. return input == null ? weekday : this.add(input - weekday, 'd');
  1501. }
  1502. function getSetISODayOfWeek(input) {
  1503. if (!this.isValid()) {
  1504. return input != null ? this : NaN;
  1505. }
  1506. // behaves the same as moment#day except
  1507. // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
  1508. // as a setter, sunday should belong to the previous week.
  1509. if (input != null) {
  1510. var weekday = parseIsoWeekday(input, this.localeData());
  1511. return this.day(this.day() % 7 ? weekday : weekday - 7);
  1512. } else {
  1513. return this.day() || 7;
  1514. }
  1515. }
  1516. function weekdaysRegex(isStrict) {
  1517. if (this._weekdaysParseExact) {
  1518. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1519. computeWeekdaysParse.call(this);
  1520. }
  1521. if (isStrict) {
  1522. return this._weekdaysStrictRegex;
  1523. } else {
  1524. return this._weekdaysRegex;
  1525. }
  1526. } else {
  1527. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1528. this._weekdaysRegex = defaultWeekdaysRegex;
  1529. }
  1530. return this._weekdaysStrictRegex && isStrict
  1531. ? this._weekdaysStrictRegex
  1532. : this._weekdaysRegex;
  1533. }
  1534. }
  1535. function weekdaysShortRegex(isStrict) {
  1536. if (this._weekdaysParseExact) {
  1537. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1538. computeWeekdaysParse.call(this);
  1539. }
  1540. if (isStrict) {
  1541. return this._weekdaysShortStrictRegex;
  1542. } else {
  1543. return this._weekdaysShortRegex;
  1544. }
  1545. } else {
  1546. if (!hasOwnProp(this, '_weekdaysShortRegex')) {
  1547. this._weekdaysShortRegex = defaultWeekdaysShortRegex;
  1548. }
  1549. return this._weekdaysShortStrictRegex && isStrict
  1550. ? this._weekdaysShortStrictRegex
  1551. : this._weekdaysShortRegex;
  1552. }
  1553. }
  1554. function weekdaysMinRegex(isStrict) {
  1555. if (this._weekdaysParseExact) {
  1556. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1557. computeWeekdaysParse.call(this);
  1558. }
  1559. if (isStrict) {
  1560. return this._weekdaysMinStrictRegex;
  1561. } else {
  1562. return this._weekdaysMinRegex;
  1563. }
  1564. } else {
  1565. if (!hasOwnProp(this, '_weekdaysMinRegex')) {
  1566. this._weekdaysMinRegex = defaultWeekdaysMinRegex;
  1567. }
  1568. return this._weekdaysMinStrictRegex && isStrict
  1569. ? this._weekdaysMinStrictRegex
  1570. : this._weekdaysMinRegex;
  1571. }
  1572. }
  1573. function computeWeekdaysParse() {
  1574. function cmpLenRev(a, b) {
  1575. return b.length - a.length;
  1576. }
  1577. var minPieces = [],
  1578. shortPieces = [],
  1579. longPieces = [],
  1580. mixedPieces = [],
  1581. i,
  1582. mom,
  1583. minp,
  1584. shortp,
  1585. longp;
  1586. for (i = 0; i < 7; i++) {
  1587. // make the regex if we don't have it already
  1588. mom = createUTC([2000, 1]).day(i);
  1589. minp = regexEscape(this.weekdaysMin(mom, ''));
  1590. shortp = regexEscape(this.weekdaysShort(mom, ''));
  1591. longp = regexEscape(this.weekdays(mom, ''));
  1592. minPieces.push(minp);
  1593. shortPieces.push(shortp);
  1594. longPieces.push(longp);
  1595. mixedPieces.push(minp);
  1596. mixedPieces.push(shortp);
  1597. mixedPieces.push(longp);
  1598. }
  1599. // Sorting makes sure if one weekday (or abbr) is a prefix of another it
  1600. // will match the longer piece.
  1601. minPieces.sort(cmpLenRev);
  1602. shortPieces.sort(cmpLenRev);
  1603. longPieces.sort(cmpLenRev);
  1604. mixedPieces.sort(cmpLenRev);
  1605. this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  1606. this._weekdaysShortRegex = this._weekdaysRegex;
  1607. this._weekdaysMinRegex = this._weekdaysRegex;
  1608. this._weekdaysStrictRegex = new RegExp(
  1609. '^(' + longPieces.join('|') + ')',
  1610. 'i'
  1611. );
  1612. this._weekdaysShortStrictRegex = new RegExp(
  1613. '^(' + shortPieces.join('|') + ')',
  1614. 'i'
  1615. );
  1616. this._weekdaysMinStrictRegex = new RegExp(
  1617. '^(' + minPieces.join('|') + ')',
  1618. 'i'
  1619. );
  1620. }
  1621. // FORMATTING
  1622. function hFormat() {
  1623. return this.hours() % 12 || 12;
  1624. }
  1625. function kFormat() {
  1626. return this.hours() || 24;
  1627. }
  1628. addFormatToken('H', ['HH', 2], 0, 'hour');
  1629. addFormatToken('h', ['hh', 2], 0, hFormat);
  1630. addFormatToken('k', ['kk', 2], 0, kFormat);
  1631. addFormatToken('hmm', 0, 0, function () {
  1632. return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);
  1633. });
  1634. addFormatToken('hmmss', 0, 0, function () {
  1635. return (
  1636. '' +
  1637. hFormat.apply(this) +
  1638. zeroFill(this.minutes(), 2) +
  1639. zeroFill(this.seconds(), 2)
  1640. );
  1641. });
  1642. addFormatToken('Hmm', 0, 0, function () {
  1643. return '' + this.hours() + zeroFill(this.minutes(), 2);
  1644. });
  1645. addFormatToken('Hmmss', 0, 0, function () {
  1646. return (
  1647. '' +
  1648. this.hours() +
  1649. zeroFill(this.minutes(), 2) +
  1650. zeroFill(this.seconds(), 2)
  1651. );
  1652. });
  1653. function meridiem(token, lowercase) {
  1654. addFormatToken(token, 0, 0, function () {
  1655. return this.localeData().meridiem(
  1656. this.hours(),
  1657. this.minutes(),
  1658. lowercase
  1659. );
  1660. });
  1661. }
  1662. meridiem('a', true);
  1663. meridiem('A', false);
  1664. // ALIASES
  1665. addUnitAlias('hour', 'h');
  1666. // PRIORITY
  1667. addUnitPriority('hour', 13);
  1668. // PARSING
  1669. function matchMeridiem(isStrict, locale) {
  1670. return locale._meridiemParse;
  1671. }
  1672. addRegexToken('a', matchMeridiem);
  1673. addRegexToken('A', matchMeridiem);
  1674. addRegexToken('H', match1to2);
  1675. addRegexToken('h', match1to2);
  1676. addRegexToken('k', match1to2);
  1677. addRegexToken('HH', match1to2, match2);
  1678. addRegexToken('hh', match1to2, match2);
  1679. addRegexToken('kk', match1to2, match2);
  1680. addRegexToken('hmm', match3to4);
  1681. addRegexToken('hmmss', match5to6);
  1682. addRegexToken('Hmm', match3to4);
  1683. addRegexToken('Hmmss', match5to6);
  1684. addParseToken(['H', 'HH'], HOUR);
  1685. addParseToken(['k', 'kk'], function (input, array, config) {
  1686. var kInput = toInt(input);
  1687. array[HOUR] = kInput === 24 ? 0 : kInput;
  1688. });
  1689. addParseToken(['a', 'A'], function (input, array, config) {
  1690. config._isPm = config._locale.isPM(input);
  1691. config._meridiem = input;
  1692. });
  1693. addParseToken(['h', 'hh'], function (input, array, config) {
  1694. array[HOUR] = toInt(input);
  1695. getParsingFlags(config).bigHour = true;
  1696. });
  1697. addParseToken('hmm', function (input, array, config) {
  1698. var pos = input.length - 2;
  1699. array[HOUR] = toInt(input.substr(0, pos));
  1700. array[MINUTE] = toInt(input.substr(pos));
  1701. getParsingFlags(config).bigHour = true;
  1702. });
  1703. addParseToken('hmmss', function (input, array, config) {
  1704. var pos1 = input.length - 4,
  1705. pos2 = input.length - 2;
  1706. array[HOUR] = toInt(input.substr(0, pos1));
  1707. array[MINUTE] = toInt(input.substr(pos1, 2));
  1708. array[SECOND] = toInt(input.substr(pos2));
  1709. getParsingFlags(config).bigHour = true;
  1710. });
  1711. addParseToken('Hmm', function (input, array, config) {
  1712. var pos = input.length - 2;
  1713. array[HOUR] = toInt(input.substr(0, pos));
  1714. array[MINUTE] = toInt(input.substr(pos));
  1715. });
  1716. addParseToken('Hmmss', function (input, array, config) {
  1717. var pos1 = input.length - 4,
  1718. pos2 = input.length - 2;
  1719. array[HOUR] = toInt(input.substr(0, pos1));
  1720. array[MINUTE] = toInt(input.substr(pos1, 2));
  1721. array[SECOND] = toInt(input.substr(pos2));
  1722. });
  1723. // LOCALES
  1724. function localeIsPM(input) {
  1725. // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
  1726. // Using charAt should be more compatible.
  1727. return (input + '').toLowerCase().charAt(0) === 'p';
  1728. }
  1729. var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i,
  1730. // Setting the hour should keep the time, because the user explicitly
  1731. // specified which hour they want. So trying to maintain the same hour (in
  1732. // a new timezone) makes sense. Adding/subtracting hours does not follow
  1733. // this rule.
  1734. getSetHour = makeGetSet('Hours', true);
  1735. function localeMeridiem(hours, minutes, isLower) {
  1736. if (hours > 11) {
  1737. return isLower ? 'pm' : 'PM';
  1738. } else {
  1739. return isLower ? 'am' : 'AM';
  1740. }
  1741. }
  1742. var baseConfig = {
  1743. calendar: defaultCalendar,
  1744. longDateFormat: defaultLongDateFormat,
  1745. invalidDate: defaultInvalidDate,
  1746. ordinal: defaultOrdinal,
  1747. dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,
  1748. relativeTime: defaultRelativeTime,
  1749. months: defaultLocaleMonths,
  1750. monthsShort: defaultLocaleMonthsShort,
  1751. week: defaultLocaleWeek,
  1752. weekdays: defaultLocaleWeekdays,
  1753. weekdaysMin: defaultLocaleWeekdaysMin,
  1754. weekdaysShort: defaultLocaleWeekdaysShort,
  1755. meridiemParse: defaultLocaleMeridiemParse,
  1756. };
  1757. // internal storage for locale config files
  1758. var locales = {},
  1759. localeFamilies = {},
  1760. globalLocale;
  1761. function commonPrefix(arr1, arr2) {
  1762. var i,
  1763. minl = Math.min(arr1.length, arr2.length);
  1764. for (i = 0; i < minl; i += 1) {
  1765. if (arr1[i] !== arr2[i]) {
  1766. return i;
  1767. }
  1768. }
  1769. return minl;
  1770. }
  1771. function normalizeLocale(key) {
  1772. return key ? key.toLowerCase().replace('_', '-') : key;
  1773. }
  1774. // pick the locale from the array
  1775. // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
  1776. // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
  1777. function chooseLocale(names) {
  1778. var i = 0,
  1779. j,
  1780. next,
  1781. locale,
  1782. split;
  1783. while (i < names.length) {
  1784. split = normalizeLocale(names[i]).split('-');
  1785. j = split.length;
  1786. next = normalizeLocale(names[i + 1]);
  1787. next = next ? next.split('-') : null;
  1788. while (j > 0) {
  1789. locale = loadLocale(split.slice(0, j).join('-'));
  1790. if (locale) {
  1791. return locale;
  1792. }
  1793. if (
  1794. next &&
  1795. next.length >= j &&
  1796. commonPrefix(split, next) >= j - 1
  1797. ) {
  1798. //the next array item is better than a shallower substring of this one
  1799. break;
  1800. }
  1801. j--;
  1802. }
  1803. i++;
  1804. }
  1805. return globalLocale;
  1806. }
  1807. function isLocaleNameSane(name) {
  1808. // Prevent names that look like filesystem paths, i.e contain '/' or '\'
  1809. return name.match('^[^/\\\\]*$') != null;
  1810. }
  1811. function loadLocale(name) {
  1812. var oldLocale = null,
  1813. aliasedRequire;
  1814. // TODO: Find a better way to register and load all the locales in Node
  1815. if (
  1816. locales[name] === undefined &&
  1817. typeof module !== 'undefined' &&
  1818. module &&
  1819. module.exports &&
  1820. isLocaleNameSane(name)
  1821. ) {
  1822. try {
  1823. oldLocale = globalLocale._abbr;
  1824. aliasedRequire = require;
  1825. aliasedRequire('./locale/' + name);
  1826. getSetGlobalLocale(oldLocale);
  1827. } catch (e) {
  1828. // mark as not found to avoid repeating expensive file require call causing high CPU
  1829. // when trying to find en-US, en_US, en-us for every format call
  1830. locales[name] = null; // null means not found
  1831. }
  1832. }
  1833. return locales[name];
  1834. }
  1835. // This function will load locale and then set the global locale. If
  1836. // no arguments are passed in, it will simply return the current global
  1837. // locale key.
  1838. function getSetGlobalLocale(key, values) {
  1839. var data;
  1840. if (key) {
  1841. if (isUndefined(values)) {
  1842. data = getLocale(key);
  1843. } else {
  1844. data = defineLocale(key, values);
  1845. }
  1846. if (data) {
  1847. // moment.duration._locale = moment._locale = data;
  1848. globalLocale = data;
  1849. } else {
  1850. if (typeof console !== 'undefined' && console.warn) {
  1851. //warn user if arguments are passed but the locale could not be set
  1852. console.warn(
  1853. 'Locale ' + key + ' not found. Did you forget to load it?'
  1854. );
  1855. }
  1856. }
  1857. }
  1858. return globalLocale._abbr;
  1859. }
  1860. function defineLocale(name, config) {
  1861. if (config !== null) {
  1862. var locale,
  1863. parentConfig = baseConfig;
  1864. config.abbr = name;
  1865. if (locales[name] != null) {
  1866. deprecateSimple(
  1867. 'defineLocaleOverride',
  1868. 'use moment.updateLocale(localeName, config) to change ' +
  1869. 'an existing locale. moment.defineLocale(localeName, ' +
  1870. 'config) should only be used for creating a new locale ' +
  1871. 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.'
  1872. );
  1873. parentConfig = locales[name]._config;
  1874. } else if (config.parentLocale != null) {
  1875. if (locales[config.parentLocale] != null) {
  1876. parentConfig = locales[config.parentLocale]._config;
  1877. } else {
  1878. locale = loadLocale(config.parentLocale);
  1879. if (locale != null) {
  1880. parentConfig = locale._config;
  1881. } else {
  1882. if (!localeFamilies[config.parentLocale]) {
  1883. localeFamilies[config.parentLocale] = [];
  1884. }
  1885. localeFamilies[config.parentLocale].push({
  1886. name: name,
  1887. config: config,
  1888. });
  1889. return null;
  1890. }
  1891. }
  1892. }
  1893. locales[name] = new Locale(mergeConfigs(parentConfig, config));
  1894. if (localeFamilies[name]) {
  1895. localeFamilies[name].forEach(function (x) {
  1896. defineLocale(x.name, x.config);
  1897. });
  1898. }
  1899. // backwards compat for now: also set the locale
  1900. // make sure we set the locale AFTER all child locales have been
  1901. // created, so we won't end up with the child locale set.
  1902. getSetGlobalLocale(name);
  1903. return locales[name];
  1904. } else {
  1905. // useful for testing
  1906. delete locales[name];
  1907. return null;
  1908. }
  1909. }
  1910. function updateLocale(name, config) {
  1911. if (config != null) {
  1912. var locale,
  1913. tmpLocale,
  1914. parentConfig = baseConfig;
  1915. if (locales[name] != null && locales[name].parentLocale != null) {
  1916. // Update existing child locale in-place to avoid memory-leaks
  1917. locales[name].set(mergeConfigs(locales[name]._config, config));
  1918. } else {
  1919. // MERGE
  1920. tmpLocale = loadLocale(name);
  1921. if (tmpLocale != null) {
  1922. parentConfig = tmpLocale._config;
  1923. }
  1924. config = mergeConfigs(parentConfig, config);
  1925. if (tmpLocale == null) {
  1926. // updateLocale is called for creating a new locale
  1927. // Set abbr so it will have a name (getters return
  1928. // undefined otherwise).
  1929. config.abbr = name;
  1930. }
  1931. locale = new Locale(config);
  1932. locale.parentLocale = locales[name];
  1933. locales[name] = locale;
  1934. }
  1935. // backwards compat for now: also set the locale
  1936. getSetGlobalLocale(name);
  1937. } else {
  1938. // pass null for config to unupdate, useful for tests
  1939. if (locales[name] != null) {
  1940. if (locales[name].parentLocale != null) {
  1941. locales[name] = locales[name].parentLocale;
  1942. if (name === getSetGlobalLocale()) {
  1943. getSetGlobalLocale(name);
  1944. }
  1945. } else if (locales[name] != null) {
  1946. delete locales[name];
  1947. }
  1948. }
  1949. }
  1950. return locales[name];
  1951. }
  1952. // returns locale data
  1953. function getLocale(key) {
  1954. var locale;
  1955. if (key && key._locale && key._locale._abbr) {
  1956. key = key._locale._abbr;
  1957. }
  1958. if (!key) {
  1959. return globalLocale;
  1960. }
  1961. if (!isArray(key)) {
  1962. //short-circuit everything else
  1963. locale = loadLocale(key);
  1964. if (locale) {
  1965. return locale;
  1966. }
  1967. key = [key];
  1968. }
  1969. return chooseLocale(key);
  1970. }
  1971. function listLocales() {
  1972. return keys(locales);
  1973. }
  1974. function checkOverflow(m) {
  1975. var overflow,
  1976. a = m._a;
  1977. if (a && getParsingFlags(m).overflow === -2) {
  1978. overflow =
  1979. a[MONTH] < 0 || a[MONTH] > 11
  1980. ? MONTH
  1981. : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH])
  1982. ? DATE
  1983. : a[HOUR] < 0 ||
  1984. a[HOUR] > 24 ||
  1985. (a[HOUR] === 24 &&
  1986. (a[MINUTE] !== 0 ||
  1987. a[SECOND] !== 0 ||
  1988. a[MILLISECOND] !== 0))
  1989. ? HOUR
  1990. : a[MINUTE] < 0 || a[MINUTE] > 59
  1991. ? MINUTE
  1992. : a[SECOND] < 0 || a[SECOND] > 59
  1993. ? SECOND
  1994. : a[MILLISECOND] < 0 || a[MILLISECOND] > 999
  1995. ? MILLISECOND
  1996. : -1;
  1997. if (
  1998. getParsingFlags(m)._overflowDayOfYear &&
  1999. (overflow < YEAR || overflow > DATE)
  2000. ) {
  2001. overflow = DATE;
  2002. }
  2003. if (getParsingFlags(m)._overflowWeeks && overflow === -1) {
  2004. overflow = WEEK;
  2005. }
  2006. if (getParsingFlags(m)._overflowWeekday && overflow === -1) {
  2007. overflow = WEEKDAY;
  2008. }
  2009. getParsingFlags(m).overflow = overflow;
  2010. }
  2011. return m;
  2012. }
  2013. // iso 8601 regex
  2014. // 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)
  2015. var extendedIsoRegex =
  2016. /^\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)?)?$/,
  2017. basicIsoRegex =
  2018. /^\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)?)?$/,
  2019. tzRegex = /Z|[+-]\d\d(?::?\d\d)?/,
  2020. isoDates = [
  2021. ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
  2022. ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/],
  2023. ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/],
  2024. ['GGGG-[W]WW', /\d{4}-W\d\d/, false],
  2025. ['YYYY-DDD', /\d{4}-\d{3}/],
  2026. ['YYYY-MM', /\d{4}-\d\d/, false],
  2027. ['YYYYYYMMDD', /[+-]\d{10}/],
  2028. ['YYYYMMDD', /\d{8}/],
  2029. ['GGGG[W]WWE', /\d{4}W\d{3}/],
  2030. ['GGGG[W]WW', /\d{4}W\d{2}/, false],
  2031. ['YYYYDDD', /\d{7}/],
  2032. ['YYYYMM', /\d{6}/, false],
  2033. ['YYYY', /\d{4}/, false],
  2034. ],
  2035. // iso time formats and regexes
  2036. isoTimes = [
  2037. ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/],
  2038. ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/],
  2039. ['HH:mm:ss', /\d\d:\d\d:\d\d/],
  2040. ['HH:mm', /\d\d:\d\d/],
  2041. ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/],
  2042. ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/],
  2043. ['HHmmss', /\d\d\d\d\d\d/],
  2044. ['HHmm', /\d\d\d\d/],
  2045. ['HH', /\d\d/],
  2046. ],
  2047. aspNetJsonRegex = /^\/?Date\((-?\d+)/i,
  2048. // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
  2049. rfc2822 =
  2050. /^(?:(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}))$/,
  2051. obsOffsets = {
  2052. UT: 0,
  2053. GMT: 0,
  2054. EDT: -4 * 60,
  2055. EST: -5 * 60,
  2056. CDT: -5 * 60,
  2057. CST: -6 * 60,
  2058. MDT: -6 * 60,
  2059. MST: -7 * 60,
  2060. PDT: -7 * 60,
  2061. PST: -8 * 60,
  2062. };
  2063. // date from iso format
  2064. function configFromISO(config) {
  2065. var i,
  2066. l,
  2067. string = config._i,
  2068. match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
  2069. allowTime,
  2070. dateFormat,
  2071. timeFormat,
  2072. tzFormat,
  2073. isoDatesLen = isoDates.length,
  2074. isoTimesLen = isoTimes.length;
  2075. if (match) {
  2076. getParsingFlags(config).iso = true;
  2077. for (i = 0, l = isoDatesLen; i < l; i++) {
  2078. if (isoDates[i][1].exec(match[1])) {
  2079. dateFormat = isoDates[i][0];
  2080. allowTime = isoDates[i][2] !== false;
  2081. break;
  2082. }
  2083. }
  2084. if (dateFormat == null) {
  2085. config._isValid = false;
  2086. return;
  2087. }
  2088. if (match[3]) {
  2089. for (i = 0, l = isoTimesLen; i < l; i++) {
  2090. if (isoTimes[i][1].exec(match[3])) {
  2091. // match[2] should be 'T' or space
  2092. timeFormat = (match[2] || ' ') + isoTimes[i][0];
  2093. break;
  2094. }
  2095. }
  2096. if (timeFormat == null) {
  2097. config._isValid = false;
  2098. return;
  2099. }
  2100. }
  2101. if (!allowTime && timeFormat != null) {
  2102. config._isValid = false;
  2103. return;
  2104. }
  2105. if (match[4]) {
  2106. if (tzRegex.exec(match[4])) {
  2107. tzFormat = 'Z';
  2108. } else {
  2109. config._isValid = false;
  2110. return;
  2111. }
  2112. }
  2113. config._f = dateFormat + (timeFormat || '') + (tzFormat || '');
  2114. configFromStringAndFormat(config);
  2115. } else {
  2116. config._isValid = false;
  2117. }
  2118. }
  2119. function extractFromRFC2822Strings(
  2120. yearStr,
  2121. monthStr,
  2122. dayStr,
  2123. hourStr,
  2124. minuteStr,
  2125. secondStr
  2126. ) {
  2127. var result = [
  2128. untruncateYear(yearStr),
  2129. defaultLocaleMonthsShort.indexOf(monthStr),
  2130. parseInt(dayStr, 10),
  2131. parseInt(hourStr, 10),
  2132. parseInt(minuteStr, 10),
  2133. ];
  2134. if (secondStr) {
  2135. result.push(parseInt(secondStr, 10));
  2136. }
  2137. return result;
  2138. }
  2139. function untruncateYear(yearStr) {
  2140. var year = parseInt(yearStr, 10);
  2141. if (year <= 49) {
  2142. return 2000 + year;
  2143. } else if (year <= 999) {
  2144. return 1900 + year;
  2145. }
  2146. return year;
  2147. }
  2148. function preprocessRFC2822(s) {
  2149. // Remove comments and folding whitespace and replace multiple-spaces with a single space
  2150. return s
  2151. .replace(/\([^()]*\)|[\n\t]/g, ' ')
  2152. .replace(/(\s\s+)/g, ' ')
  2153. .replace(/^\s\s*/, '')
  2154. .replace(/\s\s*$/, '');
  2155. }
  2156. function checkWeekday(weekdayStr, parsedInput, config) {
  2157. if (weekdayStr) {
  2158. // TODO: Replace the vanilla JS Date object with an independent day-of-week check.
  2159. var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),
  2160. weekdayActual = new Date(
  2161. parsedInput[0],
  2162. parsedInput[1],
  2163. parsedInput[2]
  2164. ).getDay();
  2165. if (weekdayProvided !== weekdayActual) {
  2166. getParsingFlags(config).weekdayMismatch = true;
  2167. config._isValid = false;
  2168. return false;
  2169. }
  2170. }
  2171. return true;
  2172. }
  2173. function calculateOffset(obsOffset, militaryOffset, numOffset) {
  2174. if (obsOffset) {
  2175. return obsOffsets[obsOffset];
  2176. } else if (militaryOffset) {
  2177. // the only allowed military tz is Z
  2178. return 0;
  2179. } else {
  2180. var hm = parseInt(numOffset, 10),
  2181. m = hm % 100,
  2182. h = (hm - m) / 100;
  2183. return h * 60 + m;
  2184. }
  2185. }
  2186. // date and time from ref 2822 format
  2187. function configFromRFC2822(config) {
  2188. var match = rfc2822.exec(preprocessRFC2822(config._i)),
  2189. parsedArray;
  2190. if (match) {
  2191. parsedArray = extractFromRFC2822Strings(
  2192. match[4],
  2193. match[3],
  2194. match[2],
  2195. match[5],
  2196. match[6],
  2197. match[7]
  2198. );
  2199. if (!checkWeekday(match[1], parsedArray, config)) {
  2200. return;
  2201. }
  2202. config._a = parsedArray;
  2203. config._tzm = calculateOffset(match[8], match[9], match[10]);
  2204. config._d = createUTCDate.apply(null, config._a);
  2205. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  2206. getParsingFlags(config).rfc2822 = true;
  2207. } else {
  2208. config._isValid = false;
  2209. }
  2210. }
  2211. // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
  2212. function configFromString(config) {
  2213. var matched = aspNetJsonRegex.exec(config._i);
  2214. if (matched !== null) {
  2215. config._d = new Date(+matched[1]);
  2216. return;
  2217. }
  2218. configFromISO(config);
  2219. if (config._isValid === false) {
  2220. delete config._isValid;
  2221. } else {
  2222. return;
  2223. }
  2224. configFromRFC2822(config);
  2225. if (config._isValid === false) {
  2226. delete config._isValid;
  2227. } else {
  2228. return;
  2229. }
  2230. if (config._strict) {
  2231. config._isValid = false;
  2232. } else {
  2233. // Final attempt, use Input Fallback
  2234. hooks.createFromInputFallback(config);
  2235. }
  2236. }
  2237. hooks.createFromInputFallback = deprecate(
  2238. 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +
  2239. 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +
  2240. 'discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.',
  2241. function (config) {
  2242. config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
  2243. }
  2244. );
  2245. // Pick the first defined of two or three arguments.
  2246. function defaults(a, b, c) {
  2247. if (a != null) {
  2248. return a;
  2249. }
  2250. if (b != null) {
  2251. return b;
  2252. }
  2253. return c;
  2254. }
  2255. function currentDateArray(config) {
  2256. // hooks is actually the exported moment object
  2257. var nowValue = new Date(hooks.now());
  2258. if (config._useUTC) {
  2259. return [
  2260. nowValue.getUTCFullYear(),
  2261. nowValue.getUTCMonth(),
  2262. nowValue.getUTCDate(),
  2263. ];
  2264. }
  2265. return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
  2266. }
  2267. // convert an array to a date.
  2268. // the array should mirror the parameters below
  2269. // note: all values past the year are optional and will default to the lowest possible value.
  2270. // [year, month, day , hour, minute, second, millisecond]
  2271. function configFromArray(config) {
  2272. var i,
  2273. date,
  2274. input = [],
  2275. currentDate,
  2276. expectedWeekday,
  2277. yearToUse;
  2278. if (config._d) {
  2279. return;
  2280. }
  2281. currentDate = currentDateArray(config);
  2282. //compute day of the year from weeks and weekdays
  2283. if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
  2284. dayOfYearFromWeekInfo(config);
  2285. }
  2286. //if the day of the year is set, figure out what it is
  2287. if (config._dayOfYear != null) {
  2288. yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);
  2289. if (
  2290. config._dayOfYear > daysInYear(yearToUse) ||
  2291. config._dayOfYear === 0
  2292. ) {
  2293. getParsingFlags(config)._overflowDayOfYear = true;
  2294. }
  2295. date = createUTCDate(yearToUse, 0, config._dayOfYear);
  2296. config._a[MONTH] = date.getUTCMonth();
  2297. config._a[DATE] = date.getUTCDate();
  2298. }
  2299. // Default to current date.
  2300. // * if no year, month, day of month are given, default to today
  2301. // * if day of month is given, default month and year
  2302. // * if month is given, default only year
  2303. // * if year is given, don't default anything
  2304. for (i = 0; i < 3 && config._a[i] == null; ++i) {
  2305. config._a[i] = input[i] = currentDate[i];
  2306. }
  2307. // Zero out whatever was not defaulted, including time
  2308. for (; i < 7; i++) {
  2309. config._a[i] = input[i] =
  2310. config._a[i] == null ? (i === 2 ? 1 : 0) : config._a[i];
  2311. }
  2312. // Check for 24:00:00.000
  2313. if (
  2314. config._a[HOUR] === 24 &&
  2315. config._a[MINUTE] === 0 &&
  2316. config._a[SECOND] === 0 &&
  2317. config._a[MILLISECOND] === 0
  2318. ) {
  2319. config._nextDay = true;
  2320. config._a[HOUR] = 0;
  2321. }
  2322. config._d = (config._useUTC ? createUTCDate : createDate).apply(
  2323. null,
  2324. input
  2325. );
  2326. expectedWeekday = config._useUTC
  2327. ? config._d.getUTCDay()
  2328. : config._d.getDay();
  2329. // Apply timezone offset from input. The actual utcOffset can be changed
  2330. // with parseZone.
  2331. if (config._tzm != null) {
  2332. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  2333. }
  2334. if (config._nextDay) {
  2335. config._a[HOUR] = 24;
  2336. }
  2337. // check for mismatching day of week
  2338. if (
  2339. config._w &&
  2340. typeof config._w.d !== 'undefined' &&
  2341. config._w.d !== expectedWeekday
  2342. ) {
  2343. getParsingFlags(config).weekdayMismatch = true;
  2344. }
  2345. }
  2346. function dayOfYearFromWeekInfo(config) {
  2347. var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;
  2348. w = config._w;
  2349. if (w.GG != null || w.W != null || w.E != null) {
  2350. dow = 1;
  2351. doy = 4;
  2352. // TODO: We need to take the current isoWeekYear, but that depends on
  2353. // how we interpret now (local, utc, fixed offset). So create
  2354. // a now version of current config (take local/utc/offset flags, and
  2355. // create now).
  2356. weekYear = defaults(
  2357. w.GG,
  2358. config._a[YEAR],
  2359. weekOfYear(createLocal(), 1, 4).year
  2360. );
  2361. week = defaults(w.W, 1);
  2362. weekday = defaults(w.E, 1);
  2363. if (weekday < 1 || weekday > 7) {
  2364. weekdayOverflow = true;
  2365. }
  2366. } else {
  2367. dow = config._locale._week.dow;
  2368. doy = config._locale._week.doy;
  2369. curWeek = weekOfYear(createLocal(), dow, doy);
  2370. weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);
  2371. // Default to current week.
  2372. week = defaults(w.w, curWeek.week);
  2373. if (w.d != null) {
  2374. // weekday -- low day numbers are considered next week
  2375. weekday = w.d;
  2376. if (weekday < 0 || weekday > 6) {
  2377. weekdayOverflow = true;
  2378. }
  2379. } else if (w.e != null) {
  2380. // local weekday -- counting starts from beginning of week
  2381. weekday = w.e + dow;
  2382. if (w.e < 0 || w.e > 6) {
  2383. weekdayOverflow = true;
  2384. }
  2385. } else {
  2386. // default to beginning of week
  2387. weekday = dow;
  2388. }
  2389. }
  2390. if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {
  2391. getParsingFlags(config)._overflowWeeks = true;
  2392. } else if (weekdayOverflow != null) {
  2393. getParsingFlags(config)._overflowWeekday = true;
  2394. } else {
  2395. temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);
  2396. config._a[YEAR] = temp.year;
  2397. config._dayOfYear = temp.dayOfYear;
  2398. }
  2399. }
  2400. // constant that refers to the ISO standard
  2401. hooks.ISO_8601 = function () {};
  2402. // constant that refers to the RFC 2822 form
  2403. hooks.RFC_2822 = function () {};
  2404. // date from string and format string
  2405. function configFromStringAndFormat(config) {
  2406. // TODO: Move this to another part of the creation flow to prevent circular deps
  2407. if (config._f === hooks.ISO_8601) {
  2408. configFromISO(config);
  2409. return;
  2410. }
  2411. if (config._f === hooks.RFC_2822) {
  2412. configFromRFC2822(config);
  2413. return;
  2414. }
  2415. config._a = [];
  2416. getParsingFlags(config).empty = true;
  2417. // This array is used to make a Date, either with `new Date` or `Date.UTC`
  2418. var string = '' + config._i,
  2419. i,
  2420. parsedInput,
  2421. tokens,
  2422. token,
  2423. skipped,
  2424. stringLength = string.length,
  2425. totalParsedInputLength = 0,
  2426. era,
  2427. tokenLen;
  2428. tokens =
  2429. expandFormat(config._f, config._locale).match(formattingTokens) || [];
  2430. tokenLen = tokens.length;
  2431. for (i = 0; i < tokenLen; i++) {
  2432. token = tokens[i];
  2433. parsedInput = (string.match(getParseRegexForToken(token, config)) ||
  2434. [])[0];
  2435. if (parsedInput) {
  2436. skipped = string.substr(0, string.indexOf(parsedInput));
  2437. if (skipped.length > 0) {
  2438. getParsingFlags(config).unusedInput.push(skipped);
  2439. }
  2440. string = string.slice(
  2441. string.indexOf(parsedInput) + parsedInput.length
  2442. );
  2443. totalParsedInputLength += parsedInput.length;
  2444. }
  2445. // don't parse if it's not a known token
  2446. if (formatTokenFunctions[token]) {
  2447. if (parsedInput) {
  2448. getParsingFlags(config).empty = false;
  2449. } else {
  2450. getParsingFlags(config).unusedTokens.push(token);
  2451. }
  2452. addTimeToArrayFromToken(token, parsedInput, config);
  2453. } else if (config._strict && !parsedInput) {
  2454. getParsingFlags(config).unusedTokens.push(token);
  2455. }
  2456. }
  2457. // add remaining unparsed input length to the string
  2458. getParsingFlags(config).charsLeftOver =
  2459. stringLength - totalParsedInputLength;
  2460. if (string.length > 0) {
  2461. getParsingFlags(config).unusedInput.push(string);
  2462. }
  2463. // clear _12h flag if hour is <= 12
  2464. if (
  2465. config._a[HOUR] <= 12 &&
  2466. getParsingFlags(config).bigHour === true &&
  2467. config._a[HOUR] > 0
  2468. ) {
  2469. getParsingFlags(config).bigHour = undefined;
  2470. }
  2471. getParsingFlags(config).parsedDateParts = config._a.slice(0);
  2472. getParsingFlags(config).meridiem = config._meridiem;
  2473. // handle meridiem
  2474. config._a[HOUR] = meridiemFixWrap(
  2475. config._locale,
  2476. config._a[HOUR],
  2477. config._meridiem
  2478. );
  2479. // handle era
  2480. era = getParsingFlags(config).era;
  2481. if (era !== null) {
  2482. config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]);
  2483. }
  2484. configFromArray(config);
  2485. checkOverflow(config);
  2486. }
  2487. function meridiemFixWrap(locale, hour, meridiem) {
  2488. var isPm;
  2489. if (meridiem == null) {
  2490. // nothing to do
  2491. return hour;
  2492. }
  2493. if (locale.meridiemHour != null) {
  2494. return locale.meridiemHour(hour, meridiem);
  2495. } else if (locale.isPM != null) {
  2496. // Fallback
  2497. isPm = locale.isPM(meridiem);
  2498. if (isPm && hour < 12) {
  2499. hour += 12;
  2500. }
  2501. if (!isPm && hour === 12) {
  2502. hour = 0;
  2503. }
  2504. return hour;
  2505. } else {
  2506. // this is not supposed to happen
  2507. return hour;
  2508. }
  2509. }
  2510. // date from string and array of format strings
  2511. function configFromStringAndArray(config) {
  2512. var tempConfig,
  2513. bestMoment,
  2514. scoreToBeat,
  2515. i,
  2516. currentScore,
  2517. validFormatFound,
  2518. bestFormatIsValid = false,
  2519. configfLen = config._f.length;
  2520. if (configfLen === 0) {
  2521. getParsingFlags(config).invalidFormat = true;
  2522. config._d = new Date(NaN);
  2523. return;
  2524. }
  2525. for (i = 0; i < configfLen; i++) {
  2526. currentScore = 0;
  2527. validFormatFound = false;
  2528. tempConfig = copyConfig({}, config);
  2529. if (config._useUTC != null) {
  2530. tempConfig._useUTC = config._useUTC;
  2531. }
  2532. tempConfig._f = config._f[i];
  2533. configFromStringAndFormat(tempConfig);
  2534. if (isValid(tempConfig)) {
  2535. validFormatFound = true;
  2536. }
  2537. // if there is any input that was not parsed add a penalty for that format
  2538. currentScore += getParsingFlags(tempConfig).charsLeftOver;
  2539. //or tokens
  2540. currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;
  2541. getParsingFlags(tempConfig).score = currentScore;
  2542. if (!bestFormatIsValid) {
  2543. if (
  2544. scoreToBeat == null ||
  2545. currentScore < scoreToBeat ||
  2546. validFormatFound
  2547. ) {
  2548. scoreToBeat = currentScore;
  2549. bestMoment = tempConfig;
  2550. if (validFormatFound) {
  2551. bestFormatIsValid = true;
  2552. }
  2553. }
  2554. } else {
  2555. if (currentScore < scoreToBeat) {
  2556. scoreToBeat = currentScore;
  2557. bestMoment = tempConfig;
  2558. }
  2559. }
  2560. }
  2561. extend(config, bestMoment || tempConfig);
  2562. }
  2563. function configFromObject(config) {
  2564. if (config._d) {
  2565. return;
  2566. }
  2567. var i = normalizeObjectUnits(config._i),
  2568. dayOrDate = i.day === undefined ? i.date : i.day;
  2569. config._a = map(
  2570. [i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond],
  2571. function (obj) {
  2572. return obj && parseInt(obj, 10);
  2573. }
  2574. );
  2575. configFromArray(config);
  2576. }
  2577. function createFromConfig(config) {
  2578. var res = new Moment(checkOverflow(prepareConfig(config)));
  2579. if (res._nextDay) {
  2580. // Adding is smart enough around DST
  2581. res.add(1, 'd');
  2582. res._nextDay = undefined;
  2583. }
  2584. return res;
  2585. }
  2586. function prepareConfig(config) {
  2587. var input = config._i,
  2588. format = config._f;
  2589. config._locale = config._locale || getLocale(config._l);
  2590. if (input === null || (format === undefined && input === '')) {
  2591. return createInvalid({ nullInput: true });
  2592. }
  2593. if (typeof input === 'string') {
  2594. config._i = input = config._locale.preparse(input);
  2595. }
  2596. if (isMoment(input)) {
  2597. return new Moment(checkOverflow(input));
  2598. } else if (isDate(input)) {
  2599. config._d = input;
  2600. } else if (isArray(format)) {
  2601. configFromStringAndArray(config);
  2602. } else if (format) {
  2603. configFromStringAndFormat(config);
  2604. } else {
  2605. configFromInput(config);
  2606. }
  2607. if (!isValid(config)) {
  2608. config._d = null;
  2609. }
  2610. return config;
  2611. }
  2612. function configFromInput(config) {
  2613. var input = config._i;
  2614. if (isUndefined(input)) {
  2615. config._d = new Date(hooks.now());
  2616. } else if (isDate(input)) {
  2617. config._d = new Date(input.valueOf());
  2618. } else if (typeof input === 'string') {
  2619. configFromString(config);
  2620. } else if (isArray(input)) {
  2621. config._a = map(input.slice(0), function (obj) {
  2622. return parseInt(obj, 10);
  2623. });
  2624. configFromArray(config);
  2625. } else if (isObject(input)) {
  2626. configFromObject(config);
  2627. } else if (isNumber(input)) {
  2628. // from milliseconds
  2629. config._d = new Date(input);
  2630. } else {
  2631. hooks.createFromInputFallback(config);
  2632. }
  2633. }
  2634. function createLocalOrUTC(input, format, locale, strict, isUTC) {
  2635. var c = {};
  2636. if (format === true || format === false) {
  2637. strict = format;
  2638. format = undefined;
  2639. }
  2640. if (locale === true || locale === false) {
  2641. strict = locale;
  2642. locale = undefined;
  2643. }
  2644. if (
  2645. (isObject(input) && isObjectEmpty(input)) ||
  2646. (isArray(input) && input.length === 0)
  2647. ) {
  2648. input = undefined;
  2649. }
  2650. // object construction must be done this way.
  2651. // https://github.com/moment/moment/issues/1423
  2652. c._isAMomentObject = true;
  2653. c._useUTC = c._isUTC = isUTC;
  2654. c._l = locale;
  2655. c._i = input;
  2656. c._f = format;
  2657. c._strict = strict;
  2658. return createFromConfig(c);
  2659. }
  2660. function createLocal(input, format, locale, strict) {
  2661. return createLocalOrUTC(input, format, locale, strict, false);
  2662. }
  2663. var prototypeMin = deprecate(
  2664. 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',
  2665. function () {
  2666. var other = createLocal.apply(null, arguments);
  2667. if (this.isValid() && other.isValid()) {
  2668. return other < this ? this : other;
  2669. } else {
  2670. return createInvalid();
  2671. }
  2672. }
  2673. ),
  2674. prototypeMax = deprecate(
  2675. 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',
  2676. function () {
  2677. var other = createLocal.apply(null, arguments);
  2678. if (this.isValid() && other.isValid()) {
  2679. return other > this ? this : other;
  2680. } else {
  2681. return createInvalid();
  2682. }
  2683. }
  2684. );
  2685. // Pick a moment m from moments so that m[fn](other) is true for all
  2686. // other. This relies on the function fn to be transitive.
  2687. //
  2688. // moments should either be an array of moment objects or an array, whose
  2689. // first element is an array of moment objects.
  2690. function pickBy(fn, moments) {
  2691. var res, i;
  2692. if (moments.length === 1 && isArray(moments[0])) {
  2693. moments = moments[0];
  2694. }
  2695. if (!moments.length) {
  2696. return createLocal();
  2697. }
  2698. res = moments[0];
  2699. for (i = 1; i < moments.length; ++i) {
  2700. if (!moments[i].isValid() || moments[i][fn](res)) {
  2701. res = moments[i];
  2702. }
  2703. }
  2704. return res;
  2705. }
  2706. // TODO: Use [].sort instead?
  2707. function min() {
  2708. var args = [].slice.call(arguments, 0);
  2709. return pickBy('isBefore', args);
  2710. }
  2711. function max() {
  2712. var args = [].slice.call(arguments, 0);
  2713. return pickBy('isAfter', args);
  2714. }
  2715. var now = function () {
  2716. return Date.now ? Date.now() : +new Date();
  2717. };
  2718. var ordering = [
  2719. 'year',
  2720. 'quarter',
  2721. 'month',
  2722. 'week',
  2723. 'day',
  2724. 'hour',
  2725. 'minute',
  2726. 'second',
  2727. 'millisecond',
  2728. ];
  2729. function isDurationValid(m) {
  2730. var key,
  2731. unitHasDecimal = false,
  2732. i,
  2733. orderLen = ordering.length;
  2734. for (key in m) {
  2735. if (
  2736. hasOwnProp(m, key) &&
  2737. !(
  2738. indexOf.call(ordering, key) !== -1 &&
  2739. (m[key] == null || !isNaN(m[key]))
  2740. )
  2741. ) {
  2742. return false;
  2743. }
  2744. }
  2745. for (i = 0; i < orderLen; ++i) {
  2746. if (m[ordering[i]]) {
  2747. if (unitHasDecimal) {
  2748. return false; // only allow non-integers for smallest unit
  2749. }
  2750. if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {
  2751. unitHasDecimal = true;
  2752. }
  2753. }
  2754. }
  2755. return true;
  2756. }
  2757. function isValid$1() {
  2758. return this._isValid;
  2759. }
  2760. function createInvalid$1() {
  2761. return createDuration(NaN);
  2762. }
  2763. function Duration(duration) {
  2764. var normalizedInput = normalizeObjectUnits(duration),
  2765. years = normalizedInput.year || 0,
  2766. quarters = normalizedInput.quarter || 0,
  2767. months = normalizedInput.month || 0,
  2768. weeks = normalizedInput.week || normalizedInput.isoWeek || 0,
  2769. days = normalizedInput.day || 0,
  2770. hours = normalizedInput.hour || 0,
  2771. minutes = normalizedInput.minute || 0,
  2772. seconds = normalizedInput.second || 0,
  2773. milliseconds = normalizedInput.millisecond || 0;
  2774. this._isValid = isDurationValid(normalizedInput);
  2775. // representation for dateAddRemove
  2776. this._milliseconds =
  2777. +milliseconds +
  2778. seconds * 1e3 + // 1000
  2779. minutes * 6e4 + // 1000 * 60
  2780. hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
  2781. // Because of dateAddRemove treats 24 hours as different from a
  2782. // day when working around DST, we need to store them separately
  2783. this._days = +days + weeks * 7;
  2784. // It is impossible to translate months into days without knowing
  2785. // which months you are are talking about, so we have to store
  2786. // it separately.
  2787. this._months = +months + quarters * 3 + years * 12;
  2788. this._data = {};
  2789. this._locale = getLocale();
  2790. this._bubble();
  2791. }
  2792. function isDuration(obj) {
  2793. return obj instanceof Duration;
  2794. }
  2795. function absRound(number) {
  2796. if (number < 0) {
  2797. return Math.round(-1 * number) * -1;
  2798. } else {
  2799. return Math.round(number);
  2800. }
  2801. }
  2802. // compare two arrays, return the number of differences
  2803. function compareArrays(array1, array2, dontConvert) {
  2804. var len = Math.min(array1.length, array2.length),
  2805. lengthDiff = Math.abs(array1.length - array2.length),
  2806. diffs = 0,
  2807. i;
  2808. for (i = 0; i < len; i++) {
  2809. if (
  2810. (dontConvert && array1[i] !== array2[i]) ||
  2811. (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))
  2812. ) {
  2813. diffs++;
  2814. }
  2815. }
  2816. return diffs + lengthDiff;
  2817. }
  2818. // FORMATTING
  2819. function offset(token, separator) {
  2820. addFormatToken(token, 0, 0, function () {
  2821. var offset = this.utcOffset(),
  2822. sign = '+';
  2823. if (offset < 0) {
  2824. offset = -offset;
  2825. sign = '-';
  2826. }
  2827. return (
  2828. sign +
  2829. zeroFill(~~(offset / 60), 2) +
  2830. separator +
  2831. zeroFill(~~offset % 60, 2)
  2832. );
  2833. });
  2834. }
  2835. offset('Z', ':');
  2836. offset('ZZ', '');
  2837. // PARSING
  2838. addRegexToken('Z', matchShortOffset);
  2839. addRegexToken('ZZ', matchShortOffset);
  2840. addParseToken(['Z', 'ZZ'], function (input, array, config) {
  2841. config._useUTC = true;
  2842. config._tzm = offsetFromString(matchShortOffset, input);
  2843. });
  2844. // HELPERS
  2845. // timezone chunker
  2846. // '+10:00' > ['10', '00']
  2847. // '-1530' > ['-15', '30']
  2848. var chunkOffset = /([\+\-]|\d\d)/gi;
  2849. function offsetFromString(matcher, string) {
  2850. var matches = (string || '').match(matcher),
  2851. chunk,
  2852. parts,
  2853. minutes;
  2854. if (matches === null) {
  2855. return null;
  2856. }
  2857. chunk = matches[matches.length - 1] || [];
  2858. parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
  2859. minutes = +(parts[1] * 60) + toInt(parts[2]);
  2860. return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes;
  2861. }
  2862. // Return a moment from input, that is local/utc/zone equivalent to model.
  2863. function cloneWithOffset(input, model) {
  2864. var res, diff;
  2865. if (model._isUTC) {
  2866. res = model.clone();
  2867. diff =
  2868. (isMoment(input) || isDate(input)
  2869. ? input.valueOf()
  2870. : createLocal(input).valueOf()) - res.valueOf();
  2871. // Use low-level api, because this fn is low-level api.
  2872. res._d.setTime(res._d.valueOf() + diff);
  2873. hooks.updateOffset(res, false);
  2874. return res;
  2875. } else {
  2876. return createLocal(input).local();
  2877. }
  2878. }
  2879. function getDateOffset(m) {
  2880. // On Firefox.24 Date#getTimezoneOffset returns a floating point.
  2881. // https://github.com/moment/moment/pull/1871
  2882. return -Math.round(m._d.getTimezoneOffset());
  2883. }
  2884. // HOOKS
  2885. // This function will be called whenever a moment is mutated.
  2886. // It is intended to keep the offset in sync with the timezone.
  2887. hooks.updateOffset = function () {};
  2888. // MOMENTS
  2889. // keepLocalTime = true means only change the timezone, without
  2890. // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
  2891. // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
  2892. // +0200, so we adjust the time as needed, to be valid.
  2893. //
  2894. // Keeping the time actually adds/subtracts (one hour)
  2895. // from the actual represented time. That is why we call updateOffset
  2896. // a second time. In case it wants us to change the offset again
  2897. // _changeInProgress == true case, then we have to adjust, because
  2898. // there is no such time in the given timezone.
  2899. function getSetOffset(input, keepLocalTime, keepMinutes) {
  2900. var offset = this._offset || 0,
  2901. localAdjust;
  2902. if (!this.isValid()) {
  2903. return input != null ? this : NaN;
  2904. }
  2905. if (input != null) {
  2906. if (typeof input === 'string') {
  2907. input = offsetFromString(matchShortOffset, input);
  2908. if (input === null) {
  2909. return this;
  2910. }
  2911. } else if (Math.abs(input) < 16 && !keepMinutes) {
  2912. input = input * 60;
  2913. }
  2914. if (!this._isUTC && keepLocalTime) {
  2915. localAdjust = getDateOffset(this);
  2916. }
  2917. this._offset = input;
  2918. this._isUTC = true;
  2919. if (localAdjust != null) {
  2920. this.add(localAdjust, 'm');
  2921. }
  2922. if (offset !== input) {
  2923. if (!keepLocalTime || this._changeInProgress) {
  2924. addSubtract(
  2925. this,
  2926. createDuration(input - offset, 'm'),
  2927. 1,
  2928. false
  2929. );
  2930. } else if (!this._changeInProgress) {
  2931. this._changeInProgress = true;
  2932. hooks.updateOffset(this, true);
  2933. this._changeInProgress = null;
  2934. }
  2935. }
  2936. return this;
  2937. } else {
  2938. return this._isUTC ? offset : getDateOffset(this);
  2939. }
  2940. }
  2941. function getSetZone(input, keepLocalTime) {
  2942. if (input != null) {
  2943. if (typeof input !== 'string') {
  2944. input = -input;
  2945. }
  2946. this.utcOffset(input, keepLocalTime);
  2947. return this;
  2948. } else {
  2949. return -this.utcOffset();
  2950. }
  2951. }
  2952. function setOffsetToUTC(keepLocalTime) {
  2953. return this.utcOffset(0, keepLocalTime);
  2954. }
  2955. function setOffsetToLocal(keepLocalTime) {
  2956. if (this._isUTC) {
  2957. this.utcOffset(0, keepLocalTime);
  2958. this._isUTC = false;
  2959. if (keepLocalTime) {
  2960. this.subtract(getDateOffset(this), 'm');
  2961. }
  2962. }
  2963. return this;
  2964. }
  2965. function setOffsetToParsedOffset() {
  2966. if (this._tzm != null) {
  2967. this.utcOffset(this._tzm, false, true);
  2968. } else if (typeof this._i === 'string') {
  2969. var tZone = offsetFromString(matchOffset, this._i);
  2970. if (tZone != null) {
  2971. this.utcOffset(tZone);
  2972. } else {
  2973. this.utcOffset(0, true);
  2974. }
  2975. }
  2976. return this;
  2977. }
  2978. function hasAlignedHourOffset(input) {
  2979. if (!this.isValid()) {
  2980. return false;
  2981. }
  2982. input = input ? createLocal(input).utcOffset() : 0;
  2983. return (this.utcOffset() - input) % 60 === 0;
  2984. }
  2985. function isDaylightSavingTime() {
  2986. return (
  2987. this.utcOffset() > this.clone().month(0).utcOffset() ||
  2988. this.utcOffset() > this.clone().month(5).utcOffset()
  2989. );
  2990. }
  2991. function isDaylightSavingTimeShifted() {
  2992. if (!isUndefined(this._isDSTShifted)) {
  2993. return this._isDSTShifted;
  2994. }
  2995. var c = {},
  2996. other;
  2997. copyConfig(c, this);
  2998. c = prepareConfig(c);
  2999. if (c._a) {
  3000. other = c._isUTC ? createUTC(c._a) : createLocal(c._a);
  3001. this._isDSTShifted =
  3002. this.isValid() && compareArrays(c._a, other.toArray()) > 0;
  3003. } else {
  3004. this._isDSTShifted = false;
  3005. }
  3006. return this._isDSTShifted;
  3007. }
  3008. function isLocal() {
  3009. return this.isValid() ? !this._isUTC : false;
  3010. }
  3011. function isUtcOffset() {
  3012. return this.isValid() ? this._isUTC : false;
  3013. }
  3014. function isUtc() {
  3015. return this.isValid() ? this._isUTC && this._offset === 0 : false;
  3016. }
  3017. // ASP.NET json date format regex
  3018. var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
  3019. // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
  3020. // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
  3021. // and further modified to allow for strings containing both week and day
  3022. isoRegex =
  3023. /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
  3024. function createDuration(input, key) {
  3025. var duration = input,
  3026. // matching against regexp is expensive, do it on demand
  3027. match = null,
  3028. sign,
  3029. ret,
  3030. diffRes;
  3031. if (isDuration(input)) {
  3032. duration = {
  3033. ms: input._milliseconds,
  3034. d: input._days,
  3035. M: input._months,
  3036. };
  3037. } else if (isNumber(input) || !isNaN(+input)) {
  3038. duration = {};
  3039. if (key) {
  3040. duration[key] = +input;
  3041. } else {
  3042. duration.milliseconds = +input;
  3043. }
  3044. } else if ((match = aspNetRegex.exec(input))) {
  3045. sign = match[1] === '-' ? -1 : 1;
  3046. duration = {
  3047. y: 0,
  3048. d: toInt(match[DATE]) * sign,
  3049. h: toInt(match[HOUR]) * sign,
  3050. m: toInt(match[MINUTE]) * sign,
  3051. s: toInt(match[SECOND]) * sign,
  3052. ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign, // the millisecond decimal point is included in the match
  3053. };
  3054. } else if ((match = isoRegex.exec(input))) {
  3055. sign = match[1] === '-' ? -1 : 1;
  3056. duration = {
  3057. y: parseIso(match[2], sign),
  3058. M: parseIso(match[3], sign),
  3059. w: parseIso(match[4], sign),
  3060. d: parseIso(match[5], sign),
  3061. h: parseIso(match[6], sign),
  3062. m: parseIso(match[7], sign),
  3063. s: parseIso(match[8], sign),
  3064. };
  3065. } else if (duration == null) {
  3066. // checks for null or undefined
  3067. duration = {};
  3068. } else if (
  3069. typeof duration === 'object' &&
  3070. ('from' in duration || 'to' in duration)
  3071. ) {
  3072. diffRes = momentsDifference(
  3073. createLocal(duration.from),
  3074. createLocal(duration.to)
  3075. );
  3076. duration = {};
  3077. duration.ms = diffRes.milliseconds;
  3078. duration.M = diffRes.months;
  3079. }
  3080. ret = new Duration(duration);
  3081. if (isDuration(input) && hasOwnProp(input, '_locale')) {
  3082. ret._locale = input._locale;
  3083. }
  3084. if (isDuration(input) && hasOwnProp(input, '_isValid')) {
  3085. ret._isValid = input._isValid;
  3086. }
  3087. return ret;
  3088. }
  3089. createDuration.fn = Duration.prototype;
  3090. createDuration.invalid = createInvalid$1;
  3091. function parseIso(inp, sign) {
  3092. // We'd normally use ~~inp for this, but unfortunately it also
  3093. // converts floats to ints.
  3094. // inp may be undefined, so careful calling replace on it.
  3095. var res = inp && parseFloat(inp.replace(',', '.'));
  3096. // apply sign while we're at it
  3097. return (isNaN(res) ? 0 : res) * sign;
  3098. }
  3099. function positiveMomentsDifference(base, other) {
  3100. var res = {};
  3101. res.months =
  3102. other.month() - base.month() + (other.year() - base.year()) * 12;
  3103. if (base.clone().add(res.months, 'M').isAfter(other)) {
  3104. --res.months;
  3105. }
  3106. res.milliseconds = +other - +base.clone().add(res.months, 'M');
  3107. return res;
  3108. }
  3109. function momentsDifference(base, other) {
  3110. var res;
  3111. if (!(base.isValid() && other.isValid())) {
  3112. return { milliseconds: 0, months: 0 };
  3113. }
  3114. other = cloneWithOffset(other, base);
  3115. if (base.isBefore(other)) {
  3116. res = positiveMomentsDifference(base, other);
  3117. } else {
  3118. res = positiveMomentsDifference(other, base);
  3119. res.milliseconds = -res.milliseconds;
  3120. res.months = -res.months;
  3121. }
  3122. return res;
  3123. }
  3124. // TODO: remove 'name' arg after deprecation is removed
  3125. function createAdder(direction, name) {
  3126. return function (val, period) {
  3127. var dur, tmp;
  3128. //invert the arguments, but complain about it
  3129. if (period !== null && !isNaN(+period)) {
  3130. deprecateSimple(
  3131. name,
  3132. 'moment().' +
  3133. name +
  3134. '(period, number) is deprecated. Please use moment().' +
  3135. name +
  3136. '(number, period). ' +
  3137. 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.'
  3138. );
  3139. tmp = val;
  3140. val = period;
  3141. period = tmp;
  3142. }
  3143. dur = createDuration(val, period);
  3144. addSubtract(this, dur, direction);
  3145. return this;
  3146. };
  3147. }
  3148. function addSubtract(mom, duration, isAdding, updateOffset) {
  3149. var milliseconds = duration._milliseconds,
  3150. days = absRound(duration._days),
  3151. months = absRound(duration._months);
  3152. if (!mom.isValid()) {
  3153. // No op
  3154. return;
  3155. }
  3156. updateOffset = updateOffset == null ? true : updateOffset;
  3157. if (months) {
  3158. setMonth(mom, get(mom, 'Month') + months * isAdding);
  3159. }
  3160. if (days) {
  3161. set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);
  3162. }
  3163. if (milliseconds) {
  3164. mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);
  3165. }
  3166. if (updateOffset) {
  3167. hooks.updateOffset(mom, days || months);
  3168. }
  3169. }
  3170. var add = createAdder(1, 'add'),
  3171. subtract = createAdder(-1, 'subtract');
  3172. function isString(input) {
  3173. return typeof input === 'string' || input instanceof String;
  3174. }
  3175. // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
  3176. function isMomentInput(input) {
  3177. return (
  3178. isMoment(input) ||
  3179. isDate(input) ||
  3180. isString(input) ||
  3181. isNumber(input) ||
  3182. isNumberOrStringArray(input) ||
  3183. isMomentInputObject(input) ||
  3184. input === null ||
  3185. input === undefined
  3186. );
  3187. }
  3188. function isMomentInputObject(input) {
  3189. var objectTest = isObject(input) && !isObjectEmpty(input),
  3190. propertyTest = false,
  3191. properties = [
  3192. 'years',
  3193. 'year',
  3194. 'y',
  3195. 'months',
  3196. 'month',
  3197. 'M',
  3198. 'days',
  3199. 'day',
  3200. 'd',
  3201. 'dates',
  3202. 'date',
  3203. 'D',
  3204. 'hours',
  3205. 'hour',
  3206. 'h',
  3207. 'minutes',
  3208. 'minute',
  3209. 'm',
  3210. 'seconds',
  3211. 'second',
  3212. 's',
  3213. 'milliseconds',
  3214. 'millisecond',
  3215. 'ms',
  3216. ],
  3217. i,
  3218. property,
  3219. propertyLen = properties.length;
  3220. for (i = 0; i < propertyLen; i += 1) {
  3221. property = properties[i];
  3222. propertyTest = propertyTest || hasOwnProp(input, property);
  3223. }
  3224. return objectTest && propertyTest;
  3225. }
  3226. function isNumberOrStringArray(input) {
  3227. var arrayTest = isArray(input),
  3228. dataTypeTest = false;
  3229. if (arrayTest) {
  3230. dataTypeTest =
  3231. input.filter(function (item) {
  3232. return !isNumber(item) && isString(input);
  3233. }).length === 0;
  3234. }
  3235. return arrayTest && dataTypeTest;
  3236. }
  3237. function isCalendarSpec(input) {
  3238. var objectTest = isObject(input) && !isObjectEmpty(input),
  3239. propertyTest = false,
  3240. properties = [
  3241. 'sameDay',
  3242. 'nextDay',
  3243. 'lastDay',
  3244. 'nextWeek',
  3245. 'lastWeek',
  3246. 'sameElse',
  3247. ],
  3248. i,
  3249. property;
  3250. for (i = 0; i < properties.length; i += 1) {
  3251. property = properties[i];
  3252. propertyTest = propertyTest || hasOwnProp(input, property);
  3253. }
  3254. return objectTest && propertyTest;
  3255. }
  3256. function getCalendarFormat(myMoment, now) {
  3257. var diff = myMoment.diff(now, 'days', true);
  3258. return diff < -6
  3259. ? 'sameElse'
  3260. : diff < -1
  3261. ? 'lastWeek'
  3262. : diff < 0
  3263. ? 'lastDay'
  3264. : diff < 1
  3265. ? 'sameDay'
  3266. : diff < 2
  3267. ? 'nextDay'
  3268. : diff < 7
  3269. ? 'nextWeek'
  3270. : 'sameElse';
  3271. }
  3272. function calendar$1(time, formats) {
  3273. // Support for single parameter, formats only overload to the calendar function
  3274. if (arguments.length === 1) {
  3275. if (!arguments[0]) {
  3276. time = undefined;
  3277. formats = undefined;
  3278. } else if (isMomentInput(arguments[0])) {
  3279. time = arguments[0];
  3280. formats = undefined;
  3281. } else if (isCalendarSpec(arguments[0])) {
  3282. formats = arguments[0];
  3283. time = undefined;
  3284. }
  3285. }
  3286. // We want to compare the start of today, vs this.
  3287. // Getting start-of-today depends on whether we're local/utc/offset or not.
  3288. var now = time || createLocal(),
  3289. sod = cloneWithOffset(now, this).startOf('day'),
  3290. format = hooks.calendarFormat(this, sod) || 'sameElse',
  3291. output =
  3292. formats &&
  3293. (isFunction(formats[format])
  3294. ? formats[format].call(this, now)
  3295. : formats[format]);
  3296. return this.format(
  3297. output || this.localeData().calendar(format, this, createLocal(now))
  3298. );
  3299. }
  3300. function clone() {
  3301. return new Moment(this);
  3302. }
  3303. function isAfter(input, units) {
  3304. var localInput = isMoment(input) ? input : createLocal(input);
  3305. if (!(this.isValid() && localInput.isValid())) {
  3306. return false;
  3307. }
  3308. units = normalizeUnits(units) || 'millisecond';
  3309. if (units === 'millisecond') {
  3310. return this.valueOf() > localInput.valueOf();
  3311. } else {
  3312. return localInput.valueOf() < this.clone().startOf(units).valueOf();
  3313. }
  3314. }
  3315. function isBefore(input, units) {
  3316. var localInput = isMoment(input) ? input : createLocal(input);
  3317. if (!(this.isValid() && localInput.isValid())) {
  3318. return false;
  3319. }
  3320. units = normalizeUnits(units) || 'millisecond';
  3321. if (units === 'millisecond') {
  3322. return this.valueOf() < localInput.valueOf();
  3323. } else {
  3324. return this.clone().endOf(units).valueOf() < localInput.valueOf();
  3325. }
  3326. }
  3327. function isBetween(from, to, units, inclusivity) {
  3328. var localFrom = isMoment(from) ? from : createLocal(from),
  3329. localTo = isMoment(to) ? to : createLocal(to);
  3330. if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) {
  3331. return false;
  3332. }
  3333. inclusivity = inclusivity || '()';
  3334. return (
  3335. (inclusivity[0] === '('
  3336. ? this.isAfter(localFrom, units)
  3337. : !this.isBefore(localFrom, units)) &&
  3338. (inclusivity[1] === ')'
  3339. ? this.isBefore(localTo, units)
  3340. : !this.isAfter(localTo, units))
  3341. );
  3342. }
  3343. function isSame(input, units) {
  3344. var localInput = isMoment(input) ? input : createLocal(input),
  3345. inputMs;
  3346. if (!(this.isValid() && localInput.isValid())) {
  3347. return false;
  3348. }
  3349. units = normalizeUnits(units) || 'millisecond';
  3350. if (units === 'millisecond') {
  3351. return this.valueOf() === localInput.valueOf();
  3352. } else {
  3353. inputMs = localInput.valueOf();
  3354. return (
  3355. this.clone().startOf(units).valueOf() <= inputMs &&
  3356. inputMs <= this.clone().endOf(units).valueOf()
  3357. );
  3358. }
  3359. }
  3360. function isSameOrAfter(input, units) {
  3361. return this.isSame(input, units) || this.isAfter(input, units);
  3362. }
  3363. function isSameOrBefore(input, units) {
  3364. return this.isSame(input, units) || this.isBefore(input, units);
  3365. }
  3366. function diff(input, units, asFloat) {
  3367. var that, zoneDelta, output;
  3368. if (!this.isValid()) {
  3369. return NaN;
  3370. }
  3371. that = cloneWithOffset(input, this);
  3372. if (!that.isValid()) {
  3373. return NaN;
  3374. }
  3375. zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;
  3376. units = normalizeUnits(units);
  3377. switch (units) {
  3378. case 'year':
  3379. output = monthDiff(this, that) / 12;
  3380. break;
  3381. case 'month':
  3382. output = monthDiff(this, that);
  3383. break;
  3384. case 'quarter':
  3385. output = monthDiff(this, that) / 3;
  3386. break;
  3387. case 'second':
  3388. output = (this - that) / 1e3;
  3389. break; // 1000
  3390. case 'minute':
  3391. output = (this - that) / 6e4;
  3392. break; // 1000 * 60
  3393. case 'hour':
  3394. output = (this - that) / 36e5;
  3395. break; // 1000 * 60 * 60
  3396. case 'day':
  3397. output = (this - that - zoneDelta) / 864e5;
  3398. break; // 1000 * 60 * 60 * 24, negate dst
  3399. case 'week':
  3400. output = (this - that - zoneDelta) / 6048e5;
  3401. break; // 1000 * 60 * 60 * 24 * 7, negate dst
  3402. default:
  3403. output = this - that;
  3404. }
  3405. return asFloat ? output : absFloor(output);
  3406. }
  3407. function monthDiff(a, b) {
  3408. if (a.date() < b.date()) {
  3409. // end-of-month calculations work correct when the start month has more
  3410. // days than the end month.
  3411. return -monthDiff(b, a);
  3412. }
  3413. // difference in months
  3414. var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()),
  3415. // b is in (anchor - 1 month, anchor + 1 month)
  3416. anchor = a.clone().add(wholeMonthDiff, 'months'),
  3417. anchor2,
  3418. adjust;
  3419. if (b - anchor < 0) {
  3420. anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');
  3421. // linear across the month
  3422. adjust = (b - anchor) / (anchor - anchor2);
  3423. } else {
  3424. anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');
  3425. // linear across the month
  3426. adjust = (b - anchor) / (anchor2 - anchor);
  3427. }
  3428. //check for negative zero, return zero if negative zero
  3429. return -(wholeMonthDiff + adjust) || 0;
  3430. }
  3431. hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
  3432. hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';
  3433. function toString() {
  3434. return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
  3435. }
  3436. function toISOString(keepOffset) {
  3437. if (!this.isValid()) {
  3438. return null;
  3439. }
  3440. var utc = keepOffset !== true,
  3441. m = utc ? this.clone().utc() : this;
  3442. if (m.year() < 0 || m.year() > 9999) {
  3443. return formatMoment(
  3444. m,
  3445. utc
  3446. ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]'
  3447. : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ'
  3448. );
  3449. }
  3450. if (isFunction(Date.prototype.toISOString)) {
  3451. // native implementation is ~50x faster, use it when we can
  3452. if (utc) {
  3453. return this.toDate().toISOString();
  3454. } else {
  3455. return new Date(this.valueOf() + this.utcOffset() * 60 * 1000)
  3456. .toISOString()
  3457. .replace('Z', formatMoment(m, 'Z'));
  3458. }
  3459. }
  3460. return formatMoment(
  3461. m,
  3462. utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ'
  3463. );
  3464. }
  3465. /**
  3466. * Return a human readable representation of a moment that can
  3467. * also be evaluated to get a new moment which is the same
  3468. *
  3469. * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
  3470. */
  3471. function inspect() {
  3472. if (!this.isValid()) {
  3473. return 'moment.invalid(/* ' + this._i + ' */)';
  3474. }
  3475. var func = 'moment',
  3476. zone = '',
  3477. prefix,
  3478. year,
  3479. datetime,
  3480. suffix;
  3481. if (!this.isLocal()) {
  3482. func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';
  3483. zone = 'Z';
  3484. }
  3485. prefix = '[' + func + '("]';
  3486. year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY';
  3487. datetime = '-MM-DD[T]HH:mm:ss.SSS';
  3488. suffix = zone + '[")]';
  3489. return this.format(prefix + year + datetime + suffix);
  3490. }
  3491. function format(inputString) {
  3492. if (!inputString) {
  3493. inputString = this.isUtc()
  3494. ? hooks.defaultFormatUtc
  3495. : hooks.defaultFormat;
  3496. }
  3497. var output = formatMoment(this, inputString);
  3498. return this.localeData().postformat(output);
  3499. }
  3500. function from(time, withoutSuffix) {
  3501. if (
  3502. this.isValid() &&
  3503. ((isMoment(time) && time.isValid()) || createLocal(time).isValid())
  3504. ) {
  3505. return createDuration({ to: this, from: time })
  3506. .locale(this.locale())
  3507. .humanize(!withoutSuffix);
  3508. } else {
  3509. return this.localeData().invalidDate();
  3510. }
  3511. }
  3512. function fromNow(withoutSuffix) {
  3513. return this.from(createLocal(), withoutSuffix);
  3514. }
  3515. function to(time, withoutSuffix) {
  3516. if (
  3517. this.isValid() &&
  3518. ((isMoment(time) && time.isValid()) || createLocal(time).isValid())
  3519. ) {
  3520. return createDuration({ from: this, to: time })
  3521. .locale(this.locale())
  3522. .humanize(!withoutSuffix);
  3523. } else {
  3524. return this.localeData().invalidDate();
  3525. }
  3526. }
  3527. function toNow(withoutSuffix) {
  3528. return this.to(createLocal(), withoutSuffix);
  3529. }
  3530. // If passed a locale key, it will set the locale for this
  3531. // instance. Otherwise, it will return the locale configuration
  3532. // variables for this instance.
  3533. function locale(key) {
  3534. var newLocaleData;
  3535. if (key === undefined) {
  3536. return this._locale._abbr;
  3537. } else {
  3538. newLocaleData = getLocale(key);
  3539. if (newLocaleData != null) {
  3540. this._locale = newLocaleData;
  3541. }
  3542. return this;
  3543. }
  3544. }
  3545. var lang = deprecate(
  3546. 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
  3547. function (key) {
  3548. if (key === undefined) {
  3549. return this.localeData();
  3550. } else {
  3551. return this.locale(key);
  3552. }
  3553. }
  3554. );
  3555. function localeData() {
  3556. return this._locale;
  3557. }
  3558. var MS_PER_SECOND = 1000,
  3559. MS_PER_MINUTE = 60 * MS_PER_SECOND,
  3560. MS_PER_HOUR = 60 * MS_PER_MINUTE,
  3561. MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;
  3562. // actual modulo - handles negative numbers (for dates before 1970):
  3563. function mod$1(dividend, divisor) {
  3564. return ((dividend % divisor) + divisor) % divisor;
  3565. }
  3566. function localStartOfDate(y, m, d) {
  3567. // the date constructor remaps years 0-99 to 1900-1999
  3568. if (y < 100 && y >= 0) {
  3569. // preserve leap years using a full 400 year cycle, then reset
  3570. return new Date(y + 400, m, d) - MS_PER_400_YEARS;
  3571. } else {
  3572. return new Date(y, m, d).valueOf();
  3573. }
  3574. }
  3575. function utcStartOfDate(y, m, d) {
  3576. // Date.UTC remaps years 0-99 to 1900-1999
  3577. if (y < 100 && y >= 0) {
  3578. // preserve leap years using a full 400 year cycle, then reset
  3579. return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;
  3580. } else {
  3581. return Date.UTC(y, m, d);
  3582. }
  3583. }
  3584. function startOf(units) {
  3585. var time, startOfDate;
  3586. units = normalizeUnits(units);
  3587. if (units === undefined || units === 'millisecond' || !this.isValid()) {
  3588. return this;
  3589. }
  3590. startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
  3591. switch (units) {
  3592. case 'year':
  3593. time = startOfDate(this.year(), 0, 1);
  3594. break;
  3595. case 'quarter':
  3596. time = startOfDate(
  3597. this.year(),
  3598. this.month() - (this.month() % 3),
  3599. 1
  3600. );
  3601. break;
  3602. case 'month':
  3603. time = startOfDate(this.year(), this.month(), 1);
  3604. break;
  3605. case 'week':
  3606. time = startOfDate(
  3607. this.year(),
  3608. this.month(),
  3609. this.date() - this.weekday()
  3610. );
  3611. break;
  3612. case 'isoWeek':
  3613. time = startOfDate(
  3614. this.year(),
  3615. this.month(),
  3616. this.date() - (this.isoWeekday() - 1)
  3617. );
  3618. break;
  3619. case 'day':
  3620. case 'date':
  3621. time = startOfDate(this.year(), this.month(), this.date());
  3622. break;
  3623. case 'hour':
  3624. time = this._d.valueOf();
  3625. time -= mod$1(
  3626. time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
  3627. MS_PER_HOUR
  3628. );
  3629. break;
  3630. case 'minute':
  3631. time = this._d.valueOf();
  3632. time -= mod$1(time, MS_PER_MINUTE);
  3633. break;
  3634. case 'second':
  3635. time = this._d.valueOf();
  3636. time -= mod$1(time, MS_PER_SECOND);
  3637. break;
  3638. }
  3639. this._d.setTime(time);
  3640. hooks.updateOffset(this, true);
  3641. return this;
  3642. }
  3643. function endOf(units) {
  3644. var time, startOfDate;
  3645. units = normalizeUnits(units);
  3646. if (units === undefined || units === 'millisecond' || !this.isValid()) {
  3647. return this;
  3648. }
  3649. startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
  3650. switch (units) {
  3651. case 'year':
  3652. time = startOfDate(this.year() + 1, 0, 1) - 1;
  3653. break;
  3654. case 'quarter':
  3655. time =
  3656. startOfDate(
  3657. this.year(),
  3658. this.month() - (this.month() % 3) + 3,
  3659. 1
  3660. ) - 1;
  3661. break;
  3662. case 'month':
  3663. time = startOfDate(this.year(), this.month() + 1, 1) - 1;
  3664. break;
  3665. case 'week':
  3666. time =
  3667. startOfDate(
  3668. this.year(),
  3669. this.month(),
  3670. this.date() - this.weekday() + 7
  3671. ) - 1;
  3672. break;
  3673. case 'isoWeek':
  3674. time =
  3675. startOfDate(
  3676. this.year(),
  3677. this.month(),
  3678. this.date() - (this.isoWeekday() - 1) + 7
  3679. ) - 1;
  3680. break;
  3681. case 'day':
  3682. case 'date':
  3683. time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;
  3684. break;
  3685. case 'hour':
  3686. time = this._d.valueOf();
  3687. time +=
  3688. MS_PER_HOUR -
  3689. mod$1(
  3690. time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
  3691. MS_PER_HOUR
  3692. ) -
  3693. 1;
  3694. break;
  3695. case 'minute':
  3696. time = this._d.valueOf();
  3697. time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;
  3698. break;
  3699. case 'second':
  3700. time = this._d.valueOf();
  3701. time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;
  3702. break;
  3703. }
  3704. this._d.setTime(time);
  3705. hooks.updateOffset(this, true);
  3706. return this;
  3707. }
  3708. function valueOf() {
  3709. return this._d.valueOf() - (this._offset || 0) * 60000;
  3710. }
  3711. function unix() {
  3712. return Math.floor(this.valueOf() / 1000);
  3713. }
  3714. function toDate() {
  3715. return new Date(this.valueOf());
  3716. }
  3717. function toArray() {
  3718. var m = this;
  3719. return [
  3720. m.year(),
  3721. m.month(),
  3722. m.date(),
  3723. m.hour(),
  3724. m.minute(),
  3725. m.second(),
  3726. m.millisecond(),
  3727. ];
  3728. }
  3729. function toObject() {
  3730. var m = this;
  3731. return {
  3732. years: m.year(),
  3733. months: m.month(),
  3734. date: m.date(),
  3735. hours: m.hours(),
  3736. minutes: m.minutes(),
  3737. seconds: m.seconds(),
  3738. milliseconds: m.milliseconds(),
  3739. };
  3740. }
  3741. function toJSON() {
  3742. // new Date(NaN).toJSON() === null
  3743. return this.isValid() ? this.toISOString() : null;
  3744. }
  3745. function isValid$2() {
  3746. return isValid(this);
  3747. }
  3748. function parsingFlags() {
  3749. return extend({}, getParsingFlags(this));
  3750. }
  3751. function invalidAt() {
  3752. return getParsingFlags(this).overflow;
  3753. }
  3754. function creationData() {
  3755. return {
  3756. input: this._i,
  3757. format: this._f,
  3758. locale: this._locale,
  3759. isUTC: this._isUTC,
  3760. strict: this._strict,
  3761. };
  3762. }
  3763. addFormatToken('N', 0, 0, 'eraAbbr');
  3764. addFormatToken('NN', 0, 0, 'eraAbbr');
  3765. addFormatToken('NNN', 0, 0, 'eraAbbr');
  3766. addFormatToken('NNNN', 0, 0, 'eraName');
  3767. addFormatToken('NNNNN', 0, 0, 'eraNarrow');
  3768. addFormatToken('y', ['y', 1], 'yo', 'eraYear');
  3769. addFormatToken('y', ['yy', 2], 0, 'eraYear');
  3770. addFormatToken('y', ['yyy', 3], 0, 'eraYear');
  3771. addFormatToken('y', ['yyyy', 4], 0, 'eraYear');
  3772. addRegexToken('N', matchEraAbbr);
  3773. addRegexToken('NN', matchEraAbbr);
  3774. addRegexToken('NNN', matchEraAbbr);
  3775. addRegexToken('NNNN', matchEraName);
  3776. addRegexToken('NNNNN', matchEraNarrow);
  3777. addParseToken(
  3778. ['N', 'NN', 'NNN', 'NNNN', 'NNNNN'],
  3779. function (input, array, config, token) {
  3780. var era = config._locale.erasParse(input, token, config._strict);
  3781. if (era) {
  3782. getParsingFlags(config).era = era;
  3783. } else {
  3784. getParsingFlags(config).invalidEra = input;
  3785. }
  3786. }
  3787. );
  3788. addRegexToken('y', matchUnsigned);
  3789. addRegexToken('yy', matchUnsigned);
  3790. addRegexToken('yyy', matchUnsigned);
  3791. addRegexToken('yyyy', matchUnsigned);
  3792. addRegexToken('yo', matchEraYearOrdinal);
  3793. addParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR);
  3794. addParseToken(['yo'], function (input, array, config, token) {
  3795. var match;
  3796. if (config._locale._eraYearOrdinalRegex) {
  3797. match = input.match(config._locale._eraYearOrdinalRegex);
  3798. }
  3799. if (config._locale.eraYearOrdinalParse) {
  3800. array[YEAR] = config._locale.eraYearOrdinalParse(input, match);
  3801. } else {
  3802. array[YEAR] = parseInt(input, 10);
  3803. }
  3804. });
  3805. function localeEras(m, format) {
  3806. var i,
  3807. l,
  3808. date,
  3809. eras = this._eras || getLocale('en')._eras;
  3810. for (i = 0, l = eras.length; i < l; ++i) {
  3811. switch (typeof eras[i].since) {
  3812. case 'string':
  3813. // truncate time
  3814. date = hooks(eras[i].since).startOf('day');
  3815. eras[i].since = date.valueOf();
  3816. break;
  3817. }
  3818. switch (typeof eras[i].until) {
  3819. case 'undefined':
  3820. eras[i].until = +Infinity;
  3821. break;
  3822. case 'string':
  3823. // truncate time
  3824. date = hooks(eras[i].until).startOf('day').valueOf();
  3825. eras[i].until = date.valueOf();
  3826. break;
  3827. }
  3828. }
  3829. return eras;
  3830. }
  3831. function localeErasParse(eraName, format, strict) {
  3832. var i,
  3833. l,
  3834. eras = this.eras(),
  3835. name,
  3836. abbr,
  3837. narrow;
  3838. eraName = eraName.toUpperCase();
  3839. for (i = 0, l = eras.length; i < l; ++i) {
  3840. name = eras[i].name.toUpperCase();
  3841. abbr = eras[i].abbr.toUpperCase();
  3842. narrow = eras[i].narrow.toUpperCase();
  3843. if (strict) {
  3844. switch (format) {
  3845. case 'N':
  3846. case 'NN':
  3847. case 'NNN':
  3848. if (abbr === eraName) {
  3849. return eras[i];
  3850. }
  3851. break;
  3852. case 'NNNN':
  3853. if (name === eraName) {
  3854. return eras[i];
  3855. }
  3856. break;
  3857. case 'NNNNN':
  3858. if (narrow === eraName) {
  3859. return eras[i];
  3860. }
  3861. break;
  3862. }
  3863. } else if ([name, abbr, narrow].indexOf(eraName) >= 0) {
  3864. return eras[i];
  3865. }
  3866. }
  3867. }
  3868. function localeErasConvertYear(era, year) {
  3869. var dir = era.since <= era.until ? +1 : -1;
  3870. if (year === undefined) {
  3871. return hooks(era.since).year();
  3872. } else {
  3873. return hooks(era.since).year() + (year - era.offset) * dir;
  3874. }
  3875. }
  3876. function getEraName() {
  3877. var i,
  3878. l,
  3879. val,
  3880. eras = this.localeData().eras();
  3881. for (i = 0, l = eras.length; i < l; ++i) {
  3882. // truncate time
  3883. val = this.clone().startOf('day').valueOf();
  3884. if (eras[i].since <= val && val <= eras[i].until) {
  3885. return eras[i].name;
  3886. }
  3887. if (eras[i].until <= val && val <= eras[i].since) {
  3888. return eras[i].name;
  3889. }
  3890. }
  3891. return '';
  3892. }
  3893. function getEraNarrow() {
  3894. var i,
  3895. l,
  3896. val,
  3897. eras = this.localeData().eras();
  3898. for (i = 0, l = eras.length; i < l; ++i) {
  3899. // truncate time
  3900. val = this.clone().startOf('day').valueOf();
  3901. if (eras[i].since <= val && val <= eras[i].until) {
  3902. return eras[i].narrow;
  3903. }
  3904. if (eras[i].until <= val && val <= eras[i].since) {
  3905. return eras[i].narrow;
  3906. }
  3907. }
  3908. return '';
  3909. }
  3910. function getEraAbbr() {
  3911. var i,
  3912. l,
  3913. val,
  3914. eras = this.localeData().eras();
  3915. for (i = 0, l = eras.length; i < l; ++i) {
  3916. // truncate time
  3917. val = this.clone().startOf('day').valueOf();
  3918. if (eras[i].since <= val && val <= eras[i].until) {
  3919. return eras[i].abbr;
  3920. }
  3921. if (eras[i].until <= val && val <= eras[i].since) {
  3922. return eras[i].abbr;
  3923. }
  3924. }
  3925. return '';
  3926. }
  3927. function getEraYear() {
  3928. var i,
  3929. l,
  3930. dir,
  3931. val,
  3932. eras = this.localeData().eras();
  3933. for (i = 0, l = eras.length; i < l; ++i) {
  3934. dir = eras[i].since <= eras[i].until ? +1 : -1;
  3935. // truncate time
  3936. val = this.clone().startOf('day').valueOf();
  3937. if (
  3938. (eras[i].since <= val && val <= eras[i].until) ||
  3939. (eras[i].until <= val && val <= eras[i].since)
  3940. ) {
  3941. return (
  3942. (this.year() - hooks(eras[i].since).year()) * dir +
  3943. eras[i].offset
  3944. );
  3945. }
  3946. }
  3947. return this.year();
  3948. }
  3949. function erasNameRegex(isStrict) {
  3950. if (!hasOwnProp(this, '_erasNameRegex')) {
  3951. computeErasParse.call(this);
  3952. }
  3953. return isStrict ? this._erasNameRegex : this._erasRegex;
  3954. }
  3955. function erasAbbrRegex(isStrict) {
  3956. if (!hasOwnProp(this, '_erasAbbrRegex')) {
  3957. computeErasParse.call(this);
  3958. }
  3959. return isStrict ? this._erasAbbrRegex : this._erasRegex;
  3960. }
  3961. function erasNarrowRegex(isStrict) {
  3962. if (!hasOwnProp(this, '_erasNarrowRegex')) {
  3963. computeErasParse.call(this);
  3964. }
  3965. return isStrict ? this._erasNarrowRegex : this._erasRegex;
  3966. }
  3967. function matchEraAbbr(isStrict, locale) {
  3968. return locale.erasAbbrRegex(isStrict);
  3969. }
  3970. function matchEraName(isStrict, locale) {
  3971. return locale.erasNameRegex(isStrict);
  3972. }
  3973. function matchEraNarrow(isStrict, locale) {
  3974. return locale.erasNarrowRegex(isStrict);
  3975. }
  3976. function matchEraYearOrdinal(isStrict, locale) {
  3977. return locale._eraYearOrdinalRegex || matchUnsigned;
  3978. }
  3979. function computeErasParse() {
  3980. var abbrPieces = [],
  3981. namePieces = [],
  3982. narrowPieces = [],
  3983. mixedPieces = [],
  3984. i,
  3985. l,
  3986. eras = this.eras();
  3987. for (i = 0, l = eras.length; i < l; ++i) {
  3988. namePieces.push(regexEscape(eras[i].name));
  3989. abbrPieces.push(regexEscape(eras[i].abbr));
  3990. narrowPieces.push(regexEscape(eras[i].narrow));
  3991. mixedPieces.push(regexEscape(eras[i].name));
  3992. mixedPieces.push(regexEscape(eras[i].abbr));
  3993. mixedPieces.push(regexEscape(eras[i].narrow));
  3994. }
  3995. this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  3996. this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i');
  3997. this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i');
  3998. this._erasNarrowRegex = new RegExp(
  3999. '^(' + narrowPieces.join('|') + ')',
  4000. 'i'
  4001. );
  4002. }
  4003. // FORMATTING
  4004. addFormatToken(0, ['gg', 2], 0, function () {
  4005. return this.weekYear() % 100;
  4006. });
  4007. addFormatToken(0, ['GG', 2], 0, function () {
  4008. return this.isoWeekYear() % 100;
  4009. });
  4010. function addWeekYearFormatToken(token, getter) {
  4011. addFormatToken(0, [token, token.length], 0, getter);
  4012. }
  4013. addWeekYearFormatToken('gggg', 'weekYear');
  4014. addWeekYearFormatToken('ggggg', 'weekYear');
  4015. addWeekYearFormatToken('GGGG', 'isoWeekYear');
  4016. addWeekYearFormatToken('GGGGG', 'isoWeekYear');
  4017. // ALIASES
  4018. addUnitAlias('weekYear', 'gg');
  4019. addUnitAlias('isoWeekYear', 'GG');
  4020. // PRIORITY
  4021. addUnitPriority('weekYear', 1);
  4022. addUnitPriority('isoWeekYear', 1);
  4023. // PARSING
  4024. addRegexToken('G', matchSigned);
  4025. addRegexToken('g', matchSigned);
  4026. addRegexToken('GG', match1to2, match2);
  4027. addRegexToken('gg', match1to2, match2);
  4028. addRegexToken('GGGG', match1to4, match4);
  4029. addRegexToken('gggg', match1to4, match4);
  4030. addRegexToken('GGGGG', match1to6, match6);
  4031. addRegexToken('ggggg', match1to6, match6);
  4032. addWeekParseToken(
  4033. ['gggg', 'ggggg', 'GGGG', 'GGGGG'],
  4034. function (input, week, config, token) {
  4035. week[token.substr(0, 2)] = toInt(input);
  4036. }
  4037. );
  4038. addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
  4039. week[token] = hooks.parseTwoDigitYear(input);
  4040. });
  4041. // MOMENTS
  4042. function getSetWeekYear(input) {
  4043. return getSetWeekYearHelper.call(
  4044. this,
  4045. input,
  4046. this.week(),
  4047. this.weekday(),
  4048. this.localeData()._week.dow,
  4049. this.localeData()._week.doy
  4050. );
  4051. }
  4052. function getSetISOWeekYear(input) {
  4053. return getSetWeekYearHelper.call(
  4054. this,
  4055. input,
  4056. this.isoWeek(),
  4057. this.isoWeekday(),
  4058. 1,
  4059. 4
  4060. );
  4061. }
  4062. function getISOWeeksInYear() {
  4063. return weeksInYear(this.year(), 1, 4);
  4064. }
  4065. function getISOWeeksInISOWeekYear() {
  4066. return weeksInYear(this.isoWeekYear(), 1, 4);
  4067. }
  4068. function getWeeksInYear() {
  4069. var weekInfo = this.localeData()._week;
  4070. return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
  4071. }
  4072. function getWeeksInWeekYear() {
  4073. var weekInfo = this.localeData()._week;
  4074. return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy);
  4075. }
  4076. function getSetWeekYearHelper(input, week, weekday, dow, doy) {
  4077. var weeksTarget;
  4078. if (input == null) {
  4079. return weekOfYear(this, dow, doy).year;
  4080. } else {
  4081. weeksTarget = weeksInYear(input, dow, doy);
  4082. if (week > weeksTarget) {
  4083. week = weeksTarget;
  4084. }
  4085. return setWeekAll.call(this, input, week, weekday, dow, doy);
  4086. }
  4087. }
  4088. function setWeekAll(weekYear, week, weekday, dow, doy) {
  4089. var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),
  4090. date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);
  4091. this.year(date.getUTCFullYear());
  4092. this.month(date.getUTCMonth());
  4093. this.date(date.getUTCDate());
  4094. return this;
  4095. }
  4096. // FORMATTING
  4097. addFormatToken('Q', 0, 'Qo', 'quarter');
  4098. // ALIASES
  4099. addUnitAlias('quarter', 'Q');
  4100. // PRIORITY
  4101. addUnitPriority('quarter', 7);
  4102. // PARSING
  4103. addRegexToken('Q', match1);
  4104. addParseToken('Q', function (input, array) {
  4105. array[MONTH] = (toInt(input) - 1) * 3;
  4106. });
  4107. // MOMENTS
  4108. function getSetQuarter(input) {
  4109. return input == null
  4110. ? Math.ceil((this.month() + 1) / 3)
  4111. : this.month((input - 1) * 3 + (this.month() % 3));
  4112. }
  4113. // FORMATTING
  4114. addFormatToken('D', ['DD', 2], 'Do', 'date');
  4115. // ALIASES
  4116. addUnitAlias('date', 'D');
  4117. // PRIORITY
  4118. addUnitPriority('date', 9);
  4119. // PARSING
  4120. addRegexToken('D', match1to2);
  4121. addRegexToken('DD', match1to2, match2);
  4122. addRegexToken('Do', function (isStrict, locale) {
  4123. // TODO: Remove "ordinalParse" fallback in next major release.
  4124. return isStrict
  4125. ? locale._dayOfMonthOrdinalParse || locale._ordinalParse
  4126. : locale._dayOfMonthOrdinalParseLenient;
  4127. });
  4128. addParseToken(['D', 'DD'], DATE);
  4129. addParseToken('Do', function (input, array) {
  4130. array[DATE] = toInt(input.match(match1to2)[0]);
  4131. });
  4132. // MOMENTS
  4133. var getSetDayOfMonth = makeGetSet('Date', true);
  4134. // FORMATTING
  4135. addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
  4136. // ALIASES
  4137. addUnitAlias('dayOfYear', 'DDD');
  4138. // PRIORITY
  4139. addUnitPriority('dayOfYear', 4);
  4140. // PARSING
  4141. addRegexToken('DDD', match1to3);
  4142. addRegexToken('DDDD', match3);
  4143. addParseToken(['DDD', 'DDDD'], function (input, array, config) {
  4144. config._dayOfYear = toInt(input);
  4145. });
  4146. // HELPERS
  4147. // MOMENTS
  4148. function getSetDayOfYear(input) {
  4149. var dayOfYear =
  4150. Math.round(
  4151. (this.clone().startOf('day') - this.clone().startOf('year')) / 864e5
  4152. ) + 1;
  4153. return input == null ? dayOfYear : this.add(input - dayOfYear, 'd');
  4154. }
  4155. // FORMATTING
  4156. addFormatToken('m', ['mm', 2], 0, 'minute');
  4157. // ALIASES
  4158. addUnitAlias('minute', 'm');
  4159. // PRIORITY
  4160. addUnitPriority('minute', 14);
  4161. // PARSING
  4162. addRegexToken('m', match1to2);
  4163. addRegexToken('mm', match1to2, match2);
  4164. addParseToken(['m', 'mm'], MINUTE);
  4165. // MOMENTS
  4166. var getSetMinute = makeGetSet('Minutes', false);
  4167. // FORMATTING
  4168. addFormatToken('s', ['ss', 2], 0, 'second');
  4169. // ALIASES
  4170. addUnitAlias('second', 's');
  4171. // PRIORITY
  4172. addUnitPriority('second', 15);
  4173. // PARSING
  4174. addRegexToken('s', match1to2);
  4175. addRegexToken('ss', match1to2, match2);
  4176. addParseToken(['s', 'ss'], SECOND);
  4177. // MOMENTS
  4178. var getSetSecond = makeGetSet('Seconds', false);
  4179. // FORMATTING
  4180. addFormatToken('S', 0, 0, function () {
  4181. return ~~(this.millisecond() / 100);
  4182. });
  4183. addFormatToken(0, ['SS', 2], 0, function () {
  4184. return ~~(this.millisecond() / 10);
  4185. });
  4186. addFormatToken(0, ['SSS', 3], 0, 'millisecond');
  4187. addFormatToken(0, ['SSSS', 4], 0, function () {
  4188. return this.millisecond() * 10;
  4189. });
  4190. addFormatToken(0, ['SSSSS', 5], 0, function () {
  4191. return this.millisecond() * 100;
  4192. });
  4193. addFormatToken(0, ['SSSSSS', 6], 0, function () {
  4194. return this.millisecond() * 1000;
  4195. });
  4196. addFormatToken(0, ['SSSSSSS', 7], 0, function () {
  4197. return this.millisecond() * 10000;
  4198. });
  4199. addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
  4200. return this.millisecond() * 100000;
  4201. });
  4202. addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
  4203. return this.millisecond() * 1000000;
  4204. });
  4205. // ALIASES
  4206. addUnitAlias('millisecond', 'ms');
  4207. // PRIORITY
  4208. addUnitPriority('millisecond', 16);
  4209. // PARSING
  4210. addRegexToken('S', match1to3, match1);
  4211. addRegexToken('SS', match1to3, match2);
  4212. addRegexToken('SSS', match1to3, match3);
  4213. var token, getSetMillisecond;
  4214. for (token = 'SSSS'; token.length <= 9; token += 'S') {
  4215. addRegexToken(token, matchUnsigned);
  4216. }
  4217. function parseMs(input, array) {
  4218. array[MILLISECOND] = toInt(('0.' + input) * 1000);
  4219. }
  4220. for (token = 'S'; token.length <= 9; token += 'S') {
  4221. addParseToken(token, parseMs);
  4222. }
  4223. getSetMillisecond = makeGetSet('Milliseconds', false);
  4224. // FORMATTING
  4225. addFormatToken('z', 0, 0, 'zoneAbbr');
  4226. addFormatToken('zz', 0, 0, 'zoneName');
  4227. // MOMENTS
  4228. function getZoneAbbr() {
  4229. return this._isUTC ? 'UTC' : '';
  4230. }
  4231. function getZoneName() {
  4232. return this._isUTC ? 'Coordinated Universal Time' : '';
  4233. }
  4234. var proto = Moment.prototype;
  4235. proto.add = add;
  4236. proto.calendar = calendar$1;
  4237. proto.clone = clone;
  4238. proto.diff = diff;
  4239. proto.endOf = endOf;
  4240. proto.format = format;
  4241. proto.from = from;
  4242. proto.fromNow = fromNow;
  4243. proto.to = to;
  4244. proto.toNow = toNow;
  4245. proto.get = stringGet;
  4246. proto.invalidAt = invalidAt;
  4247. proto.isAfter = isAfter;
  4248. proto.isBefore = isBefore;
  4249. proto.isBetween = isBetween;
  4250. proto.isSame = isSame;
  4251. proto.isSameOrAfter = isSameOrAfter;
  4252. proto.isSameOrBefore = isSameOrBefore;
  4253. proto.isValid = isValid$2;
  4254. proto.lang = lang;
  4255. proto.locale = locale;
  4256. proto.localeData = localeData;
  4257. proto.max = prototypeMax;
  4258. proto.min = prototypeMin;
  4259. proto.parsingFlags = parsingFlags;
  4260. proto.set = stringSet;
  4261. proto.startOf = startOf;
  4262. proto.subtract = subtract;
  4263. proto.toArray = toArray;
  4264. proto.toObject = toObject;
  4265. proto.toDate = toDate;
  4266. proto.toISOString = toISOString;
  4267. proto.inspect = inspect;
  4268. if (typeof Symbol !== 'undefined' && Symbol.for != null) {
  4269. proto[Symbol.for('nodejs.util.inspect.custom')] = function () {
  4270. return 'Moment<' + this.format() + '>';
  4271. };
  4272. }
  4273. proto.toJSON = toJSON;
  4274. proto.toString = toString;
  4275. proto.unix = unix;
  4276. proto.valueOf = valueOf;
  4277. proto.creationData = creationData;
  4278. proto.eraName = getEraName;
  4279. proto.eraNarrow = getEraNarrow;
  4280. proto.eraAbbr = getEraAbbr;
  4281. proto.eraYear = getEraYear;
  4282. proto.year = getSetYear;
  4283. proto.isLeapYear = getIsLeapYear;
  4284. proto.weekYear = getSetWeekYear;
  4285. proto.isoWeekYear = getSetISOWeekYear;
  4286. proto.quarter = proto.quarters = getSetQuarter;
  4287. proto.month = getSetMonth;
  4288. proto.daysInMonth = getDaysInMonth;
  4289. proto.week = proto.weeks = getSetWeek;
  4290. proto.isoWeek = proto.isoWeeks = getSetISOWeek;
  4291. proto.weeksInYear = getWeeksInYear;
  4292. proto.weeksInWeekYear = getWeeksInWeekYear;
  4293. proto.isoWeeksInYear = getISOWeeksInYear;
  4294. proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;
  4295. proto.date = getSetDayOfMonth;
  4296. proto.day = proto.days = getSetDayOfWeek;
  4297. proto.weekday = getSetLocaleDayOfWeek;
  4298. proto.isoWeekday = getSetISODayOfWeek;
  4299. proto.dayOfYear = getSetDayOfYear;
  4300. proto.hour = proto.hours = getSetHour;
  4301. proto.minute = proto.minutes = getSetMinute;
  4302. proto.second = proto.seconds = getSetSecond;
  4303. proto.millisecond = proto.milliseconds = getSetMillisecond;
  4304. proto.utcOffset = getSetOffset;
  4305. proto.utc = setOffsetToUTC;
  4306. proto.local = setOffsetToLocal;
  4307. proto.parseZone = setOffsetToParsedOffset;
  4308. proto.hasAlignedHourOffset = hasAlignedHourOffset;
  4309. proto.isDST = isDaylightSavingTime;
  4310. proto.isLocal = isLocal;
  4311. proto.isUtcOffset = isUtcOffset;
  4312. proto.isUtc = isUtc;
  4313. proto.isUTC = isUtc;
  4314. proto.zoneAbbr = getZoneAbbr;
  4315. proto.zoneName = getZoneName;
  4316. proto.dates = deprecate(
  4317. 'dates accessor is deprecated. Use date instead.',
  4318. getSetDayOfMonth
  4319. );
  4320. proto.months = deprecate(
  4321. 'months accessor is deprecated. Use month instead',
  4322. getSetMonth
  4323. );
  4324. proto.years = deprecate(
  4325. 'years accessor is deprecated. Use year instead',
  4326. getSetYear
  4327. );
  4328. proto.zone = deprecate(
  4329. 'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',
  4330. getSetZone
  4331. );
  4332. proto.isDSTShifted = deprecate(
  4333. 'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',
  4334. isDaylightSavingTimeShifted
  4335. );
  4336. function createUnix(input) {
  4337. return createLocal(input * 1000);
  4338. }
  4339. function createInZone() {
  4340. return createLocal.apply(null, arguments).parseZone();
  4341. }
  4342. function preParsePostFormat(string) {
  4343. return string;
  4344. }
  4345. var proto$1 = Locale.prototype;
  4346. proto$1.calendar = calendar;
  4347. proto$1.longDateFormat = longDateFormat;
  4348. proto$1.invalidDate = invalidDate;
  4349. proto$1.ordinal = ordinal;
  4350. proto$1.preparse = preParsePostFormat;
  4351. proto$1.postformat = preParsePostFormat;
  4352. proto$1.relativeTime = relativeTime;
  4353. proto$1.pastFuture = pastFuture;
  4354. proto$1.set = set;
  4355. proto$1.eras = localeEras;
  4356. proto$1.erasParse = localeErasParse;
  4357. proto$1.erasConvertYear = localeErasConvertYear;
  4358. proto$1.erasAbbrRegex = erasAbbrRegex;
  4359. proto$1.erasNameRegex = erasNameRegex;
  4360. proto$1.erasNarrowRegex = erasNarrowRegex;
  4361. proto$1.months = localeMonths;
  4362. proto$1.monthsShort = localeMonthsShort;
  4363. proto$1.monthsParse = localeMonthsParse;
  4364. proto$1.monthsRegex = monthsRegex;
  4365. proto$1.monthsShortRegex = monthsShortRegex;
  4366. proto$1.week = localeWeek;
  4367. proto$1.firstDayOfYear = localeFirstDayOfYear;
  4368. proto$1.firstDayOfWeek = localeFirstDayOfWeek;
  4369. proto$1.weekdays = localeWeekdays;
  4370. proto$1.weekdaysMin = localeWeekdaysMin;
  4371. proto$1.weekdaysShort = localeWeekdaysShort;
  4372. proto$1.weekdaysParse = localeWeekdaysParse;
  4373. proto$1.weekdaysRegex = weekdaysRegex;
  4374. proto$1.weekdaysShortRegex = weekdaysShortRegex;
  4375. proto$1.weekdaysMinRegex = weekdaysMinRegex;
  4376. proto$1.isPM = localeIsPM;
  4377. proto$1.meridiem = localeMeridiem;
  4378. function get$1(format, index, field, setter) {
  4379. var locale = getLocale(),
  4380. utc = createUTC().set(setter, index);
  4381. return locale[field](utc, format);
  4382. }
  4383. function listMonthsImpl(format, index, field) {
  4384. if (isNumber(format)) {
  4385. index = format;
  4386. format = undefined;
  4387. }
  4388. format = format || '';
  4389. if (index != null) {
  4390. return get$1(format, index, field, 'month');
  4391. }
  4392. var i,
  4393. out = [];
  4394. for (i = 0; i < 12; i++) {
  4395. out[i] = get$1(format, i, field, 'month');
  4396. }
  4397. return out;
  4398. }
  4399. // ()
  4400. // (5)
  4401. // (fmt, 5)
  4402. // (fmt)
  4403. // (true)
  4404. // (true, 5)
  4405. // (true, fmt, 5)
  4406. // (true, fmt)
  4407. function listWeekdaysImpl(localeSorted, format, index, field) {
  4408. if (typeof localeSorted === 'boolean') {
  4409. if (isNumber(format)) {
  4410. index = format;
  4411. format = undefined;
  4412. }
  4413. format = format || '';
  4414. } else {
  4415. format = localeSorted;
  4416. index = format;
  4417. localeSorted = false;
  4418. if (isNumber(format)) {
  4419. index = format;
  4420. format = undefined;
  4421. }
  4422. format = format || '';
  4423. }
  4424. var locale = getLocale(),
  4425. shift = localeSorted ? locale._week.dow : 0,
  4426. i,
  4427. out = [];
  4428. if (index != null) {
  4429. return get$1(format, (index + shift) % 7, field, 'day');
  4430. }
  4431. for (i = 0; i < 7; i++) {
  4432. out[i] = get$1(format, (i + shift) % 7, field, 'day');
  4433. }
  4434. return out;
  4435. }
  4436. function listMonths(format, index) {
  4437. return listMonthsImpl(format, index, 'months');
  4438. }
  4439. function listMonthsShort(format, index) {
  4440. return listMonthsImpl(format, index, 'monthsShort');
  4441. }
  4442. function listWeekdays(localeSorted, format, index) {
  4443. return listWeekdaysImpl(localeSorted, format, index, 'weekdays');
  4444. }
  4445. function listWeekdaysShort(localeSorted, format, index) {
  4446. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');
  4447. }
  4448. function listWeekdaysMin(localeSorted, format, index) {
  4449. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');
  4450. }
  4451. getSetGlobalLocale('en', {
  4452. eras: [
  4453. {
  4454. since: '0001-01-01',
  4455. until: +Infinity,
  4456. offset: 1,
  4457. name: 'Anno Domini',
  4458. narrow: 'AD',
  4459. abbr: 'AD',
  4460. },
  4461. {
  4462. since: '0000-12-31',
  4463. until: -Infinity,
  4464. offset: 1,
  4465. name: 'Before Christ',
  4466. narrow: 'BC',
  4467. abbr: 'BC',
  4468. },
  4469. ],
  4470. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  4471. ordinal: function (number) {
  4472. var b = number % 10,
  4473. output =
  4474. toInt((number % 100) / 10) === 1
  4475. ? 'th'
  4476. : b === 1
  4477. ? 'st'
  4478. : b === 2
  4479. ? 'nd'
  4480. : b === 3
  4481. ? 'rd'
  4482. : 'th';
  4483. return number + output;
  4484. },
  4485. });
  4486. // Side effect imports
  4487. hooks.lang = deprecate(
  4488. 'moment.lang is deprecated. Use moment.locale instead.',
  4489. getSetGlobalLocale
  4490. );
  4491. hooks.langData = deprecate(
  4492. 'moment.langData is deprecated. Use moment.localeData instead.',
  4493. getLocale
  4494. );
  4495. var mathAbs = Math.abs;
  4496. function abs() {
  4497. var data = this._data;
  4498. this._milliseconds = mathAbs(this._milliseconds);
  4499. this._days = mathAbs(this._days);
  4500. this._months = mathAbs(this._months);
  4501. data.milliseconds = mathAbs(data.milliseconds);
  4502. data.seconds = mathAbs(data.seconds);
  4503. data.minutes = mathAbs(data.minutes);
  4504. data.hours = mathAbs(data.hours);
  4505. data.months = mathAbs(data.months);
  4506. data.years = mathAbs(data.years);
  4507. return this;
  4508. }
  4509. function addSubtract$1(duration, input, value, direction) {
  4510. var other = createDuration(input, value);
  4511. duration._milliseconds += direction * other._milliseconds;
  4512. duration._days += direction * other._days;
  4513. duration._months += direction * other._months;
  4514. return duration._bubble();
  4515. }
  4516. // supports only 2.0-style add(1, 's') or add(duration)
  4517. function add$1(input, value) {
  4518. return addSubtract$1(this, input, value, 1);
  4519. }
  4520. // supports only 2.0-style subtract(1, 's') or subtract(duration)
  4521. function subtract$1(input, value) {
  4522. return addSubtract$1(this, input, value, -1);
  4523. }
  4524. function absCeil(number) {
  4525. if (number < 0) {
  4526. return Math.floor(number);
  4527. } else {
  4528. return Math.ceil(number);
  4529. }
  4530. }
  4531. function bubble() {
  4532. var milliseconds = this._milliseconds,
  4533. days = this._days,
  4534. months = this._months,
  4535. data = this._data,
  4536. seconds,
  4537. minutes,
  4538. hours,
  4539. years,
  4540. monthsFromDays;
  4541. // if we have a mix of positive and negative values, bubble down first
  4542. // check: https://github.com/moment/moment/issues/2166
  4543. if (
  4544. !(
  4545. (milliseconds >= 0 && days >= 0 && months >= 0) ||
  4546. (milliseconds <= 0 && days <= 0 && months <= 0)
  4547. )
  4548. ) {
  4549. milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
  4550. days = 0;
  4551. months = 0;
  4552. }
  4553. // The following code bubbles up values, see the tests for
  4554. // examples of what that means.
  4555. data.milliseconds = milliseconds % 1000;
  4556. seconds = absFloor(milliseconds / 1000);
  4557. data.seconds = seconds % 60;
  4558. minutes = absFloor(seconds / 60);
  4559. data.minutes = minutes % 60;
  4560. hours = absFloor(minutes / 60);
  4561. data.hours = hours % 24;
  4562. days += absFloor(hours / 24);
  4563. // convert days to months
  4564. monthsFromDays = absFloor(daysToMonths(days));
  4565. months += monthsFromDays;
  4566. days -= absCeil(monthsToDays(monthsFromDays));
  4567. // 12 months -> 1 year
  4568. years = absFloor(months / 12);
  4569. months %= 12;
  4570. data.days = days;
  4571. data.months = months;
  4572. data.years = years;
  4573. return this;
  4574. }
  4575. function daysToMonths(days) {
  4576. // 400 years have 146097 days (taking into account leap year rules)
  4577. // 400 years have 12 months === 4800
  4578. return (days * 4800) / 146097;
  4579. }
  4580. function monthsToDays(months) {
  4581. // the reverse of daysToMonths
  4582. return (months * 146097) / 4800;
  4583. }
  4584. function as(units) {
  4585. if (!this.isValid()) {
  4586. return NaN;
  4587. }
  4588. var days,
  4589. months,
  4590. milliseconds = this._milliseconds;
  4591. units = normalizeUnits(units);
  4592. if (units === 'month' || units === 'quarter' || units === 'year') {
  4593. days = this._days + milliseconds / 864e5;
  4594. months = this._months + daysToMonths(days);
  4595. switch (units) {
  4596. case 'month':
  4597. return months;
  4598. case 'quarter':
  4599. return months / 3;
  4600. case 'year':
  4601. return months / 12;
  4602. }
  4603. } else {
  4604. // handle milliseconds separately because of floating point math errors (issue #1867)
  4605. days = this._days + Math.round(monthsToDays(this._months));
  4606. switch (units) {
  4607. case 'week':
  4608. return days / 7 + milliseconds / 6048e5;
  4609. case 'day':
  4610. return days + milliseconds / 864e5;
  4611. case 'hour':
  4612. return days * 24 + milliseconds / 36e5;
  4613. case 'minute':
  4614. return days * 1440 + milliseconds / 6e4;
  4615. case 'second':
  4616. return days * 86400 + milliseconds / 1000;
  4617. // Math.floor prevents floating point math errors here
  4618. case 'millisecond':
  4619. return Math.floor(days * 864e5) + milliseconds;
  4620. default:
  4621. throw new Error('Unknown unit ' + units);
  4622. }
  4623. }
  4624. }
  4625. // TODO: Use this.as('ms')?
  4626. function valueOf$1() {
  4627. if (!this.isValid()) {
  4628. return NaN;
  4629. }
  4630. return (
  4631. this._milliseconds +
  4632. this._days * 864e5 +
  4633. (this._months % 12) * 2592e6 +
  4634. toInt(this._months / 12) * 31536e6
  4635. );
  4636. }
  4637. function makeAs(alias) {
  4638. return function () {
  4639. return this.as(alias);
  4640. };
  4641. }
  4642. var asMilliseconds = makeAs('ms'),
  4643. asSeconds = makeAs('s'),
  4644. asMinutes = makeAs('m'),
  4645. asHours = makeAs('h'),
  4646. asDays = makeAs('d'),
  4647. asWeeks = makeAs('w'),
  4648. asMonths = makeAs('M'),
  4649. asQuarters = makeAs('Q'),
  4650. asYears = makeAs('y');
  4651. function clone$1() {
  4652. return createDuration(this);
  4653. }
  4654. function get$2(units) {
  4655. units = normalizeUnits(units);
  4656. return this.isValid() ? this[units + 's']() : NaN;
  4657. }
  4658. function makeGetter(name) {
  4659. return function () {
  4660. return this.isValid() ? this._data[name] : NaN;
  4661. };
  4662. }
  4663. var milliseconds = makeGetter('milliseconds'),
  4664. seconds = makeGetter('seconds'),
  4665. minutes = makeGetter('minutes'),
  4666. hours = makeGetter('hours'),
  4667. days = makeGetter('days'),
  4668. months = makeGetter('months'),
  4669. years = makeGetter('years');
  4670. function weeks() {
  4671. return absFloor(this.days() / 7);
  4672. }
  4673. var round = Math.round,
  4674. thresholds = {
  4675. ss: 44, // a few seconds to seconds
  4676. s: 45, // seconds to minute
  4677. m: 45, // minutes to hour
  4678. h: 22, // hours to day
  4679. d: 26, // days to month/week
  4680. w: null, // weeks to month
  4681. M: 11, // months to year
  4682. };
  4683. // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
  4684. function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
  4685. return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
  4686. }
  4687. function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {
  4688. var duration = createDuration(posNegDuration).abs(),
  4689. seconds = round(duration.as('s')),
  4690. minutes = round(duration.as('m')),
  4691. hours = round(duration.as('h')),
  4692. days = round(duration.as('d')),
  4693. months = round(duration.as('M')),
  4694. weeks = round(duration.as('w')),
  4695. years = round(duration.as('y')),
  4696. a =
  4697. (seconds <= thresholds.ss && ['s', seconds]) ||
  4698. (seconds < thresholds.s && ['ss', seconds]) ||
  4699. (minutes <= 1 && ['m']) ||
  4700. (minutes < thresholds.m && ['mm', minutes]) ||
  4701. (hours <= 1 && ['h']) ||
  4702. (hours < thresholds.h && ['hh', hours]) ||
  4703. (days <= 1 && ['d']) ||
  4704. (days < thresholds.d && ['dd', days]);
  4705. if (thresholds.w != null) {
  4706. a =
  4707. a ||
  4708. (weeks <= 1 && ['w']) ||
  4709. (weeks < thresholds.w && ['ww', weeks]);
  4710. }
  4711. a = a ||
  4712. (months <= 1 && ['M']) ||
  4713. (months < thresholds.M && ['MM', months]) ||
  4714. (years <= 1 && ['y']) || ['yy', years];
  4715. a[2] = withoutSuffix;
  4716. a[3] = +posNegDuration > 0;
  4717. a[4] = locale;
  4718. return substituteTimeAgo.apply(null, a);
  4719. }
  4720. // This function allows you to set the rounding function for relative time strings
  4721. function getSetRelativeTimeRounding(roundingFunction) {
  4722. if (roundingFunction === undefined) {
  4723. return round;
  4724. }
  4725. if (typeof roundingFunction === 'function') {
  4726. round = roundingFunction;
  4727. return true;
  4728. }
  4729. return false;
  4730. }
  4731. // This function allows you to set a threshold for relative time strings
  4732. function getSetRelativeTimeThreshold(threshold, limit) {
  4733. if (thresholds[threshold] === undefined) {
  4734. return false;
  4735. }
  4736. if (limit === undefined) {
  4737. return thresholds[threshold];
  4738. }
  4739. thresholds[threshold] = limit;
  4740. if (threshold === 's') {
  4741. thresholds.ss = limit - 1;
  4742. }
  4743. return true;
  4744. }
  4745. function humanize(argWithSuffix, argThresholds) {
  4746. if (!this.isValid()) {
  4747. return this.localeData().invalidDate();
  4748. }
  4749. var withSuffix = false,
  4750. th = thresholds,
  4751. locale,
  4752. output;
  4753. if (typeof argWithSuffix === 'object') {
  4754. argThresholds = argWithSuffix;
  4755. argWithSuffix = false;
  4756. }
  4757. if (typeof argWithSuffix === 'boolean') {
  4758. withSuffix = argWithSuffix;
  4759. }
  4760. if (typeof argThresholds === 'object') {
  4761. th = Object.assign({}, thresholds, argThresholds);
  4762. if (argThresholds.s != null && argThresholds.ss == null) {
  4763. th.ss = argThresholds.s - 1;
  4764. }
  4765. }
  4766. locale = this.localeData();
  4767. output = relativeTime$1(this, !withSuffix, th, locale);
  4768. if (withSuffix) {
  4769. output = locale.pastFuture(+this, output);
  4770. }
  4771. return locale.postformat(output);
  4772. }
  4773. var abs$1 = Math.abs;
  4774. function sign(x) {
  4775. return (x > 0) - (x < 0) || +x;
  4776. }
  4777. function toISOString$1() {
  4778. // for ISO strings we do not use the normal bubbling rules:
  4779. // * milliseconds bubble up until they become hours
  4780. // * days do not bubble at all
  4781. // * months bubble up until they become years
  4782. // This is because there is no context-free conversion between hours and days
  4783. // (think of clock changes)
  4784. // and also not between days and months (28-31 days per month)
  4785. if (!this.isValid()) {
  4786. return this.localeData().invalidDate();
  4787. }
  4788. var seconds = abs$1(this._milliseconds) / 1000,
  4789. days = abs$1(this._days),
  4790. months = abs$1(this._months),
  4791. minutes,
  4792. hours,
  4793. years,
  4794. s,
  4795. total = this.asSeconds(),
  4796. totalSign,
  4797. ymSign,
  4798. daysSign,
  4799. hmsSign;
  4800. if (!total) {
  4801. // this is the same as C#'s (Noda) and python (isodate)...
  4802. // but not other JS (goog.date)
  4803. return 'P0D';
  4804. }
  4805. // 3600 seconds -> 60 minutes -> 1 hour
  4806. minutes = absFloor(seconds / 60);
  4807. hours = absFloor(minutes / 60);
  4808. seconds %= 60;
  4809. minutes %= 60;
  4810. // 12 months -> 1 year
  4811. years = absFloor(months / 12);
  4812. months %= 12;
  4813. // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
  4814. s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : '';
  4815. totalSign = total < 0 ? '-' : '';
  4816. ymSign = sign(this._months) !== sign(total) ? '-' : '';
  4817. daysSign = sign(this._days) !== sign(total) ? '-' : '';
  4818. hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';
  4819. return (
  4820. totalSign +
  4821. 'P' +
  4822. (years ? ymSign + years + 'Y' : '') +
  4823. (months ? ymSign + months + 'M' : '') +
  4824. (days ? daysSign + days + 'D' : '') +
  4825. (hours || minutes || seconds ? 'T' : '') +
  4826. (hours ? hmsSign + hours + 'H' : '') +
  4827. (minutes ? hmsSign + minutes + 'M' : '') +
  4828. (seconds ? hmsSign + s + 'S' : '')
  4829. );
  4830. }
  4831. var proto$2 = Duration.prototype;
  4832. proto$2.isValid = isValid$1;
  4833. proto$2.abs = abs;
  4834. proto$2.add = add$1;
  4835. proto$2.subtract = subtract$1;
  4836. proto$2.as = as;
  4837. proto$2.asMilliseconds = asMilliseconds;
  4838. proto$2.asSeconds = asSeconds;
  4839. proto$2.asMinutes = asMinutes;
  4840. proto$2.asHours = asHours;
  4841. proto$2.asDays = asDays;
  4842. proto$2.asWeeks = asWeeks;
  4843. proto$2.asMonths = asMonths;
  4844. proto$2.asQuarters = asQuarters;
  4845. proto$2.asYears = asYears;
  4846. proto$2.valueOf = valueOf$1;
  4847. proto$2._bubble = bubble;
  4848. proto$2.clone = clone$1;
  4849. proto$2.get = get$2;
  4850. proto$2.milliseconds = milliseconds;
  4851. proto$2.seconds = seconds;
  4852. proto$2.minutes = minutes;
  4853. proto$2.hours = hours;
  4854. proto$2.days = days;
  4855. proto$2.weeks = weeks;
  4856. proto$2.months = months;
  4857. proto$2.years = years;
  4858. proto$2.humanize = humanize;
  4859. proto$2.toISOString = toISOString$1;
  4860. proto$2.toString = toISOString$1;
  4861. proto$2.toJSON = toISOString$1;
  4862. proto$2.locale = locale;
  4863. proto$2.localeData = localeData;
  4864. proto$2.toIsoString = deprecate(
  4865. 'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',
  4866. toISOString$1
  4867. );
  4868. proto$2.lang = lang;
  4869. // FORMATTING
  4870. addFormatToken('X', 0, 0, 'unix');
  4871. addFormatToken('x', 0, 0, 'valueOf');
  4872. // PARSING
  4873. addRegexToken('x', matchSigned);
  4874. addRegexToken('X', matchTimestamp);
  4875. addParseToken('X', function (input, array, config) {
  4876. config._d = new Date(parseFloat(input) * 1000);
  4877. });
  4878. addParseToken('x', function (input, array, config) {
  4879. config._d = new Date(toInt(input));
  4880. });
  4881. //! moment.js
  4882. hooks.version = '2.29.4';
  4883. setHookCallback(createLocal);
  4884. hooks.fn = proto;
  4885. hooks.min = min;
  4886. hooks.max = max;
  4887. hooks.now = now;
  4888. hooks.utc = createUTC;
  4889. hooks.unix = createUnix;
  4890. hooks.months = listMonths;
  4891. hooks.isDate = isDate;
  4892. hooks.locale = getSetGlobalLocale;
  4893. hooks.invalid = createInvalid;
  4894. hooks.duration = createDuration;
  4895. hooks.isMoment = isMoment;
  4896. hooks.weekdays = listWeekdays;
  4897. hooks.parseZone = createInZone;
  4898. hooks.localeData = getLocale;
  4899. hooks.isDuration = isDuration;
  4900. hooks.monthsShort = listMonthsShort;
  4901. hooks.weekdaysMin = listWeekdaysMin;
  4902. hooks.defineLocale = defineLocale;
  4903. hooks.updateLocale = updateLocale;
  4904. hooks.locales = listLocales;
  4905. hooks.weekdaysShort = listWeekdaysShort;
  4906. hooks.normalizeUnits = normalizeUnits;
  4907. hooks.relativeTimeRounding = getSetRelativeTimeRounding;
  4908. hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
  4909. hooks.calendarFormat = getCalendarFormat;
  4910. hooks.prototype = proto;
  4911. // currently HTML5 input type only supports 24-hour formats
  4912. hooks.HTML5_FMT = {
  4913. DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // <input type="datetime-local" />
  4914. DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // <input type="datetime-local" step="1" />
  4915. DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // <input type="datetime-local" step="0.001" />
  4916. DATE: 'YYYY-MM-DD', // <input type="date" />
  4917. TIME: 'HH:mm', // <input type="time" />
  4918. TIME_SECONDS: 'HH:mm:ss', // <input type="time" step="1" />
  4919. TIME_MS: 'HH:mm:ss.SSS', // <input type="time" step="0.001" />
  4920. WEEK: 'GGGG-[W]WW', // <input type="week" />
  4921. MONTH: 'YYYY-MM', // <input type="month" />
  4922. };
  4923. //! moment.js locale configuration
  4924. hooks.defineLocale('af', {
  4925. months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split(
  4926. '_'
  4927. ),
  4928. monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
  4929. weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split(
  4930. '_'
  4931. ),
  4932. weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
  4933. weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
  4934. meridiemParse: /vm|nm/i,
  4935. isPM: function (input) {
  4936. return /^nm$/i.test(input);
  4937. },
  4938. meridiem: function (hours, minutes, isLower) {
  4939. if (hours < 12) {
  4940. return isLower ? 'vm' : 'VM';
  4941. } else {
  4942. return isLower ? 'nm' : 'NM';
  4943. }
  4944. },
  4945. longDateFormat: {
  4946. LT: 'HH:mm',
  4947. LTS: 'HH:mm:ss',
  4948. L: 'DD/MM/YYYY',
  4949. LL: 'D MMMM YYYY',
  4950. LLL: 'D MMMM YYYY HH:mm',
  4951. LLLL: 'dddd, D MMMM YYYY HH:mm',
  4952. },
  4953. calendar: {
  4954. sameDay: '[Vandag om] LT',
  4955. nextDay: '[Môre om] LT',
  4956. nextWeek: 'dddd [om] LT',
  4957. lastDay: '[Gister om] LT',
  4958. lastWeek: '[Laas] dddd [om] LT',
  4959. sameElse: 'L',
  4960. },
  4961. relativeTime: {
  4962. future: 'oor %s',
  4963. past: '%s gelede',
  4964. s: "'n paar sekondes",
  4965. ss: '%d sekondes',
  4966. m: "'n minuut",
  4967. mm: '%d minute',
  4968. h: "'n uur",
  4969. hh: '%d ure',
  4970. d: "'n dag",
  4971. dd: '%d dae',
  4972. M: "'n maand",
  4973. MM: '%d maande',
  4974. y: "'n jaar",
  4975. yy: '%d jaar',
  4976. },
  4977. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  4978. ordinal: function (number) {
  4979. return (
  4980. number +
  4981. (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
  4982. ); // Thanks to Joris Röling : https://github.com/jjupiter
  4983. },
  4984. week: {
  4985. dow: 1, // Maandag is die eerste dag van die week.
  4986. doy: 4, // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
  4987. },
  4988. });
  4989. //! moment.js locale configuration
  4990. var pluralForm = function (n) {
  4991. return n === 0
  4992. ? 0
  4993. : n === 1
  4994. ? 1
  4995. : n === 2
  4996. ? 2
  4997. : n % 100 >= 3 && n % 100 <= 10
  4998. ? 3
  4999. : n % 100 >= 11
  5000. ? 4
  5001. : 5;
  5002. },
  5003. plurals = {
  5004. s: [
  5005. 'أقل من ثانية',
  5006. 'ثانية واحدة',
  5007. ['ثانيتان', 'ثانيتين'],
  5008. '%d ثوان',
  5009. '%d ثانية',
  5010. '%d ثانية',
  5011. ],
  5012. m: [
  5013. 'أقل من دقيقة',
  5014. 'دقيقة واحدة',
  5015. ['دقيقتان', 'دقيقتين'],
  5016. '%d دقائق',
  5017. '%d دقيقة',
  5018. '%d دقيقة',
  5019. ],
  5020. h: [
  5021. 'أقل من ساعة',
  5022. 'ساعة واحدة',
  5023. ['ساعتان', 'ساعتين'],
  5024. '%d ساعات',
  5025. '%d ساعة',
  5026. '%d ساعة',
  5027. ],
  5028. d: [
  5029. 'أقل من يوم',
  5030. 'يوم واحد',
  5031. ['يومان', 'يومين'],
  5032. '%d أيام',
  5033. '%d يومًا',
  5034. '%d يوم',
  5035. ],
  5036. M: [
  5037. 'أقل من شهر',
  5038. 'شهر واحد',
  5039. ['شهران', 'شهرين'],
  5040. '%d أشهر',
  5041. '%d شهرا',
  5042. '%d شهر',
  5043. ],
  5044. y: [
  5045. 'أقل من عام',
  5046. 'عام واحد',
  5047. ['عامان', 'عامين'],
  5048. '%d أعوام',
  5049. '%d عامًا',
  5050. '%d عام',
  5051. ],
  5052. },
  5053. pluralize = function (u) {
  5054. return function (number, withoutSuffix, string, isFuture) {
  5055. var f = pluralForm(number),
  5056. str = plurals[u][pluralForm(number)];
  5057. if (f === 2) {
  5058. str = str[withoutSuffix ? 0 : 1];
  5059. }
  5060. return str.replace(/%d/i, number);
  5061. };
  5062. },
  5063. months$1 = [
  5064. 'جانفي',
  5065. 'فيفري',
  5066. 'مارس',
  5067. 'أفريل',
  5068. 'ماي',
  5069. 'جوان',
  5070. 'جويلية',
  5071. 'أوت',
  5072. 'سبتمبر',
  5073. 'أكتوبر',
  5074. 'نوفمبر',
  5075. 'ديسمبر',
  5076. ];
  5077. hooks.defineLocale('ar-dz', {
  5078. months: months$1,
  5079. monthsShort: months$1,
  5080. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5081. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5082. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5083. weekdaysParseExact: true,
  5084. longDateFormat: {
  5085. LT: 'HH:mm',
  5086. LTS: 'HH:mm:ss',
  5087. L: 'D/\u200FM/\u200FYYYY',
  5088. LL: 'D MMMM YYYY',
  5089. LLL: 'D MMMM YYYY HH:mm',
  5090. LLLL: 'dddd D MMMM YYYY HH:mm',
  5091. },
  5092. meridiemParse: /ص|م/,
  5093. isPM: function (input) {
  5094. return 'م' === input;
  5095. },
  5096. meridiem: function (hour, minute, isLower) {
  5097. if (hour < 12) {
  5098. return 'ص';
  5099. } else {
  5100. return 'م';
  5101. }
  5102. },
  5103. calendar: {
  5104. sameDay: '[اليوم عند الساعة] LT',
  5105. nextDay: '[غدًا عند الساعة] LT',
  5106. nextWeek: 'dddd [عند الساعة] LT',
  5107. lastDay: '[أمس عند الساعة] LT',
  5108. lastWeek: 'dddd [عند الساعة] LT',
  5109. sameElse: 'L',
  5110. },
  5111. relativeTime: {
  5112. future: 'بعد %s',
  5113. past: 'منذ %s',
  5114. s: pluralize('s'),
  5115. ss: pluralize('s'),
  5116. m: pluralize('m'),
  5117. mm: pluralize('m'),
  5118. h: pluralize('h'),
  5119. hh: pluralize('h'),
  5120. d: pluralize('d'),
  5121. dd: pluralize('d'),
  5122. M: pluralize('M'),
  5123. MM: pluralize('M'),
  5124. y: pluralize('y'),
  5125. yy: pluralize('y'),
  5126. },
  5127. postformat: function (string) {
  5128. return string.replace(/,/g, '،');
  5129. },
  5130. week: {
  5131. dow: 0, // Sunday is the first day of the week.
  5132. doy: 4, // The week that contains Jan 4th is the first week of the year.
  5133. },
  5134. });
  5135. //! moment.js locale configuration
  5136. hooks.defineLocale('ar-kw', {
  5137. months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
  5138. '_'
  5139. ),
  5140. monthsShort:
  5141. 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
  5142. '_'
  5143. ),
  5144. weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5145. weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  5146. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5147. weekdaysParseExact: true,
  5148. longDateFormat: {
  5149. LT: 'HH:mm',
  5150. LTS: 'HH:mm:ss',
  5151. L: 'DD/MM/YYYY',
  5152. LL: 'D MMMM YYYY',
  5153. LLL: 'D MMMM YYYY HH:mm',
  5154. LLLL: 'dddd D MMMM YYYY HH:mm',
  5155. },
  5156. calendar: {
  5157. sameDay: '[اليوم على الساعة] LT',
  5158. nextDay: '[غدا على الساعة] LT',
  5159. nextWeek: 'dddd [على الساعة] LT',
  5160. lastDay: '[أمس على الساعة] LT',
  5161. lastWeek: 'dddd [على الساعة] LT',
  5162. sameElse: 'L',
  5163. },
  5164. relativeTime: {
  5165. future: 'في %s',
  5166. past: 'منذ %s',
  5167. s: 'ثوان',
  5168. ss: '%d ثانية',
  5169. m: 'دقيقة',
  5170. mm: '%d دقائق',
  5171. h: 'ساعة',
  5172. hh: '%d ساعات',
  5173. d: 'يوم',
  5174. dd: '%d أيام',
  5175. M: 'شهر',
  5176. MM: '%d أشهر',
  5177. y: 'سنة',
  5178. yy: '%d سنوات',
  5179. },
  5180. week: {
  5181. dow: 0, // Sunday is the first day of the week.
  5182. doy: 12, // The week that contains Jan 12th is the first week of the year.
  5183. },
  5184. });
  5185. //! moment.js locale configuration
  5186. var symbolMap = {
  5187. 1: '1',
  5188. 2: '2',
  5189. 3: '3',
  5190. 4: '4',
  5191. 5: '5',
  5192. 6: '6',
  5193. 7: '7',
  5194. 8: '8',
  5195. 9: '9',
  5196. 0: '0',
  5197. },
  5198. pluralForm$1 = function (n) {
  5199. return n === 0
  5200. ? 0
  5201. : n === 1
  5202. ? 1
  5203. : n === 2
  5204. ? 2
  5205. : n % 100 >= 3 && n % 100 <= 10
  5206. ? 3
  5207. : n % 100 >= 11
  5208. ? 4
  5209. : 5;
  5210. },
  5211. plurals$1 = {
  5212. s: [
  5213. 'أقل من ثانية',
  5214. 'ثانية واحدة',
  5215. ['ثانيتان', 'ثانيتين'],
  5216. '%d ثوان',
  5217. '%d ثانية',
  5218. '%d ثانية',
  5219. ],
  5220. m: [
  5221. 'أقل من دقيقة',
  5222. 'دقيقة واحدة',
  5223. ['دقيقتان', 'دقيقتين'],
  5224. '%d دقائق',
  5225. '%d دقيقة',
  5226. '%d دقيقة',
  5227. ],
  5228. h: [
  5229. 'أقل من ساعة',
  5230. 'ساعة واحدة',
  5231. ['ساعتان', 'ساعتين'],
  5232. '%d ساعات',
  5233. '%d ساعة',
  5234. '%d ساعة',
  5235. ],
  5236. d: [
  5237. 'أقل من يوم',
  5238. 'يوم واحد',
  5239. ['يومان', 'يومين'],
  5240. '%d أيام',
  5241. '%d يومًا',
  5242. '%d يوم',
  5243. ],
  5244. M: [
  5245. 'أقل من شهر',
  5246. 'شهر واحد',
  5247. ['شهران', 'شهرين'],
  5248. '%d أشهر',
  5249. '%d شهرا',
  5250. '%d شهر',
  5251. ],
  5252. y: [
  5253. 'أقل من عام',
  5254. 'عام واحد',
  5255. ['عامان', 'عامين'],
  5256. '%d أعوام',
  5257. '%d عامًا',
  5258. '%d عام',
  5259. ],
  5260. },
  5261. pluralize$1 = function (u) {
  5262. return function (number, withoutSuffix, string, isFuture) {
  5263. var f = pluralForm$1(number),
  5264. str = plurals$1[u][pluralForm$1(number)];
  5265. if (f === 2) {
  5266. str = str[withoutSuffix ? 0 : 1];
  5267. }
  5268. return str.replace(/%d/i, number);
  5269. };
  5270. },
  5271. months$2 = [
  5272. 'يناير',
  5273. 'فبراير',
  5274. 'مارس',
  5275. 'أبريل',
  5276. 'مايو',
  5277. 'يونيو',
  5278. 'يوليو',
  5279. 'أغسطس',
  5280. 'سبتمبر',
  5281. 'أكتوبر',
  5282. 'نوفمبر',
  5283. 'ديسمبر',
  5284. ];
  5285. hooks.defineLocale('ar-ly', {
  5286. months: months$2,
  5287. monthsShort: months$2,
  5288. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5289. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5290. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5291. weekdaysParseExact: true,
  5292. longDateFormat: {
  5293. LT: 'HH:mm',
  5294. LTS: 'HH:mm:ss',
  5295. L: 'D/\u200FM/\u200FYYYY',
  5296. LL: 'D MMMM YYYY',
  5297. LLL: 'D MMMM YYYY HH:mm',
  5298. LLLL: 'dddd D MMMM YYYY HH:mm',
  5299. },
  5300. meridiemParse: /ص|م/,
  5301. isPM: function (input) {
  5302. return 'م' === input;
  5303. },
  5304. meridiem: function (hour, minute, isLower) {
  5305. if (hour < 12) {
  5306. return 'ص';
  5307. } else {
  5308. return 'م';
  5309. }
  5310. },
  5311. calendar: {
  5312. sameDay: '[اليوم عند الساعة] LT',
  5313. nextDay: '[غدًا عند الساعة] LT',
  5314. nextWeek: 'dddd [عند الساعة] LT',
  5315. lastDay: '[أمس عند الساعة] LT',
  5316. lastWeek: 'dddd [عند الساعة] LT',
  5317. sameElse: 'L',
  5318. },
  5319. relativeTime: {
  5320. future: 'بعد %s',
  5321. past: 'منذ %s',
  5322. s: pluralize$1('s'),
  5323. ss: pluralize$1('s'),
  5324. m: pluralize$1('m'),
  5325. mm: pluralize$1('m'),
  5326. h: pluralize$1('h'),
  5327. hh: pluralize$1('h'),
  5328. d: pluralize$1('d'),
  5329. dd: pluralize$1('d'),
  5330. M: pluralize$1('M'),
  5331. MM: pluralize$1('M'),
  5332. y: pluralize$1('y'),
  5333. yy: pluralize$1('y'),
  5334. },
  5335. preparse: function (string) {
  5336. return string.replace(/،/g, ',');
  5337. },
  5338. postformat: function (string) {
  5339. return string
  5340. .replace(/\d/g, function (match) {
  5341. return symbolMap[match];
  5342. })
  5343. .replace(/,/g, '،');
  5344. },
  5345. week: {
  5346. dow: 6, // Saturday is the first day of the week.
  5347. doy: 12, // The week that contains Jan 12th is the first week of the year.
  5348. },
  5349. });
  5350. //! moment.js locale configuration
  5351. hooks.defineLocale('ar-ma', {
  5352. months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
  5353. '_'
  5354. ),
  5355. monthsShort:
  5356. 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
  5357. '_'
  5358. ),
  5359. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5360. weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  5361. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5362. weekdaysParseExact: true,
  5363. longDateFormat: {
  5364. LT: 'HH:mm',
  5365. LTS: 'HH:mm:ss',
  5366. L: 'DD/MM/YYYY',
  5367. LL: 'D MMMM YYYY',
  5368. LLL: 'D MMMM YYYY HH:mm',
  5369. LLLL: 'dddd D MMMM YYYY HH:mm',
  5370. },
  5371. calendar: {
  5372. sameDay: '[اليوم على الساعة] LT',
  5373. nextDay: '[غدا على الساعة] LT',
  5374. nextWeek: 'dddd [على الساعة] LT',
  5375. lastDay: '[أمس على الساعة] LT',
  5376. lastWeek: 'dddd [على الساعة] LT',
  5377. sameElse: 'L',
  5378. },
  5379. relativeTime: {
  5380. future: 'في %s',
  5381. past: 'منذ %s',
  5382. s: 'ثوان',
  5383. ss: '%d ثانية',
  5384. m: 'دقيقة',
  5385. mm: '%d دقائق',
  5386. h: 'ساعة',
  5387. hh: '%d ساعات',
  5388. d: 'يوم',
  5389. dd: '%d أيام',
  5390. M: 'شهر',
  5391. MM: '%d أشهر',
  5392. y: 'سنة',
  5393. yy: '%d سنوات',
  5394. },
  5395. week: {
  5396. dow: 1, // Monday is the first day of the week.
  5397. doy: 4, // The week that contains Jan 4th is the first week of the year.
  5398. },
  5399. });
  5400. //! moment.js locale configuration
  5401. var symbolMap$1 = {
  5402. 1: '١',
  5403. 2: '٢',
  5404. 3: '٣',
  5405. 4: '٤',
  5406. 5: '٥',
  5407. 6: '٦',
  5408. 7: '٧',
  5409. 8: '٨',
  5410. 9: '٩',
  5411. 0: '٠',
  5412. },
  5413. numberMap = {
  5414. '١': '1',
  5415. '٢': '2',
  5416. '٣': '3',
  5417. '٤': '4',
  5418. '٥': '5',
  5419. '٦': '6',
  5420. '٧': '7',
  5421. '٨': '8',
  5422. '٩': '9',
  5423. '٠': '0',
  5424. };
  5425. hooks.defineLocale('ar-sa', {
  5426. months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
  5427. '_'
  5428. ),
  5429. monthsShort:
  5430. 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
  5431. '_'
  5432. ),
  5433. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5434. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5435. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5436. weekdaysParseExact: true,
  5437. longDateFormat: {
  5438. LT: 'HH:mm',
  5439. LTS: 'HH:mm:ss',
  5440. L: 'DD/MM/YYYY',
  5441. LL: 'D MMMM YYYY',
  5442. LLL: 'D MMMM YYYY HH:mm',
  5443. LLLL: 'dddd D MMMM YYYY HH:mm',
  5444. },
  5445. meridiemParse: /ص|م/,
  5446. isPM: function (input) {
  5447. return 'م' === input;
  5448. },
  5449. meridiem: function (hour, minute, isLower) {
  5450. if (hour < 12) {
  5451. return 'ص';
  5452. } else {
  5453. return 'م';
  5454. }
  5455. },
  5456. calendar: {
  5457. sameDay: '[اليوم على الساعة] LT',
  5458. nextDay: '[غدا على الساعة] LT',
  5459. nextWeek: 'dddd [على الساعة] LT',
  5460. lastDay: '[أمس على الساعة] LT',
  5461. lastWeek: 'dddd [على الساعة] LT',
  5462. sameElse: 'L',
  5463. },
  5464. relativeTime: {
  5465. future: 'في %s',
  5466. past: 'منذ %s',
  5467. s: 'ثوان',
  5468. ss: '%d ثانية',
  5469. m: 'دقيقة',
  5470. mm: '%d دقائق',
  5471. h: 'ساعة',
  5472. hh: '%d ساعات',
  5473. d: 'يوم',
  5474. dd: '%d أيام',
  5475. M: 'شهر',
  5476. MM: '%d أشهر',
  5477. y: 'سنة',
  5478. yy: '%d سنوات',
  5479. },
  5480. preparse: function (string) {
  5481. return string
  5482. .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  5483. return numberMap[match];
  5484. })
  5485. .replace(/،/g, ',');
  5486. },
  5487. postformat: function (string) {
  5488. return string
  5489. .replace(/\d/g, function (match) {
  5490. return symbolMap$1[match];
  5491. })
  5492. .replace(/,/g, '،');
  5493. },
  5494. week: {
  5495. dow: 0, // Sunday is the first day of the week.
  5496. doy: 6, // The week that contains Jan 6th is the first week of the year.
  5497. },
  5498. });
  5499. //! moment.js locale configuration
  5500. hooks.defineLocale('ar-tn', {
  5501. months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
  5502. '_'
  5503. ),
  5504. monthsShort:
  5505. 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
  5506. '_'
  5507. ),
  5508. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5509. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5510. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5511. weekdaysParseExact: true,
  5512. longDateFormat: {
  5513. LT: 'HH:mm',
  5514. LTS: 'HH:mm:ss',
  5515. L: 'DD/MM/YYYY',
  5516. LL: 'D MMMM YYYY',
  5517. LLL: 'D MMMM YYYY HH:mm',
  5518. LLLL: 'dddd D MMMM YYYY HH:mm',
  5519. },
  5520. calendar: {
  5521. sameDay: '[اليوم على الساعة] LT',
  5522. nextDay: '[غدا على الساعة] LT',
  5523. nextWeek: 'dddd [على الساعة] LT',
  5524. lastDay: '[أمس على الساعة] LT',
  5525. lastWeek: 'dddd [على الساعة] LT',
  5526. sameElse: 'L',
  5527. },
  5528. relativeTime: {
  5529. future: 'في %s',
  5530. past: 'منذ %s',
  5531. s: 'ثوان',
  5532. ss: '%d ثانية',
  5533. m: 'دقيقة',
  5534. mm: '%d دقائق',
  5535. h: 'ساعة',
  5536. hh: '%d ساعات',
  5537. d: 'يوم',
  5538. dd: '%d أيام',
  5539. M: 'شهر',
  5540. MM: '%d أشهر',
  5541. y: 'سنة',
  5542. yy: '%d سنوات',
  5543. },
  5544. week: {
  5545. dow: 1, // Monday is the first day of the week.
  5546. doy: 4, // The week that contains Jan 4th is the first week of the year.
  5547. },
  5548. });
  5549. //! moment.js locale configuration
  5550. var symbolMap$2 = {
  5551. 1: '١',
  5552. 2: '٢',
  5553. 3: '٣',
  5554. 4: '٤',
  5555. 5: '٥',
  5556. 6: '٦',
  5557. 7: '٧',
  5558. 8: '٨',
  5559. 9: '٩',
  5560. 0: '٠',
  5561. },
  5562. numberMap$1 = {
  5563. '١': '1',
  5564. '٢': '2',
  5565. '٣': '3',
  5566. '٤': '4',
  5567. '٥': '5',
  5568. '٦': '6',
  5569. '٧': '7',
  5570. '٨': '8',
  5571. '٩': '9',
  5572. '٠': '0',
  5573. },
  5574. pluralForm$2 = function (n) {
  5575. return n === 0
  5576. ? 0
  5577. : n === 1
  5578. ? 1
  5579. : n === 2
  5580. ? 2
  5581. : n % 100 >= 3 && n % 100 <= 10
  5582. ? 3
  5583. : n % 100 >= 11
  5584. ? 4
  5585. : 5;
  5586. },
  5587. plurals$2 = {
  5588. s: [
  5589. 'أقل من ثانية',
  5590. 'ثانية واحدة',
  5591. ['ثانيتان', 'ثانيتين'],
  5592. '%d ثوان',
  5593. '%d ثانية',
  5594. '%d ثانية',
  5595. ],
  5596. m: [
  5597. 'أقل من دقيقة',
  5598. 'دقيقة واحدة',
  5599. ['دقيقتان', 'دقيقتين'],
  5600. '%d دقائق',
  5601. '%d دقيقة',
  5602. '%d دقيقة',
  5603. ],
  5604. h: [
  5605. 'أقل من ساعة',
  5606. 'ساعة واحدة',
  5607. ['ساعتان', 'ساعتين'],
  5608. '%d ساعات',
  5609. '%d ساعة',
  5610. '%d ساعة',
  5611. ],
  5612. d: [
  5613. 'أقل من يوم',
  5614. 'يوم واحد',
  5615. ['يومان', 'يومين'],
  5616. '%d أيام',
  5617. '%d يومًا',
  5618. '%d يوم',
  5619. ],
  5620. M: [
  5621. 'أقل من شهر',
  5622. 'شهر واحد',
  5623. ['شهران', 'شهرين'],
  5624. '%d أشهر',
  5625. '%d شهرا',
  5626. '%d شهر',
  5627. ],
  5628. y: [
  5629. 'أقل من عام',
  5630. 'عام واحد',
  5631. ['عامان', 'عامين'],
  5632. '%d أعوام',
  5633. '%d عامًا',
  5634. '%d عام',
  5635. ],
  5636. },
  5637. pluralize$2 = function (u) {
  5638. return function (number, withoutSuffix, string, isFuture) {
  5639. var f = pluralForm$2(number),
  5640. str = plurals$2[u][pluralForm$2(number)];
  5641. if (f === 2) {
  5642. str = str[withoutSuffix ? 0 : 1];
  5643. }
  5644. return str.replace(/%d/i, number);
  5645. };
  5646. },
  5647. months$3 = [
  5648. 'يناير',
  5649. 'فبراير',
  5650. 'مارس',
  5651. 'أبريل',
  5652. 'مايو',
  5653. 'يونيو',
  5654. 'يوليو',
  5655. 'أغسطس',
  5656. 'سبتمبر',
  5657. 'أكتوبر',
  5658. 'نوفمبر',
  5659. 'ديسمبر',
  5660. ];
  5661. hooks.defineLocale('ar', {
  5662. months: months$3,
  5663. monthsShort: months$3,
  5664. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5665. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5666. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5667. weekdaysParseExact: true,
  5668. longDateFormat: {
  5669. LT: 'HH:mm',
  5670. LTS: 'HH:mm:ss',
  5671. L: 'D/\u200FM/\u200FYYYY',
  5672. LL: 'D MMMM YYYY',
  5673. LLL: 'D MMMM YYYY HH:mm',
  5674. LLLL: 'dddd D MMMM YYYY HH:mm',
  5675. },
  5676. meridiemParse: /ص|م/,
  5677. isPM: function (input) {
  5678. return 'م' === input;
  5679. },
  5680. meridiem: function (hour, minute, isLower) {
  5681. if (hour < 12) {
  5682. return 'ص';
  5683. } else {
  5684. return 'م';
  5685. }
  5686. },
  5687. calendar: {
  5688. sameDay: '[اليوم عند الساعة] LT',
  5689. nextDay: '[غدًا عند الساعة] LT',
  5690. nextWeek: 'dddd [عند الساعة] LT',
  5691. lastDay: '[أمس عند الساعة] LT',
  5692. lastWeek: 'dddd [عند الساعة] LT',
  5693. sameElse: 'L',
  5694. },
  5695. relativeTime: {
  5696. future: 'بعد %s',
  5697. past: 'منذ %s',
  5698. s: pluralize$2('s'),
  5699. ss: pluralize$2('s'),
  5700. m: pluralize$2('m'),
  5701. mm: pluralize$2('m'),
  5702. h: pluralize$2('h'),
  5703. hh: pluralize$2('h'),
  5704. d: pluralize$2('d'),
  5705. dd: pluralize$2('d'),
  5706. M: pluralize$2('M'),
  5707. MM: pluralize$2('M'),
  5708. y: pluralize$2('y'),
  5709. yy: pluralize$2('y'),
  5710. },
  5711. preparse: function (string) {
  5712. return string
  5713. .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  5714. return numberMap$1[match];
  5715. })
  5716. .replace(/،/g, ',');
  5717. },
  5718. postformat: function (string) {
  5719. return string
  5720. .replace(/\d/g, function (match) {
  5721. return symbolMap$2[match];
  5722. })
  5723. .replace(/,/g, '،');
  5724. },
  5725. week: {
  5726. dow: 6, // Saturday is the first day of the week.
  5727. doy: 12, // The week that contains Jan 12th is the first week of the year.
  5728. },
  5729. });
  5730. //! moment.js locale configuration
  5731. var suffixes = {
  5732. 1: '-inci',
  5733. 5: '-inci',
  5734. 8: '-inci',
  5735. 70: '-inci',
  5736. 80: '-inci',
  5737. 2: '-nci',
  5738. 7: '-nci',
  5739. 20: '-nci',
  5740. 50: '-nci',
  5741. 3: '-üncü',
  5742. 4: '-üncü',
  5743. 100: '-üncü',
  5744. 6: '-ncı',
  5745. 9: '-uncu',
  5746. 10: '-uncu',
  5747. 30: '-uncu',
  5748. 60: '-ıncı',
  5749. 90: '-ıncı',
  5750. };
  5751. hooks.defineLocale('az', {
  5752. months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split(
  5753. '_'
  5754. ),
  5755. monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
  5756. weekdays:
  5757. 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split(
  5758. '_'
  5759. ),
  5760. weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
  5761. weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
  5762. weekdaysParseExact: true,
  5763. longDateFormat: {
  5764. LT: 'HH:mm',
  5765. LTS: 'HH:mm:ss',
  5766. L: 'DD.MM.YYYY',
  5767. LL: 'D MMMM YYYY',
  5768. LLL: 'D MMMM YYYY HH:mm',
  5769. LLLL: 'dddd, D MMMM YYYY HH:mm',
  5770. },
  5771. calendar: {
  5772. sameDay: '[bugün saat] LT',
  5773. nextDay: '[sabah saat] LT',
  5774. nextWeek: '[gələn həftə] dddd [saat] LT',
  5775. lastDay: '[dünən] LT',
  5776. lastWeek: '[keçən həftə] dddd [saat] LT',
  5777. sameElse: 'L',
  5778. },
  5779. relativeTime: {
  5780. future: '%s sonra',
  5781. past: '%s əvvəl',
  5782. s: 'bir neçə saniyə',
  5783. ss: '%d saniyə',
  5784. m: 'bir dəqiqə',
  5785. mm: '%d dəqiqə',
  5786. h: 'bir saat',
  5787. hh: '%d saat',
  5788. d: 'bir gün',
  5789. dd: '%d gün',
  5790. M: 'bir ay',
  5791. MM: '%d ay',
  5792. y: 'bir il',
  5793. yy: '%d il',
  5794. },
  5795. meridiemParse: /gecə|səhər|gündüz|axşam/,
  5796. isPM: function (input) {
  5797. return /^(gündüz|axşam)$/.test(input);
  5798. },
  5799. meridiem: function (hour, minute, isLower) {
  5800. if (hour < 4) {
  5801. return 'gecə';
  5802. } else if (hour < 12) {
  5803. return 'səhər';
  5804. } else if (hour < 17) {
  5805. return 'gündüz';
  5806. } else {
  5807. return 'axşam';
  5808. }
  5809. },
  5810. dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
  5811. ordinal: function (number) {
  5812. if (number === 0) {
  5813. // special case for zero
  5814. return number + '-ıncı';
  5815. }
  5816. var a = number % 10,
  5817. b = (number % 100) - a,
  5818. c = number >= 100 ? 100 : null;
  5819. return number + (suffixes[a] || suffixes[b] || suffixes[c]);
  5820. },
  5821. week: {
  5822. dow: 1, // Monday is the first day of the week.
  5823. doy: 7, // The week that contains Jan 7th is the first week of the year.
  5824. },
  5825. });
  5826. //! moment.js locale configuration
  5827. function plural(word, num) {
  5828. var forms = word.split('_');
  5829. return num % 10 === 1 && num % 100 !== 11
  5830. ? forms[0]
  5831. : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
  5832. ? forms[1]
  5833. : forms[2];
  5834. }
  5835. function relativeTimeWithPlural(number, withoutSuffix, key) {
  5836. var format = {
  5837. ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
  5838. mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
  5839. hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
  5840. dd: 'дзень_дні_дзён',
  5841. MM: 'месяц_месяцы_месяцаў',
  5842. yy: 'год_гады_гадоў',
  5843. };
  5844. if (key === 'm') {
  5845. return withoutSuffix ? 'хвіліна' : 'хвіліну';
  5846. } else if (key === 'h') {
  5847. return withoutSuffix ? 'гадзіна' : 'гадзіну';
  5848. } else {
  5849. return number + ' ' + plural(format[key], +number);
  5850. }
  5851. }
  5852. hooks.defineLocale('be', {
  5853. months: {
  5854. format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split(
  5855. '_'
  5856. ),
  5857. standalone:
  5858. 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split(
  5859. '_'
  5860. ),
  5861. },
  5862. monthsShort:
  5863. 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
  5864. weekdays: {
  5865. format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split(
  5866. '_'
  5867. ),
  5868. standalone:
  5869. 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split(
  5870. '_'
  5871. ),
  5872. isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/,
  5873. },
  5874. weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  5875. weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  5876. longDateFormat: {
  5877. LT: 'HH:mm',
  5878. LTS: 'HH:mm:ss',
  5879. L: 'DD.MM.YYYY',
  5880. LL: 'D MMMM YYYY г.',
  5881. LLL: 'D MMMM YYYY г., HH:mm',
  5882. LLLL: 'dddd, D MMMM YYYY г., HH:mm',
  5883. },
  5884. calendar: {
  5885. sameDay: '[Сёння ў] LT',
  5886. nextDay: '[Заўтра ў] LT',
  5887. lastDay: '[Учора ў] LT',
  5888. nextWeek: function () {
  5889. return '[У] dddd [ў] LT';
  5890. },
  5891. lastWeek: function () {
  5892. switch (this.day()) {
  5893. case 0:
  5894. case 3:
  5895. case 5:
  5896. case 6:
  5897. return '[У мінулую] dddd [ў] LT';
  5898. case 1:
  5899. case 2:
  5900. case 4:
  5901. return '[У мінулы] dddd [ў] LT';
  5902. }
  5903. },
  5904. sameElse: 'L',
  5905. },
  5906. relativeTime: {
  5907. future: 'праз %s',
  5908. past: '%s таму',
  5909. s: 'некалькі секунд',
  5910. m: relativeTimeWithPlural,
  5911. mm: relativeTimeWithPlural,
  5912. h: relativeTimeWithPlural,
  5913. hh: relativeTimeWithPlural,
  5914. d: 'дзень',
  5915. dd: relativeTimeWithPlural,
  5916. M: 'месяц',
  5917. MM: relativeTimeWithPlural,
  5918. y: 'год',
  5919. yy: relativeTimeWithPlural,
  5920. },
  5921. meridiemParse: /ночы|раніцы|дня|вечара/,
  5922. isPM: function (input) {
  5923. return /^(дня|вечара)$/.test(input);
  5924. },
  5925. meridiem: function (hour, minute, isLower) {
  5926. if (hour < 4) {
  5927. return 'ночы';
  5928. } else if (hour < 12) {
  5929. return 'раніцы';
  5930. } else if (hour < 17) {
  5931. return 'дня';
  5932. } else {
  5933. return 'вечара';
  5934. }
  5935. },
  5936. dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/,
  5937. ordinal: function (number, period) {
  5938. switch (period) {
  5939. case 'M':
  5940. case 'd':
  5941. case 'DDD':
  5942. case 'w':
  5943. case 'W':
  5944. return (number % 10 === 2 || number % 10 === 3) &&
  5945. number % 100 !== 12 &&
  5946. number % 100 !== 13
  5947. ? number + '-і'
  5948. : number + '-ы';
  5949. case 'D':
  5950. return number + '-га';
  5951. default:
  5952. return number;
  5953. }
  5954. },
  5955. week: {
  5956. dow: 1, // Monday is the first day of the week.
  5957. doy: 7, // The week that contains Jan 7th is the first week of the year.
  5958. },
  5959. });
  5960. //! moment.js locale configuration
  5961. hooks.defineLocale('bg', {
  5962. months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split(
  5963. '_'
  5964. ),
  5965. monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
  5966. weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split(
  5967. '_'
  5968. ),
  5969. weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
  5970. weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  5971. longDateFormat: {
  5972. LT: 'H:mm',
  5973. LTS: 'H:mm:ss',
  5974. L: 'D.MM.YYYY',
  5975. LL: 'D MMMM YYYY',
  5976. LLL: 'D MMMM YYYY H:mm',
  5977. LLLL: 'dddd, D MMMM YYYY H:mm',
  5978. },
  5979. calendar: {
  5980. sameDay: '[Днес в] LT',
  5981. nextDay: '[Утре в] LT',
  5982. nextWeek: 'dddd [в] LT',
  5983. lastDay: '[Вчера в] LT',
  5984. lastWeek: function () {
  5985. switch (this.day()) {
  5986. case 0:
  5987. case 3:
  5988. case 6:
  5989. return '[Миналата] dddd [в] LT';
  5990. case 1:
  5991. case 2:
  5992. case 4:
  5993. case 5:
  5994. return '[Миналия] dddd [в] LT';
  5995. }
  5996. },
  5997. sameElse: 'L',
  5998. },
  5999. relativeTime: {
  6000. future: 'след %s',
  6001. past: 'преди %s',
  6002. s: 'няколко секунди',
  6003. ss: '%d секунди',
  6004. m: 'минута',
  6005. mm: '%d минути',
  6006. h: 'час',
  6007. hh: '%d часа',
  6008. d: 'ден',
  6009. dd: '%d дена',
  6010. w: 'седмица',
  6011. ww: '%d седмици',
  6012. M: 'месец',
  6013. MM: '%d месеца',
  6014. y: 'година',
  6015. yy: '%d години',
  6016. },
  6017. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  6018. ordinal: function (number) {
  6019. var lastDigit = number % 10,
  6020. last2Digits = number % 100;
  6021. if (number === 0) {
  6022. return number + '-ев';
  6023. } else if (last2Digits === 0) {
  6024. return number + '-ен';
  6025. } else if (last2Digits > 10 && last2Digits < 20) {
  6026. return number + '-ти';
  6027. } else if (lastDigit === 1) {
  6028. return number + '-ви';
  6029. } else if (lastDigit === 2) {
  6030. return number + '-ри';
  6031. } else if (lastDigit === 7 || lastDigit === 8) {
  6032. return number + '-ми';
  6033. } else {
  6034. return number + '-ти';
  6035. }
  6036. },
  6037. week: {
  6038. dow: 1, // Monday is the first day of the week.
  6039. doy: 7, // The week that contains Jan 7th is the first week of the year.
  6040. },
  6041. });
  6042. //! moment.js locale configuration
  6043. hooks.defineLocale('bm', {
  6044. months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split(
  6045. '_'
  6046. ),
  6047. monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
  6048. weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
  6049. weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
  6050. weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
  6051. longDateFormat: {
  6052. LT: 'HH:mm',
  6053. LTS: 'HH:mm:ss',
  6054. L: 'DD/MM/YYYY',
  6055. LL: 'MMMM [tile] D [san] YYYY',
  6056. LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
  6057. LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
  6058. },
  6059. calendar: {
  6060. sameDay: '[Bi lɛrɛ] LT',
  6061. nextDay: '[Sini lɛrɛ] LT',
  6062. nextWeek: 'dddd [don lɛrɛ] LT',
  6063. lastDay: '[Kunu lɛrɛ] LT',
  6064. lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT',
  6065. sameElse: 'L',
  6066. },
  6067. relativeTime: {
  6068. future: '%s kɔnɔ',
  6069. past: 'a bɛ %s bɔ',
  6070. s: 'sanga dama dama',
  6071. ss: 'sekondi %d',
  6072. m: 'miniti kelen',
  6073. mm: 'miniti %d',
  6074. h: 'lɛrɛ kelen',
  6075. hh: 'lɛrɛ %d',
  6076. d: 'tile kelen',
  6077. dd: 'tile %d',
  6078. M: 'kalo kelen',
  6079. MM: 'kalo %d',
  6080. y: 'san kelen',
  6081. yy: 'san %d',
  6082. },
  6083. week: {
  6084. dow: 1, // Monday is the first day of the week.
  6085. doy: 4, // The week that contains Jan 4th is the first week of the year.
  6086. },
  6087. });
  6088. //! moment.js locale configuration
  6089. var symbolMap$3 = {
  6090. 1: '১',
  6091. 2: '২',
  6092. 3: '৩',
  6093. 4: '৪',
  6094. 5: '৫',
  6095. 6: '৬',
  6096. 7: '৭',
  6097. 8: '৮',
  6098. 9: '৯',
  6099. 0: '০',
  6100. },
  6101. numberMap$2 = {
  6102. '১': '1',
  6103. '২': '2',
  6104. '৩': '3',
  6105. '৪': '4',
  6106. '৫': '5',
  6107. '৬': '6',
  6108. '৭': '7',
  6109. '৮': '8',
  6110. '৯': '9',
  6111. '০': '0',
  6112. };
  6113. hooks.defineLocale('bn-bd', {
  6114. months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(
  6115. '_'
  6116. ),
  6117. monthsShort:
  6118. 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(
  6119. '_'
  6120. ),
  6121. weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(
  6122. '_'
  6123. ),
  6124. weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
  6125. weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
  6126. longDateFormat: {
  6127. LT: 'A h:mm সময়',
  6128. LTS: 'A h:mm:ss সময়',
  6129. L: 'DD/MM/YYYY',
  6130. LL: 'D MMMM YYYY',
  6131. LLL: 'D MMMM YYYY, A h:mm সময়',
  6132. LLLL: 'dddd, D MMMM YYYY, A h:mm সময়',
  6133. },
  6134. calendar: {
  6135. sameDay: '[আজ] LT',
  6136. nextDay: '[আগামীকাল] LT',
  6137. nextWeek: 'dddd, LT',
  6138. lastDay: '[গতকাল] LT',
  6139. lastWeek: '[গত] dddd, LT',
  6140. sameElse: 'L',
  6141. },
  6142. relativeTime: {
  6143. future: '%s পরে',
  6144. past: '%s আগে',
  6145. s: 'কয়েক সেকেন্ড',
  6146. ss: '%d সেকেন্ড',
  6147. m: 'এক মিনিট',
  6148. mm: '%d মিনিট',
  6149. h: 'এক ঘন্টা',
  6150. hh: '%d ঘন্টা',
  6151. d: 'এক দিন',
  6152. dd: '%d দিন',
  6153. M: 'এক মাস',
  6154. MM: '%d মাস',
  6155. y: 'এক বছর',
  6156. yy: '%d বছর',
  6157. },
  6158. preparse: function (string) {
  6159. return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
  6160. return numberMap$2[match];
  6161. });
  6162. },
  6163. postformat: function (string) {
  6164. return string.replace(/\d/g, function (match) {
  6165. return symbolMap$3[match];
  6166. });
  6167. },
  6168. meridiemParse: /রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,
  6169. meridiemHour: function (hour, meridiem) {
  6170. if (hour === 12) {
  6171. hour = 0;
  6172. }
  6173. if (meridiem === 'রাত') {
  6174. return hour < 4 ? hour : hour + 12;
  6175. } else if (meridiem === 'ভোর') {
  6176. return hour;
  6177. } else if (meridiem === 'সকাল') {
  6178. return hour;
  6179. } else if (meridiem === 'দুপুর') {
  6180. return hour >= 3 ? hour : hour + 12;
  6181. } else if (meridiem === 'বিকাল') {
  6182. return hour + 12;
  6183. } else if (meridiem === 'সন্ধ্যা') {
  6184. return hour + 12;
  6185. }
  6186. },
  6187. meridiem: function (hour, minute, isLower) {
  6188. if (hour < 4) {
  6189. return 'রাত';
  6190. } else if (hour < 6) {
  6191. return 'ভোর';
  6192. } else if (hour < 12) {
  6193. return 'সকাল';
  6194. } else if (hour < 15) {
  6195. return 'দুপুর';
  6196. } else if (hour < 18) {
  6197. return 'বিকাল';
  6198. } else if (hour < 20) {
  6199. return 'সন্ধ্যা';
  6200. } else {
  6201. return 'রাত';
  6202. }
  6203. },
  6204. week: {
  6205. dow: 0, // Sunday is the first day of the week.
  6206. doy: 6, // The week that contains Jan 6th is the first week of the year.
  6207. },
  6208. });
  6209. //! moment.js locale configuration
  6210. var symbolMap$4 = {
  6211. 1: '১',
  6212. 2: '২',
  6213. 3: '৩',
  6214. 4: '৪',
  6215. 5: '৫',
  6216. 6: '৬',
  6217. 7: '৭',
  6218. 8: '৮',
  6219. 9: '৯',
  6220. 0: '০',
  6221. },
  6222. numberMap$3 = {
  6223. '১': '1',
  6224. '২': '2',
  6225. '৩': '3',
  6226. '৪': '4',
  6227. '৫': '5',
  6228. '৬': '6',
  6229. '৭': '7',
  6230. '৮': '8',
  6231. '৯': '9',
  6232. '০': '0',
  6233. };
  6234. hooks.defineLocale('bn', {
  6235. months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(
  6236. '_'
  6237. ),
  6238. monthsShort:
  6239. 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(
  6240. '_'
  6241. ),
  6242. weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(
  6243. '_'
  6244. ),
  6245. weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
  6246. weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
  6247. longDateFormat: {
  6248. LT: 'A h:mm সময়',
  6249. LTS: 'A h:mm:ss সময়',
  6250. L: 'DD/MM/YYYY',
  6251. LL: 'D MMMM YYYY',
  6252. LLL: 'D MMMM YYYY, A h:mm সময়',
  6253. LLLL: 'dddd, D MMMM YYYY, A h:mm সময়',
  6254. },
  6255. calendar: {
  6256. sameDay: '[আজ] LT',
  6257. nextDay: '[আগামীকাল] LT',
  6258. nextWeek: 'dddd, LT',
  6259. lastDay: '[গতকাল] LT',
  6260. lastWeek: '[গত] dddd, LT',
  6261. sameElse: 'L',
  6262. },
  6263. relativeTime: {
  6264. future: '%s পরে',
  6265. past: '%s আগে',
  6266. s: 'কয়েক সেকেন্ড',
  6267. ss: '%d সেকেন্ড',
  6268. m: 'এক মিনিট',
  6269. mm: '%d মিনিট',
  6270. h: 'এক ঘন্টা',
  6271. hh: '%d ঘন্টা',
  6272. d: 'এক দিন',
  6273. dd: '%d দিন',
  6274. M: 'এক মাস',
  6275. MM: '%d মাস',
  6276. y: 'এক বছর',
  6277. yy: '%d বছর',
  6278. },
  6279. preparse: function (string) {
  6280. return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
  6281. return numberMap$3[match];
  6282. });
  6283. },
  6284. postformat: function (string) {
  6285. return string.replace(/\d/g, function (match) {
  6286. return symbolMap$4[match];
  6287. });
  6288. },
  6289. meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
  6290. meridiemHour: function (hour, meridiem) {
  6291. if (hour === 12) {
  6292. hour = 0;
  6293. }
  6294. if (
  6295. (meridiem === 'রাত' && hour >= 4) ||
  6296. (meridiem === 'দুপুর' && hour < 5) ||
  6297. meridiem === 'বিকাল'
  6298. ) {
  6299. return hour + 12;
  6300. } else {
  6301. return hour;
  6302. }
  6303. },
  6304. meridiem: function (hour, minute, isLower) {
  6305. if (hour < 4) {
  6306. return 'রাত';
  6307. } else if (hour < 10) {
  6308. return 'সকাল';
  6309. } else if (hour < 17) {
  6310. return 'দুপুর';
  6311. } else if (hour < 20) {
  6312. return 'বিকাল';
  6313. } else {
  6314. return 'রাত';
  6315. }
  6316. },
  6317. week: {
  6318. dow: 0, // Sunday is the first day of the week.
  6319. doy: 6, // The week that contains Jan 6th is the first week of the year.
  6320. },
  6321. });
  6322. //! moment.js locale configuration
  6323. var symbolMap$5 = {
  6324. 1: '༡',
  6325. 2: '༢',
  6326. 3: '༣',
  6327. 4: '༤',
  6328. 5: '༥',
  6329. 6: '༦',
  6330. 7: '༧',
  6331. 8: '༨',
  6332. 9: '༩',
  6333. 0: '༠',
  6334. },
  6335. numberMap$4 = {
  6336. '༡': '1',
  6337. '༢': '2',
  6338. '༣': '3',
  6339. '༤': '4',
  6340. '༥': '5',
  6341. '༦': '6',
  6342. '༧': '7',
  6343. '༨': '8',
  6344. '༩': '9',
  6345. '༠': '0',
  6346. };
  6347. hooks.defineLocale('bo', {
  6348. months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split(
  6349. '_'
  6350. ),
  6351. monthsShort:
  6352. 'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split(
  6353. '_'
  6354. ),
  6355. monthsShortRegex: /^(ཟླ་\d{1,2})/,
  6356. monthsParseExact: true,
  6357. weekdays:
  6358. 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split(
  6359. '_'
  6360. ),
  6361. weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split(
  6362. '_'
  6363. ),
  6364. weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'),
  6365. longDateFormat: {
  6366. LT: 'A h:mm',
  6367. LTS: 'A h:mm:ss',
  6368. L: 'DD/MM/YYYY',
  6369. LL: 'D MMMM YYYY',
  6370. LLL: 'D MMMM YYYY, A h:mm',
  6371. LLLL: 'dddd, D MMMM YYYY, A h:mm',
  6372. },
  6373. calendar: {
  6374. sameDay: '[དི་རིང] LT',
  6375. nextDay: '[སང་ཉིན] LT',
  6376. nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT',
  6377. lastDay: '[ཁ་སང] LT',
  6378. lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
  6379. sameElse: 'L',
  6380. },
  6381. relativeTime: {
  6382. future: '%s ལ་',
  6383. past: '%s སྔན་ལ',
  6384. s: 'ལམ་སང',
  6385. ss: '%d སྐར་ཆ།',
  6386. m: 'སྐར་མ་གཅིག',
  6387. mm: '%d སྐར་མ',
  6388. h: 'ཆུ་ཚོད་གཅིག',
  6389. hh: '%d ཆུ་ཚོད',
  6390. d: 'ཉིན་གཅིག',
  6391. dd: '%d ཉིན་',
  6392. M: 'ཟླ་བ་གཅིག',
  6393. MM: '%d ཟླ་བ',
  6394. y: 'ལོ་གཅིག',
  6395. yy: '%d ལོ',
  6396. },
  6397. preparse: function (string) {
  6398. return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
  6399. return numberMap$4[match];
  6400. });
  6401. },
  6402. postformat: function (string) {
  6403. return string.replace(/\d/g, function (match) {
  6404. return symbolMap$5[match];
  6405. });
  6406. },
  6407. meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
  6408. meridiemHour: function (hour, meridiem) {
  6409. if (hour === 12) {
  6410. hour = 0;
  6411. }
  6412. if (
  6413. (meridiem === 'མཚན་མོ' && hour >= 4) ||
  6414. (meridiem === 'ཉིན་གུང' && hour < 5) ||
  6415. meridiem === 'དགོང་དག'
  6416. ) {
  6417. return hour + 12;
  6418. } else {
  6419. return hour;
  6420. }
  6421. },
  6422. meridiem: function (hour, minute, isLower) {
  6423. if (hour < 4) {
  6424. return 'མཚན་མོ';
  6425. } else if (hour < 10) {
  6426. return 'ཞོགས་ཀས';
  6427. } else if (hour < 17) {
  6428. return 'ཉིན་གུང';
  6429. } else if (hour < 20) {
  6430. return 'དགོང་དག';
  6431. } else {
  6432. return 'མཚན་མོ';
  6433. }
  6434. },
  6435. week: {
  6436. dow: 0, // Sunday is the first day of the week.
  6437. doy: 6, // The week that contains Jan 6th is the first week of the year.
  6438. },
  6439. });
  6440. //! moment.js locale configuration
  6441. function relativeTimeWithMutation(number, withoutSuffix, key) {
  6442. var format = {
  6443. mm: 'munutenn',
  6444. MM: 'miz',
  6445. dd: 'devezh',
  6446. };
  6447. return number + ' ' + mutation(format[key], number);
  6448. }
  6449. function specialMutationForYears(number) {
  6450. switch (lastNumber(number)) {
  6451. case 1:
  6452. case 3:
  6453. case 4:
  6454. case 5:
  6455. case 9:
  6456. return number + ' bloaz';
  6457. default:
  6458. return number + ' vloaz';
  6459. }
  6460. }
  6461. function lastNumber(number) {
  6462. if (number > 9) {
  6463. return lastNumber(number % 10);
  6464. }
  6465. return number;
  6466. }
  6467. function mutation(text, number) {
  6468. if (number === 2) {
  6469. return softMutation(text);
  6470. }
  6471. return text;
  6472. }
  6473. function softMutation(text) {
  6474. var mutationTable = {
  6475. m: 'v',
  6476. b: 'v',
  6477. d: 'z',
  6478. };
  6479. if (mutationTable[text.charAt(0)] === undefined) {
  6480. return text;
  6481. }
  6482. return mutationTable[text.charAt(0)] + text.substring(1);
  6483. }
  6484. var monthsParse = [
  6485. /^gen/i,
  6486. /^c[ʼ\']hwe/i,
  6487. /^meu/i,
  6488. /^ebr/i,
  6489. /^mae/i,
  6490. /^(mez|eve)/i,
  6491. /^gou/i,
  6492. /^eos/i,
  6493. /^gwe/i,
  6494. /^her/i,
  6495. /^du/i,
  6496. /^ker/i,
  6497. ],
  6498. monthsRegex$1 =
  6499. /^(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,
  6500. monthsStrictRegex =
  6501. /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,
  6502. monthsShortStrictRegex =
  6503. /^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
  6504. fullWeekdaysParse = [
  6505. /^sul/i,
  6506. /^lun/i,
  6507. /^meurzh/i,
  6508. /^merc[ʼ\']her/i,
  6509. /^yaou/i,
  6510. /^gwener/i,
  6511. /^sadorn/i,
  6512. ],
  6513. shortWeekdaysParse = [
  6514. /^Sul/i,
  6515. /^Lun/i,
  6516. /^Meu/i,
  6517. /^Mer/i,
  6518. /^Yao/i,
  6519. /^Gwe/i,
  6520. /^Sad/i,
  6521. ],
  6522. minWeekdaysParse = [
  6523. /^Su/i,
  6524. /^Lu/i,
  6525. /^Me([^r]|$)/i,
  6526. /^Mer/i,
  6527. /^Ya/i,
  6528. /^Gw/i,
  6529. /^Sa/i,
  6530. ];
  6531. hooks.defineLocale('br', {
  6532. months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split(
  6533. '_'
  6534. ),
  6535. monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
  6536. weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'),
  6537. weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
  6538. weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
  6539. weekdaysParse: minWeekdaysParse,
  6540. fullWeekdaysParse: fullWeekdaysParse,
  6541. shortWeekdaysParse: shortWeekdaysParse,
  6542. minWeekdaysParse: minWeekdaysParse,
  6543. monthsRegex: monthsRegex$1,
  6544. monthsShortRegex: monthsRegex$1,
  6545. monthsStrictRegex: monthsStrictRegex,
  6546. monthsShortStrictRegex: monthsShortStrictRegex,
  6547. monthsParse: monthsParse,
  6548. longMonthsParse: monthsParse,
  6549. shortMonthsParse: monthsParse,
  6550. longDateFormat: {
  6551. LT: 'HH:mm',
  6552. LTS: 'HH:mm:ss',
  6553. L: 'DD/MM/YYYY',
  6554. LL: 'D [a viz] MMMM YYYY',
  6555. LLL: 'D [a viz] MMMM YYYY HH:mm',
  6556. LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm',
  6557. },
  6558. calendar: {
  6559. sameDay: '[Hiziv da] LT',
  6560. nextDay: '[Warcʼhoazh da] LT',
  6561. nextWeek: 'dddd [da] LT',
  6562. lastDay: '[Decʼh da] LT',
  6563. lastWeek: 'dddd [paset da] LT',
  6564. sameElse: 'L',
  6565. },
  6566. relativeTime: {
  6567. future: 'a-benn %s',
  6568. past: '%s ʼzo',
  6569. s: 'un nebeud segondennoù',
  6570. ss: '%d eilenn',
  6571. m: 'ur vunutenn',
  6572. mm: relativeTimeWithMutation,
  6573. h: 'un eur',
  6574. hh: '%d eur',
  6575. d: 'un devezh',
  6576. dd: relativeTimeWithMutation,
  6577. M: 'ur miz',
  6578. MM: relativeTimeWithMutation,
  6579. y: 'ur bloaz',
  6580. yy: specialMutationForYears,
  6581. },
  6582. dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
  6583. ordinal: function (number) {
  6584. var output = number === 1 ? 'añ' : 'vet';
  6585. return number + output;
  6586. },
  6587. week: {
  6588. dow: 1, // Monday is the first day of the week.
  6589. doy: 4, // The week that contains Jan 4th is the first week of the year.
  6590. },
  6591. meridiemParse: /a.m.|g.m./, // goude merenn | a-raok merenn
  6592. isPM: function (token) {
  6593. return token === 'g.m.';
  6594. },
  6595. meridiem: function (hour, minute, isLower) {
  6596. return hour < 12 ? 'a.m.' : 'g.m.';
  6597. },
  6598. });
  6599. //! moment.js locale configuration
  6600. function translate(number, withoutSuffix, key) {
  6601. var result = number + ' ';
  6602. switch (key) {
  6603. case 'ss':
  6604. if (number === 1) {
  6605. result += 'sekunda';
  6606. } else if (number === 2 || number === 3 || number === 4) {
  6607. result += 'sekunde';
  6608. } else {
  6609. result += 'sekundi';
  6610. }
  6611. return result;
  6612. case 'm':
  6613. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  6614. case 'mm':
  6615. if (number === 1) {
  6616. result += 'minuta';
  6617. } else if (number === 2 || number === 3 || number === 4) {
  6618. result += 'minute';
  6619. } else {
  6620. result += 'minuta';
  6621. }
  6622. return result;
  6623. case 'h':
  6624. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  6625. case 'hh':
  6626. if (number === 1) {
  6627. result += 'sat';
  6628. } else if (number === 2 || number === 3 || number === 4) {
  6629. result += 'sata';
  6630. } else {
  6631. result += 'sati';
  6632. }
  6633. return result;
  6634. case 'dd':
  6635. if (number === 1) {
  6636. result += 'dan';
  6637. } else {
  6638. result += 'dana';
  6639. }
  6640. return result;
  6641. case 'MM':
  6642. if (number === 1) {
  6643. result += 'mjesec';
  6644. } else if (number === 2 || number === 3 || number === 4) {
  6645. result += 'mjeseca';
  6646. } else {
  6647. result += 'mjeseci';
  6648. }
  6649. return result;
  6650. case 'yy':
  6651. if (number === 1) {
  6652. result += 'godina';
  6653. } else if (number === 2 || number === 3 || number === 4) {
  6654. result += 'godine';
  6655. } else {
  6656. result += 'godina';
  6657. }
  6658. return result;
  6659. }
  6660. }
  6661. hooks.defineLocale('bs', {
  6662. months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split(
  6663. '_'
  6664. ),
  6665. monthsShort:
  6666. 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split(
  6667. '_'
  6668. ),
  6669. monthsParseExact: true,
  6670. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
  6671. '_'
  6672. ),
  6673. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  6674. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  6675. weekdaysParseExact: true,
  6676. longDateFormat: {
  6677. LT: 'H:mm',
  6678. LTS: 'H:mm:ss',
  6679. L: 'DD.MM.YYYY',
  6680. LL: 'D. MMMM YYYY',
  6681. LLL: 'D. MMMM YYYY H:mm',
  6682. LLLL: 'dddd, D. MMMM YYYY H:mm',
  6683. },
  6684. calendar: {
  6685. sameDay: '[danas u] LT',
  6686. nextDay: '[sutra u] LT',
  6687. nextWeek: function () {
  6688. switch (this.day()) {
  6689. case 0:
  6690. return '[u] [nedjelju] [u] LT';
  6691. case 3:
  6692. return '[u] [srijedu] [u] LT';
  6693. case 6:
  6694. return '[u] [subotu] [u] LT';
  6695. case 1:
  6696. case 2:
  6697. case 4:
  6698. case 5:
  6699. return '[u] dddd [u] LT';
  6700. }
  6701. },
  6702. lastDay: '[jučer u] LT',
  6703. lastWeek: function () {
  6704. switch (this.day()) {
  6705. case 0:
  6706. case 3:
  6707. return '[prošlu] dddd [u] LT';
  6708. case 6:
  6709. return '[prošle] [subote] [u] LT';
  6710. case 1:
  6711. case 2:
  6712. case 4:
  6713. case 5:
  6714. return '[prošli] dddd [u] LT';
  6715. }
  6716. },
  6717. sameElse: 'L',
  6718. },
  6719. relativeTime: {
  6720. future: 'za %s',
  6721. past: 'prije %s',
  6722. s: 'par sekundi',
  6723. ss: translate,
  6724. m: translate,
  6725. mm: translate,
  6726. h: translate,
  6727. hh: translate,
  6728. d: 'dan',
  6729. dd: translate,
  6730. M: 'mjesec',
  6731. MM: translate,
  6732. y: 'godinu',
  6733. yy: translate,
  6734. },
  6735. dayOfMonthOrdinalParse: /\d{1,2}\./,
  6736. ordinal: '%d.',
  6737. week: {
  6738. dow: 1, // Monday is the first day of the week.
  6739. doy: 7, // The week that contains Jan 7th is the first week of the year.
  6740. },
  6741. });
  6742. //! moment.js locale configuration
  6743. hooks.defineLocale('ca', {
  6744. months: {
  6745. standalone:
  6746. 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split(
  6747. '_'
  6748. ),
  6749. 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(
  6750. '_'
  6751. ),
  6752. isFormat: /D[oD]?(\s)+MMMM/,
  6753. },
  6754. monthsShort:
  6755. 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split(
  6756. '_'
  6757. ),
  6758. monthsParseExact: true,
  6759. weekdays:
  6760. 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split(
  6761. '_'
  6762. ),
  6763. weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
  6764. weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
  6765. weekdaysParseExact: true,
  6766. longDateFormat: {
  6767. LT: 'H:mm',
  6768. LTS: 'H:mm:ss',
  6769. L: 'DD/MM/YYYY',
  6770. LL: 'D MMMM [de] YYYY',
  6771. ll: 'D MMM YYYY',
  6772. LLL: 'D MMMM [de] YYYY [a les] H:mm',
  6773. lll: 'D MMM YYYY, H:mm',
  6774. LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',
  6775. llll: 'ddd D MMM YYYY, H:mm',
  6776. },
  6777. calendar: {
  6778. sameDay: function () {
  6779. return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  6780. },
  6781. nextDay: function () {
  6782. return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  6783. },
  6784. nextWeek: function () {
  6785. return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  6786. },
  6787. lastDay: function () {
  6788. return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  6789. },
  6790. lastWeek: function () {
  6791. return (
  6792. '[el] dddd [passat a ' +
  6793. (this.hours() !== 1 ? 'les' : 'la') +
  6794. '] LT'
  6795. );
  6796. },
  6797. sameElse: 'L',
  6798. },
  6799. relativeTime: {
  6800. future: "d'aquí %s",
  6801. past: 'fa %s',
  6802. s: 'uns segons',
  6803. ss: '%d segons',
  6804. m: 'un minut',
  6805. mm: '%d minuts',
  6806. h: 'una hora',
  6807. hh: '%d hores',
  6808. d: 'un dia',
  6809. dd: '%d dies',
  6810. M: 'un mes',
  6811. MM: '%d mesos',
  6812. y: 'un any',
  6813. yy: '%d anys',
  6814. },
  6815. dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
  6816. ordinal: function (number, period) {
  6817. var output =
  6818. number === 1
  6819. ? 'r'
  6820. : number === 2
  6821. ? 'n'
  6822. : number === 3
  6823. ? 'r'
  6824. : number === 4
  6825. ? 't'
  6826. : 'è';
  6827. if (period === 'w' || period === 'W') {
  6828. output = 'a';
  6829. }
  6830. return number + output;
  6831. },
  6832. week: {
  6833. dow: 1, // Monday is the first day of the week.
  6834. doy: 4, // The week that contains Jan 4th is the first week of the year.
  6835. },
  6836. });
  6837. //! moment.js locale configuration
  6838. var months$4 = {
  6839. format: 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split(
  6840. '_'
  6841. ),
  6842. standalone:
  6843. 'ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince'.split(
  6844. '_'
  6845. ),
  6846. },
  6847. monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),
  6848. monthsParse$1 = [
  6849. /^led/i,
  6850. /^úno/i,
  6851. /^bře/i,
  6852. /^dub/i,
  6853. /^kvě/i,
  6854. /^(čvn|červen$|června)/i,
  6855. /^(čvc|červenec|července)/i,
  6856. /^srp/i,
  6857. /^zář/i,
  6858. /^říj/i,
  6859. /^lis/i,
  6860. /^pro/i,
  6861. ],
  6862. // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
  6863. // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
  6864. monthsRegex$2 =
  6865. /^(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;
  6866. function plural$1(n) {
  6867. return n > 1 && n < 5 && ~~(n / 10) !== 1;
  6868. }
  6869. function translate$1(number, withoutSuffix, key, isFuture) {
  6870. var result = number + ' ';
  6871. switch (key) {
  6872. case 's': // a few seconds / in a few seconds / a few seconds ago
  6873. return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami';
  6874. case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
  6875. if (withoutSuffix || isFuture) {
  6876. return result + (plural$1(number) ? 'sekundy' : 'sekund');
  6877. } else {
  6878. return result + 'sekundami';
  6879. }
  6880. case 'm': // a minute / in a minute / a minute ago
  6881. return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou';
  6882. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  6883. if (withoutSuffix || isFuture) {
  6884. return result + (plural$1(number) ? 'minuty' : 'minut');
  6885. } else {
  6886. return result + 'minutami';
  6887. }
  6888. case 'h': // an hour / in an hour / an hour ago
  6889. return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
  6890. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  6891. if (withoutSuffix || isFuture) {
  6892. return result + (plural$1(number) ? 'hodiny' : 'hodin');
  6893. } else {
  6894. return result + 'hodinami';
  6895. }
  6896. case 'd': // a day / in a day / a day ago
  6897. return withoutSuffix || isFuture ? 'den' : 'dnem';
  6898. case 'dd': // 9 days / in 9 days / 9 days ago
  6899. if (withoutSuffix || isFuture) {
  6900. return result + (plural$1(number) ? 'dny' : 'dní');
  6901. } else {
  6902. return result + 'dny';
  6903. }
  6904. case 'M': // a month / in a month / a month ago
  6905. return withoutSuffix || isFuture ? 'měsíc' : 'měsícem';
  6906. case 'MM': // 9 months / in 9 months / 9 months ago
  6907. if (withoutSuffix || isFuture) {
  6908. return result + (plural$1(number) ? 'měsíce' : 'měsíců');
  6909. } else {
  6910. return result + 'měsíci';
  6911. }
  6912. case 'y': // a year / in a year / a year ago
  6913. return withoutSuffix || isFuture ? 'rok' : 'rokem';
  6914. case 'yy': // 9 years / in 9 years / 9 years ago
  6915. if (withoutSuffix || isFuture) {
  6916. return result + (plural$1(number) ? 'roky' : 'let');
  6917. } else {
  6918. return result + 'lety';
  6919. }
  6920. }
  6921. }
  6922. hooks.defineLocale('cs', {
  6923. months: months$4,
  6924. monthsShort: monthsShort,
  6925. monthsRegex: monthsRegex$2,
  6926. monthsShortRegex: monthsRegex$2,
  6927. // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
  6928. // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
  6929. monthsStrictRegex:
  6930. /^(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,
  6931. monthsShortStrictRegex:
  6932. /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,
  6933. monthsParse: monthsParse$1,
  6934. longMonthsParse: monthsParse$1,
  6935. shortMonthsParse: monthsParse$1,
  6936. weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
  6937. weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'),
  6938. weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'),
  6939. longDateFormat: {
  6940. LT: 'H:mm',
  6941. LTS: 'H:mm:ss',
  6942. L: 'DD.MM.YYYY',
  6943. LL: 'D. MMMM YYYY',
  6944. LLL: 'D. MMMM YYYY H:mm',
  6945. LLLL: 'dddd D. MMMM YYYY H:mm',
  6946. l: 'D. M. YYYY',
  6947. },
  6948. calendar: {
  6949. sameDay: '[dnes v] LT',
  6950. nextDay: '[zítra v] LT',
  6951. nextWeek: function () {
  6952. switch (this.day()) {
  6953. case 0:
  6954. return '[v neděli v] LT';
  6955. case 1:
  6956. case 2:
  6957. return '[v] dddd [v] LT';
  6958. case 3:
  6959. return '[ve středu v] LT';
  6960. case 4:
  6961. return '[ve čtvrtek v] LT';
  6962. case 5:
  6963. return '[v pátek v] LT';
  6964. case 6:
  6965. return '[v sobotu v] LT';
  6966. }
  6967. },
  6968. lastDay: '[včera v] LT',
  6969. lastWeek: function () {
  6970. switch (this.day()) {
  6971. case 0:
  6972. return '[minulou neděli v] LT';
  6973. case 1:
  6974. case 2:
  6975. return '[minulé] dddd [v] LT';
  6976. case 3:
  6977. return '[minulou středu v] LT';
  6978. case 4:
  6979. case 5:
  6980. return '[minulý] dddd [v] LT';
  6981. case 6:
  6982. return '[minulou sobotu v] LT';
  6983. }
  6984. },
  6985. sameElse: 'L',
  6986. },
  6987. relativeTime: {
  6988. future: 'za %s',
  6989. past: 'před %s',
  6990. s: translate$1,
  6991. ss: translate$1,
  6992. m: translate$1,
  6993. mm: translate$1,
  6994. h: translate$1,
  6995. hh: translate$1,
  6996. d: translate$1,
  6997. dd: translate$1,
  6998. M: translate$1,
  6999. MM: translate$1,
  7000. y: translate$1,
  7001. yy: translate$1,
  7002. },
  7003. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7004. ordinal: '%d.',
  7005. week: {
  7006. dow: 1, // Monday is the first day of the week.
  7007. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7008. },
  7009. });
  7010. //! moment.js locale configuration
  7011. hooks.defineLocale('cv', {
  7012. months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split(
  7013. '_'
  7014. ),
  7015. monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
  7016. weekdays:
  7017. 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split(
  7018. '_'
  7019. ),
  7020. weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
  7021. weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
  7022. longDateFormat: {
  7023. LT: 'HH:mm',
  7024. LTS: 'HH:mm:ss',
  7025. L: 'DD-MM-YYYY',
  7026. LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
  7027. LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
  7028. LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
  7029. },
  7030. calendar: {
  7031. sameDay: '[Паян] LT [сехетре]',
  7032. nextDay: '[Ыран] LT [сехетре]',
  7033. lastDay: '[Ӗнер] LT [сехетре]',
  7034. nextWeek: '[Ҫитес] dddd LT [сехетре]',
  7035. lastWeek: '[Иртнӗ] dddd LT [сехетре]',
  7036. sameElse: 'L',
  7037. },
  7038. relativeTime: {
  7039. future: function (output) {
  7040. var affix = /сехет$/i.exec(output)
  7041. ? 'рен'
  7042. : /ҫул$/i.exec(output)
  7043. ? 'тан'
  7044. : 'ран';
  7045. return output + affix;
  7046. },
  7047. past: '%s каялла',
  7048. s: 'пӗр-ик ҫеккунт',
  7049. ss: '%d ҫеккунт',
  7050. m: 'пӗр минут',
  7051. mm: '%d минут',
  7052. h: 'пӗр сехет',
  7053. hh: '%d сехет',
  7054. d: 'пӗр кун',
  7055. dd: '%d кун',
  7056. M: 'пӗр уйӑх',
  7057. MM: '%d уйӑх',
  7058. y: 'пӗр ҫул',
  7059. yy: '%d ҫул',
  7060. },
  7061. dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
  7062. ordinal: '%d-мӗш',
  7063. week: {
  7064. dow: 1, // Monday is the first day of the week.
  7065. doy: 7, // The week that contains Jan 7th is the first week of the year.
  7066. },
  7067. });
  7068. //! moment.js locale configuration
  7069. hooks.defineLocale('cy', {
  7070. months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split(
  7071. '_'
  7072. ),
  7073. monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split(
  7074. '_'
  7075. ),
  7076. weekdays:
  7077. 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split(
  7078. '_'
  7079. ),
  7080. weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
  7081. weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
  7082. weekdaysParseExact: true,
  7083. // time formats are the same as en-gb
  7084. longDateFormat: {
  7085. LT: 'HH:mm',
  7086. LTS: 'HH:mm:ss',
  7087. L: 'DD/MM/YYYY',
  7088. LL: 'D MMMM YYYY',
  7089. LLL: 'D MMMM YYYY HH:mm',
  7090. LLLL: 'dddd, D MMMM YYYY HH:mm',
  7091. },
  7092. calendar: {
  7093. sameDay: '[Heddiw am] LT',
  7094. nextDay: '[Yfory am] LT',
  7095. nextWeek: 'dddd [am] LT',
  7096. lastDay: '[Ddoe am] LT',
  7097. lastWeek: 'dddd [diwethaf am] LT',
  7098. sameElse: 'L',
  7099. },
  7100. relativeTime: {
  7101. future: 'mewn %s',
  7102. past: '%s yn ôl',
  7103. s: 'ychydig eiliadau',
  7104. ss: '%d eiliad',
  7105. m: 'munud',
  7106. mm: '%d munud',
  7107. h: 'awr',
  7108. hh: '%d awr',
  7109. d: 'diwrnod',
  7110. dd: '%d diwrnod',
  7111. M: 'mis',
  7112. MM: '%d mis',
  7113. y: 'blwyddyn',
  7114. yy: '%d flynedd',
  7115. },
  7116. dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
  7117. // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
  7118. ordinal: function (number) {
  7119. var b = number,
  7120. output = '',
  7121. lookup = [
  7122. '',
  7123. 'af',
  7124. 'il',
  7125. 'ydd',
  7126. 'ydd',
  7127. 'ed',
  7128. 'ed',
  7129. 'ed',
  7130. 'fed',
  7131. 'fed',
  7132. 'fed', // 1af to 10fed
  7133. 'eg',
  7134. 'fed',
  7135. 'eg',
  7136. 'eg',
  7137. 'fed',
  7138. 'eg',
  7139. 'eg',
  7140. 'fed',
  7141. 'eg',
  7142. 'fed', // 11eg to 20fed
  7143. ];
  7144. if (b > 20) {
  7145. if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
  7146. output = 'fed'; // not 30ain, 70ain or 90ain
  7147. } else {
  7148. output = 'ain';
  7149. }
  7150. } else if (b > 0) {
  7151. output = lookup[b];
  7152. }
  7153. return number + output;
  7154. },
  7155. week: {
  7156. dow: 1, // Monday is the first day of the week.
  7157. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7158. },
  7159. });
  7160. //! moment.js locale configuration
  7161. hooks.defineLocale('da', {
  7162. months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split(
  7163. '_'
  7164. ),
  7165. monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  7166. weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  7167. weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'),
  7168. weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
  7169. longDateFormat: {
  7170. LT: 'HH:mm',
  7171. LTS: 'HH:mm:ss',
  7172. L: 'DD.MM.YYYY',
  7173. LL: 'D. MMMM YYYY',
  7174. LLL: 'D. MMMM YYYY HH:mm',
  7175. LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm',
  7176. },
  7177. calendar: {
  7178. sameDay: '[i dag kl.] LT',
  7179. nextDay: '[i morgen kl.] LT',
  7180. nextWeek: 'på dddd [kl.] LT',
  7181. lastDay: '[i går kl.] LT',
  7182. lastWeek: '[i] dddd[s kl.] LT',
  7183. sameElse: 'L',
  7184. },
  7185. relativeTime: {
  7186. future: 'om %s',
  7187. past: '%s siden',
  7188. s: 'få sekunder',
  7189. ss: '%d sekunder',
  7190. m: 'et minut',
  7191. mm: '%d minutter',
  7192. h: 'en time',
  7193. hh: '%d timer',
  7194. d: 'en dag',
  7195. dd: '%d dage',
  7196. M: 'en måned',
  7197. MM: '%d måneder',
  7198. y: 'et år',
  7199. yy: '%d år',
  7200. },
  7201. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7202. ordinal: '%d.',
  7203. week: {
  7204. dow: 1, // Monday is the first day of the week.
  7205. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7206. },
  7207. });
  7208. //! moment.js locale configuration
  7209. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  7210. var format = {
  7211. m: ['eine Minute', 'einer Minute'],
  7212. h: ['eine Stunde', 'einer Stunde'],
  7213. d: ['ein Tag', 'einem Tag'],
  7214. dd: [number + ' Tage', number + ' Tagen'],
  7215. w: ['eine Woche', 'einer Woche'],
  7216. M: ['ein Monat', 'einem Monat'],
  7217. MM: [number + ' Monate', number + ' Monaten'],
  7218. y: ['ein Jahr', 'einem Jahr'],
  7219. yy: [number + ' Jahre', number + ' Jahren'],
  7220. };
  7221. return withoutSuffix ? format[key][0] : format[key][1];
  7222. }
  7223. hooks.defineLocale('de-at', {
  7224. months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  7225. '_'
  7226. ),
  7227. monthsShort:
  7228. 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
  7229. monthsParseExact: true,
  7230. weekdays:
  7231. 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
  7232. '_'
  7233. ),
  7234. weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  7235. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  7236. weekdaysParseExact: true,
  7237. longDateFormat: {
  7238. LT: 'HH:mm',
  7239. LTS: 'HH:mm:ss',
  7240. L: 'DD.MM.YYYY',
  7241. LL: 'D. MMMM YYYY',
  7242. LLL: 'D. MMMM YYYY HH:mm',
  7243. LLLL: 'dddd, D. MMMM YYYY HH:mm',
  7244. },
  7245. calendar: {
  7246. sameDay: '[heute um] LT [Uhr]',
  7247. sameElse: 'L',
  7248. nextDay: '[morgen um] LT [Uhr]',
  7249. nextWeek: 'dddd [um] LT [Uhr]',
  7250. lastDay: '[gestern um] LT [Uhr]',
  7251. lastWeek: '[letzten] dddd [um] LT [Uhr]',
  7252. },
  7253. relativeTime: {
  7254. future: 'in %s',
  7255. past: 'vor %s',
  7256. s: 'ein paar Sekunden',
  7257. ss: '%d Sekunden',
  7258. m: processRelativeTime,
  7259. mm: '%d Minuten',
  7260. h: processRelativeTime,
  7261. hh: '%d Stunden',
  7262. d: processRelativeTime,
  7263. dd: processRelativeTime,
  7264. w: processRelativeTime,
  7265. ww: '%d Wochen',
  7266. M: processRelativeTime,
  7267. MM: processRelativeTime,
  7268. y: processRelativeTime,
  7269. yy: processRelativeTime,
  7270. },
  7271. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7272. ordinal: '%d.',
  7273. week: {
  7274. dow: 1, // Monday is the first day of the week.
  7275. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7276. },
  7277. });
  7278. //! moment.js locale configuration
  7279. function processRelativeTime$1(number, withoutSuffix, key, isFuture) {
  7280. var format = {
  7281. m: ['eine Minute', 'einer Minute'],
  7282. h: ['eine Stunde', 'einer Stunde'],
  7283. d: ['ein Tag', 'einem Tag'],
  7284. dd: [number + ' Tage', number + ' Tagen'],
  7285. w: ['eine Woche', 'einer Woche'],
  7286. M: ['ein Monat', 'einem Monat'],
  7287. MM: [number + ' Monate', number + ' Monaten'],
  7288. y: ['ein Jahr', 'einem Jahr'],
  7289. yy: [number + ' Jahre', number + ' Jahren'],
  7290. };
  7291. return withoutSuffix ? format[key][0] : format[key][1];
  7292. }
  7293. hooks.defineLocale('de-ch', {
  7294. months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  7295. '_'
  7296. ),
  7297. monthsShort:
  7298. 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
  7299. monthsParseExact: true,
  7300. weekdays:
  7301. 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
  7302. '_'
  7303. ),
  7304. weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  7305. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  7306. weekdaysParseExact: true,
  7307. longDateFormat: {
  7308. LT: 'HH:mm',
  7309. LTS: 'HH:mm:ss',
  7310. L: 'DD.MM.YYYY',
  7311. LL: 'D. MMMM YYYY',
  7312. LLL: 'D. MMMM YYYY HH:mm',
  7313. LLLL: 'dddd, D. MMMM YYYY HH:mm',
  7314. },
  7315. calendar: {
  7316. sameDay: '[heute um] LT [Uhr]',
  7317. sameElse: 'L',
  7318. nextDay: '[morgen um] LT [Uhr]',
  7319. nextWeek: 'dddd [um] LT [Uhr]',
  7320. lastDay: '[gestern um] LT [Uhr]',
  7321. lastWeek: '[letzten] dddd [um] LT [Uhr]',
  7322. },
  7323. relativeTime: {
  7324. future: 'in %s',
  7325. past: 'vor %s',
  7326. s: 'ein paar Sekunden',
  7327. ss: '%d Sekunden',
  7328. m: processRelativeTime$1,
  7329. mm: '%d Minuten',
  7330. h: processRelativeTime$1,
  7331. hh: '%d Stunden',
  7332. d: processRelativeTime$1,
  7333. dd: processRelativeTime$1,
  7334. w: processRelativeTime$1,
  7335. ww: '%d Wochen',
  7336. M: processRelativeTime$1,
  7337. MM: processRelativeTime$1,
  7338. y: processRelativeTime$1,
  7339. yy: processRelativeTime$1,
  7340. },
  7341. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7342. ordinal: '%d.',
  7343. week: {
  7344. dow: 1, // Monday is the first day of the week.
  7345. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7346. },
  7347. });
  7348. //! moment.js locale configuration
  7349. function processRelativeTime$2(number, withoutSuffix, key, isFuture) {
  7350. var format = {
  7351. m: ['eine Minute', 'einer Minute'],
  7352. h: ['eine Stunde', 'einer Stunde'],
  7353. d: ['ein Tag', 'einem Tag'],
  7354. dd: [number + ' Tage', number + ' Tagen'],
  7355. w: ['eine Woche', 'einer Woche'],
  7356. M: ['ein Monat', 'einem Monat'],
  7357. MM: [number + ' Monate', number + ' Monaten'],
  7358. y: ['ein Jahr', 'einem Jahr'],
  7359. yy: [number + ' Jahre', number + ' Jahren'],
  7360. };
  7361. return withoutSuffix ? format[key][0] : format[key][1];
  7362. }
  7363. hooks.defineLocale('de', {
  7364. months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  7365. '_'
  7366. ),
  7367. monthsShort:
  7368. 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
  7369. monthsParseExact: true,
  7370. weekdays:
  7371. 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
  7372. '_'
  7373. ),
  7374. weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  7375. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  7376. weekdaysParseExact: true,
  7377. longDateFormat: {
  7378. LT: 'HH:mm',
  7379. LTS: 'HH:mm:ss',
  7380. L: 'DD.MM.YYYY',
  7381. LL: 'D. MMMM YYYY',
  7382. LLL: 'D. MMMM YYYY HH:mm',
  7383. LLLL: 'dddd, D. MMMM YYYY HH:mm',
  7384. },
  7385. calendar: {
  7386. sameDay: '[heute um] LT [Uhr]',
  7387. sameElse: 'L',
  7388. nextDay: '[morgen um] LT [Uhr]',
  7389. nextWeek: 'dddd [um] LT [Uhr]',
  7390. lastDay: '[gestern um] LT [Uhr]',
  7391. lastWeek: '[letzten] dddd [um] LT [Uhr]',
  7392. },
  7393. relativeTime: {
  7394. future: 'in %s',
  7395. past: 'vor %s',
  7396. s: 'ein paar Sekunden',
  7397. ss: '%d Sekunden',
  7398. m: processRelativeTime$2,
  7399. mm: '%d Minuten',
  7400. h: processRelativeTime$2,
  7401. hh: '%d Stunden',
  7402. d: processRelativeTime$2,
  7403. dd: processRelativeTime$2,
  7404. w: processRelativeTime$2,
  7405. ww: '%d Wochen',
  7406. M: processRelativeTime$2,
  7407. MM: processRelativeTime$2,
  7408. y: processRelativeTime$2,
  7409. yy: processRelativeTime$2,
  7410. },
  7411. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7412. ordinal: '%d.',
  7413. week: {
  7414. dow: 1, // Monday is the first day of the week.
  7415. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7416. },
  7417. });
  7418. //! moment.js locale configuration
  7419. var months$5 = [
  7420. 'ޖެނުއަރީ',
  7421. 'ފެބްރުއަރީ',
  7422. 'މާރިޗު',
  7423. 'އޭޕްރީލު',
  7424. 'މޭ',
  7425. 'ޖޫން',
  7426. 'ޖުލައި',
  7427. 'އޯގަސްޓު',
  7428. 'ސެޕްޓެމްބަރު',
  7429. 'އޮކްޓޯބަރު',
  7430. 'ނޮވެމްބަރު',
  7431. 'ޑިސެމްބަރު',
  7432. ],
  7433. weekdays = [
  7434. 'އާދިއްތަ',
  7435. 'ހޯމަ',
  7436. 'އަންގާރަ',
  7437. 'ބުދަ',
  7438. 'ބުރާސްފަތި',
  7439. 'ހުކުރު',
  7440. 'ހޮނިހިރު',
  7441. ];
  7442. hooks.defineLocale('dv', {
  7443. months: months$5,
  7444. monthsShort: months$5,
  7445. weekdays: weekdays,
  7446. weekdaysShort: weekdays,
  7447. weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
  7448. longDateFormat: {
  7449. LT: 'HH:mm',
  7450. LTS: 'HH:mm:ss',
  7451. L: 'D/M/YYYY',
  7452. LL: 'D MMMM YYYY',
  7453. LLL: 'D MMMM YYYY HH:mm',
  7454. LLLL: 'dddd D MMMM YYYY HH:mm',
  7455. },
  7456. meridiemParse: /މކ|މފ/,
  7457. isPM: function (input) {
  7458. return 'މފ' === input;
  7459. },
  7460. meridiem: function (hour, minute, isLower) {
  7461. if (hour < 12) {
  7462. return 'މކ';
  7463. } else {
  7464. return 'މފ';
  7465. }
  7466. },
  7467. calendar: {
  7468. sameDay: '[މިއަދު] LT',
  7469. nextDay: '[މާދަމާ] LT',
  7470. nextWeek: 'dddd LT',
  7471. lastDay: '[އިއްޔެ] LT',
  7472. lastWeek: '[ފާއިތުވި] dddd LT',
  7473. sameElse: 'L',
  7474. },
  7475. relativeTime: {
  7476. future: 'ތެރޭގައި %s',
  7477. past: 'ކުރިން %s',
  7478. s: 'ސިކުންތުކޮޅެއް',
  7479. ss: 'd% ސިކުންތު',
  7480. m: 'މިނިޓެއް',
  7481. mm: 'މިނިޓު %d',
  7482. h: 'ގަޑިއިރެއް',
  7483. hh: 'ގަޑިއިރު %d',
  7484. d: 'ދުވަހެއް',
  7485. dd: 'ދުވަސް %d',
  7486. M: 'މަހެއް',
  7487. MM: 'މަސް %d',
  7488. y: 'އަހަރެއް',
  7489. yy: 'އަހަރު %d',
  7490. },
  7491. preparse: function (string) {
  7492. return string.replace(/،/g, ',');
  7493. },
  7494. postformat: function (string) {
  7495. return string.replace(/,/g, '،');
  7496. },
  7497. week: {
  7498. dow: 7, // Sunday is the first day of the week.
  7499. doy: 12, // The week that contains Jan 12th is the first week of the year.
  7500. },
  7501. });
  7502. //! moment.js locale configuration
  7503. function isFunction$1(input) {
  7504. return (
  7505. (typeof Function !== 'undefined' && input instanceof Function) ||
  7506. Object.prototype.toString.call(input) === '[object Function]'
  7507. );
  7508. }
  7509. hooks.defineLocale('el', {
  7510. monthsNominativeEl:
  7511. 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split(
  7512. '_'
  7513. ),
  7514. monthsGenitiveEl:
  7515. 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split(
  7516. '_'
  7517. ),
  7518. months: function (momentToFormat, format) {
  7519. if (!momentToFormat) {
  7520. return this._monthsNominativeEl;
  7521. } else if (
  7522. typeof format === 'string' &&
  7523. /D/.test(format.substring(0, format.indexOf('MMMM')))
  7524. ) {
  7525. // if there is a day number before 'MMMM'
  7526. return this._monthsGenitiveEl[momentToFormat.month()];
  7527. } else {
  7528. return this._monthsNominativeEl[momentToFormat.month()];
  7529. }
  7530. },
  7531. monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
  7532. weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split(
  7533. '_'
  7534. ),
  7535. weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
  7536. weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
  7537. meridiem: function (hours, minutes, isLower) {
  7538. if (hours > 11) {
  7539. return isLower ? 'μμ' : 'ΜΜ';
  7540. } else {
  7541. return isLower ? 'πμ' : 'ΠΜ';
  7542. }
  7543. },
  7544. isPM: function (input) {
  7545. return (input + '').toLowerCase()[0] === 'μ';
  7546. },
  7547. meridiemParse: /[ΠΜ]\.?Μ?\.?/i,
  7548. longDateFormat: {
  7549. LT: 'h:mm A',
  7550. LTS: 'h:mm:ss A',
  7551. L: 'DD/MM/YYYY',
  7552. LL: 'D MMMM YYYY',
  7553. LLL: 'D MMMM YYYY h:mm A',
  7554. LLLL: 'dddd, D MMMM YYYY h:mm A',
  7555. },
  7556. calendarEl: {
  7557. sameDay: '[Σήμερα {}] LT',
  7558. nextDay: '[Αύριο {}] LT',
  7559. nextWeek: 'dddd [{}] LT',
  7560. lastDay: '[Χθες {}] LT',
  7561. lastWeek: function () {
  7562. switch (this.day()) {
  7563. case 6:
  7564. return '[το προηγούμενο] dddd [{}] LT';
  7565. default:
  7566. return '[την προηγούμενη] dddd [{}] LT';
  7567. }
  7568. },
  7569. sameElse: 'L',
  7570. },
  7571. calendar: function (key, mom) {
  7572. var output = this._calendarEl[key],
  7573. hours = mom && mom.hours();
  7574. if (isFunction$1(output)) {
  7575. output = output.apply(mom);
  7576. }
  7577. return output.replace('{}', hours % 12 === 1 ? 'στη' : 'στις');
  7578. },
  7579. relativeTime: {
  7580. future: 'σε %s',
  7581. past: '%s πριν',
  7582. s: 'λίγα δευτερόλεπτα',
  7583. ss: '%d δευτερόλεπτα',
  7584. m: 'ένα λεπτό',
  7585. mm: '%d λεπτά',
  7586. h: 'μία ώρα',
  7587. hh: '%d ώρες',
  7588. d: 'μία μέρα',
  7589. dd: '%d μέρες',
  7590. M: 'ένας μήνας',
  7591. MM: '%d μήνες',
  7592. y: 'ένας χρόνος',
  7593. yy: '%d χρόνια',
  7594. },
  7595. dayOfMonthOrdinalParse: /\d{1,2}η/,
  7596. ordinal: '%dη',
  7597. week: {
  7598. dow: 1, // Monday is the first day of the week.
  7599. doy: 4, // The week that contains Jan 4st is the first week of the year.
  7600. },
  7601. });
  7602. //! moment.js locale configuration
  7603. hooks.defineLocale('en-au', {
  7604. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7605. '_'
  7606. ),
  7607. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7608. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7609. '_'
  7610. ),
  7611. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7612. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7613. longDateFormat: {
  7614. LT: 'h:mm A',
  7615. LTS: 'h:mm:ss A',
  7616. L: 'DD/MM/YYYY',
  7617. LL: 'D MMMM YYYY',
  7618. LLL: 'D MMMM YYYY h:mm A',
  7619. LLLL: 'dddd, D MMMM YYYY h:mm A',
  7620. },
  7621. calendar: {
  7622. sameDay: '[Today at] LT',
  7623. nextDay: '[Tomorrow at] LT',
  7624. nextWeek: 'dddd [at] LT',
  7625. lastDay: '[Yesterday at] LT',
  7626. lastWeek: '[Last] dddd [at] LT',
  7627. sameElse: 'L',
  7628. },
  7629. relativeTime: {
  7630. future: 'in %s',
  7631. past: '%s ago',
  7632. s: 'a few seconds',
  7633. ss: '%d seconds',
  7634. m: 'a minute',
  7635. mm: '%d minutes',
  7636. h: 'an hour',
  7637. hh: '%d hours',
  7638. d: 'a day',
  7639. dd: '%d days',
  7640. M: 'a month',
  7641. MM: '%d months',
  7642. y: 'a year',
  7643. yy: '%d years',
  7644. },
  7645. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7646. ordinal: function (number) {
  7647. var b = number % 10,
  7648. output =
  7649. ~~((number % 100) / 10) === 1
  7650. ? 'th'
  7651. : b === 1
  7652. ? 'st'
  7653. : b === 2
  7654. ? 'nd'
  7655. : b === 3
  7656. ? 'rd'
  7657. : 'th';
  7658. return number + output;
  7659. },
  7660. week: {
  7661. dow: 0, // Sunday is the first day of the week.
  7662. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7663. },
  7664. });
  7665. //! moment.js locale configuration
  7666. hooks.defineLocale('en-ca', {
  7667. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7668. '_'
  7669. ),
  7670. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7671. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7672. '_'
  7673. ),
  7674. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7675. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7676. longDateFormat: {
  7677. LT: 'h:mm A',
  7678. LTS: 'h:mm:ss A',
  7679. L: 'YYYY-MM-DD',
  7680. LL: 'MMMM D, YYYY',
  7681. LLL: 'MMMM D, YYYY h:mm A',
  7682. LLLL: 'dddd, MMMM D, YYYY h:mm A',
  7683. },
  7684. calendar: {
  7685. sameDay: '[Today at] LT',
  7686. nextDay: '[Tomorrow at] LT',
  7687. nextWeek: 'dddd [at] LT',
  7688. lastDay: '[Yesterday at] LT',
  7689. lastWeek: '[Last] dddd [at] LT',
  7690. sameElse: 'L',
  7691. },
  7692. relativeTime: {
  7693. future: 'in %s',
  7694. past: '%s ago',
  7695. s: 'a few seconds',
  7696. ss: '%d seconds',
  7697. m: 'a minute',
  7698. mm: '%d minutes',
  7699. h: 'an hour',
  7700. hh: '%d hours',
  7701. d: 'a day',
  7702. dd: '%d days',
  7703. M: 'a month',
  7704. MM: '%d months',
  7705. y: 'a year',
  7706. yy: '%d years',
  7707. },
  7708. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7709. ordinal: function (number) {
  7710. var b = number % 10,
  7711. output =
  7712. ~~((number % 100) / 10) === 1
  7713. ? 'th'
  7714. : b === 1
  7715. ? 'st'
  7716. : b === 2
  7717. ? 'nd'
  7718. : b === 3
  7719. ? 'rd'
  7720. : 'th';
  7721. return number + output;
  7722. },
  7723. });
  7724. //! moment.js locale configuration
  7725. hooks.defineLocale('en-gb', {
  7726. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7727. '_'
  7728. ),
  7729. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7730. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7731. '_'
  7732. ),
  7733. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7734. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7735. longDateFormat: {
  7736. LT: 'HH:mm',
  7737. LTS: 'HH:mm:ss',
  7738. L: 'DD/MM/YYYY',
  7739. LL: 'D MMMM YYYY',
  7740. LLL: 'D MMMM YYYY HH:mm',
  7741. LLLL: 'dddd, D MMMM YYYY HH:mm',
  7742. },
  7743. calendar: {
  7744. sameDay: '[Today at] LT',
  7745. nextDay: '[Tomorrow at] LT',
  7746. nextWeek: 'dddd [at] LT',
  7747. lastDay: '[Yesterday at] LT',
  7748. lastWeek: '[Last] dddd [at] LT',
  7749. sameElse: 'L',
  7750. },
  7751. relativeTime: {
  7752. future: 'in %s',
  7753. past: '%s ago',
  7754. s: 'a few seconds',
  7755. ss: '%d seconds',
  7756. m: 'a minute',
  7757. mm: '%d minutes',
  7758. h: 'an hour',
  7759. hh: '%d hours',
  7760. d: 'a day',
  7761. dd: '%d days',
  7762. M: 'a month',
  7763. MM: '%d months',
  7764. y: 'a year',
  7765. yy: '%d years',
  7766. },
  7767. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7768. ordinal: function (number) {
  7769. var b = number % 10,
  7770. output =
  7771. ~~((number % 100) / 10) === 1
  7772. ? 'th'
  7773. : b === 1
  7774. ? 'st'
  7775. : b === 2
  7776. ? 'nd'
  7777. : b === 3
  7778. ? 'rd'
  7779. : 'th';
  7780. return number + output;
  7781. },
  7782. week: {
  7783. dow: 1, // Monday is the first day of the week.
  7784. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7785. },
  7786. });
  7787. //! moment.js locale configuration
  7788. hooks.defineLocale('en-ie', {
  7789. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7790. '_'
  7791. ),
  7792. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7793. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7794. '_'
  7795. ),
  7796. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7797. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7798. longDateFormat: {
  7799. LT: 'HH:mm',
  7800. LTS: 'HH:mm:ss',
  7801. L: 'DD/MM/YYYY',
  7802. LL: 'D MMMM YYYY',
  7803. LLL: 'D MMMM YYYY HH:mm',
  7804. LLLL: 'dddd D MMMM YYYY HH:mm',
  7805. },
  7806. calendar: {
  7807. sameDay: '[Today at] LT',
  7808. nextDay: '[Tomorrow at] LT',
  7809. nextWeek: 'dddd [at] LT',
  7810. lastDay: '[Yesterday at] LT',
  7811. lastWeek: '[Last] dddd [at] LT',
  7812. sameElse: 'L',
  7813. },
  7814. relativeTime: {
  7815. future: 'in %s',
  7816. past: '%s ago',
  7817. s: 'a few seconds',
  7818. ss: '%d seconds',
  7819. m: 'a minute',
  7820. mm: '%d minutes',
  7821. h: 'an hour',
  7822. hh: '%d hours',
  7823. d: 'a day',
  7824. dd: '%d days',
  7825. M: 'a month',
  7826. MM: '%d months',
  7827. y: 'a year',
  7828. yy: '%d years',
  7829. },
  7830. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7831. ordinal: function (number) {
  7832. var b = number % 10,
  7833. output =
  7834. ~~((number % 100) / 10) === 1
  7835. ? 'th'
  7836. : b === 1
  7837. ? 'st'
  7838. : b === 2
  7839. ? 'nd'
  7840. : b === 3
  7841. ? 'rd'
  7842. : 'th';
  7843. return number + output;
  7844. },
  7845. week: {
  7846. dow: 1, // Monday is the first day of the week.
  7847. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7848. },
  7849. });
  7850. //! moment.js locale configuration
  7851. hooks.defineLocale('en-il', {
  7852. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7853. '_'
  7854. ),
  7855. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7856. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7857. '_'
  7858. ),
  7859. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7860. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7861. longDateFormat: {
  7862. LT: 'HH:mm',
  7863. LTS: 'HH:mm:ss',
  7864. L: 'DD/MM/YYYY',
  7865. LL: 'D MMMM YYYY',
  7866. LLL: 'D MMMM YYYY HH:mm',
  7867. LLLL: 'dddd, D MMMM YYYY HH:mm',
  7868. },
  7869. calendar: {
  7870. sameDay: '[Today at] LT',
  7871. nextDay: '[Tomorrow at] LT',
  7872. nextWeek: 'dddd [at] LT',
  7873. lastDay: '[Yesterday at] LT',
  7874. lastWeek: '[Last] dddd [at] LT',
  7875. sameElse: 'L',
  7876. },
  7877. relativeTime: {
  7878. future: 'in %s',
  7879. past: '%s ago',
  7880. s: 'a few seconds',
  7881. ss: '%d seconds',
  7882. m: 'a minute',
  7883. mm: '%d minutes',
  7884. h: 'an hour',
  7885. hh: '%d hours',
  7886. d: 'a day',
  7887. dd: '%d days',
  7888. M: 'a month',
  7889. MM: '%d months',
  7890. y: 'a year',
  7891. yy: '%d years',
  7892. },
  7893. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7894. ordinal: function (number) {
  7895. var b = number % 10,
  7896. output =
  7897. ~~((number % 100) / 10) === 1
  7898. ? 'th'
  7899. : b === 1
  7900. ? 'st'
  7901. : b === 2
  7902. ? 'nd'
  7903. : b === 3
  7904. ? 'rd'
  7905. : 'th';
  7906. return number + output;
  7907. },
  7908. });
  7909. //! moment.js locale configuration
  7910. hooks.defineLocale('en-in', {
  7911. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7912. '_'
  7913. ),
  7914. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7915. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7916. '_'
  7917. ),
  7918. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7919. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7920. longDateFormat: {
  7921. LT: 'h:mm A',
  7922. LTS: 'h:mm:ss A',
  7923. L: 'DD/MM/YYYY',
  7924. LL: 'D MMMM YYYY',
  7925. LLL: 'D MMMM YYYY h:mm A',
  7926. LLLL: 'dddd, D MMMM YYYY h:mm A',
  7927. },
  7928. calendar: {
  7929. sameDay: '[Today at] LT',
  7930. nextDay: '[Tomorrow at] LT',
  7931. nextWeek: 'dddd [at] LT',
  7932. lastDay: '[Yesterday at] LT',
  7933. lastWeek: '[Last] dddd [at] LT',
  7934. sameElse: 'L',
  7935. },
  7936. relativeTime: {
  7937. future: 'in %s',
  7938. past: '%s ago',
  7939. s: 'a few seconds',
  7940. ss: '%d seconds',
  7941. m: 'a minute',
  7942. mm: '%d minutes',
  7943. h: 'an hour',
  7944. hh: '%d hours',
  7945. d: 'a day',
  7946. dd: '%d days',
  7947. M: 'a month',
  7948. MM: '%d months',
  7949. y: 'a year',
  7950. yy: '%d years',
  7951. },
  7952. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7953. ordinal: function (number) {
  7954. var b = number % 10,
  7955. output =
  7956. ~~((number % 100) / 10) === 1
  7957. ? 'th'
  7958. : b === 1
  7959. ? 'st'
  7960. : b === 2
  7961. ? 'nd'
  7962. : b === 3
  7963. ? 'rd'
  7964. : 'th';
  7965. return number + output;
  7966. },
  7967. week: {
  7968. dow: 0, // Sunday is the first day of the week.
  7969. doy: 6, // The week that contains Jan 1st is the first week of the year.
  7970. },
  7971. });
  7972. //! moment.js locale configuration
  7973. hooks.defineLocale('en-nz', {
  7974. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7975. '_'
  7976. ),
  7977. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7978. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7979. '_'
  7980. ),
  7981. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7982. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7983. longDateFormat: {
  7984. LT: 'h:mm A',
  7985. LTS: 'h:mm:ss A',
  7986. L: 'DD/MM/YYYY',
  7987. LL: 'D MMMM YYYY',
  7988. LLL: 'D MMMM YYYY h:mm A',
  7989. LLLL: 'dddd, D MMMM YYYY h:mm A',
  7990. },
  7991. calendar: {
  7992. sameDay: '[Today at] LT',
  7993. nextDay: '[Tomorrow at] LT',
  7994. nextWeek: 'dddd [at] LT',
  7995. lastDay: '[Yesterday at] LT',
  7996. lastWeek: '[Last] dddd [at] LT',
  7997. sameElse: 'L',
  7998. },
  7999. relativeTime: {
  8000. future: 'in %s',
  8001. past: '%s ago',
  8002. s: 'a few seconds',
  8003. ss: '%d seconds',
  8004. m: 'a minute',
  8005. mm: '%d minutes',
  8006. h: 'an hour',
  8007. hh: '%d hours',
  8008. d: 'a day',
  8009. dd: '%d days',
  8010. M: 'a month',
  8011. MM: '%d months',
  8012. y: 'a year',
  8013. yy: '%d years',
  8014. },
  8015. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  8016. ordinal: function (number) {
  8017. var b = number % 10,
  8018. output =
  8019. ~~((number % 100) / 10) === 1
  8020. ? 'th'
  8021. : b === 1
  8022. ? 'st'
  8023. : b === 2
  8024. ? 'nd'
  8025. : b === 3
  8026. ? 'rd'
  8027. : 'th';
  8028. return number + output;
  8029. },
  8030. week: {
  8031. dow: 1, // Monday is the first day of the week.
  8032. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8033. },
  8034. });
  8035. //! moment.js locale configuration
  8036. hooks.defineLocale('en-sg', {
  8037. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  8038. '_'
  8039. ),
  8040. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  8041. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  8042. '_'
  8043. ),
  8044. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  8045. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  8046. longDateFormat: {
  8047. LT: 'HH:mm',
  8048. LTS: 'HH:mm:ss',
  8049. L: 'DD/MM/YYYY',
  8050. LL: 'D MMMM YYYY',
  8051. LLL: 'D MMMM YYYY HH:mm',
  8052. LLLL: 'dddd, D MMMM YYYY HH:mm',
  8053. },
  8054. calendar: {
  8055. sameDay: '[Today at] LT',
  8056. nextDay: '[Tomorrow at] LT',
  8057. nextWeek: 'dddd [at] LT',
  8058. lastDay: '[Yesterday at] LT',
  8059. lastWeek: '[Last] dddd [at] LT',
  8060. sameElse: 'L',
  8061. },
  8062. relativeTime: {
  8063. future: 'in %s',
  8064. past: '%s ago',
  8065. s: 'a few seconds',
  8066. ss: '%d seconds',
  8067. m: 'a minute',
  8068. mm: '%d minutes',
  8069. h: 'an hour',
  8070. hh: '%d hours',
  8071. d: 'a day',
  8072. dd: '%d days',
  8073. M: 'a month',
  8074. MM: '%d months',
  8075. y: 'a year',
  8076. yy: '%d years',
  8077. },
  8078. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  8079. ordinal: function (number) {
  8080. var b = number % 10,
  8081. output =
  8082. ~~((number % 100) / 10) === 1
  8083. ? 'th'
  8084. : b === 1
  8085. ? 'st'
  8086. : b === 2
  8087. ? 'nd'
  8088. : b === 3
  8089. ? 'rd'
  8090. : 'th';
  8091. return number + output;
  8092. },
  8093. week: {
  8094. dow: 1, // Monday is the first day of the week.
  8095. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8096. },
  8097. });
  8098. //! moment.js locale configuration
  8099. hooks.defineLocale('eo', {
  8100. months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split(
  8101. '_'
  8102. ),
  8103. monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec'.split('_'),
  8104. weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),
  8105. weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),
  8106. weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'),
  8107. longDateFormat: {
  8108. LT: 'HH:mm',
  8109. LTS: 'HH:mm:ss',
  8110. L: 'YYYY-MM-DD',
  8111. LL: '[la] D[-an de] MMMM, YYYY',
  8112. LLL: '[la] D[-an de] MMMM, YYYY HH:mm',
  8113. LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm',
  8114. llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm',
  8115. },
  8116. meridiemParse: /[ap]\.t\.m/i,
  8117. isPM: function (input) {
  8118. return input.charAt(0).toLowerCase() === 'p';
  8119. },
  8120. meridiem: function (hours, minutes, isLower) {
  8121. if (hours > 11) {
  8122. return isLower ? 'p.t.m.' : 'P.T.M.';
  8123. } else {
  8124. return isLower ? 'a.t.m.' : 'A.T.M.';
  8125. }
  8126. },
  8127. calendar: {
  8128. sameDay: '[Hodiaŭ je] LT',
  8129. nextDay: '[Morgaŭ je] LT',
  8130. nextWeek: 'dddd[n je] LT',
  8131. lastDay: '[Hieraŭ je] LT',
  8132. lastWeek: '[pasintan] dddd[n je] LT',
  8133. sameElse: 'L',
  8134. },
  8135. relativeTime: {
  8136. future: 'post %s',
  8137. past: 'antaŭ %s',
  8138. s: 'kelkaj sekundoj',
  8139. ss: '%d sekundoj',
  8140. m: 'unu minuto',
  8141. mm: '%d minutoj',
  8142. h: 'unu horo',
  8143. hh: '%d horoj',
  8144. d: 'unu tago', //ne 'diurno', ĉar estas uzita por proksimumo
  8145. dd: '%d tagoj',
  8146. M: 'unu monato',
  8147. MM: '%d monatoj',
  8148. y: 'unu jaro',
  8149. yy: '%d jaroj',
  8150. },
  8151. dayOfMonthOrdinalParse: /\d{1,2}a/,
  8152. ordinal: '%da',
  8153. week: {
  8154. dow: 1, // Monday is the first day of the week.
  8155. doy: 7, // The week that contains Jan 7th is the first week of the year.
  8156. },
  8157. });
  8158. //! moment.js locale configuration
  8159. var monthsShortDot =
  8160. 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
  8161. '_'
  8162. ),
  8163. monthsShort$1 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  8164. monthsParse$2 = [
  8165. /^ene/i,
  8166. /^feb/i,
  8167. /^mar/i,
  8168. /^abr/i,
  8169. /^may/i,
  8170. /^jun/i,
  8171. /^jul/i,
  8172. /^ago/i,
  8173. /^sep/i,
  8174. /^oct/i,
  8175. /^nov/i,
  8176. /^dic/i,
  8177. ],
  8178. monthsRegex$3 =
  8179. /^(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;
  8180. hooks.defineLocale('es-do', {
  8181. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
  8182. '_'
  8183. ),
  8184. monthsShort: function (m, format) {
  8185. if (!m) {
  8186. return monthsShortDot;
  8187. } else if (/-MMM-/.test(format)) {
  8188. return monthsShort$1[m.month()];
  8189. } else {
  8190. return monthsShortDot[m.month()];
  8191. }
  8192. },
  8193. monthsRegex: monthsRegex$3,
  8194. monthsShortRegex: monthsRegex$3,
  8195. monthsStrictRegex:
  8196. /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  8197. monthsShortStrictRegex:
  8198. /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  8199. monthsParse: monthsParse$2,
  8200. longMonthsParse: monthsParse$2,
  8201. shortMonthsParse: monthsParse$2,
  8202. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  8203. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  8204. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  8205. weekdaysParseExact: true,
  8206. longDateFormat: {
  8207. LT: 'h:mm A',
  8208. LTS: 'h:mm:ss A',
  8209. L: 'DD/MM/YYYY',
  8210. LL: 'D [de] MMMM [de] YYYY',
  8211. LLL: 'D [de] MMMM [de] YYYY h:mm A',
  8212. LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',
  8213. },
  8214. calendar: {
  8215. sameDay: function () {
  8216. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8217. },
  8218. nextDay: function () {
  8219. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8220. },
  8221. nextWeek: function () {
  8222. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8223. },
  8224. lastDay: function () {
  8225. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8226. },
  8227. lastWeek: function () {
  8228. return (
  8229. '[el] dddd [pasado a la' +
  8230. (this.hours() !== 1 ? 's' : '') +
  8231. '] LT'
  8232. );
  8233. },
  8234. sameElse: 'L',
  8235. },
  8236. relativeTime: {
  8237. future: 'en %s',
  8238. past: 'hace %s',
  8239. s: 'unos segundos',
  8240. ss: '%d segundos',
  8241. m: 'un minuto',
  8242. mm: '%d minutos',
  8243. h: 'una hora',
  8244. hh: '%d horas',
  8245. d: 'un día',
  8246. dd: '%d días',
  8247. w: 'una semana',
  8248. ww: '%d semanas',
  8249. M: 'un mes',
  8250. MM: '%d meses',
  8251. y: 'un año',
  8252. yy: '%d años',
  8253. },
  8254. dayOfMonthOrdinalParse: /\d{1,2}º/,
  8255. ordinal: '%dº',
  8256. week: {
  8257. dow: 1, // Monday is the first day of the week.
  8258. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8259. },
  8260. });
  8261. //! moment.js locale configuration
  8262. var monthsShortDot$1 =
  8263. 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
  8264. '_'
  8265. ),
  8266. monthsShort$2 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  8267. monthsParse$3 = [
  8268. /^ene/i,
  8269. /^feb/i,
  8270. /^mar/i,
  8271. /^abr/i,
  8272. /^may/i,
  8273. /^jun/i,
  8274. /^jul/i,
  8275. /^ago/i,
  8276. /^sep/i,
  8277. /^oct/i,
  8278. /^nov/i,
  8279. /^dic/i,
  8280. ],
  8281. monthsRegex$4 =
  8282. /^(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;
  8283. hooks.defineLocale('es-mx', {
  8284. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
  8285. '_'
  8286. ),
  8287. monthsShort: function (m, format) {
  8288. if (!m) {
  8289. return monthsShortDot$1;
  8290. } else if (/-MMM-/.test(format)) {
  8291. return monthsShort$2[m.month()];
  8292. } else {
  8293. return monthsShortDot$1[m.month()];
  8294. }
  8295. },
  8296. monthsRegex: monthsRegex$4,
  8297. monthsShortRegex: monthsRegex$4,
  8298. monthsStrictRegex:
  8299. /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  8300. monthsShortStrictRegex:
  8301. /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  8302. monthsParse: monthsParse$3,
  8303. longMonthsParse: monthsParse$3,
  8304. shortMonthsParse: monthsParse$3,
  8305. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  8306. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  8307. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  8308. weekdaysParseExact: true,
  8309. longDateFormat: {
  8310. LT: 'H:mm',
  8311. LTS: 'H:mm:ss',
  8312. L: 'DD/MM/YYYY',
  8313. LL: 'D [de] MMMM [de] YYYY',
  8314. LLL: 'D [de] MMMM [de] YYYY H:mm',
  8315. LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
  8316. },
  8317. calendar: {
  8318. sameDay: function () {
  8319. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8320. },
  8321. nextDay: function () {
  8322. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8323. },
  8324. nextWeek: function () {
  8325. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8326. },
  8327. lastDay: function () {
  8328. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8329. },
  8330. lastWeek: function () {
  8331. return (
  8332. '[el] dddd [pasado a la' +
  8333. (this.hours() !== 1 ? 's' : '') +
  8334. '] LT'
  8335. );
  8336. },
  8337. sameElse: 'L',
  8338. },
  8339. relativeTime: {
  8340. future: 'en %s',
  8341. past: 'hace %s',
  8342. s: 'unos segundos',
  8343. ss: '%d segundos',
  8344. m: 'un minuto',
  8345. mm: '%d minutos',
  8346. h: 'una hora',
  8347. hh: '%d horas',
  8348. d: 'un día',
  8349. dd: '%d días',
  8350. w: 'una semana',
  8351. ww: '%d semanas',
  8352. M: 'un mes',
  8353. MM: '%d meses',
  8354. y: 'un año',
  8355. yy: '%d años',
  8356. },
  8357. dayOfMonthOrdinalParse: /\d{1,2}º/,
  8358. ordinal: '%dº',
  8359. week: {
  8360. dow: 0, // Sunday is the first day of the week.
  8361. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8362. },
  8363. invalidDate: 'Fecha inválida',
  8364. });
  8365. //! moment.js locale configuration
  8366. var monthsShortDot$2 =
  8367. 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
  8368. '_'
  8369. ),
  8370. monthsShort$3 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  8371. monthsParse$4 = [
  8372. /^ene/i,
  8373. /^feb/i,
  8374. /^mar/i,
  8375. /^abr/i,
  8376. /^may/i,
  8377. /^jun/i,
  8378. /^jul/i,
  8379. /^ago/i,
  8380. /^sep/i,
  8381. /^oct/i,
  8382. /^nov/i,
  8383. /^dic/i,
  8384. ],
  8385. monthsRegex$5 =
  8386. /^(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;
  8387. hooks.defineLocale('es-us', {
  8388. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
  8389. '_'
  8390. ),
  8391. monthsShort: function (m, format) {
  8392. if (!m) {
  8393. return monthsShortDot$2;
  8394. } else if (/-MMM-/.test(format)) {
  8395. return monthsShort$3[m.month()];
  8396. } else {
  8397. return monthsShortDot$2[m.month()];
  8398. }
  8399. },
  8400. monthsRegex: monthsRegex$5,
  8401. monthsShortRegex: monthsRegex$5,
  8402. monthsStrictRegex:
  8403. /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  8404. monthsShortStrictRegex:
  8405. /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  8406. monthsParse: monthsParse$4,
  8407. longMonthsParse: monthsParse$4,
  8408. shortMonthsParse: monthsParse$4,
  8409. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  8410. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  8411. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  8412. weekdaysParseExact: true,
  8413. longDateFormat: {
  8414. LT: 'h:mm A',
  8415. LTS: 'h:mm:ss A',
  8416. L: 'MM/DD/YYYY',
  8417. LL: 'D [de] MMMM [de] YYYY',
  8418. LLL: 'D [de] MMMM [de] YYYY h:mm A',
  8419. LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',
  8420. },
  8421. calendar: {
  8422. sameDay: function () {
  8423. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8424. },
  8425. nextDay: function () {
  8426. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8427. },
  8428. nextWeek: function () {
  8429. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8430. },
  8431. lastDay: function () {
  8432. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8433. },
  8434. lastWeek: function () {
  8435. return (
  8436. '[el] dddd [pasado a la' +
  8437. (this.hours() !== 1 ? 's' : '') +
  8438. '] LT'
  8439. );
  8440. },
  8441. sameElse: 'L',
  8442. },
  8443. relativeTime: {
  8444. future: 'en %s',
  8445. past: 'hace %s',
  8446. s: 'unos segundos',
  8447. ss: '%d segundos',
  8448. m: 'un minuto',
  8449. mm: '%d minutos',
  8450. h: 'una hora',
  8451. hh: '%d horas',
  8452. d: 'un día',
  8453. dd: '%d días',
  8454. w: 'una semana',
  8455. ww: '%d semanas',
  8456. M: 'un mes',
  8457. MM: '%d meses',
  8458. y: 'un año',
  8459. yy: '%d años',
  8460. },
  8461. dayOfMonthOrdinalParse: /\d{1,2}º/,
  8462. ordinal: '%dº',
  8463. week: {
  8464. dow: 0, // Sunday is the first day of the week.
  8465. doy: 6, // The week that contains Jan 6th is the first week of the year.
  8466. },
  8467. });
  8468. //! moment.js locale configuration
  8469. var monthsShortDot$3 =
  8470. 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
  8471. '_'
  8472. ),
  8473. monthsShort$4 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  8474. monthsParse$5 = [
  8475. /^ene/i,
  8476. /^feb/i,
  8477. /^mar/i,
  8478. /^abr/i,
  8479. /^may/i,
  8480. /^jun/i,
  8481. /^jul/i,
  8482. /^ago/i,
  8483. /^sep/i,
  8484. /^oct/i,
  8485. /^nov/i,
  8486. /^dic/i,
  8487. ],
  8488. monthsRegex$6 =
  8489. /^(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;
  8490. hooks.defineLocale('es', {
  8491. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
  8492. '_'
  8493. ),
  8494. monthsShort: function (m, format) {
  8495. if (!m) {
  8496. return monthsShortDot$3;
  8497. } else if (/-MMM-/.test(format)) {
  8498. return monthsShort$4[m.month()];
  8499. } else {
  8500. return monthsShortDot$3[m.month()];
  8501. }
  8502. },
  8503. monthsRegex: monthsRegex$6,
  8504. monthsShortRegex: monthsRegex$6,
  8505. monthsStrictRegex:
  8506. /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  8507. monthsShortStrictRegex:
  8508. /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  8509. monthsParse: monthsParse$5,
  8510. longMonthsParse: monthsParse$5,
  8511. shortMonthsParse: monthsParse$5,
  8512. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  8513. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  8514. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  8515. weekdaysParseExact: true,
  8516. longDateFormat: {
  8517. LT: 'H:mm',
  8518. LTS: 'H:mm:ss',
  8519. L: 'DD/MM/YYYY',
  8520. LL: 'D [de] MMMM [de] YYYY',
  8521. LLL: 'D [de] MMMM [de] YYYY H:mm',
  8522. LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
  8523. },
  8524. calendar: {
  8525. sameDay: function () {
  8526. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8527. },
  8528. nextDay: function () {
  8529. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8530. },
  8531. nextWeek: function () {
  8532. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8533. },
  8534. lastDay: function () {
  8535. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8536. },
  8537. lastWeek: function () {
  8538. return (
  8539. '[el] dddd [pasado a la' +
  8540. (this.hours() !== 1 ? 's' : '') +
  8541. '] LT'
  8542. );
  8543. },
  8544. sameElse: 'L',
  8545. },
  8546. relativeTime: {
  8547. future: 'en %s',
  8548. past: 'hace %s',
  8549. s: 'unos segundos',
  8550. ss: '%d segundos',
  8551. m: 'un minuto',
  8552. mm: '%d minutos',
  8553. h: 'una hora',
  8554. hh: '%d horas',
  8555. d: 'un día',
  8556. dd: '%d días',
  8557. w: 'una semana',
  8558. ww: '%d semanas',
  8559. M: 'un mes',
  8560. MM: '%d meses',
  8561. y: 'un año',
  8562. yy: '%d años',
  8563. },
  8564. dayOfMonthOrdinalParse: /\d{1,2}º/,
  8565. ordinal: '%dº',
  8566. week: {
  8567. dow: 1, // Monday is the first day of the week.
  8568. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8569. },
  8570. invalidDate: 'Fecha inválida',
  8571. });
  8572. //! moment.js locale configuration
  8573. function processRelativeTime$3(number, withoutSuffix, key, isFuture) {
  8574. var format = {
  8575. s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
  8576. ss: [number + 'sekundi', number + 'sekundit'],
  8577. m: ['ühe minuti', 'üks minut'],
  8578. mm: [number + ' minuti', number + ' minutit'],
  8579. h: ['ühe tunni', 'tund aega', 'üks tund'],
  8580. hh: [number + ' tunni', number + ' tundi'],
  8581. d: ['ühe päeva', 'üks päev'],
  8582. M: ['kuu aja', 'kuu aega', 'üks kuu'],
  8583. MM: [number + ' kuu', number + ' kuud'],
  8584. y: ['ühe aasta', 'aasta', 'üks aasta'],
  8585. yy: [number + ' aasta', number + ' aastat'],
  8586. };
  8587. if (withoutSuffix) {
  8588. return format[key][2] ? format[key][2] : format[key][1];
  8589. }
  8590. return isFuture ? format[key][0] : format[key][1];
  8591. }
  8592. hooks.defineLocale('et', {
  8593. months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split(
  8594. '_'
  8595. ),
  8596. monthsShort:
  8597. 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),
  8598. weekdays:
  8599. 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split(
  8600. '_'
  8601. ),
  8602. weekdaysShort: 'P_E_T_K_N_R_L'.split('_'),
  8603. weekdaysMin: 'P_E_T_K_N_R_L'.split('_'),
  8604. longDateFormat: {
  8605. LT: 'H:mm',
  8606. LTS: 'H:mm:ss',
  8607. L: 'DD.MM.YYYY',
  8608. LL: 'D. MMMM YYYY',
  8609. LLL: 'D. MMMM YYYY H:mm',
  8610. LLLL: 'dddd, D. MMMM YYYY H:mm',
  8611. },
  8612. calendar: {
  8613. sameDay: '[Täna,] LT',
  8614. nextDay: '[Homme,] LT',
  8615. nextWeek: '[Järgmine] dddd LT',
  8616. lastDay: '[Eile,] LT',
  8617. lastWeek: '[Eelmine] dddd LT',
  8618. sameElse: 'L',
  8619. },
  8620. relativeTime: {
  8621. future: '%s pärast',
  8622. past: '%s tagasi',
  8623. s: processRelativeTime$3,
  8624. ss: processRelativeTime$3,
  8625. m: processRelativeTime$3,
  8626. mm: processRelativeTime$3,
  8627. h: processRelativeTime$3,
  8628. hh: processRelativeTime$3,
  8629. d: processRelativeTime$3,
  8630. dd: '%d päeva',
  8631. M: processRelativeTime$3,
  8632. MM: processRelativeTime$3,
  8633. y: processRelativeTime$3,
  8634. yy: processRelativeTime$3,
  8635. },
  8636. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8637. ordinal: '%d.',
  8638. week: {
  8639. dow: 1, // Monday is the first day of the week.
  8640. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8641. },
  8642. });
  8643. //! moment.js locale configuration
  8644. hooks.defineLocale('eu', {
  8645. months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split(
  8646. '_'
  8647. ),
  8648. monthsShort:
  8649. 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split(
  8650. '_'
  8651. ),
  8652. monthsParseExact: true,
  8653. weekdays:
  8654. 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split(
  8655. '_'
  8656. ),
  8657. weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'),
  8658. weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'),
  8659. weekdaysParseExact: true,
  8660. longDateFormat: {
  8661. LT: 'HH:mm',
  8662. LTS: 'HH:mm:ss',
  8663. L: 'YYYY-MM-DD',
  8664. LL: 'YYYY[ko] MMMM[ren] D[a]',
  8665. LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm',
  8666. LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
  8667. l: 'YYYY-M-D',
  8668. ll: 'YYYY[ko] MMM D[a]',
  8669. lll: 'YYYY[ko] MMM D[a] HH:mm',
  8670. llll: 'ddd, YYYY[ko] MMM D[a] HH:mm',
  8671. },
  8672. calendar: {
  8673. sameDay: '[gaur] LT[etan]',
  8674. nextDay: '[bihar] LT[etan]',
  8675. nextWeek: 'dddd LT[etan]',
  8676. lastDay: '[atzo] LT[etan]',
  8677. lastWeek: '[aurreko] dddd LT[etan]',
  8678. sameElse: 'L',
  8679. },
  8680. relativeTime: {
  8681. future: '%s barru',
  8682. past: 'duela %s',
  8683. s: 'segundo batzuk',
  8684. ss: '%d segundo',
  8685. m: 'minutu bat',
  8686. mm: '%d minutu',
  8687. h: 'ordu bat',
  8688. hh: '%d ordu',
  8689. d: 'egun bat',
  8690. dd: '%d egun',
  8691. M: 'hilabete bat',
  8692. MM: '%d hilabete',
  8693. y: 'urte bat',
  8694. yy: '%d urte',
  8695. },
  8696. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8697. ordinal: '%d.',
  8698. week: {
  8699. dow: 1, // Monday is the first day of the week.
  8700. doy: 7, // The week that contains Jan 7th is the first week of the year.
  8701. },
  8702. });
  8703. //! moment.js locale configuration
  8704. var symbolMap$6 = {
  8705. 1: '۱',
  8706. 2: '۲',
  8707. 3: '۳',
  8708. 4: '۴',
  8709. 5: '۵',
  8710. 6: '۶',
  8711. 7: '۷',
  8712. 8: '۸',
  8713. 9: '۹',
  8714. 0: '۰',
  8715. },
  8716. numberMap$5 = {
  8717. '۱': '1',
  8718. '۲': '2',
  8719. '۳': '3',
  8720. '۴': '4',
  8721. '۵': '5',
  8722. '۶': '6',
  8723. '۷': '7',
  8724. '۸': '8',
  8725. '۹': '9',
  8726. '۰': '0',
  8727. };
  8728. hooks.defineLocale('fa', {
  8729. months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(
  8730. '_'
  8731. ),
  8732. monthsShort:
  8733. 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(
  8734. '_'
  8735. ),
  8736. weekdays:
  8737. 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split(
  8738. '_'
  8739. ),
  8740. weekdaysShort:
  8741. 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split(
  8742. '_'
  8743. ),
  8744. weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'),
  8745. weekdaysParseExact: true,
  8746. longDateFormat: {
  8747. LT: 'HH:mm',
  8748. LTS: 'HH:mm:ss',
  8749. L: 'DD/MM/YYYY',
  8750. LL: 'D MMMM YYYY',
  8751. LLL: 'D MMMM YYYY HH:mm',
  8752. LLLL: 'dddd, D MMMM YYYY HH:mm',
  8753. },
  8754. meridiemParse: /قبل از ظهر|بعد از ظهر/,
  8755. isPM: function (input) {
  8756. return /بعد از ظهر/.test(input);
  8757. },
  8758. meridiem: function (hour, minute, isLower) {
  8759. if (hour < 12) {
  8760. return 'قبل از ظهر';
  8761. } else {
  8762. return 'بعد از ظهر';
  8763. }
  8764. },
  8765. calendar: {
  8766. sameDay: '[امروز ساعت] LT',
  8767. nextDay: '[فردا ساعت] LT',
  8768. nextWeek: 'dddd [ساعت] LT',
  8769. lastDay: '[دیروز ساعت] LT',
  8770. lastWeek: 'dddd [پیش] [ساعت] LT',
  8771. sameElse: 'L',
  8772. },
  8773. relativeTime: {
  8774. future: 'در %s',
  8775. past: '%s پیش',
  8776. s: 'چند ثانیه',
  8777. ss: '%d ثانیه',
  8778. m: 'یک دقیقه',
  8779. mm: '%d دقیقه',
  8780. h: 'یک ساعت',
  8781. hh: '%d ساعت',
  8782. d: 'یک روز',
  8783. dd: '%d روز',
  8784. M: 'یک ماه',
  8785. MM: '%d ماه',
  8786. y: 'یک سال',
  8787. yy: '%d سال',
  8788. },
  8789. preparse: function (string) {
  8790. return string
  8791. .replace(/[۰-۹]/g, function (match) {
  8792. return numberMap$5[match];
  8793. })
  8794. .replace(/،/g, ',');
  8795. },
  8796. postformat: function (string) {
  8797. return string
  8798. .replace(/\d/g, function (match) {
  8799. return symbolMap$6[match];
  8800. })
  8801. .replace(/,/g, '،');
  8802. },
  8803. dayOfMonthOrdinalParse: /\d{1,2}م/,
  8804. ordinal: '%dم',
  8805. week: {
  8806. dow: 6, // Saturday is the first day of the week.
  8807. doy: 12, // The week that contains Jan 12th is the first week of the year.
  8808. },
  8809. });
  8810. //! moment.js locale configuration
  8811. var numbersPast =
  8812. 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(
  8813. ' '
  8814. ),
  8815. numbersFuture = [
  8816. 'nolla',
  8817. 'yhden',
  8818. 'kahden',
  8819. 'kolmen',
  8820. 'neljän',
  8821. 'viiden',
  8822. 'kuuden',
  8823. numbersPast[7],
  8824. numbersPast[8],
  8825. numbersPast[9],
  8826. ];
  8827. function translate$2(number, withoutSuffix, key, isFuture) {
  8828. var result = '';
  8829. switch (key) {
  8830. case 's':
  8831. return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
  8832. case 'ss':
  8833. result = isFuture ? 'sekunnin' : 'sekuntia';
  8834. break;
  8835. case 'm':
  8836. return isFuture ? 'minuutin' : 'minuutti';
  8837. case 'mm':
  8838. result = isFuture ? 'minuutin' : 'minuuttia';
  8839. break;
  8840. case 'h':
  8841. return isFuture ? 'tunnin' : 'tunti';
  8842. case 'hh':
  8843. result = isFuture ? 'tunnin' : 'tuntia';
  8844. break;
  8845. case 'd':
  8846. return isFuture ? 'päivän' : 'päivä';
  8847. case 'dd':
  8848. result = isFuture ? 'päivän' : 'päivää';
  8849. break;
  8850. case 'M':
  8851. return isFuture ? 'kuukauden' : 'kuukausi';
  8852. case 'MM':
  8853. result = isFuture ? 'kuukauden' : 'kuukautta';
  8854. break;
  8855. case 'y':
  8856. return isFuture ? 'vuoden' : 'vuosi';
  8857. case 'yy':
  8858. result = isFuture ? 'vuoden' : 'vuotta';
  8859. break;
  8860. }
  8861. result = verbalNumber(number, isFuture) + ' ' + result;
  8862. return result;
  8863. }
  8864. function verbalNumber(number, isFuture) {
  8865. return number < 10
  8866. ? isFuture
  8867. ? numbersFuture[number]
  8868. : numbersPast[number]
  8869. : number;
  8870. }
  8871. hooks.defineLocale('fi', {
  8872. months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split(
  8873. '_'
  8874. ),
  8875. monthsShort:
  8876. 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split(
  8877. '_'
  8878. ),
  8879. weekdays:
  8880. 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split(
  8881. '_'
  8882. ),
  8883. weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'),
  8884. weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'),
  8885. longDateFormat: {
  8886. LT: 'HH.mm',
  8887. LTS: 'HH.mm.ss',
  8888. L: 'DD.MM.YYYY',
  8889. LL: 'Do MMMM[ta] YYYY',
  8890. LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm',
  8891. LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
  8892. l: 'D.M.YYYY',
  8893. ll: 'Do MMM YYYY',
  8894. lll: 'Do MMM YYYY, [klo] HH.mm',
  8895. llll: 'ddd, Do MMM YYYY, [klo] HH.mm',
  8896. },
  8897. calendar: {
  8898. sameDay: '[tänään] [klo] LT',
  8899. nextDay: '[huomenna] [klo] LT',
  8900. nextWeek: 'dddd [klo] LT',
  8901. lastDay: '[eilen] [klo] LT',
  8902. lastWeek: '[viime] dddd[na] [klo] LT',
  8903. sameElse: 'L',
  8904. },
  8905. relativeTime: {
  8906. future: '%s päästä',
  8907. past: '%s sitten',
  8908. s: translate$2,
  8909. ss: translate$2,
  8910. m: translate$2,
  8911. mm: translate$2,
  8912. h: translate$2,
  8913. hh: translate$2,
  8914. d: translate$2,
  8915. dd: translate$2,
  8916. M: translate$2,
  8917. MM: translate$2,
  8918. y: translate$2,
  8919. yy: translate$2,
  8920. },
  8921. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8922. ordinal: '%d.',
  8923. week: {
  8924. dow: 1, // Monday is the first day of the week.
  8925. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8926. },
  8927. });
  8928. //! moment.js locale configuration
  8929. hooks.defineLocale('fil', {
  8930. months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(
  8931. '_'
  8932. ),
  8933. monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
  8934. weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(
  8935. '_'
  8936. ),
  8937. weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
  8938. weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
  8939. longDateFormat: {
  8940. LT: 'HH:mm',
  8941. LTS: 'HH:mm:ss',
  8942. L: 'MM/D/YYYY',
  8943. LL: 'MMMM D, YYYY',
  8944. LLL: 'MMMM D, YYYY HH:mm',
  8945. LLLL: 'dddd, MMMM DD, YYYY HH:mm',
  8946. },
  8947. calendar: {
  8948. sameDay: 'LT [ngayong araw]',
  8949. nextDay: '[Bukas ng] LT',
  8950. nextWeek: 'LT [sa susunod na] dddd',
  8951. lastDay: 'LT [kahapon]',
  8952. lastWeek: 'LT [noong nakaraang] dddd',
  8953. sameElse: 'L',
  8954. },
  8955. relativeTime: {
  8956. future: 'sa loob ng %s',
  8957. past: '%s ang nakalipas',
  8958. s: 'ilang segundo',
  8959. ss: '%d segundo',
  8960. m: 'isang minuto',
  8961. mm: '%d minuto',
  8962. h: 'isang oras',
  8963. hh: '%d oras',
  8964. d: 'isang araw',
  8965. dd: '%d araw',
  8966. M: 'isang buwan',
  8967. MM: '%d buwan',
  8968. y: 'isang taon',
  8969. yy: '%d taon',
  8970. },
  8971. dayOfMonthOrdinalParse: /\d{1,2}/,
  8972. ordinal: function (number) {
  8973. return number;
  8974. },
  8975. week: {
  8976. dow: 1, // Monday is the first day of the week.
  8977. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8978. },
  8979. });
  8980. //! moment.js locale configuration
  8981. hooks.defineLocale('fo', {
  8982. months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split(
  8983. '_'
  8984. ),
  8985. monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  8986. weekdays:
  8987. 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split(
  8988. '_'
  8989. ),
  8990. weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
  8991. weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'),
  8992. longDateFormat: {
  8993. LT: 'HH:mm',
  8994. LTS: 'HH:mm:ss',
  8995. L: 'DD/MM/YYYY',
  8996. LL: 'D MMMM YYYY',
  8997. LLL: 'D MMMM YYYY HH:mm',
  8998. LLLL: 'dddd D. MMMM, YYYY HH:mm',
  8999. },
  9000. calendar: {
  9001. sameDay: '[Í dag kl.] LT',
  9002. nextDay: '[Í morgin kl.] LT',
  9003. nextWeek: 'dddd [kl.] LT',
  9004. lastDay: '[Í gjár kl.] LT',
  9005. lastWeek: '[síðstu] dddd [kl] LT',
  9006. sameElse: 'L',
  9007. },
  9008. relativeTime: {
  9009. future: 'um %s',
  9010. past: '%s síðani',
  9011. s: 'fá sekund',
  9012. ss: '%d sekundir',
  9013. m: 'ein minuttur',
  9014. mm: '%d minuttir',
  9015. h: 'ein tími',
  9016. hh: '%d tímar',
  9017. d: 'ein dagur',
  9018. dd: '%d dagar',
  9019. M: 'ein mánaður',
  9020. MM: '%d mánaðir',
  9021. y: 'eitt ár',
  9022. yy: '%d ár',
  9023. },
  9024. dayOfMonthOrdinalParse: /\d{1,2}\./,
  9025. ordinal: '%d.',
  9026. week: {
  9027. dow: 1, // Monday is the first day of the week.
  9028. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9029. },
  9030. });
  9031. //! moment.js locale configuration
  9032. hooks.defineLocale('fr-ca', {
  9033. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
  9034. '_'
  9035. ),
  9036. monthsShort:
  9037. 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
  9038. '_'
  9039. ),
  9040. monthsParseExact: true,
  9041. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  9042. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  9043. weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
  9044. weekdaysParseExact: true,
  9045. longDateFormat: {
  9046. LT: 'HH:mm',
  9047. LTS: 'HH:mm:ss',
  9048. L: 'YYYY-MM-DD',
  9049. LL: 'D MMMM YYYY',
  9050. LLL: 'D MMMM YYYY HH:mm',
  9051. LLLL: 'dddd D MMMM YYYY HH:mm',
  9052. },
  9053. calendar: {
  9054. sameDay: '[Aujourd’hui à] LT',
  9055. nextDay: '[Demain à] LT',
  9056. nextWeek: 'dddd [à] LT',
  9057. lastDay: '[Hier à] LT',
  9058. lastWeek: 'dddd [dernier à] LT',
  9059. sameElse: 'L',
  9060. },
  9061. relativeTime: {
  9062. future: 'dans %s',
  9063. past: 'il y a %s',
  9064. s: 'quelques secondes',
  9065. ss: '%d secondes',
  9066. m: 'une minute',
  9067. mm: '%d minutes',
  9068. h: 'une heure',
  9069. hh: '%d heures',
  9070. d: 'un jour',
  9071. dd: '%d jours',
  9072. M: 'un mois',
  9073. MM: '%d mois',
  9074. y: 'un an',
  9075. yy: '%d ans',
  9076. },
  9077. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  9078. ordinal: function (number, period) {
  9079. switch (period) {
  9080. // Words with masculine grammatical gender: mois, trimestre, jour
  9081. default:
  9082. case 'M':
  9083. case 'Q':
  9084. case 'D':
  9085. case 'DDD':
  9086. case 'd':
  9087. return number + (number === 1 ? 'er' : 'e');
  9088. // Words with feminine grammatical gender: semaine
  9089. case 'w':
  9090. case 'W':
  9091. return number + (number === 1 ? 're' : 'e');
  9092. }
  9093. },
  9094. });
  9095. //! moment.js locale configuration
  9096. hooks.defineLocale('fr-ch', {
  9097. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
  9098. '_'
  9099. ),
  9100. monthsShort:
  9101. 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
  9102. '_'
  9103. ),
  9104. monthsParseExact: true,
  9105. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  9106. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  9107. weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
  9108. weekdaysParseExact: true,
  9109. longDateFormat: {
  9110. LT: 'HH:mm',
  9111. LTS: 'HH:mm:ss',
  9112. L: 'DD.MM.YYYY',
  9113. LL: 'D MMMM YYYY',
  9114. LLL: 'D MMMM YYYY HH:mm',
  9115. LLLL: 'dddd D MMMM YYYY HH:mm',
  9116. },
  9117. calendar: {
  9118. sameDay: '[Aujourd’hui à] LT',
  9119. nextDay: '[Demain à] LT',
  9120. nextWeek: 'dddd [à] LT',
  9121. lastDay: '[Hier à] LT',
  9122. lastWeek: 'dddd [dernier à] LT',
  9123. sameElse: 'L',
  9124. },
  9125. relativeTime: {
  9126. future: 'dans %s',
  9127. past: 'il y a %s',
  9128. s: 'quelques secondes',
  9129. ss: '%d secondes',
  9130. m: 'une minute',
  9131. mm: '%d minutes',
  9132. h: 'une heure',
  9133. hh: '%d heures',
  9134. d: 'un jour',
  9135. dd: '%d jours',
  9136. M: 'un mois',
  9137. MM: '%d mois',
  9138. y: 'un an',
  9139. yy: '%d ans',
  9140. },
  9141. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  9142. ordinal: function (number, period) {
  9143. switch (period) {
  9144. // Words with masculine grammatical gender: mois, trimestre, jour
  9145. default:
  9146. case 'M':
  9147. case 'Q':
  9148. case 'D':
  9149. case 'DDD':
  9150. case 'd':
  9151. return number + (number === 1 ? 'er' : 'e');
  9152. // Words with feminine grammatical gender: semaine
  9153. case 'w':
  9154. case 'W':
  9155. return number + (number === 1 ? 're' : 'e');
  9156. }
  9157. },
  9158. week: {
  9159. dow: 1, // Monday is the first day of the week.
  9160. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9161. },
  9162. });
  9163. //! moment.js locale configuration
  9164. var monthsStrictRegex$1 =
  9165. /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
  9166. monthsShortStrictRegex$1 =
  9167. /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,
  9168. monthsRegex$7 =
  9169. /(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,
  9170. monthsParse$6 = [
  9171. /^janv/i,
  9172. /^févr/i,
  9173. /^mars/i,
  9174. /^avr/i,
  9175. /^mai/i,
  9176. /^juin/i,
  9177. /^juil/i,
  9178. /^août/i,
  9179. /^sept/i,
  9180. /^oct/i,
  9181. /^nov/i,
  9182. /^déc/i,
  9183. ];
  9184. hooks.defineLocale('fr', {
  9185. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
  9186. '_'
  9187. ),
  9188. monthsShort:
  9189. 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
  9190. '_'
  9191. ),
  9192. monthsRegex: monthsRegex$7,
  9193. monthsShortRegex: monthsRegex$7,
  9194. monthsStrictRegex: monthsStrictRegex$1,
  9195. monthsShortStrictRegex: monthsShortStrictRegex$1,
  9196. monthsParse: monthsParse$6,
  9197. longMonthsParse: monthsParse$6,
  9198. shortMonthsParse: monthsParse$6,
  9199. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  9200. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  9201. weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
  9202. weekdaysParseExact: true,
  9203. longDateFormat: {
  9204. LT: 'HH:mm',
  9205. LTS: 'HH:mm:ss',
  9206. L: 'DD/MM/YYYY',
  9207. LL: 'D MMMM YYYY',
  9208. LLL: 'D MMMM YYYY HH:mm',
  9209. LLLL: 'dddd D MMMM YYYY HH:mm',
  9210. },
  9211. calendar: {
  9212. sameDay: '[Aujourd’hui à] LT',
  9213. nextDay: '[Demain à] LT',
  9214. nextWeek: 'dddd [à] LT',
  9215. lastDay: '[Hier à] LT',
  9216. lastWeek: 'dddd [dernier à] LT',
  9217. sameElse: 'L',
  9218. },
  9219. relativeTime: {
  9220. future: 'dans %s',
  9221. past: 'il y a %s',
  9222. s: 'quelques secondes',
  9223. ss: '%d secondes',
  9224. m: 'une minute',
  9225. mm: '%d minutes',
  9226. h: 'une heure',
  9227. hh: '%d heures',
  9228. d: 'un jour',
  9229. dd: '%d jours',
  9230. w: 'une semaine',
  9231. ww: '%d semaines',
  9232. M: 'un mois',
  9233. MM: '%d mois',
  9234. y: 'un an',
  9235. yy: '%d ans',
  9236. },
  9237. dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
  9238. ordinal: function (number, period) {
  9239. switch (period) {
  9240. // TODO: Return 'e' when day of month > 1. Move this case inside
  9241. // block for masculine words below.
  9242. // See https://github.com/moment/moment/issues/3375
  9243. case 'D':
  9244. return number + (number === 1 ? 'er' : '');
  9245. // Words with masculine grammatical gender: mois, trimestre, jour
  9246. default:
  9247. case 'M':
  9248. case 'Q':
  9249. case 'DDD':
  9250. case 'd':
  9251. return number + (number === 1 ? 'er' : 'e');
  9252. // Words with feminine grammatical gender: semaine
  9253. case 'w':
  9254. case 'W':
  9255. return number + (number === 1 ? 're' : 'e');
  9256. }
  9257. },
  9258. week: {
  9259. dow: 1, // Monday is the first day of the week.
  9260. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9261. },
  9262. });
  9263. //! moment.js locale configuration
  9264. var monthsShortWithDots =
  9265. 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),
  9266. monthsShortWithoutDots =
  9267. 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
  9268. hooks.defineLocale('fy', {
  9269. months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split(
  9270. '_'
  9271. ),
  9272. monthsShort: function (m, format) {
  9273. if (!m) {
  9274. return monthsShortWithDots;
  9275. } else if (/-MMM-/.test(format)) {
  9276. return monthsShortWithoutDots[m.month()];
  9277. } else {
  9278. return monthsShortWithDots[m.month()];
  9279. }
  9280. },
  9281. monthsParseExact: true,
  9282. weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split(
  9283. '_'
  9284. ),
  9285. weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),
  9286. weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
  9287. weekdaysParseExact: true,
  9288. longDateFormat: {
  9289. LT: 'HH:mm',
  9290. LTS: 'HH:mm:ss',
  9291. L: 'DD-MM-YYYY',
  9292. LL: 'D MMMM YYYY',
  9293. LLL: 'D MMMM YYYY HH:mm',
  9294. LLLL: 'dddd D MMMM YYYY HH:mm',
  9295. },
  9296. calendar: {
  9297. sameDay: '[hjoed om] LT',
  9298. nextDay: '[moarn om] LT',
  9299. nextWeek: 'dddd [om] LT',
  9300. lastDay: '[juster om] LT',
  9301. lastWeek: '[ôfrûne] dddd [om] LT',
  9302. sameElse: 'L',
  9303. },
  9304. relativeTime: {
  9305. future: 'oer %s',
  9306. past: '%s lyn',
  9307. s: 'in pear sekonden',
  9308. ss: '%d sekonden',
  9309. m: 'ien minút',
  9310. mm: '%d minuten',
  9311. h: 'ien oere',
  9312. hh: '%d oeren',
  9313. d: 'ien dei',
  9314. dd: '%d dagen',
  9315. M: 'ien moanne',
  9316. MM: '%d moannen',
  9317. y: 'ien jier',
  9318. yy: '%d jierren',
  9319. },
  9320. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  9321. ordinal: function (number) {
  9322. return (
  9323. number +
  9324. (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
  9325. );
  9326. },
  9327. week: {
  9328. dow: 1, // Monday is the first day of the week.
  9329. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9330. },
  9331. });
  9332. //! moment.js locale configuration
  9333. var months$6 = [
  9334. 'Eanáir',
  9335. 'Feabhra',
  9336. 'Márta',
  9337. 'Aibreán',
  9338. 'Bealtaine',
  9339. 'Meitheamh',
  9340. 'Iúil',
  9341. 'Lúnasa',
  9342. 'Meán Fómhair',
  9343. 'Deireadh Fómhair',
  9344. 'Samhain',
  9345. 'Nollaig',
  9346. ],
  9347. monthsShort$5 = [
  9348. 'Ean',
  9349. 'Feabh',
  9350. 'Márt',
  9351. 'Aib',
  9352. 'Beal',
  9353. 'Meith',
  9354. 'Iúil',
  9355. 'Lún',
  9356. 'M.F.',
  9357. 'D.F.',
  9358. 'Samh',
  9359. 'Noll',
  9360. ],
  9361. weekdays$1 = [
  9362. 'Dé Domhnaigh',
  9363. 'Dé Luain',
  9364. 'Dé Máirt',
  9365. 'Dé Céadaoin',
  9366. 'Déardaoin',
  9367. 'Dé hAoine',
  9368. 'Dé Sathairn',
  9369. ],
  9370. weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'],
  9371. weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa'];
  9372. hooks.defineLocale('ga', {
  9373. months: months$6,
  9374. monthsShort: monthsShort$5,
  9375. monthsParseExact: true,
  9376. weekdays: weekdays$1,
  9377. weekdaysShort: weekdaysShort,
  9378. weekdaysMin: weekdaysMin,
  9379. longDateFormat: {
  9380. LT: 'HH:mm',
  9381. LTS: 'HH:mm:ss',
  9382. L: 'DD/MM/YYYY',
  9383. LL: 'D MMMM YYYY',
  9384. LLL: 'D MMMM YYYY HH:mm',
  9385. LLLL: 'dddd, D MMMM YYYY HH:mm',
  9386. },
  9387. calendar: {
  9388. sameDay: '[Inniu ag] LT',
  9389. nextDay: '[Amárach ag] LT',
  9390. nextWeek: 'dddd [ag] LT',
  9391. lastDay: '[Inné ag] LT',
  9392. lastWeek: 'dddd [seo caite] [ag] LT',
  9393. sameElse: 'L',
  9394. },
  9395. relativeTime: {
  9396. future: 'i %s',
  9397. past: '%s ó shin',
  9398. s: 'cúpla soicind',
  9399. ss: '%d soicind',
  9400. m: 'nóiméad',
  9401. mm: '%d nóiméad',
  9402. h: 'uair an chloig',
  9403. hh: '%d uair an chloig',
  9404. d: 'lá',
  9405. dd: '%d lá',
  9406. M: 'mí',
  9407. MM: '%d míonna',
  9408. y: 'bliain',
  9409. yy: '%d bliain',
  9410. },
  9411. dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
  9412. ordinal: function (number) {
  9413. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  9414. return number + output;
  9415. },
  9416. week: {
  9417. dow: 1, // Monday is the first day of the week.
  9418. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9419. },
  9420. });
  9421. //! moment.js locale configuration
  9422. var months$7 = [
  9423. 'Am Faoilleach',
  9424. 'An Gearran',
  9425. 'Am Màrt',
  9426. 'An Giblean',
  9427. 'An Cèitean',
  9428. 'An t-Ògmhios',
  9429. 'An t-Iuchar',
  9430. 'An Lùnastal',
  9431. 'An t-Sultain',
  9432. 'An Dàmhair',
  9433. 'An t-Samhain',
  9434. 'An Dùbhlachd',
  9435. ],
  9436. monthsShort$6 = [
  9437. 'Faoi',
  9438. 'Gear',
  9439. 'Màrt',
  9440. 'Gibl',
  9441. 'Cèit',
  9442. 'Ògmh',
  9443. 'Iuch',
  9444. 'Lùn',
  9445. 'Sult',
  9446. 'Dàmh',
  9447. 'Samh',
  9448. 'Dùbh',
  9449. ],
  9450. weekdays$2 = [
  9451. 'Didòmhnaich',
  9452. 'Diluain',
  9453. 'Dimàirt',
  9454. 'Diciadain',
  9455. 'Diardaoin',
  9456. 'Dihaoine',
  9457. 'Disathairne',
  9458. ],
  9459. weekdaysShort$1 = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'],
  9460. weekdaysMin$1 = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
  9461. hooks.defineLocale('gd', {
  9462. months: months$7,
  9463. monthsShort: monthsShort$6,
  9464. monthsParseExact: true,
  9465. weekdays: weekdays$2,
  9466. weekdaysShort: weekdaysShort$1,
  9467. weekdaysMin: weekdaysMin$1,
  9468. longDateFormat: {
  9469. LT: 'HH:mm',
  9470. LTS: 'HH:mm:ss',
  9471. L: 'DD/MM/YYYY',
  9472. LL: 'D MMMM YYYY',
  9473. LLL: 'D MMMM YYYY HH:mm',
  9474. LLLL: 'dddd, D MMMM YYYY HH:mm',
  9475. },
  9476. calendar: {
  9477. sameDay: '[An-diugh aig] LT',
  9478. nextDay: '[A-màireach aig] LT',
  9479. nextWeek: 'dddd [aig] LT',
  9480. lastDay: '[An-dè aig] LT',
  9481. lastWeek: 'dddd [seo chaidh] [aig] LT',
  9482. sameElse: 'L',
  9483. },
  9484. relativeTime: {
  9485. future: 'ann an %s',
  9486. past: 'bho chionn %s',
  9487. s: 'beagan diogan',
  9488. ss: '%d diogan',
  9489. m: 'mionaid',
  9490. mm: '%d mionaidean',
  9491. h: 'uair',
  9492. hh: '%d uairean',
  9493. d: 'latha',
  9494. dd: '%d latha',
  9495. M: 'mìos',
  9496. MM: '%d mìosan',
  9497. y: 'bliadhna',
  9498. yy: '%d bliadhna',
  9499. },
  9500. dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
  9501. ordinal: function (number) {
  9502. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  9503. return number + output;
  9504. },
  9505. week: {
  9506. dow: 1, // Monday is the first day of the week.
  9507. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9508. },
  9509. });
  9510. //! moment.js locale configuration
  9511. hooks.defineLocale('gl', {
  9512. months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split(
  9513. '_'
  9514. ),
  9515. monthsShort:
  9516. 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split(
  9517. '_'
  9518. ),
  9519. monthsParseExact: true,
  9520. weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
  9521. weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
  9522. weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'),
  9523. weekdaysParseExact: true,
  9524. longDateFormat: {
  9525. LT: 'H:mm',
  9526. LTS: 'H:mm:ss',
  9527. L: 'DD/MM/YYYY',
  9528. LL: 'D [de] MMMM [de] YYYY',
  9529. LLL: 'D [de] MMMM [de] YYYY H:mm',
  9530. LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
  9531. },
  9532. calendar: {
  9533. sameDay: function () {
  9534. return '[hoxe ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
  9535. },
  9536. nextDay: function () {
  9537. return '[mañá ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
  9538. },
  9539. nextWeek: function () {
  9540. return 'dddd [' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';
  9541. },
  9542. lastDay: function () {
  9543. return '[onte ' + (this.hours() !== 1 ? 'á' : 'a') + '] LT';
  9544. },
  9545. lastWeek: function () {
  9546. return (
  9547. '[o] dddd [pasado ' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT'
  9548. );
  9549. },
  9550. sameElse: 'L',
  9551. },
  9552. relativeTime: {
  9553. future: function (str) {
  9554. if (str.indexOf('un') === 0) {
  9555. return 'n' + str;
  9556. }
  9557. return 'en ' + str;
  9558. },
  9559. past: 'hai %s',
  9560. s: 'uns segundos',
  9561. ss: '%d segundos',
  9562. m: 'un minuto',
  9563. mm: '%d minutos',
  9564. h: 'unha hora',
  9565. hh: '%d horas',
  9566. d: 'un día',
  9567. dd: '%d días',
  9568. M: 'un mes',
  9569. MM: '%d meses',
  9570. y: 'un ano',
  9571. yy: '%d anos',
  9572. },
  9573. dayOfMonthOrdinalParse: /\d{1,2}º/,
  9574. ordinal: '%dº',
  9575. week: {
  9576. dow: 1, // Monday is the first day of the week.
  9577. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9578. },
  9579. });
  9580. //! moment.js locale configuration
  9581. function processRelativeTime$4(number, withoutSuffix, key, isFuture) {
  9582. var format = {
  9583. s: ['थोडया सॅकंडांनी', 'थोडे सॅकंड'],
  9584. ss: [number + ' सॅकंडांनी', number + ' सॅकंड'],
  9585. m: ['एका मिणटान', 'एक मिनूट'],
  9586. mm: [number + ' मिणटांनी', number + ' मिणटां'],
  9587. h: ['एका वरान', 'एक वर'],
  9588. hh: [number + ' वरांनी', number + ' वरां'],
  9589. d: ['एका दिसान', 'एक दीस'],
  9590. dd: [number + ' दिसांनी', number + ' दीस'],
  9591. M: ['एका म्हयन्यान', 'एक म्हयनो'],
  9592. MM: [number + ' म्हयन्यानी', number + ' म्हयने'],
  9593. y: ['एका वर्सान', 'एक वर्स'],
  9594. yy: [number + ' वर्सांनी', number + ' वर्सां'],
  9595. };
  9596. return isFuture ? format[key][0] : format[key][1];
  9597. }
  9598. hooks.defineLocale('gom-deva', {
  9599. months: {
  9600. standalone:
  9601. 'जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(
  9602. '_'
  9603. ),
  9604. format: 'जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या'.split(
  9605. '_'
  9606. ),
  9607. isFormat: /MMMM(\s)+D[oD]?/,
  9608. },
  9609. monthsShort:
  9610. 'जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(
  9611. '_'
  9612. ),
  9613. monthsParseExact: true,
  9614. weekdays: 'आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार'.split('_'),
  9615. weekdaysShort: 'आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.'.split('_'),
  9616. weekdaysMin: 'आ_सो_मं_बु_ब्रे_सु_शे'.split('_'),
  9617. weekdaysParseExact: true,
  9618. longDateFormat: {
  9619. LT: 'A h:mm [वाजतां]',
  9620. LTS: 'A h:mm:ss [वाजतां]',
  9621. L: 'DD-MM-YYYY',
  9622. LL: 'D MMMM YYYY',
  9623. LLL: 'D MMMM YYYY A h:mm [वाजतां]',
  9624. LLLL: 'dddd, MMMM Do, YYYY, A h:mm [वाजतां]',
  9625. llll: 'ddd, D MMM YYYY, A h:mm [वाजतां]',
  9626. },
  9627. calendar: {
  9628. sameDay: '[आयज] LT',
  9629. nextDay: '[फाल्यां] LT',
  9630. nextWeek: '[फुडलो] dddd[,] LT',
  9631. lastDay: '[काल] LT',
  9632. lastWeek: '[फाटलो] dddd[,] LT',
  9633. sameElse: 'L',
  9634. },
  9635. relativeTime: {
  9636. future: '%s',
  9637. past: '%s आदीं',
  9638. s: processRelativeTime$4,
  9639. ss: processRelativeTime$4,
  9640. m: processRelativeTime$4,
  9641. mm: processRelativeTime$4,
  9642. h: processRelativeTime$4,
  9643. hh: processRelativeTime$4,
  9644. d: processRelativeTime$4,
  9645. dd: processRelativeTime$4,
  9646. M: processRelativeTime$4,
  9647. MM: processRelativeTime$4,
  9648. y: processRelativeTime$4,
  9649. yy: processRelativeTime$4,
  9650. },
  9651. dayOfMonthOrdinalParse: /\d{1,2}(वेर)/,
  9652. ordinal: function (number, period) {
  9653. switch (period) {
  9654. // the ordinal 'वेर' only applies to day of the month
  9655. case 'D':
  9656. return number + 'वेर';
  9657. default:
  9658. case 'M':
  9659. case 'Q':
  9660. case 'DDD':
  9661. case 'd':
  9662. case 'w':
  9663. case 'W':
  9664. return number;
  9665. }
  9666. },
  9667. week: {
  9668. dow: 0, // Sunday is the first day of the week
  9669. doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
  9670. },
  9671. meridiemParse: /राती|सकाळीं|दनपारां|सांजे/,
  9672. meridiemHour: function (hour, meridiem) {
  9673. if (hour === 12) {
  9674. hour = 0;
  9675. }
  9676. if (meridiem === 'राती') {
  9677. return hour < 4 ? hour : hour + 12;
  9678. } else if (meridiem === 'सकाळीं') {
  9679. return hour;
  9680. } else if (meridiem === 'दनपारां') {
  9681. return hour > 12 ? hour : hour + 12;
  9682. } else if (meridiem === 'सांजे') {
  9683. return hour + 12;
  9684. }
  9685. },
  9686. meridiem: function (hour, minute, isLower) {
  9687. if (hour < 4) {
  9688. return 'राती';
  9689. } else if (hour < 12) {
  9690. return 'सकाळीं';
  9691. } else if (hour < 16) {
  9692. return 'दनपारां';
  9693. } else if (hour < 20) {
  9694. return 'सांजे';
  9695. } else {
  9696. return 'राती';
  9697. }
  9698. },
  9699. });
  9700. //! moment.js locale configuration
  9701. function processRelativeTime$5(number, withoutSuffix, key, isFuture) {
  9702. var format = {
  9703. s: ['thoddea sekondamni', 'thodde sekond'],
  9704. ss: [number + ' sekondamni', number + ' sekond'],
  9705. m: ['eka mintan', 'ek minut'],
  9706. mm: [number + ' mintamni', number + ' mintam'],
  9707. h: ['eka voran', 'ek vor'],
  9708. hh: [number + ' voramni', number + ' voram'],
  9709. d: ['eka disan', 'ek dis'],
  9710. dd: [number + ' disamni', number + ' dis'],
  9711. M: ['eka mhoinean', 'ek mhoino'],
  9712. MM: [number + ' mhoineamni', number + ' mhoine'],
  9713. y: ['eka vorsan', 'ek voros'],
  9714. yy: [number + ' vorsamni', number + ' vorsam'],
  9715. };
  9716. return isFuture ? format[key][0] : format[key][1];
  9717. }
  9718. hooks.defineLocale('gom-latn', {
  9719. months: {
  9720. standalone:
  9721. 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split(
  9722. '_'
  9723. ),
  9724. format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split(
  9725. '_'
  9726. ),
  9727. isFormat: /MMMM(\s)+D[oD]?/,
  9728. },
  9729. monthsShort:
  9730. 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'),
  9731. monthsParseExact: true,
  9732. weekdays: "Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split('_'),
  9733. weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
  9734. weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
  9735. weekdaysParseExact: true,
  9736. longDateFormat: {
  9737. LT: 'A h:mm [vazta]',
  9738. LTS: 'A h:mm:ss [vazta]',
  9739. L: 'DD-MM-YYYY',
  9740. LL: 'D MMMM YYYY',
  9741. LLL: 'D MMMM YYYY A h:mm [vazta]',
  9742. LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]',
  9743. llll: 'ddd, D MMM YYYY, A h:mm [vazta]',
  9744. },
  9745. calendar: {
  9746. sameDay: '[Aiz] LT',
  9747. nextDay: '[Faleam] LT',
  9748. nextWeek: '[Fuddlo] dddd[,] LT',
  9749. lastDay: '[Kal] LT',
  9750. lastWeek: '[Fattlo] dddd[,] LT',
  9751. sameElse: 'L',
  9752. },
  9753. relativeTime: {
  9754. future: '%s',
  9755. past: '%s adim',
  9756. s: processRelativeTime$5,
  9757. ss: processRelativeTime$5,
  9758. m: processRelativeTime$5,
  9759. mm: processRelativeTime$5,
  9760. h: processRelativeTime$5,
  9761. hh: processRelativeTime$5,
  9762. d: processRelativeTime$5,
  9763. dd: processRelativeTime$5,
  9764. M: processRelativeTime$5,
  9765. MM: processRelativeTime$5,
  9766. y: processRelativeTime$5,
  9767. yy: processRelativeTime$5,
  9768. },
  9769. dayOfMonthOrdinalParse: /\d{1,2}(er)/,
  9770. ordinal: function (number, period) {
  9771. switch (period) {
  9772. // the ordinal 'er' only applies to day of the month
  9773. case 'D':
  9774. return number + 'er';
  9775. default:
  9776. case 'M':
  9777. case 'Q':
  9778. case 'DDD':
  9779. case 'd':
  9780. case 'w':
  9781. case 'W':
  9782. return number;
  9783. }
  9784. },
  9785. week: {
  9786. dow: 0, // Sunday is the first day of the week
  9787. doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
  9788. },
  9789. meridiemParse: /rati|sokallim|donparam|sanje/,
  9790. meridiemHour: function (hour, meridiem) {
  9791. if (hour === 12) {
  9792. hour = 0;
  9793. }
  9794. if (meridiem === 'rati') {
  9795. return hour < 4 ? hour : hour + 12;
  9796. } else if (meridiem === 'sokallim') {
  9797. return hour;
  9798. } else if (meridiem === 'donparam') {
  9799. return hour > 12 ? hour : hour + 12;
  9800. } else if (meridiem === 'sanje') {
  9801. return hour + 12;
  9802. }
  9803. },
  9804. meridiem: function (hour, minute, isLower) {
  9805. if (hour < 4) {
  9806. return 'rati';
  9807. } else if (hour < 12) {
  9808. return 'sokallim';
  9809. } else if (hour < 16) {
  9810. return 'donparam';
  9811. } else if (hour < 20) {
  9812. return 'sanje';
  9813. } else {
  9814. return 'rati';
  9815. }
  9816. },
  9817. });
  9818. //! moment.js locale configuration
  9819. var symbolMap$7 = {
  9820. 1: '૧',
  9821. 2: '૨',
  9822. 3: '૩',
  9823. 4: '૪',
  9824. 5: '૫',
  9825. 6: '૬',
  9826. 7: '૭',
  9827. 8: '૮',
  9828. 9: '૯',
  9829. 0: '૦',
  9830. },
  9831. numberMap$6 = {
  9832. '૧': '1',
  9833. '૨': '2',
  9834. '૩': '3',
  9835. '૪': '4',
  9836. '૫': '5',
  9837. '૬': '6',
  9838. '૭': '7',
  9839. '૮': '8',
  9840. '૯': '9',
  9841. '૦': '0',
  9842. };
  9843. hooks.defineLocale('gu', {
  9844. months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split(
  9845. '_'
  9846. ),
  9847. monthsShort:
  9848. 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split(
  9849. '_'
  9850. ),
  9851. monthsParseExact: true,
  9852. weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split(
  9853. '_'
  9854. ),
  9855. weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),
  9856. weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),
  9857. longDateFormat: {
  9858. LT: 'A h:mm વાગ્યે',
  9859. LTS: 'A h:mm:ss વાગ્યે',
  9860. L: 'DD/MM/YYYY',
  9861. LL: 'D MMMM YYYY',
  9862. LLL: 'D MMMM YYYY, A h:mm વાગ્યે',
  9863. LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે',
  9864. },
  9865. calendar: {
  9866. sameDay: '[આજ] LT',
  9867. nextDay: '[કાલે] LT',
  9868. nextWeek: 'dddd, LT',
  9869. lastDay: '[ગઇકાલે] LT',
  9870. lastWeek: '[પાછલા] dddd, LT',
  9871. sameElse: 'L',
  9872. },
  9873. relativeTime: {
  9874. future: '%s મા',
  9875. past: '%s પહેલા',
  9876. s: 'અમુક પળો',
  9877. ss: '%d સેકંડ',
  9878. m: 'એક મિનિટ',
  9879. mm: '%d મિનિટ',
  9880. h: 'એક કલાક',
  9881. hh: '%d કલાક',
  9882. d: 'એક દિવસ',
  9883. dd: '%d દિવસ',
  9884. M: 'એક મહિનો',
  9885. MM: '%d મહિનો',
  9886. y: 'એક વર્ષ',
  9887. yy: '%d વર્ષ',
  9888. },
  9889. preparse: function (string) {
  9890. return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {
  9891. return numberMap$6[match];
  9892. });
  9893. },
  9894. postformat: function (string) {
  9895. return string.replace(/\d/g, function (match) {
  9896. return symbolMap$7[match];
  9897. });
  9898. },
  9899. // Gujarati notation for meridiems are quite fuzzy in practice. While there exists
  9900. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.
  9901. meridiemParse: /રાત|બપોર|સવાર|સાંજ/,
  9902. meridiemHour: function (hour, meridiem) {
  9903. if (hour === 12) {
  9904. hour = 0;
  9905. }
  9906. if (meridiem === 'રાત') {
  9907. return hour < 4 ? hour : hour + 12;
  9908. } else if (meridiem === 'સવાર') {
  9909. return hour;
  9910. } else if (meridiem === 'બપોર') {
  9911. return hour >= 10 ? hour : hour + 12;
  9912. } else if (meridiem === 'સાંજ') {
  9913. return hour + 12;
  9914. }
  9915. },
  9916. meridiem: function (hour, minute, isLower) {
  9917. if (hour < 4) {
  9918. return 'રાત';
  9919. } else if (hour < 10) {
  9920. return 'સવાર';
  9921. } else if (hour < 17) {
  9922. return 'બપોર';
  9923. } else if (hour < 20) {
  9924. return 'સાંજ';
  9925. } else {
  9926. return 'રાત';
  9927. }
  9928. },
  9929. week: {
  9930. dow: 0, // Sunday is the first day of the week.
  9931. doy: 6, // The week that contains Jan 6th is the first week of the year.
  9932. },
  9933. });
  9934. //! moment.js locale configuration
  9935. hooks.defineLocale('he', {
  9936. months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split(
  9937. '_'
  9938. ),
  9939. monthsShort:
  9940. 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
  9941. weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
  9942. weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
  9943. weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'),
  9944. longDateFormat: {
  9945. LT: 'HH:mm',
  9946. LTS: 'HH:mm:ss',
  9947. L: 'DD/MM/YYYY',
  9948. LL: 'D [ב]MMMM YYYY',
  9949. LLL: 'D [ב]MMMM YYYY HH:mm',
  9950. LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',
  9951. l: 'D/M/YYYY',
  9952. ll: 'D MMM YYYY',
  9953. lll: 'D MMM YYYY HH:mm',
  9954. llll: 'ddd, D MMM YYYY HH:mm',
  9955. },
  9956. calendar: {
  9957. sameDay: '[היום ב־]LT',
  9958. nextDay: '[מחר ב־]LT',
  9959. nextWeek: 'dddd [בשעה] LT',
  9960. lastDay: '[אתמול ב־]LT',
  9961. lastWeek: '[ביום] dddd [האחרון בשעה] LT',
  9962. sameElse: 'L',
  9963. },
  9964. relativeTime: {
  9965. future: 'בעוד %s',
  9966. past: 'לפני %s',
  9967. s: 'מספר שניות',
  9968. ss: '%d שניות',
  9969. m: 'דקה',
  9970. mm: '%d דקות',
  9971. h: 'שעה',
  9972. hh: function (number) {
  9973. if (number === 2) {
  9974. return 'שעתיים';
  9975. }
  9976. return number + ' שעות';
  9977. },
  9978. d: 'יום',
  9979. dd: function (number) {
  9980. if (number === 2) {
  9981. return 'יומיים';
  9982. }
  9983. return number + ' ימים';
  9984. },
  9985. M: 'חודש',
  9986. MM: function (number) {
  9987. if (number === 2) {
  9988. return 'חודשיים';
  9989. }
  9990. return number + ' חודשים';
  9991. },
  9992. y: 'שנה',
  9993. yy: function (number) {
  9994. if (number === 2) {
  9995. return 'שנתיים';
  9996. } else if (number % 10 === 0 && number !== 10) {
  9997. return number + ' שנה';
  9998. }
  9999. return number + ' שנים';
  10000. },
  10001. },
  10002. meridiemParse:
  10003. /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
  10004. isPM: function (input) {
  10005. return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
  10006. },
  10007. meridiem: function (hour, minute, isLower) {
  10008. if (hour < 5) {
  10009. return 'לפנות בוקר';
  10010. } else if (hour < 10) {
  10011. return 'בבוקר';
  10012. } else if (hour < 12) {
  10013. return isLower ? 'לפנה"צ' : 'לפני הצהריים';
  10014. } else if (hour < 18) {
  10015. return isLower ? 'אחה"צ' : 'אחרי הצהריים';
  10016. } else {
  10017. return 'בערב';
  10018. }
  10019. },
  10020. });
  10021. //! moment.js locale configuration
  10022. var symbolMap$8 = {
  10023. 1: '१',
  10024. 2: '२',
  10025. 3: '३',
  10026. 4: '४',
  10027. 5: '५',
  10028. 6: '६',
  10029. 7: '७',
  10030. 8: '८',
  10031. 9: '९',
  10032. 0: '०',
  10033. },
  10034. numberMap$7 = {
  10035. '१': '1',
  10036. '२': '2',
  10037. '३': '3',
  10038. '४': '4',
  10039. '५': '5',
  10040. '६': '6',
  10041. '७': '7',
  10042. '८': '8',
  10043. '९': '9',
  10044. '०': '0',
  10045. },
  10046. monthsParse$7 = [
  10047. /^जन/i,
  10048. /^फ़र|फर/i,
  10049. /^मार्च/i,
  10050. /^अप्रै/i,
  10051. /^मई/i,
  10052. /^जून/i,
  10053. /^जुल/i,
  10054. /^अग/i,
  10055. /^सितं|सित/i,
  10056. /^अक्टू/i,
  10057. /^नव|नवं/i,
  10058. /^दिसं|दिस/i,
  10059. ],
  10060. shortMonthsParse = [
  10061. /^जन/i,
  10062. /^फ़र/i,
  10063. /^मार्च/i,
  10064. /^अप्रै/i,
  10065. /^मई/i,
  10066. /^जून/i,
  10067. /^जुल/i,
  10068. /^अग/i,
  10069. /^सित/i,
  10070. /^अक्टू/i,
  10071. /^नव/i,
  10072. /^दिस/i,
  10073. ];
  10074. hooks.defineLocale('hi', {
  10075. months: {
  10076. format: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split(
  10077. '_'
  10078. ),
  10079. standalone:
  10080. 'जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर'.split(
  10081. '_'
  10082. ),
  10083. },
  10084. monthsShort:
  10085. 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
  10086. weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  10087. weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
  10088. weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
  10089. longDateFormat: {
  10090. LT: 'A h:mm बजे',
  10091. LTS: 'A h:mm:ss बजे',
  10092. L: 'DD/MM/YYYY',
  10093. LL: 'D MMMM YYYY',
  10094. LLL: 'D MMMM YYYY, A h:mm बजे',
  10095. LLLL: 'dddd, D MMMM YYYY, A h:mm बजे',
  10096. },
  10097. monthsParse: monthsParse$7,
  10098. longMonthsParse: monthsParse$7,
  10099. shortMonthsParse: shortMonthsParse,
  10100. monthsRegex:
  10101. /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,
  10102. monthsShortRegex:
  10103. /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,
  10104. monthsStrictRegex:
  10105. /^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,
  10106. monthsShortStrictRegex:
  10107. /^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,
  10108. calendar: {
  10109. sameDay: '[आज] LT',
  10110. nextDay: '[कल] LT',
  10111. nextWeek: 'dddd, LT',
  10112. lastDay: '[कल] LT',
  10113. lastWeek: '[पिछले] dddd, LT',
  10114. sameElse: 'L',
  10115. },
  10116. relativeTime: {
  10117. future: '%s में',
  10118. past: '%s पहले',
  10119. s: 'कुछ ही क्षण',
  10120. ss: '%d सेकंड',
  10121. m: 'एक मिनट',
  10122. mm: '%d मिनट',
  10123. h: 'एक घंटा',
  10124. hh: '%d घंटे',
  10125. d: 'एक दिन',
  10126. dd: '%d दिन',
  10127. M: 'एक महीने',
  10128. MM: '%d महीने',
  10129. y: 'एक वर्ष',
  10130. yy: '%d वर्ष',
  10131. },
  10132. preparse: function (string) {
  10133. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  10134. return numberMap$7[match];
  10135. });
  10136. },
  10137. postformat: function (string) {
  10138. return string.replace(/\d/g, function (match) {
  10139. return symbolMap$8[match];
  10140. });
  10141. },
  10142. // Hindi notation for meridiems are quite fuzzy in practice. While there exists
  10143. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
  10144. meridiemParse: /रात|सुबह|दोपहर|शाम/,
  10145. meridiemHour: function (hour, meridiem) {
  10146. if (hour === 12) {
  10147. hour = 0;
  10148. }
  10149. if (meridiem === 'रात') {
  10150. return hour < 4 ? hour : hour + 12;
  10151. } else if (meridiem === 'सुबह') {
  10152. return hour;
  10153. } else if (meridiem === 'दोपहर') {
  10154. return hour >= 10 ? hour : hour + 12;
  10155. } else if (meridiem === 'शाम') {
  10156. return hour + 12;
  10157. }
  10158. },
  10159. meridiem: function (hour, minute, isLower) {
  10160. if (hour < 4) {
  10161. return 'रात';
  10162. } else if (hour < 10) {
  10163. return 'सुबह';
  10164. } else if (hour < 17) {
  10165. return 'दोपहर';
  10166. } else if (hour < 20) {
  10167. return 'शाम';
  10168. } else {
  10169. return 'रात';
  10170. }
  10171. },
  10172. week: {
  10173. dow: 0, // Sunday is the first day of the week.
  10174. doy: 6, // The week that contains Jan 6th is the first week of the year.
  10175. },
  10176. });
  10177. //! moment.js locale configuration
  10178. function translate$3(number, withoutSuffix, key) {
  10179. var result = number + ' ';
  10180. switch (key) {
  10181. case 'ss':
  10182. if (number === 1) {
  10183. result += 'sekunda';
  10184. } else if (number === 2 || number === 3 || number === 4) {
  10185. result += 'sekunde';
  10186. } else {
  10187. result += 'sekundi';
  10188. }
  10189. return result;
  10190. case 'm':
  10191. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  10192. case 'mm':
  10193. if (number === 1) {
  10194. result += 'minuta';
  10195. } else if (number === 2 || number === 3 || number === 4) {
  10196. result += 'minute';
  10197. } else {
  10198. result += 'minuta';
  10199. }
  10200. return result;
  10201. case 'h':
  10202. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  10203. case 'hh':
  10204. if (number === 1) {
  10205. result += 'sat';
  10206. } else if (number === 2 || number === 3 || number === 4) {
  10207. result += 'sata';
  10208. } else {
  10209. result += 'sati';
  10210. }
  10211. return result;
  10212. case 'dd':
  10213. if (number === 1) {
  10214. result += 'dan';
  10215. } else {
  10216. result += 'dana';
  10217. }
  10218. return result;
  10219. case 'MM':
  10220. if (number === 1) {
  10221. result += 'mjesec';
  10222. } else if (number === 2 || number === 3 || number === 4) {
  10223. result += 'mjeseca';
  10224. } else {
  10225. result += 'mjeseci';
  10226. }
  10227. return result;
  10228. case 'yy':
  10229. if (number === 1) {
  10230. result += 'godina';
  10231. } else if (number === 2 || number === 3 || number === 4) {
  10232. result += 'godine';
  10233. } else {
  10234. result += 'godina';
  10235. }
  10236. return result;
  10237. }
  10238. }
  10239. hooks.defineLocale('hr', {
  10240. months: {
  10241. format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split(
  10242. '_'
  10243. ),
  10244. standalone:
  10245. 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split(
  10246. '_'
  10247. ),
  10248. },
  10249. monthsShort:
  10250. 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split(
  10251. '_'
  10252. ),
  10253. monthsParseExact: true,
  10254. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
  10255. '_'
  10256. ),
  10257. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  10258. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  10259. weekdaysParseExact: true,
  10260. longDateFormat: {
  10261. LT: 'H:mm',
  10262. LTS: 'H:mm:ss',
  10263. L: 'DD.MM.YYYY',
  10264. LL: 'Do MMMM YYYY',
  10265. LLL: 'Do MMMM YYYY H:mm',
  10266. LLLL: 'dddd, Do MMMM YYYY H:mm',
  10267. },
  10268. calendar: {
  10269. sameDay: '[danas u] LT',
  10270. nextDay: '[sutra u] LT',
  10271. nextWeek: function () {
  10272. switch (this.day()) {
  10273. case 0:
  10274. return '[u] [nedjelju] [u] LT';
  10275. case 3:
  10276. return '[u] [srijedu] [u] LT';
  10277. case 6:
  10278. return '[u] [subotu] [u] LT';
  10279. case 1:
  10280. case 2:
  10281. case 4:
  10282. case 5:
  10283. return '[u] dddd [u] LT';
  10284. }
  10285. },
  10286. lastDay: '[jučer u] LT',
  10287. lastWeek: function () {
  10288. switch (this.day()) {
  10289. case 0:
  10290. return '[prošlu] [nedjelju] [u] LT';
  10291. case 3:
  10292. return '[prošlu] [srijedu] [u] LT';
  10293. case 6:
  10294. return '[prošle] [subote] [u] LT';
  10295. case 1:
  10296. case 2:
  10297. case 4:
  10298. case 5:
  10299. return '[prošli] dddd [u] LT';
  10300. }
  10301. },
  10302. sameElse: 'L',
  10303. },
  10304. relativeTime: {
  10305. future: 'za %s',
  10306. past: 'prije %s',
  10307. s: 'par sekundi',
  10308. ss: translate$3,
  10309. m: translate$3,
  10310. mm: translate$3,
  10311. h: translate$3,
  10312. hh: translate$3,
  10313. d: 'dan',
  10314. dd: translate$3,
  10315. M: 'mjesec',
  10316. MM: translate$3,
  10317. y: 'godinu',
  10318. yy: translate$3,
  10319. },
  10320. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10321. ordinal: '%d.',
  10322. week: {
  10323. dow: 1, // Monday is the first day of the week.
  10324. doy: 7, // The week that contains Jan 7th is the first week of the year.
  10325. },
  10326. });
  10327. //! moment.js locale configuration
  10328. var weekEndings =
  10329. 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
  10330. function translate$4(number, withoutSuffix, key, isFuture) {
  10331. var num = number;
  10332. switch (key) {
  10333. case 's':
  10334. return isFuture || withoutSuffix
  10335. ? 'néhány másodperc'
  10336. : 'néhány másodperce';
  10337. case 'ss':
  10338. return num + (isFuture || withoutSuffix)
  10339. ? ' másodperc'
  10340. : ' másodperce';
  10341. case 'm':
  10342. return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
  10343. case 'mm':
  10344. return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
  10345. case 'h':
  10346. return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
  10347. case 'hh':
  10348. return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
  10349. case 'd':
  10350. return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
  10351. case 'dd':
  10352. return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
  10353. case 'M':
  10354. return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  10355. case 'MM':
  10356. return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  10357. case 'y':
  10358. return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
  10359. case 'yy':
  10360. return num + (isFuture || withoutSuffix ? ' év' : ' éve');
  10361. }
  10362. return '';
  10363. }
  10364. function week(isFuture) {
  10365. return (
  10366. (isFuture ? '' : '[múlt] ') +
  10367. '[' +
  10368. weekEndings[this.day()] +
  10369. '] LT[-kor]'
  10370. );
  10371. }
  10372. hooks.defineLocale('hu', {
  10373. months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split(
  10374. '_'
  10375. ),
  10376. monthsShort:
  10377. 'jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.'.split(
  10378. '_'
  10379. ),
  10380. monthsParseExact: true,
  10381. weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
  10382. weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
  10383. weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),
  10384. longDateFormat: {
  10385. LT: 'H:mm',
  10386. LTS: 'H:mm:ss',
  10387. L: 'YYYY.MM.DD.',
  10388. LL: 'YYYY. MMMM D.',
  10389. LLL: 'YYYY. MMMM D. H:mm',
  10390. LLLL: 'YYYY. MMMM D., dddd H:mm',
  10391. },
  10392. meridiemParse: /de|du/i,
  10393. isPM: function (input) {
  10394. return input.charAt(1).toLowerCase() === 'u';
  10395. },
  10396. meridiem: function (hours, minutes, isLower) {
  10397. if (hours < 12) {
  10398. return isLower === true ? 'de' : 'DE';
  10399. } else {
  10400. return isLower === true ? 'du' : 'DU';
  10401. }
  10402. },
  10403. calendar: {
  10404. sameDay: '[ma] LT[-kor]',
  10405. nextDay: '[holnap] LT[-kor]',
  10406. nextWeek: function () {
  10407. return week.call(this, true);
  10408. },
  10409. lastDay: '[tegnap] LT[-kor]',
  10410. lastWeek: function () {
  10411. return week.call(this, false);
  10412. },
  10413. sameElse: 'L',
  10414. },
  10415. relativeTime: {
  10416. future: '%s múlva',
  10417. past: '%s',
  10418. s: translate$4,
  10419. ss: translate$4,
  10420. m: translate$4,
  10421. mm: translate$4,
  10422. h: translate$4,
  10423. hh: translate$4,
  10424. d: translate$4,
  10425. dd: translate$4,
  10426. M: translate$4,
  10427. MM: translate$4,
  10428. y: translate$4,
  10429. yy: translate$4,
  10430. },
  10431. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10432. ordinal: '%d.',
  10433. week: {
  10434. dow: 1, // Monday is the first day of the week.
  10435. doy: 4, // The week that contains Jan 4th is the first week of the year.
  10436. },
  10437. });
  10438. //! moment.js locale configuration
  10439. hooks.defineLocale('hy-am', {
  10440. months: {
  10441. format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split(
  10442. '_'
  10443. ),
  10444. standalone:
  10445. 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split(
  10446. '_'
  10447. ),
  10448. },
  10449. monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
  10450. weekdays:
  10451. 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split(
  10452. '_'
  10453. ),
  10454. weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  10455. weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  10456. longDateFormat: {
  10457. LT: 'HH:mm',
  10458. LTS: 'HH:mm:ss',
  10459. L: 'DD.MM.YYYY',
  10460. LL: 'D MMMM YYYY թ.',
  10461. LLL: 'D MMMM YYYY թ., HH:mm',
  10462. LLLL: 'dddd, D MMMM YYYY թ., HH:mm',
  10463. },
  10464. calendar: {
  10465. sameDay: '[այսօր] LT',
  10466. nextDay: '[վաղը] LT',
  10467. lastDay: '[երեկ] LT',
  10468. nextWeek: function () {
  10469. return 'dddd [օրը ժամը] LT';
  10470. },
  10471. lastWeek: function () {
  10472. return '[անցած] dddd [օրը ժամը] LT';
  10473. },
  10474. sameElse: 'L',
  10475. },
  10476. relativeTime: {
  10477. future: '%s հետո',
  10478. past: '%s առաջ',
  10479. s: 'մի քանի վայրկյան',
  10480. ss: '%d վայրկյան',
  10481. m: 'րոպե',
  10482. mm: '%d րոպե',
  10483. h: 'ժամ',
  10484. hh: '%d ժամ',
  10485. d: 'օր',
  10486. dd: '%d օր',
  10487. M: 'ամիս',
  10488. MM: '%d ամիս',
  10489. y: 'տարի',
  10490. yy: '%d տարի',
  10491. },
  10492. meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
  10493. isPM: function (input) {
  10494. return /^(ցերեկվա|երեկոյան)$/.test(input);
  10495. },
  10496. meridiem: function (hour) {
  10497. if (hour < 4) {
  10498. return 'գիշերվա';
  10499. } else if (hour < 12) {
  10500. return 'առավոտվա';
  10501. } else if (hour < 17) {
  10502. return 'ցերեկվա';
  10503. } else {
  10504. return 'երեկոյան';
  10505. }
  10506. },
  10507. dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
  10508. ordinal: function (number, period) {
  10509. switch (period) {
  10510. case 'DDD':
  10511. case 'w':
  10512. case 'W':
  10513. case 'DDDo':
  10514. if (number === 1) {
  10515. return number + '-ին';
  10516. }
  10517. return number + '-րդ';
  10518. default:
  10519. return number;
  10520. }
  10521. },
  10522. week: {
  10523. dow: 1, // Monday is the first day of the week.
  10524. doy: 7, // The week that contains Jan 7th is the first week of the year.
  10525. },
  10526. });
  10527. //! moment.js locale configuration
  10528. hooks.defineLocale('id', {
  10529. months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split(
  10530. '_'
  10531. ),
  10532. monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),
  10533. weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
  10534. weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
  10535. weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
  10536. longDateFormat: {
  10537. LT: 'HH.mm',
  10538. LTS: 'HH.mm.ss',
  10539. L: 'DD/MM/YYYY',
  10540. LL: 'D MMMM YYYY',
  10541. LLL: 'D MMMM YYYY [pukul] HH.mm',
  10542. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
  10543. },
  10544. meridiemParse: /pagi|siang|sore|malam/,
  10545. meridiemHour: function (hour, meridiem) {
  10546. if (hour === 12) {
  10547. hour = 0;
  10548. }
  10549. if (meridiem === 'pagi') {
  10550. return hour;
  10551. } else if (meridiem === 'siang') {
  10552. return hour >= 11 ? hour : hour + 12;
  10553. } else if (meridiem === 'sore' || meridiem === 'malam') {
  10554. return hour + 12;
  10555. }
  10556. },
  10557. meridiem: function (hours, minutes, isLower) {
  10558. if (hours < 11) {
  10559. return 'pagi';
  10560. } else if (hours < 15) {
  10561. return 'siang';
  10562. } else if (hours < 19) {
  10563. return 'sore';
  10564. } else {
  10565. return 'malam';
  10566. }
  10567. },
  10568. calendar: {
  10569. sameDay: '[Hari ini pukul] LT',
  10570. nextDay: '[Besok pukul] LT',
  10571. nextWeek: 'dddd [pukul] LT',
  10572. lastDay: '[Kemarin pukul] LT',
  10573. lastWeek: 'dddd [lalu pukul] LT',
  10574. sameElse: 'L',
  10575. },
  10576. relativeTime: {
  10577. future: 'dalam %s',
  10578. past: '%s yang lalu',
  10579. s: 'beberapa detik',
  10580. ss: '%d detik',
  10581. m: 'semenit',
  10582. mm: '%d menit',
  10583. h: 'sejam',
  10584. hh: '%d jam',
  10585. d: 'sehari',
  10586. dd: '%d hari',
  10587. M: 'sebulan',
  10588. MM: '%d bulan',
  10589. y: 'setahun',
  10590. yy: '%d tahun',
  10591. },
  10592. week: {
  10593. dow: 0, // Sunday is the first day of the week.
  10594. doy: 6, // The week that contains Jan 6th is the first week of the year.
  10595. },
  10596. });
  10597. //! moment.js locale configuration
  10598. function plural$2(n) {
  10599. if (n % 100 === 11) {
  10600. return true;
  10601. } else if (n % 10 === 1) {
  10602. return false;
  10603. }
  10604. return true;
  10605. }
  10606. function translate$5(number, withoutSuffix, key, isFuture) {
  10607. var result = number + ' ';
  10608. switch (key) {
  10609. case 's':
  10610. return withoutSuffix || isFuture
  10611. ? 'nokkrar sekúndur'
  10612. : 'nokkrum sekúndum';
  10613. case 'ss':
  10614. if (plural$2(number)) {
  10615. return (
  10616. result +
  10617. (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum')
  10618. );
  10619. }
  10620. return result + 'sekúnda';
  10621. case 'm':
  10622. return withoutSuffix ? 'mínúta' : 'mínútu';
  10623. case 'mm':
  10624. if (plural$2(number)) {
  10625. return (
  10626. result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum')
  10627. );
  10628. } else if (withoutSuffix) {
  10629. return result + 'mínúta';
  10630. }
  10631. return result + 'mínútu';
  10632. case 'hh':
  10633. if (plural$2(number)) {
  10634. return (
  10635. result +
  10636. (withoutSuffix || isFuture
  10637. ? 'klukkustundir'
  10638. : 'klukkustundum')
  10639. );
  10640. }
  10641. return result + 'klukkustund';
  10642. case 'd':
  10643. if (withoutSuffix) {
  10644. return 'dagur';
  10645. }
  10646. return isFuture ? 'dag' : 'degi';
  10647. case 'dd':
  10648. if (plural$2(number)) {
  10649. if (withoutSuffix) {
  10650. return result + 'dagar';
  10651. }
  10652. return result + (isFuture ? 'daga' : 'dögum');
  10653. } else if (withoutSuffix) {
  10654. return result + 'dagur';
  10655. }
  10656. return result + (isFuture ? 'dag' : 'degi');
  10657. case 'M':
  10658. if (withoutSuffix) {
  10659. return 'mánuður';
  10660. }
  10661. return isFuture ? 'mánuð' : 'mánuði';
  10662. case 'MM':
  10663. if (plural$2(number)) {
  10664. if (withoutSuffix) {
  10665. return result + 'mánuðir';
  10666. }
  10667. return result + (isFuture ? 'mánuði' : 'mánuðum');
  10668. } else if (withoutSuffix) {
  10669. return result + 'mánuður';
  10670. }
  10671. return result + (isFuture ? 'mánuð' : 'mánuði');
  10672. case 'y':
  10673. return withoutSuffix || isFuture ? 'ár' : 'ári';
  10674. case 'yy':
  10675. if (plural$2(number)) {
  10676. return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
  10677. }
  10678. return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
  10679. }
  10680. }
  10681. hooks.defineLocale('is', {
  10682. months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split(
  10683. '_'
  10684. ),
  10685. monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
  10686. weekdays:
  10687. 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split(
  10688. '_'
  10689. ),
  10690. weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
  10691. weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
  10692. longDateFormat: {
  10693. LT: 'H:mm',
  10694. LTS: 'H:mm:ss',
  10695. L: 'DD.MM.YYYY',
  10696. LL: 'D. MMMM YYYY',
  10697. LLL: 'D. MMMM YYYY [kl.] H:mm',
  10698. LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm',
  10699. },
  10700. calendar: {
  10701. sameDay: '[í dag kl.] LT',
  10702. nextDay: '[á morgun kl.] LT',
  10703. nextWeek: 'dddd [kl.] LT',
  10704. lastDay: '[í gær kl.] LT',
  10705. lastWeek: '[síðasta] dddd [kl.] LT',
  10706. sameElse: 'L',
  10707. },
  10708. relativeTime: {
  10709. future: 'eftir %s',
  10710. past: 'fyrir %s síðan',
  10711. s: translate$5,
  10712. ss: translate$5,
  10713. m: translate$5,
  10714. mm: translate$5,
  10715. h: 'klukkustund',
  10716. hh: translate$5,
  10717. d: translate$5,
  10718. dd: translate$5,
  10719. M: translate$5,
  10720. MM: translate$5,
  10721. y: translate$5,
  10722. yy: translate$5,
  10723. },
  10724. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10725. ordinal: '%d.',
  10726. week: {
  10727. dow: 1, // Monday is the first day of the week.
  10728. doy: 4, // The week that contains Jan 4th is the first week of the year.
  10729. },
  10730. });
  10731. //! moment.js locale configuration
  10732. hooks.defineLocale('it-ch', {
  10733. months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(
  10734. '_'
  10735. ),
  10736. monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  10737. weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(
  10738. '_'
  10739. ),
  10740. weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
  10741. weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
  10742. longDateFormat: {
  10743. LT: 'HH:mm',
  10744. LTS: 'HH:mm:ss',
  10745. L: 'DD.MM.YYYY',
  10746. LL: 'D MMMM YYYY',
  10747. LLL: 'D MMMM YYYY HH:mm',
  10748. LLLL: 'dddd D MMMM YYYY HH:mm',
  10749. },
  10750. calendar: {
  10751. sameDay: '[Oggi alle] LT',
  10752. nextDay: '[Domani alle] LT',
  10753. nextWeek: 'dddd [alle] LT',
  10754. lastDay: '[Ieri alle] LT',
  10755. lastWeek: function () {
  10756. switch (this.day()) {
  10757. case 0:
  10758. return '[la scorsa] dddd [alle] LT';
  10759. default:
  10760. return '[lo scorso] dddd [alle] LT';
  10761. }
  10762. },
  10763. sameElse: 'L',
  10764. },
  10765. relativeTime: {
  10766. future: function (s) {
  10767. return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s;
  10768. },
  10769. past: '%s fa',
  10770. s: 'alcuni secondi',
  10771. ss: '%d secondi',
  10772. m: 'un minuto',
  10773. mm: '%d minuti',
  10774. h: "un'ora",
  10775. hh: '%d ore',
  10776. d: 'un giorno',
  10777. dd: '%d giorni',
  10778. M: 'un mese',
  10779. MM: '%d mesi',
  10780. y: 'un anno',
  10781. yy: '%d anni',
  10782. },
  10783. dayOfMonthOrdinalParse: /\d{1,2}º/,
  10784. ordinal: '%dº',
  10785. week: {
  10786. dow: 1, // Monday is the first day of the week.
  10787. doy: 4, // The week that contains Jan 4th is the first week of the year.
  10788. },
  10789. });
  10790. //! moment.js locale configuration
  10791. hooks.defineLocale('it', {
  10792. months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(
  10793. '_'
  10794. ),
  10795. monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  10796. weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(
  10797. '_'
  10798. ),
  10799. weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
  10800. weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
  10801. longDateFormat: {
  10802. LT: 'HH:mm',
  10803. LTS: 'HH:mm:ss',
  10804. L: 'DD/MM/YYYY',
  10805. LL: 'D MMMM YYYY',
  10806. LLL: 'D MMMM YYYY HH:mm',
  10807. LLLL: 'dddd D MMMM YYYY HH:mm',
  10808. },
  10809. calendar: {
  10810. sameDay: function () {
  10811. return (
  10812. '[Oggi a' +
  10813. (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  10814. ']LT'
  10815. );
  10816. },
  10817. nextDay: function () {
  10818. return (
  10819. '[Domani a' +
  10820. (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  10821. ']LT'
  10822. );
  10823. },
  10824. nextWeek: function () {
  10825. return (
  10826. 'dddd [a' +
  10827. (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  10828. ']LT'
  10829. );
  10830. },
  10831. lastDay: function () {
  10832. return (
  10833. '[Ieri a' +
  10834. (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  10835. ']LT'
  10836. );
  10837. },
  10838. lastWeek: function () {
  10839. switch (this.day()) {
  10840. case 0:
  10841. return (
  10842. '[La scorsa] dddd [a' +
  10843. (this.hours() > 1
  10844. ? 'lle '
  10845. : this.hours() === 0
  10846. ? ' '
  10847. : "ll'") +
  10848. ']LT'
  10849. );
  10850. default:
  10851. return (
  10852. '[Lo scorso] dddd [a' +
  10853. (this.hours() > 1
  10854. ? 'lle '
  10855. : this.hours() === 0
  10856. ? ' '
  10857. : "ll'") +
  10858. ']LT'
  10859. );
  10860. }
  10861. },
  10862. sameElse: 'L',
  10863. },
  10864. relativeTime: {
  10865. future: 'tra %s',
  10866. past: '%s fa',
  10867. s: 'alcuni secondi',
  10868. ss: '%d secondi',
  10869. m: 'un minuto',
  10870. mm: '%d minuti',
  10871. h: "un'ora",
  10872. hh: '%d ore',
  10873. d: 'un giorno',
  10874. dd: '%d giorni',
  10875. w: 'una settimana',
  10876. ww: '%d settimane',
  10877. M: 'un mese',
  10878. MM: '%d mesi',
  10879. y: 'un anno',
  10880. yy: '%d anni',
  10881. },
  10882. dayOfMonthOrdinalParse: /\d{1,2}º/,
  10883. ordinal: '%dº',
  10884. week: {
  10885. dow: 1, // Monday is the first day of the week.
  10886. doy: 4, // The week that contains Jan 4th is the first week of the year.
  10887. },
  10888. });
  10889. //! moment.js locale configuration
  10890. hooks.defineLocale('ja', {
  10891. eras: [
  10892. {
  10893. since: '2019-05-01',
  10894. offset: 1,
  10895. name: '令和',
  10896. narrow: '㋿',
  10897. abbr: 'R',
  10898. },
  10899. {
  10900. since: '1989-01-08',
  10901. until: '2019-04-30',
  10902. offset: 1,
  10903. name: '平成',
  10904. narrow: '㍻',
  10905. abbr: 'H',
  10906. },
  10907. {
  10908. since: '1926-12-25',
  10909. until: '1989-01-07',
  10910. offset: 1,
  10911. name: '昭和',
  10912. narrow: '㍼',
  10913. abbr: 'S',
  10914. },
  10915. {
  10916. since: '1912-07-30',
  10917. until: '1926-12-24',
  10918. offset: 1,
  10919. name: '大正',
  10920. narrow: '㍽',
  10921. abbr: 'T',
  10922. },
  10923. {
  10924. since: '1873-01-01',
  10925. until: '1912-07-29',
  10926. offset: 6,
  10927. name: '明治',
  10928. narrow: '㍾',
  10929. abbr: 'M',
  10930. },
  10931. {
  10932. since: '0001-01-01',
  10933. until: '1873-12-31',
  10934. offset: 1,
  10935. name: '西暦',
  10936. narrow: 'AD',
  10937. abbr: 'AD',
  10938. },
  10939. {
  10940. since: '0000-12-31',
  10941. until: -Infinity,
  10942. offset: 1,
  10943. name: '紀元前',
  10944. narrow: 'BC',
  10945. abbr: 'BC',
  10946. },
  10947. ],
  10948. eraYearOrdinalRegex: /(元|\d+)年/,
  10949. eraYearOrdinalParse: function (input, match) {
  10950. return match[1] === '元' ? 1 : parseInt(match[1] || input, 10);
  10951. },
  10952. months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  10953. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  10954. '_'
  10955. ),
  10956. weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
  10957. weekdaysShort: '日_月_火_水_木_金_土'.split('_'),
  10958. weekdaysMin: '日_月_火_水_木_金_土'.split('_'),
  10959. longDateFormat: {
  10960. LT: 'HH:mm',
  10961. LTS: 'HH:mm:ss',
  10962. L: 'YYYY/MM/DD',
  10963. LL: 'YYYY年M月D日',
  10964. LLL: 'YYYY年M月D日 HH:mm',
  10965. LLLL: 'YYYY年M月D日 dddd HH:mm',
  10966. l: 'YYYY/MM/DD',
  10967. ll: 'YYYY年M月D日',
  10968. lll: 'YYYY年M月D日 HH:mm',
  10969. llll: 'YYYY年M月D日(ddd) HH:mm',
  10970. },
  10971. meridiemParse: /午前|午後/i,
  10972. isPM: function (input) {
  10973. return input === '午後';
  10974. },
  10975. meridiem: function (hour, minute, isLower) {
  10976. if (hour < 12) {
  10977. return '午前';
  10978. } else {
  10979. return '午後';
  10980. }
  10981. },
  10982. calendar: {
  10983. sameDay: '[今日] LT',
  10984. nextDay: '[明日] LT',
  10985. nextWeek: function (now) {
  10986. if (now.week() !== this.week()) {
  10987. return '[来週]dddd LT';
  10988. } else {
  10989. return 'dddd LT';
  10990. }
  10991. },
  10992. lastDay: '[昨日] LT',
  10993. lastWeek: function (now) {
  10994. if (this.week() !== now.week()) {
  10995. return '[先週]dddd LT';
  10996. } else {
  10997. return 'dddd LT';
  10998. }
  10999. },
  11000. sameElse: 'L',
  11001. },
  11002. dayOfMonthOrdinalParse: /\d{1,2}日/,
  11003. ordinal: function (number, period) {
  11004. switch (period) {
  11005. case 'y':
  11006. return number === 1 ? '元年' : number + '年';
  11007. case 'd':
  11008. case 'D':
  11009. case 'DDD':
  11010. return number + '日';
  11011. default:
  11012. return number;
  11013. }
  11014. },
  11015. relativeTime: {
  11016. future: '%s後',
  11017. past: '%s前',
  11018. s: '数秒',
  11019. ss: '%d秒',
  11020. m: '1分',
  11021. mm: '%d分',
  11022. h: '1時間',
  11023. hh: '%d時間',
  11024. d: '1日',
  11025. dd: '%d日',
  11026. M: '1ヶ月',
  11027. MM: '%dヶ月',
  11028. y: '1年',
  11029. yy: '%d年',
  11030. },
  11031. });
  11032. //! moment.js locale configuration
  11033. hooks.defineLocale('jv', {
  11034. months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split(
  11035. '_'
  11036. ),
  11037. monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
  11038. weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
  11039. weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
  11040. weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
  11041. longDateFormat: {
  11042. LT: 'HH.mm',
  11043. LTS: 'HH.mm.ss',
  11044. L: 'DD/MM/YYYY',
  11045. LL: 'D MMMM YYYY',
  11046. LLL: 'D MMMM YYYY [pukul] HH.mm',
  11047. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
  11048. },
  11049. meridiemParse: /enjing|siyang|sonten|ndalu/,
  11050. meridiemHour: function (hour, meridiem) {
  11051. if (hour === 12) {
  11052. hour = 0;
  11053. }
  11054. if (meridiem === 'enjing') {
  11055. return hour;
  11056. } else if (meridiem === 'siyang') {
  11057. return hour >= 11 ? hour : hour + 12;
  11058. } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
  11059. return hour + 12;
  11060. }
  11061. },
  11062. meridiem: function (hours, minutes, isLower) {
  11063. if (hours < 11) {
  11064. return 'enjing';
  11065. } else if (hours < 15) {
  11066. return 'siyang';
  11067. } else if (hours < 19) {
  11068. return 'sonten';
  11069. } else {
  11070. return 'ndalu';
  11071. }
  11072. },
  11073. calendar: {
  11074. sameDay: '[Dinten puniko pukul] LT',
  11075. nextDay: '[Mbenjang pukul] LT',
  11076. nextWeek: 'dddd [pukul] LT',
  11077. lastDay: '[Kala wingi pukul] LT',
  11078. lastWeek: 'dddd [kepengker pukul] LT',
  11079. sameElse: 'L',
  11080. },
  11081. relativeTime: {
  11082. future: 'wonten ing %s',
  11083. past: '%s ingkang kepengker',
  11084. s: 'sawetawis detik',
  11085. ss: '%d detik',
  11086. m: 'setunggal menit',
  11087. mm: '%d menit',
  11088. h: 'setunggal jam',
  11089. hh: '%d jam',
  11090. d: 'sedinten',
  11091. dd: '%d dinten',
  11092. M: 'sewulan',
  11093. MM: '%d wulan',
  11094. y: 'setaun',
  11095. yy: '%d taun',
  11096. },
  11097. week: {
  11098. dow: 1, // Monday is the first day of the week.
  11099. doy: 7, // The week that contains Jan 7th is the first week of the year.
  11100. },
  11101. });
  11102. //! moment.js locale configuration
  11103. hooks.defineLocale('ka', {
  11104. months: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split(
  11105. '_'
  11106. ),
  11107. monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
  11108. weekdays: {
  11109. standalone:
  11110. 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split(
  11111. '_'
  11112. ),
  11113. format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split(
  11114. '_'
  11115. ),
  11116. isFormat: /(წინა|შემდეგ)/,
  11117. },
  11118. weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
  11119. weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
  11120. longDateFormat: {
  11121. LT: 'HH:mm',
  11122. LTS: 'HH:mm:ss',
  11123. L: 'DD/MM/YYYY',
  11124. LL: 'D MMMM YYYY',
  11125. LLL: 'D MMMM YYYY HH:mm',
  11126. LLLL: 'dddd, D MMMM YYYY HH:mm',
  11127. },
  11128. calendar: {
  11129. sameDay: '[დღეს] LT[-ზე]',
  11130. nextDay: '[ხვალ] LT[-ზე]',
  11131. lastDay: '[გუშინ] LT[-ზე]',
  11132. nextWeek: '[შემდეგ] dddd LT[-ზე]',
  11133. lastWeek: '[წინა] dddd LT-ზე',
  11134. sameElse: 'L',
  11135. },
  11136. relativeTime: {
  11137. future: function (s) {
  11138. return s.replace(
  11139. /(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,
  11140. function ($0, $1, $2) {
  11141. return $2 === 'ი' ? $1 + 'ში' : $1 + $2 + 'ში';
  11142. }
  11143. );
  11144. },
  11145. past: function (s) {
  11146. if (/(წამი|წუთი|საათი|დღე|თვე)/.test(s)) {
  11147. return s.replace(/(ი|ე)$/, 'ის წინ');
  11148. }
  11149. if (/წელი/.test(s)) {
  11150. return s.replace(/წელი$/, 'წლის წინ');
  11151. }
  11152. return s;
  11153. },
  11154. s: 'რამდენიმე წამი',
  11155. ss: '%d წამი',
  11156. m: 'წუთი',
  11157. mm: '%d წუთი',
  11158. h: 'საათი',
  11159. hh: '%d საათი',
  11160. d: 'დღე',
  11161. dd: '%d დღე',
  11162. M: 'თვე',
  11163. MM: '%d თვე',
  11164. y: 'წელი',
  11165. yy: '%d წელი',
  11166. },
  11167. dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
  11168. ordinal: function (number) {
  11169. if (number === 0) {
  11170. return number;
  11171. }
  11172. if (number === 1) {
  11173. return number + '-ლი';
  11174. }
  11175. if (
  11176. number < 20 ||
  11177. (number <= 100 && number % 20 === 0) ||
  11178. number % 100 === 0
  11179. ) {
  11180. return 'მე-' + number;
  11181. }
  11182. return number + '-ე';
  11183. },
  11184. week: {
  11185. dow: 1,
  11186. doy: 7,
  11187. },
  11188. });
  11189. //! moment.js locale configuration
  11190. var suffixes$1 = {
  11191. 0: '-ші',
  11192. 1: '-ші',
  11193. 2: '-ші',
  11194. 3: '-ші',
  11195. 4: '-ші',
  11196. 5: '-ші',
  11197. 6: '-шы',
  11198. 7: '-ші',
  11199. 8: '-ші',
  11200. 9: '-шы',
  11201. 10: '-шы',
  11202. 20: '-шы',
  11203. 30: '-шы',
  11204. 40: '-шы',
  11205. 50: '-ші',
  11206. 60: '-шы',
  11207. 70: '-ші',
  11208. 80: '-ші',
  11209. 90: '-шы',
  11210. 100: '-ші',
  11211. };
  11212. hooks.defineLocale('kk', {
  11213. months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split(
  11214. '_'
  11215. ),
  11216. monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
  11217. weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split(
  11218. '_'
  11219. ),
  11220. weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
  11221. weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
  11222. longDateFormat: {
  11223. LT: 'HH:mm',
  11224. LTS: 'HH:mm:ss',
  11225. L: 'DD.MM.YYYY',
  11226. LL: 'D MMMM YYYY',
  11227. LLL: 'D MMMM YYYY HH:mm',
  11228. LLLL: 'dddd, D MMMM YYYY HH:mm',
  11229. },
  11230. calendar: {
  11231. sameDay: '[Бүгін сағат] LT',
  11232. nextDay: '[Ертең сағат] LT',
  11233. nextWeek: 'dddd [сағат] LT',
  11234. lastDay: '[Кеше сағат] LT',
  11235. lastWeek: '[Өткен аптаның] dddd [сағат] LT',
  11236. sameElse: 'L',
  11237. },
  11238. relativeTime: {
  11239. future: '%s ішінде',
  11240. past: '%s бұрын',
  11241. s: 'бірнеше секунд',
  11242. ss: '%d секунд',
  11243. m: 'бір минут',
  11244. mm: '%d минут',
  11245. h: 'бір сағат',
  11246. hh: '%d сағат',
  11247. d: 'бір күн',
  11248. dd: '%d күн',
  11249. M: 'бір ай',
  11250. MM: '%d ай',
  11251. y: 'бір жыл',
  11252. yy: '%d жыл',
  11253. },
  11254. dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/,
  11255. ordinal: function (number) {
  11256. var a = number % 10,
  11257. b = number >= 100 ? 100 : null;
  11258. return number + (suffixes$1[number] || suffixes$1[a] || suffixes$1[b]);
  11259. },
  11260. week: {
  11261. dow: 1, // Monday is the first day of the week.
  11262. doy: 7, // The week that contains Jan 7th is the first week of the year.
  11263. },
  11264. });
  11265. //! moment.js locale configuration
  11266. var symbolMap$9 = {
  11267. 1: '១',
  11268. 2: '២',
  11269. 3: '៣',
  11270. 4: '៤',
  11271. 5: '៥',
  11272. 6: '៦',
  11273. 7: '៧',
  11274. 8: '៨',
  11275. 9: '៩',
  11276. 0: '០',
  11277. },
  11278. numberMap$8 = {
  11279. '១': '1',
  11280. '២': '2',
  11281. '៣': '3',
  11282. '៤': '4',
  11283. '៥': '5',
  11284. '៦': '6',
  11285. '៧': '7',
  11286. '៨': '8',
  11287. '៩': '9',
  11288. '០': '0',
  11289. };
  11290. hooks.defineLocale('km', {
  11291. months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
  11292. '_'
  11293. ),
  11294. monthsShort:
  11295. 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
  11296. '_'
  11297. ),
  11298. weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  11299. weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
  11300. weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
  11301. weekdaysParseExact: true,
  11302. longDateFormat: {
  11303. LT: 'HH:mm',
  11304. LTS: 'HH:mm:ss',
  11305. L: 'DD/MM/YYYY',
  11306. LL: 'D MMMM YYYY',
  11307. LLL: 'D MMMM YYYY HH:mm',
  11308. LLLL: 'dddd, D MMMM YYYY HH:mm',
  11309. },
  11310. meridiemParse: /ព្រឹក|ល្ងាច/,
  11311. isPM: function (input) {
  11312. return input === 'ល្ងាច';
  11313. },
  11314. meridiem: function (hour, minute, isLower) {
  11315. if (hour < 12) {
  11316. return 'ព្រឹក';
  11317. } else {
  11318. return 'ល្ងាច';
  11319. }
  11320. },
  11321. calendar: {
  11322. sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
  11323. nextDay: '[ស្អែក ម៉ោង] LT',
  11324. nextWeek: 'dddd [ម៉ោង] LT',
  11325. lastDay: '[ម្សិលមិញ ម៉ោង] LT',
  11326. lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
  11327. sameElse: 'L',
  11328. },
  11329. relativeTime: {
  11330. future: '%sទៀត',
  11331. past: '%sមុន',
  11332. s: 'ប៉ុន្មានវិនាទី',
  11333. ss: '%d វិនាទី',
  11334. m: 'មួយនាទី',
  11335. mm: '%d នាទី',
  11336. h: 'មួយម៉ោង',
  11337. hh: '%d ម៉ោង',
  11338. d: 'មួយថ្ងៃ',
  11339. dd: '%d ថ្ងៃ',
  11340. M: 'មួយខែ',
  11341. MM: '%d ខែ',
  11342. y: 'មួយឆ្នាំ',
  11343. yy: '%d ឆ្នាំ',
  11344. },
  11345. dayOfMonthOrdinalParse: /ទី\d{1,2}/,
  11346. ordinal: 'ទី%d',
  11347. preparse: function (string) {
  11348. return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) {
  11349. return numberMap$8[match];
  11350. });
  11351. },
  11352. postformat: function (string) {
  11353. return string.replace(/\d/g, function (match) {
  11354. return symbolMap$9[match];
  11355. });
  11356. },
  11357. week: {
  11358. dow: 1, // Monday is the first day of the week.
  11359. doy: 4, // The week that contains Jan 4th is the first week of the year.
  11360. },
  11361. });
  11362. //! moment.js locale configuration
  11363. var symbolMap$a = {
  11364. 1: '೧',
  11365. 2: '೨',
  11366. 3: '೩',
  11367. 4: '೪',
  11368. 5: '೫',
  11369. 6: '೬',
  11370. 7: '೭',
  11371. 8: '೮',
  11372. 9: '೯',
  11373. 0: '೦',
  11374. },
  11375. numberMap$9 = {
  11376. '೧': '1',
  11377. '೨': '2',
  11378. '೩': '3',
  11379. '೪': '4',
  11380. '೫': '5',
  11381. '೬': '6',
  11382. '೭': '7',
  11383. '೮': '8',
  11384. '೯': '9',
  11385. '೦': '0',
  11386. };
  11387. hooks.defineLocale('kn', {
  11388. months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split(
  11389. '_'
  11390. ),
  11391. monthsShort:
  11392. 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split(
  11393. '_'
  11394. ),
  11395. monthsParseExact: true,
  11396. weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split(
  11397. '_'
  11398. ),
  11399. weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
  11400. weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
  11401. longDateFormat: {
  11402. LT: 'A h:mm',
  11403. LTS: 'A h:mm:ss',
  11404. L: 'DD/MM/YYYY',
  11405. LL: 'D MMMM YYYY',
  11406. LLL: 'D MMMM YYYY, A h:mm',
  11407. LLLL: 'dddd, D MMMM YYYY, A h:mm',
  11408. },
  11409. calendar: {
  11410. sameDay: '[ಇಂದು] LT',
  11411. nextDay: '[ನಾಳೆ] LT',
  11412. nextWeek: 'dddd, LT',
  11413. lastDay: '[ನಿನ್ನೆ] LT',
  11414. lastWeek: '[ಕೊನೆಯ] dddd, LT',
  11415. sameElse: 'L',
  11416. },
  11417. relativeTime: {
  11418. future: '%s ನಂತರ',
  11419. past: '%s ಹಿಂದೆ',
  11420. s: 'ಕೆಲವು ಕ್ಷಣಗಳು',
  11421. ss: '%d ಸೆಕೆಂಡುಗಳು',
  11422. m: 'ಒಂದು ನಿಮಿಷ',
  11423. mm: '%d ನಿಮಿಷ',
  11424. h: 'ಒಂದು ಗಂಟೆ',
  11425. hh: '%d ಗಂಟೆ',
  11426. d: 'ಒಂದು ದಿನ',
  11427. dd: '%d ದಿನ',
  11428. M: 'ಒಂದು ತಿಂಗಳು',
  11429. MM: '%d ತಿಂಗಳು',
  11430. y: 'ಒಂದು ವರ್ಷ',
  11431. yy: '%d ವರ್ಷ',
  11432. },
  11433. preparse: function (string) {
  11434. return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {
  11435. return numberMap$9[match];
  11436. });
  11437. },
  11438. postformat: function (string) {
  11439. return string.replace(/\d/g, function (match) {
  11440. return symbolMap$a[match];
  11441. });
  11442. },
  11443. meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
  11444. meridiemHour: function (hour, meridiem) {
  11445. if (hour === 12) {
  11446. hour = 0;
  11447. }
  11448. if (meridiem === 'ರಾತ್ರಿ') {
  11449. return hour < 4 ? hour : hour + 12;
  11450. } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {
  11451. return hour;
  11452. } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {
  11453. return hour >= 10 ? hour : hour + 12;
  11454. } else if (meridiem === 'ಸಂಜೆ') {
  11455. return hour + 12;
  11456. }
  11457. },
  11458. meridiem: function (hour, minute, isLower) {
  11459. if (hour < 4) {
  11460. return 'ರಾತ್ರಿ';
  11461. } else if (hour < 10) {
  11462. return 'ಬೆಳಿಗ್ಗೆ';
  11463. } else if (hour < 17) {
  11464. return 'ಮಧ್ಯಾಹ್ನ';
  11465. } else if (hour < 20) {
  11466. return 'ಸಂಜೆ';
  11467. } else {
  11468. return 'ರಾತ್ರಿ';
  11469. }
  11470. },
  11471. dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
  11472. ordinal: function (number) {
  11473. return number + 'ನೇ';
  11474. },
  11475. week: {
  11476. dow: 0, // Sunday is the first day of the week.
  11477. doy: 6, // The week that contains Jan 6th is the first week of the year.
  11478. },
  11479. });
  11480. //! moment.js locale configuration
  11481. hooks.defineLocale('ko', {
  11482. months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  11483. monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split(
  11484. '_'
  11485. ),
  11486. weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
  11487. weekdaysShort: '일_월_화_수_목_금_토'.split('_'),
  11488. weekdaysMin: '일_월_화_수_목_금_토'.split('_'),
  11489. longDateFormat: {
  11490. LT: 'A h:mm',
  11491. LTS: 'A h:mm:ss',
  11492. L: 'YYYY.MM.DD.',
  11493. LL: 'YYYY년 MMMM D일',
  11494. LLL: 'YYYY년 MMMM D일 A h:mm',
  11495. LLLL: 'YYYY년 MMMM D일 dddd A h:mm',
  11496. l: 'YYYY.MM.DD.',
  11497. ll: 'YYYY년 MMMM D일',
  11498. lll: 'YYYY년 MMMM D일 A h:mm',
  11499. llll: 'YYYY년 MMMM D일 dddd A h:mm',
  11500. },
  11501. calendar: {
  11502. sameDay: '오늘 LT',
  11503. nextDay: '내일 LT',
  11504. nextWeek: 'dddd LT',
  11505. lastDay: '어제 LT',
  11506. lastWeek: '지난주 dddd LT',
  11507. sameElse: 'L',
  11508. },
  11509. relativeTime: {
  11510. future: '%s 후',
  11511. past: '%s 전',
  11512. s: '몇 초',
  11513. ss: '%d초',
  11514. m: '1분',
  11515. mm: '%d분',
  11516. h: '한 시간',
  11517. hh: '%d시간',
  11518. d: '하루',
  11519. dd: '%d일',
  11520. M: '한 달',
  11521. MM: '%d달',
  11522. y: '일 년',
  11523. yy: '%d년',
  11524. },
  11525. dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/,
  11526. ordinal: function (number, period) {
  11527. switch (period) {
  11528. case 'd':
  11529. case 'D':
  11530. case 'DDD':
  11531. return number + '일';
  11532. case 'M':
  11533. return number + '월';
  11534. case 'w':
  11535. case 'W':
  11536. return number + '주';
  11537. default:
  11538. return number;
  11539. }
  11540. },
  11541. meridiemParse: /오전|오후/,
  11542. isPM: function (token) {
  11543. return token === '오후';
  11544. },
  11545. meridiem: function (hour, minute, isUpper) {
  11546. return hour < 12 ? '오전' : '오후';
  11547. },
  11548. });
  11549. //! moment.js locale configuration
  11550. var symbolMap$b = {
  11551. 1: '١',
  11552. 2: '٢',
  11553. 3: '٣',
  11554. 4: '٤',
  11555. 5: '٥',
  11556. 6: '٦',
  11557. 7: '٧',
  11558. 8: '٨',
  11559. 9: '٩',
  11560. 0: '٠',
  11561. },
  11562. numberMap$a = {
  11563. '١': '1',
  11564. '٢': '2',
  11565. '٣': '3',
  11566. '٤': '4',
  11567. '٥': '5',
  11568. '٦': '6',
  11569. '٧': '7',
  11570. '٨': '8',
  11571. '٩': '9',
  11572. '٠': '0',
  11573. },
  11574. months$8 = [
  11575. 'کانونی دووەم',
  11576. 'شوبات',
  11577. 'ئازار',
  11578. 'نیسان',
  11579. 'ئایار',
  11580. 'حوزەیران',
  11581. 'تەمموز',
  11582. 'ئاب',
  11583. 'ئەیلوول',
  11584. 'تشرینی یەكەم',
  11585. 'تشرینی دووەم',
  11586. 'كانونی یەکەم',
  11587. ];
  11588. hooks.defineLocale('ku', {
  11589. months: months$8,
  11590. monthsShort: months$8,
  11591. weekdays:
  11592. 'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split(
  11593. '_'
  11594. ),
  11595. weekdaysShort:
  11596. 'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split('_'),
  11597. weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'),
  11598. weekdaysParseExact: true,
  11599. longDateFormat: {
  11600. LT: 'HH:mm',
  11601. LTS: 'HH:mm:ss',
  11602. L: 'DD/MM/YYYY',
  11603. LL: 'D MMMM YYYY',
  11604. LLL: 'D MMMM YYYY HH:mm',
  11605. LLLL: 'dddd, D MMMM YYYY HH:mm',
  11606. },
  11607. meridiemParse: /ئێواره‌|به‌یانی/,
  11608. isPM: function (input) {
  11609. return /ئێواره‌/.test(input);
  11610. },
  11611. meridiem: function (hour, minute, isLower) {
  11612. if (hour < 12) {
  11613. return 'به‌یانی';
  11614. } else {
  11615. return 'ئێواره‌';
  11616. }
  11617. },
  11618. calendar: {
  11619. sameDay: '[ئه‌مرۆ كاتژمێر] LT',
  11620. nextDay: '[به‌یانی كاتژمێر] LT',
  11621. nextWeek: 'dddd [كاتژمێر] LT',
  11622. lastDay: '[دوێنێ كاتژمێر] LT',
  11623. lastWeek: 'dddd [كاتژمێر] LT',
  11624. sameElse: 'L',
  11625. },
  11626. relativeTime: {
  11627. future: 'له‌ %s',
  11628. past: '%s',
  11629. s: 'چه‌ند چركه‌یه‌ك',
  11630. ss: 'چركه‌ %d',
  11631. m: 'یه‌ك خوله‌ك',
  11632. mm: '%d خوله‌ك',
  11633. h: 'یه‌ك كاتژمێر',
  11634. hh: '%d كاتژمێر',
  11635. d: 'یه‌ك ڕۆژ',
  11636. dd: '%d ڕۆژ',
  11637. M: 'یه‌ك مانگ',
  11638. MM: '%d مانگ',
  11639. y: 'یه‌ك ساڵ',
  11640. yy: '%d ساڵ',
  11641. },
  11642. preparse: function (string) {
  11643. return string
  11644. .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  11645. return numberMap$a[match];
  11646. })
  11647. .replace(/،/g, ',');
  11648. },
  11649. postformat: function (string) {
  11650. return string
  11651. .replace(/\d/g, function (match) {
  11652. return symbolMap$b[match];
  11653. })
  11654. .replace(/,/g, '،');
  11655. },
  11656. week: {
  11657. dow: 6, // Saturday is the first day of the week.
  11658. doy: 12, // The week that contains Jan 12th is the first week of the year.
  11659. },
  11660. });
  11661. //! moment.js locale configuration
  11662. var suffixes$2 = {
  11663. 0: '-чү',
  11664. 1: '-чи',
  11665. 2: '-чи',
  11666. 3: '-чү',
  11667. 4: '-чү',
  11668. 5: '-чи',
  11669. 6: '-чы',
  11670. 7: '-чи',
  11671. 8: '-чи',
  11672. 9: '-чу',
  11673. 10: '-чу',
  11674. 20: '-чы',
  11675. 30: '-чу',
  11676. 40: '-чы',
  11677. 50: '-чү',
  11678. 60: '-чы',
  11679. 70: '-чи',
  11680. 80: '-чи',
  11681. 90: '-чу',
  11682. 100: '-чү',
  11683. };
  11684. hooks.defineLocale('ky', {
  11685. months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(
  11686. '_'
  11687. ),
  11688. monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split(
  11689. '_'
  11690. ),
  11691. weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split(
  11692. '_'
  11693. ),
  11694. weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
  11695. weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
  11696. longDateFormat: {
  11697. LT: 'HH:mm',
  11698. LTS: 'HH:mm:ss',
  11699. L: 'DD.MM.YYYY',
  11700. LL: 'D MMMM YYYY',
  11701. LLL: 'D MMMM YYYY HH:mm',
  11702. LLLL: 'dddd, D MMMM YYYY HH:mm',
  11703. },
  11704. calendar: {
  11705. sameDay: '[Бүгүн саат] LT',
  11706. nextDay: '[Эртең саат] LT',
  11707. nextWeek: 'dddd [саат] LT',
  11708. lastDay: '[Кечээ саат] LT',
  11709. lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT',
  11710. sameElse: 'L',
  11711. },
  11712. relativeTime: {
  11713. future: '%s ичинде',
  11714. past: '%s мурун',
  11715. s: 'бирнече секунд',
  11716. ss: '%d секунд',
  11717. m: 'бир мүнөт',
  11718. mm: '%d мүнөт',
  11719. h: 'бир саат',
  11720. hh: '%d саат',
  11721. d: 'бир күн',
  11722. dd: '%d күн',
  11723. M: 'бир ай',
  11724. MM: '%d ай',
  11725. y: 'бир жыл',
  11726. yy: '%d жыл',
  11727. },
  11728. dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/,
  11729. ordinal: function (number) {
  11730. var a = number % 10,
  11731. b = number >= 100 ? 100 : null;
  11732. return number + (suffixes$2[number] || suffixes$2[a] || suffixes$2[b]);
  11733. },
  11734. week: {
  11735. dow: 1, // Monday is the first day of the week.
  11736. doy: 7, // The week that contains Jan 7th is the first week of the year.
  11737. },
  11738. });
  11739. //! moment.js locale configuration
  11740. function processRelativeTime$6(number, withoutSuffix, key, isFuture) {
  11741. var format = {
  11742. m: ['eng Minutt', 'enger Minutt'],
  11743. h: ['eng Stonn', 'enger Stonn'],
  11744. d: ['een Dag', 'engem Dag'],
  11745. M: ['ee Mount', 'engem Mount'],
  11746. y: ['ee Joer', 'engem Joer'],
  11747. };
  11748. return withoutSuffix ? format[key][0] : format[key][1];
  11749. }
  11750. function processFutureTime(string) {
  11751. var number = string.substr(0, string.indexOf(' '));
  11752. if (eifelerRegelAppliesToNumber(number)) {
  11753. return 'a ' + string;
  11754. }
  11755. return 'an ' + string;
  11756. }
  11757. function processPastTime(string) {
  11758. var number = string.substr(0, string.indexOf(' '));
  11759. if (eifelerRegelAppliesToNumber(number)) {
  11760. return 'viru ' + string;
  11761. }
  11762. return 'virun ' + string;
  11763. }
  11764. /**
  11765. * Returns true if the word before the given number loses the '-n' ending.
  11766. * e.g. 'an 10 Deeg' but 'a 5 Deeg'
  11767. *
  11768. * @param number {integer}
  11769. * @returns {boolean}
  11770. */
  11771. function eifelerRegelAppliesToNumber(number) {
  11772. number = parseInt(number, 10);
  11773. if (isNaN(number)) {
  11774. return false;
  11775. }
  11776. if (number < 0) {
  11777. // Negative Number --> always true
  11778. return true;
  11779. } else if (number < 10) {
  11780. // Only 1 digit
  11781. if (4 <= number && number <= 7) {
  11782. return true;
  11783. }
  11784. return false;
  11785. } else if (number < 100) {
  11786. // 2 digits
  11787. var lastDigit = number % 10,
  11788. firstDigit = number / 10;
  11789. if (lastDigit === 0) {
  11790. return eifelerRegelAppliesToNumber(firstDigit);
  11791. }
  11792. return eifelerRegelAppliesToNumber(lastDigit);
  11793. } else if (number < 10000) {
  11794. // 3 or 4 digits --> recursively check first digit
  11795. while (number >= 10) {
  11796. number = number / 10;
  11797. }
  11798. return eifelerRegelAppliesToNumber(number);
  11799. } else {
  11800. // Anything larger than 4 digits: recursively check first n-3 digits
  11801. number = number / 1000;
  11802. return eifelerRegelAppliesToNumber(number);
  11803. }
  11804. }
  11805. hooks.defineLocale('lb', {
  11806. months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  11807. '_'
  11808. ),
  11809. monthsShort:
  11810. 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split(
  11811. '_'
  11812. ),
  11813. monthsParseExact: true,
  11814. weekdays:
  11815. 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split(
  11816. '_'
  11817. ),
  11818. weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
  11819. weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
  11820. weekdaysParseExact: true,
  11821. longDateFormat: {
  11822. LT: 'H:mm [Auer]',
  11823. LTS: 'H:mm:ss [Auer]',
  11824. L: 'DD.MM.YYYY',
  11825. LL: 'D. MMMM YYYY',
  11826. LLL: 'D. MMMM YYYY H:mm [Auer]',
  11827. LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]',
  11828. },
  11829. calendar: {
  11830. sameDay: '[Haut um] LT',
  11831. sameElse: 'L',
  11832. nextDay: '[Muer um] LT',
  11833. nextWeek: 'dddd [um] LT',
  11834. lastDay: '[Gëschter um] LT',
  11835. lastWeek: function () {
  11836. // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
  11837. switch (this.day()) {
  11838. case 2:
  11839. case 4:
  11840. return '[Leschten] dddd [um] LT';
  11841. default:
  11842. return '[Leschte] dddd [um] LT';
  11843. }
  11844. },
  11845. },
  11846. relativeTime: {
  11847. future: processFutureTime,
  11848. past: processPastTime,
  11849. s: 'e puer Sekonnen',
  11850. ss: '%d Sekonnen',
  11851. m: processRelativeTime$6,
  11852. mm: '%d Minutten',
  11853. h: processRelativeTime$6,
  11854. hh: '%d Stonnen',
  11855. d: processRelativeTime$6,
  11856. dd: '%d Deeg',
  11857. M: processRelativeTime$6,
  11858. MM: '%d Méint',
  11859. y: processRelativeTime$6,
  11860. yy: '%d Joer',
  11861. },
  11862. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11863. ordinal: '%d.',
  11864. week: {
  11865. dow: 1, // Monday is the first day of the week.
  11866. doy: 4, // The week that contains Jan 4th is the first week of the year.
  11867. },
  11868. });
  11869. //! moment.js locale configuration
  11870. hooks.defineLocale('lo', {
  11871. months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
  11872. '_'
  11873. ),
  11874. monthsShort:
  11875. 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
  11876. '_'
  11877. ),
  11878. weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  11879. weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  11880. weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
  11881. weekdaysParseExact: true,
  11882. longDateFormat: {
  11883. LT: 'HH:mm',
  11884. LTS: 'HH:mm:ss',
  11885. L: 'DD/MM/YYYY',
  11886. LL: 'D MMMM YYYY',
  11887. LLL: 'D MMMM YYYY HH:mm',
  11888. LLLL: 'ວັນdddd D MMMM YYYY HH:mm',
  11889. },
  11890. meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
  11891. isPM: function (input) {
  11892. return input === 'ຕອນແລງ';
  11893. },
  11894. meridiem: function (hour, minute, isLower) {
  11895. if (hour < 12) {
  11896. return 'ຕອນເຊົ້າ';
  11897. } else {
  11898. return 'ຕອນແລງ';
  11899. }
  11900. },
  11901. calendar: {
  11902. sameDay: '[ມື້ນີ້ເວລາ] LT',
  11903. nextDay: '[ມື້ອື່ນເວລາ] LT',
  11904. nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT',
  11905. lastDay: '[ມື້ວານນີ້ເວລາ] LT',
  11906. lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
  11907. sameElse: 'L',
  11908. },
  11909. relativeTime: {
  11910. future: 'ອີກ %s',
  11911. past: '%sຜ່ານມາ',
  11912. s: 'ບໍ່ເທົ່າໃດວິນາທີ',
  11913. ss: '%d ວິນາທີ',
  11914. m: '1 ນາທີ',
  11915. mm: '%d ນາທີ',
  11916. h: '1 ຊົ່ວໂມງ',
  11917. hh: '%d ຊົ່ວໂມງ',
  11918. d: '1 ມື້',
  11919. dd: '%d ມື້',
  11920. M: '1 ເດືອນ',
  11921. MM: '%d ເດືອນ',
  11922. y: '1 ປີ',
  11923. yy: '%d ປີ',
  11924. },
  11925. dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
  11926. ordinal: function (number) {
  11927. return 'ທີ່' + number;
  11928. },
  11929. });
  11930. //! moment.js locale configuration
  11931. var units = {
  11932. ss: 'sekundė_sekundžių_sekundes',
  11933. m: 'minutė_minutės_minutę',
  11934. mm: 'minutės_minučių_minutes',
  11935. h: 'valanda_valandos_valandą',
  11936. hh: 'valandos_valandų_valandas',
  11937. d: 'diena_dienos_dieną',
  11938. dd: 'dienos_dienų_dienas',
  11939. M: 'mėnuo_mėnesio_mėnesį',
  11940. MM: 'mėnesiai_mėnesių_mėnesius',
  11941. y: 'metai_metų_metus',
  11942. yy: 'metai_metų_metus',
  11943. };
  11944. function translateSeconds(number, withoutSuffix, key, isFuture) {
  11945. if (withoutSuffix) {
  11946. return 'kelios sekundės';
  11947. } else {
  11948. return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
  11949. }
  11950. }
  11951. function translateSingular(number, withoutSuffix, key, isFuture) {
  11952. return withoutSuffix
  11953. ? forms(key)[0]
  11954. : isFuture
  11955. ? forms(key)[1]
  11956. : forms(key)[2];
  11957. }
  11958. function special(number) {
  11959. return number % 10 === 0 || (number > 10 && number < 20);
  11960. }
  11961. function forms(key) {
  11962. return units[key].split('_');
  11963. }
  11964. function translate$6(number, withoutSuffix, key, isFuture) {
  11965. var result = number + ' ';
  11966. if (number === 1) {
  11967. return (
  11968. result + translateSingular(number, withoutSuffix, key[0], isFuture)
  11969. );
  11970. } else if (withoutSuffix) {
  11971. return result + (special(number) ? forms(key)[1] : forms(key)[0]);
  11972. } else {
  11973. if (isFuture) {
  11974. return result + forms(key)[1];
  11975. } else {
  11976. return result + (special(number) ? forms(key)[1] : forms(key)[2]);
  11977. }
  11978. }
  11979. }
  11980. hooks.defineLocale('lt', {
  11981. months: {
  11982. format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split(
  11983. '_'
  11984. ),
  11985. standalone:
  11986. 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split(
  11987. '_'
  11988. ),
  11989. isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/,
  11990. },
  11991. monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
  11992. weekdays: {
  11993. format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split(
  11994. '_'
  11995. ),
  11996. standalone:
  11997. 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split(
  11998. '_'
  11999. ),
  12000. isFormat: /dddd HH:mm/,
  12001. },
  12002. weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
  12003. weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'),
  12004. weekdaysParseExact: true,
  12005. longDateFormat: {
  12006. LT: 'HH:mm',
  12007. LTS: 'HH:mm:ss',
  12008. L: 'YYYY-MM-DD',
  12009. LL: 'YYYY [m.] MMMM D [d.]',
  12010. LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  12011. LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
  12012. l: 'YYYY-MM-DD',
  12013. ll: 'YYYY [m.] MMMM D [d.]',
  12014. lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  12015. llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]',
  12016. },
  12017. calendar: {
  12018. sameDay: '[Šiandien] LT',
  12019. nextDay: '[Rytoj] LT',
  12020. nextWeek: 'dddd LT',
  12021. lastDay: '[Vakar] LT',
  12022. lastWeek: '[Praėjusį] dddd LT',
  12023. sameElse: 'L',
  12024. },
  12025. relativeTime: {
  12026. future: 'po %s',
  12027. past: 'prieš %s',
  12028. s: translateSeconds,
  12029. ss: translate$6,
  12030. m: translateSingular,
  12031. mm: translate$6,
  12032. h: translateSingular,
  12033. hh: translate$6,
  12034. d: translateSingular,
  12035. dd: translate$6,
  12036. M: translateSingular,
  12037. MM: translate$6,
  12038. y: translateSingular,
  12039. yy: translate$6,
  12040. },
  12041. dayOfMonthOrdinalParse: /\d{1,2}-oji/,
  12042. ordinal: function (number) {
  12043. return number + '-oji';
  12044. },
  12045. week: {
  12046. dow: 1, // Monday is the first day of the week.
  12047. doy: 4, // The week that contains Jan 4th is the first week of the year.
  12048. },
  12049. });
  12050. //! moment.js locale configuration
  12051. var units$1 = {
  12052. ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'),
  12053. m: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  12054. mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  12055. h: 'stundas_stundām_stunda_stundas'.split('_'),
  12056. hh: 'stundas_stundām_stunda_stundas'.split('_'),
  12057. d: 'dienas_dienām_diena_dienas'.split('_'),
  12058. dd: 'dienas_dienām_diena_dienas'.split('_'),
  12059. M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  12060. MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  12061. y: 'gada_gadiem_gads_gadi'.split('_'),
  12062. yy: 'gada_gadiem_gads_gadi'.split('_'),
  12063. };
  12064. /**
  12065. * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
  12066. */
  12067. function format$1(forms, number, withoutSuffix) {
  12068. if (withoutSuffix) {
  12069. // E.g. "21 minūte", "3 minūtes".
  12070. return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];
  12071. } else {
  12072. // E.g. "21 minūtes" as in "pēc 21 minūtes".
  12073. // E.g. "3 minūtēm" as in "pēc 3 minūtēm".
  12074. return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];
  12075. }
  12076. }
  12077. function relativeTimeWithPlural$1(number, withoutSuffix, key) {
  12078. return number + ' ' + format$1(units$1[key], number, withoutSuffix);
  12079. }
  12080. function relativeTimeWithSingular(number, withoutSuffix, key) {
  12081. return format$1(units$1[key], number, withoutSuffix);
  12082. }
  12083. function relativeSeconds(number, withoutSuffix) {
  12084. return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
  12085. }
  12086. hooks.defineLocale('lv', {
  12087. months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split(
  12088. '_'
  12089. ),
  12090. monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
  12091. weekdays:
  12092. 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split(
  12093. '_'
  12094. ),
  12095. weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'),
  12096. weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'),
  12097. weekdaysParseExact: true,
  12098. longDateFormat: {
  12099. LT: 'HH:mm',
  12100. LTS: 'HH:mm:ss',
  12101. L: 'DD.MM.YYYY.',
  12102. LL: 'YYYY. [gada] D. MMMM',
  12103. LLL: 'YYYY. [gada] D. MMMM, HH:mm',
  12104. LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm',
  12105. },
  12106. calendar: {
  12107. sameDay: '[Šodien pulksten] LT',
  12108. nextDay: '[Rīt pulksten] LT',
  12109. nextWeek: 'dddd [pulksten] LT',
  12110. lastDay: '[Vakar pulksten] LT',
  12111. lastWeek: '[Pagājušā] dddd [pulksten] LT',
  12112. sameElse: 'L',
  12113. },
  12114. relativeTime: {
  12115. future: 'pēc %s',
  12116. past: 'pirms %s',
  12117. s: relativeSeconds,
  12118. ss: relativeTimeWithPlural$1,
  12119. m: relativeTimeWithSingular,
  12120. mm: relativeTimeWithPlural$1,
  12121. h: relativeTimeWithSingular,
  12122. hh: relativeTimeWithPlural$1,
  12123. d: relativeTimeWithSingular,
  12124. dd: relativeTimeWithPlural$1,
  12125. M: relativeTimeWithSingular,
  12126. MM: relativeTimeWithPlural$1,
  12127. y: relativeTimeWithSingular,
  12128. yy: relativeTimeWithPlural$1,
  12129. },
  12130. dayOfMonthOrdinalParse: /\d{1,2}\./,
  12131. ordinal: '%d.',
  12132. week: {
  12133. dow: 1, // Monday is the first day of the week.
  12134. doy: 4, // The week that contains Jan 4th is the first week of the year.
  12135. },
  12136. });
  12137. //! moment.js locale configuration
  12138. var translator = {
  12139. words: {
  12140. //Different grammatical cases
  12141. ss: ['sekund', 'sekunda', 'sekundi'],
  12142. m: ['jedan minut', 'jednog minuta'],
  12143. mm: ['minut', 'minuta', 'minuta'],
  12144. h: ['jedan sat', 'jednog sata'],
  12145. hh: ['sat', 'sata', 'sati'],
  12146. dd: ['dan', 'dana', 'dana'],
  12147. MM: ['mjesec', 'mjeseca', 'mjeseci'],
  12148. yy: ['godina', 'godine', 'godina'],
  12149. },
  12150. correctGrammaticalCase: function (number, wordKey) {
  12151. return number === 1
  12152. ? wordKey[0]
  12153. : number >= 2 && number <= 4
  12154. ? wordKey[1]
  12155. : wordKey[2];
  12156. },
  12157. translate: function (number, withoutSuffix, key) {
  12158. var wordKey = translator.words[key];
  12159. if (key.length === 1) {
  12160. return withoutSuffix ? wordKey[0] : wordKey[1];
  12161. } else {
  12162. return (
  12163. number +
  12164. ' ' +
  12165. translator.correctGrammaticalCase(number, wordKey)
  12166. );
  12167. }
  12168. },
  12169. };
  12170. hooks.defineLocale('me', {
  12171. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(
  12172. '_'
  12173. ),
  12174. monthsShort:
  12175. 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
  12176. monthsParseExact: true,
  12177. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
  12178. '_'
  12179. ),
  12180. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  12181. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  12182. weekdaysParseExact: true,
  12183. longDateFormat: {
  12184. LT: 'H:mm',
  12185. LTS: 'H:mm:ss',
  12186. L: 'DD.MM.YYYY',
  12187. LL: 'D. MMMM YYYY',
  12188. LLL: 'D. MMMM YYYY H:mm',
  12189. LLLL: 'dddd, D. MMMM YYYY H:mm',
  12190. },
  12191. calendar: {
  12192. sameDay: '[danas u] LT',
  12193. nextDay: '[sjutra u] LT',
  12194. nextWeek: function () {
  12195. switch (this.day()) {
  12196. case 0:
  12197. return '[u] [nedjelju] [u] LT';
  12198. case 3:
  12199. return '[u] [srijedu] [u] LT';
  12200. case 6:
  12201. return '[u] [subotu] [u] LT';
  12202. case 1:
  12203. case 2:
  12204. case 4:
  12205. case 5:
  12206. return '[u] dddd [u] LT';
  12207. }
  12208. },
  12209. lastDay: '[juče u] LT',
  12210. lastWeek: function () {
  12211. var lastWeekDays = [
  12212. '[prošle] [nedjelje] [u] LT',
  12213. '[prošlog] [ponedjeljka] [u] LT',
  12214. '[prošlog] [utorka] [u] LT',
  12215. '[prošle] [srijede] [u] LT',
  12216. '[prošlog] [četvrtka] [u] LT',
  12217. '[prošlog] [petka] [u] LT',
  12218. '[prošle] [subote] [u] LT',
  12219. ];
  12220. return lastWeekDays[this.day()];
  12221. },
  12222. sameElse: 'L',
  12223. },
  12224. relativeTime: {
  12225. future: 'za %s',
  12226. past: 'prije %s',
  12227. s: 'nekoliko sekundi',
  12228. ss: translator.translate,
  12229. m: translator.translate,
  12230. mm: translator.translate,
  12231. h: translator.translate,
  12232. hh: translator.translate,
  12233. d: 'dan',
  12234. dd: translator.translate,
  12235. M: 'mjesec',
  12236. MM: translator.translate,
  12237. y: 'godinu',
  12238. yy: translator.translate,
  12239. },
  12240. dayOfMonthOrdinalParse: /\d{1,2}\./,
  12241. ordinal: '%d.',
  12242. week: {
  12243. dow: 1, // Monday is the first day of the week.
  12244. doy: 7, // The week that contains Jan 7th is the first week of the year.
  12245. },
  12246. });
  12247. //! moment.js locale configuration
  12248. hooks.defineLocale('mi', {
  12249. 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(
  12250. '_'
  12251. ),
  12252. monthsShort:
  12253. 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split(
  12254. '_'
  12255. ),
  12256. monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  12257. monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  12258. monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  12259. monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
  12260. weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
  12261. weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  12262. weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  12263. longDateFormat: {
  12264. LT: 'HH:mm',
  12265. LTS: 'HH:mm:ss',
  12266. L: 'DD/MM/YYYY',
  12267. LL: 'D MMMM YYYY',
  12268. LLL: 'D MMMM YYYY [i] HH:mm',
  12269. LLLL: 'dddd, D MMMM YYYY [i] HH:mm',
  12270. },
  12271. calendar: {
  12272. sameDay: '[i teie mahana, i] LT',
  12273. nextDay: '[apopo i] LT',
  12274. nextWeek: 'dddd [i] LT',
  12275. lastDay: '[inanahi i] LT',
  12276. lastWeek: 'dddd [whakamutunga i] LT',
  12277. sameElse: 'L',
  12278. },
  12279. relativeTime: {
  12280. future: 'i roto i %s',
  12281. past: '%s i mua',
  12282. s: 'te hēkona ruarua',
  12283. ss: '%d hēkona',
  12284. m: 'he meneti',
  12285. mm: '%d meneti',
  12286. h: 'te haora',
  12287. hh: '%d haora',
  12288. d: 'he ra',
  12289. dd: '%d ra',
  12290. M: 'he marama',
  12291. MM: '%d marama',
  12292. y: 'he tau',
  12293. yy: '%d tau',
  12294. },
  12295. dayOfMonthOrdinalParse: /\d{1,2}º/,
  12296. ordinal: '%dº',
  12297. week: {
  12298. dow: 1, // Monday is the first day of the week.
  12299. doy: 4, // The week that contains Jan 4th is the first week of the year.
  12300. },
  12301. });
  12302. //! moment.js locale configuration
  12303. hooks.defineLocale('mk', {
  12304. months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split(
  12305. '_'
  12306. ),
  12307. monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
  12308. weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split(
  12309. '_'
  12310. ),
  12311. weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
  12312. weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'),
  12313. longDateFormat: {
  12314. LT: 'H:mm',
  12315. LTS: 'H:mm:ss',
  12316. L: 'D.MM.YYYY',
  12317. LL: 'D MMMM YYYY',
  12318. LLL: 'D MMMM YYYY H:mm',
  12319. LLLL: 'dddd, D MMMM YYYY H:mm',
  12320. },
  12321. calendar: {
  12322. sameDay: '[Денес во] LT',
  12323. nextDay: '[Утре во] LT',
  12324. nextWeek: '[Во] dddd [во] LT',
  12325. lastDay: '[Вчера во] LT',
  12326. lastWeek: function () {
  12327. switch (this.day()) {
  12328. case 0:
  12329. case 3:
  12330. case 6:
  12331. return '[Изминатата] dddd [во] LT';
  12332. case 1:
  12333. case 2:
  12334. case 4:
  12335. case 5:
  12336. return '[Изминатиот] dddd [во] LT';
  12337. }
  12338. },
  12339. sameElse: 'L',
  12340. },
  12341. relativeTime: {
  12342. future: 'за %s',
  12343. past: 'пред %s',
  12344. s: 'неколку секунди',
  12345. ss: '%d секунди',
  12346. m: 'една минута',
  12347. mm: '%d минути',
  12348. h: 'еден час',
  12349. hh: '%d часа',
  12350. d: 'еден ден',
  12351. dd: '%d дена',
  12352. M: 'еден месец',
  12353. MM: '%d месеци',
  12354. y: 'една година',
  12355. yy: '%d години',
  12356. },
  12357. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  12358. ordinal: function (number) {
  12359. var lastDigit = number % 10,
  12360. last2Digits = number % 100;
  12361. if (number === 0) {
  12362. return number + '-ев';
  12363. } else if (last2Digits === 0) {
  12364. return number + '-ен';
  12365. } else if (last2Digits > 10 && last2Digits < 20) {
  12366. return number + '-ти';
  12367. } else if (lastDigit === 1) {
  12368. return number + '-ви';
  12369. } else if (lastDigit === 2) {
  12370. return number + '-ри';
  12371. } else if (lastDigit === 7 || lastDigit === 8) {
  12372. return number + '-ми';
  12373. } else {
  12374. return number + '-ти';
  12375. }
  12376. },
  12377. week: {
  12378. dow: 1, // Monday is the first day of the week.
  12379. doy: 7, // The week that contains Jan 7th is the first week of the year.
  12380. },
  12381. });
  12382. //! moment.js locale configuration
  12383. hooks.defineLocale('ml', {
  12384. months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split(
  12385. '_'
  12386. ),
  12387. monthsShort:
  12388. 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split(
  12389. '_'
  12390. ),
  12391. monthsParseExact: true,
  12392. weekdays:
  12393. 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split(
  12394. '_'
  12395. ),
  12396. weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
  12397. weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
  12398. longDateFormat: {
  12399. LT: 'A h:mm -നു',
  12400. LTS: 'A h:mm:ss -നു',
  12401. L: 'DD/MM/YYYY',
  12402. LL: 'D MMMM YYYY',
  12403. LLL: 'D MMMM YYYY, A h:mm -നു',
  12404. LLLL: 'dddd, D MMMM YYYY, A h:mm -നു',
  12405. },
  12406. calendar: {
  12407. sameDay: '[ഇന്ന്] LT',
  12408. nextDay: '[നാളെ] LT',
  12409. nextWeek: 'dddd, LT',
  12410. lastDay: '[ഇന്നലെ] LT',
  12411. lastWeek: '[കഴിഞ്ഞ] dddd, LT',
  12412. sameElse: 'L',
  12413. },
  12414. relativeTime: {
  12415. future: '%s കഴിഞ്ഞ്',
  12416. past: '%s മുൻപ്',
  12417. s: 'അൽപ നിമിഷങ്ങൾ',
  12418. ss: '%d സെക്കൻഡ്',
  12419. m: 'ഒരു മിനിറ്റ്',
  12420. mm: '%d മിനിറ്റ്',
  12421. h: 'ഒരു മണിക്കൂർ',
  12422. hh: '%d മണിക്കൂർ',
  12423. d: 'ഒരു ദിവസം',
  12424. dd: '%d ദിവസം',
  12425. M: 'ഒരു മാസം',
  12426. MM: '%d മാസം',
  12427. y: 'ഒരു വർഷം',
  12428. yy: '%d വർഷം',
  12429. },
  12430. meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
  12431. meridiemHour: function (hour, meridiem) {
  12432. if (hour === 12) {
  12433. hour = 0;
  12434. }
  12435. if (
  12436. (meridiem === 'രാത്രി' && hour >= 4) ||
  12437. meridiem === 'ഉച്ച കഴിഞ്ഞ്' ||
  12438. meridiem === 'വൈകുന്നേരം'
  12439. ) {
  12440. return hour + 12;
  12441. } else {
  12442. return hour;
  12443. }
  12444. },
  12445. meridiem: function (hour, minute, isLower) {
  12446. if (hour < 4) {
  12447. return 'രാത്രി';
  12448. } else if (hour < 12) {
  12449. return 'രാവിലെ';
  12450. } else if (hour < 17) {
  12451. return 'ഉച്ച കഴിഞ്ഞ്';
  12452. } else if (hour < 20) {
  12453. return 'വൈകുന്നേരം';
  12454. } else {
  12455. return 'രാത്രി';
  12456. }
  12457. },
  12458. });
  12459. //! moment.js locale configuration
  12460. function translate$7(number, withoutSuffix, key, isFuture) {
  12461. switch (key) {
  12462. case 's':
  12463. return withoutSuffix ? 'хэдхэн секунд' : 'хэдхэн секундын';
  12464. case 'ss':
  12465. return number + (withoutSuffix ? ' секунд' : ' секундын');
  12466. case 'm':
  12467. case 'mm':
  12468. return number + (withoutSuffix ? ' минут' : ' минутын');
  12469. case 'h':
  12470. case 'hh':
  12471. return number + (withoutSuffix ? ' цаг' : ' цагийн');
  12472. case 'd':
  12473. case 'dd':
  12474. return number + (withoutSuffix ? ' өдөр' : ' өдрийн');
  12475. case 'M':
  12476. case 'MM':
  12477. return number + (withoutSuffix ? ' сар' : ' сарын');
  12478. case 'y':
  12479. case 'yy':
  12480. return number + (withoutSuffix ? ' жил' : ' жилийн');
  12481. default:
  12482. return number;
  12483. }
  12484. }
  12485. hooks.defineLocale('mn', {
  12486. months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split(
  12487. '_'
  12488. ),
  12489. monthsShort:
  12490. '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split(
  12491. '_'
  12492. ),
  12493. monthsParseExact: true,
  12494. weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'),
  12495. weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'),
  12496. weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'),
  12497. weekdaysParseExact: true,
  12498. longDateFormat: {
  12499. LT: 'HH:mm',
  12500. LTS: 'HH:mm:ss',
  12501. L: 'YYYY-MM-DD',
  12502. LL: 'YYYY оны MMMMын D',
  12503. LLL: 'YYYY оны MMMMын D HH:mm',
  12504. LLLL: 'dddd, YYYY оны MMMMын D HH:mm',
  12505. },
  12506. meridiemParse: /ҮӨ|ҮХ/i,
  12507. isPM: function (input) {
  12508. return input === 'ҮХ';
  12509. },
  12510. meridiem: function (hour, minute, isLower) {
  12511. if (hour < 12) {
  12512. return 'ҮӨ';
  12513. } else {
  12514. return 'ҮХ';
  12515. }
  12516. },
  12517. calendar: {
  12518. sameDay: '[Өнөөдөр] LT',
  12519. nextDay: '[Маргааш] LT',
  12520. nextWeek: '[Ирэх] dddd LT',
  12521. lastDay: '[Өчигдөр] LT',
  12522. lastWeek: '[Өнгөрсөн] dddd LT',
  12523. sameElse: 'L',
  12524. },
  12525. relativeTime: {
  12526. future: '%s дараа',
  12527. past: '%s өмнө',
  12528. s: translate$7,
  12529. ss: translate$7,
  12530. m: translate$7,
  12531. mm: translate$7,
  12532. h: translate$7,
  12533. hh: translate$7,
  12534. d: translate$7,
  12535. dd: translate$7,
  12536. M: translate$7,
  12537. MM: translate$7,
  12538. y: translate$7,
  12539. yy: translate$7,
  12540. },
  12541. dayOfMonthOrdinalParse: /\d{1,2} өдөр/,
  12542. ordinal: function (number, period) {
  12543. switch (period) {
  12544. case 'd':
  12545. case 'D':
  12546. case 'DDD':
  12547. return number + ' өдөр';
  12548. default:
  12549. return number;
  12550. }
  12551. },
  12552. });
  12553. //! moment.js locale configuration
  12554. var symbolMap$c = {
  12555. 1: '१',
  12556. 2: '२',
  12557. 3: '३',
  12558. 4: '४',
  12559. 5: '५',
  12560. 6: '६',
  12561. 7: '७',
  12562. 8: '८',
  12563. 9: '९',
  12564. 0: '०',
  12565. },
  12566. numberMap$b = {
  12567. '१': '1',
  12568. '२': '2',
  12569. '३': '3',
  12570. '४': '4',
  12571. '५': '5',
  12572. '६': '6',
  12573. '७': '7',
  12574. '८': '8',
  12575. '९': '9',
  12576. '०': '0',
  12577. };
  12578. function relativeTimeMr(number, withoutSuffix, string, isFuture) {
  12579. var output = '';
  12580. if (withoutSuffix) {
  12581. switch (string) {
  12582. case 's':
  12583. output = 'काही सेकंद';
  12584. break;
  12585. case 'ss':
  12586. output = '%d सेकंद';
  12587. break;
  12588. case 'm':
  12589. output = 'एक मिनिट';
  12590. break;
  12591. case 'mm':
  12592. output = '%d मिनिटे';
  12593. break;
  12594. case 'h':
  12595. output = 'एक तास';
  12596. break;
  12597. case 'hh':
  12598. output = '%d तास';
  12599. break;
  12600. case 'd':
  12601. output = 'एक दिवस';
  12602. break;
  12603. case 'dd':
  12604. output = '%d दिवस';
  12605. break;
  12606. case 'M':
  12607. output = 'एक महिना';
  12608. break;
  12609. case 'MM':
  12610. output = '%d महिने';
  12611. break;
  12612. case 'y':
  12613. output = 'एक वर्ष';
  12614. break;
  12615. case 'yy':
  12616. output = '%d वर्षे';
  12617. break;
  12618. }
  12619. } else {
  12620. switch (string) {
  12621. case 's':
  12622. output = 'काही सेकंदां';
  12623. break;
  12624. case 'ss':
  12625. output = '%d सेकंदां';
  12626. break;
  12627. case 'm':
  12628. output = 'एका मिनिटा';
  12629. break;
  12630. case 'mm':
  12631. output = '%d मिनिटां';
  12632. break;
  12633. case 'h':
  12634. output = 'एका तासा';
  12635. break;
  12636. case 'hh':
  12637. output = '%d तासां';
  12638. break;
  12639. case 'd':
  12640. output = 'एका दिवसा';
  12641. break;
  12642. case 'dd':
  12643. output = '%d दिवसां';
  12644. break;
  12645. case 'M':
  12646. output = 'एका महिन्या';
  12647. break;
  12648. case 'MM':
  12649. output = '%d महिन्यां';
  12650. break;
  12651. case 'y':
  12652. output = 'एका वर्षा';
  12653. break;
  12654. case 'yy':
  12655. output = '%d वर्षां';
  12656. break;
  12657. }
  12658. }
  12659. return output.replace(/%d/i, number);
  12660. }
  12661. hooks.defineLocale('mr', {
  12662. months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(
  12663. '_'
  12664. ),
  12665. monthsShort:
  12666. 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(
  12667. '_'
  12668. ),
  12669. monthsParseExact: true,
  12670. weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  12671. weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
  12672. weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
  12673. longDateFormat: {
  12674. LT: 'A h:mm वाजता',
  12675. LTS: 'A h:mm:ss वाजता',
  12676. L: 'DD/MM/YYYY',
  12677. LL: 'D MMMM YYYY',
  12678. LLL: 'D MMMM YYYY, A h:mm वाजता',
  12679. LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता',
  12680. },
  12681. calendar: {
  12682. sameDay: '[आज] LT',
  12683. nextDay: '[उद्या] LT',
  12684. nextWeek: 'dddd, LT',
  12685. lastDay: '[काल] LT',
  12686. lastWeek: '[मागील] dddd, LT',
  12687. sameElse: 'L',
  12688. },
  12689. relativeTime: {
  12690. future: '%sमध्ये',
  12691. past: '%sपूर्वी',
  12692. s: relativeTimeMr,
  12693. ss: relativeTimeMr,
  12694. m: relativeTimeMr,
  12695. mm: relativeTimeMr,
  12696. h: relativeTimeMr,
  12697. hh: relativeTimeMr,
  12698. d: relativeTimeMr,
  12699. dd: relativeTimeMr,
  12700. M: relativeTimeMr,
  12701. MM: relativeTimeMr,
  12702. y: relativeTimeMr,
  12703. yy: relativeTimeMr,
  12704. },
  12705. preparse: function (string) {
  12706. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  12707. return numberMap$b[match];
  12708. });
  12709. },
  12710. postformat: function (string) {
  12711. return string.replace(/\d/g, function (match) {
  12712. return symbolMap$c[match];
  12713. });
  12714. },
  12715. meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,
  12716. meridiemHour: function (hour, meridiem) {
  12717. if (hour === 12) {
  12718. hour = 0;
  12719. }
  12720. if (meridiem === 'पहाटे' || meridiem === 'सकाळी') {
  12721. return hour;
  12722. } else if (
  12723. meridiem === 'दुपारी' ||
  12724. meridiem === 'सायंकाळी' ||
  12725. meridiem === 'रात्री'
  12726. ) {
  12727. return hour >= 12 ? hour : hour + 12;
  12728. }
  12729. },
  12730. meridiem: function (hour, minute, isLower) {
  12731. if (hour >= 0 && hour < 6) {
  12732. return 'पहाटे';
  12733. } else if (hour < 12) {
  12734. return 'सकाळी';
  12735. } else if (hour < 17) {
  12736. return 'दुपारी';
  12737. } else if (hour < 20) {
  12738. return 'सायंकाळी';
  12739. } else {
  12740. return 'रात्री';
  12741. }
  12742. },
  12743. week: {
  12744. dow: 0, // Sunday is the first day of the week.
  12745. doy: 6, // The week that contains Jan 6th is the first week of the year.
  12746. },
  12747. });
  12748. //! moment.js locale configuration
  12749. hooks.defineLocale('ms-my', {
  12750. months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(
  12751. '_'
  12752. ),
  12753. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  12754. weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  12755. weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  12756. weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  12757. longDateFormat: {
  12758. LT: 'HH.mm',
  12759. LTS: 'HH.mm.ss',
  12760. L: 'DD/MM/YYYY',
  12761. LL: 'D MMMM YYYY',
  12762. LLL: 'D MMMM YYYY [pukul] HH.mm',
  12763. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
  12764. },
  12765. meridiemParse: /pagi|tengahari|petang|malam/,
  12766. meridiemHour: function (hour, meridiem) {
  12767. if (hour === 12) {
  12768. hour = 0;
  12769. }
  12770. if (meridiem === 'pagi') {
  12771. return hour;
  12772. } else if (meridiem === 'tengahari') {
  12773. return hour >= 11 ? hour : hour + 12;
  12774. } else if (meridiem === 'petang' || meridiem === 'malam') {
  12775. return hour + 12;
  12776. }
  12777. },
  12778. meridiem: function (hours, minutes, isLower) {
  12779. if (hours < 11) {
  12780. return 'pagi';
  12781. } else if (hours < 15) {
  12782. return 'tengahari';
  12783. } else if (hours < 19) {
  12784. return 'petang';
  12785. } else {
  12786. return 'malam';
  12787. }
  12788. },
  12789. calendar: {
  12790. sameDay: '[Hari ini pukul] LT',
  12791. nextDay: '[Esok pukul] LT',
  12792. nextWeek: 'dddd [pukul] LT',
  12793. lastDay: '[Kelmarin pukul] LT',
  12794. lastWeek: 'dddd [lepas pukul] LT',
  12795. sameElse: 'L',
  12796. },
  12797. relativeTime: {
  12798. future: 'dalam %s',
  12799. past: '%s yang lepas',
  12800. s: 'beberapa saat',
  12801. ss: '%d saat',
  12802. m: 'seminit',
  12803. mm: '%d minit',
  12804. h: 'sejam',
  12805. hh: '%d jam',
  12806. d: 'sehari',
  12807. dd: '%d hari',
  12808. M: 'sebulan',
  12809. MM: '%d bulan',
  12810. y: 'setahun',
  12811. yy: '%d tahun',
  12812. },
  12813. week: {
  12814. dow: 1, // Monday is the first day of the week.
  12815. doy: 7, // The week that contains Jan 7th is the first week of the year.
  12816. },
  12817. });
  12818. //! moment.js locale configuration
  12819. hooks.defineLocale('ms', {
  12820. months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(
  12821. '_'
  12822. ),
  12823. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  12824. weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  12825. weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  12826. weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  12827. longDateFormat: {
  12828. LT: 'HH.mm',
  12829. LTS: 'HH.mm.ss',
  12830. L: 'DD/MM/YYYY',
  12831. LL: 'D MMMM YYYY',
  12832. LLL: 'D MMMM YYYY [pukul] HH.mm',
  12833. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
  12834. },
  12835. meridiemParse: /pagi|tengahari|petang|malam/,
  12836. meridiemHour: function (hour, meridiem) {
  12837. if (hour === 12) {
  12838. hour = 0;
  12839. }
  12840. if (meridiem === 'pagi') {
  12841. return hour;
  12842. } else if (meridiem === 'tengahari') {
  12843. return hour >= 11 ? hour : hour + 12;
  12844. } else if (meridiem === 'petang' || meridiem === 'malam') {
  12845. return hour + 12;
  12846. }
  12847. },
  12848. meridiem: function (hours, minutes, isLower) {
  12849. if (hours < 11) {
  12850. return 'pagi';
  12851. } else if (hours < 15) {
  12852. return 'tengahari';
  12853. } else if (hours < 19) {
  12854. return 'petang';
  12855. } else {
  12856. return 'malam';
  12857. }
  12858. },
  12859. calendar: {
  12860. sameDay: '[Hari ini pukul] LT',
  12861. nextDay: '[Esok pukul] LT',
  12862. nextWeek: 'dddd [pukul] LT',
  12863. lastDay: '[Kelmarin pukul] LT',
  12864. lastWeek: 'dddd [lepas pukul] LT',
  12865. sameElse: 'L',
  12866. },
  12867. relativeTime: {
  12868. future: 'dalam %s',
  12869. past: '%s yang lepas',
  12870. s: 'beberapa saat',
  12871. ss: '%d saat',
  12872. m: 'seminit',
  12873. mm: '%d minit',
  12874. h: 'sejam',
  12875. hh: '%d jam',
  12876. d: 'sehari',
  12877. dd: '%d hari',
  12878. M: 'sebulan',
  12879. MM: '%d bulan',
  12880. y: 'setahun',
  12881. yy: '%d tahun',
  12882. },
  12883. week: {
  12884. dow: 1, // Monday is the first day of the week.
  12885. doy: 7, // The week that contains Jan 7th is the first week of the year.
  12886. },
  12887. });
  12888. //! moment.js locale configuration
  12889. hooks.defineLocale('mt', {
  12890. months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split(
  12891. '_'
  12892. ),
  12893. monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),
  12894. weekdays:
  12895. 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split(
  12896. '_'
  12897. ),
  12898. weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),
  12899. weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),
  12900. longDateFormat: {
  12901. LT: 'HH:mm',
  12902. LTS: 'HH:mm:ss',
  12903. L: 'DD/MM/YYYY',
  12904. LL: 'D MMMM YYYY',
  12905. LLL: 'D MMMM YYYY HH:mm',
  12906. LLLL: 'dddd, D MMMM YYYY HH:mm',
  12907. },
  12908. calendar: {
  12909. sameDay: '[Illum fil-]LT',
  12910. nextDay: '[Għada fil-]LT',
  12911. nextWeek: 'dddd [fil-]LT',
  12912. lastDay: '[Il-bieraħ fil-]LT',
  12913. lastWeek: 'dddd [li għadda] [fil-]LT',
  12914. sameElse: 'L',
  12915. },
  12916. relativeTime: {
  12917. future: 'f’ %s',
  12918. past: '%s ilu',
  12919. s: 'ftit sekondi',
  12920. ss: '%d sekondi',
  12921. m: 'minuta',
  12922. mm: '%d minuti',
  12923. h: 'siegħa',
  12924. hh: '%d siegħat',
  12925. d: 'ġurnata',
  12926. dd: '%d ġranet',
  12927. M: 'xahar',
  12928. MM: '%d xhur',
  12929. y: 'sena',
  12930. yy: '%d sni',
  12931. },
  12932. dayOfMonthOrdinalParse: /\d{1,2}º/,
  12933. ordinal: '%dº',
  12934. week: {
  12935. dow: 1, // Monday is the first day of the week.
  12936. doy: 4, // The week that contains Jan 4th is the first week of the year.
  12937. },
  12938. });
  12939. //! moment.js locale configuration
  12940. var symbolMap$d = {
  12941. 1: '၁',
  12942. 2: '၂',
  12943. 3: '၃',
  12944. 4: '၄',
  12945. 5: '၅',
  12946. 6: '၆',
  12947. 7: '၇',
  12948. 8: '၈',
  12949. 9: '၉',
  12950. 0: '၀',
  12951. },
  12952. numberMap$c = {
  12953. '၁': '1',
  12954. '၂': '2',
  12955. '၃': '3',
  12956. '၄': '4',
  12957. '၅': '5',
  12958. '၆': '6',
  12959. '၇': '7',
  12960. '၈': '8',
  12961. '၉': '9',
  12962. '၀': '0',
  12963. };
  12964. hooks.defineLocale('my', {
  12965. months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split(
  12966. '_'
  12967. ),
  12968. monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
  12969. weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split(
  12970. '_'
  12971. ),
  12972. weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  12973. weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  12974. longDateFormat: {
  12975. LT: 'HH:mm',
  12976. LTS: 'HH:mm:ss',
  12977. L: 'DD/MM/YYYY',
  12978. LL: 'D MMMM YYYY',
  12979. LLL: 'D MMMM YYYY HH:mm',
  12980. LLLL: 'dddd D MMMM YYYY HH:mm',
  12981. },
  12982. calendar: {
  12983. sameDay: '[ယနေ.] LT [မှာ]',
  12984. nextDay: '[မနက်ဖြန်] LT [မှာ]',
  12985. nextWeek: 'dddd LT [မှာ]',
  12986. lastDay: '[မနေ.က] LT [မှာ]',
  12987. lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
  12988. sameElse: 'L',
  12989. },
  12990. relativeTime: {
  12991. future: 'လာမည့် %s မှာ',
  12992. past: 'လွန်ခဲ့သော %s က',
  12993. s: 'စက္ကန်.အနည်းငယ်',
  12994. ss: '%d စက္ကန့်',
  12995. m: 'တစ်မိနစ်',
  12996. mm: '%d မိနစ်',
  12997. h: 'တစ်နာရီ',
  12998. hh: '%d နာရီ',
  12999. d: 'တစ်ရက်',
  13000. dd: '%d ရက်',
  13001. M: 'တစ်လ',
  13002. MM: '%d လ',
  13003. y: 'တစ်နှစ်',
  13004. yy: '%d နှစ်',
  13005. },
  13006. preparse: function (string) {
  13007. return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
  13008. return numberMap$c[match];
  13009. });
  13010. },
  13011. postformat: function (string) {
  13012. return string.replace(/\d/g, function (match) {
  13013. return symbolMap$d[match];
  13014. });
  13015. },
  13016. week: {
  13017. dow: 1, // Monday is the first day of the week.
  13018. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13019. },
  13020. });
  13021. //! moment.js locale configuration
  13022. hooks.defineLocale('nb', {
  13023. months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
  13024. '_'
  13025. ),
  13026. monthsShort:
  13027. 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
  13028. monthsParseExact: true,
  13029. weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  13030. weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'),
  13031. weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
  13032. weekdaysParseExact: true,
  13033. longDateFormat: {
  13034. LT: 'HH:mm',
  13035. LTS: 'HH:mm:ss',
  13036. L: 'DD.MM.YYYY',
  13037. LL: 'D. MMMM YYYY',
  13038. LLL: 'D. MMMM YYYY [kl.] HH:mm',
  13039. LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
  13040. },
  13041. calendar: {
  13042. sameDay: '[i dag kl.] LT',
  13043. nextDay: '[i morgen kl.] LT',
  13044. nextWeek: 'dddd [kl.] LT',
  13045. lastDay: '[i går kl.] LT',
  13046. lastWeek: '[forrige] dddd [kl.] LT',
  13047. sameElse: 'L',
  13048. },
  13049. relativeTime: {
  13050. future: 'om %s',
  13051. past: '%s siden',
  13052. s: 'noen sekunder',
  13053. ss: '%d sekunder',
  13054. m: 'ett minutt',
  13055. mm: '%d minutter',
  13056. h: 'en time',
  13057. hh: '%d timer',
  13058. d: 'en dag',
  13059. dd: '%d dager',
  13060. w: 'en uke',
  13061. ww: '%d uker',
  13062. M: 'en måned',
  13063. MM: '%d måneder',
  13064. y: 'ett år',
  13065. yy: '%d år',
  13066. },
  13067. dayOfMonthOrdinalParse: /\d{1,2}\./,
  13068. ordinal: '%d.',
  13069. week: {
  13070. dow: 1, // Monday is the first day of the week.
  13071. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13072. },
  13073. });
  13074. //! moment.js locale configuration
  13075. var symbolMap$e = {
  13076. 1: '१',
  13077. 2: '२',
  13078. 3: '३',
  13079. 4: '४',
  13080. 5: '५',
  13081. 6: '६',
  13082. 7: '७',
  13083. 8: '८',
  13084. 9: '९',
  13085. 0: '०',
  13086. },
  13087. numberMap$d = {
  13088. '१': '1',
  13089. '२': '2',
  13090. '३': '3',
  13091. '४': '4',
  13092. '५': '5',
  13093. '६': '6',
  13094. '७': '7',
  13095. '८': '8',
  13096. '९': '9',
  13097. '०': '0',
  13098. };
  13099. hooks.defineLocale('ne', {
  13100. months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split(
  13101. '_'
  13102. ),
  13103. monthsShort:
  13104. 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split(
  13105. '_'
  13106. ),
  13107. monthsParseExact: true,
  13108. weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split(
  13109. '_'
  13110. ),
  13111. weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
  13112. weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
  13113. weekdaysParseExact: true,
  13114. longDateFormat: {
  13115. LT: 'Aको h:mm बजे',
  13116. LTS: 'Aको h:mm:ss बजे',
  13117. L: 'DD/MM/YYYY',
  13118. LL: 'D MMMM YYYY',
  13119. LLL: 'D MMMM YYYY, Aको h:mm बजे',
  13120. LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे',
  13121. },
  13122. preparse: function (string) {
  13123. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  13124. return numberMap$d[match];
  13125. });
  13126. },
  13127. postformat: function (string) {
  13128. return string.replace(/\d/g, function (match) {
  13129. return symbolMap$e[match];
  13130. });
  13131. },
  13132. meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
  13133. meridiemHour: function (hour, meridiem) {
  13134. if (hour === 12) {
  13135. hour = 0;
  13136. }
  13137. if (meridiem === 'राति') {
  13138. return hour < 4 ? hour : hour + 12;
  13139. } else if (meridiem === 'बिहान') {
  13140. return hour;
  13141. } else if (meridiem === 'दिउँसो') {
  13142. return hour >= 10 ? hour : hour + 12;
  13143. } else if (meridiem === 'साँझ') {
  13144. return hour + 12;
  13145. }
  13146. },
  13147. meridiem: function (hour, minute, isLower) {
  13148. if (hour < 3) {
  13149. return 'राति';
  13150. } else if (hour < 12) {
  13151. return 'बिहान';
  13152. } else if (hour < 16) {
  13153. return 'दिउँसो';
  13154. } else if (hour < 20) {
  13155. return 'साँझ';
  13156. } else {
  13157. return 'राति';
  13158. }
  13159. },
  13160. calendar: {
  13161. sameDay: '[आज] LT',
  13162. nextDay: '[भोलि] LT',
  13163. nextWeek: '[आउँदो] dddd[,] LT',
  13164. lastDay: '[हिजो] LT',
  13165. lastWeek: '[गएको] dddd[,] LT',
  13166. sameElse: 'L',
  13167. },
  13168. relativeTime: {
  13169. future: '%sमा',
  13170. past: '%s अगाडि',
  13171. s: 'केही क्षण',
  13172. ss: '%d सेकेण्ड',
  13173. m: 'एक मिनेट',
  13174. mm: '%d मिनेट',
  13175. h: 'एक घण्टा',
  13176. hh: '%d घण्टा',
  13177. d: 'एक दिन',
  13178. dd: '%d दिन',
  13179. M: 'एक महिना',
  13180. MM: '%d महिना',
  13181. y: 'एक बर्ष',
  13182. yy: '%d बर्ष',
  13183. },
  13184. week: {
  13185. dow: 0, // Sunday is the first day of the week.
  13186. doy: 6, // The week that contains Jan 6th is the first week of the year.
  13187. },
  13188. });
  13189. //! moment.js locale configuration
  13190. var monthsShortWithDots$1 =
  13191. 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
  13192. monthsShortWithoutDots$1 =
  13193. 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  13194. monthsParse$8 = [
  13195. /^jan/i,
  13196. /^feb/i,
  13197. /^maart|mrt.?$/i,
  13198. /^apr/i,
  13199. /^mei$/i,
  13200. /^jun[i.]?$/i,
  13201. /^jul[i.]?$/i,
  13202. /^aug/i,
  13203. /^sep/i,
  13204. /^okt/i,
  13205. /^nov/i,
  13206. /^dec/i,
  13207. ],
  13208. monthsRegex$8 =
  13209. /^(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;
  13210. hooks.defineLocale('nl-be', {
  13211. months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(
  13212. '_'
  13213. ),
  13214. monthsShort: function (m, format) {
  13215. if (!m) {
  13216. return monthsShortWithDots$1;
  13217. } else if (/-MMM-/.test(format)) {
  13218. return monthsShortWithoutDots$1[m.month()];
  13219. } else {
  13220. return monthsShortWithDots$1[m.month()];
  13221. }
  13222. },
  13223. monthsRegex: monthsRegex$8,
  13224. monthsShortRegex: monthsRegex$8,
  13225. monthsStrictRegex:
  13226. /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
  13227. monthsShortStrictRegex:
  13228. /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  13229. monthsParse: monthsParse$8,
  13230. longMonthsParse: monthsParse$8,
  13231. shortMonthsParse: monthsParse$8,
  13232. weekdays:
  13233. 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
  13234. weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
  13235. weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
  13236. weekdaysParseExact: true,
  13237. longDateFormat: {
  13238. LT: 'HH:mm',
  13239. LTS: 'HH:mm:ss',
  13240. L: 'DD/MM/YYYY',
  13241. LL: 'D MMMM YYYY',
  13242. LLL: 'D MMMM YYYY HH:mm',
  13243. LLLL: 'dddd D MMMM YYYY HH:mm',
  13244. },
  13245. calendar: {
  13246. sameDay: '[vandaag om] LT',
  13247. nextDay: '[morgen om] LT',
  13248. nextWeek: 'dddd [om] LT',
  13249. lastDay: '[gisteren om] LT',
  13250. lastWeek: '[afgelopen] dddd [om] LT',
  13251. sameElse: 'L',
  13252. },
  13253. relativeTime: {
  13254. future: 'over %s',
  13255. past: '%s geleden',
  13256. s: 'een paar seconden',
  13257. ss: '%d seconden',
  13258. m: 'één minuut',
  13259. mm: '%d minuten',
  13260. h: 'één uur',
  13261. hh: '%d uur',
  13262. d: 'één dag',
  13263. dd: '%d dagen',
  13264. M: 'één maand',
  13265. MM: '%d maanden',
  13266. y: 'één jaar',
  13267. yy: '%d jaar',
  13268. },
  13269. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  13270. ordinal: function (number) {
  13271. return (
  13272. number +
  13273. (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
  13274. );
  13275. },
  13276. week: {
  13277. dow: 1, // Monday is the first day of the week.
  13278. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13279. },
  13280. });
  13281. //! moment.js locale configuration
  13282. var monthsShortWithDots$2 =
  13283. 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
  13284. monthsShortWithoutDots$2 =
  13285. 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  13286. monthsParse$9 = [
  13287. /^jan/i,
  13288. /^feb/i,
  13289. /^maart|mrt.?$/i,
  13290. /^apr/i,
  13291. /^mei$/i,
  13292. /^jun[i.]?$/i,
  13293. /^jul[i.]?$/i,
  13294. /^aug/i,
  13295. /^sep/i,
  13296. /^okt/i,
  13297. /^nov/i,
  13298. /^dec/i,
  13299. ],
  13300. monthsRegex$9 =
  13301. /^(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;
  13302. hooks.defineLocale('nl', {
  13303. months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(
  13304. '_'
  13305. ),
  13306. monthsShort: function (m, format) {
  13307. if (!m) {
  13308. return monthsShortWithDots$2;
  13309. } else if (/-MMM-/.test(format)) {
  13310. return monthsShortWithoutDots$2[m.month()];
  13311. } else {
  13312. return monthsShortWithDots$2[m.month()];
  13313. }
  13314. },
  13315. monthsRegex: monthsRegex$9,
  13316. monthsShortRegex: monthsRegex$9,
  13317. monthsStrictRegex:
  13318. /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
  13319. monthsShortStrictRegex:
  13320. /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  13321. monthsParse: monthsParse$9,
  13322. longMonthsParse: monthsParse$9,
  13323. shortMonthsParse: monthsParse$9,
  13324. weekdays:
  13325. 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
  13326. weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
  13327. weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
  13328. weekdaysParseExact: true,
  13329. longDateFormat: {
  13330. LT: 'HH:mm',
  13331. LTS: 'HH:mm:ss',
  13332. L: 'DD-MM-YYYY',
  13333. LL: 'D MMMM YYYY',
  13334. LLL: 'D MMMM YYYY HH:mm',
  13335. LLLL: 'dddd D MMMM YYYY HH:mm',
  13336. },
  13337. calendar: {
  13338. sameDay: '[vandaag om] LT',
  13339. nextDay: '[morgen om] LT',
  13340. nextWeek: 'dddd [om] LT',
  13341. lastDay: '[gisteren om] LT',
  13342. lastWeek: '[afgelopen] dddd [om] LT',
  13343. sameElse: 'L',
  13344. },
  13345. relativeTime: {
  13346. future: 'over %s',
  13347. past: '%s geleden',
  13348. s: 'een paar seconden',
  13349. ss: '%d seconden',
  13350. m: 'één minuut',
  13351. mm: '%d minuten',
  13352. h: 'één uur',
  13353. hh: '%d uur',
  13354. d: 'één dag',
  13355. dd: '%d dagen',
  13356. w: 'één week',
  13357. ww: '%d weken',
  13358. M: 'één maand',
  13359. MM: '%d maanden',
  13360. y: 'één jaar',
  13361. yy: '%d jaar',
  13362. },
  13363. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  13364. ordinal: function (number) {
  13365. return (
  13366. number +
  13367. (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
  13368. );
  13369. },
  13370. week: {
  13371. dow: 1, // Monday is the first day of the week.
  13372. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13373. },
  13374. });
  13375. //! moment.js locale configuration
  13376. hooks.defineLocale('nn', {
  13377. months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
  13378. '_'
  13379. ),
  13380. monthsShort:
  13381. 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
  13382. monthsParseExact: true,
  13383. weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
  13384. weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'),
  13385. weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'),
  13386. weekdaysParseExact: true,
  13387. longDateFormat: {
  13388. LT: 'HH:mm',
  13389. LTS: 'HH:mm:ss',
  13390. L: 'DD.MM.YYYY',
  13391. LL: 'D. MMMM YYYY',
  13392. LLL: 'D. MMMM YYYY [kl.] H:mm',
  13393. LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
  13394. },
  13395. calendar: {
  13396. sameDay: '[I dag klokka] LT',
  13397. nextDay: '[I morgon klokka] LT',
  13398. nextWeek: 'dddd [klokka] LT',
  13399. lastDay: '[I går klokka] LT',
  13400. lastWeek: '[Føregåande] dddd [klokka] LT',
  13401. sameElse: 'L',
  13402. },
  13403. relativeTime: {
  13404. future: 'om %s',
  13405. past: '%s sidan',
  13406. s: 'nokre sekund',
  13407. ss: '%d sekund',
  13408. m: 'eit minutt',
  13409. mm: '%d minutt',
  13410. h: 'ein time',
  13411. hh: '%d timar',
  13412. d: 'ein dag',
  13413. dd: '%d dagar',
  13414. w: 'ei veke',
  13415. ww: '%d veker',
  13416. M: 'ein månad',
  13417. MM: '%d månader',
  13418. y: 'eit år',
  13419. yy: '%d år',
  13420. },
  13421. dayOfMonthOrdinalParse: /\d{1,2}\./,
  13422. ordinal: '%d.',
  13423. week: {
  13424. dow: 1, // Monday is the first day of the week.
  13425. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13426. },
  13427. });
  13428. //! moment.js locale configuration
  13429. hooks.defineLocale('oc-lnc', {
  13430. months: {
  13431. standalone:
  13432. 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split(
  13433. '_'
  13434. ),
  13435. 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(
  13436. '_'
  13437. ),
  13438. isFormat: /D[oD]?(\s)+MMMM/,
  13439. },
  13440. monthsShort:
  13441. 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split(
  13442. '_'
  13443. ),
  13444. monthsParseExact: true,
  13445. weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split(
  13446. '_'
  13447. ),
  13448. weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'),
  13449. weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'),
  13450. weekdaysParseExact: true,
  13451. longDateFormat: {
  13452. LT: 'H:mm',
  13453. LTS: 'H:mm:ss',
  13454. L: 'DD/MM/YYYY',
  13455. LL: 'D MMMM [de] YYYY',
  13456. ll: 'D MMM YYYY',
  13457. LLL: 'D MMMM [de] YYYY [a] H:mm',
  13458. lll: 'D MMM YYYY, H:mm',
  13459. LLLL: 'dddd D MMMM [de] YYYY [a] H:mm',
  13460. llll: 'ddd D MMM YYYY, H:mm',
  13461. },
  13462. calendar: {
  13463. sameDay: '[uèi a] LT',
  13464. nextDay: '[deman a] LT',
  13465. nextWeek: 'dddd [a] LT',
  13466. lastDay: '[ièr a] LT',
  13467. lastWeek: 'dddd [passat a] LT',
  13468. sameElse: 'L',
  13469. },
  13470. relativeTime: {
  13471. future: "d'aquí %s",
  13472. past: 'fa %s',
  13473. s: 'unas segondas',
  13474. ss: '%d segondas',
  13475. m: 'una minuta',
  13476. mm: '%d minutas',
  13477. h: 'una ora',
  13478. hh: '%d oras',
  13479. d: 'un jorn',
  13480. dd: '%d jorns',
  13481. M: 'un mes',
  13482. MM: '%d meses',
  13483. y: 'un an',
  13484. yy: '%d ans',
  13485. },
  13486. dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
  13487. ordinal: function (number, period) {
  13488. var output =
  13489. number === 1
  13490. ? 'r'
  13491. : number === 2
  13492. ? 'n'
  13493. : number === 3
  13494. ? 'r'
  13495. : number === 4
  13496. ? 't'
  13497. : 'è';
  13498. if (period === 'w' || period === 'W') {
  13499. output = 'a';
  13500. }
  13501. return number + output;
  13502. },
  13503. week: {
  13504. dow: 1, // Monday is the first day of the week.
  13505. doy: 4,
  13506. },
  13507. });
  13508. //! moment.js locale configuration
  13509. var symbolMap$f = {
  13510. 1: '੧',
  13511. 2: '੨',
  13512. 3: '੩',
  13513. 4: '੪',
  13514. 5: '੫',
  13515. 6: '੬',
  13516. 7: '੭',
  13517. 8: '੮',
  13518. 9: '੯',
  13519. 0: '੦',
  13520. },
  13521. numberMap$e = {
  13522. '੧': '1',
  13523. '੨': '2',
  13524. '੩': '3',
  13525. '੪': '4',
  13526. '੫': '5',
  13527. '੬': '6',
  13528. '੭': '7',
  13529. '੮': '8',
  13530. '੯': '9',
  13531. '੦': '0',
  13532. };
  13533. hooks.defineLocale('pa-in', {
  13534. // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi.
  13535. months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(
  13536. '_'
  13537. ),
  13538. monthsShort:
  13539. 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(
  13540. '_'
  13541. ),
  13542. weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split(
  13543. '_'
  13544. ),
  13545. weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  13546. weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  13547. longDateFormat: {
  13548. LT: 'A h:mm ਵਜੇ',
  13549. LTS: 'A h:mm:ss ਵਜੇ',
  13550. L: 'DD/MM/YYYY',
  13551. LL: 'D MMMM YYYY',
  13552. LLL: 'D MMMM YYYY, A h:mm ਵਜੇ',
  13553. LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ',
  13554. },
  13555. calendar: {
  13556. sameDay: '[ਅਜ] LT',
  13557. nextDay: '[ਕਲ] LT',
  13558. nextWeek: '[ਅਗਲਾ] dddd, LT',
  13559. lastDay: '[ਕਲ] LT',
  13560. lastWeek: '[ਪਿਛਲੇ] dddd, LT',
  13561. sameElse: 'L',
  13562. },
  13563. relativeTime: {
  13564. future: '%s ਵਿੱਚ',
  13565. past: '%s ਪਿਛਲੇ',
  13566. s: 'ਕੁਝ ਸਕਿੰਟ',
  13567. ss: '%d ਸਕਿੰਟ',
  13568. m: 'ਇਕ ਮਿੰਟ',
  13569. mm: '%d ਮਿੰਟ',
  13570. h: 'ਇੱਕ ਘੰਟਾ',
  13571. hh: '%d ਘੰਟੇ',
  13572. d: 'ਇੱਕ ਦਿਨ',
  13573. dd: '%d ਦਿਨ',
  13574. M: 'ਇੱਕ ਮਹੀਨਾ',
  13575. MM: '%d ਮਹੀਨੇ',
  13576. y: 'ਇੱਕ ਸਾਲ',
  13577. yy: '%d ਸਾਲ',
  13578. },
  13579. preparse: function (string) {
  13580. return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {
  13581. return numberMap$e[match];
  13582. });
  13583. },
  13584. postformat: function (string) {
  13585. return string.replace(/\d/g, function (match) {
  13586. return symbolMap$f[match];
  13587. });
  13588. },
  13589. // Punjabi notation for meridiems are quite fuzzy in practice. While there exists
  13590. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
  13591. meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
  13592. meridiemHour: function (hour, meridiem) {
  13593. if (hour === 12) {
  13594. hour = 0;
  13595. }
  13596. if (meridiem === 'ਰਾਤ') {
  13597. return hour < 4 ? hour : hour + 12;
  13598. } else if (meridiem === 'ਸਵੇਰ') {
  13599. return hour;
  13600. } else if (meridiem === 'ਦੁਪਹਿਰ') {
  13601. return hour >= 10 ? hour : hour + 12;
  13602. } else if (meridiem === 'ਸ਼ਾਮ') {
  13603. return hour + 12;
  13604. }
  13605. },
  13606. meridiem: function (hour, minute, isLower) {
  13607. if (hour < 4) {
  13608. return 'ਰਾਤ';
  13609. } else if (hour < 10) {
  13610. return 'ਸਵੇਰ';
  13611. } else if (hour < 17) {
  13612. return 'ਦੁਪਹਿਰ';
  13613. } else if (hour < 20) {
  13614. return 'ਸ਼ਾਮ';
  13615. } else {
  13616. return 'ਰਾਤ';
  13617. }
  13618. },
  13619. week: {
  13620. dow: 0, // Sunday is the first day of the week.
  13621. doy: 6, // The week that contains Jan 6th is the first week of the year.
  13622. },
  13623. });
  13624. //! moment.js locale configuration
  13625. var monthsNominative =
  13626. 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split(
  13627. '_'
  13628. ),
  13629. monthsSubjective =
  13630. 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split(
  13631. '_'
  13632. ),
  13633. monthsParse$a = [
  13634. /^sty/i,
  13635. /^lut/i,
  13636. /^mar/i,
  13637. /^kwi/i,
  13638. /^maj/i,
  13639. /^cze/i,
  13640. /^lip/i,
  13641. /^sie/i,
  13642. /^wrz/i,
  13643. /^paź/i,
  13644. /^lis/i,
  13645. /^gru/i,
  13646. ];
  13647. function plural$3(n) {
  13648. return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1;
  13649. }
  13650. function translate$8(number, withoutSuffix, key) {
  13651. var result = number + ' ';
  13652. switch (key) {
  13653. case 'ss':
  13654. return result + (plural$3(number) ? 'sekundy' : 'sekund');
  13655. case 'm':
  13656. return withoutSuffix ? 'minuta' : 'minutę';
  13657. case 'mm':
  13658. return result + (plural$3(number) ? 'minuty' : 'minut');
  13659. case 'h':
  13660. return withoutSuffix ? 'godzina' : 'godzinę';
  13661. case 'hh':
  13662. return result + (plural$3(number) ? 'godziny' : 'godzin');
  13663. case 'ww':
  13664. return result + (plural$3(number) ? 'tygodnie' : 'tygodni');
  13665. case 'MM':
  13666. return result + (plural$3(number) ? 'miesiące' : 'miesięcy');
  13667. case 'yy':
  13668. return result + (plural$3(number) ? 'lata' : 'lat');
  13669. }
  13670. }
  13671. hooks.defineLocale('pl', {
  13672. months: function (momentToFormat, format) {
  13673. if (!momentToFormat) {
  13674. return monthsNominative;
  13675. } else if (/D MMMM/.test(format)) {
  13676. return monthsSubjective[momentToFormat.month()];
  13677. } else {
  13678. return monthsNominative[momentToFormat.month()];
  13679. }
  13680. },
  13681. monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
  13682. monthsParse: monthsParse$a,
  13683. longMonthsParse: monthsParse$a,
  13684. shortMonthsParse: monthsParse$a,
  13685. weekdays:
  13686. 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
  13687. weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),
  13688. weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
  13689. longDateFormat: {
  13690. LT: 'HH:mm',
  13691. LTS: 'HH:mm:ss',
  13692. L: 'DD.MM.YYYY',
  13693. LL: 'D MMMM YYYY',
  13694. LLL: 'D MMMM YYYY HH:mm',
  13695. LLLL: 'dddd, D MMMM YYYY HH:mm',
  13696. },
  13697. calendar: {
  13698. sameDay: '[Dziś o] LT',
  13699. nextDay: '[Jutro o] LT',
  13700. nextWeek: function () {
  13701. switch (this.day()) {
  13702. case 0:
  13703. return '[W niedzielę o] LT';
  13704. case 2:
  13705. return '[We wtorek o] LT';
  13706. case 3:
  13707. return '[W środę o] LT';
  13708. case 6:
  13709. return '[W sobotę o] LT';
  13710. default:
  13711. return '[W] dddd [o] LT';
  13712. }
  13713. },
  13714. lastDay: '[Wczoraj o] LT',
  13715. lastWeek: function () {
  13716. switch (this.day()) {
  13717. case 0:
  13718. return '[W zeszłą niedzielę o] LT';
  13719. case 3:
  13720. return '[W zeszłą środę o] LT';
  13721. case 6:
  13722. return '[W zeszłą sobotę o] LT';
  13723. default:
  13724. return '[W zeszły] dddd [o] LT';
  13725. }
  13726. },
  13727. sameElse: 'L',
  13728. },
  13729. relativeTime: {
  13730. future: 'za %s',
  13731. past: '%s temu',
  13732. s: 'kilka sekund',
  13733. ss: translate$8,
  13734. m: translate$8,
  13735. mm: translate$8,
  13736. h: translate$8,
  13737. hh: translate$8,
  13738. d: '1 dzień',
  13739. dd: '%d dni',
  13740. w: 'tydzień',
  13741. ww: translate$8,
  13742. M: 'miesiąc',
  13743. MM: translate$8,
  13744. y: 'rok',
  13745. yy: translate$8,
  13746. },
  13747. dayOfMonthOrdinalParse: /\d{1,2}\./,
  13748. ordinal: '%d.',
  13749. week: {
  13750. dow: 1, // Monday is the first day of the week.
  13751. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13752. },
  13753. });
  13754. //! moment.js locale configuration
  13755. hooks.defineLocale('pt-br', {
  13756. months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(
  13757. '_'
  13758. ),
  13759. monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
  13760. weekdays:
  13761. 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split(
  13762. '_'
  13763. ),
  13764. weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),
  13765. weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'),
  13766. weekdaysParseExact: true,
  13767. longDateFormat: {
  13768. LT: 'HH:mm',
  13769. LTS: 'HH:mm:ss',
  13770. L: 'DD/MM/YYYY',
  13771. LL: 'D [de] MMMM [de] YYYY',
  13772. LLL: 'D [de] MMMM [de] YYYY [às] HH:mm',
  13773. LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm',
  13774. },
  13775. calendar: {
  13776. sameDay: '[Hoje às] LT',
  13777. nextDay: '[Amanhã às] LT',
  13778. nextWeek: 'dddd [às] LT',
  13779. lastDay: '[Ontem às] LT',
  13780. lastWeek: function () {
  13781. return this.day() === 0 || this.day() === 6
  13782. ? '[Último] dddd [às] LT' // Saturday + Sunday
  13783. : '[Última] dddd [às] LT'; // Monday - Friday
  13784. },
  13785. sameElse: 'L',
  13786. },
  13787. relativeTime: {
  13788. future: 'em %s',
  13789. past: 'há %s',
  13790. s: 'poucos segundos',
  13791. ss: '%d segundos',
  13792. m: 'um minuto',
  13793. mm: '%d minutos',
  13794. h: 'uma hora',
  13795. hh: '%d horas',
  13796. d: 'um dia',
  13797. dd: '%d dias',
  13798. M: 'um mês',
  13799. MM: '%d meses',
  13800. y: 'um ano',
  13801. yy: '%d anos',
  13802. },
  13803. dayOfMonthOrdinalParse: /\d{1,2}º/,
  13804. ordinal: '%dº',
  13805. invalidDate: 'Data inválida',
  13806. });
  13807. //! moment.js locale configuration
  13808. hooks.defineLocale('pt', {
  13809. months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(
  13810. '_'
  13811. ),
  13812. monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
  13813. weekdays:
  13814. 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split(
  13815. '_'
  13816. ),
  13817. weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
  13818. weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
  13819. weekdaysParseExact: true,
  13820. longDateFormat: {
  13821. LT: 'HH:mm',
  13822. LTS: 'HH:mm:ss',
  13823. L: 'DD/MM/YYYY',
  13824. LL: 'D [de] MMMM [de] YYYY',
  13825. LLL: 'D [de] MMMM [de] YYYY HH:mm',
  13826. LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm',
  13827. },
  13828. calendar: {
  13829. sameDay: '[Hoje às] LT',
  13830. nextDay: '[Amanhã às] LT',
  13831. nextWeek: 'dddd [às] LT',
  13832. lastDay: '[Ontem às] LT',
  13833. lastWeek: function () {
  13834. return this.day() === 0 || this.day() === 6
  13835. ? '[Último] dddd [às] LT' // Saturday + Sunday
  13836. : '[Última] dddd [às] LT'; // Monday - Friday
  13837. },
  13838. sameElse: 'L',
  13839. },
  13840. relativeTime: {
  13841. future: 'em %s',
  13842. past: 'há %s',
  13843. s: 'segundos',
  13844. ss: '%d segundos',
  13845. m: 'um minuto',
  13846. mm: '%d minutos',
  13847. h: 'uma hora',
  13848. hh: '%d horas',
  13849. d: 'um dia',
  13850. dd: '%d dias',
  13851. w: 'uma semana',
  13852. ww: '%d semanas',
  13853. M: 'um mês',
  13854. MM: '%d meses',
  13855. y: 'um ano',
  13856. yy: '%d anos',
  13857. },
  13858. dayOfMonthOrdinalParse: /\d{1,2}º/,
  13859. ordinal: '%dº',
  13860. week: {
  13861. dow: 1, // Monday is the first day of the week.
  13862. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13863. },
  13864. });
  13865. //! moment.js locale configuration
  13866. function relativeTimeWithPlural$2(number, withoutSuffix, key) {
  13867. var format = {
  13868. ss: 'secunde',
  13869. mm: 'minute',
  13870. hh: 'ore',
  13871. dd: 'zile',
  13872. ww: 'săptămâni',
  13873. MM: 'luni',
  13874. yy: 'ani',
  13875. },
  13876. separator = ' ';
  13877. if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
  13878. separator = ' de ';
  13879. }
  13880. return number + separator + format[key];
  13881. }
  13882. hooks.defineLocale('ro', {
  13883. months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split(
  13884. '_'
  13885. ),
  13886. monthsShort:
  13887. 'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split(
  13888. '_'
  13889. ),
  13890. monthsParseExact: true,
  13891. weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
  13892. weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
  13893. weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
  13894. longDateFormat: {
  13895. LT: 'H:mm',
  13896. LTS: 'H:mm:ss',
  13897. L: 'DD.MM.YYYY',
  13898. LL: 'D MMMM YYYY',
  13899. LLL: 'D MMMM YYYY H:mm',
  13900. LLLL: 'dddd, D MMMM YYYY H:mm',
  13901. },
  13902. calendar: {
  13903. sameDay: '[azi la] LT',
  13904. nextDay: '[mâine la] LT',
  13905. nextWeek: 'dddd [la] LT',
  13906. lastDay: '[ieri la] LT',
  13907. lastWeek: '[fosta] dddd [la] LT',
  13908. sameElse: 'L',
  13909. },
  13910. relativeTime: {
  13911. future: 'peste %s',
  13912. past: '%s în urmă',
  13913. s: 'câteva secunde',
  13914. ss: relativeTimeWithPlural$2,
  13915. m: 'un minut',
  13916. mm: relativeTimeWithPlural$2,
  13917. h: 'o oră',
  13918. hh: relativeTimeWithPlural$2,
  13919. d: 'o zi',
  13920. dd: relativeTimeWithPlural$2,
  13921. w: 'o săptămână',
  13922. ww: relativeTimeWithPlural$2,
  13923. M: 'o lună',
  13924. MM: relativeTimeWithPlural$2,
  13925. y: 'un an',
  13926. yy: relativeTimeWithPlural$2,
  13927. },
  13928. week: {
  13929. dow: 1, // Monday is the first day of the week.
  13930. doy: 7, // The week that contains Jan 7th is the first week of the year.
  13931. },
  13932. });
  13933. //! moment.js locale configuration
  13934. function plural$4(word, num) {
  13935. var forms = word.split('_');
  13936. return num % 10 === 1 && num % 100 !== 11
  13937. ? forms[0]
  13938. : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
  13939. ? forms[1]
  13940. : forms[2];
  13941. }
  13942. function relativeTimeWithPlural$3(number, withoutSuffix, key) {
  13943. var format = {
  13944. ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
  13945. mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
  13946. hh: 'час_часа_часов',
  13947. dd: 'день_дня_дней',
  13948. ww: 'неделя_недели_недель',
  13949. MM: 'месяц_месяца_месяцев',
  13950. yy: 'год_года_лет',
  13951. };
  13952. if (key === 'm') {
  13953. return withoutSuffix ? 'минута' : 'минуту';
  13954. } else {
  13955. return number + ' ' + plural$4(format[key], +number);
  13956. }
  13957. }
  13958. var monthsParse$b = [
  13959. /^янв/i,
  13960. /^фев/i,
  13961. /^мар/i,
  13962. /^апр/i,
  13963. /^ма[йя]/i,
  13964. /^июн/i,
  13965. /^июл/i,
  13966. /^авг/i,
  13967. /^сен/i,
  13968. /^окт/i,
  13969. /^ноя/i,
  13970. /^дек/i,
  13971. ];
  13972. // http://new.gramota.ru/spravka/rules/139-prop : § 103
  13973. // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
  13974. // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
  13975. hooks.defineLocale('ru', {
  13976. months: {
  13977. format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split(
  13978. '_'
  13979. ),
  13980. standalone:
  13981. 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(
  13982. '_'
  13983. ),
  13984. },
  13985. monthsShort: {
  13986. // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку?
  13987. format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split(
  13988. '_'
  13989. ),
  13990. standalone:
  13991. 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split(
  13992. '_'
  13993. ),
  13994. },
  13995. weekdays: {
  13996. standalone:
  13997. 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split(
  13998. '_'
  13999. ),
  14000. format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split(
  14001. '_'
  14002. ),
  14003. isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/,
  14004. },
  14005. weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  14006. weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  14007. monthsParse: monthsParse$b,
  14008. longMonthsParse: monthsParse$b,
  14009. shortMonthsParse: monthsParse$b,
  14010. // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
  14011. monthsRegex:
  14012. /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  14013. // копия предыдущего
  14014. monthsShortRegex:
  14015. /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  14016. // полные названия с падежами
  14017. monthsStrictRegex:
  14018. /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,
  14019. // Выражение, которое соответствует только сокращённым формам
  14020. monthsShortStrictRegex:
  14021. /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
  14022. longDateFormat: {
  14023. LT: 'H:mm',
  14024. LTS: 'H:mm:ss',
  14025. L: 'DD.MM.YYYY',
  14026. LL: 'D MMMM YYYY г.',
  14027. LLL: 'D MMMM YYYY г., H:mm',
  14028. LLLL: 'dddd, D MMMM YYYY г., H:mm',
  14029. },
  14030. calendar: {
  14031. sameDay: '[Сегодня, в] LT',
  14032. nextDay: '[Завтра, в] LT',
  14033. lastDay: '[Вчера, в] LT',
  14034. nextWeek: function (now) {
  14035. if (now.week() !== this.week()) {
  14036. switch (this.day()) {
  14037. case 0:
  14038. return '[В следующее] dddd, [в] LT';
  14039. case 1:
  14040. case 2:
  14041. case 4:
  14042. return '[В следующий] dddd, [в] LT';
  14043. case 3:
  14044. case 5:
  14045. case 6:
  14046. return '[В следующую] dddd, [в] LT';
  14047. }
  14048. } else {
  14049. if (this.day() === 2) {
  14050. return '[Во] dddd, [в] LT';
  14051. } else {
  14052. return '[В] dddd, [в] LT';
  14053. }
  14054. }
  14055. },
  14056. lastWeek: function (now) {
  14057. if (now.week() !== this.week()) {
  14058. switch (this.day()) {
  14059. case 0:
  14060. return '[В прошлое] dddd, [в] LT';
  14061. case 1:
  14062. case 2:
  14063. case 4:
  14064. return '[В прошлый] dddd, [в] LT';
  14065. case 3:
  14066. case 5:
  14067. case 6:
  14068. return '[В прошлую] dddd, [в] LT';
  14069. }
  14070. } else {
  14071. if (this.day() === 2) {
  14072. return '[Во] dddd, [в] LT';
  14073. } else {
  14074. return '[В] dddd, [в] LT';
  14075. }
  14076. }
  14077. },
  14078. sameElse: 'L',
  14079. },
  14080. relativeTime: {
  14081. future: 'через %s',
  14082. past: '%s назад',
  14083. s: 'несколько секунд',
  14084. ss: relativeTimeWithPlural$3,
  14085. m: relativeTimeWithPlural$3,
  14086. mm: relativeTimeWithPlural$3,
  14087. h: 'час',
  14088. hh: relativeTimeWithPlural$3,
  14089. d: 'день',
  14090. dd: relativeTimeWithPlural$3,
  14091. w: 'неделя',
  14092. ww: relativeTimeWithPlural$3,
  14093. M: 'месяц',
  14094. MM: relativeTimeWithPlural$3,
  14095. y: 'год',
  14096. yy: relativeTimeWithPlural$3,
  14097. },
  14098. meridiemParse: /ночи|утра|дня|вечера/i,
  14099. isPM: function (input) {
  14100. return /^(дня|вечера)$/.test(input);
  14101. },
  14102. meridiem: function (hour, minute, isLower) {
  14103. if (hour < 4) {
  14104. return 'ночи';
  14105. } else if (hour < 12) {
  14106. return 'утра';
  14107. } else if (hour < 17) {
  14108. return 'дня';
  14109. } else {
  14110. return 'вечера';
  14111. }
  14112. },
  14113. dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/,
  14114. ordinal: function (number, period) {
  14115. switch (period) {
  14116. case 'M':
  14117. case 'd':
  14118. case 'DDD':
  14119. return number + '-й';
  14120. case 'D':
  14121. return number + '-го';
  14122. case 'w':
  14123. case 'W':
  14124. return number + '-я';
  14125. default:
  14126. return number;
  14127. }
  14128. },
  14129. week: {
  14130. dow: 1, // Monday is the first day of the week.
  14131. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14132. },
  14133. });
  14134. //! moment.js locale configuration
  14135. var months$9 = [
  14136. 'جنوري',
  14137. 'فيبروري',
  14138. 'مارچ',
  14139. 'اپريل',
  14140. 'مئي',
  14141. 'جون',
  14142. 'جولاءِ',
  14143. 'آگسٽ',
  14144. 'سيپٽمبر',
  14145. 'آڪٽوبر',
  14146. 'نومبر',
  14147. 'ڊسمبر',
  14148. ],
  14149. days$1 = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر'];
  14150. hooks.defineLocale('sd', {
  14151. months: months$9,
  14152. monthsShort: months$9,
  14153. weekdays: days$1,
  14154. weekdaysShort: days$1,
  14155. weekdaysMin: days$1,
  14156. longDateFormat: {
  14157. LT: 'HH:mm',
  14158. LTS: 'HH:mm:ss',
  14159. L: 'DD/MM/YYYY',
  14160. LL: 'D MMMM YYYY',
  14161. LLL: 'D MMMM YYYY HH:mm',
  14162. LLLL: 'dddd، D MMMM YYYY HH:mm',
  14163. },
  14164. meridiemParse: /صبح|شام/,
  14165. isPM: function (input) {
  14166. return 'شام' === input;
  14167. },
  14168. meridiem: function (hour, minute, isLower) {
  14169. if (hour < 12) {
  14170. return 'صبح';
  14171. }
  14172. return 'شام';
  14173. },
  14174. calendar: {
  14175. sameDay: '[اڄ] LT',
  14176. nextDay: '[سڀاڻي] LT',
  14177. nextWeek: 'dddd [اڳين هفتي تي] LT',
  14178. lastDay: '[ڪالهه] LT',
  14179. lastWeek: '[گزريل هفتي] dddd [تي] LT',
  14180. sameElse: 'L',
  14181. },
  14182. relativeTime: {
  14183. future: '%s پوء',
  14184. past: '%s اڳ',
  14185. s: 'چند سيڪنڊ',
  14186. ss: '%d سيڪنڊ',
  14187. m: 'هڪ منٽ',
  14188. mm: '%d منٽ',
  14189. h: 'هڪ ڪلاڪ',
  14190. hh: '%d ڪلاڪ',
  14191. d: 'هڪ ڏينهن',
  14192. dd: '%d ڏينهن',
  14193. M: 'هڪ مهينو',
  14194. MM: '%d مهينا',
  14195. y: 'هڪ سال',
  14196. yy: '%d سال',
  14197. },
  14198. preparse: function (string) {
  14199. return string.replace(/،/g, ',');
  14200. },
  14201. postformat: function (string) {
  14202. return string.replace(/,/g, '،');
  14203. },
  14204. week: {
  14205. dow: 1, // Monday is the first day of the week.
  14206. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14207. },
  14208. });
  14209. //! moment.js locale configuration
  14210. hooks.defineLocale('se', {
  14211. 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(
  14212. '_'
  14213. ),
  14214. monthsShort:
  14215. 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),
  14216. weekdays:
  14217. 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split(
  14218. '_'
  14219. ),
  14220. weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
  14221. weekdaysMin: 's_v_m_g_d_b_L'.split('_'),
  14222. longDateFormat: {
  14223. LT: 'HH:mm',
  14224. LTS: 'HH:mm:ss',
  14225. L: 'DD.MM.YYYY',
  14226. LL: 'MMMM D. [b.] YYYY',
  14227. LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm',
  14228. LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm',
  14229. },
  14230. calendar: {
  14231. sameDay: '[otne ti] LT',
  14232. nextDay: '[ihttin ti] LT',
  14233. nextWeek: 'dddd [ti] LT',
  14234. lastDay: '[ikte ti] LT',
  14235. lastWeek: '[ovddit] dddd [ti] LT',
  14236. sameElse: 'L',
  14237. },
  14238. relativeTime: {
  14239. future: '%s geažes',
  14240. past: 'maŋit %s',
  14241. s: 'moadde sekunddat',
  14242. ss: '%d sekunddat',
  14243. m: 'okta minuhta',
  14244. mm: '%d minuhtat',
  14245. h: 'okta diimmu',
  14246. hh: '%d diimmut',
  14247. d: 'okta beaivi',
  14248. dd: '%d beaivvit',
  14249. M: 'okta mánnu',
  14250. MM: '%d mánut',
  14251. y: 'okta jahki',
  14252. yy: '%d jagit',
  14253. },
  14254. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14255. ordinal: '%d.',
  14256. week: {
  14257. dow: 1, // Monday is the first day of the week.
  14258. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14259. },
  14260. });
  14261. //! moment.js locale configuration
  14262. /*jshint -W100*/
  14263. hooks.defineLocale('si', {
  14264. months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split(
  14265. '_'
  14266. ),
  14267. monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split(
  14268. '_'
  14269. ),
  14270. weekdays:
  14271. 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split(
  14272. '_'
  14273. ),
  14274. weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
  14275. weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
  14276. weekdaysParseExact: true,
  14277. longDateFormat: {
  14278. LT: 'a h:mm',
  14279. LTS: 'a h:mm:ss',
  14280. L: 'YYYY/MM/DD',
  14281. LL: 'YYYY MMMM D',
  14282. LLL: 'YYYY MMMM D, a h:mm',
  14283. LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss',
  14284. },
  14285. calendar: {
  14286. sameDay: '[අද] LT[ට]',
  14287. nextDay: '[හෙට] LT[ට]',
  14288. nextWeek: 'dddd LT[ට]',
  14289. lastDay: '[ඊයේ] LT[ට]',
  14290. lastWeek: '[පසුගිය] dddd LT[ට]',
  14291. sameElse: 'L',
  14292. },
  14293. relativeTime: {
  14294. future: '%sකින්',
  14295. past: '%sකට පෙර',
  14296. s: 'තත්පර කිහිපය',
  14297. ss: 'තත්පර %d',
  14298. m: 'මිනිත්තුව',
  14299. mm: 'මිනිත්තු %d',
  14300. h: 'පැය',
  14301. hh: 'පැය %d',
  14302. d: 'දිනය',
  14303. dd: 'දින %d',
  14304. M: 'මාසය',
  14305. MM: 'මාස %d',
  14306. y: 'වසර',
  14307. yy: 'වසර %d',
  14308. },
  14309. dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
  14310. ordinal: function (number) {
  14311. return number + ' වැනි';
  14312. },
  14313. meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
  14314. isPM: function (input) {
  14315. return input === 'ප.ව.' || input === 'පස් වරු';
  14316. },
  14317. meridiem: function (hours, minutes, isLower) {
  14318. if (hours > 11) {
  14319. return isLower ? 'ප.ව.' : 'පස් වරු';
  14320. } else {
  14321. return isLower ? 'පෙ.ව.' : 'පෙර වරු';
  14322. }
  14323. },
  14324. });
  14325. //! moment.js locale configuration
  14326. var months$a =
  14327. 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split(
  14328. '_'
  14329. ),
  14330. monthsShort$7 = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
  14331. function plural$5(n) {
  14332. return n > 1 && n < 5;
  14333. }
  14334. function translate$9(number, withoutSuffix, key, isFuture) {
  14335. var result = number + ' ';
  14336. switch (key) {
  14337. case 's': // a few seconds / in a few seconds / a few seconds ago
  14338. return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami';
  14339. case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
  14340. if (withoutSuffix || isFuture) {
  14341. return result + (plural$5(number) ? 'sekundy' : 'sekúnd');
  14342. } else {
  14343. return result + 'sekundami';
  14344. }
  14345. case 'm': // a minute / in a minute / a minute ago
  14346. return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou';
  14347. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  14348. if (withoutSuffix || isFuture) {
  14349. return result + (plural$5(number) ? 'minúty' : 'minút');
  14350. } else {
  14351. return result + 'minútami';
  14352. }
  14353. case 'h': // an hour / in an hour / an hour ago
  14354. return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
  14355. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  14356. if (withoutSuffix || isFuture) {
  14357. return result + (plural$5(number) ? 'hodiny' : 'hodín');
  14358. } else {
  14359. return result + 'hodinami';
  14360. }
  14361. case 'd': // a day / in a day / a day ago
  14362. return withoutSuffix || isFuture ? 'deň' : 'dňom';
  14363. case 'dd': // 9 days / in 9 days / 9 days ago
  14364. if (withoutSuffix || isFuture) {
  14365. return result + (plural$5(number) ? 'dni' : 'dní');
  14366. } else {
  14367. return result + 'dňami';
  14368. }
  14369. case 'M': // a month / in a month / a month ago
  14370. return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom';
  14371. case 'MM': // 9 months / in 9 months / 9 months ago
  14372. if (withoutSuffix || isFuture) {
  14373. return result + (plural$5(number) ? 'mesiace' : 'mesiacov');
  14374. } else {
  14375. return result + 'mesiacmi';
  14376. }
  14377. case 'y': // a year / in a year / a year ago
  14378. return withoutSuffix || isFuture ? 'rok' : 'rokom';
  14379. case 'yy': // 9 years / in 9 years / 9 years ago
  14380. if (withoutSuffix || isFuture) {
  14381. return result + (plural$5(number) ? 'roky' : 'rokov');
  14382. } else {
  14383. return result + 'rokmi';
  14384. }
  14385. }
  14386. }
  14387. hooks.defineLocale('sk', {
  14388. months: months$a,
  14389. monthsShort: monthsShort$7,
  14390. weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
  14391. weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'),
  14392. weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'),
  14393. longDateFormat: {
  14394. LT: 'H:mm',
  14395. LTS: 'H:mm:ss',
  14396. L: 'DD.MM.YYYY',
  14397. LL: 'D. MMMM YYYY',
  14398. LLL: 'D. MMMM YYYY H:mm',
  14399. LLLL: 'dddd D. MMMM YYYY H:mm',
  14400. },
  14401. calendar: {
  14402. sameDay: '[dnes o] LT',
  14403. nextDay: '[zajtra o] LT',
  14404. nextWeek: function () {
  14405. switch (this.day()) {
  14406. case 0:
  14407. return '[v nedeľu o] LT';
  14408. case 1:
  14409. case 2:
  14410. return '[v] dddd [o] LT';
  14411. case 3:
  14412. return '[v stredu o] LT';
  14413. case 4:
  14414. return '[vo štvrtok o] LT';
  14415. case 5:
  14416. return '[v piatok o] LT';
  14417. case 6:
  14418. return '[v sobotu o] LT';
  14419. }
  14420. },
  14421. lastDay: '[včera o] LT',
  14422. lastWeek: function () {
  14423. switch (this.day()) {
  14424. case 0:
  14425. return '[minulú nedeľu o] LT';
  14426. case 1:
  14427. case 2:
  14428. return '[minulý] dddd [o] LT';
  14429. case 3:
  14430. return '[minulú stredu o] LT';
  14431. case 4:
  14432. case 5:
  14433. return '[minulý] dddd [o] LT';
  14434. case 6:
  14435. return '[minulú sobotu o] LT';
  14436. }
  14437. },
  14438. sameElse: 'L',
  14439. },
  14440. relativeTime: {
  14441. future: 'za %s',
  14442. past: 'pred %s',
  14443. s: translate$9,
  14444. ss: translate$9,
  14445. m: translate$9,
  14446. mm: translate$9,
  14447. h: translate$9,
  14448. hh: translate$9,
  14449. d: translate$9,
  14450. dd: translate$9,
  14451. M: translate$9,
  14452. MM: translate$9,
  14453. y: translate$9,
  14454. yy: translate$9,
  14455. },
  14456. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14457. ordinal: '%d.',
  14458. week: {
  14459. dow: 1, // Monday is the first day of the week.
  14460. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14461. },
  14462. });
  14463. //! moment.js locale configuration
  14464. function processRelativeTime$7(number, withoutSuffix, key, isFuture) {
  14465. var result = number + ' ';
  14466. switch (key) {
  14467. case 's':
  14468. return withoutSuffix || isFuture
  14469. ? 'nekaj sekund'
  14470. : 'nekaj sekundami';
  14471. case 'ss':
  14472. if (number === 1) {
  14473. result += withoutSuffix ? 'sekundo' : 'sekundi';
  14474. } else if (number === 2) {
  14475. result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah';
  14476. } else if (number < 5) {
  14477. result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';
  14478. } else {
  14479. result += 'sekund';
  14480. }
  14481. return result;
  14482. case 'm':
  14483. return withoutSuffix ? 'ena minuta' : 'eno minuto';
  14484. case 'mm':
  14485. if (number === 1) {
  14486. result += withoutSuffix ? 'minuta' : 'minuto';
  14487. } else if (number === 2) {
  14488. result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
  14489. } else if (number < 5) {
  14490. result += withoutSuffix || isFuture ? 'minute' : 'minutami';
  14491. } else {
  14492. result += withoutSuffix || isFuture ? 'minut' : 'minutami';
  14493. }
  14494. return result;
  14495. case 'h':
  14496. return withoutSuffix ? 'ena ura' : 'eno uro';
  14497. case 'hh':
  14498. if (number === 1) {
  14499. result += withoutSuffix ? 'ura' : 'uro';
  14500. } else if (number === 2) {
  14501. result += withoutSuffix || isFuture ? 'uri' : 'urama';
  14502. } else if (number < 5) {
  14503. result += withoutSuffix || isFuture ? 'ure' : 'urami';
  14504. } else {
  14505. result += withoutSuffix || isFuture ? 'ur' : 'urami';
  14506. }
  14507. return result;
  14508. case 'd':
  14509. return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
  14510. case 'dd':
  14511. if (number === 1) {
  14512. result += withoutSuffix || isFuture ? 'dan' : 'dnem';
  14513. } else if (number === 2) {
  14514. result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
  14515. } else {
  14516. result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
  14517. }
  14518. return result;
  14519. case 'M':
  14520. return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
  14521. case 'MM':
  14522. if (number === 1) {
  14523. result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
  14524. } else if (number === 2) {
  14525. result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
  14526. } else if (number < 5) {
  14527. result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
  14528. } else {
  14529. result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
  14530. }
  14531. return result;
  14532. case 'y':
  14533. return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
  14534. case 'yy':
  14535. if (number === 1) {
  14536. result += withoutSuffix || isFuture ? 'leto' : 'letom';
  14537. } else if (number === 2) {
  14538. result += withoutSuffix || isFuture ? 'leti' : 'letoma';
  14539. } else if (number < 5) {
  14540. result += withoutSuffix || isFuture ? 'leta' : 'leti';
  14541. } else {
  14542. result += withoutSuffix || isFuture ? 'let' : 'leti';
  14543. }
  14544. return result;
  14545. }
  14546. }
  14547. hooks.defineLocale('sl', {
  14548. months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split(
  14549. '_'
  14550. ),
  14551. monthsShort:
  14552. 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split(
  14553. '_'
  14554. ),
  14555. monthsParseExact: true,
  14556. weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
  14557. weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
  14558. weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'),
  14559. weekdaysParseExact: true,
  14560. longDateFormat: {
  14561. LT: 'H:mm',
  14562. LTS: 'H:mm:ss',
  14563. L: 'DD. MM. YYYY',
  14564. LL: 'D. MMMM YYYY',
  14565. LLL: 'D. MMMM YYYY H:mm',
  14566. LLLL: 'dddd, D. MMMM YYYY H:mm',
  14567. },
  14568. calendar: {
  14569. sameDay: '[danes ob] LT',
  14570. nextDay: '[jutri ob] LT',
  14571. nextWeek: function () {
  14572. switch (this.day()) {
  14573. case 0:
  14574. return '[v] [nedeljo] [ob] LT';
  14575. case 3:
  14576. return '[v] [sredo] [ob] LT';
  14577. case 6:
  14578. return '[v] [soboto] [ob] LT';
  14579. case 1:
  14580. case 2:
  14581. case 4:
  14582. case 5:
  14583. return '[v] dddd [ob] LT';
  14584. }
  14585. },
  14586. lastDay: '[včeraj ob] LT',
  14587. lastWeek: function () {
  14588. switch (this.day()) {
  14589. case 0:
  14590. return '[prejšnjo] [nedeljo] [ob] LT';
  14591. case 3:
  14592. return '[prejšnjo] [sredo] [ob] LT';
  14593. case 6:
  14594. return '[prejšnjo] [soboto] [ob] LT';
  14595. case 1:
  14596. case 2:
  14597. case 4:
  14598. case 5:
  14599. return '[prejšnji] dddd [ob] LT';
  14600. }
  14601. },
  14602. sameElse: 'L',
  14603. },
  14604. relativeTime: {
  14605. future: 'čez %s',
  14606. past: 'pred %s',
  14607. s: processRelativeTime$7,
  14608. ss: processRelativeTime$7,
  14609. m: processRelativeTime$7,
  14610. mm: processRelativeTime$7,
  14611. h: processRelativeTime$7,
  14612. hh: processRelativeTime$7,
  14613. d: processRelativeTime$7,
  14614. dd: processRelativeTime$7,
  14615. M: processRelativeTime$7,
  14616. MM: processRelativeTime$7,
  14617. y: processRelativeTime$7,
  14618. yy: processRelativeTime$7,
  14619. },
  14620. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14621. ordinal: '%d.',
  14622. week: {
  14623. dow: 1, // Monday is the first day of the week.
  14624. doy: 7, // The week that contains Jan 7th is the first week of the year.
  14625. },
  14626. });
  14627. //! moment.js locale configuration
  14628. hooks.defineLocale('sq', {
  14629. months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split(
  14630. '_'
  14631. ),
  14632. monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
  14633. weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split(
  14634. '_'
  14635. ),
  14636. weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
  14637. weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'),
  14638. weekdaysParseExact: true,
  14639. meridiemParse: /PD|MD/,
  14640. isPM: function (input) {
  14641. return input.charAt(0) === 'M';
  14642. },
  14643. meridiem: function (hours, minutes, isLower) {
  14644. return hours < 12 ? 'PD' : 'MD';
  14645. },
  14646. longDateFormat: {
  14647. LT: 'HH:mm',
  14648. LTS: 'HH:mm:ss',
  14649. L: 'DD/MM/YYYY',
  14650. LL: 'D MMMM YYYY',
  14651. LLL: 'D MMMM YYYY HH:mm',
  14652. LLLL: 'dddd, D MMMM YYYY HH:mm',
  14653. },
  14654. calendar: {
  14655. sameDay: '[Sot në] LT',
  14656. nextDay: '[Nesër në] LT',
  14657. nextWeek: 'dddd [në] LT',
  14658. lastDay: '[Dje në] LT',
  14659. lastWeek: 'dddd [e kaluar në] LT',
  14660. sameElse: 'L',
  14661. },
  14662. relativeTime: {
  14663. future: 'në %s',
  14664. past: '%s më parë',
  14665. s: 'disa sekonda',
  14666. ss: '%d sekonda',
  14667. m: 'një minutë',
  14668. mm: '%d minuta',
  14669. h: 'një orë',
  14670. hh: '%d orë',
  14671. d: 'një ditë',
  14672. dd: '%d ditë',
  14673. M: 'një muaj',
  14674. MM: '%d muaj',
  14675. y: 'një vit',
  14676. yy: '%d vite',
  14677. },
  14678. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14679. ordinal: '%d.',
  14680. week: {
  14681. dow: 1, // Monday is the first day of the week.
  14682. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14683. },
  14684. });
  14685. //! moment.js locale configuration
  14686. var translator$1 = {
  14687. words: {
  14688. //Different grammatical cases
  14689. ss: ['секунда', 'секунде', 'секунди'],
  14690. m: ['један минут', 'једног минута'],
  14691. mm: ['минут', 'минута', 'минута'],
  14692. h: ['један сат', 'једног сата'],
  14693. hh: ['сат', 'сата', 'сати'],
  14694. d: ['један дан', 'једног дана'],
  14695. dd: ['дан', 'дана', 'дана'],
  14696. M: ['један месец', 'једног месеца'],
  14697. MM: ['месец', 'месеца', 'месеци'],
  14698. y: ['једну годину', 'једне године'],
  14699. yy: ['годину', 'године', 'година'],
  14700. },
  14701. correctGrammaticalCase: function (number, wordKey) {
  14702. if (
  14703. number % 10 >= 1 &&
  14704. number % 10 <= 4 &&
  14705. (number % 100 < 10 || number % 100 >= 20)
  14706. ) {
  14707. return number % 10 === 1 ? wordKey[0] : wordKey[1];
  14708. }
  14709. return wordKey[2];
  14710. },
  14711. translate: function (number, withoutSuffix, key, isFuture) {
  14712. var wordKey = translator$1.words[key],
  14713. word;
  14714. if (key.length === 1) {
  14715. // Nominativ
  14716. if (key === 'y' && withoutSuffix) return 'једна година';
  14717. return isFuture || withoutSuffix ? wordKey[0] : wordKey[1];
  14718. }
  14719. word = translator$1.correctGrammaticalCase(number, wordKey);
  14720. // Nominativ
  14721. if (key === 'yy' && withoutSuffix && word === 'годину') {
  14722. return number + ' година';
  14723. }
  14724. return number + ' ' + word;
  14725. },
  14726. };
  14727. hooks.defineLocale('sr-cyrl', {
  14728. months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split(
  14729. '_'
  14730. ),
  14731. monthsShort:
  14732. 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'),
  14733. monthsParseExact: true,
  14734. weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
  14735. weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
  14736. weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),
  14737. weekdaysParseExact: true,
  14738. longDateFormat: {
  14739. LT: 'H:mm',
  14740. LTS: 'H:mm:ss',
  14741. L: 'D. M. YYYY.',
  14742. LL: 'D. MMMM YYYY.',
  14743. LLL: 'D. MMMM YYYY. H:mm',
  14744. LLLL: 'dddd, D. MMMM YYYY. H:mm',
  14745. },
  14746. calendar: {
  14747. sameDay: '[данас у] LT',
  14748. nextDay: '[сутра у] LT',
  14749. nextWeek: function () {
  14750. switch (this.day()) {
  14751. case 0:
  14752. return '[у] [недељу] [у] LT';
  14753. case 3:
  14754. return '[у] [среду] [у] LT';
  14755. case 6:
  14756. return '[у] [суботу] [у] LT';
  14757. case 1:
  14758. case 2:
  14759. case 4:
  14760. case 5:
  14761. return '[у] dddd [у] LT';
  14762. }
  14763. },
  14764. lastDay: '[јуче у] LT',
  14765. lastWeek: function () {
  14766. var lastWeekDays = [
  14767. '[прошле] [недеље] [у] LT',
  14768. '[прошлог] [понедељка] [у] LT',
  14769. '[прошлог] [уторка] [у] LT',
  14770. '[прошле] [среде] [у] LT',
  14771. '[прошлог] [четвртка] [у] LT',
  14772. '[прошлог] [петка] [у] LT',
  14773. '[прошле] [суботе] [у] LT',
  14774. ];
  14775. return lastWeekDays[this.day()];
  14776. },
  14777. sameElse: 'L',
  14778. },
  14779. relativeTime: {
  14780. future: 'за %s',
  14781. past: 'пре %s',
  14782. s: 'неколико секунди',
  14783. ss: translator$1.translate,
  14784. m: translator$1.translate,
  14785. mm: translator$1.translate,
  14786. h: translator$1.translate,
  14787. hh: translator$1.translate,
  14788. d: translator$1.translate,
  14789. dd: translator$1.translate,
  14790. M: translator$1.translate,
  14791. MM: translator$1.translate,
  14792. y: translator$1.translate,
  14793. yy: translator$1.translate,
  14794. },
  14795. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14796. ordinal: '%d.',
  14797. week: {
  14798. dow: 1, // Monday is the first day of the week.
  14799. doy: 7, // The week that contains Jan 1st is the first week of the year.
  14800. },
  14801. });
  14802. //! moment.js locale configuration
  14803. var translator$2 = {
  14804. words: {
  14805. //Different grammatical cases
  14806. ss: ['sekunda', 'sekunde', 'sekundi'],
  14807. m: ['jedan minut', 'jednog minuta'],
  14808. mm: ['minut', 'minuta', 'minuta'],
  14809. h: ['jedan sat', 'jednog sata'],
  14810. hh: ['sat', 'sata', 'sati'],
  14811. d: ['jedan dan', 'jednog dana'],
  14812. dd: ['dan', 'dana', 'dana'],
  14813. M: ['jedan mesec', 'jednog meseca'],
  14814. MM: ['mesec', 'meseca', 'meseci'],
  14815. y: ['jednu godinu', 'jedne godine'],
  14816. yy: ['godinu', 'godine', 'godina'],
  14817. },
  14818. correctGrammaticalCase: function (number, wordKey) {
  14819. if (
  14820. number % 10 >= 1 &&
  14821. number % 10 <= 4 &&
  14822. (number % 100 < 10 || number % 100 >= 20)
  14823. ) {
  14824. return number % 10 === 1 ? wordKey[0] : wordKey[1];
  14825. }
  14826. return wordKey[2];
  14827. },
  14828. translate: function (number, withoutSuffix, key, isFuture) {
  14829. var wordKey = translator$2.words[key],
  14830. word;
  14831. if (key.length === 1) {
  14832. // Nominativ
  14833. if (key === 'y' && withoutSuffix) return 'jedna godina';
  14834. return isFuture || withoutSuffix ? wordKey[0] : wordKey[1];
  14835. }
  14836. word = translator$2.correctGrammaticalCase(number, wordKey);
  14837. // Nominativ
  14838. if (key === 'yy' && withoutSuffix && word === 'godinu') {
  14839. return number + ' godina';
  14840. }
  14841. return number + ' ' + word;
  14842. },
  14843. };
  14844. hooks.defineLocale('sr', {
  14845. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(
  14846. '_'
  14847. ),
  14848. monthsShort:
  14849. 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
  14850. monthsParseExact: true,
  14851. weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split(
  14852. '_'
  14853. ),
  14854. weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
  14855. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  14856. weekdaysParseExact: true,
  14857. longDateFormat: {
  14858. LT: 'H:mm',
  14859. LTS: 'H:mm:ss',
  14860. L: 'D. M. YYYY.',
  14861. LL: 'D. MMMM YYYY.',
  14862. LLL: 'D. MMMM YYYY. H:mm',
  14863. LLLL: 'dddd, D. MMMM YYYY. H:mm',
  14864. },
  14865. calendar: {
  14866. sameDay: '[danas u] LT',
  14867. nextDay: '[sutra u] LT',
  14868. nextWeek: function () {
  14869. switch (this.day()) {
  14870. case 0:
  14871. return '[u] [nedelju] [u] LT';
  14872. case 3:
  14873. return '[u] [sredu] [u] LT';
  14874. case 6:
  14875. return '[u] [subotu] [u] LT';
  14876. case 1:
  14877. case 2:
  14878. case 4:
  14879. case 5:
  14880. return '[u] dddd [u] LT';
  14881. }
  14882. },
  14883. lastDay: '[juče u] LT',
  14884. lastWeek: function () {
  14885. var lastWeekDays = [
  14886. '[prošle] [nedelje] [u] LT',
  14887. '[prošlog] [ponedeljka] [u] LT',
  14888. '[prošlog] [utorka] [u] LT',
  14889. '[prošle] [srede] [u] LT',
  14890. '[prošlog] [četvrtka] [u] LT',
  14891. '[prošlog] [petka] [u] LT',
  14892. '[prošle] [subote] [u] LT',
  14893. ];
  14894. return lastWeekDays[this.day()];
  14895. },
  14896. sameElse: 'L',
  14897. },
  14898. relativeTime: {
  14899. future: 'za %s',
  14900. past: 'pre %s',
  14901. s: 'nekoliko sekundi',
  14902. ss: translator$2.translate,
  14903. m: translator$2.translate,
  14904. mm: translator$2.translate,
  14905. h: translator$2.translate,
  14906. hh: translator$2.translate,
  14907. d: translator$2.translate,
  14908. dd: translator$2.translate,
  14909. M: translator$2.translate,
  14910. MM: translator$2.translate,
  14911. y: translator$2.translate,
  14912. yy: translator$2.translate,
  14913. },
  14914. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14915. ordinal: '%d.',
  14916. week: {
  14917. dow: 1, // Monday is the first day of the week.
  14918. doy: 7, // The week that contains Jan 7th is the first week of the year.
  14919. },
  14920. });
  14921. //! moment.js locale configuration
  14922. hooks.defineLocale('ss', {
  14923. months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split(
  14924. '_'
  14925. ),
  14926. monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
  14927. weekdays:
  14928. 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split(
  14929. '_'
  14930. ),
  14931. weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
  14932. weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
  14933. weekdaysParseExact: true,
  14934. longDateFormat: {
  14935. LT: 'h:mm A',
  14936. LTS: 'h:mm:ss A',
  14937. L: 'DD/MM/YYYY',
  14938. LL: 'D MMMM YYYY',
  14939. LLL: 'D MMMM YYYY h:mm A',
  14940. LLLL: 'dddd, D MMMM YYYY h:mm A',
  14941. },
  14942. calendar: {
  14943. sameDay: '[Namuhla nga] LT',
  14944. nextDay: '[Kusasa nga] LT',
  14945. nextWeek: 'dddd [nga] LT',
  14946. lastDay: '[Itolo nga] LT',
  14947. lastWeek: 'dddd [leliphelile] [nga] LT',
  14948. sameElse: 'L',
  14949. },
  14950. relativeTime: {
  14951. future: 'nga %s',
  14952. past: 'wenteka nga %s',
  14953. s: 'emizuzwana lomcane',
  14954. ss: '%d mzuzwana',
  14955. m: 'umzuzu',
  14956. mm: '%d emizuzu',
  14957. h: 'lihora',
  14958. hh: '%d emahora',
  14959. d: 'lilanga',
  14960. dd: '%d emalanga',
  14961. M: 'inyanga',
  14962. MM: '%d tinyanga',
  14963. y: 'umnyaka',
  14964. yy: '%d iminyaka',
  14965. },
  14966. meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
  14967. meridiem: function (hours, minutes, isLower) {
  14968. if (hours < 11) {
  14969. return 'ekuseni';
  14970. } else if (hours < 15) {
  14971. return 'emini';
  14972. } else if (hours < 19) {
  14973. return 'entsambama';
  14974. } else {
  14975. return 'ebusuku';
  14976. }
  14977. },
  14978. meridiemHour: function (hour, meridiem) {
  14979. if (hour === 12) {
  14980. hour = 0;
  14981. }
  14982. if (meridiem === 'ekuseni') {
  14983. return hour;
  14984. } else if (meridiem === 'emini') {
  14985. return hour >= 11 ? hour : hour + 12;
  14986. } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {
  14987. if (hour === 0) {
  14988. return 0;
  14989. }
  14990. return hour + 12;
  14991. }
  14992. },
  14993. dayOfMonthOrdinalParse: /\d{1,2}/,
  14994. ordinal: '%d',
  14995. week: {
  14996. dow: 1, // Monday is the first day of the week.
  14997. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14998. },
  14999. });
  15000. //! moment.js locale configuration
  15001. hooks.defineLocale('sv', {
  15002. months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split(
  15003. '_'
  15004. ),
  15005. monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  15006. weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
  15007. weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
  15008. weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),
  15009. longDateFormat: {
  15010. LT: 'HH:mm',
  15011. LTS: 'HH:mm:ss',
  15012. L: 'YYYY-MM-DD',
  15013. LL: 'D MMMM YYYY',
  15014. LLL: 'D MMMM YYYY [kl.] HH:mm',
  15015. LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',
  15016. lll: 'D MMM YYYY HH:mm',
  15017. llll: 'ddd D MMM YYYY HH:mm',
  15018. },
  15019. calendar: {
  15020. sameDay: '[Idag] LT',
  15021. nextDay: '[Imorgon] LT',
  15022. lastDay: '[Igår] LT',
  15023. nextWeek: '[På] dddd LT',
  15024. lastWeek: '[I] dddd[s] LT',
  15025. sameElse: 'L',
  15026. },
  15027. relativeTime: {
  15028. future: 'om %s',
  15029. past: 'för %s sedan',
  15030. s: 'några sekunder',
  15031. ss: '%d sekunder',
  15032. m: 'en minut',
  15033. mm: '%d minuter',
  15034. h: 'en timme',
  15035. hh: '%d timmar',
  15036. d: 'en dag',
  15037. dd: '%d dagar',
  15038. M: 'en månad',
  15039. MM: '%d månader',
  15040. y: 'ett år',
  15041. yy: '%d år',
  15042. },
  15043. dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/,
  15044. ordinal: function (number) {
  15045. var b = number % 10,
  15046. output =
  15047. ~~((number % 100) / 10) === 1
  15048. ? ':e'
  15049. : b === 1
  15050. ? ':a'
  15051. : b === 2
  15052. ? ':a'
  15053. : b === 3
  15054. ? ':e'
  15055. : ':e';
  15056. return number + output;
  15057. },
  15058. week: {
  15059. dow: 1, // Monday is the first day of the week.
  15060. doy: 4, // The week that contains Jan 4th is the first week of the year.
  15061. },
  15062. });
  15063. //! moment.js locale configuration
  15064. hooks.defineLocale('sw', {
  15065. months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split(
  15066. '_'
  15067. ),
  15068. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
  15069. weekdays:
  15070. 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split(
  15071. '_'
  15072. ),
  15073. weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
  15074. weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
  15075. weekdaysParseExact: true,
  15076. longDateFormat: {
  15077. LT: 'hh:mm A',
  15078. LTS: 'HH:mm:ss',
  15079. L: 'DD.MM.YYYY',
  15080. LL: 'D MMMM YYYY',
  15081. LLL: 'D MMMM YYYY HH:mm',
  15082. LLLL: 'dddd, D MMMM YYYY HH:mm',
  15083. },
  15084. calendar: {
  15085. sameDay: '[leo saa] LT',
  15086. nextDay: '[kesho saa] LT',
  15087. nextWeek: '[wiki ijayo] dddd [saat] LT',
  15088. lastDay: '[jana] LT',
  15089. lastWeek: '[wiki iliyopita] dddd [saat] LT',
  15090. sameElse: 'L',
  15091. },
  15092. relativeTime: {
  15093. future: '%s baadaye',
  15094. past: 'tokea %s',
  15095. s: 'hivi punde',
  15096. ss: 'sekunde %d',
  15097. m: 'dakika moja',
  15098. mm: 'dakika %d',
  15099. h: 'saa limoja',
  15100. hh: 'masaa %d',
  15101. d: 'siku moja',
  15102. dd: 'siku %d',
  15103. M: 'mwezi mmoja',
  15104. MM: 'miezi %d',
  15105. y: 'mwaka mmoja',
  15106. yy: 'miaka %d',
  15107. },
  15108. week: {
  15109. dow: 1, // Monday is the first day of the week.
  15110. doy: 7, // The week that contains Jan 7th is the first week of the year.
  15111. },
  15112. });
  15113. //! moment.js locale configuration
  15114. var symbolMap$g = {
  15115. 1: '௧',
  15116. 2: '௨',
  15117. 3: '௩',
  15118. 4: '௪',
  15119. 5: '௫',
  15120. 6: '௬',
  15121. 7: '௭',
  15122. 8: '௮',
  15123. 9: '௯',
  15124. 0: '௦',
  15125. },
  15126. numberMap$f = {
  15127. '௧': '1',
  15128. '௨': '2',
  15129. '௩': '3',
  15130. '௪': '4',
  15131. '௫': '5',
  15132. '௬': '6',
  15133. '௭': '7',
  15134. '௮': '8',
  15135. '௯': '9',
  15136. '௦': '0',
  15137. };
  15138. hooks.defineLocale('ta', {
  15139. months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(
  15140. '_'
  15141. ),
  15142. monthsShort:
  15143. 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(
  15144. '_'
  15145. ),
  15146. weekdays:
  15147. 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split(
  15148. '_'
  15149. ),
  15150. weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split(
  15151. '_'
  15152. ),
  15153. weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
  15154. longDateFormat: {
  15155. LT: 'HH:mm',
  15156. LTS: 'HH:mm:ss',
  15157. L: 'DD/MM/YYYY',
  15158. LL: 'D MMMM YYYY',
  15159. LLL: 'D MMMM YYYY, HH:mm',
  15160. LLLL: 'dddd, D MMMM YYYY, HH:mm',
  15161. },
  15162. calendar: {
  15163. sameDay: '[இன்று] LT',
  15164. nextDay: '[நாளை] LT',
  15165. nextWeek: 'dddd, LT',
  15166. lastDay: '[நேற்று] LT',
  15167. lastWeek: '[கடந்த வாரம்] dddd, LT',
  15168. sameElse: 'L',
  15169. },
  15170. relativeTime: {
  15171. future: '%s இல்',
  15172. past: '%s முன்',
  15173. s: 'ஒரு சில விநாடிகள்',
  15174. ss: '%d விநாடிகள்',
  15175. m: 'ஒரு நிமிடம்',
  15176. mm: '%d நிமிடங்கள்',
  15177. h: 'ஒரு மணி நேரம்',
  15178. hh: '%d மணி நேரம்',
  15179. d: 'ஒரு நாள்',
  15180. dd: '%d நாட்கள்',
  15181. M: 'ஒரு மாதம்',
  15182. MM: '%d மாதங்கள்',
  15183. y: 'ஒரு வருடம்',
  15184. yy: '%d ஆண்டுகள்',
  15185. },
  15186. dayOfMonthOrdinalParse: /\d{1,2}வது/,
  15187. ordinal: function (number) {
  15188. return number + 'வது';
  15189. },
  15190. preparse: function (string) {
  15191. return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
  15192. return numberMap$f[match];
  15193. });
  15194. },
  15195. postformat: function (string) {
  15196. return string.replace(/\d/g, function (match) {
  15197. return symbolMap$g[match];
  15198. });
  15199. },
  15200. // refer http://ta.wikipedia.org/s/1er1
  15201. meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
  15202. meridiem: function (hour, minute, isLower) {
  15203. if (hour < 2) {
  15204. return ' யாமம்';
  15205. } else if (hour < 6) {
  15206. return ' வைகறை'; // வைகறை
  15207. } else if (hour < 10) {
  15208. return ' காலை'; // காலை
  15209. } else if (hour < 14) {
  15210. return ' நண்பகல்'; // நண்பகல்
  15211. } else if (hour < 18) {
  15212. return ' எற்பாடு'; // எற்பாடு
  15213. } else if (hour < 22) {
  15214. return ' மாலை'; // மாலை
  15215. } else {
  15216. return ' யாமம்';
  15217. }
  15218. },
  15219. meridiemHour: function (hour, meridiem) {
  15220. if (hour === 12) {
  15221. hour = 0;
  15222. }
  15223. if (meridiem === 'யாமம்') {
  15224. return hour < 2 ? hour : hour + 12;
  15225. } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {
  15226. return hour;
  15227. } else if (meridiem === 'நண்பகல்') {
  15228. return hour >= 10 ? hour : hour + 12;
  15229. } else {
  15230. return hour + 12;
  15231. }
  15232. },
  15233. week: {
  15234. dow: 0, // Sunday is the first day of the week.
  15235. doy: 6, // The week that contains Jan 6th is the first week of the year.
  15236. },
  15237. });
  15238. //! moment.js locale configuration
  15239. hooks.defineLocale('te', {
  15240. months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split(
  15241. '_'
  15242. ),
  15243. monthsShort:
  15244. 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split(
  15245. '_'
  15246. ),
  15247. monthsParseExact: true,
  15248. weekdays:
  15249. 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split(
  15250. '_'
  15251. ),
  15252. weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
  15253. weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
  15254. longDateFormat: {
  15255. LT: 'A h:mm',
  15256. LTS: 'A h:mm:ss',
  15257. L: 'DD/MM/YYYY',
  15258. LL: 'D MMMM YYYY',
  15259. LLL: 'D MMMM YYYY, A h:mm',
  15260. LLLL: 'dddd, D MMMM YYYY, A h:mm',
  15261. },
  15262. calendar: {
  15263. sameDay: '[నేడు] LT',
  15264. nextDay: '[రేపు] LT',
  15265. nextWeek: 'dddd, LT',
  15266. lastDay: '[నిన్న] LT',
  15267. lastWeek: '[గత] dddd, LT',
  15268. sameElse: 'L',
  15269. },
  15270. relativeTime: {
  15271. future: '%s లో',
  15272. past: '%s క్రితం',
  15273. s: 'కొన్ని క్షణాలు',
  15274. ss: '%d సెకన్లు',
  15275. m: 'ఒక నిమిషం',
  15276. mm: '%d నిమిషాలు',
  15277. h: 'ఒక గంట',
  15278. hh: '%d గంటలు',
  15279. d: 'ఒక రోజు',
  15280. dd: '%d రోజులు',
  15281. M: 'ఒక నెల',
  15282. MM: '%d నెలలు',
  15283. y: 'ఒక సంవత్సరం',
  15284. yy: '%d సంవత్సరాలు',
  15285. },
  15286. dayOfMonthOrdinalParse: /\d{1,2}వ/,
  15287. ordinal: '%dవ',
  15288. meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
  15289. meridiemHour: function (hour, meridiem) {
  15290. if (hour === 12) {
  15291. hour = 0;
  15292. }
  15293. if (meridiem === 'రాత్రి') {
  15294. return hour < 4 ? hour : hour + 12;
  15295. } else if (meridiem === 'ఉదయం') {
  15296. return hour;
  15297. } else if (meridiem === 'మధ్యాహ్నం') {
  15298. return hour >= 10 ? hour : hour + 12;
  15299. } else if (meridiem === 'సాయంత్రం') {
  15300. return hour + 12;
  15301. }
  15302. },
  15303. meridiem: function (hour, minute, isLower) {
  15304. if (hour < 4) {
  15305. return 'రాత్రి';
  15306. } else if (hour < 10) {
  15307. return 'ఉదయం';
  15308. } else if (hour < 17) {
  15309. return 'మధ్యాహ్నం';
  15310. } else if (hour < 20) {
  15311. return 'సాయంత్రం';
  15312. } else {
  15313. return 'రాత్రి';
  15314. }
  15315. },
  15316. week: {
  15317. dow: 0, // Sunday is the first day of the week.
  15318. doy: 6, // The week that contains Jan 6th is the first week of the year.
  15319. },
  15320. });
  15321. //! moment.js locale configuration
  15322. hooks.defineLocale('tet', {
  15323. months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split(
  15324. '_'
  15325. ),
  15326. monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
  15327. weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'),
  15328. weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'),
  15329. weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'),
  15330. longDateFormat: {
  15331. LT: 'HH:mm',
  15332. LTS: 'HH:mm:ss',
  15333. L: 'DD/MM/YYYY',
  15334. LL: 'D MMMM YYYY',
  15335. LLL: 'D MMMM YYYY HH:mm',
  15336. LLLL: 'dddd, D MMMM YYYY HH:mm',
  15337. },
  15338. calendar: {
  15339. sameDay: '[Ohin iha] LT',
  15340. nextDay: '[Aban iha] LT',
  15341. nextWeek: 'dddd [iha] LT',
  15342. lastDay: '[Horiseik iha] LT',
  15343. lastWeek: 'dddd [semana kotuk] [iha] LT',
  15344. sameElse: 'L',
  15345. },
  15346. relativeTime: {
  15347. future: 'iha %s',
  15348. past: '%s liuba',
  15349. s: 'segundu balun',
  15350. ss: 'segundu %d',
  15351. m: 'minutu ida',
  15352. mm: 'minutu %d',
  15353. h: 'oras ida',
  15354. hh: 'oras %d',
  15355. d: 'loron ida',
  15356. dd: 'loron %d',
  15357. M: 'fulan ida',
  15358. MM: 'fulan %d',
  15359. y: 'tinan ida',
  15360. yy: 'tinan %d',
  15361. },
  15362. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  15363. ordinal: function (number) {
  15364. var b = number % 10,
  15365. output =
  15366. ~~((number % 100) / 10) === 1
  15367. ? 'th'
  15368. : b === 1
  15369. ? 'st'
  15370. : b === 2
  15371. ? 'nd'
  15372. : b === 3
  15373. ? 'rd'
  15374. : 'th';
  15375. return number + output;
  15376. },
  15377. week: {
  15378. dow: 1, // Monday is the first day of the week.
  15379. doy: 4, // The week that contains Jan 4th is the first week of the year.
  15380. },
  15381. });
  15382. //! moment.js locale configuration
  15383. var suffixes$3 = {
  15384. 0: '-ум',
  15385. 1: '-ум',
  15386. 2: '-юм',
  15387. 3: '-юм',
  15388. 4: '-ум',
  15389. 5: '-ум',
  15390. 6: '-ум',
  15391. 7: '-ум',
  15392. 8: '-ум',
  15393. 9: '-ум',
  15394. 10: '-ум',
  15395. 12: '-ум',
  15396. 13: '-ум',
  15397. 20: '-ум',
  15398. 30: '-юм',
  15399. 40: '-ум',
  15400. 50: '-ум',
  15401. 60: '-ум',
  15402. 70: '-ум',
  15403. 80: '-ум',
  15404. 90: '-ум',
  15405. 100: '-ум',
  15406. };
  15407. hooks.defineLocale('tg', {
  15408. months: {
  15409. format: 'январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри'.split(
  15410. '_'
  15411. ),
  15412. standalone:
  15413. 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
  15414. '_'
  15415. ),
  15416. },
  15417. monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
  15418. weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split(
  15419. '_'
  15420. ),
  15421. weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'),
  15422. weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'),
  15423. longDateFormat: {
  15424. LT: 'HH:mm',
  15425. LTS: 'HH:mm:ss',
  15426. L: 'DD.MM.YYYY',
  15427. LL: 'D MMMM YYYY',
  15428. LLL: 'D MMMM YYYY HH:mm',
  15429. LLLL: 'dddd, D MMMM YYYY HH:mm',
  15430. },
  15431. calendar: {
  15432. sameDay: '[Имрӯз соати] LT',
  15433. nextDay: '[Фардо соати] LT',
  15434. lastDay: '[Дирӯз соати] LT',
  15435. nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT',
  15436. lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT',
  15437. sameElse: 'L',
  15438. },
  15439. relativeTime: {
  15440. future: 'баъди %s',
  15441. past: '%s пеш',
  15442. s: 'якчанд сония',
  15443. m: 'як дақиқа',
  15444. mm: '%d дақиқа',
  15445. h: 'як соат',
  15446. hh: '%d соат',
  15447. d: 'як рӯз',
  15448. dd: '%d рӯз',
  15449. M: 'як моҳ',
  15450. MM: '%d моҳ',
  15451. y: 'як сол',
  15452. yy: '%d сол',
  15453. },
  15454. meridiemParse: /шаб|субҳ|рӯз|бегоҳ/,
  15455. meridiemHour: function (hour, meridiem) {
  15456. if (hour === 12) {
  15457. hour = 0;
  15458. }
  15459. if (meridiem === 'шаб') {
  15460. return hour < 4 ? hour : hour + 12;
  15461. } else if (meridiem === 'субҳ') {
  15462. return hour;
  15463. } else if (meridiem === 'рӯз') {
  15464. return hour >= 11 ? hour : hour + 12;
  15465. } else if (meridiem === 'бегоҳ') {
  15466. return hour + 12;
  15467. }
  15468. },
  15469. meridiem: function (hour, minute, isLower) {
  15470. if (hour < 4) {
  15471. return 'шаб';
  15472. } else if (hour < 11) {
  15473. return 'субҳ';
  15474. } else if (hour < 16) {
  15475. return 'рӯз';
  15476. } else if (hour < 19) {
  15477. return 'бегоҳ';
  15478. } else {
  15479. return 'шаб';
  15480. }
  15481. },
  15482. dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/,
  15483. ordinal: function (number) {
  15484. var a = number % 10,
  15485. b = number >= 100 ? 100 : null;
  15486. return number + (suffixes$3[number] || suffixes$3[a] || suffixes$3[b]);
  15487. },
  15488. week: {
  15489. dow: 1, // Monday is the first day of the week.
  15490. doy: 7, // The week that contains Jan 1th is the first week of the year.
  15491. },
  15492. });
  15493. //! moment.js locale configuration
  15494. hooks.defineLocale('th', {
  15495. months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split(
  15496. '_'
  15497. ),
  15498. monthsShort:
  15499. 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split(
  15500. '_'
  15501. ),
  15502. monthsParseExact: true,
  15503. weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
  15504. weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
  15505. weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
  15506. weekdaysParseExact: true,
  15507. longDateFormat: {
  15508. LT: 'H:mm',
  15509. LTS: 'H:mm:ss',
  15510. L: 'DD/MM/YYYY',
  15511. LL: 'D MMMM YYYY',
  15512. LLL: 'D MMMM YYYY เวลา H:mm',
  15513. LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm',
  15514. },
  15515. meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
  15516. isPM: function (input) {
  15517. return input === 'หลังเที่ยง';
  15518. },
  15519. meridiem: function (hour, minute, isLower) {
  15520. if (hour < 12) {
  15521. return 'ก่อนเที่ยง';
  15522. } else {
  15523. return 'หลังเที่ยง';
  15524. }
  15525. },
  15526. calendar: {
  15527. sameDay: '[วันนี้ เวลา] LT',
  15528. nextDay: '[พรุ่งนี้ เวลา] LT',
  15529. nextWeek: 'dddd[หน้า เวลา] LT',
  15530. lastDay: '[เมื่อวานนี้ เวลา] LT',
  15531. lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT',
  15532. sameElse: 'L',
  15533. },
  15534. relativeTime: {
  15535. future: 'อีก %s',
  15536. past: '%sที่แล้ว',
  15537. s: 'ไม่กี่วินาที',
  15538. ss: '%d วินาที',
  15539. m: '1 นาที',
  15540. mm: '%d นาที',
  15541. h: '1 ชั่วโมง',
  15542. hh: '%d ชั่วโมง',
  15543. d: '1 วัน',
  15544. dd: '%d วัน',
  15545. w: '1 สัปดาห์',
  15546. ww: '%d สัปดาห์',
  15547. M: '1 เดือน',
  15548. MM: '%d เดือน',
  15549. y: '1 ปี',
  15550. yy: '%d ปี',
  15551. },
  15552. });
  15553. //! moment.js locale configuration
  15554. var suffixes$4 = {
  15555. 1: "'inji",
  15556. 5: "'inji",
  15557. 8: "'inji",
  15558. 70: "'inji",
  15559. 80: "'inji",
  15560. 2: "'nji",
  15561. 7: "'nji",
  15562. 20: "'nji",
  15563. 50: "'nji",
  15564. 3: "'ünji",
  15565. 4: "'ünji",
  15566. 100: "'ünji",
  15567. 6: "'njy",
  15568. 9: "'unjy",
  15569. 10: "'unjy",
  15570. 30: "'unjy",
  15571. 60: "'ynjy",
  15572. 90: "'ynjy",
  15573. };
  15574. hooks.defineLocale('tk', {
  15575. months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split(
  15576. '_'
  15577. ),
  15578. monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split('_'),
  15579. weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split(
  15580. '_'
  15581. ),
  15582. weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'),
  15583. weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'),
  15584. longDateFormat: {
  15585. LT: 'HH:mm',
  15586. LTS: 'HH:mm:ss',
  15587. L: 'DD.MM.YYYY',
  15588. LL: 'D MMMM YYYY',
  15589. LLL: 'D MMMM YYYY HH:mm',
  15590. LLLL: 'dddd, D MMMM YYYY HH:mm',
  15591. },
  15592. calendar: {
  15593. sameDay: '[bugün sagat] LT',
  15594. nextDay: '[ertir sagat] LT',
  15595. nextWeek: '[indiki] dddd [sagat] LT',
  15596. lastDay: '[düýn] LT',
  15597. lastWeek: '[geçen] dddd [sagat] LT',
  15598. sameElse: 'L',
  15599. },
  15600. relativeTime: {
  15601. future: '%s soň',
  15602. past: '%s öň',
  15603. s: 'birnäçe sekunt',
  15604. m: 'bir minut',
  15605. mm: '%d minut',
  15606. h: 'bir sagat',
  15607. hh: '%d sagat',
  15608. d: 'bir gün',
  15609. dd: '%d gün',
  15610. M: 'bir aý',
  15611. MM: '%d aý',
  15612. y: 'bir ýyl',
  15613. yy: '%d ýyl',
  15614. },
  15615. ordinal: function (number, period) {
  15616. switch (period) {
  15617. case 'd':
  15618. case 'D':
  15619. case 'Do':
  15620. case 'DD':
  15621. return number;
  15622. default:
  15623. if (number === 0) {
  15624. // special case for zero
  15625. return number + "'unjy";
  15626. }
  15627. var a = number % 10,
  15628. b = (number % 100) - a,
  15629. c = number >= 100 ? 100 : null;
  15630. return number + (suffixes$4[a] || suffixes$4[b] || suffixes$4[c]);
  15631. }
  15632. },
  15633. week: {
  15634. dow: 1, // Monday is the first day of the week.
  15635. doy: 7, // The week that contains Jan 7th is the first week of the year.
  15636. },
  15637. });
  15638. //! moment.js locale configuration
  15639. hooks.defineLocale('tl-ph', {
  15640. months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(
  15641. '_'
  15642. ),
  15643. monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
  15644. weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(
  15645. '_'
  15646. ),
  15647. weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
  15648. weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
  15649. longDateFormat: {
  15650. LT: 'HH:mm',
  15651. LTS: 'HH:mm:ss',
  15652. L: 'MM/D/YYYY',
  15653. LL: 'MMMM D, YYYY',
  15654. LLL: 'MMMM D, YYYY HH:mm',
  15655. LLLL: 'dddd, MMMM DD, YYYY HH:mm',
  15656. },
  15657. calendar: {
  15658. sameDay: 'LT [ngayong araw]',
  15659. nextDay: '[Bukas ng] LT',
  15660. nextWeek: 'LT [sa susunod na] dddd',
  15661. lastDay: 'LT [kahapon]',
  15662. lastWeek: 'LT [noong nakaraang] dddd',
  15663. sameElse: 'L',
  15664. },
  15665. relativeTime: {
  15666. future: 'sa loob ng %s',
  15667. past: '%s ang nakalipas',
  15668. s: 'ilang segundo',
  15669. ss: '%d segundo',
  15670. m: 'isang minuto',
  15671. mm: '%d minuto',
  15672. h: 'isang oras',
  15673. hh: '%d oras',
  15674. d: 'isang araw',
  15675. dd: '%d araw',
  15676. M: 'isang buwan',
  15677. MM: '%d buwan',
  15678. y: 'isang taon',
  15679. yy: '%d taon',
  15680. },
  15681. dayOfMonthOrdinalParse: /\d{1,2}/,
  15682. ordinal: function (number) {
  15683. return number;
  15684. },
  15685. week: {
  15686. dow: 1, // Monday is the first day of the week.
  15687. doy: 4, // The week that contains Jan 4th is the first week of the year.
  15688. },
  15689. });
  15690. //! moment.js locale configuration
  15691. var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');
  15692. function translateFuture(output) {
  15693. var time = output;
  15694. time =
  15695. output.indexOf('jaj') !== -1
  15696. ? time.slice(0, -3) + 'leS'
  15697. : output.indexOf('jar') !== -1
  15698. ? time.slice(0, -3) + 'waQ'
  15699. : output.indexOf('DIS') !== -1
  15700. ? time.slice(0, -3) + 'nem'
  15701. : time + ' pIq';
  15702. return time;
  15703. }
  15704. function translatePast(output) {
  15705. var time = output;
  15706. time =
  15707. output.indexOf('jaj') !== -1
  15708. ? time.slice(0, -3) + 'Hu’'
  15709. : output.indexOf('jar') !== -1
  15710. ? time.slice(0, -3) + 'wen'
  15711. : output.indexOf('DIS') !== -1
  15712. ? time.slice(0, -3) + 'ben'
  15713. : time + ' ret';
  15714. return time;
  15715. }
  15716. function translate$a(number, withoutSuffix, string, isFuture) {
  15717. var numberNoun = numberAsNoun(number);
  15718. switch (string) {
  15719. case 'ss':
  15720. return numberNoun + ' lup';
  15721. case 'mm':
  15722. return numberNoun + ' tup';
  15723. case 'hh':
  15724. return numberNoun + ' rep';
  15725. case 'dd':
  15726. return numberNoun + ' jaj';
  15727. case 'MM':
  15728. return numberNoun + ' jar';
  15729. case 'yy':
  15730. return numberNoun + ' DIS';
  15731. }
  15732. }
  15733. function numberAsNoun(number) {
  15734. var hundred = Math.floor((number % 1000) / 100),
  15735. ten = Math.floor((number % 100) / 10),
  15736. one = number % 10,
  15737. word = '';
  15738. if (hundred > 0) {
  15739. word += numbersNouns[hundred] + 'vatlh';
  15740. }
  15741. if (ten > 0) {
  15742. word += (word !== '' ? ' ' : '') + numbersNouns[ten] + 'maH';
  15743. }
  15744. if (one > 0) {
  15745. word += (word !== '' ? ' ' : '') + numbersNouns[one];
  15746. }
  15747. return word === '' ? 'pagh' : word;
  15748. }
  15749. hooks.defineLocale('tlh', {
  15750. 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(
  15751. '_'
  15752. ),
  15753. monthsShort:
  15754. '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(
  15755. '_'
  15756. ),
  15757. monthsParseExact: true,
  15758. weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(
  15759. '_'
  15760. ),
  15761. weekdaysShort:
  15762. 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  15763. weekdaysMin:
  15764. 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  15765. longDateFormat: {
  15766. LT: 'HH:mm',
  15767. LTS: 'HH:mm:ss',
  15768. L: 'DD.MM.YYYY',
  15769. LL: 'D MMMM YYYY',
  15770. LLL: 'D MMMM YYYY HH:mm',
  15771. LLLL: 'dddd, D MMMM YYYY HH:mm',
  15772. },
  15773. calendar: {
  15774. sameDay: '[DaHjaj] LT',
  15775. nextDay: '[wa’leS] LT',
  15776. nextWeek: 'LLL',
  15777. lastDay: '[wa’Hu’] LT',
  15778. lastWeek: 'LLL',
  15779. sameElse: 'L',
  15780. },
  15781. relativeTime: {
  15782. future: translateFuture,
  15783. past: translatePast,
  15784. s: 'puS lup',
  15785. ss: translate$a,
  15786. m: 'wa’ tup',
  15787. mm: translate$a,
  15788. h: 'wa’ rep',
  15789. hh: translate$a,
  15790. d: 'wa’ jaj',
  15791. dd: translate$a,
  15792. M: 'wa’ jar',
  15793. MM: translate$a,
  15794. y: 'wa’ DIS',
  15795. yy: translate$a,
  15796. },
  15797. dayOfMonthOrdinalParse: /\d{1,2}\./,
  15798. ordinal: '%d.',
  15799. week: {
  15800. dow: 1, // Monday is the first day of the week.
  15801. doy: 4, // The week that contains Jan 4th is the first week of the year.
  15802. },
  15803. });
  15804. //! moment.js locale configuration
  15805. var suffixes$5 = {
  15806. 1: "'inci",
  15807. 5: "'inci",
  15808. 8: "'inci",
  15809. 70: "'inci",
  15810. 80: "'inci",
  15811. 2: "'nci",
  15812. 7: "'nci",
  15813. 20: "'nci",
  15814. 50: "'nci",
  15815. 3: "'üncü",
  15816. 4: "'üncü",
  15817. 100: "'üncü",
  15818. 6: "'ncı",
  15819. 9: "'uncu",
  15820. 10: "'uncu",
  15821. 30: "'uncu",
  15822. 60: "'ıncı",
  15823. 90: "'ıncı",
  15824. };
  15825. hooks.defineLocale('tr', {
  15826. months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split(
  15827. '_'
  15828. ),
  15829. monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
  15830. weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split(
  15831. '_'
  15832. ),
  15833. weekdaysShort: 'Paz_Pzt_Sal_Çar_Per_Cum_Cmt'.split('_'),
  15834. weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
  15835. meridiem: function (hours, minutes, isLower) {
  15836. if (hours < 12) {
  15837. return isLower ? 'öö' : 'ÖÖ';
  15838. } else {
  15839. return isLower ? 'ös' : 'ÖS';
  15840. }
  15841. },
  15842. meridiemParse: /öö|ÖÖ|ös|ÖS/,
  15843. isPM: function (input) {
  15844. return input === 'ös' || input === 'ÖS';
  15845. },
  15846. longDateFormat: {
  15847. LT: 'HH:mm',
  15848. LTS: 'HH:mm:ss',
  15849. L: 'DD.MM.YYYY',
  15850. LL: 'D MMMM YYYY',
  15851. LLL: 'D MMMM YYYY HH:mm',
  15852. LLLL: 'dddd, D MMMM YYYY HH:mm',
  15853. },
  15854. calendar: {
  15855. sameDay: '[bugün saat] LT',
  15856. nextDay: '[yarın saat] LT',
  15857. nextWeek: '[gelecek] dddd [saat] LT',
  15858. lastDay: '[dün] LT',
  15859. lastWeek: '[geçen] dddd [saat] LT',
  15860. sameElse: 'L',
  15861. },
  15862. relativeTime: {
  15863. future: '%s sonra',
  15864. past: '%s önce',
  15865. s: 'birkaç saniye',
  15866. ss: '%d saniye',
  15867. m: 'bir dakika',
  15868. mm: '%d dakika',
  15869. h: 'bir saat',
  15870. hh: '%d saat',
  15871. d: 'bir gün',
  15872. dd: '%d gün',
  15873. w: 'bir hafta',
  15874. ww: '%d hafta',
  15875. M: 'bir ay',
  15876. MM: '%d ay',
  15877. y: 'bir yıl',
  15878. yy: '%d yıl',
  15879. },
  15880. ordinal: function (number, period) {
  15881. switch (period) {
  15882. case 'd':
  15883. case 'D':
  15884. case 'Do':
  15885. case 'DD':
  15886. return number;
  15887. default:
  15888. if (number === 0) {
  15889. // special case for zero
  15890. return number + "'ıncı";
  15891. }
  15892. var a = number % 10,
  15893. b = (number % 100) - a,
  15894. c = number >= 100 ? 100 : null;
  15895. return number + (suffixes$5[a] || suffixes$5[b] || suffixes$5[c]);
  15896. }
  15897. },
  15898. week: {
  15899. dow: 1, // Monday is the first day of the week.
  15900. doy: 7, // The week that contains Jan 7th is the first week of the year.
  15901. },
  15902. });
  15903. //! moment.js locale configuration
  15904. // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
  15905. // This is currently too difficult (maybe even impossible) to add.
  15906. hooks.defineLocale('tzl', {
  15907. months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split(
  15908. '_'
  15909. ),
  15910. monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
  15911. weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
  15912. weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
  15913. weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
  15914. longDateFormat: {
  15915. LT: 'HH.mm',
  15916. LTS: 'HH.mm.ss',
  15917. L: 'DD.MM.YYYY',
  15918. LL: 'D. MMMM [dallas] YYYY',
  15919. LLL: 'D. MMMM [dallas] YYYY HH.mm',
  15920. LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm',
  15921. },
  15922. meridiemParse: /d\'o|d\'a/i,
  15923. isPM: function (input) {
  15924. return "d'o" === input.toLowerCase();
  15925. },
  15926. meridiem: function (hours, minutes, isLower) {
  15927. if (hours > 11) {
  15928. return isLower ? "d'o" : "D'O";
  15929. } else {
  15930. return isLower ? "d'a" : "D'A";
  15931. }
  15932. },
  15933. calendar: {
  15934. sameDay: '[oxhi à] LT',
  15935. nextDay: '[demà à] LT',
  15936. nextWeek: 'dddd [à] LT',
  15937. lastDay: '[ieiri à] LT',
  15938. lastWeek: '[sür el] dddd [lasteu à] LT',
  15939. sameElse: 'L',
  15940. },
  15941. relativeTime: {
  15942. future: 'osprei %s',
  15943. past: 'ja%s',
  15944. s: processRelativeTime$8,
  15945. ss: processRelativeTime$8,
  15946. m: processRelativeTime$8,
  15947. mm: processRelativeTime$8,
  15948. h: processRelativeTime$8,
  15949. hh: processRelativeTime$8,
  15950. d: processRelativeTime$8,
  15951. dd: processRelativeTime$8,
  15952. M: processRelativeTime$8,
  15953. MM: processRelativeTime$8,
  15954. y: processRelativeTime$8,
  15955. yy: processRelativeTime$8,
  15956. },
  15957. dayOfMonthOrdinalParse: /\d{1,2}\./,
  15958. ordinal: '%d.',
  15959. week: {
  15960. dow: 1, // Monday is the first day of the week.
  15961. doy: 4, // The week that contains Jan 4th is the first week of the year.
  15962. },
  15963. });
  15964. function processRelativeTime$8(number, withoutSuffix, key, isFuture) {
  15965. var format = {
  15966. s: ['viensas secunds', "'iensas secunds"],
  15967. ss: [number + ' secunds', '' + number + ' secunds'],
  15968. m: ["'n míut", "'iens míut"],
  15969. mm: [number + ' míuts', '' + number + ' míuts'],
  15970. h: ["'n þora", "'iensa þora"],
  15971. hh: [number + ' þoras', '' + number + ' þoras'],
  15972. d: ["'n ziua", "'iensa ziua"],
  15973. dd: [number + ' ziuas', '' + number + ' ziuas'],
  15974. M: ["'n mes", "'iens mes"],
  15975. MM: [number + ' mesen', '' + number + ' mesen'],
  15976. y: ["'n ar", "'iens ar"],
  15977. yy: [number + ' ars', '' + number + ' ars'],
  15978. };
  15979. return isFuture
  15980. ? format[key][0]
  15981. : withoutSuffix
  15982. ? format[key][0]
  15983. : format[key][1];
  15984. }
  15985. //! moment.js locale configuration
  15986. hooks.defineLocale('tzm-latn', {
  15987. months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(
  15988. '_'
  15989. ),
  15990. monthsShort:
  15991. 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(
  15992. '_'
  15993. ),
  15994. weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  15995. weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  15996. weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  15997. longDateFormat: {
  15998. LT: 'HH:mm',
  15999. LTS: 'HH:mm:ss',
  16000. L: 'DD/MM/YYYY',
  16001. LL: 'D MMMM YYYY',
  16002. LLL: 'D MMMM YYYY HH:mm',
  16003. LLLL: 'dddd D MMMM YYYY HH:mm',
  16004. },
  16005. calendar: {
  16006. sameDay: '[asdkh g] LT',
  16007. nextDay: '[aska g] LT',
  16008. nextWeek: 'dddd [g] LT',
  16009. lastDay: '[assant g] LT',
  16010. lastWeek: 'dddd [g] LT',
  16011. sameElse: 'L',
  16012. },
  16013. relativeTime: {
  16014. future: 'dadkh s yan %s',
  16015. past: 'yan %s',
  16016. s: 'imik',
  16017. ss: '%d imik',
  16018. m: 'minuḍ',
  16019. mm: '%d minuḍ',
  16020. h: 'saɛa',
  16021. hh: '%d tassaɛin',
  16022. d: 'ass',
  16023. dd: '%d ossan',
  16024. M: 'ayowr',
  16025. MM: '%d iyyirn',
  16026. y: 'asgas',
  16027. yy: '%d isgasn',
  16028. },
  16029. week: {
  16030. dow: 6, // Saturday is the first day of the week.
  16031. doy: 12, // The week that contains Jan 12th is the first week of the year.
  16032. },
  16033. });
  16034. //! moment.js locale configuration
  16035. hooks.defineLocale('tzm', {
  16036. months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(
  16037. '_'
  16038. ),
  16039. monthsShort:
  16040. 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(
  16041. '_'
  16042. ),
  16043. weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  16044. weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  16045. weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  16046. longDateFormat: {
  16047. LT: 'HH:mm',
  16048. LTS: 'HH:mm:ss',
  16049. L: 'DD/MM/YYYY',
  16050. LL: 'D MMMM YYYY',
  16051. LLL: 'D MMMM YYYY HH:mm',
  16052. LLLL: 'dddd D MMMM YYYY HH:mm',
  16053. },
  16054. calendar: {
  16055. sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
  16056. nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
  16057. nextWeek: 'dddd [ⴴ] LT',
  16058. lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
  16059. lastWeek: 'dddd [ⴴ] LT',
  16060. sameElse: 'L',
  16061. },
  16062. relativeTime: {
  16063. future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
  16064. past: 'ⵢⴰⵏ %s',
  16065. s: 'ⵉⵎⵉⴽ',
  16066. ss: '%d ⵉⵎⵉⴽ',
  16067. m: 'ⵎⵉⵏⵓⴺ',
  16068. mm: '%d ⵎⵉⵏⵓⴺ',
  16069. h: 'ⵙⴰⵄⴰ',
  16070. hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
  16071. d: 'ⴰⵙⵙ',
  16072. dd: '%d oⵙⵙⴰⵏ',
  16073. M: 'ⴰⵢoⵓⵔ',
  16074. MM: '%d ⵉⵢⵢⵉⵔⵏ',
  16075. y: 'ⴰⵙⴳⴰⵙ',
  16076. yy: '%d ⵉⵙⴳⴰⵙⵏ',
  16077. },
  16078. week: {
  16079. dow: 6, // Saturday is the first day of the week.
  16080. doy: 12, // The week that contains Jan 12th is the first week of the year.
  16081. },
  16082. });
  16083. //! moment.js locale configuration
  16084. hooks.defineLocale('ug-cn', {
  16085. months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
  16086. '_'
  16087. ),
  16088. monthsShort:
  16089. 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
  16090. '_'
  16091. ),
  16092. weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split(
  16093. '_'
  16094. ),
  16095. weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
  16096. weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
  16097. longDateFormat: {
  16098. LT: 'HH:mm',
  16099. LTS: 'HH:mm:ss',
  16100. L: 'YYYY-MM-DD',
  16101. LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى',
  16102. LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
  16103. LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
  16104. },
  16105. meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,
  16106. meridiemHour: function (hour, meridiem) {
  16107. if (hour === 12) {
  16108. hour = 0;
  16109. }
  16110. if (
  16111. meridiem === 'يېرىم كېچە' ||
  16112. meridiem === 'سەھەر' ||
  16113. meridiem === 'چۈشتىن بۇرۇن'
  16114. ) {
  16115. return hour;
  16116. } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') {
  16117. return hour + 12;
  16118. } else {
  16119. return hour >= 11 ? hour : hour + 12;
  16120. }
  16121. },
  16122. meridiem: function (hour, minute, isLower) {
  16123. var hm = hour * 100 + minute;
  16124. if (hm < 600) {
  16125. return 'يېرىم كېچە';
  16126. } else if (hm < 900) {
  16127. return 'سەھەر';
  16128. } else if (hm < 1130) {
  16129. return 'چۈشتىن بۇرۇن';
  16130. } else if (hm < 1230) {
  16131. return 'چۈش';
  16132. } else if (hm < 1800) {
  16133. return 'چۈشتىن كېيىن';
  16134. } else {
  16135. return 'كەچ';
  16136. }
  16137. },
  16138. calendar: {
  16139. sameDay: '[بۈگۈن سائەت] LT',
  16140. nextDay: '[ئەتە سائەت] LT',
  16141. nextWeek: '[كېلەركى] dddd [سائەت] LT',
  16142. lastDay: '[تۆنۈگۈن] LT',
  16143. lastWeek: '[ئالدىنقى] dddd [سائەت] LT',
  16144. sameElse: 'L',
  16145. },
  16146. relativeTime: {
  16147. future: '%s كېيىن',
  16148. past: '%s بۇرۇن',
  16149. s: 'نەچچە سېكونت',
  16150. ss: '%d سېكونت',
  16151. m: 'بىر مىنۇت',
  16152. mm: '%d مىنۇت',
  16153. h: 'بىر سائەت',
  16154. hh: '%d سائەت',
  16155. d: 'بىر كۈن',
  16156. dd: '%d كۈن',
  16157. M: 'بىر ئاي',
  16158. MM: '%d ئاي',
  16159. y: 'بىر يىل',
  16160. yy: '%d يىل',
  16161. },
  16162. dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,
  16163. ordinal: function (number, period) {
  16164. switch (period) {
  16165. case 'd':
  16166. case 'D':
  16167. case 'DDD':
  16168. return number + '-كۈنى';
  16169. case 'w':
  16170. case 'W':
  16171. return number + '-ھەپتە';
  16172. default:
  16173. return number;
  16174. }
  16175. },
  16176. preparse: function (string) {
  16177. return string.replace(/،/g, ',');
  16178. },
  16179. postformat: function (string) {
  16180. return string.replace(/,/g, '،');
  16181. },
  16182. week: {
  16183. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  16184. dow: 1, // Monday is the first day of the week.
  16185. doy: 7, // The week that contains Jan 1st is the first week of the year.
  16186. },
  16187. });
  16188. //! moment.js locale configuration
  16189. function plural$6(word, num) {
  16190. var forms = word.split('_');
  16191. return num % 10 === 1 && num % 100 !== 11
  16192. ? forms[0]
  16193. : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
  16194. ? forms[1]
  16195. : forms[2];
  16196. }
  16197. function relativeTimeWithPlural$4(number, withoutSuffix, key) {
  16198. var format = {
  16199. ss: withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',
  16200. mm: withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
  16201. hh: withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
  16202. dd: 'день_дні_днів',
  16203. MM: 'місяць_місяці_місяців',
  16204. yy: 'рік_роки_років',
  16205. };
  16206. if (key === 'm') {
  16207. return withoutSuffix ? 'хвилина' : 'хвилину';
  16208. } else if (key === 'h') {
  16209. return withoutSuffix ? 'година' : 'годину';
  16210. } else {
  16211. return number + ' ' + plural$6(format[key], +number);
  16212. }
  16213. }
  16214. function weekdaysCaseReplace(m, format) {
  16215. var weekdays = {
  16216. nominative:
  16217. 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split(
  16218. '_'
  16219. ),
  16220. accusative:
  16221. 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split(
  16222. '_'
  16223. ),
  16224. genitive:
  16225. 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split(
  16226. '_'
  16227. ),
  16228. },
  16229. nounCase;
  16230. if (m === true) {
  16231. return weekdays['nominative']
  16232. .slice(1, 7)
  16233. .concat(weekdays['nominative'].slice(0, 1));
  16234. }
  16235. if (!m) {
  16236. return weekdays['nominative'];
  16237. }
  16238. nounCase = /(\[[ВвУу]\]) ?dddd/.test(format)
  16239. ? 'accusative'
  16240. : /\[?(?:минулої|наступної)? ?\] ?dddd/.test(format)
  16241. ? 'genitive'
  16242. : 'nominative';
  16243. return weekdays[nounCase][m.day()];
  16244. }
  16245. function processHoursFunction(str) {
  16246. return function () {
  16247. return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
  16248. };
  16249. }
  16250. hooks.defineLocale('uk', {
  16251. months: {
  16252. format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split(
  16253. '_'
  16254. ),
  16255. standalone:
  16256. 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split(
  16257. '_'
  16258. ),
  16259. },
  16260. monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split(
  16261. '_'
  16262. ),
  16263. weekdays: weekdaysCaseReplace,
  16264. weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  16265. weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  16266. longDateFormat: {
  16267. LT: 'HH:mm',
  16268. LTS: 'HH:mm:ss',
  16269. L: 'DD.MM.YYYY',
  16270. LL: 'D MMMM YYYY р.',
  16271. LLL: 'D MMMM YYYY р., HH:mm',
  16272. LLLL: 'dddd, D MMMM YYYY р., HH:mm',
  16273. },
  16274. calendar: {
  16275. sameDay: processHoursFunction('[Сьогодні '),
  16276. nextDay: processHoursFunction('[Завтра '),
  16277. lastDay: processHoursFunction('[Вчора '),
  16278. nextWeek: processHoursFunction('[У] dddd ['),
  16279. lastWeek: function () {
  16280. switch (this.day()) {
  16281. case 0:
  16282. case 3:
  16283. case 5:
  16284. case 6:
  16285. return processHoursFunction('[Минулої] dddd [').call(this);
  16286. case 1:
  16287. case 2:
  16288. case 4:
  16289. return processHoursFunction('[Минулого] dddd [').call(this);
  16290. }
  16291. },
  16292. sameElse: 'L',
  16293. },
  16294. relativeTime: {
  16295. future: 'за %s',
  16296. past: '%s тому',
  16297. s: 'декілька секунд',
  16298. ss: relativeTimeWithPlural$4,
  16299. m: relativeTimeWithPlural$4,
  16300. mm: relativeTimeWithPlural$4,
  16301. h: 'годину',
  16302. hh: relativeTimeWithPlural$4,
  16303. d: 'день',
  16304. dd: relativeTimeWithPlural$4,
  16305. M: 'місяць',
  16306. MM: relativeTimeWithPlural$4,
  16307. y: 'рік',
  16308. yy: relativeTimeWithPlural$4,
  16309. },
  16310. // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
  16311. meridiemParse: /ночі|ранку|дня|вечора/,
  16312. isPM: function (input) {
  16313. return /^(дня|вечора)$/.test(input);
  16314. },
  16315. meridiem: function (hour, minute, isLower) {
  16316. if (hour < 4) {
  16317. return 'ночі';
  16318. } else if (hour < 12) {
  16319. return 'ранку';
  16320. } else if (hour < 17) {
  16321. return 'дня';
  16322. } else {
  16323. return 'вечора';
  16324. }
  16325. },
  16326. dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/,
  16327. ordinal: function (number, period) {
  16328. switch (period) {
  16329. case 'M':
  16330. case 'd':
  16331. case 'DDD':
  16332. case 'w':
  16333. case 'W':
  16334. return number + '-й';
  16335. case 'D':
  16336. return number + '-го';
  16337. default:
  16338. return number;
  16339. }
  16340. },
  16341. week: {
  16342. dow: 1, // Monday is the first day of the week.
  16343. doy: 7, // The week that contains Jan 7th is the first week of the year.
  16344. },
  16345. });
  16346. //! moment.js locale configuration
  16347. var months$b = [
  16348. 'جنوری',
  16349. 'فروری',
  16350. 'مارچ',
  16351. 'اپریل',
  16352. 'مئی',
  16353. 'جون',
  16354. 'جولائی',
  16355. 'اگست',
  16356. 'ستمبر',
  16357. 'اکتوبر',
  16358. 'نومبر',
  16359. 'دسمبر',
  16360. ],
  16361. days$2 = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ'];
  16362. hooks.defineLocale('ur', {
  16363. months: months$b,
  16364. monthsShort: months$b,
  16365. weekdays: days$2,
  16366. weekdaysShort: days$2,
  16367. weekdaysMin: days$2,
  16368. longDateFormat: {
  16369. LT: 'HH:mm',
  16370. LTS: 'HH:mm:ss',
  16371. L: 'DD/MM/YYYY',
  16372. LL: 'D MMMM YYYY',
  16373. LLL: 'D MMMM YYYY HH:mm',
  16374. LLLL: 'dddd، D MMMM YYYY HH:mm',
  16375. },
  16376. meridiemParse: /صبح|شام/,
  16377. isPM: function (input) {
  16378. return 'شام' === input;
  16379. },
  16380. meridiem: function (hour, minute, isLower) {
  16381. if (hour < 12) {
  16382. return 'صبح';
  16383. }
  16384. return 'شام';
  16385. },
  16386. calendar: {
  16387. sameDay: '[آج بوقت] LT',
  16388. nextDay: '[کل بوقت] LT',
  16389. nextWeek: 'dddd [بوقت] LT',
  16390. lastDay: '[گذشتہ روز بوقت] LT',
  16391. lastWeek: '[گذشتہ] dddd [بوقت] LT',
  16392. sameElse: 'L',
  16393. },
  16394. relativeTime: {
  16395. future: '%s بعد',
  16396. past: '%s قبل',
  16397. s: 'چند سیکنڈ',
  16398. ss: '%d سیکنڈ',
  16399. m: 'ایک منٹ',
  16400. mm: '%d منٹ',
  16401. h: 'ایک گھنٹہ',
  16402. hh: '%d گھنٹے',
  16403. d: 'ایک دن',
  16404. dd: '%d دن',
  16405. M: 'ایک ماہ',
  16406. MM: '%d ماہ',
  16407. y: 'ایک سال',
  16408. yy: '%d سال',
  16409. },
  16410. preparse: function (string) {
  16411. return string.replace(/،/g, ',');
  16412. },
  16413. postformat: function (string) {
  16414. return string.replace(/,/g, '،');
  16415. },
  16416. week: {
  16417. dow: 1, // Monday is the first day of the week.
  16418. doy: 4, // The week that contains Jan 4th is the first week of the year.
  16419. },
  16420. });
  16421. //! moment.js locale configuration
  16422. hooks.defineLocale('uz-latn', {
  16423. months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split(
  16424. '_'
  16425. ),
  16426. monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
  16427. weekdays:
  16428. 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split(
  16429. '_'
  16430. ),
  16431. weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
  16432. weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
  16433. longDateFormat: {
  16434. LT: 'HH:mm',
  16435. LTS: 'HH:mm:ss',
  16436. L: 'DD/MM/YYYY',
  16437. LL: 'D MMMM YYYY',
  16438. LLL: 'D MMMM YYYY HH:mm',
  16439. LLLL: 'D MMMM YYYY, dddd HH:mm',
  16440. },
  16441. calendar: {
  16442. sameDay: '[Bugun soat] LT [da]',
  16443. nextDay: '[Ertaga] LT [da]',
  16444. nextWeek: 'dddd [kuni soat] LT [da]',
  16445. lastDay: '[Kecha soat] LT [da]',
  16446. lastWeek: "[O'tgan] dddd [kuni soat] LT [da]",
  16447. sameElse: 'L',
  16448. },
  16449. relativeTime: {
  16450. future: 'Yaqin %s ichida',
  16451. past: 'Bir necha %s oldin',
  16452. s: 'soniya',
  16453. ss: '%d soniya',
  16454. m: 'bir daqiqa',
  16455. mm: '%d daqiqa',
  16456. h: 'bir soat',
  16457. hh: '%d soat',
  16458. d: 'bir kun',
  16459. dd: '%d kun',
  16460. M: 'bir oy',
  16461. MM: '%d oy',
  16462. y: 'bir yil',
  16463. yy: '%d yil',
  16464. },
  16465. week: {
  16466. dow: 1, // Monday is the first day of the week.
  16467. doy: 7, // The week that contains Jan 7th is the first week of the year.
  16468. },
  16469. });
  16470. //! moment.js locale configuration
  16471. hooks.defineLocale('uz', {
  16472. months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
  16473. '_'
  16474. ),
  16475. monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
  16476. weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
  16477. weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
  16478. weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
  16479. longDateFormat: {
  16480. LT: 'HH:mm',
  16481. LTS: 'HH:mm:ss',
  16482. L: 'DD/MM/YYYY',
  16483. LL: 'D MMMM YYYY',
  16484. LLL: 'D MMMM YYYY HH:mm',
  16485. LLLL: 'D MMMM YYYY, dddd HH:mm',
  16486. },
  16487. calendar: {
  16488. sameDay: '[Бугун соат] LT [да]',
  16489. nextDay: '[Эртага] LT [да]',
  16490. nextWeek: 'dddd [куни соат] LT [да]',
  16491. lastDay: '[Кеча соат] LT [да]',
  16492. lastWeek: '[Утган] dddd [куни соат] LT [да]',
  16493. sameElse: 'L',
  16494. },
  16495. relativeTime: {
  16496. future: 'Якин %s ичида',
  16497. past: 'Бир неча %s олдин',
  16498. s: 'фурсат',
  16499. ss: '%d фурсат',
  16500. m: 'бир дакика',
  16501. mm: '%d дакика',
  16502. h: 'бир соат',
  16503. hh: '%d соат',
  16504. d: 'бир кун',
  16505. dd: '%d кун',
  16506. M: 'бир ой',
  16507. MM: '%d ой',
  16508. y: 'бир йил',
  16509. yy: '%d йил',
  16510. },
  16511. week: {
  16512. dow: 1, // Monday is the first day of the week.
  16513. doy: 7, // The week that contains Jan 4th is the first week of the year.
  16514. },
  16515. });
  16516. //! moment.js locale configuration
  16517. hooks.defineLocale('vi', {
  16518. 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(
  16519. '_'
  16520. ),
  16521. monthsShort:
  16522. '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(
  16523. '_'
  16524. ),
  16525. monthsParseExact: true,
  16526. weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split(
  16527. '_'
  16528. ),
  16529. weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  16530. weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  16531. weekdaysParseExact: true,
  16532. meridiemParse: /sa|ch/i,
  16533. isPM: function (input) {
  16534. return /^ch$/i.test(input);
  16535. },
  16536. meridiem: function (hours, minutes, isLower) {
  16537. if (hours < 12) {
  16538. return isLower ? 'sa' : 'SA';
  16539. } else {
  16540. return isLower ? 'ch' : 'CH';
  16541. }
  16542. },
  16543. longDateFormat: {
  16544. LT: 'HH:mm',
  16545. LTS: 'HH:mm:ss',
  16546. L: 'DD/MM/YYYY',
  16547. LL: 'D MMMM [năm] YYYY',
  16548. LLL: 'D MMMM [năm] YYYY HH:mm',
  16549. LLLL: 'dddd, D MMMM [năm] YYYY HH:mm',
  16550. l: 'DD/M/YYYY',
  16551. ll: 'D MMM YYYY',
  16552. lll: 'D MMM YYYY HH:mm',
  16553. llll: 'ddd, D MMM YYYY HH:mm',
  16554. },
  16555. calendar: {
  16556. sameDay: '[Hôm nay lúc] LT',
  16557. nextDay: '[Ngày mai lúc] LT',
  16558. nextWeek: 'dddd [tuần tới lúc] LT',
  16559. lastDay: '[Hôm qua lúc] LT',
  16560. lastWeek: 'dddd [tuần trước lúc] LT',
  16561. sameElse: 'L',
  16562. },
  16563. relativeTime: {
  16564. future: '%s tới',
  16565. past: '%s trước',
  16566. s: 'vài giây',
  16567. ss: '%d giây',
  16568. m: 'một phút',
  16569. mm: '%d phút',
  16570. h: 'một giờ',
  16571. hh: '%d giờ',
  16572. d: 'một ngày',
  16573. dd: '%d ngày',
  16574. w: 'một tuần',
  16575. ww: '%d tuần',
  16576. M: 'một tháng',
  16577. MM: '%d tháng',
  16578. y: 'một năm',
  16579. yy: '%d năm',
  16580. },
  16581. dayOfMonthOrdinalParse: /\d{1,2}/,
  16582. ordinal: function (number) {
  16583. return number;
  16584. },
  16585. week: {
  16586. dow: 1, // Monday is the first day of the week.
  16587. doy: 4, // The week that contains Jan 4th is the first week of the year.
  16588. },
  16589. });
  16590. //! moment.js locale configuration
  16591. hooks.defineLocale('x-pseudo', {
  16592. 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(
  16593. '_'
  16594. ),
  16595. monthsShort:
  16596. 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split(
  16597. '_'
  16598. ),
  16599. monthsParseExact: true,
  16600. weekdays:
  16601. 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split(
  16602. '_'
  16603. ),
  16604. weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
  16605. weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
  16606. weekdaysParseExact: true,
  16607. longDateFormat: {
  16608. LT: 'HH:mm',
  16609. L: 'DD/MM/YYYY',
  16610. LL: 'D MMMM YYYY',
  16611. LLL: 'D MMMM YYYY HH:mm',
  16612. LLLL: 'dddd, D MMMM YYYY HH:mm',
  16613. },
  16614. calendar: {
  16615. sameDay: '[T~ódá~ý át] LT',
  16616. nextDay: '[T~ómó~rró~w át] LT',
  16617. nextWeek: 'dddd [át] LT',
  16618. lastDay: '[Ý~ést~érdá~ý át] LT',
  16619. lastWeek: '[L~ást] dddd [át] LT',
  16620. sameElse: 'L',
  16621. },
  16622. relativeTime: {
  16623. future: 'í~ñ %s',
  16624. past: '%s á~gó',
  16625. s: 'á ~féw ~sécó~ñds',
  16626. ss: '%d s~écóñ~ds',
  16627. m: 'á ~míñ~úté',
  16628. mm: '%d m~íñú~tés',
  16629. h: 'á~ñ hó~úr',
  16630. hh: '%d h~óúrs',
  16631. d: 'á ~dáý',
  16632. dd: '%d d~áýs',
  16633. M: 'á ~móñ~th',
  16634. MM: '%d m~óñt~hs',
  16635. y: 'á ~ýéár',
  16636. yy: '%d ý~éárs',
  16637. },
  16638. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  16639. ordinal: function (number) {
  16640. var b = number % 10,
  16641. output =
  16642. ~~((number % 100) / 10) === 1
  16643. ? 'th'
  16644. : b === 1
  16645. ? 'st'
  16646. : b === 2
  16647. ? 'nd'
  16648. : b === 3
  16649. ? 'rd'
  16650. : 'th';
  16651. return number + output;
  16652. },
  16653. week: {
  16654. dow: 1, // Monday is the first day of the week.
  16655. doy: 4, // The week that contains Jan 4th is the first week of the year.
  16656. },
  16657. });
  16658. //! moment.js locale configuration
  16659. hooks.defineLocale('yo', {
  16660. months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split(
  16661. '_'
  16662. ),
  16663. monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),
  16664. weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),
  16665. weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),
  16666. weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),
  16667. longDateFormat: {
  16668. LT: 'h:mm A',
  16669. LTS: 'h:mm:ss A',
  16670. L: 'DD/MM/YYYY',
  16671. LL: 'D MMMM YYYY',
  16672. LLL: 'D MMMM YYYY h:mm A',
  16673. LLLL: 'dddd, D MMMM YYYY h:mm A',
  16674. },
  16675. calendar: {
  16676. sameDay: '[Ònì ni] LT',
  16677. nextDay: '[Ọ̀la ni] LT',
  16678. nextWeek: "dddd [Ọsẹ̀ tón'bọ] [ni] LT",
  16679. lastDay: '[Àna ni] LT',
  16680. lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT',
  16681. sameElse: 'L',
  16682. },
  16683. relativeTime: {
  16684. future: 'ní %s',
  16685. past: '%s kọjá',
  16686. s: 'ìsẹjú aayá die',
  16687. ss: 'aayá %d',
  16688. m: 'ìsẹjú kan',
  16689. mm: 'ìsẹjú %d',
  16690. h: 'wákati kan',
  16691. hh: 'wákati %d',
  16692. d: 'ọjọ́ kan',
  16693. dd: 'ọjọ́ %d',
  16694. M: 'osù kan',
  16695. MM: 'osù %d',
  16696. y: 'ọdún kan',
  16697. yy: 'ọdún %d',
  16698. },
  16699. dayOfMonthOrdinalParse: /ọjọ́\s\d{1,2}/,
  16700. ordinal: 'ọjọ́ %d',
  16701. week: {
  16702. dow: 1, // Monday is the first day of the week.
  16703. doy: 4, // The week that contains Jan 4th is the first week of the year.
  16704. },
  16705. });
  16706. //! moment.js locale configuration
  16707. hooks.defineLocale('zh-cn', {
  16708. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
  16709. '_'
  16710. ),
  16711. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  16712. '_'
  16713. ),
  16714. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  16715. weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),
  16716. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  16717. longDateFormat: {
  16718. LT: 'HH:mm',
  16719. LTS: 'HH:mm:ss',
  16720. L: 'YYYY/MM/DD',
  16721. LL: 'YYYY年M月D日',
  16722. LLL: 'YYYY年M月D日Ah点mm分',
  16723. LLLL: 'YYYY年M月D日ddddAh点mm分',
  16724. l: 'YYYY/M/D',
  16725. ll: 'YYYY年M月D日',
  16726. lll: 'YYYY年M月D日 HH:mm',
  16727. llll: 'YYYY年M月D日dddd HH:mm',
  16728. },
  16729. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  16730. meridiemHour: function (hour, meridiem) {
  16731. if (hour === 12) {
  16732. hour = 0;
  16733. }
  16734. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  16735. return hour;
  16736. } else if (meridiem === '下午' || meridiem === '晚上') {
  16737. return hour + 12;
  16738. } else {
  16739. // '中午'
  16740. return hour >= 11 ? hour : hour + 12;
  16741. }
  16742. },
  16743. meridiem: function (hour, minute, isLower) {
  16744. var hm = hour * 100 + minute;
  16745. if (hm < 600) {
  16746. return '凌晨';
  16747. } else if (hm < 900) {
  16748. return '早上';
  16749. } else if (hm < 1130) {
  16750. return '上午';
  16751. } else if (hm < 1230) {
  16752. return '中午';
  16753. } else if (hm < 1800) {
  16754. return '下午';
  16755. } else {
  16756. return '晚上';
  16757. }
  16758. },
  16759. calendar: {
  16760. sameDay: '[今天]LT',
  16761. nextDay: '[明天]LT',
  16762. nextWeek: function (now) {
  16763. if (now.week() !== this.week()) {
  16764. return '[下]dddLT';
  16765. } else {
  16766. return '[本]dddLT';
  16767. }
  16768. },
  16769. lastDay: '[昨天]LT',
  16770. lastWeek: function (now) {
  16771. if (this.week() !== now.week()) {
  16772. return '[上]dddLT';
  16773. } else {
  16774. return '[本]dddLT';
  16775. }
  16776. },
  16777. sameElse: 'L',
  16778. },
  16779. dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
  16780. ordinal: function (number, period) {
  16781. switch (period) {
  16782. case 'd':
  16783. case 'D':
  16784. case 'DDD':
  16785. return number + '日';
  16786. case 'M':
  16787. return number + '月';
  16788. case 'w':
  16789. case 'W':
  16790. return number + '周';
  16791. default:
  16792. return number;
  16793. }
  16794. },
  16795. relativeTime: {
  16796. future: '%s后',
  16797. past: '%s前',
  16798. s: '几秒',
  16799. ss: '%d 秒',
  16800. m: '1 分钟',
  16801. mm: '%d 分钟',
  16802. h: '1 小时',
  16803. hh: '%d 小时',
  16804. d: '1 天',
  16805. dd: '%d 天',
  16806. w: '1 周',
  16807. ww: '%d 周',
  16808. M: '1 个月',
  16809. MM: '%d 个月',
  16810. y: '1 年',
  16811. yy: '%d 年',
  16812. },
  16813. week: {
  16814. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  16815. dow: 1, // Monday is the first day of the week.
  16816. doy: 4, // The week that contains Jan 4th is the first week of the year.
  16817. },
  16818. });
  16819. //! moment.js locale configuration
  16820. hooks.defineLocale('zh-hk', {
  16821. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
  16822. '_'
  16823. ),
  16824. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  16825. '_'
  16826. ),
  16827. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  16828. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  16829. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  16830. longDateFormat: {
  16831. LT: 'HH:mm',
  16832. LTS: 'HH:mm:ss',
  16833. L: 'YYYY/MM/DD',
  16834. LL: 'YYYY年M月D日',
  16835. LLL: 'YYYY年M月D日 HH:mm',
  16836. LLLL: 'YYYY年M月D日dddd HH:mm',
  16837. l: 'YYYY/M/D',
  16838. ll: 'YYYY年M月D日',
  16839. lll: 'YYYY年M月D日 HH:mm',
  16840. llll: 'YYYY年M月D日dddd HH:mm',
  16841. },
  16842. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  16843. meridiemHour: function (hour, meridiem) {
  16844. if (hour === 12) {
  16845. hour = 0;
  16846. }
  16847. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  16848. return hour;
  16849. } else if (meridiem === '中午') {
  16850. return hour >= 11 ? hour : hour + 12;
  16851. } else if (meridiem === '下午' || meridiem === '晚上') {
  16852. return hour + 12;
  16853. }
  16854. },
  16855. meridiem: function (hour, minute, isLower) {
  16856. var hm = hour * 100 + minute;
  16857. if (hm < 600) {
  16858. return '凌晨';
  16859. } else if (hm < 900) {
  16860. return '早上';
  16861. } else if (hm < 1200) {
  16862. return '上午';
  16863. } else if (hm === 1200) {
  16864. return '中午';
  16865. } else if (hm < 1800) {
  16866. return '下午';
  16867. } else {
  16868. return '晚上';
  16869. }
  16870. },
  16871. calendar: {
  16872. sameDay: '[今天]LT',
  16873. nextDay: '[明天]LT',
  16874. nextWeek: '[下]ddddLT',
  16875. lastDay: '[昨天]LT',
  16876. lastWeek: '[上]ddddLT',
  16877. sameElse: 'L',
  16878. },
  16879. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  16880. ordinal: function (number, period) {
  16881. switch (period) {
  16882. case 'd':
  16883. case 'D':
  16884. case 'DDD':
  16885. return number + '日';
  16886. case 'M':
  16887. return number + '月';
  16888. case 'w':
  16889. case 'W':
  16890. return number + '週';
  16891. default:
  16892. return number;
  16893. }
  16894. },
  16895. relativeTime: {
  16896. future: '%s後',
  16897. past: '%s前',
  16898. s: '幾秒',
  16899. ss: '%d 秒',
  16900. m: '1 分鐘',
  16901. mm: '%d 分鐘',
  16902. h: '1 小時',
  16903. hh: '%d 小時',
  16904. d: '1 天',
  16905. dd: '%d 天',
  16906. M: '1 個月',
  16907. MM: '%d 個月',
  16908. y: '1 年',
  16909. yy: '%d 年',
  16910. },
  16911. });
  16912. //! moment.js locale configuration
  16913. hooks.defineLocale('zh-mo', {
  16914. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
  16915. '_'
  16916. ),
  16917. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  16918. '_'
  16919. ),
  16920. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  16921. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  16922. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  16923. longDateFormat: {
  16924. LT: 'HH:mm',
  16925. LTS: 'HH:mm:ss',
  16926. L: 'DD/MM/YYYY',
  16927. LL: 'YYYY年M月D日',
  16928. LLL: 'YYYY年M月D日 HH:mm',
  16929. LLLL: 'YYYY年M月D日dddd HH:mm',
  16930. l: 'D/M/YYYY',
  16931. ll: 'YYYY年M月D日',
  16932. lll: 'YYYY年M月D日 HH:mm',
  16933. llll: 'YYYY年M月D日dddd HH:mm',
  16934. },
  16935. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  16936. meridiemHour: function (hour, meridiem) {
  16937. if (hour === 12) {
  16938. hour = 0;
  16939. }
  16940. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  16941. return hour;
  16942. } else if (meridiem === '中午') {
  16943. return hour >= 11 ? hour : hour + 12;
  16944. } else if (meridiem === '下午' || meridiem === '晚上') {
  16945. return hour + 12;
  16946. }
  16947. },
  16948. meridiem: function (hour, minute, isLower) {
  16949. var hm = hour * 100 + minute;
  16950. if (hm < 600) {
  16951. return '凌晨';
  16952. } else if (hm < 900) {
  16953. return '早上';
  16954. } else if (hm < 1130) {
  16955. return '上午';
  16956. } else if (hm < 1230) {
  16957. return '中午';
  16958. } else if (hm < 1800) {
  16959. return '下午';
  16960. } else {
  16961. return '晚上';
  16962. }
  16963. },
  16964. calendar: {
  16965. sameDay: '[今天] LT',
  16966. nextDay: '[明天] LT',
  16967. nextWeek: '[下]dddd LT',
  16968. lastDay: '[昨天] LT',
  16969. lastWeek: '[上]dddd LT',
  16970. sameElse: 'L',
  16971. },
  16972. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  16973. ordinal: function (number, period) {
  16974. switch (period) {
  16975. case 'd':
  16976. case 'D':
  16977. case 'DDD':
  16978. return number + '日';
  16979. case 'M':
  16980. return number + '月';
  16981. case 'w':
  16982. case 'W':
  16983. return number + '週';
  16984. default:
  16985. return number;
  16986. }
  16987. },
  16988. relativeTime: {
  16989. future: '%s內',
  16990. past: '%s前',
  16991. s: '幾秒',
  16992. ss: '%d 秒',
  16993. m: '1 分鐘',
  16994. mm: '%d 分鐘',
  16995. h: '1 小時',
  16996. hh: '%d 小時',
  16997. d: '1 天',
  16998. dd: '%d 天',
  16999. M: '1 個月',
  17000. MM: '%d 個月',
  17001. y: '1 年',
  17002. yy: '%d 年',
  17003. },
  17004. });
  17005. //! moment.js locale configuration
  17006. hooks.defineLocale('zh-tw', {
  17007. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
  17008. '_'
  17009. ),
  17010. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  17011. '_'
  17012. ),
  17013. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  17014. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  17015. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  17016. longDateFormat: {
  17017. LT: 'HH:mm',
  17018. LTS: 'HH:mm:ss',
  17019. L: 'YYYY/MM/DD',
  17020. LL: 'YYYY年M月D日',
  17021. LLL: 'YYYY年M月D日 HH:mm',
  17022. LLLL: 'YYYY年M月D日dddd HH:mm',
  17023. l: 'YYYY/M/D',
  17024. ll: 'YYYY年M月D日',
  17025. lll: 'YYYY年M月D日 HH:mm',
  17026. llll: 'YYYY年M月D日dddd HH:mm',
  17027. },
  17028. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  17029. meridiemHour: function (hour, meridiem) {
  17030. if (hour === 12) {
  17031. hour = 0;
  17032. }
  17033. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  17034. return hour;
  17035. } else if (meridiem === '中午') {
  17036. return hour >= 11 ? hour : hour + 12;
  17037. } else if (meridiem === '下午' || meridiem === '晚上') {
  17038. return hour + 12;
  17039. }
  17040. },
  17041. meridiem: function (hour, minute, isLower) {
  17042. var hm = hour * 100 + minute;
  17043. if (hm < 600) {
  17044. return '凌晨';
  17045. } else if (hm < 900) {
  17046. return '早上';
  17047. } else if (hm < 1130) {
  17048. return '上午';
  17049. } else if (hm < 1230) {
  17050. return '中午';
  17051. } else if (hm < 1800) {
  17052. return '下午';
  17053. } else {
  17054. return '晚上';
  17055. }
  17056. },
  17057. calendar: {
  17058. sameDay: '[今天] LT',
  17059. nextDay: '[明天] LT',
  17060. nextWeek: '[下]dddd LT',
  17061. lastDay: '[昨天] LT',
  17062. lastWeek: '[上]dddd LT',
  17063. sameElse: 'L',
  17064. },
  17065. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  17066. ordinal: function (number, period) {
  17067. switch (period) {
  17068. case 'd':
  17069. case 'D':
  17070. case 'DDD':
  17071. return number + '日';
  17072. case 'M':
  17073. return number + '月';
  17074. case 'w':
  17075. case 'W':
  17076. return number + '週';
  17077. default:
  17078. return number;
  17079. }
  17080. },
  17081. relativeTime: {
  17082. future: '%s後',
  17083. past: '%s前',
  17084. s: '幾秒',
  17085. ss: '%d 秒',
  17086. m: '1 分鐘',
  17087. mm: '%d 分鐘',
  17088. h: '1 小時',
  17089. hh: '%d 小時',
  17090. d: '1 天',
  17091. dd: '%d 天',
  17092. M: '1 個月',
  17093. MM: '%d 個月',
  17094. y: '1 年',
  17095. yy: '%d 年',
  17096. },
  17097. });
  17098. hooks.locale('en');
  17099. return hooks;
  17100. })));