moment-with-locales.js 618 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472
  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. var flags = null,
  131. parsedParts = false,
  132. isNowValid = m._d && !isNaN(m._d.getTime());
  133. if (isNowValid) {
  134. flags = getParsingFlags(m);
  135. parsedParts = some.call(flags.parsedDateParts, function (i) {
  136. return i != null;
  137. });
  138. isNowValid =
  139. flags.overflow < 0 &&
  140. !flags.empty &&
  141. !flags.invalidEra &&
  142. !flags.invalidMonth &&
  143. !flags.invalidWeekday &&
  144. !flags.weekdayMismatch &&
  145. !flags.nullInput &&
  146. !flags.invalidFormat &&
  147. !flags.userInvalidated &&
  148. (!flags.meridiem || (flags.meridiem && parsedParts));
  149. if (m._strict) {
  150. isNowValid =
  151. isNowValid &&
  152. flags.charsLeftOver === 0 &&
  153. flags.unusedTokens.length === 0 &&
  154. flags.bigHour === undefined;
  155. }
  156. }
  157. if (Object.isFrozen == null || !Object.isFrozen(m)) {
  158. m._isValid = isNowValid;
  159. } else {
  160. return isNowValid;
  161. }
  162. return m._isValid;
  163. }
  164. function createInvalid(flags) {
  165. var m = createUTC(NaN);
  166. if (flags != null) {
  167. extend(getParsingFlags(m), flags);
  168. } else {
  169. getParsingFlags(m).userInvalidated = true;
  170. }
  171. return m;
  172. }
  173. // Plugins that add properties should also add the key here (null value),
  174. // so we can properly clone ourselves.
  175. var momentProperties = (hooks.momentProperties = []),
  176. updateInProgress = false;
  177. function copyConfig(to, from) {
  178. var i,
  179. prop,
  180. val,
  181. momentPropertiesLen = momentProperties.length;
  182. if (!isUndefined(from._isAMomentObject)) {
  183. to._isAMomentObject = from._isAMomentObject;
  184. }
  185. if (!isUndefined(from._i)) {
  186. to._i = from._i;
  187. }
  188. if (!isUndefined(from._f)) {
  189. to._f = from._f;
  190. }
  191. if (!isUndefined(from._l)) {
  192. to._l = from._l;
  193. }
  194. if (!isUndefined(from._strict)) {
  195. to._strict = from._strict;
  196. }
  197. if (!isUndefined(from._tzm)) {
  198. to._tzm = from._tzm;
  199. }
  200. if (!isUndefined(from._isUTC)) {
  201. to._isUTC = from._isUTC;
  202. }
  203. if (!isUndefined(from._offset)) {
  204. to._offset = from._offset;
  205. }
  206. if (!isUndefined(from._pf)) {
  207. to._pf = getParsingFlags(from);
  208. }
  209. if (!isUndefined(from._locale)) {
  210. to._locale = from._locale;
  211. }
  212. if (momentPropertiesLen > 0) {
  213. for (i = 0; i < momentPropertiesLen; i++) {
  214. prop = momentProperties[i];
  215. val = from[prop];
  216. if (!isUndefined(val)) {
  217. to[prop] = val;
  218. }
  219. }
  220. }
  221. return to;
  222. }
  223. // Moment prototype object
  224. function Moment(config) {
  225. copyConfig(this, config);
  226. this._d = new Date(config._d != null ? config._d.getTime() : NaN);
  227. if (!this.isValid()) {
  228. this._d = new Date(NaN);
  229. }
  230. // Prevent infinite loop in case updateOffset creates new moment
  231. // objects.
  232. if (updateInProgress === false) {
  233. updateInProgress = true;
  234. hooks.updateOffset(this);
  235. updateInProgress = false;
  236. }
  237. }
  238. function isMoment(obj) {
  239. return (
  240. obj instanceof Moment || (obj != null && obj._isAMomentObject != null)
  241. );
  242. }
  243. function warn(msg) {
  244. if (
  245. hooks.suppressDeprecationWarnings === false &&
  246. typeof console !== 'undefined' &&
  247. console.warn
  248. ) {
  249. console.warn('Deprecation warning: ' + msg);
  250. }
  251. }
  252. function deprecate(msg, fn) {
  253. var firstTime = true;
  254. return extend(function () {
  255. if (hooks.deprecationHandler != null) {
  256. hooks.deprecationHandler(null, msg);
  257. }
  258. if (firstTime) {
  259. var args = [],
  260. arg,
  261. i,
  262. key,
  263. argLen = arguments.length;
  264. for (i = 0; i < argLen; i++) {
  265. arg = '';
  266. if (typeof arguments[i] === 'object') {
  267. arg += '\n[' + i + '] ';
  268. for (key in arguments[0]) {
  269. if (hasOwnProp(arguments[0], key)) {
  270. arg += key + ': ' + arguments[0][key] + ', ';
  271. }
  272. }
  273. arg = arg.slice(0, -2); // Remove trailing comma and space
  274. } else {
  275. arg = arguments[i];
  276. }
  277. args.push(arg);
  278. }
  279. warn(
  280. msg +
  281. '\nArguments: ' +
  282. Array.prototype.slice.call(args).join('') +
  283. '\n' +
  284. new Error().stack
  285. );
  286. firstTime = false;
  287. }
  288. return fn.apply(this, arguments);
  289. }, fn);
  290. }
  291. var deprecations = {};
  292. function deprecateSimple(name, msg) {
  293. if (hooks.deprecationHandler != null) {
  294. hooks.deprecationHandler(name, msg);
  295. }
  296. if (!deprecations[name]) {
  297. warn(msg);
  298. deprecations[name] = true;
  299. }
  300. }
  301. hooks.suppressDeprecationWarnings = false;
  302. hooks.deprecationHandler = null;
  303. function isFunction(input) {
  304. return (
  305. (typeof Function !== 'undefined' && input instanceof Function) ||
  306. Object.prototype.toString.call(input) === '[object Function]'
  307. );
  308. }
  309. function set(config) {
  310. var prop, i;
  311. for (i in config) {
  312. if (hasOwnProp(config, i)) {
  313. prop = config[i];
  314. if (isFunction(prop)) {
  315. this[i] = prop;
  316. } else {
  317. this['_' + i] = prop;
  318. }
  319. }
  320. }
  321. this._config = config;
  322. // Lenient ordinal parsing accepts just a number in addition to
  323. // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
  324. // TODO: Remove "ordinalParse" fallback in next major release.
  325. this._dayOfMonthOrdinalParseLenient = new RegExp(
  326. (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +
  327. '|' +
  328. /\d{1,2}/.source
  329. );
  330. }
  331. function mergeConfigs(parentConfig, childConfig) {
  332. var res = extend({}, parentConfig),
  333. prop;
  334. for (prop in childConfig) {
  335. if (hasOwnProp(childConfig, prop)) {
  336. if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
  337. res[prop] = {};
  338. extend(res[prop], parentConfig[prop]);
  339. extend(res[prop], childConfig[prop]);
  340. } else if (childConfig[prop] != null) {
  341. res[prop] = childConfig[prop];
  342. } else {
  343. delete res[prop];
  344. }
  345. }
  346. }
  347. for (prop in parentConfig) {
  348. if (
  349. hasOwnProp(parentConfig, prop) &&
  350. !hasOwnProp(childConfig, prop) &&
  351. isObject(parentConfig[prop])
  352. ) {
  353. // make sure changes to properties don't modify parent config
  354. res[prop] = extend({}, res[prop]);
  355. }
  356. }
  357. return res;
  358. }
  359. function Locale(config) {
  360. if (config != null) {
  361. this.set(config);
  362. }
  363. }
  364. var keys;
  365. if (Object.keys) {
  366. keys = Object.keys;
  367. } else {
  368. keys = function (obj) {
  369. var i,
  370. res = [];
  371. for (i in obj) {
  372. if (hasOwnProp(obj, i)) {
  373. res.push(i);
  374. }
  375. }
  376. return res;
  377. };
  378. }
  379. var defaultCalendar = {
  380. sameDay: '[Today at] LT',
  381. nextDay: '[Tomorrow at] LT',
  382. nextWeek: 'dddd [at] LT',
  383. lastDay: '[Yesterday at] LT',
  384. lastWeek: '[Last] dddd [at] LT',
  385. sameElse: 'L',
  386. };
  387. function calendar(key, mom, now) {
  388. var output = this._calendar[key] || this._calendar['sameElse'];
  389. return isFunction(output) ? output.call(mom, now) : output;
  390. }
  391. function zeroFill(number, targetLength, forceSign) {
  392. var absNumber = '' + Math.abs(number),
  393. zerosToFill = targetLength - absNumber.length,
  394. sign = number >= 0;
  395. return (
  396. (sign ? (forceSign ? '+' : '') : '-') +
  397. Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) +
  398. absNumber
  399. );
  400. }
  401. var formattingTokens =
  402. /(\[[^\[]*\])|(\\)?([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,
  403. localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
  404. formatFunctions = {},
  405. formatTokenFunctions = {};
  406. // token: 'M'
  407. // padded: ['MM', 2]
  408. // ordinal: 'Mo'
  409. // callback: function () { this.month() + 1 }
  410. function addFormatToken(token, padded, ordinal, callback) {
  411. var func = callback;
  412. if (typeof callback === 'string') {
  413. func = function () {
  414. return this[callback]();
  415. };
  416. }
  417. if (token) {
  418. formatTokenFunctions[token] = func;
  419. }
  420. if (padded) {
  421. formatTokenFunctions[padded[0]] = function () {
  422. return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
  423. };
  424. }
  425. if (ordinal) {
  426. formatTokenFunctions[ordinal] = function () {
  427. return this.localeData().ordinal(
  428. func.apply(this, arguments),
  429. token
  430. );
  431. };
  432. }
  433. }
  434. function removeFormattingTokens(input) {
  435. if (input.match(/\[[\s\S]/)) {
  436. return input.replace(/^\[|\]$/g, '');
  437. }
  438. return input.replace(/\\/g, '');
  439. }
  440. function makeFormatFunction(format) {
  441. var array = format.match(formattingTokens),
  442. i,
  443. length;
  444. for (i = 0, length = array.length; i < length; i++) {
  445. if (formatTokenFunctions[array[i]]) {
  446. array[i] = formatTokenFunctions[array[i]];
  447. } else {
  448. array[i] = removeFormattingTokens(array[i]);
  449. }
  450. }
  451. return function (mom) {
  452. var output = '',
  453. i;
  454. for (i = 0; i < length; i++) {
  455. output += isFunction(array[i])
  456. ? array[i].call(mom, format)
  457. : array[i];
  458. }
  459. return output;
  460. };
  461. }
  462. // format date using native date object
  463. function formatMoment(m, format) {
  464. if (!m.isValid()) {
  465. return m.localeData().invalidDate();
  466. }
  467. format = expandFormat(format, m.localeData());
  468. formatFunctions[format] =
  469. formatFunctions[format] || makeFormatFunction(format);
  470. return formatFunctions[format](m);
  471. }
  472. function expandFormat(format, locale) {
  473. var i = 5;
  474. function replaceLongDateFormatTokens(input) {
  475. return locale.longDateFormat(input) || input;
  476. }
  477. localFormattingTokens.lastIndex = 0;
  478. while (i >= 0 && localFormattingTokens.test(format)) {
  479. format = format.replace(
  480. localFormattingTokens,
  481. replaceLongDateFormatTokens
  482. );
  483. localFormattingTokens.lastIndex = 0;
  484. i -= 1;
  485. }
  486. return format;
  487. }
  488. var defaultLongDateFormat = {
  489. LTS: 'h:mm:ss A',
  490. LT: 'h:mm A',
  491. L: 'MM/DD/YYYY',
  492. LL: 'MMMM D, YYYY',
  493. LLL: 'MMMM D, YYYY h:mm A',
  494. LLLL: 'dddd, MMMM D, YYYY h:mm A',
  495. };
  496. function longDateFormat(key) {
  497. var format = this._longDateFormat[key],
  498. formatUpper = this._longDateFormat[key.toUpperCase()];
  499. if (format || !formatUpper) {
  500. return format;
  501. }
  502. this._longDateFormat[key] = formatUpper
  503. .match(formattingTokens)
  504. .map(function (tok) {
  505. if (
  506. tok === 'MMMM' ||
  507. tok === 'MM' ||
  508. tok === 'DD' ||
  509. tok === 'dddd'
  510. ) {
  511. return tok.slice(1);
  512. }
  513. return tok;
  514. })
  515. .join('');
  516. return this._longDateFormat[key];
  517. }
  518. var defaultInvalidDate = 'Invalid date';
  519. function invalidDate() {
  520. return this._invalidDate;
  521. }
  522. var defaultOrdinal = '%d',
  523. defaultDayOfMonthOrdinalParse = /\d{1,2}/;
  524. function ordinal(number) {
  525. return this._ordinal.replace('%d', number);
  526. }
  527. var defaultRelativeTime = {
  528. future: 'in %s',
  529. past: '%s ago',
  530. s: 'a few seconds',
  531. ss: '%d seconds',
  532. m: 'a minute',
  533. mm: '%d minutes',
  534. h: 'an hour',
  535. hh: '%d hours',
  536. d: 'a day',
  537. dd: '%d days',
  538. w: 'a week',
  539. ww: '%d weeks',
  540. M: 'a month',
  541. MM: '%d months',
  542. y: 'a year',
  543. yy: '%d years',
  544. };
  545. function relativeTime(number, withoutSuffix, string, isFuture) {
  546. var output = this._relativeTime[string];
  547. return isFunction(output)
  548. ? output(number, withoutSuffix, string, isFuture)
  549. : output.replace(/%d/i, number);
  550. }
  551. function pastFuture(diff, output) {
  552. var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
  553. return isFunction(format) ? format(output) : format.replace(/%s/i, output);
  554. }
  555. var aliases = {
  556. D: 'date',
  557. dates: 'date',
  558. date: 'date',
  559. d: 'day',
  560. days: 'day',
  561. day: 'day',
  562. e: 'weekday',
  563. weekdays: 'weekday',
  564. weekday: 'weekday',
  565. E: 'isoWeekday',
  566. isoweekdays: 'isoWeekday',
  567. isoweekday: 'isoWeekday',
  568. DDD: 'dayOfYear',
  569. dayofyears: 'dayOfYear',
  570. dayofyear: 'dayOfYear',
  571. h: 'hour',
  572. hours: 'hour',
  573. hour: 'hour',
  574. ms: 'millisecond',
  575. milliseconds: 'millisecond',
  576. millisecond: 'millisecond',
  577. m: 'minute',
  578. minutes: 'minute',
  579. minute: 'minute',
  580. M: 'month',
  581. months: 'month',
  582. month: 'month',
  583. Q: 'quarter',
  584. quarters: 'quarter',
  585. quarter: 'quarter',
  586. s: 'second',
  587. seconds: 'second',
  588. second: 'second',
  589. gg: 'weekYear',
  590. weekyears: 'weekYear',
  591. weekyear: 'weekYear',
  592. GG: 'isoWeekYear',
  593. isoweekyears: 'isoWeekYear',
  594. isoweekyear: 'isoWeekYear',
  595. w: 'week',
  596. weeks: 'week',
  597. week: 'week',
  598. W: 'isoWeek',
  599. isoweeks: 'isoWeek',
  600. isoweek: 'isoWeek',
  601. y: 'year',
  602. years: 'year',
  603. year: 'year',
  604. };
  605. function normalizeUnits(units) {
  606. return typeof units === 'string'
  607. ? aliases[units] || aliases[units.toLowerCase()]
  608. : undefined;
  609. }
  610. function normalizeObjectUnits(inputObject) {
  611. var normalizedInput = {},
  612. normalizedProp,
  613. prop;
  614. for (prop in inputObject) {
  615. if (hasOwnProp(inputObject, prop)) {
  616. normalizedProp = normalizeUnits(prop);
  617. if (normalizedProp) {
  618. normalizedInput[normalizedProp] = inputObject[prop];
  619. }
  620. }
  621. }
  622. return normalizedInput;
  623. }
  624. var priorities = {
  625. date: 9,
  626. day: 11,
  627. weekday: 11,
  628. isoWeekday: 11,
  629. dayOfYear: 4,
  630. hour: 13,
  631. millisecond: 16,
  632. minute: 14,
  633. month: 8,
  634. quarter: 7,
  635. second: 15,
  636. weekYear: 1,
  637. isoWeekYear: 1,
  638. week: 5,
  639. isoWeek: 5,
  640. year: 1,
  641. };
  642. function getPrioritizedUnits(unitsObj) {
  643. var units = [],
  644. u;
  645. for (u in unitsObj) {
  646. if (hasOwnProp(unitsObj, u)) {
  647. units.push({ unit: u, priority: priorities[u] });
  648. }
  649. }
  650. units.sort(function (a, b) {
  651. return a.priority - b.priority;
  652. });
  653. return units;
  654. }
  655. var match1 = /\d/, // 0 - 9
  656. match2 = /\d\d/, // 00 - 99
  657. match3 = /\d{3}/, // 000 - 999
  658. match4 = /\d{4}/, // 0000 - 9999
  659. match6 = /[+-]?\d{6}/, // -999999 - 999999
  660. match1to2 = /\d\d?/, // 0 - 99
  661. match3to4 = /\d\d\d\d?/, // 999 - 9999
  662. match5to6 = /\d\d\d\d\d\d?/, // 99999 - 999999
  663. match1to3 = /\d{1,3}/, // 0 - 999
  664. match1to4 = /\d{1,4}/, // 0 - 9999
  665. match1to6 = /[+-]?\d{1,6}/, // -999999 - 999999
  666. matchUnsigned = /\d+/, // 0 - inf
  667. matchSigned = /[+-]?\d+/, // -inf - inf
  668. matchOffset = /Z|[+-]\d\d:?\d\d/gi, // +00:00 -00:00 +0000 -0000 or Z
  669. matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, // +00 -00 +00:00 -00:00 +0000 -0000 or Z
  670. matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123
  671. // any word (or two) characters or numbers including two/three word month in arabic.
  672. // includes scottish gaelic two word and hyphenated months
  673. matchWord =
  674. /[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,
  675. match1to2NoLeadingZero = /^[1-9]\d?/, // 1-99
  676. match1to2HasZero = /^([1-9]\d|\d)/, // 0-99
  677. regexes;
  678. regexes = {};
  679. function addRegexToken(token, regex, strictRegex) {
  680. regexes[token] = isFunction(regex)
  681. ? regex
  682. : function (isStrict, localeData) {
  683. return isStrict && strictRegex ? strictRegex : regex;
  684. };
  685. }
  686. function getParseRegexForToken(token, config) {
  687. if (!hasOwnProp(regexes, token)) {
  688. return new RegExp(unescapeFormat(token));
  689. }
  690. return regexes[token](config._strict, config._locale);
  691. }
  692. // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
  693. function unescapeFormat(s) {
  694. return regexEscape(
  695. s
  696. .replace('\\', '')
  697. .replace(
  698. /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
  699. function (matched, p1, p2, p3, p4) {
  700. return p1 || p2 || p3 || p4;
  701. }
  702. )
  703. );
  704. }
  705. function regexEscape(s) {
  706. return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
  707. }
  708. function absFloor(number) {
  709. if (number < 0) {
  710. // -0 -> 0
  711. return Math.ceil(number) || 0;
  712. } else {
  713. return Math.floor(number);
  714. }
  715. }
  716. function toInt(argumentForCoercion) {
  717. var coercedNumber = +argumentForCoercion,
  718. value = 0;
  719. if (coercedNumber !== 0 && isFinite(coercedNumber)) {
  720. value = absFloor(coercedNumber);
  721. }
  722. return value;
  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. function isLeapYear(year) {
  754. return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
  755. }
  756. var YEAR = 0,
  757. MONTH = 1,
  758. DATE = 2,
  759. HOUR = 3,
  760. MINUTE = 4,
  761. SECOND = 5,
  762. MILLISECOND = 6,
  763. WEEK = 7,
  764. WEEKDAY = 8;
  765. // FORMATTING
  766. addFormatToken('Y', 0, 0, function () {
  767. var y = this.year();
  768. return y <= 9999 ? zeroFill(y, 4) : '+' + y;
  769. });
  770. addFormatToken(0, ['YY', 2], 0, function () {
  771. return this.year() % 100;
  772. });
  773. addFormatToken(0, ['YYYY', 4], 0, 'year');
  774. addFormatToken(0, ['YYYYY', 5], 0, 'year');
  775. addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
  776. // PARSING
  777. addRegexToken('Y', matchSigned);
  778. addRegexToken('YY', match1to2, match2);
  779. addRegexToken('YYYY', match1to4, match4);
  780. addRegexToken('YYYYY', match1to6, match6);
  781. addRegexToken('YYYYYY', match1to6, match6);
  782. addParseToken(['YYYYY', 'YYYYYY'], YEAR);
  783. addParseToken('YYYY', function (input, array) {
  784. array[YEAR] =
  785. input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
  786. });
  787. addParseToken('YY', function (input, array) {
  788. array[YEAR] = hooks.parseTwoDigitYear(input);
  789. });
  790. addParseToken('Y', function (input, array) {
  791. array[YEAR] = parseInt(input, 10);
  792. });
  793. // HELPERS
  794. function daysInYear(year) {
  795. return isLeapYear(year) ? 366 : 365;
  796. }
  797. // HOOKS
  798. hooks.parseTwoDigitYear = function (input) {
  799. return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
  800. };
  801. // MOMENTS
  802. var getSetYear = makeGetSet('FullYear', true);
  803. function getIsLeapYear() {
  804. return isLeapYear(this.year());
  805. }
  806. function makeGetSet(unit, keepTime) {
  807. return function (value) {
  808. if (value != null) {
  809. set$1(this, unit, value);
  810. hooks.updateOffset(this, keepTime);
  811. return this;
  812. } else {
  813. return get(this, unit);
  814. }
  815. };
  816. }
  817. function get(mom, unit) {
  818. if (!mom.isValid()) {
  819. return NaN;
  820. }
  821. var d = mom._d,
  822. isUTC = mom._isUTC;
  823. switch (unit) {
  824. case 'Milliseconds':
  825. return isUTC ? d.getUTCMilliseconds() : d.getMilliseconds();
  826. case 'Seconds':
  827. return isUTC ? d.getUTCSeconds() : d.getSeconds();
  828. case 'Minutes':
  829. return isUTC ? d.getUTCMinutes() : d.getMinutes();
  830. case 'Hours':
  831. return isUTC ? d.getUTCHours() : d.getHours();
  832. case 'Date':
  833. return isUTC ? d.getUTCDate() : d.getDate();
  834. case 'Day':
  835. return isUTC ? d.getUTCDay() : d.getDay();
  836. case 'Month':
  837. return isUTC ? d.getUTCMonth() : d.getMonth();
  838. case 'FullYear':
  839. return isUTC ? d.getUTCFullYear() : d.getFullYear();
  840. default:
  841. return NaN; // Just in case
  842. }
  843. }
  844. function set$1(mom, unit, value) {
  845. var d, isUTC, year, month, date;
  846. if (!mom.isValid() || isNaN(value)) {
  847. return;
  848. }
  849. d = mom._d;
  850. isUTC = mom._isUTC;
  851. switch (unit) {
  852. case 'Milliseconds':
  853. return void (isUTC
  854. ? d.setUTCMilliseconds(value)
  855. : d.setMilliseconds(value));
  856. case 'Seconds':
  857. return void (isUTC ? d.setUTCSeconds(value) : d.setSeconds(value));
  858. case 'Minutes':
  859. return void (isUTC ? d.setUTCMinutes(value) : d.setMinutes(value));
  860. case 'Hours':
  861. return void (isUTC ? d.setUTCHours(value) : d.setHours(value));
  862. case 'Date':
  863. return void (isUTC ? d.setUTCDate(value) : d.setDate(value));
  864. // case 'Day': // Not real
  865. // return void (isUTC ? d.setUTCDay(value) : d.setDay(value));
  866. // case 'Month': // Not used because we need to pass two variables
  867. // return void (isUTC ? d.setUTCMonth(value) : d.setMonth(value));
  868. case 'FullYear':
  869. break; // See below ...
  870. default:
  871. return; // Just in case
  872. }
  873. year = value;
  874. month = mom.month();
  875. date = mom.date();
  876. date = date === 29 && month === 1 && !isLeapYear(year) ? 28 : date;
  877. void (isUTC
  878. ? d.setUTCFullYear(year, month, date)
  879. : d.setFullYear(year, month, date));
  880. }
  881. // MOMENTS
  882. function stringGet(units) {
  883. units = normalizeUnits(units);
  884. if (isFunction(this[units])) {
  885. return this[units]();
  886. }
  887. return this;
  888. }
  889. function stringSet(units, value) {
  890. if (typeof units === 'object') {
  891. units = normalizeObjectUnits(units);
  892. var prioritized = getPrioritizedUnits(units),
  893. i,
  894. prioritizedLen = prioritized.length;
  895. for (i = 0; i < prioritizedLen; i++) {
  896. this[prioritized[i].unit](units[prioritized[i].unit]);
  897. }
  898. } else {
  899. units = normalizeUnits(units);
  900. if (isFunction(this[units])) {
  901. return this[units](value);
  902. }
  903. }
  904. return this;
  905. }
  906. function mod(n, x) {
  907. return ((n % x) + x) % x;
  908. }
  909. var indexOf;
  910. if (Array.prototype.indexOf) {
  911. indexOf = Array.prototype.indexOf;
  912. } else {
  913. indexOf = function (o) {
  914. // I know
  915. var i;
  916. for (i = 0; i < this.length; ++i) {
  917. if (this[i] === o) {
  918. return i;
  919. }
  920. }
  921. return -1;
  922. };
  923. }
  924. function daysInMonth(year, month) {
  925. if (isNaN(year) || isNaN(month)) {
  926. return NaN;
  927. }
  928. var modMonth = mod(month, 12);
  929. year += (month - modMonth) / 12;
  930. return modMonth === 1
  931. ? isLeapYear(year)
  932. ? 29
  933. : 28
  934. : 31 - ((modMonth % 7) % 2);
  935. }
  936. // FORMATTING
  937. addFormatToken('M', ['MM', 2], 'Mo', function () {
  938. return this.month() + 1;
  939. });
  940. addFormatToken('MMM', 0, 0, function (format) {
  941. return this.localeData().monthsShort(this, format);
  942. });
  943. addFormatToken('MMMM', 0, 0, function (format) {
  944. return this.localeData().months(this, format);
  945. });
  946. // PARSING
  947. addRegexToken('M', match1to2, match1to2NoLeadingZero);
  948. addRegexToken('MM', match1to2, match2);
  949. addRegexToken('MMM', function (isStrict, locale) {
  950. return locale.monthsShortRegex(isStrict);
  951. });
  952. addRegexToken('MMMM', function (isStrict, locale) {
  953. return locale.monthsRegex(isStrict);
  954. });
  955. addParseToken(['M', 'MM'], function (input, array) {
  956. array[MONTH] = toInt(input) - 1;
  957. });
  958. addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
  959. var month = config._locale.monthsParse(input, token, config._strict);
  960. // if we didn't find a month name, mark the date as invalid.
  961. if (month != null) {
  962. array[MONTH] = month;
  963. } else {
  964. getParsingFlags(config).invalidMonth = input;
  965. }
  966. });
  967. // LOCALES
  968. var defaultLocaleMonths =
  969. 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  970. '_'
  971. ),
  972. defaultLocaleMonthsShort =
  973. 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  974. MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
  975. defaultMonthsShortRegex = matchWord,
  976. defaultMonthsRegex = matchWord;
  977. function localeMonths(m, format) {
  978. if (!m) {
  979. return isArray(this._months)
  980. ? this._months
  981. : this._months['standalone'];
  982. }
  983. return isArray(this._months)
  984. ? this._months[m.month()]
  985. : this._months[
  986. (this._months.isFormat || MONTHS_IN_FORMAT).test(format)
  987. ? 'format'
  988. : 'standalone'
  989. ][m.month()];
  990. }
  991. function localeMonthsShort(m, format) {
  992. if (!m) {
  993. return isArray(this._monthsShort)
  994. ? this._monthsShort
  995. : this._monthsShort['standalone'];
  996. }
  997. return isArray(this._monthsShort)
  998. ? this._monthsShort[m.month()]
  999. : this._monthsShort[
  1000. MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'
  1001. ][m.month()];
  1002. }
  1003. function handleStrictParse(monthName, format, strict) {
  1004. var i,
  1005. ii,
  1006. mom,
  1007. llc = monthName.toLocaleLowerCase();
  1008. if (!this._monthsParse) {
  1009. // this is not used
  1010. this._monthsParse = [];
  1011. this._longMonthsParse = [];
  1012. this._shortMonthsParse = [];
  1013. for (i = 0; i < 12; ++i) {
  1014. mom = createUTC([2000, i]);
  1015. this._shortMonthsParse[i] = this.monthsShort(
  1016. mom,
  1017. ''
  1018. ).toLocaleLowerCase();
  1019. this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();
  1020. }
  1021. }
  1022. if (strict) {
  1023. if (format === 'MMM') {
  1024. ii = indexOf.call(this._shortMonthsParse, llc);
  1025. return ii !== -1 ? ii : null;
  1026. } else {
  1027. ii = indexOf.call(this._longMonthsParse, llc);
  1028. return ii !== -1 ? ii : null;
  1029. }
  1030. } else {
  1031. if (format === 'MMM') {
  1032. ii = indexOf.call(this._shortMonthsParse, llc);
  1033. if (ii !== -1) {
  1034. return ii;
  1035. }
  1036. ii = indexOf.call(this._longMonthsParse, llc);
  1037. return ii !== -1 ? ii : null;
  1038. } else {
  1039. ii = indexOf.call(this._longMonthsParse, llc);
  1040. if (ii !== -1) {
  1041. return ii;
  1042. }
  1043. ii = indexOf.call(this._shortMonthsParse, llc);
  1044. return ii !== -1 ? ii : null;
  1045. }
  1046. }
  1047. }
  1048. function localeMonthsParse(monthName, format, strict) {
  1049. var i, mom, regex;
  1050. if (this._monthsParseExact) {
  1051. return handleStrictParse.call(this, monthName, format, strict);
  1052. }
  1053. if (!this._monthsParse) {
  1054. this._monthsParse = [];
  1055. this._longMonthsParse = [];
  1056. this._shortMonthsParse = [];
  1057. }
  1058. // TODO: add sorting
  1059. // Sorting makes sure if one month (or abbr) is a prefix of another
  1060. // see sorting in computeMonthsParse
  1061. for (i = 0; i < 12; i++) {
  1062. // make the regex if we don't have it already
  1063. mom = createUTC([2000, i]);
  1064. if (strict && !this._longMonthsParse[i]) {
  1065. this._longMonthsParse[i] = new RegExp(
  1066. '^' + this.months(mom, '').replace('.', '') + '$',
  1067. 'i'
  1068. );
  1069. this._shortMonthsParse[i] = new RegExp(
  1070. '^' + this.monthsShort(mom, '').replace('.', '') + '$',
  1071. 'i'
  1072. );
  1073. }
  1074. if (!strict && !this._monthsParse[i]) {
  1075. regex =
  1076. '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
  1077. this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
  1078. }
  1079. // test the regex
  1080. if (
  1081. strict &&
  1082. format === 'MMMM' &&
  1083. this._longMonthsParse[i].test(monthName)
  1084. ) {
  1085. return i;
  1086. } else if (
  1087. strict &&
  1088. format === 'MMM' &&
  1089. this._shortMonthsParse[i].test(monthName)
  1090. ) {
  1091. return i;
  1092. } else if (!strict && this._monthsParse[i].test(monthName)) {
  1093. return i;
  1094. }
  1095. }
  1096. }
  1097. // MOMENTS
  1098. function setMonth(mom, value) {
  1099. if (!mom.isValid()) {
  1100. // No op
  1101. return mom;
  1102. }
  1103. if (typeof value === 'string') {
  1104. if (/^\d+$/.test(value)) {
  1105. value = toInt(value);
  1106. } else {
  1107. value = mom.localeData().monthsParse(value);
  1108. // TODO: Another silent failure?
  1109. if (!isNumber(value)) {
  1110. return mom;
  1111. }
  1112. }
  1113. }
  1114. var month = value,
  1115. date = mom.date();
  1116. date = date < 29 ? date : Math.min(date, daysInMonth(mom.year(), month));
  1117. void (mom._isUTC
  1118. ? mom._d.setUTCMonth(month, date)
  1119. : mom._d.setMonth(month, date));
  1120. return mom;
  1121. }
  1122. function getSetMonth(value) {
  1123. if (value != null) {
  1124. setMonth(this, value);
  1125. hooks.updateOffset(this, true);
  1126. return this;
  1127. } else {
  1128. return get(this, 'Month');
  1129. }
  1130. }
  1131. function getDaysInMonth() {
  1132. return daysInMonth(this.year(), this.month());
  1133. }
  1134. function monthsShortRegex(isStrict) {
  1135. if (this._monthsParseExact) {
  1136. if (!hasOwnProp(this, '_monthsRegex')) {
  1137. computeMonthsParse.call(this);
  1138. }
  1139. if (isStrict) {
  1140. return this._monthsShortStrictRegex;
  1141. } else {
  1142. return this._monthsShortRegex;
  1143. }
  1144. } else {
  1145. if (!hasOwnProp(this, '_monthsShortRegex')) {
  1146. this._monthsShortRegex = defaultMonthsShortRegex;
  1147. }
  1148. return this._monthsShortStrictRegex && isStrict
  1149. ? this._monthsShortStrictRegex
  1150. : this._monthsShortRegex;
  1151. }
  1152. }
  1153. function monthsRegex(isStrict) {
  1154. if (this._monthsParseExact) {
  1155. if (!hasOwnProp(this, '_monthsRegex')) {
  1156. computeMonthsParse.call(this);
  1157. }
  1158. if (isStrict) {
  1159. return this._monthsStrictRegex;
  1160. } else {
  1161. return this._monthsRegex;
  1162. }
  1163. } else {
  1164. if (!hasOwnProp(this, '_monthsRegex')) {
  1165. this._monthsRegex = defaultMonthsRegex;
  1166. }
  1167. return this._monthsStrictRegex && isStrict
  1168. ? this._monthsStrictRegex
  1169. : this._monthsRegex;
  1170. }
  1171. }
  1172. function computeMonthsParse() {
  1173. function cmpLenRev(a, b) {
  1174. return b.length - a.length;
  1175. }
  1176. var shortPieces = [],
  1177. longPieces = [],
  1178. mixedPieces = [],
  1179. i,
  1180. mom,
  1181. shortP,
  1182. longP;
  1183. for (i = 0; i < 12; i++) {
  1184. // make the regex if we don't have it already
  1185. mom = createUTC([2000, i]);
  1186. shortP = regexEscape(this.monthsShort(mom, ''));
  1187. longP = regexEscape(this.months(mom, ''));
  1188. shortPieces.push(shortP);
  1189. longPieces.push(longP);
  1190. mixedPieces.push(longP);
  1191. mixedPieces.push(shortP);
  1192. }
  1193. // Sorting makes sure if one month (or abbr) is a prefix of another it
  1194. // will match the longer piece.
  1195. shortPieces.sort(cmpLenRev);
  1196. longPieces.sort(cmpLenRev);
  1197. mixedPieces.sort(cmpLenRev);
  1198. this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  1199. this._monthsShortRegex = this._monthsRegex;
  1200. this._monthsStrictRegex = new RegExp(
  1201. '^(' + longPieces.join('|') + ')',
  1202. 'i'
  1203. );
  1204. this._monthsShortStrictRegex = new RegExp(
  1205. '^(' + shortPieces.join('|') + ')',
  1206. 'i'
  1207. );
  1208. }
  1209. function createDate(y, m, d, h, M, s, ms) {
  1210. // can't just apply() to create a date:
  1211. // https://stackoverflow.com/q/181348
  1212. var date;
  1213. // the date constructor remaps years 0-99 to 1900-1999
  1214. if (y < 100 && y >= 0) {
  1215. // preserve leap years using a full 400 year cycle, then reset
  1216. date = new Date(y + 400, m, d, h, M, s, ms);
  1217. if (isFinite(date.getFullYear())) {
  1218. date.setFullYear(y);
  1219. }
  1220. } else {
  1221. date = new Date(y, m, d, h, M, s, ms);
  1222. }
  1223. return date;
  1224. }
  1225. function createUTCDate(y) {
  1226. var date, args;
  1227. // the Date.UTC function remaps years 0-99 to 1900-1999
  1228. if (y < 100 && y >= 0) {
  1229. args = Array.prototype.slice.call(arguments);
  1230. // preserve leap years using a full 400 year cycle, then reset
  1231. args[0] = y + 400;
  1232. date = new Date(Date.UTC.apply(null, args));
  1233. if (isFinite(date.getUTCFullYear())) {
  1234. date.setUTCFullYear(y);
  1235. }
  1236. } else {
  1237. date = new Date(Date.UTC.apply(null, arguments));
  1238. }
  1239. return date;
  1240. }
  1241. // start-of-first-week - start-of-year
  1242. function firstWeekOffset(year, dow, doy) {
  1243. var // first-week day -- which january is always in the first week (4 for iso, 1 for other)
  1244. fwd = 7 + dow - doy,
  1245. // first-week day local weekday -- which local weekday is fwd
  1246. fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
  1247. return -fwdlw + fwd - 1;
  1248. }
  1249. // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
  1250. function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
  1251. var localWeekday = (7 + weekday - dow) % 7,
  1252. weekOffset = firstWeekOffset(year, dow, doy),
  1253. dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,
  1254. resYear,
  1255. resDayOfYear;
  1256. if (dayOfYear <= 0) {
  1257. resYear = year - 1;
  1258. resDayOfYear = daysInYear(resYear) + dayOfYear;
  1259. } else if (dayOfYear > daysInYear(year)) {
  1260. resYear = year + 1;
  1261. resDayOfYear = dayOfYear - daysInYear(year);
  1262. } else {
  1263. resYear = year;
  1264. resDayOfYear = dayOfYear;
  1265. }
  1266. return {
  1267. year: resYear,
  1268. dayOfYear: resDayOfYear,
  1269. };
  1270. }
  1271. function weekOfYear(mom, dow, doy) {
  1272. var weekOffset = firstWeekOffset(mom.year(), dow, doy),
  1273. week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,
  1274. resWeek,
  1275. resYear;
  1276. if (week < 1) {
  1277. resYear = mom.year() - 1;
  1278. resWeek = week + weeksInYear(resYear, dow, doy);
  1279. } else if (week > weeksInYear(mom.year(), dow, doy)) {
  1280. resWeek = week - weeksInYear(mom.year(), dow, doy);
  1281. resYear = mom.year() + 1;
  1282. } else {
  1283. resYear = mom.year();
  1284. resWeek = week;
  1285. }
  1286. return {
  1287. week: resWeek,
  1288. year: resYear,
  1289. };
  1290. }
  1291. function weeksInYear(year, dow, doy) {
  1292. var weekOffset = firstWeekOffset(year, dow, doy),
  1293. weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
  1294. return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
  1295. }
  1296. // FORMATTING
  1297. addFormatToken('w', ['ww', 2], 'wo', 'week');
  1298. addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
  1299. // PARSING
  1300. addRegexToken('w', match1to2, match1to2NoLeadingZero);
  1301. addRegexToken('ww', match1to2, match2);
  1302. addRegexToken('W', match1to2, match1to2NoLeadingZero);
  1303. addRegexToken('WW', match1to2, match2);
  1304. addWeekParseToken(
  1305. ['w', 'ww', 'W', 'WW'],
  1306. function (input, week, config, token) {
  1307. week[token.substr(0, 1)] = toInt(input);
  1308. }
  1309. );
  1310. // HELPERS
  1311. // LOCALES
  1312. function localeWeek(mom) {
  1313. return weekOfYear(mom, this._week.dow, this._week.doy).week;
  1314. }
  1315. var defaultLocaleWeek = {
  1316. dow: 0, // Sunday is the first day of the week.
  1317. doy: 6, // The week that contains Jan 6th is the first week of the year.
  1318. };
  1319. function localeFirstDayOfWeek() {
  1320. return this._week.dow;
  1321. }
  1322. function localeFirstDayOfYear() {
  1323. return this._week.doy;
  1324. }
  1325. // MOMENTS
  1326. function getSetWeek(input) {
  1327. var week = this.localeData().week(this);
  1328. return input == null ? week : this.add((input - week) * 7, 'd');
  1329. }
  1330. function getSetISOWeek(input) {
  1331. var week = weekOfYear(this, 1, 4).week;
  1332. return input == null ? week : this.add((input - week) * 7, 'd');
  1333. }
  1334. // FORMATTING
  1335. addFormatToken('d', 0, 'do', 'day');
  1336. addFormatToken('dd', 0, 0, function (format) {
  1337. return this.localeData().weekdaysMin(this, format);
  1338. });
  1339. addFormatToken('ddd', 0, 0, function (format) {
  1340. return this.localeData().weekdaysShort(this, format);
  1341. });
  1342. addFormatToken('dddd', 0, 0, function (format) {
  1343. return this.localeData().weekdays(this, format);
  1344. });
  1345. addFormatToken('e', 0, 0, 'weekday');
  1346. addFormatToken('E', 0, 0, 'isoWeekday');
  1347. // PARSING
  1348. addRegexToken('d', match1to2);
  1349. addRegexToken('e', match1to2);
  1350. addRegexToken('E', match1to2);
  1351. addRegexToken('dd', function (isStrict, locale) {
  1352. return locale.weekdaysMinRegex(isStrict);
  1353. });
  1354. addRegexToken('ddd', function (isStrict, locale) {
  1355. return locale.weekdaysShortRegex(isStrict);
  1356. });
  1357. addRegexToken('dddd', function (isStrict, locale) {
  1358. return locale.weekdaysRegex(isStrict);
  1359. });
  1360. addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {
  1361. var weekday = config._locale.weekdaysParse(input, token, config._strict);
  1362. // if we didn't get a weekday name, mark the date as invalid
  1363. if (weekday != null) {
  1364. week.d = weekday;
  1365. } else {
  1366. getParsingFlags(config).invalidWeekday = input;
  1367. }
  1368. });
  1369. addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {
  1370. week[token] = toInt(input);
  1371. });
  1372. // HELPERS
  1373. function parseWeekday(input, locale) {
  1374. if (typeof input !== 'string') {
  1375. return input;
  1376. }
  1377. if (!isNaN(input)) {
  1378. return parseInt(input, 10);
  1379. }
  1380. input = locale.weekdaysParse(input);
  1381. if (typeof input === 'number') {
  1382. return input;
  1383. }
  1384. return null;
  1385. }
  1386. function parseIsoWeekday(input, locale) {
  1387. if (typeof input === 'string') {
  1388. return locale.weekdaysParse(input) % 7 || 7;
  1389. }
  1390. return isNaN(input) ? null : input;
  1391. }
  1392. // LOCALES
  1393. function shiftWeekdays(ws, n) {
  1394. return ws.slice(n, 7).concat(ws.slice(0, n));
  1395. }
  1396. var defaultLocaleWeekdays =
  1397. 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  1398. defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  1399. defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  1400. defaultWeekdaysRegex = matchWord,
  1401. defaultWeekdaysShortRegex = matchWord,
  1402. defaultWeekdaysMinRegex = matchWord;
  1403. function localeWeekdays(m, format) {
  1404. var weekdays = isArray(this._weekdays)
  1405. ? this._weekdays
  1406. : this._weekdays[
  1407. m && m !== true && this._weekdays.isFormat.test(format)
  1408. ? 'format'
  1409. : 'standalone'
  1410. ];
  1411. return m === true
  1412. ? shiftWeekdays(weekdays, this._week.dow)
  1413. : m
  1414. ? weekdays[m.day()]
  1415. : weekdays;
  1416. }
  1417. function localeWeekdaysShort(m) {
  1418. return m === true
  1419. ? shiftWeekdays(this._weekdaysShort, this._week.dow)
  1420. : m
  1421. ? this._weekdaysShort[m.day()]
  1422. : this._weekdaysShort;
  1423. }
  1424. function localeWeekdaysMin(m) {
  1425. return m === true
  1426. ? shiftWeekdays(this._weekdaysMin, this._week.dow)
  1427. : m
  1428. ? this._weekdaysMin[m.day()]
  1429. : this._weekdaysMin;
  1430. }
  1431. function handleStrictParse$1(weekdayName, format, strict) {
  1432. var i,
  1433. ii,
  1434. mom,
  1435. llc = weekdayName.toLocaleLowerCase();
  1436. if (!this._weekdaysParse) {
  1437. this._weekdaysParse = [];
  1438. this._shortWeekdaysParse = [];
  1439. this._minWeekdaysParse = [];
  1440. for (i = 0; i < 7; ++i) {
  1441. mom = createUTC([2000, 1]).day(i);
  1442. this._minWeekdaysParse[i] = this.weekdaysMin(
  1443. mom,
  1444. ''
  1445. ).toLocaleLowerCase();
  1446. this._shortWeekdaysParse[i] = this.weekdaysShort(
  1447. mom,
  1448. ''
  1449. ).toLocaleLowerCase();
  1450. this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();
  1451. }
  1452. }
  1453. if (strict) {
  1454. if (format === 'dddd') {
  1455. ii = indexOf.call(this._weekdaysParse, llc);
  1456. return ii !== -1 ? ii : null;
  1457. } else if (format === 'ddd') {
  1458. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1459. return ii !== -1 ? ii : null;
  1460. } else {
  1461. ii = indexOf.call(this._minWeekdaysParse, llc);
  1462. return ii !== -1 ? ii : null;
  1463. }
  1464. } else {
  1465. if (format === 'dddd') {
  1466. ii = indexOf.call(this._weekdaysParse, llc);
  1467. if (ii !== -1) {
  1468. return ii;
  1469. }
  1470. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1471. if (ii !== -1) {
  1472. return ii;
  1473. }
  1474. ii = indexOf.call(this._minWeekdaysParse, llc);
  1475. return ii !== -1 ? ii : null;
  1476. } else if (format === 'ddd') {
  1477. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1478. if (ii !== -1) {
  1479. return ii;
  1480. }
  1481. ii = indexOf.call(this._weekdaysParse, llc);
  1482. if (ii !== -1) {
  1483. return ii;
  1484. }
  1485. ii = indexOf.call(this._minWeekdaysParse, llc);
  1486. return ii !== -1 ? ii : null;
  1487. } else {
  1488. ii = indexOf.call(this._minWeekdaysParse, llc);
  1489. if (ii !== -1) {
  1490. return ii;
  1491. }
  1492. ii = indexOf.call(this._weekdaysParse, llc);
  1493. if (ii !== -1) {
  1494. return ii;
  1495. }
  1496. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1497. return ii !== -1 ? ii : null;
  1498. }
  1499. }
  1500. }
  1501. function localeWeekdaysParse(weekdayName, format, strict) {
  1502. var i, mom, regex;
  1503. if (this._weekdaysParseExact) {
  1504. return handleStrictParse$1.call(this, weekdayName, format, strict);
  1505. }
  1506. if (!this._weekdaysParse) {
  1507. this._weekdaysParse = [];
  1508. this._minWeekdaysParse = [];
  1509. this._shortWeekdaysParse = [];
  1510. this._fullWeekdaysParse = [];
  1511. }
  1512. for (i = 0; i < 7; i++) {
  1513. // make the regex if we don't have it already
  1514. mom = createUTC([2000, 1]).day(i);
  1515. if (strict && !this._fullWeekdaysParse[i]) {
  1516. this._fullWeekdaysParse[i] = new RegExp(
  1517. '^' + this.weekdays(mom, '').replace('.', '\\.?') + '$',
  1518. 'i'
  1519. );
  1520. this._shortWeekdaysParse[i] = new RegExp(
  1521. '^' + this.weekdaysShort(mom, '').replace('.', '\\.?') + '$',
  1522. 'i'
  1523. );
  1524. this._minWeekdaysParse[i] = new RegExp(
  1525. '^' + this.weekdaysMin(mom, '').replace('.', '\\.?') + '$',
  1526. 'i'
  1527. );
  1528. }
  1529. if (!this._weekdaysParse[i]) {
  1530. regex =
  1531. '^' +
  1532. this.weekdays(mom, '') +
  1533. '|^' +
  1534. this.weekdaysShort(mom, '') +
  1535. '|^' +
  1536. this.weekdaysMin(mom, '');
  1537. this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
  1538. }
  1539. // test the regex
  1540. if (
  1541. strict &&
  1542. format === 'dddd' &&
  1543. this._fullWeekdaysParse[i].test(weekdayName)
  1544. ) {
  1545. return i;
  1546. } else if (
  1547. strict &&
  1548. format === 'ddd' &&
  1549. this._shortWeekdaysParse[i].test(weekdayName)
  1550. ) {
  1551. return i;
  1552. } else if (
  1553. strict &&
  1554. format === 'dd' &&
  1555. this._minWeekdaysParse[i].test(weekdayName)
  1556. ) {
  1557. return i;
  1558. } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {
  1559. return i;
  1560. }
  1561. }
  1562. }
  1563. // MOMENTS
  1564. function getSetDayOfWeek(input) {
  1565. if (!this.isValid()) {
  1566. return input != null ? this : NaN;
  1567. }
  1568. var day = get(this, 'Day');
  1569. if (input != null) {
  1570. input = parseWeekday(input, this.localeData());
  1571. return this.add(input - day, 'd');
  1572. } else {
  1573. return day;
  1574. }
  1575. }
  1576. function getSetLocaleDayOfWeek(input) {
  1577. if (!this.isValid()) {
  1578. return input != null ? this : NaN;
  1579. }
  1580. var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
  1581. return input == null ? weekday : this.add(input - weekday, 'd');
  1582. }
  1583. function getSetISODayOfWeek(input) {
  1584. if (!this.isValid()) {
  1585. return input != null ? this : NaN;
  1586. }
  1587. // behaves the same as moment#day except
  1588. // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
  1589. // as a setter, sunday should belong to the previous week.
  1590. if (input != null) {
  1591. var weekday = parseIsoWeekday(input, this.localeData());
  1592. return this.day(this.day() % 7 ? weekday : weekday - 7);
  1593. } else {
  1594. return this.day() || 7;
  1595. }
  1596. }
  1597. function weekdaysRegex(isStrict) {
  1598. if (this._weekdaysParseExact) {
  1599. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1600. computeWeekdaysParse.call(this);
  1601. }
  1602. if (isStrict) {
  1603. return this._weekdaysStrictRegex;
  1604. } else {
  1605. return this._weekdaysRegex;
  1606. }
  1607. } else {
  1608. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1609. this._weekdaysRegex = defaultWeekdaysRegex;
  1610. }
  1611. return this._weekdaysStrictRegex && isStrict
  1612. ? this._weekdaysStrictRegex
  1613. : this._weekdaysRegex;
  1614. }
  1615. }
  1616. function weekdaysShortRegex(isStrict) {
  1617. if (this._weekdaysParseExact) {
  1618. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1619. computeWeekdaysParse.call(this);
  1620. }
  1621. if (isStrict) {
  1622. return this._weekdaysShortStrictRegex;
  1623. } else {
  1624. return this._weekdaysShortRegex;
  1625. }
  1626. } else {
  1627. if (!hasOwnProp(this, '_weekdaysShortRegex')) {
  1628. this._weekdaysShortRegex = defaultWeekdaysShortRegex;
  1629. }
  1630. return this._weekdaysShortStrictRegex && isStrict
  1631. ? this._weekdaysShortStrictRegex
  1632. : this._weekdaysShortRegex;
  1633. }
  1634. }
  1635. function weekdaysMinRegex(isStrict) {
  1636. if (this._weekdaysParseExact) {
  1637. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1638. computeWeekdaysParse.call(this);
  1639. }
  1640. if (isStrict) {
  1641. return this._weekdaysMinStrictRegex;
  1642. } else {
  1643. return this._weekdaysMinRegex;
  1644. }
  1645. } else {
  1646. if (!hasOwnProp(this, '_weekdaysMinRegex')) {
  1647. this._weekdaysMinRegex = defaultWeekdaysMinRegex;
  1648. }
  1649. return this._weekdaysMinStrictRegex && isStrict
  1650. ? this._weekdaysMinStrictRegex
  1651. : this._weekdaysMinRegex;
  1652. }
  1653. }
  1654. function computeWeekdaysParse() {
  1655. function cmpLenRev(a, b) {
  1656. return b.length - a.length;
  1657. }
  1658. var minPieces = [],
  1659. shortPieces = [],
  1660. longPieces = [],
  1661. mixedPieces = [],
  1662. i,
  1663. mom,
  1664. minp,
  1665. shortp,
  1666. longp;
  1667. for (i = 0; i < 7; i++) {
  1668. // make the regex if we don't have it already
  1669. mom = createUTC([2000, 1]).day(i);
  1670. minp = regexEscape(this.weekdaysMin(mom, ''));
  1671. shortp = regexEscape(this.weekdaysShort(mom, ''));
  1672. longp = regexEscape(this.weekdays(mom, ''));
  1673. minPieces.push(minp);
  1674. shortPieces.push(shortp);
  1675. longPieces.push(longp);
  1676. mixedPieces.push(minp);
  1677. mixedPieces.push(shortp);
  1678. mixedPieces.push(longp);
  1679. }
  1680. // Sorting makes sure if one weekday (or abbr) is a prefix of another it
  1681. // will match the longer piece.
  1682. minPieces.sort(cmpLenRev);
  1683. shortPieces.sort(cmpLenRev);
  1684. longPieces.sort(cmpLenRev);
  1685. mixedPieces.sort(cmpLenRev);
  1686. this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  1687. this._weekdaysShortRegex = this._weekdaysRegex;
  1688. this._weekdaysMinRegex = this._weekdaysRegex;
  1689. this._weekdaysStrictRegex = new RegExp(
  1690. '^(' + longPieces.join('|') + ')',
  1691. 'i'
  1692. );
  1693. this._weekdaysShortStrictRegex = new RegExp(
  1694. '^(' + shortPieces.join('|') + ')',
  1695. 'i'
  1696. );
  1697. this._weekdaysMinStrictRegex = new RegExp(
  1698. '^(' + minPieces.join('|') + ')',
  1699. 'i'
  1700. );
  1701. }
  1702. // FORMATTING
  1703. function hFormat() {
  1704. return this.hours() % 12 || 12;
  1705. }
  1706. function kFormat() {
  1707. return this.hours() || 24;
  1708. }
  1709. addFormatToken('H', ['HH', 2], 0, 'hour');
  1710. addFormatToken('h', ['hh', 2], 0, hFormat);
  1711. addFormatToken('k', ['kk', 2], 0, kFormat);
  1712. addFormatToken('hmm', 0, 0, function () {
  1713. return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);
  1714. });
  1715. addFormatToken('hmmss', 0, 0, function () {
  1716. return (
  1717. '' +
  1718. hFormat.apply(this) +
  1719. zeroFill(this.minutes(), 2) +
  1720. zeroFill(this.seconds(), 2)
  1721. );
  1722. });
  1723. addFormatToken('Hmm', 0, 0, function () {
  1724. return '' + this.hours() + zeroFill(this.minutes(), 2);
  1725. });
  1726. addFormatToken('Hmmss', 0, 0, function () {
  1727. return (
  1728. '' +
  1729. this.hours() +
  1730. zeroFill(this.minutes(), 2) +
  1731. zeroFill(this.seconds(), 2)
  1732. );
  1733. });
  1734. function meridiem(token, lowercase) {
  1735. addFormatToken(token, 0, 0, function () {
  1736. return this.localeData().meridiem(
  1737. this.hours(),
  1738. this.minutes(),
  1739. lowercase
  1740. );
  1741. });
  1742. }
  1743. meridiem('a', true);
  1744. meridiem('A', false);
  1745. // PARSING
  1746. function matchMeridiem(isStrict, locale) {
  1747. return locale._meridiemParse;
  1748. }
  1749. addRegexToken('a', matchMeridiem);
  1750. addRegexToken('A', matchMeridiem);
  1751. addRegexToken('H', match1to2, match1to2HasZero);
  1752. addRegexToken('h', match1to2, match1to2NoLeadingZero);
  1753. addRegexToken('k', match1to2, match1to2NoLeadingZero);
  1754. addRegexToken('HH', match1to2, match2);
  1755. addRegexToken('hh', match1to2, match2);
  1756. addRegexToken('kk', match1to2, match2);
  1757. addRegexToken('hmm', match3to4);
  1758. addRegexToken('hmmss', match5to6);
  1759. addRegexToken('Hmm', match3to4);
  1760. addRegexToken('Hmmss', match5to6);
  1761. addParseToken(['H', 'HH'], HOUR);
  1762. addParseToken(['k', 'kk'], function (input, array, config) {
  1763. var kInput = toInt(input);
  1764. array[HOUR] = kInput === 24 ? 0 : kInput;
  1765. });
  1766. addParseToken(['a', 'A'], function (input, array, config) {
  1767. config._isPm = config._locale.isPM(input);
  1768. config._meridiem = input;
  1769. });
  1770. addParseToken(['h', 'hh'], function (input, array, config) {
  1771. array[HOUR] = toInt(input);
  1772. getParsingFlags(config).bigHour = true;
  1773. });
  1774. addParseToken('hmm', function (input, array, config) {
  1775. var pos = input.length - 2;
  1776. array[HOUR] = toInt(input.substr(0, pos));
  1777. array[MINUTE] = toInt(input.substr(pos));
  1778. getParsingFlags(config).bigHour = true;
  1779. });
  1780. addParseToken('hmmss', function (input, array, config) {
  1781. var pos1 = input.length - 4,
  1782. pos2 = input.length - 2;
  1783. array[HOUR] = toInt(input.substr(0, pos1));
  1784. array[MINUTE] = toInt(input.substr(pos1, 2));
  1785. array[SECOND] = toInt(input.substr(pos2));
  1786. getParsingFlags(config).bigHour = true;
  1787. });
  1788. addParseToken('Hmm', function (input, array, config) {
  1789. var pos = input.length - 2;
  1790. array[HOUR] = toInt(input.substr(0, pos));
  1791. array[MINUTE] = toInt(input.substr(pos));
  1792. });
  1793. addParseToken('Hmmss', function (input, array, config) {
  1794. var pos1 = input.length - 4,
  1795. pos2 = input.length - 2;
  1796. array[HOUR] = toInt(input.substr(0, pos1));
  1797. array[MINUTE] = toInt(input.substr(pos1, 2));
  1798. array[SECOND] = toInt(input.substr(pos2));
  1799. });
  1800. // LOCALES
  1801. function localeIsPM(input) {
  1802. // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
  1803. // Using charAt should be more compatible.
  1804. return (input + '').toLowerCase().charAt(0) === 'p';
  1805. }
  1806. var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i,
  1807. // Setting the hour should keep the time, because the user explicitly
  1808. // specified which hour they want. So trying to maintain the same hour (in
  1809. // a new timezone) makes sense. Adding/subtracting hours does not follow
  1810. // this rule.
  1811. getSetHour = makeGetSet('Hours', true);
  1812. function localeMeridiem(hours, minutes, isLower) {
  1813. if (hours > 11) {
  1814. return isLower ? 'pm' : 'PM';
  1815. } else {
  1816. return isLower ? 'am' : 'AM';
  1817. }
  1818. }
  1819. var baseConfig = {
  1820. calendar: defaultCalendar,
  1821. longDateFormat: defaultLongDateFormat,
  1822. invalidDate: defaultInvalidDate,
  1823. ordinal: defaultOrdinal,
  1824. dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,
  1825. relativeTime: defaultRelativeTime,
  1826. months: defaultLocaleMonths,
  1827. monthsShort: defaultLocaleMonthsShort,
  1828. week: defaultLocaleWeek,
  1829. weekdays: defaultLocaleWeekdays,
  1830. weekdaysMin: defaultLocaleWeekdaysMin,
  1831. weekdaysShort: defaultLocaleWeekdaysShort,
  1832. meridiemParse: defaultLocaleMeridiemParse,
  1833. };
  1834. // internal storage for locale config files
  1835. var locales = {},
  1836. localeFamilies = {},
  1837. globalLocale;
  1838. function commonPrefix(arr1, arr2) {
  1839. var i,
  1840. minl = Math.min(arr1.length, arr2.length);
  1841. for (i = 0; i < minl; i += 1) {
  1842. if (arr1[i] !== arr2[i]) {
  1843. return i;
  1844. }
  1845. }
  1846. return minl;
  1847. }
  1848. function normalizeLocale(key) {
  1849. return key ? key.toLowerCase().replace('_', '-') : key;
  1850. }
  1851. // pick the locale from the array
  1852. // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
  1853. // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
  1854. function chooseLocale(names) {
  1855. var i = 0,
  1856. j,
  1857. next,
  1858. locale,
  1859. split;
  1860. while (i < names.length) {
  1861. split = normalizeLocale(names[i]).split('-');
  1862. j = split.length;
  1863. next = normalizeLocale(names[i + 1]);
  1864. next = next ? next.split('-') : null;
  1865. while (j > 0) {
  1866. locale = loadLocale(split.slice(0, j).join('-'));
  1867. if (locale) {
  1868. return locale;
  1869. }
  1870. if (
  1871. next &&
  1872. next.length >= j &&
  1873. commonPrefix(split, next) >= j - 1
  1874. ) {
  1875. //the next array item is better than a shallower substring of this one
  1876. break;
  1877. }
  1878. j--;
  1879. }
  1880. i++;
  1881. }
  1882. return globalLocale;
  1883. }
  1884. function isLocaleNameSane(name) {
  1885. // Prevent names that look like filesystem paths, i.e contain '/' or '\'
  1886. // Ensure name is available and function returns boolean
  1887. return !!(name && name.match('^[^/\\\\]*$'));
  1888. }
  1889. function loadLocale(name) {
  1890. var oldLocale = null,
  1891. aliasedRequire;
  1892. // TODO: Find a better way to register and load all the locales in Node
  1893. if (
  1894. locales[name] === undefined &&
  1895. typeof module !== 'undefined' &&
  1896. module &&
  1897. module.exports &&
  1898. isLocaleNameSane(name)
  1899. ) {
  1900. try {
  1901. oldLocale = globalLocale._abbr;
  1902. aliasedRequire = require;
  1903. aliasedRequire('./locale/' + name);
  1904. getSetGlobalLocale(oldLocale);
  1905. } catch (e) {
  1906. // mark as not found to avoid repeating expensive file require call causing high CPU
  1907. // when trying to find en-US, en_US, en-us for every format call
  1908. locales[name] = null; // null means not found
  1909. }
  1910. }
  1911. return locales[name];
  1912. }
  1913. // This function will load locale and then set the global locale. If
  1914. // no arguments are passed in, it will simply return the current global
  1915. // locale key.
  1916. function getSetGlobalLocale(key, values) {
  1917. var data;
  1918. if (key) {
  1919. if (isUndefined(values)) {
  1920. data = getLocale(key);
  1921. } else {
  1922. data = defineLocale(key, values);
  1923. }
  1924. if (data) {
  1925. // moment.duration._locale = moment._locale = data;
  1926. globalLocale = data;
  1927. } else {
  1928. if (typeof console !== 'undefined' && console.warn) {
  1929. //warn user if arguments are passed but the locale could not be set
  1930. console.warn(
  1931. 'Locale ' + key + ' not found. Did you forget to load it?'
  1932. );
  1933. }
  1934. }
  1935. }
  1936. return globalLocale._abbr;
  1937. }
  1938. function defineLocale(name, config) {
  1939. if (config !== null) {
  1940. var locale,
  1941. parentConfig = baseConfig;
  1942. config.abbr = name;
  1943. if (locales[name] != null) {
  1944. deprecateSimple(
  1945. 'defineLocaleOverride',
  1946. 'use moment.updateLocale(localeName, config) to change ' +
  1947. 'an existing locale. moment.defineLocale(localeName, ' +
  1948. 'config) should only be used for creating a new locale ' +
  1949. 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.'
  1950. );
  1951. parentConfig = locales[name]._config;
  1952. } else if (config.parentLocale != null) {
  1953. if (locales[config.parentLocale] != null) {
  1954. parentConfig = locales[config.parentLocale]._config;
  1955. } else {
  1956. locale = loadLocale(config.parentLocale);
  1957. if (locale != null) {
  1958. parentConfig = locale._config;
  1959. } else {
  1960. if (!localeFamilies[config.parentLocale]) {
  1961. localeFamilies[config.parentLocale] = [];
  1962. }
  1963. localeFamilies[config.parentLocale].push({
  1964. name: name,
  1965. config: config,
  1966. });
  1967. return null;
  1968. }
  1969. }
  1970. }
  1971. locales[name] = new Locale(mergeConfigs(parentConfig, config));
  1972. if (localeFamilies[name]) {
  1973. localeFamilies[name].forEach(function (x) {
  1974. defineLocale(x.name, x.config);
  1975. });
  1976. }
  1977. // backwards compat for now: also set the locale
  1978. // make sure we set the locale AFTER all child locales have been
  1979. // created, so we won't end up with the child locale set.
  1980. getSetGlobalLocale(name);
  1981. return locales[name];
  1982. } else {
  1983. // useful for testing
  1984. delete locales[name];
  1985. return null;
  1986. }
  1987. }
  1988. function updateLocale(name, config) {
  1989. if (config != null) {
  1990. var locale,
  1991. tmpLocale,
  1992. parentConfig = baseConfig;
  1993. if (locales[name] != null && locales[name].parentLocale != null) {
  1994. // Update existing child locale in-place to avoid memory-leaks
  1995. locales[name].set(mergeConfigs(locales[name]._config, config));
  1996. } else {
  1997. // MERGE
  1998. tmpLocale = loadLocale(name);
  1999. if (tmpLocale != null) {
  2000. parentConfig = tmpLocale._config;
  2001. }
  2002. config = mergeConfigs(parentConfig, config);
  2003. if (tmpLocale == null) {
  2004. // updateLocale is called for creating a new locale
  2005. // Set abbr so it will have a name (getters return
  2006. // undefined otherwise).
  2007. config.abbr = name;
  2008. }
  2009. locale = new Locale(config);
  2010. locale.parentLocale = locales[name];
  2011. locales[name] = locale;
  2012. }
  2013. // backwards compat for now: also set the locale
  2014. getSetGlobalLocale(name);
  2015. } else {
  2016. // pass null for config to unupdate, useful for tests
  2017. if (locales[name] != null) {
  2018. if (locales[name].parentLocale != null) {
  2019. locales[name] = locales[name].parentLocale;
  2020. if (name === getSetGlobalLocale()) {
  2021. getSetGlobalLocale(name);
  2022. }
  2023. } else if (locales[name] != null) {
  2024. delete locales[name];
  2025. }
  2026. }
  2027. }
  2028. return locales[name];
  2029. }
  2030. // returns locale data
  2031. function getLocale(key) {
  2032. var locale;
  2033. if (key && key._locale && key._locale._abbr) {
  2034. key = key._locale._abbr;
  2035. }
  2036. if (!key) {
  2037. return globalLocale;
  2038. }
  2039. if (!isArray(key)) {
  2040. //short-circuit everything else
  2041. locale = loadLocale(key);
  2042. if (locale) {
  2043. return locale;
  2044. }
  2045. key = [key];
  2046. }
  2047. return chooseLocale(key);
  2048. }
  2049. function listLocales() {
  2050. return keys(locales);
  2051. }
  2052. function checkOverflow(m) {
  2053. var overflow,
  2054. a = m._a;
  2055. if (a && getParsingFlags(m).overflow === -2) {
  2056. overflow =
  2057. a[MONTH] < 0 || a[MONTH] > 11
  2058. ? MONTH
  2059. : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH])
  2060. ? DATE
  2061. : a[HOUR] < 0 ||
  2062. a[HOUR] > 24 ||
  2063. (a[HOUR] === 24 &&
  2064. (a[MINUTE] !== 0 ||
  2065. a[SECOND] !== 0 ||
  2066. a[MILLISECOND] !== 0))
  2067. ? HOUR
  2068. : a[MINUTE] < 0 || a[MINUTE] > 59
  2069. ? MINUTE
  2070. : a[SECOND] < 0 || a[SECOND] > 59
  2071. ? SECOND
  2072. : a[MILLISECOND] < 0 || a[MILLISECOND] > 999
  2073. ? MILLISECOND
  2074. : -1;
  2075. if (
  2076. getParsingFlags(m)._overflowDayOfYear &&
  2077. (overflow < YEAR || overflow > DATE)
  2078. ) {
  2079. overflow = DATE;
  2080. }
  2081. if (getParsingFlags(m)._overflowWeeks && overflow === -1) {
  2082. overflow = WEEK;
  2083. }
  2084. if (getParsingFlags(m)._overflowWeekday && overflow === -1) {
  2085. overflow = WEEKDAY;
  2086. }
  2087. getParsingFlags(m).overflow = overflow;
  2088. }
  2089. return m;
  2090. }
  2091. // iso 8601 regex
  2092. // 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)
  2093. var extendedIsoRegex =
  2094. /^\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)?)?$/,
  2095. basicIsoRegex =
  2096. /^\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)?)?$/,
  2097. tzRegex = /Z|[+-]\d\d(?::?\d\d)?/,
  2098. isoDates = [
  2099. ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
  2100. ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/],
  2101. ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/],
  2102. ['GGGG-[W]WW', /\d{4}-W\d\d/, false],
  2103. ['YYYY-DDD', /\d{4}-\d{3}/],
  2104. ['YYYY-MM', /\d{4}-\d\d/, false],
  2105. ['YYYYYYMMDD', /[+-]\d{10}/],
  2106. ['YYYYMMDD', /\d{8}/],
  2107. ['GGGG[W]WWE', /\d{4}W\d{3}/],
  2108. ['GGGG[W]WW', /\d{4}W\d{2}/, false],
  2109. ['YYYYDDD', /\d{7}/],
  2110. ['YYYYMM', /\d{6}/, false],
  2111. ['YYYY', /\d{4}/, false],
  2112. ],
  2113. // iso time formats and regexes
  2114. isoTimes = [
  2115. ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/],
  2116. ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/],
  2117. ['HH:mm:ss', /\d\d:\d\d:\d\d/],
  2118. ['HH:mm', /\d\d:\d\d/],
  2119. ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/],
  2120. ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/],
  2121. ['HHmmss', /\d\d\d\d\d\d/],
  2122. ['HHmm', /\d\d\d\d/],
  2123. ['HH', /\d\d/],
  2124. ],
  2125. aspNetJsonRegex = /^\/?Date\((-?\d+)/i,
  2126. // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
  2127. rfc2822 =
  2128. /^(?:(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}))$/,
  2129. obsOffsets = {
  2130. UT: 0,
  2131. GMT: 0,
  2132. EDT: -4 * 60,
  2133. EST: -5 * 60,
  2134. CDT: -5 * 60,
  2135. CST: -6 * 60,
  2136. MDT: -6 * 60,
  2137. MST: -7 * 60,
  2138. PDT: -7 * 60,
  2139. PST: -8 * 60,
  2140. };
  2141. // date from iso format
  2142. function configFromISO(config) {
  2143. var i,
  2144. l,
  2145. string = config._i,
  2146. match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
  2147. allowTime,
  2148. dateFormat,
  2149. timeFormat,
  2150. tzFormat,
  2151. isoDatesLen = isoDates.length,
  2152. isoTimesLen = isoTimes.length;
  2153. if (match) {
  2154. getParsingFlags(config).iso = true;
  2155. for (i = 0, l = isoDatesLen; i < l; i++) {
  2156. if (isoDates[i][1].exec(match[1])) {
  2157. dateFormat = isoDates[i][0];
  2158. allowTime = isoDates[i][2] !== false;
  2159. break;
  2160. }
  2161. }
  2162. if (dateFormat == null) {
  2163. config._isValid = false;
  2164. return;
  2165. }
  2166. if (match[3]) {
  2167. for (i = 0, l = isoTimesLen; i < l; i++) {
  2168. if (isoTimes[i][1].exec(match[3])) {
  2169. // match[2] should be 'T' or space
  2170. timeFormat = (match[2] || ' ') + isoTimes[i][0];
  2171. break;
  2172. }
  2173. }
  2174. if (timeFormat == null) {
  2175. config._isValid = false;
  2176. return;
  2177. }
  2178. }
  2179. if (!allowTime && timeFormat != null) {
  2180. config._isValid = false;
  2181. return;
  2182. }
  2183. if (match[4]) {
  2184. if (tzRegex.exec(match[4])) {
  2185. tzFormat = 'Z';
  2186. } else {
  2187. config._isValid = false;
  2188. return;
  2189. }
  2190. }
  2191. config._f = dateFormat + (timeFormat || '') + (tzFormat || '');
  2192. configFromStringAndFormat(config);
  2193. } else {
  2194. config._isValid = false;
  2195. }
  2196. }
  2197. function extractFromRFC2822Strings(
  2198. yearStr,
  2199. monthStr,
  2200. dayStr,
  2201. hourStr,
  2202. minuteStr,
  2203. secondStr
  2204. ) {
  2205. var result = [
  2206. untruncateYear(yearStr),
  2207. defaultLocaleMonthsShort.indexOf(monthStr),
  2208. parseInt(dayStr, 10),
  2209. parseInt(hourStr, 10),
  2210. parseInt(minuteStr, 10),
  2211. ];
  2212. if (secondStr) {
  2213. result.push(parseInt(secondStr, 10));
  2214. }
  2215. return result;
  2216. }
  2217. function untruncateYear(yearStr) {
  2218. var year = parseInt(yearStr, 10);
  2219. if (year <= 49) {
  2220. return 2000 + year;
  2221. } else if (year <= 999) {
  2222. return 1900 + year;
  2223. }
  2224. return year;
  2225. }
  2226. function preprocessRFC2822(s) {
  2227. // Remove comments and folding whitespace and replace multiple-spaces with a single space
  2228. return s
  2229. .replace(/\([^()]*\)|[\n\t]/g, ' ')
  2230. .replace(/(\s\s+)/g, ' ')
  2231. .replace(/^\s\s*/, '')
  2232. .replace(/\s\s*$/, '');
  2233. }
  2234. function checkWeekday(weekdayStr, parsedInput, config) {
  2235. if (weekdayStr) {
  2236. // TODO: Replace the vanilla JS Date object with an independent day-of-week check.
  2237. var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),
  2238. weekdayActual = new Date(
  2239. parsedInput[0],
  2240. parsedInput[1],
  2241. parsedInput[2]
  2242. ).getDay();
  2243. if (weekdayProvided !== weekdayActual) {
  2244. getParsingFlags(config).weekdayMismatch = true;
  2245. config._isValid = false;
  2246. return false;
  2247. }
  2248. }
  2249. return true;
  2250. }
  2251. function calculateOffset(obsOffset, militaryOffset, numOffset) {
  2252. if (obsOffset) {
  2253. return obsOffsets[obsOffset];
  2254. } else if (militaryOffset) {
  2255. // the only allowed military tz is Z
  2256. return 0;
  2257. } else {
  2258. var hm = parseInt(numOffset, 10),
  2259. m = hm % 100,
  2260. h = (hm - m) / 100;
  2261. return h * 60 + m;
  2262. }
  2263. }
  2264. // date and time from ref 2822 format
  2265. function configFromRFC2822(config) {
  2266. var match = rfc2822.exec(preprocessRFC2822(config._i)),
  2267. parsedArray;
  2268. if (match) {
  2269. parsedArray = extractFromRFC2822Strings(
  2270. match[4],
  2271. match[3],
  2272. match[2],
  2273. match[5],
  2274. match[6],
  2275. match[7]
  2276. );
  2277. if (!checkWeekday(match[1], parsedArray, config)) {
  2278. return;
  2279. }
  2280. config._a = parsedArray;
  2281. config._tzm = calculateOffset(match[8], match[9], match[10]);
  2282. config._d = createUTCDate.apply(null, config._a);
  2283. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  2284. getParsingFlags(config).rfc2822 = true;
  2285. } else {
  2286. config._isValid = false;
  2287. }
  2288. }
  2289. // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
  2290. function configFromString(config) {
  2291. var matched = aspNetJsonRegex.exec(config._i);
  2292. if (matched !== null) {
  2293. config._d = new Date(+matched[1]);
  2294. return;
  2295. }
  2296. configFromISO(config);
  2297. if (config._isValid === false) {
  2298. delete config._isValid;
  2299. } else {
  2300. return;
  2301. }
  2302. configFromRFC2822(config);
  2303. if (config._isValid === false) {
  2304. delete config._isValid;
  2305. } else {
  2306. return;
  2307. }
  2308. if (config._strict) {
  2309. config._isValid = false;
  2310. } else {
  2311. // Final attempt, use Input Fallback
  2312. hooks.createFromInputFallback(config);
  2313. }
  2314. }
  2315. hooks.createFromInputFallback = deprecate(
  2316. 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +
  2317. 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +
  2318. 'discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.',
  2319. function (config) {
  2320. config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
  2321. }
  2322. );
  2323. // Pick the first defined of two or three arguments.
  2324. function defaults(a, b, c) {
  2325. if (a != null) {
  2326. return a;
  2327. }
  2328. if (b != null) {
  2329. return b;
  2330. }
  2331. return c;
  2332. }
  2333. function currentDateArray(config) {
  2334. // hooks is actually the exported moment object
  2335. var nowValue = new Date(hooks.now());
  2336. if (config._useUTC) {
  2337. return [
  2338. nowValue.getUTCFullYear(),
  2339. nowValue.getUTCMonth(),
  2340. nowValue.getUTCDate(),
  2341. ];
  2342. }
  2343. return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
  2344. }
  2345. // convert an array to a date.
  2346. // the array should mirror the parameters below
  2347. // note: all values past the year are optional and will default to the lowest possible value.
  2348. // [year, month, day , hour, minute, second, millisecond]
  2349. function configFromArray(config) {
  2350. var i,
  2351. date,
  2352. input = [],
  2353. currentDate,
  2354. expectedWeekday,
  2355. yearToUse;
  2356. if (config._d) {
  2357. return;
  2358. }
  2359. currentDate = currentDateArray(config);
  2360. //compute day of the year from weeks and weekdays
  2361. if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
  2362. dayOfYearFromWeekInfo(config);
  2363. }
  2364. //if the day of the year is set, figure out what it is
  2365. if (config._dayOfYear != null) {
  2366. yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);
  2367. if (
  2368. config._dayOfYear > daysInYear(yearToUse) ||
  2369. config._dayOfYear === 0
  2370. ) {
  2371. getParsingFlags(config)._overflowDayOfYear = true;
  2372. }
  2373. date = createUTCDate(yearToUse, 0, config._dayOfYear);
  2374. config._a[MONTH] = date.getUTCMonth();
  2375. config._a[DATE] = date.getUTCDate();
  2376. }
  2377. // Default to current date.
  2378. // * if no year, month, day of month are given, default to today
  2379. // * if day of month is given, default month and year
  2380. // * if month is given, default only year
  2381. // * if year is given, don't default anything
  2382. for (i = 0; i < 3 && config._a[i] == null; ++i) {
  2383. config._a[i] = input[i] = currentDate[i];
  2384. }
  2385. // Zero out whatever was not defaulted, including time
  2386. for (; i < 7; i++) {
  2387. config._a[i] = input[i] =
  2388. config._a[i] == null ? (i === 2 ? 1 : 0) : config._a[i];
  2389. }
  2390. // Check for 24:00:00.000
  2391. if (
  2392. config._a[HOUR] === 24 &&
  2393. config._a[MINUTE] === 0 &&
  2394. config._a[SECOND] === 0 &&
  2395. config._a[MILLISECOND] === 0
  2396. ) {
  2397. config._nextDay = true;
  2398. config._a[HOUR] = 0;
  2399. }
  2400. config._d = (config._useUTC ? createUTCDate : createDate).apply(
  2401. null,
  2402. input
  2403. );
  2404. expectedWeekday = config._useUTC
  2405. ? config._d.getUTCDay()
  2406. : config._d.getDay();
  2407. // Apply timezone offset from input. The actual utcOffset can be changed
  2408. // with parseZone.
  2409. if (config._tzm != null) {
  2410. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  2411. }
  2412. if (config._nextDay) {
  2413. config._a[HOUR] = 24;
  2414. }
  2415. // check for mismatching day of week
  2416. if (
  2417. config._w &&
  2418. typeof config._w.d !== 'undefined' &&
  2419. config._w.d !== expectedWeekday
  2420. ) {
  2421. getParsingFlags(config).weekdayMismatch = true;
  2422. }
  2423. }
  2424. function dayOfYearFromWeekInfo(config) {
  2425. var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;
  2426. w = config._w;
  2427. if (w.GG != null || w.W != null || w.E != null) {
  2428. dow = 1;
  2429. doy = 4;
  2430. // TODO: We need to take the current isoWeekYear, but that depends on
  2431. // how we interpret now (local, utc, fixed offset). So create
  2432. // a now version of current config (take local/utc/offset flags, and
  2433. // create now).
  2434. weekYear = defaults(
  2435. w.GG,
  2436. config._a[YEAR],
  2437. weekOfYear(createLocal(), 1, 4).year
  2438. );
  2439. week = defaults(w.W, 1);
  2440. weekday = defaults(w.E, 1);
  2441. if (weekday < 1 || weekday > 7) {
  2442. weekdayOverflow = true;
  2443. }
  2444. } else {
  2445. dow = config._locale._week.dow;
  2446. doy = config._locale._week.doy;
  2447. curWeek = weekOfYear(createLocal(), dow, doy);
  2448. weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);
  2449. // Default to current week.
  2450. week = defaults(w.w, curWeek.week);
  2451. if (w.d != null) {
  2452. // weekday -- low day numbers are considered next week
  2453. weekday = w.d;
  2454. if (weekday < 0 || weekday > 6) {
  2455. weekdayOverflow = true;
  2456. }
  2457. } else if (w.e != null) {
  2458. // local weekday -- counting starts from beginning of week
  2459. weekday = w.e + dow;
  2460. if (w.e < 0 || w.e > 6) {
  2461. weekdayOverflow = true;
  2462. }
  2463. } else {
  2464. // default to beginning of week
  2465. weekday = dow;
  2466. }
  2467. }
  2468. if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {
  2469. getParsingFlags(config)._overflowWeeks = true;
  2470. } else if (weekdayOverflow != null) {
  2471. getParsingFlags(config)._overflowWeekday = true;
  2472. } else {
  2473. temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);
  2474. config._a[YEAR] = temp.year;
  2475. config._dayOfYear = temp.dayOfYear;
  2476. }
  2477. }
  2478. // constant that refers to the ISO standard
  2479. hooks.ISO_8601 = function () {};
  2480. // constant that refers to the RFC 2822 form
  2481. hooks.RFC_2822 = function () {};
  2482. // date from string and format string
  2483. function configFromStringAndFormat(config) {
  2484. // TODO: Move this to another part of the creation flow to prevent circular deps
  2485. if (config._f === hooks.ISO_8601) {
  2486. configFromISO(config);
  2487. return;
  2488. }
  2489. if (config._f === hooks.RFC_2822) {
  2490. configFromRFC2822(config);
  2491. return;
  2492. }
  2493. config._a = [];
  2494. getParsingFlags(config).empty = true;
  2495. // This array is used to make a Date, either with `new Date` or `Date.UTC`
  2496. var string = '' + config._i,
  2497. i,
  2498. parsedInput,
  2499. tokens,
  2500. token,
  2501. skipped,
  2502. stringLength = string.length,
  2503. totalParsedInputLength = 0,
  2504. era,
  2505. tokenLen;
  2506. tokens =
  2507. expandFormat(config._f, config._locale).match(formattingTokens) || [];
  2508. tokenLen = tokens.length;
  2509. for (i = 0; i < tokenLen; i++) {
  2510. token = tokens[i];
  2511. parsedInput = (string.match(getParseRegexForToken(token, config)) ||
  2512. [])[0];
  2513. if (parsedInput) {
  2514. skipped = string.substr(0, string.indexOf(parsedInput));
  2515. if (skipped.length > 0) {
  2516. getParsingFlags(config).unusedInput.push(skipped);
  2517. }
  2518. string = string.slice(
  2519. string.indexOf(parsedInput) + parsedInput.length
  2520. );
  2521. totalParsedInputLength += parsedInput.length;
  2522. }
  2523. // don't parse if it's not a known token
  2524. if (formatTokenFunctions[token]) {
  2525. if (parsedInput) {
  2526. getParsingFlags(config).empty = false;
  2527. } else {
  2528. getParsingFlags(config).unusedTokens.push(token);
  2529. }
  2530. addTimeToArrayFromToken(token, parsedInput, config);
  2531. } else if (config._strict && !parsedInput) {
  2532. getParsingFlags(config).unusedTokens.push(token);
  2533. }
  2534. }
  2535. // add remaining unparsed input length to the string
  2536. getParsingFlags(config).charsLeftOver =
  2537. stringLength - totalParsedInputLength;
  2538. if (string.length > 0) {
  2539. getParsingFlags(config).unusedInput.push(string);
  2540. }
  2541. // clear _12h flag if hour is <= 12
  2542. if (
  2543. config._a[HOUR] <= 12 &&
  2544. getParsingFlags(config).bigHour === true &&
  2545. config._a[HOUR] > 0
  2546. ) {
  2547. getParsingFlags(config).bigHour = undefined;
  2548. }
  2549. getParsingFlags(config).parsedDateParts = config._a.slice(0);
  2550. getParsingFlags(config).meridiem = config._meridiem;
  2551. // handle meridiem
  2552. config._a[HOUR] = meridiemFixWrap(
  2553. config._locale,
  2554. config._a[HOUR],
  2555. config._meridiem
  2556. );
  2557. // handle era
  2558. era = getParsingFlags(config).era;
  2559. if (era !== null) {
  2560. config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]);
  2561. }
  2562. configFromArray(config);
  2563. checkOverflow(config);
  2564. }
  2565. function meridiemFixWrap(locale, hour, meridiem) {
  2566. var isPm;
  2567. if (meridiem == null) {
  2568. // nothing to do
  2569. return hour;
  2570. }
  2571. if (locale.meridiemHour != null) {
  2572. return locale.meridiemHour(hour, meridiem);
  2573. } else if (locale.isPM != null) {
  2574. // Fallback
  2575. isPm = locale.isPM(meridiem);
  2576. if (isPm && hour < 12) {
  2577. hour += 12;
  2578. }
  2579. if (!isPm && hour === 12) {
  2580. hour = 0;
  2581. }
  2582. return hour;
  2583. } else {
  2584. // this is not supposed to happen
  2585. return hour;
  2586. }
  2587. }
  2588. // date from string and array of format strings
  2589. function configFromStringAndArray(config) {
  2590. var tempConfig,
  2591. bestMoment,
  2592. scoreToBeat,
  2593. i,
  2594. currentScore,
  2595. validFormatFound,
  2596. bestFormatIsValid = false,
  2597. configfLen = config._f.length;
  2598. if (configfLen === 0) {
  2599. getParsingFlags(config).invalidFormat = true;
  2600. config._d = new Date(NaN);
  2601. return;
  2602. }
  2603. for (i = 0; i < configfLen; i++) {
  2604. currentScore = 0;
  2605. validFormatFound = false;
  2606. tempConfig = copyConfig({}, config);
  2607. if (config._useUTC != null) {
  2608. tempConfig._useUTC = config._useUTC;
  2609. }
  2610. tempConfig._f = config._f[i];
  2611. configFromStringAndFormat(tempConfig);
  2612. if (isValid(tempConfig)) {
  2613. validFormatFound = true;
  2614. }
  2615. // if there is any input that was not parsed add a penalty for that format
  2616. currentScore += getParsingFlags(tempConfig).charsLeftOver;
  2617. //or tokens
  2618. currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;
  2619. getParsingFlags(tempConfig).score = currentScore;
  2620. if (!bestFormatIsValid) {
  2621. if (
  2622. scoreToBeat == null ||
  2623. currentScore < scoreToBeat ||
  2624. validFormatFound
  2625. ) {
  2626. scoreToBeat = currentScore;
  2627. bestMoment = tempConfig;
  2628. if (validFormatFound) {
  2629. bestFormatIsValid = true;
  2630. }
  2631. }
  2632. } else {
  2633. if (currentScore < scoreToBeat) {
  2634. scoreToBeat = currentScore;
  2635. bestMoment = tempConfig;
  2636. }
  2637. }
  2638. }
  2639. extend(config, bestMoment || tempConfig);
  2640. }
  2641. function configFromObject(config) {
  2642. if (config._d) {
  2643. return;
  2644. }
  2645. var i = normalizeObjectUnits(config._i),
  2646. dayOrDate = i.day === undefined ? i.date : i.day;
  2647. config._a = map(
  2648. [i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond],
  2649. function (obj) {
  2650. return obj && parseInt(obj, 10);
  2651. }
  2652. );
  2653. configFromArray(config);
  2654. }
  2655. function createFromConfig(config) {
  2656. var res = new Moment(checkOverflow(prepareConfig(config)));
  2657. if (res._nextDay) {
  2658. // Adding is smart enough around DST
  2659. res.add(1, 'd');
  2660. res._nextDay = undefined;
  2661. }
  2662. return res;
  2663. }
  2664. function prepareConfig(config) {
  2665. var input = config._i,
  2666. format = config._f;
  2667. config._locale = config._locale || getLocale(config._l);
  2668. if (input === null || (format === undefined && input === '')) {
  2669. return createInvalid({ nullInput: true });
  2670. }
  2671. if (typeof input === 'string') {
  2672. config._i = input = config._locale.preparse(input);
  2673. }
  2674. if (isMoment(input)) {
  2675. return new Moment(checkOverflow(input));
  2676. } else if (isDate(input)) {
  2677. config._d = input;
  2678. } else if (isArray(format)) {
  2679. configFromStringAndArray(config);
  2680. } else if (format) {
  2681. configFromStringAndFormat(config);
  2682. } else {
  2683. configFromInput(config);
  2684. }
  2685. if (!isValid(config)) {
  2686. config._d = null;
  2687. }
  2688. return config;
  2689. }
  2690. function configFromInput(config) {
  2691. var input = config._i;
  2692. if (isUndefined(input)) {
  2693. config._d = new Date(hooks.now());
  2694. } else if (isDate(input)) {
  2695. config._d = new Date(input.valueOf());
  2696. } else if (typeof input === 'string') {
  2697. configFromString(config);
  2698. } else if (isArray(input)) {
  2699. config._a = map(input.slice(0), function (obj) {
  2700. return parseInt(obj, 10);
  2701. });
  2702. configFromArray(config);
  2703. } else if (isObject(input)) {
  2704. configFromObject(config);
  2705. } else if (isNumber(input)) {
  2706. // from milliseconds
  2707. config._d = new Date(input);
  2708. } else {
  2709. hooks.createFromInputFallback(config);
  2710. }
  2711. }
  2712. function createLocalOrUTC(input, format, locale, strict, isUTC) {
  2713. var c = {};
  2714. if (format === true || format === false) {
  2715. strict = format;
  2716. format = undefined;
  2717. }
  2718. if (locale === true || locale === false) {
  2719. strict = locale;
  2720. locale = undefined;
  2721. }
  2722. if (
  2723. (isObject(input) && isObjectEmpty(input)) ||
  2724. (isArray(input) && input.length === 0)
  2725. ) {
  2726. input = undefined;
  2727. }
  2728. // object construction must be done this way.
  2729. // https://github.com/moment/moment/issues/1423
  2730. c._isAMomentObject = true;
  2731. c._useUTC = c._isUTC = isUTC;
  2732. c._l = locale;
  2733. c._i = input;
  2734. c._f = format;
  2735. c._strict = strict;
  2736. return createFromConfig(c);
  2737. }
  2738. function createLocal(input, format, locale, strict) {
  2739. return createLocalOrUTC(input, format, locale, strict, false);
  2740. }
  2741. var prototypeMin = deprecate(
  2742. 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',
  2743. function () {
  2744. var other = createLocal.apply(null, arguments);
  2745. if (this.isValid() && other.isValid()) {
  2746. return other < this ? this : other;
  2747. } else {
  2748. return createInvalid();
  2749. }
  2750. }
  2751. ),
  2752. prototypeMax = deprecate(
  2753. 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',
  2754. function () {
  2755. var other = createLocal.apply(null, arguments);
  2756. if (this.isValid() && other.isValid()) {
  2757. return other > this ? this : other;
  2758. } else {
  2759. return createInvalid();
  2760. }
  2761. }
  2762. );
  2763. // Pick a moment m from moments so that m[fn](other) is true for all
  2764. // other. This relies on the function fn to be transitive.
  2765. //
  2766. // moments should either be an array of moment objects or an array, whose
  2767. // first element is an array of moment objects.
  2768. function pickBy(fn, moments) {
  2769. var res, i;
  2770. if (moments.length === 1 && isArray(moments[0])) {
  2771. moments = moments[0];
  2772. }
  2773. if (!moments.length) {
  2774. return createLocal();
  2775. }
  2776. res = moments[0];
  2777. for (i = 1; i < moments.length; ++i) {
  2778. if (!moments[i].isValid() || moments[i][fn](res)) {
  2779. res = moments[i];
  2780. }
  2781. }
  2782. return res;
  2783. }
  2784. // TODO: Use [].sort instead?
  2785. function min() {
  2786. var args = [].slice.call(arguments, 0);
  2787. return pickBy('isBefore', args);
  2788. }
  2789. function max() {
  2790. var args = [].slice.call(arguments, 0);
  2791. return pickBy('isAfter', args);
  2792. }
  2793. var now = function () {
  2794. return Date.now ? Date.now() : +new Date();
  2795. };
  2796. var ordering = [
  2797. 'year',
  2798. 'quarter',
  2799. 'month',
  2800. 'week',
  2801. 'day',
  2802. 'hour',
  2803. 'minute',
  2804. 'second',
  2805. 'millisecond',
  2806. ];
  2807. function isDurationValid(m) {
  2808. var key,
  2809. unitHasDecimal = false,
  2810. i,
  2811. orderLen = ordering.length;
  2812. for (key in m) {
  2813. if (
  2814. hasOwnProp(m, key) &&
  2815. !(
  2816. indexOf.call(ordering, key) !== -1 &&
  2817. (m[key] == null || !isNaN(m[key]))
  2818. )
  2819. ) {
  2820. return false;
  2821. }
  2822. }
  2823. for (i = 0; i < orderLen; ++i) {
  2824. if (m[ordering[i]]) {
  2825. if (unitHasDecimal) {
  2826. return false; // only allow non-integers for smallest unit
  2827. }
  2828. if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {
  2829. unitHasDecimal = true;
  2830. }
  2831. }
  2832. }
  2833. return true;
  2834. }
  2835. function isValid$1() {
  2836. return this._isValid;
  2837. }
  2838. function createInvalid$1() {
  2839. return createDuration(NaN);
  2840. }
  2841. function Duration(duration) {
  2842. var normalizedInput = normalizeObjectUnits(duration),
  2843. years = normalizedInput.year || 0,
  2844. quarters = normalizedInput.quarter || 0,
  2845. months = normalizedInput.month || 0,
  2846. weeks = normalizedInput.week || normalizedInput.isoWeek || 0,
  2847. days = normalizedInput.day || 0,
  2848. hours = normalizedInput.hour || 0,
  2849. minutes = normalizedInput.minute || 0,
  2850. seconds = normalizedInput.second || 0,
  2851. milliseconds = normalizedInput.millisecond || 0;
  2852. this._isValid = isDurationValid(normalizedInput);
  2853. // representation for dateAddRemove
  2854. this._milliseconds =
  2855. +milliseconds +
  2856. seconds * 1e3 + // 1000
  2857. minutes * 6e4 + // 1000 * 60
  2858. hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
  2859. // Because of dateAddRemove treats 24 hours as different from a
  2860. // day when working around DST, we need to store them separately
  2861. this._days = +days + weeks * 7;
  2862. // It is impossible to translate months into days without knowing
  2863. // which months you are are talking about, so we have to store
  2864. // it separately.
  2865. this._months = +months + quarters * 3 + years * 12;
  2866. this._data = {};
  2867. this._locale = getLocale();
  2868. this._bubble();
  2869. }
  2870. function isDuration(obj) {
  2871. return obj instanceof Duration;
  2872. }
  2873. function absRound(number) {
  2874. if (number < 0) {
  2875. return Math.round(-1 * number) * -1;
  2876. } else {
  2877. return Math.round(number);
  2878. }
  2879. }
  2880. // compare two arrays, return the number of differences
  2881. function compareArrays(array1, array2, dontConvert) {
  2882. var len = Math.min(array1.length, array2.length),
  2883. lengthDiff = Math.abs(array1.length - array2.length),
  2884. diffs = 0,
  2885. i;
  2886. for (i = 0; i < len; i++) {
  2887. if (
  2888. (dontConvert && array1[i] !== array2[i]) ||
  2889. (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))
  2890. ) {
  2891. diffs++;
  2892. }
  2893. }
  2894. return diffs + lengthDiff;
  2895. }
  2896. // FORMATTING
  2897. function offset(token, separator) {
  2898. addFormatToken(token, 0, 0, function () {
  2899. var offset = this.utcOffset(),
  2900. sign = '+';
  2901. if (offset < 0) {
  2902. offset = -offset;
  2903. sign = '-';
  2904. }
  2905. return (
  2906. sign +
  2907. zeroFill(~~(offset / 60), 2) +
  2908. separator +
  2909. zeroFill(~~offset % 60, 2)
  2910. );
  2911. });
  2912. }
  2913. offset('Z', ':');
  2914. offset('ZZ', '');
  2915. // PARSING
  2916. addRegexToken('Z', matchShortOffset);
  2917. addRegexToken('ZZ', matchShortOffset);
  2918. addParseToken(['Z', 'ZZ'], function (input, array, config) {
  2919. config._useUTC = true;
  2920. config._tzm = offsetFromString(matchShortOffset, input);
  2921. });
  2922. // HELPERS
  2923. // timezone chunker
  2924. // '+10:00' > ['10', '00']
  2925. // '-1530' > ['-15', '30']
  2926. var chunkOffset = /([\+\-]|\d\d)/gi;
  2927. function offsetFromString(matcher, string) {
  2928. var matches = (string || '').match(matcher),
  2929. chunk,
  2930. parts,
  2931. minutes;
  2932. if (matches === null) {
  2933. return null;
  2934. }
  2935. chunk = matches[matches.length - 1] || [];
  2936. parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
  2937. minutes = +(parts[1] * 60) + toInt(parts[2]);
  2938. return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes;
  2939. }
  2940. // Return a moment from input, that is local/utc/zone equivalent to model.
  2941. function cloneWithOffset(input, model) {
  2942. var res, diff;
  2943. if (model._isUTC) {
  2944. res = model.clone();
  2945. diff =
  2946. (isMoment(input) || isDate(input)
  2947. ? input.valueOf()
  2948. : createLocal(input).valueOf()) - res.valueOf();
  2949. // Use low-level api, because this fn is low-level api.
  2950. res._d.setTime(res._d.valueOf() + diff);
  2951. hooks.updateOffset(res, false);
  2952. return res;
  2953. } else {
  2954. return createLocal(input).local();
  2955. }
  2956. }
  2957. function getDateOffset(m) {
  2958. // On Firefox.24 Date#getTimezoneOffset returns a floating point.
  2959. // https://github.com/moment/moment/pull/1871
  2960. return -Math.round(m._d.getTimezoneOffset());
  2961. }
  2962. // HOOKS
  2963. // This function will be called whenever a moment is mutated.
  2964. // It is intended to keep the offset in sync with the timezone.
  2965. hooks.updateOffset = function () {};
  2966. // MOMENTS
  2967. // keepLocalTime = true means only change the timezone, without
  2968. // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
  2969. // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
  2970. // +0200, so we adjust the time as needed, to be valid.
  2971. //
  2972. // Keeping the time actually adds/subtracts (one hour)
  2973. // from the actual represented time. That is why we call updateOffset
  2974. // a second time. In case it wants us to change the offset again
  2975. // _changeInProgress == true case, then we have to adjust, because
  2976. // there is no such time in the given timezone.
  2977. function getSetOffset(input, keepLocalTime, keepMinutes) {
  2978. var offset = this._offset || 0,
  2979. localAdjust;
  2980. if (!this.isValid()) {
  2981. return input != null ? this : NaN;
  2982. }
  2983. if (input != null) {
  2984. if (typeof input === 'string') {
  2985. input = offsetFromString(matchShortOffset, input);
  2986. if (input === null) {
  2987. return this;
  2988. }
  2989. } else if (Math.abs(input) < 16 && !keepMinutes) {
  2990. input = input * 60;
  2991. }
  2992. if (!this._isUTC && keepLocalTime) {
  2993. localAdjust = getDateOffset(this);
  2994. }
  2995. this._offset = input;
  2996. this._isUTC = true;
  2997. if (localAdjust != null) {
  2998. this.add(localAdjust, 'm');
  2999. }
  3000. if (offset !== input) {
  3001. if (!keepLocalTime || this._changeInProgress) {
  3002. addSubtract(
  3003. this,
  3004. createDuration(input - offset, 'm'),
  3005. 1,
  3006. false
  3007. );
  3008. } else if (!this._changeInProgress) {
  3009. this._changeInProgress = true;
  3010. hooks.updateOffset(this, true);
  3011. this._changeInProgress = null;
  3012. }
  3013. }
  3014. return this;
  3015. } else {
  3016. return this._isUTC ? offset : getDateOffset(this);
  3017. }
  3018. }
  3019. function getSetZone(input, keepLocalTime) {
  3020. if (input != null) {
  3021. if (typeof input !== 'string') {
  3022. input = -input;
  3023. }
  3024. this.utcOffset(input, keepLocalTime);
  3025. return this;
  3026. } else {
  3027. return -this.utcOffset();
  3028. }
  3029. }
  3030. function setOffsetToUTC(keepLocalTime) {
  3031. return this.utcOffset(0, keepLocalTime);
  3032. }
  3033. function setOffsetToLocal(keepLocalTime) {
  3034. if (this._isUTC) {
  3035. this.utcOffset(0, keepLocalTime);
  3036. this._isUTC = false;
  3037. if (keepLocalTime) {
  3038. this.subtract(getDateOffset(this), 'm');
  3039. }
  3040. }
  3041. return this;
  3042. }
  3043. function setOffsetToParsedOffset() {
  3044. if (this._tzm != null) {
  3045. this.utcOffset(this._tzm, false, true);
  3046. } else if (typeof this._i === 'string') {
  3047. var tZone = offsetFromString(matchOffset, this._i);
  3048. if (tZone != null) {
  3049. this.utcOffset(tZone);
  3050. } else {
  3051. this.utcOffset(0, true);
  3052. }
  3053. }
  3054. return this;
  3055. }
  3056. function hasAlignedHourOffset(input) {
  3057. if (!this.isValid()) {
  3058. return false;
  3059. }
  3060. input = input ? createLocal(input).utcOffset() : 0;
  3061. return (this.utcOffset() - input) % 60 === 0;
  3062. }
  3063. function isDaylightSavingTime() {
  3064. return (
  3065. this.utcOffset() > this.clone().month(0).utcOffset() ||
  3066. this.utcOffset() > this.clone().month(5).utcOffset()
  3067. );
  3068. }
  3069. function isDaylightSavingTimeShifted() {
  3070. if (!isUndefined(this._isDSTShifted)) {
  3071. return this._isDSTShifted;
  3072. }
  3073. var c = {},
  3074. other;
  3075. copyConfig(c, this);
  3076. c = prepareConfig(c);
  3077. if (c._a) {
  3078. other = c._isUTC ? createUTC(c._a) : createLocal(c._a);
  3079. this._isDSTShifted =
  3080. this.isValid() && compareArrays(c._a, other.toArray()) > 0;
  3081. } else {
  3082. this._isDSTShifted = false;
  3083. }
  3084. return this._isDSTShifted;
  3085. }
  3086. function isLocal() {
  3087. return this.isValid() ? !this._isUTC : false;
  3088. }
  3089. function isUtcOffset() {
  3090. return this.isValid() ? this._isUTC : false;
  3091. }
  3092. function isUtc() {
  3093. return this.isValid() ? this._isUTC && this._offset === 0 : false;
  3094. }
  3095. // ASP.NET json date format regex
  3096. var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
  3097. // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
  3098. // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
  3099. // and further modified to allow for strings containing both week and day
  3100. isoRegex =
  3101. /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
  3102. function createDuration(input, key) {
  3103. var duration = input,
  3104. // matching against regexp is expensive, do it on demand
  3105. match = null,
  3106. sign,
  3107. ret,
  3108. diffRes;
  3109. if (isDuration(input)) {
  3110. duration = {
  3111. ms: input._milliseconds,
  3112. d: input._days,
  3113. M: input._months,
  3114. };
  3115. } else if (isNumber(input) || !isNaN(+input)) {
  3116. duration = {};
  3117. if (key) {
  3118. duration[key] = +input;
  3119. } else {
  3120. duration.milliseconds = +input;
  3121. }
  3122. } else if ((match = aspNetRegex.exec(input))) {
  3123. sign = match[1] === '-' ? -1 : 1;
  3124. duration = {
  3125. y: 0,
  3126. d: toInt(match[DATE]) * sign,
  3127. h: toInt(match[HOUR]) * sign,
  3128. m: toInt(match[MINUTE]) * sign,
  3129. s: toInt(match[SECOND]) * sign,
  3130. ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign, // the millisecond decimal point is included in the match
  3131. };
  3132. } else if ((match = isoRegex.exec(input))) {
  3133. sign = match[1] === '-' ? -1 : 1;
  3134. duration = {
  3135. y: parseIso(match[2], sign),
  3136. M: parseIso(match[3], sign),
  3137. w: parseIso(match[4], sign),
  3138. d: parseIso(match[5], sign),
  3139. h: parseIso(match[6], sign),
  3140. m: parseIso(match[7], sign),
  3141. s: parseIso(match[8], sign),
  3142. };
  3143. } else if (duration == null) {
  3144. // checks for null or undefined
  3145. duration = {};
  3146. } else if (
  3147. typeof duration === 'object' &&
  3148. ('from' in duration || 'to' in duration)
  3149. ) {
  3150. diffRes = momentsDifference(
  3151. createLocal(duration.from),
  3152. createLocal(duration.to)
  3153. );
  3154. duration = {};
  3155. duration.ms = diffRes.milliseconds;
  3156. duration.M = diffRes.months;
  3157. }
  3158. ret = new Duration(duration);
  3159. if (isDuration(input) && hasOwnProp(input, '_locale')) {
  3160. ret._locale = input._locale;
  3161. }
  3162. if (isDuration(input) && hasOwnProp(input, '_isValid')) {
  3163. ret._isValid = input._isValid;
  3164. }
  3165. return ret;
  3166. }
  3167. createDuration.fn = Duration.prototype;
  3168. createDuration.invalid = createInvalid$1;
  3169. function parseIso(inp, sign) {
  3170. // We'd normally use ~~inp for this, but unfortunately it also
  3171. // converts floats to ints.
  3172. // inp may be undefined, so careful calling replace on it.
  3173. var res = inp && parseFloat(inp.replace(',', '.'));
  3174. // apply sign while we're at it
  3175. return (isNaN(res) ? 0 : res) * sign;
  3176. }
  3177. function positiveMomentsDifference(base, other) {
  3178. var res = {};
  3179. res.months =
  3180. other.month() - base.month() + (other.year() - base.year()) * 12;
  3181. if (base.clone().add(res.months, 'M').isAfter(other)) {
  3182. --res.months;
  3183. }
  3184. res.milliseconds = +other - +base.clone().add(res.months, 'M');
  3185. return res;
  3186. }
  3187. function momentsDifference(base, other) {
  3188. var res;
  3189. if (!(base.isValid() && other.isValid())) {
  3190. return { milliseconds: 0, months: 0 };
  3191. }
  3192. other = cloneWithOffset(other, base);
  3193. if (base.isBefore(other)) {
  3194. res = positiveMomentsDifference(base, other);
  3195. } else {
  3196. res = positiveMomentsDifference(other, base);
  3197. res.milliseconds = -res.milliseconds;
  3198. res.months = -res.months;
  3199. }
  3200. return res;
  3201. }
  3202. // TODO: remove 'name' arg after deprecation is removed
  3203. function createAdder(direction, name) {
  3204. return function (val, period) {
  3205. var dur, tmp;
  3206. //invert the arguments, but complain about it
  3207. if (period !== null && !isNaN(+period)) {
  3208. deprecateSimple(
  3209. name,
  3210. 'moment().' +
  3211. name +
  3212. '(period, number) is deprecated. Please use moment().' +
  3213. name +
  3214. '(number, period). ' +
  3215. 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.'
  3216. );
  3217. tmp = val;
  3218. val = period;
  3219. period = tmp;
  3220. }
  3221. dur = createDuration(val, period);
  3222. addSubtract(this, dur, direction);
  3223. return this;
  3224. };
  3225. }
  3226. function addSubtract(mom, duration, isAdding, updateOffset) {
  3227. var milliseconds = duration._milliseconds,
  3228. days = absRound(duration._days),
  3229. months = absRound(duration._months);
  3230. if (!mom.isValid()) {
  3231. // No op
  3232. return;
  3233. }
  3234. updateOffset = updateOffset == null ? true : updateOffset;
  3235. if (months) {
  3236. setMonth(mom, get(mom, 'Month') + months * isAdding);
  3237. }
  3238. if (days) {
  3239. set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);
  3240. }
  3241. if (milliseconds) {
  3242. mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);
  3243. }
  3244. if (updateOffset) {
  3245. hooks.updateOffset(mom, days || months);
  3246. }
  3247. }
  3248. var add = createAdder(1, 'add'),
  3249. subtract = createAdder(-1, 'subtract');
  3250. function isString(input) {
  3251. return typeof input === 'string' || input instanceof String;
  3252. }
  3253. // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
  3254. function isMomentInput(input) {
  3255. return (
  3256. isMoment(input) ||
  3257. isDate(input) ||
  3258. isString(input) ||
  3259. isNumber(input) ||
  3260. isNumberOrStringArray(input) ||
  3261. isMomentInputObject(input) ||
  3262. input === null ||
  3263. input === undefined
  3264. );
  3265. }
  3266. function isMomentInputObject(input) {
  3267. var objectTest = isObject(input) && !isObjectEmpty(input),
  3268. propertyTest = false,
  3269. properties = [
  3270. 'years',
  3271. 'year',
  3272. 'y',
  3273. 'months',
  3274. 'month',
  3275. 'M',
  3276. 'days',
  3277. 'day',
  3278. 'd',
  3279. 'dates',
  3280. 'date',
  3281. 'D',
  3282. 'hours',
  3283. 'hour',
  3284. 'h',
  3285. 'minutes',
  3286. 'minute',
  3287. 'm',
  3288. 'seconds',
  3289. 'second',
  3290. 's',
  3291. 'milliseconds',
  3292. 'millisecond',
  3293. 'ms',
  3294. ],
  3295. i,
  3296. property,
  3297. propertyLen = properties.length;
  3298. for (i = 0; i < propertyLen; i += 1) {
  3299. property = properties[i];
  3300. propertyTest = propertyTest || hasOwnProp(input, property);
  3301. }
  3302. return objectTest && propertyTest;
  3303. }
  3304. function isNumberOrStringArray(input) {
  3305. var arrayTest = isArray(input),
  3306. dataTypeTest = false;
  3307. if (arrayTest) {
  3308. dataTypeTest =
  3309. input.filter(function (item) {
  3310. return !isNumber(item) && isString(input);
  3311. }).length === 0;
  3312. }
  3313. return arrayTest && dataTypeTest;
  3314. }
  3315. function isCalendarSpec(input) {
  3316. var objectTest = isObject(input) && !isObjectEmpty(input),
  3317. propertyTest = false,
  3318. properties = [
  3319. 'sameDay',
  3320. 'nextDay',
  3321. 'lastDay',
  3322. 'nextWeek',
  3323. 'lastWeek',
  3324. 'sameElse',
  3325. ],
  3326. i,
  3327. property;
  3328. for (i = 0; i < properties.length; i += 1) {
  3329. property = properties[i];
  3330. propertyTest = propertyTest || hasOwnProp(input, property);
  3331. }
  3332. return objectTest && propertyTest;
  3333. }
  3334. function getCalendarFormat(myMoment, now) {
  3335. var diff = myMoment.diff(now, 'days', true);
  3336. return diff < -6
  3337. ? 'sameElse'
  3338. : diff < -1
  3339. ? 'lastWeek'
  3340. : diff < 0
  3341. ? 'lastDay'
  3342. : diff < 1
  3343. ? 'sameDay'
  3344. : diff < 2
  3345. ? 'nextDay'
  3346. : diff < 7
  3347. ? 'nextWeek'
  3348. : 'sameElse';
  3349. }
  3350. function calendar$1(time, formats) {
  3351. // Support for single parameter, formats only overload to the calendar function
  3352. if (arguments.length === 1) {
  3353. if (!arguments[0]) {
  3354. time = undefined;
  3355. formats = undefined;
  3356. } else if (isMomentInput(arguments[0])) {
  3357. time = arguments[0];
  3358. formats = undefined;
  3359. } else if (isCalendarSpec(arguments[0])) {
  3360. formats = arguments[0];
  3361. time = undefined;
  3362. }
  3363. }
  3364. // We want to compare the start of today, vs this.
  3365. // Getting start-of-today depends on whether we're local/utc/offset or not.
  3366. var now = time || createLocal(),
  3367. sod = cloneWithOffset(now, this).startOf('day'),
  3368. format = hooks.calendarFormat(this, sod) || 'sameElse',
  3369. output =
  3370. formats &&
  3371. (isFunction(formats[format])
  3372. ? formats[format].call(this, now)
  3373. : formats[format]);
  3374. return this.format(
  3375. output || this.localeData().calendar(format, this, createLocal(now))
  3376. );
  3377. }
  3378. function clone() {
  3379. return new Moment(this);
  3380. }
  3381. function isAfter(input, units) {
  3382. var localInput = isMoment(input) ? input : createLocal(input);
  3383. if (!(this.isValid() && localInput.isValid())) {
  3384. return false;
  3385. }
  3386. units = normalizeUnits(units) || 'millisecond';
  3387. if (units === 'millisecond') {
  3388. return this.valueOf() > localInput.valueOf();
  3389. } else {
  3390. return localInput.valueOf() < this.clone().startOf(units).valueOf();
  3391. }
  3392. }
  3393. function isBefore(input, units) {
  3394. var localInput = isMoment(input) ? input : createLocal(input);
  3395. if (!(this.isValid() && localInput.isValid())) {
  3396. return false;
  3397. }
  3398. units = normalizeUnits(units) || 'millisecond';
  3399. if (units === 'millisecond') {
  3400. return this.valueOf() < localInput.valueOf();
  3401. } else {
  3402. return this.clone().endOf(units).valueOf() < localInput.valueOf();
  3403. }
  3404. }
  3405. function isBetween(from, to, units, inclusivity) {
  3406. var localFrom = isMoment(from) ? from : createLocal(from),
  3407. localTo = isMoment(to) ? to : createLocal(to);
  3408. if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) {
  3409. return false;
  3410. }
  3411. inclusivity = inclusivity || '()';
  3412. return (
  3413. (inclusivity[0] === '('
  3414. ? this.isAfter(localFrom, units)
  3415. : !this.isBefore(localFrom, units)) &&
  3416. (inclusivity[1] === ')'
  3417. ? this.isBefore(localTo, units)
  3418. : !this.isAfter(localTo, units))
  3419. );
  3420. }
  3421. function isSame(input, units) {
  3422. var localInput = isMoment(input) ? input : createLocal(input),
  3423. inputMs;
  3424. if (!(this.isValid() && localInput.isValid())) {
  3425. return false;
  3426. }
  3427. units = normalizeUnits(units) || 'millisecond';
  3428. if (units === 'millisecond') {
  3429. return this.valueOf() === localInput.valueOf();
  3430. } else {
  3431. inputMs = localInput.valueOf();
  3432. return (
  3433. this.clone().startOf(units).valueOf() <= inputMs &&
  3434. inputMs <= this.clone().endOf(units).valueOf()
  3435. );
  3436. }
  3437. }
  3438. function isSameOrAfter(input, units) {
  3439. return this.isSame(input, units) || this.isAfter(input, units);
  3440. }
  3441. function isSameOrBefore(input, units) {
  3442. return this.isSame(input, units) || this.isBefore(input, units);
  3443. }
  3444. function diff(input, units, asFloat) {
  3445. var that, zoneDelta, output;
  3446. if (!this.isValid()) {
  3447. return NaN;
  3448. }
  3449. that = cloneWithOffset(input, this);
  3450. if (!that.isValid()) {
  3451. return NaN;
  3452. }
  3453. zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;
  3454. units = normalizeUnits(units);
  3455. switch (units) {
  3456. case 'year':
  3457. output = monthDiff(this, that) / 12;
  3458. break;
  3459. case 'month':
  3460. output = monthDiff(this, that);
  3461. break;
  3462. case 'quarter':
  3463. output = monthDiff(this, that) / 3;
  3464. break;
  3465. case 'second':
  3466. output = (this - that) / 1e3;
  3467. break; // 1000
  3468. case 'minute':
  3469. output = (this - that) / 6e4;
  3470. break; // 1000 * 60
  3471. case 'hour':
  3472. output = (this - that) / 36e5;
  3473. break; // 1000 * 60 * 60
  3474. case 'day':
  3475. output = (this - that - zoneDelta) / 864e5;
  3476. break; // 1000 * 60 * 60 * 24, negate dst
  3477. case 'week':
  3478. output = (this - that - zoneDelta) / 6048e5;
  3479. break; // 1000 * 60 * 60 * 24 * 7, negate dst
  3480. default:
  3481. output = this - that;
  3482. }
  3483. return asFloat ? output : absFloor(output);
  3484. }
  3485. function monthDiff(a, b) {
  3486. if (a.date() < b.date()) {
  3487. // end-of-month calculations work correct when the start month has more
  3488. // days than the end month.
  3489. return -monthDiff(b, a);
  3490. }
  3491. // difference in months
  3492. var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()),
  3493. // b is in (anchor - 1 month, anchor + 1 month)
  3494. anchor = a.clone().add(wholeMonthDiff, 'months'),
  3495. anchor2,
  3496. adjust;
  3497. if (b - anchor < 0) {
  3498. anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');
  3499. // linear across the month
  3500. adjust = (b - anchor) / (anchor - anchor2);
  3501. } else {
  3502. anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');
  3503. // linear across the month
  3504. adjust = (b - anchor) / (anchor2 - anchor);
  3505. }
  3506. //check for negative zero, return zero if negative zero
  3507. return -(wholeMonthDiff + adjust) || 0;
  3508. }
  3509. hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
  3510. hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';
  3511. function toString() {
  3512. return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
  3513. }
  3514. function toISOString(keepOffset) {
  3515. if (!this.isValid()) {
  3516. return null;
  3517. }
  3518. var utc = keepOffset !== true,
  3519. m = utc ? this.clone().utc() : this;
  3520. if (m.year() < 0 || m.year() > 9999) {
  3521. return formatMoment(
  3522. m,
  3523. utc
  3524. ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]'
  3525. : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ'
  3526. );
  3527. }
  3528. if (isFunction(Date.prototype.toISOString)) {
  3529. // native implementation is ~50x faster, use it when we can
  3530. if (utc) {
  3531. return this.toDate().toISOString();
  3532. } else {
  3533. return new Date(this.valueOf() + this.utcOffset() * 60 * 1000)
  3534. .toISOString()
  3535. .replace('Z', formatMoment(m, 'Z'));
  3536. }
  3537. }
  3538. return formatMoment(
  3539. m,
  3540. utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ'
  3541. );
  3542. }
  3543. /**
  3544. * Return a human readable representation of a moment that can
  3545. * also be evaluated to get a new moment which is the same
  3546. *
  3547. * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
  3548. */
  3549. function inspect() {
  3550. if (!this.isValid()) {
  3551. return 'moment.invalid(/* ' + this._i + ' */)';
  3552. }
  3553. var func = 'moment',
  3554. zone = '',
  3555. prefix,
  3556. year,
  3557. datetime,
  3558. suffix;
  3559. if (!this.isLocal()) {
  3560. func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';
  3561. zone = 'Z';
  3562. }
  3563. prefix = '[' + func + '("]';
  3564. year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY';
  3565. datetime = '-MM-DD[T]HH:mm:ss.SSS';
  3566. suffix = zone + '[")]';
  3567. return this.format(prefix + year + datetime + suffix);
  3568. }
  3569. function format(inputString) {
  3570. if (!inputString) {
  3571. inputString = this.isUtc()
  3572. ? hooks.defaultFormatUtc
  3573. : hooks.defaultFormat;
  3574. }
  3575. var output = formatMoment(this, inputString);
  3576. return this.localeData().postformat(output);
  3577. }
  3578. function from(time, withoutSuffix) {
  3579. if (
  3580. this.isValid() &&
  3581. ((isMoment(time) && time.isValid()) || createLocal(time).isValid())
  3582. ) {
  3583. return createDuration({ to: this, from: time })
  3584. .locale(this.locale())
  3585. .humanize(!withoutSuffix);
  3586. } else {
  3587. return this.localeData().invalidDate();
  3588. }
  3589. }
  3590. function fromNow(withoutSuffix) {
  3591. return this.from(createLocal(), withoutSuffix);
  3592. }
  3593. function to(time, withoutSuffix) {
  3594. if (
  3595. this.isValid() &&
  3596. ((isMoment(time) && time.isValid()) || createLocal(time).isValid())
  3597. ) {
  3598. return createDuration({ from: this, to: time })
  3599. .locale(this.locale())
  3600. .humanize(!withoutSuffix);
  3601. } else {
  3602. return this.localeData().invalidDate();
  3603. }
  3604. }
  3605. function toNow(withoutSuffix) {
  3606. return this.to(createLocal(), withoutSuffix);
  3607. }
  3608. // If passed a locale key, it will set the locale for this
  3609. // instance. Otherwise, it will return the locale configuration
  3610. // variables for this instance.
  3611. function locale(key) {
  3612. var newLocaleData;
  3613. if (key === undefined) {
  3614. return this._locale._abbr;
  3615. } else {
  3616. newLocaleData = getLocale(key);
  3617. if (newLocaleData != null) {
  3618. this._locale = newLocaleData;
  3619. }
  3620. return this;
  3621. }
  3622. }
  3623. var lang = deprecate(
  3624. 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
  3625. function (key) {
  3626. if (key === undefined) {
  3627. return this.localeData();
  3628. } else {
  3629. return this.locale(key);
  3630. }
  3631. }
  3632. );
  3633. function localeData() {
  3634. return this._locale;
  3635. }
  3636. var MS_PER_SECOND = 1000,
  3637. MS_PER_MINUTE = 60 * MS_PER_SECOND,
  3638. MS_PER_HOUR = 60 * MS_PER_MINUTE,
  3639. MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;
  3640. // actual modulo - handles negative numbers (for dates before 1970):
  3641. function mod$1(dividend, divisor) {
  3642. return ((dividend % divisor) + divisor) % divisor;
  3643. }
  3644. function localStartOfDate(y, m, d) {
  3645. // the date constructor remaps years 0-99 to 1900-1999
  3646. if (y < 100 && y >= 0) {
  3647. // preserve leap years using a full 400 year cycle, then reset
  3648. return new Date(y + 400, m, d) - MS_PER_400_YEARS;
  3649. } else {
  3650. return new Date(y, m, d).valueOf();
  3651. }
  3652. }
  3653. function utcStartOfDate(y, m, d) {
  3654. // Date.UTC remaps years 0-99 to 1900-1999
  3655. if (y < 100 && y >= 0) {
  3656. // preserve leap years using a full 400 year cycle, then reset
  3657. return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;
  3658. } else {
  3659. return Date.UTC(y, m, d);
  3660. }
  3661. }
  3662. function startOf(units) {
  3663. var time, startOfDate;
  3664. units = normalizeUnits(units);
  3665. if (units === undefined || units === 'millisecond' || !this.isValid()) {
  3666. return this;
  3667. }
  3668. startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
  3669. switch (units) {
  3670. case 'year':
  3671. time = startOfDate(this.year(), 0, 1);
  3672. break;
  3673. case 'quarter':
  3674. time = startOfDate(
  3675. this.year(),
  3676. this.month() - (this.month() % 3),
  3677. 1
  3678. );
  3679. break;
  3680. case 'month':
  3681. time = startOfDate(this.year(), this.month(), 1);
  3682. break;
  3683. case 'week':
  3684. time = startOfDate(
  3685. this.year(),
  3686. this.month(),
  3687. this.date() - this.weekday()
  3688. );
  3689. break;
  3690. case 'isoWeek':
  3691. time = startOfDate(
  3692. this.year(),
  3693. this.month(),
  3694. this.date() - (this.isoWeekday() - 1)
  3695. );
  3696. break;
  3697. case 'day':
  3698. case 'date':
  3699. time = startOfDate(this.year(), this.month(), this.date());
  3700. break;
  3701. case 'hour':
  3702. time = this._d.valueOf();
  3703. time -= mod$1(
  3704. time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
  3705. MS_PER_HOUR
  3706. );
  3707. break;
  3708. case 'minute':
  3709. time = this._d.valueOf();
  3710. time -= mod$1(time, MS_PER_MINUTE);
  3711. break;
  3712. case 'second':
  3713. time = this._d.valueOf();
  3714. time -= mod$1(time, MS_PER_SECOND);
  3715. break;
  3716. }
  3717. this._d.setTime(time);
  3718. hooks.updateOffset(this, true);
  3719. return this;
  3720. }
  3721. function endOf(units) {
  3722. var time, startOfDate;
  3723. units = normalizeUnits(units);
  3724. if (units === undefined || units === 'millisecond' || !this.isValid()) {
  3725. return this;
  3726. }
  3727. startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
  3728. switch (units) {
  3729. case 'year':
  3730. time = startOfDate(this.year() + 1, 0, 1) - 1;
  3731. break;
  3732. case 'quarter':
  3733. time =
  3734. startOfDate(
  3735. this.year(),
  3736. this.month() - (this.month() % 3) + 3,
  3737. 1
  3738. ) - 1;
  3739. break;
  3740. case 'month':
  3741. time = startOfDate(this.year(), this.month() + 1, 1) - 1;
  3742. break;
  3743. case 'week':
  3744. time =
  3745. startOfDate(
  3746. this.year(),
  3747. this.month(),
  3748. this.date() - this.weekday() + 7
  3749. ) - 1;
  3750. break;
  3751. case 'isoWeek':
  3752. time =
  3753. startOfDate(
  3754. this.year(),
  3755. this.month(),
  3756. this.date() - (this.isoWeekday() - 1) + 7
  3757. ) - 1;
  3758. break;
  3759. case 'day':
  3760. case 'date':
  3761. time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;
  3762. break;
  3763. case 'hour':
  3764. time = this._d.valueOf();
  3765. time +=
  3766. MS_PER_HOUR -
  3767. mod$1(
  3768. time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
  3769. MS_PER_HOUR
  3770. ) -
  3771. 1;
  3772. break;
  3773. case 'minute':
  3774. time = this._d.valueOf();
  3775. time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;
  3776. break;
  3777. case 'second':
  3778. time = this._d.valueOf();
  3779. time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;
  3780. break;
  3781. }
  3782. this._d.setTime(time);
  3783. hooks.updateOffset(this, true);
  3784. return this;
  3785. }
  3786. function valueOf() {
  3787. return this._d.valueOf() - (this._offset || 0) * 60000;
  3788. }
  3789. function unix() {
  3790. return Math.floor(this.valueOf() / 1000);
  3791. }
  3792. function toDate() {
  3793. return new Date(this.valueOf());
  3794. }
  3795. function toArray() {
  3796. var m = this;
  3797. return [
  3798. m.year(),
  3799. m.month(),
  3800. m.date(),
  3801. m.hour(),
  3802. m.minute(),
  3803. m.second(),
  3804. m.millisecond(),
  3805. ];
  3806. }
  3807. function toObject() {
  3808. var m = this;
  3809. return {
  3810. years: m.year(),
  3811. months: m.month(),
  3812. date: m.date(),
  3813. hours: m.hours(),
  3814. minutes: m.minutes(),
  3815. seconds: m.seconds(),
  3816. milliseconds: m.milliseconds(),
  3817. };
  3818. }
  3819. function toJSON() {
  3820. // new Date(NaN).toJSON() === null
  3821. return this.isValid() ? this.toISOString() : null;
  3822. }
  3823. function isValid$2() {
  3824. return isValid(this);
  3825. }
  3826. function parsingFlags() {
  3827. return extend({}, getParsingFlags(this));
  3828. }
  3829. function invalidAt() {
  3830. return getParsingFlags(this).overflow;
  3831. }
  3832. function creationData() {
  3833. return {
  3834. input: this._i,
  3835. format: this._f,
  3836. locale: this._locale,
  3837. isUTC: this._isUTC,
  3838. strict: this._strict,
  3839. };
  3840. }
  3841. addFormatToken('N', 0, 0, 'eraAbbr');
  3842. addFormatToken('NN', 0, 0, 'eraAbbr');
  3843. addFormatToken('NNN', 0, 0, 'eraAbbr');
  3844. addFormatToken('NNNN', 0, 0, 'eraName');
  3845. addFormatToken('NNNNN', 0, 0, 'eraNarrow');
  3846. addFormatToken('y', ['y', 1], 'yo', 'eraYear');
  3847. addFormatToken('y', ['yy', 2], 0, 'eraYear');
  3848. addFormatToken('y', ['yyy', 3], 0, 'eraYear');
  3849. addFormatToken('y', ['yyyy', 4], 0, 'eraYear');
  3850. addRegexToken('N', matchEraAbbr);
  3851. addRegexToken('NN', matchEraAbbr);
  3852. addRegexToken('NNN', matchEraAbbr);
  3853. addRegexToken('NNNN', matchEraName);
  3854. addRegexToken('NNNNN', matchEraNarrow);
  3855. addParseToken(
  3856. ['N', 'NN', 'NNN', 'NNNN', 'NNNNN'],
  3857. function (input, array, config, token) {
  3858. var era = config._locale.erasParse(input, token, config._strict);
  3859. if (era) {
  3860. getParsingFlags(config).era = era;
  3861. } else {
  3862. getParsingFlags(config).invalidEra = input;
  3863. }
  3864. }
  3865. );
  3866. addRegexToken('y', matchUnsigned);
  3867. addRegexToken('yy', matchUnsigned);
  3868. addRegexToken('yyy', matchUnsigned);
  3869. addRegexToken('yyyy', matchUnsigned);
  3870. addRegexToken('yo', matchEraYearOrdinal);
  3871. addParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR);
  3872. addParseToken(['yo'], function (input, array, config, token) {
  3873. var match;
  3874. if (config._locale._eraYearOrdinalRegex) {
  3875. match = input.match(config._locale._eraYearOrdinalRegex);
  3876. }
  3877. if (config._locale.eraYearOrdinalParse) {
  3878. array[YEAR] = config._locale.eraYearOrdinalParse(input, match);
  3879. } else {
  3880. array[YEAR] = parseInt(input, 10);
  3881. }
  3882. });
  3883. function localeEras(m, format) {
  3884. var i,
  3885. l,
  3886. date,
  3887. eras = this._eras || getLocale('en')._eras;
  3888. for (i = 0, l = eras.length; i < l; ++i) {
  3889. switch (typeof eras[i].since) {
  3890. case 'string':
  3891. // truncate time
  3892. date = hooks(eras[i].since).startOf('day');
  3893. eras[i].since = date.valueOf();
  3894. break;
  3895. }
  3896. switch (typeof eras[i].until) {
  3897. case 'undefined':
  3898. eras[i].until = +Infinity;
  3899. break;
  3900. case 'string':
  3901. // truncate time
  3902. date = hooks(eras[i].until).startOf('day').valueOf();
  3903. eras[i].until = date.valueOf();
  3904. break;
  3905. }
  3906. }
  3907. return eras;
  3908. }
  3909. function localeErasParse(eraName, format, strict) {
  3910. var i,
  3911. l,
  3912. eras = this.eras(),
  3913. name,
  3914. abbr,
  3915. narrow;
  3916. eraName = eraName.toUpperCase();
  3917. for (i = 0, l = eras.length; i < l; ++i) {
  3918. name = eras[i].name.toUpperCase();
  3919. abbr = eras[i].abbr.toUpperCase();
  3920. narrow = eras[i].narrow.toUpperCase();
  3921. if (strict) {
  3922. switch (format) {
  3923. case 'N':
  3924. case 'NN':
  3925. case 'NNN':
  3926. if (abbr === eraName) {
  3927. return eras[i];
  3928. }
  3929. break;
  3930. case 'NNNN':
  3931. if (name === eraName) {
  3932. return eras[i];
  3933. }
  3934. break;
  3935. case 'NNNNN':
  3936. if (narrow === eraName) {
  3937. return eras[i];
  3938. }
  3939. break;
  3940. }
  3941. } else if ([name, abbr, narrow].indexOf(eraName) >= 0) {
  3942. return eras[i];
  3943. }
  3944. }
  3945. }
  3946. function localeErasConvertYear(era, year) {
  3947. var dir = era.since <= era.until ? +1 : -1;
  3948. if (year === undefined) {
  3949. return hooks(era.since).year();
  3950. } else {
  3951. return hooks(era.since).year() + (year - era.offset) * dir;
  3952. }
  3953. }
  3954. function getEraName() {
  3955. var i,
  3956. l,
  3957. val,
  3958. eras = this.localeData().eras();
  3959. for (i = 0, l = eras.length; i < l; ++i) {
  3960. // truncate time
  3961. val = this.clone().startOf('day').valueOf();
  3962. if (eras[i].since <= val && val <= eras[i].until) {
  3963. return eras[i].name;
  3964. }
  3965. if (eras[i].until <= val && val <= eras[i].since) {
  3966. return eras[i].name;
  3967. }
  3968. }
  3969. return '';
  3970. }
  3971. function getEraNarrow() {
  3972. var i,
  3973. l,
  3974. val,
  3975. eras = this.localeData().eras();
  3976. for (i = 0, l = eras.length; i < l; ++i) {
  3977. // truncate time
  3978. val = this.clone().startOf('day').valueOf();
  3979. if (eras[i].since <= val && val <= eras[i].until) {
  3980. return eras[i].narrow;
  3981. }
  3982. if (eras[i].until <= val && val <= eras[i].since) {
  3983. return eras[i].narrow;
  3984. }
  3985. }
  3986. return '';
  3987. }
  3988. function getEraAbbr() {
  3989. var i,
  3990. l,
  3991. val,
  3992. eras = this.localeData().eras();
  3993. for (i = 0, l = eras.length; i < l; ++i) {
  3994. // truncate time
  3995. val = this.clone().startOf('day').valueOf();
  3996. if (eras[i].since <= val && val <= eras[i].until) {
  3997. return eras[i].abbr;
  3998. }
  3999. if (eras[i].until <= val && val <= eras[i].since) {
  4000. return eras[i].abbr;
  4001. }
  4002. }
  4003. return '';
  4004. }
  4005. function getEraYear() {
  4006. var i,
  4007. l,
  4008. dir,
  4009. val,
  4010. eras = this.localeData().eras();
  4011. for (i = 0, l = eras.length; i < l; ++i) {
  4012. dir = eras[i].since <= eras[i].until ? +1 : -1;
  4013. // truncate time
  4014. val = this.clone().startOf('day').valueOf();
  4015. if (
  4016. (eras[i].since <= val && val <= eras[i].until) ||
  4017. (eras[i].until <= val && val <= eras[i].since)
  4018. ) {
  4019. return (
  4020. (this.year() - hooks(eras[i].since).year()) * dir +
  4021. eras[i].offset
  4022. );
  4023. }
  4024. }
  4025. return this.year();
  4026. }
  4027. function erasNameRegex(isStrict) {
  4028. if (!hasOwnProp(this, '_erasNameRegex')) {
  4029. computeErasParse.call(this);
  4030. }
  4031. return isStrict ? this._erasNameRegex : this._erasRegex;
  4032. }
  4033. function erasAbbrRegex(isStrict) {
  4034. if (!hasOwnProp(this, '_erasAbbrRegex')) {
  4035. computeErasParse.call(this);
  4036. }
  4037. return isStrict ? this._erasAbbrRegex : this._erasRegex;
  4038. }
  4039. function erasNarrowRegex(isStrict) {
  4040. if (!hasOwnProp(this, '_erasNarrowRegex')) {
  4041. computeErasParse.call(this);
  4042. }
  4043. return isStrict ? this._erasNarrowRegex : this._erasRegex;
  4044. }
  4045. function matchEraAbbr(isStrict, locale) {
  4046. return locale.erasAbbrRegex(isStrict);
  4047. }
  4048. function matchEraName(isStrict, locale) {
  4049. return locale.erasNameRegex(isStrict);
  4050. }
  4051. function matchEraNarrow(isStrict, locale) {
  4052. return locale.erasNarrowRegex(isStrict);
  4053. }
  4054. function matchEraYearOrdinal(isStrict, locale) {
  4055. return locale._eraYearOrdinalRegex || matchUnsigned;
  4056. }
  4057. function computeErasParse() {
  4058. var abbrPieces = [],
  4059. namePieces = [],
  4060. narrowPieces = [],
  4061. mixedPieces = [],
  4062. i,
  4063. l,
  4064. erasName,
  4065. erasAbbr,
  4066. erasNarrow,
  4067. eras = this.eras();
  4068. for (i = 0, l = eras.length; i < l; ++i) {
  4069. erasName = regexEscape(eras[i].name);
  4070. erasAbbr = regexEscape(eras[i].abbr);
  4071. erasNarrow = regexEscape(eras[i].narrow);
  4072. namePieces.push(erasName);
  4073. abbrPieces.push(erasAbbr);
  4074. narrowPieces.push(erasNarrow);
  4075. mixedPieces.push(erasName);
  4076. mixedPieces.push(erasAbbr);
  4077. mixedPieces.push(erasNarrow);
  4078. }
  4079. this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  4080. this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i');
  4081. this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i');
  4082. this._erasNarrowRegex = new RegExp(
  4083. '^(' + narrowPieces.join('|') + ')',
  4084. 'i'
  4085. );
  4086. }
  4087. // FORMATTING
  4088. addFormatToken(0, ['gg', 2], 0, function () {
  4089. return this.weekYear() % 100;
  4090. });
  4091. addFormatToken(0, ['GG', 2], 0, function () {
  4092. return this.isoWeekYear() % 100;
  4093. });
  4094. function addWeekYearFormatToken(token, getter) {
  4095. addFormatToken(0, [token, token.length], 0, getter);
  4096. }
  4097. addWeekYearFormatToken('gggg', 'weekYear');
  4098. addWeekYearFormatToken('ggggg', 'weekYear');
  4099. addWeekYearFormatToken('GGGG', 'isoWeekYear');
  4100. addWeekYearFormatToken('GGGGG', 'isoWeekYear');
  4101. // ALIASES
  4102. // PARSING
  4103. addRegexToken('G', matchSigned);
  4104. addRegexToken('g', matchSigned);
  4105. addRegexToken('GG', match1to2, match2);
  4106. addRegexToken('gg', match1to2, match2);
  4107. addRegexToken('GGGG', match1to4, match4);
  4108. addRegexToken('gggg', match1to4, match4);
  4109. addRegexToken('GGGGG', match1to6, match6);
  4110. addRegexToken('ggggg', match1to6, match6);
  4111. addWeekParseToken(
  4112. ['gggg', 'ggggg', 'GGGG', 'GGGGG'],
  4113. function (input, week, config, token) {
  4114. week[token.substr(0, 2)] = toInt(input);
  4115. }
  4116. );
  4117. addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
  4118. week[token] = hooks.parseTwoDigitYear(input);
  4119. });
  4120. // MOMENTS
  4121. function getSetWeekYear(input) {
  4122. return getSetWeekYearHelper.call(
  4123. this,
  4124. input,
  4125. this.week(),
  4126. this.weekday() + this.localeData()._week.dow,
  4127. this.localeData()._week.dow,
  4128. this.localeData()._week.doy
  4129. );
  4130. }
  4131. function getSetISOWeekYear(input) {
  4132. return getSetWeekYearHelper.call(
  4133. this,
  4134. input,
  4135. this.isoWeek(),
  4136. this.isoWeekday(),
  4137. 1,
  4138. 4
  4139. );
  4140. }
  4141. function getISOWeeksInYear() {
  4142. return weeksInYear(this.year(), 1, 4);
  4143. }
  4144. function getISOWeeksInISOWeekYear() {
  4145. return weeksInYear(this.isoWeekYear(), 1, 4);
  4146. }
  4147. function getWeeksInYear() {
  4148. var weekInfo = this.localeData()._week;
  4149. return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
  4150. }
  4151. function getWeeksInWeekYear() {
  4152. var weekInfo = this.localeData()._week;
  4153. return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy);
  4154. }
  4155. function getSetWeekYearHelper(input, week, weekday, dow, doy) {
  4156. var weeksTarget;
  4157. if (input == null) {
  4158. return weekOfYear(this, dow, doy).year;
  4159. } else {
  4160. weeksTarget = weeksInYear(input, dow, doy);
  4161. if (week > weeksTarget) {
  4162. week = weeksTarget;
  4163. }
  4164. return setWeekAll.call(this, input, week, weekday, dow, doy);
  4165. }
  4166. }
  4167. function setWeekAll(weekYear, week, weekday, dow, doy) {
  4168. var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),
  4169. date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);
  4170. this.year(date.getUTCFullYear());
  4171. this.month(date.getUTCMonth());
  4172. this.date(date.getUTCDate());
  4173. return this;
  4174. }
  4175. // FORMATTING
  4176. addFormatToken('Q', 0, 'Qo', 'quarter');
  4177. // PARSING
  4178. addRegexToken('Q', match1);
  4179. addParseToken('Q', function (input, array) {
  4180. array[MONTH] = (toInt(input) - 1) * 3;
  4181. });
  4182. // MOMENTS
  4183. function getSetQuarter(input) {
  4184. return input == null
  4185. ? Math.ceil((this.month() + 1) / 3)
  4186. : this.month((input - 1) * 3 + (this.month() % 3));
  4187. }
  4188. // FORMATTING
  4189. addFormatToken('D', ['DD', 2], 'Do', 'date');
  4190. // PARSING
  4191. addRegexToken('D', match1to2, match1to2NoLeadingZero);
  4192. addRegexToken('DD', match1to2, match2);
  4193. addRegexToken('Do', function (isStrict, locale) {
  4194. // TODO: Remove "ordinalParse" fallback in next major release.
  4195. return isStrict
  4196. ? locale._dayOfMonthOrdinalParse || locale._ordinalParse
  4197. : locale._dayOfMonthOrdinalParseLenient;
  4198. });
  4199. addParseToken(['D', 'DD'], DATE);
  4200. addParseToken('Do', function (input, array) {
  4201. array[DATE] = toInt(input.match(match1to2)[0]);
  4202. });
  4203. // MOMENTS
  4204. var getSetDayOfMonth = makeGetSet('Date', true);
  4205. // FORMATTING
  4206. addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
  4207. // PARSING
  4208. addRegexToken('DDD', match1to3);
  4209. addRegexToken('DDDD', match3);
  4210. addParseToken(['DDD', 'DDDD'], function (input, array, config) {
  4211. config._dayOfYear = toInt(input);
  4212. });
  4213. // HELPERS
  4214. // MOMENTS
  4215. function getSetDayOfYear(input) {
  4216. var dayOfYear =
  4217. Math.round(
  4218. (this.clone().startOf('day') - this.clone().startOf('year')) / 864e5
  4219. ) + 1;
  4220. return input == null ? dayOfYear : this.add(input - dayOfYear, 'd');
  4221. }
  4222. // FORMATTING
  4223. addFormatToken('m', ['mm', 2], 0, 'minute');
  4224. // PARSING
  4225. addRegexToken('m', match1to2, match1to2HasZero);
  4226. addRegexToken('mm', match1to2, match2);
  4227. addParseToken(['m', 'mm'], MINUTE);
  4228. // MOMENTS
  4229. var getSetMinute = makeGetSet('Minutes', false);
  4230. // FORMATTING
  4231. addFormatToken('s', ['ss', 2], 0, 'second');
  4232. // PARSING
  4233. addRegexToken('s', match1to2, match1to2HasZero);
  4234. addRegexToken('ss', match1to2, match2);
  4235. addParseToken(['s', 'ss'], SECOND);
  4236. // MOMENTS
  4237. var getSetSecond = makeGetSet('Seconds', false);
  4238. // FORMATTING
  4239. addFormatToken('S', 0, 0, function () {
  4240. return ~~(this.millisecond() / 100);
  4241. });
  4242. addFormatToken(0, ['SS', 2], 0, function () {
  4243. return ~~(this.millisecond() / 10);
  4244. });
  4245. addFormatToken(0, ['SSS', 3], 0, 'millisecond');
  4246. addFormatToken(0, ['SSSS', 4], 0, function () {
  4247. return this.millisecond() * 10;
  4248. });
  4249. addFormatToken(0, ['SSSSS', 5], 0, function () {
  4250. return this.millisecond() * 100;
  4251. });
  4252. addFormatToken(0, ['SSSSSS', 6], 0, function () {
  4253. return this.millisecond() * 1000;
  4254. });
  4255. addFormatToken(0, ['SSSSSSS', 7], 0, function () {
  4256. return this.millisecond() * 10000;
  4257. });
  4258. addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
  4259. return this.millisecond() * 100000;
  4260. });
  4261. addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
  4262. return this.millisecond() * 1000000;
  4263. });
  4264. // PARSING
  4265. addRegexToken('S', match1to3, match1);
  4266. addRegexToken('SS', match1to3, match2);
  4267. addRegexToken('SSS', match1to3, match3);
  4268. var token, getSetMillisecond;
  4269. for (token = 'SSSS'; token.length <= 9; token += 'S') {
  4270. addRegexToken(token, matchUnsigned);
  4271. }
  4272. function parseMs(input, array) {
  4273. array[MILLISECOND] = toInt(('0.' + input) * 1000);
  4274. }
  4275. for (token = 'S'; token.length <= 9; token += 'S') {
  4276. addParseToken(token, parseMs);
  4277. }
  4278. getSetMillisecond = makeGetSet('Milliseconds', false);
  4279. // FORMATTING
  4280. addFormatToken('z', 0, 0, 'zoneAbbr');
  4281. addFormatToken('zz', 0, 0, 'zoneName');
  4282. // MOMENTS
  4283. function getZoneAbbr() {
  4284. return this._isUTC ? 'UTC' : '';
  4285. }
  4286. function getZoneName() {
  4287. return this._isUTC ? 'Coordinated Universal Time' : '';
  4288. }
  4289. var proto = Moment.prototype;
  4290. proto.add = add;
  4291. proto.calendar = calendar$1;
  4292. proto.clone = clone;
  4293. proto.diff = diff;
  4294. proto.endOf = endOf;
  4295. proto.format = format;
  4296. proto.from = from;
  4297. proto.fromNow = fromNow;
  4298. proto.to = to;
  4299. proto.toNow = toNow;
  4300. proto.get = stringGet;
  4301. proto.invalidAt = invalidAt;
  4302. proto.isAfter = isAfter;
  4303. proto.isBefore = isBefore;
  4304. proto.isBetween = isBetween;
  4305. proto.isSame = isSame;
  4306. proto.isSameOrAfter = isSameOrAfter;
  4307. proto.isSameOrBefore = isSameOrBefore;
  4308. proto.isValid = isValid$2;
  4309. proto.lang = lang;
  4310. proto.locale = locale;
  4311. proto.localeData = localeData;
  4312. proto.max = prototypeMax;
  4313. proto.min = prototypeMin;
  4314. proto.parsingFlags = parsingFlags;
  4315. proto.set = stringSet;
  4316. proto.startOf = startOf;
  4317. proto.subtract = subtract;
  4318. proto.toArray = toArray;
  4319. proto.toObject = toObject;
  4320. proto.toDate = toDate;
  4321. proto.toISOString = toISOString;
  4322. proto.inspect = inspect;
  4323. if (typeof Symbol !== 'undefined' && Symbol.for != null) {
  4324. proto[Symbol.for('nodejs.util.inspect.custom')] = function () {
  4325. return 'Moment<' + this.format() + '>';
  4326. };
  4327. }
  4328. proto.toJSON = toJSON;
  4329. proto.toString = toString;
  4330. proto.unix = unix;
  4331. proto.valueOf = valueOf;
  4332. proto.creationData = creationData;
  4333. proto.eraName = getEraName;
  4334. proto.eraNarrow = getEraNarrow;
  4335. proto.eraAbbr = getEraAbbr;
  4336. proto.eraYear = getEraYear;
  4337. proto.year = getSetYear;
  4338. proto.isLeapYear = getIsLeapYear;
  4339. proto.weekYear = getSetWeekYear;
  4340. proto.isoWeekYear = getSetISOWeekYear;
  4341. proto.quarter = proto.quarters = getSetQuarter;
  4342. proto.month = getSetMonth;
  4343. proto.daysInMonth = getDaysInMonth;
  4344. proto.week = proto.weeks = getSetWeek;
  4345. proto.isoWeek = proto.isoWeeks = getSetISOWeek;
  4346. proto.weeksInYear = getWeeksInYear;
  4347. proto.weeksInWeekYear = getWeeksInWeekYear;
  4348. proto.isoWeeksInYear = getISOWeeksInYear;
  4349. proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;
  4350. proto.date = getSetDayOfMonth;
  4351. proto.day = proto.days = getSetDayOfWeek;
  4352. proto.weekday = getSetLocaleDayOfWeek;
  4353. proto.isoWeekday = getSetISODayOfWeek;
  4354. proto.dayOfYear = getSetDayOfYear;
  4355. proto.hour = proto.hours = getSetHour;
  4356. proto.minute = proto.minutes = getSetMinute;
  4357. proto.second = proto.seconds = getSetSecond;
  4358. proto.millisecond = proto.milliseconds = getSetMillisecond;
  4359. proto.utcOffset = getSetOffset;
  4360. proto.utc = setOffsetToUTC;
  4361. proto.local = setOffsetToLocal;
  4362. proto.parseZone = setOffsetToParsedOffset;
  4363. proto.hasAlignedHourOffset = hasAlignedHourOffset;
  4364. proto.isDST = isDaylightSavingTime;
  4365. proto.isLocal = isLocal;
  4366. proto.isUtcOffset = isUtcOffset;
  4367. proto.isUtc = isUtc;
  4368. proto.isUTC = isUtc;
  4369. proto.zoneAbbr = getZoneAbbr;
  4370. proto.zoneName = getZoneName;
  4371. proto.dates = deprecate(
  4372. 'dates accessor is deprecated. Use date instead.',
  4373. getSetDayOfMonth
  4374. );
  4375. proto.months = deprecate(
  4376. 'months accessor is deprecated. Use month instead',
  4377. getSetMonth
  4378. );
  4379. proto.years = deprecate(
  4380. 'years accessor is deprecated. Use year instead',
  4381. getSetYear
  4382. );
  4383. proto.zone = deprecate(
  4384. 'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',
  4385. getSetZone
  4386. );
  4387. proto.isDSTShifted = deprecate(
  4388. 'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',
  4389. isDaylightSavingTimeShifted
  4390. );
  4391. function createUnix(input) {
  4392. return createLocal(input * 1000);
  4393. }
  4394. function createInZone() {
  4395. return createLocal.apply(null, arguments).parseZone();
  4396. }
  4397. function preParsePostFormat(string) {
  4398. return string;
  4399. }
  4400. var proto$1 = Locale.prototype;
  4401. proto$1.calendar = calendar;
  4402. proto$1.longDateFormat = longDateFormat;
  4403. proto$1.invalidDate = invalidDate;
  4404. proto$1.ordinal = ordinal;
  4405. proto$1.preparse = preParsePostFormat;
  4406. proto$1.postformat = preParsePostFormat;
  4407. proto$1.relativeTime = relativeTime;
  4408. proto$1.pastFuture = pastFuture;
  4409. proto$1.set = set;
  4410. proto$1.eras = localeEras;
  4411. proto$1.erasParse = localeErasParse;
  4412. proto$1.erasConvertYear = localeErasConvertYear;
  4413. proto$1.erasAbbrRegex = erasAbbrRegex;
  4414. proto$1.erasNameRegex = erasNameRegex;
  4415. proto$1.erasNarrowRegex = erasNarrowRegex;
  4416. proto$1.months = localeMonths;
  4417. proto$1.monthsShort = localeMonthsShort;
  4418. proto$1.monthsParse = localeMonthsParse;
  4419. proto$1.monthsRegex = monthsRegex;
  4420. proto$1.monthsShortRegex = monthsShortRegex;
  4421. proto$1.week = localeWeek;
  4422. proto$1.firstDayOfYear = localeFirstDayOfYear;
  4423. proto$1.firstDayOfWeek = localeFirstDayOfWeek;
  4424. proto$1.weekdays = localeWeekdays;
  4425. proto$1.weekdaysMin = localeWeekdaysMin;
  4426. proto$1.weekdaysShort = localeWeekdaysShort;
  4427. proto$1.weekdaysParse = localeWeekdaysParse;
  4428. proto$1.weekdaysRegex = weekdaysRegex;
  4429. proto$1.weekdaysShortRegex = weekdaysShortRegex;
  4430. proto$1.weekdaysMinRegex = weekdaysMinRegex;
  4431. proto$1.isPM = localeIsPM;
  4432. proto$1.meridiem = localeMeridiem;
  4433. function get$1(format, index, field, setter) {
  4434. var locale = getLocale(),
  4435. utc = createUTC().set(setter, index);
  4436. return locale[field](utc, format);
  4437. }
  4438. function listMonthsImpl(format, index, field) {
  4439. if (isNumber(format)) {
  4440. index = format;
  4441. format = undefined;
  4442. }
  4443. format = format || '';
  4444. if (index != null) {
  4445. return get$1(format, index, field, 'month');
  4446. }
  4447. var i,
  4448. out = [];
  4449. for (i = 0; i < 12; i++) {
  4450. out[i] = get$1(format, i, field, 'month');
  4451. }
  4452. return out;
  4453. }
  4454. // ()
  4455. // (5)
  4456. // (fmt, 5)
  4457. // (fmt)
  4458. // (true)
  4459. // (true, 5)
  4460. // (true, fmt, 5)
  4461. // (true, fmt)
  4462. function listWeekdaysImpl(localeSorted, format, index, field) {
  4463. if (typeof localeSorted === 'boolean') {
  4464. if (isNumber(format)) {
  4465. index = format;
  4466. format = undefined;
  4467. }
  4468. format = format || '';
  4469. } else {
  4470. format = localeSorted;
  4471. index = format;
  4472. localeSorted = false;
  4473. if (isNumber(format)) {
  4474. index = format;
  4475. format = undefined;
  4476. }
  4477. format = format || '';
  4478. }
  4479. var locale = getLocale(),
  4480. shift = localeSorted ? locale._week.dow : 0,
  4481. i,
  4482. out = [];
  4483. if (index != null) {
  4484. return get$1(format, (index + shift) % 7, field, 'day');
  4485. }
  4486. for (i = 0; i < 7; i++) {
  4487. out[i] = get$1(format, (i + shift) % 7, field, 'day');
  4488. }
  4489. return out;
  4490. }
  4491. function listMonths(format, index) {
  4492. return listMonthsImpl(format, index, 'months');
  4493. }
  4494. function listMonthsShort(format, index) {
  4495. return listMonthsImpl(format, index, 'monthsShort');
  4496. }
  4497. function listWeekdays(localeSorted, format, index) {
  4498. return listWeekdaysImpl(localeSorted, format, index, 'weekdays');
  4499. }
  4500. function listWeekdaysShort(localeSorted, format, index) {
  4501. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');
  4502. }
  4503. function listWeekdaysMin(localeSorted, format, index) {
  4504. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');
  4505. }
  4506. getSetGlobalLocale('en', {
  4507. eras: [
  4508. {
  4509. since: '0001-01-01',
  4510. until: +Infinity,
  4511. offset: 1,
  4512. name: 'Anno Domini',
  4513. narrow: 'AD',
  4514. abbr: 'AD',
  4515. },
  4516. {
  4517. since: '0000-12-31',
  4518. until: -Infinity,
  4519. offset: 1,
  4520. name: 'Before Christ',
  4521. narrow: 'BC',
  4522. abbr: 'BC',
  4523. },
  4524. ],
  4525. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  4526. ordinal: function (number) {
  4527. var b = number % 10,
  4528. output =
  4529. toInt((number % 100) / 10) === 1
  4530. ? 'th'
  4531. : b === 1
  4532. ? 'st'
  4533. : b === 2
  4534. ? 'nd'
  4535. : b === 3
  4536. ? 'rd'
  4537. : 'th';
  4538. return number + output;
  4539. },
  4540. });
  4541. // Side effect imports
  4542. hooks.lang = deprecate(
  4543. 'moment.lang is deprecated. Use moment.locale instead.',
  4544. getSetGlobalLocale
  4545. );
  4546. hooks.langData = deprecate(
  4547. 'moment.langData is deprecated. Use moment.localeData instead.',
  4548. getLocale
  4549. );
  4550. var mathAbs = Math.abs;
  4551. function abs() {
  4552. var data = this._data;
  4553. this._milliseconds = mathAbs(this._milliseconds);
  4554. this._days = mathAbs(this._days);
  4555. this._months = mathAbs(this._months);
  4556. data.milliseconds = mathAbs(data.milliseconds);
  4557. data.seconds = mathAbs(data.seconds);
  4558. data.minutes = mathAbs(data.minutes);
  4559. data.hours = mathAbs(data.hours);
  4560. data.months = mathAbs(data.months);
  4561. data.years = mathAbs(data.years);
  4562. return this;
  4563. }
  4564. function addSubtract$1(duration, input, value, direction) {
  4565. var other = createDuration(input, value);
  4566. duration._milliseconds += direction * other._milliseconds;
  4567. duration._days += direction * other._days;
  4568. duration._months += direction * other._months;
  4569. return duration._bubble();
  4570. }
  4571. // supports only 2.0-style add(1, 's') or add(duration)
  4572. function add$1(input, value) {
  4573. return addSubtract$1(this, input, value, 1);
  4574. }
  4575. // supports only 2.0-style subtract(1, 's') or subtract(duration)
  4576. function subtract$1(input, value) {
  4577. return addSubtract$1(this, input, value, -1);
  4578. }
  4579. function absCeil(number) {
  4580. if (number < 0) {
  4581. return Math.floor(number);
  4582. } else {
  4583. return Math.ceil(number);
  4584. }
  4585. }
  4586. function bubble() {
  4587. var milliseconds = this._milliseconds,
  4588. days = this._days,
  4589. months = this._months,
  4590. data = this._data,
  4591. seconds,
  4592. minutes,
  4593. hours,
  4594. years,
  4595. monthsFromDays;
  4596. // if we have a mix of positive and negative values, bubble down first
  4597. // check: https://github.com/moment/moment/issues/2166
  4598. if (
  4599. !(
  4600. (milliseconds >= 0 && days >= 0 && months >= 0) ||
  4601. (milliseconds <= 0 && days <= 0 && months <= 0)
  4602. )
  4603. ) {
  4604. milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
  4605. days = 0;
  4606. months = 0;
  4607. }
  4608. // The following code bubbles up values, see the tests for
  4609. // examples of what that means.
  4610. data.milliseconds = milliseconds % 1000;
  4611. seconds = absFloor(milliseconds / 1000);
  4612. data.seconds = seconds % 60;
  4613. minutes = absFloor(seconds / 60);
  4614. data.minutes = minutes % 60;
  4615. hours = absFloor(minutes / 60);
  4616. data.hours = hours % 24;
  4617. days += absFloor(hours / 24);
  4618. // convert days to months
  4619. monthsFromDays = absFloor(daysToMonths(days));
  4620. months += monthsFromDays;
  4621. days -= absCeil(monthsToDays(monthsFromDays));
  4622. // 12 months -> 1 year
  4623. years = absFloor(months / 12);
  4624. months %= 12;
  4625. data.days = days;
  4626. data.months = months;
  4627. data.years = years;
  4628. return this;
  4629. }
  4630. function daysToMonths(days) {
  4631. // 400 years have 146097 days (taking into account leap year rules)
  4632. // 400 years have 12 months === 4800
  4633. return (days * 4800) / 146097;
  4634. }
  4635. function monthsToDays(months) {
  4636. // the reverse of daysToMonths
  4637. return (months * 146097) / 4800;
  4638. }
  4639. function as(units) {
  4640. if (!this.isValid()) {
  4641. return NaN;
  4642. }
  4643. var days,
  4644. months,
  4645. milliseconds = this._milliseconds;
  4646. units = normalizeUnits(units);
  4647. if (units === 'month' || units === 'quarter' || units === 'year') {
  4648. days = this._days + milliseconds / 864e5;
  4649. months = this._months + daysToMonths(days);
  4650. switch (units) {
  4651. case 'month':
  4652. return months;
  4653. case 'quarter':
  4654. return months / 3;
  4655. case 'year':
  4656. return months / 12;
  4657. }
  4658. } else {
  4659. // handle milliseconds separately because of floating point math errors (issue #1867)
  4660. days = this._days + Math.round(monthsToDays(this._months));
  4661. switch (units) {
  4662. case 'week':
  4663. return days / 7 + milliseconds / 6048e5;
  4664. case 'day':
  4665. return days + milliseconds / 864e5;
  4666. case 'hour':
  4667. return days * 24 + milliseconds / 36e5;
  4668. case 'minute':
  4669. return days * 1440 + milliseconds / 6e4;
  4670. case 'second':
  4671. return days * 86400 + milliseconds / 1000;
  4672. // Math.floor prevents floating point math errors here
  4673. case 'millisecond':
  4674. return Math.floor(days * 864e5) + milliseconds;
  4675. default:
  4676. throw new Error('Unknown unit ' + units);
  4677. }
  4678. }
  4679. }
  4680. function makeAs(alias) {
  4681. return function () {
  4682. return this.as(alias);
  4683. };
  4684. }
  4685. var asMilliseconds = makeAs('ms'),
  4686. asSeconds = makeAs('s'),
  4687. asMinutes = makeAs('m'),
  4688. asHours = makeAs('h'),
  4689. asDays = makeAs('d'),
  4690. asWeeks = makeAs('w'),
  4691. asMonths = makeAs('M'),
  4692. asQuarters = makeAs('Q'),
  4693. asYears = makeAs('y'),
  4694. valueOf$1 = asMilliseconds;
  4695. function clone$1() {
  4696. return createDuration(this);
  4697. }
  4698. function get$2(units) {
  4699. units = normalizeUnits(units);
  4700. return this.isValid() ? this[units + 's']() : NaN;
  4701. }
  4702. function makeGetter(name) {
  4703. return function () {
  4704. return this.isValid() ? this._data[name] : NaN;
  4705. };
  4706. }
  4707. var milliseconds = makeGetter('milliseconds'),
  4708. seconds = makeGetter('seconds'),
  4709. minutes = makeGetter('minutes'),
  4710. hours = makeGetter('hours'),
  4711. days = makeGetter('days'),
  4712. months = makeGetter('months'),
  4713. years = makeGetter('years');
  4714. function weeks() {
  4715. return absFloor(this.days() / 7);
  4716. }
  4717. var round = Math.round,
  4718. thresholds = {
  4719. ss: 44, // a few seconds to seconds
  4720. s: 45, // seconds to minute
  4721. m: 45, // minutes to hour
  4722. h: 22, // hours to day
  4723. d: 26, // days to month/week
  4724. w: null, // weeks to month
  4725. M: 11, // months to year
  4726. };
  4727. // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
  4728. function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
  4729. return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
  4730. }
  4731. function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {
  4732. var duration = createDuration(posNegDuration).abs(),
  4733. seconds = round(duration.as('s')),
  4734. minutes = round(duration.as('m')),
  4735. hours = round(duration.as('h')),
  4736. days = round(duration.as('d')),
  4737. months = round(duration.as('M')),
  4738. weeks = round(duration.as('w')),
  4739. years = round(duration.as('y')),
  4740. a =
  4741. (seconds <= thresholds.ss && ['s', seconds]) ||
  4742. (seconds < thresholds.s && ['ss', seconds]) ||
  4743. (minutes <= 1 && ['m']) ||
  4744. (minutes < thresholds.m && ['mm', minutes]) ||
  4745. (hours <= 1 && ['h']) ||
  4746. (hours < thresholds.h && ['hh', hours]) ||
  4747. (days <= 1 && ['d']) ||
  4748. (days < thresholds.d && ['dd', days]);
  4749. if (thresholds.w != null) {
  4750. a =
  4751. a ||
  4752. (weeks <= 1 && ['w']) ||
  4753. (weeks < thresholds.w && ['ww', weeks]);
  4754. }
  4755. a = a ||
  4756. (months <= 1 && ['M']) ||
  4757. (months < thresholds.M && ['MM', months]) ||
  4758. (years <= 1 && ['y']) || ['yy', years];
  4759. a[2] = withoutSuffix;
  4760. a[3] = +posNegDuration > 0;
  4761. a[4] = locale;
  4762. return substituteTimeAgo.apply(null, a);
  4763. }
  4764. // This function allows you to set the rounding function for relative time strings
  4765. function getSetRelativeTimeRounding(roundingFunction) {
  4766. if (roundingFunction === undefined) {
  4767. return round;
  4768. }
  4769. if (typeof roundingFunction === 'function') {
  4770. round = roundingFunction;
  4771. return true;
  4772. }
  4773. return false;
  4774. }
  4775. // This function allows you to set a threshold for relative time strings
  4776. function getSetRelativeTimeThreshold(threshold, limit) {
  4777. if (thresholds[threshold] === undefined) {
  4778. return false;
  4779. }
  4780. if (limit === undefined) {
  4781. return thresholds[threshold];
  4782. }
  4783. thresholds[threshold] = limit;
  4784. if (threshold === 's') {
  4785. thresholds.ss = limit - 1;
  4786. }
  4787. return true;
  4788. }
  4789. function humanize(argWithSuffix, argThresholds) {
  4790. if (!this.isValid()) {
  4791. return this.localeData().invalidDate();
  4792. }
  4793. var withSuffix = false,
  4794. th = thresholds,
  4795. locale,
  4796. output;
  4797. if (typeof argWithSuffix === 'object') {
  4798. argThresholds = argWithSuffix;
  4799. argWithSuffix = false;
  4800. }
  4801. if (typeof argWithSuffix === 'boolean') {
  4802. withSuffix = argWithSuffix;
  4803. }
  4804. if (typeof argThresholds === 'object') {
  4805. th = Object.assign({}, thresholds, argThresholds);
  4806. if (argThresholds.s != null && argThresholds.ss == null) {
  4807. th.ss = argThresholds.s - 1;
  4808. }
  4809. }
  4810. locale = this.localeData();
  4811. output = relativeTime$1(this, !withSuffix, th, locale);
  4812. if (withSuffix) {
  4813. output = locale.pastFuture(+this, output);
  4814. }
  4815. return locale.postformat(output);
  4816. }
  4817. var abs$1 = Math.abs;
  4818. function sign(x) {
  4819. return (x > 0) - (x < 0) || +x;
  4820. }
  4821. function toISOString$1() {
  4822. // for ISO strings we do not use the normal bubbling rules:
  4823. // * milliseconds bubble up until they become hours
  4824. // * days do not bubble at all
  4825. // * months bubble up until they become years
  4826. // This is because there is no context-free conversion between hours and days
  4827. // (think of clock changes)
  4828. // and also not between days and months (28-31 days per month)
  4829. if (!this.isValid()) {
  4830. return this.localeData().invalidDate();
  4831. }
  4832. var seconds = abs$1(this._milliseconds) / 1000,
  4833. days = abs$1(this._days),
  4834. months = abs$1(this._months),
  4835. minutes,
  4836. hours,
  4837. years,
  4838. s,
  4839. total = this.asSeconds(),
  4840. totalSign,
  4841. ymSign,
  4842. daysSign,
  4843. hmsSign;
  4844. if (!total) {
  4845. // this is the same as C#'s (Noda) and python (isodate)...
  4846. // but not other JS (goog.date)
  4847. return 'P0D';
  4848. }
  4849. // 3600 seconds -> 60 minutes -> 1 hour
  4850. minutes = absFloor(seconds / 60);
  4851. hours = absFloor(minutes / 60);
  4852. seconds %= 60;
  4853. minutes %= 60;
  4854. // 12 months -> 1 year
  4855. years = absFloor(months / 12);
  4856. months %= 12;
  4857. // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
  4858. s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : '';
  4859. totalSign = total < 0 ? '-' : '';
  4860. ymSign = sign(this._months) !== sign(total) ? '-' : '';
  4861. daysSign = sign(this._days) !== sign(total) ? '-' : '';
  4862. hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';
  4863. return (
  4864. totalSign +
  4865. 'P' +
  4866. (years ? ymSign + years + 'Y' : '') +
  4867. (months ? ymSign + months + 'M' : '') +
  4868. (days ? daysSign + days + 'D' : '') +
  4869. (hours || minutes || seconds ? 'T' : '') +
  4870. (hours ? hmsSign + hours + 'H' : '') +
  4871. (minutes ? hmsSign + minutes + 'M' : '') +
  4872. (seconds ? hmsSign + s + 'S' : '')
  4873. );
  4874. }
  4875. var proto$2 = Duration.prototype;
  4876. proto$2.isValid = isValid$1;
  4877. proto$2.abs = abs;
  4878. proto$2.add = add$1;
  4879. proto$2.subtract = subtract$1;
  4880. proto$2.as = as;
  4881. proto$2.asMilliseconds = asMilliseconds;
  4882. proto$2.asSeconds = asSeconds;
  4883. proto$2.asMinutes = asMinutes;
  4884. proto$2.asHours = asHours;
  4885. proto$2.asDays = asDays;
  4886. proto$2.asWeeks = asWeeks;
  4887. proto$2.asMonths = asMonths;
  4888. proto$2.asQuarters = asQuarters;
  4889. proto$2.asYears = asYears;
  4890. proto$2.valueOf = valueOf$1;
  4891. proto$2._bubble = bubble;
  4892. proto$2.clone = clone$1;
  4893. proto$2.get = get$2;
  4894. proto$2.milliseconds = milliseconds;
  4895. proto$2.seconds = seconds;
  4896. proto$2.minutes = minutes;
  4897. proto$2.hours = hours;
  4898. proto$2.days = days;
  4899. proto$2.weeks = weeks;
  4900. proto$2.months = months;
  4901. proto$2.years = years;
  4902. proto$2.humanize = humanize;
  4903. proto$2.toISOString = toISOString$1;
  4904. proto$2.toString = toISOString$1;
  4905. proto$2.toJSON = toISOString$1;
  4906. proto$2.locale = locale;
  4907. proto$2.localeData = localeData;
  4908. proto$2.toIsoString = deprecate(
  4909. 'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',
  4910. toISOString$1
  4911. );
  4912. proto$2.lang = lang;
  4913. // FORMATTING
  4914. addFormatToken('X', 0, 0, 'unix');
  4915. addFormatToken('x', 0, 0, 'valueOf');
  4916. // PARSING
  4917. addRegexToken('x', matchSigned);
  4918. addRegexToken('X', matchTimestamp);
  4919. addParseToken('X', function (input, array, config) {
  4920. config._d = new Date(parseFloat(input) * 1000);
  4921. });
  4922. addParseToken('x', function (input, array, config) {
  4923. config._d = new Date(toInt(input));
  4924. });
  4925. //! moment.js
  4926. hooks.version = '2.30.1';
  4927. setHookCallback(createLocal);
  4928. hooks.fn = proto;
  4929. hooks.min = min;
  4930. hooks.max = max;
  4931. hooks.now = now;
  4932. hooks.utc = createUTC;
  4933. hooks.unix = createUnix;
  4934. hooks.months = listMonths;
  4935. hooks.isDate = isDate;
  4936. hooks.locale = getSetGlobalLocale;
  4937. hooks.invalid = createInvalid;
  4938. hooks.duration = createDuration;
  4939. hooks.isMoment = isMoment;
  4940. hooks.weekdays = listWeekdays;
  4941. hooks.parseZone = createInZone;
  4942. hooks.localeData = getLocale;
  4943. hooks.isDuration = isDuration;
  4944. hooks.monthsShort = listMonthsShort;
  4945. hooks.weekdaysMin = listWeekdaysMin;
  4946. hooks.defineLocale = defineLocale;
  4947. hooks.updateLocale = updateLocale;
  4948. hooks.locales = listLocales;
  4949. hooks.weekdaysShort = listWeekdaysShort;
  4950. hooks.normalizeUnits = normalizeUnits;
  4951. hooks.relativeTimeRounding = getSetRelativeTimeRounding;
  4952. hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
  4953. hooks.calendarFormat = getCalendarFormat;
  4954. hooks.prototype = proto;
  4955. // currently HTML5 input type only supports 24-hour formats
  4956. hooks.HTML5_FMT = {
  4957. DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // <input type="datetime-local" />
  4958. DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // <input type="datetime-local" step="1" />
  4959. DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // <input type="datetime-local" step="0.001" />
  4960. DATE: 'YYYY-MM-DD', // <input type="date" />
  4961. TIME: 'HH:mm', // <input type="time" />
  4962. TIME_SECONDS: 'HH:mm:ss', // <input type="time" step="1" />
  4963. TIME_MS: 'HH:mm:ss.SSS', // <input type="time" step="0.001" />
  4964. WEEK: 'GGGG-[W]WW', // <input type="week" />
  4965. MONTH: 'YYYY-MM', // <input type="month" />
  4966. };
  4967. //! moment.js locale configuration
  4968. hooks.defineLocale('af', {
  4969. months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split(
  4970. '_'
  4971. ),
  4972. monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
  4973. weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split(
  4974. '_'
  4975. ),
  4976. weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
  4977. weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
  4978. meridiemParse: /vm|nm/i,
  4979. isPM: function (input) {
  4980. return /^nm$/i.test(input);
  4981. },
  4982. meridiem: function (hours, minutes, isLower) {
  4983. if (hours < 12) {
  4984. return isLower ? 'vm' : 'VM';
  4985. } else {
  4986. return isLower ? 'nm' : 'NM';
  4987. }
  4988. },
  4989. longDateFormat: {
  4990. LT: 'HH:mm',
  4991. LTS: 'HH:mm:ss',
  4992. L: 'DD/MM/YYYY',
  4993. LL: 'D MMMM YYYY',
  4994. LLL: 'D MMMM YYYY HH:mm',
  4995. LLLL: 'dddd, D MMMM YYYY HH:mm',
  4996. },
  4997. calendar: {
  4998. sameDay: '[Vandag om] LT',
  4999. nextDay: '[Môre om] LT',
  5000. nextWeek: 'dddd [om] LT',
  5001. lastDay: '[Gister om] LT',
  5002. lastWeek: '[Laas] dddd [om] LT',
  5003. sameElse: 'L',
  5004. },
  5005. relativeTime: {
  5006. future: 'oor %s',
  5007. past: '%s gelede',
  5008. s: "'n paar sekondes",
  5009. ss: '%d sekondes',
  5010. m: "'n minuut",
  5011. mm: '%d minute',
  5012. h: "'n uur",
  5013. hh: '%d ure',
  5014. d: "'n dag",
  5015. dd: '%d dae',
  5016. M: "'n maand",
  5017. MM: '%d maande',
  5018. y: "'n jaar",
  5019. yy: '%d jaar',
  5020. },
  5021. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  5022. ordinal: function (number) {
  5023. return (
  5024. number +
  5025. (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
  5026. ); // Thanks to Joris Röling : https://github.com/jjupiter
  5027. },
  5028. week: {
  5029. dow: 1, // Maandag is die eerste dag van die week.
  5030. doy: 4, // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
  5031. },
  5032. });
  5033. //! moment.js locale configuration
  5034. var pluralForm = function (n) {
  5035. return n === 0
  5036. ? 0
  5037. : n === 1
  5038. ? 1
  5039. : n === 2
  5040. ? 2
  5041. : n % 100 >= 3 && n % 100 <= 10
  5042. ? 3
  5043. : n % 100 >= 11
  5044. ? 4
  5045. : 5;
  5046. },
  5047. plurals = {
  5048. s: [
  5049. 'أقل من ثانية',
  5050. 'ثانية واحدة',
  5051. ['ثانيتان', 'ثانيتين'],
  5052. '%d ثوان',
  5053. '%d ثانية',
  5054. '%d ثانية',
  5055. ],
  5056. m: [
  5057. 'أقل من دقيقة',
  5058. 'دقيقة واحدة',
  5059. ['دقيقتان', 'دقيقتين'],
  5060. '%d دقائق',
  5061. '%d دقيقة',
  5062. '%d دقيقة',
  5063. ],
  5064. h: [
  5065. 'أقل من ساعة',
  5066. 'ساعة واحدة',
  5067. ['ساعتان', 'ساعتين'],
  5068. '%d ساعات',
  5069. '%d ساعة',
  5070. '%d ساعة',
  5071. ],
  5072. d: [
  5073. 'أقل من يوم',
  5074. 'يوم واحد',
  5075. ['يومان', 'يومين'],
  5076. '%d أيام',
  5077. '%d يومًا',
  5078. '%d يوم',
  5079. ],
  5080. M: [
  5081. 'أقل من شهر',
  5082. 'شهر واحد',
  5083. ['شهران', 'شهرين'],
  5084. '%d أشهر',
  5085. '%d شهرا',
  5086. '%d شهر',
  5087. ],
  5088. y: [
  5089. 'أقل من عام',
  5090. 'عام واحد',
  5091. ['عامان', 'عامين'],
  5092. '%d أعوام',
  5093. '%d عامًا',
  5094. '%d عام',
  5095. ],
  5096. },
  5097. pluralize = function (u) {
  5098. return function (number, withoutSuffix, string, isFuture) {
  5099. var f = pluralForm(number),
  5100. str = plurals[u][pluralForm(number)];
  5101. if (f === 2) {
  5102. str = str[withoutSuffix ? 0 : 1];
  5103. }
  5104. return str.replace(/%d/i, number);
  5105. };
  5106. },
  5107. months$1 = [
  5108. 'جانفي',
  5109. 'فيفري',
  5110. 'مارس',
  5111. 'أفريل',
  5112. 'ماي',
  5113. 'جوان',
  5114. 'جويلية',
  5115. 'أوت',
  5116. 'سبتمبر',
  5117. 'أكتوبر',
  5118. 'نوفمبر',
  5119. 'ديسمبر',
  5120. ];
  5121. hooks.defineLocale('ar-dz', {
  5122. months: months$1,
  5123. monthsShort: months$1,
  5124. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5125. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5126. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5127. weekdaysParseExact: true,
  5128. longDateFormat: {
  5129. LT: 'HH:mm',
  5130. LTS: 'HH:mm:ss',
  5131. L: 'D/\u200FM/\u200FYYYY',
  5132. LL: 'D MMMM YYYY',
  5133. LLL: 'D MMMM YYYY HH:mm',
  5134. LLLL: 'dddd D MMMM YYYY HH:mm',
  5135. },
  5136. meridiemParse: /ص|م/,
  5137. isPM: function (input) {
  5138. return 'م' === input;
  5139. },
  5140. meridiem: function (hour, minute, isLower) {
  5141. if (hour < 12) {
  5142. return 'ص';
  5143. } else {
  5144. return 'م';
  5145. }
  5146. },
  5147. calendar: {
  5148. sameDay: '[اليوم عند الساعة] LT',
  5149. nextDay: '[غدًا عند الساعة] LT',
  5150. nextWeek: 'dddd [عند الساعة] LT',
  5151. lastDay: '[أمس عند الساعة] LT',
  5152. lastWeek: 'dddd [عند الساعة] LT',
  5153. sameElse: 'L',
  5154. },
  5155. relativeTime: {
  5156. future: 'بعد %s',
  5157. past: 'منذ %s',
  5158. s: pluralize('s'),
  5159. ss: pluralize('s'),
  5160. m: pluralize('m'),
  5161. mm: pluralize('m'),
  5162. h: pluralize('h'),
  5163. hh: pluralize('h'),
  5164. d: pluralize('d'),
  5165. dd: pluralize('d'),
  5166. M: pluralize('M'),
  5167. MM: pluralize('M'),
  5168. y: pluralize('y'),
  5169. yy: pluralize('y'),
  5170. },
  5171. postformat: function (string) {
  5172. return string.replace(/,/g, '،');
  5173. },
  5174. week: {
  5175. dow: 0, // Sunday is the first day of the week.
  5176. doy: 4, // The week that contains Jan 4th is the first week of the year.
  5177. },
  5178. });
  5179. //! moment.js locale configuration
  5180. hooks.defineLocale('ar-kw', {
  5181. months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
  5182. '_'
  5183. ),
  5184. monthsShort:
  5185. 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
  5186. '_'
  5187. ),
  5188. weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5189. weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  5190. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5191. weekdaysParseExact: true,
  5192. longDateFormat: {
  5193. LT: 'HH:mm',
  5194. LTS: 'HH:mm:ss',
  5195. L: 'DD/MM/YYYY',
  5196. LL: 'D MMMM YYYY',
  5197. LLL: 'D MMMM YYYY HH:mm',
  5198. LLLL: 'dddd D MMMM YYYY HH:mm',
  5199. },
  5200. calendar: {
  5201. sameDay: '[اليوم على الساعة] LT',
  5202. nextDay: '[غدا على الساعة] LT',
  5203. nextWeek: 'dddd [على الساعة] LT',
  5204. lastDay: '[أمس على الساعة] LT',
  5205. lastWeek: 'dddd [على الساعة] LT',
  5206. sameElse: 'L',
  5207. },
  5208. relativeTime: {
  5209. future: 'في %s',
  5210. past: 'منذ %s',
  5211. s: 'ثوان',
  5212. ss: '%d ثانية',
  5213. m: 'دقيقة',
  5214. mm: '%d دقائق',
  5215. h: 'ساعة',
  5216. hh: '%d ساعات',
  5217. d: 'يوم',
  5218. dd: '%d أيام',
  5219. M: 'شهر',
  5220. MM: '%d أشهر',
  5221. y: 'سنة',
  5222. yy: '%d سنوات',
  5223. },
  5224. week: {
  5225. dow: 0, // Sunday is the first day of the week.
  5226. doy: 12, // The week that contains Jan 12th is the first week of the year.
  5227. },
  5228. });
  5229. //! moment.js locale configuration
  5230. var symbolMap = {
  5231. 1: '1',
  5232. 2: '2',
  5233. 3: '3',
  5234. 4: '4',
  5235. 5: '5',
  5236. 6: '6',
  5237. 7: '7',
  5238. 8: '8',
  5239. 9: '9',
  5240. 0: '0',
  5241. },
  5242. pluralForm$1 = function (n) {
  5243. return n === 0
  5244. ? 0
  5245. : n === 1
  5246. ? 1
  5247. : n === 2
  5248. ? 2
  5249. : n % 100 >= 3 && n % 100 <= 10
  5250. ? 3
  5251. : n % 100 >= 11
  5252. ? 4
  5253. : 5;
  5254. },
  5255. plurals$1 = {
  5256. s: [
  5257. 'أقل من ثانية',
  5258. 'ثانية واحدة',
  5259. ['ثانيتان', 'ثانيتين'],
  5260. '%d ثوان',
  5261. '%d ثانية',
  5262. '%d ثانية',
  5263. ],
  5264. m: [
  5265. 'أقل من دقيقة',
  5266. 'دقيقة واحدة',
  5267. ['دقيقتان', 'دقيقتين'],
  5268. '%d دقائق',
  5269. '%d دقيقة',
  5270. '%d دقيقة',
  5271. ],
  5272. h: [
  5273. 'أقل من ساعة',
  5274. 'ساعة واحدة',
  5275. ['ساعتان', 'ساعتين'],
  5276. '%d ساعات',
  5277. '%d ساعة',
  5278. '%d ساعة',
  5279. ],
  5280. d: [
  5281. 'أقل من يوم',
  5282. 'يوم واحد',
  5283. ['يومان', 'يومين'],
  5284. '%d أيام',
  5285. '%d يومًا',
  5286. '%d يوم',
  5287. ],
  5288. M: [
  5289. 'أقل من شهر',
  5290. 'شهر واحد',
  5291. ['شهران', 'شهرين'],
  5292. '%d أشهر',
  5293. '%d شهرا',
  5294. '%d شهر',
  5295. ],
  5296. y: [
  5297. 'أقل من عام',
  5298. 'عام واحد',
  5299. ['عامان', 'عامين'],
  5300. '%d أعوام',
  5301. '%d عامًا',
  5302. '%d عام',
  5303. ],
  5304. },
  5305. pluralize$1 = function (u) {
  5306. return function (number, withoutSuffix, string, isFuture) {
  5307. var f = pluralForm$1(number),
  5308. str = plurals$1[u][pluralForm$1(number)];
  5309. if (f === 2) {
  5310. str = str[withoutSuffix ? 0 : 1];
  5311. }
  5312. return str.replace(/%d/i, number);
  5313. };
  5314. },
  5315. months$2 = [
  5316. 'يناير',
  5317. 'فبراير',
  5318. 'مارس',
  5319. 'أبريل',
  5320. 'مايو',
  5321. 'يونيو',
  5322. 'يوليو',
  5323. 'أغسطس',
  5324. 'سبتمبر',
  5325. 'أكتوبر',
  5326. 'نوفمبر',
  5327. 'ديسمبر',
  5328. ];
  5329. hooks.defineLocale('ar-ly', {
  5330. months: months$2,
  5331. monthsShort: months$2,
  5332. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5333. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5334. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5335. weekdaysParseExact: true,
  5336. longDateFormat: {
  5337. LT: 'HH:mm',
  5338. LTS: 'HH:mm:ss',
  5339. L: 'D/\u200FM/\u200FYYYY',
  5340. LL: 'D MMMM YYYY',
  5341. LLL: 'D MMMM YYYY HH:mm',
  5342. LLLL: 'dddd D MMMM YYYY HH:mm',
  5343. },
  5344. meridiemParse: /ص|م/,
  5345. isPM: function (input) {
  5346. return 'م' === input;
  5347. },
  5348. meridiem: function (hour, minute, isLower) {
  5349. if (hour < 12) {
  5350. return 'ص';
  5351. } else {
  5352. return 'م';
  5353. }
  5354. },
  5355. calendar: {
  5356. sameDay: '[اليوم عند الساعة] LT',
  5357. nextDay: '[غدًا عند الساعة] LT',
  5358. nextWeek: 'dddd [عند الساعة] LT',
  5359. lastDay: '[أمس عند الساعة] LT',
  5360. lastWeek: 'dddd [عند الساعة] LT',
  5361. sameElse: 'L',
  5362. },
  5363. relativeTime: {
  5364. future: 'بعد %s',
  5365. past: 'منذ %s',
  5366. s: pluralize$1('s'),
  5367. ss: pluralize$1('s'),
  5368. m: pluralize$1('m'),
  5369. mm: pluralize$1('m'),
  5370. h: pluralize$1('h'),
  5371. hh: pluralize$1('h'),
  5372. d: pluralize$1('d'),
  5373. dd: pluralize$1('d'),
  5374. M: pluralize$1('M'),
  5375. MM: pluralize$1('M'),
  5376. y: pluralize$1('y'),
  5377. yy: pluralize$1('y'),
  5378. },
  5379. preparse: function (string) {
  5380. return string.replace(/،/g, ',');
  5381. },
  5382. postformat: function (string) {
  5383. return string
  5384. .replace(/\d/g, function (match) {
  5385. return symbolMap[match];
  5386. })
  5387. .replace(/,/g, '،');
  5388. },
  5389. week: {
  5390. dow: 6, // Saturday is the first day of the week.
  5391. doy: 12, // The week that contains Jan 12th is the first week of the year.
  5392. },
  5393. });
  5394. //! moment.js locale configuration
  5395. hooks.defineLocale('ar-ma', {
  5396. months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
  5397. '_'
  5398. ),
  5399. monthsShort:
  5400. 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
  5401. '_'
  5402. ),
  5403. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5404. weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  5405. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5406. weekdaysParseExact: true,
  5407. longDateFormat: {
  5408. LT: 'HH:mm',
  5409. LTS: 'HH:mm:ss',
  5410. L: 'DD/MM/YYYY',
  5411. LL: 'D MMMM YYYY',
  5412. LLL: 'D MMMM YYYY HH:mm',
  5413. LLLL: 'dddd D MMMM YYYY HH:mm',
  5414. },
  5415. calendar: {
  5416. sameDay: '[اليوم على الساعة] LT',
  5417. nextDay: '[غدا على الساعة] LT',
  5418. nextWeek: 'dddd [على الساعة] LT',
  5419. lastDay: '[أمس على الساعة] LT',
  5420. lastWeek: 'dddd [على الساعة] LT',
  5421. sameElse: 'L',
  5422. },
  5423. relativeTime: {
  5424. future: 'في %s',
  5425. past: 'منذ %s',
  5426. s: 'ثوان',
  5427. ss: '%d ثانية',
  5428. m: 'دقيقة',
  5429. mm: '%d دقائق',
  5430. h: 'ساعة',
  5431. hh: '%d ساعات',
  5432. d: 'يوم',
  5433. dd: '%d أيام',
  5434. M: 'شهر',
  5435. MM: '%d أشهر',
  5436. y: 'سنة',
  5437. yy: '%d سنوات',
  5438. },
  5439. week: {
  5440. dow: 1, // Monday is the first day of the week.
  5441. doy: 4, // The week that contains Jan 4th is the first week of the year.
  5442. },
  5443. });
  5444. //! moment.js locale configuration
  5445. var symbolMap$1 = {
  5446. 1: '١',
  5447. 2: '٢',
  5448. 3: '٣',
  5449. 4: '٤',
  5450. 5: '٥',
  5451. 6: '٦',
  5452. 7: '٧',
  5453. 8: '٨',
  5454. 9: '٩',
  5455. 0: '٠',
  5456. },
  5457. numberMap = {
  5458. '١': '1',
  5459. '٢': '2',
  5460. '٣': '3',
  5461. '٤': '4',
  5462. '٥': '5',
  5463. '٦': '6',
  5464. '٧': '7',
  5465. '٨': '8',
  5466. '٩': '9',
  5467. '٠': '0',
  5468. };
  5469. hooks.defineLocale('ar-ps', {
  5470. months: 'كانون الثاني_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_تشري الأوّل_تشرين الثاني_كانون الأوّل'.split(
  5471. '_'
  5472. ),
  5473. monthsShort:
  5474. 'ك٢_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_ت١_ت٢_ك١'.split('_'),
  5475. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5476. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5477. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5478. weekdaysParseExact: true,
  5479. longDateFormat: {
  5480. LT: 'HH:mm',
  5481. LTS: 'HH:mm:ss',
  5482. L: 'DD/MM/YYYY',
  5483. LL: 'D MMMM YYYY',
  5484. LLL: 'D MMMM YYYY HH:mm',
  5485. LLLL: 'dddd D MMMM YYYY HH:mm',
  5486. },
  5487. meridiemParse: /ص|م/,
  5488. isPM: function (input) {
  5489. return 'م' === input;
  5490. },
  5491. meridiem: function (hour, minute, isLower) {
  5492. if (hour < 12) {
  5493. return 'ص';
  5494. } else {
  5495. return 'م';
  5496. }
  5497. },
  5498. calendar: {
  5499. sameDay: '[اليوم على الساعة] LT',
  5500. nextDay: '[غدا على الساعة] LT',
  5501. nextWeek: 'dddd [على الساعة] LT',
  5502. lastDay: '[أمس على الساعة] LT',
  5503. lastWeek: 'dddd [على الساعة] LT',
  5504. sameElse: 'L',
  5505. },
  5506. relativeTime: {
  5507. future: 'في %s',
  5508. past: 'منذ %s',
  5509. s: 'ثوان',
  5510. ss: '%d ثانية',
  5511. m: 'دقيقة',
  5512. mm: '%d دقائق',
  5513. h: 'ساعة',
  5514. hh: '%d ساعات',
  5515. d: 'يوم',
  5516. dd: '%d أيام',
  5517. M: 'شهر',
  5518. MM: '%d أشهر',
  5519. y: 'سنة',
  5520. yy: '%d سنوات',
  5521. },
  5522. preparse: function (string) {
  5523. return string
  5524. .replace(/[٣٤٥٦٧٨٩٠]/g, function (match) {
  5525. return numberMap[match];
  5526. })
  5527. .split('') // reversed since negative lookbehind not supported everywhere
  5528. .reverse()
  5529. .join('')
  5530. .replace(/[١٢](?![\u062a\u0643])/g, function (match) {
  5531. return numberMap[match];
  5532. })
  5533. .split('')
  5534. .reverse()
  5535. .join('')
  5536. .replace(/،/g, ',');
  5537. },
  5538. postformat: function (string) {
  5539. return string
  5540. .replace(/\d/g, function (match) {
  5541. return symbolMap$1[match];
  5542. })
  5543. .replace(/,/g, '،');
  5544. },
  5545. week: {
  5546. dow: 0, // Sunday is the first day of the week.
  5547. doy: 6, // The week that contains Jan 6th is the first week of the year.
  5548. },
  5549. });
  5550. //! moment.js locale configuration
  5551. var symbolMap$2 = {
  5552. 1: '١',
  5553. 2: '٢',
  5554. 3: '٣',
  5555. 4: '٤',
  5556. 5: '٥',
  5557. 6: '٦',
  5558. 7: '٧',
  5559. 8: '٨',
  5560. 9: '٩',
  5561. 0: '٠',
  5562. },
  5563. numberMap$1 = {
  5564. '١': '1',
  5565. '٢': '2',
  5566. '٣': '3',
  5567. '٤': '4',
  5568. '٥': '5',
  5569. '٦': '6',
  5570. '٧': '7',
  5571. '٨': '8',
  5572. '٩': '9',
  5573. '٠': '0',
  5574. };
  5575. hooks.defineLocale('ar-sa', {
  5576. months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
  5577. '_'
  5578. ),
  5579. monthsShort:
  5580. 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
  5581. '_'
  5582. ),
  5583. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5584. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5585. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5586. weekdaysParseExact: true,
  5587. longDateFormat: {
  5588. LT: 'HH:mm',
  5589. LTS: 'HH:mm:ss',
  5590. L: 'DD/MM/YYYY',
  5591. LL: 'D MMMM YYYY',
  5592. LLL: 'D MMMM YYYY HH:mm',
  5593. LLLL: 'dddd D MMMM YYYY HH:mm',
  5594. },
  5595. meridiemParse: /ص|م/,
  5596. isPM: function (input) {
  5597. return 'م' === input;
  5598. },
  5599. meridiem: function (hour, minute, isLower) {
  5600. if (hour < 12) {
  5601. return 'ص';
  5602. } else {
  5603. return 'م';
  5604. }
  5605. },
  5606. calendar: {
  5607. sameDay: '[اليوم على الساعة] LT',
  5608. nextDay: '[غدا على الساعة] LT',
  5609. nextWeek: 'dddd [على الساعة] LT',
  5610. lastDay: '[أمس على الساعة] LT',
  5611. lastWeek: 'dddd [على الساعة] LT',
  5612. sameElse: 'L',
  5613. },
  5614. relativeTime: {
  5615. future: 'في %s',
  5616. past: 'منذ %s',
  5617. s: 'ثوان',
  5618. ss: '%d ثانية',
  5619. m: 'دقيقة',
  5620. mm: '%d دقائق',
  5621. h: 'ساعة',
  5622. hh: '%d ساعات',
  5623. d: 'يوم',
  5624. dd: '%d أيام',
  5625. M: 'شهر',
  5626. MM: '%d أشهر',
  5627. y: 'سنة',
  5628. yy: '%d سنوات',
  5629. },
  5630. preparse: function (string) {
  5631. return string
  5632. .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  5633. return numberMap$1[match];
  5634. })
  5635. .replace(/،/g, ',');
  5636. },
  5637. postformat: function (string) {
  5638. return string
  5639. .replace(/\d/g, function (match) {
  5640. return symbolMap$2[match];
  5641. })
  5642. .replace(/,/g, '،');
  5643. },
  5644. week: {
  5645. dow: 0, // Sunday is the first day of the week.
  5646. doy: 6, // The week that contains Jan 6th is the first week of the year.
  5647. },
  5648. });
  5649. //! moment.js locale configuration
  5650. hooks.defineLocale('ar-tn', {
  5651. months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
  5652. '_'
  5653. ),
  5654. monthsShort:
  5655. 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
  5656. '_'
  5657. ),
  5658. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5659. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5660. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5661. weekdaysParseExact: true,
  5662. longDateFormat: {
  5663. LT: 'HH:mm',
  5664. LTS: 'HH:mm:ss',
  5665. L: 'DD/MM/YYYY',
  5666. LL: 'D MMMM YYYY',
  5667. LLL: 'D MMMM YYYY HH:mm',
  5668. LLLL: 'dddd D MMMM YYYY HH:mm',
  5669. },
  5670. calendar: {
  5671. sameDay: '[اليوم على الساعة] LT',
  5672. nextDay: '[غدا على الساعة] LT',
  5673. nextWeek: 'dddd [على الساعة] LT',
  5674. lastDay: '[أمس على الساعة] LT',
  5675. lastWeek: 'dddd [على الساعة] LT',
  5676. sameElse: 'L',
  5677. },
  5678. relativeTime: {
  5679. future: 'في %s',
  5680. past: 'منذ %s',
  5681. s: 'ثوان',
  5682. ss: '%d ثانية',
  5683. m: 'دقيقة',
  5684. mm: '%d دقائق',
  5685. h: 'ساعة',
  5686. hh: '%d ساعات',
  5687. d: 'يوم',
  5688. dd: '%d أيام',
  5689. M: 'شهر',
  5690. MM: '%d أشهر',
  5691. y: 'سنة',
  5692. yy: '%d سنوات',
  5693. },
  5694. week: {
  5695. dow: 1, // Monday is the first day of the week.
  5696. doy: 4, // The week that contains Jan 4th is the first week of the year.
  5697. },
  5698. });
  5699. //! moment.js locale configuration
  5700. var symbolMap$3 = {
  5701. 1: '١',
  5702. 2: '٢',
  5703. 3: '٣',
  5704. 4: '٤',
  5705. 5: '٥',
  5706. 6: '٦',
  5707. 7: '٧',
  5708. 8: '٨',
  5709. 9: '٩',
  5710. 0: '٠',
  5711. },
  5712. numberMap$2 = {
  5713. '١': '1',
  5714. '٢': '2',
  5715. '٣': '3',
  5716. '٤': '4',
  5717. '٥': '5',
  5718. '٦': '6',
  5719. '٧': '7',
  5720. '٨': '8',
  5721. '٩': '9',
  5722. '٠': '0',
  5723. },
  5724. pluralForm$2 = function (n) {
  5725. return n === 0
  5726. ? 0
  5727. : n === 1
  5728. ? 1
  5729. : n === 2
  5730. ? 2
  5731. : n % 100 >= 3 && n % 100 <= 10
  5732. ? 3
  5733. : n % 100 >= 11
  5734. ? 4
  5735. : 5;
  5736. },
  5737. plurals$2 = {
  5738. s: [
  5739. 'أقل من ثانية',
  5740. 'ثانية واحدة',
  5741. ['ثانيتان', 'ثانيتين'],
  5742. '%d ثوان',
  5743. '%d ثانية',
  5744. '%d ثانية',
  5745. ],
  5746. m: [
  5747. 'أقل من دقيقة',
  5748. 'دقيقة واحدة',
  5749. ['دقيقتان', 'دقيقتين'],
  5750. '%d دقائق',
  5751. '%d دقيقة',
  5752. '%d دقيقة',
  5753. ],
  5754. h: [
  5755. 'أقل من ساعة',
  5756. 'ساعة واحدة',
  5757. ['ساعتان', 'ساعتين'],
  5758. '%d ساعات',
  5759. '%d ساعة',
  5760. '%d ساعة',
  5761. ],
  5762. d: [
  5763. 'أقل من يوم',
  5764. 'يوم واحد',
  5765. ['يومان', 'يومين'],
  5766. '%d أيام',
  5767. '%d يومًا',
  5768. '%d يوم',
  5769. ],
  5770. M: [
  5771. 'أقل من شهر',
  5772. 'شهر واحد',
  5773. ['شهران', 'شهرين'],
  5774. '%d أشهر',
  5775. '%d شهرا',
  5776. '%d شهر',
  5777. ],
  5778. y: [
  5779. 'أقل من عام',
  5780. 'عام واحد',
  5781. ['عامان', 'عامين'],
  5782. '%d أعوام',
  5783. '%d عامًا',
  5784. '%d عام',
  5785. ],
  5786. },
  5787. pluralize$2 = function (u) {
  5788. return function (number, withoutSuffix, string, isFuture) {
  5789. var f = pluralForm$2(number),
  5790. str = plurals$2[u][pluralForm$2(number)];
  5791. if (f === 2) {
  5792. str = str[withoutSuffix ? 0 : 1];
  5793. }
  5794. return str.replace(/%d/i, number);
  5795. };
  5796. },
  5797. months$3 = [
  5798. 'يناير',
  5799. 'فبراير',
  5800. 'مارس',
  5801. 'أبريل',
  5802. 'مايو',
  5803. 'يونيو',
  5804. 'يوليو',
  5805. 'أغسطس',
  5806. 'سبتمبر',
  5807. 'أكتوبر',
  5808. 'نوفمبر',
  5809. 'ديسمبر',
  5810. ];
  5811. hooks.defineLocale('ar', {
  5812. months: months$3,
  5813. monthsShort: months$3,
  5814. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5815. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5816. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5817. weekdaysParseExact: true,
  5818. longDateFormat: {
  5819. LT: 'HH:mm',
  5820. LTS: 'HH:mm:ss',
  5821. L: 'D/\u200FM/\u200FYYYY',
  5822. LL: 'D MMMM YYYY',
  5823. LLL: 'D MMMM YYYY HH:mm',
  5824. LLLL: 'dddd D MMMM YYYY HH:mm',
  5825. },
  5826. meridiemParse: /ص|م/,
  5827. isPM: function (input) {
  5828. return 'م' === input;
  5829. },
  5830. meridiem: function (hour, minute, isLower) {
  5831. if (hour < 12) {
  5832. return 'ص';
  5833. } else {
  5834. return 'م';
  5835. }
  5836. },
  5837. calendar: {
  5838. sameDay: '[اليوم عند الساعة] LT',
  5839. nextDay: '[غدًا عند الساعة] LT',
  5840. nextWeek: 'dddd [عند الساعة] LT',
  5841. lastDay: '[أمس عند الساعة] LT',
  5842. lastWeek: 'dddd [عند الساعة] LT',
  5843. sameElse: 'L',
  5844. },
  5845. relativeTime: {
  5846. future: 'بعد %s',
  5847. past: 'منذ %s',
  5848. s: pluralize$2('s'),
  5849. ss: pluralize$2('s'),
  5850. m: pluralize$2('m'),
  5851. mm: pluralize$2('m'),
  5852. h: pluralize$2('h'),
  5853. hh: pluralize$2('h'),
  5854. d: pluralize$2('d'),
  5855. dd: pluralize$2('d'),
  5856. M: pluralize$2('M'),
  5857. MM: pluralize$2('M'),
  5858. y: pluralize$2('y'),
  5859. yy: pluralize$2('y'),
  5860. },
  5861. preparse: function (string) {
  5862. return string
  5863. .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  5864. return numberMap$2[match];
  5865. })
  5866. .replace(/،/g, ',');
  5867. },
  5868. postformat: function (string) {
  5869. return string
  5870. .replace(/\d/g, function (match) {
  5871. return symbolMap$3[match];
  5872. })
  5873. .replace(/,/g, '،');
  5874. },
  5875. week: {
  5876. dow: 6, // Saturday is the first day of the week.
  5877. doy: 12, // The week that contains Jan 12th is the first week of the year.
  5878. },
  5879. });
  5880. //! moment.js locale configuration
  5881. var suffixes = {
  5882. 1: '-inci',
  5883. 5: '-inci',
  5884. 8: '-inci',
  5885. 70: '-inci',
  5886. 80: '-inci',
  5887. 2: '-nci',
  5888. 7: '-nci',
  5889. 20: '-nci',
  5890. 50: '-nci',
  5891. 3: '-üncü',
  5892. 4: '-üncü',
  5893. 100: '-üncü',
  5894. 6: '-ncı',
  5895. 9: '-uncu',
  5896. 10: '-uncu',
  5897. 30: '-uncu',
  5898. 60: '-ıncı',
  5899. 90: '-ıncı',
  5900. };
  5901. hooks.defineLocale('az', {
  5902. months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split(
  5903. '_'
  5904. ),
  5905. monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
  5906. weekdays:
  5907. 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split(
  5908. '_'
  5909. ),
  5910. weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
  5911. weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
  5912. weekdaysParseExact: true,
  5913. longDateFormat: {
  5914. LT: 'HH:mm',
  5915. LTS: 'HH:mm:ss',
  5916. L: 'DD.MM.YYYY',
  5917. LL: 'D MMMM YYYY',
  5918. LLL: 'D MMMM YYYY HH:mm',
  5919. LLLL: 'dddd, D MMMM YYYY HH:mm',
  5920. },
  5921. calendar: {
  5922. sameDay: '[bugün saat] LT',
  5923. nextDay: '[sabah saat] LT',
  5924. nextWeek: '[gələn həftə] dddd [saat] LT',
  5925. lastDay: '[dünən] LT',
  5926. lastWeek: '[keçən həftə] dddd [saat] LT',
  5927. sameElse: 'L',
  5928. },
  5929. relativeTime: {
  5930. future: '%s sonra',
  5931. past: '%s əvvəl',
  5932. s: 'bir neçə saniyə',
  5933. ss: '%d saniyə',
  5934. m: 'bir dəqiqə',
  5935. mm: '%d dəqiqə',
  5936. h: 'bir saat',
  5937. hh: '%d saat',
  5938. d: 'bir gün',
  5939. dd: '%d gün',
  5940. M: 'bir ay',
  5941. MM: '%d ay',
  5942. y: 'bir il',
  5943. yy: '%d il',
  5944. },
  5945. meridiemParse: /gecə|səhər|gündüz|axşam/,
  5946. isPM: function (input) {
  5947. return /^(gündüz|axşam)$/.test(input);
  5948. },
  5949. meridiem: function (hour, minute, isLower) {
  5950. if (hour < 4) {
  5951. return 'gecə';
  5952. } else if (hour < 12) {
  5953. return 'səhər';
  5954. } else if (hour < 17) {
  5955. return 'gündüz';
  5956. } else {
  5957. return 'axşam';
  5958. }
  5959. },
  5960. dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
  5961. ordinal: function (number) {
  5962. if (number === 0) {
  5963. // special case for zero
  5964. return number + '-ıncı';
  5965. }
  5966. var a = number % 10,
  5967. b = (number % 100) - a,
  5968. c = number >= 100 ? 100 : null;
  5969. return number + (suffixes[a] || suffixes[b] || suffixes[c]);
  5970. },
  5971. week: {
  5972. dow: 1, // Monday is the first day of the week.
  5973. doy: 7, // The week that contains Jan 7th is the first week of the year.
  5974. },
  5975. });
  5976. //! moment.js locale configuration
  5977. function plural(word, num) {
  5978. var forms = word.split('_');
  5979. return num % 10 === 1 && num % 100 !== 11
  5980. ? forms[0]
  5981. : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
  5982. ? forms[1]
  5983. : forms[2];
  5984. }
  5985. function relativeTimeWithPlural(number, withoutSuffix, key) {
  5986. var format = {
  5987. ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
  5988. mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
  5989. hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
  5990. dd: 'дзень_дні_дзён',
  5991. MM: 'месяц_месяцы_месяцаў',
  5992. yy: 'год_гады_гадоў',
  5993. };
  5994. if (key === 'm') {
  5995. return withoutSuffix ? 'хвіліна' : 'хвіліну';
  5996. } else if (key === 'h') {
  5997. return withoutSuffix ? 'гадзіна' : 'гадзіну';
  5998. } else {
  5999. return number + ' ' + plural(format[key], +number);
  6000. }
  6001. }
  6002. hooks.defineLocale('be', {
  6003. months: {
  6004. format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split(
  6005. '_'
  6006. ),
  6007. standalone:
  6008. 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split(
  6009. '_'
  6010. ),
  6011. },
  6012. monthsShort:
  6013. 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
  6014. weekdays: {
  6015. format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split(
  6016. '_'
  6017. ),
  6018. standalone:
  6019. 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split(
  6020. '_'
  6021. ),
  6022. isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/,
  6023. },
  6024. weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  6025. weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  6026. longDateFormat: {
  6027. LT: 'HH:mm',
  6028. LTS: 'HH:mm:ss',
  6029. L: 'DD.MM.YYYY',
  6030. LL: 'D MMMM YYYY г.',
  6031. LLL: 'D MMMM YYYY г., HH:mm',
  6032. LLLL: 'dddd, D MMMM YYYY г., HH:mm',
  6033. },
  6034. calendar: {
  6035. sameDay: '[Сёння ў] LT',
  6036. nextDay: '[Заўтра ў] LT',
  6037. lastDay: '[Учора ў] LT',
  6038. nextWeek: function () {
  6039. return '[У] dddd [ў] LT';
  6040. },
  6041. lastWeek: function () {
  6042. switch (this.day()) {
  6043. case 0:
  6044. case 3:
  6045. case 5:
  6046. case 6:
  6047. return '[У мінулую] dddd [ў] LT';
  6048. case 1:
  6049. case 2:
  6050. case 4:
  6051. return '[У мінулы] dddd [ў] LT';
  6052. }
  6053. },
  6054. sameElse: 'L',
  6055. },
  6056. relativeTime: {
  6057. future: 'праз %s',
  6058. past: '%s таму',
  6059. s: 'некалькі секунд',
  6060. m: relativeTimeWithPlural,
  6061. mm: relativeTimeWithPlural,
  6062. h: relativeTimeWithPlural,
  6063. hh: relativeTimeWithPlural,
  6064. d: 'дзень',
  6065. dd: relativeTimeWithPlural,
  6066. M: 'месяц',
  6067. MM: relativeTimeWithPlural,
  6068. y: 'год',
  6069. yy: relativeTimeWithPlural,
  6070. },
  6071. meridiemParse: /ночы|раніцы|дня|вечара/,
  6072. isPM: function (input) {
  6073. return /^(дня|вечара)$/.test(input);
  6074. },
  6075. meridiem: function (hour, minute, isLower) {
  6076. if (hour < 4) {
  6077. return 'ночы';
  6078. } else if (hour < 12) {
  6079. return 'раніцы';
  6080. } else if (hour < 17) {
  6081. return 'дня';
  6082. } else {
  6083. return 'вечара';
  6084. }
  6085. },
  6086. dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/,
  6087. ordinal: function (number, period) {
  6088. switch (period) {
  6089. case 'M':
  6090. case 'd':
  6091. case 'DDD':
  6092. case 'w':
  6093. case 'W':
  6094. return (number % 10 === 2 || number % 10 === 3) &&
  6095. number % 100 !== 12 &&
  6096. number % 100 !== 13
  6097. ? number + '-і'
  6098. : number + '-ы';
  6099. case 'D':
  6100. return number + '-га';
  6101. default:
  6102. return number;
  6103. }
  6104. },
  6105. week: {
  6106. dow: 1, // Monday is the first day of the week.
  6107. doy: 7, // The week that contains Jan 7th is the first week of the year.
  6108. },
  6109. });
  6110. //! moment.js locale configuration
  6111. hooks.defineLocale('bg', {
  6112. months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split(
  6113. '_'
  6114. ),
  6115. monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
  6116. weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split(
  6117. '_'
  6118. ),
  6119. weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
  6120. weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  6121. longDateFormat: {
  6122. LT: 'H:mm',
  6123. LTS: 'H:mm:ss',
  6124. L: 'D.MM.YYYY',
  6125. LL: 'D MMMM YYYY',
  6126. LLL: 'D MMMM YYYY H:mm',
  6127. LLLL: 'dddd, D MMMM YYYY H:mm',
  6128. },
  6129. calendar: {
  6130. sameDay: '[Днес в] LT',
  6131. nextDay: '[Утре в] LT',
  6132. nextWeek: 'dddd [в] LT',
  6133. lastDay: '[Вчера в] LT',
  6134. lastWeek: function () {
  6135. switch (this.day()) {
  6136. case 0:
  6137. case 3:
  6138. case 6:
  6139. return '[Миналата] dddd [в] LT';
  6140. case 1:
  6141. case 2:
  6142. case 4:
  6143. case 5:
  6144. return '[Миналия] dddd [в] LT';
  6145. }
  6146. },
  6147. sameElse: 'L',
  6148. },
  6149. relativeTime: {
  6150. future: 'след %s',
  6151. past: 'преди %s',
  6152. s: 'няколко секунди',
  6153. ss: '%d секунди',
  6154. m: 'минута',
  6155. mm: '%d минути',
  6156. h: 'час',
  6157. hh: '%d часа',
  6158. d: 'ден',
  6159. dd: '%d дена',
  6160. w: 'седмица',
  6161. ww: '%d седмици',
  6162. M: 'месец',
  6163. MM: '%d месеца',
  6164. y: 'година',
  6165. yy: '%d години',
  6166. },
  6167. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  6168. ordinal: function (number) {
  6169. var lastDigit = number % 10,
  6170. last2Digits = number % 100;
  6171. if (number === 0) {
  6172. return number + '-ев';
  6173. } else if (last2Digits === 0) {
  6174. return number + '-ен';
  6175. } else if (last2Digits > 10 && last2Digits < 20) {
  6176. return number + '-ти';
  6177. } else if (lastDigit === 1) {
  6178. return number + '-ви';
  6179. } else if (lastDigit === 2) {
  6180. return number + '-ри';
  6181. } else if (lastDigit === 7 || lastDigit === 8) {
  6182. return number + '-ми';
  6183. } else {
  6184. return number + '-ти';
  6185. }
  6186. },
  6187. week: {
  6188. dow: 1, // Monday is the first day of the week.
  6189. doy: 7, // The week that contains Jan 7th is the first week of the year.
  6190. },
  6191. });
  6192. //! moment.js locale configuration
  6193. hooks.defineLocale('bm', {
  6194. months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split(
  6195. '_'
  6196. ),
  6197. monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
  6198. weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
  6199. weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
  6200. weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
  6201. longDateFormat: {
  6202. LT: 'HH:mm',
  6203. LTS: 'HH:mm:ss',
  6204. L: 'DD/MM/YYYY',
  6205. LL: 'MMMM [tile] D [san] YYYY',
  6206. LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
  6207. LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
  6208. },
  6209. calendar: {
  6210. sameDay: '[Bi lɛrɛ] LT',
  6211. nextDay: '[Sini lɛrɛ] LT',
  6212. nextWeek: 'dddd [don lɛrɛ] LT',
  6213. lastDay: '[Kunu lɛrɛ] LT',
  6214. lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT',
  6215. sameElse: 'L',
  6216. },
  6217. relativeTime: {
  6218. future: '%s kɔnɔ',
  6219. past: 'a bɛ %s bɔ',
  6220. s: 'sanga dama dama',
  6221. ss: 'sekondi %d',
  6222. m: 'miniti kelen',
  6223. mm: 'miniti %d',
  6224. h: 'lɛrɛ kelen',
  6225. hh: 'lɛrɛ %d',
  6226. d: 'tile kelen',
  6227. dd: 'tile %d',
  6228. M: 'kalo kelen',
  6229. MM: 'kalo %d',
  6230. y: 'san kelen',
  6231. yy: 'san %d',
  6232. },
  6233. week: {
  6234. dow: 1, // Monday is the first day of the week.
  6235. doy: 4, // The week that contains Jan 4th is the first week of the year.
  6236. },
  6237. });
  6238. //! moment.js locale configuration
  6239. var symbolMap$4 = {
  6240. 1: '১',
  6241. 2: '২',
  6242. 3: '৩',
  6243. 4: '৪',
  6244. 5: '৫',
  6245. 6: '৬',
  6246. 7: '৭',
  6247. 8: '৮',
  6248. 9: '৯',
  6249. 0: '০',
  6250. },
  6251. numberMap$3 = {
  6252. '১': '1',
  6253. '২': '2',
  6254. '৩': '3',
  6255. '৪': '4',
  6256. '৫': '5',
  6257. '৬': '6',
  6258. '৭': '7',
  6259. '৮': '8',
  6260. '৯': '9',
  6261. '০': '0',
  6262. };
  6263. hooks.defineLocale('bn-bd', {
  6264. months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(
  6265. '_'
  6266. ),
  6267. monthsShort:
  6268. 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(
  6269. '_'
  6270. ),
  6271. weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(
  6272. '_'
  6273. ),
  6274. weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
  6275. weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
  6276. longDateFormat: {
  6277. LT: 'A h:mm সময়',
  6278. LTS: 'A h:mm:ss সময়',
  6279. L: 'DD/MM/YYYY',
  6280. LL: 'D MMMM YYYY',
  6281. LLL: 'D MMMM YYYY, A h:mm সময়',
  6282. LLLL: 'dddd, D MMMM YYYY, A h:mm সময়',
  6283. },
  6284. calendar: {
  6285. sameDay: '[আজ] LT',
  6286. nextDay: '[আগামীকাল] LT',
  6287. nextWeek: 'dddd, LT',
  6288. lastDay: '[গতকাল] LT',
  6289. lastWeek: '[গত] dddd, LT',
  6290. sameElse: 'L',
  6291. },
  6292. relativeTime: {
  6293. future: '%s পরে',
  6294. past: '%s আগে',
  6295. s: 'কয়েক সেকেন্ড',
  6296. ss: '%d সেকেন্ড',
  6297. m: 'এক মিনিট',
  6298. mm: '%d মিনিট',
  6299. h: 'এক ঘন্টা',
  6300. hh: '%d ঘন্টা',
  6301. d: 'এক দিন',
  6302. dd: '%d দিন',
  6303. M: 'এক মাস',
  6304. MM: '%d মাস',
  6305. y: 'এক বছর',
  6306. yy: '%d বছর',
  6307. },
  6308. preparse: function (string) {
  6309. return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
  6310. return numberMap$3[match];
  6311. });
  6312. },
  6313. postformat: function (string) {
  6314. return string.replace(/\d/g, function (match) {
  6315. return symbolMap$4[match];
  6316. });
  6317. },
  6318. meridiemParse: /রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,
  6319. meridiemHour: function (hour, meridiem) {
  6320. if (hour === 12) {
  6321. hour = 0;
  6322. }
  6323. if (meridiem === 'রাত') {
  6324. return hour < 4 ? hour : hour + 12;
  6325. } else if (meridiem === 'ভোর') {
  6326. return hour;
  6327. } else if (meridiem === 'সকাল') {
  6328. return hour;
  6329. } else if (meridiem === 'দুপুর') {
  6330. return hour >= 3 ? hour : hour + 12;
  6331. } else if (meridiem === 'বিকাল') {
  6332. return hour + 12;
  6333. } else if (meridiem === 'সন্ধ্যা') {
  6334. return hour + 12;
  6335. }
  6336. },
  6337. meridiem: function (hour, minute, isLower) {
  6338. if (hour < 4) {
  6339. return 'রাত';
  6340. } else if (hour < 6) {
  6341. return 'ভোর';
  6342. } else if (hour < 12) {
  6343. return 'সকাল';
  6344. } else if (hour < 15) {
  6345. return 'দুপুর';
  6346. } else if (hour < 18) {
  6347. return 'বিকাল';
  6348. } else if (hour < 20) {
  6349. return 'সন্ধ্যা';
  6350. } else {
  6351. return 'রাত';
  6352. }
  6353. },
  6354. week: {
  6355. dow: 0, // Sunday is the first day of the week.
  6356. doy: 6, // The week that contains Jan 6th is the first week of the year.
  6357. },
  6358. });
  6359. //! moment.js locale configuration
  6360. var symbolMap$5 = {
  6361. 1: '১',
  6362. 2: '২',
  6363. 3: '৩',
  6364. 4: '৪',
  6365. 5: '৫',
  6366. 6: '৬',
  6367. 7: '৭',
  6368. 8: '৮',
  6369. 9: '৯',
  6370. 0: '০',
  6371. },
  6372. numberMap$4 = {
  6373. '১': '1',
  6374. '২': '2',
  6375. '৩': '3',
  6376. '৪': '4',
  6377. '৫': '5',
  6378. '৬': '6',
  6379. '৭': '7',
  6380. '৮': '8',
  6381. '৯': '9',
  6382. '০': '0',
  6383. };
  6384. hooks.defineLocale('bn', {
  6385. months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(
  6386. '_'
  6387. ),
  6388. monthsShort:
  6389. 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(
  6390. '_'
  6391. ),
  6392. weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(
  6393. '_'
  6394. ),
  6395. weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
  6396. weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
  6397. longDateFormat: {
  6398. LT: 'A h:mm সময়',
  6399. LTS: 'A h:mm:ss সময়',
  6400. L: 'DD/MM/YYYY',
  6401. LL: 'D MMMM YYYY',
  6402. LLL: 'D MMMM YYYY, A h:mm সময়',
  6403. LLLL: 'dddd, D MMMM YYYY, A h:mm সময়',
  6404. },
  6405. calendar: {
  6406. sameDay: '[আজ] LT',
  6407. nextDay: '[আগামীকাল] LT',
  6408. nextWeek: 'dddd, LT',
  6409. lastDay: '[গতকাল] LT',
  6410. lastWeek: '[গত] dddd, LT',
  6411. sameElse: 'L',
  6412. },
  6413. relativeTime: {
  6414. future: '%s পরে',
  6415. past: '%s আগে',
  6416. s: 'কয়েক সেকেন্ড',
  6417. ss: '%d সেকেন্ড',
  6418. m: 'এক মিনিট',
  6419. mm: '%d মিনিট',
  6420. h: 'এক ঘন্টা',
  6421. hh: '%d ঘন্টা',
  6422. d: 'এক দিন',
  6423. dd: '%d দিন',
  6424. M: 'এক মাস',
  6425. MM: '%d মাস',
  6426. y: 'এক বছর',
  6427. yy: '%d বছর',
  6428. },
  6429. preparse: function (string) {
  6430. return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
  6431. return numberMap$4[match];
  6432. });
  6433. },
  6434. postformat: function (string) {
  6435. return string.replace(/\d/g, function (match) {
  6436. return symbolMap$5[match];
  6437. });
  6438. },
  6439. meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
  6440. meridiemHour: function (hour, meridiem) {
  6441. if (hour === 12) {
  6442. hour = 0;
  6443. }
  6444. if (
  6445. (meridiem === 'রাত' && hour >= 4) ||
  6446. (meridiem === 'দুপুর' && hour < 5) ||
  6447. meridiem === 'বিকাল'
  6448. ) {
  6449. return hour + 12;
  6450. } else {
  6451. return hour;
  6452. }
  6453. },
  6454. meridiem: function (hour, minute, isLower) {
  6455. if (hour < 4) {
  6456. return 'রাত';
  6457. } else if (hour < 10) {
  6458. return 'সকাল';
  6459. } else if (hour < 17) {
  6460. return 'দুপুর';
  6461. } else if (hour < 20) {
  6462. return 'বিকাল';
  6463. } else {
  6464. return 'রাত';
  6465. }
  6466. },
  6467. week: {
  6468. dow: 0, // Sunday is the first day of the week.
  6469. doy: 6, // The week that contains Jan 6th is the first week of the year.
  6470. },
  6471. });
  6472. //! moment.js locale configuration
  6473. var symbolMap$6 = {
  6474. 1: '༡',
  6475. 2: '༢',
  6476. 3: '༣',
  6477. 4: '༤',
  6478. 5: '༥',
  6479. 6: '༦',
  6480. 7: '༧',
  6481. 8: '༨',
  6482. 9: '༩',
  6483. 0: '༠',
  6484. },
  6485. numberMap$5 = {
  6486. '༡': '1',
  6487. '༢': '2',
  6488. '༣': '3',
  6489. '༤': '4',
  6490. '༥': '5',
  6491. '༦': '6',
  6492. '༧': '7',
  6493. '༨': '8',
  6494. '༩': '9',
  6495. '༠': '0',
  6496. };
  6497. hooks.defineLocale('bo', {
  6498. months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split(
  6499. '_'
  6500. ),
  6501. monthsShort:
  6502. 'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split(
  6503. '_'
  6504. ),
  6505. monthsShortRegex: /^(ཟླ་\d{1,2})/,
  6506. monthsParseExact: true,
  6507. weekdays:
  6508. 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split(
  6509. '_'
  6510. ),
  6511. weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split(
  6512. '_'
  6513. ),
  6514. weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'),
  6515. longDateFormat: {
  6516. LT: 'A h:mm',
  6517. LTS: 'A h:mm:ss',
  6518. L: 'DD/MM/YYYY',
  6519. LL: 'D MMMM YYYY',
  6520. LLL: 'D MMMM YYYY, A h:mm',
  6521. LLLL: 'dddd, D MMMM YYYY, A h:mm',
  6522. },
  6523. calendar: {
  6524. sameDay: '[དི་རིང] LT',
  6525. nextDay: '[སང་ཉིན] LT',
  6526. nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT',
  6527. lastDay: '[ཁ་སང] LT',
  6528. lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
  6529. sameElse: 'L',
  6530. },
  6531. relativeTime: {
  6532. future: '%s ལ་',
  6533. past: '%s སྔན་ལ',
  6534. s: 'ལམ་སང',
  6535. ss: '%d སྐར་ཆ།',
  6536. m: 'སྐར་མ་གཅིག',
  6537. mm: '%d སྐར་མ',
  6538. h: 'ཆུ་ཚོད་གཅིག',
  6539. hh: '%d ཆུ་ཚོད',
  6540. d: 'ཉིན་གཅིག',
  6541. dd: '%d ཉིན་',
  6542. M: 'ཟླ་བ་གཅིག',
  6543. MM: '%d ཟླ་བ',
  6544. y: 'ལོ་གཅིག',
  6545. yy: '%d ལོ',
  6546. },
  6547. preparse: function (string) {
  6548. return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
  6549. return numberMap$5[match];
  6550. });
  6551. },
  6552. postformat: function (string) {
  6553. return string.replace(/\d/g, function (match) {
  6554. return symbolMap$6[match];
  6555. });
  6556. },
  6557. meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
  6558. meridiemHour: function (hour, meridiem) {
  6559. if (hour === 12) {
  6560. hour = 0;
  6561. }
  6562. if (
  6563. (meridiem === 'མཚན་མོ' && hour >= 4) ||
  6564. (meridiem === 'ཉིན་གུང' && hour < 5) ||
  6565. meridiem === 'དགོང་དག'
  6566. ) {
  6567. return hour + 12;
  6568. } else {
  6569. return hour;
  6570. }
  6571. },
  6572. meridiem: function (hour, minute, isLower) {
  6573. if (hour < 4) {
  6574. return 'མཚན་མོ';
  6575. } else if (hour < 10) {
  6576. return 'ཞོགས་ཀས';
  6577. } else if (hour < 17) {
  6578. return 'ཉིན་གུང';
  6579. } else if (hour < 20) {
  6580. return 'དགོང་དག';
  6581. } else {
  6582. return 'མཚན་མོ';
  6583. }
  6584. },
  6585. week: {
  6586. dow: 0, // Sunday is the first day of the week.
  6587. doy: 6, // The week that contains Jan 6th is the first week of the year.
  6588. },
  6589. });
  6590. //! moment.js locale configuration
  6591. function relativeTimeWithMutation(number, withoutSuffix, key) {
  6592. var format = {
  6593. mm: 'munutenn',
  6594. MM: 'miz',
  6595. dd: 'devezh',
  6596. };
  6597. return number + ' ' + mutation(format[key], number);
  6598. }
  6599. function specialMutationForYears(number) {
  6600. switch (lastNumber(number)) {
  6601. case 1:
  6602. case 3:
  6603. case 4:
  6604. case 5:
  6605. case 9:
  6606. return number + ' bloaz';
  6607. default:
  6608. return number + ' vloaz';
  6609. }
  6610. }
  6611. function lastNumber(number) {
  6612. if (number > 9) {
  6613. return lastNumber(number % 10);
  6614. }
  6615. return number;
  6616. }
  6617. function mutation(text, number) {
  6618. if (number === 2) {
  6619. return softMutation(text);
  6620. }
  6621. return text;
  6622. }
  6623. function softMutation(text) {
  6624. var mutationTable = {
  6625. m: 'v',
  6626. b: 'v',
  6627. d: 'z',
  6628. };
  6629. if (mutationTable[text.charAt(0)] === undefined) {
  6630. return text;
  6631. }
  6632. return mutationTable[text.charAt(0)] + text.substring(1);
  6633. }
  6634. var monthsParse = [
  6635. /^gen/i,
  6636. /^c[ʼ\']hwe/i,
  6637. /^meu/i,
  6638. /^ebr/i,
  6639. /^mae/i,
  6640. /^(mez|eve)/i,
  6641. /^gou/i,
  6642. /^eos/i,
  6643. /^gwe/i,
  6644. /^her/i,
  6645. /^du/i,
  6646. /^ker/i,
  6647. ],
  6648. monthsRegex$1 =
  6649. /^(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,
  6650. monthsStrictRegex =
  6651. /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,
  6652. monthsShortStrictRegex =
  6653. /^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
  6654. fullWeekdaysParse = [
  6655. /^sul/i,
  6656. /^lun/i,
  6657. /^meurzh/i,
  6658. /^merc[ʼ\']her/i,
  6659. /^yaou/i,
  6660. /^gwener/i,
  6661. /^sadorn/i,
  6662. ],
  6663. shortWeekdaysParse = [
  6664. /^Sul/i,
  6665. /^Lun/i,
  6666. /^Meu/i,
  6667. /^Mer/i,
  6668. /^Yao/i,
  6669. /^Gwe/i,
  6670. /^Sad/i,
  6671. ],
  6672. minWeekdaysParse = [
  6673. /^Su/i,
  6674. /^Lu/i,
  6675. /^Me([^r]|$)/i,
  6676. /^Mer/i,
  6677. /^Ya/i,
  6678. /^Gw/i,
  6679. /^Sa/i,
  6680. ];
  6681. hooks.defineLocale('br', {
  6682. months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split(
  6683. '_'
  6684. ),
  6685. monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
  6686. weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'),
  6687. weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
  6688. weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
  6689. weekdaysParse: minWeekdaysParse,
  6690. fullWeekdaysParse: fullWeekdaysParse,
  6691. shortWeekdaysParse: shortWeekdaysParse,
  6692. minWeekdaysParse: minWeekdaysParse,
  6693. monthsRegex: monthsRegex$1,
  6694. monthsShortRegex: monthsRegex$1,
  6695. monthsStrictRegex: monthsStrictRegex,
  6696. monthsShortStrictRegex: monthsShortStrictRegex,
  6697. monthsParse: monthsParse,
  6698. longMonthsParse: monthsParse,
  6699. shortMonthsParse: monthsParse,
  6700. longDateFormat: {
  6701. LT: 'HH:mm',
  6702. LTS: 'HH:mm:ss',
  6703. L: 'DD/MM/YYYY',
  6704. LL: 'D [a viz] MMMM YYYY',
  6705. LLL: 'D [a viz] MMMM YYYY HH:mm',
  6706. LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm',
  6707. },
  6708. calendar: {
  6709. sameDay: '[Hiziv da] LT',
  6710. nextDay: '[Warcʼhoazh da] LT',
  6711. nextWeek: 'dddd [da] LT',
  6712. lastDay: '[Decʼh da] LT',
  6713. lastWeek: 'dddd [paset da] LT',
  6714. sameElse: 'L',
  6715. },
  6716. relativeTime: {
  6717. future: 'a-benn %s',
  6718. past: '%s ʼzo',
  6719. s: 'un nebeud segondennoù',
  6720. ss: '%d eilenn',
  6721. m: 'ur vunutenn',
  6722. mm: relativeTimeWithMutation,
  6723. h: 'un eur',
  6724. hh: '%d eur',
  6725. d: 'un devezh',
  6726. dd: relativeTimeWithMutation,
  6727. M: 'ur miz',
  6728. MM: relativeTimeWithMutation,
  6729. y: 'ur bloaz',
  6730. yy: specialMutationForYears,
  6731. },
  6732. dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
  6733. ordinal: function (number) {
  6734. var output = number === 1 ? 'añ' : 'vet';
  6735. return number + output;
  6736. },
  6737. week: {
  6738. dow: 1, // Monday is the first day of the week.
  6739. doy: 4, // The week that contains Jan 4th is the first week of the year.
  6740. },
  6741. meridiemParse: /a.m.|g.m./, // goude merenn | a-raok merenn
  6742. isPM: function (token) {
  6743. return token === 'g.m.';
  6744. },
  6745. meridiem: function (hour, minute, isLower) {
  6746. return hour < 12 ? 'a.m.' : 'g.m.';
  6747. },
  6748. });
  6749. //! moment.js locale configuration
  6750. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  6751. switch (key) {
  6752. case 'm':
  6753. return withoutSuffix
  6754. ? 'jedna minuta'
  6755. : isFuture
  6756. ? 'jednu minutu'
  6757. : 'jedne minute';
  6758. }
  6759. }
  6760. function translate(number, withoutSuffix, key) {
  6761. var result = number + ' ';
  6762. switch (key) {
  6763. case 'ss':
  6764. if (number === 1) {
  6765. result += 'sekunda';
  6766. } else if (number === 2 || number === 3 || number === 4) {
  6767. result += 'sekunde';
  6768. } else {
  6769. result += 'sekundi';
  6770. }
  6771. return result;
  6772. case 'mm':
  6773. if (number === 1) {
  6774. result += 'minuta';
  6775. } else if (number === 2 || number === 3 || number === 4) {
  6776. result += 'minute';
  6777. } else {
  6778. result += 'minuta';
  6779. }
  6780. return result;
  6781. case 'h':
  6782. return withoutSuffix ? 'jedan sat' : 'jedan sat';
  6783. case 'hh':
  6784. if (number === 1) {
  6785. result += 'sat';
  6786. } else if (number === 2 || number === 3 || number === 4) {
  6787. result += 'sata';
  6788. } else {
  6789. result += 'sati';
  6790. }
  6791. return result;
  6792. case 'dd':
  6793. if (number === 1) {
  6794. result += 'dan';
  6795. } else {
  6796. result += 'dana';
  6797. }
  6798. return result;
  6799. case 'MM':
  6800. if (number === 1) {
  6801. result += 'mjesec';
  6802. } else if (number === 2 || number === 3 || number === 4) {
  6803. result += 'mjeseca';
  6804. } else {
  6805. result += 'mjeseci';
  6806. }
  6807. return result;
  6808. case 'yy':
  6809. if (number === 1) {
  6810. result += 'godina';
  6811. } else if (number === 2 || number === 3 || number === 4) {
  6812. result += 'godine';
  6813. } else {
  6814. result += 'godina';
  6815. }
  6816. return result;
  6817. }
  6818. }
  6819. hooks.defineLocale('bs', {
  6820. months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split(
  6821. '_'
  6822. ),
  6823. monthsShort:
  6824. 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split(
  6825. '_'
  6826. ),
  6827. monthsParseExact: true,
  6828. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
  6829. '_'
  6830. ),
  6831. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  6832. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  6833. weekdaysParseExact: true,
  6834. longDateFormat: {
  6835. LT: 'H:mm',
  6836. LTS: 'H:mm:ss',
  6837. L: 'DD.MM.YYYY',
  6838. LL: 'D. MMMM YYYY',
  6839. LLL: 'D. MMMM YYYY H:mm',
  6840. LLLL: 'dddd, D. MMMM YYYY H:mm',
  6841. },
  6842. calendar: {
  6843. sameDay: '[danas u] LT',
  6844. nextDay: '[sutra u] LT',
  6845. nextWeek: function () {
  6846. switch (this.day()) {
  6847. case 0:
  6848. return '[u] [nedjelju] [u] LT';
  6849. case 3:
  6850. return '[u] [srijedu] [u] LT';
  6851. case 6:
  6852. return '[u] [subotu] [u] LT';
  6853. case 1:
  6854. case 2:
  6855. case 4:
  6856. case 5:
  6857. return '[u] dddd [u] LT';
  6858. }
  6859. },
  6860. lastDay: '[jučer u] LT',
  6861. lastWeek: function () {
  6862. switch (this.day()) {
  6863. case 0:
  6864. case 3:
  6865. return '[prošlu] dddd [u] LT';
  6866. case 6:
  6867. return '[prošle] [subote] [u] LT';
  6868. case 1:
  6869. case 2:
  6870. case 4:
  6871. case 5:
  6872. return '[prošli] dddd [u] LT';
  6873. }
  6874. },
  6875. sameElse: 'L',
  6876. },
  6877. relativeTime: {
  6878. future: 'za %s',
  6879. past: 'prije %s',
  6880. s: 'par sekundi',
  6881. ss: translate,
  6882. m: processRelativeTime,
  6883. mm: translate,
  6884. h: translate,
  6885. hh: translate,
  6886. d: 'dan',
  6887. dd: translate,
  6888. M: 'mjesec',
  6889. MM: translate,
  6890. y: 'godinu',
  6891. yy: translate,
  6892. },
  6893. dayOfMonthOrdinalParse: /\d{1,2}\./,
  6894. ordinal: '%d.',
  6895. week: {
  6896. dow: 1, // Monday is the first day of the week.
  6897. doy: 7, // The week that contains Jan 7th is the first week of the year.
  6898. },
  6899. });
  6900. //! moment.js locale configuration
  6901. hooks.defineLocale('ca', {
  6902. months: {
  6903. standalone:
  6904. 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split(
  6905. '_'
  6906. ),
  6907. 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(
  6908. '_'
  6909. ),
  6910. isFormat: /D[oD]?(\s)+MMMM/,
  6911. },
  6912. monthsShort:
  6913. 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split(
  6914. '_'
  6915. ),
  6916. monthsParseExact: true,
  6917. weekdays:
  6918. 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split(
  6919. '_'
  6920. ),
  6921. weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
  6922. weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
  6923. weekdaysParseExact: true,
  6924. longDateFormat: {
  6925. LT: 'H:mm',
  6926. LTS: 'H:mm:ss',
  6927. L: 'DD/MM/YYYY',
  6928. LL: 'D MMMM [de] YYYY',
  6929. ll: 'D MMM YYYY',
  6930. LLL: 'D MMMM [de] YYYY [a les] H:mm',
  6931. lll: 'D MMM YYYY, H:mm',
  6932. LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',
  6933. llll: 'ddd D MMM YYYY, H:mm',
  6934. },
  6935. calendar: {
  6936. sameDay: function () {
  6937. return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  6938. },
  6939. nextDay: function () {
  6940. return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  6941. },
  6942. nextWeek: function () {
  6943. return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  6944. },
  6945. lastDay: function () {
  6946. return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  6947. },
  6948. lastWeek: function () {
  6949. return (
  6950. '[el] dddd [passat a ' +
  6951. (this.hours() !== 1 ? 'les' : 'la') +
  6952. '] LT'
  6953. );
  6954. },
  6955. sameElse: 'L',
  6956. },
  6957. relativeTime: {
  6958. future: "d'aquí %s",
  6959. past: 'fa %s',
  6960. s: 'uns segons',
  6961. ss: '%d segons',
  6962. m: 'un minut',
  6963. mm: '%d minuts',
  6964. h: 'una hora',
  6965. hh: '%d hores',
  6966. d: 'un dia',
  6967. dd: '%d dies',
  6968. M: 'un mes',
  6969. MM: '%d mesos',
  6970. y: 'un any',
  6971. yy: '%d anys',
  6972. },
  6973. dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
  6974. ordinal: function (number, period) {
  6975. var output =
  6976. number === 1
  6977. ? 'r'
  6978. : number === 2
  6979. ? 'n'
  6980. : number === 3
  6981. ? 'r'
  6982. : number === 4
  6983. ? 't'
  6984. : 'è';
  6985. if (period === 'w' || period === 'W') {
  6986. output = 'a';
  6987. }
  6988. return number + output;
  6989. },
  6990. week: {
  6991. dow: 1, // Monday is the first day of the week.
  6992. doy: 4, // The week that contains Jan 4th is the first week of the year.
  6993. },
  6994. });
  6995. //! moment.js locale configuration
  6996. var months$4 = {
  6997. standalone:
  6998. 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split(
  6999. '_'
  7000. ),
  7001. format: 'ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince'.split(
  7002. '_'
  7003. ),
  7004. isFormat: /DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/,
  7005. },
  7006. monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),
  7007. monthsParse$1 = [
  7008. /^led/i,
  7009. /^úno/i,
  7010. /^bře/i,
  7011. /^dub/i,
  7012. /^kvě/i,
  7013. /^(čvn|červen$|června)/i,
  7014. /^(čvc|červenec|července)/i,
  7015. /^srp/i,
  7016. /^zář/i,
  7017. /^říj/i,
  7018. /^lis/i,
  7019. /^pro/i,
  7020. ],
  7021. // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
  7022. // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
  7023. monthsRegex$2 =
  7024. /^(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;
  7025. function plural$1(n) {
  7026. return n > 1 && n < 5 && ~~(n / 10) !== 1;
  7027. }
  7028. function translate$1(number, withoutSuffix, key, isFuture) {
  7029. var result = number + ' ';
  7030. switch (key) {
  7031. case 's': // a few seconds / in a few seconds / a few seconds ago
  7032. return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami';
  7033. case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
  7034. if (withoutSuffix || isFuture) {
  7035. return result + (plural$1(number) ? 'sekundy' : 'sekund');
  7036. } else {
  7037. return result + 'sekundami';
  7038. }
  7039. case 'm': // a minute / in a minute / a minute ago
  7040. return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou';
  7041. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  7042. if (withoutSuffix || isFuture) {
  7043. return result + (plural$1(number) ? 'minuty' : 'minut');
  7044. } else {
  7045. return result + 'minutami';
  7046. }
  7047. case 'h': // an hour / in an hour / an hour ago
  7048. return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
  7049. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  7050. if (withoutSuffix || isFuture) {
  7051. return result + (plural$1(number) ? 'hodiny' : 'hodin');
  7052. } else {
  7053. return result + 'hodinami';
  7054. }
  7055. case 'd': // a day / in a day / a day ago
  7056. return withoutSuffix || isFuture ? 'den' : 'dnem';
  7057. case 'dd': // 9 days / in 9 days / 9 days ago
  7058. if (withoutSuffix || isFuture) {
  7059. return result + (plural$1(number) ? 'dny' : 'dní');
  7060. } else {
  7061. return result + 'dny';
  7062. }
  7063. case 'M': // a month / in a month / a month ago
  7064. return withoutSuffix || isFuture ? 'měsíc' : 'měsícem';
  7065. case 'MM': // 9 months / in 9 months / 9 months ago
  7066. if (withoutSuffix || isFuture) {
  7067. return result + (plural$1(number) ? 'měsíce' : 'měsíců');
  7068. } else {
  7069. return result + 'měsíci';
  7070. }
  7071. case 'y': // a year / in a year / a year ago
  7072. return withoutSuffix || isFuture ? 'rok' : 'rokem';
  7073. case 'yy': // 9 years / in 9 years / 9 years ago
  7074. if (withoutSuffix || isFuture) {
  7075. return result + (plural$1(number) ? 'roky' : 'let');
  7076. } else {
  7077. return result + 'lety';
  7078. }
  7079. }
  7080. }
  7081. hooks.defineLocale('cs', {
  7082. months: months$4,
  7083. monthsShort: monthsShort,
  7084. monthsRegex: monthsRegex$2,
  7085. monthsShortRegex: monthsRegex$2,
  7086. // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
  7087. // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
  7088. monthsStrictRegex:
  7089. /^(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,
  7090. monthsShortStrictRegex:
  7091. /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,
  7092. monthsParse: monthsParse$1,
  7093. longMonthsParse: monthsParse$1,
  7094. shortMonthsParse: monthsParse$1,
  7095. weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
  7096. weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'),
  7097. weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'),
  7098. longDateFormat: {
  7099. LT: 'H:mm',
  7100. LTS: 'H:mm:ss',
  7101. L: 'DD.MM.YYYY',
  7102. LL: 'D. MMMM YYYY',
  7103. LLL: 'D. MMMM YYYY H:mm',
  7104. LLLL: 'dddd D. MMMM YYYY H:mm',
  7105. l: 'D. M. YYYY',
  7106. },
  7107. calendar: {
  7108. sameDay: '[dnes v] LT',
  7109. nextDay: '[zítra v] LT',
  7110. nextWeek: function () {
  7111. switch (this.day()) {
  7112. case 0:
  7113. return '[v neděli v] LT';
  7114. case 1:
  7115. case 2:
  7116. return '[v] dddd [v] LT';
  7117. case 3:
  7118. return '[ve středu v] LT';
  7119. case 4:
  7120. return '[ve čtvrtek v] LT';
  7121. case 5:
  7122. return '[v pátek v] LT';
  7123. case 6:
  7124. return '[v sobotu v] LT';
  7125. }
  7126. },
  7127. lastDay: '[včera v] LT',
  7128. lastWeek: function () {
  7129. switch (this.day()) {
  7130. case 0:
  7131. return '[minulou neděli v] LT';
  7132. case 1:
  7133. case 2:
  7134. return '[minulé] dddd [v] LT';
  7135. case 3:
  7136. return '[minulou středu v] LT';
  7137. case 4:
  7138. case 5:
  7139. return '[minulý] dddd [v] LT';
  7140. case 6:
  7141. return '[minulou sobotu v] LT';
  7142. }
  7143. },
  7144. sameElse: 'L',
  7145. },
  7146. relativeTime: {
  7147. future: 'za %s',
  7148. past: 'před %s',
  7149. s: translate$1,
  7150. ss: translate$1,
  7151. m: translate$1,
  7152. mm: translate$1,
  7153. h: translate$1,
  7154. hh: translate$1,
  7155. d: translate$1,
  7156. dd: translate$1,
  7157. M: translate$1,
  7158. MM: translate$1,
  7159. y: translate$1,
  7160. yy: translate$1,
  7161. },
  7162. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7163. ordinal: '%d.',
  7164. week: {
  7165. dow: 1, // Monday is the first day of the week.
  7166. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7167. },
  7168. });
  7169. //! moment.js locale configuration
  7170. hooks.defineLocale('cv', {
  7171. months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split(
  7172. '_'
  7173. ),
  7174. monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
  7175. weekdays:
  7176. 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split(
  7177. '_'
  7178. ),
  7179. weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
  7180. weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
  7181. longDateFormat: {
  7182. LT: 'HH:mm',
  7183. LTS: 'HH:mm:ss',
  7184. L: 'DD-MM-YYYY',
  7185. LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
  7186. LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
  7187. LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
  7188. },
  7189. calendar: {
  7190. sameDay: '[Паян] LT [сехетре]',
  7191. nextDay: '[Ыран] LT [сехетре]',
  7192. lastDay: '[Ӗнер] LT [сехетре]',
  7193. nextWeek: '[Ҫитес] dddd LT [сехетре]',
  7194. lastWeek: '[Иртнӗ] dddd LT [сехетре]',
  7195. sameElse: 'L',
  7196. },
  7197. relativeTime: {
  7198. future: function (output) {
  7199. var affix = /сехет$/i.exec(output)
  7200. ? 'рен'
  7201. : /ҫул$/i.exec(output)
  7202. ? 'тан'
  7203. : 'ран';
  7204. return output + affix;
  7205. },
  7206. past: '%s каялла',
  7207. s: 'пӗр-ик ҫеккунт',
  7208. ss: '%d ҫеккунт',
  7209. m: 'пӗр минут',
  7210. mm: '%d минут',
  7211. h: 'пӗр сехет',
  7212. hh: '%d сехет',
  7213. d: 'пӗр кун',
  7214. dd: '%d кун',
  7215. M: 'пӗр уйӑх',
  7216. MM: '%d уйӑх',
  7217. y: 'пӗр ҫул',
  7218. yy: '%d ҫул',
  7219. },
  7220. dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
  7221. ordinal: '%d-мӗш',
  7222. week: {
  7223. dow: 1, // Monday is the first day of the week.
  7224. doy: 7, // The week that contains Jan 7th is the first week of the year.
  7225. },
  7226. });
  7227. //! moment.js locale configuration
  7228. hooks.defineLocale('cy', {
  7229. months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split(
  7230. '_'
  7231. ),
  7232. monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split(
  7233. '_'
  7234. ),
  7235. weekdays:
  7236. 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split(
  7237. '_'
  7238. ),
  7239. weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
  7240. weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
  7241. weekdaysParseExact: true,
  7242. // time formats are the same as en-gb
  7243. longDateFormat: {
  7244. LT: 'HH:mm',
  7245. LTS: 'HH:mm:ss',
  7246. L: 'DD/MM/YYYY',
  7247. LL: 'D MMMM YYYY',
  7248. LLL: 'D MMMM YYYY HH:mm',
  7249. LLLL: 'dddd, D MMMM YYYY HH:mm',
  7250. },
  7251. calendar: {
  7252. sameDay: '[Heddiw am] LT',
  7253. nextDay: '[Yfory am] LT',
  7254. nextWeek: 'dddd [am] LT',
  7255. lastDay: '[Ddoe am] LT',
  7256. lastWeek: 'dddd [diwethaf am] LT',
  7257. sameElse: 'L',
  7258. },
  7259. relativeTime: {
  7260. future: 'mewn %s',
  7261. past: '%s yn ôl',
  7262. s: 'ychydig eiliadau',
  7263. ss: '%d eiliad',
  7264. m: 'munud',
  7265. mm: '%d munud',
  7266. h: 'awr',
  7267. hh: '%d awr',
  7268. d: 'diwrnod',
  7269. dd: '%d diwrnod',
  7270. M: 'mis',
  7271. MM: '%d mis',
  7272. y: 'blwyddyn',
  7273. yy: '%d flynedd',
  7274. },
  7275. dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
  7276. // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
  7277. ordinal: function (number) {
  7278. var b = number,
  7279. output = '',
  7280. lookup = [
  7281. '',
  7282. 'af',
  7283. 'il',
  7284. 'ydd',
  7285. 'ydd',
  7286. 'ed',
  7287. 'ed',
  7288. 'ed',
  7289. 'fed',
  7290. 'fed',
  7291. 'fed', // 1af to 10fed
  7292. 'eg',
  7293. 'fed',
  7294. 'eg',
  7295. 'eg',
  7296. 'fed',
  7297. 'eg',
  7298. 'eg',
  7299. 'fed',
  7300. 'eg',
  7301. 'fed', // 11eg to 20fed
  7302. ];
  7303. if (b > 20) {
  7304. if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
  7305. output = 'fed'; // not 30ain, 70ain or 90ain
  7306. } else {
  7307. output = 'ain';
  7308. }
  7309. } else if (b > 0) {
  7310. output = lookup[b];
  7311. }
  7312. return number + output;
  7313. },
  7314. week: {
  7315. dow: 1, // Monday is the first day of the week.
  7316. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7317. },
  7318. });
  7319. //! moment.js locale configuration
  7320. hooks.defineLocale('da', {
  7321. months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split(
  7322. '_'
  7323. ),
  7324. monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  7325. weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  7326. weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'),
  7327. weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
  7328. longDateFormat: {
  7329. LT: 'HH:mm',
  7330. LTS: 'HH:mm:ss',
  7331. L: 'DD.MM.YYYY',
  7332. LL: 'D. MMMM YYYY',
  7333. LLL: 'D. MMMM YYYY HH:mm',
  7334. LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm',
  7335. },
  7336. calendar: {
  7337. sameDay: '[i dag kl.] LT',
  7338. nextDay: '[i morgen kl.] LT',
  7339. nextWeek: 'på dddd [kl.] LT',
  7340. lastDay: '[i går kl.] LT',
  7341. lastWeek: '[i] dddd[s kl.] LT',
  7342. sameElse: 'L',
  7343. },
  7344. relativeTime: {
  7345. future: 'om %s',
  7346. past: '%s siden',
  7347. s: 'få sekunder',
  7348. ss: '%d sekunder',
  7349. m: 'et minut',
  7350. mm: '%d minutter',
  7351. h: 'en time',
  7352. hh: '%d timer',
  7353. d: 'en dag',
  7354. dd: '%d dage',
  7355. M: 'en måned',
  7356. MM: '%d måneder',
  7357. y: 'et år',
  7358. yy: '%d år',
  7359. },
  7360. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7361. ordinal: '%d.',
  7362. week: {
  7363. dow: 1, // Monday is the first day of the week.
  7364. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7365. },
  7366. });
  7367. //! moment.js locale configuration
  7368. function processRelativeTime$1(number, withoutSuffix, key, isFuture) {
  7369. var format = {
  7370. m: ['eine Minute', 'einer Minute'],
  7371. h: ['eine Stunde', 'einer Stunde'],
  7372. d: ['ein Tag', 'einem Tag'],
  7373. dd: [number + ' Tage', number + ' Tagen'],
  7374. w: ['eine Woche', 'einer Woche'],
  7375. M: ['ein Monat', 'einem Monat'],
  7376. MM: [number + ' Monate', number + ' Monaten'],
  7377. y: ['ein Jahr', 'einem Jahr'],
  7378. yy: [number + ' Jahre', number + ' Jahren'],
  7379. };
  7380. return withoutSuffix ? format[key][0] : format[key][1];
  7381. }
  7382. hooks.defineLocale('de-at', {
  7383. months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  7384. '_'
  7385. ),
  7386. monthsShort:
  7387. 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
  7388. monthsParseExact: true,
  7389. weekdays:
  7390. 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
  7391. '_'
  7392. ),
  7393. weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  7394. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  7395. weekdaysParseExact: true,
  7396. longDateFormat: {
  7397. LT: 'HH:mm',
  7398. LTS: 'HH:mm:ss',
  7399. L: 'DD.MM.YYYY',
  7400. LL: 'D. MMMM YYYY',
  7401. LLL: 'D. MMMM YYYY HH:mm',
  7402. LLLL: 'dddd, D. MMMM YYYY HH:mm',
  7403. },
  7404. calendar: {
  7405. sameDay: '[heute um] LT [Uhr]',
  7406. sameElse: 'L',
  7407. nextDay: '[morgen um] LT [Uhr]',
  7408. nextWeek: 'dddd [um] LT [Uhr]',
  7409. lastDay: '[gestern um] LT [Uhr]',
  7410. lastWeek: '[letzten] dddd [um] LT [Uhr]',
  7411. },
  7412. relativeTime: {
  7413. future: 'in %s',
  7414. past: 'vor %s',
  7415. s: 'ein paar Sekunden',
  7416. ss: '%d Sekunden',
  7417. m: processRelativeTime$1,
  7418. mm: '%d Minuten',
  7419. h: processRelativeTime$1,
  7420. hh: '%d Stunden',
  7421. d: processRelativeTime$1,
  7422. dd: processRelativeTime$1,
  7423. w: processRelativeTime$1,
  7424. ww: '%d Wochen',
  7425. M: processRelativeTime$1,
  7426. MM: processRelativeTime$1,
  7427. y: processRelativeTime$1,
  7428. yy: processRelativeTime$1,
  7429. },
  7430. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7431. ordinal: '%d.',
  7432. week: {
  7433. dow: 1, // Monday is the first day of the week.
  7434. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7435. },
  7436. });
  7437. //! moment.js locale configuration
  7438. function processRelativeTime$2(number, withoutSuffix, key, isFuture) {
  7439. var format = {
  7440. m: ['eine Minute', 'einer Minute'],
  7441. h: ['eine Stunde', 'einer Stunde'],
  7442. d: ['ein Tag', 'einem Tag'],
  7443. dd: [number + ' Tage', number + ' Tagen'],
  7444. w: ['eine Woche', 'einer Woche'],
  7445. M: ['ein Monat', 'einem Monat'],
  7446. MM: [number + ' Monate', number + ' Monaten'],
  7447. y: ['ein Jahr', 'einem Jahr'],
  7448. yy: [number + ' Jahre', number + ' Jahren'],
  7449. };
  7450. return withoutSuffix ? format[key][0] : format[key][1];
  7451. }
  7452. hooks.defineLocale('de-ch', {
  7453. months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  7454. '_'
  7455. ),
  7456. monthsShort:
  7457. 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
  7458. monthsParseExact: true,
  7459. weekdays:
  7460. 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
  7461. '_'
  7462. ),
  7463. weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  7464. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  7465. weekdaysParseExact: true,
  7466. longDateFormat: {
  7467. LT: 'HH:mm',
  7468. LTS: 'HH:mm:ss',
  7469. L: 'DD.MM.YYYY',
  7470. LL: 'D. MMMM YYYY',
  7471. LLL: 'D. MMMM YYYY HH:mm',
  7472. LLLL: 'dddd, D. MMMM YYYY HH:mm',
  7473. },
  7474. calendar: {
  7475. sameDay: '[heute um] LT [Uhr]',
  7476. sameElse: 'L',
  7477. nextDay: '[morgen um] LT [Uhr]',
  7478. nextWeek: 'dddd [um] LT [Uhr]',
  7479. lastDay: '[gestern um] LT [Uhr]',
  7480. lastWeek: '[letzten] dddd [um] LT [Uhr]',
  7481. },
  7482. relativeTime: {
  7483. future: 'in %s',
  7484. past: 'vor %s',
  7485. s: 'ein paar Sekunden',
  7486. ss: '%d Sekunden',
  7487. m: processRelativeTime$2,
  7488. mm: '%d Minuten',
  7489. h: processRelativeTime$2,
  7490. hh: '%d Stunden',
  7491. d: processRelativeTime$2,
  7492. dd: processRelativeTime$2,
  7493. w: processRelativeTime$2,
  7494. ww: '%d Wochen',
  7495. M: processRelativeTime$2,
  7496. MM: processRelativeTime$2,
  7497. y: processRelativeTime$2,
  7498. yy: processRelativeTime$2,
  7499. },
  7500. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7501. ordinal: '%d.',
  7502. week: {
  7503. dow: 1, // Monday is the first day of the week.
  7504. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7505. },
  7506. });
  7507. //! moment.js locale configuration
  7508. function processRelativeTime$3(number, withoutSuffix, key, isFuture) {
  7509. var format = {
  7510. m: ['eine Minute', 'einer Minute'],
  7511. h: ['eine Stunde', 'einer Stunde'],
  7512. d: ['ein Tag', 'einem Tag'],
  7513. dd: [number + ' Tage', number + ' Tagen'],
  7514. w: ['eine Woche', 'einer Woche'],
  7515. M: ['ein Monat', 'einem Monat'],
  7516. MM: [number + ' Monate', number + ' Monaten'],
  7517. y: ['ein Jahr', 'einem Jahr'],
  7518. yy: [number + ' Jahre', number + ' Jahren'],
  7519. };
  7520. return withoutSuffix ? format[key][0] : format[key][1];
  7521. }
  7522. hooks.defineLocale('de', {
  7523. months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  7524. '_'
  7525. ),
  7526. monthsShort:
  7527. 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
  7528. monthsParseExact: true,
  7529. weekdays:
  7530. 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
  7531. '_'
  7532. ),
  7533. weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  7534. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  7535. weekdaysParseExact: true,
  7536. longDateFormat: {
  7537. LT: 'HH:mm',
  7538. LTS: 'HH:mm:ss',
  7539. L: 'DD.MM.YYYY',
  7540. LL: 'D. MMMM YYYY',
  7541. LLL: 'D. MMMM YYYY HH:mm',
  7542. LLLL: 'dddd, D. MMMM YYYY HH:mm',
  7543. },
  7544. calendar: {
  7545. sameDay: '[heute um] LT [Uhr]',
  7546. sameElse: 'L',
  7547. nextDay: '[morgen um] LT [Uhr]',
  7548. nextWeek: 'dddd [um] LT [Uhr]',
  7549. lastDay: '[gestern um] LT [Uhr]',
  7550. lastWeek: '[letzten] dddd [um] LT [Uhr]',
  7551. },
  7552. relativeTime: {
  7553. future: 'in %s',
  7554. past: 'vor %s',
  7555. s: 'ein paar Sekunden',
  7556. ss: '%d Sekunden',
  7557. m: processRelativeTime$3,
  7558. mm: '%d Minuten',
  7559. h: processRelativeTime$3,
  7560. hh: '%d Stunden',
  7561. d: processRelativeTime$3,
  7562. dd: processRelativeTime$3,
  7563. w: processRelativeTime$3,
  7564. ww: '%d Wochen',
  7565. M: processRelativeTime$3,
  7566. MM: processRelativeTime$3,
  7567. y: processRelativeTime$3,
  7568. yy: processRelativeTime$3,
  7569. },
  7570. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7571. ordinal: '%d.',
  7572. week: {
  7573. dow: 1, // Monday is the first day of the week.
  7574. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7575. },
  7576. });
  7577. //! moment.js locale configuration
  7578. var months$5 = [
  7579. 'ޖެނުއަރީ',
  7580. 'ފެބްރުއަރީ',
  7581. 'މާރިޗު',
  7582. 'އޭޕްރީލު',
  7583. 'މޭ',
  7584. 'ޖޫން',
  7585. 'ޖުލައި',
  7586. 'އޯގަސްޓު',
  7587. 'ސެޕްޓެމްބަރު',
  7588. 'އޮކްޓޯބަރު',
  7589. 'ނޮވެމްބަރު',
  7590. 'ޑިސެމްބަރު',
  7591. ],
  7592. weekdays = [
  7593. 'އާދިއްތަ',
  7594. 'ހޯމަ',
  7595. 'އަންގާރަ',
  7596. 'ބުދަ',
  7597. 'ބުރާސްފަތި',
  7598. 'ހުކުރު',
  7599. 'ހޮނިހިރު',
  7600. ];
  7601. hooks.defineLocale('dv', {
  7602. months: months$5,
  7603. monthsShort: months$5,
  7604. weekdays: weekdays,
  7605. weekdaysShort: weekdays,
  7606. weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
  7607. longDateFormat: {
  7608. LT: 'HH:mm',
  7609. LTS: 'HH:mm:ss',
  7610. L: 'D/M/YYYY',
  7611. LL: 'D MMMM YYYY',
  7612. LLL: 'D MMMM YYYY HH:mm',
  7613. LLLL: 'dddd D MMMM YYYY HH:mm',
  7614. },
  7615. meridiemParse: /މކ|މފ/,
  7616. isPM: function (input) {
  7617. return 'މފ' === input;
  7618. },
  7619. meridiem: function (hour, minute, isLower) {
  7620. if (hour < 12) {
  7621. return 'މކ';
  7622. } else {
  7623. return 'މފ';
  7624. }
  7625. },
  7626. calendar: {
  7627. sameDay: '[މިއަދު] LT',
  7628. nextDay: '[މާދަމާ] LT',
  7629. nextWeek: 'dddd LT',
  7630. lastDay: '[އިއްޔެ] LT',
  7631. lastWeek: '[ފާއިތުވި] dddd LT',
  7632. sameElse: 'L',
  7633. },
  7634. relativeTime: {
  7635. future: 'ތެރޭގައި %s',
  7636. past: 'ކުރިން %s',
  7637. s: 'ސިކުންތުކޮޅެއް',
  7638. ss: 'd% ސިކުންތު',
  7639. m: 'މިނިޓެއް',
  7640. mm: 'މިނިޓު %d',
  7641. h: 'ގަޑިއިރެއް',
  7642. hh: 'ގަޑިއިރު %d',
  7643. d: 'ދުވަހެއް',
  7644. dd: 'ދުވަސް %d',
  7645. M: 'މަހެއް',
  7646. MM: 'މަސް %d',
  7647. y: 'އަހަރެއް',
  7648. yy: 'އަހަރު %d',
  7649. },
  7650. preparse: function (string) {
  7651. return string.replace(/،/g, ',');
  7652. },
  7653. postformat: function (string) {
  7654. return string.replace(/,/g, '،');
  7655. },
  7656. week: {
  7657. dow: 7, // Sunday is the first day of the week.
  7658. doy: 12, // The week that contains Jan 12th is the first week of the year.
  7659. },
  7660. });
  7661. //! moment.js locale configuration
  7662. function isFunction$1(input) {
  7663. return (
  7664. (typeof Function !== 'undefined' && input instanceof Function) ||
  7665. Object.prototype.toString.call(input) === '[object Function]'
  7666. );
  7667. }
  7668. hooks.defineLocale('el', {
  7669. monthsNominativeEl:
  7670. 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split(
  7671. '_'
  7672. ),
  7673. monthsGenitiveEl:
  7674. 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split(
  7675. '_'
  7676. ),
  7677. months: function (momentToFormat, format) {
  7678. if (!momentToFormat) {
  7679. return this._monthsNominativeEl;
  7680. } else if (
  7681. typeof format === 'string' &&
  7682. /D/.test(format.substring(0, format.indexOf('MMMM')))
  7683. ) {
  7684. // if there is a day number before 'MMMM'
  7685. return this._monthsGenitiveEl[momentToFormat.month()];
  7686. } else {
  7687. return this._monthsNominativeEl[momentToFormat.month()];
  7688. }
  7689. },
  7690. monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
  7691. weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split(
  7692. '_'
  7693. ),
  7694. weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
  7695. weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
  7696. meridiem: function (hours, minutes, isLower) {
  7697. if (hours > 11) {
  7698. return isLower ? 'μμ' : 'ΜΜ';
  7699. } else {
  7700. return isLower ? 'πμ' : 'ΠΜ';
  7701. }
  7702. },
  7703. isPM: function (input) {
  7704. return (input + '').toLowerCase()[0] === 'μ';
  7705. },
  7706. meridiemParse: /[ΠΜ]\.?Μ?\.?/i,
  7707. longDateFormat: {
  7708. LT: 'h:mm A',
  7709. LTS: 'h:mm:ss A',
  7710. L: 'DD/MM/YYYY',
  7711. LL: 'D MMMM YYYY',
  7712. LLL: 'D MMMM YYYY h:mm A',
  7713. LLLL: 'dddd, D MMMM YYYY h:mm A',
  7714. },
  7715. calendarEl: {
  7716. sameDay: '[Σήμερα {}] LT',
  7717. nextDay: '[Αύριο {}] LT',
  7718. nextWeek: 'dddd [{}] LT',
  7719. lastDay: '[Χθες {}] LT',
  7720. lastWeek: function () {
  7721. switch (this.day()) {
  7722. case 6:
  7723. return '[το προηγούμενο] dddd [{}] LT';
  7724. default:
  7725. return '[την προηγούμενη] dddd [{}] LT';
  7726. }
  7727. },
  7728. sameElse: 'L',
  7729. },
  7730. calendar: function (key, mom) {
  7731. var output = this._calendarEl[key],
  7732. hours = mom && mom.hours();
  7733. if (isFunction$1(output)) {
  7734. output = output.apply(mom);
  7735. }
  7736. return output.replace('{}', hours % 12 === 1 ? 'στη' : 'στις');
  7737. },
  7738. relativeTime: {
  7739. future: 'σε %s',
  7740. past: '%s πριν',
  7741. s: 'λίγα δευτερόλεπτα',
  7742. ss: '%d δευτερόλεπτα',
  7743. m: 'ένα λεπτό',
  7744. mm: '%d λεπτά',
  7745. h: 'μία ώρα',
  7746. hh: '%d ώρες',
  7747. d: 'μία μέρα',
  7748. dd: '%d μέρες',
  7749. M: 'ένας μήνας',
  7750. MM: '%d μήνες',
  7751. y: 'ένας χρόνος',
  7752. yy: '%d χρόνια',
  7753. },
  7754. dayOfMonthOrdinalParse: /\d{1,2}η/,
  7755. ordinal: '%dη',
  7756. week: {
  7757. dow: 1, // Monday is the first day of the week.
  7758. doy: 4, // The week that contains Jan 4st is the first week of the year.
  7759. },
  7760. });
  7761. //! moment.js locale configuration
  7762. hooks.defineLocale('en-au', {
  7763. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7764. '_'
  7765. ),
  7766. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7767. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7768. '_'
  7769. ),
  7770. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7771. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7772. longDateFormat: {
  7773. LT: 'h:mm A',
  7774. LTS: 'h:mm:ss A',
  7775. L: 'DD/MM/YYYY',
  7776. LL: 'D MMMM YYYY',
  7777. LLL: 'D MMMM YYYY h:mm A',
  7778. LLLL: 'dddd, D MMMM YYYY h:mm A',
  7779. },
  7780. calendar: {
  7781. sameDay: '[Today at] LT',
  7782. nextDay: '[Tomorrow at] LT',
  7783. nextWeek: 'dddd [at] LT',
  7784. lastDay: '[Yesterday at] LT',
  7785. lastWeek: '[Last] dddd [at] LT',
  7786. sameElse: 'L',
  7787. },
  7788. relativeTime: {
  7789. future: 'in %s',
  7790. past: '%s ago',
  7791. s: 'a few seconds',
  7792. ss: '%d seconds',
  7793. m: 'a minute',
  7794. mm: '%d minutes',
  7795. h: 'an hour',
  7796. hh: '%d hours',
  7797. d: 'a day',
  7798. dd: '%d days',
  7799. M: 'a month',
  7800. MM: '%d months',
  7801. y: 'a year',
  7802. yy: '%d years',
  7803. },
  7804. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7805. ordinal: function (number) {
  7806. var b = number % 10,
  7807. output =
  7808. ~~((number % 100) / 10) === 1
  7809. ? 'th'
  7810. : b === 1
  7811. ? 'st'
  7812. : b === 2
  7813. ? 'nd'
  7814. : b === 3
  7815. ? 'rd'
  7816. : 'th';
  7817. return number + output;
  7818. },
  7819. week: {
  7820. dow: 0, // Sunday is the first day of the week.
  7821. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7822. },
  7823. });
  7824. //! moment.js locale configuration
  7825. hooks.defineLocale('en-ca', {
  7826. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7827. '_'
  7828. ),
  7829. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7830. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7831. '_'
  7832. ),
  7833. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7834. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7835. longDateFormat: {
  7836. LT: 'h:mm A',
  7837. LTS: 'h:mm:ss A',
  7838. L: 'YYYY-MM-DD',
  7839. LL: 'MMMM D, YYYY',
  7840. LLL: 'MMMM D, YYYY h:mm A',
  7841. LLLL: 'dddd, MMMM D, YYYY h:mm A',
  7842. },
  7843. calendar: {
  7844. sameDay: '[Today at] LT',
  7845. nextDay: '[Tomorrow at] LT',
  7846. nextWeek: 'dddd [at] LT',
  7847. lastDay: '[Yesterday at] LT',
  7848. lastWeek: '[Last] dddd [at] LT',
  7849. sameElse: 'L',
  7850. },
  7851. relativeTime: {
  7852. future: 'in %s',
  7853. past: '%s ago',
  7854. s: 'a few seconds',
  7855. ss: '%d seconds',
  7856. m: 'a minute',
  7857. mm: '%d minutes',
  7858. h: 'an hour',
  7859. hh: '%d hours',
  7860. d: 'a day',
  7861. dd: '%d days',
  7862. M: 'a month',
  7863. MM: '%d months',
  7864. y: 'a year',
  7865. yy: '%d years',
  7866. },
  7867. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7868. ordinal: function (number) {
  7869. var b = number % 10,
  7870. output =
  7871. ~~((number % 100) / 10) === 1
  7872. ? 'th'
  7873. : b === 1
  7874. ? 'st'
  7875. : b === 2
  7876. ? 'nd'
  7877. : b === 3
  7878. ? 'rd'
  7879. : 'th';
  7880. return number + output;
  7881. },
  7882. });
  7883. //! moment.js locale configuration
  7884. hooks.defineLocale('en-gb', {
  7885. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7886. '_'
  7887. ),
  7888. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7889. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7890. '_'
  7891. ),
  7892. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7893. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7894. longDateFormat: {
  7895. LT: 'HH:mm',
  7896. LTS: 'HH:mm:ss',
  7897. L: 'DD/MM/YYYY',
  7898. LL: 'D MMMM YYYY',
  7899. LLL: 'D MMMM YYYY HH:mm',
  7900. LLLL: 'dddd, D MMMM YYYY HH:mm',
  7901. },
  7902. calendar: {
  7903. sameDay: '[Today at] LT',
  7904. nextDay: '[Tomorrow at] LT',
  7905. nextWeek: 'dddd [at] LT',
  7906. lastDay: '[Yesterday at] LT',
  7907. lastWeek: '[Last] dddd [at] LT',
  7908. sameElse: 'L',
  7909. },
  7910. relativeTime: {
  7911. future: 'in %s',
  7912. past: '%s ago',
  7913. s: 'a few seconds',
  7914. ss: '%d seconds',
  7915. m: 'a minute',
  7916. mm: '%d minutes',
  7917. h: 'an hour',
  7918. hh: '%d hours',
  7919. d: 'a day',
  7920. dd: '%d days',
  7921. M: 'a month',
  7922. MM: '%d months',
  7923. y: 'a year',
  7924. yy: '%d years',
  7925. },
  7926. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7927. ordinal: function (number) {
  7928. var b = number % 10,
  7929. output =
  7930. ~~((number % 100) / 10) === 1
  7931. ? 'th'
  7932. : b === 1
  7933. ? 'st'
  7934. : b === 2
  7935. ? 'nd'
  7936. : b === 3
  7937. ? 'rd'
  7938. : 'th';
  7939. return number + output;
  7940. },
  7941. week: {
  7942. dow: 1, // Monday is the first day of the week.
  7943. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7944. },
  7945. });
  7946. //! moment.js locale configuration
  7947. hooks.defineLocale('en-ie', {
  7948. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7949. '_'
  7950. ),
  7951. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7952. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7953. '_'
  7954. ),
  7955. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7956. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7957. longDateFormat: {
  7958. LT: 'HH:mm',
  7959. LTS: 'HH:mm:ss',
  7960. L: 'DD/MM/YYYY',
  7961. LL: 'D MMMM YYYY',
  7962. LLL: 'D MMMM YYYY HH:mm',
  7963. LLLL: 'dddd D MMMM YYYY HH:mm',
  7964. },
  7965. calendar: {
  7966. sameDay: '[Today at] LT',
  7967. nextDay: '[Tomorrow at] LT',
  7968. nextWeek: 'dddd [at] LT',
  7969. lastDay: '[Yesterday at] LT',
  7970. lastWeek: '[Last] dddd [at] LT',
  7971. sameElse: 'L',
  7972. },
  7973. relativeTime: {
  7974. future: 'in %s',
  7975. past: '%s ago',
  7976. s: 'a few seconds',
  7977. ss: '%d seconds',
  7978. m: 'a minute',
  7979. mm: '%d minutes',
  7980. h: 'an hour',
  7981. hh: '%d hours',
  7982. d: 'a day',
  7983. dd: '%d days',
  7984. M: 'a month',
  7985. MM: '%d months',
  7986. y: 'a year',
  7987. yy: '%d years',
  7988. },
  7989. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7990. ordinal: function (number) {
  7991. var b = number % 10,
  7992. output =
  7993. ~~((number % 100) / 10) === 1
  7994. ? 'th'
  7995. : b === 1
  7996. ? 'st'
  7997. : b === 2
  7998. ? 'nd'
  7999. : b === 3
  8000. ? 'rd'
  8001. : 'th';
  8002. return number + output;
  8003. },
  8004. week: {
  8005. dow: 1, // Monday is the first day of the week.
  8006. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8007. },
  8008. });
  8009. //! moment.js locale configuration
  8010. hooks.defineLocale('en-il', {
  8011. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  8012. '_'
  8013. ),
  8014. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  8015. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  8016. '_'
  8017. ),
  8018. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  8019. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  8020. longDateFormat: {
  8021. LT: 'HH:mm',
  8022. LTS: 'HH:mm:ss',
  8023. L: 'DD/MM/YYYY',
  8024. LL: 'D MMMM YYYY',
  8025. LLL: 'D MMMM YYYY HH:mm',
  8026. LLLL: 'dddd, D MMMM YYYY HH:mm',
  8027. },
  8028. calendar: {
  8029. sameDay: '[Today at] LT',
  8030. nextDay: '[Tomorrow at] LT',
  8031. nextWeek: 'dddd [at] LT',
  8032. lastDay: '[Yesterday at] LT',
  8033. lastWeek: '[Last] dddd [at] LT',
  8034. sameElse: 'L',
  8035. },
  8036. relativeTime: {
  8037. future: 'in %s',
  8038. past: '%s ago',
  8039. s: 'a few seconds',
  8040. ss: '%d seconds',
  8041. m: 'a minute',
  8042. mm: '%d minutes',
  8043. h: 'an hour',
  8044. hh: '%d hours',
  8045. d: 'a day',
  8046. dd: '%d days',
  8047. M: 'a month',
  8048. MM: '%d months',
  8049. y: 'a year',
  8050. yy: '%d years',
  8051. },
  8052. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  8053. ordinal: function (number) {
  8054. var b = number % 10,
  8055. output =
  8056. ~~((number % 100) / 10) === 1
  8057. ? 'th'
  8058. : b === 1
  8059. ? 'st'
  8060. : b === 2
  8061. ? 'nd'
  8062. : b === 3
  8063. ? 'rd'
  8064. : 'th';
  8065. return number + output;
  8066. },
  8067. });
  8068. //! moment.js locale configuration
  8069. hooks.defineLocale('en-in', {
  8070. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  8071. '_'
  8072. ),
  8073. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  8074. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  8075. '_'
  8076. ),
  8077. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  8078. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  8079. longDateFormat: {
  8080. LT: 'h:mm A',
  8081. LTS: 'h:mm:ss A',
  8082. L: 'DD/MM/YYYY',
  8083. LL: 'D MMMM YYYY',
  8084. LLL: 'D MMMM YYYY h:mm A',
  8085. LLLL: 'dddd, D MMMM YYYY h:mm A',
  8086. },
  8087. calendar: {
  8088. sameDay: '[Today at] LT',
  8089. nextDay: '[Tomorrow at] LT',
  8090. nextWeek: 'dddd [at] LT',
  8091. lastDay: '[Yesterday at] LT',
  8092. lastWeek: '[Last] dddd [at] LT',
  8093. sameElse: 'L',
  8094. },
  8095. relativeTime: {
  8096. future: 'in %s',
  8097. past: '%s ago',
  8098. s: 'a few seconds',
  8099. ss: '%d seconds',
  8100. m: 'a minute',
  8101. mm: '%d minutes',
  8102. h: 'an hour',
  8103. hh: '%d hours',
  8104. d: 'a day',
  8105. dd: '%d days',
  8106. M: 'a month',
  8107. MM: '%d months',
  8108. y: 'a year',
  8109. yy: '%d years',
  8110. },
  8111. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  8112. ordinal: function (number) {
  8113. var b = number % 10,
  8114. output =
  8115. ~~((number % 100) / 10) === 1
  8116. ? 'th'
  8117. : b === 1
  8118. ? 'st'
  8119. : b === 2
  8120. ? 'nd'
  8121. : b === 3
  8122. ? 'rd'
  8123. : 'th';
  8124. return number + output;
  8125. },
  8126. week: {
  8127. dow: 0, // Sunday is the first day of the week.
  8128. doy: 6, // The week that contains Jan 1st is the first week of the year.
  8129. },
  8130. });
  8131. //! moment.js locale configuration
  8132. hooks.defineLocale('en-nz', {
  8133. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  8134. '_'
  8135. ),
  8136. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  8137. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  8138. '_'
  8139. ),
  8140. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  8141. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  8142. longDateFormat: {
  8143. LT: 'h:mm A',
  8144. LTS: 'h:mm:ss A',
  8145. L: 'DD/MM/YYYY',
  8146. LL: 'D MMMM YYYY',
  8147. LLL: 'D MMMM YYYY h:mm A',
  8148. LLLL: 'dddd, D MMMM YYYY h:mm A',
  8149. },
  8150. calendar: {
  8151. sameDay: '[Today at] LT',
  8152. nextDay: '[Tomorrow at] LT',
  8153. nextWeek: 'dddd [at] LT',
  8154. lastDay: '[Yesterday at] LT',
  8155. lastWeek: '[Last] dddd [at] LT',
  8156. sameElse: 'L',
  8157. },
  8158. relativeTime: {
  8159. future: 'in %s',
  8160. past: '%s ago',
  8161. s: 'a few seconds',
  8162. ss: '%d seconds',
  8163. m: 'a minute',
  8164. mm: '%d minutes',
  8165. h: 'an hour',
  8166. hh: '%d hours',
  8167. d: 'a day',
  8168. dd: '%d days',
  8169. M: 'a month',
  8170. MM: '%d months',
  8171. y: 'a year',
  8172. yy: '%d years',
  8173. },
  8174. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  8175. ordinal: function (number) {
  8176. var b = number % 10,
  8177. output =
  8178. ~~((number % 100) / 10) === 1
  8179. ? 'th'
  8180. : b === 1
  8181. ? 'st'
  8182. : b === 2
  8183. ? 'nd'
  8184. : b === 3
  8185. ? 'rd'
  8186. : 'th';
  8187. return number + output;
  8188. },
  8189. week: {
  8190. dow: 1, // Monday is the first day of the week.
  8191. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8192. },
  8193. });
  8194. //! moment.js locale configuration
  8195. hooks.defineLocale('en-sg', {
  8196. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  8197. '_'
  8198. ),
  8199. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  8200. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  8201. '_'
  8202. ),
  8203. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  8204. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  8205. longDateFormat: {
  8206. LT: 'HH:mm',
  8207. LTS: 'HH:mm:ss',
  8208. L: 'DD/MM/YYYY',
  8209. LL: 'D MMMM YYYY',
  8210. LLL: 'D MMMM YYYY HH:mm',
  8211. LLLL: 'dddd, D MMMM YYYY HH:mm',
  8212. },
  8213. calendar: {
  8214. sameDay: '[Today at] LT',
  8215. nextDay: '[Tomorrow at] LT',
  8216. nextWeek: 'dddd [at] LT',
  8217. lastDay: '[Yesterday at] LT',
  8218. lastWeek: '[Last] dddd [at] LT',
  8219. sameElse: 'L',
  8220. },
  8221. relativeTime: {
  8222. future: 'in %s',
  8223. past: '%s ago',
  8224. s: 'a few seconds',
  8225. ss: '%d seconds',
  8226. m: 'a minute',
  8227. mm: '%d minutes',
  8228. h: 'an hour',
  8229. hh: '%d hours',
  8230. d: 'a day',
  8231. dd: '%d days',
  8232. M: 'a month',
  8233. MM: '%d months',
  8234. y: 'a year',
  8235. yy: '%d years',
  8236. },
  8237. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  8238. ordinal: function (number) {
  8239. var b = number % 10,
  8240. output =
  8241. ~~((number % 100) / 10) === 1
  8242. ? 'th'
  8243. : b === 1
  8244. ? 'st'
  8245. : b === 2
  8246. ? 'nd'
  8247. : b === 3
  8248. ? 'rd'
  8249. : 'th';
  8250. return number + output;
  8251. },
  8252. week: {
  8253. dow: 1, // Monday is the first day of the week.
  8254. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8255. },
  8256. });
  8257. //! moment.js locale configuration
  8258. hooks.defineLocale('eo', {
  8259. months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split(
  8260. '_'
  8261. ),
  8262. monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec'.split('_'),
  8263. weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),
  8264. weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),
  8265. weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'),
  8266. longDateFormat: {
  8267. LT: 'HH:mm',
  8268. LTS: 'HH:mm:ss',
  8269. L: 'YYYY-MM-DD',
  8270. LL: '[la] D[-an de] MMMM, YYYY',
  8271. LLL: '[la] D[-an de] MMMM, YYYY HH:mm',
  8272. LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm',
  8273. llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm',
  8274. },
  8275. meridiemParse: /[ap]\.t\.m/i,
  8276. isPM: function (input) {
  8277. return input.charAt(0).toLowerCase() === 'p';
  8278. },
  8279. meridiem: function (hours, minutes, isLower) {
  8280. if (hours > 11) {
  8281. return isLower ? 'p.t.m.' : 'P.T.M.';
  8282. } else {
  8283. return isLower ? 'a.t.m.' : 'A.T.M.';
  8284. }
  8285. },
  8286. calendar: {
  8287. sameDay: '[Hodiaŭ je] LT',
  8288. nextDay: '[Morgaŭ je] LT',
  8289. nextWeek: 'dddd[n je] LT',
  8290. lastDay: '[Hieraŭ je] LT',
  8291. lastWeek: '[pasintan] dddd[n je] LT',
  8292. sameElse: 'L',
  8293. },
  8294. relativeTime: {
  8295. future: 'post %s',
  8296. past: 'antaŭ %s',
  8297. s: 'kelkaj sekundoj',
  8298. ss: '%d sekundoj',
  8299. m: 'unu minuto',
  8300. mm: '%d minutoj',
  8301. h: 'unu horo',
  8302. hh: '%d horoj',
  8303. d: 'unu tago', //ne 'diurno', ĉar estas uzita por proksimumo
  8304. dd: '%d tagoj',
  8305. M: 'unu monato',
  8306. MM: '%d monatoj',
  8307. y: 'unu jaro',
  8308. yy: '%d jaroj',
  8309. },
  8310. dayOfMonthOrdinalParse: /\d{1,2}a/,
  8311. ordinal: '%da',
  8312. week: {
  8313. dow: 1, // Monday is the first day of the week.
  8314. doy: 7, // The week that contains Jan 7th is the first week of the year.
  8315. },
  8316. });
  8317. //! moment.js locale configuration
  8318. var monthsShortDot =
  8319. 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
  8320. '_'
  8321. ),
  8322. monthsShort$1 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  8323. monthsParse$2 = [
  8324. /^ene/i,
  8325. /^feb/i,
  8326. /^mar/i,
  8327. /^abr/i,
  8328. /^may/i,
  8329. /^jun/i,
  8330. /^jul/i,
  8331. /^ago/i,
  8332. /^sep/i,
  8333. /^oct/i,
  8334. /^nov/i,
  8335. /^dic/i,
  8336. ],
  8337. monthsRegex$3 =
  8338. /^(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;
  8339. hooks.defineLocale('es-do', {
  8340. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
  8341. '_'
  8342. ),
  8343. monthsShort: function (m, format) {
  8344. if (!m) {
  8345. return monthsShortDot;
  8346. } else if (/-MMM-/.test(format)) {
  8347. return monthsShort$1[m.month()];
  8348. } else {
  8349. return monthsShortDot[m.month()];
  8350. }
  8351. },
  8352. monthsRegex: monthsRegex$3,
  8353. monthsShortRegex: monthsRegex$3,
  8354. monthsStrictRegex:
  8355. /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  8356. monthsShortStrictRegex:
  8357. /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  8358. monthsParse: monthsParse$2,
  8359. longMonthsParse: monthsParse$2,
  8360. shortMonthsParse: monthsParse$2,
  8361. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  8362. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  8363. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  8364. weekdaysParseExact: true,
  8365. longDateFormat: {
  8366. LT: 'h:mm A',
  8367. LTS: 'h:mm:ss A',
  8368. L: 'DD/MM/YYYY',
  8369. LL: 'D [de] MMMM [de] YYYY',
  8370. LLL: 'D [de] MMMM [de] YYYY h:mm A',
  8371. LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',
  8372. },
  8373. calendar: {
  8374. sameDay: function () {
  8375. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8376. },
  8377. nextDay: function () {
  8378. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8379. },
  8380. nextWeek: function () {
  8381. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8382. },
  8383. lastDay: function () {
  8384. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8385. },
  8386. lastWeek: function () {
  8387. return (
  8388. '[el] dddd [pasado a la' +
  8389. (this.hours() !== 1 ? 's' : '') +
  8390. '] LT'
  8391. );
  8392. },
  8393. sameElse: 'L',
  8394. },
  8395. relativeTime: {
  8396. future: 'en %s',
  8397. past: 'hace %s',
  8398. s: 'unos segundos',
  8399. ss: '%d segundos',
  8400. m: 'un minuto',
  8401. mm: '%d minutos',
  8402. h: 'una hora',
  8403. hh: '%d horas',
  8404. d: 'un día',
  8405. dd: '%d días',
  8406. w: 'una semana',
  8407. ww: '%d semanas',
  8408. M: 'un mes',
  8409. MM: '%d meses',
  8410. y: 'un año',
  8411. yy: '%d años',
  8412. },
  8413. dayOfMonthOrdinalParse: /\d{1,2}º/,
  8414. ordinal: '%dº',
  8415. week: {
  8416. dow: 1, // Monday is the first day of the week.
  8417. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8418. },
  8419. });
  8420. //! moment.js locale configuration
  8421. var monthsShortDot$1 =
  8422. 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
  8423. '_'
  8424. ),
  8425. monthsShort$2 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  8426. monthsParse$3 = [
  8427. /^ene/i,
  8428. /^feb/i,
  8429. /^mar/i,
  8430. /^abr/i,
  8431. /^may/i,
  8432. /^jun/i,
  8433. /^jul/i,
  8434. /^ago/i,
  8435. /^sep/i,
  8436. /^oct/i,
  8437. /^nov/i,
  8438. /^dic/i,
  8439. ],
  8440. monthsRegex$4 =
  8441. /^(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;
  8442. hooks.defineLocale('es-mx', {
  8443. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
  8444. '_'
  8445. ),
  8446. monthsShort: function (m, format) {
  8447. if (!m) {
  8448. return monthsShortDot$1;
  8449. } else if (/-MMM-/.test(format)) {
  8450. return monthsShort$2[m.month()];
  8451. } else {
  8452. return monthsShortDot$1[m.month()];
  8453. }
  8454. },
  8455. monthsRegex: monthsRegex$4,
  8456. monthsShortRegex: monthsRegex$4,
  8457. monthsStrictRegex:
  8458. /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  8459. monthsShortStrictRegex:
  8460. /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  8461. monthsParse: monthsParse$3,
  8462. longMonthsParse: monthsParse$3,
  8463. shortMonthsParse: monthsParse$3,
  8464. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  8465. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  8466. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  8467. weekdaysParseExact: true,
  8468. longDateFormat: {
  8469. LT: 'H:mm',
  8470. LTS: 'H:mm:ss',
  8471. L: 'DD/MM/YYYY',
  8472. LL: 'D [de] MMMM [de] YYYY',
  8473. LLL: 'D [de] MMMM [de] YYYY H:mm',
  8474. LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
  8475. },
  8476. calendar: {
  8477. sameDay: function () {
  8478. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8479. },
  8480. nextDay: function () {
  8481. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8482. },
  8483. nextWeek: function () {
  8484. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8485. },
  8486. lastDay: function () {
  8487. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8488. },
  8489. lastWeek: function () {
  8490. return (
  8491. '[el] dddd [pasado a la' +
  8492. (this.hours() !== 1 ? 's' : '') +
  8493. '] LT'
  8494. );
  8495. },
  8496. sameElse: 'L',
  8497. },
  8498. relativeTime: {
  8499. future: 'en %s',
  8500. past: 'hace %s',
  8501. s: 'unos segundos',
  8502. ss: '%d segundos',
  8503. m: 'un minuto',
  8504. mm: '%d minutos',
  8505. h: 'una hora',
  8506. hh: '%d horas',
  8507. d: 'un día',
  8508. dd: '%d días',
  8509. w: 'una semana',
  8510. ww: '%d semanas',
  8511. M: 'un mes',
  8512. MM: '%d meses',
  8513. y: 'un año',
  8514. yy: '%d años',
  8515. },
  8516. dayOfMonthOrdinalParse: /\d{1,2}º/,
  8517. ordinal: '%dº',
  8518. week: {
  8519. dow: 0, // Sunday is the first day of the week.
  8520. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8521. },
  8522. invalidDate: 'Fecha inválida',
  8523. });
  8524. //! moment.js locale configuration
  8525. var monthsShortDot$2 =
  8526. 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
  8527. '_'
  8528. ),
  8529. monthsShort$3 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  8530. monthsParse$4 = [
  8531. /^ene/i,
  8532. /^feb/i,
  8533. /^mar/i,
  8534. /^abr/i,
  8535. /^may/i,
  8536. /^jun/i,
  8537. /^jul/i,
  8538. /^ago/i,
  8539. /^sep/i,
  8540. /^oct/i,
  8541. /^nov/i,
  8542. /^dic/i,
  8543. ],
  8544. monthsRegex$5 =
  8545. /^(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;
  8546. hooks.defineLocale('es-us', {
  8547. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
  8548. '_'
  8549. ),
  8550. monthsShort: function (m, format) {
  8551. if (!m) {
  8552. return monthsShortDot$2;
  8553. } else if (/-MMM-/.test(format)) {
  8554. return monthsShort$3[m.month()];
  8555. } else {
  8556. return monthsShortDot$2[m.month()];
  8557. }
  8558. },
  8559. monthsRegex: monthsRegex$5,
  8560. monthsShortRegex: monthsRegex$5,
  8561. monthsStrictRegex:
  8562. /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  8563. monthsShortStrictRegex:
  8564. /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  8565. monthsParse: monthsParse$4,
  8566. longMonthsParse: monthsParse$4,
  8567. shortMonthsParse: monthsParse$4,
  8568. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  8569. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  8570. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  8571. weekdaysParseExact: true,
  8572. longDateFormat: {
  8573. LT: 'h:mm A',
  8574. LTS: 'h:mm:ss A',
  8575. L: 'MM/DD/YYYY',
  8576. LL: 'D [de] MMMM [de] YYYY',
  8577. LLL: 'D [de] MMMM [de] YYYY h:mm A',
  8578. LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',
  8579. },
  8580. calendar: {
  8581. sameDay: function () {
  8582. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8583. },
  8584. nextDay: function () {
  8585. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8586. },
  8587. nextWeek: function () {
  8588. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8589. },
  8590. lastDay: function () {
  8591. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8592. },
  8593. lastWeek: function () {
  8594. return (
  8595. '[el] dddd [pasado a la' +
  8596. (this.hours() !== 1 ? 's' : '') +
  8597. '] LT'
  8598. );
  8599. },
  8600. sameElse: 'L',
  8601. },
  8602. relativeTime: {
  8603. future: 'en %s',
  8604. past: 'hace %s',
  8605. s: 'unos segundos',
  8606. ss: '%d segundos',
  8607. m: 'un minuto',
  8608. mm: '%d minutos',
  8609. h: 'una hora',
  8610. hh: '%d horas',
  8611. d: 'un día',
  8612. dd: '%d días',
  8613. w: 'una semana',
  8614. ww: '%d semanas',
  8615. M: 'un mes',
  8616. MM: '%d meses',
  8617. y: 'un año',
  8618. yy: '%d años',
  8619. },
  8620. dayOfMonthOrdinalParse: /\d{1,2}º/,
  8621. ordinal: '%dº',
  8622. week: {
  8623. dow: 0, // Sunday is the first day of the week.
  8624. doy: 6, // The week that contains Jan 6th is the first week of the year.
  8625. },
  8626. });
  8627. //! moment.js locale configuration
  8628. var monthsShortDot$3 =
  8629. 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
  8630. '_'
  8631. ),
  8632. monthsShort$4 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  8633. monthsParse$5 = [
  8634. /^ene/i,
  8635. /^feb/i,
  8636. /^mar/i,
  8637. /^abr/i,
  8638. /^may/i,
  8639. /^jun/i,
  8640. /^jul/i,
  8641. /^ago/i,
  8642. /^sep/i,
  8643. /^oct/i,
  8644. /^nov/i,
  8645. /^dic/i,
  8646. ],
  8647. monthsRegex$6 =
  8648. /^(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;
  8649. hooks.defineLocale('es', {
  8650. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
  8651. '_'
  8652. ),
  8653. monthsShort: function (m, format) {
  8654. if (!m) {
  8655. return monthsShortDot$3;
  8656. } else if (/-MMM-/.test(format)) {
  8657. return monthsShort$4[m.month()];
  8658. } else {
  8659. return monthsShortDot$3[m.month()];
  8660. }
  8661. },
  8662. monthsRegex: monthsRegex$6,
  8663. monthsShortRegex: monthsRegex$6,
  8664. monthsStrictRegex:
  8665. /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  8666. monthsShortStrictRegex:
  8667. /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  8668. monthsParse: monthsParse$5,
  8669. longMonthsParse: monthsParse$5,
  8670. shortMonthsParse: monthsParse$5,
  8671. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  8672. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  8673. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  8674. weekdaysParseExact: true,
  8675. longDateFormat: {
  8676. LT: 'H:mm',
  8677. LTS: 'H:mm:ss',
  8678. L: 'DD/MM/YYYY',
  8679. LL: 'D [de] MMMM [de] YYYY',
  8680. LLL: 'D [de] MMMM [de] YYYY H:mm',
  8681. LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
  8682. },
  8683. calendar: {
  8684. sameDay: function () {
  8685. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8686. },
  8687. nextDay: function () {
  8688. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8689. },
  8690. nextWeek: function () {
  8691. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8692. },
  8693. lastDay: function () {
  8694. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8695. },
  8696. lastWeek: function () {
  8697. return (
  8698. '[el] dddd [pasado a la' +
  8699. (this.hours() !== 1 ? 's' : '') +
  8700. '] LT'
  8701. );
  8702. },
  8703. sameElse: 'L',
  8704. },
  8705. relativeTime: {
  8706. future: 'en %s',
  8707. past: 'hace %s',
  8708. s: 'unos segundos',
  8709. ss: '%d segundos',
  8710. m: 'un minuto',
  8711. mm: '%d minutos',
  8712. h: 'una hora',
  8713. hh: '%d horas',
  8714. d: 'un día',
  8715. dd: '%d días',
  8716. w: 'una semana',
  8717. ww: '%d semanas',
  8718. M: 'un mes',
  8719. MM: '%d meses',
  8720. y: 'un año',
  8721. yy: '%d años',
  8722. },
  8723. dayOfMonthOrdinalParse: /\d{1,2}º/,
  8724. ordinal: '%dº',
  8725. week: {
  8726. dow: 1, // Monday is the first day of the week.
  8727. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8728. },
  8729. invalidDate: 'Fecha inválida',
  8730. });
  8731. //! moment.js locale configuration
  8732. function processRelativeTime$4(number, withoutSuffix, key, isFuture) {
  8733. var format = {
  8734. s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
  8735. ss: [number + 'sekundi', number + 'sekundit'],
  8736. m: ['ühe minuti', 'üks minut'],
  8737. mm: [number + ' minuti', number + ' minutit'],
  8738. h: ['ühe tunni', 'tund aega', 'üks tund'],
  8739. hh: [number + ' tunni', number + ' tundi'],
  8740. d: ['ühe päeva', 'üks päev'],
  8741. M: ['kuu aja', 'kuu aega', 'üks kuu'],
  8742. MM: [number + ' kuu', number + ' kuud'],
  8743. y: ['ühe aasta', 'aasta', 'üks aasta'],
  8744. yy: [number + ' aasta', number + ' aastat'],
  8745. };
  8746. if (withoutSuffix) {
  8747. return format[key][2] ? format[key][2] : format[key][1];
  8748. }
  8749. return isFuture ? format[key][0] : format[key][1];
  8750. }
  8751. hooks.defineLocale('et', {
  8752. months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split(
  8753. '_'
  8754. ),
  8755. monthsShort:
  8756. 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),
  8757. weekdays:
  8758. 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split(
  8759. '_'
  8760. ),
  8761. weekdaysShort: 'P_E_T_K_N_R_L'.split('_'),
  8762. weekdaysMin: 'P_E_T_K_N_R_L'.split('_'),
  8763. longDateFormat: {
  8764. LT: 'H:mm',
  8765. LTS: 'H:mm:ss',
  8766. L: 'DD.MM.YYYY',
  8767. LL: 'D. MMMM YYYY',
  8768. LLL: 'D. MMMM YYYY H:mm',
  8769. LLLL: 'dddd, D. MMMM YYYY H:mm',
  8770. },
  8771. calendar: {
  8772. sameDay: '[Täna,] LT',
  8773. nextDay: '[Homme,] LT',
  8774. nextWeek: '[Järgmine] dddd LT',
  8775. lastDay: '[Eile,] LT',
  8776. lastWeek: '[Eelmine] dddd LT',
  8777. sameElse: 'L',
  8778. },
  8779. relativeTime: {
  8780. future: '%s pärast',
  8781. past: '%s tagasi',
  8782. s: processRelativeTime$4,
  8783. ss: processRelativeTime$4,
  8784. m: processRelativeTime$4,
  8785. mm: processRelativeTime$4,
  8786. h: processRelativeTime$4,
  8787. hh: processRelativeTime$4,
  8788. d: processRelativeTime$4,
  8789. dd: '%d päeva',
  8790. M: processRelativeTime$4,
  8791. MM: processRelativeTime$4,
  8792. y: processRelativeTime$4,
  8793. yy: processRelativeTime$4,
  8794. },
  8795. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8796. ordinal: '%d.',
  8797. week: {
  8798. dow: 1, // Monday is the first day of the week.
  8799. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8800. },
  8801. });
  8802. //! moment.js locale configuration
  8803. hooks.defineLocale('eu', {
  8804. months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split(
  8805. '_'
  8806. ),
  8807. monthsShort:
  8808. 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split(
  8809. '_'
  8810. ),
  8811. monthsParseExact: true,
  8812. weekdays:
  8813. 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split(
  8814. '_'
  8815. ),
  8816. weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'),
  8817. weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'),
  8818. weekdaysParseExact: true,
  8819. longDateFormat: {
  8820. LT: 'HH:mm',
  8821. LTS: 'HH:mm:ss',
  8822. L: 'YYYY-MM-DD',
  8823. LL: 'YYYY[ko] MMMM[ren] D[a]',
  8824. LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm',
  8825. LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
  8826. l: 'YYYY-M-D',
  8827. ll: 'YYYY[ko] MMM D[a]',
  8828. lll: 'YYYY[ko] MMM D[a] HH:mm',
  8829. llll: 'ddd, YYYY[ko] MMM D[a] HH:mm',
  8830. },
  8831. calendar: {
  8832. sameDay: '[gaur] LT[etan]',
  8833. nextDay: '[bihar] LT[etan]',
  8834. nextWeek: 'dddd LT[etan]',
  8835. lastDay: '[atzo] LT[etan]',
  8836. lastWeek: '[aurreko] dddd LT[etan]',
  8837. sameElse: 'L',
  8838. },
  8839. relativeTime: {
  8840. future: '%s barru',
  8841. past: 'duela %s',
  8842. s: 'segundo batzuk',
  8843. ss: '%d segundo',
  8844. m: 'minutu bat',
  8845. mm: '%d minutu',
  8846. h: 'ordu bat',
  8847. hh: '%d ordu',
  8848. d: 'egun bat',
  8849. dd: '%d egun',
  8850. M: 'hilabete bat',
  8851. MM: '%d hilabete',
  8852. y: 'urte bat',
  8853. yy: '%d urte',
  8854. },
  8855. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8856. ordinal: '%d.',
  8857. week: {
  8858. dow: 1, // Monday is the first day of the week.
  8859. doy: 7, // The week that contains Jan 7th is the first week of the year.
  8860. },
  8861. });
  8862. //! moment.js locale configuration
  8863. var symbolMap$7 = {
  8864. 1: '۱',
  8865. 2: '۲',
  8866. 3: '۳',
  8867. 4: '۴',
  8868. 5: '۵',
  8869. 6: '۶',
  8870. 7: '۷',
  8871. 8: '۸',
  8872. 9: '۹',
  8873. 0: '۰',
  8874. },
  8875. numberMap$6 = {
  8876. '۱': '1',
  8877. '۲': '2',
  8878. '۳': '3',
  8879. '۴': '4',
  8880. '۵': '5',
  8881. '۶': '6',
  8882. '۷': '7',
  8883. '۸': '8',
  8884. '۹': '9',
  8885. '۰': '0',
  8886. };
  8887. hooks.defineLocale('fa', {
  8888. months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(
  8889. '_'
  8890. ),
  8891. monthsShort:
  8892. 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(
  8893. '_'
  8894. ),
  8895. weekdays:
  8896. 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split(
  8897. '_'
  8898. ),
  8899. weekdaysShort:
  8900. 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split(
  8901. '_'
  8902. ),
  8903. weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'),
  8904. weekdaysParseExact: true,
  8905. longDateFormat: {
  8906. LT: 'HH:mm',
  8907. LTS: 'HH:mm:ss',
  8908. L: 'DD/MM/YYYY',
  8909. LL: 'D MMMM YYYY',
  8910. LLL: 'D MMMM YYYY HH:mm',
  8911. LLLL: 'dddd, D MMMM YYYY HH:mm',
  8912. },
  8913. meridiemParse: /قبل از ظهر|بعد از ظهر/,
  8914. isPM: function (input) {
  8915. return /بعد از ظهر/.test(input);
  8916. },
  8917. meridiem: function (hour, minute, isLower) {
  8918. if (hour < 12) {
  8919. return 'قبل از ظهر';
  8920. } else {
  8921. return 'بعد از ظهر';
  8922. }
  8923. },
  8924. calendar: {
  8925. sameDay: '[امروز ساعت] LT',
  8926. nextDay: '[فردا ساعت] LT',
  8927. nextWeek: 'dddd [ساعت] LT',
  8928. lastDay: '[دیروز ساعت] LT',
  8929. lastWeek: 'dddd [پیش] [ساعت] LT',
  8930. sameElse: 'L',
  8931. },
  8932. relativeTime: {
  8933. future: 'در %s',
  8934. past: '%s پیش',
  8935. s: 'چند ثانیه',
  8936. ss: '%d ثانیه',
  8937. m: 'یک دقیقه',
  8938. mm: '%d دقیقه',
  8939. h: 'یک ساعت',
  8940. hh: '%d ساعت',
  8941. d: 'یک روز',
  8942. dd: '%d روز',
  8943. M: 'یک ماه',
  8944. MM: '%d ماه',
  8945. y: 'یک سال',
  8946. yy: '%d سال',
  8947. },
  8948. preparse: function (string) {
  8949. return string
  8950. .replace(/[۰-۹]/g, function (match) {
  8951. return numberMap$6[match];
  8952. })
  8953. .replace(/،/g, ',');
  8954. },
  8955. postformat: function (string) {
  8956. return string
  8957. .replace(/\d/g, function (match) {
  8958. return symbolMap$7[match];
  8959. })
  8960. .replace(/,/g, '،');
  8961. },
  8962. dayOfMonthOrdinalParse: /\d{1,2}م/,
  8963. ordinal: '%dم',
  8964. week: {
  8965. dow: 6, // Saturday is the first day of the week.
  8966. doy: 12, // The week that contains Jan 12th is the first week of the year.
  8967. },
  8968. });
  8969. //! moment.js locale configuration
  8970. var numbersPast =
  8971. 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(
  8972. ' '
  8973. ),
  8974. numbersFuture = [
  8975. 'nolla',
  8976. 'yhden',
  8977. 'kahden',
  8978. 'kolmen',
  8979. 'neljän',
  8980. 'viiden',
  8981. 'kuuden',
  8982. numbersPast[7],
  8983. numbersPast[8],
  8984. numbersPast[9],
  8985. ];
  8986. function translate$2(number, withoutSuffix, key, isFuture) {
  8987. var result = '';
  8988. switch (key) {
  8989. case 's':
  8990. return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
  8991. case 'ss':
  8992. result = isFuture ? 'sekunnin' : 'sekuntia';
  8993. break;
  8994. case 'm':
  8995. return isFuture ? 'minuutin' : 'minuutti';
  8996. case 'mm':
  8997. result = isFuture ? 'minuutin' : 'minuuttia';
  8998. break;
  8999. case 'h':
  9000. return isFuture ? 'tunnin' : 'tunti';
  9001. case 'hh':
  9002. result = isFuture ? 'tunnin' : 'tuntia';
  9003. break;
  9004. case 'd':
  9005. return isFuture ? 'päivän' : 'päivä';
  9006. case 'dd':
  9007. result = isFuture ? 'päivän' : 'päivää';
  9008. break;
  9009. case 'M':
  9010. return isFuture ? 'kuukauden' : 'kuukausi';
  9011. case 'MM':
  9012. result = isFuture ? 'kuukauden' : 'kuukautta';
  9013. break;
  9014. case 'y':
  9015. return isFuture ? 'vuoden' : 'vuosi';
  9016. case 'yy':
  9017. result = isFuture ? 'vuoden' : 'vuotta';
  9018. break;
  9019. }
  9020. result = verbalNumber(number, isFuture) + ' ' + result;
  9021. return result;
  9022. }
  9023. function verbalNumber(number, isFuture) {
  9024. return number < 10
  9025. ? isFuture
  9026. ? numbersFuture[number]
  9027. : numbersPast[number]
  9028. : number;
  9029. }
  9030. hooks.defineLocale('fi', {
  9031. months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split(
  9032. '_'
  9033. ),
  9034. monthsShort:
  9035. 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split(
  9036. '_'
  9037. ),
  9038. weekdays:
  9039. 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split(
  9040. '_'
  9041. ),
  9042. weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'),
  9043. weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'),
  9044. longDateFormat: {
  9045. LT: 'HH.mm',
  9046. LTS: 'HH.mm.ss',
  9047. L: 'DD.MM.YYYY',
  9048. LL: 'Do MMMM[ta] YYYY',
  9049. LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm',
  9050. LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
  9051. l: 'D.M.YYYY',
  9052. ll: 'Do MMM YYYY',
  9053. lll: 'Do MMM YYYY, [klo] HH.mm',
  9054. llll: 'ddd, Do MMM YYYY, [klo] HH.mm',
  9055. },
  9056. calendar: {
  9057. sameDay: '[tänään] [klo] LT',
  9058. nextDay: '[huomenna] [klo] LT',
  9059. nextWeek: 'dddd [klo] LT',
  9060. lastDay: '[eilen] [klo] LT',
  9061. lastWeek: '[viime] dddd[na] [klo] LT',
  9062. sameElse: 'L',
  9063. },
  9064. relativeTime: {
  9065. future: '%s päästä',
  9066. past: '%s sitten',
  9067. s: translate$2,
  9068. ss: translate$2,
  9069. m: translate$2,
  9070. mm: translate$2,
  9071. h: translate$2,
  9072. hh: translate$2,
  9073. d: translate$2,
  9074. dd: translate$2,
  9075. M: translate$2,
  9076. MM: translate$2,
  9077. y: translate$2,
  9078. yy: translate$2,
  9079. },
  9080. dayOfMonthOrdinalParse: /\d{1,2}\./,
  9081. ordinal: '%d.',
  9082. week: {
  9083. dow: 1, // Monday is the first day of the week.
  9084. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9085. },
  9086. });
  9087. //! moment.js locale configuration
  9088. hooks.defineLocale('fil', {
  9089. months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(
  9090. '_'
  9091. ),
  9092. monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
  9093. weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(
  9094. '_'
  9095. ),
  9096. weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
  9097. weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
  9098. longDateFormat: {
  9099. LT: 'HH:mm',
  9100. LTS: 'HH:mm:ss',
  9101. L: 'MM/D/YYYY',
  9102. LL: 'MMMM D, YYYY',
  9103. LLL: 'MMMM D, YYYY HH:mm',
  9104. LLLL: 'dddd, MMMM DD, YYYY HH:mm',
  9105. },
  9106. calendar: {
  9107. sameDay: 'LT [ngayong araw]',
  9108. nextDay: '[Bukas ng] LT',
  9109. nextWeek: 'LT [sa susunod na] dddd',
  9110. lastDay: 'LT [kahapon]',
  9111. lastWeek: 'LT [noong nakaraang] dddd',
  9112. sameElse: 'L',
  9113. },
  9114. relativeTime: {
  9115. future: 'sa loob ng %s',
  9116. past: '%s ang nakalipas',
  9117. s: 'ilang segundo',
  9118. ss: '%d segundo',
  9119. m: 'isang minuto',
  9120. mm: '%d minuto',
  9121. h: 'isang oras',
  9122. hh: '%d oras',
  9123. d: 'isang araw',
  9124. dd: '%d araw',
  9125. M: 'isang buwan',
  9126. MM: '%d buwan',
  9127. y: 'isang taon',
  9128. yy: '%d taon',
  9129. },
  9130. dayOfMonthOrdinalParse: /\d{1,2}/,
  9131. ordinal: function (number) {
  9132. return number;
  9133. },
  9134. week: {
  9135. dow: 1, // Monday is the first day of the week.
  9136. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9137. },
  9138. });
  9139. //! moment.js locale configuration
  9140. hooks.defineLocale('fo', {
  9141. months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split(
  9142. '_'
  9143. ),
  9144. monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  9145. weekdays:
  9146. 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split(
  9147. '_'
  9148. ),
  9149. weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
  9150. weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'),
  9151. longDateFormat: {
  9152. LT: 'HH:mm',
  9153. LTS: 'HH:mm:ss',
  9154. L: 'DD/MM/YYYY',
  9155. LL: 'D MMMM YYYY',
  9156. LLL: 'D MMMM YYYY HH:mm',
  9157. LLLL: 'dddd D. MMMM, YYYY HH:mm',
  9158. },
  9159. calendar: {
  9160. sameDay: '[Í dag kl.] LT',
  9161. nextDay: '[Í morgin kl.] LT',
  9162. nextWeek: 'dddd [kl.] LT',
  9163. lastDay: '[Í gjár kl.] LT',
  9164. lastWeek: '[síðstu] dddd [kl] LT',
  9165. sameElse: 'L',
  9166. },
  9167. relativeTime: {
  9168. future: 'um %s',
  9169. past: '%s síðani',
  9170. s: 'fá sekund',
  9171. ss: '%d sekundir',
  9172. m: 'ein minuttur',
  9173. mm: '%d minuttir',
  9174. h: 'ein tími',
  9175. hh: '%d tímar',
  9176. d: 'ein dagur',
  9177. dd: '%d dagar',
  9178. M: 'ein mánaður',
  9179. MM: '%d mánaðir',
  9180. y: 'eitt ár',
  9181. yy: '%d ár',
  9182. },
  9183. dayOfMonthOrdinalParse: /\d{1,2}\./,
  9184. ordinal: '%d.',
  9185. week: {
  9186. dow: 1, // Monday is the first day of the week.
  9187. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9188. },
  9189. });
  9190. //! moment.js locale configuration
  9191. hooks.defineLocale('fr-ca', {
  9192. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
  9193. '_'
  9194. ),
  9195. monthsShort:
  9196. 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
  9197. '_'
  9198. ),
  9199. monthsParseExact: true,
  9200. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  9201. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  9202. weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
  9203. weekdaysParseExact: true,
  9204. longDateFormat: {
  9205. LT: 'HH:mm',
  9206. LTS: 'HH:mm:ss',
  9207. L: 'YYYY-MM-DD',
  9208. LL: 'D MMMM YYYY',
  9209. LLL: 'D MMMM YYYY HH:mm',
  9210. LLLL: 'dddd D MMMM YYYY HH:mm',
  9211. },
  9212. calendar: {
  9213. sameDay: '[Aujourd’hui à] LT',
  9214. nextDay: '[Demain à] LT',
  9215. nextWeek: 'dddd [à] LT',
  9216. lastDay: '[Hier à] LT',
  9217. lastWeek: 'dddd [dernier à] LT',
  9218. sameElse: 'L',
  9219. },
  9220. relativeTime: {
  9221. future: 'dans %s',
  9222. past: 'il y a %s',
  9223. s: 'quelques secondes',
  9224. ss: '%d secondes',
  9225. m: 'une minute',
  9226. mm: '%d minutes',
  9227. h: 'une heure',
  9228. hh: '%d heures',
  9229. d: 'un jour',
  9230. dd: '%d jours',
  9231. M: 'un mois',
  9232. MM: '%d mois',
  9233. y: 'un an',
  9234. yy: '%d ans',
  9235. },
  9236. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  9237. ordinal: function (number, period) {
  9238. switch (period) {
  9239. // Words with masculine grammatical gender: mois, trimestre, jour
  9240. default:
  9241. case 'M':
  9242. case 'Q':
  9243. case 'D':
  9244. case 'DDD':
  9245. case 'd':
  9246. return number + (number === 1 ? 'er' : 'e');
  9247. // Words with feminine grammatical gender: semaine
  9248. case 'w':
  9249. case 'W':
  9250. return number + (number === 1 ? 're' : 'e');
  9251. }
  9252. },
  9253. });
  9254. //! moment.js locale configuration
  9255. hooks.defineLocale('fr-ch', {
  9256. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
  9257. '_'
  9258. ),
  9259. monthsShort:
  9260. 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
  9261. '_'
  9262. ),
  9263. monthsParseExact: true,
  9264. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  9265. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  9266. weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
  9267. weekdaysParseExact: true,
  9268. longDateFormat: {
  9269. LT: 'HH:mm',
  9270. LTS: 'HH:mm:ss',
  9271. L: 'DD.MM.YYYY',
  9272. LL: 'D MMMM YYYY',
  9273. LLL: 'D MMMM YYYY HH:mm',
  9274. LLLL: 'dddd D MMMM YYYY HH:mm',
  9275. },
  9276. calendar: {
  9277. sameDay: '[Aujourd’hui à] LT',
  9278. nextDay: '[Demain à] LT',
  9279. nextWeek: 'dddd [à] LT',
  9280. lastDay: '[Hier à] LT',
  9281. lastWeek: 'dddd [dernier à] LT',
  9282. sameElse: 'L',
  9283. },
  9284. relativeTime: {
  9285. future: 'dans %s',
  9286. past: 'il y a %s',
  9287. s: 'quelques secondes',
  9288. ss: '%d secondes',
  9289. m: 'une minute',
  9290. mm: '%d minutes',
  9291. h: 'une heure',
  9292. hh: '%d heures',
  9293. d: 'un jour',
  9294. dd: '%d jours',
  9295. M: 'un mois',
  9296. MM: '%d mois',
  9297. y: 'un an',
  9298. yy: '%d ans',
  9299. },
  9300. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  9301. ordinal: function (number, period) {
  9302. switch (period) {
  9303. // Words with masculine grammatical gender: mois, trimestre, jour
  9304. default:
  9305. case 'M':
  9306. case 'Q':
  9307. case 'D':
  9308. case 'DDD':
  9309. case 'd':
  9310. return number + (number === 1 ? 'er' : 'e');
  9311. // Words with feminine grammatical gender: semaine
  9312. case 'w':
  9313. case 'W':
  9314. return number + (number === 1 ? 're' : 'e');
  9315. }
  9316. },
  9317. week: {
  9318. dow: 1, // Monday is the first day of the week.
  9319. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9320. },
  9321. });
  9322. //! moment.js locale configuration
  9323. var monthsStrictRegex$1 =
  9324. /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
  9325. monthsShortStrictRegex$1 =
  9326. /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,
  9327. monthsRegex$7 =
  9328. /(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,
  9329. monthsParse$6 = [
  9330. /^janv/i,
  9331. /^févr/i,
  9332. /^mars/i,
  9333. /^avr/i,
  9334. /^mai/i,
  9335. /^juin/i,
  9336. /^juil/i,
  9337. /^août/i,
  9338. /^sept/i,
  9339. /^oct/i,
  9340. /^nov/i,
  9341. /^déc/i,
  9342. ];
  9343. hooks.defineLocale('fr', {
  9344. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
  9345. '_'
  9346. ),
  9347. monthsShort:
  9348. 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
  9349. '_'
  9350. ),
  9351. monthsRegex: monthsRegex$7,
  9352. monthsShortRegex: monthsRegex$7,
  9353. monthsStrictRegex: monthsStrictRegex$1,
  9354. monthsShortStrictRegex: monthsShortStrictRegex$1,
  9355. monthsParse: monthsParse$6,
  9356. longMonthsParse: monthsParse$6,
  9357. shortMonthsParse: monthsParse$6,
  9358. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  9359. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  9360. weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
  9361. weekdaysParseExact: true,
  9362. longDateFormat: {
  9363. LT: 'HH:mm',
  9364. LTS: 'HH:mm:ss',
  9365. L: 'DD/MM/YYYY',
  9366. LL: 'D MMMM YYYY',
  9367. LLL: 'D MMMM YYYY HH:mm',
  9368. LLLL: 'dddd D MMMM YYYY HH:mm',
  9369. },
  9370. calendar: {
  9371. sameDay: '[Aujourd’hui à] LT',
  9372. nextDay: '[Demain à] LT',
  9373. nextWeek: 'dddd [à] LT',
  9374. lastDay: '[Hier à] LT',
  9375. lastWeek: 'dddd [dernier à] LT',
  9376. sameElse: 'L',
  9377. },
  9378. relativeTime: {
  9379. future: 'dans %s',
  9380. past: 'il y a %s',
  9381. s: 'quelques secondes',
  9382. ss: '%d secondes',
  9383. m: 'une minute',
  9384. mm: '%d minutes',
  9385. h: 'une heure',
  9386. hh: '%d heures',
  9387. d: 'un jour',
  9388. dd: '%d jours',
  9389. w: 'une semaine',
  9390. ww: '%d semaines',
  9391. M: 'un mois',
  9392. MM: '%d mois',
  9393. y: 'un an',
  9394. yy: '%d ans',
  9395. },
  9396. dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
  9397. ordinal: function (number, period) {
  9398. switch (period) {
  9399. // TODO: Return 'e' when day of month > 1. Move this case inside
  9400. // block for masculine words below.
  9401. // See https://github.com/moment/moment/issues/3375
  9402. case 'D':
  9403. return number + (number === 1 ? 'er' : '');
  9404. // Words with masculine grammatical gender: mois, trimestre, jour
  9405. default:
  9406. case 'M':
  9407. case 'Q':
  9408. case 'DDD':
  9409. case 'd':
  9410. return number + (number === 1 ? 'er' : 'e');
  9411. // Words with feminine grammatical gender: semaine
  9412. case 'w':
  9413. case 'W':
  9414. return number + (number === 1 ? 're' : 'e');
  9415. }
  9416. },
  9417. week: {
  9418. dow: 1, // Monday is the first day of the week.
  9419. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9420. },
  9421. });
  9422. //! moment.js locale configuration
  9423. var monthsShortWithDots =
  9424. 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),
  9425. monthsShortWithoutDots =
  9426. 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
  9427. hooks.defineLocale('fy', {
  9428. months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split(
  9429. '_'
  9430. ),
  9431. monthsShort: function (m, format) {
  9432. if (!m) {
  9433. return monthsShortWithDots;
  9434. } else if (/-MMM-/.test(format)) {
  9435. return monthsShortWithoutDots[m.month()];
  9436. } else {
  9437. return monthsShortWithDots[m.month()];
  9438. }
  9439. },
  9440. monthsParseExact: true,
  9441. weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split(
  9442. '_'
  9443. ),
  9444. weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),
  9445. weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
  9446. weekdaysParseExact: true,
  9447. longDateFormat: {
  9448. LT: 'HH:mm',
  9449. LTS: 'HH:mm:ss',
  9450. L: 'DD-MM-YYYY',
  9451. LL: 'D MMMM YYYY',
  9452. LLL: 'D MMMM YYYY HH:mm',
  9453. LLLL: 'dddd D MMMM YYYY HH:mm',
  9454. },
  9455. calendar: {
  9456. sameDay: '[hjoed om] LT',
  9457. nextDay: '[moarn om] LT',
  9458. nextWeek: 'dddd [om] LT',
  9459. lastDay: '[juster om] LT',
  9460. lastWeek: '[ôfrûne] dddd [om] LT',
  9461. sameElse: 'L',
  9462. },
  9463. relativeTime: {
  9464. future: 'oer %s',
  9465. past: '%s lyn',
  9466. s: 'in pear sekonden',
  9467. ss: '%d sekonden',
  9468. m: 'ien minút',
  9469. mm: '%d minuten',
  9470. h: 'ien oere',
  9471. hh: '%d oeren',
  9472. d: 'ien dei',
  9473. dd: '%d dagen',
  9474. M: 'ien moanne',
  9475. MM: '%d moannen',
  9476. y: 'ien jier',
  9477. yy: '%d jierren',
  9478. },
  9479. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  9480. ordinal: function (number) {
  9481. return (
  9482. number +
  9483. (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
  9484. );
  9485. },
  9486. week: {
  9487. dow: 1, // Monday is the first day of the week.
  9488. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9489. },
  9490. });
  9491. //! moment.js locale configuration
  9492. var months$6 = [
  9493. 'Eanáir',
  9494. 'Feabhra',
  9495. 'Márta',
  9496. 'Aibreán',
  9497. 'Bealtaine',
  9498. 'Meitheamh',
  9499. 'Iúil',
  9500. 'Lúnasa',
  9501. 'Meán Fómhair',
  9502. 'Deireadh Fómhair',
  9503. 'Samhain',
  9504. 'Nollaig',
  9505. ],
  9506. monthsShort$5 = [
  9507. 'Ean',
  9508. 'Feabh',
  9509. 'Márt',
  9510. 'Aib',
  9511. 'Beal',
  9512. 'Meith',
  9513. 'Iúil',
  9514. 'Lún',
  9515. 'M.F.',
  9516. 'D.F.',
  9517. 'Samh',
  9518. 'Noll',
  9519. ],
  9520. weekdays$1 = [
  9521. 'Dé Domhnaigh',
  9522. 'Dé Luain',
  9523. 'Dé Máirt',
  9524. 'Dé Céadaoin',
  9525. 'Déardaoin',
  9526. 'Dé hAoine',
  9527. 'Dé Sathairn',
  9528. ],
  9529. weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'],
  9530. weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa'];
  9531. hooks.defineLocale('ga', {
  9532. months: months$6,
  9533. monthsShort: monthsShort$5,
  9534. monthsParseExact: true,
  9535. weekdays: weekdays$1,
  9536. weekdaysShort: weekdaysShort,
  9537. weekdaysMin: weekdaysMin,
  9538. longDateFormat: {
  9539. LT: 'HH:mm',
  9540. LTS: 'HH:mm:ss',
  9541. L: 'DD/MM/YYYY',
  9542. LL: 'D MMMM YYYY',
  9543. LLL: 'D MMMM YYYY HH:mm',
  9544. LLLL: 'dddd, D MMMM YYYY HH:mm',
  9545. },
  9546. calendar: {
  9547. sameDay: '[Inniu ag] LT',
  9548. nextDay: '[Amárach ag] LT',
  9549. nextWeek: 'dddd [ag] LT',
  9550. lastDay: '[Inné ag] LT',
  9551. lastWeek: 'dddd [seo caite] [ag] LT',
  9552. sameElse: 'L',
  9553. },
  9554. relativeTime: {
  9555. future: 'i %s',
  9556. past: '%s ó shin',
  9557. s: 'cúpla soicind',
  9558. ss: '%d soicind',
  9559. m: 'nóiméad',
  9560. mm: '%d nóiméad',
  9561. h: 'uair an chloig',
  9562. hh: '%d uair an chloig',
  9563. d: 'lá',
  9564. dd: '%d lá',
  9565. M: 'mí',
  9566. MM: '%d míonna',
  9567. y: 'bliain',
  9568. yy: '%d bliain',
  9569. },
  9570. dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
  9571. ordinal: function (number) {
  9572. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  9573. return number + output;
  9574. },
  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. var months$7 = [
  9582. 'Am Faoilleach',
  9583. 'An Gearran',
  9584. 'Am Màrt',
  9585. 'An Giblean',
  9586. 'An Cèitean',
  9587. 'An t-Ògmhios',
  9588. 'An t-Iuchar',
  9589. 'An Lùnastal',
  9590. 'An t-Sultain',
  9591. 'An Dàmhair',
  9592. 'An t-Samhain',
  9593. 'An Dùbhlachd',
  9594. ],
  9595. monthsShort$6 = [
  9596. 'Faoi',
  9597. 'Gear',
  9598. 'Màrt',
  9599. 'Gibl',
  9600. 'Cèit',
  9601. 'Ògmh',
  9602. 'Iuch',
  9603. 'Lùn',
  9604. 'Sult',
  9605. 'Dàmh',
  9606. 'Samh',
  9607. 'Dùbh',
  9608. ],
  9609. weekdays$2 = [
  9610. 'Didòmhnaich',
  9611. 'Diluain',
  9612. 'Dimàirt',
  9613. 'Diciadain',
  9614. 'Diardaoin',
  9615. 'Dihaoine',
  9616. 'Disathairne',
  9617. ],
  9618. weekdaysShort$1 = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'],
  9619. weekdaysMin$1 = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
  9620. hooks.defineLocale('gd', {
  9621. months: months$7,
  9622. monthsShort: monthsShort$6,
  9623. monthsParseExact: true,
  9624. weekdays: weekdays$2,
  9625. weekdaysShort: weekdaysShort$1,
  9626. weekdaysMin: weekdaysMin$1,
  9627. longDateFormat: {
  9628. LT: 'HH:mm',
  9629. LTS: 'HH:mm:ss',
  9630. L: 'DD/MM/YYYY',
  9631. LL: 'D MMMM YYYY',
  9632. LLL: 'D MMMM YYYY HH:mm',
  9633. LLLL: 'dddd, D MMMM YYYY HH:mm',
  9634. },
  9635. calendar: {
  9636. sameDay: '[An-diugh aig] LT',
  9637. nextDay: '[A-màireach aig] LT',
  9638. nextWeek: 'dddd [aig] LT',
  9639. lastDay: '[An-dè aig] LT',
  9640. lastWeek: 'dddd [seo chaidh] [aig] LT',
  9641. sameElse: 'L',
  9642. },
  9643. relativeTime: {
  9644. future: 'ann an %s',
  9645. past: 'bho chionn %s',
  9646. s: 'beagan diogan',
  9647. ss: '%d diogan',
  9648. m: 'mionaid',
  9649. mm: '%d mionaidean',
  9650. h: 'uair',
  9651. hh: '%d uairean',
  9652. d: 'latha',
  9653. dd: '%d latha',
  9654. M: 'mìos',
  9655. MM: '%d mìosan',
  9656. y: 'bliadhna',
  9657. yy: '%d bliadhna',
  9658. },
  9659. dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
  9660. ordinal: function (number) {
  9661. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  9662. return number + output;
  9663. },
  9664. week: {
  9665. dow: 1, // Monday is the first day of the week.
  9666. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9667. },
  9668. });
  9669. //! moment.js locale configuration
  9670. hooks.defineLocale('gl', {
  9671. months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split(
  9672. '_'
  9673. ),
  9674. monthsShort:
  9675. 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split(
  9676. '_'
  9677. ),
  9678. monthsParseExact: true,
  9679. weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
  9680. weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
  9681. weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'),
  9682. weekdaysParseExact: true,
  9683. longDateFormat: {
  9684. LT: 'H:mm',
  9685. LTS: 'H:mm:ss',
  9686. L: 'DD/MM/YYYY',
  9687. LL: 'D [de] MMMM [de] YYYY',
  9688. LLL: 'D [de] MMMM [de] YYYY H:mm',
  9689. LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
  9690. },
  9691. calendar: {
  9692. sameDay: function () {
  9693. return '[hoxe ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
  9694. },
  9695. nextDay: function () {
  9696. return '[mañá ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
  9697. },
  9698. nextWeek: function () {
  9699. return 'dddd [' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';
  9700. },
  9701. lastDay: function () {
  9702. return '[onte ' + (this.hours() !== 1 ? 'á' : 'a') + '] LT';
  9703. },
  9704. lastWeek: function () {
  9705. return (
  9706. '[o] dddd [pasado ' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT'
  9707. );
  9708. },
  9709. sameElse: 'L',
  9710. },
  9711. relativeTime: {
  9712. future: function (str) {
  9713. if (str.indexOf('un') === 0) {
  9714. return 'n' + str;
  9715. }
  9716. return 'en ' + str;
  9717. },
  9718. past: 'hai %s',
  9719. s: 'uns segundos',
  9720. ss: '%d segundos',
  9721. m: 'un minuto',
  9722. mm: '%d minutos',
  9723. h: 'unha hora',
  9724. hh: '%d horas',
  9725. d: 'un día',
  9726. dd: '%d días',
  9727. M: 'un mes',
  9728. MM: '%d meses',
  9729. y: 'un ano',
  9730. yy: '%d anos',
  9731. },
  9732. dayOfMonthOrdinalParse: /\d{1,2}º/,
  9733. ordinal: '%dº',
  9734. week: {
  9735. dow: 1, // Monday is the first day of the week.
  9736. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9737. },
  9738. });
  9739. //! moment.js locale configuration
  9740. function processRelativeTime$5(number, withoutSuffix, key, isFuture) {
  9741. var format = {
  9742. s: ['थोडया सॅकंडांनी', 'थोडे सॅकंड'],
  9743. ss: [number + ' सॅकंडांनी', number + ' सॅकंड'],
  9744. m: ['एका मिणटान', 'एक मिनूट'],
  9745. mm: [number + ' मिणटांनी', number + ' मिणटां'],
  9746. h: ['एका वरान', 'एक वर'],
  9747. hh: [number + ' वरांनी', number + ' वरां'],
  9748. d: ['एका दिसान', 'एक दीस'],
  9749. dd: [number + ' दिसांनी', number + ' दीस'],
  9750. M: ['एका म्हयन्यान', 'एक म्हयनो'],
  9751. MM: [number + ' म्हयन्यानी', number + ' म्हयने'],
  9752. y: ['एका वर्सान', 'एक वर्स'],
  9753. yy: [number + ' वर्सांनी', number + ' वर्सां'],
  9754. };
  9755. return isFuture ? format[key][0] : format[key][1];
  9756. }
  9757. hooks.defineLocale('gom-deva', {
  9758. months: {
  9759. standalone:
  9760. 'जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(
  9761. '_'
  9762. ),
  9763. format: 'जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या'.split(
  9764. '_'
  9765. ),
  9766. isFormat: /MMMM(\s)+D[oD]?/,
  9767. },
  9768. monthsShort:
  9769. 'जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(
  9770. '_'
  9771. ),
  9772. monthsParseExact: true,
  9773. weekdays: 'आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार'.split('_'),
  9774. weekdaysShort: 'आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.'.split('_'),
  9775. weekdaysMin: 'आ_सो_मं_बु_ब्रे_सु_शे'.split('_'),
  9776. weekdaysParseExact: true,
  9777. longDateFormat: {
  9778. LT: 'A h:mm [वाजतां]',
  9779. LTS: 'A h:mm:ss [वाजतां]',
  9780. L: 'DD-MM-YYYY',
  9781. LL: 'D MMMM YYYY',
  9782. LLL: 'D MMMM YYYY A h:mm [वाजतां]',
  9783. LLLL: 'dddd, MMMM Do, YYYY, A h:mm [वाजतां]',
  9784. llll: 'ddd, D MMM YYYY, A h:mm [वाजतां]',
  9785. },
  9786. calendar: {
  9787. sameDay: '[आयज] LT',
  9788. nextDay: '[फाल्यां] LT',
  9789. nextWeek: '[फुडलो] dddd[,] LT',
  9790. lastDay: '[काल] LT',
  9791. lastWeek: '[फाटलो] dddd[,] LT',
  9792. sameElse: 'L',
  9793. },
  9794. relativeTime: {
  9795. future: '%s',
  9796. past: '%s आदीं',
  9797. s: processRelativeTime$5,
  9798. ss: processRelativeTime$5,
  9799. m: processRelativeTime$5,
  9800. mm: processRelativeTime$5,
  9801. h: processRelativeTime$5,
  9802. hh: processRelativeTime$5,
  9803. d: processRelativeTime$5,
  9804. dd: processRelativeTime$5,
  9805. M: processRelativeTime$5,
  9806. MM: processRelativeTime$5,
  9807. y: processRelativeTime$5,
  9808. yy: processRelativeTime$5,
  9809. },
  9810. dayOfMonthOrdinalParse: /\d{1,2}(वेर)/,
  9811. ordinal: function (number, period) {
  9812. switch (period) {
  9813. // the ordinal 'वेर' only applies to day of the month
  9814. case 'D':
  9815. return number + 'वेर';
  9816. default:
  9817. case 'M':
  9818. case 'Q':
  9819. case 'DDD':
  9820. case 'd':
  9821. case 'w':
  9822. case 'W':
  9823. return number;
  9824. }
  9825. },
  9826. week: {
  9827. dow: 0, // Sunday is the first day of the week
  9828. doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
  9829. },
  9830. meridiemParse: /राती|सकाळीं|दनपारां|सांजे/,
  9831. meridiemHour: function (hour, meridiem) {
  9832. if (hour === 12) {
  9833. hour = 0;
  9834. }
  9835. if (meridiem === 'राती') {
  9836. return hour < 4 ? hour : hour + 12;
  9837. } else if (meridiem === 'सकाळीं') {
  9838. return hour;
  9839. } else if (meridiem === 'दनपारां') {
  9840. return hour > 12 ? hour : hour + 12;
  9841. } else if (meridiem === 'सांजे') {
  9842. return hour + 12;
  9843. }
  9844. },
  9845. meridiem: function (hour, minute, isLower) {
  9846. if (hour < 4) {
  9847. return 'राती';
  9848. } else if (hour < 12) {
  9849. return 'सकाळीं';
  9850. } else if (hour < 16) {
  9851. return 'दनपारां';
  9852. } else if (hour < 20) {
  9853. return 'सांजे';
  9854. } else {
  9855. return 'राती';
  9856. }
  9857. },
  9858. });
  9859. //! moment.js locale configuration
  9860. function processRelativeTime$6(number, withoutSuffix, key, isFuture) {
  9861. var format = {
  9862. s: ['thoddea sekondamni', 'thodde sekond'],
  9863. ss: [number + ' sekondamni', number + ' sekond'],
  9864. m: ['eka mintan', 'ek minut'],
  9865. mm: [number + ' mintamni', number + ' mintam'],
  9866. h: ['eka voran', 'ek vor'],
  9867. hh: [number + ' voramni', number + ' voram'],
  9868. d: ['eka disan', 'ek dis'],
  9869. dd: [number + ' disamni', number + ' dis'],
  9870. M: ['eka mhoinean', 'ek mhoino'],
  9871. MM: [number + ' mhoineamni', number + ' mhoine'],
  9872. y: ['eka vorsan', 'ek voros'],
  9873. yy: [number + ' vorsamni', number + ' vorsam'],
  9874. };
  9875. return isFuture ? format[key][0] : format[key][1];
  9876. }
  9877. hooks.defineLocale('gom-latn', {
  9878. months: {
  9879. standalone:
  9880. 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split(
  9881. '_'
  9882. ),
  9883. format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split(
  9884. '_'
  9885. ),
  9886. isFormat: /MMMM(\s)+D[oD]?/,
  9887. },
  9888. monthsShort:
  9889. 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'),
  9890. monthsParseExact: true,
  9891. weekdays: "Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split('_'),
  9892. weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
  9893. weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
  9894. weekdaysParseExact: true,
  9895. longDateFormat: {
  9896. LT: 'A h:mm [vazta]',
  9897. LTS: 'A h:mm:ss [vazta]',
  9898. L: 'DD-MM-YYYY',
  9899. LL: 'D MMMM YYYY',
  9900. LLL: 'D MMMM YYYY A h:mm [vazta]',
  9901. LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]',
  9902. llll: 'ddd, D MMM YYYY, A h:mm [vazta]',
  9903. },
  9904. calendar: {
  9905. sameDay: '[Aiz] LT',
  9906. nextDay: '[Faleam] LT',
  9907. nextWeek: '[Fuddlo] dddd[,] LT',
  9908. lastDay: '[Kal] LT',
  9909. lastWeek: '[Fattlo] dddd[,] LT',
  9910. sameElse: 'L',
  9911. },
  9912. relativeTime: {
  9913. future: '%s',
  9914. past: '%s adim',
  9915. s: processRelativeTime$6,
  9916. ss: processRelativeTime$6,
  9917. m: processRelativeTime$6,
  9918. mm: processRelativeTime$6,
  9919. h: processRelativeTime$6,
  9920. hh: processRelativeTime$6,
  9921. d: processRelativeTime$6,
  9922. dd: processRelativeTime$6,
  9923. M: processRelativeTime$6,
  9924. MM: processRelativeTime$6,
  9925. y: processRelativeTime$6,
  9926. yy: processRelativeTime$6,
  9927. },
  9928. dayOfMonthOrdinalParse: /\d{1,2}(er)/,
  9929. ordinal: function (number, period) {
  9930. switch (period) {
  9931. // the ordinal 'er' only applies to day of the month
  9932. case 'D':
  9933. return number + 'er';
  9934. default:
  9935. case 'M':
  9936. case 'Q':
  9937. case 'DDD':
  9938. case 'd':
  9939. case 'w':
  9940. case 'W':
  9941. return number;
  9942. }
  9943. },
  9944. week: {
  9945. dow: 0, // Sunday is the first day of the week
  9946. doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
  9947. },
  9948. meridiemParse: /rati|sokallim|donparam|sanje/,
  9949. meridiemHour: function (hour, meridiem) {
  9950. if (hour === 12) {
  9951. hour = 0;
  9952. }
  9953. if (meridiem === 'rati') {
  9954. return hour < 4 ? hour : hour + 12;
  9955. } else if (meridiem === 'sokallim') {
  9956. return hour;
  9957. } else if (meridiem === 'donparam') {
  9958. return hour > 12 ? hour : hour + 12;
  9959. } else if (meridiem === 'sanje') {
  9960. return hour + 12;
  9961. }
  9962. },
  9963. meridiem: function (hour, minute, isLower) {
  9964. if (hour < 4) {
  9965. return 'rati';
  9966. } else if (hour < 12) {
  9967. return 'sokallim';
  9968. } else if (hour < 16) {
  9969. return 'donparam';
  9970. } else if (hour < 20) {
  9971. return 'sanje';
  9972. } else {
  9973. return 'rati';
  9974. }
  9975. },
  9976. });
  9977. //! moment.js locale configuration
  9978. var symbolMap$8 = {
  9979. 1: '૧',
  9980. 2: '૨',
  9981. 3: '૩',
  9982. 4: '૪',
  9983. 5: '૫',
  9984. 6: '૬',
  9985. 7: '૭',
  9986. 8: '૮',
  9987. 9: '૯',
  9988. 0: '૦',
  9989. },
  9990. numberMap$7 = {
  9991. '૧': '1',
  9992. '૨': '2',
  9993. '૩': '3',
  9994. '૪': '4',
  9995. '૫': '5',
  9996. '૬': '6',
  9997. '૭': '7',
  9998. '૮': '8',
  9999. '૯': '9',
  10000. '૦': '0',
  10001. };
  10002. hooks.defineLocale('gu', {
  10003. months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split(
  10004. '_'
  10005. ),
  10006. monthsShort:
  10007. 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split(
  10008. '_'
  10009. ),
  10010. monthsParseExact: true,
  10011. weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split(
  10012. '_'
  10013. ),
  10014. weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),
  10015. weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),
  10016. longDateFormat: {
  10017. LT: 'A h:mm વાગ્યે',
  10018. LTS: 'A h:mm:ss વાગ્યે',
  10019. L: 'DD/MM/YYYY',
  10020. LL: 'D MMMM YYYY',
  10021. LLL: 'D MMMM YYYY, A h:mm વાગ્યે',
  10022. LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે',
  10023. },
  10024. calendar: {
  10025. sameDay: '[આજ] LT',
  10026. nextDay: '[કાલે] LT',
  10027. nextWeek: 'dddd, LT',
  10028. lastDay: '[ગઇકાલે] LT',
  10029. lastWeek: '[પાછલા] dddd, LT',
  10030. sameElse: 'L',
  10031. },
  10032. relativeTime: {
  10033. future: '%s મા',
  10034. past: '%s પહેલા',
  10035. s: 'અમુક પળો',
  10036. ss: '%d સેકંડ',
  10037. m: 'એક મિનિટ',
  10038. mm: '%d મિનિટ',
  10039. h: 'એક કલાક',
  10040. hh: '%d કલાક',
  10041. d: 'એક દિવસ',
  10042. dd: '%d દિવસ',
  10043. M: 'એક મહિનો',
  10044. MM: '%d મહિનો',
  10045. y: 'એક વર્ષ',
  10046. yy: '%d વર્ષ',
  10047. },
  10048. preparse: function (string) {
  10049. return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {
  10050. return numberMap$7[match];
  10051. });
  10052. },
  10053. postformat: function (string) {
  10054. return string.replace(/\d/g, function (match) {
  10055. return symbolMap$8[match];
  10056. });
  10057. },
  10058. // Gujarati notation for meridiems are quite fuzzy in practice. While there exists
  10059. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.
  10060. meridiemParse: /રાત|બપોર|સવાર|સાંજ/,
  10061. meridiemHour: function (hour, meridiem) {
  10062. if (hour === 12) {
  10063. hour = 0;
  10064. }
  10065. if (meridiem === 'રાત') {
  10066. return hour < 4 ? hour : hour + 12;
  10067. } else if (meridiem === 'સવાર') {
  10068. return hour;
  10069. } else if (meridiem === 'બપોર') {
  10070. return hour >= 10 ? hour : hour + 12;
  10071. } else if (meridiem === 'સાંજ') {
  10072. return hour + 12;
  10073. }
  10074. },
  10075. meridiem: function (hour, minute, isLower) {
  10076. if (hour < 4) {
  10077. return 'રાત';
  10078. } else if (hour < 10) {
  10079. return 'સવાર';
  10080. } else if (hour < 17) {
  10081. return 'બપોર';
  10082. } else if (hour < 20) {
  10083. return 'સાંજ';
  10084. } else {
  10085. return 'રાત';
  10086. }
  10087. },
  10088. week: {
  10089. dow: 0, // Sunday is the first day of the week.
  10090. doy: 6, // The week that contains Jan 6th is the first week of the year.
  10091. },
  10092. });
  10093. //! moment.js locale configuration
  10094. hooks.defineLocale('he', {
  10095. months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split(
  10096. '_'
  10097. ),
  10098. monthsShort:
  10099. 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
  10100. weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
  10101. weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
  10102. weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'),
  10103. longDateFormat: {
  10104. LT: 'HH:mm',
  10105. LTS: 'HH:mm:ss',
  10106. L: 'DD/MM/YYYY',
  10107. LL: 'D [ב]MMMM YYYY',
  10108. LLL: 'D [ב]MMMM YYYY HH:mm',
  10109. LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',
  10110. l: 'D/M/YYYY',
  10111. ll: 'D MMM YYYY',
  10112. lll: 'D MMM YYYY HH:mm',
  10113. llll: 'ddd, D MMM YYYY HH:mm',
  10114. },
  10115. calendar: {
  10116. sameDay: '[היום ב־]LT',
  10117. nextDay: '[מחר ב־]LT',
  10118. nextWeek: 'dddd [בשעה] LT',
  10119. lastDay: '[אתמול ב־]LT',
  10120. lastWeek: '[ביום] dddd [האחרון בשעה] LT',
  10121. sameElse: 'L',
  10122. },
  10123. relativeTime: {
  10124. future: 'בעוד %s',
  10125. past: 'לפני %s',
  10126. s: 'מספר שניות',
  10127. ss: '%d שניות',
  10128. m: 'דקה',
  10129. mm: '%d דקות',
  10130. h: 'שעה',
  10131. hh: function (number) {
  10132. if (number === 2) {
  10133. return 'שעתיים';
  10134. }
  10135. return number + ' שעות';
  10136. },
  10137. d: 'יום',
  10138. dd: function (number) {
  10139. if (number === 2) {
  10140. return 'יומיים';
  10141. }
  10142. return number + ' ימים';
  10143. },
  10144. M: 'חודש',
  10145. MM: function (number) {
  10146. if (number === 2) {
  10147. return 'חודשיים';
  10148. }
  10149. return number + ' חודשים';
  10150. },
  10151. y: 'שנה',
  10152. yy: function (number) {
  10153. if (number === 2) {
  10154. return 'שנתיים';
  10155. } else if (number % 10 === 0 && number !== 10) {
  10156. return number + ' שנה';
  10157. }
  10158. return number + ' שנים';
  10159. },
  10160. },
  10161. meridiemParse:
  10162. /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
  10163. isPM: function (input) {
  10164. return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
  10165. },
  10166. meridiem: function (hour, minute, isLower) {
  10167. if (hour < 5) {
  10168. return 'לפנות בוקר';
  10169. } else if (hour < 10) {
  10170. return 'בבוקר';
  10171. } else if (hour < 12) {
  10172. return isLower ? 'לפנה"צ' : 'לפני הצהריים';
  10173. } else if (hour < 18) {
  10174. return isLower ? 'אחה"צ' : 'אחרי הצהריים';
  10175. } else {
  10176. return 'בערב';
  10177. }
  10178. },
  10179. });
  10180. //! moment.js locale configuration
  10181. var symbolMap$9 = {
  10182. 1: '१',
  10183. 2: '२',
  10184. 3: '३',
  10185. 4: '४',
  10186. 5: '५',
  10187. 6: '६',
  10188. 7: '७',
  10189. 8: '८',
  10190. 9: '९',
  10191. 0: '०',
  10192. },
  10193. numberMap$8 = {
  10194. '१': '1',
  10195. '२': '2',
  10196. '३': '3',
  10197. '४': '4',
  10198. '५': '5',
  10199. '६': '6',
  10200. '७': '7',
  10201. '८': '8',
  10202. '९': '9',
  10203. '०': '0',
  10204. },
  10205. monthsParse$7 = [
  10206. /^जन/i,
  10207. /^फ़र|फर/i,
  10208. /^मार्च/i,
  10209. /^अप्रै/i,
  10210. /^मई/i,
  10211. /^जून/i,
  10212. /^जुल/i,
  10213. /^अग/i,
  10214. /^सितं|सित/i,
  10215. /^अक्टू/i,
  10216. /^नव|नवं/i,
  10217. /^दिसं|दिस/i,
  10218. ],
  10219. shortMonthsParse = [
  10220. /^जन/i,
  10221. /^फ़र/i,
  10222. /^मार्च/i,
  10223. /^अप्रै/i,
  10224. /^मई/i,
  10225. /^जून/i,
  10226. /^जुल/i,
  10227. /^अग/i,
  10228. /^सित/i,
  10229. /^अक्टू/i,
  10230. /^नव/i,
  10231. /^दिस/i,
  10232. ];
  10233. hooks.defineLocale('hi', {
  10234. months: {
  10235. format: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split(
  10236. '_'
  10237. ),
  10238. standalone:
  10239. 'जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर'.split(
  10240. '_'
  10241. ),
  10242. },
  10243. monthsShort:
  10244. 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
  10245. weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  10246. weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
  10247. weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
  10248. longDateFormat: {
  10249. LT: 'A h:mm बजे',
  10250. LTS: 'A h:mm:ss बजे',
  10251. L: 'DD/MM/YYYY',
  10252. LL: 'D MMMM YYYY',
  10253. LLL: 'D MMMM YYYY, A h:mm बजे',
  10254. LLLL: 'dddd, D MMMM YYYY, A h:mm बजे',
  10255. },
  10256. monthsParse: monthsParse$7,
  10257. longMonthsParse: monthsParse$7,
  10258. shortMonthsParse: shortMonthsParse,
  10259. monthsRegex:
  10260. /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,
  10261. monthsShortRegex:
  10262. /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,
  10263. monthsStrictRegex:
  10264. /^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,
  10265. monthsShortStrictRegex:
  10266. /^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,
  10267. calendar: {
  10268. sameDay: '[आज] LT',
  10269. nextDay: '[कल] LT',
  10270. nextWeek: 'dddd, LT',
  10271. lastDay: '[कल] LT',
  10272. lastWeek: '[पिछले] dddd, LT',
  10273. sameElse: 'L',
  10274. },
  10275. relativeTime: {
  10276. future: '%s में',
  10277. past: '%s पहले',
  10278. s: 'कुछ ही क्षण',
  10279. ss: '%d सेकंड',
  10280. m: 'एक मिनट',
  10281. mm: '%d मिनट',
  10282. h: 'एक घंटा',
  10283. hh: '%d घंटे',
  10284. d: 'एक दिन',
  10285. dd: '%d दिन',
  10286. M: 'एक महीने',
  10287. MM: '%d महीने',
  10288. y: 'एक वर्ष',
  10289. yy: '%d वर्ष',
  10290. },
  10291. preparse: function (string) {
  10292. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  10293. return numberMap$8[match];
  10294. });
  10295. },
  10296. postformat: function (string) {
  10297. return string.replace(/\d/g, function (match) {
  10298. return symbolMap$9[match];
  10299. });
  10300. },
  10301. // Hindi notation for meridiems are quite fuzzy in practice. While there exists
  10302. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
  10303. meridiemParse: /रात|सुबह|दोपहर|शाम/,
  10304. meridiemHour: function (hour, meridiem) {
  10305. if (hour === 12) {
  10306. hour = 0;
  10307. }
  10308. if (meridiem === 'रात') {
  10309. return hour < 4 ? hour : hour + 12;
  10310. } else if (meridiem === 'सुबह') {
  10311. return hour;
  10312. } else if (meridiem === 'दोपहर') {
  10313. return hour >= 10 ? hour : hour + 12;
  10314. } else if (meridiem === 'शाम') {
  10315. return hour + 12;
  10316. }
  10317. },
  10318. meridiem: function (hour, minute, isLower) {
  10319. if (hour < 4) {
  10320. return 'रात';
  10321. } else if (hour < 10) {
  10322. return 'सुबह';
  10323. } else if (hour < 17) {
  10324. return 'दोपहर';
  10325. } else if (hour < 20) {
  10326. return 'शाम';
  10327. } else {
  10328. return 'रात';
  10329. }
  10330. },
  10331. week: {
  10332. dow: 0, // Sunday is the first day of the week.
  10333. doy: 6, // The week that contains Jan 6th is the first week of the year.
  10334. },
  10335. });
  10336. //! moment.js locale configuration
  10337. function translate$3(number, withoutSuffix, key) {
  10338. var result = number + ' ';
  10339. switch (key) {
  10340. case 'ss':
  10341. if (number === 1) {
  10342. result += 'sekunda';
  10343. } else if (number === 2 || number === 3 || number === 4) {
  10344. result += 'sekunde';
  10345. } else {
  10346. result += 'sekundi';
  10347. }
  10348. return result;
  10349. case 'm':
  10350. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  10351. case 'mm':
  10352. if (number === 1) {
  10353. result += 'minuta';
  10354. } else if (number === 2 || number === 3 || number === 4) {
  10355. result += 'minute';
  10356. } else {
  10357. result += 'minuta';
  10358. }
  10359. return result;
  10360. case 'h':
  10361. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  10362. case 'hh':
  10363. if (number === 1) {
  10364. result += 'sat';
  10365. } else if (number === 2 || number === 3 || number === 4) {
  10366. result += 'sata';
  10367. } else {
  10368. result += 'sati';
  10369. }
  10370. return result;
  10371. case 'dd':
  10372. if (number === 1) {
  10373. result += 'dan';
  10374. } else {
  10375. result += 'dana';
  10376. }
  10377. return result;
  10378. case 'MM':
  10379. if (number === 1) {
  10380. result += 'mjesec';
  10381. } else if (number === 2 || number === 3 || number === 4) {
  10382. result += 'mjeseca';
  10383. } else {
  10384. result += 'mjeseci';
  10385. }
  10386. return result;
  10387. case 'yy':
  10388. if (number === 1) {
  10389. result += 'godina';
  10390. } else if (number === 2 || number === 3 || number === 4) {
  10391. result += 'godine';
  10392. } else {
  10393. result += 'godina';
  10394. }
  10395. return result;
  10396. }
  10397. }
  10398. hooks.defineLocale('hr', {
  10399. months: {
  10400. format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split(
  10401. '_'
  10402. ),
  10403. standalone:
  10404. 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split(
  10405. '_'
  10406. ),
  10407. },
  10408. monthsShort:
  10409. 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split(
  10410. '_'
  10411. ),
  10412. monthsParseExact: true,
  10413. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
  10414. '_'
  10415. ),
  10416. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  10417. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  10418. weekdaysParseExact: true,
  10419. longDateFormat: {
  10420. LT: 'H:mm',
  10421. LTS: 'H:mm:ss',
  10422. L: 'DD.MM.YYYY',
  10423. LL: 'Do MMMM YYYY',
  10424. LLL: 'Do MMMM YYYY H:mm',
  10425. LLLL: 'dddd, Do MMMM YYYY H:mm',
  10426. },
  10427. calendar: {
  10428. sameDay: '[danas u] LT',
  10429. nextDay: '[sutra u] LT',
  10430. nextWeek: function () {
  10431. switch (this.day()) {
  10432. case 0:
  10433. return '[u] [nedjelju] [u] LT';
  10434. case 3:
  10435. return '[u] [srijedu] [u] LT';
  10436. case 6:
  10437. return '[u] [subotu] [u] LT';
  10438. case 1:
  10439. case 2:
  10440. case 4:
  10441. case 5:
  10442. return '[u] dddd [u] LT';
  10443. }
  10444. },
  10445. lastDay: '[jučer u] LT',
  10446. lastWeek: function () {
  10447. switch (this.day()) {
  10448. case 0:
  10449. return '[prošlu] [nedjelju] [u] LT';
  10450. case 3:
  10451. return '[prošlu] [srijedu] [u] LT';
  10452. case 6:
  10453. return '[prošle] [subote] [u] LT';
  10454. case 1:
  10455. case 2:
  10456. case 4:
  10457. case 5:
  10458. return '[prošli] dddd [u] LT';
  10459. }
  10460. },
  10461. sameElse: 'L',
  10462. },
  10463. relativeTime: {
  10464. future: 'za %s',
  10465. past: 'prije %s',
  10466. s: 'par sekundi',
  10467. ss: translate$3,
  10468. m: translate$3,
  10469. mm: translate$3,
  10470. h: translate$3,
  10471. hh: translate$3,
  10472. d: 'dan',
  10473. dd: translate$3,
  10474. M: 'mjesec',
  10475. MM: translate$3,
  10476. y: 'godinu',
  10477. yy: translate$3,
  10478. },
  10479. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10480. ordinal: '%d.',
  10481. week: {
  10482. dow: 1, // Monday is the first day of the week.
  10483. doy: 7, // The week that contains Jan 7th is the first week of the year.
  10484. },
  10485. });
  10486. //! moment.js locale configuration
  10487. var weekEndings =
  10488. 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
  10489. function translate$4(number, withoutSuffix, key, isFuture) {
  10490. var num = number;
  10491. switch (key) {
  10492. case 's':
  10493. return isFuture || withoutSuffix
  10494. ? 'néhány másodperc'
  10495. : 'néhány másodperce';
  10496. case 'ss':
  10497. return num + (isFuture || withoutSuffix)
  10498. ? ' másodperc'
  10499. : ' másodperce';
  10500. case 'm':
  10501. return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
  10502. case 'mm':
  10503. return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
  10504. case 'h':
  10505. return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
  10506. case 'hh':
  10507. return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
  10508. case 'd':
  10509. return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
  10510. case 'dd':
  10511. return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
  10512. case 'M':
  10513. return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  10514. case 'MM':
  10515. return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  10516. case 'y':
  10517. return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
  10518. case 'yy':
  10519. return num + (isFuture || withoutSuffix ? ' év' : ' éve');
  10520. }
  10521. return '';
  10522. }
  10523. function week(isFuture) {
  10524. return (
  10525. (isFuture ? '' : '[múlt] ') +
  10526. '[' +
  10527. weekEndings[this.day()] +
  10528. '] LT[-kor]'
  10529. );
  10530. }
  10531. hooks.defineLocale('hu', {
  10532. months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split(
  10533. '_'
  10534. ),
  10535. monthsShort:
  10536. 'jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.'.split(
  10537. '_'
  10538. ),
  10539. monthsParseExact: true,
  10540. weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
  10541. weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
  10542. weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),
  10543. longDateFormat: {
  10544. LT: 'H:mm',
  10545. LTS: 'H:mm:ss',
  10546. L: 'YYYY.MM.DD.',
  10547. LL: 'YYYY. MMMM D.',
  10548. LLL: 'YYYY. MMMM D. H:mm',
  10549. LLLL: 'YYYY. MMMM D., dddd H:mm',
  10550. },
  10551. meridiemParse: /de|du/i,
  10552. isPM: function (input) {
  10553. return input.charAt(1).toLowerCase() === 'u';
  10554. },
  10555. meridiem: function (hours, minutes, isLower) {
  10556. if (hours < 12) {
  10557. return isLower === true ? 'de' : 'DE';
  10558. } else {
  10559. return isLower === true ? 'du' : 'DU';
  10560. }
  10561. },
  10562. calendar: {
  10563. sameDay: '[ma] LT[-kor]',
  10564. nextDay: '[holnap] LT[-kor]',
  10565. nextWeek: function () {
  10566. return week.call(this, true);
  10567. },
  10568. lastDay: '[tegnap] LT[-kor]',
  10569. lastWeek: function () {
  10570. return week.call(this, false);
  10571. },
  10572. sameElse: 'L',
  10573. },
  10574. relativeTime: {
  10575. future: '%s múlva',
  10576. past: '%s',
  10577. s: translate$4,
  10578. ss: translate$4,
  10579. m: translate$4,
  10580. mm: translate$4,
  10581. h: translate$4,
  10582. hh: translate$4,
  10583. d: translate$4,
  10584. dd: translate$4,
  10585. M: translate$4,
  10586. MM: translate$4,
  10587. y: translate$4,
  10588. yy: translate$4,
  10589. },
  10590. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10591. ordinal: '%d.',
  10592. week: {
  10593. dow: 1, // Monday is the first day of the week.
  10594. doy: 4, // The week that contains Jan 4th is the first week of the year.
  10595. },
  10596. });
  10597. //! moment.js locale configuration
  10598. hooks.defineLocale('hy-am', {
  10599. months: {
  10600. format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split(
  10601. '_'
  10602. ),
  10603. standalone:
  10604. 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split(
  10605. '_'
  10606. ),
  10607. },
  10608. monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
  10609. weekdays:
  10610. 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split(
  10611. '_'
  10612. ),
  10613. weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  10614. weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  10615. longDateFormat: {
  10616. LT: 'HH:mm',
  10617. LTS: 'HH:mm:ss',
  10618. L: 'DD.MM.YYYY',
  10619. LL: 'D MMMM YYYY թ.',
  10620. LLL: 'D MMMM YYYY թ., HH:mm',
  10621. LLLL: 'dddd, D MMMM YYYY թ., HH:mm',
  10622. },
  10623. calendar: {
  10624. sameDay: '[այսօր] LT',
  10625. nextDay: '[վաղը] LT',
  10626. lastDay: '[երեկ] LT',
  10627. nextWeek: function () {
  10628. return 'dddd [օրը ժամը] LT';
  10629. },
  10630. lastWeek: function () {
  10631. return '[անցած] dddd [օրը ժամը] LT';
  10632. },
  10633. sameElse: 'L',
  10634. },
  10635. relativeTime: {
  10636. future: '%s հետո',
  10637. past: '%s առաջ',
  10638. s: 'մի քանի վայրկյան',
  10639. ss: '%d վայրկյան',
  10640. m: 'րոպե',
  10641. mm: '%d րոպե',
  10642. h: 'ժամ',
  10643. hh: '%d ժամ',
  10644. d: 'օր',
  10645. dd: '%d օր',
  10646. M: 'ամիս',
  10647. MM: '%d ամիս',
  10648. y: 'տարի',
  10649. yy: '%d տարի',
  10650. },
  10651. meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
  10652. isPM: function (input) {
  10653. return /^(ցերեկվա|երեկոյան)$/.test(input);
  10654. },
  10655. meridiem: function (hour) {
  10656. if (hour < 4) {
  10657. return 'գիշերվա';
  10658. } else if (hour < 12) {
  10659. return 'առավոտվա';
  10660. } else if (hour < 17) {
  10661. return 'ցերեկվա';
  10662. } else {
  10663. return 'երեկոյան';
  10664. }
  10665. },
  10666. dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
  10667. ordinal: function (number, period) {
  10668. switch (period) {
  10669. case 'DDD':
  10670. case 'w':
  10671. case 'W':
  10672. case 'DDDo':
  10673. if (number === 1) {
  10674. return number + '-ին';
  10675. }
  10676. return number + '-րդ';
  10677. default:
  10678. return number;
  10679. }
  10680. },
  10681. week: {
  10682. dow: 1, // Monday is the first day of the week.
  10683. doy: 7, // The week that contains Jan 7th is the first week of the year.
  10684. },
  10685. });
  10686. //! moment.js locale configuration
  10687. hooks.defineLocale('id', {
  10688. months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split(
  10689. '_'
  10690. ),
  10691. monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),
  10692. weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
  10693. weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
  10694. weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
  10695. longDateFormat: {
  10696. LT: 'HH.mm',
  10697. LTS: 'HH.mm.ss',
  10698. L: 'DD/MM/YYYY',
  10699. LL: 'D MMMM YYYY',
  10700. LLL: 'D MMMM YYYY [pukul] HH.mm',
  10701. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
  10702. },
  10703. meridiemParse: /pagi|siang|sore|malam/,
  10704. meridiemHour: function (hour, meridiem) {
  10705. if (hour === 12) {
  10706. hour = 0;
  10707. }
  10708. if (meridiem === 'pagi') {
  10709. return hour;
  10710. } else if (meridiem === 'siang') {
  10711. return hour >= 11 ? hour : hour + 12;
  10712. } else if (meridiem === 'sore' || meridiem === 'malam') {
  10713. return hour + 12;
  10714. }
  10715. },
  10716. meridiem: function (hours, minutes, isLower) {
  10717. if (hours < 11) {
  10718. return 'pagi';
  10719. } else if (hours < 15) {
  10720. return 'siang';
  10721. } else if (hours < 19) {
  10722. return 'sore';
  10723. } else {
  10724. return 'malam';
  10725. }
  10726. },
  10727. calendar: {
  10728. sameDay: '[Hari ini pukul] LT',
  10729. nextDay: '[Besok pukul] LT',
  10730. nextWeek: 'dddd [pukul] LT',
  10731. lastDay: '[Kemarin pukul] LT',
  10732. lastWeek: 'dddd [lalu pukul] LT',
  10733. sameElse: 'L',
  10734. },
  10735. relativeTime: {
  10736. future: 'dalam %s',
  10737. past: '%s yang lalu',
  10738. s: 'beberapa detik',
  10739. ss: '%d detik',
  10740. m: 'semenit',
  10741. mm: '%d menit',
  10742. h: 'sejam',
  10743. hh: '%d jam',
  10744. d: 'sehari',
  10745. dd: '%d hari',
  10746. M: 'sebulan',
  10747. MM: '%d bulan',
  10748. y: 'setahun',
  10749. yy: '%d tahun',
  10750. },
  10751. week: {
  10752. dow: 0, // Sunday is the first day of the week.
  10753. doy: 6, // The week that contains Jan 6th is the first week of the year.
  10754. },
  10755. });
  10756. //! moment.js locale configuration
  10757. function plural$2(n) {
  10758. if (n % 100 === 11) {
  10759. return true;
  10760. } else if (n % 10 === 1) {
  10761. return false;
  10762. }
  10763. return true;
  10764. }
  10765. function translate$5(number, withoutSuffix, key, isFuture) {
  10766. var result = number + ' ';
  10767. switch (key) {
  10768. case 's':
  10769. return withoutSuffix || isFuture
  10770. ? 'nokkrar sekúndur'
  10771. : 'nokkrum sekúndum';
  10772. case 'ss':
  10773. if (plural$2(number)) {
  10774. return (
  10775. result +
  10776. (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum')
  10777. );
  10778. }
  10779. return result + 'sekúnda';
  10780. case 'm':
  10781. return withoutSuffix ? 'mínúta' : 'mínútu';
  10782. case 'mm':
  10783. if (plural$2(number)) {
  10784. return (
  10785. result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum')
  10786. );
  10787. } else if (withoutSuffix) {
  10788. return result + 'mínúta';
  10789. }
  10790. return result + 'mínútu';
  10791. case 'hh':
  10792. if (plural$2(number)) {
  10793. return (
  10794. result +
  10795. (withoutSuffix || isFuture
  10796. ? 'klukkustundir'
  10797. : 'klukkustundum')
  10798. );
  10799. }
  10800. return result + 'klukkustund';
  10801. case 'd':
  10802. if (withoutSuffix) {
  10803. return 'dagur';
  10804. }
  10805. return isFuture ? 'dag' : 'degi';
  10806. case 'dd':
  10807. if (plural$2(number)) {
  10808. if (withoutSuffix) {
  10809. return result + 'dagar';
  10810. }
  10811. return result + (isFuture ? 'daga' : 'dögum');
  10812. } else if (withoutSuffix) {
  10813. return result + 'dagur';
  10814. }
  10815. return result + (isFuture ? 'dag' : 'degi');
  10816. case 'M':
  10817. if (withoutSuffix) {
  10818. return 'mánuður';
  10819. }
  10820. return isFuture ? 'mánuð' : 'mánuði';
  10821. case 'MM':
  10822. if (plural$2(number)) {
  10823. if (withoutSuffix) {
  10824. return result + 'mánuðir';
  10825. }
  10826. return result + (isFuture ? 'mánuði' : 'mánuðum');
  10827. } else if (withoutSuffix) {
  10828. return result + 'mánuður';
  10829. }
  10830. return result + (isFuture ? 'mánuð' : 'mánuði');
  10831. case 'y':
  10832. return withoutSuffix || isFuture ? 'ár' : 'ári';
  10833. case 'yy':
  10834. if (plural$2(number)) {
  10835. return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
  10836. }
  10837. return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
  10838. }
  10839. }
  10840. hooks.defineLocale('is', {
  10841. months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split(
  10842. '_'
  10843. ),
  10844. monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
  10845. weekdays:
  10846. 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split(
  10847. '_'
  10848. ),
  10849. weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
  10850. weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
  10851. longDateFormat: {
  10852. LT: 'H:mm',
  10853. LTS: 'H:mm:ss',
  10854. L: 'DD.MM.YYYY',
  10855. LL: 'D. MMMM YYYY',
  10856. LLL: 'D. MMMM YYYY [kl.] H:mm',
  10857. LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm',
  10858. },
  10859. calendar: {
  10860. sameDay: '[í dag kl.] LT',
  10861. nextDay: '[á morgun kl.] LT',
  10862. nextWeek: 'dddd [kl.] LT',
  10863. lastDay: '[í gær kl.] LT',
  10864. lastWeek: '[síðasta] dddd [kl.] LT',
  10865. sameElse: 'L',
  10866. },
  10867. relativeTime: {
  10868. future: 'eftir %s',
  10869. past: 'fyrir %s síðan',
  10870. s: translate$5,
  10871. ss: translate$5,
  10872. m: translate$5,
  10873. mm: translate$5,
  10874. h: 'klukkustund',
  10875. hh: translate$5,
  10876. d: translate$5,
  10877. dd: translate$5,
  10878. M: translate$5,
  10879. MM: translate$5,
  10880. y: translate$5,
  10881. yy: translate$5,
  10882. },
  10883. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10884. ordinal: '%d.',
  10885. week: {
  10886. dow: 1, // Monday is the first day of the week.
  10887. doy: 4, // The week that contains Jan 4th is the first week of the year.
  10888. },
  10889. });
  10890. //! moment.js locale configuration
  10891. hooks.defineLocale('it-ch', {
  10892. months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(
  10893. '_'
  10894. ),
  10895. monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  10896. weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(
  10897. '_'
  10898. ),
  10899. weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
  10900. weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
  10901. longDateFormat: {
  10902. LT: 'HH:mm',
  10903. LTS: 'HH:mm:ss',
  10904. L: 'DD.MM.YYYY',
  10905. LL: 'D MMMM YYYY',
  10906. LLL: 'D MMMM YYYY HH:mm',
  10907. LLLL: 'dddd D MMMM YYYY HH:mm',
  10908. },
  10909. calendar: {
  10910. sameDay: '[Oggi alle] LT',
  10911. nextDay: '[Domani alle] LT',
  10912. nextWeek: 'dddd [alle] LT',
  10913. lastDay: '[Ieri alle] LT',
  10914. lastWeek: function () {
  10915. switch (this.day()) {
  10916. case 0:
  10917. return '[la scorsa] dddd [alle] LT';
  10918. default:
  10919. return '[lo scorso] dddd [alle] LT';
  10920. }
  10921. },
  10922. sameElse: 'L',
  10923. },
  10924. relativeTime: {
  10925. future: function (s) {
  10926. return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s;
  10927. },
  10928. past: '%s fa',
  10929. s: 'alcuni secondi',
  10930. ss: '%d secondi',
  10931. m: 'un minuto',
  10932. mm: '%d minuti',
  10933. h: "un'ora",
  10934. hh: '%d ore',
  10935. d: 'un giorno',
  10936. dd: '%d giorni',
  10937. M: 'un mese',
  10938. MM: '%d mesi',
  10939. y: 'un anno',
  10940. yy: '%d anni',
  10941. },
  10942. dayOfMonthOrdinalParse: /\d{1,2}º/,
  10943. ordinal: '%dº',
  10944. week: {
  10945. dow: 1, // Monday is the first day of the week.
  10946. doy: 4, // The week that contains Jan 4th is the first week of the year.
  10947. },
  10948. });
  10949. //! moment.js locale configuration
  10950. hooks.defineLocale('it', {
  10951. months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(
  10952. '_'
  10953. ),
  10954. monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  10955. weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(
  10956. '_'
  10957. ),
  10958. weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
  10959. weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
  10960. longDateFormat: {
  10961. LT: 'HH:mm',
  10962. LTS: 'HH:mm:ss',
  10963. L: 'DD/MM/YYYY',
  10964. LL: 'D MMMM YYYY',
  10965. LLL: 'D MMMM YYYY HH:mm',
  10966. LLLL: 'dddd D MMMM YYYY HH:mm',
  10967. },
  10968. calendar: {
  10969. sameDay: function () {
  10970. return (
  10971. '[Oggi a' +
  10972. (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  10973. ']LT'
  10974. );
  10975. },
  10976. nextDay: function () {
  10977. return (
  10978. '[Domani a' +
  10979. (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  10980. ']LT'
  10981. );
  10982. },
  10983. nextWeek: function () {
  10984. return (
  10985. 'dddd [a' +
  10986. (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  10987. ']LT'
  10988. );
  10989. },
  10990. lastDay: function () {
  10991. return (
  10992. '[Ieri a' +
  10993. (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  10994. ']LT'
  10995. );
  10996. },
  10997. lastWeek: function () {
  10998. switch (this.day()) {
  10999. case 0:
  11000. return (
  11001. '[La scorsa] dddd [a' +
  11002. (this.hours() > 1
  11003. ? 'lle '
  11004. : this.hours() === 0
  11005. ? ' '
  11006. : "ll'") +
  11007. ']LT'
  11008. );
  11009. default:
  11010. return (
  11011. '[Lo scorso] dddd [a' +
  11012. (this.hours() > 1
  11013. ? 'lle '
  11014. : this.hours() === 0
  11015. ? ' '
  11016. : "ll'") +
  11017. ']LT'
  11018. );
  11019. }
  11020. },
  11021. sameElse: 'L',
  11022. },
  11023. relativeTime: {
  11024. future: 'tra %s',
  11025. past: '%s fa',
  11026. s: 'alcuni secondi',
  11027. ss: '%d secondi',
  11028. m: 'un minuto',
  11029. mm: '%d minuti',
  11030. h: "un'ora",
  11031. hh: '%d ore',
  11032. d: 'un giorno',
  11033. dd: '%d giorni',
  11034. w: 'una settimana',
  11035. ww: '%d settimane',
  11036. M: 'un mese',
  11037. MM: '%d mesi',
  11038. y: 'un anno',
  11039. yy: '%d anni',
  11040. },
  11041. dayOfMonthOrdinalParse: /\d{1,2}º/,
  11042. ordinal: '%dº',
  11043. week: {
  11044. dow: 1, // Monday is the first day of the week.
  11045. doy: 4, // The week that contains Jan 4th is the first week of the year.
  11046. },
  11047. });
  11048. //! moment.js locale configuration
  11049. hooks.defineLocale('ja', {
  11050. eras: [
  11051. {
  11052. since: '2019-05-01',
  11053. offset: 1,
  11054. name: '令和',
  11055. narrow: '㋿',
  11056. abbr: 'R',
  11057. },
  11058. {
  11059. since: '1989-01-08',
  11060. until: '2019-04-30',
  11061. offset: 1,
  11062. name: '平成',
  11063. narrow: '㍻',
  11064. abbr: 'H',
  11065. },
  11066. {
  11067. since: '1926-12-25',
  11068. until: '1989-01-07',
  11069. offset: 1,
  11070. name: '昭和',
  11071. narrow: '㍼',
  11072. abbr: 'S',
  11073. },
  11074. {
  11075. since: '1912-07-30',
  11076. until: '1926-12-24',
  11077. offset: 1,
  11078. name: '大正',
  11079. narrow: '㍽',
  11080. abbr: 'T',
  11081. },
  11082. {
  11083. since: '1873-01-01',
  11084. until: '1912-07-29',
  11085. offset: 6,
  11086. name: '明治',
  11087. narrow: '㍾',
  11088. abbr: 'M',
  11089. },
  11090. {
  11091. since: '0001-01-01',
  11092. until: '1873-12-31',
  11093. offset: 1,
  11094. name: '西暦',
  11095. narrow: 'AD',
  11096. abbr: 'AD',
  11097. },
  11098. {
  11099. since: '0000-12-31',
  11100. until: -Infinity,
  11101. offset: 1,
  11102. name: '紀元前',
  11103. narrow: 'BC',
  11104. abbr: 'BC',
  11105. },
  11106. ],
  11107. eraYearOrdinalRegex: /(元|\d+)年/,
  11108. eraYearOrdinalParse: function (input, match) {
  11109. return match[1] === '元' ? 1 : parseInt(match[1] || input, 10);
  11110. },
  11111. months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  11112. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  11113. '_'
  11114. ),
  11115. weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
  11116. weekdaysShort: '日_月_火_水_木_金_土'.split('_'),
  11117. weekdaysMin: '日_月_火_水_木_金_土'.split('_'),
  11118. longDateFormat: {
  11119. LT: 'HH:mm',
  11120. LTS: 'HH:mm:ss',
  11121. L: 'YYYY/MM/DD',
  11122. LL: 'YYYY年M月D日',
  11123. LLL: 'YYYY年M月D日 HH:mm',
  11124. LLLL: 'YYYY年M月D日 dddd HH:mm',
  11125. l: 'YYYY/MM/DD',
  11126. ll: 'YYYY年M月D日',
  11127. lll: 'YYYY年M月D日 HH:mm',
  11128. llll: 'YYYY年M月D日(ddd) HH:mm',
  11129. },
  11130. meridiemParse: /午前|午後/i,
  11131. isPM: function (input) {
  11132. return input === '午後';
  11133. },
  11134. meridiem: function (hour, minute, isLower) {
  11135. if (hour < 12) {
  11136. return '午前';
  11137. } else {
  11138. return '午後';
  11139. }
  11140. },
  11141. calendar: {
  11142. sameDay: '[今日] LT',
  11143. nextDay: '[明日] LT',
  11144. nextWeek: function (now) {
  11145. if (now.week() !== this.week()) {
  11146. return '[来週]dddd LT';
  11147. } else {
  11148. return 'dddd LT';
  11149. }
  11150. },
  11151. lastDay: '[昨日] LT',
  11152. lastWeek: function (now) {
  11153. if (this.week() !== now.week()) {
  11154. return '[先週]dddd LT';
  11155. } else {
  11156. return 'dddd LT';
  11157. }
  11158. },
  11159. sameElse: 'L',
  11160. },
  11161. dayOfMonthOrdinalParse: /\d{1,2}日/,
  11162. ordinal: function (number, period) {
  11163. switch (period) {
  11164. case 'y':
  11165. return number === 1 ? '元年' : number + '年';
  11166. case 'd':
  11167. case 'D':
  11168. case 'DDD':
  11169. return number + '日';
  11170. default:
  11171. return number;
  11172. }
  11173. },
  11174. relativeTime: {
  11175. future: '%s後',
  11176. past: '%s前',
  11177. s: '数秒',
  11178. ss: '%d秒',
  11179. m: '1分',
  11180. mm: '%d分',
  11181. h: '1時間',
  11182. hh: '%d時間',
  11183. d: '1日',
  11184. dd: '%d日',
  11185. M: '1ヶ月',
  11186. MM: '%dヶ月',
  11187. y: '1年',
  11188. yy: '%d年',
  11189. },
  11190. });
  11191. //! moment.js locale configuration
  11192. hooks.defineLocale('jv', {
  11193. months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split(
  11194. '_'
  11195. ),
  11196. monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
  11197. weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
  11198. weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
  11199. weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
  11200. longDateFormat: {
  11201. LT: 'HH.mm',
  11202. LTS: 'HH.mm.ss',
  11203. L: 'DD/MM/YYYY',
  11204. LL: 'D MMMM YYYY',
  11205. LLL: 'D MMMM YYYY [pukul] HH.mm',
  11206. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
  11207. },
  11208. meridiemParse: /enjing|siyang|sonten|ndalu/,
  11209. meridiemHour: function (hour, meridiem) {
  11210. if (hour === 12) {
  11211. hour = 0;
  11212. }
  11213. if (meridiem === 'enjing') {
  11214. return hour;
  11215. } else if (meridiem === 'siyang') {
  11216. return hour >= 11 ? hour : hour + 12;
  11217. } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
  11218. return hour + 12;
  11219. }
  11220. },
  11221. meridiem: function (hours, minutes, isLower) {
  11222. if (hours < 11) {
  11223. return 'enjing';
  11224. } else if (hours < 15) {
  11225. return 'siyang';
  11226. } else if (hours < 19) {
  11227. return 'sonten';
  11228. } else {
  11229. return 'ndalu';
  11230. }
  11231. },
  11232. calendar: {
  11233. sameDay: '[Dinten puniko pukul] LT',
  11234. nextDay: '[Mbenjang pukul] LT',
  11235. nextWeek: 'dddd [pukul] LT',
  11236. lastDay: '[Kala wingi pukul] LT',
  11237. lastWeek: 'dddd [kepengker pukul] LT',
  11238. sameElse: 'L',
  11239. },
  11240. relativeTime: {
  11241. future: 'wonten ing %s',
  11242. past: '%s ingkang kepengker',
  11243. s: 'sawetawis detik',
  11244. ss: '%d detik',
  11245. m: 'setunggal menit',
  11246. mm: '%d menit',
  11247. h: 'setunggal jam',
  11248. hh: '%d jam',
  11249. d: 'sedinten',
  11250. dd: '%d dinten',
  11251. M: 'sewulan',
  11252. MM: '%d wulan',
  11253. y: 'setaun',
  11254. yy: '%d taun',
  11255. },
  11256. week: {
  11257. dow: 1, // Monday is the first day of the week.
  11258. doy: 7, // The week that contains Jan 7th is the first week of the year.
  11259. },
  11260. });
  11261. //! moment.js locale configuration
  11262. hooks.defineLocale('ka', {
  11263. months: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split(
  11264. '_'
  11265. ),
  11266. monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
  11267. weekdays: {
  11268. standalone:
  11269. 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split(
  11270. '_'
  11271. ),
  11272. format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split(
  11273. '_'
  11274. ),
  11275. isFormat: /(წინა|შემდეგ)/,
  11276. },
  11277. weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
  11278. weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
  11279. longDateFormat: {
  11280. LT: 'HH:mm',
  11281. LTS: 'HH:mm:ss',
  11282. L: 'DD/MM/YYYY',
  11283. LL: 'D MMMM YYYY',
  11284. LLL: 'D MMMM YYYY HH:mm',
  11285. LLLL: 'dddd, D MMMM YYYY HH:mm',
  11286. },
  11287. calendar: {
  11288. sameDay: '[დღეს] LT[-ზე]',
  11289. nextDay: '[ხვალ] LT[-ზე]',
  11290. lastDay: '[გუშინ] LT[-ზე]',
  11291. nextWeek: '[შემდეგ] dddd LT[-ზე]',
  11292. lastWeek: '[წინა] dddd LT-ზე',
  11293. sameElse: 'L',
  11294. },
  11295. relativeTime: {
  11296. future: function (s) {
  11297. return s.replace(
  11298. /(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,
  11299. function ($0, $1, $2) {
  11300. return $2 === 'ი' ? $1 + 'ში' : $1 + $2 + 'ში';
  11301. }
  11302. );
  11303. },
  11304. past: function (s) {
  11305. if (/(წამი|წუთი|საათი|დღე|თვე)/.test(s)) {
  11306. return s.replace(/(ი|ე)$/, 'ის წინ');
  11307. }
  11308. if (/წელი/.test(s)) {
  11309. return s.replace(/წელი$/, 'წლის წინ');
  11310. }
  11311. return s;
  11312. },
  11313. s: 'რამდენიმე წამი',
  11314. ss: '%d წამი',
  11315. m: 'წუთი',
  11316. mm: '%d წუთი',
  11317. h: 'საათი',
  11318. hh: '%d საათი',
  11319. d: 'დღე',
  11320. dd: '%d დღე',
  11321. M: 'თვე',
  11322. MM: '%d თვე',
  11323. y: 'წელი',
  11324. yy: '%d წელი',
  11325. },
  11326. dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
  11327. ordinal: function (number) {
  11328. if (number === 0) {
  11329. return number;
  11330. }
  11331. if (number === 1) {
  11332. return number + '-ლი';
  11333. }
  11334. if (
  11335. number < 20 ||
  11336. (number <= 100 && number % 20 === 0) ||
  11337. number % 100 === 0
  11338. ) {
  11339. return 'მე-' + number;
  11340. }
  11341. return number + '-ე';
  11342. },
  11343. week: {
  11344. dow: 1,
  11345. doy: 7,
  11346. },
  11347. });
  11348. //! moment.js locale configuration
  11349. var suffixes$1 = {
  11350. 0: '-ші',
  11351. 1: '-ші',
  11352. 2: '-ші',
  11353. 3: '-ші',
  11354. 4: '-ші',
  11355. 5: '-ші',
  11356. 6: '-шы',
  11357. 7: '-ші',
  11358. 8: '-ші',
  11359. 9: '-шы',
  11360. 10: '-шы',
  11361. 20: '-шы',
  11362. 30: '-шы',
  11363. 40: '-шы',
  11364. 50: '-ші',
  11365. 60: '-шы',
  11366. 70: '-ші',
  11367. 80: '-ші',
  11368. 90: '-шы',
  11369. 100: '-ші',
  11370. };
  11371. hooks.defineLocale('kk', {
  11372. months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split(
  11373. '_'
  11374. ),
  11375. monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
  11376. weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split(
  11377. '_'
  11378. ),
  11379. weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
  11380. weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
  11381. longDateFormat: {
  11382. LT: 'HH:mm',
  11383. LTS: 'HH:mm:ss',
  11384. L: 'DD.MM.YYYY',
  11385. LL: 'D MMMM YYYY',
  11386. LLL: 'D MMMM YYYY HH:mm',
  11387. LLLL: 'dddd, D MMMM YYYY HH:mm',
  11388. },
  11389. calendar: {
  11390. sameDay: '[Бүгін сағат] LT',
  11391. nextDay: '[Ертең сағат] LT',
  11392. nextWeek: 'dddd [сағат] LT',
  11393. lastDay: '[Кеше сағат] LT',
  11394. lastWeek: '[Өткен аптаның] dddd [сағат] LT',
  11395. sameElse: 'L',
  11396. },
  11397. relativeTime: {
  11398. future: '%s ішінде',
  11399. past: '%s бұрын',
  11400. s: 'бірнеше секунд',
  11401. ss: '%d секунд',
  11402. m: 'бір минут',
  11403. mm: '%d минут',
  11404. h: 'бір сағат',
  11405. hh: '%d сағат',
  11406. d: 'бір күн',
  11407. dd: '%d күн',
  11408. M: 'бір ай',
  11409. MM: '%d ай',
  11410. y: 'бір жыл',
  11411. yy: '%d жыл',
  11412. },
  11413. dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/,
  11414. ordinal: function (number) {
  11415. var a = number % 10,
  11416. b = number >= 100 ? 100 : null;
  11417. return number + (suffixes$1[number] || suffixes$1[a] || suffixes$1[b]);
  11418. },
  11419. week: {
  11420. dow: 1, // Monday is the first day of the week.
  11421. doy: 7, // The week that contains Jan 7th is the first week of the year.
  11422. },
  11423. });
  11424. //! moment.js locale configuration
  11425. var symbolMap$a = {
  11426. 1: '១',
  11427. 2: '២',
  11428. 3: '៣',
  11429. 4: '៤',
  11430. 5: '៥',
  11431. 6: '៦',
  11432. 7: '៧',
  11433. 8: '៨',
  11434. 9: '៩',
  11435. 0: '០',
  11436. },
  11437. numberMap$9 = {
  11438. '១': '1',
  11439. '២': '2',
  11440. '៣': '3',
  11441. '៤': '4',
  11442. '៥': '5',
  11443. '៦': '6',
  11444. '៧': '7',
  11445. '៨': '8',
  11446. '៩': '9',
  11447. '០': '0',
  11448. };
  11449. hooks.defineLocale('km', {
  11450. months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
  11451. '_'
  11452. ),
  11453. monthsShort:
  11454. 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
  11455. '_'
  11456. ),
  11457. weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  11458. weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
  11459. weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
  11460. weekdaysParseExact: true,
  11461. longDateFormat: {
  11462. LT: 'HH:mm',
  11463. LTS: 'HH:mm:ss',
  11464. L: 'DD/MM/YYYY',
  11465. LL: 'D MMMM YYYY',
  11466. LLL: 'D MMMM YYYY HH:mm',
  11467. LLLL: 'dddd, D MMMM YYYY HH:mm',
  11468. },
  11469. meridiemParse: /ព្រឹក|ល្ងាច/,
  11470. isPM: function (input) {
  11471. return input === 'ល្ងាច';
  11472. },
  11473. meridiem: function (hour, minute, isLower) {
  11474. if (hour < 12) {
  11475. return 'ព្រឹក';
  11476. } else {
  11477. return 'ល្ងាច';
  11478. }
  11479. },
  11480. calendar: {
  11481. sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
  11482. nextDay: '[ស្អែក ម៉ោង] LT',
  11483. nextWeek: 'dddd [ម៉ោង] LT',
  11484. lastDay: '[ម្សិលមិញ ម៉ោង] LT',
  11485. lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
  11486. sameElse: 'L',
  11487. },
  11488. relativeTime: {
  11489. future: '%sទៀត',
  11490. past: '%sមុន',
  11491. s: 'ប៉ុន្មានវិនាទី',
  11492. ss: '%d វិនាទី',
  11493. m: 'មួយនាទី',
  11494. mm: '%d នាទី',
  11495. h: 'មួយម៉ោង',
  11496. hh: '%d ម៉ោង',
  11497. d: 'មួយថ្ងៃ',
  11498. dd: '%d ថ្ងៃ',
  11499. M: 'មួយខែ',
  11500. MM: '%d ខែ',
  11501. y: 'មួយឆ្នាំ',
  11502. yy: '%d ឆ្នាំ',
  11503. },
  11504. dayOfMonthOrdinalParse: /ទី\d{1,2}/,
  11505. ordinal: 'ទី%d',
  11506. preparse: function (string) {
  11507. return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) {
  11508. return numberMap$9[match];
  11509. });
  11510. },
  11511. postformat: function (string) {
  11512. return string.replace(/\d/g, function (match) {
  11513. return symbolMap$a[match];
  11514. });
  11515. },
  11516. week: {
  11517. dow: 1, // Monday is the first day of the week.
  11518. doy: 4, // The week that contains Jan 4th is the first week of the year.
  11519. },
  11520. });
  11521. //! moment.js locale configuration
  11522. var symbolMap$b = {
  11523. 1: '೧',
  11524. 2: '೨',
  11525. 3: '೩',
  11526. 4: '೪',
  11527. 5: '೫',
  11528. 6: '೬',
  11529. 7: '೭',
  11530. 8: '೮',
  11531. 9: '೯',
  11532. 0: '೦',
  11533. },
  11534. numberMap$a = {
  11535. '೧': '1',
  11536. '೨': '2',
  11537. '೩': '3',
  11538. '೪': '4',
  11539. '೫': '5',
  11540. '೬': '6',
  11541. '೭': '7',
  11542. '೮': '8',
  11543. '೯': '9',
  11544. '೦': '0',
  11545. };
  11546. hooks.defineLocale('kn', {
  11547. months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split(
  11548. '_'
  11549. ),
  11550. monthsShort:
  11551. 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split(
  11552. '_'
  11553. ),
  11554. monthsParseExact: true,
  11555. weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split(
  11556. '_'
  11557. ),
  11558. weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
  11559. weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
  11560. longDateFormat: {
  11561. LT: 'A h:mm',
  11562. LTS: 'A h:mm:ss',
  11563. L: 'DD/MM/YYYY',
  11564. LL: 'D MMMM YYYY',
  11565. LLL: 'D MMMM YYYY, A h:mm',
  11566. LLLL: 'dddd, D MMMM YYYY, A h:mm',
  11567. },
  11568. calendar: {
  11569. sameDay: '[ಇಂದು] LT',
  11570. nextDay: '[ನಾಳೆ] LT',
  11571. nextWeek: 'dddd, LT',
  11572. lastDay: '[ನಿನ್ನೆ] LT',
  11573. lastWeek: '[ಕೊನೆಯ] dddd, LT',
  11574. sameElse: 'L',
  11575. },
  11576. relativeTime: {
  11577. future: '%s ನಂತರ',
  11578. past: '%s ಹಿಂದೆ',
  11579. s: 'ಕೆಲವು ಕ್ಷಣಗಳು',
  11580. ss: '%d ಸೆಕೆಂಡುಗಳು',
  11581. m: 'ಒಂದು ನಿಮಿಷ',
  11582. mm: '%d ನಿಮಿಷ',
  11583. h: 'ಒಂದು ಗಂಟೆ',
  11584. hh: '%d ಗಂಟೆ',
  11585. d: 'ಒಂದು ದಿನ',
  11586. dd: '%d ದಿನ',
  11587. M: 'ಒಂದು ತಿಂಗಳು',
  11588. MM: '%d ತಿಂಗಳು',
  11589. y: 'ಒಂದು ವರ್ಷ',
  11590. yy: '%d ವರ್ಷ',
  11591. },
  11592. preparse: function (string) {
  11593. return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {
  11594. return numberMap$a[match];
  11595. });
  11596. },
  11597. postformat: function (string) {
  11598. return string.replace(/\d/g, function (match) {
  11599. return symbolMap$b[match];
  11600. });
  11601. },
  11602. meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
  11603. meridiemHour: function (hour, meridiem) {
  11604. if (hour === 12) {
  11605. hour = 0;
  11606. }
  11607. if (meridiem === 'ರಾತ್ರಿ') {
  11608. return hour < 4 ? hour : hour + 12;
  11609. } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {
  11610. return hour;
  11611. } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {
  11612. return hour >= 10 ? hour : hour + 12;
  11613. } else if (meridiem === 'ಸಂಜೆ') {
  11614. return hour + 12;
  11615. }
  11616. },
  11617. meridiem: function (hour, minute, isLower) {
  11618. if (hour < 4) {
  11619. return 'ರಾತ್ರಿ';
  11620. } else if (hour < 10) {
  11621. return 'ಬೆಳಿಗ್ಗೆ';
  11622. } else if (hour < 17) {
  11623. return 'ಮಧ್ಯಾಹ್ನ';
  11624. } else if (hour < 20) {
  11625. return 'ಸಂಜೆ';
  11626. } else {
  11627. return 'ರಾತ್ರಿ';
  11628. }
  11629. },
  11630. dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
  11631. ordinal: function (number) {
  11632. return number + 'ನೇ';
  11633. },
  11634. week: {
  11635. dow: 0, // Sunday is the first day of the week.
  11636. doy: 6, // The week that contains Jan 6th is the first week of the year.
  11637. },
  11638. });
  11639. //! moment.js locale configuration
  11640. hooks.defineLocale('ko', {
  11641. months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  11642. monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split(
  11643. '_'
  11644. ),
  11645. weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
  11646. weekdaysShort: '일_월_화_수_목_금_토'.split('_'),
  11647. weekdaysMin: '일_월_화_수_목_금_토'.split('_'),
  11648. longDateFormat: {
  11649. LT: 'A h:mm',
  11650. LTS: 'A h:mm:ss',
  11651. L: 'YYYY.MM.DD.',
  11652. LL: 'YYYY년 MMMM D일',
  11653. LLL: 'YYYY년 MMMM D일 A h:mm',
  11654. LLLL: 'YYYY년 MMMM D일 dddd A h:mm',
  11655. l: 'YYYY.MM.DD.',
  11656. ll: 'YYYY년 MMMM D일',
  11657. lll: 'YYYY년 MMMM D일 A h:mm',
  11658. llll: 'YYYY년 MMMM D일 dddd A h:mm',
  11659. },
  11660. calendar: {
  11661. sameDay: '오늘 LT',
  11662. nextDay: '내일 LT',
  11663. nextWeek: 'dddd LT',
  11664. lastDay: '어제 LT',
  11665. lastWeek: '지난주 dddd LT',
  11666. sameElse: 'L',
  11667. },
  11668. relativeTime: {
  11669. future: '%s 후',
  11670. past: '%s 전',
  11671. s: '몇 초',
  11672. ss: '%d초',
  11673. m: '1분',
  11674. mm: '%d분',
  11675. h: '한 시간',
  11676. hh: '%d시간',
  11677. d: '하루',
  11678. dd: '%d일',
  11679. M: '한 달',
  11680. MM: '%d달',
  11681. y: '일 년',
  11682. yy: '%d년',
  11683. },
  11684. dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/,
  11685. ordinal: function (number, period) {
  11686. switch (period) {
  11687. case 'd':
  11688. case 'D':
  11689. case 'DDD':
  11690. return number + '일';
  11691. case 'M':
  11692. return number + '월';
  11693. case 'w':
  11694. case 'W':
  11695. return number + '주';
  11696. default:
  11697. return number;
  11698. }
  11699. },
  11700. meridiemParse: /오전|오후/,
  11701. isPM: function (token) {
  11702. return token === '오후';
  11703. },
  11704. meridiem: function (hour, minute, isUpper) {
  11705. return hour < 12 ? '오전' : '오후';
  11706. },
  11707. });
  11708. //! moment.js locale configuration
  11709. function processRelativeTime$7(num, withoutSuffix, key, isFuture) {
  11710. var format = {
  11711. s: ['çend sanîye', 'çend sanîyeyan'],
  11712. ss: [num + ' sanîye', num + ' sanîyeyan'],
  11713. m: ['deqîqeyek', 'deqîqeyekê'],
  11714. mm: [num + ' deqîqe', num + ' deqîqeyan'],
  11715. h: ['saetek', 'saetekê'],
  11716. hh: [num + ' saet', num + ' saetan'],
  11717. d: ['rojek', 'rojekê'],
  11718. dd: [num + ' roj', num + ' rojan'],
  11719. w: ['hefteyek', 'hefteyekê'],
  11720. ww: [num + ' hefte', num + ' hefteyan'],
  11721. M: ['mehek', 'mehekê'],
  11722. MM: [num + ' meh', num + ' mehan'],
  11723. y: ['salek', 'salekê'],
  11724. yy: [num + ' sal', num + ' salan'],
  11725. };
  11726. return withoutSuffix ? format[key][0] : format[key][1];
  11727. }
  11728. // function obliqueNumSuffix(num) {
  11729. // if(num.includes(':'))
  11730. // num = parseInt(num.split(':')[0]);
  11731. // else
  11732. // num = parseInt(num);
  11733. // return num == 0 || num % 10 == 1 ? 'ê'
  11734. // : (num > 10 && num % 10 == 0 ? 'î' : 'an');
  11735. // }
  11736. function ezafeNumSuffix(num) {
  11737. num = '' + num;
  11738. var l = num.substring(num.length - 1),
  11739. ll = num.length > 1 ? num.substring(num.length - 2) : '';
  11740. if (
  11741. !(ll == 12 || ll == 13) &&
  11742. (l == '2' || l == '3' || ll == '50' || l == '70' || l == '80')
  11743. )
  11744. return 'yê';
  11745. return 'ê';
  11746. }
  11747. hooks.defineLocale('ku-kmr', {
  11748. // According to the spelling rules defined by the work group of Weqfa Mezopotamyayê (Mesopotamia Foundation)
  11749. // this should be: 'Kanûna Paşîn_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Çirîya Pêşîn_Çirîya Paşîn_Kanûna Pêşîn'
  11750. // But the names below are more well known and handy
  11751. months: 'Rêbendan_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Cotmeh_Mijdar_Berfanbar'.split(
  11752. '_'
  11753. ),
  11754. monthsShort: 'Rêb_Sib_Ada_Nîs_Gul_Hez_Tîr_Teb_Îlo_Cot_Mij_Ber'.split('_'),
  11755. monthsParseExact: true,
  11756. weekdays: 'Yekşem_Duşem_Sêşem_Çarşem_Pêncşem_În_Şemî'.split('_'),
  11757. weekdaysShort: 'Yek_Du_Sê_Çar_Pên_În_Şem'.split('_'),
  11758. weekdaysMin: 'Ye_Du_Sê_Ça_Pê_În_Şe'.split('_'),
  11759. meridiem: function (hours, minutes, isLower) {
  11760. if (hours < 12) {
  11761. return isLower ? 'bn' : 'BN';
  11762. } else {
  11763. return isLower ? 'pn' : 'PN';
  11764. }
  11765. },
  11766. meridiemParse: /bn|BN|pn|PN/,
  11767. longDateFormat: {
  11768. LT: 'HH:mm',
  11769. LTS: 'HH:mm:ss',
  11770. L: 'DD.MM.YYYY',
  11771. LL: 'Do MMMM[a] YYYY[an]',
  11772. LLL: 'Do MMMM[a] YYYY[an] HH:mm',
  11773. LLLL: 'dddd, Do MMMM[a] YYYY[an] HH:mm',
  11774. ll: 'Do MMM[.] YYYY[an]',
  11775. lll: 'Do MMM[.] YYYY[an] HH:mm',
  11776. llll: 'ddd[.], Do MMM[.] YYYY[an] HH:mm',
  11777. },
  11778. calendar: {
  11779. sameDay: '[Îro di saet] LT [de]',
  11780. nextDay: '[Sibê di saet] LT [de]',
  11781. nextWeek: 'dddd [di saet] LT [de]',
  11782. lastDay: '[Duh di saet] LT [de]',
  11783. lastWeek: 'dddd[a borî di saet] LT [de]',
  11784. sameElse: 'L',
  11785. },
  11786. relativeTime: {
  11787. future: 'di %s de',
  11788. past: 'berî %s',
  11789. s: processRelativeTime$7,
  11790. ss: processRelativeTime$7,
  11791. m: processRelativeTime$7,
  11792. mm: processRelativeTime$7,
  11793. h: processRelativeTime$7,
  11794. hh: processRelativeTime$7,
  11795. d: processRelativeTime$7,
  11796. dd: processRelativeTime$7,
  11797. w: processRelativeTime$7,
  11798. ww: processRelativeTime$7,
  11799. M: processRelativeTime$7,
  11800. MM: processRelativeTime$7,
  11801. y: processRelativeTime$7,
  11802. yy: processRelativeTime$7,
  11803. },
  11804. dayOfMonthOrdinalParse: /\d{1,2}(?:yê|ê|\.)/,
  11805. ordinal: function (num, period) {
  11806. var p = period.toLowerCase();
  11807. if (p.includes('w') || p.includes('m')) return num + '.';
  11808. return num + ezafeNumSuffix(num);
  11809. },
  11810. week: {
  11811. dow: 1, // Monday is the first day of the week.
  11812. doy: 4, // The week that contains Jan 4th is the first week of the year.
  11813. },
  11814. });
  11815. //! moment.js locale configuration
  11816. var symbolMap$c = {
  11817. 1: '١',
  11818. 2: '٢',
  11819. 3: '٣',
  11820. 4: '٤',
  11821. 5: '٥',
  11822. 6: '٦',
  11823. 7: '٧',
  11824. 8: '٨',
  11825. 9: '٩',
  11826. 0: '٠',
  11827. },
  11828. numberMap$b = {
  11829. '١': '1',
  11830. '٢': '2',
  11831. '٣': '3',
  11832. '٤': '4',
  11833. '٥': '5',
  11834. '٦': '6',
  11835. '٧': '7',
  11836. '٨': '8',
  11837. '٩': '9',
  11838. '٠': '0',
  11839. },
  11840. months$8 = [
  11841. 'کانونی دووەم',
  11842. 'شوبات',
  11843. 'ئازار',
  11844. 'نیسان',
  11845. 'ئایار',
  11846. 'حوزەیران',
  11847. 'تەمموز',
  11848. 'ئاب',
  11849. 'ئەیلوول',
  11850. 'تشرینی یەكەم',
  11851. 'تشرینی دووەم',
  11852. 'كانونی یەکەم',
  11853. ];
  11854. hooks.defineLocale('ku', {
  11855. months: months$8,
  11856. monthsShort: months$8,
  11857. weekdays:
  11858. 'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split(
  11859. '_'
  11860. ),
  11861. weekdaysShort:
  11862. 'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split('_'),
  11863. weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'),
  11864. weekdaysParseExact: true,
  11865. longDateFormat: {
  11866. LT: 'HH:mm',
  11867. LTS: 'HH:mm:ss',
  11868. L: 'DD/MM/YYYY',
  11869. LL: 'D MMMM YYYY',
  11870. LLL: 'D MMMM YYYY HH:mm',
  11871. LLLL: 'dddd, D MMMM YYYY HH:mm',
  11872. },
  11873. meridiemParse: /ئێواره‌|به‌یانی/,
  11874. isPM: function (input) {
  11875. return /ئێواره‌/.test(input);
  11876. },
  11877. meridiem: function (hour, minute, isLower) {
  11878. if (hour < 12) {
  11879. return 'به‌یانی';
  11880. } else {
  11881. return 'ئێواره‌';
  11882. }
  11883. },
  11884. calendar: {
  11885. sameDay: '[ئه‌مرۆ كاتژمێر] LT',
  11886. nextDay: '[به‌یانی كاتژمێر] LT',
  11887. nextWeek: 'dddd [كاتژمێر] LT',
  11888. lastDay: '[دوێنێ كاتژمێر] LT',
  11889. lastWeek: 'dddd [كاتژمێر] LT',
  11890. sameElse: 'L',
  11891. },
  11892. relativeTime: {
  11893. future: 'له‌ %s',
  11894. past: '%s',
  11895. s: 'چه‌ند چركه‌یه‌ك',
  11896. ss: 'چركه‌ %d',
  11897. m: 'یه‌ك خوله‌ك',
  11898. mm: '%d خوله‌ك',
  11899. h: 'یه‌ك كاتژمێر',
  11900. hh: '%d كاتژمێر',
  11901. d: 'یه‌ك ڕۆژ',
  11902. dd: '%d ڕۆژ',
  11903. M: 'یه‌ك مانگ',
  11904. MM: '%d مانگ',
  11905. y: 'یه‌ك ساڵ',
  11906. yy: '%d ساڵ',
  11907. },
  11908. preparse: function (string) {
  11909. return string
  11910. .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  11911. return numberMap$b[match];
  11912. })
  11913. .replace(/،/g, ',');
  11914. },
  11915. postformat: function (string) {
  11916. return string
  11917. .replace(/\d/g, function (match) {
  11918. return symbolMap$c[match];
  11919. })
  11920. .replace(/,/g, '،');
  11921. },
  11922. week: {
  11923. dow: 6, // Saturday is the first day of the week.
  11924. doy: 12, // The week that contains Jan 12th is the first week of the year.
  11925. },
  11926. });
  11927. //! moment.js locale configuration
  11928. var suffixes$2 = {
  11929. 0: '-чү',
  11930. 1: '-чи',
  11931. 2: '-чи',
  11932. 3: '-чү',
  11933. 4: '-чү',
  11934. 5: '-чи',
  11935. 6: '-чы',
  11936. 7: '-чи',
  11937. 8: '-чи',
  11938. 9: '-чу',
  11939. 10: '-чу',
  11940. 20: '-чы',
  11941. 30: '-чу',
  11942. 40: '-чы',
  11943. 50: '-чү',
  11944. 60: '-чы',
  11945. 70: '-чи',
  11946. 80: '-чи',
  11947. 90: '-чу',
  11948. 100: '-чү',
  11949. };
  11950. hooks.defineLocale('ky', {
  11951. months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(
  11952. '_'
  11953. ),
  11954. monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split(
  11955. '_'
  11956. ),
  11957. weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split(
  11958. '_'
  11959. ),
  11960. weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
  11961. weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
  11962. longDateFormat: {
  11963. LT: 'HH:mm',
  11964. LTS: 'HH:mm:ss',
  11965. L: 'DD.MM.YYYY',
  11966. LL: 'D MMMM YYYY',
  11967. LLL: 'D MMMM YYYY HH:mm',
  11968. LLLL: 'dddd, D MMMM YYYY HH:mm',
  11969. },
  11970. calendar: {
  11971. sameDay: '[Бүгүн саат] LT',
  11972. nextDay: '[Эртең саат] LT',
  11973. nextWeek: 'dddd [саат] LT',
  11974. lastDay: '[Кечээ саат] LT',
  11975. lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT',
  11976. sameElse: 'L',
  11977. },
  11978. relativeTime: {
  11979. future: '%s ичинде',
  11980. past: '%s мурун',
  11981. s: 'бирнече секунд',
  11982. ss: '%d секунд',
  11983. m: 'бир мүнөт',
  11984. mm: '%d мүнөт',
  11985. h: 'бир саат',
  11986. hh: '%d саат',
  11987. d: 'бир күн',
  11988. dd: '%d күн',
  11989. M: 'бир ай',
  11990. MM: '%d ай',
  11991. y: 'бир жыл',
  11992. yy: '%d жыл',
  11993. },
  11994. dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/,
  11995. ordinal: function (number) {
  11996. var a = number % 10,
  11997. b = number >= 100 ? 100 : null;
  11998. return number + (suffixes$2[number] || suffixes$2[a] || suffixes$2[b]);
  11999. },
  12000. week: {
  12001. dow: 1, // Monday is the first day of the week.
  12002. doy: 7, // The week that contains Jan 7th is the first week of the year.
  12003. },
  12004. });
  12005. //! moment.js locale configuration
  12006. function processRelativeTime$8(number, withoutSuffix, key, isFuture) {
  12007. var format = {
  12008. m: ['eng Minutt', 'enger Minutt'],
  12009. h: ['eng Stonn', 'enger Stonn'],
  12010. d: ['een Dag', 'engem Dag'],
  12011. M: ['ee Mount', 'engem Mount'],
  12012. y: ['ee Joer', 'engem Joer'],
  12013. };
  12014. return withoutSuffix ? format[key][0] : format[key][1];
  12015. }
  12016. function processFutureTime(string) {
  12017. var number = string.substr(0, string.indexOf(' '));
  12018. if (eifelerRegelAppliesToNumber(number)) {
  12019. return 'a ' + string;
  12020. }
  12021. return 'an ' + string;
  12022. }
  12023. function processPastTime(string) {
  12024. var number = string.substr(0, string.indexOf(' '));
  12025. if (eifelerRegelAppliesToNumber(number)) {
  12026. return 'viru ' + string;
  12027. }
  12028. return 'virun ' + string;
  12029. }
  12030. /**
  12031. * Returns true if the word before the given number loses the '-n' ending.
  12032. * e.g. 'an 10 Deeg' but 'a 5 Deeg'
  12033. *
  12034. * @param number {integer}
  12035. * @returns {boolean}
  12036. */
  12037. function eifelerRegelAppliesToNumber(number) {
  12038. number = parseInt(number, 10);
  12039. if (isNaN(number)) {
  12040. return false;
  12041. }
  12042. if (number < 0) {
  12043. // Negative Number --> always true
  12044. return true;
  12045. } else if (number < 10) {
  12046. // Only 1 digit
  12047. if (4 <= number && number <= 7) {
  12048. return true;
  12049. }
  12050. return false;
  12051. } else if (number < 100) {
  12052. // 2 digits
  12053. var lastDigit = number % 10,
  12054. firstDigit = number / 10;
  12055. if (lastDigit === 0) {
  12056. return eifelerRegelAppliesToNumber(firstDigit);
  12057. }
  12058. return eifelerRegelAppliesToNumber(lastDigit);
  12059. } else if (number < 10000) {
  12060. // 3 or 4 digits --> recursively check first digit
  12061. while (number >= 10) {
  12062. number = number / 10;
  12063. }
  12064. return eifelerRegelAppliesToNumber(number);
  12065. } else {
  12066. // Anything larger than 4 digits: recursively check first n-3 digits
  12067. number = number / 1000;
  12068. return eifelerRegelAppliesToNumber(number);
  12069. }
  12070. }
  12071. hooks.defineLocale('lb', {
  12072. months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  12073. '_'
  12074. ),
  12075. monthsShort:
  12076. 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split(
  12077. '_'
  12078. ),
  12079. monthsParseExact: true,
  12080. weekdays:
  12081. 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split(
  12082. '_'
  12083. ),
  12084. weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
  12085. weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
  12086. weekdaysParseExact: true,
  12087. longDateFormat: {
  12088. LT: 'H:mm [Auer]',
  12089. LTS: 'H:mm:ss [Auer]',
  12090. L: 'DD.MM.YYYY',
  12091. LL: 'D. MMMM YYYY',
  12092. LLL: 'D. MMMM YYYY H:mm [Auer]',
  12093. LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]',
  12094. },
  12095. calendar: {
  12096. sameDay: '[Haut um] LT',
  12097. sameElse: 'L',
  12098. nextDay: '[Muer um] LT',
  12099. nextWeek: 'dddd [um] LT',
  12100. lastDay: '[Gëschter um] LT',
  12101. lastWeek: function () {
  12102. // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
  12103. switch (this.day()) {
  12104. case 2:
  12105. case 4:
  12106. return '[Leschten] dddd [um] LT';
  12107. default:
  12108. return '[Leschte] dddd [um] LT';
  12109. }
  12110. },
  12111. },
  12112. relativeTime: {
  12113. future: processFutureTime,
  12114. past: processPastTime,
  12115. s: 'e puer Sekonnen',
  12116. ss: '%d Sekonnen',
  12117. m: processRelativeTime$8,
  12118. mm: '%d Minutten',
  12119. h: processRelativeTime$8,
  12120. hh: '%d Stonnen',
  12121. d: processRelativeTime$8,
  12122. dd: '%d Deeg',
  12123. M: processRelativeTime$8,
  12124. MM: '%d Méint',
  12125. y: processRelativeTime$8,
  12126. yy: '%d Joer',
  12127. },
  12128. dayOfMonthOrdinalParse: /\d{1,2}\./,
  12129. ordinal: '%d.',
  12130. week: {
  12131. dow: 1, // Monday is the first day of the week.
  12132. doy: 4, // The week that contains Jan 4th is the first week of the year.
  12133. },
  12134. });
  12135. //! moment.js locale configuration
  12136. hooks.defineLocale('lo', {
  12137. months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
  12138. '_'
  12139. ),
  12140. monthsShort:
  12141. 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
  12142. '_'
  12143. ),
  12144. weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  12145. weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  12146. weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
  12147. weekdaysParseExact: true,
  12148. longDateFormat: {
  12149. LT: 'HH:mm',
  12150. LTS: 'HH:mm:ss',
  12151. L: 'DD/MM/YYYY',
  12152. LL: 'D MMMM YYYY',
  12153. LLL: 'D MMMM YYYY HH:mm',
  12154. LLLL: 'ວັນdddd D MMMM YYYY HH:mm',
  12155. },
  12156. meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
  12157. isPM: function (input) {
  12158. return input === 'ຕອນແລງ';
  12159. },
  12160. meridiem: function (hour, minute, isLower) {
  12161. if (hour < 12) {
  12162. return 'ຕອນເຊົ້າ';
  12163. } else {
  12164. return 'ຕອນແລງ';
  12165. }
  12166. },
  12167. calendar: {
  12168. sameDay: '[ມື້ນີ້ເວລາ] LT',
  12169. nextDay: '[ມື້ອື່ນເວລາ] LT',
  12170. nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT',
  12171. lastDay: '[ມື້ວານນີ້ເວລາ] LT',
  12172. lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
  12173. sameElse: 'L',
  12174. },
  12175. relativeTime: {
  12176. future: 'ອີກ %s',
  12177. past: '%sຜ່ານມາ',
  12178. s: 'ບໍ່ເທົ່າໃດວິນາທີ',
  12179. ss: '%d ວິນາທີ',
  12180. m: '1 ນາທີ',
  12181. mm: '%d ນາທີ',
  12182. h: '1 ຊົ່ວໂມງ',
  12183. hh: '%d ຊົ່ວໂມງ',
  12184. d: '1 ມື້',
  12185. dd: '%d ມື້',
  12186. M: '1 ເດືອນ',
  12187. MM: '%d ເດືອນ',
  12188. y: '1 ປີ',
  12189. yy: '%d ປີ',
  12190. },
  12191. dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
  12192. ordinal: function (number) {
  12193. return 'ທີ່' + number;
  12194. },
  12195. });
  12196. //! moment.js locale configuration
  12197. var units = {
  12198. ss: 'sekundė_sekundžių_sekundes',
  12199. m: 'minutė_minutės_minutę',
  12200. mm: 'minutės_minučių_minutes',
  12201. h: 'valanda_valandos_valandą',
  12202. hh: 'valandos_valandų_valandas',
  12203. d: 'diena_dienos_dieną',
  12204. dd: 'dienos_dienų_dienas',
  12205. M: 'mėnuo_mėnesio_mėnesį',
  12206. MM: 'mėnesiai_mėnesių_mėnesius',
  12207. y: 'metai_metų_metus',
  12208. yy: 'metai_metų_metus',
  12209. };
  12210. function translateSeconds(number, withoutSuffix, key, isFuture) {
  12211. if (withoutSuffix) {
  12212. return 'kelios sekundės';
  12213. } else {
  12214. return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
  12215. }
  12216. }
  12217. function translateSingular(number, withoutSuffix, key, isFuture) {
  12218. return withoutSuffix
  12219. ? forms(key)[0]
  12220. : isFuture
  12221. ? forms(key)[1]
  12222. : forms(key)[2];
  12223. }
  12224. function special(number) {
  12225. return number % 10 === 0 || (number > 10 && number < 20);
  12226. }
  12227. function forms(key) {
  12228. return units[key].split('_');
  12229. }
  12230. function translate$6(number, withoutSuffix, key, isFuture) {
  12231. var result = number + ' ';
  12232. if (number === 1) {
  12233. return (
  12234. result + translateSingular(number, withoutSuffix, key[0], isFuture)
  12235. );
  12236. } else if (withoutSuffix) {
  12237. return result + (special(number) ? forms(key)[1] : forms(key)[0]);
  12238. } else {
  12239. if (isFuture) {
  12240. return result + forms(key)[1];
  12241. } else {
  12242. return result + (special(number) ? forms(key)[1] : forms(key)[2]);
  12243. }
  12244. }
  12245. }
  12246. hooks.defineLocale('lt', {
  12247. months: {
  12248. format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split(
  12249. '_'
  12250. ),
  12251. standalone:
  12252. 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split(
  12253. '_'
  12254. ),
  12255. isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/,
  12256. },
  12257. monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
  12258. weekdays: {
  12259. format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split(
  12260. '_'
  12261. ),
  12262. standalone:
  12263. 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split(
  12264. '_'
  12265. ),
  12266. isFormat: /dddd HH:mm/,
  12267. },
  12268. weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
  12269. weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'),
  12270. weekdaysParseExact: true,
  12271. longDateFormat: {
  12272. LT: 'HH:mm',
  12273. LTS: 'HH:mm:ss',
  12274. L: 'YYYY-MM-DD',
  12275. LL: 'YYYY [m.] MMMM D [d.]',
  12276. LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  12277. LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
  12278. l: 'YYYY-MM-DD',
  12279. ll: 'YYYY [m.] MMMM D [d.]',
  12280. lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  12281. llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]',
  12282. },
  12283. calendar: {
  12284. sameDay: '[Šiandien] LT',
  12285. nextDay: '[Rytoj] LT',
  12286. nextWeek: 'dddd LT',
  12287. lastDay: '[Vakar] LT',
  12288. lastWeek: '[Praėjusį] dddd LT',
  12289. sameElse: 'L',
  12290. },
  12291. relativeTime: {
  12292. future: 'po %s',
  12293. past: 'prieš %s',
  12294. s: translateSeconds,
  12295. ss: translate$6,
  12296. m: translateSingular,
  12297. mm: translate$6,
  12298. h: translateSingular,
  12299. hh: translate$6,
  12300. d: translateSingular,
  12301. dd: translate$6,
  12302. M: translateSingular,
  12303. MM: translate$6,
  12304. y: translateSingular,
  12305. yy: translate$6,
  12306. },
  12307. dayOfMonthOrdinalParse: /\d{1,2}-oji/,
  12308. ordinal: function (number) {
  12309. return number + '-oji';
  12310. },
  12311. week: {
  12312. dow: 1, // Monday is the first day of the week.
  12313. doy: 4, // The week that contains Jan 4th is the first week of the year.
  12314. },
  12315. });
  12316. //! moment.js locale configuration
  12317. var units$1 = {
  12318. ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'),
  12319. m: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  12320. mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  12321. h: 'stundas_stundām_stunda_stundas'.split('_'),
  12322. hh: 'stundas_stundām_stunda_stundas'.split('_'),
  12323. d: 'dienas_dienām_diena_dienas'.split('_'),
  12324. dd: 'dienas_dienām_diena_dienas'.split('_'),
  12325. M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  12326. MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  12327. y: 'gada_gadiem_gads_gadi'.split('_'),
  12328. yy: 'gada_gadiem_gads_gadi'.split('_'),
  12329. };
  12330. /**
  12331. * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
  12332. */
  12333. function format$1(forms, number, withoutSuffix) {
  12334. if (withoutSuffix) {
  12335. // E.g. "21 minūte", "3 minūtes".
  12336. return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];
  12337. } else {
  12338. // E.g. "21 minūtes" as in "pēc 21 minūtes".
  12339. // E.g. "3 minūtēm" as in "pēc 3 minūtēm".
  12340. return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];
  12341. }
  12342. }
  12343. function relativeTimeWithPlural$1(number, withoutSuffix, key) {
  12344. return number + ' ' + format$1(units$1[key], number, withoutSuffix);
  12345. }
  12346. function relativeTimeWithSingular(number, withoutSuffix, key) {
  12347. return format$1(units$1[key], number, withoutSuffix);
  12348. }
  12349. function relativeSeconds(number, withoutSuffix) {
  12350. return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
  12351. }
  12352. hooks.defineLocale('lv', {
  12353. months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split(
  12354. '_'
  12355. ),
  12356. monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
  12357. weekdays:
  12358. 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split(
  12359. '_'
  12360. ),
  12361. weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'),
  12362. weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'),
  12363. weekdaysParseExact: true,
  12364. longDateFormat: {
  12365. LT: 'HH:mm',
  12366. LTS: 'HH:mm:ss',
  12367. L: 'DD.MM.YYYY.',
  12368. LL: 'YYYY. [gada] D. MMMM',
  12369. LLL: 'YYYY. [gada] D. MMMM, HH:mm',
  12370. LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm',
  12371. },
  12372. calendar: {
  12373. sameDay: '[Šodien pulksten] LT',
  12374. nextDay: '[Rīt pulksten] LT',
  12375. nextWeek: 'dddd [pulksten] LT',
  12376. lastDay: '[Vakar pulksten] LT',
  12377. lastWeek: '[Pagājušā] dddd [pulksten] LT',
  12378. sameElse: 'L',
  12379. },
  12380. relativeTime: {
  12381. future: 'pēc %s',
  12382. past: 'pirms %s',
  12383. s: relativeSeconds,
  12384. ss: relativeTimeWithPlural$1,
  12385. m: relativeTimeWithSingular,
  12386. mm: relativeTimeWithPlural$1,
  12387. h: relativeTimeWithSingular,
  12388. hh: relativeTimeWithPlural$1,
  12389. d: relativeTimeWithSingular,
  12390. dd: relativeTimeWithPlural$1,
  12391. M: relativeTimeWithSingular,
  12392. MM: relativeTimeWithPlural$1,
  12393. y: relativeTimeWithSingular,
  12394. yy: relativeTimeWithPlural$1,
  12395. },
  12396. dayOfMonthOrdinalParse: /\d{1,2}\./,
  12397. ordinal: '%d.',
  12398. week: {
  12399. dow: 1, // Monday is the first day of the week.
  12400. doy: 4, // The week that contains Jan 4th is the first week of the year.
  12401. },
  12402. });
  12403. //! moment.js locale configuration
  12404. var translator = {
  12405. words: {
  12406. //Different grammatical cases
  12407. ss: ['sekund', 'sekunda', 'sekundi'],
  12408. m: ['jedan minut', 'jednog minuta'],
  12409. mm: ['minut', 'minuta', 'minuta'],
  12410. h: ['jedan sat', 'jednog sata'],
  12411. hh: ['sat', 'sata', 'sati'],
  12412. dd: ['dan', 'dana', 'dana'],
  12413. MM: ['mjesec', 'mjeseca', 'mjeseci'],
  12414. yy: ['godina', 'godine', 'godina'],
  12415. },
  12416. correctGrammaticalCase: function (number, wordKey) {
  12417. return number === 1
  12418. ? wordKey[0]
  12419. : number >= 2 && number <= 4
  12420. ? wordKey[1]
  12421. : wordKey[2];
  12422. },
  12423. translate: function (number, withoutSuffix, key) {
  12424. var wordKey = translator.words[key];
  12425. if (key.length === 1) {
  12426. return withoutSuffix ? wordKey[0] : wordKey[1];
  12427. } else {
  12428. return (
  12429. number +
  12430. ' ' +
  12431. translator.correctGrammaticalCase(number, wordKey)
  12432. );
  12433. }
  12434. },
  12435. };
  12436. hooks.defineLocale('me', {
  12437. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(
  12438. '_'
  12439. ),
  12440. monthsShort:
  12441. 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
  12442. monthsParseExact: true,
  12443. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
  12444. '_'
  12445. ),
  12446. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  12447. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  12448. weekdaysParseExact: true,
  12449. longDateFormat: {
  12450. LT: 'H:mm',
  12451. LTS: 'H:mm:ss',
  12452. L: 'DD.MM.YYYY',
  12453. LL: 'D. MMMM YYYY',
  12454. LLL: 'D. MMMM YYYY H:mm',
  12455. LLLL: 'dddd, D. MMMM YYYY H:mm',
  12456. },
  12457. calendar: {
  12458. sameDay: '[danas u] LT',
  12459. nextDay: '[sjutra u] LT',
  12460. nextWeek: function () {
  12461. switch (this.day()) {
  12462. case 0:
  12463. return '[u] [nedjelju] [u] LT';
  12464. case 3:
  12465. return '[u] [srijedu] [u] LT';
  12466. case 6:
  12467. return '[u] [subotu] [u] LT';
  12468. case 1:
  12469. case 2:
  12470. case 4:
  12471. case 5:
  12472. return '[u] dddd [u] LT';
  12473. }
  12474. },
  12475. lastDay: '[juče u] LT',
  12476. lastWeek: function () {
  12477. var lastWeekDays = [
  12478. '[prošle] [nedjelje] [u] LT',
  12479. '[prošlog] [ponedjeljka] [u] LT',
  12480. '[prošlog] [utorka] [u] LT',
  12481. '[prošle] [srijede] [u] LT',
  12482. '[prošlog] [četvrtka] [u] LT',
  12483. '[prošlog] [petka] [u] LT',
  12484. '[prošle] [subote] [u] LT',
  12485. ];
  12486. return lastWeekDays[this.day()];
  12487. },
  12488. sameElse: 'L',
  12489. },
  12490. relativeTime: {
  12491. future: 'za %s',
  12492. past: 'prije %s',
  12493. s: 'nekoliko sekundi',
  12494. ss: translator.translate,
  12495. m: translator.translate,
  12496. mm: translator.translate,
  12497. h: translator.translate,
  12498. hh: translator.translate,
  12499. d: 'dan',
  12500. dd: translator.translate,
  12501. M: 'mjesec',
  12502. MM: translator.translate,
  12503. y: 'godinu',
  12504. yy: translator.translate,
  12505. },
  12506. dayOfMonthOrdinalParse: /\d{1,2}\./,
  12507. ordinal: '%d.',
  12508. week: {
  12509. dow: 1, // Monday is the first day of the week.
  12510. doy: 7, // The week that contains Jan 7th is the first week of the year.
  12511. },
  12512. });
  12513. //! moment.js locale configuration
  12514. hooks.defineLocale('mi', {
  12515. 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(
  12516. '_'
  12517. ),
  12518. monthsShort:
  12519. 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split(
  12520. '_'
  12521. ),
  12522. monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  12523. monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  12524. monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  12525. monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
  12526. weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
  12527. weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  12528. weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  12529. longDateFormat: {
  12530. LT: 'HH:mm',
  12531. LTS: 'HH:mm:ss',
  12532. L: 'DD/MM/YYYY',
  12533. LL: 'D MMMM YYYY',
  12534. LLL: 'D MMMM YYYY [i] HH:mm',
  12535. LLLL: 'dddd, D MMMM YYYY [i] HH:mm',
  12536. },
  12537. calendar: {
  12538. sameDay: '[i teie mahana, i] LT',
  12539. nextDay: '[apopo i] LT',
  12540. nextWeek: 'dddd [i] LT',
  12541. lastDay: '[inanahi i] LT',
  12542. lastWeek: 'dddd [whakamutunga i] LT',
  12543. sameElse: 'L',
  12544. },
  12545. relativeTime: {
  12546. future: 'i roto i %s',
  12547. past: '%s i mua',
  12548. s: 'te hēkona ruarua',
  12549. ss: '%d hēkona',
  12550. m: 'he meneti',
  12551. mm: '%d meneti',
  12552. h: 'te haora',
  12553. hh: '%d haora',
  12554. d: 'he ra',
  12555. dd: '%d ra',
  12556. M: 'he marama',
  12557. MM: '%d marama',
  12558. y: 'he tau',
  12559. yy: '%d tau',
  12560. },
  12561. dayOfMonthOrdinalParse: /\d{1,2}º/,
  12562. ordinal: '%dº',
  12563. week: {
  12564. dow: 1, // Monday is the first day of the week.
  12565. doy: 4, // The week that contains Jan 4th is the first week of the year.
  12566. },
  12567. });
  12568. //! moment.js locale configuration
  12569. hooks.defineLocale('mk', {
  12570. months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split(
  12571. '_'
  12572. ),
  12573. monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
  12574. weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split(
  12575. '_'
  12576. ),
  12577. weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
  12578. weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'),
  12579. longDateFormat: {
  12580. LT: 'H:mm',
  12581. LTS: 'H:mm:ss',
  12582. L: 'D.MM.YYYY',
  12583. LL: 'D MMMM YYYY',
  12584. LLL: 'D MMMM YYYY H:mm',
  12585. LLLL: 'dddd, D MMMM YYYY H:mm',
  12586. },
  12587. calendar: {
  12588. sameDay: '[Денес во] LT',
  12589. nextDay: '[Утре во] LT',
  12590. nextWeek: '[Во] dddd [во] LT',
  12591. lastDay: '[Вчера во] LT',
  12592. lastWeek: function () {
  12593. switch (this.day()) {
  12594. case 0:
  12595. case 3:
  12596. case 6:
  12597. return '[Изминатата] dddd [во] LT';
  12598. case 1:
  12599. case 2:
  12600. case 4:
  12601. case 5:
  12602. return '[Изминатиот] dddd [во] LT';
  12603. }
  12604. },
  12605. sameElse: 'L',
  12606. },
  12607. relativeTime: {
  12608. future: 'за %s',
  12609. past: 'пред %s',
  12610. s: 'неколку секунди',
  12611. ss: '%d секунди',
  12612. m: 'една минута',
  12613. mm: '%d минути',
  12614. h: 'еден час',
  12615. hh: '%d часа',
  12616. d: 'еден ден',
  12617. dd: '%d дена',
  12618. M: 'еден месец',
  12619. MM: '%d месеци',
  12620. y: 'една година',
  12621. yy: '%d години',
  12622. },
  12623. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  12624. ordinal: function (number) {
  12625. var lastDigit = number % 10,
  12626. last2Digits = number % 100;
  12627. if (number === 0) {
  12628. return number + '-ев';
  12629. } else if (last2Digits === 0) {
  12630. return number + '-ен';
  12631. } else if (last2Digits > 10 && last2Digits < 20) {
  12632. return number + '-ти';
  12633. } else if (lastDigit === 1) {
  12634. return number + '-ви';
  12635. } else if (lastDigit === 2) {
  12636. return number + '-ри';
  12637. } else if (lastDigit === 7 || lastDigit === 8) {
  12638. return number + '-ми';
  12639. } else {
  12640. return number + '-ти';
  12641. }
  12642. },
  12643. week: {
  12644. dow: 1, // Monday is the first day of the week.
  12645. doy: 7, // The week that contains Jan 7th is the first week of the year.
  12646. },
  12647. });
  12648. //! moment.js locale configuration
  12649. hooks.defineLocale('ml', {
  12650. months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split(
  12651. '_'
  12652. ),
  12653. monthsShort:
  12654. 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split(
  12655. '_'
  12656. ),
  12657. monthsParseExact: true,
  12658. weekdays:
  12659. 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split(
  12660. '_'
  12661. ),
  12662. weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
  12663. weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
  12664. longDateFormat: {
  12665. LT: 'A h:mm -നു',
  12666. LTS: 'A h:mm:ss -നു',
  12667. L: 'DD/MM/YYYY',
  12668. LL: 'D MMMM YYYY',
  12669. LLL: 'D MMMM YYYY, A h:mm -നു',
  12670. LLLL: 'dddd, D MMMM YYYY, A h:mm -നു',
  12671. },
  12672. calendar: {
  12673. sameDay: '[ഇന്ന്] LT',
  12674. nextDay: '[നാളെ] LT',
  12675. nextWeek: 'dddd, LT',
  12676. lastDay: '[ഇന്നലെ] LT',
  12677. lastWeek: '[കഴിഞ്ഞ] dddd, LT',
  12678. sameElse: 'L',
  12679. },
  12680. relativeTime: {
  12681. future: '%s കഴിഞ്ഞ്',
  12682. past: '%s മുൻപ്',
  12683. s: 'അൽപ നിമിഷങ്ങൾ',
  12684. ss: '%d സെക്കൻഡ്',
  12685. m: 'ഒരു മിനിറ്റ്',
  12686. mm: '%d മിനിറ്റ്',
  12687. h: 'ഒരു മണിക്കൂർ',
  12688. hh: '%d മണിക്കൂർ',
  12689. d: 'ഒരു ദിവസം',
  12690. dd: '%d ദിവസം',
  12691. M: 'ഒരു മാസം',
  12692. MM: '%d മാസം',
  12693. y: 'ഒരു വർഷം',
  12694. yy: '%d വർഷം',
  12695. },
  12696. meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
  12697. meridiemHour: function (hour, meridiem) {
  12698. if (hour === 12) {
  12699. hour = 0;
  12700. }
  12701. if (
  12702. (meridiem === 'രാത്രി' && hour >= 4) ||
  12703. meridiem === 'ഉച്ച കഴിഞ്ഞ്' ||
  12704. meridiem === 'വൈകുന്നേരം'
  12705. ) {
  12706. return hour + 12;
  12707. } else {
  12708. return hour;
  12709. }
  12710. },
  12711. meridiem: function (hour, minute, isLower) {
  12712. if (hour < 4) {
  12713. return 'രാത്രി';
  12714. } else if (hour < 12) {
  12715. return 'രാവിലെ';
  12716. } else if (hour < 17) {
  12717. return 'ഉച്ച കഴിഞ്ഞ്';
  12718. } else if (hour < 20) {
  12719. return 'വൈകുന്നേരം';
  12720. } else {
  12721. return 'രാത്രി';
  12722. }
  12723. },
  12724. });
  12725. //! moment.js locale configuration
  12726. function translate$7(number, withoutSuffix, key, isFuture) {
  12727. switch (key) {
  12728. case 's':
  12729. return withoutSuffix ? 'хэдхэн секунд' : 'хэдхэн секундын';
  12730. case 'ss':
  12731. return number + (withoutSuffix ? ' секунд' : ' секундын');
  12732. case 'm':
  12733. case 'mm':
  12734. return number + (withoutSuffix ? ' минут' : ' минутын');
  12735. case 'h':
  12736. case 'hh':
  12737. return number + (withoutSuffix ? ' цаг' : ' цагийн');
  12738. case 'd':
  12739. case 'dd':
  12740. return number + (withoutSuffix ? ' өдөр' : ' өдрийн');
  12741. case 'M':
  12742. case 'MM':
  12743. return number + (withoutSuffix ? ' сар' : ' сарын');
  12744. case 'y':
  12745. case 'yy':
  12746. return number + (withoutSuffix ? ' жил' : ' жилийн');
  12747. default:
  12748. return number;
  12749. }
  12750. }
  12751. hooks.defineLocale('mn', {
  12752. months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split(
  12753. '_'
  12754. ),
  12755. monthsShort:
  12756. '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split(
  12757. '_'
  12758. ),
  12759. monthsParseExact: true,
  12760. weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'),
  12761. weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'),
  12762. weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'),
  12763. weekdaysParseExact: true,
  12764. longDateFormat: {
  12765. LT: 'HH:mm',
  12766. LTS: 'HH:mm:ss',
  12767. L: 'YYYY-MM-DD',
  12768. LL: 'YYYY оны MMMMын D',
  12769. LLL: 'YYYY оны MMMMын D HH:mm',
  12770. LLLL: 'dddd, YYYY оны MMMMын D HH:mm',
  12771. },
  12772. meridiemParse: /ҮӨ|ҮХ/i,
  12773. isPM: function (input) {
  12774. return input === 'ҮХ';
  12775. },
  12776. meridiem: function (hour, minute, isLower) {
  12777. if (hour < 12) {
  12778. return 'ҮӨ';
  12779. } else {
  12780. return 'ҮХ';
  12781. }
  12782. },
  12783. calendar: {
  12784. sameDay: '[Өнөөдөр] LT',
  12785. nextDay: '[Маргааш] LT',
  12786. nextWeek: '[Ирэх] dddd LT',
  12787. lastDay: '[Өчигдөр] LT',
  12788. lastWeek: '[Өнгөрсөн] dddd LT',
  12789. sameElse: 'L',
  12790. },
  12791. relativeTime: {
  12792. future: '%s дараа',
  12793. past: '%s өмнө',
  12794. s: translate$7,
  12795. ss: translate$7,
  12796. m: translate$7,
  12797. mm: translate$7,
  12798. h: translate$7,
  12799. hh: translate$7,
  12800. d: translate$7,
  12801. dd: translate$7,
  12802. M: translate$7,
  12803. MM: translate$7,
  12804. y: translate$7,
  12805. yy: translate$7,
  12806. },
  12807. dayOfMonthOrdinalParse: /\d{1,2} өдөр/,
  12808. ordinal: function (number, period) {
  12809. switch (period) {
  12810. case 'd':
  12811. case 'D':
  12812. case 'DDD':
  12813. return number + ' өдөр';
  12814. default:
  12815. return number;
  12816. }
  12817. },
  12818. });
  12819. //! moment.js locale configuration
  12820. var symbolMap$d = {
  12821. 1: '१',
  12822. 2: '२',
  12823. 3: '३',
  12824. 4: '४',
  12825. 5: '५',
  12826. 6: '६',
  12827. 7: '७',
  12828. 8: '८',
  12829. 9: '९',
  12830. 0: '०',
  12831. },
  12832. numberMap$c = {
  12833. '१': '1',
  12834. '२': '2',
  12835. '३': '3',
  12836. '४': '4',
  12837. '५': '5',
  12838. '६': '6',
  12839. '७': '7',
  12840. '८': '8',
  12841. '९': '9',
  12842. '०': '0',
  12843. };
  12844. function relativeTimeMr(number, withoutSuffix, string, isFuture) {
  12845. var output = '';
  12846. if (withoutSuffix) {
  12847. switch (string) {
  12848. case 's':
  12849. output = 'काही सेकंद';
  12850. break;
  12851. case 'ss':
  12852. output = '%d सेकंद';
  12853. break;
  12854. case 'm':
  12855. output = 'एक मिनिट';
  12856. break;
  12857. case 'mm':
  12858. output = '%d मिनिटे';
  12859. break;
  12860. case 'h':
  12861. output = 'एक तास';
  12862. break;
  12863. case 'hh':
  12864. output = '%d तास';
  12865. break;
  12866. case 'd':
  12867. output = 'एक दिवस';
  12868. break;
  12869. case 'dd':
  12870. output = '%d दिवस';
  12871. break;
  12872. case 'M':
  12873. output = 'एक महिना';
  12874. break;
  12875. case 'MM':
  12876. output = '%d महिने';
  12877. break;
  12878. case 'y':
  12879. output = 'एक वर्ष';
  12880. break;
  12881. case 'yy':
  12882. output = '%d वर्षे';
  12883. break;
  12884. }
  12885. } else {
  12886. switch (string) {
  12887. case 's':
  12888. output = 'काही सेकंदां';
  12889. break;
  12890. case 'ss':
  12891. output = '%d सेकंदां';
  12892. break;
  12893. case 'm':
  12894. output = 'एका मिनिटा';
  12895. break;
  12896. case 'mm':
  12897. output = '%d मिनिटां';
  12898. break;
  12899. case 'h':
  12900. output = 'एका तासा';
  12901. break;
  12902. case 'hh':
  12903. output = '%d तासां';
  12904. break;
  12905. case 'd':
  12906. output = 'एका दिवसा';
  12907. break;
  12908. case 'dd':
  12909. output = '%d दिवसां';
  12910. break;
  12911. case 'M':
  12912. output = 'एका महिन्या';
  12913. break;
  12914. case 'MM':
  12915. output = '%d महिन्यां';
  12916. break;
  12917. case 'y':
  12918. output = 'एका वर्षा';
  12919. break;
  12920. case 'yy':
  12921. output = '%d वर्षां';
  12922. break;
  12923. }
  12924. }
  12925. return output.replace(/%d/i, number);
  12926. }
  12927. hooks.defineLocale('mr', {
  12928. months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(
  12929. '_'
  12930. ),
  12931. monthsShort:
  12932. 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(
  12933. '_'
  12934. ),
  12935. monthsParseExact: true,
  12936. weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  12937. weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
  12938. weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
  12939. longDateFormat: {
  12940. LT: 'A h:mm वाजता',
  12941. LTS: 'A h:mm:ss वाजता',
  12942. L: 'DD/MM/YYYY',
  12943. LL: 'D MMMM YYYY',
  12944. LLL: 'D MMMM YYYY, A h:mm वाजता',
  12945. LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता',
  12946. },
  12947. calendar: {
  12948. sameDay: '[आज] LT',
  12949. nextDay: '[उद्या] LT',
  12950. nextWeek: 'dddd, LT',
  12951. lastDay: '[काल] LT',
  12952. lastWeek: '[मागील] dddd, LT',
  12953. sameElse: 'L',
  12954. },
  12955. relativeTime: {
  12956. future: '%sमध्ये',
  12957. past: '%sपूर्वी',
  12958. s: relativeTimeMr,
  12959. ss: relativeTimeMr,
  12960. m: relativeTimeMr,
  12961. mm: relativeTimeMr,
  12962. h: relativeTimeMr,
  12963. hh: relativeTimeMr,
  12964. d: relativeTimeMr,
  12965. dd: relativeTimeMr,
  12966. M: relativeTimeMr,
  12967. MM: relativeTimeMr,
  12968. y: relativeTimeMr,
  12969. yy: relativeTimeMr,
  12970. },
  12971. preparse: function (string) {
  12972. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  12973. return numberMap$c[match];
  12974. });
  12975. },
  12976. postformat: function (string) {
  12977. return string.replace(/\d/g, function (match) {
  12978. return symbolMap$d[match];
  12979. });
  12980. },
  12981. meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,
  12982. meridiemHour: function (hour, meridiem) {
  12983. if (hour === 12) {
  12984. hour = 0;
  12985. }
  12986. if (meridiem === 'पहाटे' || meridiem === 'सकाळी') {
  12987. return hour;
  12988. } else if (
  12989. meridiem === 'दुपारी' ||
  12990. meridiem === 'सायंकाळी' ||
  12991. meridiem === 'रात्री'
  12992. ) {
  12993. return hour >= 12 ? hour : hour + 12;
  12994. }
  12995. },
  12996. meridiem: function (hour, minute, isLower) {
  12997. if (hour >= 0 && hour < 6) {
  12998. return 'पहाटे';
  12999. } else if (hour < 12) {
  13000. return 'सकाळी';
  13001. } else if (hour < 17) {
  13002. return 'दुपारी';
  13003. } else if (hour < 20) {
  13004. return 'सायंकाळी';
  13005. } else {
  13006. return 'रात्री';
  13007. }
  13008. },
  13009. week: {
  13010. dow: 0, // Sunday is the first day of the week.
  13011. doy: 6, // The week that contains Jan 6th is the first week of the year.
  13012. },
  13013. });
  13014. //! moment.js locale configuration
  13015. hooks.defineLocale('ms-my', {
  13016. months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(
  13017. '_'
  13018. ),
  13019. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  13020. weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  13021. weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  13022. weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  13023. longDateFormat: {
  13024. LT: 'HH.mm',
  13025. LTS: 'HH.mm.ss',
  13026. L: 'DD/MM/YYYY',
  13027. LL: 'D MMMM YYYY',
  13028. LLL: 'D MMMM YYYY [pukul] HH.mm',
  13029. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
  13030. },
  13031. meridiemParse: /pagi|tengahari|petang|malam/,
  13032. meridiemHour: function (hour, meridiem) {
  13033. if (hour === 12) {
  13034. hour = 0;
  13035. }
  13036. if (meridiem === 'pagi') {
  13037. return hour;
  13038. } else if (meridiem === 'tengahari') {
  13039. return hour >= 11 ? hour : hour + 12;
  13040. } else if (meridiem === 'petang' || meridiem === 'malam') {
  13041. return hour + 12;
  13042. }
  13043. },
  13044. meridiem: function (hours, minutes, isLower) {
  13045. if (hours < 11) {
  13046. return 'pagi';
  13047. } else if (hours < 15) {
  13048. return 'tengahari';
  13049. } else if (hours < 19) {
  13050. return 'petang';
  13051. } else {
  13052. return 'malam';
  13053. }
  13054. },
  13055. calendar: {
  13056. sameDay: '[Hari ini pukul] LT',
  13057. nextDay: '[Esok pukul] LT',
  13058. nextWeek: 'dddd [pukul] LT',
  13059. lastDay: '[Kelmarin pukul] LT',
  13060. lastWeek: 'dddd [lepas pukul] LT',
  13061. sameElse: 'L',
  13062. },
  13063. relativeTime: {
  13064. future: 'dalam %s',
  13065. past: '%s yang lepas',
  13066. s: 'beberapa saat',
  13067. ss: '%d saat',
  13068. m: 'seminit',
  13069. mm: '%d minit',
  13070. h: 'sejam',
  13071. hh: '%d jam',
  13072. d: 'sehari',
  13073. dd: '%d hari',
  13074. M: 'sebulan',
  13075. MM: '%d bulan',
  13076. y: 'setahun',
  13077. yy: '%d tahun',
  13078. },
  13079. week: {
  13080. dow: 1, // Monday is the first day of the week.
  13081. doy: 7, // The week that contains Jan 7th is the first week of the year.
  13082. },
  13083. });
  13084. //! moment.js locale configuration
  13085. hooks.defineLocale('ms', {
  13086. months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(
  13087. '_'
  13088. ),
  13089. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  13090. weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  13091. weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  13092. weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  13093. longDateFormat: {
  13094. LT: 'HH.mm',
  13095. LTS: 'HH.mm.ss',
  13096. L: 'DD/MM/YYYY',
  13097. LL: 'D MMMM YYYY',
  13098. LLL: 'D MMMM YYYY [pukul] HH.mm',
  13099. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
  13100. },
  13101. meridiemParse: /pagi|tengahari|petang|malam/,
  13102. meridiemHour: function (hour, meridiem) {
  13103. if (hour === 12) {
  13104. hour = 0;
  13105. }
  13106. if (meridiem === 'pagi') {
  13107. return hour;
  13108. } else if (meridiem === 'tengahari') {
  13109. return hour >= 11 ? hour : hour + 12;
  13110. } else if (meridiem === 'petang' || meridiem === 'malam') {
  13111. return hour + 12;
  13112. }
  13113. },
  13114. meridiem: function (hours, minutes, isLower) {
  13115. if (hours < 11) {
  13116. return 'pagi';
  13117. } else if (hours < 15) {
  13118. return 'tengahari';
  13119. } else if (hours < 19) {
  13120. return 'petang';
  13121. } else {
  13122. return 'malam';
  13123. }
  13124. },
  13125. calendar: {
  13126. sameDay: '[Hari ini pukul] LT',
  13127. nextDay: '[Esok pukul] LT',
  13128. nextWeek: 'dddd [pukul] LT',
  13129. lastDay: '[Kelmarin pukul] LT',
  13130. lastWeek: 'dddd [lepas pukul] LT',
  13131. sameElse: 'L',
  13132. },
  13133. relativeTime: {
  13134. future: 'dalam %s',
  13135. past: '%s yang lepas',
  13136. s: 'beberapa saat',
  13137. ss: '%d saat',
  13138. m: 'seminit',
  13139. mm: '%d minit',
  13140. h: 'sejam',
  13141. hh: '%d jam',
  13142. d: 'sehari',
  13143. dd: '%d hari',
  13144. M: 'sebulan',
  13145. MM: '%d bulan',
  13146. y: 'setahun',
  13147. yy: '%d tahun',
  13148. },
  13149. week: {
  13150. dow: 1, // Monday is the first day of the week.
  13151. doy: 7, // The week that contains Jan 7th is the first week of the year.
  13152. },
  13153. });
  13154. //! moment.js locale configuration
  13155. hooks.defineLocale('mt', {
  13156. months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split(
  13157. '_'
  13158. ),
  13159. monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),
  13160. weekdays:
  13161. 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split(
  13162. '_'
  13163. ),
  13164. weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),
  13165. weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),
  13166. longDateFormat: {
  13167. LT: 'HH:mm',
  13168. LTS: 'HH:mm:ss',
  13169. L: 'DD/MM/YYYY',
  13170. LL: 'D MMMM YYYY',
  13171. LLL: 'D MMMM YYYY HH:mm',
  13172. LLLL: 'dddd, D MMMM YYYY HH:mm',
  13173. },
  13174. calendar: {
  13175. sameDay: '[Illum fil-]LT',
  13176. nextDay: '[Għada fil-]LT',
  13177. nextWeek: 'dddd [fil-]LT',
  13178. lastDay: '[Il-bieraħ fil-]LT',
  13179. lastWeek: 'dddd [li għadda] [fil-]LT',
  13180. sameElse: 'L',
  13181. },
  13182. relativeTime: {
  13183. future: 'f’ %s',
  13184. past: '%s ilu',
  13185. s: 'ftit sekondi',
  13186. ss: '%d sekondi',
  13187. m: 'minuta',
  13188. mm: '%d minuti',
  13189. h: 'siegħa',
  13190. hh: '%d siegħat',
  13191. d: 'ġurnata',
  13192. dd: '%d ġranet',
  13193. M: 'xahar',
  13194. MM: '%d xhur',
  13195. y: 'sena',
  13196. yy: '%d sni',
  13197. },
  13198. dayOfMonthOrdinalParse: /\d{1,2}º/,
  13199. ordinal: '%dº',
  13200. week: {
  13201. dow: 1, // Monday is the first day of the week.
  13202. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13203. },
  13204. });
  13205. //! moment.js locale configuration
  13206. var symbolMap$e = {
  13207. 1: '၁',
  13208. 2: '၂',
  13209. 3: '၃',
  13210. 4: '၄',
  13211. 5: '၅',
  13212. 6: '၆',
  13213. 7: '၇',
  13214. 8: '၈',
  13215. 9: '၉',
  13216. 0: '၀',
  13217. },
  13218. numberMap$d = {
  13219. '၁': '1',
  13220. '၂': '2',
  13221. '၃': '3',
  13222. '၄': '4',
  13223. '၅': '5',
  13224. '၆': '6',
  13225. '၇': '7',
  13226. '၈': '8',
  13227. '၉': '9',
  13228. '၀': '0',
  13229. };
  13230. hooks.defineLocale('my', {
  13231. months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split(
  13232. '_'
  13233. ),
  13234. monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
  13235. weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split(
  13236. '_'
  13237. ),
  13238. weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  13239. weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  13240. longDateFormat: {
  13241. LT: 'HH:mm',
  13242. LTS: 'HH:mm:ss',
  13243. L: 'DD/MM/YYYY',
  13244. LL: 'D MMMM YYYY',
  13245. LLL: 'D MMMM YYYY HH:mm',
  13246. LLLL: 'dddd D MMMM YYYY HH:mm',
  13247. },
  13248. calendar: {
  13249. sameDay: '[ယနေ.] LT [မှာ]',
  13250. nextDay: '[မနက်ဖြန်] LT [မှာ]',
  13251. nextWeek: 'dddd LT [မှာ]',
  13252. lastDay: '[မနေ.က] LT [မှာ]',
  13253. lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
  13254. sameElse: 'L',
  13255. },
  13256. relativeTime: {
  13257. future: 'လာမည့် %s မှာ',
  13258. past: 'လွန်ခဲ့သော %s က',
  13259. s: 'စက္ကန်.အနည်းငယ်',
  13260. ss: '%d စက္ကန့်',
  13261. m: 'တစ်မိနစ်',
  13262. mm: '%d မိနစ်',
  13263. h: 'တစ်နာရီ',
  13264. hh: '%d နာရီ',
  13265. d: 'တစ်ရက်',
  13266. dd: '%d ရက်',
  13267. M: 'တစ်လ',
  13268. MM: '%d လ',
  13269. y: 'တစ်နှစ်',
  13270. yy: '%d နှစ်',
  13271. },
  13272. preparse: function (string) {
  13273. return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
  13274. return numberMap$d[match];
  13275. });
  13276. },
  13277. postformat: function (string) {
  13278. return string.replace(/\d/g, function (match) {
  13279. return symbolMap$e[match];
  13280. });
  13281. },
  13282. week: {
  13283. dow: 1, // Monday is the first day of the week.
  13284. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13285. },
  13286. });
  13287. //! moment.js locale configuration
  13288. hooks.defineLocale('nb', {
  13289. months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
  13290. '_'
  13291. ),
  13292. monthsShort:
  13293. 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
  13294. monthsParseExact: true,
  13295. weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  13296. weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'),
  13297. weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
  13298. weekdaysParseExact: true,
  13299. longDateFormat: {
  13300. LT: 'HH:mm',
  13301. LTS: 'HH:mm:ss',
  13302. L: 'DD.MM.YYYY',
  13303. LL: 'D. MMMM YYYY',
  13304. LLL: 'D. MMMM YYYY [kl.] HH:mm',
  13305. LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
  13306. },
  13307. calendar: {
  13308. sameDay: '[i dag kl.] LT',
  13309. nextDay: '[i morgen kl.] LT',
  13310. nextWeek: 'dddd [kl.] LT',
  13311. lastDay: '[i går kl.] LT',
  13312. lastWeek: '[forrige] dddd [kl.] LT',
  13313. sameElse: 'L',
  13314. },
  13315. relativeTime: {
  13316. future: 'om %s',
  13317. past: '%s siden',
  13318. s: 'noen sekunder',
  13319. ss: '%d sekunder',
  13320. m: 'ett minutt',
  13321. mm: '%d minutter',
  13322. h: 'én time',
  13323. hh: '%d timer',
  13324. d: 'én dag',
  13325. dd: '%d dager',
  13326. w: 'én uke',
  13327. ww: '%d uker',
  13328. M: 'én måned',
  13329. MM: '%d måneder',
  13330. y: 'ett år',
  13331. yy: '%d år',
  13332. },
  13333. dayOfMonthOrdinalParse: /\d{1,2}\./,
  13334. ordinal: '%d.',
  13335. week: {
  13336. dow: 1, // Monday is the first day of the week.
  13337. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13338. },
  13339. });
  13340. //! moment.js locale configuration
  13341. var symbolMap$f = {
  13342. 1: '१',
  13343. 2: '२',
  13344. 3: '३',
  13345. 4: '४',
  13346. 5: '५',
  13347. 6: '६',
  13348. 7: '७',
  13349. 8: '८',
  13350. 9: '९',
  13351. 0: '०',
  13352. },
  13353. numberMap$e = {
  13354. '१': '1',
  13355. '२': '2',
  13356. '३': '3',
  13357. '४': '4',
  13358. '५': '5',
  13359. '६': '6',
  13360. '७': '7',
  13361. '८': '8',
  13362. '९': '9',
  13363. '०': '0',
  13364. };
  13365. hooks.defineLocale('ne', {
  13366. months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split(
  13367. '_'
  13368. ),
  13369. monthsShort:
  13370. 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split(
  13371. '_'
  13372. ),
  13373. monthsParseExact: true,
  13374. weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split(
  13375. '_'
  13376. ),
  13377. weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
  13378. weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
  13379. weekdaysParseExact: true,
  13380. longDateFormat: {
  13381. LT: 'Aको h:mm बजे',
  13382. LTS: 'Aको h:mm:ss बजे',
  13383. L: 'DD/MM/YYYY',
  13384. LL: 'D MMMM YYYY',
  13385. LLL: 'D MMMM YYYY, Aको h:mm बजे',
  13386. LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे',
  13387. },
  13388. preparse: function (string) {
  13389. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  13390. return numberMap$e[match];
  13391. });
  13392. },
  13393. postformat: function (string) {
  13394. return string.replace(/\d/g, function (match) {
  13395. return symbolMap$f[match];
  13396. });
  13397. },
  13398. meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
  13399. meridiemHour: function (hour, meridiem) {
  13400. if (hour === 12) {
  13401. hour = 0;
  13402. }
  13403. if (meridiem === 'राति') {
  13404. return hour < 4 ? hour : hour + 12;
  13405. } else if (meridiem === 'बिहान') {
  13406. return hour;
  13407. } else if (meridiem === 'दिउँसो') {
  13408. return hour >= 10 ? hour : hour + 12;
  13409. } else if (meridiem === 'साँझ') {
  13410. return hour + 12;
  13411. }
  13412. },
  13413. meridiem: function (hour, minute, isLower) {
  13414. if (hour < 3) {
  13415. return 'राति';
  13416. } else if (hour < 12) {
  13417. return 'बिहान';
  13418. } else if (hour < 16) {
  13419. return 'दिउँसो';
  13420. } else if (hour < 20) {
  13421. return 'साँझ';
  13422. } else {
  13423. return 'राति';
  13424. }
  13425. },
  13426. calendar: {
  13427. sameDay: '[आज] LT',
  13428. nextDay: '[भोलि] LT',
  13429. nextWeek: '[आउँदो] dddd[,] LT',
  13430. lastDay: '[हिजो] LT',
  13431. lastWeek: '[गएको] dddd[,] LT',
  13432. sameElse: 'L',
  13433. },
  13434. relativeTime: {
  13435. future: '%sमा',
  13436. past: '%s अगाडि',
  13437. s: 'केही क्षण',
  13438. ss: '%d सेकेण्ड',
  13439. m: 'एक मिनेट',
  13440. mm: '%d मिनेट',
  13441. h: 'एक घण्टा',
  13442. hh: '%d घण्टा',
  13443. d: 'एक दिन',
  13444. dd: '%d दिन',
  13445. M: 'एक महिना',
  13446. MM: '%d महिना',
  13447. y: 'एक बर्ष',
  13448. yy: '%d बर्ष',
  13449. },
  13450. week: {
  13451. dow: 0, // Sunday is the first day of the week.
  13452. doy: 6, // The week that contains Jan 6th is the first week of the year.
  13453. },
  13454. });
  13455. //! moment.js locale configuration
  13456. var monthsShortWithDots$1 =
  13457. 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
  13458. monthsShortWithoutDots$1 =
  13459. 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  13460. monthsParse$8 = [
  13461. /^jan/i,
  13462. /^feb/i,
  13463. /^(maart|mrt\.?)$/i,
  13464. /^apr/i,
  13465. /^mei$/i,
  13466. /^jun[i.]?$/i,
  13467. /^jul[i.]?$/i,
  13468. /^aug/i,
  13469. /^sep/i,
  13470. /^okt/i,
  13471. /^nov/i,
  13472. /^dec/i,
  13473. ],
  13474. monthsRegex$8 =
  13475. /^(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;
  13476. hooks.defineLocale('nl-be', {
  13477. months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(
  13478. '_'
  13479. ),
  13480. monthsShort: function (m, format) {
  13481. if (!m) {
  13482. return monthsShortWithDots$1;
  13483. } else if (/-MMM-/.test(format)) {
  13484. return monthsShortWithoutDots$1[m.month()];
  13485. } else {
  13486. return monthsShortWithDots$1[m.month()];
  13487. }
  13488. },
  13489. monthsRegex: monthsRegex$8,
  13490. monthsShortRegex: monthsRegex$8,
  13491. monthsStrictRegex:
  13492. /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
  13493. monthsShortStrictRegex:
  13494. /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  13495. monthsParse: monthsParse$8,
  13496. longMonthsParse: monthsParse$8,
  13497. shortMonthsParse: monthsParse$8,
  13498. weekdays:
  13499. 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
  13500. weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
  13501. weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
  13502. weekdaysParseExact: true,
  13503. longDateFormat: {
  13504. LT: 'HH:mm',
  13505. LTS: 'HH:mm:ss',
  13506. L: 'DD/MM/YYYY',
  13507. LL: 'D MMMM YYYY',
  13508. LLL: 'D MMMM YYYY HH:mm',
  13509. LLLL: 'dddd D MMMM YYYY HH:mm',
  13510. },
  13511. calendar: {
  13512. sameDay: '[vandaag om] LT',
  13513. nextDay: '[morgen om] LT',
  13514. nextWeek: 'dddd [om] LT',
  13515. lastDay: '[gisteren om] LT',
  13516. lastWeek: '[afgelopen] dddd [om] LT',
  13517. sameElse: 'L',
  13518. },
  13519. relativeTime: {
  13520. future: 'over %s',
  13521. past: '%s geleden',
  13522. s: 'een paar seconden',
  13523. ss: '%d seconden',
  13524. m: 'één minuut',
  13525. mm: '%d minuten',
  13526. h: 'één uur',
  13527. hh: '%d uur',
  13528. d: 'één dag',
  13529. dd: '%d dagen',
  13530. M: 'één maand',
  13531. MM: '%d maanden',
  13532. y: 'één jaar',
  13533. yy: '%d jaar',
  13534. },
  13535. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  13536. ordinal: function (number) {
  13537. return (
  13538. number +
  13539. (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
  13540. );
  13541. },
  13542. week: {
  13543. dow: 1, // Monday is the first day of the week.
  13544. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13545. },
  13546. });
  13547. //! moment.js locale configuration
  13548. var monthsShortWithDots$2 =
  13549. 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
  13550. monthsShortWithoutDots$2 =
  13551. 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  13552. monthsParse$9 = [
  13553. /^jan/i,
  13554. /^feb/i,
  13555. /^(maart|mrt\.?)$/i,
  13556. /^apr/i,
  13557. /^mei$/i,
  13558. /^jun[i.]?$/i,
  13559. /^jul[i.]?$/i,
  13560. /^aug/i,
  13561. /^sep/i,
  13562. /^okt/i,
  13563. /^nov/i,
  13564. /^dec/i,
  13565. ],
  13566. monthsRegex$9 =
  13567. /^(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;
  13568. hooks.defineLocale('nl', {
  13569. months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(
  13570. '_'
  13571. ),
  13572. monthsShort: function (m, format) {
  13573. if (!m) {
  13574. return monthsShortWithDots$2;
  13575. } else if (/-MMM-/.test(format)) {
  13576. return monthsShortWithoutDots$2[m.month()];
  13577. } else {
  13578. return monthsShortWithDots$2[m.month()];
  13579. }
  13580. },
  13581. monthsRegex: monthsRegex$9,
  13582. monthsShortRegex: monthsRegex$9,
  13583. monthsStrictRegex:
  13584. /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
  13585. monthsShortStrictRegex:
  13586. /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  13587. monthsParse: monthsParse$9,
  13588. longMonthsParse: monthsParse$9,
  13589. shortMonthsParse: monthsParse$9,
  13590. weekdays:
  13591. 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
  13592. weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
  13593. weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
  13594. weekdaysParseExact: true,
  13595. longDateFormat: {
  13596. LT: 'HH:mm',
  13597. LTS: 'HH:mm:ss',
  13598. L: 'DD-MM-YYYY',
  13599. LL: 'D MMMM YYYY',
  13600. LLL: 'D MMMM YYYY HH:mm',
  13601. LLLL: 'dddd D MMMM YYYY HH:mm',
  13602. },
  13603. calendar: {
  13604. sameDay: '[vandaag om] LT',
  13605. nextDay: '[morgen om] LT',
  13606. nextWeek: 'dddd [om] LT',
  13607. lastDay: '[gisteren om] LT',
  13608. lastWeek: '[afgelopen] dddd [om] LT',
  13609. sameElse: 'L',
  13610. },
  13611. relativeTime: {
  13612. future: 'over %s',
  13613. past: '%s geleden',
  13614. s: 'een paar seconden',
  13615. ss: '%d seconden',
  13616. m: 'één minuut',
  13617. mm: '%d minuten',
  13618. h: 'één uur',
  13619. hh: '%d uur',
  13620. d: 'één dag',
  13621. dd: '%d dagen',
  13622. w: 'één week',
  13623. ww: '%d weken',
  13624. M: 'één maand',
  13625. MM: '%d maanden',
  13626. y: 'één jaar',
  13627. yy: '%d jaar',
  13628. },
  13629. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  13630. ordinal: function (number) {
  13631. return (
  13632. number +
  13633. (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
  13634. );
  13635. },
  13636. week: {
  13637. dow: 1, // Monday is the first day of the week.
  13638. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13639. },
  13640. });
  13641. //! moment.js locale configuration
  13642. hooks.defineLocale('nn', {
  13643. months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
  13644. '_'
  13645. ),
  13646. monthsShort:
  13647. 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
  13648. monthsParseExact: true,
  13649. weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
  13650. weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'),
  13651. weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'),
  13652. weekdaysParseExact: true,
  13653. longDateFormat: {
  13654. LT: 'HH:mm',
  13655. LTS: 'HH:mm:ss',
  13656. L: 'DD.MM.YYYY',
  13657. LL: 'D. MMMM YYYY',
  13658. LLL: 'D. MMMM YYYY [kl.] H:mm',
  13659. LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
  13660. },
  13661. calendar: {
  13662. sameDay: '[I dag klokka] LT',
  13663. nextDay: '[I morgon klokka] LT',
  13664. nextWeek: 'dddd [klokka] LT',
  13665. lastDay: '[I går klokka] LT',
  13666. lastWeek: '[Føregåande] dddd [klokka] LT',
  13667. sameElse: 'L',
  13668. },
  13669. relativeTime: {
  13670. future: 'om %s',
  13671. past: '%s sidan',
  13672. s: 'nokre sekund',
  13673. ss: '%d sekund',
  13674. m: 'eit minutt',
  13675. mm: '%d minutt',
  13676. h: 'ein time',
  13677. hh: '%d timar',
  13678. d: 'ein dag',
  13679. dd: '%d dagar',
  13680. w: 'ei veke',
  13681. ww: '%d veker',
  13682. M: 'ein månad',
  13683. MM: '%d månader',
  13684. y: 'eit år',
  13685. yy: '%d år',
  13686. },
  13687. dayOfMonthOrdinalParse: /\d{1,2}\./,
  13688. ordinal: '%d.',
  13689. week: {
  13690. dow: 1, // Monday is the first day of the week.
  13691. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13692. },
  13693. });
  13694. //! moment.js locale configuration
  13695. hooks.defineLocale('oc-lnc', {
  13696. months: {
  13697. standalone:
  13698. 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split(
  13699. '_'
  13700. ),
  13701. 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(
  13702. '_'
  13703. ),
  13704. isFormat: /D[oD]?(\s)+MMMM/,
  13705. },
  13706. monthsShort:
  13707. 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split(
  13708. '_'
  13709. ),
  13710. monthsParseExact: true,
  13711. weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split(
  13712. '_'
  13713. ),
  13714. weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'),
  13715. weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'),
  13716. weekdaysParseExact: true,
  13717. longDateFormat: {
  13718. LT: 'H:mm',
  13719. LTS: 'H:mm:ss',
  13720. L: 'DD/MM/YYYY',
  13721. LL: 'D MMMM [de] YYYY',
  13722. ll: 'D MMM YYYY',
  13723. LLL: 'D MMMM [de] YYYY [a] H:mm',
  13724. lll: 'D MMM YYYY, H:mm',
  13725. LLLL: 'dddd D MMMM [de] YYYY [a] H:mm',
  13726. llll: 'ddd D MMM YYYY, H:mm',
  13727. },
  13728. calendar: {
  13729. sameDay: '[uèi a] LT',
  13730. nextDay: '[deman a] LT',
  13731. nextWeek: 'dddd [a] LT',
  13732. lastDay: '[ièr a] LT',
  13733. lastWeek: 'dddd [passat a] LT',
  13734. sameElse: 'L',
  13735. },
  13736. relativeTime: {
  13737. future: "d'aquí %s",
  13738. past: 'fa %s',
  13739. s: 'unas segondas',
  13740. ss: '%d segondas',
  13741. m: 'una minuta',
  13742. mm: '%d minutas',
  13743. h: 'una ora',
  13744. hh: '%d oras',
  13745. d: 'un jorn',
  13746. dd: '%d jorns',
  13747. M: 'un mes',
  13748. MM: '%d meses',
  13749. y: 'un an',
  13750. yy: '%d ans',
  13751. },
  13752. dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
  13753. ordinal: function (number, period) {
  13754. var output =
  13755. number === 1
  13756. ? 'r'
  13757. : number === 2
  13758. ? 'n'
  13759. : number === 3
  13760. ? 'r'
  13761. : number === 4
  13762. ? 't'
  13763. : 'è';
  13764. if (period === 'w' || period === 'W') {
  13765. output = 'a';
  13766. }
  13767. return number + output;
  13768. },
  13769. week: {
  13770. dow: 1, // Monday is the first day of the week.
  13771. doy: 4,
  13772. },
  13773. });
  13774. //! moment.js locale configuration
  13775. var symbolMap$g = {
  13776. 1: '੧',
  13777. 2: '੨',
  13778. 3: '੩',
  13779. 4: '੪',
  13780. 5: '੫',
  13781. 6: '੬',
  13782. 7: '੭',
  13783. 8: '੮',
  13784. 9: '੯',
  13785. 0: '੦',
  13786. },
  13787. numberMap$f = {
  13788. '੧': '1',
  13789. '੨': '2',
  13790. '੩': '3',
  13791. '੪': '4',
  13792. '੫': '5',
  13793. '੬': '6',
  13794. '੭': '7',
  13795. '੮': '8',
  13796. '੯': '9',
  13797. '੦': '0',
  13798. };
  13799. hooks.defineLocale('pa-in', {
  13800. // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi.
  13801. months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(
  13802. '_'
  13803. ),
  13804. monthsShort:
  13805. 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(
  13806. '_'
  13807. ),
  13808. weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split(
  13809. '_'
  13810. ),
  13811. weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  13812. weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  13813. longDateFormat: {
  13814. LT: 'A h:mm ਵਜੇ',
  13815. LTS: 'A h:mm:ss ਵਜੇ',
  13816. L: 'DD/MM/YYYY',
  13817. LL: 'D MMMM YYYY',
  13818. LLL: 'D MMMM YYYY, A h:mm ਵਜੇ',
  13819. LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ',
  13820. },
  13821. calendar: {
  13822. sameDay: '[ਅਜ] LT',
  13823. nextDay: '[ਕਲ] LT',
  13824. nextWeek: '[ਅਗਲਾ] dddd, LT',
  13825. lastDay: '[ਕਲ] LT',
  13826. lastWeek: '[ਪਿਛਲੇ] dddd, LT',
  13827. sameElse: 'L',
  13828. },
  13829. relativeTime: {
  13830. future: '%s ਵਿੱਚ',
  13831. past: '%s ਪਿਛਲੇ',
  13832. s: 'ਕੁਝ ਸਕਿੰਟ',
  13833. ss: '%d ਸਕਿੰਟ',
  13834. m: 'ਇਕ ਮਿੰਟ',
  13835. mm: '%d ਮਿੰਟ',
  13836. h: 'ਇੱਕ ਘੰਟਾ',
  13837. hh: '%d ਘੰਟੇ',
  13838. d: 'ਇੱਕ ਦਿਨ',
  13839. dd: '%d ਦਿਨ',
  13840. M: 'ਇੱਕ ਮਹੀਨਾ',
  13841. MM: '%d ਮਹੀਨੇ',
  13842. y: 'ਇੱਕ ਸਾਲ',
  13843. yy: '%d ਸਾਲ',
  13844. },
  13845. preparse: function (string) {
  13846. return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {
  13847. return numberMap$f[match];
  13848. });
  13849. },
  13850. postformat: function (string) {
  13851. return string.replace(/\d/g, function (match) {
  13852. return symbolMap$g[match];
  13853. });
  13854. },
  13855. // Punjabi notation for meridiems are quite fuzzy in practice. While there exists
  13856. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
  13857. meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
  13858. meridiemHour: function (hour, meridiem) {
  13859. if (hour === 12) {
  13860. hour = 0;
  13861. }
  13862. if (meridiem === 'ਰਾਤ') {
  13863. return hour < 4 ? hour : hour + 12;
  13864. } else if (meridiem === 'ਸਵੇਰ') {
  13865. return hour;
  13866. } else if (meridiem === 'ਦੁਪਹਿਰ') {
  13867. return hour >= 10 ? hour : hour + 12;
  13868. } else if (meridiem === 'ਸ਼ਾਮ') {
  13869. return hour + 12;
  13870. }
  13871. },
  13872. meridiem: function (hour, minute, isLower) {
  13873. if (hour < 4) {
  13874. return 'ਰਾਤ';
  13875. } else if (hour < 10) {
  13876. return 'ਸਵੇਰ';
  13877. } else if (hour < 17) {
  13878. return 'ਦੁਪਹਿਰ';
  13879. } else if (hour < 20) {
  13880. return 'ਸ਼ਾਮ';
  13881. } else {
  13882. return 'ਰਾਤ';
  13883. }
  13884. },
  13885. week: {
  13886. dow: 0, // Sunday is the first day of the week.
  13887. doy: 6, // The week that contains Jan 6th is the first week of the year.
  13888. },
  13889. });
  13890. //! moment.js locale configuration
  13891. var monthsNominative =
  13892. 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split(
  13893. '_'
  13894. ),
  13895. monthsSubjective =
  13896. 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split(
  13897. '_'
  13898. ),
  13899. monthsParse$a = [
  13900. /^sty/i,
  13901. /^lut/i,
  13902. /^mar/i,
  13903. /^kwi/i,
  13904. /^maj/i,
  13905. /^cze/i,
  13906. /^lip/i,
  13907. /^sie/i,
  13908. /^wrz/i,
  13909. /^paź/i,
  13910. /^lis/i,
  13911. /^gru/i,
  13912. ];
  13913. function plural$3(n) {
  13914. return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1;
  13915. }
  13916. function translate$8(number, withoutSuffix, key) {
  13917. var result = number + ' ';
  13918. switch (key) {
  13919. case 'ss':
  13920. return result + (plural$3(number) ? 'sekundy' : 'sekund');
  13921. case 'm':
  13922. return withoutSuffix ? 'minuta' : 'minutę';
  13923. case 'mm':
  13924. return result + (plural$3(number) ? 'minuty' : 'minut');
  13925. case 'h':
  13926. return withoutSuffix ? 'godzina' : 'godzinę';
  13927. case 'hh':
  13928. return result + (plural$3(number) ? 'godziny' : 'godzin');
  13929. case 'ww':
  13930. return result + (plural$3(number) ? 'tygodnie' : 'tygodni');
  13931. case 'MM':
  13932. return result + (plural$3(number) ? 'miesiące' : 'miesięcy');
  13933. case 'yy':
  13934. return result + (plural$3(number) ? 'lata' : 'lat');
  13935. }
  13936. }
  13937. hooks.defineLocale('pl', {
  13938. months: function (momentToFormat, format) {
  13939. if (!momentToFormat) {
  13940. return monthsNominative;
  13941. } else if (/D MMMM/.test(format)) {
  13942. return monthsSubjective[momentToFormat.month()];
  13943. } else {
  13944. return monthsNominative[momentToFormat.month()];
  13945. }
  13946. },
  13947. monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
  13948. monthsParse: monthsParse$a,
  13949. longMonthsParse: monthsParse$a,
  13950. shortMonthsParse: monthsParse$a,
  13951. weekdays:
  13952. 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
  13953. weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),
  13954. weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
  13955. longDateFormat: {
  13956. LT: 'HH:mm',
  13957. LTS: 'HH:mm:ss',
  13958. L: 'DD.MM.YYYY',
  13959. LL: 'D MMMM YYYY',
  13960. LLL: 'D MMMM YYYY HH:mm',
  13961. LLLL: 'dddd, D MMMM YYYY HH:mm',
  13962. },
  13963. calendar: {
  13964. sameDay: '[Dziś o] LT',
  13965. nextDay: '[Jutro o] LT',
  13966. nextWeek: function () {
  13967. switch (this.day()) {
  13968. case 0:
  13969. return '[W niedzielę o] LT';
  13970. case 2:
  13971. return '[We wtorek o] LT';
  13972. case 3:
  13973. return '[W środę o] LT';
  13974. case 6:
  13975. return '[W sobotę o] LT';
  13976. default:
  13977. return '[W] dddd [o] LT';
  13978. }
  13979. },
  13980. lastDay: '[Wczoraj o] LT',
  13981. lastWeek: function () {
  13982. switch (this.day()) {
  13983. case 0:
  13984. return '[W zeszłą niedzielę o] LT';
  13985. case 3:
  13986. return '[W zeszłą środę o] LT';
  13987. case 6:
  13988. return '[W zeszłą sobotę o] LT';
  13989. default:
  13990. return '[W zeszły] dddd [o] LT';
  13991. }
  13992. },
  13993. sameElse: 'L',
  13994. },
  13995. relativeTime: {
  13996. future: 'za %s',
  13997. past: '%s temu',
  13998. s: 'kilka sekund',
  13999. ss: translate$8,
  14000. m: translate$8,
  14001. mm: translate$8,
  14002. h: translate$8,
  14003. hh: translate$8,
  14004. d: '1 dzień',
  14005. dd: '%d dni',
  14006. w: 'tydzień',
  14007. ww: translate$8,
  14008. M: 'miesiąc',
  14009. MM: translate$8,
  14010. y: 'rok',
  14011. yy: translate$8,
  14012. },
  14013. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14014. ordinal: '%d.',
  14015. week: {
  14016. dow: 1, // Monday is the first day of the week.
  14017. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14018. },
  14019. });
  14020. //! moment.js locale configuration
  14021. hooks.defineLocale('pt-br', {
  14022. months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(
  14023. '_'
  14024. ),
  14025. monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
  14026. weekdays:
  14027. 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split(
  14028. '_'
  14029. ),
  14030. weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),
  14031. weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'),
  14032. weekdaysParseExact: true,
  14033. longDateFormat: {
  14034. LT: 'HH:mm',
  14035. LTS: 'HH:mm:ss',
  14036. L: 'DD/MM/YYYY',
  14037. LL: 'D [de] MMMM [de] YYYY',
  14038. LLL: 'D [de] MMMM [de] YYYY [às] HH:mm',
  14039. LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm',
  14040. },
  14041. calendar: {
  14042. sameDay: '[Hoje às] LT',
  14043. nextDay: '[Amanhã às] LT',
  14044. nextWeek: 'dddd [às] LT',
  14045. lastDay: '[Ontem às] LT',
  14046. lastWeek: function () {
  14047. return this.day() === 0 || this.day() === 6
  14048. ? '[Último] dddd [às] LT' // Saturday + Sunday
  14049. : '[Última] dddd [às] LT'; // Monday - Friday
  14050. },
  14051. sameElse: 'L',
  14052. },
  14053. relativeTime: {
  14054. future: 'em %s',
  14055. past: 'há %s',
  14056. s: 'poucos segundos',
  14057. ss: '%d segundos',
  14058. m: 'um minuto',
  14059. mm: '%d minutos',
  14060. h: 'uma hora',
  14061. hh: '%d horas',
  14062. d: 'um dia',
  14063. dd: '%d dias',
  14064. M: 'um mês',
  14065. MM: '%d meses',
  14066. y: 'um ano',
  14067. yy: '%d anos',
  14068. },
  14069. dayOfMonthOrdinalParse: /\d{1,2}º/,
  14070. ordinal: '%dº',
  14071. invalidDate: 'Data inválida',
  14072. });
  14073. //! moment.js locale configuration
  14074. hooks.defineLocale('pt', {
  14075. months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(
  14076. '_'
  14077. ),
  14078. monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
  14079. weekdays:
  14080. 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split(
  14081. '_'
  14082. ),
  14083. weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
  14084. weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
  14085. weekdaysParseExact: true,
  14086. longDateFormat: {
  14087. LT: 'HH:mm',
  14088. LTS: 'HH:mm:ss',
  14089. L: 'DD/MM/YYYY',
  14090. LL: 'D [de] MMMM [de] YYYY',
  14091. LLL: 'D [de] MMMM [de] YYYY HH:mm',
  14092. LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm',
  14093. },
  14094. calendar: {
  14095. sameDay: '[Hoje às] LT',
  14096. nextDay: '[Amanhã às] LT',
  14097. nextWeek: 'dddd [às] LT',
  14098. lastDay: '[Ontem às] LT',
  14099. lastWeek: function () {
  14100. return this.day() === 0 || this.day() === 6
  14101. ? '[Último] dddd [às] LT' // Saturday + Sunday
  14102. : '[Última] dddd [às] LT'; // Monday - Friday
  14103. },
  14104. sameElse: 'L',
  14105. },
  14106. relativeTime: {
  14107. future: 'em %s',
  14108. past: 'há %s',
  14109. s: 'segundos',
  14110. ss: '%d segundos',
  14111. m: 'um minuto',
  14112. mm: '%d minutos',
  14113. h: 'uma hora',
  14114. hh: '%d horas',
  14115. d: 'um dia',
  14116. dd: '%d dias',
  14117. w: 'uma semana',
  14118. ww: '%d semanas',
  14119. M: 'um mês',
  14120. MM: '%d meses',
  14121. y: 'um ano',
  14122. yy: '%d anos',
  14123. },
  14124. dayOfMonthOrdinalParse: /\d{1,2}º/,
  14125. ordinal: '%dº',
  14126. week: {
  14127. dow: 1, // Monday is the first day of the week.
  14128. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14129. },
  14130. });
  14131. //! moment.js locale configuration
  14132. function relativeTimeWithPlural$2(number, withoutSuffix, key) {
  14133. var format = {
  14134. ss: 'secunde',
  14135. mm: 'minute',
  14136. hh: 'ore',
  14137. dd: 'zile',
  14138. ww: 'săptămâni',
  14139. MM: 'luni',
  14140. yy: 'ani',
  14141. },
  14142. separator = ' ';
  14143. if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
  14144. separator = ' de ';
  14145. }
  14146. return number + separator + format[key];
  14147. }
  14148. hooks.defineLocale('ro', {
  14149. months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split(
  14150. '_'
  14151. ),
  14152. monthsShort:
  14153. 'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split(
  14154. '_'
  14155. ),
  14156. monthsParseExact: true,
  14157. weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
  14158. weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
  14159. weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
  14160. longDateFormat: {
  14161. LT: 'H:mm',
  14162. LTS: 'H:mm:ss',
  14163. L: 'DD.MM.YYYY',
  14164. LL: 'D MMMM YYYY',
  14165. LLL: 'D MMMM YYYY H:mm',
  14166. LLLL: 'dddd, D MMMM YYYY H:mm',
  14167. },
  14168. calendar: {
  14169. sameDay: '[azi la] LT',
  14170. nextDay: '[mâine la] LT',
  14171. nextWeek: 'dddd [la] LT',
  14172. lastDay: '[ieri la] LT',
  14173. lastWeek: '[fosta] dddd [la] LT',
  14174. sameElse: 'L',
  14175. },
  14176. relativeTime: {
  14177. future: 'peste %s',
  14178. past: '%s în urmă',
  14179. s: 'câteva secunde',
  14180. ss: relativeTimeWithPlural$2,
  14181. m: 'un minut',
  14182. mm: relativeTimeWithPlural$2,
  14183. h: 'o oră',
  14184. hh: relativeTimeWithPlural$2,
  14185. d: 'o zi',
  14186. dd: relativeTimeWithPlural$2,
  14187. w: 'o săptămână',
  14188. ww: relativeTimeWithPlural$2,
  14189. M: 'o lună',
  14190. MM: relativeTimeWithPlural$2,
  14191. y: 'un an',
  14192. yy: relativeTimeWithPlural$2,
  14193. },
  14194. week: {
  14195. dow: 1, // Monday is the first day of the week.
  14196. doy: 7, // The week that contains Jan 7th is the first week of the year.
  14197. },
  14198. });
  14199. //! moment.js locale configuration
  14200. function plural$4(word, num) {
  14201. var forms = word.split('_');
  14202. return num % 10 === 1 && num % 100 !== 11
  14203. ? forms[0]
  14204. : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
  14205. ? forms[1]
  14206. : forms[2];
  14207. }
  14208. function relativeTimeWithPlural$3(number, withoutSuffix, key) {
  14209. var format = {
  14210. ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
  14211. mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
  14212. hh: 'час_часа_часов',
  14213. dd: 'день_дня_дней',
  14214. ww: 'неделя_недели_недель',
  14215. MM: 'месяц_месяца_месяцев',
  14216. yy: 'год_года_лет',
  14217. };
  14218. if (key === 'm') {
  14219. return withoutSuffix ? 'минута' : 'минуту';
  14220. } else {
  14221. return number + ' ' + plural$4(format[key], +number);
  14222. }
  14223. }
  14224. var monthsParse$b = [
  14225. /^янв/i,
  14226. /^фев/i,
  14227. /^мар/i,
  14228. /^апр/i,
  14229. /^ма[йя]/i,
  14230. /^июн/i,
  14231. /^июл/i,
  14232. /^авг/i,
  14233. /^сен/i,
  14234. /^окт/i,
  14235. /^ноя/i,
  14236. /^дек/i,
  14237. ];
  14238. // http://new.gramota.ru/spravka/rules/139-prop : § 103
  14239. // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
  14240. // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
  14241. hooks.defineLocale('ru', {
  14242. months: {
  14243. format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split(
  14244. '_'
  14245. ),
  14246. standalone:
  14247. 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(
  14248. '_'
  14249. ),
  14250. },
  14251. monthsShort: {
  14252. // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку?
  14253. format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split(
  14254. '_'
  14255. ),
  14256. standalone:
  14257. 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split(
  14258. '_'
  14259. ),
  14260. },
  14261. weekdays: {
  14262. standalone:
  14263. 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split(
  14264. '_'
  14265. ),
  14266. format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split(
  14267. '_'
  14268. ),
  14269. isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/,
  14270. },
  14271. weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  14272. weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  14273. monthsParse: monthsParse$b,
  14274. longMonthsParse: monthsParse$b,
  14275. shortMonthsParse: monthsParse$b,
  14276. // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
  14277. monthsRegex:
  14278. /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  14279. // копия предыдущего
  14280. monthsShortRegex:
  14281. /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  14282. // полные названия с падежами
  14283. monthsStrictRegex:
  14284. /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,
  14285. // Выражение, которое соответствует только сокращённым формам
  14286. monthsShortStrictRegex:
  14287. /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
  14288. longDateFormat: {
  14289. LT: 'H:mm',
  14290. LTS: 'H:mm:ss',
  14291. L: 'DD.MM.YYYY',
  14292. LL: 'D MMMM YYYY г.',
  14293. LLL: 'D MMMM YYYY г., H:mm',
  14294. LLLL: 'dddd, D MMMM YYYY г., H:mm',
  14295. },
  14296. calendar: {
  14297. sameDay: '[Сегодня, в] LT',
  14298. nextDay: '[Завтра, в] LT',
  14299. lastDay: '[Вчера, в] LT',
  14300. nextWeek: function (now) {
  14301. if (now.week() !== this.week()) {
  14302. switch (this.day()) {
  14303. case 0:
  14304. return '[В следующее] dddd, [в] LT';
  14305. case 1:
  14306. case 2:
  14307. case 4:
  14308. return '[В следующий] dddd, [в] LT';
  14309. case 3:
  14310. case 5:
  14311. case 6:
  14312. return '[В следующую] dddd, [в] LT';
  14313. }
  14314. } else {
  14315. if (this.day() === 2) {
  14316. return '[Во] dddd, [в] LT';
  14317. } else {
  14318. return '[В] dddd, [в] LT';
  14319. }
  14320. }
  14321. },
  14322. lastWeek: function (now) {
  14323. if (now.week() !== this.week()) {
  14324. switch (this.day()) {
  14325. case 0:
  14326. return '[В прошлое] dddd, [в] LT';
  14327. case 1:
  14328. case 2:
  14329. case 4:
  14330. return '[В прошлый] dddd, [в] LT';
  14331. case 3:
  14332. case 5:
  14333. case 6:
  14334. return '[В прошлую] dddd, [в] LT';
  14335. }
  14336. } else {
  14337. if (this.day() === 2) {
  14338. return '[Во] dddd, [в] LT';
  14339. } else {
  14340. return '[В] dddd, [в] LT';
  14341. }
  14342. }
  14343. },
  14344. sameElse: 'L',
  14345. },
  14346. relativeTime: {
  14347. future: 'через %s',
  14348. past: '%s назад',
  14349. s: 'несколько секунд',
  14350. ss: relativeTimeWithPlural$3,
  14351. m: relativeTimeWithPlural$3,
  14352. mm: relativeTimeWithPlural$3,
  14353. h: 'час',
  14354. hh: relativeTimeWithPlural$3,
  14355. d: 'день',
  14356. dd: relativeTimeWithPlural$3,
  14357. w: 'неделя',
  14358. ww: relativeTimeWithPlural$3,
  14359. M: 'месяц',
  14360. MM: relativeTimeWithPlural$3,
  14361. y: 'год',
  14362. yy: relativeTimeWithPlural$3,
  14363. },
  14364. meridiemParse: /ночи|утра|дня|вечера/i,
  14365. isPM: function (input) {
  14366. return /^(дня|вечера)$/.test(input);
  14367. },
  14368. meridiem: function (hour, minute, isLower) {
  14369. if (hour < 4) {
  14370. return 'ночи';
  14371. } else if (hour < 12) {
  14372. return 'утра';
  14373. } else if (hour < 17) {
  14374. return 'дня';
  14375. } else {
  14376. return 'вечера';
  14377. }
  14378. },
  14379. dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/,
  14380. ordinal: function (number, period) {
  14381. switch (period) {
  14382. case 'M':
  14383. case 'd':
  14384. case 'DDD':
  14385. return number + '-й';
  14386. case 'D':
  14387. return number + '-го';
  14388. case 'w':
  14389. case 'W':
  14390. return number + '-я';
  14391. default:
  14392. return number;
  14393. }
  14394. },
  14395. week: {
  14396. dow: 1, // Monday is the first day of the week.
  14397. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14398. },
  14399. });
  14400. //! moment.js locale configuration
  14401. var months$9 = [
  14402. 'جنوري',
  14403. 'فيبروري',
  14404. 'مارچ',
  14405. 'اپريل',
  14406. 'مئي',
  14407. 'جون',
  14408. 'جولاءِ',
  14409. 'آگسٽ',
  14410. 'سيپٽمبر',
  14411. 'آڪٽوبر',
  14412. 'نومبر',
  14413. 'ڊسمبر',
  14414. ],
  14415. days$1 = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر'];
  14416. hooks.defineLocale('sd', {
  14417. months: months$9,
  14418. monthsShort: months$9,
  14419. weekdays: days$1,
  14420. weekdaysShort: days$1,
  14421. weekdaysMin: days$1,
  14422. longDateFormat: {
  14423. LT: 'HH:mm',
  14424. LTS: 'HH:mm:ss',
  14425. L: 'DD/MM/YYYY',
  14426. LL: 'D MMMM YYYY',
  14427. LLL: 'D MMMM YYYY HH:mm',
  14428. LLLL: 'dddd، D MMMM YYYY HH:mm',
  14429. },
  14430. meridiemParse: /صبح|شام/,
  14431. isPM: function (input) {
  14432. return 'شام' === input;
  14433. },
  14434. meridiem: function (hour, minute, isLower) {
  14435. if (hour < 12) {
  14436. return 'صبح';
  14437. }
  14438. return 'شام';
  14439. },
  14440. calendar: {
  14441. sameDay: '[اڄ] LT',
  14442. nextDay: '[سڀاڻي] LT',
  14443. nextWeek: 'dddd [اڳين هفتي تي] LT',
  14444. lastDay: '[ڪالهه] LT',
  14445. lastWeek: '[گزريل هفتي] dddd [تي] LT',
  14446. sameElse: 'L',
  14447. },
  14448. relativeTime: {
  14449. future: '%s پوء',
  14450. past: '%s اڳ',
  14451. s: 'چند سيڪنڊ',
  14452. ss: '%d سيڪنڊ',
  14453. m: 'هڪ منٽ',
  14454. mm: '%d منٽ',
  14455. h: 'هڪ ڪلاڪ',
  14456. hh: '%d ڪلاڪ',
  14457. d: 'هڪ ڏينهن',
  14458. dd: '%d ڏينهن',
  14459. M: 'هڪ مهينو',
  14460. MM: '%d مهينا',
  14461. y: 'هڪ سال',
  14462. yy: '%d سال',
  14463. },
  14464. preparse: function (string) {
  14465. return string.replace(/،/g, ',');
  14466. },
  14467. postformat: function (string) {
  14468. return string.replace(/,/g, '،');
  14469. },
  14470. week: {
  14471. dow: 1, // Monday is the first day of the week.
  14472. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14473. },
  14474. });
  14475. //! moment.js locale configuration
  14476. hooks.defineLocale('se', {
  14477. 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(
  14478. '_'
  14479. ),
  14480. monthsShort:
  14481. 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),
  14482. weekdays:
  14483. 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split(
  14484. '_'
  14485. ),
  14486. weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
  14487. weekdaysMin: 's_v_m_g_d_b_L'.split('_'),
  14488. longDateFormat: {
  14489. LT: 'HH:mm',
  14490. LTS: 'HH:mm:ss',
  14491. L: 'DD.MM.YYYY',
  14492. LL: 'MMMM D. [b.] YYYY',
  14493. LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm',
  14494. LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm',
  14495. },
  14496. calendar: {
  14497. sameDay: '[otne ti] LT',
  14498. nextDay: '[ihttin ti] LT',
  14499. nextWeek: 'dddd [ti] LT',
  14500. lastDay: '[ikte ti] LT',
  14501. lastWeek: '[ovddit] dddd [ti] LT',
  14502. sameElse: 'L',
  14503. },
  14504. relativeTime: {
  14505. future: '%s geažes',
  14506. past: 'maŋit %s',
  14507. s: 'moadde sekunddat',
  14508. ss: '%d sekunddat',
  14509. m: 'okta minuhta',
  14510. mm: '%d minuhtat',
  14511. h: 'okta diimmu',
  14512. hh: '%d diimmut',
  14513. d: 'okta beaivi',
  14514. dd: '%d beaivvit',
  14515. M: 'okta mánnu',
  14516. MM: '%d mánut',
  14517. y: 'okta jahki',
  14518. yy: '%d jagit',
  14519. },
  14520. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14521. ordinal: '%d.',
  14522. week: {
  14523. dow: 1, // Monday is the first day of the week.
  14524. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14525. },
  14526. });
  14527. //! moment.js locale configuration
  14528. /*jshint -W100*/
  14529. hooks.defineLocale('si', {
  14530. months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split(
  14531. '_'
  14532. ),
  14533. monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split(
  14534. '_'
  14535. ),
  14536. weekdays:
  14537. 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split(
  14538. '_'
  14539. ),
  14540. weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
  14541. weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
  14542. weekdaysParseExact: true,
  14543. longDateFormat: {
  14544. LT: 'a h:mm',
  14545. LTS: 'a h:mm:ss',
  14546. L: 'YYYY/MM/DD',
  14547. LL: 'YYYY MMMM D',
  14548. LLL: 'YYYY MMMM D, a h:mm',
  14549. LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss',
  14550. },
  14551. calendar: {
  14552. sameDay: '[අද] LT[ට]',
  14553. nextDay: '[හෙට] LT[ට]',
  14554. nextWeek: 'dddd LT[ට]',
  14555. lastDay: '[ඊයේ] LT[ට]',
  14556. lastWeek: '[පසුගිය] dddd LT[ට]',
  14557. sameElse: 'L',
  14558. },
  14559. relativeTime: {
  14560. future: '%sකින්',
  14561. past: '%sකට පෙර',
  14562. s: 'තත්පර කිහිපය',
  14563. ss: 'තත්පර %d',
  14564. m: 'මිනිත්තුව',
  14565. mm: 'මිනිත්තු %d',
  14566. h: 'පැය',
  14567. hh: 'පැය %d',
  14568. d: 'දිනය',
  14569. dd: 'දින %d',
  14570. M: 'මාසය',
  14571. MM: 'මාස %d',
  14572. y: 'වසර',
  14573. yy: 'වසර %d',
  14574. },
  14575. dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
  14576. ordinal: function (number) {
  14577. return number + ' වැනි';
  14578. },
  14579. meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
  14580. isPM: function (input) {
  14581. return input === 'ප.ව.' || input === 'පස් වරු';
  14582. },
  14583. meridiem: function (hours, minutes, isLower) {
  14584. if (hours > 11) {
  14585. return isLower ? 'ප.ව.' : 'පස් වරු';
  14586. } else {
  14587. return isLower ? 'පෙ.ව.' : 'පෙර වරු';
  14588. }
  14589. },
  14590. });
  14591. //! moment.js locale configuration
  14592. var months$a =
  14593. 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split(
  14594. '_'
  14595. ),
  14596. monthsShort$7 = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
  14597. function plural$5(n) {
  14598. return n > 1 && n < 5;
  14599. }
  14600. function translate$9(number, withoutSuffix, key, isFuture) {
  14601. var result = number + ' ';
  14602. switch (key) {
  14603. case 's': // a few seconds / in a few seconds / a few seconds ago
  14604. return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami';
  14605. case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
  14606. if (withoutSuffix || isFuture) {
  14607. return result + (plural$5(number) ? 'sekundy' : 'sekúnd');
  14608. } else {
  14609. return result + 'sekundami';
  14610. }
  14611. case 'm': // a minute / in a minute / a minute ago
  14612. return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou';
  14613. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  14614. if (withoutSuffix || isFuture) {
  14615. return result + (plural$5(number) ? 'minúty' : 'minút');
  14616. } else {
  14617. return result + 'minútami';
  14618. }
  14619. case 'h': // an hour / in an hour / an hour ago
  14620. return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
  14621. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  14622. if (withoutSuffix || isFuture) {
  14623. return result + (plural$5(number) ? 'hodiny' : 'hodín');
  14624. } else {
  14625. return result + 'hodinami';
  14626. }
  14627. case 'd': // a day / in a day / a day ago
  14628. return withoutSuffix || isFuture ? 'deň' : 'dňom';
  14629. case 'dd': // 9 days / in 9 days / 9 days ago
  14630. if (withoutSuffix || isFuture) {
  14631. return result + (plural$5(number) ? 'dni' : 'dní');
  14632. } else {
  14633. return result + 'dňami';
  14634. }
  14635. case 'M': // a month / in a month / a month ago
  14636. return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom';
  14637. case 'MM': // 9 months / in 9 months / 9 months ago
  14638. if (withoutSuffix || isFuture) {
  14639. return result + (plural$5(number) ? 'mesiace' : 'mesiacov');
  14640. } else {
  14641. return result + 'mesiacmi';
  14642. }
  14643. case 'y': // a year / in a year / a year ago
  14644. return withoutSuffix || isFuture ? 'rok' : 'rokom';
  14645. case 'yy': // 9 years / in 9 years / 9 years ago
  14646. if (withoutSuffix || isFuture) {
  14647. return result + (plural$5(number) ? 'roky' : 'rokov');
  14648. } else {
  14649. return result + 'rokmi';
  14650. }
  14651. }
  14652. }
  14653. hooks.defineLocale('sk', {
  14654. months: months$a,
  14655. monthsShort: monthsShort$7,
  14656. weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
  14657. weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'),
  14658. weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'),
  14659. longDateFormat: {
  14660. LT: 'H:mm',
  14661. LTS: 'H:mm:ss',
  14662. L: 'DD.MM.YYYY',
  14663. LL: 'D. MMMM YYYY',
  14664. LLL: 'D. MMMM YYYY H:mm',
  14665. LLLL: 'dddd D. MMMM YYYY H:mm',
  14666. },
  14667. calendar: {
  14668. sameDay: '[dnes o] LT',
  14669. nextDay: '[zajtra o] LT',
  14670. nextWeek: function () {
  14671. switch (this.day()) {
  14672. case 0:
  14673. return '[v nedeľu o] LT';
  14674. case 1:
  14675. case 2:
  14676. return '[v] dddd [o] LT';
  14677. case 3:
  14678. return '[v stredu o] LT';
  14679. case 4:
  14680. return '[vo štvrtok o] LT';
  14681. case 5:
  14682. return '[v piatok o] LT';
  14683. case 6:
  14684. return '[v sobotu o] LT';
  14685. }
  14686. },
  14687. lastDay: '[včera o] LT',
  14688. lastWeek: function () {
  14689. switch (this.day()) {
  14690. case 0:
  14691. return '[minulú nedeľu o] LT';
  14692. case 1:
  14693. case 2:
  14694. return '[minulý] dddd [o] LT';
  14695. case 3:
  14696. return '[minulú stredu o] LT';
  14697. case 4:
  14698. case 5:
  14699. return '[minulý] dddd [o] LT';
  14700. case 6:
  14701. return '[minulú sobotu o] LT';
  14702. }
  14703. },
  14704. sameElse: 'L',
  14705. },
  14706. relativeTime: {
  14707. future: 'za %s',
  14708. past: 'pred %s',
  14709. s: translate$9,
  14710. ss: translate$9,
  14711. m: translate$9,
  14712. mm: translate$9,
  14713. h: translate$9,
  14714. hh: translate$9,
  14715. d: translate$9,
  14716. dd: translate$9,
  14717. M: translate$9,
  14718. MM: translate$9,
  14719. y: translate$9,
  14720. yy: translate$9,
  14721. },
  14722. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14723. ordinal: '%d.',
  14724. week: {
  14725. dow: 1, // Monday is the first day of the week.
  14726. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14727. },
  14728. });
  14729. //! moment.js locale configuration
  14730. function processRelativeTime$9(number, withoutSuffix, key, isFuture) {
  14731. var result = number + ' ';
  14732. switch (key) {
  14733. case 's':
  14734. return withoutSuffix || isFuture
  14735. ? 'nekaj sekund'
  14736. : 'nekaj sekundami';
  14737. case 'ss':
  14738. if (number === 1) {
  14739. result += withoutSuffix ? 'sekundo' : 'sekundi';
  14740. } else if (number === 2) {
  14741. result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah';
  14742. } else if (number < 5) {
  14743. result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';
  14744. } else {
  14745. result += 'sekund';
  14746. }
  14747. return result;
  14748. case 'm':
  14749. return withoutSuffix ? 'ena minuta' : 'eno minuto';
  14750. case 'mm':
  14751. if (number === 1) {
  14752. result += withoutSuffix ? 'minuta' : 'minuto';
  14753. } else if (number === 2) {
  14754. result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
  14755. } else if (number < 5) {
  14756. result += withoutSuffix || isFuture ? 'minute' : 'minutami';
  14757. } else {
  14758. result += withoutSuffix || isFuture ? 'minut' : 'minutami';
  14759. }
  14760. return result;
  14761. case 'h':
  14762. return withoutSuffix ? 'ena ura' : 'eno uro';
  14763. case 'hh':
  14764. if (number === 1) {
  14765. result += withoutSuffix ? 'ura' : 'uro';
  14766. } else if (number === 2) {
  14767. result += withoutSuffix || isFuture ? 'uri' : 'urama';
  14768. } else if (number < 5) {
  14769. result += withoutSuffix || isFuture ? 'ure' : 'urami';
  14770. } else {
  14771. result += withoutSuffix || isFuture ? 'ur' : 'urami';
  14772. }
  14773. return result;
  14774. case 'd':
  14775. return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
  14776. case 'dd':
  14777. if (number === 1) {
  14778. result += withoutSuffix || isFuture ? 'dan' : 'dnem';
  14779. } else if (number === 2) {
  14780. result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
  14781. } else {
  14782. result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
  14783. }
  14784. return result;
  14785. case 'M':
  14786. return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
  14787. case 'MM':
  14788. if (number === 1) {
  14789. result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
  14790. } else if (number === 2) {
  14791. result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
  14792. } else if (number < 5) {
  14793. result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
  14794. } else {
  14795. result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
  14796. }
  14797. return result;
  14798. case 'y':
  14799. return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
  14800. case 'yy':
  14801. if (number === 1) {
  14802. result += withoutSuffix || isFuture ? 'leto' : 'letom';
  14803. } else if (number === 2) {
  14804. result += withoutSuffix || isFuture ? 'leti' : 'letoma';
  14805. } else if (number < 5) {
  14806. result += withoutSuffix || isFuture ? 'leta' : 'leti';
  14807. } else {
  14808. result += withoutSuffix || isFuture ? 'let' : 'leti';
  14809. }
  14810. return result;
  14811. }
  14812. }
  14813. hooks.defineLocale('sl', {
  14814. months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split(
  14815. '_'
  14816. ),
  14817. monthsShort:
  14818. 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split(
  14819. '_'
  14820. ),
  14821. monthsParseExact: true,
  14822. weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
  14823. weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
  14824. weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'),
  14825. weekdaysParseExact: true,
  14826. longDateFormat: {
  14827. LT: 'H:mm',
  14828. LTS: 'H:mm:ss',
  14829. L: 'DD. MM. YYYY',
  14830. LL: 'D. MMMM YYYY',
  14831. LLL: 'D. MMMM YYYY H:mm',
  14832. LLLL: 'dddd, D. MMMM YYYY H:mm',
  14833. },
  14834. calendar: {
  14835. sameDay: '[danes ob] LT',
  14836. nextDay: '[jutri ob] LT',
  14837. nextWeek: function () {
  14838. switch (this.day()) {
  14839. case 0:
  14840. return '[v] [nedeljo] [ob] LT';
  14841. case 3:
  14842. return '[v] [sredo] [ob] LT';
  14843. case 6:
  14844. return '[v] [soboto] [ob] LT';
  14845. case 1:
  14846. case 2:
  14847. case 4:
  14848. case 5:
  14849. return '[v] dddd [ob] LT';
  14850. }
  14851. },
  14852. lastDay: '[včeraj ob] LT',
  14853. lastWeek: function () {
  14854. switch (this.day()) {
  14855. case 0:
  14856. return '[prejšnjo] [nedeljo] [ob] LT';
  14857. case 3:
  14858. return '[prejšnjo] [sredo] [ob] LT';
  14859. case 6:
  14860. return '[prejšnjo] [soboto] [ob] LT';
  14861. case 1:
  14862. case 2:
  14863. case 4:
  14864. case 5:
  14865. return '[prejšnji] dddd [ob] LT';
  14866. }
  14867. },
  14868. sameElse: 'L',
  14869. },
  14870. relativeTime: {
  14871. future: 'čez %s',
  14872. past: 'pred %s',
  14873. s: processRelativeTime$9,
  14874. ss: processRelativeTime$9,
  14875. m: processRelativeTime$9,
  14876. mm: processRelativeTime$9,
  14877. h: processRelativeTime$9,
  14878. hh: processRelativeTime$9,
  14879. d: processRelativeTime$9,
  14880. dd: processRelativeTime$9,
  14881. M: processRelativeTime$9,
  14882. MM: processRelativeTime$9,
  14883. y: processRelativeTime$9,
  14884. yy: processRelativeTime$9,
  14885. },
  14886. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14887. ordinal: '%d.',
  14888. week: {
  14889. dow: 1, // Monday is the first day of the week.
  14890. doy: 7, // The week that contains Jan 7th is the first week of the year.
  14891. },
  14892. });
  14893. //! moment.js locale configuration
  14894. hooks.defineLocale('sq', {
  14895. months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split(
  14896. '_'
  14897. ),
  14898. monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
  14899. weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split(
  14900. '_'
  14901. ),
  14902. weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
  14903. weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'),
  14904. weekdaysParseExact: true,
  14905. meridiemParse: /PD|MD/,
  14906. isPM: function (input) {
  14907. return input.charAt(0) === 'M';
  14908. },
  14909. meridiem: function (hours, minutes, isLower) {
  14910. return hours < 12 ? 'PD' : 'MD';
  14911. },
  14912. longDateFormat: {
  14913. LT: 'HH:mm',
  14914. LTS: 'HH:mm:ss',
  14915. L: 'DD/MM/YYYY',
  14916. LL: 'D MMMM YYYY',
  14917. LLL: 'D MMMM YYYY HH:mm',
  14918. LLLL: 'dddd, D MMMM YYYY HH:mm',
  14919. },
  14920. calendar: {
  14921. sameDay: '[Sot në] LT',
  14922. nextDay: '[Nesër në] LT',
  14923. nextWeek: 'dddd [në] LT',
  14924. lastDay: '[Dje në] LT',
  14925. lastWeek: 'dddd [e kaluar në] LT',
  14926. sameElse: 'L',
  14927. },
  14928. relativeTime: {
  14929. future: 'në %s',
  14930. past: '%s më parë',
  14931. s: 'disa sekonda',
  14932. ss: '%d sekonda',
  14933. m: 'një minutë',
  14934. mm: '%d minuta',
  14935. h: 'një orë',
  14936. hh: '%d orë',
  14937. d: 'një ditë',
  14938. dd: '%d ditë',
  14939. M: 'një muaj',
  14940. MM: '%d muaj',
  14941. y: 'një vit',
  14942. yy: '%d vite',
  14943. },
  14944. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14945. ordinal: '%d.',
  14946. week: {
  14947. dow: 1, // Monday is the first day of the week.
  14948. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14949. },
  14950. });
  14951. //! moment.js locale configuration
  14952. var translator$1 = {
  14953. words: {
  14954. //Different grammatical cases
  14955. ss: ['секунда', 'секунде', 'секунди'],
  14956. m: ['један минут', 'једног минута'],
  14957. mm: ['минут', 'минута', 'минута'],
  14958. h: ['један сат', 'једног сата'],
  14959. hh: ['сат', 'сата', 'сати'],
  14960. d: ['један дан', 'једног дана'],
  14961. dd: ['дан', 'дана', 'дана'],
  14962. M: ['један месец', 'једног месеца'],
  14963. MM: ['месец', 'месеца', 'месеци'],
  14964. y: ['једну годину', 'једне године'],
  14965. yy: ['годину', 'године', 'година'],
  14966. },
  14967. correctGrammaticalCase: function (number, wordKey) {
  14968. if (
  14969. number % 10 >= 1 &&
  14970. number % 10 <= 4 &&
  14971. (number % 100 < 10 || number % 100 >= 20)
  14972. ) {
  14973. return number % 10 === 1 ? wordKey[0] : wordKey[1];
  14974. }
  14975. return wordKey[2];
  14976. },
  14977. translate: function (number, withoutSuffix, key, isFuture) {
  14978. var wordKey = translator$1.words[key],
  14979. word;
  14980. if (key.length === 1) {
  14981. // Nominativ
  14982. if (key === 'y' && withoutSuffix) return 'једна година';
  14983. return isFuture || withoutSuffix ? wordKey[0] : wordKey[1];
  14984. }
  14985. word = translator$1.correctGrammaticalCase(number, wordKey);
  14986. // Nominativ
  14987. if (key === 'yy' && withoutSuffix && word === 'годину') {
  14988. return number + ' година';
  14989. }
  14990. return number + ' ' + word;
  14991. },
  14992. };
  14993. hooks.defineLocale('sr-cyrl', {
  14994. months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split(
  14995. '_'
  14996. ),
  14997. monthsShort:
  14998. 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'),
  14999. monthsParseExact: true,
  15000. weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
  15001. weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
  15002. weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),
  15003. weekdaysParseExact: true,
  15004. longDateFormat: {
  15005. LT: 'H:mm',
  15006. LTS: 'H:mm:ss',
  15007. L: 'D. M. YYYY.',
  15008. LL: 'D. MMMM YYYY.',
  15009. LLL: 'D. MMMM YYYY. H:mm',
  15010. LLLL: 'dddd, D. MMMM YYYY. H:mm',
  15011. },
  15012. calendar: {
  15013. sameDay: '[данас у] LT',
  15014. nextDay: '[сутра у] LT',
  15015. nextWeek: function () {
  15016. switch (this.day()) {
  15017. case 0:
  15018. return '[у] [недељу] [у] LT';
  15019. case 3:
  15020. return '[у] [среду] [у] LT';
  15021. case 6:
  15022. return '[у] [суботу] [у] LT';
  15023. case 1:
  15024. case 2:
  15025. case 4:
  15026. case 5:
  15027. return '[у] dddd [у] LT';
  15028. }
  15029. },
  15030. lastDay: '[јуче у] LT',
  15031. lastWeek: function () {
  15032. var lastWeekDays = [
  15033. '[прошле] [недеље] [у] LT',
  15034. '[прошлог] [понедељка] [у] LT',
  15035. '[прошлог] [уторка] [у] LT',
  15036. '[прошле] [среде] [у] LT',
  15037. '[прошлог] [четвртка] [у] LT',
  15038. '[прошлог] [петка] [у] LT',
  15039. '[прошле] [суботе] [у] LT',
  15040. ];
  15041. return lastWeekDays[this.day()];
  15042. },
  15043. sameElse: 'L',
  15044. },
  15045. relativeTime: {
  15046. future: 'за %s',
  15047. past: 'пре %s',
  15048. s: 'неколико секунди',
  15049. ss: translator$1.translate,
  15050. m: translator$1.translate,
  15051. mm: translator$1.translate,
  15052. h: translator$1.translate,
  15053. hh: translator$1.translate,
  15054. d: translator$1.translate,
  15055. dd: translator$1.translate,
  15056. M: translator$1.translate,
  15057. MM: translator$1.translate,
  15058. y: translator$1.translate,
  15059. yy: translator$1.translate,
  15060. },
  15061. dayOfMonthOrdinalParse: /\d{1,2}\./,
  15062. ordinal: '%d.',
  15063. week: {
  15064. dow: 1, // Monday is the first day of the week.
  15065. doy: 7, // The week that contains Jan 1st is the first week of the year.
  15066. },
  15067. });
  15068. //! moment.js locale configuration
  15069. var translator$2 = {
  15070. words: {
  15071. //Different grammatical cases
  15072. ss: ['sekunda', 'sekunde', 'sekundi'],
  15073. m: ['jedan minut', 'jednog minuta'],
  15074. mm: ['minut', 'minuta', 'minuta'],
  15075. h: ['jedan sat', 'jednog sata'],
  15076. hh: ['sat', 'sata', 'sati'],
  15077. d: ['jedan dan', 'jednog dana'],
  15078. dd: ['dan', 'dana', 'dana'],
  15079. M: ['jedan mesec', 'jednog meseca'],
  15080. MM: ['mesec', 'meseca', 'meseci'],
  15081. y: ['jednu godinu', 'jedne godine'],
  15082. yy: ['godinu', 'godine', 'godina'],
  15083. },
  15084. correctGrammaticalCase: function (number, wordKey) {
  15085. if (
  15086. number % 10 >= 1 &&
  15087. number % 10 <= 4 &&
  15088. (number % 100 < 10 || number % 100 >= 20)
  15089. ) {
  15090. return number % 10 === 1 ? wordKey[0] : wordKey[1];
  15091. }
  15092. return wordKey[2];
  15093. },
  15094. translate: function (number, withoutSuffix, key, isFuture) {
  15095. var wordKey = translator$2.words[key],
  15096. word;
  15097. if (key.length === 1) {
  15098. // Nominativ
  15099. if (key === 'y' && withoutSuffix) return 'jedna godina';
  15100. return isFuture || withoutSuffix ? wordKey[0] : wordKey[1];
  15101. }
  15102. word = translator$2.correctGrammaticalCase(number, wordKey);
  15103. // Nominativ
  15104. if (key === 'yy' && withoutSuffix && word === 'godinu') {
  15105. return number + ' godina';
  15106. }
  15107. return number + ' ' + word;
  15108. },
  15109. };
  15110. hooks.defineLocale('sr', {
  15111. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(
  15112. '_'
  15113. ),
  15114. monthsShort:
  15115. 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
  15116. monthsParseExact: true,
  15117. weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split(
  15118. '_'
  15119. ),
  15120. weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
  15121. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  15122. weekdaysParseExact: true,
  15123. longDateFormat: {
  15124. LT: 'H:mm',
  15125. LTS: 'H:mm:ss',
  15126. L: 'D. M. YYYY.',
  15127. LL: 'D. MMMM YYYY.',
  15128. LLL: 'D. MMMM YYYY. H:mm',
  15129. LLLL: 'dddd, D. MMMM YYYY. H:mm',
  15130. },
  15131. calendar: {
  15132. sameDay: '[danas u] LT',
  15133. nextDay: '[sutra u] LT',
  15134. nextWeek: function () {
  15135. switch (this.day()) {
  15136. case 0:
  15137. return '[u] [nedelju] [u] LT';
  15138. case 3:
  15139. return '[u] [sredu] [u] LT';
  15140. case 6:
  15141. return '[u] [subotu] [u] LT';
  15142. case 1:
  15143. case 2:
  15144. case 4:
  15145. case 5:
  15146. return '[u] dddd [u] LT';
  15147. }
  15148. },
  15149. lastDay: '[juče u] LT',
  15150. lastWeek: function () {
  15151. var lastWeekDays = [
  15152. '[prošle] [nedelje] [u] LT',
  15153. '[prošlog] [ponedeljka] [u] LT',
  15154. '[prošlog] [utorka] [u] LT',
  15155. '[prošle] [srede] [u] LT',
  15156. '[prošlog] [četvrtka] [u] LT',
  15157. '[prošlog] [petka] [u] LT',
  15158. '[prošle] [subote] [u] LT',
  15159. ];
  15160. return lastWeekDays[this.day()];
  15161. },
  15162. sameElse: 'L',
  15163. },
  15164. relativeTime: {
  15165. future: 'za %s',
  15166. past: 'pre %s',
  15167. s: 'nekoliko sekundi',
  15168. ss: translator$2.translate,
  15169. m: translator$2.translate,
  15170. mm: translator$2.translate,
  15171. h: translator$2.translate,
  15172. hh: translator$2.translate,
  15173. d: translator$2.translate,
  15174. dd: translator$2.translate,
  15175. M: translator$2.translate,
  15176. MM: translator$2.translate,
  15177. y: translator$2.translate,
  15178. yy: translator$2.translate,
  15179. },
  15180. dayOfMonthOrdinalParse: /\d{1,2}\./,
  15181. ordinal: '%d.',
  15182. week: {
  15183. dow: 1, // Monday is the first day of the week.
  15184. doy: 7, // The week that contains Jan 7th is the first week of the year.
  15185. },
  15186. });
  15187. //! moment.js locale configuration
  15188. hooks.defineLocale('ss', {
  15189. months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split(
  15190. '_'
  15191. ),
  15192. monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
  15193. weekdays:
  15194. 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split(
  15195. '_'
  15196. ),
  15197. weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
  15198. weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
  15199. weekdaysParseExact: true,
  15200. longDateFormat: {
  15201. LT: 'h:mm A',
  15202. LTS: 'h:mm:ss A',
  15203. L: 'DD/MM/YYYY',
  15204. LL: 'D MMMM YYYY',
  15205. LLL: 'D MMMM YYYY h:mm A',
  15206. LLLL: 'dddd, D MMMM YYYY h:mm A',
  15207. },
  15208. calendar: {
  15209. sameDay: '[Namuhla nga] LT',
  15210. nextDay: '[Kusasa nga] LT',
  15211. nextWeek: 'dddd [nga] LT',
  15212. lastDay: '[Itolo nga] LT',
  15213. lastWeek: 'dddd [leliphelile] [nga] LT',
  15214. sameElse: 'L',
  15215. },
  15216. relativeTime: {
  15217. future: 'nga %s',
  15218. past: 'wenteka nga %s',
  15219. s: 'emizuzwana lomcane',
  15220. ss: '%d mzuzwana',
  15221. m: 'umzuzu',
  15222. mm: '%d emizuzu',
  15223. h: 'lihora',
  15224. hh: '%d emahora',
  15225. d: 'lilanga',
  15226. dd: '%d emalanga',
  15227. M: 'inyanga',
  15228. MM: '%d tinyanga',
  15229. y: 'umnyaka',
  15230. yy: '%d iminyaka',
  15231. },
  15232. meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
  15233. meridiem: function (hours, minutes, isLower) {
  15234. if (hours < 11) {
  15235. return 'ekuseni';
  15236. } else if (hours < 15) {
  15237. return 'emini';
  15238. } else if (hours < 19) {
  15239. return 'entsambama';
  15240. } else {
  15241. return 'ebusuku';
  15242. }
  15243. },
  15244. meridiemHour: function (hour, meridiem) {
  15245. if (hour === 12) {
  15246. hour = 0;
  15247. }
  15248. if (meridiem === 'ekuseni') {
  15249. return hour;
  15250. } else if (meridiem === 'emini') {
  15251. return hour >= 11 ? hour : hour + 12;
  15252. } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {
  15253. if (hour === 0) {
  15254. return 0;
  15255. }
  15256. return hour + 12;
  15257. }
  15258. },
  15259. dayOfMonthOrdinalParse: /\d{1,2}/,
  15260. ordinal: '%d',
  15261. week: {
  15262. dow: 1, // Monday is the first day of the week.
  15263. doy: 4, // The week that contains Jan 4th is the first week of the year.
  15264. },
  15265. });
  15266. //! moment.js locale configuration
  15267. hooks.defineLocale('sv', {
  15268. months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split(
  15269. '_'
  15270. ),
  15271. monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  15272. weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
  15273. weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
  15274. weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),
  15275. longDateFormat: {
  15276. LT: 'HH:mm',
  15277. LTS: 'HH:mm:ss',
  15278. L: 'YYYY-MM-DD',
  15279. LL: 'D MMMM YYYY',
  15280. LLL: 'D MMMM YYYY [kl.] HH:mm',
  15281. LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',
  15282. lll: 'D MMM YYYY HH:mm',
  15283. llll: 'ddd D MMM YYYY HH:mm',
  15284. },
  15285. calendar: {
  15286. sameDay: '[Idag] LT',
  15287. nextDay: '[Imorgon] LT',
  15288. lastDay: '[Igår] LT',
  15289. nextWeek: '[På] dddd LT',
  15290. lastWeek: '[I] dddd[s] LT',
  15291. sameElse: 'L',
  15292. },
  15293. relativeTime: {
  15294. future: 'om %s',
  15295. past: 'för %s sedan',
  15296. s: 'några sekunder',
  15297. ss: '%d sekunder',
  15298. m: 'en minut',
  15299. mm: '%d minuter',
  15300. h: 'en timme',
  15301. hh: '%d timmar',
  15302. d: 'en dag',
  15303. dd: '%d dagar',
  15304. M: 'en månad',
  15305. MM: '%d månader',
  15306. y: 'ett år',
  15307. yy: '%d år',
  15308. },
  15309. dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/,
  15310. ordinal: function (number) {
  15311. var b = number % 10,
  15312. output =
  15313. ~~((number % 100) / 10) === 1
  15314. ? ':e'
  15315. : b === 1
  15316. ? ':a'
  15317. : b === 2
  15318. ? ':a'
  15319. : b === 3
  15320. ? ':e'
  15321. : ':e';
  15322. return number + output;
  15323. },
  15324. week: {
  15325. dow: 1, // Monday is the first day of the week.
  15326. doy: 4, // The week that contains Jan 4th is the first week of the year.
  15327. },
  15328. });
  15329. //! moment.js locale configuration
  15330. hooks.defineLocale('sw', {
  15331. months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split(
  15332. '_'
  15333. ),
  15334. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
  15335. weekdays:
  15336. 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split(
  15337. '_'
  15338. ),
  15339. weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
  15340. weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
  15341. weekdaysParseExact: true,
  15342. longDateFormat: {
  15343. LT: 'hh:mm A',
  15344. LTS: 'HH:mm:ss',
  15345. L: 'DD.MM.YYYY',
  15346. LL: 'D MMMM YYYY',
  15347. LLL: 'D MMMM YYYY HH:mm',
  15348. LLLL: 'dddd, D MMMM YYYY HH:mm',
  15349. },
  15350. calendar: {
  15351. sameDay: '[leo saa] LT',
  15352. nextDay: '[kesho saa] LT',
  15353. nextWeek: '[wiki ijayo] dddd [saat] LT',
  15354. lastDay: '[jana] LT',
  15355. lastWeek: '[wiki iliyopita] dddd [saat] LT',
  15356. sameElse: 'L',
  15357. },
  15358. relativeTime: {
  15359. future: '%s baadaye',
  15360. past: 'tokea %s',
  15361. s: 'hivi punde',
  15362. ss: 'sekunde %d',
  15363. m: 'dakika moja',
  15364. mm: 'dakika %d',
  15365. h: 'saa limoja',
  15366. hh: 'masaa %d',
  15367. d: 'siku moja',
  15368. dd: 'siku %d',
  15369. M: 'mwezi mmoja',
  15370. MM: 'miezi %d',
  15371. y: 'mwaka mmoja',
  15372. yy: 'miaka %d',
  15373. },
  15374. week: {
  15375. dow: 1, // Monday is the first day of the week.
  15376. doy: 7, // The week that contains Jan 7th is the first week of the year.
  15377. },
  15378. });
  15379. //! moment.js locale configuration
  15380. var symbolMap$h = {
  15381. 1: '௧',
  15382. 2: '௨',
  15383. 3: '௩',
  15384. 4: '௪',
  15385. 5: '௫',
  15386. 6: '௬',
  15387. 7: '௭',
  15388. 8: '௮',
  15389. 9: '௯',
  15390. 0: '௦',
  15391. },
  15392. numberMap$g = {
  15393. '௧': '1',
  15394. '௨': '2',
  15395. '௩': '3',
  15396. '௪': '4',
  15397. '௫': '5',
  15398. '௬': '6',
  15399. '௭': '7',
  15400. '௮': '8',
  15401. '௯': '9',
  15402. '௦': '0',
  15403. };
  15404. hooks.defineLocale('ta', {
  15405. months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(
  15406. '_'
  15407. ),
  15408. monthsShort:
  15409. 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(
  15410. '_'
  15411. ),
  15412. weekdays:
  15413. 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split(
  15414. '_'
  15415. ),
  15416. weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split(
  15417. '_'
  15418. ),
  15419. weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
  15420. longDateFormat: {
  15421. LT: 'HH:mm',
  15422. LTS: 'HH:mm:ss',
  15423. L: 'DD/MM/YYYY',
  15424. LL: 'D MMMM YYYY',
  15425. LLL: 'D MMMM YYYY, HH:mm',
  15426. LLLL: 'dddd, D MMMM YYYY, HH:mm',
  15427. },
  15428. calendar: {
  15429. sameDay: '[இன்று] LT',
  15430. nextDay: '[நாளை] LT',
  15431. nextWeek: 'dddd, LT',
  15432. lastDay: '[நேற்று] LT',
  15433. lastWeek: '[கடந்த வாரம்] dddd, LT',
  15434. sameElse: 'L',
  15435. },
  15436. relativeTime: {
  15437. future: '%s இல்',
  15438. past: '%s முன்',
  15439. s: 'ஒரு சில விநாடிகள்',
  15440. ss: '%d விநாடிகள்',
  15441. m: 'ஒரு நிமிடம்',
  15442. mm: '%d நிமிடங்கள்',
  15443. h: 'ஒரு மணி நேரம்',
  15444. hh: '%d மணி நேரம்',
  15445. d: 'ஒரு நாள்',
  15446. dd: '%d நாட்கள்',
  15447. M: 'ஒரு மாதம்',
  15448. MM: '%d மாதங்கள்',
  15449. y: 'ஒரு வருடம்',
  15450. yy: '%d ஆண்டுகள்',
  15451. },
  15452. dayOfMonthOrdinalParse: /\d{1,2}வது/,
  15453. ordinal: function (number) {
  15454. return number + 'வது';
  15455. },
  15456. preparse: function (string) {
  15457. return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
  15458. return numberMap$g[match];
  15459. });
  15460. },
  15461. postformat: function (string) {
  15462. return string.replace(/\d/g, function (match) {
  15463. return symbolMap$h[match];
  15464. });
  15465. },
  15466. // refer http://ta.wikipedia.org/s/1er1
  15467. meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
  15468. meridiem: function (hour, minute, isLower) {
  15469. if (hour < 2) {
  15470. return ' யாமம்';
  15471. } else if (hour < 6) {
  15472. return ' வைகறை'; // வைகறை
  15473. } else if (hour < 10) {
  15474. return ' காலை'; // காலை
  15475. } else if (hour < 14) {
  15476. return ' நண்பகல்'; // நண்பகல்
  15477. } else if (hour < 18) {
  15478. return ' எற்பாடு'; // எற்பாடு
  15479. } else if (hour < 22) {
  15480. return ' மாலை'; // மாலை
  15481. } else {
  15482. return ' யாமம்';
  15483. }
  15484. },
  15485. meridiemHour: function (hour, meridiem) {
  15486. if (hour === 12) {
  15487. hour = 0;
  15488. }
  15489. if (meridiem === 'யாமம்') {
  15490. return hour < 2 ? hour : hour + 12;
  15491. } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {
  15492. return hour;
  15493. } else if (meridiem === 'நண்பகல்') {
  15494. return hour >= 10 ? hour : hour + 12;
  15495. } else {
  15496. return hour + 12;
  15497. }
  15498. },
  15499. week: {
  15500. dow: 0, // Sunday is the first day of the week.
  15501. doy: 6, // The week that contains Jan 6th is the first week of the year.
  15502. },
  15503. });
  15504. //! moment.js locale configuration
  15505. hooks.defineLocale('te', {
  15506. months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split(
  15507. '_'
  15508. ),
  15509. monthsShort:
  15510. 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split(
  15511. '_'
  15512. ),
  15513. monthsParseExact: true,
  15514. weekdays:
  15515. 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split(
  15516. '_'
  15517. ),
  15518. weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
  15519. weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
  15520. longDateFormat: {
  15521. LT: 'A h:mm',
  15522. LTS: 'A h:mm:ss',
  15523. L: 'DD/MM/YYYY',
  15524. LL: 'D MMMM YYYY',
  15525. LLL: 'D MMMM YYYY, A h:mm',
  15526. LLLL: 'dddd, D MMMM YYYY, A h:mm',
  15527. },
  15528. calendar: {
  15529. sameDay: '[నేడు] LT',
  15530. nextDay: '[రేపు] LT',
  15531. nextWeek: 'dddd, LT',
  15532. lastDay: '[నిన్న] LT',
  15533. lastWeek: '[గత] dddd, LT',
  15534. sameElse: 'L',
  15535. },
  15536. relativeTime: {
  15537. future: '%s లో',
  15538. past: '%s క్రితం',
  15539. s: 'కొన్ని క్షణాలు',
  15540. ss: '%d సెకన్లు',
  15541. m: 'ఒక నిమిషం',
  15542. mm: '%d నిమిషాలు',
  15543. h: 'ఒక గంట',
  15544. hh: '%d గంటలు',
  15545. d: 'ఒక రోజు',
  15546. dd: '%d రోజులు',
  15547. M: 'ఒక నెల',
  15548. MM: '%d నెలలు',
  15549. y: 'ఒక సంవత్సరం',
  15550. yy: '%d సంవత్సరాలు',
  15551. },
  15552. dayOfMonthOrdinalParse: /\d{1,2}వ/,
  15553. ordinal: '%dవ',
  15554. meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
  15555. meridiemHour: function (hour, meridiem) {
  15556. if (hour === 12) {
  15557. hour = 0;
  15558. }
  15559. if (meridiem === 'రాత్రి') {
  15560. return hour < 4 ? hour : hour + 12;
  15561. } else if (meridiem === 'ఉదయం') {
  15562. return hour;
  15563. } else if (meridiem === 'మధ్యాహ్నం') {
  15564. return hour >= 10 ? hour : hour + 12;
  15565. } else if (meridiem === 'సాయంత్రం') {
  15566. return hour + 12;
  15567. }
  15568. },
  15569. meridiem: function (hour, minute, isLower) {
  15570. if (hour < 4) {
  15571. return 'రాత్రి';
  15572. } else if (hour < 10) {
  15573. return 'ఉదయం';
  15574. } else if (hour < 17) {
  15575. return 'మధ్యాహ్నం';
  15576. } else if (hour < 20) {
  15577. return 'సాయంత్రం';
  15578. } else {
  15579. return 'రాత్రి';
  15580. }
  15581. },
  15582. week: {
  15583. dow: 0, // Sunday is the first day of the week.
  15584. doy: 6, // The week that contains Jan 6th is the first week of the year.
  15585. },
  15586. });
  15587. //! moment.js locale configuration
  15588. hooks.defineLocale('tet', {
  15589. months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split(
  15590. '_'
  15591. ),
  15592. monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
  15593. weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'),
  15594. weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'),
  15595. weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'),
  15596. longDateFormat: {
  15597. LT: 'HH:mm',
  15598. LTS: 'HH:mm:ss',
  15599. L: 'DD/MM/YYYY',
  15600. LL: 'D MMMM YYYY',
  15601. LLL: 'D MMMM YYYY HH:mm',
  15602. LLLL: 'dddd, D MMMM YYYY HH:mm',
  15603. },
  15604. calendar: {
  15605. sameDay: '[Ohin iha] LT',
  15606. nextDay: '[Aban iha] LT',
  15607. nextWeek: 'dddd [iha] LT',
  15608. lastDay: '[Horiseik iha] LT',
  15609. lastWeek: 'dddd [semana kotuk] [iha] LT',
  15610. sameElse: 'L',
  15611. },
  15612. relativeTime: {
  15613. future: 'iha %s',
  15614. past: '%s liuba',
  15615. s: 'segundu balun',
  15616. ss: 'segundu %d',
  15617. m: 'minutu ida',
  15618. mm: 'minutu %d',
  15619. h: 'oras ida',
  15620. hh: 'oras %d',
  15621. d: 'loron ida',
  15622. dd: 'loron %d',
  15623. M: 'fulan ida',
  15624. MM: 'fulan %d',
  15625. y: 'tinan ida',
  15626. yy: 'tinan %d',
  15627. },
  15628. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  15629. ordinal: function (number) {
  15630. var b = number % 10,
  15631. output =
  15632. ~~((number % 100) / 10) === 1
  15633. ? 'th'
  15634. : b === 1
  15635. ? 'st'
  15636. : b === 2
  15637. ? 'nd'
  15638. : b === 3
  15639. ? 'rd'
  15640. : 'th';
  15641. return number + output;
  15642. },
  15643. week: {
  15644. dow: 1, // Monday is the first day of the week.
  15645. doy: 4, // The week that contains Jan 4th is the first week of the year.
  15646. },
  15647. });
  15648. //! moment.js locale configuration
  15649. var suffixes$3 = {
  15650. 0: '-ум',
  15651. 1: '-ум',
  15652. 2: '-юм',
  15653. 3: '-юм',
  15654. 4: '-ум',
  15655. 5: '-ум',
  15656. 6: '-ум',
  15657. 7: '-ум',
  15658. 8: '-ум',
  15659. 9: '-ум',
  15660. 10: '-ум',
  15661. 12: '-ум',
  15662. 13: '-ум',
  15663. 20: '-ум',
  15664. 30: '-юм',
  15665. 40: '-ум',
  15666. 50: '-ум',
  15667. 60: '-ум',
  15668. 70: '-ум',
  15669. 80: '-ум',
  15670. 90: '-ум',
  15671. 100: '-ум',
  15672. };
  15673. hooks.defineLocale('tg', {
  15674. months: {
  15675. format: 'январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри'.split(
  15676. '_'
  15677. ),
  15678. standalone:
  15679. 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
  15680. '_'
  15681. ),
  15682. },
  15683. monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
  15684. weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split(
  15685. '_'
  15686. ),
  15687. weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'),
  15688. weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'),
  15689. longDateFormat: {
  15690. LT: 'HH:mm',
  15691. LTS: 'HH:mm:ss',
  15692. L: 'DD.MM.YYYY',
  15693. LL: 'D MMMM YYYY',
  15694. LLL: 'D MMMM YYYY HH:mm',
  15695. LLLL: 'dddd, D MMMM YYYY HH:mm',
  15696. },
  15697. calendar: {
  15698. sameDay: '[Имрӯз соати] LT',
  15699. nextDay: '[Фардо соати] LT',
  15700. lastDay: '[Дирӯз соати] LT',
  15701. nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT',
  15702. lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT',
  15703. sameElse: 'L',
  15704. },
  15705. relativeTime: {
  15706. future: 'баъди %s',
  15707. past: '%s пеш',
  15708. s: 'якчанд сония',
  15709. m: 'як дақиқа',
  15710. mm: '%d дақиқа',
  15711. h: 'як соат',
  15712. hh: '%d соат',
  15713. d: 'як рӯз',
  15714. dd: '%d рӯз',
  15715. M: 'як моҳ',
  15716. MM: '%d моҳ',
  15717. y: 'як сол',
  15718. yy: '%d сол',
  15719. },
  15720. meridiemParse: /шаб|субҳ|рӯз|бегоҳ/,
  15721. meridiemHour: function (hour, meridiem) {
  15722. if (hour === 12) {
  15723. hour = 0;
  15724. }
  15725. if (meridiem === 'шаб') {
  15726. return hour < 4 ? hour : hour + 12;
  15727. } else if (meridiem === 'субҳ') {
  15728. return hour;
  15729. } else if (meridiem === 'рӯз') {
  15730. return hour >= 11 ? hour : hour + 12;
  15731. } else if (meridiem === 'бегоҳ') {
  15732. return hour + 12;
  15733. }
  15734. },
  15735. meridiem: function (hour, minute, isLower) {
  15736. if (hour < 4) {
  15737. return 'шаб';
  15738. } else if (hour < 11) {
  15739. return 'субҳ';
  15740. } else if (hour < 16) {
  15741. return 'рӯз';
  15742. } else if (hour < 19) {
  15743. return 'бегоҳ';
  15744. } else {
  15745. return 'шаб';
  15746. }
  15747. },
  15748. dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/,
  15749. ordinal: function (number) {
  15750. var a = number % 10,
  15751. b = number >= 100 ? 100 : null;
  15752. return number + (suffixes$3[number] || suffixes$3[a] || suffixes$3[b]);
  15753. },
  15754. week: {
  15755. dow: 1, // Monday is the first day of the week.
  15756. doy: 7, // The week that contains Jan 1th is the first week of the year.
  15757. },
  15758. });
  15759. //! moment.js locale configuration
  15760. hooks.defineLocale('th', {
  15761. months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split(
  15762. '_'
  15763. ),
  15764. monthsShort:
  15765. 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split(
  15766. '_'
  15767. ),
  15768. monthsParseExact: true,
  15769. weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
  15770. weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
  15771. weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
  15772. weekdaysParseExact: true,
  15773. longDateFormat: {
  15774. LT: 'H:mm',
  15775. LTS: 'H:mm:ss',
  15776. L: 'DD/MM/YYYY',
  15777. LL: 'D MMMM YYYY',
  15778. LLL: 'D MMMM YYYY เวลา H:mm',
  15779. LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm',
  15780. },
  15781. meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
  15782. isPM: function (input) {
  15783. return input === 'หลังเที่ยง';
  15784. },
  15785. meridiem: function (hour, minute, isLower) {
  15786. if (hour < 12) {
  15787. return 'ก่อนเที่ยง';
  15788. } else {
  15789. return 'หลังเที่ยง';
  15790. }
  15791. },
  15792. calendar: {
  15793. sameDay: '[วันนี้ เวลา] LT',
  15794. nextDay: '[พรุ่งนี้ เวลา] LT',
  15795. nextWeek: 'dddd[หน้า เวลา] LT',
  15796. lastDay: '[เมื่อวานนี้ เวลา] LT',
  15797. lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT',
  15798. sameElse: 'L',
  15799. },
  15800. relativeTime: {
  15801. future: 'อีก %s',
  15802. past: '%sที่แล้ว',
  15803. s: 'ไม่กี่วินาที',
  15804. ss: '%d วินาที',
  15805. m: '1 นาที',
  15806. mm: '%d นาที',
  15807. h: '1 ชั่วโมง',
  15808. hh: '%d ชั่วโมง',
  15809. d: '1 วัน',
  15810. dd: '%d วัน',
  15811. w: '1 สัปดาห์',
  15812. ww: '%d สัปดาห์',
  15813. M: '1 เดือน',
  15814. MM: '%d เดือน',
  15815. y: '1 ปี',
  15816. yy: '%d ปี',
  15817. },
  15818. });
  15819. //! moment.js locale configuration
  15820. var suffixes$4 = {
  15821. 1: "'inji",
  15822. 5: "'inji",
  15823. 8: "'inji",
  15824. 70: "'inji",
  15825. 80: "'inji",
  15826. 2: "'nji",
  15827. 7: "'nji",
  15828. 20: "'nji",
  15829. 50: "'nji",
  15830. 3: "'ünji",
  15831. 4: "'ünji",
  15832. 100: "'ünji",
  15833. 6: "'njy",
  15834. 9: "'unjy",
  15835. 10: "'unjy",
  15836. 30: "'unjy",
  15837. 60: "'ynjy",
  15838. 90: "'ynjy",
  15839. };
  15840. hooks.defineLocale('tk', {
  15841. months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split(
  15842. '_'
  15843. ),
  15844. monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split('_'),
  15845. weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split(
  15846. '_'
  15847. ),
  15848. weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'),
  15849. weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'),
  15850. longDateFormat: {
  15851. LT: 'HH:mm',
  15852. LTS: 'HH:mm:ss',
  15853. L: 'DD.MM.YYYY',
  15854. LL: 'D MMMM YYYY',
  15855. LLL: 'D MMMM YYYY HH:mm',
  15856. LLLL: 'dddd, D MMMM YYYY HH:mm',
  15857. },
  15858. calendar: {
  15859. sameDay: '[bugün sagat] LT',
  15860. nextDay: '[ertir sagat] LT',
  15861. nextWeek: '[indiki] dddd [sagat] LT',
  15862. lastDay: '[düýn] LT',
  15863. lastWeek: '[geçen] dddd [sagat] LT',
  15864. sameElse: 'L',
  15865. },
  15866. relativeTime: {
  15867. future: '%s soň',
  15868. past: '%s öň',
  15869. s: 'birnäçe sekunt',
  15870. m: 'bir minut',
  15871. mm: '%d minut',
  15872. h: 'bir sagat',
  15873. hh: '%d sagat',
  15874. d: 'bir gün',
  15875. dd: '%d gün',
  15876. M: 'bir aý',
  15877. MM: '%d aý',
  15878. y: 'bir ýyl',
  15879. yy: '%d ýyl',
  15880. },
  15881. ordinal: function (number, period) {
  15882. switch (period) {
  15883. case 'd':
  15884. case 'D':
  15885. case 'Do':
  15886. case 'DD':
  15887. return number;
  15888. default:
  15889. if (number === 0) {
  15890. // special case for zero
  15891. return number + "'unjy";
  15892. }
  15893. var a = number % 10,
  15894. b = (number % 100) - a,
  15895. c = number >= 100 ? 100 : null;
  15896. return number + (suffixes$4[a] || suffixes$4[b] || suffixes$4[c]);
  15897. }
  15898. },
  15899. week: {
  15900. dow: 1, // Monday is the first day of the week.
  15901. doy: 7, // The week that contains Jan 7th is the first week of the year.
  15902. },
  15903. });
  15904. //! moment.js locale configuration
  15905. hooks.defineLocale('tl-ph', {
  15906. months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(
  15907. '_'
  15908. ),
  15909. monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
  15910. weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(
  15911. '_'
  15912. ),
  15913. weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
  15914. weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
  15915. longDateFormat: {
  15916. LT: 'HH:mm',
  15917. LTS: 'HH:mm:ss',
  15918. L: 'MM/D/YYYY',
  15919. LL: 'MMMM D, YYYY',
  15920. LLL: 'MMMM D, YYYY HH:mm',
  15921. LLLL: 'dddd, MMMM DD, YYYY HH:mm',
  15922. },
  15923. calendar: {
  15924. sameDay: 'LT [ngayong araw]',
  15925. nextDay: '[Bukas ng] LT',
  15926. nextWeek: 'LT [sa susunod na] dddd',
  15927. lastDay: 'LT [kahapon]',
  15928. lastWeek: 'LT [noong nakaraang] dddd',
  15929. sameElse: 'L',
  15930. },
  15931. relativeTime: {
  15932. future: 'sa loob ng %s',
  15933. past: '%s ang nakalipas',
  15934. s: 'ilang segundo',
  15935. ss: '%d segundo',
  15936. m: 'isang minuto',
  15937. mm: '%d minuto',
  15938. h: 'isang oras',
  15939. hh: '%d oras',
  15940. d: 'isang araw',
  15941. dd: '%d araw',
  15942. M: 'isang buwan',
  15943. MM: '%d buwan',
  15944. y: 'isang taon',
  15945. yy: '%d taon',
  15946. },
  15947. dayOfMonthOrdinalParse: /\d{1,2}/,
  15948. ordinal: function (number) {
  15949. return number;
  15950. },
  15951. week: {
  15952. dow: 1, // Monday is the first day of the week.
  15953. doy: 4, // The week that contains Jan 4th is the first week of the year.
  15954. },
  15955. });
  15956. //! moment.js locale configuration
  15957. var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');
  15958. function translateFuture(output) {
  15959. var time = output;
  15960. time =
  15961. output.indexOf('jaj') !== -1
  15962. ? time.slice(0, -3) + 'leS'
  15963. : output.indexOf('jar') !== -1
  15964. ? time.slice(0, -3) + 'waQ'
  15965. : output.indexOf('DIS') !== -1
  15966. ? time.slice(0, -3) + 'nem'
  15967. : time + ' pIq';
  15968. return time;
  15969. }
  15970. function translatePast(output) {
  15971. var time = output;
  15972. time =
  15973. output.indexOf('jaj') !== -1
  15974. ? time.slice(0, -3) + 'Hu’'
  15975. : output.indexOf('jar') !== -1
  15976. ? time.slice(0, -3) + 'wen'
  15977. : output.indexOf('DIS') !== -1
  15978. ? time.slice(0, -3) + 'ben'
  15979. : time + ' ret';
  15980. return time;
  15981. }
  15982. function translate$a(number, withoutSuffix, string, isFuture) {
  15983. var numberNoun = numberAsNoun(number);
  15984. switch (string) {
  15985. case 'ss':
  15986. return numberNoun + ' lup';
  15987. case 'mm':
  15988. return numberNoun + ' tup';
  15989. case 'hh':
  15990. return numberNoun + ' rep';
  15991. case 'dd':
  15992. return numberNoun + ' jaj';
  15993. case 'MM':
  15994. return numberNoun + ' jar';
  15995. case 'yy':
  15996. return numberNoun + ' DIS';
  15997. }
  15998. }
  15999. function numberAsNoun(number) {
  16000. var hundred = Math.floor((number % 1000) / 100),
  16001. ten = Math.floor((number % 100) / 10),
  16002. one = number % 10,
  16003. word = '';
  16004. if (hundred > 0) {
  16005. word += numbersNouns[hundred] + 'vatlh';
  16006. }
  16007. if (ten > 0) {
  16008. word += (word !== '' ? ' ' : '') + numbersNouns[ten] + 'maH';
  16009. }
  16010. if (one > 0) {
  16011. word += (word !== '' ? ' ' : '') + numbersNouns[one];
  16012. }
  16013. return word === '' ? 'pagh' : word;
  16014. }
  16015. hooks.defineLocale('tlh', {
  16016. 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(
  16017. '_'
  16018. ),
  16019. monthsShort:
  16020. '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(
  16021. '_'
  16022. ),
  16023. monthsParseExact: true,
  16024. weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(
  16025. '_'
  16026. ),
  16027. weekdaysShort:
  16028. 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  16029. weekdaysMin:
  16030. 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  16031. longDateFormat: {
  16032. LT: 'HH:mm',
  16033. LTS: 'HH:mm:ss',
  16034. L: 'DD.MM.YYYY',
  16035. LL: 'D MMMM YYYY',
  16036. LLL: 'D MMMM YYYY HH:mm',
  16037. LLLL: 'dddd, D MMMM YYYY HH:mm',
  16038. },
  16039. calendar: {
  16040. sameDay: '[DaHjaj] LT',
  16041. nextDay: '[wa’leS] LT',
  16042. nextWeek: 'LLL',
  16043. lastDay: '[wa’Hu’] LT',
  16044. lastWeek: 'LLL',
  16045. sameElse: 'L',
  16046. },
  16047. relativeTime: {
  16048. future: translateFuture,
  16049. past: translatePast,
  16050. s: 'puS lup',
  16051. ss: translate$a,
  16052. m: 'wa’ tup',
  16053. mm: translate$a,
  16054. h: 'wa’ rep',
  16055. hh: translate$a,
  16056. d: 'wa’ jaj',
  16057. dd: translate$a,
  16058. M: 'wa’ jar',
  16059. MM: translate$a,
  16060. y: 'wa’ DIS',
  16061. yy: translate$a,
  16062. },
  16063. dayOfMonthOrdinalParse: /\d{1,2}\./,
  16064. ordinal: '%d.',
  16065. week: {
  16066. dow: 1, // Monday is the first day of the week.
  16067. doy: 4, // The week that contains Jan 4th is the first week of the year.
  16068. },
  16069. });
  16070. //! moment.js locale configuration
  16071. var suffixes$5 = {
  16072. 1: "'inci",
  16073. 5: "'inci",
  16074. 8: "'inci",
  16075. 70: "'inci",
  16076. 80: "'inci",
  16077. 2: "'nci",
  16078. 7: "'nci",
  16079. 20: "'nci",
  16080. 50: "'nci",
  16081. 3: "'üncü",
  16082. 4: "'üncü",
  16083. 100: "'üncü",
  16084. 6: "'ncı",
  16085. 9: "'uncu",
  16086. 10: "'uncu",
  16087. 30: "'uncu",
  16088. 60: "'ıncı",
  16089. 90: "'ıncı",
  16090. };
  16091. hooks.defineLocale('tr', {
  16092. months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split(
  16093. '_'
  16094. ),
  16095. monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
  16096. weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split(
  16097. '_'
  16098. ),
  16099. weekdaysShort: 'Paz_Pzt_Sal_Çar_Per_Cum_Cmt'.split('_'),
  16100. weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
  16101. meridiem: function (hours, minutes, isLower) {
  16102. if (hours < 12) {
  16103. return isLower ? 'öö' : 'ÖÖ';
  16104. } else {
  16105. return isLower ? 'ös' : 'ÖS';
  16106. }
  16107. },
  16108. meridiemParse: /öö|ÖÖ|ös|ÖS/,
  16109. isPM: function (input) {
  16110. return input === 'ös' || input === 'ÖS';
  16111. },
  16112. longDateFormat: {
  16113. LT: 'HH:mm',
  16114. LTS: 'HH:mm:ss',
  16115. L: 'DD.MM.YYYY',
  16116. LL: 'D MMMM YYYY',
  16117. LLL: 'D MMMM YYYY HH:mm',
  16118. LLLL: 'dddd, D MMMM YYYY HH:mm',
  16119. },
  16120. calendar: {
  16121. sameDay: '[bugün saat] LT',
  16122. nextDay: '[yarın saat] LT',
  16123. nextWeek: '[gelecek] dddd [saat] LT',
  16124. lastDay: '[dün] LT',
  16125. lastWeek: '[geçen] dddd [saat] LT',
  16126. sameElse: 'L',
  16127. },
  16128. relativeTime: {
  16129. future: '%s sonra',
  16130. past: '%s önce',
  16131. s: 'birkaç saniye',
  16132. ss: '%d saniye',
  16133. m: 'bir dakika',
  16134. mm: '%d dakika',
  16135. h: 'bir saat',
  16136. hh: '%d saat',
  16137. d: 'bir gün',
  16138. dd: '%d gün',
  16139. w: 'bir hafta',
  16140. ww: '%d hafta',
  16141. M: 'bir ay',
  16142. MM: '%d ay',
  16143. y: 'bir yıl',
  16144. yy: '%d yıl',
  16145. },
  16146. ordinal: function (number, period) {
  16147. switch (period) {
  16148. case 'd':
  16149. case 'D':
  16150. case 'Do':
  16151. case 'DD':
  16152. return number;
  16153. default:
  16154. if (number === 0) {
  16155. // special case for zero
  16156. return number + "'ıncı";
  16157. }
  16158. var a = number % 10,
  16159. b = (number % 100) - a,
  16160. c = number >= 100 ? 100 : null;
  16161. return number + (suffixes$5[a] || suffixes$5[b] || suffixes$5[c]);
  16162. }
  16163. },
  16164. week: {
  16165. dow: 1, // Monday is the first day of the week.
  16166. doy: 7, // The week that contains Jan 7th is the first week of the year.
  16167. },
  16168. });
  16169. //! moment.js locale configuration
  16170. // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
  16171. // This is currently too difficult (maybe even impossible) to add.
  16172. hooks.defineLocale('tzl', {
  16173. months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split(
  16174. '_'
  16175. ),
  16176. monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
  16177. weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
  16178. weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
  16179. weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
  16180. longDateFormat: {
  16181. LT: 'HH.mm',
  16182. LTS: 'HH.mm.ss',
  16183. L: 'DD.MM.YYYY',
  16184. LL: 'D. MMMM [dallas] YYYY',
  16185. LLL: 'D. MMMM [dallas] YYYY HH.mm',
  16186. LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm',
  16187. },
  16188. meridiemParse: /d\'o|d\'a/i,
  16189. isPM: function (input) {
  16190. return "d'o" === input.toLowerCase();
  16191. },
  16192. meridiem: function (hours, minutes, isLower) {
  16193. if (hours > 11) {
  16194. return isLower ? "d'o" : "D'O";
  16195. } else {
  16196. return isLower ? "d'a" : "D'A";
  16197. }
  16198. },
  16199. calendar: {
  16200. sameDay: '[oxhi à] LT',
  16201. nextDay: '[demà à] LT',
  16202. nextWeek: 'dddd [à] LT',
  16203. lastDay: '[ieiri à] LT',
  16204. lastWeek: '[sür el] dddd [lasteu à] LT',
  16205. sameElse: 'L',
  16206. },
  16207. relativeTime: {
  16208. future: 'osprei %s',
  16209. past: 'ja%s',
  16210. s: processRelativeTime$a,
  16211. ss: processRelativeTime$a,
  16212. m: processRelativeTime$a,
  16213. mm: processRelativeTime$a,
  16214. h: processRelativeTime$a,
  16215. hh: processRelativeTime$a,
  16216. d: processRelativeTime$a,
  16217. dd: processRelativeTime$a,
  16218. M: processRelativeTime$a,
  16219. MM: processRelativeTime$a,
  16220. y: processRelativeTime$a,
  16221. yy: processRelativeTime$a,
  16222. },
  16223. dayOfMonthOrdinalParse: /\d{1,2}\./,
  16224. ordinal: '%d.',
  16225. week: {
  16226. dow: 1, // Monday is the first day of the week.
  16227. doy: 4, // The week that contains Jan 4th is the first week of the year.
  16228. },
  16229. });
  16230. function processRelativeTime$a(number, withoutSuffix, key, isFuture) {
  16231. var format = {
  16232. s: ['viensas secunds', "'iensas secunds"],
  16233. ss: [number + ' secunds', '' + number + ' secunds'],
  16234. m: ["'n míut", "'iens míut"],
  16235. mm: [number + ' míuts', '' + number + ' míuts'],
  16236. h: ["'n þora", "'iensa þora"],
  16237. hh: [number + ' þoras', '' + number + ' þoras'],
  16238. d: ["'n ziua", "'iensa ziua"],
  16239. dd: [number + ' ziuas', '' + number + ' ziuas'],
  16240. M: ["'n mes", "'iens mes"],
  16241. MM: [number + ' mesen', '' + number + ' mesen'],
  16242. y: ["'n ar", "'iens ar"],
  16243. yy: [number + ' ars', '' + number + ' ars'],
  16244. };
  16245. return isFuture
  16246. ? format[key][0]
  16247. : withoutSuffix
  16248. ? format[key][0]
  16249. : format[key][1];
  16250. }
  16251. //! moment.js locale configuration
  16252. hooks.defineLocale('tzm-latn', {
  16253. months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(
  16254. '_'
  16255. ),
  16256. monthsShort:
  16257. 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(
  16258. '_'
  16259. ),
  16260. weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  16261. weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  16262. weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  16263. longDateFormat: {
  16264. LT: 'HH:mm',
  16265. LTS: 'HH:mm:ss',
  16266. L: 'DD/MM/YYYY',
  16267. LL: 'D MMMM YYYY',
  16268. LLL: 'D MMMM YYYY HH:mm',
  16269. LLLL: 'dddd D MMMM YYYY HH:mm',
  16270. },
  16271. calendar: {
  16272. sameDay: '[asdkh g] LT',
  16273. nextDay: '[aska g] LT',
  16274. nextWeek: 'dddd [g] LT',
  16275. lastDay: '[assant g] LT',
  16276. lastWeek: 'dddd [g] LT',
  16277. sameElse: 'L',
  16278. },
  16279. relativeTime: {
  16280. future: 'dadkh s yan %s',
  16281. past: 'yan %s',
  16282. s: 'imik',
  16283. ss: '%d imik',
  16284. m: 'minuḍ',
  16285. mm: '%d minuḍ',
  16286. h: 'saɛa',
  16287. hh: '%d tassaɛin',
  16288. d: 'ass',
  16289. dd: '%d ossan',
  16290. M: 'ayowr',
  16291. MM: '%d iyyirn',
  16292. y: 'asgas',
  16293. yy: '%d isgasn',
  16294. },
  16295. week: {
  16296. dow: 6, // Saturday is the first day of the week.
  16297. doy: 12, // The week that contains Jan 12th is the first week of the year.
  16298. },
  16299. });
  16300. //! moment.js locale configuration
  16301. hooks.defineLocale('tzm', {
  16302. months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(
  16303. '_'
  16304. ),
  16305. monthsShort:
  16306. 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(
  16307. '_'
  16308. ),
  16309. weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  16310. weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  16311. weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  16312. longDateFormat: {
  16313. LT: 'HH:mm',
  16314. LTS: 'HH:mm:ss',
  16315. L: 'DD/MM/YYYY',
  16316. LL: 'D MMMM YYYY',
  16317. LLL: 'D MMMM YYYY HH:mm',
  16318. LLLL: 'dddd D MMMM YYYY HH:mm',
  16319. },
  16320. calendar: {
  16321. sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
  16322. nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
  16323. nextWeek: 'dddd [ⴴ] LT',
  16324. lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
  16325. lastWeek: 'dddd [ⴴ] LT',
  16326. sameElse: 'L',
  16327. },
  16328. relativeTime: {
  16329. future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
  16330. past: 'ⵢⴰⵏ %s',
  16331. s: 'ⵉⵎⵉⴽ',
  16332. ss: '%d ⵉⵎⵉⴽ',
  16333. m: 'ⵎⵉⵏⵓⴺ',
  16334. mm: '%d ⵎⵉⵏⵓⴺ',
  16335. h: 'ⵙⴰⵄⴰ',
  16336. hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
  16337. d: 'ⴰⵙⵙ',
  16338. dd: '%d oⵙⵙⴰⵏ',
  16339. M: 'ⴰⵢoⵓⵔ',
  16340. MM: '%d ⵉⵢⵢⵉⵔⵏ',
  16341. y: 'ⴰⵙⴳⴰⵙ',
  16342. yy: '%d ⵉⵙⴳⴰⵙⵏ',
  16343. },
  16344. week: {
  16345. dow: 6, // Saturday is the first day of the week.
  16346. doy: 12, // The week that contains Jan 12th is the first week of the year.
  16347. },
  16348. });
  16349. //! moment.js locale configuration
  16350. hooks.defineLocale('ug-cn', {
  16351. months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
  16352. '_'
  16353. ),
  16354. monthsShort:
  16355. 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
  16356. '_'
  16357. ),
  16358. weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split(
  16359. '_'
  16360. ),
  16361. weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
  16362. weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
  16363. longDateFormat: {
  16364. LT: 'HH:mm',
  16365. LTS: 'HH:mm:ss',
  16366. L: 'YYYY-MM-DD',
  16367. LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى',
  16368. LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
  16369. LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
  16370. },
  16371. meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,
  16372. meridiemHour: function (hour, meridiem) {
  16373. if (hour === 12) {
  16374. hour = 0;
  16375. }
  16376. if (
  16377. meridiem === 'يېرىم كېچە' ||
  16378. meridiem === 'سەھەر' ||
  16379. meridiem === 'چۈشتىن بۇرۇن'
  16380. ) {
  16381. return hour;
  16382. } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') {
  16383. return hour + 12;
  16384. } else {
  16385. return hour >= 11 ? hour : hour + 12;
  16386. }
  16387. },
  16388. meridiem: function (hour, minute, isLower) {
  16389. var hm = hour * 100 + minute;
  16390. if (hm < 600) {
  16391. return 'يېرىم كېچە';
  16392. } else if (hm < 900) {
  16393. return 'سەھەر';
  16394. } else if (hm < 1130) {
  16395. return 'چۈشتىن بۇرۇن';
  16396. } else if (hm < 1230) {
  16397. return 'چۈش';
  16398. } else if (hm < 1800) {
  16399. return 'چۈشتىن كېيىن';
  16400. } else {
  16401. return 'كەچ';
  16402. }
  16403. },
  16404. calendar: {
  16405. sameDay: '[بۈگۈن سائەت] LT',
  16406. nextDay: '[ئەتە سائەت] LT',
  16407. nextWeek: '[كېلەركى] dddd [سائەت] LT',
  16408. lastDay: '[تۆنۈگۈن] LT',
  16409. lastWeek: '[ئالدىنقى] dddd [سائەت] LT',
  16410. sameElse: 'L',
  16411. },
  16412. relativeTime: {
  16413. future: '%s كېيىن',
  16414. past: '%s بۇرۇن',
  16415. s: 'نەچچە سېكونت',
  16416. ss: '%d سېكونت',
  16417. m: 'بىر مىنۇت',
  16418. mm: '%d مىنۇت',
  16419. h: 'بىر سائەت',
  16420. hh: '%d سائەت',
  16421. d: 'بىر كۈن',
  16422. dd: '%d كۈن',
  16423. M: 'بىر ئاي',
  16424. MM: '%d ئاي',
  16425. y: 'بىر يىل',
  16426. yy: '%d يىل',
  16427. },
  16428. dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,
  16429. ordinal: function (number, period) {
  16430. switch (period) {
  16431. case 'd':
  16432. case 'D':
  16433. case 'DDD':
  16434. return number + '-كۈنى';
  16435. case 'w':
  16436. case 'W':
  16437. return number + '-ھەپتە';
  16438. default:
  16439. return number;
  16440. }
  16441. },
  16442. preparse: function (string) {
  16443. return string.replace(/،/g, ',');
  16444. },
  16445. postformat: function (string) {
  16446. return string.replace(/,/g, '،');
  16447. },
  16448. week: {
  16449. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  16450. dow: 1, // Monday is the first day of the week.
  16451. doy: 7, // The week that contains Jan 1st is the first week of the year.
  16452. },
  16453. });
  16454. //! moment.js locale configuration
  16455. function plural$6(word, num) {
  16456. var forms = word.split('_');
  16457. return num % 10 === 1 && num % 100 !== 11
  16458. ? forms[0]
  16459. : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
  16460. ? forms[1]
  16461. : forms[2];
  16462. }
  16463. function relativeTimeWithPlural$4(number, withoutSuffix, key) {
  16464. var format = {
  16465. ss: withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',
  16466. mm: withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
  16467. hh: withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
  16468. dd: 'день_дні_днів',
  16469. MM: 'місяць_місяці_місяців',
  16470. yy: 'рік_роки_років',
  16471. };
  16472. if (key === 'm') {
  16473. return withoutSuffix ? 'хвилина' : 'хвилину';
  16474. } else if (key === 'h') {
  16475. return withoutSuffix ? 'година' : 'годину';
  16476. } else {
  16477. return number + ' ' + plural$6(format[key], +number);
  16478. }
  16479. }
  16480. function weekdaysCaseReplace(m, format) {
  16481. var weekdays = {
  16482. nominative:
  16483. 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split(
  16484. '_'
  16485. ),
  16486. accusative:
  16487. 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split(
  16488. '_'
  16489. ),
  16490. genitive:
  16491. 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split(
  16492. '_'
  16493. ),
  16494. },
  16495. nounCase;
  16496. if (m === true) {
  16497. return weekdays['nominative']
  16498. .slice(1, 7)
  16499. .concat(weekdays['nominative'].slice(0, 1));
  16500. }
  16501. if (!m) {
  16502. return weekdays['nominative'];
  16503. }
  16504. nounCase = /(\[[ВвУу]\]) ?dddd/.test(format)
  16505. ? 'accusative'
  16506. : /\[?(?:минулої|наступної)? ?\] ?dddd/.test(format)
  16507. ? 'genitive'
  16508. : 'nominative';
  16509. return weekdays[nounCase][m.day()];
  16510. }
  16511. function processHoursFunction(str) {
  16512. return function () {
  16513. return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
  16514. };
  16515. }
  16516. hooks.defineLocale('uk', {
  16517. months: {
  16518. format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split(
  16519. '_'
  16520. ),
  16521. standalone:
  16522. 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split(
  16523. '_'
  16524. ),
  16525. },
  16526. monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split(
  16527. '_'
  16528. ),
  16529. weekdays: weekdaysCaseReplace,
  16530. weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  16531. weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  16532. longDateFormat: {
  16533. LT: 'HH:mm',
  16534. LTS: 'HH:mm:ss',
  16535. L: 'DD.MM.YYYY',
  16536. LL: 'D MMMM YYYY р.',
  16537. LLL: 'D MMMM YYYY р., HH:mm',
  16538. LLLL: 'dddd, D MMMM YYYY р., HH:mm',
  16539. },
  16540. calendar: {
  16541. sameDay: processHoursFunction('[Сьогодні '),
  16542. nextDay: processHoursFunction('[Завтра '),
  16543. lastDay: processHoursFunction('[Вчора '),
  16544. nextWeek: processHoursFunction('[У] dddd ['),
  16545. lastWeek: function () {
  16546. switch (this.day()) {
  16547. case 0:
  16548. case 3:
  16549. case 5:
  16550. case 6:
  16551. return processHoursFunction('[Минулої] dddd [').call(this);
  16552. case 1:
  16553. case 2:
  16554. case 4:
  16555. return processHoursFunction('[Минулого] dddd [').call(this);
  16556. }
  16557. },
  16558. sameElse: 'L',
  16559. },
  16560. relativeTime: {
  16561. future: 'за %s',
  16562. past: '%s тому',
  16563. s: 'декілька секунд',
  16564. ss: relativeTimeWithPlural$4,
  16565. m: relativeTimeWithPlural$4,
  16566. mm: relativeTimeWithPlural$4,
  16567. h: 'годину',
  16568. hh: relativeTimeWithPlural$4,
  16569. d: 'день',
  16570. dd: relativeTimeWithPlural$4,
  16571. M: 'місяць',
  16572. MM: relativeTimeWithPlural$4,
  16573. y: 'рік',
  16574. yy: relativeTimeWithPlural$4,
  16575. },
  16576. // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
  16577. meridiemParse: /ночі|ранку|дня|вечора/,
  16578. isPM: function (input) {
  16579. return /^(дня|вечора)$/.test(input);
  16580. },
  16581. meridiem: function (hour, minute, isLower) {
  16582. if (hour < 4) {
  16583. return 'ночі';
  16584. } else if (hour < 12) {
  16585. return 'ранку';
  16586. } else if (hour < 17) {
  16587. return 'дня';
  16588. } else {
  16589. return 'вечора';
  16590. }
  16591. },
  16592. dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/,
  16593. ordinal: function (number, period) {
  16594. switch (period) {
  16595. case 'M':
  16596. case 'd':
  16597. case 'DDD':
  16598. case 'w':
  16599. case 'W':
  16600. return number + '-й';
  16601. case 'D':
  16602. return number + '-го';
  16603. default:
  16604. return number;
  16605. }
  16606. },
  16607. week: {
  16608. dow: 1, // Monday is the first day of the week.
  16609. doy: 7, // The week that contains Jan 7th is the first week of the year.
  16610. },
  16611. });
  16612. //! moment.js locale configuration
  16613. var months$b = [
  16614. 'جنوری',
  16615. 'فروری',
  16616. 'مارچ',
  16617. 'اپریل',
  16618. 'مئی',
  16619. 'جون',
  16620. 'جولائی',
  16621. 'اگست',
  16622. 'ستمبر',
  16623. 'اکتوبر',
  16624. 'نومبر',
  16625. 'دسمبر',
  16626. ],
  16627. days$2 = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ'];
  16628. hooks.defineLocale('ur', {
  16629. months: months$b,
  16630. monthsShort: months$b,
  16631. weekdays: days$2,
  16632. weekdaysShort: days$2,
  16633. weekdaysMin: days$2,
  16634. longDateFormat: {
  16635. LT: 'HH:mm',
  16636. LTS: 'HH:mm:ss',
  16637. L: 'DD/MM/YYYY',
  16638. LL: 'D MMMM YYYY',
  16639. LLL: 'D MMMM YYYY HH:mm',
  16640. LLLL: 'dddd، D MMMM YYYY HH:mm',
  16641. },
  16642. meridiemParse: /صبح|شام/,
  16643. isPM: function (input) {
  16644. return 'شام' === input;
  16645. },
  16646. meridiem: function (hour, minute, isLower) {
  16647. if (hour < 12) {
  16648. return 'صبح';
  16649. }
  16650. return 'شام';
  16651. },
  16652. calendar: {
  16653. sameDay: '[آج بوقت] LT',
  16654. nextDay: '[کل بوقت] LT',
  16655. nextWeek: 'dddd [بوقت] LT',
  16656. lastDay: '[گذشتہ روز بوقت] LT',
  16657. lastWeek: '[گذشتہ] dddd [بوقت] LT',
  16658. sameElse: 'L',
  16659. },
  16660. relativeTime: {
  16661. future: '%s بعد',
  16662. past: '%s قبل',
  16663. s: 'چند سیکنڈ',
  16664. ss: '%d سیکنڈ',
  16665. m: 'ایک منٹ',
  16666. mm: '%d منٹ',
  16667. h: 'ایک گھنٹہ',
  16668. hh: '%d گھنٹے',
  16669. d: 'ایک دن',
  16670. dd: '%d دن',
  16671. M: 'ایک ماہ',
  16672. MM: '%d ماہ',
  16673. y: 'ایک سال',
  16674. yy: '%d سال',
  16675. },
  16676. preparse: function (string) {
  16677. return string.replace(/،/g, ',');
  16678. },
  16679. postformat: function (string) {
  16680. return string.replace(/,/g, '،');
  16681. },
  16682. week: {
  16683. dow: 1, // Monday is the first day of the week.
  16684. doy: 4, // The week that contains Jan 4th is the first week of the year.
  16685. },
  16686. });
  16687. //! moment.js locale configuration
  16688. hooks.defineLocale('uz-latn', {
  16689. months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split(
  16690. '_'
  16691. ),
  16692. monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
  16693. weekdays:
  16694. 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split(
  16695. '_'
  16696. ),
  16697. weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
  16698. weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
  16699. longDateFormat: {
  16700. LT: 'HH:mm',
  16701. LTS: 'HH:mm:ss',
  16702. L: 'DD/MM/YYYY',
  16703. LL: 'D MMMM YYYY',
  16704. LLL: 'D MMMM YYYY HH:mm',
  16705. LLLL: 'D MMMM YYYY, dddd HH:mm',
  16706. },
  16707. calendar: {
  16708. sameDay: '[Bugun soat] LT [da]',
  16709. nextDay: '[Ertaga] LT [da]',
  16710. nextWeek: 'dddd [kuni soat] LT [da]',
  16711. lastDay: '[Kecha soat] LT [da]',
  16712. lastWeek: "[O'tgan] dddd [kuni soat] LT [da]",
  16713. sameElse: 'L',
  16714. },
  16715. relativeTime: {
  16716. future: 'Yaqin %s ichida',
  16717. past: 'Bir necha %s oldin',
  16718. s: 'soniya',
  16719. ss: '%d soniya',
  16720. m: 'bir daqiqa',
  16721. mm: '%d daqiqa',
  16722. h: 'bir soat',
  16723. hh: '%d soat',
  16724. d: 'bir kun',
  16725. dd: '%d kun',
  16726. M: 'bir oy',
  16727. MM: '%d oy',
  16728. y: 'bir yil',
  16729. yy: '%d yil',
  16730. },
  16731. week: {
  16732. dow: 1, // Monday is the first day of the week.
  16733. doy: 7, // The week that contains Jan 7th is the first week of the year.
  16734. },
  16735. });
  16736. //! moment.js locale configuration
  16737. hooks.defineLocale('uz', {
  16738. months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
  16739. '_'
  16740. ),
  16741. monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
  16742. weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
  16743. weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
  16744. weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
  16745. longDateFormat: {
  16746. LT: 'HH:mm',
  16747. LTS: 'HH:mm:ss',
  16748. L: 'DD/MM/YYYY',
  16749. LL: 'D MMMM YYYY',
  16750. LLL: 'D MMMM YYYY HH:mm',
  16751. LLLL: 'D MMMM YYYY, dddd HH:mm',
  16752. },
  16753. calendar: {
  16754. sameDay: '[Бугун соат] LT [да]',
  16755. nextDay: '[Эртага] LT [да]',
  16756. nextWeek: 'dddd [куни соат] LT [да]',
  16757. lastDay: '[Кеча соат] LT [да]',
  16758. lastWeek: '[Утган] dddd [куни соат] LT [да]',
  16759. sameElse: 'L',
  16760. },
  16761. relativeTime: {
  16762. future: 'Якин %s ичида',
  16763. past: 'Бир неча %s олдин',
  16764. s: 'фурсат',
  16765. ss: '%d фурсат',
  16766. m: 'бир дакика',
  16767. mm: '%d дакика',
  16768. h: 'бир соат',
  16769. hh: '%d соат',
  16770. d: 'бир кун',
  16771. dd: '%d кун',
  16772. M: 'бир ой',
  16773. MM: '%d ой',
  16774. y: 'бир йил',
  16775. yy: '%d йил',
  16776. },
  16777. week: {
  16778. dow: 1, // Monday is the first day of the week.
  16779. doy: 7, // The week that contains Jan 4th is the first week of the year.
  16780. },
  16781. });
  16782. //! moment.js locale configuration
  16783. hooks.defineLocale('vi', {
  16784. 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(
  16785. '_'
  16786. ),
  16787. monthsShort:
  16788. '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(
  16789. '_'
  16790. ),
  16791. monthsParseExact: true,
  16792. weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split(
  16793. '_'
  16794. ),
  16795. weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  16796. weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  16797. weekdaysParseExact: true,
  16798. meridiemParse: /sa|ch/i,
  16799. isPM: function (input) {
  16800. return /^ch$/i.test(input);
  16801. },
  16802. meridiem: function (hours, minutes, isLower) {
  16803. if (hours < 12) {
  16804. return isLower ? 'sa' : 'SA';
  16805. } else {
  16806. return isLower ? 'ch' : 'CH';
  16807. }
  16808. },
  16809. longDateFormat: {
  16810. LT: 'HH:mm',
  16811. LTS: 'HH:mm:ss',
  16812. L: 'DD/MM/YYYY',
  16813. LL: 'D MMMM [năm] YYYY',
  16814. LLL: 'D MMMM [năm] YYYY HH:mm',
  16815. LLLL: 'dddd, D MMMM [năm] YYYY HH:mm',
  16816. l: 'DD/M/YYYY',
  16817. ll: 'D MMM YYYY',
  16818. lll: 'D MMM YYYY HH:mm',
  16819. llll: 'ddd, D MMM YYYY HH:mm',
  16820. },
  16821. calendar: {
  16822. sameDay: '[Hôm nay lúc] LT',
  16823. nextDay: '[Ngày mai lúc] LT',
  16824. nextWeek: 'dddd [tuần tới lúc] LT',
  16825. lastDay: '[Hôm qua lúc] LT',
  16826. lastWeek: 'dddd [tuần trước lúc] LT',
  16827. sameElse: 'L',
  16828. },
  16829. relativeTime: {
  16830. future: '%s tới',
  16831. past: '%s trước',
  16832. s: 'vài giây',
  16833. ss: '%d giây',
  16834. m: 'một phút',
  16835. mm: '%d phút',
  16836. h: 'một giờ',
  16837. hh: '%d giờ',
  16838. d: 'một ngày',
  16839. dd: '%d ngày',
  16840. w: 'một tuần',
  16841. ww: '%d tuần',
  16842. M: 'một tháng',
  16843. MM: '%d tháng',
  16844. y: 'một năm',
  16845. yy: '%d năm',
  16846. },
  16847. dayOfMonthOrdinalParse: /\d{1,2}/,
  16848. ordinal: function (number) {
  16849. return number;
  16850. },
  16851. week: {
  16852. dow: 1, // Monday is the first day of the week.
  16853. doy: 4, // The week that contains Jan 4th is the first week of the year.
  16854. },
  16855. });
  16856. //! moment.js locale configuration
  16857. hooks.defineLocale('x-pseudo', {
  16858. 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(
  16859. '_'
  16860. ),
  16861. monthsShort:
  16862. 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split(
  16863. '_'
  16864. ),
  16865. monthsParseExact: true,
  16866. weekdays:
  16867. 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split(
  16868. '_'
  16869. ),
  16870. weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
  16871. weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
  16872. weekdaysParseExact: true,
  16873. longDateFormat: {
  16874. LT: 'HH:mm',
  16875. L: 'DD/MM/YYYY',
  16876. LL: 'D MMMM YYYY',
  16877. LLL: 'D MMMM YYYY HH:mm',
  16878. LLLL: 'dddd, D MMMM YYYY HH:mm',
  16879. },
  16880. calendar: {
  16881. sameDay: '[T~ódá~ý át] LT',
  16882. nextDay: '[T~ómó~rró~w át] LT',
  16883. nextWeek: 'dddd [át] LT',
  16884. lastDay: '[Ý~ést~érdá~ý át] LT',
  16885. lastWeek: '[L~ást] dddd [át] LT',
  16886. sameElse: 'L',
  16887. },
  16888. relativeTime: {
  16889. future: 'í~ñ %s',
  16890. past: '%s á~gó',
  16891. s: 'á ~féw ~sécó~ñds',
  16892. ss: '%d s~écóñ~ds',
  16893. m: 'á ~míñ~úté',
  16894. mm: '%d m~íñú~tés',
  16895. h: 'á~ñ hó~úr',
  16896. hh: '%d h~óúrs',
  16897. d: 'á ~dáý',
  16898. dd: '%d d~áýs',
  16899. M: 'á ~móñ~th',
  16900. MM: '%d m~óñt~hs',
  16901. y: 'á ~ýéár',
  16902. yy: '%d ý~éárs',
  16903. },
  16904. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  16905. ordinal: function (number) {
  16906. var b = number % 10,
  16907. output =
  16908. ~~((number % 100) / 10) === 1
  16909. ? 'th'
  16910. : b === 1
  16911. ? 'st'
  16912. : b === 2
  16913. ? 'nd'
  16914. : b === 3
  16915. ? 'rd'
  16916. : 'th';
  16917. return number + output;
  16918. },
  16919. week: {
  16920. dow: 1, // Monday is the first day of the week.
  16921. doy: 4, // The week that contains Jan 4th is the first week of the year.
  16922. },
  16923. });
  16924. //! moment.js locale configuration
  16925. hooks.defineLocale('yo', {
  16926. months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split(
  16927. '_'
  16928. ),
  16929. monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),
  16930. weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),
  16931. weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),
  16932. weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),
  16933. longDateFormat: {
  16934. LT: 'h:mm A',
  16935. LTS: 'h:mm:ss A',
  16936. L: 'DD/MM/YYYY',
  16937. LL: 'D MMMM YYYY',
  16938. LLL: 'D MMMM YYYY h:mm A',
  16939. LLLL: 'dddd, D MMMM YYYY h:mm A',
  16940. },
  16941. calendar: {
  16942. sameDay: '[Ònì ni] LT',
  16943. nextDay: '[Ọ̀la ni] LT',
  16944. nextWeek: "dddd [Ọsẹ̀ tón'bọ] [ni] LT",
  16945. lastDay: '[Àna ni] LT',
  16946. lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT',
  16947. sameElse: 'L',
  16948. },
  16949. relativeTime: {
  16950. future: 'ní %s',
  16951. past: '%s kọjá',
  16952. s: 'ìsẹjú aayá die',
  16953. ss: 'aayá %d',
  16954. m: 'ìsẹjú kan',
  16955. mm: 'ìsẹjú %d',
  16956. h: 'wákati kan',
  16957. hh: 'wákati %d',
  16958. d: 'ọjọ́ kan',
  16959. dd: 'ọjọ́ %d',
  16960. M: 'osù kan',
  16961. MM: 'osù %d',
  16962. y: 'ọdún kan',
  16963. yy: 'ọdún %d',
  16964. },
  16965. dayOfMonthOrdinalParse: /ọjọ́\s\d{1,2}/,
  16966. ordinal: 'ọjọ́ %d',
  16967. week: {
  16968. dow: 1, // Monday is the first day of the week.
  16969. doy: 4, // The week that contains Jan 4th is the first week of the year.
  16970. },
  16971. });
  16972. //! moment.js locale configuration
  16973. hooks.defineLocale('zh-cn', {
  16974. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
  16975. '_'
  16976. ),
  16977. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  16978. '_'
  16979. ),
  16980. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  16981. weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),
  16982. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  16983. longDateFormat: {
  16984. LT: 'HH:mm',
  16985. LTS: 'HH:mm:ss',
  16986. L: 'YYYY/MM/DD',
  16987. LL: 'YYYY年M月D日',
  16988. LLL: 'YYYY年M月D日Ah点mm分',
  16989. LLLL: 'YYYY年M月D日ddddAh点mm分',
  16990. l: 'YYYY/M/D',
  16991. ll: 'YYYY年M月D日',
  16992. lll: 'YYYY年M月D日 HH:mm',
  16993. llll: 'YYYY年M月D日dddd HH:mm',
  16994. },
  16995. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  16996. meridiemHour: function (hour, meridiem) {
  16997. if (hour === 12) {
  16998. hour = 0;
  16999. }
  17000. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  17001. return hour;
  17002. } else if (meridiem === '下午' || meridiem === '晚上') {
  17003. return hour + 12;
  17004. } else {
  17005. // '中午'
  17006. return hour >= 11 ? hour : hour + 12;
  17007. }
  17008. },
  17009. meridiem: function (hour, minute, isLower) {
  17010. var hm = hour * 100 + minute;
  17011. if (hm < 600) {
  17012. return '凌晨';
  17013. } else if (hm < 900) {
  17014. return '早上';
  17015. } else if (hm < 1130) {
  17016. return '上午';
  17017. } else if (hm < 1230) {
  17018. return '中午';
  17019. } else if (hm < 1800) {
  17020. return '下午';
  17021. } else {
  17022. return '晚上';
  17023. }
  17024. },
  17025. calendar: {
  17026. sameDay: '[今天]LT',
  17027. nextDay: '[明天]LT',
  17028. nextWeek: function (now) {
  17029. if (now.week() !== this.week()) {
  17030. return '[下]dddLT';
  17031. } else {
  17032. return '[本]dddLT';
  17033. }
  17034. },
  17035. lastDay: '[昨天]LT',
  17036. lastWeek: function (now) {
  17037. if (this.week() !== now.week()) {
  17038. return '[上]dddLT';
  17039. } else {
  17040. return '[本]dddLT';
  17041. }
  17042. },
  17043. sameElse: 'L',
  17044. },
  17045. dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
  17046. ordinal: function (number, period) {
  17047. switch (period) {
  17048. case 'd':
  17049. case 'D':
  17050. case 'DDD':
  17051. return number + '日';
  17052. case 'M':
  17053. return number + '月';
  17054. case 'w':
  17055. case 'W':
  17056. return number + '周';
  17057. default:
  17058. return number;
  17059. }
  17060. },
  17061. relativeTime: {
  17062. future: '%s后',
  17063. past: '%s前',
  17064. s: '几秒',
  17065. ss: '%d 秒',
  17066. m: '1 分钟',
  17067. mm: '%d 分钟',
  17068. h: '1 小时',
  17069. hh: '%d 小时',
  17070. d: '1 天',
  17071. dd: '%d 天',
  17072. w: '1 周',
  17073. ww: '%d 周',
  17074. M: '1 个月',
  17075. MM: '%d 个月',
  17076. y: '1 年',
  17077. yy: '%d 年',
  17078. },
  17079. week: {
  17080. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  17081. dow: 1, // Monday is the first day of the week.
  17082. doy: 4, // The week that contains Jan 4th is the first week of the year.
  17083. },
  17084. });
  17085. //! moment.js locale configuration
  17086. hooks.defineLocale('zh-hk', {
  17087. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
  17088. '_'
  17089. ),
  17090. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  17091. '_'
  17092. ),
  17093. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  17094. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  17095. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  17096. longDateFormat: {
  17097. LT: 'HH:mm',
  17098. LTS: 'HH:mm:ss',
  17099. L: 'YYYY/MM/DD',
  17100. LL: 'YYYY年M月D日',
  17101. LLL: 'YYYY年M月D日 HH:mm',
  17102. LLLL: 'YYYY年M月D日dddd HH:mm',
  17103. l: 'YYYY/M/D',
  17104. ll: 'YYYY年M月D日',
  17105. lll: 'YYYY年M月D日 HH:mm',
  17106. llll: 'YYYY年M月D日dddd HH:mm',
  17107. },
  17108. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  17109. meridiemHour: function (hour, meridiem) {
  17110. if (hour === 12) {
  17111. hour = 0;
  17112. }
  17113. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  17114. return hour;
  17115. } else if (meridiem === '中午') {
  17116. return hour >= 11 ? hour : hour + 12;
  17117. } else if (meridiem === '下午' || meridiem === '晚上') {
  17118. return hour + 12;
  17119. }
  17120. },
  17121. meridiem: function (hour, minute, isLower) {
  17122. var hm = hour * 100 + minute;
  17123. if (hm < 600) {
  17124. return '凌晨';
  17125. } else if (hm < 900) {
  17126. return '早上';
  17127. } else if (hm < 1200) {
  17128. return '上午';
  17129. } else if (hm === 1200) {
  17130. return '中午';
  17131. } else if (hm < 1800) {
  17132. return '下午';
  17133. } else {
  17134. return '晚上';
  17135. }
  17136. },
  17137. calendar: {
  17138. sameDay: '[今天]LT',
  17139. nextDay: '[明天]LT',
  17140. nextWeek: '[下]ddddLT',
  17141. lastDay: '[昨天]LT',
  17142. lastWeek: '[上]ddddLT',
  17143. sameElse: 'L',
  17144. },
  17145. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  17146. ordinal: function (number, period) {
  17147. switch (period) {
  17148. case 'd':
  17149. case 'D':
  17150. case 'DDD':
  17151. return number + '日';
  17152. case 'M':
  17153. return number + '月';
  17154. case 'w':
  17155. case 'W':
  17156. return number + '週';
  17157. default:
  17158. return number;
  17159. }
  17160. },
  17161. relativeTime: {
  17162. future: '%s後',
  17163. past: '%s前',
  17164. s: '幾秒',
  17165. ss: '%d 秒',
  17166. m: '1 分鐘',
  17167. mm: '%d 分鐘',
  17168. h: '1 小時',
  17169. hh: '%d 小時',
  17170. d: '1 天',
  17171. dd: '%d 天',
  17172. M: '1 個月',
  17173. MM: '%d 個月',
  17174. y: '1 年',
  17175. yy: '%d 年',
  17176. },
  17177. });
  17178. //! moment.js locale configuration
  17179. hooks.defineLocale('zh-mo', {
  17180. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
  17181. '_'
  17182. ),
  17183. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  17184. '_'
  17185. ),
  17186. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  17187. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  17188. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  17189. longDateFormat: {
  17190. LT: 'HH:mm',
  17191. LTS: 'HH:mm:ss',
  17192. L: 'DD/MM/YYYY',
  17193. LL: 'YYYY年M月D日',
  17194. LLL: 'YYYY年M月D日 HH:mm',
  17195. LLLL: 'YYYY年M月D日dddd HH:mm',
  17196. l: 'D/M/YYYY',
  17197. ll: 'YYYY年M月D日',
  17198. lll: 'YYYY年M月D日 HH:mm',
  17199. llll: 'YYYY年M月D日dddd HH:mm',
  17200. },
  17201. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  17202. meridiemHour: function (hour, meridiem) {
  17203. if (hour === 12) {
  17204. hour = 0;
  17205. }
  17206. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  17207. return hour;
  17208. } else if (meridiem === '中午') {
  17209. return hour >= 11 ? hour : hour + 12;
  17210. } else if (meridiem === '下午' || meridiem === '晚上') {
  17211. return hour + 12;
  17212. }
  17213. },
  17214. meridiem: function (hour, minute, isLower) {
  17215. var hm = hour * 100 + minute;
  17216. if (hm < 600) {
  17217. return '凌晨';
  17218. } else if (hm < 900) {
  17219. return '早上';
  17220. } else if (hm < 1130) {
  17221. return '上午';
  17222. } else if (hm < 1230) {
  17223. return '中午';
  17224. } else if (hm < 1800) {
  17225. return '下午';
  17226. } else {
  17227. return '晚上';
  17228. }
  17229. },
  17230. calendar: {
  17231. sameDay: '[今天] LT',
  17232. nextDay: '[明天] LT',
  17233. nextWeek: '[下]dddd LT',
  17234. lastDay: '[昨天] LT',
  17235. lastWeek: '[上]dddd LT',
  17236. sameElse: 'L',
  17237. },
  17238. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  17239. ordinal: function (number, period) {
  17240. switch (period) {
  17241. case 'd':
  17242. case 'D':
  17243. case 'DDD':
  17244. return number + '日';
  17245. case 'M':
  17246. return number + '月';
  17247. case 'w':
  17248. case 'W':
  17249. return number + '週';
  17250. default:
  17251. return number;
  17252. }
  17253. },
  17254. relativeTime: {
  17255. future: '%s內',
  17256. past: '%s前',
  17257. s: '幾秒',
  17258. ss: '%d 秒',
  17259. m: '1 分鐘',
  17260. mm: '%d 分鐘',
  17261. h: '1 小時',
  17262. hh: '%d 小時',
  17263. d: '1 天',
  17264. dd: '%d 天',
  17265. M: '1 個月',
  17266. MM: '%d 個月',
  17267. y: '1 年',
  17268. yy: '%d 年',
  17269. },
  17270. });
  17271. //! moment.js locale configuration
  17272. hooks.defineLocale('zh-tw', {
  17273. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
  17274. '_'
  17275. ),
  17276. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  17277. '_'
  17278. ),
  17279. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  17280. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  17281. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  17282. longDateFormat: {
  17283. LT: 'HH:mm',
  17284. LTS: 'HH:mm:ss',
  17285. L: 'YYYY/MM/DD',
  17286. LL: 'YYYY年M月D日',
  17287. LLL: 'YYYY年M月D日 HH:mm',
  17288. LLLL: 'YYYY年M月D日dddd HH:mm',
  17289. l: 'YYYY/M/D',
  17290. ll: 'YYYY年M月D日',
  17291. lll: 'YYYY年M月D日 HH:mm',
  17292. llll: 'YYYY年M月D日dddd HH:mm',
  17293. },
  17294. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  17295. meridiemHour: function (hour, meridiem) {
  17296. if (hour === 12) {
  17297. hour = 0;
  17298. }
  17299. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  17300. return hour;
  17301. } else if (meridiem === '中午') {
  17302. return hour >= 11 ? hour : hour + 12;
  17303. } else if (meridiem === '下午' || meridiem === '晚上') {
  17304. return hour + 12;
  17305. }
  17306. },
  17307. meridiem: function (hour, minute, isLower) {
  17308. var hm = hour * 100 + minute;
  17309. if (hm < 600) {
  17310. return '凌晨';
  17311. } else if (hm < 900) {
  17312. return '早上';
  17313. } else if (hm < 1130) {
  17314. return '上午';
  17315. } else if (hm < 1230) {
  17316. return '中午';
  17317. } else if (hm < 1800) {
  17318. return '下午';
  17319. } else {
  17320. return '晚上';
  17321. }
  17322. },
  17323. calendar: {
  17324. sameDay: '[今天] LT',
  17325. nextDay: '[明天] LT',
  17326. nextWeek: '[下]dddd LT',
  17327. lastDay: '[昨天] LT',
  17328. lastWeek: '[上]dddd LT',
  17329. sameElse: 'L',
  17330. },
  17331. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  17332. ordinal: function (number, period) {
  17333. switch (period) {
  17334. case 'd':
  17335. case 'D':
  17336. case 'DDD':
  17337. return number + '日';
  17338. case 'M':
  17339. return number + '月';
  17340. case 'w':
  17341. case 'W':
  17342. return number + '週';
  17343. default:
  17344. return number;
  17345. }
  17346. },
  17347. relativeTime: {
  17348. future: '%s後',
  17349. past: '%s前',
  17350. s: '幾秒',
  17351. ss: '%d 秒',
  17352. m: '1 分鐘',
  17353. mm: '%d 分鐘',
  17354. h: '1 小時',
  17355. hh: '%d 小時',
  17356. d: '1 天',
  17357. dd: '%d 天',
  17358. M: '1 個月',
  17359. MM: '%d 個月',
  17360. y: '1 年',
  17361. yy: '%d 年',
  17362. },
  17363. });
  17364. hooks.locale('en');
  17365. return hooks;
  17366. })));