moment-with-locales.js 607 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240
  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.3';
  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. })));