moment-with-locales.js 601 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039
  1. ;(function (global, factory) {
  2. typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
  3. typeof define === 'function' && define.amd ? define(factory) :
  4. global.moment = factory()
  5. }(this, (function () { 'use strict';
  6. var hookCallback;
  7. function hooks() {
  8. return hookCallback.apply(null, arguments);
  9. }
  10. // This is done to register the method called with moment()
  11. // without creating circular dependencies.
  12. function setHookCallback(callback) {
  13. hookCallback = callback;
  14. }
  15. function isArray(input) {
  16. return (
  17. input instanceof Array ||
  18. Object.prototype.toString.call(input) === '[object Array]'
  19. );
  20. }
  21. function isObject(input) {
  22. // IE8 will treat undefined and null as object if it wasn't for
  23. // input != null
  24. return (
  25. input != null &&
  26. Object.prototype.toString.call(input) === '[object Object]'
  27. );
  28. }
  29. function hasOwnProp(a, b) {
  30. return Object.prototype.hasOwnProperty.call(a, b);
  31. }
  32. function isObjectEmpty(obj) {
  33. if (Object.getOwnPropertyNames) {
  34. return Object.getOwnPropertyNames(obj).length === 0;
  35. } else {
  36. var k;
  37. for (k in obj) {
  38. if (hasOwnProp(obj, k)) {
  39. return false;
  40. }
  41. }
  42. return true;
  43. }
  44. }
  45. function isUndefined(input) {
  46. return input === void 0;
  47. }
  48. function isNumber(input) {
  49. return (
  50. typeof input === 'number' ||
  51. Object.prototype.toString.call(input) === '[object Number]'
  52. );
  53. }
  54. function isDate(input) {
  55. return (
  56. input instanceof Date ||
  57. Object.prototype.toString.call(input) === '[object Date]'
  58. );
  59. }
  60. function map(arr, fn) {
  61. var res = [],
  62. i;
  63. for (i = 0; i < arr.length; ++i) {
  64. res.push(fn(arr[i], i));
  65. }
  66. return res;
  67. }
  68. function extend(a, b) {
  69. for (var i in b) {
  70. if (hasOwnProp(b, i)) {
  71. a[i] = b[i];
  72. }
  73. }
  74. if (hasOwnProp(b, 'toString')) {
  75. a.toString = b.toString;
  76. }
  77. if (hasOwnProp(b, 'valueOf')) {
  78. a.valueOf = b.valueOf;
  79. }
  80. return a;
  81. }
  82. function createUTC(input, format, locale, strict) {
  83. return createLocalOrUTC(input, format, locale, strict, true).utc();
  84. }
  85. function defaultParsingFlags() {
  86. // We need to deep clone this object.
  87. return {
  88. empty: false,
  89. unusedTokens: [],
  90. unusedInput: [],
  91. overflow: -2,
  92. charsLeftOver: 0,
  93. nullInput: false,
  94. invalidEra: null,
  95. invalidMonth: null,
  96. invalidFormat: false,
  97. userInvalidated: false,
  98. iso: false,
  99. parsedDateParts: [],
  100. era: null,
  101. meridiem: null,
  102. rfc2822: false,
  103. weekdayMismatch: false,
  104. };
  105. }
  106. function getParsingFlags(m) {
  107. if (m._pf == null) {
  108. m._pf = defaultParsingFlags();
  109. }
  110. return m._pf;
  111. }
  112. var some;
  113. if (Array.prototype.some) {
  114. some = Array.prototype.some;
  115. } else {
  116. some = function (fun) {
  117. var t = Object(this),
  118. len = t.length >>> 0,
  119. i;
  120. for (i = 0; i < len; i++) {
  121. if (i in t && fun.call(this, t[i], i, t)) {
  122. return true;
  123. }
  124. }
  125. return false;
  126. };
  127. }
  128. function isValid(m) {
  129. if (m._isValid == null) {
  130. var flags = getParsingFlags(m),
  131. parsedParts = some.call(flags.parsedDateParts, function (i) {
  132. return i != null;
  133. }),
  134. isNowValid =
  135. !isNaN(m._d.getTime()) &&
  136. flags.overflow < 0 &&
  137. !flags.empty &&
  138. !flags.invalidEra &&
  139. !flags.invalidMonth &&
  140. !flags.invalidWeekday &&
  141. !flags.weekdayMismatch &&
  142. !flags.nullInput &&
  143. !flags.invalidFormat &&
  144. !flags.userInvalidated &&
  145. (!flags.meridiem || (flags.meridiem && parsedParts));
  146. if (m._strict) {
  147. isNowValid =
  148. isNowValid &&
  149. flags.charsLeftOver === 0 &&
  150. flags.unusedTokens.length === 0 &&
  151. flags.bigHour === undefined;
  152. }
  153. if (Object.isFrozen == null || !Object.isFrozen(m)) {
  154. m._isValid = isNowValid;
  155. } else {
  156. return isNowValid;
  157. }
  158. }
  159. return m._isValid;
  160. }
  161. function createInvalid(flags) {
  162. var m = createUTC(NaN);
  163. if (flags != null) {
  164. extend(getParsingFlags(m), flags);
  165. } else {
  166. getParsingFlags(m).userInvalidated = true;
  167. }
  168. return m;
  169. }
  170. // Plugins that add properties should also add the key here (null value),
  171. // so we can properly clone ourselves.
  172. var momentProperties = (hooks.momentProperties = []),
  173. updateInProgress = false;
  174. function copyConfig(to, from) {
  175. var i, prop, val;
  176. if (!isUndefined(from._isAMomentObject)) {
  177. to._isAMomentObject = from._isAMomentObject;
  178. }
  179. if (!isUndefined(from._i)) {
  180. to._i = from._i;
  181. }
  182. if (!isUndefined(from._f)) {
  183. to._f = from._f;
  184. }
  185. if (!isUndefined(from._l)) {
  186. to._l = from._l;
  187. }
  188. if (!isUndefined(from._strict)) {
  189. to._strict = from._strict;
  190. }
  191. if (!isUndefined(from._tzm)) {
  192. to._tzm = from._tzm;
  193. }
  194. if (!isUndefined(from._isUTC)) {
  195. to._isUTC = from._isUTC;
  196. }
  197. if (!isUndefined(from._offset)) {
  198. to._offset = from._offset;
  199. }
  200. if (!isUndefined(from._pf)) {
  201. to._pf = getParsingFlags(from);
  202. }
  203. if (!isUndefined(from._locale)) {
  204. to._locale = from._locale;
  205. }
  206. if (momentProperties.length > 0) {
  207. for (i = 0; i < momentProperties.length; i++) {
  208. prop = momentProperties[i];
  209. val = from[prop];
  210. if (!isUndefined(val)) {
  211. to[prop] = val;
  212. }
  213. }
  214. }
  215. return to;
  216. }
  217. // Moment prototype object
  218. function Moment(config) {
  219. copyConfig(this, config);
  220. this._d = new Date(config._d != null ? config._d.getTime() : NaN);
  221. if (!this.isValid()) {
  222. this._d = new Date(NaN);
  223. }
  224. // Prevent infinite loop in case updateOffset creates new moment
  225. // objects.
  226. if (updateInProgress === false) {
  227. updateInProgress = true;
  228. hooks.updateOffset(this);
  229. updateInProgress = false;
  230. }
  231. }
  232. function isMoment(obj) {
  233. return (
  234. obj instanceof Moment || (obj != null && obj._isAMomentObject != null)
  235. );
  236. }
  237. function warn(msg) {
  238. if (
  239. hooks.suppressDeprecationWarnings === false &&
  240. typeof console !== 'undefined' &&
  241. console.warn
  242. ) {
  243. console.warn('Deprecation warning: ' + msg);
  244. }
  245. }
  246. function deprecate(msg, fn) {
  247. var firstTime = true;
  248. return extend(function () {
  249. if (hooks.deprecationHandler != null) {
  250. hooks.deprecationHandler(null, msg);
  251. }
  252. if (firstTime) {
  253. var args = [],
  254. arg,
  255. i,
  256. key;
  257. for (i = 0; i < arguments.length; i++) {
  258. arg = '';
  259. if (typeof arguments[i] === 'object') {
  260. arg += '\n[' + i + '] ';
  261. for (key in arguments[0]) {
  262. if (hasOwnProp(arguments[0], key)) {
  263. arg += key + ': ' + arguments[0][key] + ', ';
  264. }
  265. }
  266. arg = arg.slice(0, -2); // Remove trailing comma and space
  267. } else {
  268. arg = arguments[i];
  269. }
  270. args.push(arg);
  271. }
  272. warn(
  273. msg +
  274. '\nArguments: ' +
  275. Array.prototype.slice.call(args).join('') +
  276. '\n' +
  277. new Error().stack
  278. );
  279. firstTime = false;
  280. }
  281. return fn.apply(this, arguments);
  282. }, fn);
  283. }
  284. var deprecations = {};
  285. function deprecateSimple(name, msg) {
  286. if (hooks.deprecationHandler != null) {
  287. hooks.deprecationHandler(name, msg);
  288. }
  289. if (!deprecations[name]) {
  290. warn(msg);
  291. deprecations[name] = true;
  292. }
  293. }
  294. hooks.suppressDeprecationWarnings = false;
  295. hooks.deprecationHandler = null;
  296. function isFunction(input) {
  297. return (
  298. (typeof Function !== 'undefined' && input instanceof Function) ||
  299. Object.prototype.toString.call(input) === '[object Function]'
  300. );
  301. }
  302. function set(config) {
  303. var prop, i;
  304. for (i in config) {
  305. if (hasOwnProp(config, i)) {
  306. prop = config[i];
  307. if (isFunction(prop)) {
  308. this[i] = prop;
  309. } else {
  310. this['_' + i] = prop;
  311. }
  312. }
  313. }
  314. this._config = config;
  315. // Lenient ordinal parsing accepts just a number in addition to
  316. // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
  317. // TODO: Remove "ordinalParse" fallback in next major release.
  318. this._dayOfMonthOrdinalParseLenient = new RegExp(
  319. (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +
  320. '|' +
  321. /\d{1,2}/.source
  322. );
  323. }
  324. function mergeConfigs(parentConfig, childConfig) {
  325. var res = extend({}, parentConfig),
  326. prop;
  327. for (prop in childConfig) {
  328. if (hasOwnProp(childConfig, prop)) {
  329. if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
  330. res[prop] = {};
  331. extend(res[prop], parentConfig[prop]);
  332. extend(res[prop], childConfig[prop]);
  333. } else if (childConfig[prop] != null) {
  334. res[prop] = childConfig[prop];
  335. } else {
  336. delete res[prop];
  337. }
  338. }
  339. }
  340. for (prop in parentConfig) {
  341. if (
  342. hasOwnProp(parentConfig, prop) &&
  343. !hasOwnProp(childConfig, prop) &&
  344. isObject(parentConfig[prop])
  345. ) {
  346. // make sure changes to properties don't modify parent config
  347. res[prop] = extend({}, res[prop]);
  348. }
  349. }
  350. return res;
  351. }
  352. function Locale(config) {
  353. if (config != null) {
  354. this.set(config);
  355. }
  356. }
  357. var keys;
  358. if (Object.keys) {
  359. keys = Object.keys;
  360. } else {
  361. keys = function (obj) {
  362. var i,
  363. res = [];
  364. for (i in obj) {
  365. if (hasOwnProp(obj, i)) {
  366. res.push(i);
  367. }
  368. }
  369. return res;
  370. };
  371. }
  372. var defaultCalendar = {
  373. sameDay: '[Today at] LT',
  374. nextDay: '[Tomorrow at] LT',
  375. nextWeek: 'dddd [at] LT',
  376. lastDay: '[Yesterday at] LT',
  377. lastWeek: '[Last] dddd [at] LT',
  378. sameElse: 'L',
  379. };
  380. function calendar(key, mom, now) {
  381. var output = this._calendar[key] || this._calendar['sameElse'];
  382. return isFunction(output) ? output.call(mom, now) : output;
  383. }
  384. function zeroFill(number, targetLength, forceSign) {
  385. var absNumber = '' + Math.abs(number),
  386. zerosToFill = targetLength - absNumber.length,
  387. sign = number >= 0;
  388. return (
  389. (sign ? (forceSign ? '+' : '') : '-') +
  390. Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) +
  391. absNumber
  392. );
  393. }
  394. var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,
  395. localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
  396. formatFunctions = {},
  397. formatTokenFunctions = {};
  398. // token: 'M'
  399. // padded: ['MM', 2]
  400. // ordinal: 'Mo'
  401. // callback: function () { this.month() + 1 }
  402. function addFormatToken(token, padded, ordinal, callback) {
  403. var func = callback;
  404. if (typeof callback === 'string') {
  405. func = function () {
  406. return this[callback]();
  407. };
  408. }
  409. if (token) {
  410. formatTokenFunctions[token] = func;
  411. }
  412. if (padded) {
  413. formatTokenFunctions[padded[0]] = function () {
  414. return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
  415. };
  416. }
  417. if (ordinal) {
  418. formatTokenFunctions[ordinal] = function () {
  419. return this.localeData().ordinal(
  420. func.apply(this, arguments),
  421. token
  422. );
  423. };
  424. }
  425. }
  426. function removeFormattingTokens(input) {
  427. if (input.match(/\[[\s\S]/)) {
  428. return input.replace(/^\[|\]$/g, '');
  429. }
  430. return input.replace(/\\/g, '');
  431. }
  432. function makeFormatFunction(format) {
  433. var array = format.match(formattingTokens),
  434. i,
  435. length;
  436. for (i = 0, length = array.length; i < length; i++) {
  437. if (formatTokenFunctions[array[i]]) {
  438. array[i] = formatTokenFunctions[array[i]];
  439. } else {
  440. array[i] = removeFormattingTokens(array[i]);
  441. }
  442. }
  443. return function (mom) {
  444. var output = '',
  445. i;
  446. for (i = 0; i < length; i++) {
  447. output += isFunction(array[i])
  448. ? array[i].call(mom, format)
  449. : array[i];
  450. }
  451. return output;
  452. };
  453. }
  454. // format date using native date object
  455. function formatMoment(m, format) {
  456. if (!m.isValid()) {
  457. return m.localeData().invalidDate();
  458. }
  459. format = expandFormat(format, m.localeData());
  460. formatFunctions[format] =
  461. formatFunctions[format] || makeFormatFunction(format);
  462. return formatFunctions[format](m);
  463. }
  464. function expandFormat(format, locale) {
  465. var i = 5;
  466. function replaceLongDateFormatTokens(input) {
  467. return locale.longDateFormat(input) || input;
  468. }
  469. localFormattingTokens.lastIndex = 0;
  470. while (i >= 0 && localFormattingTokens.test(format)) {
  471. format = format.replace(
  472. localFormattingTokens,
  473. replaceLongDateFormatTokens
  474. );
  475. localFormattingTokens.lastIndex = 0;
  476. i -= 1;
  477. }
  478. return format;
  479. }
  480. var defaultLongDateFormat = {
  481. LTS: 'h:mm:ss A',
  482. LT: 'h:mm A',
  483. L: 'MM/DD/YYYY',
  484. LL: 'MMMM D, YYYY',
  485. LLL: 'MMMM D, YYYY h:mm A',
  486. LLLL: 'dddd, MMMM D, YYYY h:mm A',
  487. };
  488. function longDateFormat(key) {
  489. var format = this._longDateFormat[key],
  490. formatUpper = this._longDateFormat[key.toUpperCase()];
  491. if (format || !formatUpper) {
  492. return format;
  493. }
  494. this._longDateFormat[key] = formatUpper
  495. .match(formattingTokens)
  496. .map(function (tok) {
  497. if (
  498. tok === 'MMMM' ||
  499. tok === 'MM' ||
  500. tok === 'DD' ||
  501. tok === 'dddd'
  502. ) {
  503. return tok.slice(1);
  504. }
  505. return tok;
  506. })
  507. .join('');
  508. return this._longDateFormat[key];
  509. }
  510. var defaultInvalidDate = 'Invalid date';
  511. function invalidDate() {
  512. return this._invalidDate;
  513. }
  514. var defaultOrdinal = '%d',
  515. defaultDayOfMonthOrdinalParse = /\d{1,2}/;
  516. function ordinal(number) {
  517. return this._ordinal.replace('%d', number);
  518. }
  519. var defaultRelativeTime = {
  520. future: 'in %s',
  521. past: '%s ago',
  522. s: 'a few seconds',
  523. ss: '%d seconds',
  524. m: 'a minute',
  525. mm: '%d minutes',
  526. h: 'an hour',
  527. hh: '%d hours',
  528. d: 'a day',
  529. dd: '%d days',
  530. w: 'a week',
  531. ww: '%d weeks',
  532. M: 'a month',
  533. MM: '%d months',
  534. y: 'a year',
  535. yy: '%d years',
  536. };
  537. function relativeTime(number, withoutSuffix, string, isFuture) {
  538. var output = this._relativeTime[string];
  539. return isFunction(output)
  540. ? output(number, withoutSuffix, string, isFuture)
  541. : output.replace(/%d/i, number);
  542. }
  543. function pastFuture(diff, output) {
  544. var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
  545. return isFunction(format) ? format(output) : format.replace(/%s/i, output);
  546. }
  547. var aliases = {};
  548. function addUnitAlias(unit, shorthand) {
  549. var lowerCase = unit.toLowerCase();
  550. aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
  551. }
  552. function normalizeUnits(units) {
  553. return typeof units === 'string'
  554. ? aliases[units] || aliases[units.toLowerCase()]
  555. : undefined;
  556. }
  557. function normalizeObjectUnits(inputObject) {
  558. var normalizedInput = {},
  559. normalizedProp,
  560. prop;
  561. for (prop in inputObject) {
  562. if (hasOwnProp(inputObject, prop)) {
  563. normalizedProp = normalizeUnits(prop);
  564. if (normalizedProp) {
  565. normalizedInput[normalizedProp] = inputObject[prop];
  566. }
  567. }
  568. }
  569. return normalizedInput;
  570. }
  571. var priorities = {};
  572. function addUnitPriority(unit, priority) {
  573. priorities[unit] = priority;
  574. }
  575. function getPrioritizedUnits(unitsObj) {
  576. var units = [],
  577. u;
  578. for (u in unitsObj) {
  579. if (hasOwnProp(unitsObj, u)) {
  580. units.push({ unit: u, priority: priorities[u] });
  581. }
  582. }
  583. units.sort(function (a, b) {
  584. return a.priority - b.priority;
  585. });
  586. return units;
  587. }
  588. function isLeapYear(year) {
  589. return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
  590. }
  591. function absFloor(number) {
  592. if (number < 0) {
  593. // -0 -> 0
  594. return Math.ceil(number) || 0;
  595. } else {
  596. return Math.floor(number);
  597. }
  598. }
  599. function toInt(argumentForCoercion) {
  600. var coercedNumber = +argumentForCoercion,
  601. value = 0;
  602. if (coercedNumber !== 0 && isFinite(coercedNumber)) {
  603. value = absFloor(coercedNumber);
  604. }
  605. return value;
  606. }
  607. function makeGetSet(unit, keepTime) {
  608. return function (value) {
  609. if (value != null) {
  610. set$1(this, unit, value);
  611. hooks.updateOffset(this, keepTime);
  612. return this;
  613. } else {
  614. return get(this, unit);
  615. }
  616. };
  617. }
  618. function get(mom, unit) {
  619. return mom.isValid()
  620. ? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]()
  621. : NaN;
  622. }
  623. function set$1(mom, unit, value) {
  624. if (mom.isValid() && !isNaN(value)) {
  625. if (
  626. unit === 'FullYear' &&
  627. isLeapYear(mom.year()) &&
  628. mom.month() === 1 &&
  629. mom.date() === 29
  630. ) {
  631. value = toInt(value);
  632. mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](
  633. value,
  634. mom.month(),
  635. daysInMonth(value, mom.month())
  636. );
  637. } else {
  638. mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
  639. }
  640. }
  641. }
  642. // MOMENTS
  643. function stringGet(units) {
  644. units = normalizeUnits(units);
  645. if (isFunction(this[units])) {
  646. return this[units]();
  647. }
  648. return this;
  649. }
  650. function stringSet(units, value) {
  651. if (typeof units === 'object') {
  652. units = normalizeObjectUnits(units);
  653. var prioritized = getPrioritizedUnits(units),
  654. i;
  655. for (i = 0; i < prioritized.length; i++) {
  656. this[prioritized[i].unit](units[prioritized[i].unit]);
  657. }
  658. } else {
  659. units = normalizeUnits(units);
  660. if (isFunction(this[units])) {
  661. return this[units](value);
  662. }
  663. }
  664. return this;
  665. }
  666. var match1 = /\d/, // 0 - 9
  667. match2 = /\d\d/, // 00 - 99
  668. match3 = /\d{3}/, // 000 - 999
  669. match4 = /\d{4}/, // 0000 - 9999
  670. match6 = /[+-]?\d{6}/, // -999999 - 999999
  671. match1to2 = /\d\d?/, // 0 - 99
  672. match3to4 = /\d\d\d\d?/, // 999 - 9999
  673. match5to6 = /\d\d\d\d\d\d?/, // 99999 - 999999
  674. match1to3 = /\d{1,3}/, // 0 - 999
  675. match1to4 = /\d{1,4}/, // 0 - 9999
  676. match1to6 = /[+-]?\d{1,6}/, // -999999 - 999999
  677. matchUnsigned = /\d+/, // 0 - inf
  678. matchSigned = /[+-]?\d+/, // -inf - inf
  679. matchOffset = /Z|[+-]\d\d:?\d\d/gi, // +00:00 -00:00 +0000 -0000 or Z
  680. matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, // +00 -00 +00:00 -00:00 +0000 -0000 or Z
  681. matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123
  682. // any word (or two) characters or numbers including two/three word month in arabic.
  683. // includes scottish gaelic two word and hyphenated months
  684. matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,
  685. regexes;
  686. regexes = {};
  687. function addRegexToken(token, regex, strictRegex) {
  688. regexes[token] = isFunction(regex)
  689. ? regex
  690. : function (isStrict, localeData) {
  691. return isStrict && strictRegex ? strictRegex : regex;
  692. };
  693. }
  694. function getParseRegexForToken(token, config) {
  695. if (!hasOwnProp(regexes, token)) {
  696. return new RegExp(unescapeFormat(token));
  697. }
  698. return regexes[token](config._strict, config._locale);
  699. }
  700. // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
  701. function unescapeFormat(s) {
  702. return regexEscape(
  703. s
  704. .replace('\\', '')
  705. .replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (
  706. matched,
  707. p1,
  708. p2,
  709. p3,
  710. p4
  711. ) {
  712. return p1 || p2 || p3 || p4;
  713. })
  714. );
  715. }
  716. function regexEscape(s) {
  717. return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
  718. }
  719. var tokens = {};
  720. function addParseToken(token, callback) {
  721. var i,
  722. func = callback;
  723. if (typeof token === 'string') {
  724. token = [token];
  725. }
  726. if (isNumber(callback)) {
  727. func = function (input, array) {
  728. array[callback] = toInt(input);
  729. };
  730. }
  731. for (i = 0; i < token.length; i++) {
  732. tokens[token[i]] = func;
  733. }
  734. }
  735. function addWeekParseToken(token, callback) {
  736. addParseToken(token, function (input, array, config, token) {
  737. config._w = config._w || {};
  738. callback(input, config._w, config, token);
  739. });
  740. }
  741. function addTimeToArrayFromToken(token, input, config) {
  742. if (input != null && hasOwnProp(tokens, token)) {
  743. tokens[token](input, config._a, config, token);
  744. }
  745. }
  746. var YEAR = 0,
  747. MONTH = 1,
  748. DATE = 2,
  749. HOUR = 3,
  750. MINUTE = 4,
  751. SECOND = 5,
  752. MILLISECOND = 6,
  753. WEEK = 7,
  754. WEEKDAY = 8;
  755. function mod(n, x) {
  756. return ((n % x) + x) % x;
  757. }
  758. var indexOf;
  759. if (Array.prototype.indexOf) {
  760. indexOf = Array.prototype.indexOf;
  761. } else {
  762. indexOf = function (o) {
  763. // I know
  764. var i;
  765. for (i = 0; i < this.length; ++i) {
  766. if (this[i] === o) {
  767. return i;
  768. }
  769. }
  770. return -1;
  771. };
  772. }
  773. function daysInMonth(year, month) {
  774. if (isNaN(year) || isNaN(month)) {
  775. return NaN;
  776. }
  777. var modMonth = mod(month, 12);
  778. year += (month - modMonth) / 12;
  779. return modMonth === 1
  780. ? isLeapYear(year)
  781. ? 29
  782. : 28
  783. : 31 - ((modMonth % 7) % 2);
  784. }
  785. // FORMATTING
  786. addFormatToken('M', ['MM', 2], 'Mo', function () {
  787. return this.month() + 1;
  788. });
  789. addFormatToken('MMM', 0, 0, function (format) {
  790. return this.localeData().monthsShort(this, format);
  791. });
  792. addFormatToken('MMMM', 0, 0, function (format) {
  793. return this.localeData().months(this, format);
  794. });
  795. // ALIASES
  796. addUnitAlias('month', 'M');
  797. // PRIORITY
  798. addUnitPriority('month', 8);
  799. // PARSING
  800. addRegexToken('M', match1to2);
  801. addRegexToken('MM', match1to2, match2);
  802. addRegexToken('MMM', function (isStrict, locale) {
  803. return locale.monthsShortRegex(isStrict);
  804. });
  805. addRegexToken('MMMM', function (isStrict, locale) {
  806. return locale.monthsRegex(isStrict);
  807. });
  808. addParseToken(['M', 'MM'], function (input, array) {
  809. array[MONTH] = toInt(input) - 1;
  810. });
  811. addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
  812. var month = config._locale.monthsParse(input, token, config._strict);
  813. // if we didn't find a month name, mark the date as invalid.
  814. if (month != null) {
  815. array[MONTH] = month;
  816. } else {
  817. getParsingFlags(config).invalidMonth = input;
  818. }
  819. });
  820. // LOCALES
  821. var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  822. '_'
  823. ),
  824. defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split(
  825. '_'
  826. ),
  827. MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
  828. defaultMonthsShortRegex = matchWord,
  829. defaultMonthsRegex = matchWord;
  830. function localeMonths(m, format) {
  831. if (!m) {
  832. return isArray(this._months)
  833. ? this._months
  834. : this._months['standalone'];
  835. }
  836. return isArray(this._months)
  837. ? this._months[m.month()]
  838. : this._months[
  839. (this._months.isFormat || MONTHS_IN_FORMAT).test(format)
  840. ? 'format'
  841. : 'standalone'
  842. ][m.month()];
  843. }
  844. function localeMonthsShort(m, format) {
  845. if (!m) {
  846. return isArray(this._monthsShort)
  847. ? this._monthsShort
  848. : this._monthsShort['standalone'];
  849. }
  850. return isArray(this._monthsShort)
  851. ? this._monthsShort[m.month()]
  852. : this._monthsShort[
  853. MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'
  854. ][m.month()];
  855. }
  856. function handleStrictParse(monthName, format, strict) {
  857. var i,
  858. ii,
  859. mom,
  860. llc = monthName.toLocaleLowerCase();
  861. if (!this._monthsParse) {
  862. // this is not used
  863. this._monthsParse = [];
  864. this._longMonthsParse = [];
  865. this._shortMonthsParse = [];
  866. for (i = 0; i < 12; ++i) {
  867. mom = createUTC([2000, i]);
  868. this._shortMonthsParse[i] = this.monthsShort(
  869. mom,
  870. ''
  871. ).toLocaleLowerCase();
  872. this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();
  873. }
  874. }
  875. if (strict) {
  876. if (format === 'MMM') {
  877. ii = indexOf.call(this._shortMonthsParse, llc);
  878. return ii !== -1 ? ii : null;
  879. } else {
  880. ii = indexOf.call(this._longMonthsParse, llc);
  881. return ii !== -1 ? ii : null;
  882. }
  883. } else {
  884. if (format === 'MMM') {
  885. ii = indexOf.call(this._shortMonthsParse, llc);
  886. if (ii !== -1) {
  887. return ii;
  888. }
  889. ii = indexOf.call(this._longMonthsParse, llc);
  890. return ii !== -1 ? ii : null;
  891. } else {
  892. ii = indexOf.call(this._longMonthsParse, llc);
  893. if (ii !== -1) {
  894. return ii;
  895. }
  896. ii = indexOf.call(this._shortMonthsParse, llc);
  897. return ii !== -1 ? ii : null;
  898. }
  899. }
  900. }
  901. function localeMonthsParse(monthName, format, strict) {
  902. var i, mom, regex;
  903. if (this._monthsParseExact) {
  904. return handleStrictParse.call(this, monthName, format, strict);
  905. }
  906. if (!this._monthsParse) {
  907. this._monthsParse = [];
  908. this._longMonthsParse = [];
  909. this._shortMonthsParse = [];
  910. }
  911. // TODO: add sorting
  912. // Sorting makes sure if one month (or abbr) is a prefix of another
  913. // see sorting in computeMonthsParse
  914. for (i = 0; i < 12; i++) {
  915. // make the regex if we don't have it already
  916. mom = createUTC([2000, i]);
  917. if (strict && !this._longMonthsParse[i]) {
  918. this._longMonthsParse[i] = new RegExp(
  919. '^' + this.months(mom, '').replace('.', '') + '$',
  920. 'i'
  921. );
  922. this._shortMonthsParse[i] = new RegExp(
  923. '^' + this.monthsShort(mom, '').replace('.', '') + '$',
  924. 'i'
  925. );
  926. }
  927. if (!strict && !this._monthsParse[i]) {
  928. regex =
  929. '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
  930. this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
  931. }
  932. // test the regex
  933. if (
  934. strict &&
  935. format === 'MMMM' &&
  936. this._longMonthsParse[i].test(monthName)
  937. ) {
  938. return i;
  939. } else if (
  940. strict &&
  941. format === 'MMM' &&
  942. this._shortMonthsParse[i].test(monthName)
  943. ) {
  944. return i;
  945. } else if (!strict && this._monthsParse[i].test(monthName)) {
  946. return i;
  947. }
  948. }
  949. }
  950. // MOMENTS
  951. function setMonth(mom, value) {
  952. var dayOfMonth;
  953. if (!mom.isValid()) {
  954. // No op
  955. return mom;
  956. }
  957. if (typeof value === 'string') {
  958. if (/^\d+$/.test(value)) {
  959. value = toInt(value);
  960. } else {
  961. value = mom.localeData().monthsParse(value);
  962. // TODO: Another silent failure?
  963. if (!isNumber(value)) {
  964. return mom;
  965. }
  966. }
  967. }
  968. dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
  969. mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
  970. return mom;
  971. }
  972. function getSetMonth(value) {
  973. if (value != null) {
  974. setMonth(this, value);
  975. hooks.updateOffset(this, true);
  976. return this;
  977. } else {
  978. return get(this, 'Month');
  979. }
  980. }
  981. function getDaysInMonth() {
  982. return daysInMonth(this.year(), this.month());
  983. }
  984. function monthsShortRegex(isStrict) {
  985. if (this._monthsParseExact) {
  986. if (!hasOwnProp(this, '_monthsRegex')) {
  987. computeMonthsParse.call(this);
  988. }
  989. if (isStrict) {
  990. return this._monthsShortStrictRegex;
  991. } else {
  992. return this._monthsShortRegex;
  993. }
  994. } else {
  995. if (!hasOwnProp(this, '_monthsShortRegex')) {
  996. this._monthsShortRegex = defaultMonthsShortRegex;
  997. }
  998. return this._monthsShortStrictRegex && isStrict
  999. ? this._monthsShortStrictRegex
  1000. : this._monthsShortRegex;
  1001. }
  1002. }
  1003. function monthsRegex(isStrict) {
  1004. if (this._monthsParseExact) {
  1005. if (!hasOwnProp(this, '_monthsRegex')) {
  1006. computeMonthsParse.call(this);
  1007. }
  1008. if (isStrict) {
  1009. return this._monthsStrictRegex;
  1010. } else {
  1011. return this._monthsRegex;
  1012. }
  1013. } else {
  1014. if (!hasOwnProp(this, '_monthsRegex')) {
  1015. this._monthsRegex = defaultMonthsRegex;
  1016. }
  1017. return this._monthsStrictRegex && isStrict
  1018. ? this._monthsStrictRegex
  1019. : this._monthsRegex;
  1020. }
  1021. }
  1022. function computeMonthsParse() {
  1023. function cmpLenRev(a, b) {
  1024. return b.length - a.length;
  1025. }
  1026. var shortPieces = [],
  1027. longPieces = [],
  1028. mixedPieces = [],
  1029. i,
  1030. mom;
  1031. for (i = 0; i < 12; i++) {
  1032. // make the regex if we don't have it already
  1033. mom = createUTC([2000, i]);
  1034. shortPieces.push(this.monthsShort(mom, ''));
  1035. longPieces.push(this.months(mom, ''));
  1036. mixedPieces.push(this.months(mom, ''));
  1037. mixedPieces.push(this.monthsShort(mom, ''));
  1038. }
  1039. // Sorting makes sure if one month (or abbr) is a prefix of another it
  1040. // will match the longer piece.
  1041. shortPieces.sort(cmpLenRev);
  1042. longPieces.sort(cmpLenRev);
  1043. mixedPieces.sort(cmpLenRev);
  1044. for (i = 0; i < 12; i++) {
  1045. shortPieces[i] = regexEscape(shortPieces[i]);
  1046. longPieces[i] = regexEscape(longPieces[i]);
  1047. }
  1048. for (i = 0; i < 24; i++) {
  1049. mixedPieces[i] = regexEscape(mixedPieces[i]);
  1050. }
  1051. this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  1052. this._monthsShortRegex = this._monthsRegex;
  1053. this._monthsStrictRegex = new RegExp(
  1054. '^(' + longPieces.join('|') + ')',
  1055. 'i'
  1056. );
  1057. this._monthsShortStrictRegex = new RegExp(
  1058. '^(' + shortPieces.join('|') + ')',
  1059. 'i'
  1060. );
  1061. }
  1062. // FORMATTING
  1063. addFormatToken('Y', 0, 0, function () {
  1064. var y = this.year();
  1065. return y <= 9999 ? zeroFill(y, 4) : '+' + y;
  1066. });
  1067. addFormatToken(0, ['YY', 2], 0, function () {
  1068. return this.year() % 100;
  1069. });
  1070. addFormatToken(0, ['YYYY', 4], 0, 'year');
  1071. addFormatToken(0, ['YYYYY', 5], 0, 'year');
  1072. addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
  1073. // ALIASES
  1074. addUnitAlias('year', 'y');
  1075. // PRIORITIES
  1076. addUnitPriority('year', 1);
  1077. // PARSING
  1078. addRegexToken('Y', matchSigned);
  1079. addRegexToken('YY', match1to2, match2);
  1080. addRegexToken('YYYY', match1to4, match4);
  1081. addRegexToken('YYYYY', match1to6, match6);
  1082. addRegexToken('YYYYYY', match1to6, match6);
  1083. addParseToken(['YYYYY', 'YYYYYY'], YEAR);
  1084. addParseToken('YYYY', function (input, array) {
  1085. array[YEAR] =
  1086. input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
  1087. });
  1088. addParseToken('YY', function (input, array) {
  1089. array[YEAR] = hooks.parseTwoDigitYear(input);
  1090. });
  1091. addParseToken('Y', function (input, array) {
  1092. array[YEAR] = parseInt(input, 10);
  1093. });
  1094. // HELPERS
  1095. function daysInYear(year) {
  1096. return isLeapYear(year) ? 366 : 365;
  1097. }
  1098. // HOOKS
  1099. hooks.parseTwoDigitYear = function (input) {
  1100. return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
  1101. };
  1102. // MOMENTS
  1103. var getSetYear = makeGetSet('FullYear', true);
  1104. function getIsLeapYear() {
  1105. return isLeapYear(this.year());
  1106. }
  1107. function createDate(y, m, d, h, M, s, ms) {
  1108. // can't just apply() to create a date:
  1109. // https://stackoverflow.com/q/181348
  1110. var date;
  1111. // the date constructor remaps years 0-99 to 1900-1999
  1112. if (y < 100 && y >= 0) {
  1113. // preserve leap years using a full 400 year cycle, then reset
  1114. date = new Date(y + 400, m, d, h, M, s, ms);
  1115. if (isFinite(date.getFullYear())) {
  1116. date.setFullYear(y);
  1117. }
  1118. } else {
  1119. date = new Date(y, m, d, h, M, s, ms);
  1120. }
  1121. return date;
  1122. }
  1123. function createUTCDate(y) {
  1124. var date, args;
  1125. // the Date.UTC function remaps years 0-99 to 1900-1999
  1126. if (y < 100 && y >= 0) {
  1127. args = Array.prototype.slice.call(arguments);
  1128. // preserve leap years using a full 400 year cycle, then reset
  1129. args[0] = y + 400;
  1130. date = new Date(Date.UTC.apply(null, args));
  1131. if (isFinite(date.getUTCFullYear())) {
  1132. date.setUTCFullYear(y);
  1133. }
  1134. } else {
  1135. date = new Date(Date.UTC.apply(null, arguments));
  1136. }
  1137. return date;
  1138. }
  1139. // start-of-first-week - start-of-year
  1140. function firstWeekOffset(year, dow, doy) {
  1141. var // first-week day -- which january is always in the first week (4 for iso, 1 for other)
  1142. fwd = 7 + dow - doy,
  1143. // first-week day local weekday -- which local weekday is fwd
  1144. fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
  1145. return -fwdlw + fwd - 1;
  1146. }
  1147. // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
  1148. function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
  1149. var localWeekday = (7 + weekday - dow) % 7,
  1150. weekOffset = firstWeekOffset(year, dow, doy),
  1151. dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,
  1152. resYear,
  1153. resDayOfYear;
  1154. if (dayOfYear <= 0) {
  1155. resYear = year - 1;
  1156. resDayOfYear = daysInYear(resYear) + dayOfYear;
  1157. } else if (dayOfYear > daysInYear(year)) {
  1158. resYear = year + 1;
  1159. resDayOfYear = dayOfYear - daysInYear(year);
  1160. } else {
  1161. resYear = year;
  1162. resDayOfYear = dayOfYear;
  1163. }
  1164. return {
  1165. year: resYear,
  1166. dayOfYear: resDayOfYear,
  1167. };
  1168. }
  1169. function weekOfYear(mom, dow, doy) {
  1170. var weekOffset = firstWeekOffset(mom.year(), dow, doy),
  1171. week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,
  1172. resWeek,
  1173. resYear;
  1174. if (week < 1) {
  1175. resYear = mom.year() - 1;
  1176. resWeek = week + weeksInYear(resYear, dow, doy);
  1177. } else if (week > weeksInYear(mom.year(), dow, doy)) {
  1178. resWeek = week - weeksInYear(mom.year(), dow, doy);
  1179. resYear = mom.year() + 1;
  1180. } else {
  1181. resYear = mom.year();
  1182. resWeek = week;
  1183. }
  1184. return {
  1185. week: resWeek,
  1186. year: resYear,
  1187. };
  1188. }
  1189. function weeksInYear(year, dow, doy) {
  1190. var weekOffset = firstWeekOffset(year, dow, doy),
  1191. weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
  1192. return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
  1193. }
  1194. // FORMATTING
  1195. addFormatToken('w', ['ww', 2], 'wo', 'week');
  1196. addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
  1197. // ALIASES
  1198. addUnitAlias('week', 'w');
  1199. addUnitAlias('isoWeek', 'W');
  1200. // PRIORITIES
  1201. addUnitPriority('week', 5);
  1202. addUnitPriority('isoWeek', 5);
  1203. // PARSING
  1204. addRegexToken('w', match1to2);
  1205. addRegexToken('ww', match1to2, match2);
  1206. addRegexToken('W', match1to2);
  1207. addRegexToken('WW', match1to2, match2);
  1208. addWeekParseToken(['w', 'ww', 'W', 'WW'], function (
  1209. input,
  1210. week,
  1211. config,
  1212. token
  1213. ) {
  1214. week[token.substr(0, 1)] = toInt(input);
  1215. });
  1216. // HELPERS
  1217. // LOCALES
  1218. function localeWeek(mom) {
  1219. return weekOfYear(mom, this._week.dow, this._week.doy).week;
  1220. }
  1221. var defaultLocaleWeek = {
  1222. dow: 0, // Sunday is the first day of the week.
  1223. doy: 6, // The week that contains Jan 6th is the first week of the year.
  1224. };
  1225. function localeFirstDayOfWeek() {
  1226. return this._week.dow;
  1227. }
  1228. function localeFirstDayOfYear() {
  1229. return this._week.doy;
  1230. }
  1231. // MOMENTS
  1232. function getSetWeek(input) {
  1233. var week = this.localeData().week(this);
  1234. return input == null ? week : this.add((input - week) * 7, 'd');
  1235. }
  1236. function getSetISOWeek(input) {
  1237. var week = weekOfYear(this, 1, 4).week;
  1238. return input == null ? week : this.add((input - week) * 7, 'd');
  1239. }
  1240. // FORMATTING
  1241. addFormatToken('d', 0, 'do', 'day');
  1242. addFormatToken('dd', 0, 0, function (format) {
  1243. return this.localeData().weekdaysMin(this, format);
  1244. });
  1245. addFormatToken('ddd', 0, 0, function (format) {
  1246. return this.localeData().weekdaysShort(this, format);
  1247. });
  1248. addFormatToken('dddd', 0, 0, function (format) {
  1249. return this.localeData().weekdays(this, format);
  1250. });
  1251. addFormatToken('e', 0, 0, 'weekday');
  1252. addFormatToken('E', 0, 0, 'isoWeekday');
  1253. // ALIASES
  1254. addUnitAlias('day', 'd');
  1255. addUnitAlias('weekday', 'e');
  1256. addUnitAlias('isoWeekday', 'E');
  1257. // PRIORITY
  1258. addUnitPriority('day', 11);
  1259. addUnitPriority('weekday', 11);
  1260. addUnitPriority('isoWeekday', 11);
  1261. // PARSING
  1262. addRegexToken('d', match1to2);
  1263. addRegexToken('e', match1to2);
  1264. addRegexToken('E', match1to2);
  1265. addRegexToken('dd', function (isStrict, locale) {
  1266. return locale.weekdaysMinRegex(isStrict);
  1267. });
  1268. addRegexToken('ddd', function (isStrict, locale) {
  1269. return locale.weekdaysShortRegex(isStrict);
  1270. });
  1271. addRegexToken('dddd', function (isStrict, locale) {
  1272. return locale.weekdaysRegex(isStrict);
  1273. });
  1274. addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {
  1275. var weekday = config._locale.weekdaysParse(input, token, config._strict);
  1276. // if we didn't get a weekday name, mark the date as invalid
  1277. if (weekday != null) {
  1278. week.d = weekday;
  1279. } else {
  1280. getParsingFlags(config).invalidWeekday = input;
  1281. }
  1282. });
  1283. addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {
  1284. week[token] = toInt(input);
  1285. });
  1286. // HELPERS
  1287. function parseWeekday(input, locale) {
  1288. if (typeof input !== 'string') {
  1289. return input;
  1290. }
  1291. if (!isNaN(input)) {
  1292. return parseInt(input, 10);
  1293. }
  1294. input = locale.weekdaysParse(input);
  1295. if (typeof input === 'number') {
  1296. return input;
  1297. }
  1298. return null;
  1299. }
  1300. function parseIsoWeekday(input, locale) {
  1301. if (typeof input === 'string') {
  1302. return locale.weekdaysParse(input) % 7 || 7;
  1303. }
  1304. return isNaN(input) ? null : input;
  1305. }
  1306. // LOCALES
  1307. function shiftWeekdays(ws, n) {
  1308. return ws.slice(n, 7).concat(ws.slice(0, n));
  1309. }
  1310. var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  1311. '_'
  1312. ),
  1313. defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  1314. defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  1315. defaultWeekdaysRegex = matchWord,
  1316. defaultWeekdaysShortRegex = matchWord,
  1317. defaultWeekdaysMinRegex = matchWord;
  1318. function localeWeekdays(m, format) {
  1319. var weekdays = isArray(this._weekdays)
  1320. ? this._weekdays
  1321. : this._weekdays[
  1322. m && m !== true && this._weekdays.isFormat.test(format)
  1323. ? 'format'
  1324. : 'standalone'
  1325. ];
  1326. return m === true
  1327. ? shiftWeekdays(weekdays, this._week.dow)
  1328. : m
  1329. ? weekdays[m.day()]
  1330. : weekdays;
  1331. }
  1332. function localeWeekdaysShort(m) {
  1333. return m === true
  1334. ? shiftWeekdays(this._weekdaysShort, this._week.dow)
  1335. : m
  1336. ? this._weekdaysShort[m.day()]
  1337. : this._weekdaysShort;
  1338. }
  1339. function localeWeekdaysMin(m) {
  1340. return m === true
  1341. ? shiftWeekdays(this._weekdaysMin, this._week.dow)
  1342. : m
  1343. ? this._weekdaysMin[m.day()]
  1344. : this._weekdaysMin;
  1345. }
  1346. function handleStrictParse$1(weekdayName, format, strict) {
  1347. var i,
  1348. ii,
  1349. mom,
  1350. llc = weekdayName.toLocaleLowerCase();
  1351. if (!this._weekdaysParse) {
  1352. this._weekdaysParse = [];
  1353. this._shortWeekdaysParse = [];
  1354. this._minWeekdaysParse = [];
  1355. for (i = 0; i < 7; ++i) {
  1356. mom = createUTC([2000, 1]).day(i);
  1357. this._minWeekdaysParse[i] = this.weekdaysMin(
  1358. mom,
  1359. ''
  1360. ).toLocaleLowerCase();
  1361. this._shortWeekdaysParse[i] = this.weekdaysShort(
  1362. mom,
  1363. ''
  1364. ).toLocaleLowerCase();
  1365. this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();
  1366. }
  1367. }
  1368. if (strict) {
  1369. if (format === 'dddd') {
  1370. ii = indexOf.call(this._weekdaysParse, llc);
  1371. return ii !== -1 ? ii : null;
  1372. } else if (format === 'ddd') {
  1373. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1374. return ii !== -1 ? ii : null;
  1375. } else {
  1376. ii = indexOf.call(this._minWeekdaysParse, llc);
  1377. return ii !== -1 ? ii : null;
  1378. }
  1379. } else {
  1380. if (format === 'dddd') {
  1381. ii = indexOf.call(this._weekdaysParse, llc);
  1382. if (ii !== -1) {
  1383. return ii;
  1384. }
  1385. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1386. if (ii !== -1) {
  1387. return ii;
  1388. }
  1389. ii = indexOf.call(this._minWeekdaysParse, llc);
  1390. return ii !== -1 ? ii : null;
  1391. } else if (format === 'ddd') {
  1392. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1393. if (ii !== -1) {
  1394. return ii;
  1395. }
  1396. ii = indexOf.call(this._weekdaysParse, llc);
  1397. if (ii !== -1) {
  1398. return ii;
  1399. }
  1400. ii = indexOf.call(this._minWeekdaysParse, llc);
  1401. return ii !== -1 ? ii : null;
  1402. } else {
  1403. ii = indexOf.call(this._minWeekdaysParse, llc);
  1404. if (ii !== -1) {
  1405. return ii;
  1406. }
  1407. ii = indexOf.call(this._weekdaysParse, llc);
  1408. if (ii !== -1) {
  1409. return ii;
  1410. }
  1411. ii = indexOf.call(this._shortWeekdaysParse, llc);
  1412. return ii !== -1 ? ii : null;
  1413. }
  1414. }
  1415. }
  1416. function localeWeekdaysParse(weekdayName, format, strict) {
  1417. var i, mom, regex;
  1418. if (this._weekdaysParseExact) {
  1419. return handleStrictParse$1.call(this, weekdayName, format, strict);
  1420. }
  1421. if (!this._weekdaysParse) {
  1422. this._weekdaysParse = [];
  1423. this._minWeekdaysParse = [];
  1424. this._shortWeekdaysParse = [];
  1425. this._fullWeekdaysParse = [];
  1426. }
  1427. for (i = 0; i < 7; i++) {
  1428. // make the regex if we don't have it already
  1429. mom = createUTC([2000, 1]).day(i);
  1430. if (strict && !this._fullWeekdaysParse[i]) {
  1431. this._fullWeekdaysParse[i] = new RegExp(
  1432. '^' + this.weekdays(mom, '').replace('.', '\\.?') + '$',
  1433. 'i'
  1434. );
  1435. this._shortWeekdaysParse[i] = new RegExp(
  1436. '^' + this.weekdaysShort(mom, '').replace('.', '\\.?') + '$',
  1437. 'i'
  1438. );
  1439. this._minWeekdaysParse[i] = new RegExp(
  1440. '^' + this.weekdaysMin(mom, '').replace('.', '\\.?') + '$',
  1441. 'i'
  1442. );
  1443. }
  1444. if (!this._weekdaysParse[i]) {
  1445. regex =
  1446. '^' +
  1447. this.weekdays(mom, '') +
  1448. '|^' +
  1449. this.weekdaysShort(mom, '') +
  1450. '|^' +
  1451. this.weekdaysMin(mom, '');
  1452. this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
  1453. }
  1454. // test the regex
  1455. if (
  1456. strict &&
  1457. format === 'dddd' &&
  1458. this._fullWeekdaysParse[i].test(weekdayName)
  1459. ) {
  1460. return i;
  1461. } else if (
  1462. strict &&
  1463. format === 'ddd' &&
  1464. this._shortWeekdaysParse[i].test(weekdayName)
  1465. ) {
  1466. return i;
  1467. } else if (
  1468. strict &&
  1469. format === 'dd' &&
  1470. this._minWeekdaysParse[i].test(weekdayName)
  1471. ) {
  1472. return i;
  1473. } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {
  1474. return i;
  1475. }
  1476. }
  1477. }
  1478. // MOMENTS
  1479. function getSetDayOfWeek(input) {
  1480. if (!this.isValid()) {
  1481. return input != null ? this : NaN;
  1482. }
  1483. var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
  1484. if (input != null) {
  1485. input = parseWeekday(input, this.localeData());
  1486. return this.add(input - day, 'd');
  1487. } else {
  1488. return day;
  1489. }
  1490. }
  1491. function getSetLocaleDayOfWeek(input) {
  1492. if (!this.isValid()) {
  1493. return input != null ? this : NaN;
  1494. }
  1495. var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
  1496. return input == null ? weekday : this.add(input - weekday, 'd');
  1497. }
  1498. function getSetISODayOfWeek(input) {
  1499. if (!this.isValid()) {
  1500. return input != null ? this : NaN;
  1501. }
  1502. // behaves the same as moment#day except
  1503. // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
  1504. // as a setter, sunday should belong to the previous week.
  1505. if (input != null) {
  1506. var weekday = parseIsoWeekday(input, this.localeData());
  1507. return this.day(this.day() % 7 ? weekday : weekday - 7);
  1508. } else {
  1509. return this.day() || 7;
  1510. }
  1511. }
  1512. function weekdaysRegex(isStrict) {
  1513. if (this._weekdaysParseExact) {
  1514. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1515. computeWeekdaysParse.call(this);
  1516. }
  1517. if (isStrict) {
  1518. return this._weekdaysStrictRegex;
  1519. } else {
  1520. return this._weekdaysRegex;
  1521. }
  1522. } else {
  1523. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1524. this._weekdaysRegex = defaultWeekdaysRegex;
  1525. }
  1526. return this._weekdaysStrictRegex && isStrict
  1527. ? this._weekdaysStrictRegex
  1528. : this._weekdaysRegex;
  1529. }
  1530. }
  1531. function weekdaysShortRegex(isStrict) {
  1532. if (this._weekdaysParseExact) {
  1533. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1534. computeWeekdaysParse.call(this);
  1535. }
  1536. if (isStrict) {
  1537. return this._weekdaysShortStrictRegex;
  1538. } else {
  1539. return this._weekdaysShortRegex;
  1540. }
  1541. } else {
  1542. if (!hasOwnProp(this, '_weekdaysShortRegex')) {
  1543. this._weekdaysShortRegex = defaultWeekdaysShortRegex;
  1544. }
  1545. return this._weekdaysShortStrictRegex && isStrict
  1546. ? this._weekdaysShortStrictRegex
  1547. : this._weekdaysShortRegex;
  1548. }
  1549. }
  1550. function weekdaysMinRegex(isStrict) {
  1551. if (this._weekdaysParseExact) {
  1552. if (!hasOwnProp(this, '_weekdaysRegex')) {
  1553. computeWeekdaysParse.call(this);
  1554. }
  1555. if (isStrict) {
  1556. return this._weekdaysMinStrictRegex;
  1557. } else {
  1558. return this._weekdaysMinRegex;
  1559. }
  1560. } else {
  1561. if (!hasOwnProp(this, '_weekdaysMinRegex')) {
  1562. this._weekdaysMinRegex = defaultWeekdaysMinRegex;
  1563. }
  1564. return this._weekdaysMinStrictRegex && isStrict
  1565. ? this._weekdaysMinStrictRegex
  1566. : this._weekdaysMinRegex;
  1567. }
  1568. }
  1569. function computeWeekdaysParse() {
  1570. function cmpLenRev(a, b) {
  1571. return b.length - a.length;
  1572. }
  1573. var minPieces = [],
  1574. shortPieces = [],
  1575. longPieces = [],
  1576. mixedPieces = [],
  1577. i,
  1578. mom,
  1579. minp,
  1580. shortp,
  1581. longp;
  1582. for (i = 0; i < 7; i++) {
  1583. // make the regex if we don't have it already
  1584. mom = createUTC([2000, 1]).day(i);
  1585. minp = regexEscape(this.weekdaysMin(mom, ''));
  1586. shortp = regexEscape(this.weekdaysShort(mom, ''));
  1587. longp = regexEscape(this.weekdays(mom, ''));
  1588. minPieces.push(minp);
  1589. shortPieces.push(shortp);
  1590. longPieces.push(longp);
  1591. mixedPieces.push(minp);
  1592. mixedPieces.push(shortp);
  1593. mixedPieces.push(longp);
  1594. }
  1595. // Sorting makes sure if one weekday (or abbr) is a prefix of another it
  1596. // will match the longer piece.
  1597. minPieces.sort(cmpLenRev);
  1598. shortPieces.sort(cmpLenRev);
  1599. longPieces.sort(cmpLenRev);
  1600. mixedPieces.sort(cmpLenRev);
  1601. this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  1602. this._weekdaysShortRegex = this._weekdaysRegex;
  1603. this._weekdaysMinRegex = this._weekdaysRegex;
  1604. this._weekdaysStrictRegex = new RegExp(
  1605. '^(' + longPieces.join('|') + ')',
  1606. 'i'
  1607. );
  1608. this._weekdaysShortStrictRegex = new RegExp(
  1609. '^(' + shortPieces.join('|') + ')',
  1610. 'i'
  1611. );
  1612. this._weekdaysMinStrictRegex = new RegExp(
  1613. '^(' + minPieces.join('|') + ')',
  1614. 'i'
  1615. );
  1616. }
  1617. // FORMATTING
  1618. function hFormat() {
  1619. return this.hours() % 12 || 12;
  1620. }
  1621. function kFormat() {
  1622. return this.hours() || 24;
  1623. }
  1624. addFormatToken('H', ['HH', 2], 0, 'hour');
  1625. addFormatToken('h', ['hh', 2], 0, hFormat);
  1626. addFormatToken('k', ['kk', 2], 0, kFormat);
  1627. addFormatToken('hmm', 0, 0, function () {
  1628. return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);
  1629. });
  1630. addFormatToken('hmmss', 0, 0, function () {
  1631. return (
  1632. '' +
  1633. hFormat.apply(this) +
  1634. zeroFill(this.minutes(), 2) +
  1635. zeroFill(this.seconds(), 2)
  1636. );
  1637. });
  1638. addFormatToken('Hmm', 0, 0, function () {
  1639. return '' + this.hours() + zeroFill(this.minutes(), 2);
  1640. });
  1641. addFormatToken('Hmmss', 0, 0, function () {
  1642. return (
  1643. '' +
  1644. this.hours() +
  1645. zeroFill(this.minutes(), 2) +
  1646. zeroFill(this.seconds(), 2)
  1647. );
  1648. });
  1649. function meridiem(token, lowercase) {
  1650. addFormatToken(token, 0, 0, function () {
  1651. return this.localeData().meridiem(
  1652. this.hours(),
  1653. this.minutes(),
  1654. lowercase
  1655. );
  1656. });
  1657. }
  1658. meridiem('a', true);
  1659. meridiem('A', false);
  1660. // ALIASES
  1661. addUnitAlias('hour', 'h');
  1662. // PRIORITY
  1663. addUnitPriority('hour', 13);
  1664. // PARSING
  1665. function matchMeridiem(isStrict, locale) {
  1666. return locale._meridiemParse;
  1667. }
  1668. addRegexToken('a', matchMeridiem);
  1669. addRegexToken('A', matchMeridiem);
  1670. addRegexToken('H', match1to2);
  1671. addRegexToken('h', match1to2);
  1672. addRegexToken('k', match1to2);
  1673. addRegexToken('HH', match1to2, match2);
  1674. addRegexToken('hh', match1to2, match2);
  1675. addRegexToken('kk', match1to2, match2);
  1676. addRegexToken('hmm', match3to4);
  1677. addRegexToken('hmmss', match5to6);
  1678. addRegexToken('Hmm', match3to4);
  1679. addRegexToken('Hmmss', match5to6);
  1680. addParseToken(['H', 'HH'], HOUR);
  1681. addParseToken(['k', 'kk'], function (input, array, config) {
  1682. var kInput = toInt(input);
  1683. array[HOUR] = kInput === 24 ? 0 : kInput;
  1684. });
  1685. addParseToken(['a', 'A'], function (input, array, config) {
  1686. config._isPm = config._locale.isPM(input);
  1687. config._meridiem = input;
  1688. });
  1689. addParseToken(['h', 'hh'], function (input, array, config) {
  1690. array[HOUR] = toInt(input);
  1691. getParsingFlags(config).bigHour = true;
  1692. });
  1693. addParseToken('hmm', function (input, array, config) {
  1694. var pos = input.length - 2;
  1695. array[HOUR] = toInt(input.substr(0, pos));
  1696. array[MINUTE] = toInt(input.substr(pos));
  1697. getParsingFlags(config).bigHour = true;
  1698. });
  1699. addParseToken('hmmss', function (input, array, config) {
  1700. var pos1 = input.length - 4,
  1701. pos2 = input.length - 2;
  1702. array[HOUR] = toInt(input.substr(0, pos1));
  1703. array[MINUTE] = toInt(input.substr(pos1, 2));
  1704. array[SECOND] = toInt(input.substr(pos2));
  1705. getParsingFlags(config).bigHour = true;
  1706. });
  1707. addParseToken('Hmm', function (input, array, config) {
  1708. var pos = input.length - 2;
  1709. array[HOUR] = toInt(input.substr(0, pos));
  1710. array[MINUTE] = toInt(input.substr(pos));
  1711. });
  1712. addParseToken('Hmmss', function (input, array, config) {
  1713. var pos1 = input.length - 4,
  1714. pos2 = input.length - 2;
  1715. array[HOUR] = toInt(input.substr(0, pos1));
  1716. array[MINUTE] = toInt(input.substr(pos1, 2));
  1717. array[SECOND] = toInt(input.substr(pos2));
  1718. });
  1719. // LOCALES
  1720. function localeIsPM(input) {
  1721. // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
  1722. // Using charAt should be more compatible.
  1723. return (input + '').toLowerCase().charAt(0) === 'p';
  1724. }
  1725. var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i,
  1726. // Setting the hour should keep the time, because the user explicitly
  1727. // specified which hour they want. So trying to maintain the same hour (in
  1728. // a new timezone) makes sense. Adding/subtracting hours does not follow
  1729. // this rule.
  1730. getSetHour = makeGetSet('Hours', true);
  1731. function localeMeridiem(hours, minutes, isLower) {
  1732. if (hours > 11) {
  1733. return isLower ? 'pm' : 'PM';
  1734. } else {
  1735. return isLower ? 'am' : 'AM';
  1736. }
  1737. }
  1738. var baseConfig = {
  1739. calendar: defaultCalendar,
  1740. longDateFormat: defaultLongDateFormat,
  1741. invalidDate: defaultInvalidDate,
  1742. ordinal: defaultOrdinal,
  1743. dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,
  1744. relativeTime: defaultRelativeTime,
  1745. months: defaultLocaleMonths,
  1746. monthsShort: defaultLocaleMonthsShort,
  1747. week: defaultLocaleWeek,
  1748. weekdays: defaultLocaleWeekdays,
  1749. weekdaysMin: defaultLocaleWeekdaysMin,
  1750. weekdaysShort: defaultLocaleWeekdaysShort,
  1751. meridiemParse: defaultLocaleMeridiemParse,
  1752. };
  1753. // internal storage for locale config files
  1754. var locales = {},
  1755. localeFamilies = {},
  1756. globalLocale;
  1757. function commonPrefix(arr1, arr2) {
  1758. var i,
  1759. minl = Math.min(arr1.length, arr2.length);
  1760. for (i = 0; i < minl; i += 1) {
  1761. if (arr1[i] !== arr2[i]) {
  1762. return i;
  1763. }
  1764. }
  1765. return minl;
  1766. }
  1767. function normalizeLocale(key) {
  1768. return key ? key.toLowerCase().replace('_', '-') : key;
  1769. }
  1770. // pick the locale from the array
  1771. // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
  1772. // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
  1773. function chooseLocale(names) {
  1774. var i = 0,
  1775. j,
  1776. next,
  1777. locale,
  1778. split;
  1779. while (i < names.length) {
  1780. split = normalizeLocale(names[i]).split('-');
  1781. j = split.length;
  1782. next = normalizeLocale(names[i + 1]);
  1783. next = next ? next.split('-') : null;
  1784. while (j > 0) {
  1785. locale = loadLocale(split.slice(0, j).join('-'));
  1786. if (locale) {
  1787. return locale;
  1788. }
  1789. if (
  1790. next &&
  1791. next.length >= j &&
  1792. commonPrefix(split, next) >= j - 1
  1793. ) {
  1794. //the next array item is better than a shallower substring of this one
  1795. break;
  1796. }
  1797. j--;
  1798. }
  1799. i++;
  1800. }
  1801. return globalLocale;
  1802. }
  1803. function loadLocale(name) {
  1804. var oldLocale = null,
  1805. aliasedRequire;
  1806. // TODO: Find a better way to register and load all the locales in Node
  1807. if (
  1808. locales[name] === undefined &&
  1809. typeof module !== 'undefined' &&
  1810. module &&
  1811. module.exports
  1812. ) {
  1813. try {
  1814. oldLocale = globalLocale._abbr;
  1815. aliasedRequire = require;
  1816. aliasedRequire('./locale/' + name);
  1817. getSetGlobalLocale(oldLocale);
  1818. } catch (e) {
  1819. // mark as not found to avoid repeating expensive file require call causing high CPU
  1820. // when trying to find en-US, en_US, en-us for every format call
  1821. locales[name] = null; // null means not found
  1822. }
  1823. }
  1824. return locales[name];
  1825. }
  1826. // This function will load locale and then set the global locale. If
  1827. // no arguments are passed in, it will simply return the current global
  1828. // locale key.
  1829. function getSetGlobalLocale(key, values) {
  1830. var data;
  1831. if (key) {
  1832. if (isUndefined(values)) {
  1833. data = getLocale(key);
  1834. } else {
  1835. data = defineLocale(key, values);
  1836. }
  1837. if (data) {
  1838. // moment.duration._locale = moment._locale = data;
  1839. globalLocale = data;
  1840. } else {
  1841. if (typeof console !== 'undefined' && console.warn) {
  1842. //warn user if arguments are passed but the locale could not be set
  1843. console.warn(
  1844. 'Locale ' + key + ' not found. Did you forget to load it?'
  1845. );
  1846. }
  1847. }
  1848. }
  1849. return globalLocale._abbr;
  1850. }
  1851. function defineLocale(name, config) {
  1852. if (config !== null) {
  1853. var locale,
  1854. parentConfig = baseConfig;
  1855. config.abbr = name;
  1856. if (locales[name] != null) {
  1857. deprecateSimple(
  1858. 'defineLocaleOverride',
  1859. 'use moment.updateLocale(localeName, config) to change ' +
  1860. 'an existing locale. moment.defineLocale(localeName, ' +
  1861. 'config) should only be used for creating a new locale ' +
  1862. 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.'
  1863. );
  1864. parentConfig = locales[name]._config;
  1865. } else if (config.parentLocale != null) {
  1866. if (locales[config.parentLocale] != null) {
  1867. parentConfig = locales[config.parentLocale]._config;
  1868. } else {
  1869. locale = loadLocale(config.parentLocale);
  1870. if (locale != null) {
  1871. parentConfig = locale._config;
  1872. } else {
  1873. if (!localeFamilies[config.parentLocale]) {
  1874. localeFamilies[config.parentLocale] = [];
  1875. }
  1876. localeFamilies[config.parentLocale].push({
  1877. name: name,
  1878. config: config,
  1879. });
  1880. return null;
  1881. }
  1882. }
  1883. }
  1884. locales[name] = new Locale(mergeConfigs(parentConfig, config));
  1885. if (localeFamilies[name]) {
  1886. localeFamilies[name].forEach(function (x) {
  1887. defineLocale(x.name, x.config);
  1888. });
  1889. }
  1890. // backwards compat for now: also set the locale
  1891. // make sure we set the locale AFTER all child locales have been
  1892. // created, so we won't end up with the child locale set.
  1893. getSetGlobalLocale(name);
  1894. return locales[name];
  1895. } else {
  1896. // useful for testing
  1897. delete locales[name];
  1898. return null;
  1899. }
  1900. }
  1901. function updateLocale(name, config) {
  1902. if (config != null) {
  1903. var locale,
  1904. tmpLocale,
  1905. parentConfig = baseConfig;
  1906. if (locales[name] != null && locales[name].parentLocale != null) {
  1907. // Update existing child locale in-place to avoid memory-leaks
  1908. locales[name].set(mergeConfigs(locales[name]._config, config));
  1909. } else {
  1910. // MERGE
  1911. tmpLocale = loadLocale(name);
  1912. if (tmpLocale != null) {
  1913. parentConfig = tmpLocale._config;
  1914. }
  1915. config = mergeConfigs(parentConfig, config);
  1916. if (tmpLocale == null) {
  1917. // updateLocale is called for creating a new locale
  1918. // Set abbr so it will have a name (getters return
  1919. // undefined otherwise).
  1920. config.abbr = name;
  1921. }
  1922. locale = new Locale(config);
  1923. locale.parentLocale = locales[name];
  1924. locales[name] = locale;
  1925. }
  1926. // backwards compat for now: also set the locale
  1927. getSetGlobalLocale(name);
  1928. } else {
  1929. // pass null for config to unupdate, useful for tests
  1930. if (locales[name] != null) {
  1931. if (locales[name].parentLocale != null) {
  1932. locales[name] = locales[name].parentLocale;
  1933. if (name === getSetGlobalLocale()) {
  1934. getSetGlobalLocale(name);
  1935. }
  1936. } else if (locales[name] != null) {
  1937. delete locales[name];
  1938. }
  1939. }
  1940. }
  1941. return locales[name];
  1942. }
  1943. // returns locale data
  1944. function getLocale(key) {
  1945. var locale;
  1946. if (key && key._locale && key._locale._abbr) {
  1947. key = key._locale._abbr;
  1948. }
  1949. if (!key) {
  1950. return globalLocale;
  1951. }
  1952. if (!isArray(key)) {
  1953. //short-circuit everything else
  1954. locale = loadLocale(key);
  1955. if (locale) {
  1956. return locale;
  1957. }
  1958. key = [key];
  1959. }
  1960. return chooseLocale(key);
  1961. }
  1962. function listLocales() {
  1963. return keys(locales);
  1964. }
  1965. function checkOverflow(m) {
  1966. var overflow,
  1967. a = m._a;
  1968. if (a && getParsingFlags(m).overflow === -2) {
  1969. overflow =
  1970. a[MONTH] < 0 || a[MONTH] > 11
  1971. ? MONTH
  1972. : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH])
  1973. ? DATE
  1974. : a[HOUR] < 0 ||
  1975. a[HOUR] > 24 ||
  1976. (a[HOUR] === 24 &&
  1977. (a[MINUTE] !== 0 ||
  1978. a[SECOND] !== 0 ||
  1979. a[MILLISECOND] !== 0))
  1980. ? HOUR
  1981. : a[MINUTE] < 0 || a[MINUTE] > 59
  1982. ? MINUTE
  1983. : a[SECOND] < 0 || a[SECOND] > 59
  1984. ? SECOND
  1985. : a[MILLISECOND] < 0 || a[MILLISECOND] > 999
  1986. ? MILLISECOND
  1987. : -1;
  1988. if (
  1989. getParsingFlags(m)._overflowDayOfYear &&
  1990. (overflow < YEAR || overflow > DATE)
  1991. ) {
  1992. overflow = DATE;
  1993. }
  1994. if (getParsingFlags(m)._overflowWeeks && overflow === -1) {
  1995. overflow = WEEK;
  1996. }
  1997. if (getParsingFlags(m)._overflowWeekday && overflow === -1) {
  1998. overflow = WEEKDAY;
  1999. }
  2000. getParsingFlags(m).overflow = overflow;
  2001. }
  2002. return m;
  2003. }
  2004. // iso 8601 regex
  2005. // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
  2006. var extendedIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
  2007. basicIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
  2008. tzRegex = /Z|[+-]\d\d(?::?\d\d)?/,
  2009. isoDates = [
  2010. ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
  2011. ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/],
  2012. ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/],
  2013. ['GGGG-[W]WW', /\d{4}-W\d\d/, false],
  2014. ['YYYY-DDD', /\d{4}-\d{3}/],
  2015. ['YYYY-MM', /\d{4}-\d\d/, false],
  2016. ['YYYYYYMMDD', /[+-]\d{10}/],
  2017. ['YYYYMMDD', /\d{8}/],
  2018. ['GGGG[W]WWE', /\d{4}W\d{3}/],
  2019. ['GGGG[W]WW', /\d{4}W\d{2}/, false],
  2020. ['YYYYDDD', /\d{7}/],
  2021. ['YYYYMM', /\d{6}/, false],
  2022. ['YYYY', /\d{4}/, false],
  2023. ],
  2024. // iso time formats and regexes
  2025. isoTimes = [
  2026. ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/],
  2027. ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/],
  2028. ['HH:mm:ss', /\d\d:\d\d:\d\d/],
  2029. ['HH:mm', /\d\d:\d\d/],
  2030. ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/],
  2031. ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/],
  2032. ['HHmmss', /\d\d\d\d\d\d/],
  2033. ['HHmm', /\d\d\d\d/],
  2034. ['HH', /\d\d/],
  2035. ],
  2036. aspNetJsonRegex = /^\/?Date\((-?\d+)/i,
  2037. // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
  2038. rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,
  2039. obsOffsets = {
  2040. UT: 0,
  2041. GMT: 0,
  2042. EDT: -4 * 60,
  2043. EST: -5 * 60,
  2044. CDT: -5 * 60,
  2045. CST: -6 * 60,
  2046. MDT: -6 * 60,
  2047. MST: -7 * 60,
  2048. PDT: -7 * 60,
  2049. PST: -8 * 60,
  2050. };
  2051. // date from iso format
  2052. function configFromISO(config) {
  2053. var i,
  2054. l,
  2055. string = config._i,
  2056. match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
  2057. allowTime,
  2058. dateFormat,
  2059. timeFormat,
  2060. tzFormat;
  2061. if (match) {
  2062. getParsingFlags(config).iso = true;
  2063. for (i = 0, l = isoDates.length; i < l; i++) {
  2064. if (isoDates[i][1].exec(match[1])) {
  2065. dateFormat = isoDates[i][0];
  2066. allowTime = isoDates[i][2] !== false;
  2067. break;
  2068. }
  2069. }
  2070. if (dateFormat == null) {
  2071. config._isValid = false;
  2072. return;
  2073. }
  2074. if (match[3]) {
  2075. for (i = 0, l = isoTimes.length; i < l; i++) {
  2076. if (isoTimes[i][1].exec(match[3])) {
  2077. // match[2] should be 'T' or space
  2078. timeFormat = (match[2] || ' ') + isoTimes[i][0];
  2079. break;
  2080. }
  2081. }
  2082. if (timeFormat == null) {
  2083. config._isValid = false;
  2084. return;
  2085. }
  2086. }
  2087. if (!allowTime && timeFormat != null) {
  2088. config._isValid = false;
  2089. return;
  2090. }
  2091. if (match[4]) {
  2092. if (tzRegex.exec(match[4])) {
  2093. tzFormat = 'Z';
  2094. } else {
  2095. config._isValid = false;
  2096. return;
  2097. }
  2098. }
  2099. config._f = dateFormat + (timeFormat || '') + (tzFormat || '');
  2100. configFromStringAndFormat(config);
  2101. } else {
  2102. config._isValid = false;
  2103. }
  2104. }
  2105. function extractFromRFC2822Strings(
  2106. yearStr,
  2107. monthStr,
  2108. dayStr,
  2109. hourStr,
  2110. minuteStr,
  2111. secondStr
  2112. ) {
  2113. var result = [
  2114. untruncateYear(yearStr),
  2115. defaultLocaleMonthsShort.indexOf(monthStr),
  2116. parseInt(dayStr, 10),
  2117. parseInt(hourStr, 10),
  2118. parseInt(minuteStr, 10),
  2119. ];
  2120. if (secondStr) {
  2121. result.push(parseInt(secondStr, 10));
  2122. }
  2123. return result;
  2124. }
  2125. function untruncateYear(yearStr) {
  2126. var year = parseInt(yearStr, 10);
  2127. if (year <= 49) {
  2128. return 2000 + year;
  2129. } else if (year <= 999) {
  2130. return 1900 + year;
  2131. }
  2132. return year;
  2133. }
  2134. function preprocessRFC2822(s) {
  2135. // Remove comments and folding whitespace and replace multiple-spaces with a single space
  2136. return s
  2137. .replace(/\([^)]*\)|[\n\t]/g, ' ')
  2138. .replace(/(\s\s+)/g, ' ')
  2139. .replace(/^\s\s*/, '')
  2140. .replace(/\s\s*$/, '');
  2141. }
  2142. function checkWeekday(weekdayStr, parsedInput, config) {
  2143. if (weekdayStr) {
  2144. // TODO: Replace the vanilla JS Date object with an independent day-of-week check.
  2145. var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),
  2146. weekdayActual = new Date(
  2147. parsedInput[0],
  2148. parsedInput[1],
  2149. parsedInput[2]
  2150. ).getDay();
  2151. if (weekdayProvided !== weekdayActual) {
  2152. getParsingFlags(config).weekdayMismatch = true;
  2153. config._isValid = false;
  2154. return false;
  2155. }
  2156. }
  2157. return true;
  2158. }
  2159. function calculateOffset(obsOffset, militaryOffset, numOffset) {
  2160. if (obsOffset) {
  2161. return obsOffsets[obsOffset];
  2162. } else if (militaryOffset) {
  2163. // the only allowed military tz is Z
  2164. return 0;
  2165. } else {
  2166. var hm = parseInt(numOffset, 10),
  2167. m = hm % 100,
  2168. h = (hm - m) / 100;
  2169. return h * 60 + m;
  2170. }
  2171. }
  2172. // date and time from ref 2822 format
  2173. function configFromRFC2822(config) {
  2174. var match = rfc2822.exec(preprocessRFC2822(config._i)),
  2175. parsedArray;
  2176. if (match) {
  2177. parsedArray = extractFromRFC2822Strings(
  2178. match[4],
  2179. match[3],
  2180. match[2],
  2181. match[5],
  2182. match[6],
  2183. match[7]
  2184. );
  2185. if (!checkWeekday(match[1], parsedArray, config)) {
  2186. return;
  2187. }
  2188. config._a = parsedArray;
  2189. config._tzm = calculateOffset(match[8], match[9], match[10]);
  2190. config._d = createUTCDate.apply(null, config._a);
  2191. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  2192. getParsingFlags(config).rfc2822 = true;
  2193. } else {
  2194. config._isValid = false;
  2195. }
  2196. }
  2197. // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict
  2198. function configFromString(config) {
  2199. var matched = aspNetJsonRegex.exec(config._i);
  2200. if (matched !== null) {
  2201. config._d = new Date(+matched[1]);
  2202. return;
  2203. }
  2204. configFromISO(config);
  2205. if (config._isValid === false) {
  2206. delete config._isValid;
  2207. } else {
  2208. return;
  2209. }
  2210. configFromRFC2822(config);
  2211. if (config._isValid === false) {
  2212. delete config._isValid;
  2213. } else {
  2214. return;
  2215. }
  2216. if (config._strict) {
  2217. config._isValid = false;
  2218. } else {
  2219. // Final attempt, use Input Fallback
  2220. hooks.createFromInputFallback(config);
  2221. }
  2222. }
  2223. hooks.createFromInputFallback = deprecate(
  2224. 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +
  2225. 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +
  2226. 'discouraged and will be removed in an upcoming major release. Please refer to ' +
  2227. 'http://momentjs.com/guides/#/warnings/js-date/ for more info.',
  2228. function (config) {
  2229. config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
  2230. }
  2231. );
  2232. // Pick the first defined of two or three arguments.
  2233. function defaults(a, b, c) {
  2234. if (a != null) {
  2235. return a;
  2236. }
  2237. if (b != null) {
  2238. return b;
  2239. }
  2240. return c;
  2241. }
  2242. function currentDateArray(config) {
  2243. // hooks is actually the exported moment object
  2244. var nowValue = new Date(hooks.now());
  2245. if (config._useUTC) {
  2246. return [
  2247. nowValue.getUTCFullYear(),
  2248. nowValue.getUTCMonth(),
  2249. nowValue.getUTCDate(),
  2250. ];
  2251. }
  2252. return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
  2253. }
  2254. // convert an array to a date.
  2255. // the array should mirror the parameters below
  2256. // note: all values past the year are optional and will default to the lowest possible value.
  2257. // [year, month, day , hour, minute, second, millisecond]
  2258. function configFromArray(config) {
  2259. var i,
  2260. date,
  2261. input = [],
  2262. currentDate,
  2263. expectedWeekday,
  2264. yearToUse;
  2265. if (config._d) {
  2266. return;
  2267. }
  2268. currentDate = currentDateArray(config);
  2269. //compute day of the year from weeks and weekdays
  2270. if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
  2271. dayOfYearFromWeekInfo(config);
  2272. }
  2273. //if the day of the year is set, figure out what it is
  2274. if (config._dayOfYear != null) {
  2275. yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);
  2276. if (
  2277. config._dayOfYear > daysInYear(yearToUse) ||
  2278. config._dayOfYear === 0
  2279. ) {
  2280. getParsingFlags(config)._overflowDayOfYear = true;
  2281. }
  2282. date = createUTCDate(yearToUse, 0, config._dayOfYear);
  2283. config._a[MONTH] = date.getUTCMonth();
  2284. config._a[DATE] = date.getUTCDate();
  2285. }
  2286. // Default to current date.
  2287. // * if no year, month, day of month are given, default to today
  2288. // * if day of month is given, default month and year
  2289. // * if month is given, default only year
  2290. // * if year is given, don't default anything
  2291. for (i = 0; i < 3 && config._a[i] == null; ++i) {
  2292. config._a[i] = input[i] = currentDate[i];
  2293. }
  2294. // Zero out whatever was not defaulted, including time
  2295. for (; i < 7; i++) {
  2296. config._a[i] = input[i] =
  2297. config._a[i] == null ? (i === 2 ? 1 : 0) : config._a[i];
  2298. }
  2299. // Check for 24:00:00.000
  2300. if (
  2301. config._a[HOUR] === 24 &&
  2302. config._a[MINUTE] === 0 &&
  2303. config._a[SECOND] === 0 &&
  2304. config._a[MILLISECOND] === 0
  2305. ) {
  2306. config._nextDay = true;
  2307. config._a[HOUR] = 0;
  2308. }
  2309. config._d = (config._useUTC ? createUTCDate : createDate).apply(
  2310. null,
  2311. input
  2312. );
  2313. expectedWeekday = config._useUTC
  2314. ? config._d.getUTCDay()
  2315. : config._d.getDay();
  2316. // Apply timezone offset from input. The actual utcOffset can be changed
  2317. // with parseZone.
  2318. if (config._tzm != null) {
  2319. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  2320. }
  2321. if (config._nextDay) {
  2322. config._a[HOUR] = 24;
  2323. }
  2324. // check for mismatching day of week
  2325. if (
  2326. config._w &&
  2327. typeof config._w.d !== 'undefined' &&
  2328. config._w.d !== expectedWeekday
  2329. ) {
  2330. getParsingFlags(config).weekdayMismatch = true;
  2331. }
  2332. }
  2333. function dayOfYearFromWeekInfo(config) {
  2334. var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;
  2335. w = config._w;
  2336. if (w.GG != null || w.W != null || w.E != null) {
  2337. dow = 1;
  2338. doy = 4;
  2339. // TODO: We need to take the current isoWeekYear, but that depends on
  2340. // how we interpret now (local, utc, fixed offset). So create
  2341. // a now version of current config (take local/utc/offset flags, and
  2342. // create now).
  2343. weekYear = defaults(
  2344. w.GG,
  2345. config._a[YEAR],
  2346. weekOfYear(createLocal(), 1, 4).year
  2347. );
  2348. week = defaults(w.W, 1);
  2349. weekday = defaults(w.E, 1);
  2350. if (weekday < 1 || weekday > 7) {
  2351. weekdayOverflow = true;
  2352. }
  2353. } else {
  2354. dow = config._locale._week.dow;
  2355. doy = config._locale._week.doy;
  2356. curWeek = weekOfYear(createLocal(), dow, doy);
  2357. weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);
  2358. // Default to current week.
  2359. week = defaults(w.w, curWeek.week);
  2360. if (w.d != null) {
  2361. // weekday -- low day numbers are considered next week
  2362. weekday = w.d;
  2363. if (weekday < 0 || weekday > 6) {
  2364. weekdayOverflow = true;
  2365. }
  2366. } else if (w.e != null) {
  2367. // local weekday -- counting starts from beginning of week
  2368. weekday = w.e + dow;
  2369. if (w.e < 0 || w.e > 6) {
  2370. weekdayOverflow = true;
  2371. }
  2372. } else {
  2373. // default to beginning of week
  2374. weekday = dow;
  2375. }
  2376. }
  2377. if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {
  2378. getParsingFlags(config)._overflowWeeks = true;
  2379. } else if (weekdayOverflow != null) {
  2380. getParsingFlags(config)._overflowWeekday = true;
  2381. } else {
  2382. temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);
  2383. config._a[YEAR] = temp.year;
  2384. config._dayOfYear = temp.dayOfYear;
  2385. }
  2386. }
  2387. // constant that refers to the ISO standard
  2388. hooks.ISO_8601 = function () {};
  2389. // constant that refers to the RFC 2822 form
  2390. hooks.RFC_2822 = function () {};
  2391. // date from string and format string
  2392. function configFromStringAndFormat(config) {
  2393. // TODO: Move this to another part of the creation flow to prevent circular deps
  2394. if (config._f === hooks.ISO_8601) {
  2395. configFromISO(config);
  2396. return;
  2397. }
  2398. if (config._f === hooks.RFC_2822) {
  2399. configFromRFC2822(config);
  2400. return;
  2401. }
  2402. config._a = [];
  2403. getParsingFlags(config).empty = true;
  2404. // This array is used to make a Date, either with `new Date` or `Date.UTC`
  2405. var string = '' + config._i,
  2406. i,
  2407. parsedInput,
  2408. tokens,
  2409. token,
  2410. skipped,
  2411. stringLength = string.length,
  2412. totalParsedInputLength = 0,
  2413. era;
  2414. tokens =
  2415. expandFormat(config._f, config._locale).match(formattingTokens) || [];
  2416. for (i = 0; i < tokens.length; i++) {
  2417. token = tokens[i];
  2418. parsedInput = (string.match(getParseRegexForToken(token, config)) ||
  2419. [])[0];
  2420. if (parsedInput) {
  2421. skipped = string.substr(0, string.indexOf(parsedInput));
  2422. if (skipped.length > 0) {
  2423. getParsingFlags(config).unusedInput.push(skipped);
  2424. }
  2425. string = string.slice(
  2426. string.indexOf(parsedInput) + parsedInput.length
  2427. );
  2428. totalParsedInputLength += parsedInput.length;
  2429. }
  2430. // don't parse if it's not a known token
  2431. if (formatTokenFunctions[token]) {
  2432. if (parsedInput) {
  2433. getParsingFlags(config).empty = false;
  2434. } else {
  2435. getParsingFlags(config).unusedTokens.push(token);
  2436. }
  2437. addTimeToArrayFromToken(token, parsedInput, config);
  2438. } else if (config._strict && !parsedInput) {
  2439. getParsingFlags(config).unusedTokens.push(token);
  2440. }
  2441. }
  2442. // add remaining unparsed input length to the string
  2443. getParsingFlags(config).charsLeftOver =
  2444. stringLength - totalParsedInputLength;
  2445. if (string.length > 0) {
  2446. getParsingFlags(config).unusedInput.push(string);
  2447. }
  2448. // clear _12h flag if hour is <= 12
  2449. if (
  2450. config._a[HOUR] <= 12 &&
  2451. getParsingFlags(config).bigHour === true &&
  2452. config._a[HOUR] > 0
  2453. ) {
  2454. getParsingFlags(config).bigHour = undefined;
  2455. }
  2456. getParsingFlags(config).parsedDateParts = config._a.slice(0);
  2457. getParsingFlags(config).meridiem = config._meridiem;
  2458. // handle meridiem
  2459. config._a[HOUR] = meridiemFixWrap(
  2460. config._locale,
  2461. config._a[HOUR],
  2462. config._meridiem
  2463. );
  2464. // handle era
  2465. era = getParsingFlags(config).era;
  2466. if (era !== null) {
  2467. config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]);
  2468. }
  2469. configFromArray(config);
  2470. checkOverflow(config);
  2471. }
  2472. function meridiemFixWrap(locale, hour, meridiem) {
  2473. var isPm;
  2474. if (meridiem == null) {
  2475. // nothing to do
  2476. return hour;
  2477. }
  2478. if (locale.meridiemHour != null) {
  2479. return locale.meridiemHour(hour, meridiem);
  2480. } else if (locale.isPM != null) {
  2481. // Fallback
  2482. isPm = locale.isPM(meridiem);
  2483. if (isPm && hour < 12) {
  2484. hour += 12;
  2485. }
  2486. if (!isPm && hour === 12) {
  2487. hour = 0;
  2488. }
  2489. return hour;
  2490. } else {
  2491. // this is not supposed to happen
  2492. return hour;
  2493. }
  2494. }
  2495. // date from string and array of format strings
  2496. function configFromStringAndArray(config) {
  2497. var tempConfig,
  2498. bestMoment,
  2499. scoreToBeat,
  2500. i,
  2501. currentScore,
  2502. validFormatFound,
  2503. bestFormatIsValid = false;
  2504. if (config._f.length === 0) {
  2505. getParsingFlags(config).invalidFormat = true;
  2506. config._d = new Date(NaN);
  2507. return;
  2508. }
  2509. for (i = 0; i < config._f.length; i++) {
  2510. currentScore = 0;
  2511. validFormatFound = false;
  2512. tempConfig = copyConfig({}, config);
  2513. if (config._useUTC != null) {
  2514. tempConfig._useUTC = config._useUTC;
  2515. }
  2516. tempConfig._f = config._f[i];
  2517. configFromStringAndFormat(tempConfig);
  2518. if (isValid(tempConfig)) {
  2519. validFormatFound = true;
  2520. }
  2521. // if there is any input that was not parsed add a penalty for that format
  2522. currentScore += getParsingFlags(tempConfig).charsLeftOver;
  2523. //or tokens
  2524. currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;
  2525. getParsingFlags(tempConfig).score = currentScore;
  2526. if (!bestFormatIsValid) {
  2527. if (
  2528. scoreToBeat == null ||
  2529. currentScore < scoreToBeat ||
  2530. validFormatFound
  2531. ) {
  2532. scoreToBeat = currentScore;
  2533. bestMoment = tempConfig;
  2534. if (validFormatFound) {
  2535. bestFormatIsValid = true;
  2536. }
  2537. }
  2538. } else {
  2539. if (currentScore < scoreToBeat) {
  2540. scoreToBeat = currentScore;
  2541. bestMoment = tempConfig;
  2542. }
  2543. }
  2544. }
  2545. extend(config, bestMoment || tempConfig);
  2546. }
  2547. function configFromObject(config) {
  2548. if (config._d) {
  2549. return;
  2550. }
  2551. var i = normalizeObjectUnits(config._i),
  2552. dayOrDate = i.day === undefined ? i.date : i.day;
  2553. config._a = map(
  2554. [i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond],
  2555. function (obj) {
  2556. return obj && parseInt(obj, 10);
  2557. }
  2558. );
  2559. configFromArray(config);
  2560. }
  2561. function createFromConfig(config) {
  2562. var res = new Moment(checkOverflow(prepareConfig(config)));
  2563. if (res._nextDay) {
  2564. // Adding is smart enough around DST
  2565. res.add(1, 'd');
  2566. res._nextDay = undefined;
  2567. }
  2568. return res;
  2569. }
  2570. function prepareConfig(config) {
  2571. var input = config._i,
  2572. format = config._f;
  2573. config._locale = config._locale || getLocale(config._l);
  2574. if (input === null || (format === undefined && input === '')) {
  2575. return createInvalid({ nullInput: true });
  2576. }
  2577. if (typeof input === 'string') {
  2578. config._i = input = config._locale.preparse(input);
  2579. }
  2580. if (isMoment(input)) {
  2581. return new Moment(checkOverflow(input));
  2582. } else if (isDate(input)) {
  2583. config._d = input;
  2584. } else if (isArray(format)) {
  2585. configFromStringAndArray(config);
  2586. } else if (format) {
  2587. configFromStringAndFormat(config);
  2588. } else {
  2589. configFromInput(config);
  2590. }
  2591. if (!isValid(config)) {
  2592. config._d = null;
  2593. }
  2594. return config;
  2595. }
  2596. function configFromInput(config) {
  2597. var input = config._i;
  2598. if (isUndefined(input)) {
  2599. config._d = new Date(hooks.now());
  2600. } else if (isDate(input)) {
  2601. config._d = new Date(input.valueOf());
  2602. } else if (typeof input === 'string') {
  2603. configFromString(config);
  2604. } else if (isArray(input)) {
  2605. config._a = map(input.slice(0), function (obj) {
  2606. return parseInt(obj, 10);
  2607. });
  2608. configFromArray(config);
  2609. } else if (isObject(input)) {
  2610. configFromObject(config);
  2611. } else if (isNumber(input)) {
  2612. // from milliseconds
  2613. config._d = new Date(input);
  2614. } else {
  2615. hooks.createFromInputFallback(config);
  2616. }
  2617. }
  2618. function createLocalOrUTC(input, format, locale, strict, isUTC) {
  2619. var c = {};
  2620. if (format === true || format === false) {
  2621. strict = format;
  2622. format = undefined;
  2623. }
  2624. if (locale === true || locale === false) {
  2625. strict = locale;
  2626. locale = undefined;
  2627. }
  2628. if (
  2629. (isObject(input) && isObjectEmpty(input)) ||
  2630. (isArray(input) && input.length === 0)
  2631. ) {
  2632. input = undefined;
  2633. }
  2634. // object construction must be done this way.
  2635. // https://github.com/moment/moment/issues/1423
  2636. c._isAMomentObject = true;
  2637. c._useUTC = c._isUTC = isUTC;
  2638. c._l = locale;
  2639. c._i = input;
  2640. c._f = format;
  2641. c._strict = strict;
  2642. return createFromConfig(c);
  2643. }
  2644. function createLocal(input, format, locale, strict) {
  2645. return createLocalOrUTC(input, format, locale, strict, false);
  2646. }
  2647. var prototypeMin = deprecate(
  2648. 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',
  2649. function () {
  2650. var other = createLocal.apply(null, arguments);
  2651. if (this.isValid() && other.isValid()) {
  2652. return other < this ? this : other;
  2653. } else {
  2654. return createInvalid();
  2655. }
  2656. }
  2657. ),
  2658. prototypeMax = deprecate(
  2659. 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',
  2660. function () {
  2661. var other = createLocal.apply(null, arguments);
  2662. if (this.isValid() && other.isValid()) {
  2663. return other > this ? this : other;
  2664. } else {
  2665. return createInvalid();
  2666. }
  2667. }
  2668. );
  2669. // Pick a moment m from moments so that m[fn](other) is true for all
  2670. // other. This relies on the function fn to be transitive.
  2671. //
  2672. // moments should either be an array of moment objects or an array, whose
  2673. // first element is an array of moment objects.
  2674. function pickBy(fn, moments) {
  2675. var res, i;
  2676. if (moments.length === 1 && isArray(moments[0])) {
  2677. moments = moments[0];
  2678. }
  2679. if (!moments.length) {
  2680. return createLocal();
  2681. }
  2682. res = moments[0];
  2683. for (i = 1; i < moments.length; ++i) {
  2684. if (!moments[i].isValid() || moments[i][fn](res)) {
  2685. res = moments[i];
  2686. }
  2687. }
  2688. return res;
  2689. }
  2690. // TODO: Use [].sort instead?
  2691. function min() {
  2692. var args = [].slice.call(arguments, 0);
  2693. return pickBy('isBefore', args);
  2694. }
  2695. function max() {
  2696. var args = [].slice.call(arguments, 0);
  2697. return pickBy('isAfter', args);
  2698. }
  2699. var now = function () {
  2700. return Date.now ? Date.now() : +new Date();
  2701. };
  2702. var ordering = [
  2703. 'year',
  2704. 'quarter',
  2705. 'month',
  2706. 'week',
  2707. 'day',
  2708. 'hour',
  2709. 'minute',
  2710. 'second',
  2711. 'millisecond',
  2712. ];
  2713. function isDurationValid(m) {
  2714. var key,
  2715. unitHasDecimal = false,
  2716. i;
  2717. for (key in m) {
  2718. if (
  2719. hasOwnProp(m, key) &&
  2720. !(
  2721. indexOf.call(ordering, key) !== -1 &&
  2722. (m[key] == null || !isNaN(m[key]))
  2723. )
  2724. ) {
  2725. return false;
  2726. }
  2727. }
  2728. for (i = 0; i < ordering.length; ++i) {
  2729. if (m[ordering[i]]) {
  2730. if (unitHasDecimal) {
  2731. return false; // only allow non-integers for smallest unit
  2732. }
  2733. if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {
  2734. unitHasDecimal = true;
  2735. }
  2736. }
  2737. }
  2738. return true;
  2739. }
  2740. function isValid$1() {
  2741. return this._isValid;
  2742. }
  2743. function createInvalid$1() {
  2744. return createDuration(NaN);
  2745. }
  2746. function Duration(duration) {
  2747. var normalizedInput = normalizeObjectUnits(duration),
  2748. years = normalizedInput.year || 0,
  2749. quarters = normalizedInput.quarter || 0,
  2750. months = normalizedInput.month || 0,
  2751. weeks = normalizedInput.week || normalizedInput.isoWeek || 0,
  2752. days = normalizedInput.day || 0,
  2753. hours = normalizedInput.hour || 0,
  2754. minutes = normalizedInput.minute || 0,
  2755. seconds = normalizedInput.second || 0,
  2756. milliseconds = normalizedInput.millisecond || 0;
  2757. this._isValid = isDurationValid(normalizedInput);
  2758. // representation for dateAddRemove
  2759. this._milliseconds =
  2760. +milliseconds +
  2761. seconds * 1e3 + // 1000
  2762. minutes * 6e4 + // 1000 * 60
  2763. hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
  2764. // Because of dateAddRemove treats 24 hours as different from a
  2765. // day when working around DST, we need to store them separately
  2766. this._days = +days + weeks * 7;
  2767. // It is impossible to translate months into days without knowing
  2768. // which months you are are talking about, so we have to store
  2769. // it separately.
  2770. this._months = +months + quarters * 3 + years * 12;
  2771. this._data = {};
  2772. this._locale = getLocale();
  2773. this._bubble();
  2774. }
  2775. function isDuration(obj) {
  2776. return obj instanceof Duration;
  2777. }
  2778. function absRound(number) {
  2779. if (number < 0) {
  2780. return Math.round(-1 * number) * -1;
  2781. } else {
  2782. return Math.round(number);
  2783. }
  2784. }
  2785. // compare two arrays, return the number of differences
  2786. function compareArrays(array1, array2, dontConvert) {
  2787. var len = Math.min(array1.length, array2.length),
  2788. lengthDiff = Math.abs(array1.length - array2.length),
  2789. diffs = 0,
  2790. i;
  2791. for (i = 0; i < len; i++) {
  2792. if (
  2793. (dontConvert && array1[i] !== array2[i]) ||
  2794. (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))
  2795. ) {
  2796. diffs++;
  2797. }
  2798. }
  2799. return diffs + lengthDiff;
  2800. }
  2801. // FORMATTING
  2802. function offset(token, separator) {
  2803. addFormatToken(token, 0, 0, function () {
  2804. var offset = this.utcOffset(),
  2805. sign = '+';
  2806. if (offset < 0) {
  2807. offset = -offset;
  2808. sign = '-';
  2809. }
  2810. return (
  2811. sign +
  2812. zeroFill(~~(offset / 60), 2) +
  2813. separator +
  2814. zeroFill(~~offset % 60, 2)
  2815. );
  2816. });
  2817. }
  2818. offset('Z', ':');
  2819. offset('ZZ', '');
  2820. // PARSING
  2821. addRegexToken('Z', matchShortOffset);
  2822. addRegexToken('ZZ', matchShortOffset);
  2823. addParseToken(['Z', 'ZZ'], function (input, array, config) {
  2824. config._useUTC = true;
  2825. config._tzm = offsetFromString(matchShortOffset, input);
  2826. });
  2827. // HELPERS
  2828. // timezone chunker
  2829. // '+10:00' > ['10', '00']
  2830. // '-1530' > ['-15', '30']
  2831. var chunkOffset = /([\+\-]|\d\d)/gi;
  2832. function offsetFromString(matcher, string) {
  2833. var matches = (string || '').match(matcher),
  2834. chunk,
  2835. parts,
  2836. minutes;
  2837. if (matches === null) {
  2838. return null;
  2839. }
  2840. chunk = matches[matches.length - 1] || [];
  2841. parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
  2842. minutes = +(parts[1] * 60) + toInt(parts[2]);
  2843. return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes;
  2844. }
  2845. // Return a moment from input, that is local/utc/zone equivalent to model.
  2846. function cloneWithOffset(input, model) {
  2847. var res, diff;
  2848. if (model._isUTC) {
  2849. res = model.clone();
  2850. diff =
  2851. (isMoment(input) || isDate(input)
  2852. ? input.valueOf()
  2853. : createLocal(input).valueOf()) - res.valueOf();
  2854. // Use low-level api, because this fn is low-level api.
  2855. res._d.setTime(res._d.valueOf() + diff);
  2856. hooks.updateOffset(res, false);
  2857. return res;
  2858. } else {
  2859. return createLocal(input).local();
  2860. }
  2861. }
  2862. function getDateOffset(m) {
  2863. // On Firefox.24 Date#getTimezoneOffset returns a floating point.
  2864. // https://github.com/moment/moment/pull/1871
  2865. return -Math.round(m._d.getTimezoneOffset());
  2866. }
  2867. // HOOKS
  2868. // This function will be called whenever a moment is mutated.
  2869. // It is intended to keep the offset in sync with the timezone.
  2870. hooks.updateOffset = function () {};
  2871. // MOMENTS
  2872. // keepLocalTime = true means only change the timezone, without
  2873. // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
  2874. // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
  2875. // +0200, so we adjust the time as needed, to be valid.
  2876. //
  2877. // Keeping the time actually adds/subtracts (one hour)
  2878. // from the actual represented time. That is why we call updateOffset
  2879. // a second time. In case it wants us to change the offset again
  2880. // _changeInProgress == true case, then we have to adjust, because
  2881. // there is no such time in the given timezone.
  2882. function getSetOffset(input, keepLocalTime, keepMinutes) {
  2883. var offset = this._offset || 0,
  2884. localAdjust;
  2885. if (!this.isValid()) {
  2886. return input != null ? this : NaN;
  2887. }
  2888. if (input != null) {
  2889. if (typeof input === 'string') {
  2890. input = offsetFromString(matchShortOffset, input);
  2891. if (input === null) {
  2892. return this;
  2893. }
  2894. } else if (Math.abs(input) < 16 && !keepMinutes) {
  2895. input = input * 60;
  2896. }
  2897. if (!this._isUTC && keepLocalTime) {
  2898. localAdjust = getDateOffset(this);
  2899. }
  2900. this._offset = input;
  2901. this._isUTC = true;
  2902. if (localAdjust != null) {
  2903. this.add(localAdjust, 'm');
  2904. }
  2905. if (offset !== input) {
  2906. if (!keepLocalTime || this._changeInProgress) {
  2907. addSubtract(
  2908. this,
  2909. createDuration(input - offset, 'm'),
  2910. 1,
  2911. false
  2912. );
  2913. } else if (!this._changeInProgress) {
  2914. this._changeInProgress = true;
  2915. hooks.updateOffset(this, true);
  2916. this._changeInProgress = null;
  2917. }
  2918. }
  2919. return this;
  2920. } else {
  2921. return this._isUTC ? offset : getDateOffset(this);
  2922. }
  2923. }
  2924. function getSetZone(input, keepLocalTime) {
  2925. if (input != null) {
  2926. if (typeof input !== 'string') {
  2927. input = -input;
  2928. }
  2929. this.utcOffset(input, keepLocalTime);
  2930. return this;
  2931. } else {
  2932. return -this.utcOffset();
  2933. }
  2934. }
  2935. function setOffsetToUTC(keepLocalTime) {
  2936. return this.utcOffset(0, keepLocalTime);
  2937. }
  2938. function setOffsetToLocal(keepLocalTime) {
  2939. if (this._isUTC) {
  2940. this.utcOffset(0, keepLocalTime);
  2941. this._isUTC = false;
  2942. if (keepLocalTime) {
  2943. this.subtract(getDateOffset(this), 'm');
  2944. }
  2945. }
  2946. return this;
  2947. }
  2948. function setOffsetToParsedOffset() {
  2949. if (this._tzm != null) {
  2950. this.utcOffset(this._tzm, false, true);
  2951. } else if (typeof this._i === 'string') {
  2952. var tZone = offsetFromString(matchOffset, this._i);
  2953. if (tZone != null) {
  2954. this.utcOffset(tZone);
  2955. } else {
  2956. this.utcOffset(0, true);
  2957. }
  2958. }
  2959. return this;
  2960. }
  2961. function hasAlignedHourOffset(input) {
  2962. if (!this.isValid()) {
  2963. return false;
  2964. }
  2965. input = input ? createLocal(input).utcOffset() : 0;
  2966. return (this.utcOffset() - input) % 60 === 0;
  2967. }
  2968. function isDaylightSavingTime() {
  2969. return (
  2970. this.utcOffset() > this.clone().month(0).utcOffset() ||
  2971. this.utcOffset() > this.clone().month(5).utcOffset()
  2972. );
  2973. }
  2974. function isDaylightSavingTimeShifted() {
  2975. if (!isUndefined(this._isDSTShifted)) {
  2976. return this._isDSTShifted;
  2977. }
  2978. var c = {},
  2979. other;
  2980. copyConfig(c, this);
  2981. c = prepareConfig(c);
  2982. if (c._a) {
  2983. other = c._isUTC ? createUTC(c._a) : createLocal(c._a);
  2984. this._isDSTShifted =
  2985. this.isValid() && compareArrays(c._a, other.toArray()) > 0;
  2986. } else {
  2987. this._isDSTShifted = false;
  2988. }
  2989. return this._isDSTShifted;
  2990. }
  2991. function isLocal() {
  2992. return this.isValid() ? !this._isUTC : false;
  2993. }
  2994. function isUtcOffset() {
  2995. return this.isValid() ? this._isUTC : false;
  2996. }
  2997. function isUtc() {
  2998. return this.isValid() ? this._isUTC && this._offset === 0 : false;
  2999. }
  3000. // ASP.NET json date format regex
  3001. var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
  3002. // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
  3003. // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
  3004. // and further modified to allow for strings containing both week and day
  3005. isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
  3006. function createDuration(input, key) {
  3007. var duration = input,
  3008. // matching against regexp is expensive, do it on demand
  3009. match = null,
  3010. sign,
  3011. ret,
  3012. diffRes;
  3013. if (isDuration(input)) {
  3014. duration = {
  3015. ms: input._milliseconds,
  3016. d: input._days,
  3017. M: input._months,
  3018. };
  3019. } else if (isNumber(input) || !isNaN(+input)) {
  3020. duration = {};
  3021. if (key) {
  3022. duration[key] = +input;
  3023. } else {
  3024. duration.milliseconds = +input;
  3025. }
  3026. } else if ((match = aspNetRegex.exec(input))) {
  3027. sign = match[1] === '-' ? -1 : 1;
  3028. duration = {
  3029. y: 0,
  3030. d: toInt(match[DATE]) * sign,
  3031. h: toInt(match[HOUR]) * sign,
  3032. m: toInt(match[MINUTE]) * sign,
  3033. s: toInt(match[SECOND]) * sign,
  3034. ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign, // the millisecond decimal point is included in the match
  3035. };
  3036. } else if ((match = isoRegex.exec(input))) {
  3037. sign = match[1] === '-' ? -1 : 1;
  3038. duration = {
  3039. y: parseIso(match[2], sign),
  3040. M: parseIso(match[3], sign),
  3041. w: parseIso(match[4], sign),
  3042. d: parseIso(match[5], sign),
  3043. h: parseIso(match[6], sign),
  3044. m: parseIso(match[7], sign),
  3045. s: parseIso(match[8], sign),
  3046. };
  3047. } else if (duration == null) {
  3048. // checks for null or undefined
  3049. duration = {};
  3050. } else if (
  3051. typeof duration === 'object' &&
  3052. ('from' in duration || 'to' in duration)
  3053. ) {
  3054. diffRes = momentsDifference(
  3055. createLocal(duration.from),
  3056. createLocal(duration.to)
  3057. );
  3058. duration = {};
  3059. duration.ms = diffRes.milliseconds;
  3060. duration.M = diffRes.months;
  3061. }
  3062. ret = new Duration(duration);
  3063. if (isDuration(input) && hasOwnProp(input, '_locale')) {
  3064. ret._locale = input._locale;
  3065. }
  3066. if (isDuration(input) && hasOwnProp(input, '_isValid')) {
  3067. ret._isValid = input._isValid;
  3068. }
  3069. return ret;
  3070. }
  3071. createDuration.fn = Duration.prototype;
  3072. createDuration.invalid = createInvalid$1;
  3073. function parseIso(inp, sign) {
  3074. // We'd normally use ~~inp for this, but unfortunately it also
  3075. // converts floats to ints.
  3076. // inp may be undefined, so careful calling replace on it.
  3077. var res = inp && parseFloat(inp.replace(',', '.'));
  3078. // apply sign while we're at it
  3079. return (isNaN(res) ? 0 : res) * sign;
  3080. }
  3081. function positiveMomentsDifference(base, other) {
  3082. var res = {};
  3083. res.months =
  3084. other.month() - base.month() + (other.year() - base.year()) * 12;
  3085. if (base.clone().add(res.months, 'M').isAfter(other)) {
  3086. --res.months;
  3087. }
  3088. res.milliseconds = +other - +base.clone().add(res.months, 'M');
  3089. return res;
  3090. }
  3091. function momentsDifference(base, other) {
  3092. var res;
  3093. if (!(base.isValid() && other.isValid())) {
  3094. return { milliseconds: 0, months: 0 };
  3095. }
  3096. other = cloneWithOffset(other, base);
  3097. if (base.isBefore(other)) {
  3098. res = positiveMomentsDifference(base, other);
  3099. } else {
  3100. res = positiveMomentsDifference(other, base);
  3101. res.milliseconds = -res.milliseconds;
  3102. res.months = -res.months;
  3103. }
  3104. return res;
  3105. }
  3106. // TODO: remove 'name' arg after deprecation is removed
  3107. function createAdder(direction, name) {
  3108. return function (val, period) {
  3109. var dur, tmp;
  3110. //invert the arguments, but complain about it
  3111. if (period !== null && !isNaN(+period)) {
  3112. deprecateSimple(
  3113. name,
  3114. 'moment().' +
  3115. name +
  3116. '(period, number) is deprecated. Please use moment().' +
  3117. name +
  3118. '(number, period). ' +
  3119. 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.'
  3120. );
  3121. tmp = val;
  3122. val = period;
  3123. period = tmp;
  3124. }
  3125. dur = createDuration(val, period);
  3126. addSubtract(this, dur, direction);
  3127. return this;
  3128. };
  3129. }
  3130. function addSubtract(mom, duration, isAdding, updateOffset) {
  3131. var milliseconds = duration._milliseconds,
  3132. days = absRound(duration._days),
  3133. months = absRound(duration._months);
  3134. if (!mom.isValid()) {
  3135. // No op
  3136. return;
  3137. }
  3138. updateOffset = updateOffset == null ? true : updateOffset;
  3139. if (months) {
  3140. setMonth(mom, get(mom, 'Month') + months * isAdding);
  3141. }
  3142. if (days) {
  3143. set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);
  3144. }
  3145. if (milliseconds) {
  3146. mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);
  3147. }
  3148. if (updateOffset) {
  3149. hooks.updateOffset(mom, days || months);
  3150. }
  3151. }
  3152. var add = createAdder(1, 'add'),
  3153. subtract = createAdder(-1, 'subtract');
  3154. function isString(input) {
  3155. return typeof input === 'string' || input instanceof String;
  3156. }
  3157. // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
  3158. function isMomentInput(input) {
  3159. return (
  3160. isMoment(input) ||
  3161. isDate(input) ||
  3162. isString(input) ||
  3163. isNumber(input) ||
  3164. isNumberOrStringArray(input) ||
  3165. isMomentInputObject(input) ||
  3166. input === null ||
  3167. input === undefined
  3168. );
  3169. }
  3170. function isMomentInputObject(input) {
  3171. var objectTest = isObject(input) && !isObjectEmpty(input),
  3172. propertyTest = false,
  3173. properties = [
  3174. 'years',
  3175. 'year',
  3176. 'y',
  3177. 'months',
  3178. 'month',
  3179. 'M',
  3180. 'days',
  3181. 'day',
  3182. 'd',
  3183. 'dates',
  3184. 'date',
  3185. 'D',
  3186. 'hours',
  3187. 'hour',
  3188. 'h',
  3189. 'minutes',
  3190. 'minute',
  3191. 'm',
  3192. 'seconds',
  3193. 'second',
  3194. 's',
  3195. 'milliseconds',
  3196. 'millisecond',
  3197. 'ms',
  3198. ],
  3199. i,
  3200. property;
  3201. for (i = 0; i < properties.length; i += 1) {
  3202. property = properties[i];
  3203. propertyTest = propertyTest || hasOwnProp(input, property);
  3204. }
  3205. return objectTest && propertyTest;
  3206. }
  3207. function isNumberOrStringArray(input) {
  3208. var arrayTest = isArray(input),
  3209. dataTypeTest = false;
  3210. if (arrayTest) {
  3211. dataTypeTest =
  3212. input.filter(function (item) {
  3213. return !isNumber(item) && isString(input);
  3214. }).length === 0;
  3215. }
  3216. return arrayTest && dataTypeTest;
  3217. }
  3218. function isCalendarSpec(input) {
  3219. var objectTest = isObject(input) && !isObjectEmpty(input),
  3220. propertyTest = false,
  3221. properties = [
  3222. 'sameDay',
  3223. 'nextDay',
  3224. 'lastDay',
  3225. 'nextWeek',
  3226. 'lastWeek',
  3227. 'sameElse',
  3228. ],
  3229. i,
  3230. property;
  3231. for (i = 0; i < properties.length; i += 1) {
  3232. property = properties[i];
  3233. propertyTest = propertyTest || hasOwnProp(input, property);
  3234. }
  3235. return objectTest && propertyTest;
  3236. }
  3237. function getCalendarFormat(myMoment, now) {
  3238. var diff = myMoment.diff(now, 'days', true);
  3239. return diff < -6
  3240. ? 'sameElse'
  3241. : diff < -1
  3242. ? 'lastWeek'
  3243. : diff < 0
  3244. ? 'lastDay'
  3245. : diff < 1
  3246. ? 'sameDay'
  3247. : diff < 2
  3248. ? 'nextDay'
  3249. : diff < 7
  3250. ? 'nextWeek'
  3251. : 'sameElse';
  3252. }
  3253. function calendar$1(time, formats) {
  3254. // Support for single parameter, formats only overload to the calendar function
  3255. if (arguments.length === 1) {
  3256. if (!arguments[0]) {
  3257. time = undefined;
  3258. formats = undefined;
  3259. } else if (isMomentInput(arguments[0])) {
  3260. time = arguments[0];
  3261. formats = undefined;
  3262. } else if (isCalendarSpec(arguments[0])) {
  3263. formats = arguments[0];
  3264. time = undefined;
  3265. }
  3266. }
  3267. // We want to compare the start of today, vs this.
  3268. // Getting start-of-today depends on whether we're local/utc/offset or not.
  3269. var now = time || createLocal(),
  3270. sod = cloneWithOffset(now, this).startOf('day'),
  3271. format = hooks.calendarFormat(this, sod) || 'sameElse',
  3272. output =
  3273. formats &&
  3274. (isFunction(formats[format])
  3275. ? formats[format].call(this, now)
  3276. : formats[format]);
  3277. return this.format(
  3278. output || this.localeData().calendar(format, this, createLocal(now))
  3279. );
  3280. }
  3281. function clone() {
  3282. return new Moment(this);
  3283. }
  3284. function isAfter(input, units) {
  3285. var localInput = isMoment(input) ? input : createLocal(input);
  3286. if (!(this.isValid() && localInput.isValid())) {
  3287. return false;
  3288. }
  3289. units = normalizeUnits(units) || 'millisecond';
  3290. if (units === 'millisecond') {
  3291. return this.valueOf() > localInput.valueOf();
  3292. } else {
  3293. return localInput.valueOf() < this.clone().startOf(units).valueOf();
  3294. }
  3295. }
  3296. function isBefore(input, units) {
  3297. var localInput = isMoment(input) ? input : createLocal(input);
  3298. if (!(this.isValid() && localInput.isValid())) {
  3299. return false;
  3300. }
  3301. units = normalizeUnits(units) || 'millisecond';
  3302. if (units === 'millisecond') {
  3303. return this.valueOf() < localInput.valueOf();
  3304. } else {
  3305. return this.clone().endOf(units).valueOf() < localInput.valueOf();
  3306. }
  3307. }
  3308. function isBetween(from, to, units, inclusivity) {
  3309. var localFrom = isMoment(from) ? from : createLocal(from),
  3310. localTo = isMoment(to) ? to : createLocal(to);
  3311. if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) {
  3312. return false;
  3313. }
  3314. inclusivity = inclusivity || '()';
  3315. return (
  3316. (inclusivity[0] === '('
  3317. ? this.isAfter(localFrom, units)
  3318. : !this.isBefore(localFrom, units)) &&
  3319. (inclusivity[1] === ')'
  3320. ? this.isBefore(localTo, units)
  3321. : !this.isAfter(localTo, units))
  3322. );
  3323. }
  3324. function isSame(input, units) {
  3325. var localInput = isMoment(input) ? input : createLocal(input),
  3326. inputMs;
  3327. if (!(this.isValid() && localInput.isValid())) {
  3328. return false;
  3329. }
  3330. units = normalizeUnits(units) || 'millisecond';
  3331. if (units === 'millisecond') {
  3332. return this.valueOf() === localInput.valueOf();
  3333. } else {
  3334. inputMs = localInput.valueOf();
  3335. return (
  3336. this.clone().startOf(units).valueOf() <= inputMs &&
  3337. inputMs <= this.clone().endOf(units).valueOf()
  3338. );
  3339. }
  3340. }
  3341. function isSameOrAfter(input, units) {
  3342. return this.isSame(input, units) || this.isAfter(input, units);
  3343. }
  3344. function isSameOrBefore(input, units) {
  3345. return this.isSame(input, units) || this.isBefore(input, units);
  3346. }
  3347. function diff(input, units, asFloat) {
  3348. var that, zoneDelta, output;
  3349. if (!this.isValid()) {
  3350. return NaN;
  3351. }
  3352. that = cloneWithOffset(input, this);
  3353. if (!that.isValid()) {
  3354. return NaN;
  3355. }
  3356. zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;
  3357. units = normalizeUnits(units);
  3358. switch (units) {
  3359. case 'year':
  3360. output = monthDiff(this, that) / 12;
  3361. break;
  3362. case 'month':
  3363. output = monthDiff(this, that);
  3364. break;
  3365. case 'quarter':
  3366. output = monthDiff(this, that) / 3;
  3367. break;
  3368. case 'second':
  3369. output = (this - that) / 1e3;
  3370. break; // 1000
  3371. case 'minute':
  3372. output = (this - that) / 6e4;
  3373. break; // 1000 * 60
  3374. case 'hour':
  3375. output = (this - that) / 36e5;
  3376. break; // 1000 * 60 * 60
  3377. case 'day':
  3378. output = (this - that - zoneDelta) / 864e5;
  3379. break; // 1000 * 60 * 60 * 24, negate dst
  3380. case 'week':
  3381. output = (this - that - zoneDelta) / 6048e5;
  3382. break; // 1000 * 60 * 60 * 24 * 7, negate dst
  3383. default:
  3384. output = this - that;
  3385. }
  3386. return asFloat ? output : absFloor(output);
  3387. }
  3388. function monthDiff(a, b) {
  3389. if (a.date() < b.date()) {
  3390. // end-of-month calculations work correct when the start month has more
  3391. // days than the end month.
  3392. return -monthDiff(b, a);
  3393. }
  3394. // difference in months
  3395. var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()),
  3396. // b is in (anchor - 1 month, anchor + 1 month)
  3397. anchor = a.clone().add(wholeMonthDiff, 'months'),
  3398. anchor2,
  3399. adjust;
  3400. if (b - anchor < 0) {
  3401. anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');
  3402. // linear across the month
  3403. adjust = (b - anchor) / (anchor - anchor2);
  3404. } else {
  3405. anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');
  3406. // linear across the month
  3407. adjust = (b - anchor) / (anchor2 - anchor);
  3408. }
  3409. //check for negative zero, return zero if negative zero
  3410. return -(wholeMonthDiff + adjust) || 0;
  3411. }
  3412. hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
  3413. hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';
  3414. function toString() {
  3415. return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
  3416. }
  3417. function toISOString(keepOffset) {
  3418. if (!this.isValid()) {
  3419. return null;
  3420. }
  3421. var utc = keepOffset !== true,
  3422. m = utc ? this.clone().utc() : this;
  3423. if (m.year() < 0 || m.year() > 9999) {
  3424. return formatMoment(
  3425. m,
  3426. utc
  3427. ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]'
  3428. : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ'
  3429. );
  3430. }
  3431. if (isFunction(Date.prototype.toISOString)) {
  3432. // native implementation is ~50x faster, use it when we can
  3433. if (utc) {
  3434. return this.toDate().toISOString();
  3435. } else {
  3436. return new Date(this.valueOf() + this.utcOffset() * 60 * 1000)
  3437. .toISOString()
  3438. .replace('Z', formatMoment(m, 'Z'));
  3439. }
  3440. }
  3441. return formatMoment(
  3442. m,
  3443. utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ'
  3444. );
  3445. }
  3446. /**
  3447. * Return a human readable representation of a moment that can
  3448. * also be evaluated to get a new moment which is the same
  3449. *
  3450. * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
  3451. */
  3452. function inspect() {
  3453. if (!this.isValid()) {
  3454. return 'moment.invalid(/* ' + this._i + ' */)';
  3455. }
  3456. var func = 'moment',
  3457. zone = '',
  3458. prefix,
  3459. year,
  3460. datetime,
  3461. suffix;
  3462. if (!this.isLocal()) {
  3463. func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';
  3464. zone = 'Z';
  3465. }
  3466. prefix = '[' + func + '("]';
  3467. year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY';
  3468. datetime = '-MM-DD[T]HH:mm:ss.SSS';
  3469. suffix = zone + '[")]';
  3470. return this.format(prefix + year + datetime + suffix);
  3471. }
  3472. function format(inputString) {
  3473. if (!inputString) {
  3474. inputString = this.isUtc()
  3475. ? hooks.defaultFormatUtc
  3476. : hooks.defaultFormat;
  3477. }
  3478. var output = formatMoment(this, inputString);
  3479. return this.localeData().postformat(output);
  3480. }
  3481. function from(time, withoutSuffix) {
  3482. if (
  3483. this.isValid() &&
  3484. ((isMoment(time) && time.isValid()) || createLocal(time).isValid())
  3485. ) {
  3486. return createDuration({ to: this, from: time })
  3487. .locale(this.locale())
  3488. .humanize(!withoutSuffix);
  3489. } else {
  3490. return this.localeData().invalidDate();
  3491. }
  3492. }
  3493. function fromNow(withoutSuffix) {
  3494. return this.from(createLocal(), withoutSuffix);
  3495. }
  3496. function to(time, withoutSuffix) {
  3497. if (
  3498. this.isValid() &&
  3499. ((isMoment(time) && time.isValid()) || createLocal(time).isValid())
  3500. ) {
  3501. return createDuration({ from: this, to: time })
  3502. .locale(this.locale())
  3503. .humanize(!withoutSuffix);
  3504. } else {
  3505. return this.localeData().invalidDate();
  3506. }
  3507. }
  3508. function toNow(withoutSuffix) {
  3509. return this.to(createLocal(), withoutSuffix);
  3510. }
  3511. // If passed a locale key, it will set the locale for this
  3512. // instance. Otherwise, it will return the locale configuration
  3513. // variables for this instance.
  3514. function locale(key) {
  3515. var newLocaleData;
  3516. if (key === undefined) {
  3517. return this._locale._abbr;
  3518. } else {
  3519. newLocaleData = getLocale(key);
  3520. if (newLocaleData != null) {
  3521. this._locale = newLocaleData;
  3522. }
  3523. return this;
  3524. }
  3525. }
  3526. var lang = deprecate(
  3527. 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
  3528. function (key) {
  3529. if (key === undefined) {
  3530. return this.localeData();
  3531. } else {
  3532. return this.locale(key);
  3533. }
  3534. }
  3535. );
  3536. function localeData() {
  3537. return this._locale;
  3538. }
  3539. var MS_PER_SECOND = 1000,
  3540. MS_PER_MINUTE = 60 * MS_PER_SECOND,
  3541. MS_PER_HOUR = 60 * MS_PER_MINUTE,
  3542. MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;
  3543. // actual modulo - handles negative numbers (for dates before 1970):
  3544. function mod$1(dividend, divisor) {
  3545. return ((dividend % divisor) + divisor) % divisor;
  3546. }
  3547. function localStartOfDate(y, m, d) {
  3548. // the date constructor remaps years 0-99 to 1900-1999
  3549. if (y < 100 && y >= 0) {
  3550. // preserve leap years using a full 400 year cycle, then reset
  3551. return new Date(y + 400, m, d) - MS_PER_400_YEARS;
  3552. } else {
  3553. return new Date(y, m, d).valueOf();
  3554. }
  3555. }
  3556. function utcStartOfDate(y, m, d) {
  3557. // Date.UTC remaps years 0-99 to 1900-1999
  3558. if (y < 100 && y >= 0) {
  3559. // preserve leap years using a full 400 year cycle, then reset
  3560. return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;
  3561. } else {
  3562. return Date.UTC(y, m, d);
  3563. }
  3564. }
  3565. function startOf(units) {
  3566. var time, startOfDate;
  3567. units = normalizeUnits(units);
  3568. if (units === undefined || units === 'millisecond' || !this.isValid()) {
  3569. return this;
  3570. }
  3571. startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
  3572. switch (units) {
  3573. case 'year':
  3574. time = startOfDate(this.year(), 0, 1);
  3575. break;
  3576. case 'quarter':
  3577. time = startOfDate(
  3578. this.year(),
  3579. this.month() - (this.month() % 3),
  3580. 1
  3581. );
  3582. break;
  3583. case 'month':
  3584. time = startOfDate(this.year(), this.month(), 1);
  3585. break;
  3586. case 'week':
  3587. time = startOfDate(
  3588. this.year(),
  3589. this.month(),
  3590. this.date() - this.weekday()
  3591. );
  3592. break;
  3593. case 'isoWeek':
  3594. time = startOfDate(
  3595. this.year(),
  3596. this.month(),
  3597. this.date() - (this.isoWeekday() - 1)
  3598. );
  3599. break;
  3600. case 'day':
  3601. case 'date':
  3602. time = startOfDate(this.year(), this.month(), this.date());
  3603. break;
  3604. case 'hour':
  3605. time = this._d.valueOf();
  3606. time -= mod$1(
  3607. time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
  3608. MS_PER_HOUR
  3609. );
  3610. break;
  3611. case 'minute':
  3612. time = this._d.valueOf();
  3613. time -= mod$1(time, MS_PER_MINUTE);
  3614. break;
  3615. case 'second':
  3616. time = this._d.valueOf();
  3617. time -= mod$1(time, MS_PER_SECOND);
  3618. break;
  3619. }
  3620. this._d.setTime(time);
  3621. hooks.updateOffset(this, true);
  3622. return this;
  3623. }
  3624. function endOf(units) {
  3625. var time, startOfDate;
  3626. units = normalizeUnits(units);
  3627. if (units === undefined || units === 'millisecond' || !this.isValid()) {
  3628. return this;
  3629. }
  3630. startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
  3631. switch (units) {
  3632. case 'year':
  3633. time = startOfDate(this.year() + 1, 0, 1) - 1;
  3634. break;
  3635. case 'quarter':
  3636. time =
  3637. startOfDate(
  3638. this.year(),
  3639. this.month() - (this.month() % 3) + 3,
  3640. 1
  3641. ) - 1;
  3642. break;
  3643. case 'month':
  3644. time = startOfDate(this.year(), this.month() + 1, 1) - 1;
  3645. break;
  3646. case 'week':
  3647. time =
  3648. startOfDate(
  3649. this.year(),
  3650. this.month(),
  3651. this.date() - this.weekday() + 7
  3652. ) - 1;
  3653. break;
  3654. case 'isoWeek':
  3655. time =
  3656. startOfDate(
  3657. this.year(),
  3658. this.month(),
  3659. this.date() - (this.isoWeekday() - 1) + 7
  3660. ) - 1;
  3661. break;
  3662. case 'day':
  3663. case 'date':
  3664. time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;
  3665. break;
  3666. case 'hour':
  3667. time = this._d.valueOf();
  3668. time +=
  3669. MS_PER_HOUR -
  3670. mod$1(
  3671. time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),
  3672. MS_PER_HOUR
  3673. ) -
  3674. 1;
  3675. break;
  3676. case 'minute':
  3677. time = this._d.valueOf();
  3678. time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;
  3679. break;
  3680. case 'second':
  3681. time = this._d.valueOf();
  3682. time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;
  3683. break;
  3684. }
  3685. this._d.setTime(time);
  3686. hooks.updateOffset(this, true);
  3687. return this;
  3688. }
  3689. function valueOf() {
  3690. return this._d.valueOf() - (this._offset || 0) * 60000;
  3691. }
  3692. function unix() {
  3693. return Math.floor(this.valueOf() / 1000);
  3694. }
  3695. function toDate() {
  3696. return new Date(this.valueOf());
  3697. }
  3698. function toArray() {
  3699. var m = this;
  3700. return [
  3701. m.year(),
  3702. m.month(),
  3703. m.date(),
  3704. m.hour(),
  3705. m.minute(),
  3706. m.second(),
  3707. m.millisecond(),
  3708. ];
  3709. }
  3710. function toObject() {
  3711. var m = this;
  3712. return {
  3713. years: m.year(),
  3714. months: m.month(),
  3715. date: m.date(),
  3716. hours: m.hours(),
  3717. minutes: m.minutes(),
  3718. seconds: m.seconds(),
  3719. milliseconds: m.milliseconds(),
  3720. };
  3721. }
  3722. function toJSON() {
  3723. // new Date(NaN).toJSON() === null
  3724. return this.isValid() ? this.toISOString() : null;
  3725. }
  3726. function isValid$2() {
  3727. return isValid(this);
  3728. }
  3729. function parsingFlags() {
  3730. return extend({}, getParsingFlags(this));
  3731. }
  3732. function invalidAt() {
  3733. return getParsingFlags(this).overflow;
  3734. }
  3735. function creationData() {
  3736. return {
  3737. input: this._i,
  3738. format: this._f,
  3739. locale: this._locale,
  3740. isUTC: this._isUTC,
  3741. strict: this._strict,
  3742. };
  3743. }
  3744. addFormatToken('N', 0, 0, 'eraAbbr');
  3745. addFormatToken('NN', 0, 0, 'eraAbbr');
  3746. addFormatToken('NNN', 0, 0, 'eraAbbr');
  3747. addFormatToken('NNNN', 0, 0, 'eraName');
  3748. addFormatToken('NNNNN', 0, 0, 'eraNarrow');
  3749. addFormatToken('y', ['y', 1], 'yo', 'eraYear');
  3750. addFormatToken('y', ['yy', 2], 0, 'eraYear');
  3751. addFormatToken('y', ['yyy', 3], 0, 'eraYear');
  3752. addFormatToken('y', ['yyyy', 4], 0, 'eraYear');
  3753. addRegexToken('N', matchEraAbbr);
  3754. addRegexToken('NN', matchEraAbbr);
  3755. addRegexToken('NNN', matchEraAbbr);
  3756. addRegexToken('NNNN', matchEraName);
  3757. addRegexToken('NNNNN', matchEraNarrow);
  3758. addParseToken(['N', 'NN', 'NNN', 'NNNN', 'NNNNN'], function (
  3759. input,
  3760. array,
  3761. config,
  3762. token
  3763. ) {
  3764. var era = config._locale.erasParse(input, token, config._strict);
  3765. if (era) {
  3766. getParsingFlags(config).era = era;
  3767. } else {
  3768. getParsingFlags(config).invalidEra = input;
  3769. }
  3770. });
  3771. addRegexToken('y', matchUnsigned);
  3772. addRegexToken('yy', matchUnsigned);
  3773. addRegexToken('yyy', matchUnsigned);
  3774. addRegexToken('yyyy', matchUnsigned);
  3775. addRegexToken('yo', matchEraYearOrdinal);
  3776. addParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR);
  3777. addParseToken(['yo'], function (input, array, config, token) {
  3778. var match;
  3779. if (config._locale._eraYearOrdinalRegex) {
  3780. match = input.match(config._locale._eraYearOrdinalRegex);
  3781. }
  3782. if (config._locale.eraYearOrdinalParse) {
  3783. array[YEAR] = config._locale.eraYearOrdinalParse(input, match);
  3784. } else {
  3785. array[YEAR] = parseInt(input, 10);
  3786. }
  3787. });
  3788. function localeEras(m, format) {
  3789. var i,
  3790. l,
  3791. date,
  3792. eras = this._eras || getLocale('en')._eras;
  3793. for (i = 0, l = eras.length; i < l; ++i) {
  3794. switch (typeof eras[i].since) {
  3795. case 'string':
  3796. // truncate time
  3797. date = hooks(eras[i].since).startOf('day');
  3798. eras[i].since = date.valueOf();
  3799. break;
  3800. }
  3801. switch (typeof eras[i].until) {
  3802. case 'undefined':
  3803. eras[i].until = +Infinity;
  3804. break;
  3805. case 'string':
  3806. // truncate time
  3807. date = hooks(eras[i].until).startOf('day').valueOf();
  3808. eras[i].until = date.valueOf();
  3809. break;
  3810. }
  3811. }
  3812. return eras;
  3813. }
  3814. function localeErasParse(eraName, format, strict) {
  3815. var i,
  3816. l,
  3817. eras = this.eras(),
  3818. name,
  3819. abbr,
  3820. narrow;
  3821. eraName = eraName.toUpperCase();
  3822. for (i = 0, l = eras.length; i < l; ++i) {
  3823. name = eras[i].name.toUpperCase();
  3824. abbr = eras[i].abbr.toUpperCase();
  3825. narrow = eras[i].narrow.toUpperCase();
  3826. if (strict) {
  3827. switch (format) {
  3828. case 'N':
  3829. case 'NN':
  3830. case 'NNN':
  3831. if (abbr === eraName) {
  3832. return eras[i];
  3833. }
  3834. break;
  3835. case 'NNNN':
  3836. if (name === eraName) {
  3837. return eras[i];
  3838. }
  3839. break;
  3840. case 'NNNNN':
  3841. if (narrow === eraName) {
  3842. return eras[i];
  3843. }
  3844. break;
  3845. }
  3846. } else if ([name, abbr, narrow].indexOf(eraName) >= 0) {
  3847. return eras[i];
  3848. }
  3849. }
  3850. }
  3851. function localeErasConvertYear(era, year) {
  3852. var dir = era.since <= era.until ? +1 : -1;
  3853. if (year === undefined) {
  3854. return hooks(era.since).year();
  3855. } else {
  3856. return hooks(era.since).year() + (year - era.offset) * dir;
  3857. }
  3858. }
  3859. function getEraName() {
  3860. var i,
  3861. l,
  3862. val,
  3863. eras = this.localeData().eras();
  3864. for (i = 0, l = eras.length; i < l; ++i) {
  3865. // truncate time
  3866. val = this.clone().startOf('day').valueOf();
  3867. if (eras[i].since <= val && val <= eras[i].until) {
  3868. return eras[i].name;
  3869. }
  3870. if (eras[i].until <= val && val <= eras[i].since) {
  3871. return eras[i].name;
  3872. }
  3873. }
  3874. return '';
  3875. }
  3876. function getEraNarrow() {
  3877. var i,
  3878. l,
  3879. val,
  3880. eras = this.localeData().eras();
  3881. for (i = 0, l = eras.length; i < l; ++i) {
  3882. // truncate time
  3883. val = this.clone().startOf('day').valueOf();
  3884. if (eras[i].since <= val && val <= eras[i].until) {
  3885. return eras[i].narrow;
  3886. }
  3887. if (eras[i].until <= val && val <= eras[i].since) {
  3888. return eras[i].narrow;
  3889. }
  3890. }
  3891. return '';
  3892. }
  3893. function getEraAbbr() {
  3894. var i,
  3895. l,
  3896. val,
  3897. eras = this.localeData().eras();
  3898. for (i = 0, l = eras.length; i < l; ++i) {
  3899. // truncate time
  3900. val = this.clone().startOf('day').valueOf();
  3901. if (eras[i].since <= val && val <= eras[i].until) {
  3902. return eras[i].abbr;
  3903. }
  3904. if (eras[i].until <= val && val <= eras[i].since) {
  3905. return eras[i].abbr;
  3906. }
  3907. }
  3908. return '';
  3909. }
  3910. function getEraYear() {
  3911. var i,
  3912. l,
  3913. dir,
  3914. val,
  3915. eras = this.localeData().eras();
  3916. for (i = 0, l = eras.length; i < l; ++i) {
  3917. dir = eras[i].since <= eras[i].until ? +1 : -1;
  3918. // truncate time
  3919. val = this.clone().startOf('day').valueOf();
  3920. if (
  3921. (eras[i].since <= val && val <= eras[i].until) ||
  3922. (eras[i].until <= val && val <= eras[i].since)
  3923. ) {
  3924. return (
  3925. (this.year() - hooks(eras[i].since).year()) * dir +
  3926. eras[i].offset
  3927. );
  3928. }
  3929. }
  3930. return this.year();
  3931. }
  3932. function erasNameRegex(isStrict) {
  3933. if (!hasOwnProp(this, '_erasNameRegex')) {
  3934. computeErasParse.call(this);
  3935. }
  3936. return isStrict ? this._erasNameRegex : this._erasRegex;
  3937. }
  3938. function erasAbbrRegex(isStrict) {
  3939. if (!hasOwnProp(this, '_erasAbbrRegex')) {
  3940. computeErasParse.call(this);
  3941. }
  3942. return isStrict ? this._erasAbbrRegex : this._erasRegex;
  3943. }
  3944. function erasNarrowRegex(isStrict) {
  3945. if (!hasOwnProp(this, '_erasNarrowRegex')) {
  3946. computeErasParse.call(this);
  3947. }
  3948. return isStrict ? this._erasNarrowRegex : this._erasRegex;
  3949. }
  3950. function matchEraAbbr(isStrict, locale) {
  3951. return locale.erasAbbrRegex(isStrict);
  3952. }
  3953. function matchEraName(isStrict, locale) {
  3954. return locale.erasNameRegex(isStrict);
  3955. }
  3956. function matchEraNarrow(isStrict, locale) {
  3957. return locale.erasNarrowRegex(isStrict);
  3958. }
  3959. function matchEraYearOrdinal(isStrict, locale) {
  3960. return locale._eraYearOrdinalRegex || matchUnsigned;
  3961. }
  3962. function computeErasParse() {
  3963. var abbrPieces = [],
  3964. namePieces = [],
  3965. narrowPieces = [],
  3966. mixedPieces = [],
  3967. i,
  3968. l,
  3969. eras = this.eras();
  3970. for (i = 0, l = eras.length; i < l; ++i) {
  3971. namePieces.push(regexEscape(eras[i].name));
  3972. abbrPieces.push(regexEscape(eras[i].abbr));
  3973. narrowPieces.push(regexEscape(eras[i].narrow));
  3974. mixedPieces.push(regexEscape(eras[i].name));
  3975. mixedPieces.push(regexEscape(eras[i].abbr));
  3976. mixedPieces.push(regexEscape(eras[i].narrow));
  3977. }
  3978. this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  3979. this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i');
  3980. this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i');
  3981. this._erasNarrowRegex = new RegExp(
  3982. '^(' + narrowPieces.join('|') + ')',
  3983. 'i'
  3984. );
  3985. }
  3986. // FORMATTING
  3987. addFormatToken(0, ['gg', 2], 0, function () {
  3988. return this.weekYear() % 100;
  3989. });
  3990. addFormatToken(0, ['GG', 2], 0, function () {
  3991. return this.isoWeekYear() % 100;
  3992. });
  3993. function addWeekYearFormatToken(token, getter) {
  3994. addFormatToken(0, [token, token.length], 0, getter);
  3995. }
  3996. addWeekYearFormatToken('gggg', 'weekYear');
  3997. addWeekYearFormatToken('ggggg', 'weekYear');
  3998. addWeekYearFormatToken('GGGG', 'isoWeekYear');
  3999. addWeekYearFormatToken('GGGGG', 'isoWeekYear');
  4000. // ALIASES
  4001. addUnitAlias('weekYear', 'gg');
  4002. addUnitAlias('isoWeekYear', 'GG');
  4003. // PRIORITY
  4004. addUnitPriority('weekYear', 1);
  4005. addUnitPriority('isoWeekYear', 1);
  4006. // PARSING
  4007. addRegexToken('G', matchSigned);
  4008. addRegexToken('g', matchSigned);
  4009. addRegexToken('GG', match1to2, match2);
  4010. addRegexToken('gg', match1to2, match2);
  4011. addRegexToken('GGGG', match1to4, match4);
  4012. addRegexToken('gggg', match1to4, match4);
  4013. addRegexToken('GGGGG', match1to6, match6);
  4014. addRegexToken('ggggg', match1to6, match6);
  4015. addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (
  4016. input,
  4017. week,
  4018. config,
  4019. token
  4020. ) {
  4021. week[token.substr(0, 2)] = toInt(input);
  4022. });
  4023. addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
  4024. week[token] = hooks.parseTwoDigitYear(input);
  4025. });
  4026. // MOMENTS
  4027. function getSetWeekYear(input) {
  4028. return getSetWeekYearHelper.call(
  4029. this,
  4030. input,
  4031. this.week(),
  4032. this.weekday(),
  4033. this.localeData()._week.dow,
  4034. this.localeData()._week.doy
  4035. );
  4036. }
  4037. function getSetISOWeekYear(input) {
  4038. return getSetWeekYearHelper.call(
  4039. this,
  4040. input,
  4041. this.isoWeek(),
  4042. this.isoWeekday(),
  4043. 1,
  4044. 4
  4045. );
  4046. }
  4047. function getISOWeeksInYear() {
  4048. return weeksInYear(this.year(), 1, 4);
  4049. }
  4050. function getISOWeeksInISOWeekYear() {
  4051. return weeksInYear(this.isoWeekYear(), 1, 4);
  4052. }
  4053. function getWeeksInYear() {
  4054. var weekInfo = this.localeData()._week;
  4055. return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
  4056. }
  4057. function getWeeksInWeekYear() {
  4058. var weekInfo = this.localeData()._week;
  4059. return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy);
  4060. }
  4061. function getSetWeekYearHelper(input, week, weekday, dow, doy) {
  4062. var weeksTarget;
  4063. if (input == null) {
  4064. return weekOfYear(this, dow, doy).year;
  4065. } else {
  4066. weeksTarget = weeksInYear(input, dow, doy);
  4067. if (week > weeksTarget) {
  4068. week = weeksTarget;
  4069. }
  4070. return setWeekAll.call(this, input, week, weekday, dow, doy);
  4071. }
  4072. }
  4073. function setWeekAll(weekYear, week, weekday, dow, doy) {
  4074. var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),
  4075. date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);
  4076. this.year(date.getUTCFullYear());
  4077. this.month(date.getUTCMonth());
  4078. this.date(date.getUTCDate());
  4079. return this;
  4080. }
  4081. // FORMATTING
  4082. addFormatToken('Q', 0, 'Qo', 'quarter');
  4083. // ALIASES
  4084. addUnitAlias('quarter', 'Q');
  4085. // PRIORITY
  4086. addUnitPriority('quarter', 7);
  4087. // PARSING
  4088. addRegexToken('Q', match1);
  4089. addParseToken('Q', function (input, array) {
  4090. array[MONTH] = (toInt(input) - 1) * 3;
  4091. });
  4092. // MOMENTS
  4093. function getSetQuarter(input) {
  4094. return input == null
  4095. ? Math.ceil((this.month() + 1) / 3)
  4096. : this.month((input - 1) * 3 + (this.month() % 3));
  4097. }
  4098. // FORMATTING
  4099. addFormatToken('D', ['DD', 2], 'Do', 'date');
  4100. // ALIASES
  4101. addUnitAlias('date', 'D');
  4102. // PRIORITY
  4103. addUnitPriority('date', 9);
  4104. // PARSING
  4105. addRegexToken('D', match1to2);
  4106. addRegexToken('DD', match1to2, match2);
  4107. addRegexToken('Do', function (isStrict, locale) {
  4108. // TODO: Remove "ordinalParse" fallback in next major release.
  4109. return isStrict
  4110. ? locale._dayOfMonthOrdinalParse || locale._ordinalParse
  4111. : locale._dayOfMonthOrdinalParseLenient;
  4112. });
  4113. addParseToken(['D', 'DD'], DATE);
  4114. addParseToken('Do', function (input, array) {
  4115. array[DATE] = toInt(input.match(match1to2)[0]);
  4116. });
  4117. // MOMENTS
  4118. var getSetDayOfMonth = makeGetSet('Date', true);
  4119. // FORMATTING
  4120. addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
  4121. // ALIASES
  4122. addUnitAlias('dayOfYear', 'DDD');
  4123. // PRIORITY
  4124. addUnitPriority('dayOfYear', 4);
  4125. // PARSING
  4126. addRegexToken('DDD', match1to3);
  4127. addRegexToken('DDDD', match3);
  4128. addParseToken(['DDD', 'DDDD'], function (input, array, config) {
  4129. config._dayOfYear = toInt(input);
  4130. });
  4131. // HELPERS
  4132. // MOMENTS
  4133. function getSetDayOfYear(input) {
  4134. var dayOfYear =
  4135. Math.round(
  4136. (this.clone().startOf('day') - this.clone().startOf('year')) / 864e5
  4137. ) + 1;
  4138. return input == null ? dayOfYear : this.add(input - dayOfYear, 'd');
  4139. }
  4140. // FORMATTING
  4141. addFormatToken('m', ['mm', 2], 0, 'minute');
  4142. // ALIASES
  4143. addUnitAlias('minute', 'm');
  4144. // PRIORITY
  4145. addUnitPriority('minute', 14);
  4146. // PARSING
  4147. addRegexToken('m', match1to2);
  4148. addRegexToken('mm', match1to2, match2);
  4149. addParseToken(['m', 'mm'], MINUTE);
  4150. // MOMENTS
  4151. var getSetMinute = makeGetSet('Minutes', false);
  4152. // FORMATTING
  4153. addFormatToken('s', ['ss', 2], 0, 'second');
  4154. // ALIASES
  4155. addUnitAlias('second', 's');
  4156. // PRIORITY
  4157. addUnitPriority('second', 15);
  4158. // PARSING
  4159. addRegexToken('s', match1to2);
  4160. addRegexToken('ss', match1to2, match2);
  4161. addParseToken(['s', 'ss'], SECOND);
  4162. // MOMENTS
  4163. var getSetSecond = makeGetSet('Seconds', false);
  4164. // FORMATTING
  4165. addFormatToken('S', 0, 0, function () {
  4166. return ~~(this.millisecond() / 100);
  4167. });
  4168. addFormatToken(0, ['SS', 2], 0, function () {
  4169. return ~~(this.millisecond() / 10);
  4170. });
  4171. addFormatToken(0, ['SSS', 3], 0, 'millisecond');
  4172. addFormatToken(0, ['SSSS', 4], 0, function () {
  4173. return this.millisecond() * 10;
  4174. });
  4175. addFormatToken(0, ['SSSSS', 5], 0, function () {
  4176. return this.millisecond() * 100;
  4177. });
  4178. addFormatToken(0, ['SSSSSS', 6], 0, function () {
  4179. return this.millisecond() * 1000;
  4180. });
  4181. addFormatToken(0, ['SSSSSSS', 7], 0, function () {
  4182. return this.millisecond() * 10000;
  4183. });
  4184. addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
  4185. return this.millisecond() * 100000;
  4186. });
  4187. addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
  4188. return this.millisecond() * 1000000;
  4189. });
  4190. // ALIASES
  4191. addUnitAlias('millisecond', 'ms');
  4192. // PRIORITY
  4193. addUnitPriority('millisecond', 16);
  4194. // PARSING
  4195. addRegexToken('S', match1to3, match1);
  4196. addRegexToken('SS', match1to3, match2);
  4197. addRegexToken('SSS', match1to3, match3);
  4198. var token, getSetMillisecond;
  4199. for (token = 'SSSS'; token.length <= 9; token += 'S') {
  4200. addRegexToken(token, matchUnsigned);
  4201. }
  4202. function parseMs(input, array) {
  4203. array[MILLISECOND] = toInt(('0.' + input) * 1000);
  4204. }
  4205. for (token = 'S'; token.length <= 9; token += 'S') {
  4206. addParseToken(token, parseMs);
  4207. }
  4208. getSetMillisecond = makeGetSet('Milliseconds', false);
  4209. // FORMATTING
  4210. addFormatToken('z', 0, 0, 'zoneAbbr');
  4211. addFormatToken('zz', 0, 0, 'zoneName');
  4212. // MOMENTS
  4213. function getZoneAbbr() {
  4214. return this._isUTC ? 'UTC' : '';
  4215. }
  4216. function getZoneName() {
  4217. return this._isUTC ? 'Coordinated Universal Time' : '';
  4218. }
  4219. var proto = Moment.prototype;
  4220. proto.add = add;
  4221. proto.calendar = calendar$1;
  4222. proto.clone = clone;
  4223. proto.diff = diff;
  4224. proto.endOf = endOf;
  4225. proto.format = format;
  4226. proto.from = from;
  4227. proto.fromNow = fromNow;
  4228. proto.to = to;
  4229. proto.toNow = toNow;
  4230. proto.get = stringGet;
  4231. proto.invalidAt = invalidAt;
  4232. proto.isAfter = isAfter;
  4233. proto.isBefore = isBefore;
  4234. proto.isBetween = isBetween;
  4235. proto.isSame = isSame;
  4236. proto.isSameOrAfter = isSameOrAfter;
  4237. proto.isSameOrBefore = isSameOrBefore;
  4238. proto.isValid = isValid$2;
  4239. proto.lang = lang;
  4240. proto.locale = locale;
  4241. proto.localeData = localeData;
  4242. proto.max = prototypeMax;
  4243. proto.min = prototypeMin;
  4244. proto.parsingFlags = parsingFlags;
  4245. proto.set = stringSet;
  4246. proto.startOf = startOf;
  4247. proto.subtract = subtract;
  4248. proto.toArray = toArray;
  4249. proto.toObject = toObject;
  4250. proto.toDate = toDate;
  4251. proto.toISOString = toISOString;
  4252. proto.inspect = inspect;
  4253. if (typeof Symbol !== 'undefined' && Symbol.for != null) {
  4254. proto[Symbol.for('nodejs.util.inspect.custom')] = function () {
  4255. return 'Moment<' + this.format() + '>';
  4256. };
  4257. }
  4258. proto.toJSON = toJSON;
  4259. proto.toString = toString;
  4260. proto.unix = unix;
  4261. proto.valueOf = valueOf;
  4262. proto.creationData = creationData;
  4263. proto.eraName = getEraName;
  4264. proto.eraNarrow = getEraNarrow;
  4265. proto.eraAbbr = getEraAbbr;
  4266. proto.eraYear = getEraYear;
  4267. proto.year = getSetYear;
  4268. proto.isLeapYear = getIsLeapYear;
  4269. proto.weekYear = getSetWeekYear;
  4270. proto.isoWeekYear = getSetISOWeekYear;
  4271. proto.quarter = proto.quarters = getSetQuarter;
  4272. proto.month = getSetMonth;
  4273. proto.daysInMonth = getDaysInMonth;
  4274. proto.week = proto.weeks = getSetWeek;
  4275. proto.isoWeek = proto.isoWeeks = getSetISOWeek;
  4276. proto.weeksInYear = getWeeksInYear;
  4277. proto.weeksInWeekYear = getWeeksInWeekYear;
  4278. proto.isoWeeksInYear = getISOWeeksInYear;
  4279. proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;
  4280. proto.date = getSetDayOfMonth;
  4281. proto.day = proto.days = getSetDayOfWeek;
  4282. proto.weekday = getSetLocaleDayOfWeek;
  4283. proto.isoWeekday = getSetISODayOfWeek;
  4284. proto.dayOfYear = getSetDayOfYear;
  4285. proto.hour = proto.hours = getSetHour;
  4286. proto.minute = proto.minutes = getSetMinute;
  4287. proto.second = proto.seconds = getSetSecond;
  4288. proto.millisecond = proto.milliseconds = getSetMillisecond;
  4289. proto.utcOffset = getSetOffset;
  4290. proto.utc = setOffsetToUTC;
  4291. proto.local = setOffsetToLocal;
  4292. proto.parseZone = setOffsetToParsedOffset;
  4293. proto.hasAlignedHourOffset = hasAlignedHourOffset;
  4294. proto.isDST = isDaylightSavingTime;
  4295. proto.isLocal = isLocal;
  4296. proto.isUtcOffset = isUtcOffset;
  4297. proto.isUtc = isUtc;
  4298. proto.isUTC = isUtc;
  4299. proto.zoneAbbr = getZoneAbbr;
  4300. proto.zoneName = getZoneName;
  4301. proto.dates = deprecate(
  4302. 'dates accessor is deprecated. Use date instead.',
  4303. getSetDayOfMonth
  4304. );
  4305. proto.months = deprecate(
  4306. 'months accessor is deprecated. Use month instead',
  4307. getSetMonth
  4308. );
  4309. proto.years = deprecate(
  4310. 'years accessor is deprecated. Use year instead',
  4311. getSetYear
  4312. );
  4313. proto.zone = deprecate(
  4314. 'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',
  4315. getSetZone
  4316. );
  4317. proto.isDSTShifted = deprecate(
  4318. 'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',
  4319. isDaylightSavingTimeShifted
  4320. );
  4321. function createUnix(input) {
  4322. return createLocal(input * 1000);
  4323. }
  4324. function createInZone() {
  4325. return createLocal.apply(null, arguments).parseZone();
  4326. }
  4327. function preParsePostFormat(string) {
  4328. return string;
  4329. }
  4330. var proto$1 = Locale.prototype;
  4331. proto$1.calendar = calendar;
  4332. proto$1.longDateFormat = longDateFormat;
  4333. proto$1.invalidDate = invalidDate;
  4334. proto$1.ordinal = ordinal;
  4335. proto$1.preparse = preParsePostFormat;
  4336. proto$1.postformat = preParsePostFormat;
  4337. proto$1.relativeTime = relativeTime;
  4338. proto$1.pastFuture = pastFuture;
  4339. proto$1.set = set;
  4340. proto$1.eras = localeEras;
  4341. proto$1.erasParse = localeErasParse;
  4342. proto$1.erasConvertYear = localeErasConvertYear;
  4343. proto$1.erasAbbrRegex = erasAbbrRegex;
  4344. proto$1.erasNameRegex = erasNameRegex;
  4345. proto$1.erasNarrowRegex = erasNarrowRegex;
  4346. proto$1.months = localeMonths;
  4347. proto$1.monthsShort = localeMonthsShort;
  4348. proto$1.monthsParse = localeMonthsParse;
  4349. proto$1.monthsRegex = monthsRegex;
  4350. proto$1.monthsShortRegex = monthsShortRegex;
  4351. proto$1.week = localeWeek;
  4352. proto$1.firstDayOfYear = localeFirstDayOfYear;
  4353. proto$1.firstDayOfWeek = localeFirstDayOfWeek;
  4354. proto$1.weekdays = localeWeekdays;
  4355. proto$1.weekdaysMin = localeWeekdaysMin;
  4356. proto$1.weekdaysShort = localeWeekdaysShort;
  4357. proto$1.weekdaysParse = localeWeekdaysParse;
  4358. proto$1.weekdaysRegex = weekdaysRegex;
  4359. proto$1.weekdaysShortRegex = weekdaysShortRegex;
  4360. proto$1.weekdaysMinRegex = weekdaysMinRegex;
  4361. proto$1.isPM = localeIsPM;
  4362. proto$1.meridiem = localeMeridiem;
  4363. function get$1(format, index, field, setter) {
  4364. var locale = getLocale(),
  4365. utc = createUTC().set(setter, index);
  4366. return locale[field](utc, format);
  4367. }
  4368. function listMonthsImpl(format, index, field) {
  4369. if (isNumber(format)) {
  4370. index = format;
  4371. format = undefined;
  4372. }
  4373. format = format || '';
  4374. if (index != null) {
  4375. return get$1(format, index, field, 'month');
  4376. }
  4377. var i,
  4378. out = [];
  4379. for (i = 0; i < 12; i++) {
  4380. out[i] = get$1(format, i, field, 'month');
  4381. }
  4382. return out;
  4383. }
  4384. // ()
  4385. // (5)
  4386. // (fmt, 5)
  4387. // (fmt)
  4388. // (true)
  4389. // (true, 5)
  4390. // (true, fmt, 5)
  4391. // (true, fmt)
  4392. function listWeekdaysImpl(localeSorted, format, index, field) {
  4393. if (typeof localeSorted === 'boolean') {
  4394. if (isNumber(format)) {
  4395. index = format;
  4396. format = undefined;
  4397. }
  4398. format = format || '';
  4399. } else {
  4400. format = localeSorted;
  4401. index = format;
  4402. localeSorted = false;
  4403. if (isNumber(format)) {
  4404. index = format;
  4405. format = undefined;
  4406. }
  4407. format = format || '';
  4408. }
  4409. var locale = getLocale(),
  4410. shift = localeSorted ? locale._week.dow : 0,
  4411. i,
  4412. out = [];
  4413. if (index != null) {
  4414. return get$1(format, (index + shift) % 7, field, 'day');
  4415. }
  4416. for (i = 0; i < 7; i++) {
  4417. out[i] = get$1(format, (i + shift) % 7, field, 'day');
  4418. }
  4419. return out;
  4420. }
  4421. function listMonths(format, index) {
  4422. return listMonthsImpl(format, index, 'months');
  4423. }
  4424. function listMonthsShort(format, index) {
  4425. return listMonthsImpl(format, index, 'monthsShort');
  4426. }
  4427. function listWeekdays(localeSorted, format, index) {
  4428. return listWeekdaysImpl(localeSorted, format, index, 'weekdays');
  4429. }
  4430. function listWeekdaysShort(localeSorted, format, index) {
  4431. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');
  4432. }
  4433. function listWeekdaysMin(localeSorted, format, index) {
  4434. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');
  4435. }
  4436. getSetGlobalLocale('en', {
  4437. eras: [
  4438. {
  4439. since: '0001-01-01',
  4440. until: +Infinity,
  4441. offset: 1,
  4442. name: 'Anno Domini',
  4443. narrow: 'AD',
  4444. abbr: 'AD',
  4445. },
  4446. {
  4447. since: '0000-12-31',
  4448. until: -Infinity,
  4449. offset: 1,
  4450. name: 'Before Christ',
  4451. narrow: 'BC',
  4452. abbr: 'BC',
  4453. },
  4454. ],
  4455. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  4456. ordinal: function (number) {
  4457. var b = number % 10,
  4458. output =
  4459. toInt((number % 100) / 10) === 1
  4460. ? 'th'
  4461. : b === 1
  4462. ? 'st'
  4463. : b === 2
  4464. ? 'nd'
  4465. : b === 3
  4466. ? 'rd'
  4467. : 'th';
  4468. return number + output;
  4469. },
  4470. });
  4471. // Side effect imports
  4472. hooks.lang = deprecate(
  4473. 'moment.lang is deprecated. Use moment.locale instead.',
  4474. getSetGlobalLocale
  4475. );
  4476. hooks.langData = deprecate(
  4477. 'moment.langData is deprecated. Use moment.localeData instead.',
  4478. getLocale
  4479. );
  4480. var mathAbs = Math.abs;
  4481. function abs() {
  4482. var data = this._data;
  4483. this._milliseconds = mathAbs(this._milliseconds);
  4484. this._days = mathAbs(this._days);
  4485. this._months = mathAbs(this._months);
  4486. data.milliseconds = mathAbs(data.milliseconds);
  4487. data.seconds = mathAbs(data.seconds);
  4488. data.minutes = mathAbs(data.minutes);
  4489. data.hours = mathAbs(data.hours);
  4490. data.months = mathAbs(data.months);
  4491. data.years = mathAbs(data.years);
  4492. return this;
  4493. }
  4494. function addSubtract$1(duration, input, value, direction) {
  4495. var other = createDuration(input, value);
  4496. duration._milliseconds += direction * other._milliseconds;
  4497. duration._days += direction * other._days;
  4498. duration._months += direction * other._months;
  4499. return duration._bubble();
  4500. }
  4501. // supports only 2.0-style add(1, 's') or add(duration)
  4502. function add$1(input, value) {
  4503. return addSubtract$1(this, input, value, 1);
  4504. }
  4505. // supports only 2.0-style subtract(1, 's') or subtract(duration)
  4506. function subtract$1(input, value) {
  4507. return addSubtract$1(this, input, value, -1);
  4508. }
  4509. function absCeil(number) {
  4510. if (number < 0) {
  4511. return Math.floor(number);
  4512. } else {
  4513. return Math.ceil(number);
  4514. }
  4515. }
  4516. function bubble() {
  4517. var milliseconds = this._milliseconds,
  4518. days = this._days,
  4519. months = this._months,
  4520. data = this._data,
  4521. seconds,
  4522. minutes,
  4523. hours,
  4524. years,
  4525. monthsFromDays;
  4526. // if we have a mix of positive and negative values, bubble down first
  4527. // check: https://github.com/moment/moment/issues/2166
  4528. if (
  4529. !(
  4530. (milliseconds >= 0 && days >= 0 && months >= 0) ||
  4531. (milliseconds <= 0 && days <= 0 && months <= 0)
  4532. )
  4533. ) {
  4534. milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
  4535. days = 0;
  4536. months = 0;
  4537. }
  4538. // The following code bubbles up values, see the tests for
  4539. // examples of what that means.
  4540. data.milliseconds = milliseconds % 1000;
  4541. seconds = absFloor(milliseconds / 1000);
  4542. data.seconds = seconds % 60;
  4543. minutes = absFloor(seconds / 60);
  4544. data.minutes = minutes % 60;
  4545. hours = absFloor(minutes / 60);
  4546. data.hours = hours % 24;
  4547. days += absFloor(hours / 24);
  4548. // convert days to months
  4549. monthsFromDays = absFloor(daysToMonths(days));
  4550. months += monthsFromDays;
  4551. days -= absCeil(monthsToDays(monthsFromDays));
  4552. // 12 months -> 1 year
  4553. years = absFloor(months / 12);
  4554. months %= 12;
  4555. data.days = days;
  4556. data.months = months;
  4557. data.years = years;
  4558. return this;
  4559. }
  4560. function daysToMonths(days) {
  4561. // 400 years have 146097 days (taking into account leap year rules)
  4562. // 400 years have 12 months === 4800
  4563. return (days * 4800) / 146097;
  4564. }
  4565. function monthsToDays(months) {
  4566. // the reverse of daysToMonths
  4567. return (months * 146097) / 4800;
  4568. }
  4569. function as(units) {
  4570. if (!this.isValid()) {
  4571. return NaN;
  4572. }
  4573. var days,
  4574. months,
  4575. milliseconds = this._milliseconds;
  4576. units = normalizeUnits(units);
  4577. if (units === 'month' || units === 'quarter' || units === 'year') {
  4578. days = this._days + milliseconds / 864e5;
  4579. months = this._months + daysToMonths(days);
  4580. switch (units) {
  4581. case 'month':
  4582. return months;
  4583. case 'quarter':
  4584. return months / 3;
  4585. case 'year':
  4586. return months / 12;
  4587. }
  4588. } else {
  4589. // handle milliseconds separately because of floating point math errors (issue #1867)
  4590. days = this._days + Math.round(monthsToDays(this._months));
  4591. switch (units) {
  4592. case 'week':
  4593. return days / 7 + milliseconds / 6048e5;
  4594. case 'day':
  4595. return days + milliseconds / 864e5;
  4596. case 'hour':
  4597. return days * 24 + milliseconds / 36e5;
  4598. case 'minute':
  4599. return days * 1440 + milliseconds / 6e4;
  4600. case 'second':
  4601. return days * 86400 + milliseconds / 1000;
  4602. // Math.floor prevents floating point math errors here
  4603. case 'millisecond':
  4604. return Math.floor(days * 864e5) + milliseconds;
  4605. default:
  4606. throw new Error('Unknown unit ' + units);
  4607. }
  4608. }
  4609. }
  4610. // TODO: Use this.as('ms')?
  4611. function valueOf$1() {
  4612. if (!this.isValid()) {
  4613. return NaN;
  4614. }
  4615. return (
  4616. this._milliseconds +
  4617. this._days * 864e5 +
  4618. (this._months % 12) * 2592e6 +
  4619. toInt(this._months / 12) * 31536e6
  4620. );
  4621. }
  4622. function makeAs(alias) {
  4623. return function () {
  4624. return this.as(alias);
  4625. };
  4626. }
  4627. var asMilliseconds = makeAs('ms'),
  4628. asSeconds = makeAs('s'),
  4629. asMinutes = makeAs('m'),
  4630. asHours = makeAs('h'),
  4631. asDays = makeAs('d'),
  4632. asWeeks = makeAs('w'),
  4633. asMonths = makeAs('M'),
  4634. asQuarters = makeAs('Q'),
  4635. asYears = makeAs('y');
  4636. function clone$1() {
  4637. return createDuration(this);
  4638. }
  4639. function get$2(units) {
  4640. units = normalizeUnits(units);
  4641. return this.isValid() ? this[units + 's']() : NaN;
  4642. }
  4643. function makeGetter(name) {
  4644. return function () {
  4645. return this.isValid() ? this._data[name] : NaN;
  4646. };
  4647. }
  4648. var milliseconds = makeGetter('milliseconds'),
  4649. seconds = makeGetter('seconds'),
  4650. minutes = makeGetter('minutes'),
  4651. hours = makeGetter('hours'),
  4652. days = makeGetter('days'),
  4653. months = makeGetter('months'),
  4654. years = makeGetter('years');
  4655. function weeks() {
  4656. return absFloor(this.days() / 7);
  4657. }
  4658. var round = Math.round,
  4659. thresholds = {
  4660. ss: 44, // a few seconds to seconds
  4661. s: 45, // seconds to minute
  4662. m: 45, // minutes to hour
  4663. h: 22, // hours to day
  4664. d: 26, // days to month/week
  4665. w: null, // weeks to month
  4666. M: 11, // months to year
  4667. };
  4668. // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
  4669. function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
  4670. return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
  4671. }
  4672. function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) {
  4673. var duration = createDuration(posNegDuration).abs(),
  4674. seconds = round(duration.as('s')),
  4675. minutes = round(duration.as('m')),
  4676. hours = round(duration.as('h')),
  4677. days = round(duration.as('d')),
  4678. months = round(duration.as('M')),
  4679. weeks = round(duration.as('w')),
  4680. years = round(duration.as('y')),
  4681. a =
  4682. (seconds <= thresholds.ss && ['s', seconds]) ||
  4683. (seconds < thresholds.s && ['ss', seconds]) ||
  4684. (minutes <= 1 && ['m']) ||
  4685. (minutes < thresholds.m && ['mm', minutes]) ||
  4686. (hours <= 1 && ['h']) ||
  4687. (hours < thresholds.h && ['hh', hours]) ||
  4688. (days <= 1 && ['d']) ||
  4689. (days < thresholds.d && ['dd', days]);
  4690. if (thresholds.w != null) {
  4691. a =
  4692. a ||
  4693. (weeks <= 1 && ['w']) ||
  4694. (weeks < thresholds.w && ['ww', weeks]);
  4695. }
  4696. a = a ||
  4697. (months <= 1 && ['M']) ||
  4698. (months < thresholds.M && ['MM', months]) ||
  4699. (years <= 1 && ['y']) || ['yy', years];
  4700. a[2] = withoutSuffix;
  4701. a[3] = +posNegDuration > 0;
  4702. a[4] = locale;
  4703. return substituteTimeAgo.apply(null, a);
  4704. }
  4705. // This function allows you to set the rounding function for relative time strings
  4706. function getSetRelativeTimeRounding(roundingFunction) {
  4707. if (roundingFunction === undefined) {
  4708. return round;
  4709. }
  4710. if (typeof roundingFunction === 'function') {
  4711. round = roundingFunction;
  4712. return true;
  4713. }
  4714. return false;
  4715. }
  4716. // This function allows you to set a threshold for relative time strings
  4717. function getSetRelativeTimeThreshold(threshold, limit) {
  4718. if (thresholds[threshold] === undefined) {
  4719. return false;
  4720. }
  4721. if (limit === undefined) {
  4722. return thresholds[threshold];
  4723. }
  4724. thresholds[threshold] = limit;
  4725. if (threshold === 's') {
  4726. thresholds.ss = limit - 1;
  4727. }
  4728. return true;
  4729. }
  4730. function humanize(argWithSuffix, argThresholds) {
  4731. if (!this.isValid()) {
  4732. return this.localeData().invalidDate();
  4733. }
  4734. var withSuffix = false,
  4735. th = thresholds,
  4736. locale,
  4737. output;
  4738. if (typeof argWithSuffix === 'object') {
  4739. argThresholds = argWithSuffix;
  4740. argWithSuffix = false;
  4741. }
  4742. if (typeof argWithSuffix === 'boolean') {
  4743. withSuffix = argWithSuffix;
  4744. }
  4745. if (typeof argThresholds === 'object') {
  4746. th = Object.assign({}, thresholds, argThresholds);
  4747. if (argThresholds.s != null && argThresholds.ss == null) {
  4748. th.ss = argThresholds.s - 1;
  4749. }
  4750. }
  4751. locale = this.localeData();
  4752. output = relativeTime$1(this, !withSuffix, th, locale);
  4753. if (withSuffix) {
  4754. output = locale.pastFuture(+this, output);
  4755. }
  4756. return locale.postformat(output);
  4757. }
  4758. var abs$1 = Math.abs;
  4759. function sign(x) {
  4760. return (x > 0) - (x < 0) || +x;
  4761. }
  4762. function toISOString$1() {
  4763. // for ISO strings we do not use the normal bubbling rules:
  4764. // * milliseconds bubble up until they become hours
  4765. // * days do not bubble at all
  4766. // * months bubble up until they become years
  4767. // This is because there is no context-free conversion between hours and days
  4768. // (think of clock changes)
  4769. // and also not between days and months (28-31 days per month)
  4770. if (!this.isValid()) {
  4771. return this.localeData().invalidDate();
  4772. }
  4773. var seconds = abs$1(this._milliseconds) / 1000,
  4774. days = abs$1(this._days),
  4775. months = abs$1(this._months),
  4776. minutes,
  4777. hours,
  4778. years,
  4779. s,
  4780. total = this.asSeconds(),
  4781. totalSign,
  4782. ymSign,
  4783. daysSign,
  4784. hmsSign;
  4785. if (!total) {
  4786. // this is the same as C#'s (Noda) and python (isodate)...
  4787. // but not other JS (goog.date)
  4788. return 'P0D';
  4789. }
  4790. // 3600 seconds -> 60 minutes -> 1 hour
  4791. minutes = absFloor(seconds / 60);
  4792. hours = absFloor(minutes / 60);
  4793. seconds %= 60;
  4794. minutes %= 60;
  4795. // 12 months -> 1 year
  4796. years = absFloor(months / 12);
  4797. months %= 12;
  4798. // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
  4799. s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : '';
  4800. totalSign = total < 0 ? '-' : '';
  4801. ymSign = sign(this._months) !== sign(total) ? '-' : '';
  4802. daysSign = sign(this._days) !== sign(total) ? '-' : '';
  4803. hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';
  4804. return (
  4805. totalSign +
  4806. 'P' +
  4807. (years ? ymSign + years + 'Y' : '') +
  4808. (months ? ymSign + months + 'M' : '') +
  4809. (days ? daysSign + days + 'D' : '') +
  4810. (hours || minutes || seconds ? 'T' : '') +
  4811. (hours ? hmsSign + hours + 'H' : '') +
  4812. (minutes ? hmsSign + minutes + 'M' : '') +
  4813. (seconds ? hmsSign + s + 'S' : '')
  4814. );
  4815. }
  4816. var proto$2 = Duration.prototype;
  4817. proto$2.isValid = isValid$1;
  4818. proto$2.abs = abs;
  4819. proto$2.add = add$1;
  4820. proto$2.subtract = subtract$1;
  4821. proto$2.as = as;
  4822. proto$2.asMilliseconds = asMilliseconds;
  4823. proto$2.asSeconds = asSeconds;
  4824. proto$2.asMinutes = asMinutes;
  4825. proto$2.asHours = asHours;
  4826. proto$2.asDays = asDays;
  4827. proto$2.asWeeks = asWeeks;
  4828. proto$2.asMonths = asMonths;
  4829. proto$2.asQuarters = asQuarters;
  4830. proto$2.asYears = asYears;
  4831. proto$2.valueOf = valueOf$1;
  4832. proto$2._bubble = bubble;
  4833. proto$2.clone = clone$1;
  4834. proto$2.get = get$2;
  4835. proto$2.milliseconds = milliseconds;
  4836. proto$2.seconds = seconds;
  4837. proto$2.minutes = minutes;
  4838. proto$2.hours = hours;
  4839. proto$2.days = days;
  4840. proto$2.weeks = weeks;
  4841. proto$2.months = months;
  4842. proto$2.years = years;
  4843. proto$2.humanize = humanize;
  4844. proto$2.toISOString = toISOString$1;
  4845. proto$2.toString = toISOString$1;
  4846. proto$2.toJSON = toISOString$1;
  4847. proto$2.locale = locale;
  4848. proto$2.localeData = localeData;
  4849. proto$2.toIsoString = deprecate(
  4850. 'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',
  4851. toISOString$1
  4852. );
  4853. proto$2.lang = lang;
  4854. // FORMATTING
  4855. addFormatToken('X', 0, 0, 'unix');
  4856. addFormatToken('x', 0, 0, 'valueOf');
  4857. // PARSING
  4858. addRegexToken('x', matchSigned);
  4859. addRegexToken('X', matchTimestamp);
  4860. addParseToken('X', function (input, array, config) {
  4861. config._d = new Date(parseFloat(input) * 1000);
  4862. });
  4863. addParseToken('x', function (input, array, config) {
  4864. config._d = new Date(toInt(input));
  4865. });
  4866. //! moment.js
  4867. hooks.version = '2.29.0';
  4868. setHookCallback(createLocal);
  4869. hooks.fn = proto;
  4870. hooks.min = min;
  4871. hooks.max = max;
  4872. hooks.now = now;
  4873. hooks.utc = createUTC;
  4874. hooks.unix = createUnix;
  4875. hooks.months = listMonths;
  4876. hooks.isDate = isDate;
  4877. hooks.locale = getSetGlobalLocale;
  4878. hooks.invalid = createInvalid;
  4879. hooks.duration = createDuration;
  4880. hooks.isMoment = isMoment;
  4881. hooks.weekdays = listWeekdays;
  4882. hooks.parseZone = createInZone;
  4883. hooks.localeData = getLocale;
  4884. hooks.isDuration = isDuration;
  4885. hooks.monthsShort = listMonthsShort;
  4886. hooks.weekdaysMin = listWeekdaysMin;
  4887. hooks.defineLocale = defineLocale;
  4888. hooks.updateLocale = updateLocale;
  4889. hooks.locales = listLocales;
  4890. hooks.weekdaysShort = listWeekdaysShort;
  4891. hooks.normalizeUnits = normalizeUnits;
  4892. hooks.relativeTimeRounding = getSetRelativeTimeRounding;
  4893. hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
  4894. hooks.calendarFormat = getCalendarFormat;
  4895. hooks.prototype = proto;
  4896. // currently HTML5 input type only supports 24-hour formats
  4897. hooks.HTML5_FMT = {
  4898. DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // <input type="datetime-local" />
  4899. DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // <input type="datetime-local" step="1" />
  4900. DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // <input type="datetime-local" step="0.001" />
  4901. DATE: 'YYYY-MM-DD', // <input type="date" />
  4902. TIME: 'HH:mm', // <input type="time" />
  4903. TIME_SECONDS: 'HH:mm:ss', // <input type="time" step="1" />
  4904. TIME_MS: 'HH:mm:ss.SSS', // <input type="time" step="0.001" />
  4905. WEEK: 'GGGG-[W]WW', // <input type="week" />
  4906. MONTH: 'YYYY-MM', // <input type="month" />
  4907. };
  4908. //! moment.js locale configuration
  4909. hooks.defineLocale('af', {
  4910. months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split(
  4911. '_'
  4912. ),
  4913. monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
  4914. weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split(
  4915. '_'
  4916. ),
  4917. weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
  4918. weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
  4919. meridiemParse: /vm|nm/i,
  4920. isPM: function (input) {
  4921. return /^nm$/i.test(input);
  4922. },
  4923. meridiem: function (hours, minutes, isLower) {
  4924. if (hours < 12) {
  4925. return isLower ? 'vm' : 'VM';
  4926. } else {
  4927. return isLower ? 'nm' : 'NM';
  4928. }
  4929. },
  4930. longDateFormat: {
  4931. LT: 'HH:mm',
  4932. LTS: 'HH:mm:ss',
  4933. L: 'DD/MM/YYYY',
  4934. LL: 'D MMMM YYYY',
  4935. LLL: 'D MMMM YYYY HH:mm',
  4936. LLLL: 'dddd, D MMMM YYYY HH:mm',
  4937. },
  4938. calendar: {
  4939. sameDay: '[Vandag om] LT',
  4940. nextDay: '[Môre om] LT',
  4941. nextWeek: 'dddd [om] LT',
  4942. lastDay: '[Gister om] LT',
  4943. lastWeek: '[Laas] dddd [om] LT',
  4944. sameElse: 'L',
  4945. },
  4946. relativeTime: {
  4947. future: 'oor %s',
  4948. past: '%s gelede',
  4949. s: "'n paar sekondes",
  4950. ss: '%d sekondes',
  4951. m: "'n minuut",
  4952. mm: '%d minute',
  4953. h: "'n uur",
  4954. hh: '%d ure',
  4955. d: "'n dag",
  4956. dd: '%d dae',
  4957. M: "'n maand",
  4958. MM: '%d maande',
  4959. y: "'n jaar",
  4960. yy: '%d jaar',
  4961. },
  4962. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  4963. ordinal: function (number) {
  4964. return (
  4965. number +
  4966. (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
  4967. ); // Thanks to Joris Röling : https://github.com/jjupiter
  4968. },
  4969. week: {
  4970. dow: 1, // Maandag is die eerste dag van die week.
  4971. doy: 4, // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
  4972. },
  4973. });
  4974. //! moment.js locale configuration
  4975. var pluralForm = function (n) {
  4976. return n === 0
  4977. ? 0
  4978. : n === 1
  4979. ? 1
  4980. : n === 2
  4981. ? 2
  4982. : n % 100 >= 3 && n % 100 <= 10
  4983. ? 3
  4984. : n % 100 >= 11
  4985. ? 4
  4986. : 5;
  4987. },
  4988. plurals = {
  4989. s: [
  4990. 'أقل من ثانية',
  4991. 'ثانية واحدة',
  4992. ['ثانيتان', 'ثانيتين'],
  4993. '%d ثوان',
  4994. '%d ثانية',
  4995. '%d ثانية',
  4996. ],
  4997. m: [
  4998. 'أقل من دقيقة',
  4999. 'دقيقة واحدة',
  5000. ['دقيقتان', 'دقيقتين'],
  5001. '%d دقائق',
  5002. '%d دقيقة',
  5003. '%d دقيقة',
  5004. ],
  5005. h: [
  5006. 'أقل من ساعة',
  5007. 'ساعة واحدة',
  5008. ['ساعتان', 'ساعتين'],
  5009. '%d ساعات',
  5010. '%d ساعة',
  5011. '%d ساعة',
  5012. ],
  5013. d: [
  5014. 'أقل من يوم',
  5015. 'يوم واحد',
  5016. ['يومان', 'يومين'],
  5017. '%d أيام',
  5018. '%d يومًا',
  5019. '%d يوم',
  5020. ],
  5021. M: [
  5022. 'أقل من شهر',
  5023. 'شهر واحد',
  5024. ['شهران', 'شهرين'],
  5025. '%d أشهر',
  5026. '%d شهرا',
  5027. '%d شهر',
  5028. ],
  5029. y: [
  5030. 'أقل من عام',
  5031. 'عام واحد',
  5032. ['عامان', 'عامين'],
  5033. '%d أعوام',
  5034. '%d عامًا',
  5035. '%d عام',
  5036. ],
  5037. },
  5038. pluralize = function (u) {
  5039. return function (number, withoutSuffix, string, isFuture) {
  5040. var f = pluralForm(number),
  5041. str = plurals[u][pluralForm(number)];
  5042. if (f === 2) {
  5043. str = str[withoutSuffix ? 0 : 1];
  5044. }
  5045. return str.replace(/%d/i, number);
  5046. };
  5047. },
  5048. months$1 = [
  5049. 'جانفي',
  5050. 'فيفري',
  5051. 'مارس',
  5052. 'أفريل',
  5053. 'ماي',
  5054. 'جوان',
  5055. 'جويلية',
  5056. 'أوت',
  5057. 'سبتمبر',
  5058. 'أكتوبر',
  5059. 'نوفمبر',
  5060. 'ديسمبر',
  5061. ];
  5062. hooks.defineLocale('ar-dz', {
  5063. months: months$1,
  5064. monthsShort: months$1,
  5065. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5066. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5067. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5068. weekdaysParseExact: true,
  5069. longDateFormat: {
  5070. LT: 'HH:mm',
  5071. LTS: 'HH:mm:ss',
  5072. L: 'D/\u200FM/\u200FYYYY',
  5073. LL: 'D MMMM YYYY',
  5074. LLL: 'D MMMM YYYY HH:mm',
  5075. LLLL: 'dddd D MMMM YYYY HH:mm',
  5076. },
  5077. meridiemParse: /ص|م/,
  5078. isPM: function (input) {
  5079. return 'م' === input;
  5080. },
  5081. meridiem: function (hour, minute, isLower) {
  5082. if (hour < 12) {
  5083. return 'ص';
  5084. } else {
  5085. return 'م';
  5086. }
  5087. },
  5088. calendar: {
  5089. sameDay: '[اليوم عند الساعة] LT',
  5090. nextDay: '[غدًا عند الساعة] LT',
  5091. nextWeek: 'dddd [عند الساعة] LT',
  5092. lastDay: '[أمس عند الساعة] LT',
  5093. lastWeek: 'dddd [عند الساعة] LT',
  5094. sameElse: 'L',
  5095. },
  5096. relativeTime: {
  5097. future: 'بعد %s',
  5098. past: 'منذ %s',
  5099. s: pluralize('s'),
  5100. ss: pluralize('s'),
  5101. m: pluralize('m'),
  5102. mm: pluralize('m'),
  5103. h: pluralize('h'),
  5104. hh: pluralize('h'),
  5105. d: pluralize('d'),
  5106. dd: pluralize('d'),
  5107. M: pluralize('M'),
  5108. MM: pluralize('M'),
  5109. y: pluralize('y'),
  5110. yy: pluralize('y'),
  5111. },
  5112. postformat: function (string) {
  5113. return string.replace(/,/g, '،');
  5114. },
  5115. week: {
  5116. dow: 0, // Sunday is the first day of the week.
  5117. doy: 4, // The week that contains Jan 4th is the first week of the year.
  5118. },
  5119. });
  5120. //! moment.js locale configuration
  5121. hooks.defineLocale('ar-kw', {
  5122. months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
  5123. '_'
  5124. ),
  5125. monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
  5126. '_'
  5127. ),
  5128. weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5129. weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  5130. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5131. weekdaysParseExact: true,
  5132. longDateFormat: {
  5133. LT: 'HH:mm',
  5134. LTS: 'HH:mm:ss',
  5135. L: 'DD/MM/YYYY',
  5136. LL: 'D MMMM YYYY',
  5137. LLL: 'D MMMM YYYY HH:mm',
  5138. LLLL: 'dddd D MMMM YYYY HH:mm',
  5139. },
  5140. calendar: {
  5141. sameDay: '[اليوم على الساعة] LT',
  5142. nextDay: '[غدا على الساعة] LT',
  5143. nextWeek: 'dddd [على الساعة] LT',
  5144. lastDay: '[أمس على الساعة] LT',
  5145. lastWeek: 'dddd [على الساعة] LT',
  5146. sameElse: 'L',
  5147. },
  5148. relativeTime: {
  5149. future: 'في %s',
  5150. past: 'منذ %s',
  5151. s: 'ثوان',
  5152. ss: '%d ثانية',
  5153. m: 'دقيقة',
  5154. mm: '%d دقائق',
  5155. h: 'ساعة',
  5156. hh: '%d ساعات',
  5157. d: 'يوم',
  5158. dd: '%d أيام',
  5159. M: 'شهر',
  5160. MM: '%d أشهر',
  5161. y: 'سنة',
  5162. yy: '%d سنوات',
  5163. },
  5164. week: {
  5165. dow: 0, // Sunday is the first day of the week.
  5166. doy: 12, // The week that contains Jan 12th is the first week of the year.
  5167. },
  5168. });
  5169. //! moment.js locale configuration
  5170. var symbolMap = {
  5171. 1: '1',
  5172. 2: '2',
  5173. 3: '3',
  5174. 4: '4',
  5175. 5: '5',
  5176. 6: '6',
  5177. 7: '7',
  5178. 8: '8',
  5179. 9: '9',
  5180. 0: '0',
  5181. },
  5182. pluralForm$1 = function (n) {
  5183. return n === 0
  5184. ? 0
  5185. : n === 1
  5186. ? 1
  5187. : n === 2
  5188. ? 2
  5189. : n % 100 >= 3 && n % 100 <= 10
  5190. ? 3
  5191. : n % 100 >= 11
  5192. ? 4
  5193. : 5;
  5194. },
  5195. plurals$1 = {
  5196. s: [
  5197. 'أقل من ثانية',
  5198. 'ثانية واحدة',
  5199. ['ثانيتان', 'ثانيتين'],
  5200. '%d ثوان',
  5201. '%d ثانية',
  5202. '%d ثانية',
  5203. ],
  5204. m: [
  5205. 'أقل من دقيقة',
  5206. 'دقيقة واحدة',
  5207. ['دقيقتان', 'دقيقتين'],
  5208. '%d دقائق',
  5209. '%d دقيقة',
  5210. '%d دقيقة',
  5211. ],
  5212. h: [
  5213. 'أقل من ساعة',
  5214. 'ساعة واحدة',
  5215. ['ساعتان', 'ساعتين'],
  5216. '%d ساعات',
  5217. '%d ساعة',
  5218. '%d ساعة',
  5219. ],
  5220. d: [
  5221. 'أقل من يوم',
  5222. 'يوم واحد',
  5223. ['يومان', 'يومين'],
  5224. '%d أيام',
  5225. '%d يومًا',
  5226. '%d يوم',
  5227. ],
  5228. M: [
  5229. 'أقل من شهر',
  5230. 'شهر واحد',
  5231. ['شهران', 'شهرين'],
  5232. '%d أشهر',
  5233. '%d شهرا',
  5234. '%d شهر',
  5235. ],
  5236. y: [
  5237. 'أقل من عام',
  5238. 'عام واحد',
  5239. ['عامان', 'عامين'],
  5240. '%d أعوام',
  5241. '%d عامًا',
  5242. '%d عام',
  5243. ],
  5244. },
  5245. pluralize$1 = function (u) {
  5246. return function (number, withoutSuffix, string, isFuture) {
  5247. var f = pluralForm$1(number),
  5248. str = plurals$1[u][pluralForm$1(number)];
  5249. if (f === 2) {
  5250. str = str[withoutSuffix ? 0 : 1];
  5251. }
  5252. return str.replace(/%d/i, number);
  5253. };
  5254. },
  5255. months$2 = [
  5256. 'يناير',
  5257. 'فبراير',
  5258. 'مارس',
  5259. 'أبريل',
  5260. 'مايو',
  5261. 'يونيو',
  5262. 'يوليو',
  5263. 'أغسطس',
  5264. 'سبتمبر',
  5265. 'أكتوبر',
  5266. 'نوفمبر',
  5267. 'ديسمبر',
  5268. ];
  5269. hooks.defineLocale('ar-ly', {
  5270. months: months$2,
  5271. monthsShort: months$2,
  5272. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5273. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5274. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5275. weekdaysParseExact: true,
  5276. longDateFormat: {
  5277. LT: 'HH:mm',
  5278. LTS: 'HH:mm:ss',
  5279. L: 'D/\u200FM/\u200FYYYY',
  5280. LL: 'D MMMM YYYY',
  5281. LLL: 'D MMMM YYYY HH:mm',
  5282. LLLL: 'dddd D MMMM YYYY HH:mm',
  5283. },
  5284. meridiemParse: /ص|م/,
  5285. isPM: function (input) {
  5286. return 'م' === input;
  5287. },
  5288. meridiem: function (hour, minute, isLower) {
  5289. if (hour < 12) {
  5290. return 'ص';
  5291. } else {
  5292. return 'م';
  5293. }
  5294. },
  5295. calendar: {
  5296. sameDay: '[اليوم عند الساعة] LT',
  5297. nextDay: '[غدًا عند الساعة] LT',
  5298. nextWeek: 'dddd [عند الساعة] LT',
  5299. lastDay: '[أمس عند الساعة] LT',
  5300. lastWeek: 'dddd [عند الساعة] LT',
  5301. sameElse: 'L',
  5302. },
  5303. relativeTime: {
  5304. future: 'بعد %s',
  5305. past: 'منذ %s',
  5306. s: pluralize$1('s'),
  5307. ss: pluralize$1('s'),
  5308. m: pluralize$1('m'),
  5309. mm: pluralize$1('m'),
  5310. h: pluralize$1('h'),
  5311. hh: pluralize$1('h'),
  5312. d: pluralize$1('d'),
  5313. dd: pluralize$1('d'),
  5314. M: pluralize$1('M'),
  5315. MM: pluralize$1('M'),
  5316. y: pluralize$1('y'),
  5317. yy: pluralize$1('y'),
  5318. },
  5319. preparse: function (string) {
  5320. return string.replace(/،/g, ',');
  5321. },
  5322. postformat: function (string) {
  5323. return string
  5324. .replace(/\d/g, function (match) {
  5325. return symbolMap[match];
  5326. })
  5327. .replace(/,/g, '،');
  5328. },
  5329. week: {
  5330. dow: 6, // Saturday is the first day of the week.
  5331. doy: 12, // The week that contains Jan 12th is the first week of the year.
  5332. },
  5333. });
  5334. //! moment.js locale configuration
  5335. hooks.defineLocale('ar-ma', {
  5336. months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
  5337. '_'
  5338. ),
  5339. monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split(
  5340. '_'
  5341. ),
  5342. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5343. weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  5344. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5345. weekdaysParseExact: true,
  5346. longDateFormat: {
  5347. LT: 'HH:mm',
  5348. LTS: 'HH:mm:ss',
  5349. L: 'DD/MM/YYYY',
  5350. LL: 'D MMMM YYYY',
  5351. LLL: 'D MMMM YYYY HH:mm',
  5352. LLLL: 'dddd D MMMM YYYY HH:mm',
  5353. },
  5354. calendar: {
  5355. sameDay: '[اليوم على الساعة] LT',
  5356. nextDay: '[غدا على الساعة] LT',
  5357. nextWeek: 'dddd [على الساعة] LT',
  5358. lastDay: '[أمس على الساعة] LT',
  5359. lastWeek: 'dddd [على الساعة] LT',
  5360. sameElse: 'L',
  5361. },
  5362. relativeTime: {
  5363. future: 'في %s',
  5364. past: 'منذ %s',
  5365. s: 'ثوان',
  5366. ss: '%d ثانية',
  5367. m: 'دقيقة',
  5368. mm: '%d دقائق',
  5369. h: 'ساعة',
  5370. hh: '%d ساعات',
  5371. d: 'يوم',
  5372. dd: '%d أيام',
  5373. M: 'شهر',
  5374. MM: '%d أشهر',
  5375. y: 'سنة',
  5376. yy: '%d سنوات',
  5377. },
  5378. week: {
  5379. dow: 1, // Monday is the first day of the week.
  5380. doy: 4, // The week that contains Jan 4th is the first week of the year.
  5381. },
  5382. });
  5383. //! moment.js locale configuration
  5384. var symbolMap$1 = {
  5385. 1: '١',
  5386. 2: '٢',
  5387. 3: '٣',
  5388. 4: '٤',
  5389. 5: '٥',
  5390. 6: '٦',
  5391. 7: '٧',
  5392. 8: '٨',
  5393. 9: '٩',
  5394. 0: '٠',
  5395. },
  5396. numberMap = {
  5397. '١': '1',
  5398. '٢': '2',
  5399. '٣': '3',
  5400. '٤': '4',
  5401. '٥': '5',
  5402. '٦': '6',
  5403. '٧': '7',
  5404. '٨': '8',
  5405. '٩': '9',
  5406. '٠': '0',
  5407. };
  5408. hooks.defineLocale('ar-sa', {
  5409. months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
  5410. '_'
  5411. ),
  5412. monthsShort: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
  5413. '_'
  5414. ),
  5415. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5416. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5417. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5418. weekdaysParseExact: true,
  5419. longDateFormat: {
  5420. LT: 'HH:mm',
  5421. LTS: 'HH:mm:ss',
  5422. L: 'DD/MM/YYYY',
  5423. LL: 'D MMMM YYYY',
  5424. LLL: 'D MMMM YYYY HH:mm',
  5425. LLLL: 'dddd D MMMM YYYY HH:mm',
  5426. },
  5427. meridiemParse: /ص|م/,
  5428. isPM: function (input) {
  5429. return 'م' === input;
  5430. },
  5431. meridiem: function (hour, minute, isLower) {
  5432. if (hour < 12) {
  5433. return 'ص';
  5434. } else {
  5435. return 'م';
  5436. }
  5437. },
  5438. calendar: {
  5439. sameDay: '[اليوم على الساعة] LT',
  5440. nextDay: '[غدا على الساعة] LT',
  5441. nextWeek: 'dddd [على الساعة] LT',
  5442. lastDay: '[أمس على الساعة] LT',
  5443. lastWeek: 'dddd [على الساعة] LT',
  5444. sameElse: 'L',
  5445. },
  5446. relativeTime: {
  5447. future: 'في %s',
  5448. past: 'منذ %s',
  5449. s: 'ثوان',
  5450. ss: '%d ثانية',
  5451. m: 'دقيقة',
  5452. mm: '%d دقائق',
  5453. h: 'ساعة',
  5454. hh: '%d ساعات',
  5455. d: 'يوم',
  5456. dd: '%d أيام',
  5457. M: 'شهر',
  5458. MM: '%d أشهر',
  5459. y: 'سنة',
  5460. yy: '%d سنوات',
  5461. },
  5462. preparse: function (string) {
  5463. return string
  5464. .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  5465. return numberMap[match];
  5466. })
  5467. .replace(/،/g, ',');
  5468. },
  5469. postformat: function (string) {
  5470. return string
  5471. .replace(/\d/g, function (match) {
  5472. return symbolMap$1[match];
  5473. })
  5474. .replace(/,/g, '،');
  5475. },
  5476. week: {
  5477. dow: 0, // Sunday is the first day of the week.
  5478. doy: 6, // The week that contains Jan 6th is the first week of the year.
  5479. },
  5480. });
  5481. //! moment.js locale configuration
  5482. hooks.defineLocale('ar-tn', {
  5483. months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
  5484. '_'
  5485. ),
  5486. monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split(
  5487. '_'
  5488. ),
  5489. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5490. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5491. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5492. weekdaysParseExact: true,
  5493. longDateFormat: {
  5494. LT: 'HH:mm',
  5495. LTS: 'HH:mm:ss',
  5496. L: 'DD/MM/YYYY',
  5497. LL: 'D MMMM YYYY',
  5498. LLL: 'D MMMM YYYY HH:mm',
  5499. LLLL: 'dddd D MMMM YYYY HH:mm',
  5500. },
  5501. calendar: {
  5502. sameDay: '[اليوم على الساعة] LT',
  5503. nextDay: '[غدا على الساعة] LT',
  5504. nextWeek: 'dddd [على الساعة] LT',
  5505. lastDay: '[أمس على الساعة] LT',
  5506. lastWeek: 'dddd [على الساعة] LT',
  5507. sameElse: 'L',
  5508. },
  5509. relativeTime: {
  5510. future: 'في %s',
  5511. past: 'منذ %s',
  5512. s: 'ثوان',
  5513. ss: '%d ثانية',
  5514. m: 'دقيقة',
  5515. mm: '%d دقائق',
  5516. h: 'ساعة',
  5517. hh: '%d ساعات',
  5518. d: 'يوم',
  5519. dd: '%d أيام',
  5520. M: 'شهر',
  5521. MM: '%d أشهر',
  5522. y: 'سنة',
  5523. yy: '%d سنوات',
  5524. },
  5525. week: {
  5526. dow: 1, // Monday is the first day of the week.
  5527. doy: 4, // The week that contains Jan 4th is the first week of the year.
  5528. },
  5529. });
  5530. //! moment.js locale configuration
  5531. var symbolMap$2 = {
  5532. 1: '١',
  5533. 2: '٢',
  5534. 3: '٣',
  5535. 4: '٤',
  5536. 5: '٥',
  5537. 6: '٦',
  5538. 7: '٧',
  5539. 8: '٨',
  5540. 9: '٩',
  5541. 0: '٠',
  5542. },
  5543. numberMap$1 = {
  5544. '١': '1',
  5545. '٢': '2',
  5546. '٣': '3',
  5547. '٤': '4',
  5548. '٥': '5',
  5549. '٦': '6',
  5550. '٧': '7',
  5551. '٨': '8',
  5552. '٩': '9',
  5553. '٠': '0',
  5554. },
  5555. pluralForm$2 = function (n) {
  5556. return n === 0
  5557. ? 0
  5558. : n === 1
  5559. ? 1
  5560. : n === 2
  5561. ? 2
  5562. : n % 100 >= 3 && n % 100 <= 10
  5563. ? 3
  5564. : n % 100 >= 11
  5565. ? 4
  5566. : 5;
  5567. },
  5568. plurals$2 = {
  5569. s: [
  5570. 'أقل من ثانية',
  5571. 'ثانية واحدة',
  5572. ['ثانيتان', 'ثانيتين'],
  5573. '%d ثوان',
  5574. '%d ثانية',
  5575. '%d ثانية',
  5576. ],
  5577. m: [
  5578. 'أقل من دقيقة',
  5579. 'دقيقة واحدة',
  5580. ['دقيقتان', 'دقيقتين'],
  5581. '%d دقائق',
  5582. '%d دقيقة',
  5583. '%d دقيقة',
  5584. ],
  5585. h: [
  5586. 'أقل من ساعة',
  5587. 'ساعة واحدة',
  5588. ['ساعتان', 'ساعتين'],
  5589. '%d ساعات',
  5590. '%d ساعة',
  5591. '%d ساعة',
  5592. ],
  5593. d: [
  5594. 'أقل من يوم',
  5595. 'يوم واحد',
  5596. ['يومان', 'يومين'],
  5597. '%d أيام',
  5598. '%d يومًا',
  5599. '%d يوم',
  5600. ],
  5601. M: [
  5602. 'أقل من شهر',
  5603. 'شهر واحد',
  5604. ['شهران', 'شهرين'],
  5605. '%d أشهر',
  5606. '%d شهرا',
  5607. '%d شهر',
  5608. ],
  5609. y: [
  5610. 'أقل من عام',
  5611. 'عام واحد',
  5612. ['عامان', 'عامين'],
  5613. '%d أعوام',
  5614. '%d عامًا',
  5615. '%d عام',
  5616. ],
  5617. },
  5618. pluralize$2 = function (u) {
  5619. return function (number, withoutSuffix, string, isFuture) {
  5620. var f = pluralForm$2(number),
  5621. str = plurals$2[u][pluralForm$2(number)];
  5622. if (f === 2) {
  5623. str = str[withoutSuffix ? 0 : 1];
  5624. }
  5625. return str.replace(/%d/i, number);
  5626. };
  5627. },
  5628. months$3 = [
  5629. 'يناير',
  5630. 'فبراير',
  5631. 'مارس',
  5632. 'أبريل',
  5633. 'مايو',
  5634. 'يونيو',
  5635. 'يوليو',
  5636. 'أغسطس',
  5637. 'سبتمبر',
  5638. 'أكتوبر',
  5639. 'نوفمبر',
  5640. 'ديسمبر',
  5641. ];
  5642. hooks.defineLocale('ar', {
  5643. months: months$3,
  5644. monthsShort: months$3,
  5645. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5646. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5647. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5648. weekdaysParseExact: true,
  5649. longDateFormat: {
  5650. LT: 'HH:mm',
  5651. LTS: 'HH:mm:ss',
  5652. L: 'D/\u200FM/\u200FYYYY',
  5653. LL: 'D MMMM YYYY',
  5654. LLL: 'D MMMM YYYY HH:mm',
  5655. LLLL: 'dddd D MMMM YYYY HH:mm',
  5656. },
  5657. meridiemParse: /ص|م/,
  5658. isPM: function (input) {
  5659. return 'م' === input;
  5660. },
  5661. meridiem: function (hour, minute, isLower) {
  5662. if (hour < 12) {
  5663. return 'ص';
  5664. } else {
  5665. return 'م';
  5666. }
  5667. },
  5668. calendar: {
  5669. sameDay: '[اليوم عند الساعة] LT',
  5670. nextDay: '[غدًا عند الساعة] LT',
  5671. nextWeek: 'dddd [عند الساعة] LT',
  5672. lastDay: '[أمس عند الساعة] LT',
  5673. lastWeek: 'dddd [عند الساعة] LT',
  5674. sameElse: 'L',
  5675. },
  5676. relativeTime: {
  5677. future: 'بعد %s',
  5678. past: 'منذ %s',
  5679. s: pluralize$2('s'),
  5680. ss: pluralize$2('s'),
  5681. m: pluralize$2('m'),
  5682. mm: pluralize$2('m'),
  5683. h: pluralize$2('h'),
  5684. hh: pluralize$2('h'),
  5685. d: pluralize$2('d'),
  5686. dd: pluralize$2('d'),
  5687. M: pluralize$2('M'),
  5688. MM: pluralize$2('M'),
  5689. y: pluralize$2('y'),
  5690. yy: pluralize$2('y'),
  5691. },
  5692. preparse: function (string) {
  5693. return string
  5694. .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  5695. return numberMap$1[match];
  5696. })
  5697. .replace(/،/g, ',');
  5698. },
  5699. postformat: function (string) {
  5700. return string
  5701. .replace(/\d/g, function (match) {
  5702. return symbolMap$2[match];
  5703. })
  5704. .replace(/,/g, '،');
  5705. },
  5706. week: {
  5707. dow: 6, // Saturday is the first day of the week.
  5708. doy: 12, // The week that contains Jan 12th is the first week of the year.
  5709. },
  5710. });
  5711. //! moment.js locale configuration
  5712. var suffixes = {
  5713. 1: '-inci',
  5714. 5: '-inci',
  5715. 8: '-inci',
  5716. 70: '-inci',
  5717. 80: '-inci',
  5718. 2: '-nci',
  5719. 7: '-nci',
  5720. 20: '-nci',
  5721. 50: '-nci',
  5722. 3: '-üncü',
  5723. 4: '-üncü',
  5724. 100: '-üncü',
  5725. 6: '-ncı',
  5726. 9: '-uncu',
  5727. 10: '-uncu',
  5728. 30: '-uncu',
  5729. 60: '-ıncı',
  5730. 90: '-ıncı',
  5731. };
  5732. hooks.defineLocale('az', {
  5733. months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split(
  5734. '_'
  5735. ),
  5736. monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
  5737. weekdays: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split(
  5738. '_'
  5739. ),
  5740. weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
  5741. weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
  5742. weekdaysParseExact: true,
  5743. longDateFormat: {
  5744. LT: 'HH:mm',
  5745. LTS: 'HH:mm:ss',
  5746. L: 'DD.MM.YYYY',
  5747. LL: 'D MMMM YYYY',
  5748. LLL: 'D MMMM YYYY HH:mm',
  5749. LLLL: 'dddd, D MMMM YYYY HH:mm',
  5750. },
  5751. calendar: {
  5752. sameDay: '[bugün saat] LT',
  5753. nextDay: '[sabah saat] LT',
  5754. nextWeek: '[gələn həftə] dddd [saat] LT',
  5755. lastDay: '[dünən] LT',
  5756. lastWeek: '[keçən həftə] dddd [saat] LT',
  5757. sameElse: 'L',
  5758. },
  5759. relativeTime: {
  5760. future: '%s sonra',
  5761. past: '%s əvvəl',
  5762. s: 'bir neçə saniyə',
  5763. ss: '%d saniyə',
  5764. m: 'bir dəqiqə',
  5765. mm: '%d dəqiqə',
  5766. h: 'bir saat',
  5767. hh: '%d saat',
  5768. d: 'bir gün',
  5769. dd: '%d gün',
  5770. M: 'bir ay',
  5771. MM: '%d ay',
  5772. y: 'bir il',
  5773. yy: '%d il',
  5774. },
  5775. meridiemParse: /gecə|səhər|gündüz|axşam/,
  5776. isPM: function (input) {
  5777. return /^(gündüz|axşam)$/.test(input);
  5778. },
  5779. meridiem: function (hour, minute, isLower) {
  5780. if (hour < 4) {
  5781. return 'gecə';
  5782. } else if (hour < 12) {
  5783. return 'səhər';
  5784. } else if (hour < 17) {
  5785. return 'gündüz';
  5786. } else {
  5787. return 'axşam';
  5788. }
  5789. },
  5790. dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
  5791. ordinal: function (number) {
  5792. if (number === 0) {
  5793. // special case for zero
  5794. return number + '-ıncı';
  5795. }
  5796. var a = number % 10,
  5797. b = (number % 100) - a,
  5798. c = number >= 100 ? 100 : null;
  5799. return number + (suffixes[a] || suffixes[b] || suffixes[c]);
  5800. },
  5801. week: {
  5802. dow: 1, // Monday is the first day of the week.
  5803. doy: 7, // The week that contains Jan 7th is the first week of the year.
  5804. },
  5805. });
  5806. //! moment.js locale configuration
  5807. function plural(word, num) {
  5808. var forms = word.split('_');
  5809. return num % 10 === 1 && num % 100 !== 11
  5810. ? forms[0]
  5811. : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
  5812. ? forms[1]
  5813. : forms[2];
  5814. }
  5815. function relativeTimeWithPlural(number, withoutSuffix, key) {
  5816. var format = {
  5817. ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
  5818. mm: withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
  5819. hh: withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
  5820. dd: 'дзень_дні_дзён',
  5821. MM: 'месяц_месяцы_месяцаў',
  5822. yy: 'год_гады_гадоў',
  5823. };
  5824. if (key === 'm') {
  5825. return withoutSuffix ? 'хвіліна' : 'хвіліну';
  5826. } else if (key === 'h') {
  5827. return withoutSuffix ? 'гадзіна' : 'гадзіну';
  5828. } else {
  5829. return number + ' ' + plural(format[key], +number);
  5830. }
  5831. }
  5832. hooks.defineLocale('be', {
  5833. months: {
  5834. format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split(
  5835. '_'
  5836. ),
  5837. standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split(
  5838. '_'
  5839. ),
  5840. },
  5841. monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split(
  5842. '_'
  5843. ),
  5844. weekdays: {
  5845. format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split(
  5846. '_'
  5847. ),
  5848. standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split(
  5849. '_'
  5850. ),
  5851. isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/,
  5852. },
  5853. weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  5854. weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  5855. longDateFormat: {
  5856. LT: 'HH:mm',
  5857. LTS: 'HH:mm:ss',
  5858. L: 'DD.MM.YYYY',
  5859. LL: 'D MMMM YYYY г.',
  5860. LLL: 'D MMMM YYYY г., HH:mm',
  5861. LLLL: 'dddd, D MMMM YYYY г., HH:mm',
  5862. },
  5863. calendar: {
  5864. sameDay: '[Сёння ў] LT',
  5865. nextDay: '[Заўтра ў] LT',
  5866. lastDay: '[Учора ў] LT',
  5867. nextWeek: function () {
  5868. return '[У] dddd [ў] LT';
  5869. },
  5870. lastWeek: function () {
  5871. switch (this.day()) {
  5872. case 0:
  5873. case 3:
  5874. case 5:
  5875. case 6:
  5876. return '[У мінулую] dddd [ў] LT';
  5877. case 1:
  5878. case 2:
  5879. case 4:
  5880. return '[У мінулы] dddd [ў] LT';
  5881. }
  5882. },
  5883. sameElse: 'L',
  5884. },
  5885. relativeTime: {
  5886. future: 'праз %s',
  5887. past: '%s таму',
  5888. s: 'некалькі секунд',
  5889. m: relativeTimeWithPlural,
  5890. mm: relativeTimeWithPlural,
  5891. h: relativeTimeWithPlural,
  5892. hh: relativeTimeWithPlural,
  5893. d: 'дзень',
  5894. dd: relativeTimeWithPlural,
  5895. M: 'месяц',
  5896. MM: relativeTimeWithPlural,
  5897. y: 'год',
  5898. yy: relativeTimeWithPlural,
  5899. },
  5900. meridiemParse: /ночы|раніцы|дня|вечара/,
  5901. isPM: function (input) {
  5902. return /^(дня|вечара)$/.test(input);
  5903. },
  5904. meridiem: function (hour, minute, isLower) {
  5905. if (hour < 4) {
  5906. return 'ночы';
  5907. } else if (hour < 12) {
  5908. return 'раніцы';
  5909. } else if (hour < 17) {
  5910. return 'дня';
  5911. } else {
  5912. return 'вечара';
  5913. }
  5914. },
  5915. dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/,
  5916. ordinal: function (number, period) {
  5917. switch (period) {
  5918. case 'M':
  5919. case 'd':
  5920. case 'DDD':
  5921. case 'w':
  5922. case 'W':
  5923. return (number % 10 === 2 || number % 10 === 3) &&
  5924. number % 100 !== 12 &&
  5925. number % 100 !== 13
  5926. ? number + '-і'
  5927. : number + '-ы';
  5928. case 'D':
  5929. return number + '-га';
  5930. default:
  5931. return number;
  5932. }
  5933. },
  5934. week: {
  5935. dow: 1, // Monday is the first day of the week.
  5936. doy: 7, // The week that contains Jan 7th is the first week of the year.
  5937. },
  5938. });
  5939. //! moment.js locale configuration
  5940. hooks.defineLocale('bg', {
  5941. months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split(
  5942. '_'
  5943. ),
  5944. monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
  5945. weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split(
  5946. '_'
  5947. ),
  5948. weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
  5949. weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  5950. longDateFormat: {
  5951. LT: 'H:mm',
  5952. LTS: 'H:mm:ss',
  5953. L: 'D.MM.YYYY',
  5954. LL: 'D MMMM YYYY',
  5955. LLL: 'D MMMM YYYY H:mm',
  5956. LLLL: 'dddd, D MMMM YYYY H:mm',
  5957. },
  5958. calendar: {
  5959. sameDay: '[Днес в] LT',
  5960. nextDay: '[Утре в] LT',
  5961. nextWeek: 'dddd [в] LT',
  5962. lastDay: '[Вчера в] LT',
  5963. lastWeek: function () {
  5964. switch (this.day()) {
  5965. case 0:
  5966. case 3:
  5967. case 6:
  5968. return '[Миналата] dddd [в] LT';
  5969. case 1:
  5970. case 2:
  5971. case 4:
  5972. case 5:
  5973. return '[Миналия] dddd [в] LT';
  5974. }
  5975. },
  5976. sameElse: 'L',
  5977. },
  5978. relativeTime: {
  5979. future: 'след %s',
  5980. past: 'преди %s',
  5981. s: 'няколко секунди',
  5982. ss: '%d секунди',
  5983. m: 'минута',
  5984. mm: '%d минути',
  5985. h: 'час',
  5986. hh: '%d часа',
  5987. d: 'ден',
  5988. dd: '%d дена',
  5989. w: 'седмица',
  5990. ww: '%d седмици',
  5991. M: 'месец',
  5992. MM: '%d месеца',
  5993. y: 'година',
  5994. yy: '%d години',
  5995. },
  5996. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  5997. ordinal: function (number) {
  5998. var lastDigit = number % 10,
  5999. last2Digits = number % 100;
  6000. if (number === 0) {
  6001. return number + '-ев';
  6002. } else if (last2Digits === 0) {
  6003. return number + '-ен';
  6004. } else if (last2Digits > 10 && last2Digits < 20) {
  6005. return number + '-ти';
  6006. } else if (lastDigit === 1) {
  6007. return number + '-ви';
  6008. } else if (lastDigit === 2) {
  6009. return number + '-ри';
  6010. } else if (lastDigit === 7 || lastDigit === 8) {
  6011. return number + '-ми';
  6012. } else {
  6013. return number + '-ти';
  6014. }
  6015. },
  6016. week: {
  6017. dow: 1, // Monday is the first day of the week.
  6018. doy: 7, // The week that contains Jan 7th is the first week of the year.
  6019. },
  6020. });
  6021. //! moment.js locale configuration
  6022. hooks.defineLocale('bm', {
  6023. months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split(
  6024. '_'
  6025. ),
  6026. monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
  6027. weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
  6028. weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
  6029. weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
  6030. longDateFormat: {
  6031. LT: 'HH:mm',
  6032. LTS: 'HH:mm:ss',
  6033. L: 'DD/MM/YYYY',
  6034. LL: 'MMMM [tile] D [san] YYYY',
  6035. LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
  6036. LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
  6037. },
  6038. calendar: {
  6039. sameDay: '[Bi lɛrɛ] LT',
  6040. nextDay: '[Sini lɛrɛ] LT',
  6041. nextWeek: 'dddd [don lɛrɛ] LT',
  6042. lastDay: '[Kunu lɛrɛ] LT',
  6043. lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT',
  6044. sameElse: 'L',
  6045. },
  6046. relativeTime: {
  6047. future: '%s kɔnɔ',
  6048. past: 'a bɛ %s bɔ',
  6049. s: 'sanga dama dama',
  6050. ss: 'sekondi %d',
  6051. m: 'miniti kelen',
  6052. mm: 'miniti %d',
  6053. h: 'lɛrɛ kelen',
  6054. hh: 'lɛrɛ %d',
  6055. d: 'tile kelen',
  6056. dd: 'tile %d',
  6057. M: 'kalo kelen',
  6058. MM: 'kalo %d',
  6059. y: 'san kelen',
  6060. yy: 'san %d',
  6061. },
  6062. week: {
  6063. dow: 1, // Monday is the first day of the week.
  6064. doy: 4, // The week that contains Jan 4th is the first week of the year.
  6065. },
  6066. });
  6067. //! moment.js locale configuration
  6068. var symbolMap$3 = {
  6069. 1: '১',
  6070. 2: '২',
  6071. 3: '৩',
  6072. 4: '৪',
  6073. 5: '৫',
  6074. 6: '৬',
  6075. 7: '৭',
  6076. 8: '৮',
  6077. 9: '৯',
  6078. 0: '০',
  6079. },
  6080. numberMap$2 = {
  6081. '১': '1',
  6082. '২': '2',
  6083. '৩': '3',
  6084. '৪': '4',
  6085. '৫': '5',
  6086. '৬': '6',
  6087. '৭': '7',
  6088. '৮': '8',
  6089. '৯': '9',
  6090. '০': '0',
  6091. };
  6092. hooks.defineLocale('bn-bd', {
  6093. months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(
  6094. '_'
  6095. ),
  6096. monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(
  6097. '_'
  6098. ),
  6099. weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(
  6100. '_'
  6101. ),
  6102. weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
  6103. weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
  6104. longDateFormat: {
  6105. LT: 'A h:mm সময়',
  6106. LTS: 'A h:mm:ss সময়',
  6107. L: 'DD/MM/YYYY',
  6108. LL: 'D MMMM YYYY',
  6109. LLL: 'D MMMM YYYY, A h:mm সময়',
  6110. LLLL: 'dddd, D MMMM YYYY, A h:mm সময়',
  6111. },
  6112. calendar: {
  6113. sameDay: '[আজ] LT',
  6114. nextDay: '[আগামীকাল] LT',
  6115. nextWeek: 'dddd, LT',
  6116. lastDay: '[গতকাল] LT',
  6117. lastWeek: '[গত] dddd, LT',
  6118. sameElse: 'L',
  6119. },
  6120. relativeTime: {
  6121. future: '%s পরে',
  6122. past: '%s আগে',
  6123. s: 'কয়েক সেকেন্ড',
  6124. ss: '%d সেকেন্ড',
  6125. m: 'এক মিনিট',
  6126. mm: '%d মিনিট',
  6127. h: 'এক ঘন্টা',
  6128. hh: '%d ঘন্টা',
  6129. d: 'এক দিন',
  6130. dd: '%d দিন',
  6131. M: 'এক মাস',
  6132. MM: '%d মাস',
  6133. y: 'এক বছর',
  6134. yy: '%d বছর',
  6135. },
  6136. preparse: function (string) {
  6137. return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
  6138. return numberMap$2[match];
  6139. });
  6140. },
  6141. postformat: function (string) {
  6142. return string.replace(/\d/g, function (match) {
  6143. return symbolMap$3[match];
  6144. });
  6145. },
  6146. meridiemParse: /রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,
  6147. meridiemHour: function (hour, meridiem) {
  6148. if (hour === 12) {
  6149. hour = 0;
  6150. }
  6151. if (meridiem === 'রাত') {
  6152. return hour < 4 ? hour : hour + 12;
  6153. } else if (meridiem === 'ভোর') {
  6154. return hour;
  6155. } else if (meridiem === 'সকাল') {
  6156. return hour;
  6157. } else if (meridiem === 'দুপুর') {
  6158. return hour >= 3 ? hour : hour + 12;
  6159. } else if (meridiem === 'বিকাল') {
  6160. return hour + 12;
  6161. } else if (meridiem === 'সন্ধ্যা') {
  6162. return hour + 12;
  6163. }
  6164. },
  6165. meridiem: function (hour, minute, isLower) {
  6166. if (hour < 4) {
  6167. return 'রাত';
  6168. } else if (hour < 6) {
  6169. return 'ভোর';
  6170. } else if (hour < 12) {
  6171. return 'সকাল';
  6172. } else if (hour < 15) {
  6173. return 'দুপুর';
  6174. } else if (hour < 18) {
  6175. return 'বিকাল';
  6176. } else if (hour < 20) {
  6177. return 'সন্ধ্যা';
  6178. } else {
  6179. return 'রাত';
  6180. }
  6181. },
  6182. week: {
  6183. dow: 0, // Sunday is the first day of the week.
  6184. doy: 6, // The week that contains Jan 6th is the first week of the year.
  6185. },
  6186. });
  6187. //! moment.js locale configuration
  6188. var symbolMap$4 = {
  6189. 1: '১',
  6190. 2: '২',
  6191. 3: '৩',
  6192. 4: '৪',
  6193. 5: '৫',
  6194. 6: '৬',
  6195. 7: '৭',
  6196. 8: '৮',
  6197. 9: '৯',
  6198. 0: '০',
  6199. },
  6200. numberMap$3 = {
  6201. '১': '1',
  6202. '২': '2',
  6203. '৩': '3',
  6204. '৪': '4',
  6205. '৫': '5',
  6206. '৬': '6',
  6207. '৭': '7',
  6208. '৮': '8',
  6209. '৯': '9',
  6210. '০': '0',
  6211. };
  6212. hooks.defineLocale('bn', {
  6213. months: 'জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split(
  6214. '_'
  6215. ),
  6216. monthsShort: 'জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে'.split(
  6217. '_'
  6218. ),
  6219. weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split(
  6220. '_'
  6221. ),
  6222. weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
  6223. weekdaysMin: 'রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি'.split('_'),
  6224. longDateFormat: {
  6225. LT: 'A h:mm সময়',
  6226. LTS: 'A h:mm:ss সময়',
  6227. L: 'DD/MM/YYYY',
  6228. LL: 'D MMMM YYYY',
  6229. LLL: 'D MMMM YYYY, A h:mm সময়',
  6230. LLLL: 'dddd, D MMMM YYYY, A h:mm সময়',
  6231. },
  6232. calendar: {
  6233. sameDay: '[আজ] LT',
  6234. nextDay: '[আগামীকাল] LT',
  6235. nextWeek: 'dddd, LT',
  6236. lastDay: '[গতকাল] LT',
  6237. lastWeek: '[গত] dddd, LT',
  6238. sameElse: 'L',
  6239. },
  6240. relativeTime: {
  6241. future: '%s পরে',
  6242. past: '%s আগে',
  6243. s: 'কয়েক সেকেন্ড',
  6244. ss: '%d সেকেন্ড',
  6245. m: 'এক মিনিট',
  6246. mm: '%d মিনিট',
  6247. h: 'এক ঘন্টা',
  6248. hh: '%d ঘন্টা',
  6249. d: 'এক দিন',
  6250. dd: '%d দিন',
  6251. M: 'এক মাস',
  6252. MM: '%d মাস',
  6253. y: 'এক বছর',
  6254. yy: '%d বছর',
  6255. },
  6256. preparse: function (string) {
  6257. return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
  6258. return numberMap$3[match];
  6259. });
  6260. },
  6261. postformat: function (string) {
  6262. return string.replace(/\d/g, function (match) {
  6263. return symbolMap$4[match];
  6264. });
  6265. },
  6266. meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
  6267. meridiemHour: function (hour, meridiem) {
  6268. if (hour === 12) {
  6269. hour = 0;
  6270. }
  6271. if (
  6272. (meridiem === 'রাত' && hour >= 4) ||
  6273. (meridiem === 'দুপুর' && hour < 5) ||
  6274. meridiem === 'বিকাল'
  6275. ) {
  6276. return hour + 12;
  6277. } else {
  6278. return hour;
  6279. }
  6280. },
  6281. meridiem: function (hour, minute, isLower) {
  6282. if (hour < 4) {
  6283. return 'রাত';
  6284. } else if (hour < 10) {
  6285. return 'সকাল';
  6286. } else if (hour < 17) {
  6287. return 'দুপুর';
  6288. } else if (hour < 20) {
  6289. return 'বিকাল';
  6290. } else {
  6291. return 'রাত';
  6292. }
  6293. },
  6294. week: {
  6295. dow: 0, // Sunday is the first day of the week.
  6296. doy: 6, // The week that contains Jan 6th is the first week of the year.
  6297. },
  6298. });
  6299. //! moment.js locale configuration
  6300. var symbolMap$5 = {
  6301. 1: '༡',
  6302. 2: '༢',
  6303. 3: '༣',
  6304. 4: '༤',
  6305. 5: '༥',
  6306. 6: '༦',
  6307. 7: '༧',
  6308. 8: '༨',
  6309. 9: '༩',
  6310. 0: '༠',
  6311. },
  6312. numberMap$4 = {
  6313. '༡': '1',
  6314. '༢': '2',
  6315. '༣': '3',
  6316. '༤': '4',
  6317. '༥': '5',
  6318. '༦': '6',
  6319. '༧': '7',
  6320. '༨': '8',
  6321. '༩': '9',
  6322. '༠': '0',
  6323. };
  6324. hooks.defineLocale('bo', {
  6325. months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split(
  6326. '_'
  6327. ),
  6328. monthsShort: 'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split(
  6329. '_'
  6330. ),
  6331. monthsShortRegex: /^(ཟླ་\d{1,2})/,
  6332. monthsParseExact: true,
  6333. weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split(
  6334. '_'
  6335. ),
  6336. weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split(
  6337. '_'
  6338. ),
  6339. weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'),
  6340. longDateFormat: {
  6341. LT: 'A h:mm',
  6342. LTS: 'A h:mm:ss',
  6343. L: 'DD/MM/YYYY',
  6344. LL: 'D MMMM YYYY',
  6345. LLL: 'D MMMM YYYY, A h:mm',
  6346. LLLL: 'dddd, D MMMM YYYY, A h:mm',
  6347. },
  6348. calendar: {
  6349. sameDay: '[དི་རིང] LT',
  6350. nextDay: '[སང་ཉིན] LT',
  6351. nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT',
  6352. lastDay: '[ཁ་སང] LT',
  6353. lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
  6354. sameElse: 'L',
  6355. },
  6356. relativeTime: {
  6357. future: '%s ལ་',
  6358. past: '%s སྔན་ལ',
  6359. s: 'ལམ་སང',
  6360. ss: '%d སྐར་ཆ།',
  6361. m: 'སྐར་མ་གཅིག',
  6362. mm: '%d སྐར་མ',
  6363. h: 'ཆུ་ཚོད་གཅིག',
  6364. hh: '%d ཆུ་ཚོད',
  6365. d: 'ཉིན་གཅིག',
  6366. dd: '%d ཉིན་',
  6367. M: 'ཟླ་བ་གཅིག',
  6368. MM: '%d ཟླ་བ',
  6369. y: 'ལོ་གཅིག',
  6370. yy: '%d ལོ',
  6371. },
  6372. preparse: function (string) {
  6373. return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
  6374. return numberMap$4[match];
  6375. });
  6376. },
  6377. postformat: function (string) {
  6378. return string.replace(/\d/g, function (match) {
  6379. return symbolMap$5[match];
  6380. });
  6381. },
  6382. meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
  6383. meridiemHour: function (hour, meridiem) {
  6384. if (hour === 12) {
  6385. hour = 0;
  6386. }
  6387. if (
  6388. (meridiem === 'མཚན་མོ' && hour >= 4) ||
  6389. (meridiem === 'ཉིན་གུང' && hour < 5) ||
  6390. meridiem === 'དགོང་དག'
  6391. ) {
  6392. return hour + 12;
  6393. } else {
  6394. return hour;
  6395. }
  6396. },
  6397. meridiem: function (hour, minute, isLower) {
  6398. if (hour < 4) {
  6399. return 'མཚན་མོ';
  6400. } else if (hour < 10) {
  6401. return 'ཞོགས་ཀས';
  6402. } else if (hour < 17) {
  6403. return 'ཉིན་གུང';
  6404. } else if (hour < 20) {
  6405. return 'དགོང་དག';
  6406. } else {
  6407. return 'མཚན་མོ';
  6408. }
  6409. },
  6410. week: {
  6411. dow: 0, // Sunday is the first day of the week.
  6412. doy: 6, // The week that contains Jan 6th is the first week of the year.
  6413. },
  6414. });
  6415. //! moment.js locale configuration
  6416. function relativeTimeWithMutation(number, withoutSuffix, key) {
  6417. var format = {
  6418. mm: 'munutenn',
  6419. MM: 'miz',
  6420. dd: 'devezh',
  6421. };
  6422. return number + ' ' + mutation(format[key], number);
  6423. }
  6424. function specialMutationForYears(number) {
  6425. switch (lastNumber(number)) {
  6426. case 1:
  6427. case 3:
  6428. case 4:
  6429. case 5:
  6430. case 9:
  6431. return number + ' bloaz';
  6432. default:
  6433. return number + ' vloaz';
  6434. }
  6435. }
  6436. function lastNumber(number) {
  6437. if (number > 9) {
  6438. return lastNumber(number % 10);
  6439. }
  6440. return number;
  6441. }
  6442. function mutation(text, number) {
  6443. if (number === 2) {
  6444. return softMutation(text);
  6445. }
  6446. return text;
  6447. }
  6448. function softMutation(text) {
  6449. var mutationTable = {
  6450. m: 'v',
  6451. b: 'v',
  6452. d: 'z',
  6453. };
  6454. if (mutationTable[text.charAt(0)] === undefined) {
  6455. return text;
  6456. }
  6457. return mutationTable[text.charAt(0)] + text.substring(1);
  6458. }
  6459. var monthsParse = [
  6460. /^gen/i,
  6461. /^c[ʼ\']hwe/i,
  6462. /^meu/i,
  6463. /^ebr/i,
  6464. /^mae/i,
  6465. /^(mez|eve)/i,
  6466. /^gou/i,
  6467. /^eos/i,
  6468. /^gwe/i,
  6469. /^her/i,
  6470. /^du/i,
  6471. /^ker/i,
  6472. ],
  6473. monthsRegex$1 = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
  6474. monthsStrictRegex = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,
  6475. monthsShortStrictRegex = /^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
  6476. fullWeekdaysParse = [
  6477. /^sul/i,
  6478. /^lun/i,
  6479. /^meurzh/i,
  6480. /^merc[ʼ\']her/i,
  6481. /^yaou/i,
  6482. /^gwener/i,
  6483. /^sadorn/i,
  6484. ],
  6485. shortWeekdaysParse = [
  6486. /^Sul/i,
  6487. /^Lun/i,
  6488. /^Meu/i,
  6489. /^Mer/i,
  6490. /^Yao/i,
  6491. /^Gwe/i,
  6492. /^Sad/i,
  6493. ],
  6494. minWeekdaysParse = [
  6495. /^Su/i,
  6496. /^Lu/i,
  6497. /^Me([^r]|$)/i,
  6498. /^Mer/i,
  6499. /^Ya/i,
  6500. /^Gw/i,
  6501. /^Sa/i,
  6502. ];
  6503. hooks.defineLocale('br', {
  6504. months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split(
  6505. '_'
  6506. ),
  6507. monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
  6508. weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'),
  6509. weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
  6510. weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
  6511. weekdaysParse: minWeekdaysParse,
  6512. fullWeekdaysParse: fullWeekdaysParse,
  6513. shortWeekdaysParse: shortWeekdaysParse,
  6514. minWeekdaysParse: minWeekdaysParse,
  6515. monthsRegex: monthsRegex$1,
  6516. monthsShortRegex: monthsRegex$1,
  6517. monthsStrictRegex: monthsStrictRegex,
  6518. monthsShortStrictRegex: monthsShortStrictRegex,
  6519. monthsParse: monthsParse,
  6520. longMonthsParse: monthsParse,
  6521. shortMonthsParse: monthsParse,
  6522. longDateFormat: {
  6523. LT: 'HH:mm',
  6524. LTS: 'HH:mm:ss',
  6525. L: 'DD/MM/YYYY',
  6526. LL: 'D [a viz] MMMM YYYY',
  6527. LLL: 'D [a viz] MMMM YYYY HH:mm',
  6528. LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm',
  6529. },
  6530. calendar: {
  6531. sameDay: '[Hiziv da] LT',
  6532. nextDay: '[Warcʼhoazh da] LT',
  6533. nextWeek: 'dddd [da] LT',
  6534. lastDay: '[Decʼh da] LT',
  6535. lastWeek: 'dddd [paset da] LT',
  6536. sameElse: 'L',
  6537. },
  6538. relativeTime: {
  6539. future: 'a-benn %s',
  6540. past: '%s ʼzo',
  6541. s: 'un nebeud segondennoù',
  6542. ss: '%d eilenn',
  6543. m: 'ur vunutenn',
  6544. mm: relativeTimeWithMutation,
  6545. h: 'un eur',
  6546. hh: '%d eur',
  6547. d: 'un devezh',
  6548. dd: relativeTimeWithMutation,
  6549. M: 'ur miz',
  6550. MM: relativeTimeWithMutation,
  6551. y: 'ur bloaz',
  6552. yy: specialMutationForYears,
  6553. },
  6554. dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
  6555. ordinal: function (number) {
  6556. var output = number === 1 ? 'añ' : 'vet';
  6557. return number + output;
  6558. },
  6559. week: {
  6560. dow: 1, // Monday is the first day of the week.
  6561. doy: 4, // The week that contains Jan 4th is the first week of the year.
  6562. },
  6563. meridiemParse: /a.m.|g.m./, // goude merenn | a-raok merenn
  6564. isPM: function (token) {
  6565. return token === 'g.m.';
  6566. },
  6567. meridiem: function (hour, minute, isLower) {
  6568. return hour < 12 ? 'a.m.' : 'g.m.';
  6569. },
  6570. });
  6571. //! moment.js locale configuration
  6572. function translate(number, withoutSuffix, key) {
  6573. var result = number + ' ';
  6574. switch (key) {
  6575. case 'ss':
  6576. if (number === 1) {
  6577. result += 'sekunda';
  6578. } else if (number === 2 || number === 3 || number === 4) {
  6579. result += 'sekunde';
  6580. } else {
  6581. result += 'sekundi';
  6582. }
  6583. return result;
  6584. case 'm':
  6585. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  6586. case 'mm':
  6587. if (number === 1) {
  6588. result += 'minuta';
  6589. } else if (number === 2 || number === 3 || number === 4) {
  6590. result += 'minute';
  6591. } else {
  6592. result += 'minuta';
  6593. }
  6594. return result;
  6595. case 'h':
  6596. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  6597. case 'hh':
  6598. if (number === 1) {
  6599. result += 'sat';
  6600. } else if (number === 2 || number === 3 || number === 4) {
  6601. result += 'sata';
  6602. } else {
  6603. result += 'sati';
  6604. }
  6605. return result;
  6606. case 'dd':
  6607. if (number === 1) {
  6608. result += 'dan';
  6609. } else {
  6610. result += 'dana';
  6611. }
  6612. return result;
  6613. case 'MM':
  6614. if (number === 1) {
  6615. result += 'mjesec';
  6616. } else if (number === 2 || number === 3 || number === 4) {
  6617. result += 'mjeseca';
  6618. } else {
  6619. result += 'mjeseci';
  6620. }
  6621. return result;
  6622. case 'yy':
  6623. if (number === 1) {
  6624. result += 'godina';
  6625. } else if (number === 2 || number === 3 || number === 4) {
  6626. result += 'godine';
  6627. } else {
  6628. result += 'godina';
  6629. }
  6630. return result;
  6631. }
  6632. }
  6633. hooks.defineLocale('bs', {
  6634. months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split(
  6635. '_'
  6636. ),
  6637. monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split(
  6638. '_'
  6639. ),
  6640. monthsParseExact: true,
  6641. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
  6642. '_'
  6643. ),
  6644. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  6645. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  6646. weekdaysParseExact: true,
  6647. longDateFormat: {
  6648. LT: 'H:mm',
  6649. LTS: 'H:mm:ss',
  6650. L: 'DD.MM.YYYY',
  6651. LL: 'D. MMMM YYYY',
  6652. LLL: 'D. MMMM YYYY H:mm',
  6653. LLLL: 'dddd, D. MMMM YYYY H:mm',
  6654. },
  6655. calendar: {
  6656. sameDay: '[danas u] LT',
  6657. nextDay: '[sutra u] LT',
  6658. nextWeek: function () {
  6659. switch (this.day()) {
  6660. case 0:
  6661. return '[u] [nedjelju] [u] LT';
  6662. case 3:
  6663. return '[u] [srijedu] [u] LT';
  6664. case 6:
  6665. return '[u] [subotu] [u] LT';
  6666. case 1:
  6667. case 2:
  6668. case 4:
  6669. case 5:
  6670. return '[u] dddd [u] LT';
  6671. }
  6672. },
  6673. lastDay: '[jučer u] LT',
  6674. lastWeek: function () {
  6675. switch (this.day()) {
  6676. case 0:
  6677. case 3:
  6678. return '[prošlu] dddd [u] LT';
  6679. case 6:
  6680. return '[prošle] [subote] [u] LT';
  6681. case 1:
  6682. case 2:
  6683. case 4:
  6684. case 5:
  6685. return '[prošli] dddd [u] LT';
  6686. }
  6687. },
  6688. sameElse: 'L',
  6689. },
  6690. relativeTime: {
  6691. future: 'za %s',
  6692. past: 'prije %s',
  6693. s: 'par sekundi',
  6694. ss: translate,
  6695. m: translate,
  6696. mm: translate,
  6697. h: translate,
  6698. hh: translate,
  6699. d: 'dan',
  6700. dd: translate,
  6701. M: 'mjesec',
  6702. MM: translate,
  6703. y: 'godinu',
  6704. yy: translate,
  6705. },
  6706. dayOfMonthOrdinalParse: /\d{1,2}\./,
  6707. ordinal: '%d.',
  6708. week: {
  6709. dow: 1, // Monday is the first day of the week.
  6710. doy: 7, // The week that contains Jan 7th is the first week of the year.
  6711. },
  6712. });
  6713. //! moment.js locale configuration
  6714. hooks.defineLocale('ca', {
  6715. months: {
  6716. standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split(
  6717. '_'
  6718. ),
  6719. 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(
  6720. '_'
  6721. ),
  6722. isFormat: /D[oD]?(\s)+MMMM/,
  6723. },
  6724. monthsShort: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split(
  6725. '_'
  6726. ),
  6727. monthsParseExact: true,
  6728. weekdays: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split(
  6729. '_'
  6730. ),
  6731. weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
  6732. weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
  6733. weekdaysParseExact: true,
  6734. longDateFormat: {
  6735. LT: 'H:mm',
  6736. LTS: 'H:mm:ss',
  6737. L: 'DD/MM/YYYY',
  6738. LL: 'D MMMM [de] YYYY',
  6739. ll: 'D MMM YYYY',
  6740. LLL: 'D MMMM [de] YYYY [a les] H:mm',
  6741. lll: 'D MMM YYYY, H:mm',
  6742. LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm',
  6743. llll: 'ddd D MMM YYYY, H:mm',
  6744. },
  6745. calendar: {
  6746. sameDay: function () {
  6747. return '[avui a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  6748. },
  6749. nextDay: function () {
  6750. return '[demà a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  6751. },
  6752. nextWeek: function () {
  6753. return 'dddd [a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  6754. },
  6755. lastDay: function () {
  6756. return '[ahir a ' + (this.hours() !== 1 ? 'les' : 'la') + '] LT';
  6757. },
  6758. lastWeek: function () {
  6759. return (
  6760. '[el] dddd [passat a ' +
  6761. (this.hours() !== 1 ? 'les' : 'la') +
  6762. '] LT'
  6763. );
  6764. },
  6765. sameElse: 'L',
  6766. },
  6767. relativeTime: {
  6768. future: "d'aquí %s",
  6769. past: 'fa %s',
  6770. s: 'uns segons',
  6771. ss: '%d segons',
  6772. m: 'un minut',
  6773. mm: '%d minuts',
  6774. h: 'una hora',
  6775. hh: '%d hores',
  6776. d: 'un dia',
  6777. dd: '%d dies',
  6778. M: 'un mes',
  6779. MM: '%d mesos',
  6780. y: 'un any',
  6781. yy: '%d anys',
  6782. },
  6783. dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
  6784. ordinal: function (number, period) {
  6785. var output =
  6786. number === 1
  6787. ? 'r'
  6788. : number === 2
  6789. ? 'n'
  6790. : number === 3
  6791. ? 'r'
  6792. : number === 4
  6793. ? 't'
  6794. : 'è';
  6795. if (period === 'w' || period === 'W') {
  6796. output = 'a';
  6797. }
  6798. return number + output;
  6799. },
  6800. week: {
  6801. dow: 1, // Monday is the first day of the week.
  6802. doy: 4, // The week that contains Jan 4th is the first week of the year.
  6803. },
  6804. });
  6805. //! moment.js locale configuration
  6806. var months$4 = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split(
  6807. '_'
  6808. ),
  6809. monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'),
  6810. monthsParse$1 = [
  6811. /^led/i,
  6812. /^úno/i,
  6813. /^bře/i,
  6814. /^dub/i,
  6815. /^kvě/i,
  6816. /^(čvn|červen$|června)/i,
  6817. /^(čvc|červenec|července)/i,
  6818. /^srp/i,
  6819. /^zář/i,
  6820. /^říj/i,
  6821. /^lis/i,
  6822. /^pro/i,
  6823. ],
  6824. // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
  6825. // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
  6826. monthsRegex$2 = /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;
  6827. function plural$1(n) {
  6828. return n > 1 && n < 5 && ~~(n / 10) !== 1;
  6829. }
  6830. function translate$1(number, withoutSuffix, key, isFuture) {
  6831. var result = number + ' ';
  6832. switch (key) {
  6833. case 's': // a few seconds / in a few seconds / a few seconds ago
  6834. return withoutSuffix || isFuture ? 'pár sekund' : 'pár sekundami';
  6835. case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
  6836. if (withoutSuffix || isFuture) {
  6837. return result + (plural$1(number) ? 'sekundy' : 'sekund');
  6838. } else {
  6839. return result + 'sekundami';
  6840. }
  6841. case 'm': // a minute / in a minute / a minute ago
  6842. return withoutSuffix ? 'minuta' : isFuture ? 'minutu' : 'minutou';
  6843. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  6844. if (withoutSuffix || isFuture) {
  6845. return result + (plural$1(number) ? 'minuty' : 'minut');
  6846. } else {
  6847. return result + 'minutami';
  6848. }
  6849. case 'h': // an hour / in an hour / an hour ago
  6850. return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
  6851. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  6852. if (withoutSuffix || isFuture) {
  6853. return result + (plural$1(number) ? 'hodiny' : 'hodin');
  6854. } else {
  6855. return result + 'hodinami';
  6856. }
  6857. case 'd': // a day / in a day / a day ago
  6858. return withoutSuffix || isFuture ? 'den' : 'dnem';
  6859. case 'dd': // 9 days / in 9 days / 9 days ago
  6860. if (withoutSuffix || isFuture) {
  6861. return result + (plural$1(number) ? 'dny' : 'dní');
  6862. } else {
  6863. return result + 'dny';
  6864. }
  6865. case 'M': // a month / in a month / a month ago
  6866. return withoutSuffix || isFuture ? 'měsíc' : 'měsícem';
  6867. case 'MM': // 9 months / in 9 months / 9 months ago
  6868. if (withoutSuffix || isFuture) {
  6869. return result + (plural$1(number) ? 'měsíce' : 'měsíců');
  6870. } else {
  6871. return result + 'měsíci';
  6872. }
  6873. case 'y': // a year / in a year / a year ago
  6874. return withoutSuffix || isFuture ? 'rok' : 'rokem';
  6875. case 'yy': // 9 years / in 9 years / 9 years ago
  6876. if (withoutSuffix || isFuture) {
  6877. return result + (plural$1(number) ? 'roky' : 'let');
  6878. } else {
  6879. return result + 'lety';
  6880. }
  6881. }
  6882. }
  6883. hooks.defineLocale('cs', {
  6884. months: months$4,
  6885. monthsShort: monthsShort,
  6886. monthsRegex: monthsRegex$2,
  6887. monthsShortRegex: monthsRegex$2,
  6888. // NOTE: 'červen' is substring of 'červenec'; therefore 'červenec' must precede 'červen' in the regex to be fully matched.
  6889. // Otherwise parser matches '1. červenec' as '1. červen' + 'ec'.
  6890. monthsStrictRegex: /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,
  6891. monthsShortStrictRegex: /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,
  6892. monthsParse: monthsParse$1,
  6893. longMonthsParse: monthsParse$1,
  6894. shortMonthsParse: monthsParse$1,
  6895. weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
  6896. weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'),
  6897. weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'),
  6898. longDateFormat: {
  6899. LT: 'H:mm',
  6900. LTS: 'H:mm:ss',
  6901. L: 'DD.MM.YYYY',
  6902. LL: 'D. MMMM YYYY',
  6903. LLL: 'D. MMMM YYYY H:mm',
  6904. LLLL: 'dddd D. MMMM YYYY H:mm',
  6905. l: 'D. M. YYYY',
  6906. },
  6907. calendar: {
  6908. sameDay: '[dnes v] LT',
  6909. nextDay: '[zítra v] LT',
  6910. nextWeek: function () {
  6911. switch (this.day()) {
  6912. case 0:
  6913. return '[v neděli v] LT';
  6914. case 1:
  6915. case 2:
  6916. return '[v] dddd [v] LT';
  6917. case 3:
  6918. return '[ve středu v] LT';
  6919. case 4:
  6920. return '[ve čtvrtek v] LT';
  6921. case 5:
  6922. return '[v pátek v] LT';
  6923. case 6:
  6924. return '[v sobotu v] LT';
  6925. }
  6926. },
  6927. lastDay: '[včera v] LT',
  6928. lastWeek: function () {
  6929. switch (this.day()) {
  6930. case 0:
  6931. return '[minulou neděli v] LT';
  6932. case 1:
  6933. case 2:
  6934. return '[minulé] dddd [v] LT';
  6935. case 3:
  6936. return '[minulou středu v] LT';
  6937. case 4:
  6938. case 5:
  6939. return '[minulý] dddd [v] LT';
  6940. case 6:
  6941. return '[minulou sobotu v] LT';
  6942. }
  6943. },
  6944. sameElse: 'L',
  6945. },
  6946. relativeTime: {
  6947. future: 'za %s',
  6948. past: 'před %s',
  6949. s: translate$1,
  6950. ss: translate$1,
  6951. m: translate$1,
  6952. mm: translate$1,
  6953. h: translate$1,
  6954. hh: translate$1,
  6955. d: translate$1,
  6956. dd: translate$1,
  6957. M: translate$1,
  6958. MM: translate$1,
  6959. y: translate$1,
  6960. yy: translate$1,
  6961. },
  6962. dayOfMonthOrdinalParse: /\d{1,2}\./,
  6963. ordinal: '%d.',
  6964. week: {
  6965. dow: 1, // Monday is the first day of the week.
  6966. doy: 4, // The week that contains Jan 4th is the first week of the year.
  6967. },
  6968. });
  6969. //! moment.js locale configuration
  6970. hooks.defineLocale('cv', {
  6971. months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split(
  6972. '_'
  6973. ),
  6974. monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
  6975. weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split(
  6976. '_'
  6977. ),
  6978. weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
  6979. weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
  6980. longDateFormat: {
  6981. LT: 'HH:mm',
  6982. LTS: 'HH:mm:ss',
  6983. L: 'DD-MM-YYYY',
  6984. LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
  6985. LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
  6986. LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
  6987. },
  6988. calendar: {
  6989. sameDay: '[Паян] LT [сехетре]',
  6990. nextDay: '[Ыран] LT [сехетре]',
  6991. lastDay: '[Ӗнер] LT [сехетре]',
  6992. nextWeek: '[Ҫитес] dddd LT [сехетре]',
  6993. lastWeek: '[Иртнӗ] dddd LT [сехетре]',
  6994. sameElse: 'L',
  6995. },
  6996. relativeTime: {
  6997. future: function (output) {
  6998. var affix = /сехет$/i.exec(output)
  6999. ? 'рен'
  7000. : /ҫул$/i.exec(output)
  7001. ? 'тан'
  7002. : 'ран';
  7003. return output + affix;
  7004. },
  7005. past: '%s каялла',
  7006. s: 'пӗр-ик ҫеккунт',
  7007. ss: '%d ҫеккунт',
  7008. m: 'пӗр минут',
  7009. mm: '%d минут',
  7010. h: 'пӗр сехет',
  7011. hh: '%d сехет',
  7012. d: 'пӗр кун',
  7013. dd: '%d кун',
  7014. M: 'пӗр уйӑх',
  7015. MM: '%d уйӑх',
  7016. y: 'пӗр ҫул',
  7017. yy: '%d ҫул',
  7018. },
  7019. dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
  7020. ordinal: '%d-мӗш',
  7021. week: {
  7022. dow: 1, // Monday is the first day of the week.
  7023. doy: 7, // The week that contains Jan 7th is the first week of the year.
  7024. },
  7025. });
  7026. //! moment.js locale configuration
  7027. hooks.defineLocale('cy', {
  7028. months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split(
  7029. '_'
  7030. ),
  7031. monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split(
  7032. '_'
  7033. ),
  7034. weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split(
  7035. '_'
  7036. ),
  7037. weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
  7038. weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
  7039. weekdaysParseExact: true,
  7040. // time formats are the same as en-gb
  7041. longDateFormat: {
  7042. LT: 'HH:mm',
  7043. LTS: 'HH:mm:ss',
  7044. L: 'DD/MM/YYYY',
  7045. LL: 'D MMMM YYYY',
  7046. LLL: 'D MMMM YYYY HH:mm',
  7047. LLLL: 'dddd, D MMMM YYYY HH:mm',
  7048. },
  7049. calendar: {
  7050. sameDay: '[Heddiw am] LT',
  7051. nextDay: '[Yfory am] LT',
  7052. nextWeek: 'dddd [am] LT',
  7053. lastDay: '[Ddoe am] LT',
  7054. lastWeek: 'dddd [diwethaf am] LT',
  7055. sameElse: 'L',
  7056. },
  7057. relativeTime: {
  7058. future: 'mewn %s',
  7059. past: '%s yn ôl',
  7060. s: 'ychydig eiliadau',
  7061. ss: '%d eiliad',
  7062. m: 'munud',
  7063. mm: '%d munud',
  7064. h: 'awr',
  7065. hh: '%d awr',
  7066. d: 'diwrnod',
  7067. dd: '%d diwrnod',
  7068. M: 'mis',
  7069. MM: '%d mis',
  7070. y: 'blwyddyn',
  7071. yy: '%d flynedd',
  7072. },
  7073. dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
  7074. // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
  7075. ordinal: function (number) {
  7076. var b = number,
  7077. output = '',
  7078. lookup = [
  7079. '',
  7080. 'af',
  7081. 'il',
  7082. 'ydd',
  7083. 'ydd',
  7084. 'ed',
  7085. 'ed',
  7086. 'ed',
  7087. 'fed',
  7088. 'fed',
  7089. 'fed', // 1af to 10fed
  7090. 'eg',
  7091. 'fed',
  7092. 'eg',
  7093. 'eg',
  7094. 'fed',
  7095. 'eg',
  7096. 'eg',
  7097. 'fed',
  7098. 'eg',
  7099. 'fed', // 11eg to 20fed
  7100. ];
  7101. if (b > 20) {
  7102. if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
  7103. output = 'fed'; // not 30ain, 70ain or 90ain
  7104. } else {
  7105. output = 'ain';
  7106. }
  7107. } else if (b > 0) {
  7108. output = lookup[b];
  7109. }
  7110. return number + output;
  7111. },
  7112. week: {
  7113. dow: 1, // Monday is the first day of the week.
  7114. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7115. },
  7116. });
  7117. //! moment.js locale configuration
  7118. hooks.defineLocale('da', {
  7119. months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split(
  7120. '_'
  7121. ),
  7122. monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  7123. weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  7124. weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'),
  7125. weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
  7126. longDateFormat: {
  7127. LT: 'HH:mm',
  7128. LTS: 'HH:mm:ss',
  7129. L: 'DD.MM.YYYY',
  7130. LL: 'D. MMMM YYYY',
  7131. LLL: 'D. MMMM YYYY HH:mm',
  7132. LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm',
  7133. },
  7134. calendar: {
  7135. sameDay: '[i dag kl.] LT',
  7136. nextDay: '[i morgen kl.] LT',
  7137. nextWeek: 'på dddd [kl.] LT',
  7138. lastDay: '[i går kl.] LT',
  7139. lastWeek: '[i] dddd[s kl.] LT',
  7140. sameElse: 'L',
  7141. },
  7142. relativeTime: {
  7143. future: 'om %s',
  7144. past: '%s siden',
  7145. s: 'få sekunder',
  7146. ss: '%d sekunder',
  7147. m: 'et minut',
  7148. mm: '%d minutter',
  7149. h: 'en time',
  7150. hh: '%d timer',
  7151. d: 'en dag',
  7152. dd: '%d dage',
  7153. M: 'en måned',
  7154. MM: '%d måneder',
  7155. y: 'et år',
  7156. yy: '%d år',
  7157. },
  7158. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7159. ordinal: '%d.',
  7160. week: {
  7161. dow: 1, // Monday is the first day of the week.
  7162. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7163. },
  7164. });
  7165. //! moment.js locale configuration
  7166. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  7167. var format = {
  7168. m: ['eine Minute', 'einer Minute'],
  7169. h: ['eine Stunde', 'einer Stunde'],
  7170. d: ['ein Tag', 'einem Tag'],
  7171. dd: [number + ' Tage', number + ' Tagen'],
  7172. w: ['eine Woche', 'einer Woche'],
  7173. M: ['ein Monat', 'einem Monat'],
  7174. MM: [number + ' Monate', number + ' Monaten'],
  7175. y: ['ein Jahr', 'einem Jahr'],
  7176. yy: [number + ' Jahre', number + ' Jahren'],
  7177. };
  7178. return withoutSuffix ? format[key][0] : format[key][1];
  7179. }
  7180. hooks.defineLocale('de-at', {
  7181. months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  7182. '_'
  7183. ),
  7184. monthsShort: 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(
  7185. '_'
  7186. ),
  7187. monthsParseExact: true,
  7188. weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
  7189. '_'
  7190. ),
  7191. weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  7192. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  7193. weekdaysParseExact: true,
  7194. longDateFormat: {
  7195. LT: 'HH:mm',
  7196. LTS: 'HH:mm:ss',
  7197. L: 'DD.MM.YYYY',
  7198. LL: 'D. MMMM YYYY',
  7199. LLL: 'D. MMMM YYYY HH:mm',
  7200. LLLL: 'dddd, D. MMMM YYYY HH:mm',
  7201. },
  7202. calendar: {
  7203. sameDay: '[heute um] LT [Uhr]',
  7204. sameElse: 'L',
  7205. nextDay: '[morgen um] LT [Uhr]',
  7206. nextWeek: 'dddd [um] LT [Uhr]',
  7207. lastDay: '[gestern um] LT [Uhr]',
  7208. lastWeek: '[letzten] dddd [um] LT [Uhr]',
  7209. },
  7210. relativeTime: {
  7211. future: 'in %s',
  7212. past: 'vor %s',
  7213. s: 'ein paar Sekunden',
  7214. ss: '%d Sekunden',
  7215. m: processRelativeTime,
  7216. mm: '%d Minuten',
  7217. h: processRelativeTime,
  7218. hh: '%d Stunden',
  7219. d: processRelativeTime,
  7220. dd: processRelativeTime,
  7221. w: processRelativeTime,
  7222. ww: '%d Wochen',
  7223. M: processRelativeTime,
  7224. MM: processRelativeTime,
  7225. y: processRelativeTime,
  7226. yy: processRelativeTime,
  7227. },
  7228. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7229. ordinal: '%d.',
  7230. week: {
  7231. dow: 1, // Monday is the first day of the week.
  7232. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7233. },
  7234. });
  7235. //! moment.js locale configuration
  7236. function processRelativeTime$1(number, withoutSuffix, key, isFuture) {
  7237. var format = {
  7238. m: ['eine Minute', 'einer Minute'],
  7239. h: ['eine Stunde', 'einer Stunde'],
  7240. d: ['ein Tag', 'einem Tag'],
  7241. dd: [number + ' Tage', number + ' Tagen'],
  7242. w: ['eine Woche', 'einer Woche'],
  7243. M: ['ein Monat', 'einem Monat'],
  7244. MM: [number + ' Monate', number + ' Monaten'],
  7245. y: ['ein Jahr', 'einem Jahr'],
  7246. yy: [number + ' Jahre', number + ' Jahren'],
  7247. };
  7248. return withoutSuffix ? format[key][0] : format[key][1];
  7249. }
  7250. hooks.defineLocale('de-ch', {
  7251. months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  7252. '_'
  7253. ),
  7254. monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(
  7255. '_'
  7256. ),
  7257. monthsParseExact: true,
  7258. weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
  7259. '_'
  7260. ),
  7261. weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  7262. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  7263. weekdaysParseExact: true,
  7264. longDateFormat: {
  7265. LT: 'HH:mm',
  7266. LTS: 'HH:mm:ss',
  7267. L: 'DD.MM.YYYY',
  7268. LL: 'D. MMMM YYYY',
  7269. LLL: 'D. MMMM YYYY HH:mm',
  7270. LLLL: 'dddd, D. MMMM YYYY HH:mm',
  7271. },
  7272. calendar: {
  7273. sameDay: '[heute um] LT [Uhr]',
  7274. sameElse: 'L',
  7275. nextDay: '[morgen um] LT [Uhr]',
  7276. nextWeek: 'dddd [um] LT [Uhr]',
  7277. lastDay: '[gestern um] LT [Uhr]',
  7278. lastWeek: '[letzten] dddd [um] LT [Uhr]',
  7279. },
  7280. relativeTime: {
  7281. future: 'in %s',
  7282. past: 'vor %s',
  7283. s: 'ein paar Sekunden',
  7284. ss: '%d Sekunden',
  7285. m: processRelativeTime$1,
  7286. mm: '%d Minuten',
  7287. h: processRelativeTime$1,
  7288. hh: '%d Stunden',
  7289. d: processRelativeTime$1,
  7290. dd: processRelativeTime$1,
  7291. w: processRelativeTime$1,
  7292. ww: '%d Wochen',
  7293. M: processRelativeTime$1,
  7294. MM: processRelativeTime$1,
  7295. y: processRelativeTime$1,
  7296. yy: processRelativeTime$1,
  7297. },
  7298. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7299. ordinal: '%d.',
  7300. week: {
  7301. dow: 1, // Monday is the first day of the week.
  7302. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7303. },
  7304. });
  7305. //! moment.js locale configuration
  7306. function processRelativeTime$2(number, withoutSuffix, key, isFuture) {
  7307. var format = {
  7308. m: ['eine Minute', 'einer Minute'],
  7309. h: ['eine Stunde', 'einer Stunde'],
  7310. d: ['ein Tag', 'einem Tag'],
  7311. dd: [number + ' Tage', number + ' Tagen'],
  7312. w: ['eine Woche', 'einer Woche'],
  7313. M: ['ein Monat', 'einem Monat'],
  7314. MM: [number + ' Monate', number + ' Monaten'],
  7315. y: ['ein Jahr', 'einem Jahr'],
  7316. yy: [number + ' Jahre', number + ' Jahren'],
  7317. };
  7318. return withoutSuffix ? format[key][0] : format[key][1];
  7319. }
  7320. hooks.defineLocale('de', {
  7321. months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  7322. '_'
  7323. ),
  7324. monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split(
  7325. '_'
  7326. ),
  7327. monthsParseExact: true,
  7328. weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
  7329. '_'
  7330. ),
  7331. weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  7332. weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  7333. weekdaysParseExact: true,
  7334. longDateFormat: {
  7335. LT: 'HH:mm',
  7336. LTS: 'HH:mm:ss',
  7337. L: 'DD.MM.YYYY',
  7338. LL: 'D. MMMM YYYY',
  7339. LLL: 'D. MMMM YYYY HH:mm',
  7340. LLLL: 'dddd, D. MMMM YYYY HH:mm',
  7341. },
  7342. calendar: {
  7343. sameDay: '[heute um] LT [Uhr]',
  7344. sameElse: 'L',
  7345. nextDay: '[morgen um] LT [Uhr]',
  7346. nextWeek: 'dddd [um] LT [Uhr]',
  7347. lastDay: '[gestern um] LT [Uhr]',
  7348. lastWeek: '[letzten] dddd [um] LT [Uhr]',
  7349. },
  7350. relativeTime: {
  7351. future: 'in %s',
  7352. past: 'vor %s',
  7353. s: 'ein paar Sekunden',
  7354. ss: '%d Sekunden',
  7355. m: processRelativeTime$2,
  7356. mm: '%d Minuten',
  7357. h: processRelativeTime$2,
  7358. hh: '%d Stunden',
  7359. d: processRelativeTime$2,
  7360. dd: processRelativeTime$2,
  7361. w: processRelativeTime$2,
  7362. ww: '%d Wochen',
  7363. M: processRelativeTime$2,
  7364. MM: processRelativeTime$2,
  7365. y: processRelativeTime$2,
  7366. yy: processRelativeTime$2,
  7367. },
  7368. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7369. ordinal: '%d.',
  7370. week: {
  7371. dow: 1, // Monday is the first day of the week.
  7372. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7373. },
  7374. });
  7375. //! moment.js locale configuration
  7376. var months$5 = [
  7377. 'ޖެނުއަރީ',
  7378. 'ފެބްރުއަރީ',
  7379. 'މާރިޗު',
  7380. 'އޭޕްރީލު',
  7381. 'މޭ',
  7382. 'ޖޫން',
  7383. 'ޖުލައި',
  7384. 'އޯގަސްޓު',
  7385. 'ސެޕްޓެމްބަރު',
  7386. 'އޮކްޓޯބަރު',
  7387. 'ނޮވެމްބަރު',
  7388. 'ޑިސެމްބަރު',
  7389. ],
  7390. weekdays = [
  7391. 'އާދިއްތަ',
  7392. 'ހޯމަ',
  7393. 'އަންގާރަ',
  7394. 'ބުދަ',
  7395. 'ބުރާސްފަތި',
  7396. 'ހުކުރު',
  7397. 'ހޮނިހިރު',
  7398. ];
  7399. hooks.defineLocale('dv', {
  7400. months: months$5,
  7401. monthsShort: months$5,
  7402. weekdays: weekdays,
  7403. weekdaysShort: weekdays,
  7404. weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
  7405. longDateFormat: {
  7406. LT: 'HH:mm',
  7407. LTS: 'HH:mm:ss',
  7408. L: 'D/M/YYYY',
  7409. LL: 'D MMMM YYYY',
  7410. LLL: 'D MMMM YYYY HH:mm',
  7411. LLLL: 'dddd D MMMM YYYY HH:mm',
  7412. },
  7413. meridiemParse: /މކ|މފ/,
  7414. isPM: function (input) {
  7415. return 'މފ' === input;
  7416. },
  7417. meridiem: function (hour, minute, isLower) {
  7418. if (hour < 12) {
  7419. return 'މކ';
  7420. } else {
  7421. return 'މފ';
  7422. }
  7423. },
  7424. calendar: {
  7425. sameDay: '[މިއަދު] LT',
  7426. nextDay: '[މާދަމާ] LT',
  7427. nextWeek: 'dddd LT',
  7428. lastDay: '[އިއްޔެ] LT',
  7429. lastWeek: '[ފާއިތުވި] dddd LT',
  7430. sameElse: 'L',
  7431. },
  7432. relativeTime: {
  7433. future: 'ތެރޭގައި %s',
  7434. past: 'ކުރިން %s',
  7435. s: 'ސިކުންތުކޮޅެއް',
  7436. ss: 'd% ސިކުންތު',
  7437. m: 'މިނިޓެއް',
  7438. mm: 'މިނިޓު %d',
  7439. h: 'ގަޑިއިރެއް',
  7440. hh: 'ގަޑިއިރު %d',
  7441. d: 'ދުވަހެއް',
  7442. dd: 'ދުވަސް %d',
  7443. M: 'މަހެއް',
  7444. MM: 'މަސް %d',
  7445. y: 'އަހަރެއް',
  7446. yy: 'އަހަރު %d',
  7447. },
  7448. preparse: function (string) {
  7449. return string.replace(/،/g, ',');
  7450. },
  7451. postformat: function (string) {
  7452. return string.replace(/,/g, '،');
  7453. },
  7454. week: {
  7455. dow: 7, // Sunday is the first day of the week.
  7456. doy: 12, // The week that contains Jan 12th is the first week of the year.
  7457. },
  7458. });
  7459. //! moment.js locale configuration
  7460. function isFunction$1(input) {
  7461. return (
  7462. (typeof Function !== 'undefined' && input instanceof Function) ||
  7463. Object.prototype.toString.call(input) === '[object Function]'
  7464. );
  7465. }
  7466. hooks.defineLocale('el', {
  7467. monthsNominativeEl: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split(
  7468. '_'
  7469. ),
  7470. monthsGenitiveEl: 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split(
  7471. '_'
  7472. ),
  7473. months: function (momentToFormat, format) {
  7474. if (!momentToFormat) {
  7475. return this._monthsNominativeEl;
  7476. } else if (
  7477. typeof format === 'string' &&
  7478. /D/.test(format.substring(0, format.indexOf('MMMM')))
  7479. ) {
  7480. // if there is a day number before 'MMMM'
  7481. return this._monthsGenitiveEl[momentToFormat.month()];
  7482. } else {
  7483. return this._monthsNominativeEl[momentToFormat.month()];
  7484. }
  7485. },
  7486. monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
  7487. weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split(
  7488. '_'
  7489. ),
  7490. weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
  7491. weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
  7492. meridiem: function (hours, minutes, isLower) {
  7493. if (hours > 11) {
  7494. return isLower ? 'μμ' : 'ΜΜ';
  7495. } else {
  7496. return isLower ? 'πμ' : 'ΠΜ';
  7497. }
  7498. },
  7499. isPM: function (input) {
  7500. return (input + '').toLowerCase()[0] === 'μ';
  7501. },
  7502. meridiemParse: /[ΠΜ]\.?Μ?\.?/i,
  7503. longDateFormat: {
  7504. LT: 'h:mm A',
  7505. LTS: 'h:mm:ss A',
  7506. L: 'DD/MM/YYYY',
  7507. LL: 'D MMMM YYYY',
  7508. LLL: 'D MMMM YYYY h:mm A',
  7509. LLLL: 'dddd, D MMMM YYYY h:mm A',
  7510. },
  7511. calendarEl: {
  7512. sameDay: '[Σήμερα {}] LT',
  7513. nextDay: '[Αύριο {}] LT',
  7514. nextWeek: 'dddd [{}] LT',
  7515. lastDay: '[Χθες {}] LT',
  7516. lastWeek: function () {
  7517. switch (this.day()) {
  7518. case 6:
  7519. return '[το προηγούμενο] dddd [{}] LT';
  7520. default:
  7521. return '[την προηγούμενη] dddd [{}] LT';
  7522. }
  7523. },
  7524. sameElse: 'L',
  7525. },
  7526. calendar: function (key, mom) {
  7527. var output = this._calendarEl[key],
  7528. hours = mom && mom.hours();
  7529. if (isFunction$1(output)) {
  7530. output = output.apply(mom);
  7531. }
  7532. return output.replace('{}', hours % 12 === 1 ? 'στη' : 'στις');
  7533. },
  7534. relativeTime: {
  7535. future: 'σε %s',
  7536. past: '%s πριν',
  7537. s: 'λίγα δευτερόλεπτα',
  7538. ss: '%d δευτερόλεπτα',
  7539. m: 'ένα λεπτό',
  7540. mm: '%d λεπτά',
  7541. h: 'μία ώρα',
  7542. hh: '%d ώρες',
  7543. d: 'μία μέρα',
  7544. dd: '%d μέρες',
  7545. M: 'ένας μήνας',
  7546. MM: '%d μήνες',
  7547. y: 'ένας χρόνος',
  7548. yy: '%d χρόνια',
  7549. },
  7550. dayOfMonthOrdinalParse: /\d{1,2}η/,
  7551. ordinal: '%dη',
  7552. week: {
  7553. dow: 1, // Monday is the first day of the week.
  7554. doy: 4, // The week that contains Jan 4st is the first week of the year.
  7555. },
  7556. });
  7557. //! moment.js locale configuration
  7558. hooks.defineLocale('en-au', {
  7559. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7560. '_'
  7561. ),
  7562. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7563. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7564. '_'
  7565. ),
  7566. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7567. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7568. longDateFormat: {
  7569. LT: 'h:mm A',
  7570. LTS: 'h:mm:ss A',
  7571. L: 'DD/MM/YYYY',
  7572. LL: 'D MMMM YYYY',
  7573. LLL: 'D MMMM YYYY h:mm A',
  7574. LLLL: 'dddd, D MMMM YYYY h:mm A',
  7575. },
  7576. calendar: {
  7577. sameDay: '[Today at] LT',
  7578. nextDay: '[Tomorrow at] LT',
  7579. nextWeek: 'dddd [at] LT',
  7580. lastDay: '[Yesterday at] LT',
  7581. lastWeek: '[Last] dddd [at] LT',
  7582. sameElse: 'L',
  7583. },
  7584. relativeTime: {
  7585. future: 'in %s',
  7586. past: '%s ago',
  7587. s: 'a few seconds',
  7588. ss: '%d seconds',
  7589. m: 'a minute',
  7590. mm: '%d minutes',
  7591. h: 'an hour',
  7592. hh: '%d hours',
  7593. d: 'a day',
  7594. dd: '%d days',
  7595. M: 'a month',
  7596. MM: '%d months',
  7597. y: 'a year',
  7598. yy: '%d years',
  7599. },
  7600. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7601. ordinal: function (number) {
  7602. var b = number % 10,
  7603. output =
  7604. ~~((number % 100) / 10) === 1
  7605. ? 'th'
  7606. : b === 1
  7607. ? 'st'
  7608. : b === 2
  7609. ? 'nd'
  7610. : b === 3
  7611. ? 'rd'
  7612. : 'th';
  7613. return number + output;
  7614. },
  7615. week: {
  7616. dow: 0, // Sunday is the first day of the week.
  7617. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7618. },
  7619. });
  7620. //! moment.js locale configuration
  7621. hooks.defineLocale('en-ca', {
  7622. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7623. '_'
  7624. ),
  7625. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7626. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7627. '_'
  7628. ),
  7629. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7630. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7631. longDateFormat: {
  7632. LT: 'h:mm A',
  7633. LTS: 'h:mm:ss A',
  7634. L: 'YYYY-MM-DD',
  7635. LL: 'MMMM D, YYYY',
  7636. LLL: 'MMMM D, YYYY h:mm A',
  7637. LLLL: 'dddd, MMMM D, YYYY h:mm A',
  7638. },
  7639. calendar: {
  7640. sameDay: '[Today at] LT',
  7641. nextDay: '[Tomorrow at] LT',
  7642. nextWeek: 'dddd [at] LT',
  7643. lastDay: '[Yesterday at] LT',
  7644. lastWeek: '[Last] dddd [at] LT',
  7645. sameElse: 'L',
  7646. },
  7647. relativeTime: {
  7648. future: 'in %s',
  7649. past: '%s ago',
  7650. s: 'a few seconds',
  7651. ss: '%d seconds',
  7652. m: 'a minute',
  7653. mm: '%d minutes',
  7654. h: 'an hour',
  7655. hh: '%d hours',
  7656. d: 'a day',
  7657. dd: '%d days',
  7658. M: 'a month',
  7659. MM: '%d months',
  7660. y: 'a year',
  7661. yy: '%d years',
  7662. },
  7663. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7664. ordinal: function (number) {
  7665. var b = number % 10,
  7666. output =
  7667. ~~((number % 100) / 10) === 1
  7668. ? 'th'
  7669. : b === 1
  7670. ? 'st'
  7671. : b === 2
  7672. ? 'nd'
  7673. : b === 3
  7674. ? 'rd'
  7675. : 'th';
  7676. return number + output;
  7677. },
  7678. });
  7679. //! moment.js locale configuration
  7680. hooks.defineLocale('en-gb', {
  7681. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7682. '_'
  7683. ),
  7684. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7685. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7686. '_'
  7687. ),
  7688. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7689. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7690. longDateFormat: {
  7691. LT: 'HH:mm',
  7692. LTS: 'HH:mm:ss',
  7693. L: 'DD/MM/YYYY',
  7694. LL: 'D MMMM YYYY',
  7695. LLL: 'D MMMM YYYY HH:mm',
  7696. LLLL: 'dddd, D MMMM YYYY HH:mm',
  7697. },
  7698. calendar: {
  7699. sameDay: '[Today at] LT',
  7700. nextDay: '[Tomorrow at] LT',
  7701. nextWeek: 'dddd [at] LT',
  7702. lastDay: '[Yesterday at] LT',
  7703. lastWeek: '[Last] dddd [at] LT',
  7704. sameElse: 'L',
  7705. },
  7706. relativeTime: {
  7707. future: 'in %s',
  7708. past: '%s ago',
  7709. s: 'a few seconds',
  7710. ss: '%d seconds',
  7711. m: 'a minute',
  7712. mm: '%d minutes',
  7713. h: 'an hour',
  7714. hh: '%d hours',
  7715. d: 'a day',
  7716. dd: '%d days',
  7717. M: 'a month',
  7718. MM: '%d months',
  7719. y: 'a year',
  7720. yy: '%d years',
  7721. },
  7722. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7723. ordinal: function (number) {
  7724. var b = number % 10,
  7725. output =
  7726. ~~((number % 100) / 10) === 1
  7727. ? 'th'
  7728. : b === 1
  7729. ? 'st'
  7730. : b === 2
  7731. ? 'nd'
  7732. : b === 3
  7733. ? 'rd'
  7734. : 'th';
  7735. return number + output;
  7736. },
  7737. week: {
  7738. dow: 1, // Monday is the first day of the week.
  7739. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7740. },
  7741. });
  7742. //! moment.js locale configuration
  7743. hooks.defineLocale('en-ie', {
  7744. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7745. '_'
  7746. ),
  7747. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7748. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7749. '_'
  7750. ),
  7751. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7752. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7753. longDateFormat: {
  7754. LT: 'HH:mm',
  7755. LTS: 'HH:mm:ss',
  7756. L: 'DD/MM/YYYY',
  7757. LL: 'D MMMM YYYY',
  7758. LLL: 'D MMMM YYYY HH:mm',
  7759. LLLL: 'dddd D MMMM YYYY HH:mm',
  7760. },
  7761. calendar: {
  7762. sameDay: '[Today at] LT',
  7763. nextDay: '[Tomorrow at] LT',
  7764. nextWeek: 'dddd [at] LT',
  7765. lastDay: '[Yesterday at] LT',
  7766. lastWeek: '[Last] dddd [at] LT',
  7767. sameElse: 'L',
  7768. },
  7769. relativeTime: {
  7770. future: 'in %s',
  7771. past: '%s ago',
  7772. s: 'a few seconds',
  7773. ss: '%d seconds',
  7774. m: 'a minute',
  7775. mm: '%d minutes',
  7776. h: 'an hour',
  7777. hh: '%d hours',
  7778. d: 'a day',
  7779. dd: '%d days',
  7780. M: 'a month',
  7781. MM: '%d months',
  7782. y: 'a year',
  7783. yy: '%d years',
  7784. },
  7785. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7786. ordinal: function (number) {
  7787. var b = number % 10,
  7788. output =
  7789. ~~((number % 100) / 10) === 1
  7790. ? 'th'
  7791. : b === 1
  7792. ? 'st'
  7793. : b === 2
  7794. ? 'nd'
  7795. : b === 3
  7796. ? 'rd'
  7797. : 'th';
  7798. return number + output;
  7799. },
  7800. week: {
  7801. dow: 1, // Monday is the first day of the week.
  7802. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7803. },
  7804. });
  7805. //! moment.js locale configuration
  7806. hooks.defineLocale('en-il', {
  7807. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7808. '_'
  7809. ),
  7810. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7811. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7812. '_'
  7813. ),
  7814. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7815. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7816. longDateFormat: {
  7817. LT: 'HH:mm',
  7818. LTS: 'HH:mm:ss',
  7819. L: 'DD/MM/YYYY',
  7820. LL: 'D MMMM YYYY',
  7821. LLL: 'D MMMM YYYY HH:mm',
  7822. LLLL: 'dddd, D MMMM YYYY HH:mm',
  7823. },
  7824. calendar: {
  7825. sameDay: '[Today at] LT',
  7826. nextDay: '[Tomorrow at] LT',
  7827. nextWeek: 'dddd [at] LT',
  7828. lastDay: '[Yesterday at] LT',
  7829. lastWeek: '[Last] dddd [at] LT',
  7830. sameElse: 'L',
  7831. },
  7832. relativeTime: {
  7833. future: 'in %s',
  7834. past: '%s ago',
  7835. s: 'a few seconds',
  7836. ss: '%d seconds',
  7837. m: 'a minute',
  7838. mm: '%d minutes',
  7839. h: 'an hour',
  7840. hh: '%d hours',
  7841. d: 'a day',
  7842. dd: '%d days',
  7843. M: 'a month',
  7844. MM: '%d months',
  7845. y: 'a year',
  7846. yy: '%d years',
  7847. },
  7848. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7849. ordinal: function (number) {
  7850. var b = number % 10,
  7851. output =
  7852. ~~((number % 100) / 10) === 1
  7853. ? 'th'
  7854. : b === 1
  7855. ? 'st'
  7856. : b === 2
  7857. ? 'nd'
  7858. : b === 3
  7859. ? 'rd'
  7860. : 'th';
  7861. return number + output;
  7862. },
  7863. });
  7864. //! moment.js locale configuration
  7865. hooks.defineLocale('en-in', {
  7866. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7867. '_'
  7868. ),
  7869. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7870. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7871. '_'
  7872. ),
  7873. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7874. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7875. longDateFormat: {
  7876. LT: 'h:mm A',
  7877. LTS: 'h:mm:ss A',
  7878. L: 'DD/MM/YYYY',
  7879. LL: 'D MMMM YYYY',
  7880. LLL: 'D MMMM YYYY h:mm A',
  7881. LLLL: 'dddd, D MMMM YYYY h:mm A',
  7882. },
  7883. calendar: {
  7884. sameDay: '[Today at] LT',
  7885. nextDay: '[Tomorrow at] LT',
  7886. nextWeek: 'dddd [at] LT',
  7887. lastDay: '[Yesterday at] LT',
  7888. lastWeek: '[Last] dddd [at] LT',
  7889. sameElse: 'L',
  7890. },
  7891. relativeTime: {
  7892. future: 'in %s',
  7893. past: '%s ago',
  7894. s: 'a few seconds',
  7895. ss: '%d seconds',
  7896. m: 'a minute',
  7897. mm: '%d minutes',
  7898. h: 'an hour',
  7899. hh: '%d hours',
  7900. d: 'a day',
  7901. dd: '%d days',
  7902. M: 'a month',
  7903. MM: '%d months',
  7904. y: 'a year',
  7905. yy: '%d years',
  7906. },
  7907. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7908. ordinal: function (number) {
  7909. var b = number % 10,
  7910. output =
  7911. ~~((number % 100) / 10) === 1
  7912. ? 'th'
  7913. : b === 1
  7914. ? 'st'
  7915. : b === 2
  7916. ? 'nd'
  7917. : b === 3
  7918. ? 'rd'
  7919. : 'th';
  7920. return number + output;
  7921. },
  7922. week: {
  7923. dow: 0, // Sunday is the first day of the week.
  7924. doy: 6, // The week that contains Jan 1st is the first week of the year.
  7925. },
  7926. });
  7927. //! moment.js locale configuration
  7928. hooks.defineLocale('en-nz', {
  7929. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7930. '_'
  7931. ),
  7932. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7933. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7934. '_'
  7935. ),
  7936. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7937. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7938. longDateFormat: {
  7939. LT: 'h:mm A',
  7940. LTS: 'h:mm:ss A',
  7941. L: 'DD/MM/YYYY',
  7942. LL: 'D MMMM YYYY',
  7943. LLL: 'D MMMM YYYY h:mm A',
  7944. LLLL: 'dddd, D MMMM YYYY h:mm A',
  7945. },
  7946. calendar: {
  7947. sameDay: '[Today at] LT',
  7948. nextDay: '[Tomorrow at] LT',
  7949. nextWeek: 'dddd [at] LT',
  7950. lastDay: '[Yesterday at] LT',
  7951. lastWeek: '[Last] dddd [at] LT',
  7952. sameElse: 'L',
  7953. },
  7954. relativeTime: {
  7955. future: 'in %s',
  7956. past: '%s ago',
  7957. s: 'a few seconds',
  7958. ss: '%d seconds',
  7959. m: 'a minute',
  7960. mm: '%d minutes',
  7961. h: 'an hour',
  7962. hh: '%d hours',
  7963. d: 'a day',
  7964. dd: '%d days',
  7965. M: 'a month',
  7966. MM: '%d months',
  7967. y: 'a year',
  7968. yy: '%d years',
  7969. },
  7970. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7971. ordinal: function (number) {
  7972. var b = number % 10,
  7973. output =
  7974. ~~((number % 100) / 10) === 1
  7975. ? 'th'
  7976. : b === 1
  7977. ? 'st'
  7978. : b === 2
  7979. ? 'nd'
  7980. : b === 3
  7981. ? 'rd'
  7982. : 'th';
  7983. return number + output;
  7984. },
  7985. week: {
  7986. dow: 1, // Monday is the first day of the week.
  7987. doy: 4, // The week that contains Jan 4th is the first week of the year.
  7988. },
  7989. });
  7990. //! moment.js locale configuration
  7991. hooks.defineLocale('en-sg', {
  7992. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  7993. '_'
  7994. ),
  7995. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7996. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  7997. '_'
  7998. ),
  7999. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  8000. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  8001. longDateFormat: {
  8002. LT: 'HH:mm',
  8003. LTS: 'HH:mm:ss',
  8004. L: 'DD/MM/YYYY',
  8005. LL: 'D MMMM YYYY',
  8006. LLL: 'D MMMM YYYY HH:mm',
  8007. LLLL: 'dddd, D MMMM YYYY HH:mm',
  8008. },
  8009. calendar: {
  8010. sameDay: '[Today at] LT',
  8011. nextDay: '[Tomorrow at] LT',
  8012. nextWeek: 'dddd [at] LT',
  8013. lastDay: '[Yesterday at] LT',
  8014. lastWeek: '[Last] dddd [at] LT',
  8015. sameElse: 'L',
  8016. },
  8017. relativeTime: {
  8018. future: 'in %s',
  8019. past: '%s ago',
  8020. s: 'a few seconds',
  8021. ss: '%d seconds',
  8022. m: 'a minute',
  8023. mm: '%d minutes',
  8024. h: 'an hour',
  8025. hh: '%d hours',
  8026. d: 'a day',
  8027. dd: '%d days',
  8028. M: 'a month',
  8029. MM: '%d months',
  8030. y: 'a year',
  8031. yy: '%d years',
  8032. },
  8033. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  8034. ordinal: function (number) {
  8035. var b = number % 10,
  8036. output =
  8037. ~~((number % 100) / 10) === 1
  8038. ? 'th'
  8039. : b === 1
  8040. ? 'st'
  8041. : b === 2
  8042. ? 'nd'
  8043. : b === 3
  8044. ? 'rd'
  8045. : 'th';
  8046. return number + output;
  8047. },
  8048. week: {
  8049. dow: 1, // Monday is the first day of the week.
  8050. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8051. },
  8052. });
  8053. //! moment.js locale configuration
  8054. hooks.defineLocale('eo', {
  8055. months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split(
  8056. '_'
  8057. ),
  8058. monthsShort: 'jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec'.split('_'),
  8059. weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),
  8060. weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),
  8061. weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'),
  8062. longDateFormat: {
  8063. LT: 'HH:mm',
  8064. LTS: 'HH:mm:ss',
  8065. L: 'YYYY-MM-DD',
  8066. LL: '[la] D[-an de] MMMM, YYYY',
  8067. LLL: '[la] D[-an de] MMMM, YYYY HH:mm',
  8068. LLLL: 'dddd[n], [la] D[-an de] MMMM, YYYY HH:mm',
  8069. llll: 'ddd, [la] D[-an de] MMM, YYYY HH:mm',
  8070. },
  8071. meridiemParse: /[ap]\.t\.m/i,
  8072. isPM: function (input) {
  8073. return input.charAt(0).toLowerCase() === 'p';
  8074. },
  8075. meridiem: function (hours, minutes, isLower) {
  8076. if (hours > 11) {
  8077. return isLower ? 'p.t.m.' : 'P.T.M.';
  8078. } else {
  8079. return isLower ? 'a.t.m.' : 'A.T.M.';
  8080. }
  8081. },
  8082. calendar: {
  8083. sameDay: '[Hodiaŭ je] LT',
  8084. nextDay: '[Morgaŭ je] LT',
  8085. nextWeek: 'dddd[n je] LT',
  8086. lastDay: '[Hieraŭ je] LT',
  8087. lastWeek: '[pasintan] dddd[n je] LT',
  8088. sameElse: 'L',
  8089. },
  8090. relativeTime: {
  8091. future: 'post %s',
  8092. past: 'antaŭ %s',
  8093. s: 'kelkaj sekundoj',
  8094. ss: '%d sekundoj',
  8095. m: 'unu minuto',
  8096. mm: '%d minutoj',
  8097. h: 'unu horo',
  8098. hh: '%d horoj',
  8099. d: 'unu tago', //ne 'diurno', ĉar estas uzita por proksimumo
  8100. dd: '%d tagoj',
  8101. M: 'unu monato',
  8102. MM: '%d monatoj',
  8103. y: 'unu jaro',
  8104. yy: '%d jaroj',
  8105. },
  8106. dayOfMonthOrdinalParse: /\d{1,2}a/,
  8107. ordinal: '%da',
  8108. week: {
  8109. dow: 1, // Monday is the first day of the week.
  8110. doy: 7, // The week that contains Jan 7th is the first week of the year.
  8111. },
  8112. });
  8113. //! moment.js locale configuration
  8114. var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
  8115. '_'
  8116. ),
  8117. monthsShort$1 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  8118. monthsParse$2 = [
  8119. /^ene/i,
  8120. /^feb/i,
  8121. /^mar/i,
  8122. /^abr/i,
  8123. /^may/i,
  8124. /^jun/i,
  8125. /^jul/i,
  8126. /^ago/i,
  8127. /^sep/i,
  8128. /^oct/i,
  8129. /^nov/i,
  8130. /^dic/i,
  8131. ],
  8132. monthsRegex$3 = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
  8133. hooks.defineLocale('es-do', {
  8134. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
  8135. '_'
  8136. ),
  8137. monthsShort: function (m, format) {
  8138. if (!m) {
  8139. return monthsShortDot;
  8140. } else if (/-MMM-/.test(format)) {
  8141. return monthsShort$1[m.month()];
  8142. } else {
  8143. return monthsShortDot[m.month()];
  8144. }
  8145. },
  8146. monthsRegex: monthsRegex$3,
  8147. monthsShortRegex: monthsRegex$3,
  8148. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  8149. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  8150. monthsParse: monthsParse$2,
  8151. longMonthsParse: monthsParse$2,
  8152. shortMonthsParse: monthsParse$2,
  8153. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  8154. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  8155. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  8156. weekdaysParseExact: true,
  8157. longDateFormat: {
  8158. LT: 'h:mm A',
  8159. LTS: 'h:mm:ss A',
  8160. L: 'DD/MM/YYYY',
  8161. LL: 'D [de] MMMM [de] YYYY',
  8162. LLL: 'D [de] MMMM [de] YYYY h:mm A',
  8163. LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',
  8164. },
  8165. calendar: {
  8166. sameDay: function () {
  8167. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8168. },
  8169. nextDay: function () {
  8170. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8171. },
  8172. nextWeek: function () {
  8173. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8174. },
  8175. lastDay: function () {
  8176. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8177. },
  8178. lastWeek: function () {
  8179. return (
  8180. '[el] dddd [pasado a la' +
  8181. (this.hours() !== 1 ? 's' : '') +
  8182. '] LT'
  8183. );
  8184. },
  8185. sameElse: 'L',
  8186. },
  8187. relativeTime: {
  8188. future: 'en %s',
  8189. past: 'hace %s',
  8190. s: 'unos segundos',
  8191. ss: '%d segundos',
  8192. m: 'un minuto',
  8193. mm: '%d minutos',
  8194. h: 'una hora',
  8195. hh: '%d horas',
  8196. d: 'un día',
  8197. dd: '%d días',
  8198. w: 'una semana',
  8199. ww: '%d semanas',
  8200. M: 'un mes',
  8201. MM: '%d meses',
  8202. y: 'un año',
  8203. yy: '%d años',
  8204. },
  8205. dayOfMonthOrdinalParse: /\d{1,2}º/,
  8206. ordinal: '%dº',
  8207. week: {
  8208. dow: 1, // Monday is the first day of the week.
  8209. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8210. },
  8211. });
  8212. //! moment.js locale configuration
  8213. var monthsShortDot$1 = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
  8214. '_'
  8215. ),
  8216. monthsShort$2 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  8217. monthsParse$3 = [
  8218. /^ene/i,
  8219. /^feb/i,
  8220. /^mar/i,
  8221. /^abr/i,
  8222. /^may/i,
  8223. /^jun/i,
  8224. /^jul/i,
  8225. /^ago/i,
  8226. /^sep/i,
  8227. /^oct/i,
  8228. /^nov/i,
  8229. /^dic/i,
  8230. ],
  8231. monthsRegex$4 = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
  8232. hooks.defineLocale('es-mx', {
  8233. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
  8234. '_'
  8235. ),
  8236. monthsShort: function (m, format) {
  8237. if (!m) {
  8238. return monthsShortDot$1;
  8239. } else if (/-MMM-/.test(format)) {
  8240. return monthsShort$2[m.month()];
  8241. } else {
  8242. return monthsShortDot$1[m.month()];
  8243. }
  8244. },
  8245. monthsRegex: monthsRegex$4,
  8246. monthsShortRegex: monthsRegex$4,
  8247. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  8248. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  8249. monthsParse: monthsParse$3,
  8250. longMonthsParse: monthsParse$3,
  8251. shortMonthsParse: monthsParse$3,
  8252. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  8253. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  8254. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  8255. weekdaysParseExact: true,
  8256. longDateFormat: {
  8257. LT: 'H:mm',
  8258. LTS: 'H:mm:ss',
  8259. L: 'DD/MM/YYYY',
  8260. LL: 'D [de] MMMM [de] YYYY',
  8261. LLL: 'D [de] MMMM [de] YYYY H:mm',
  8262. LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
  8263. },
  8264. calendar: {
  8265. sameDay: function () {
  8266. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8267. },
  8268. nextDay: function () {
  8269. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8270. },
  8271. nextWeek: function () {
  8272. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8273. },
  8274. lastDay: function () {
  8275. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8276. },
  8277. lastWeek: function () {
  8278. return (
  8279. '[el] dddd [pasado a la' +
  8280. (this.hours() !== 1 ? 's' : '') +
  8281. '] LT'
  8282. );
  8283. },
  8284. sameElse: 'L',
  8285. },
  8286. relativeTime: {
  8287. future: 'en %s',
  8288. past: 'hace %s',
  8289. s: 'unos segundos',
  8290. ss: '%d segundos',
  8291. m: 'un minuto',
  8292. mm: '%d minutos',
  8293. h: 'una hora',
  8294. hh: '%d horas',
  8295. d: 'un día',
  8296. dd: '%d días',
  8297. w: 'una semana',
  8298. ww: '%d semanas',
  8299. M: 'un mes',
  8300. MM: '%d meses',
  8301. y: 'un año',
  8302. yy: '%d años',
  8303. },
  8304. dayOfMonthOrdinalParse: /\d{1,2}º/,
  8305. ordinal: '%dº',
  8306. week: {
  8307. dow: 0, // Sunday is the first day of the week.
  8308. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8309. },
  8310. invalidDate: 'Fecha inválida',
  8311. });
  8312. //! moment.js locale configuration
  8313. var monthsShortDot$2 = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
  8314. '_'
  8315. ),
  8316. monthsShort$3 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  8317. monthsParse$4 = [
  8318. /^ene/i,
  8319. /^feb/i,
  8320. /^mar/i,
  8321. /^abr/i,
  8322. /^may/i,
  8323. /^jun/i,
  8324. /^jul/i,
  8325. /^ago/i,
  8326. /^sep/i,
  8327. /^oct/i,
  8328. /^nov/i,
  8329. /^dic/i,
  8330. ],
  8331. monthsRegex$5 = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
  8332. hooks.defineLocale('es-us', {
  8333. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
  8334. '_'
  8335. ),
  8336. monthsShort: function (m, format) {
  8337. if (!m) {
  8338. return monthsShortDot$2;
  8339. } else if (/-MMM-/.test(format)) {
  8340. return monthsShort$3[m.month()];
  8341. } else {
  8342. return monthsShortDot$2[m.month()];
  8343. }
  8344. },
  8345. monthsRegex: monthsRegex$5,
  8346. monthsShortRegex: monthsRegex$5,
  8347. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  8348. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  8349. monthsParse: monthsParse$4,
  8350. longMonthsParse: monthsParse$4,
  8351. shortMonthsParse: monthsParse$4,
  8352. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  8353. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  8354. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  8355. weekdaysParseExact: true,
  8356. longDateFormat: {
  8357. LT: 'h:mm A',
  8358. LTS: 'h:mm:ss A',
  8359. L: 'MM/DD/YYYY',
  8360. LL: 'D [de] MMMM [de] YYYY',
  8361. LLL: 'D [de] MMMM [de] YYYY h:mm A',
  8362. LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A',
  8363. },
  8364. calendar: {
  8365. sameDay: function () {
  8366. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8367. },
  8368. nextDay: function () {
  8369. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8370. },
  8371. nextWeek: function () {
  8372. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8373. },
  8374. lastDay: function () {
  8375. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8376. },
  8377. lastWeek: function () {
  8378. return (
  8379. '[el] dddd [pasado a la' +
  8380. (this.hours() !== 1 ? 's' : '') +
  8381. '] LT'
  8382. );
  8383. },
  8384. sameElse: 'L',
  8385. },
  8386. relativeTime: {
  8387. future: 'en %s',
  8388. past: 'hace %s',
  8389. s: 'unos segundos',
  8390. ss: '%d segundos',
  8391. m: 'un minuto',
  8392. mm: '%d minutos',
  8393. h: 'una hora',
  8394. hh: '%d horas',
  8395. d: 'un día',
  8396. dd: '%d días',
  8397. w: 'una semana',
  8398. ww: '%d semanas',
  8399. M: 'un mes',
  8400. MM: '%d meses',
  8401. y: 'un año',
  8402. yy: '%d años',
  8403. },
  8404. dayOfMonthOrdinalParse: /\d{1,2}º/,
  8405. ordinal: '%dº',
  8406. week: {
  8407. dow: 0, // Sunday is the first day of the week.
  8408. doy: 6, // The week that contains Jan 6th is the first week of the year.
  8409. },
  8410. });
  8411. //! moment.js locale configuration
  8412. var monthsShortDot$3 = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split(
  8413. '_'
  8414. ),
  8415. monthsShort$4 = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),
  8416. monthsParse$5 = [
  8417. /^ene/i,
  8418. /^feb/i,
  8419. /^mar/i,
  8420. /^abr/i,
  8421. /^may/i,
  8422. /^jun/i,
  8423. /^jul/i,
  8424. /^ago/i,
  8425. /^sep/i,
  8426. /^oct/i,
  8427. /^nov/i,
  8428. /^dic/i,
  8429. ],
  8430. monthsRegex$6 = /^(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;
  8431. hooks.defineLocale('es', {
  8432. months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split(
  8433. '_'
  8434. ),
  8435. monthsShort: function (m, format) {
  8436. if (!m) {
  8437. return monthsShortDot$3;
  8438. } else if (/-MMM-/.test(format)) {
  8439. return monthsShort$4[m.month()];
  8440. } else {
  8441. return monthsShortDot$3[m.month()];
  8442. }
  8443. },
  8444. monthsRegex: monthsRegex$6,
  8445. monthsShortRegex: monthsRegex$6,
  8446. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  8447. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  8448. monthsParse: monthsParse$5,
  8449. longMonthsParse: monthsParse$5,
  8450. shortMonthsParse: monthsParse$5,
  8451. weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  8452. weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  8453. weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  8454. weekdaysParseExact: true,
  8455. longDateFormat: {
  8456. LT: 'H:mm',
  8457. LTS: 'H:mm:ss',
  8458. L: 'DD/MM/YYYY',
  8459. LL: 'D [de] MMMM [de] YYYY',
  8460. LLL: 'D [de] MMMM [de] YYYY H:mm',
  8461. LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
  8462. },
  8463. calendar: {
  8464. sameDay: function () {
  8465. return '[hoy a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8466. },
  8467. nextDay: function () {
  8468. return '[mañana a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8469. },
  8470. nextWeek: function () {
  8471. return 'dddd [a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8472. },
  8473. lastDay: function () {
  8474. return '[ayer a la' + (this.hours() !== 1 ? 's' : '') + '] LT';
  8475. },
  8476. lastWeek: function () {
  8477. return (
  8478. '[el] dddd [pasado a la' +
  8479. (this.hours() !== 1 ? 's' : '') +
  8480. '] LT'
  8481. );
  8482. },
  8483. sameElse: 'L',
  8484. },
  8485. relativeTime: {
  8486. future: 'en %s',
  8487. past: 'hace %s',
  8488. s: 'unos segundos',
  8489. ss: '%d segundos',
  8490. m: 'un minuto',
  8491. mm: '%d minutos',
  8492. h: 'una hora',
  8493. hh: '%d horas',
  8494. d: 'un día',
  8495. dd: '%d días',
  8496. w: 'una semana',
  8497. ww: '%d semanas',
  8498. M: 'un mes',
  8499. MM: '%d meses',
  8500. y: 'un año',
  8501. yy: '%d años',
  8502. },
  8503. dayOfMonthOrdinalParse: /\d{1,2}º/,
  8504. ordinal: '%dº',
  8505. week: {
  8506. dow: 1, // Monday is the first day of the week.
  8507. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8508. },
  8509. invalidDate: 'Fecha inválida',
  8510. });
  8511. //! moment.js locale configuration
  8512. function processRelativeTime$3(number, withoutSuffix, key, isFuture) {
  8513. var format = {
  8514. s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
  8515. ss: [number + 'sekundi', number + 'sekundit'],
  8516. m: ['ühe minuti', 'üks minut'],
  8517. mm: [number + ' minuti', number + ' minutit'],
  8518. h: ['ühe tunni', 'tund aega', 'üks tund'],
  8519. hh: [number + ' tunni', number + ' tundi'],
  8520. d: ['ühe päeva', 'üks päev'],
  8521. M: ['kuu aja', 'kuu aega', 'üks kuu'],
  8522. MM: [number + ' kuu', number + ' kuud'],
  8523. y: ['ühe aasta', 'aasta', 'üks aasta'],
  8524. yy: [number + ' aasta', number + ' aastat'],
  8525. };
  8526. if (withoutSuffix) {
  8527. return format[key][2] ? format[key][2] : format[key][1];
  8528. }
  8529. return isFuture ? format[key][0] : format[key][1];
  8530. }
  8531. hooks.defineLocale('et', {
  8532. months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split(
  8533. '_'
  8534. ),
  8535. monthsShort: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split(
  8536. '_'
  8537. ),
  8538. weekdays: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split(
  8539. '_'
  8540. ),
  8541. weekdaysShort: 'P_E_T_K_N_R_L'.split('_'),
  8542. weekdaysMin: 'P_E_T_K_N_R_L'.split('_'),
  8543. longDateFormat: {
  8544. LT: 'H:mm',
  8545. LTS: 'H:mm:ss',
  8546. L: 'DD.MM.YYYY',
  8547. LL: 'D. MMMM YYYY',
  8548. LLL: 'D. MMMM YYYY H:mm',
  8549. LLLL: 'dddd, D. MMMM YYYY H:mm',
  8550. },
  8551. calendar: {
  8552. sameDay: '[Täna,] LT',
  8553. nextDay: '[Homme,] LT',
  8554. nextWeek: '[Järgmine] dddd LT',
  8555. lastDay: '[Eile,] LT',
  8556. lastWeek: '[Eelmine] dddd LT',
  8557. sameElse: 'L',
  8558. },
  8559. relativeTime: {
  8560. future: '%s pärast',
  8561. past: '%s tagasi',
  8562. s: processRelativeTime$3,
  8563. ss: processRelativeTime$3,
  8564. m: processRelativeTime$3,
  8565. mm: processRelativeTime$3,
  8566. h: processRelativeTime$3,
  8567. hh: processRelativeTime$3,
  8568. d: processRelativeTime$3,
  8569. dd: '%d päeva',
  8570. M: processRelativeTime$3,
  8571. MM: processRelativeTime$3,
  8572. y: processRelativeTime$3,
  8573. yy: processRelativeTime$3,
  8574. },
  8575. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8576. ordinal: '%d.',
  8577. week: {
  8578. dow: 1, // Monday is the first day of the week.
  8579. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8580. },
  8581. });
  8582. //! moment.js locale configuration
  8583. hooks.defineLocale('eu', {
  8584. months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split(
  8585. '_'
  8586. ),
  8587. monthsShort: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split(
  8588. '_'
  8589. ),
  8590. monthsParseExact: true,
  8591. weekdays: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split(
  8592. '_'
  8593. ),
  8594. weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'),
  8595. weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'),
  8596. weekdaysParseExact: true,
  8597. longDateFormat: {
  8598. LT: 'HH:mm',
  8599. LTS: 'HH:mm:ss',
  8600. L: 'YYYY-MM-DD',
  8601. LL: 'YYYY[ko] MMMM[ren] D[a]',
  8602. LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm',
  8603. LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
  8604. l: 'YYYY-M-D',
  8605. ll: 'YYYY[ko] MMM D[a]',
  8606. lll: 'YYYY[ko] MMM D[a] HH:mm',
  8607. llll: 'ddd, YYYY[ko] MMM D[a] HH:mm',
  8608. },
  8609. calendar: {
  8610. sameDay: '[gaur] LT[etan]',
  8611. nextDay: '[bihar] LT[etan]',
  8612. nextWeek: 'dddd LT[etan]',
  8613. lastDay: '[atzo] LT[etan]',
  8614. lastWeek: '[aurreko] dddd LT[etan]',
  8615. sameElse: 'L',
  8616. },
  8617. relativeTime: {
  8618. future: '%s barru',
  8619. past: 'duela %s',
  8620. s: 'segundo batzuk',
  8621. ss: '%d segundo',
  8622. m: 'minutu bat',
  8623. mm: '%d minutu',
  8624. h: 'ordu bat',
  8625. hh: '%d ordu',
  8626. d: 'egun bat',
  8627. dd: '%d egun',
  8628. M: 'hilabete bat',
  8629. MM: '%d hilabete',
  8630. y: 'urte bat',
  8631. yy: '%d urte',
  8632. },
  8633. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8634. ordinal: '%d.',
  8635. week: {
  8636. dow: 1, // Monday is the first day of the week.
  8637. doy: 7, // The week that contains Jan 7th is the first week of the year.
  8638. },
  8639. });
  8640. //! moment.js locale configuration
  8641. var symbolMap$6 = {
  8642. 1: '۱',
  8643. 2: '۲',
  8644. 3: '۳',
  8645. 4: '۴',
  8646. 5: '۵',
  8647. 6: '۶',
  8648. 7: '۷',
  8649. 8: '۸',
  8650. 9: '۹',
  8651. 0: '۰',
  8652. },
  8653. numberMap$5 = {
  8654. '۱': '1',
  8655. '۲': '2',
  8656. '۳': '3',
  8657. '۴': '4',
  8658. '۵': '5',
  8659. '۶': '6',
  8660. '۷': '7',
  8661. '۸': '8',
  8662. '۹': '9',
  8663. '۰': '0',
  8664. };
  8665. hooks.defineLocale('fa', {
  8666. months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(
  8667. '_'
  8668. ),
  8669. monthsShort: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(
  8670. '_'
  8671. ),
  8672. weekdays: 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split(
  8673. '_'
  8674. ),
  8675. weekdaysShort: 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split(
  8676. '_'
  8677. ),
  8678. weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'),
  8679. weekdaysParseExact: true,
  8680. longDateFormat: {
  8681. LT: 'HH:mm',
  8682. LTS: 'HH:mm:ss',
  8683. L: 'DD/MM/YYYY',
  8684. LL: 'D MMMM YYYY',
  8685. LLL: 'D MMMM YYYY HH:mm',
  8686. LLLL: 'dddd, D MMMM YYYY HH:mm',
  8687. },
  8688. meridiemParse: /قبل از ظهر|بعد از ظهر/,
  8689. isPM: function (input) {
  8690. return /بعد از ظهر/.test(input);
  8691. },
  8692. meridiem: function (hour, minute, isLower) {
  8693. if (hour < 12) {
  8694. return 'قبل از ظهر';
  8695. } else {
  8696. return 'بعد از ظهر';
  8697. }
  8698. },
  8699. calendar: {
  8700. sameDay: '[امروز ساعت] LT',
  8701. nextDay: '[فردا ساعت] LT',
  8702. nextWeek: 'dddd [ساعت] LT',
  8703. lastDay: '[دیروز ساعت] LT',
  8704. lastWeek: 'dddd [پیش] [ساعت] LT',
  8705. sameElse: 'L',
  8706. },
  8707. relativeTime: {
  8708. future: 'در %s',
  8709. past: '%s پیش',
  8710. s: 'چند ثانیه',
  8711. ss: '%d ثانیه',
  8712. m: 'یک دقیقه',
  8713. mm: '%d دقیقه',
  8714. h: 'یک ساعت',
  8715. hh: '%d ساعت',
  8716. d: 'یک روز',
  8717. dd: '%d روز',
  8718. M: 'یک ماه',
  8719. MM: '%d ماه',
  8720. y: 'یک سال',
  8721. yy: '%d سال',
  8722. },
  8723. preparse: function (string) {
  8724. return string
  8725. .replace(/[۰-۹]/g, function (match) {
  8726. return numberMap$5[match];
  8727. })
  8728. .replace(/،/g, ',');
  8729. },
  8730. postformat: function (string) {
  8731. return string
  8732. .replace(/\d/g, function (match) {
  8733. return symbolMap$6[match];
  8734. })
  8735. .replace(/,/g, '،');
  8736. },
  8737. dayOfMonthOrdinalParse: /\d{1,2}م/,
  8738. ordinal: '%dم',
  8739. week: {
  8740. dow: 6, // Saturday is the first day of the week.
  8741. doy: 12, // The week that contains Jan 12th is the first week of the year.
  8742. },
  8743. });
  8744. //! moment.js locale configuration
  8745. var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(
  8746. ' '
  8747. ),
  8748. numbersFuture = [
  8749. 'nolla',
  8750. 'yhden',
  8751. 'kahden',
  8752. 'kolmen',
  8753. 'neljän',
  8754. 'viiden',
  8755. 'kuuden',
  8756. numbersPast[7],
  8757. numbersPast[8],
  8758. numbersPast[9],
  8759. ];
  8760. function translate$2(number, withoutSuffix, key, isFuture) {
  8761. var result = '';
  8762. switch (key) {
  8763. case 's':
  8764. return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
  8765. case 'ss':
  8766. result = isFuture ? 'sekunnin' : 'sekuntia';
  8767. break;
  8768. case 'm':
  8769. return isFuture ? 'minuutin' : 'minuutti';
  8770. case 'mm':
  8771. result = isFuture ? 'minuutin' : 'minuuttia';
  8772. break;
  8773. case 'h':
  8774. return isFuture ? 'tunnin' : 'tunti';
  8775. case 'hh':
  8776. result = isFuture ? 'tunnin' : 'tuntia';
  8777. break;
  8778. case 'd':
  8779. return isFuture ? 'päivän' : 'päivä';
  8780. case 'dd':
  8781. result = isFuture ? 'päivän' : 'päivää';
  8782. break;
  8783. case 'M':
  8784. return isFuture ? 'kuukauden' : 'kuukausi';
  8785. case 'MM':
  8786. result = isFuture ? 'kuukauden' : 'kuukautta';
  8787. break;
  8788. case 'y':
  8789. return isFuture ? 'vuoden' : 'vuosi';
  8790. case 'yy':
  8791. result = isFuture ? 'vuoden' : 'vuotta';
  8792. break;
  8793. }
  8794. result = verbalNumber(number, isFuture) + ' ' + result;
  8795. return result;
  8796. }
  8797. function verbalNumber(number, isFuture) {
  8798. return number < 10
  8799. ? isFuture
  8800. ? numbersFuture[number]
  8801. : numbersPast[number]
  8802. : number;
  8803. }
  8804. hooks.defineLocale('fi', {
  8805. months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split(
  8806. '_'
  8807. ),
  8808. monthsShort: 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split(
  8809. '_'
  8810. ),
  8811. weekdays: 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split(
  8812. '_'
  8813. ),
  8814. weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'),
  8815. weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'),
  8816. longDateFormat: {
  8817. LT: 'HH.mm',
  8818. LTS: 'HH.mm.ss',
  8819. L: 'DD.MM.YYYY',
  8820. LL: 'Do MMMM[ta] YYYY',
  8821. LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm',
  8822. LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
  8823. l: 'D.M.YYYY',
  8824. ll: 'Do MMM YYYY',
  8825. lll: 'Do MMM YYYY, [klo] HH.mm',
  8826. llll: 'ddd, Do MMM YYYY, [klo] HH.mm',
  8827. },
  8828. calendar: {
  8829. sameDay: '[tänään] [klo] LT',
  8830. nextDay: '[huomenna] [klo] LT',
  8831. nextWeek: 'dddd [klo] LT',
  8832. lastDay: '[eilen] [klo] LT',
  8833. lastWeek: '[viime] dddd[na] [klo] LT',
  8834. sameElse: 'L',
  8835. },
  8836. relativeTime: {
  8837. future: '%s päästä',
  8838. past: '%s sitten',
  8839. s: translate$2,
  8840. ss: translate$2,
  8841. m: translate$2,
  8842. mm: translate$2,
  8843. h: translate$2,
  8844. hh: translate$2,
  8845. d: translate$2,
  8846. dd: translate$2,
  8847. M: translate$2,
  8848. MM: translate$2,
  8849. y: translate$2,
  8850. yy: translate$2,
  8851. },
  8852. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8853. ordinal: '%d.',
  8854. week: {
  8855. dow: 1, // Monday is the first day of the week.
  8856. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8857. },
  8858. });
  8859. //! moment.js locale configuration
  8860. hooks.defineLocale('fil', {
  8861. months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(
  8862. '_'
  8863. ),
  8864. monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
  8865. weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(
  8866. '_'
  8867. ),
  8868. weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
  8869. weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
  8870. longDateFormat: {
  8871. LT: 'HH:mm',
  8872. LTS: 'HH:mm:ss',
  8873. L: 'MM/D/YYYY',
  8874. LL: 'MMMM D, YYYY',
  8875. LLL: 'MMMM D, YYYY HH:mm',
  8876. LLLL: 'dddd, MMMM DD, YYYY HH:mm',
  8877. },
  8878. calendar: {
  8879. sameDay: 'LT [ngayong araw]',
  8880. nextDay: '[Bukas ng] LT',
  8881. nextWeek: 'LT [sa susunod na] dddd',
  8882. lastDay: 'LT [kahapon]',
  8883. lastWeek: 'LT [noong nakaraang] dddd',
  8884. sameElse: 'L',
  8885. },
  8886. relativeTime: {
  8887. future: 'sa loob ng %s',
  8888. past: '%s ang nakalipas',
  8889. s: 'ilang segundo',
  8890. ss: '%d segundo',
  8891. m: 'isang minuto',
  8892. mm: '%d minuto',
  8893. h: 'isang oras',
  8894. hh: '%d oras',
  8895. d: 'isang araw',
  8896. dd: '%d araw',
  8897. M: 'isang buwan',
  8898. MM: '%d buwan',
  8899. y: 'isang taon',
  8900. yy: '%d taon',
  8901. },
  8902. dayOfMonthOrdinalParse: /\d{1,2}/,
  8903. ordinal: function (number) {
  8904. return number;
  8905. },
  8906. week: {
  8907. dow: 1, // Monday is the first day of the week.
  8908. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8909. },
  8910. });
  8911. //! moment.js locale configuration
  8912. hooks.defineLocale('fo', {
  8913. months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split(
  8914. '_'
  8915. ),
  8916. monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  8917. weekdays: 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split(
  8918. '_'
  8919. ),
  8920. weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
  8921. weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'),
  8922. longDateFormat: {
  8923. LT: 'HH:mm',
  8924. LTS: 'HH:mm:ss',
  8925. L: 'DD/MM/YYYY',
  8926. LL: 'D MMMM YYYY',
  8927. LLL: 'D MMMM YYYY HH:mm',
  8928. LLLL: 'dddd D. MMMM, YYYY HH:mm',
  8929. },
  8930. calendar: {
  8931. sameDay: '[Í dag kl.] LT',
  8932. nextDay: '[Í morgin kl.] LT',
  8933. nextWeek: 'dddd [kl.] LT',
  8934. lastDay: '[Í gjár kl.] LT',
  8935. lastWeek: '[síðstu] dddd [kl] LT',
  8936. sameElse: 'L',
  8937. },
  8938. relativeTime: {
  8939. future: 'um %s',
  8940. past: '%s síðani',
  8941. s: 'fá sekund',
  8942. ss: '%d sekundir',
  8943. m: 'ein minuttur',
  8944. mm: '%d minuttir',
  8945. h: 'ein tími',
  8946. hh: '%d tímar',
  8947. d: 'ein dagur',
  8948. dd: '%d dagar',
  8949. M: 'ein mánaður',
  8950. MM: '%d mánaðir',
  8951. y: 'eitt ár',
  8952. yy: '%d ár',
  8953. },
  8954. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8955. ordinal: '%d.',
  8956. week: {
  8957. dow: 1, // Monday is the first day of the week.
  8958. doy: 4, // The week that contains Jan 4th is the first week of the year.
  8959. },
  8960. });
  8961. //! moment.js locale configuration
  8962. hooks.defineLocale('fr-ca', {
  8963. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
  8964. '_'
  8965. ),
  8966. monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
  8967. '_'
  8968. ),
  8969. monthsParseExact: true,
  8970. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  8971. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  8972. weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
  8973. weekdaysParseExact: true,
  8974. longDateFormat: {
  8975. LT: 'HH:mm',
  8976. LTS: 'HH:mm:ss',
  8977. L: 'YYYY-MM-DD',
  8978. LL: 'D MMMM YYYY',
  8979. LLL: 'D MMMM YYYY HH:mm',
  8980. LLLL: 'dddd D MMMM YYYY HH:mm',
  8981. },
  8982. calendar: {
  8983. sameDay: '[Aujourd’hui à] LT',
  8984. nextDay: '[Demain à] LT',
  8985. nextWeek: 'dddd [à] LT',
  8986. lastDay: '[Hier à] LT',
  8987. lastWeek: 'dddd [dernier à] LT',
  8988. sameElse: 'L',
  8989. },
  8990. relativeTime: {
  8991. future: 'dans %s',
  8992. past: 'il y a %s',
  8993. s: 'quelques secondes',
  8994. ss: '%d secondes',
  8995. m: 'une minute',
  8996. mm: '%d minutes',
  8997. h: 'une heure',
  8998. hh: '%d heures',
  8999. d: 'un jour',
  9000. dd: '%d jours',
  9001. M: 'un mois',
  9002. MM: '%d mois',
  9003. y: 'un an',
  9004. yy: '%d ans',
  9005. },
  9006. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  9007. ordinal: function (number, period) {
  9008. switch (period) {
  9009. // Words with masculine grammatical gender: mois, trimestre, jour
  9010. default:
  9011. case 'M':
  9012. case 'Q':
  9013. case 'D':
  9014. case 'DDD':
  9015. case 'd':
  9016. return number + (number === 1 ? 'er' : 'e');
  9017. // Words with feminine grammatical gender: semaine
  9018. case 'w':
  9019. case 'W':
  9020. return number + (number === 1 ? 're' : 'e');
  9021. }
  9022. },
  9023. });
  9024. //! moment.js locale configuration
  9025. hooks.defineLocale('fr-ch', {
  9026. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
  9027. '_'
  9028. ),
  9029. monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
  9030. '_'
  9031. ),
  9032. monthsParseExact: true,
  9033. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  9034. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  9035. weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
  9036. weekdaysParseExact: true,
  9037. longDateFormat: {
  9038. LT: 'HH:mm',
  9039. LTS: 'HH:mm:ss',
  9040. L: 'DD.MM.YYYY',
  9041. LL: 'D MMMM YYYY',
  9042. LLL: 'D MMMM YYYY HH:mm',
  9043. LLLL: 'dddd D MMMM YYYY HH:mm',
  9044. },
  9045. calendar: {
  9046. sameDay: '[Aujourd’hui à] LT',
  9047. nextDay: '[Demain à] LT',
  9048. nextWeek: 'dddd [à] LT',
  9049. lastDay: '[Hier à] LT',
  9050. lastWeek: 'dddd [dernier à] LT',
  9051. sameElse: 'L',
  9052. },
  9053. relativeTime: {
  9054. future: 'dans %s',
  9055. past: 'il y a %s',
  9056. s: 'quelques secondes',
  9057. ss: '%d secondes',
  9058. m: 'une minute',
  9059. mm: '%d minutes',
  9060. h: 'une heure',
  9061. hh: '%d heures',
  9062. d: 'un jour',
  9063. dd: '%d jours',
  9064. M: 'un mois',
  9065. MM: '%d mois',
  9066. y: 'un an',
  9067. yy: '%d ans',
  9068. },
  9069. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  9070. ordinal: function (number, period) {
  9071. switch (period) {
  9072. // Words with masculine grammatical gender: mois, trimestre, jour
  9073. default:
  9074. case 'M':
  9075. case 'Q':
  9076. case 'D':
  9077. case 'DDD':
  9078. case 'd':
  9079. return number + (number === 1 ? 'er' : 'e');
  9080. // Words with feminine grammatical gender: semaine
  9081. case 'w':
  9082. case 'W':
  9083. return number + (number === 1 ? 're' : 'e');
  9084. }
  9085. },
  9086. week: {
  9087. dow: 1, // Monday is the first day of the week.
  9088. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9089. },
  9090. });
  9091. //! moment.js locale configuration
  9092. var monthsStrictRegex$1 = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
  9093. monthsShortStrictRegex$1 = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,
  9094. monthsRegex$7 = /(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,
  9095. monthsParse$6 = [
  9096. /^janv/i,
  9097. /^févr/i,
  9098. /^mars/i,
  9099. /^avr/i,
  9100. /^mai/i,
  9101. /^juin/i,
  9102. /^juil/i,
  9103. /^août/i,
  9104. /^sept/i,
  9105. /^oct/i,
  9106. /^nov/i,
  9107. /^déc/i,
  9108. ];
  9109. hooks.defineLocale('fr', {
  9110. months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
  9111. '_'
  9112. ),
  9113. monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
  9114. '_'
  9115. ),
  9116. monthsRegex: monthsRegex$7,
  9117. monthsShortRegex: monthsRegex$7,
  9118. monthsStrictRegex: monthsStrictRegex$1,
  9119. monthsShortStrictRegex: monthsShortStrictRegex$1,
  9120. monthsParse: monthsParse$6,
  9121. longMonthsParse: monthsParse$6,
  9122. shortMonthsParse: monthsParse$6,
  9123. weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  9124. weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  9125. weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'),
  9126. weekdaysParseExact: true,
  9127. longDateFormat: {
  9128. LT: 'HH:mm',
  9129. LTS: 'HH:mm:ss',
  9130. L: 'DD/MM/YYYY',
  9131. LL: 'D MMMM YYYY',
  9132. LLL: 'D MMMM YYYY HH:mm',
  9133. LLLL: 'dddd D MMMM YYYY HH:mm',
  9134. },
  9135. calendar: {
  9136. sameDay: '[Aujourd’hui à] LT',
  9137. nextDay: '[Demain à] LT',
  9138. nextWeek: 'dddd [à] LT',
  9139. lastDay: '[Hier à] LT',
  9140. lastWeek: 'dddd [dernier à] LT',
  9141. sameElse: 'L',
  9142. },
  9143. relativeTime: {
  9144. future: 'dans %s',
  9145. past: 'il y a %s',
  9146. s: 'quelques secondes',
  9147. ss: '%d secondes',
  9148. m: 'une minute',
  9149. mm: '%d minutes',
  9150. h: 'une heure',
  9151. hh: '%d heures',
  9152. d: 'un jour',
  9153. dd: '%d jours',
  9154. w: 'une semaine',
  9155. ww: '%d semaines',
  9156. M: 'un mois',
  9157. MM: '%d mois',
  9158. y: 'un an',
  9159. yy: '%d ans',
  9160. },
  9161. dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
  9162. ordinal: function (number, period) {
  9163. switch (period) {
  9164. // TODO: Return 'e' when day of month > 1. Move this case inside
  9165. // block for masculine words below.
  9166. // See https://github.com/moment/moment/issues/3375
  9167. case 'D':
  9168. return number + (number === 1 ? 'er' : '');
  9169. // Words with masculine grammatical gender: mois, trimestre, jour
  9170. default:
  9171. case 'M':
  9172. case 'Q':
  9173. case 'DDD':
  9174. case 'd':
  9175. return number + (number === 1 ? 'er' : 'e');
  9176. // Words with feminine grammatical gender: semaine
  9177. case 'w':
  9178. case 'W':
  9179. return number + (number === 1 ? 're' : 'e');
  9180. }
  9181. },
  9182. week: {
  9183. dow: 1, // Monday is the first day of the week.
  9184. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9185. },
  9186. });
  9187. //! moment.js locale configuration
  9188. var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split(
  9189. '_'
  9190. ),
  9191. monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split(
  9192. '_'
  9193. );
  9194. hooks.defineLocale('fy', {
  9195. months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split(
  9196. '_'
  9197. ),
  9198. monthsShort: function (m, format) {
  9199. if (!m) {
  9200. return monthsShortWithDots;
  9201. } else if (/-MMM-/.test(format)) {
  9202. return monthsShortWithoutDots[m.month()];
  9203. } else {
  9204. return monthsShortWithDots[m.month()];
  9205. }
  9206. },
  9207. monthsParseExact: true,
  9208. weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split(
  9209. '_'
  9210. ),
  9211. weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'),
  9212. weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
  9213. weekdaysParseExact: true,
  9214. longDateFormat: {
  9215. LT: 'HH:mm',
  9216. LTS: 'HH:mm:ss',
  9217. L: 'DD-MM-YYYY',
  9218. LL: 'D MMMM YYYY',
  9219. LLL: 'D MMMM YYYY HH:mm',
  9220. LLLL: 'dddd D MMMM YYYY HH:mm',
  9221. },
  9222. calendar: {
  9223. sameDay: '[hjoed om] LT',
  9224. nextDay: '[moarn om] LT',
  9225. nextWeek: 'dddd [om] LT',
  9226. lastDay: '[juster om] LT',
  9227. lastWeek: '[ôfrûne] dddd [om] LT',
  9228. sameElse: 'L',
  9229. },
  9230. relativeTime: {
  9231. future: 'oer %s',
  9232. past: '%s lyn',
  9233. s: 'in pear sekonden',
  9234. ss: '%d sekonden',
  9235. m: 'ien minút',
  9236. mm: '%d minuten',
  9237. h: 'ien oere',
  9238. hh: '%d oeren',
  9239. d: 'ien dei',
  9240. dd: '%d dagen',
  9241. M: 'ien moanne',
  9242. MM: '%d moannen',
  9243. y: 'ien jier',
  9244. yy: '%d jierren',
  9245. },
  9246. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  9247. ordinal: function (number) {
  9248. return (
  9249. number +
  9250. (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
  9251. );
  9252. },
  9253. week: {
  9254. dow: 1, // Monday is the first day of the week.
  9255. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9256. },
  9257. });
  9258. //! moment.js locale configuration
  9259. var months$6 = [
  9260. 'Eanáir',
  9261. 'Feabhra',
  9262. 'Márta',
  9263. 'Aibreán',
  9264. 'Bealtaine',
  9265. 'Meitheamh',
  9266. 'Iúil',
  9267. 'Lúnasa',
  9268. 'Meán Fómhair',
  9269. 'Deireadh Fómhair',
  9270. 'Samhain',
  9271. 'Nollaig',
  9272. ],
  9273. monthsShort$5 = [
  9274. 'Ean',
  9275. 'Feabh',
  9276. 'Márt',
  9277. 'Aib',
  9278. 'Beal',
  9279. 'Meith',
  9280. 'Iúil',
  9281. 'Lún',
  9282. 'M.F.',
  9283. 'D.F.',
  9284. 'Samh',
  9285. 'Noll',
  9286. ],
  9287. weekdays$1 = [
  9288. 'Dé Domhnaigh',
  9289. 'Dé Luain',
  9290. 'Dé Máirt',
  9291. 'Dé Céadaoin',
  9292. 'Déardaoin',
  9293. 'Dé hAoine',
  9294. 'Dé Sathairn',
  9295. ],
  9296. weekdaysShort = ['Domh', 'Luan', 'Máirt', 'Céad', 'Déar', 'Aoine', 'Sath'],
  9297. weekdaysMin = ['Do', 'Lu', 'Má', 'Cé', 'Dé', 'A', 'Sa'];
  9298. hooks.defineLocale('ga', {
  9299. months: months$6,
  9300. monthsShort: monthsShort$5,
  9301. monthsParseExact: true,
  9302. weekdays: weekdays$1,
  9303. weekdaysShort: weekdaysShort,
  9304. weekdaysMin: weekdaysMin,
  9305. longDateFormat: {
  9306. LT: 'HH:mm',
  9307. LTS: 'HH:mm:ss',
  9308. L: 'DD/MM/YYYY',
  9309. LL: 'D MMMM YYYY',
  9310. LLL: 'D MMMM YYYY HH:mm',
  9311. LLLL: 'dddd, D MMMM YYYY HH:mm',
  9312. },
  9313. calendar: {
  9314. sameDay: '[Inniu ag] LT',
  9315. nextDay: '[Amárach ag] LT',
  9316. nextWeek: 'dddd [ag] LT',
  9317. lastDay: '[Inné ag] LT',
  9318. lastWeek: 'dddd [seo caite] [ag] LT',
  9319. sameElse: 'L',
  9320. },
  9321. relativeTime: {
  9322. future: 'i %s',
  9323. past: '%s ó shin',
  9324. s: 'cúpla soicind',
  9325. ss: '%d soicind',
  9326. m: 'nóiméad',
  9327. mm: '%d nóiméad',
  9328. h: 'uair an chloig',
  9329. hh: '%d uair an chloig',
  9330. d: 'lá',
  9331. dd: '%d lá',
  9332. M: 'mí',
  9333. MM: '%d míonna',
  9334. y: 'bliain',
  9335. yy: '%d bliain',
  9336. },
  9337. dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
  9338. ordinal: function (number) {
  9339. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  9340. return number + output;
  9341. },
  9342. week: {
  9343. dow: 1, // Monday is the first day of the week.
  9344. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9345. },
  9346. });
  9347. //! moment.js locale configuration
  9348. var months$7 = [
  9349. 'Am Faoilleach',
  9350. 'An Gearran',
  9351. 'Am Màrt',
  9352. 'An Giblean',
  9353. 'An Cèitean',
  9354. 'An t-Ògmhios',
  9355. 'An t-Iuchar',
  9356. 'An Lùnastal',
  9357. 'An t-Sultain',
  9358. 'An Dàmhair',
  9359. 'An t-Samhain',
  9360. 'An Dùbhlachd',
  9361. ],
  9362. monthsShort$6 = [
  9363. 'Faoi',
  9364. 'Gear',
  9365. 'Màrt',
  9366. 'Gibl',
  9367. 'Cèit',
  9368. 'Ògmh',
  9369. 'Iuch',
  9370. 'Lùn',
  9371. 'Sult',
  9372. 'Dàmh',
  9373. 'Samh',
  9374. 'Dùbh',
  9375. ],
  9376. weekdays$2 = [
  9377. 'Didòmhnaich',
  9378. 'Diluain',
  9379. 'Dimàirt',
  9380. 'Diciadain',
  9381. 'Diardaoin',
  9382. 'Dihaoine',
  9383. 'Disathairne',
  9384. ],
  9385. weekdaysShort$1 = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'],
  9386. weekdaysMin$1 = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
  9387. hooks.defineLocale('gd', {
  9388. months: months$7,
  9389. monthsShort: monthsShort$6,
  9390. monthsParseExact: true,
  9391. weekdays: weekdays$2,
  9392. weekdaysShort: weekdaysShort$1,
  9393. weekdaysMin: weekdaysMin$1,
  9394. longDateFormat: {
  9395. LT: 'HH:mm',
  9396. LTS: 'HH:mm:ss',
  9397. L: 'DD/MM/YYYY',
  9398. LL: 'D MMMM YYYY',
  9399. LLL: 'D MMMM YYYY HH:mm',
  9400. LLLL: 'dddd, D MMMM YYYY HH:mm',
  9401. },
  9402. calendar: {
  9403. sameDay: '[An-diugh aig] LT',
  9404. nextDay: '[A-màireach aig] LT',
  9405. nextWeek: 'dddd [aig] LT',
  9406. lastDay: '[An-dè aig] LT',
  9407. lastWeek: 'dddd [seo chaidh] [aig] LT',
  9408. sameElse: 'L',
  9409. },
  9410. relativeTime: {
  9411. future: 'ann an %s',
  9412. past: 'bho chionn %s',
  9413. s: 'beagan diogan',
  9414. ss: '%d diogan',
  9415. m: 'mionaid',
  9416. mm: '%d mionaidean',
  9417. h: 'uair',
  9418. hh: '%d uairean',
  9419. d: 'latha',
  9420. dd: '%d latha',
  9421. M: 'mìos',
  9422. MM: '%d mìosan',
  9423. y: 'bliadhna',
  9424. yy: '%d bliadhna',
  9425. },
  9426. dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
  9427. ordinal: function (number) {
  9428. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  9429. return number + output;
  9430. },
  9431. week: {
  9432. dow: 1, // Monday is the first day of the week.
  9433. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9434. },
  9435. });
  9436. //! moment.js locale configuration
  9437. hooks.defineLocale('gl', {
  9438. months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split(
  9439. '_'
  9440. ),
  9441. monthsShort: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split(
  9442. '_'
  9443. ),
  9444. monthsParseExact: true,
  9445. weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
  9446. weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
  9447. weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'),
  9448. weekdaysParseExact: true,
  9449. longDateFormat: {
  9450. LT: 'H:mm',
  9451. LTS: 'H:mm:ss',
  9452. L: 'DD/MM/YYYY',
  9453. LL: 'D [de] MMMM [de] YYYY',
  9454. LLL: 'D [de] MMMM [de] YYYY H:mm',
  9455. LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm',
  9456. },
  9457. calendar: {
  9458. sameDay: function () {
  9459. return '[hoxe ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
  9460. },
  9461. nextDay: function () {
  9462. return '[mañá ' + (this.hours() !== 1 ? 'ás' : 'á') + '] LT';
  9463. },
  9464. nextWeek: function () {
  9465. return 'dddd [' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT';
  9466. },
  9467. lastDay: function () {
  9468. return '[onte ' + (this.hours() !== 1 ? 'á' : 'a') + '] LT';
  9469. },
  9470. lastWeek: function () {
  9471. return (
  9472. '[o] dddd [pasado ' + (this.hours() !== 1 ? 'ás' : 'a') + '] LT'
  9473. );
  9474. },
  9475. sameElse: 'L',
  9476. },
  9477. relativeTime: {
  9478. future: function (str) {
  9479. if (str.indexOf('un') === 0) {
  9480. return 'n' + str;
  9481. }
  9482. return 'en ' + str;
  9483. },
  9484. past: 'hai %s',
  9485. s: 'uns segundos',
  9486. ss: '%d segundos',
  9487. m: 'un minuto',
  9488. mm: '%d minutos',
  9489. h: 'unha hora',
  9490. hh: '%d horas',
  9491. d: 'un día',
  9492. dd: '%d días',
  9493. M: 'un mes',
  9494. MM: '%d meses',
  9495. y: 'un ano',
  9496. yy: '%d anos',
  9497. },
  9498. dayOfMonthOrdinalParse: /\d{1,2}º/,
  9499. ordinal: '%dº',
  9500. week: {
  9501. dow: 1, // Monday is the first day of the week.
  9502. doy: 4, // The week that contains Jan 4th is the first week of the year.
  9503. },
  9504. });
  9505. //! moment.js locale configuration
  9506. function processRelativeTime$4(number, withoutSuffix, key, isFuture) {
  9507. var format = {
  9508. s: ['थोडया सॅकंडांनी', 'थोडे सॅकंड'],
  9509. ss: [number + ' सॅकंडांनी', number + ' सॅकंड'],
  9510. m: ['एका मिणटान', 'एक मिनूट'],
  9511. mm: [number + ' मिणटांनी', number + ' मिणटां'],
  9512. h: ['एका वरान', 'एक वर'],
  9513. hh: [number + ' वरांनी', number + ' वरां'],
  9514. d: ['एका दिसान', 'एक दीस'],
  9515. dd: [number + ' दिसांनी', number + ' दीस'],
  9516. M: ['एका म्हयन्यान', 'एक म्हयनो'],
  9517. MM: [number + ' म्हयन्यानी', number + ' म्हयने'],
  9518. y: ['एका वर्सान', 'एक वर्स'],
  9519. yy: [number + ' वर्सांनी', number + ' वर्सां'],
  9520. };
  9521. return isFuture ? format[key][0] : format[key][1];
  9522. }
  9523. hooks.defineLocale('gom-deva', {
  9524. months: {
  9525. standalone: 'जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(
  9526. '_'
  9527. ),
  9528. format: 'जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या'.split(
  9529. '_'
  9530. ),
  9531. isFormat: /MMMM(\s)+D[oD]?/,
  9532. },
  9533. monthsShort: 'जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(
  9534. '_'
  9535. ),
  9536. monthsParseExact: true,
  9537. weekdays: 'आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार'.split('_'),
  9538. weekdaysShort: 'आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.'.split('_'),
  9539. weekdaysMin: 'आ_सो_मं_बु_ब्रे_सु_शे'.split('_'),
  9540. weekdaysParseExact: true,
  9541. longDateFormat: {
  9542. LT: 'A h:mm [वाजतां]',
  9543. LTS: 'A h:mm:ss [वाजतां]',
  9544. L: 'DD-MM-YYYY',
  9545. LL: 'D MMMM YYYY',
  9546. LLL: 'D MMMM YYYY A h:mm [वाजतां]',
  9547. LLLL: 'dddd, MMMM Do, YYYY, A h:mm [वाजतां]',
  9548. llll: 'ddd, D MMM YYYY, A h:mm [वाजतां]',
  9549. },
  9550. calendar: {
  9551. sameDay: '[आयज] LT',
  9552. nextDay: '[फाल्यां] LT',
  9553. nextWeek: '[फुडलो] dddd[,] LT',
  9554. lastDay: '[काल] LT',
  9555. lastWeek: '[फाटलो] dddd[,] LT',
  9556. sameElse: 'L',
  9557. },
  9558. relativeTime: {
  9559. future: '%s',
  9560. past: '%s आदीं',
  9561. s: processRelativeTime$4,
  9562. ss: processRelativeTime$4,
  9563. m: processRelativeTime$4,
  9564. mm: processRelativeTime$4,
  9565. h: processRelativeTime$4,
  9566. hh: processRelativeTime$4,
  9567. d: processRelativeTime$4,
  9568. dd: processRelativeTime$4,
  9569. M: processRelativeTime$4,
  9570. MM: processRelativeTime$4,
  9571. y: processRelativeTime$4,
  9572. yy: processRelativeTime$4,
  9573. },
  9574. dayOfMonthOrdinalParse: /\d{1,2}(वेर)/,
  9575. ordinal: function (number, period) {
  9576. switch (period) {
  9577. // the ordinal 'वेर' only applies to day of the month
  9578. case 'D':
  9579. return number + 'वेर';
  9580. default:
  9581. case 'M':
  9582. case 'Q':
  9583. case 'DDD':
  9584. case 'd':
  9585. case 'w':
  9586. case 'W':
  9587. return number;
  9588. }
  9589. },
  9590. week: {
  9591. dow: 0, // Sunday is the first day of the week
  9592. doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
  9593. },
  9594. meridiemParse: /राती|सकाळीं|दनपारां|सांजे/,
  9595. meridiemHour: function (hour, meridiem) {
  9596. if (hour === 12) {
  9597. hour = 0;
  9598. }
  9599. if (meridiem === 'राती') {
  9600. return hour < 4 ? hour : hour + 12;
  9601. } else if (meridiem === 'सकाळीं') {
  9602. return hour;
  9603. } else if (meridiem === 'दनपारां') {
  9604. return hour > 12 ? hour : hour + 12;
  9605. } else if (meridiem === 'सांजे') {
  9606. return hour + 12;
  9607. }
  9608. },
  9609. meridiem: function (hour, minute, isLower) {
  9610. if (hour < 4) {
  9611. return 'राती';
  9612. } else if (hour < 12) {
  9613. return 'सकाळीं';
  9614. } else if (hour < 16) {
  9615. return 'दनपारां';
  9616. } else if (hour < 20) {
  9617. return 'सांजे';
  9618. } else {
  9619. return 'राती';
  9620. }
  9621. },
  9622. });
  9623. //! moment.js locale configuration
  9624. function processRelativeTime$5(number, withoutSuffix, key, isFuture) {
  9625. var format = {
  9626. s: ['thoddea sekondamni', 'thodde sekond'],
  9627. ss: [number + ' sekondamni', number + ' sekond'],
  9628. m: ['eka mintan', 'ek minut'],
  9629. mm: [number + ' mintamni', number + ' mintam'],
  9630. h: ['eka voran', 'ek vor'],
  9631. hh: [number + ' voramni', number + ' voram'],
  9632. d: ['eka disan', 'ek dis'],
  9633. dd: [number + ' disamni', number + ' dis'],
  9634. M: ['eka mhoinean', 'ek mhoino'],
  9635. MM: [number + ' mhoineamni', number + ' mhoine'],
  9636. y: ['eka vorsan', 'ek voros'],
  9637. yy: [number + ' vorsamni', number + ' vorsam'],
  9638. };
  9639. return isFuture ? format[key][0] : format[key][1];
  9640. }
  9641. hooks.defineLocale('gom-latn', {
  9642. months: {
  9643. standalone: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split(
  9644. '_'
  9645. ),
  9646. format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split(
  9647. '_'
  9648. ),
  9649. isFormat: /MMMM(\s)+D[oD]?/,
  9650. },
  9651. monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split(
  9652. '_'
  9653. ),
  9654. monthsParseExact: true,
  9655. weekdays: "Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split('_'),
  9656. weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
  9657. weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
  9658. weekdaysParseExact: true,
  9659. longDateFormat: {
  9660. LT: 'A h:mm [vazta]',
  9661. LTS: 'A h:mm:ss [vazta]',
  9662. L: 'DD-MM-YYYY',
  9663. LL: 'D MMMM YYYY',
  9664. LLL: 'D MMMM YYYY A h:mm [vazta]',
  9665. LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]',
  9666. llll: 'ddd, D MMM YYYY, A h:mm [vazta]',
  9667. },
  9668. calendar: {
  9669. sameDay: '[Aiz] LT',
  9670. nextDay: '[Faleam] LT',
  9671. nextWeek: '[Fuddlo] dddd[,] LT',
  9672. lastDay: '[Kal] LT',
  9673. lastWeek: '[Fattlo] dddd[,] LT',
  9674. sameElse: 'L',
  9675. },
  9676. relativeTime: {
  9677. future: '%s',
  9678. past: '%s adim',
  9679. s: processRelativeTime$5,
  9680. ss: processRelativeTime$5,
  9681. m: processRelativeTime$5,
  9682. mm: processRelativeTime$5,
  9683. h: processRelativeTime$5,
  9684. hh: processRelativeTime$5,
  9685. d: processRelativeTime$5,
  9686. dd: processRelativeTime$5,
  9687. M: processRelativeTime$5,
  9688. MM: processRelativeTime$5,
  9689. y: processRelativeTime$5,
  9690. yy: processRelativeTime$5,
  9691. },
  9692. dayOfMonthOrdinalParse: /\d{1,2}(er)/,
  9693. ordinal: function (number, period) {
  9694. switch (period) {
  9695. // the ordinal 'er' only applies to day of the month
  9696. case 'D':
  9697. return number + 'er';
  9698. default:
  9699. case 'M':
  9700. case 'Q':
  9701. case 'DDD':
  9702. case 'd':
  9703. case 'w':
  9704. case 'W':
  9705. return number;
  9706. }
  9707. },
  9708. week: {
  9709. dow: 0, // Sunday is the first day of the week
  9710. doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
  9711. },
  9712. meridiemParse: /rati|sokallim|donparam|sanje/,
  9713. meridiemHour: function (hour, meridiem) {
  9714. if (hour === 12) {
  9715. hour = 0;
  9716. }
  9717. if (meridiem === 'rati') {
  9718. return hour < 4 ? hour : hour + 12;
  9719. } else if (meridiem === 'sokallim') {
  9720. return hour;
  9721. } else if (meridiem === 'donparam') {
  9722. return hour > 12 ? hour : hour + 12;
  9723. } else if (meridiem === 'sanje') {
  9724. return hour + 12;
  9725. }
  9726. },
  9727. meridiem: function (hour, minute, isLower) {
  9728. if (hour < 4) {
  9729. return 'rati';
  9730. } else if (hour < 12) {
  9731. return 'sokallim';
  9732. } else if (hour < 16) {
  9733. return 'donparam';
  9734. } else if (hour < 20) {
  9735. return 'sanje';
  9736. } else {
  9737. return 'rati';
  9738. }
  9739. },
  9740. });
  9741. //! moment.js locale configuration
  9742. var symbolMap$7 = {
  9743. 1: '૧',
  9744. 2: '૨',
  9745. 3: '૩',
  9746. 4: '૪',
  9747. 5: '૫',
  9748. 6: '૬',
  9749. 7: '૭',
  9750. 8: '૮',
  9751. 9: '૯',
  9752. 0: '૦',
  9753. },
  9754. numberMap$6 = {
  9755. '૧': '1',
  9756. '૨': '2',
  9757. '૩': '3',
  9758. '૪': '4',
  9759. '૫': '5',
  9760. '૬': '6',
  9761. '૭': '7',
  9762. '૮': '8',
  9763. '૯': '9',
  9764. '૦': '0',
  9765. };
  9766. hooks.defineLocale('gu', {
  9767. months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split(
  9768. '_'
  9769. ),
  9770. monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split(
  9771. '_'
  9772. ),
  9773. monthsParseExact: true,
  9774. weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split(
  9775. '_'
  9776. ),
  9777. weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),
  9778. weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),
  9779. longDateFormat: {
  9780. LT: 'A h:mm વાગ્યે',
  9781. LTS: 'A h:mm:ss વાગ્યે',
  9782. L: 'DD/MM/YYYY',
  9783. LL: 'D MMMM YYYY',
  9784. LLL: 'D MMMM YYYY, A h:mm વાગ્યે',
  9785. LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે',
  9786. },
  9787. calendar: {
  9788. sameDay: '[આજ] LT',
  9789. nextDay: '[કાલે] LT',
  9790. nextWeek: 'dddd, LT',
  9791. lastDay: '[ગઇકાલે] LT',
  9792. lastWeek: '[પાછલા] dddd, LT',
  9793. sameElse: 'L',
  9794. },
  9795. relativeTime: {
  9796. future: '%s મા',
  9797. past: '%s પહેલા',
  9798. s: 'અમુક પળો',
  9799. ss: '%d સેકંડ',
  9800. m: 'એક મિનિટ',
  9801. mm: '%d મિનિટ',
  9802. h: 'એક કલાક',
  9803. hh: '%d કલાક',
  9804. d: 'એક દિવસ',
  9805. dd: '%d દિવસ',
  9806. M: 'એક મહિનો',
  9807. MM: '%d મહિનો',
  9808. y: 'એક વર્ષ',
  9809. yy: '%d વર્ષ',
  9810. },
  9811. preparse: function (string) {
  9812. return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {
  9813. return numberMap$6[match];
  9814. });
  9815. },
  9816. postformat: function (string) {
  9817. return string.replace(/\d/g, function (match) {
  9818. return symbolMap$7[match];
  9819. });
  9820. },
  9821. // Gujarati notation for meridiems are quite fuzzy in practice. While there exists
  9822. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.
  9823. meridiemParse: /રાત|બપોર|સવાર|સાંજ/,
  9824. meridiemHour: function (hour, meridiem) {
  9825. if (hour === 12) {
  9826. hour = 0;
  9827. }
  9828. if (meridiem === 'રાત') {
  9829. return hour < 4 ? hour : hour + 12;
  9830. } else if (meridiem === 'સવાર') {
  9831. return hour;
  9832. } else if (meridiem === 'બપોર') {
  9833. return hour >= 10 ? hour : hour + 12;
  9834. } else if (meridiem === 'સાંજ') {
  9835. return hour + 12;
  9836. }
  9837. },
  9838. meridiem: function (hour, minute, isLower) {
  9839. if (hour < 4) {
  9840. return 'રાત';
  9841. } else if (hour < 10) {
  9842. return 'સવાર';
  9843. } else if (hour < 17) {
  9844. return 'બપોર';
  9845. } else if (hour < 20) {
  9846. return 'સાંજ';
  9847. } else {
  9848. return 'રાત';
  9849. }
  9850. },
  9851. week: {
  9852. dow: 0, // Sunday is the first day of the week.
  9853. doy: 6, // The week that contains Jan 6th is the first week of the year.
  9854. },
  9855. });
  9856. //! moment.js locale configuration
  9857. hooks.defineLocale('he', {
  9858. months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split(
  9859. '_'
  9860. ),
  9861. monthsShort: 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split(
  9862. '_'
  9863. ),
  9864. weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
  9865. weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
  9866. weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'),
  9867. longDateFormat: {
  9868. LT: 'HH:mm',
  9869. LTS: 'HH:mm:ss',
  9870. L: 'DD/MM/YYYY',
  9871. LL: 'D [ב]MMMM YYYY',
  9872. LLL: 'D [ב]MMMM YYYY HH:mm',
  9873. LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',
  9874. l: 'D/M/YYYY',
  9875. ll: 'D MMM YYYY',
  9876. lll: 'D MMM YYYY HH:mm',
  9877. llll: 'ddd, D MMM YYYY HH:mm',
  9878. },
  9879. calendar: {
  9880. sameDay: '[היום ב־]LT',
  9881. nextDay: '[מחר ב־]LT',
  9882. nextWeek: 'dddd [בשעה] LT',
  9883. lastDay: '[אתמול ב־]LT',
  9884. lastWeek: '[ביום] dddd [האחרון בשעה] LT',
  9885. sameElse: 'L',
  9886. },
  9887. relativeTime: {
  9888. future: 'בעוד %s',
  9889. past: 'לפני %s',
  9890. s: 'מספר שניות',
  9891. ss: '%d שניות',
  9892. m: 'דקה',
  9893. mm: '%d דקות',
  9894. h: 'שעה',
  9895. hh: function (number) {
  9896. if (number === 2) {
  9897. return 'שעתיים';
  9898. }
  9899. return number + ' שעות';
  9900. },
  9901. d: 'יום',
  9902. dd: function (number) {
  9903. if (number === 2) {
  9904. return 'יומיים';
  9905. }
  9906. return number + ' ימים';
  9907. },
  9908. M: 'חודש',
  9909. MM: function (number) {
  9910. if (number === 2) {
  9911. return 'חודשיים';
  9912. }
  9913. return number + ' חודשים';
  9914. },
  9915. y: 'שנה',
  9916. yy: function (number) {
  9917. if (number === 2) {
  9918. return 'שנתיים';
  9919. } else if (number % 10 === 0 && number !== 10) {
  9920. return number + ' שנה';
  9921. }
  9922. return number + ' שנים';
  9923. },
  9924. },
  9925. meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
  9926. isPM: function (input) {
  9927. return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
  9928. },
  9929. meridiem: function (hour, minute, isLower) {
  9930. if (hour < 5) {
  9931. return 'לפנות בוקר';
  9932. } else if (hour < 10) {
  9933. return 'בבוקר';
  9934. } else if (hour < 12) {
  9935. return isLower ? 'לפנה"צ' : 'לפני הצהריים';
  9936. } else if (hour < 18) {
  9937. return isLower ? 'אחה"צ' : 'אחרי הצהריים';
  9938. } else {
  9939. return 'בערב';
  9940. }
  9941. },
  9942. });
  9943. //! moment.js locale configuration
  9944. var symbolMap$8 = {
  9945. 1: '१',
  9946. 2: '२',
  9947. 3: '३',
  9948. 4: '४',
  9949. 5: '५',
  9950. 6: '६',
  9951. 7: '७',
  9952. 8: '८',
  9953. 9: '९',
  9954. 0: '०',
  9955. },
  9956. numberMap$7 = {
  9957. '१': '1',
  9958. '२': '2',
  9959. '३': '3',
  9960. '४': '4',
  9961. '५': '5',
  9962. '६': '6',
  9963. '७': '7',
  9964. '८': '8',
  9965. '९': '9',
  9966. '०': '0',
  9967. };
  9968. hooks.defineLocale('hi', {
  9969. months: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split(
  9970. '_'
  9971. ),
  9972. monthsShort: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split(
  9973. '_'
  9974. ),
  9975. monthsParseExact: true,
  9976. weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  9977. weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
  9978. weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
  9979. longDateFormat: {
  9980. LT: 'A h:mm बजे',
  9981. LTS: 'A h:mm:ss बजे',
  9982. L: 'DD/MM/YYYY',
  9983. LL: 'D MMMM YYYY',
  9984. LLL: 'D MMMM YYYY, A h:mm बजे',
  9985. LLLL: 'dddd, D MMMM YYYY, A h:mm बजे',
  9986. },
  9987. calendar: {
  9988. sameDay: '[आज] LT',
  9989. nextDay: '[कल] LT',
  9990. nextWeek: 'dddd, LT',
  9991. lastDay: '[कल] LT',
  9992. lastWeek: '[पिछले] dddd, LT',
  9993. sameElse: 'L',
  9994. },
  9995. relativeTime: {
  9996. future: '%s में',
  9997. past: '%s पहले',
  9998. s: 'कुछ ही क्षण',
  9999. ss: '%d सेकंड',
  10000. m: 'एक मिनट',
  10001. mm: '%d मिनट',
  10002. h: 'एक घंटा',
  10003. hh: '%d घंटे',
  10004. d: 'एक दिन',
  10005. dd: '%d दिन',
  10006. M: 'एक महीने',
  10007. MM: '%d महीने',
  10008. y: 'एक वर्ष',
  10009. yy: '%d वर्ष',
  10010. },
  10011. preparse: function (string) {
  10012. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  10013. return numberMap$7[match];
  10014. });
  10015. },
  10016. postformat: function (string) {
  10017. return string.replace(/\d/g, function (match) {
  10018. return symbolMap$8[match];
  10019. });
  10020. },
  10021. // Hindi notation for meridiems are quite fuzzy in practice. While there exists
  10022. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
  10023. meridiemParse: /रात|सुबह|दोपहर|शाम/,
  10024. meridiemHour: function (hour, meridiem) {
  10025. if (hour === 12) {
  10026. hour = 0;
  10027. }
  10028. if (meridiem === 'रात') {
  10029. return hour < 4 ? hour : hour + 12;
  10030. } else if (meridiem === 'सुबह') {
  10031. return hour;
  10032. } else if (meridiem === 'दोपहर') {
  10033. return hour >= 10 ? hour : hour + 12;
  10034. } else if (meridiem === 'शाम') {
  10035. return hour + 12;
  10036. }
  10037. },
  10038. meridiem: function (hour, minute, isLower) {
  10039. if (hour < 4) {
  10040. return 'रात';
  10041. } else if (hour < 10) {
  10042. return 'सुबह';
  10043. } else if (hour < 17) {
  10044. return 'दोपहर';
  10045. } else if (hour < 20) {
  10046. return 'शाम';
  10047. } else {
  10048. return 'रात';
  10049. }
  10050. },
  10051. week: {
  10052. dow: 0, // Sunday is the first day of the week.
  10053. doy: 6, // The week that contains Jan 6th is the first week of the year.
  10054. },
  10055. });
  10056. //! moment.js locale configuration
  10057. function translate$3(number, withoutSuffix, key) {
  10058. var result = number + ' ';
  10059. switch (key) {
  10060. case 'ss':
  10061. if (number === 1) {
  10062. result += 'sekunda';
  10063. } else if (number === 2 || number === 3 || number === 4) {
  10064. result += 'sekunde';
  10065. } else {
  10066. result += 'sekundi';
  10067. }
  10068. return result;
  10069. case 'm':
  10070. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  10071. case 'mm':
  10072. if (number === 1) {
  10073. result += 'minuta';
  10074. } else if (number === 2 || number === 3 || number === 4) {
  10075. result += 'minute';
  10076. } else {
  10077. result += 'minuta';
  10078. }
  10079. return result;
  10080. case 'h':
  10081. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  10082. case 'hh':
  10083. if (number === 1) {
  10084. result += 'sat';
  10085. } else if (number === 2 || number === 3 || number === 4) {
  10086. result += 'sata';
  10087. } else {
  10088. result += 'sati';
  10089. }
  10090. return result;
  10091. case 'dd':
  10092. if (number === 1) {
  10093. result += 'dan';
  10094. } else {
  10095. result += 'dana';
  10096. }
  10097. return result;
  10098. case 'MM':
  10099. if (number === 1) {
  10100. result += 'mjesec';
  10101. } else if (number === 2 || number === 3 || number === 4) {
  10102. result += 'mjeseca';
  10103. } else {
  10104. result += 'mjeseci';
  10105. }
  10106. return result;
  10107. case 'yy':
  10108. if (number === 1) {
  10109. result += 'godina';
  10110. } else if (number === 2 || number === 3 || number === 4) {
  10111. result += 'godine';
  10112. } else {
  10113. result += 'godina';
  10114. }
  10115. return result;
  10116. }
  10117. }
  10118. hooks.defineLocale('hr', {
  10119. months: {
  10120. format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split(
  10121. '_'
  10122. ),
  10123. standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split(
  10124. '_'
  10125. ),
  10126. },
  10127. monthsShort: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split(
  10128. '_'
  10129. ),
  10130. monthsParseExact: true,
  10131. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
  10132. '_'
  10133. ),
  10134. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  10135. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  10136. weekdaysParseExact: true,
  10137. longDateFormat: {
  10138. LT: 'H:mm',
  10139. LTS: 'H:mm:ss',
  10140. L: 'DD.MM.YYYY',
  10141. LL: 'Do MMMM YYYY',
  10142. LLL: 'Do MMMM YYYY H:mm',
  10143. LLLL: 'dddd, Do MMMM YYYY H:mm',
  10144. },
  10145. calendar: {
  10146. sameDay: '[danas u] LT',
  10147. nextDay: '[sutra u] LT',
  10148. nextWeek: function () {
  10149. switch (this.day()) {
  10150. case 0:
  10151. return '[u] [nedjelju] [u] LT';
  10152. case 3:
  10153. return '[u] [srijedu] [u] LT';
  10154. case 6:
  10155. return '[u] [subotu] [u] LT';
  10156. case 1:
  10157. case 2:
  10158. case 4:
  10159. case 5:
  10160. return '[u] dddd [u] LT';
  10161. }
  10162. },
  10163. lastDay: '[jučer u] LT',
  10164. lastWeek: function () {
  10165. switch (this.day()) {
  10166. case 0:
  10167. return '[prošlu] [nedjelju] [u] LT';
  10168. case 3:
  10169. return '[prošlu] [srijedu] [u] LT';
  10170. case 6:
  10171. return '[prošle] [subote] [u] LT';
  10172. case 1:
  10173. case 2:
  10174. case 4:
  10175. case 5:
  10176. return '[prošli] dddd [u] LT';
  10177. }
  10178. },
  10179. sameElse: 'L',
  10180. },
  10181. relativeTime: {
  10182. future: 'za %s',
  10183. past: 'prije %s',
  10184. s: 'par sekundi',
  10185. ss: translate$3,
  10186. m: translate$3,
  10187. mm: translate$3,
  10188. h: translate$3,
  10189. hh: translate$3,
  10190. d: 'dan',
  10191. dd: translate$3,
  10192. M: 'mjesec',
  10193. MM: translate$3,
  10194. y: 'godinu',
  10195. yy: translate$3,
  10196. },
  10197. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10198. ordinal: '%d.',
  10199. week: {
  10200. dow: 1, // Monday is the first day of the week.
  10201. doy: 7, // The week that contains Jan 7th is the first week of the year.
  10202. },
  10203. });
  10204. //! moment.js locale configuration
  10205. var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(
  10206. ' '
  10207. );
  10208. function translate$4(number, withoutSuffix, key, isFuture) {
  10209. var num = number;
  10210. switch (key) {
  10211. case 's':
  10212. return isFuture || withoutSuffix
  10213. ? 'néhány másodperc'
  10214. : 'néhány másodperce';
  10215. case 'ss':
  10216. return num + (isFuture || withoutSuffix)
  10217. ? ' másodperc'
  10218. : ' másodperce';
  10219. case 'm':
  10220. return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
  10221. case 'mm':
  10222. return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
  10223. case 'h':
  10224. return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
  10225. case 'hh':
  10226. return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
  10227. case 'd':
  10228. return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
  10229. case 'dd':
  10230. return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
  10231. case 'M':
  10232. return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  10233. case 'MM':
  10234. return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  10235. case 'y':
  10236. return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
  10237. case 'yy':
  10238. return num + (isFuture || withoutSuffix ? ' év' : ' éve');
  10239. }
  10240. return '';
  10241. }
  10242. function week(isFuture) {
  10243. return (
  10244. (isFuture ? '' : '[múlt] ') +
  10245. '[' +
  10246. weekEndings[this.day()] +
  10247. '] LT[-kor]'
  10248. );
  10249. }
  10250. hooks.defineLocale('hu', {
  10251. months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split(
  10252. '_'
  10253. ),
  10254. monthsShort: 'jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.'.split(
  10255. '_'
  10256. ),
  10257. monthsParseExact: true,
  10258. weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
  10259. weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
  10260. weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'),
  10261. longDateFormat: {
  10262. LT: 'H:mm',
  10263. LTS: 'H:mm:ss',
  10264. L: 'YYYY.MM.DD.',
  10265. LL: 'YYYY. MMMM D.',
  10266. LLL: 'YYYY. MMMM D. H:mm',
  10267. LLLL: 'YYYY. MMMM D., dddd H:mm',
  10268. },
  10269. meridiemParse: /de|du/i,
  10270. isPM: function (input) {
  10271. return input.charAt(1).toLowerCase() === 'u';
  10272. },
  10273. meridiem: function (hours, minutes, isLower) {
  10274. if (hours < 12) {
  10275. return isLower === true ? 'de' : 'DE';
  10276. } else {
  10277. return isLower === true ? 'du' : 'DU';
  10278. }
  10279. },
  10280. calendar: {
  10281. sameDay: '[ma] LT[-kor]',
  10282. nextDay: '[holnap] LT[-kor]',
  10283. nextWeek: function () {
  10284. return week.call(this, true);
  10285. },
  10286. lastDay: '[tegnap] LT[-kor]',
  10287. lastWeek: function () {
  10288. return week.call(this, false);
  10289. },
  10290. sameElse: 'L',
  10291. },
  10292. relativeTime: {
  10293. future: '%s múlva',
  10294. past: '%s',
  10295. s: translate$4,
  10296. ss: translate$4,
  10297. m: translate$4,
  10298. mm: translate$4,
  10299. h: translate$4,
  10300. hh: translate$4,
  10301. d: translate$4,
  10302. dd: translate$4,
  10303. M: translate$4,
  10304. MM: translate$4,
  10305. y: translate$4,
  10306. yy: translate$4,
  10307. },
  10308. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10309. ordinal: '%d.',
  10310. week: {
  10311. dow: 1, // Monday is the first day of the week.
  10312. doy: 4, // The week that contains Jan 4th is the first week of the year.
  10313. },
  10314. });
  10315. //! moment.js locale configuration
  10316. hooks.defineLocale('hy-am', {
  10317. months: {
  10318. format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split(
  10319. '_'
  10320. ),
  10321. standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split(
  10322. '_'
  10323. ),
  10324. },
  10325. monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
  10326. weekdays: 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split(
  10327. '_'
  10328. ),
  10329. weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  10330. weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  10331. longDateFormat: {
  10332. LT: 'HH:mm',
  10333. LTS: 'HH:mm:ss',
  10334. L: 'DD.MM.YYYY',
  10335. LL: 'D MMMM YYYY թ.',
  10336. LLL: 'D MMMM YYYY թ., HH:mm',
  10337. LLLL: 'dddd, D MMMM YYYY թ., HH:mm',
  10338. },
  10339. calendar: {
  10340. sameDay: '[այսօր] LT',
  10341. nextDay: '[վաղը] LT',
  10342. lastDay: '[երեկ] LT',
  10343. nextWeek: function () {
  10344. return 'dddd [օրը ժամը] LT';
  10345. },
  10346. lastWeek: function () {
  10347. return '[անցած] dddd [օրը ժամը] LT';
  10348. },
  10349. sameElse: 'L',
  10350. },
  10351. relativeTime: {
  10352. future: '%s հետո',
  10353. past: '%s առաջ',
  10354. s: 'մի քանի վայրկյան',
  10355. ss: '%d վայրկյան',
  10356. m: 'րոպե',
  10357. mm: '%d րոպե',
  10358. h: 'ժամ',
  10359. hh: '%d ժամ',
  10360. d: 'օր',
  10361. dd: '%d օր',
  10362. M: 'ամիս',
  10363. MM: '%d ամիս',
  10364. y: 'տարի',
  10365. yy: '%d տարի',
  10366. },
  10367. meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
  10368. isPM: function (input) {
  10369. return /^(ցերեկվա|երեկոյան)$/.test(input);
  10370. },
  10371. meridiem: function (hour) {
  10372. if (hour < 4) {
  10373. return 'գիշերվա';
  10374. } else if (hour < 12) {
  10375. return 'առավոտվա';
  10376. } else if (hour < 17) {
  10377. return 'ցերեկվա';
  10378. } else {
  10379. return 'երեկոյան';
  10380. }
  10381. },
  10382. dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
  10383. ordinal: function (number, period) {
  10384. switch (period) {
  10385. case 'DDD':
  10386. case 'w':
  10387. case 'W':
  10388. case 'DDDo':
  10389. if (number === 1) {
  10390. return number + '-ին';
  10391. }
  10392. return number + '-րդ';
  10393. default:
  10394. return number;
  10395. }
  10396. },
  10397. week: {
  10398. dow: 1, // Monday is the first day of the week.
  10399. doy: 7, // The week that contains Jan 7th is the first week of the year.
  10400. },
  10401. });
  10402. //! moment.js locale configuration
  10403. hooks.defineLocale('id', {
  10404. months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split(
  10405. '_'
  10406. ),
  10407. monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split('_'),
  10408. weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
  10409. weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
  10410. weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
  10411. longDateFormat: {
  10412. LT: 'HH.mm',
  10413. LTS: 'HH.mm.ss',
  10414. L: 'DD/MM/YYYY',
  10415. LL: 'D MMMM YYYY',
  10416. LLL: 'D MMMM YYYY [pukul] HH.mm',
  10417. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
  10418. },
  10419. meridiemParse: /pagi|siang|sore|malam/,
  10420. meridiemHour: function (hour, meridiem) {
  10421. if (hour === 12) {
  10422. hour = 0;
  10423. }
  10424. if (meridiem === 'pagi') {
  10425. return hour;
  10426. } else if (meridiem === 'siang') {
  10427. return hour >= 11 ? hour : hour + 12;
  10428. } else if (meridiem === 'sore' || meridiem === 'malam') {
  10429. return hour + 12;
  10430. }
  10431. },
  10432. meridiem: function (hours, minutes, isLower) {
  10433. if (hours < 11) {
  10434. return 'pagi';
  10435. } else if (hours < 15) {
  10436. return 'siang';
  10437. } else if (hours < 19) {
  10438. return 'sore';
  10439. } else {
  10440. return 'malam';
  10441. }
  10442. },
  10443. calendar: {
  10444. sameDay: '[Hari ini pukul] LT',
  10445. nextDay: '[Besok pukul] LT',
  10446. nextWeek: 'dddd [pukul] LT',
  10447. lastDay: '[Kemarin pukul] LT',
  10448. lastWeek: 'dddd [lalu pukul] LT',
  10449. sameElse: 'L',
  10450. },
  10451. relativeTime: {
  10452. future: 'dalam %s',
  10453. past: '%s yang lalu',
  10454. s: 'beberapa detik',
  10455. ss: '%d detik',
  10456. m: 'semenit',
  10457. mm: '%d menit',
  10458. h: 'sejam',
  10459. hh: '%d jam',
  10460. d: 'sehari',
  10461. dd: '%d hari',
  10462. M: 'sebulan',
  10463. MM: '%d bulan',
  10464. y: 'setahun',
  10465. yy: '%d tahun',
  10466. },
  10467. week: {
  10468. dow: 0, // Sunday is the first day of the week.
  10469. doy: 6, // The week that contains Jan 6th is the first week of the year.
  10470. },
  10471. });
  10472. //! moment.js locale configuration
  10473. function plural$2(n) {
  10474. if (n % 100 === 11) {
  10475. return true;
  10476. } else if (n % 10 === 1) {
  10477. return false;
  10478. }
  10479. return true;
  10480. }
  10481. function translate$5(number, withoutSuffix, key, isFuture) {
  10482. var result = number + ' ';
  10483. switch (key) {
  10484. case 's':
  10485. return withoutSuffix || isFuture
  10486. ? 'nokkrar sekúndur'
  10487. : 'nokkrum sekúndum';
  10488. case 'ss':
  10489. if (plural$2(number)) {
  10490. return (
  10491. result +
  10492. (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum')
  10493. );
  10494. }
  10495. return result + 'sekúnda';
  10496. case 'm':
  10497. return withoutSuffix ? 'mínúta' : 'mínútu';
  10498. case 'mm':
  10499. if (plural$2(number)) {
  10500. return (
  10501. result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum')
  10502. );
  10503. } else if (withoutSuffix) {
  10504. return result + 'mínúta';
  10505. }
  10506. return result + 'mínútu';
  10507. case 'hh':
  10508. if (plural$2(number)) {
  10509. return (
  10510. result +
  10511. (withoutSuffix || isFuture
  10512. ? 'klukkustundir'
  10513. : 'klukkustundum')
  10514. );
  10515. }
  10516. return result + 'klukkustund';
  10517. case 'd':
  10518. if (withoutSuffix) {
  10519. return 'dagur';
  10520. }
  10521. return isFuture ? 'dag' : 'degi';
  10522. case 'dd':
  10523. if (plural$2(number)) {
  10524. if (withoutSuffix) {
  10525. return result + 'dagar';
  10526. }
  10527. return result + (isFuture ? 'daga' : 'dögum');
  10528. } else if (withoutSuffix) {
  10529. return result + 'dagur';
  10530. }
  10531. return result + (isFuture ? 'dag' : 'degi');
  10532. case 'M':
  10533. if (withoutSuffix) {
  10534. return 'mánuður';
  10535. }
  10536. return isFuture ? 'mánuð' : 'mánuði';
  10537. case 'MM':
  10538. if (plural$2(number)) {
  10539. if (withoutSuffix) {
  10540. return result + 'mánuðir';
  10541. }
  10542. return result + (isFuture ? 'mánuði' : 'mánuðum');
  10543. } else if (withoutSuffix) {
  10544. return result + 'mánuður';
  10545. }
  10546. return result + (isFuture ? 'mánuð' : 'mánuði');
  10547. case 'y':
  10548. return withoutSuffix || isFuture ? 'ár' : 'ári';
  10549. case 'yy':
  10550. if (plural$2(number)) {
  10551. return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
  10552. }
  10553. return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
  10554. }
  10555. }
  10556. hooks.defineLocale('is', {
  10557. months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split(
  10558. '_'
  10559. ),
  10560. monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
  10561. weekdays: 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split(
  10562. '_'
  10563. ),
  10564. weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
  10565. weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
  10566. longDateFormat: {
  10567. LT: 'H:mm',
  10568. LTS: 'H:mm:ss',
  10569. L: 'DD.MM.YYYY',
  10570. LL: 'D. MMMM YYYY',
  10571. LLL: 'D. MMMM YYYY [kl.] H:mm',
  10572. LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm',
  10573. },
  10574. calendar: {
  10575. sameDay: '[í dag kl.] LT',
  10576. nextDay: '[á morgun kl.] LT',
  10577. nextWeek: 'dddd [kl.] LT',
  10578. lastDay: '[í gær kl.] LT',
  10579. lastWeek: '[síðasta] dddd [kl.] LT',
  10580. sameElse: 'L',
  10581. },
  10582. relativeTime: {
  10583. future: 'eftir %s',
  10584. past: 'fyrir %s síðan',
  10585. s: translate$5,
  10586. ss: translate$5,
  10587. m: translate$5,
  10588. mm: translate$5,
  10589. h: 'klukkustund',
  10590. hh: translate$5,
  10591. d: translate$5,
  10592. dd: translate$5,
  10593. M: translate$5,
  10594. MM: translate$5,
  10595. y: translate$5,
  10596. yy: translate$5,
  10597. },
  10598. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10599. ordinal: '%d.',
  10600. week: {
  10601. dow: 1, // Monday is the first day of the week.
  10602. doy: 4, // The week that contains Jan 4th is the first week of the year.
  10603. },
  10604. });
  10605. //! moment.js locale configuration
  10606. hooks.defineLocale('it-ch', {
  10607. months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(
  10608. '_'
  10609. ),
  10610. monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  10611. weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(
  10612. '_'
  10613. ),
  10614. weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
  10615. weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
  10616. longDateFormat: {
  10617. LT: 'HH:mm',
  10618. LTS: 'HH:mm:ss',
  10619. L: 'DD.MM.YYYY',
  10620. LL: 'D MMMM YYYY',
  10621. LLL: 'D MMMM YYYY HH:mm',
  10622. LLLL: 'dddd D MMMM YYYY HH:mm',
  10623. },
  10624. calendar: {
  10625. sameDay: '[Oggi alle] LT',
  10626. nextDay: '[Domani alle] LT',
  10627. nextWeek: 'dddd [alle] LT',
  10628. lastDay: '[Ieri alle] LT',
  10629. lastWeek: function () {
  10630. switch (this.day()) {
  10631. case 0:
  10632. return '[la scorsa] dddd [alle] LT';
  10633. default:
  10634. return '[lo scorso] dddd [alle] LT';
  10635. }
  10636. },
  10637. sameElse: 'L',
  10638. },
  10639. relativeTime: {
  10640. future: function (s) {
  10641. return (/^[0-9].+$/.test(s) ? 'tra' : 'in') + ' ' + s;
  10642. },
  10643. past: '%s fa',
  10644. s: 'alcuni secondi',
  10645. ss: '%d secondi',
  10646. m: 'un minuto',
  10647. mm: '%d minuti',
  10648. h: "un'ora",
  10649. hh: '%d ore',
  10650. d: 'un giorno',
  10651. dd: '%d giorni',
  10652. M: 'un mese',
  10653. MM: '%d mesi',
  10654. y: 'un anno',
  10655. yy: '%d anni',
  10656. },
  10657. dayOfMonthOrdinalParse: /\d{1,2}º/,
  10658. ordinal: '%dº',
  10659. week: {
  10660. dow: 1, // Monday is the first day of the week.
  10661. doy: 4, // The week that contains Jan 4th is the first week of the year.
  10662. },
  10663. });
  10664. //! moment.js locale configuration
  10665. hooks.defineLocale('it', {
  10666. months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split(
  10667. '_'
  10668. ),
  10669. monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  10670. weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split(
  10671. '_'
  10672. ),
  10673. weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
  10674. weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'),
  10675. longDateFormat: {
  10676. LT: 'HH:mm',
  10677. LTS: 'HH:mm:ss',
  10678. L: 'DD/MM/YYYY',
  10679. LL: 'D MMMM YYYY',
  10680. LLL: 'D MMMM YYYY HH:mm',
  10681. LLLL: 'dddd D MMMM YYYY HH:mm',
  10682. },
  10683. calendar: {
  10684. sameDay: function () {
  10685. return (
  10686. '[Oggi a' +
  10687. (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  10688. ']LT'
  10689. );
  10690. },
  10691. nextDay: function () {
  10692. return (
  10693. '[Domani a' +
  10694. (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  10695. ']LT'
  10696. );
  10697. },
  10698. nextWeek: function () {
  10699. return (
  10700. 'dddd [a' +
  10701. (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  10702. ']LT'
  10703. );
  10704. },
  10705. lastDay: function () {
  10706. return (
  10707. '[Ieri a' +
  10708. (this.hours() > 1 ? 'lle ' : this.hours() === 0 ? ' ' : "ll'") +
  10709. ']LT'
  10710. );
  10711. },
  10712. lastWeek: function () {
  10713. switch (this.day()) {
  10714. case 0:
  10715. return (
  10716. '[La scorsa] dddd [a' +
  10717. (this.hours() > 1
  10718. ? 'lle '
  10719. : this.hours() === 0
  10720. ? ' '
  10721. : "ll'") +
  10722. ']LT'
  10723. );
  10724. default:
  10725. return (
  10726. '[Lo scorso] dddd [a' +
  10727. (this.hours() > 1
  10728. ? 'lle '
  10729. : this.hours() === 0
  10730. ? ' '
  10731. : "ll'") +
  10732. ']LT'
  10733. );
  10734. }
  10735. },
  10736. sameElse: 'L',
  10737. },
  10738. relativeTime: {
  10739. future: 'tra %s',
  10740. past: '%s fa',
  10741. s: 'alcuni secondi',
  10742. ss: '%d secondi',
  10743. m: 'un minuto',
  10744. mm: '%d minuti',
  10745. h: "un'ora",
  10746. hh: '%d ore',
  10747. d: 'un giorno',
  10748. dd: '%d giorni',
  10749. w: 'una settimana',
  10750. ww: '%d settimane',
  10751. M: 'un mese',
  10752. MM: '%d mesi',
  10753. y: 'un anno',
  10754. yy: '%d anni',
  10755. },
  10756. dayOfMonthOrdinalParse: /\d{1,2}º/,
  10757. ordinal: '%dº',
  10758. week: {
  10759. dow: 1, // Monday is the first day of the week.
  10760. doy: 4, // The week that contains Jan 4th is the first week of the year.
  10761. },
  10762. });
  10763. //! moment.js locale configuration
  10764. hooks.defineLocale('ja', {
  10765. eras: [
  10766. {
  10767. since: '2019-05-01',
  10768. offset: 1,
  10769. name: '令和',
  10770. narrow: '㋿',
  10771. abbr: 'R',
  10772. },
  10773. {
  10774. since: '1989-01-08',
  10775. until: '2019-04-30',
  10776. offset: 1,
  10777. name: '平成',
  10778. narrow: '㍻',
  10779. abbr: 'H',
  10780. },
  10781. {
  10782. since: '1926-12-25',
  10783. until: '1989-01-07',
  10784. offset: 1,
  10785. name: '昭和',
  10786. narrow: '㍼',
  10787. abbr: 'S',
  10788. },
  10789. {
  10790. since: '1912-07-30',
  10791. until: '1926-12-24',
  10792. offset: 1,
  10793. name: '大正',
  10794. narrow: '㍽',
  10795. abbr: 'T',
  10796. },
  10797. {
  10798. since: '1873-01-01',
  10799. until: '1912-07-29',
  10800. offset: 6,
  10801. name: '明治',
  10802. narrow: '㍾',
  10803. abbr: 'M',
  10804. },
  10805. {
  10806. since: '0001-01-01',
  10807. until: '1873-12-31',
  10808. offset: 1,
  10809. name: '西暦',
  10810. narrow: 'AD',
  10811. abbr: 'AD',
  10812. },
  10813. {
  10814. since: '0000-12-31',
  10815. until: -Infinity,
  10816. offset: 1,
  10817. name: '紀元前',
  10818. narrow: 'BC',
  10819. abbr: 'BC',
  10820. },
  10821. ],
  10822. eraYearOrdinalRegex: /(元|\d+)年/,
  10823. eraYearOrdinalParse: function (input, match) {
  10824. return match[1] === '元' ? 1 : parseInt(match[1] || input, 10);
  10825. },
  10826. months: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  10827. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  10828. '_'
  10829. ),
  10830. weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
  10831. weekdaysShort: '日_月_火_水_木_金_土'.split('_'),
  10832. weekdaysMin: '日_月_火_水_木_金_土'.split('_'),
  10833. longDateFormat: {
  10834. LT: 'HH:mm',
  10835. LTS: 'HH:mm:ss',
  10836. L: 'YYYY/MM/DD',
  10837. LL: 'YYYY年M月D日',
  10838. LLL: 'YYYY年M月D日 HH:mm',
  10839. LLLL: 'YYYY年M月D日 dddd HH:mm',
  10840. l: 'YYYY/MM/DD',
  10841. ll: 'YYYY年M月D日',
  10842. lll: 'YYYY年M月D日 HH:mm',
  10843. llll: 'YYYY年M月D日(ddd) HH:mm',
  10844. },
  10845. meridiemParse: /午前|午後/i,
  10846. isPM: function (input) {
  10847. return input === '午後';
  10848. },
  10849. meridiem: function (hour, minute, isLower) {
  10850. if (hour < 12) {
  10851. return '午前';
  10852. } else {
  10853. return '午後';
  10854. }
  10855. },
  10856. calendar: {
  10857. sameDay: '[今日] LT',
  10858. nextDay: '[明日] LT',
  10859. nextWeek: function (now) {
  10860. if (now.week() !== this.week()) {
  10861. return '[来週]dddd LT';
  10862. } else {
  10863. return 'dddd LT';
  10864. }
  10865. },
  10866. lastDay: '[昨日] LT',
  10867. lastWeek: function (now) {
  10868. if (this.week() !== now.week()) {
  10869. return '[先週]dddd LT';
  10870. } else {
  10871. return 'dddd LT';
  10872. }
  10873. },
  10874. sameElse: 'L',
  10875. },
  10876. dayOfMonthOrdinalParse: /\d{1,2}日/,
  10877. ordinal: function (number, period) {
  10878. switch (period) {
  10879. case 'y':
  10880. return number === 1 ? '元年' : number + '年';
  10881. case 'd':
  10882. case 'D':
  10883. case 'DDD':
  10884. return number + '日';
  10885. default:
  10886. return number;
  10887. }
  10888. },
  10889. relativeTime: {
  10890. future: '%s後',
  10891. past: '%s前',
  10892. s: '数秒',
  10893. ss: '%d秒',
  10894. m: '1分',
  10895. mm: '%d分',
  10896. h: '1時間',
  10897. hh: '%d時間',
  10898. d: '1日',
  10899. dd: '%d日',
  10900. M: '1ヶ月',
  10901. MM: '%dヶ月',
  10902. y: '1年',
  10903. yy: '%d年',
  10904. },
  10905. });
  10906. //! moment.js locale configuration
  10907. hooks.defineLocale('jv', {
  10908. months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split(
  10909. '_'
  10910. ),
  10911. monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
  10912. weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
  10913. weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
  10914. weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
  10915. longDateFormat: {
  10916. LT: 'HH.mm',
  10917. LTS: 'HH.mm.ss',
  10918. L: 'DD/MM/YYYY',
  10919. LL: 'D MMMM YYYY',
  10920. LLL: 'D MMMM YYYY [pukul] HH.mm',
  10921. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
  10922. },
  10923. meridiemParse: /enjing|siyang|sonten|ndalu/,
  10924. meridiemHour: function (hour, meridiem) {
  10925. if (hour === 12) {
  10926. hour = 0;
  10927. }
  10928. if (meridiem === 'enjing') {
  10929. return hour;
  10930. } else if (meridiem === 'siyang') {
  10931. return hour >= 11 ? hour : hour + 12;
  10932. } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
  10933. return hour + 12;
  10934. }
  10935. },
  10936. meridiem: function (hours, minutes, isLower) {
  10937. if (hours < 11) {
  10938. return 'enjing';
  10939. } else if (hours < 15) {
  10940. return 'siyang';
  10941. } else if (hours < 19) {
  10942. return 'sonten';
  10943. } else {
  10944. return 'ndalu';
  10945. }
  10946. },
  10947. calendar: {
  10948. sameDay: '[Dinten puniko pukul] LT',
  10949. nextDay: '[Mbenjang pukul] LT',
  10950. nextWeek: 'dddd [pukul] LT',
  10951. lastDay: '[Kala wingi pukul] LT',
  10952. lastWeek: 'dddd [kepengker pukul] LT',
  10953. sameElse: 'L',
  10954. },
  10955. relativeTime: {
  10956. future: 'wonten ing %s',
  10957. past: '%s ingkang kepengker',
  10958. s: 'sawetawis detik',
  10959. ss: '%d detik',
  10960. m: 'setunggal menit',
  10961. mm: '%d menit',
  10962. h: 'setunggal jam',
  10963. hh: '%d jam',
  10964. d: 'sedinten',
  10965. dd: '%d dinten',
  10966. M: 'sewulan',
  10967. MM: '%d wulan',
  10968. y: 'setaun',
  10969. yy: '%d taun',
  10970. },
  10971. week: {
  10972. dow: 1, // Monday is the first day of the week.
  10973. doy: 7, // The week that contains Jan 7th is the first week of the year.
  10974. },
  10975. });
  10976. //! moment.js locale configuration
  10977. hooks.defineLocale('ka', {
  10978. months: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split(
  10979. '_'
  10980. ),
  10981. monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
  10982. weekdays: {
  10983. standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split(
  10984. '_'
  10985. ),
  10986. format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split(
  10987. '_'
  10988. ),
  10989. isFormat: /(წინა|შემდეგ)/,
  10990. },
  10991. weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
  10992. weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
  10993. longDateFormat: {
  10994. LT: 'HH:mm',
  10995. LTS: 'HH:mm:ss',
  10996. L: 'DD/MM/YYYY',
  10997. LL: 'D MMMM YYYY',
  10998. LLL: 'D MMMM YYYY HH:mm',
  10999. LLLL: 'dddd, D MMMM YYYY HH:mm',
  11000. },
  11001. calendar: {
  11002. sameDay: '[დღეს] LT[-ზე]',
  11003. nextDay: '[ხვალ] LT[-ზე]',
  11004. lastDay: '[გუშინ] LT[-ზე]',
  11005. nextWeek: '[შემდეგ] dddd LT[-ზე]',
  11006. lastWeek: '[წინა] dddd LT-ზე',
  11007. sameElse: 'L',
  11008. },
  11009. relativeTime: {
  11010. future: function (s) {
  11011. return s.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/, function (
  11012. $0,
  11013. $1,
  11014. $2
  11015. ) {
  11016. return $2 === 'ი' ? $1 + 'ში' : $1 + $2 + 'ში';
  11017. });
  11018. },
  11019. past: function (s) {
  11020. if (/(წამი|წუთი|საათი|დღე|თვე)/.test(s)) {
  11021. return s.replace(/(ი|ე)$/, 'ის წინ');
  11022. }
  11023. if (/წელი/.test(s)) {
  11024. return s.replace(/წელი$/, 'წლის წინ');
  11025. }
  11026. return s;
  11027. },
  11028. s: 'რამდენიმე წამი',
  11029. ss: '%d წამი',
  11030. m: 'წუთი',
  11031. mm: '%d წუთი',
  11032. h: 'საათი',
  11033. hh: '%d საათი',
  11034. d: 'დღე',
  11035. dd: '%d დღე',
  11036. M: 'თვე',
  11037. MM: '%d თვე',
  11038. y: 'წელი',
  11039. yy: '%d წელი',
  11040. },
  11041. dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
  11042. ordinal: function (number) {
  11043. if (number === 0) {
  11044. return number;
  11045. }
  11046. if (number === 1) {
  11047. return number + '-ლი';
  11048. }
  11049. if (
  11050. number < 20 ||
  11051. (number <= 100 && number % 20 === 0) ||
  11052. number % 100 === 0
  11053. ) {
  11054. return 'მე-' + number;
  11055. }
  11056. return number + '-ე';
  11057. },
  11058. week: {
  11059. dow: 1,
  11060. doy: 7,
  11061. },
  11062. });
  11063. //! moment.js locale configuration
  11064. var suffixes$1 = {
  11065. 0: '-ші',
  11066. 1: '-ші',
  11067. 2: '-ші',
  11068. 3: '-ші',
  11069. 4: '-ші',
  11070. 5: '-ші',
  11071. 6: '-шы',
  11072. 7: '-ші',
  11073. 8: '-ші',
  11074. 9: '-шы',
  11075. 10: '-шы',
  11076. 20: '-шы',
  11077. 30: '-шы',
  11078. 40: '-шы',
  11079. 50: '-ші',
  11080. 60: '-шы',
  11081. 70: '-ші',
  11082. 80: '-ші',
  11083. 90: '-шы',
  11084. 100: '-ші',
  11085. };
  11086. hooks.defineLocale('kk', {
  11087. months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split(
  11088. '_'
  11089. ),
  11090. monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
  11091. weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split(
  11092. '_'
  11093. ),
  11094. weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
  11095. weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
  11096. longDateFormat: {
  11097. LT: 'HH:mm',
  11098. LTS: 'HH:mm:ss',
  11099. L: 'DD.MM.YYYY',
  11100. LL: 'D MMMM YYYY',
  11101. LLL: 'D MMMM YYYY HH:mm',
  11102. LLLL: 'dddd, D MMMM YYYY HH:mm',
  11103. },
  11104. calendar: {
  11105. sameDay: '[Бүгін сағат] LT',
  11106. nextDay: '[Ертең сағат] LT',
  11107. nextWeek: 'dddd [сағат] LT',
  11108. lastDay: '[Кеше сағат] LT',
  11109. lastWeek: '[Өткен аптаның] dddd [сағат] LT',
  11110. sameElse: 'L',
  11111. },
  11112. relativeTime: {
  11113. future: '%s ішінде',
  11114. past: '%s бұрын',
  11115. s: 'бірнеше секунд',
  11116. ss: '%d секунд',
  11117. m: 'бір минут',
  11118. mm: '%d минут',
  11119. h: 'бір сағат',
  11120. hh: '%d сағат',
  11121. d: 'бір күн',
  11122. dd: '%d күн',
  11123. M: 'бір ай',
  11124. MM: '%d ай',
  11125. y: 'бір жыл',
  11126. yy: '%d жыл',
  11127. },
  11128. dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/,
  11129. ordinal: function (number) {
  11130. var a = number % 10,
  11131. b = number >= 100 ? 100 : null;
  11132. return number + (suffixes$1[number] || suffixes$1[a] || suffixes$1[b]);
  11133. },
  11134. week: {
  11135. dow: 1, // Monday is the first day of the week.
  11136. doy: 7, // The week that contains Jan 7th is the first week of the year.
  11137. },
  11138. });
  11139. //! moment.js locale configuration
  11140. var symbolMap$9 = {
  11141. 1: '១',
  11142. 2: '២',
  11143. 3: '៣',
  11144. 4: '៤',
  11145. 5: '៥',
  11146. 6: '៦',
  11147. 7: '៧',
  11148. 8: '៨',
  11149. 9: '៩',
  11150. 0: '០',
  11151. },
  11152. numberMap$8 = {
  11153. '១': '1',
  11154. '២': '2',
  11155. '៣': '3',
  11156. '៤': '4',
  11157. '៥': '5',
  11158. '៦': '6',
  11159. '៧': '7',
  11160. '៨': '8',
  11161. '៩': '9',
  11162. '០': '0',
  11163. };
  11164. hooks.defineLocale('km', {
  11165. months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
  11166. '_'
  11167. ),
  11168. monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split(
  11169. '_'
  11170. ),
  11171. weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  11172. weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
  11173. weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'),
  11174. weekdaysParseExact: true,
  11175. longDateFormat: {
  11176. LT: 'HH:mm',
  11177. LTS: 'HH:mm:ss',
  11178. L: 'DD/MM/YYYY',
  11179. LL: 'D MMMM YYYY',
  11180. LLL: 'D MMMM YYYY HH:mm',
  11181. LLLL: 'dddd, D MMMM YYYY HH:mm',
  11182. },
  11183. meridiemParse: /ព្រឹក|ល្ងាច/,
  11184. isPM: function (input) {
  11185. return input === 'ល្ងាច';
  11186. },
  11187. meridiem: function (hour, minute, isLower) {
  11188. if (hour < 12) {
  11189. return 'ព្រឹក';
  11190. } else {
  11191. return 'ល្ងាច';
  11192. }
  11193. },
  11194. calendar: {
  11195. sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
  11196. nextDay: '[ស្អែក ម៉ោង] LT',
  11197. nextWeek: 'dddd [ម៉ោង] LT',
  11198. lastDay: '[ម្សិលមិញ ម៉ោង] LT',
  11199. lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
  11200. sameElse: 'L',
  11201. },
  11202. relativeTime: {
  11203. future: '%sទៀត',
  11204. past: '%sមុន',
  11205. s: 'ប៉ុន្មានវិនាទី',
  11206. ss: '%d វិនាទី',
  11207. m: 'មួយនាទី',
  11208. mm: '%d នាទី',
  11209. h: 'មួយម៉ោង',
  11210. hh: '%d ម៉ោង',
  11211. d: 'មួយថ្ងៃ',
  11212. dd: '%d ថ្ងៃ',
  11213. M: 'មួយខែ',
  11214. MM: '%d ខែ',
  11215. y: 'មួយឆ្នាំ',
  11216. yy: '%d ឆ្នាំ',
  11217. },
  11218. dayOfMonthOrdinalParse: /ទី\d{1,2}/,
  11219. ordinal: 'ទី%d',
  11220. preparse: function (string) {
  11221. return string.replace(/[១២៣៤៥៦៧៨៩០]/g, function (match) {
  11222. return numberMap$8[match];
  11223. });
  11224. },
  11225. postformat: function (string) {
  11226. return string.replace(/\d/g, function (match) {
  11227. return symbolMap$9[match];
  11228. });
  11229. },
  11230. week: {
  11231. dow: 1, // Monday is the first day of the week.
  11232. doy: 4, // The week that contains Jan 4th is the first week of the year.
  11233. },
  11234. });
  11235. //! moment.js locale configuration
  11236. var symbolMap$a = {
  11237. 1: '೧',
  11238. 2: '೨',
  11239. 3: '೩',
  11240. 4: '೪',
  11241. 5: '೫',
  11242. 6: '೬',
  11243. 7: '೭',
  11244. 8: '೮',
  11245. 9: '೯',
  11246. 0: '೦',
  11247. },
  11248. numberMap$9 = {
  11249. '೧': '1',
  11250. '೨': '2',
  11251. '೩': '3',
  11252. '೪': '4',
  11253. '೫': '5',
  11254. '೬': '6',
  11255. '೭': '7',
  11256. '೮': '8',
  11257. '೯': '9',
  11258. '೦': '0',
  11259. };
  11260. hooks.defineLocale('kn', {
  11261. months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split(
  11262. '_'
  11263. ),
  11264. monthsShort: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split(
  11265. '_'
  11266. ),
  11267. monthsParseExact: true,
  11268. weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split(
  11269. '_'
  11270. ),
  11271. weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
  11272. weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
  11273. longDateFormat: {
  11274. LT: 'A h:mm',
  11275. LTS: 'A h:mm:ss',
  11276. L: 'DD/MM/YYYY',
  11277. LL: 'D MMMM YYYY',
  11278. LLL: 'D MMMM YYYY, A h:mm',
  11279. LLLL: 'dddd, D MMMM YYYY, A h:mm',
  11280. },
  11281. calendar: {
  11282. sameDay: '[ಇಂದು] LT',
  11283. nextDay: '[ನಾಳೆ] LT',
  11284. nextWeek: 'dddd, LT',
  11285. lastDay: '[ನಿನ್ನೆ] LT',
  11286. lastWeek: '[ಕೊನೆಯ] dddd, LT',
  11287. sameElse: 'L',
  11288. },
  11289. relativeTime: {
  11290. future: '%s ನಂತರ',
  11291. past: '%s ಹಿಂದೆ',
  11292. s: 'ಕೆಲವು ಕ್ಷಣಗಳು',
  11293. ss: '%d ಸೆಕೆಂಡುಗಳು',
  11294. m: 'ಒಂದು ನಿಮಿಷ',
  11295. mm: '%d ನಿಮಿಷ',
  11296. h: 'ಒಂದು ಗಂಟೆ',
  11297. hh: '%d ಗಂಟೆ',
  11298. d: 'ಒಂದು ದಿನ',
  11299. dd: '%d ದಿನ',
  11300. M: 'ಒಂದು ತಿಂಗಳು',
  11301. MM: '%d ತಿಂಗಳು',
  11302. y: 'ಒಂದು ವರ್ಷ',
  11303. yy: '%d ವರ್ಷ',
  11304. },
  11305. preparse: function (string) {
  11306. return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {
  11307. return numberMap$9[match];
  11308. });
  11309. },
  11310. postformat: function (string) {
  11311. return string.replace(/\d/g, function (match) {
  11312. return symbolMap$a[match];
  11313. });
  11314. },
  11315. meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
  11316. meridiemHour: function (hour, meridiem) {
  11317. if (hour === 12) {
  11318. hour = 0;
  11319. }
  11320. if (meridiem === 'ರಾತ್ರಿ') {
  11321. return hour < 4 ? hour : hour + 12;
  11322. } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {
  11323. return hour;
  11324. } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {
  11325. return hour >= 10 ? hour : hour + 12;
  11326. } else if (meridiem === 'ಸಂಜೆ') {
  11327. return hour + 12;
  11328. }
  11329. },
  11330. meridiem: function (hour, minute, isLower) {
  11331. if (hour < 4) {
  11332. return 'ರಾತ್ರಿ';
  11333. } else if (hour < 10) {
  11334. return 'ಬೆಳಿಗ್ಗೆ';
  11335. } else if (hour < 17) {
  11336. return 'ಮಧ್ಯಾಹ್ನ';
  11337. } else if (hour < 20) {
  11338. return 'ಸಂಜೆ';
  11339. } else {
  11340. return 'ರಾತ್ರಿ';
  11341. }
  11342. },
  11343. dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
  11344. ordinal: function (number) {
  11345. return number + 'ನೇ';
  11346. },
  11347. week: {
  11348. dow: 0, // Sunday is the first day of the week.
  11349. doy: 6, // The week that contains Jan 6th is the first week of the year.
  11350. },
  11351. });
  11352. //! moment.js locale configuration
  11353. hooks.defineLocale('ko', {
  11354. months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  11355. monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split(
  11356. '_'
  11357. ),
  11358. weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
  11359. weekdaysShort: '일_월_화_수_목_금_토'.split('_'),
  11360. weekdaysMin: '일_월_화_수_목_금_토'.split('_'),
  11361. longDateFormat: {
  11362. LT: 'A h:mm',
  11363. LTS: 'A h:mm:ss',
  11364. L: 'YYYY.MM.DD.',
  11365. LL: 'YYYY년 MMMM D일',
  11366. LLL: 'YYYY년 MMMM D일 A h:mm',
  11367. LLLL: 'YYYY년 MMMM D일 dddd A h:mm',
  11368. l: 'YYYY.MM.DD.',
  11369. ll: 'YYYY년 MMMM D일',
  11370. lll: 'YYYY년 MMMM D일 A h:mm',
  11371. llll: 'YYYY년 MMMM D일 dddd A h:mm',
  11372. },
  11373. calendar: {
  11374. sameDay: '오늘 LT',
  11375. nextDay: '내일 LT',
  11376. nextWeek: 'dddd LT',
  11377. lastDay: '어제 LT',
  11378. lastWeek: '지난주 dddd LT',
  11379. sameElse: 'L',
  11380. },
  11381. relativeTime: {
  11382. future: '%s 후',
  11383. past: '%s 전',
  11384. s: '몇 초',
  11385. ss: '%d초',
  11386. m: '1분',
  11387. mm: '%d분',
  11388. h: '한 시간',
  11389. hh: '%d시간',
  11390. d: '하루',
  11391. dd: '%d일',
  11392. M: '한 달',
  11393. MM: '%d달',
  11394. y: '일 년',
  11395. yy: '%d년',
  11396. },
  11397. dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/,
  11398. ordinal: function (number, period) {
  11399. switch (period) {
  11400. case 'd':
  11401. case 'D':
  11402. case 'DDD':
  11403. return number + '일';
  11404. case 'M':
  11405. return number + '월';
  11406. case 'w':
  11407. case 'W':
  11408. return number + '주';
  11409. default:
  11410. return number;
  11411. }
  11412. },
  11413. meridiemParse: /오전|오후/,
  11414. isPM: function (token) {
  11415. return token === '오후';
  11416. },
  11417. meridiem: function (hour, minute, isUpper) {
  11418. return hour < 12 ? '오전' : '오후';
  11419. },
  11420. });
  11421. //! moment.js locale configuration
  11422. var symbolMap$b = {
  11423. 1: '١',
  11424. 2: '٢',
  11425. 3: '٣',
  11426. 4: '٤',
  11427. 5: '٥',
  11428. 6: '٦',
  11429. 7: '٧',
  11430. 8: '٨',
  11431. 9: '٩',
  11432. 0: '٠',
  11433. },
  11434. numberMap$a = {
  11435. '١': '1',
  11436. '٢': '2',
  11437. '٣': '3',
  11438. '٤': '4',
  11439. '٥': '5',
  11440. '٦': '6',
  11441. '٧': '7',
  11442. '٨': '8',
  11443. '٩': '9',
  11444. '٠': '0',
  11445. },
  11446. months$8 = [
  11447. 'کانونی دووەم',
  11448. 'شوبات',
  11449. 'ئازار',
  11450. 'نیسان',
  11451. 'ئایار',
  11452. 'حوزەیران',
  11453. 'تەمموز',
  11454. 'ئاب',
  11455. 'ئەیلوول',
  11456. 'تشرینی یەكەم',
  11457. 'تشرینی دووەم',
  11458. 'كانونی یەکەم',
  11459. ];
  11460. hooks.defineLocale('ku', {
  11461. months: months$8,
  11462. monthsShort: months$8,
  11463. weekdays: 'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split(
  11464. '_'
  11465. ),
  11466. weekdaysShort: 'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split(
  11467. '_'
  11468. ),
  11469. weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'),
  11470. weekdaysParseExact: true,
  11471. longDateFormat: {
  11472. LT: 'HH:mm',
  11473. LTS: 'HH:mm:ss',
  11474. L: 'DD/MM/YYYY',
  11475. LL: 'D MMMM YYYY',
  11476. LLL: 'D MMMM YYYY HH:mm',
  11477. LLLL: 'dddd, D MMMM YYYY HH:mm',
  11478. },
  11479. meridiemParse: /ئێواره‌|به‌یانی/,
  11480. isPM: function (input) {
  11481. return /ئێواره‌/.test(input);
  11482. },
  11483. meridiem: function (hour, minute, isLower) {
  11484. if (hour < 12) {
  11485. return 'به‌یانی';
  11486. } else {
  11487. return 'ئێواره‌';
  11488. }
  11489. },
  11490. calendar: {
  11491. sameDay: '[ئه‌مرۆ كاتژمێر] LT',
  11492. nextDay: '[به‌یانی كاتژمێر] LT',
  11493. nextWeek: 'dddd [كاتژمێر] LT',
  11494. lastDay: '[دوێنێ كاتژمێر] LT',
  11495. lastWeek: 'dddd [كاتژمێر] LT',
  11496. sameElse: 'L',
  11497. },
  11498. relativeTime: {
  11499. future: 'له‌ %s',
  11500. past: '%s',
  11501. s: 'چه‌ند چركه‌یه‌ك',
  11502. ss: 'چركه‌ %d',
  11503. m: 'یه‌ك خوله‌ك',
  11504. mm: '%d خوله‌ك',
  11505. h: 'یه‌ك كاتژمێر',
  11506. hh: '%d كاتژمێر',
  11507. d: 'یه‌ك ڕۆژ',
  11508. dd: '%d ڕۆژ',
  11509. M: 'یه‌ك مانگ',
  11510. MM: '%d مانگ',
  11511. y: 'یه‌ك ساڵ',
  11512. yy: '%d ساڵ',
  11513. },
  11514. preparse: function (string) {
  11515. return string
  11516. .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  11517. return numberMap$a[match];
  11518. })
  11519. .replace(/،/g, ',');
  11520. },
  11521. postformat: function (string) {
  11522. return string
  11523. .replace(/\d/g, function (match) {
  11524. return symbolMap$b[match];
  11525. })
  11526. .replace(/,/g, '،');
  11527. },
  11528. week: {
  11529. dow: 6, // Saturday is the first day of the week.
  11530. doy: 12, // The week that contains Jan 12th is the first week of the year.
  11531. },
  11532. });
  11533. //! moment.js locale configuration
  11534. var suffixes$2 = {
  11535. 0: '-чү',
  11536. 1: '-чи',
  11537. 2: '-чи',
  11538. 3: '-чү',
  11539. 4: '-чү',
  11540. 5: '-чи',
  11541. 6: '-чы',
  11542. 7: '-чи',
  11543. 8: '-чи',
  11544. 9: '-чу',
  11545. 10: '-чу',
  11546. 20: '-чы',
  11547. 30: '-чу',
  11548. 40: '-чы',
  11549. 50: '-чү',
  11550. 60: '-чы',
  11551. 70: '-чи',
  11552. 80: '-чи',
  11553. 90: '-чу',
  11554. 100: '-чү',
  11555. };
  11556. hooks.defineLocale('ky', {
  11557. months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(
  11558. '_'
  11559. ),
  11560. monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split(
  11561. '_'
  11562. ),
  11563. weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split(
  11564. '_'
  11565. ),
  11566. weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
  11567. weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
  11568. longDateFormat: {
  11569. LT: 'HH:mm',
  11570. LTS: 'HH:mm:ss',
  11571. L: 'DD.MM.YYYY',
  11572. LL: 'D MMMM YYYY',
  11573. LLL: 'D MMMM YYYY HH:mm',
  11574. LLLL: 'dddd, D MMMM YYYY HH:mm',
  11575. },
  11576. calendar: {
  11577. sameDay: '[Бүгүн саат] LT',
  11578. nextDay: '[Эртең саат] LT',
  11579. nextWeek: 'dddd [саат] LT',
  11580. lastDay: '[Кечээ саат] LT',
  11581. lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT',
  11582. sameElse: 'L',
  11583. },
  11584. relativeTime: {
  11585. future: '%s ичинде',
  11586. past: '%s мурун',
  11587. s: 'бирнече секунд',
  11588. ss: '%d секунд',
  11589. m: 'бир мүнөт',
  11590. mm: '%d мүнөт',
  11591. h: 'бир саат',
  11592. hh: '%d саат',
  11593. d: 'бир күн',
  11594. dd: '%d күн',
  11595. M: 'бир ай',
  11596. MM: '%d ай',
  11597. y: 'бир жыл',
  11598. yy: '%d жыл',
  11599. },
  11600. dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/,
  11601. ordinal: function (number) {
  11602. var a = number % 10,
  11603. b = number >= 100 ? 100 : null;
  11604. return number + (suffixes$2[number] || suffixes$2[a] || suffixes$2[b]);
  11605. },
  11606. week: {
  11607. dow: 1, // Monday is the first day of the week.
  11608. doy: 7, // The week that contains Jan 7th is the first week of the year.
  11609. },
  11610. });
  11611. //! moment.js locale configuration
  11612. function processRelativeTime$6(number, withoutSuffix, key, isFuture) {
  11613. var format = {
  11614. m: ['eng Minutt', 'enger Minutt'],
  11615. h: ['eng Stonn', 'enger Stonn'],
  11616. d: ['een Dag', 'engem Dag'],
  11617. M: ['ee Mount', 'engem Mount'],
  11618. y: ['ee Joer', 'engem Joer'],
  11619. };
  11620. return withoutSuffix ? format[key][0] : format[key][1];
  11621. }
  11622. function processFutureTime(string) {
  11623. var number = string.substr(0, string.indexOf(' '));
  11624. if (eifelerRegelAppliesToNumber(number)) {
  11625. return 'a ' + string;
  11626. }
  11627. return 'an ' + string;
  11628. }
  11629. function processPastTime(string) {
  11630. var number = string.substr(0, string.indexOf(' '));
  11631. if (eifelerRegelAppliesToNumber(number)) {
  11632. return 'viru ' + string;
  11633. }
  11634. return 'virun ' + string;
  11635. }
  11636. /**
  11637. * Returns true if the word before the given number loses the '-n' ending.
  11638. * e.g. 'an 10 Deeg' but 'a 5 Deeg'
  11639. *
  11640. * @param number {integer}
  11641. * @returns {boolean}
  11642. */
  11643. function eifelerRegelAppliesToNumber(number) {
  11644. number = parseInt(number, 10);
  11645. if (isNaN(number)) {
  11646. return false;
  11647. }
  11648. if (number < 0) {
  11649. // Negative Number --> always true
  11650. return true;
  11651. } else if (number < 10) {
  11652. // Only 1 digit
  11653. if (4 <= number && number <= 7) {
  11654. return true;
  11655. }
  11656. return false;
  11657. } else if (number < 100) {
  11658. // 2 digits
  11659. var lastDigit = number % 10,
  11660. firstDigit = number / 10;
  11661. if (lastDigit === 0) {
  11662. return eifelerRegelAppliesToNumber(firstDigit);
  11663. }
  11664. return eifelerRegelAppliesToNumber(lastDigit);
  11665. } else if (number < 10000) {
  11666. // 3 or 4 digits --> recursively check first digit
  11667. while (number >= 10) {
  11668. number = number / 10;
  11669. }
  11670. return eifelerRegelAppliesToNumber(number);
  11671. } else {
  11672. // Anything larger than 4 digits: recursively check first n-3 digits
  11673. number = number / 1000;
  11674. return eifelerRegelAppliesToNumber(number);
  11675. }
  11676. }
  11677. hooks.defineLocale('lb', {
  11678. months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split(
  11679. '_'
  11680. ),
  11681. monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split(
  11682. '_'
  11683. ),
  11684. monthsParseExact: true,
  11685. weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split(
  11686. '_'
  11687. ),
  11688. weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
  11689. weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
  11690. weekdaysParseExact: true,
  11691. longDateFormat: {
  11692. LT: 'H:mm [Auer]',
  11693. LTS: 'H:mm:ss [Auer]',
  11694. L: 'DD.MM.YYYY',
  11695. LL: 'D. MMMM YYYY',
  11696. LLL: 'D. MMMM YYYY H:mm [Auer]',
  11697. LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]',
  11698. },
  11699. calendar: {
  11700. sameDay: '[Haut um] LT',
  11701. sameElse: 'L',
  11702. nextDay: '[Muer um] LT',
  11703. nextWeek: 'dddd [um] LT',
  11704. lastDay: '[Gëschter um] LT',
  11705. lastWeek: function () {
  11706. // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
  11707. switch (this.day()) {
  11708. case 2:
  11709. case 4:
  11710. return '[Leschten] dddd [um] LT';
  11711. default:
  11712. return '[Leschte] dddd [um] LT';
  11713. }
  11714. },
  11715. },
  11716. relativeTime: {
  11717. future: processFutureTime,
  11718. past: processPastTime,
  11719. s: 'e puer Sekonnen',
  11720. ss: '%d Sekonnen',
  11721. m: processRelativeTime$6,
  11722. mm: '%d Minutten',
  11723. h: processRelativeTime$6,
  11724. hh: '%d Stonnen',
  11725. d: processRelativeTime$6,
  11726. dd: '%d Deeg',
  11727. M: processRelativeTime$6,
  11728. MM: '%d Méint',
  11729. y: processRelativeTime$6,
  11730. yy: '%d Joer',
  11731. },
  11732. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11733. ordinal: '%d.',
  11734. week: {
  11735. dow: 1, // Monday is the first day of the week.
  11736. doy: 4, // The week that contains Jan 4th is the first week of the year.
  11737. },
  11738. });
  11739. //! moment.js locale configuration
  11740. hooks.defineLocale('lo', {
  11741. months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
  11742. '_'
  11743. ),
  11744. monthsShort: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split(
  11745. '_'
  11746. ),
  11747. weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  11748. weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  11749. weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
  11750. weekdaysParseExact: true,
  11751. longDateFormat: {
  11752. LT: 'HH:mm',
  11753. LTS: 'HH:mm:ss',
  11754. L: 'DD/MM/YYYY',
  11755. LL: 'D MMMM YYYY',
  11756. LLL: 'D MMMM YYYY HH:mm',
  11757. LLLL: 'ວັນdddd D MMMM YYYY HH:mm',
  11758. },
  11759. meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
  11760. isPM: function (input) {
  11761. return input === 'ຕອນແລງ';
  11762. },
  11763. meridiem: function (hour, minute, isLower) {
  11764. if (hour < 12) {
  11765. return 'ຕອນເຊົ້າ';
  11766. } else {
  11767. return 'ຕອນແລງ';
  11768. }
  11769. },
  11770. calendar: {
  11771. sameDay: '[ມື້ນີ້ເວລາ] LT',
  11772. nextDay: '[ມື້ອື່ນເວລາ] LT',
  11773. nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT',
  11774. lastDay: '[ມື້ວານນີ້ເວລາ] LT',
  11775. lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
  11776. sameElse: 'L',
  11777. },
  11778. relativeTime: {
  11779. future: 'ອີກ %s',
  11780. past: '%sຜ່ານມາ',
  11781. s: 'ບໍ່ເທົ່າໃດວິນາທີ',
  11782. ss: '%d ວິນາທີ',
  11783. m: '1 ນາທີ',
  11784. mm: '%d ນາທີ',
  11785. h: '1 ຊົ່ວໂມງ',
  11786. hh: '%d ຊົ່ວໂມງ',
  11787. d: '1 ມື້',
  11788. dd: '%d ມື້',
  11789. M: '1 ເດືອນ',
  11790. MM: '%d ເດືອນ',
  11791. y: '1 ປີ',
  11792. yy: '%d ປີ',
  11793. },
  11794. dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
  11795. ordinal: function (number) {
  11796. return 'ທີ່' + number;
  11797. },
  11798. });
  11799. //! moment.js locale configuration
  11800. var units = {
  11801. ss: 'sekundė_sekundžių_sekundes',
  11802. m: 'minutė_minutės_minutę',
  11803. mm: 'minutės_minučių_minutes',
  11804. h: 'valanda_valandos_valandą',
  11805. hh: 'valandos_valandų_valandas',
  11806. d: 'diena_dienos_dieną',
  11807. dd: 'dienos_dienų_dienas',
  11808. M: 'mėnuo_mėnesio_mėnesį',
  11809. MM: 'mėnesiai_mėnesių_mėnesius',
  11810. y: 'metai_metų_metus',
  11811. yy: 'metai_metų_metus',
  11812. };
  11813. function translateSeconds(number, withoutSuffix, key, isFuture) {
  11814. if (withoutSuffix) {
  11815. return 'kelios sekundės';
  11816. } else {
  11817. return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
  11818. }
  11819. }
  11820. function translateSingular(number, withoutSuffix, key, isFuture) {
  11821. return withoutSuffix
  11822. ? forms(key)[0]
  11823. : isFuture
  11824. ? forms(key)[1]
  11825. : forms(key)[2];
  11826. }
  11827. function special(number) {
  11828. return number % 10 === 0 || (number > 10 && number < 20);
  11829. }
  11830. function forms(key) {
  11831. return units[key].split('_');
  11832. }
  11833. function translate$6(number, withoutSuffix, key, isFuture) {
  11834. var result = number + ' ';
  11835. if (number === 1) {
  11836. return (
  11837. result + translateSingular(number, withoutSuffix, key[0], isFuture)
  11838. );
  11839. } else if (withoutSuffix) {
  11840. return result + (special(number) ? forms(key)[1] : forms(key)[0]);
  11841. } else {
  11842. if (isFuture) {
  11843. return result + forms(key)[1];
  11844. } else {
  11845. return result + (special(number) ? forms(key)[1] : forms(key)[2]);
  11846. }
  11847. }
  11848. }
  11849. hooks.defineLocale('lt', {
  11850. months: {
  11851. format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split(
  11852. '_'
  11853. ),
  11854. standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split(
  11855. '_'
  11856. ),
  11857. isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/,
  11858. },
  11859. monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
  11860. weekdays: {
  11861. format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split(
  11862. '_'
  11863. ),
  11864. standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split(
  11865. '_'
  11866. ),
  11867. isFormat: /dddd HH:mm/,
  11868. },
  11869. weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
  11870. weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'),
  11871. weekdaysParseExact: true,
  11872. longDateFormat: {
  11873. LT: 'HH:mm',
  11874. LTS: 'HH:mm:ss',
  11875. L: 'YYYY-MM-DD',
  11876. LL: 'YYYY [m.] MMMM D [d.]',
  11877. LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  11878. LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
  11879. l: 'YYYY-MM-DD',
  11880. ll: 'YYYY [m.] MMMM D [d.]',
  11881. lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  11882. llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]',
  11883. },
  11884. calendar: {
  11885. sameDay: '[Šiandien] LT',
  11886. nextDay: '[Rytoj] LT',
  11887. nextWeek: 'dddd LT',
  11888. lastDay: '[Vakar] LT',
  11889. lastWeek: '[Praėjusį] dddd LT',
  11890. sameElse: 'L',
  11891. },
  11892. relativeTime: {
  11893. future: 'po %s',
  11894. past: 'prieš %s',
  11895. s: translateSeconds,
  11896. ss: translate$6,
  11897. m: translateSingular,
  11898. mm: translate$6,
  11899. h: translateSingular,
  11900. hh: translate$6,
  11901. d: translateSingular,
  11902. dd: translate$6,
  11903. M: translateSingular,
  11904. MM: translate$6,
  11905. y: translateSingular,
  11906. yy: translate$6,
  11907. },
  11908. dayOfMonthOrdinalParse: /\d{1,2}-oji/,
  11909. ordinal: function (number) {
  11910. return number + '-oji';
  11911. },
  11912. week: {
  11913. dow: 1, // Monday is the first day of the week.
  11914. doy: 4, // The week that contains Jan 4th is the first week of the year.
  11915. },
  11916. });
  11917. //! moment.js locale configuration
  11918. var units$1 = {
  11919. ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'),
  11920. m: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  11921. mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  11922. h: 'stundas_stundām_stunda_stundas'.split('_'),
  11923. hh: 'stundas_stundām_stunda_stundas'.split('_'),
  11924. d: 'dienas_dienām_diena_dienas'.split('_'),
  11925. dd: 'dienas_dienām_diena_dienas'.split('_'),
  11926. M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  11927. MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  11928. y: 'gada_gadiem_gads_gadi'.split('_'),
  11929. yy: 'gada_gadiem_gads_gadi'.split('_'),
  11930. };
  11931. /**
  11932. * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
  11933. */
  11934. function format$1(forms, number, withoutSuffix) {
  11935. if (withoutSuffix) {
  11936. // E.g. "21 minūte", "3 minūtes".
  11937. return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];
  11938. } else {
  11939. // E.g. "21 minūtes" as in "pēc 21 minūtes".
  11940. // E.g. "3 minūtēm" as in "pēc 3 minūtēm".
  11941. return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];
  11942. }
  11943. }
  11944. function relativeTimeWithPlural$1(number, withoutSuffix, key) {
  11945. return number + ' ' + format$1(units$1[key], number, withoutSuffix);
  11946. }
  11947. function relativeTimeWithSingular(number, withoutSuffix, key) {
  11948. return format$1(units$1[key], number, withoutSuffix);
  11949. }
  11950. function relativeSeconds(number, withoutSuffix) {
  11951. return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
  11952. }
  11953. hooks.defineLocale('lv', {
  11954. months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split(
  11955. '_'
  11956. ),
  11957. monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
  11958. weekdays: 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split(
  11959. '_'
  11960. ),
  11961. weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'),
  11962. weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'),
  11963. weekdaysParseExact: true,
  11964. longDateFormat: {
  11965. LT: 'HH:mm',
  11966. LTS: 'HH:mm:ss',
  11967. L: 'DD.MM.YYYY.',
  11968. LL: 'YYYY. [gada] D. MMMM',
  11969. LLL: 'YYYY. [gada] D. MMMM, HH:mm',
  11970. LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm',
  11971. },
  11972. calendar: {
  11973. sameDay: '[Šodien pulksten] LT',
  11974. nextDay: '[Rīt pulksten] LT',
  11975. nextWeek: 'dddd [pulksten] LT',
  11976. lastDay: '[Vakar pulksten] LT',
  11977. lastWeek: '[Pagājušā] dddd [pulksten] LT',
  11978. sameElse: 'L',
  11979. },
  11980. relativeTime: {
  11981. future: 'pēc %s',
  11982. past: 'pirms %s',
  11983. s: relativeSeconds,
  11984. ss: relativeTimeWithPlural$1,
  11985. m: relativeTimeWithSingular,
  11986. mm: relativeTimeWithPlural$1,
  11987. h: relativeTimeWithSingular,
  11988. hh: relativeTimeWithPlural$1,
  11989. d: relativeTimeWithSingular,
  11990. dd: relativeTimeWithPlural$1,
  11991. M: relativeTimeWithSingular,
  11992. MM: relativeTimeWithPlural$1,
  11993. y: relativeTimeWithSingular,
  11994. yy: relativeTimeWithPlural$1,
  11995. },
  11996. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11997. ordinal: '%d.',
  11998. week: {
  11999. dow: 1, // Monday is the first day of the week.
  12000. doy: 4, // The week that contains Jan 4th is the first week of the year.
  12001. },
  12002. });
  12003. //! moment.js locale configuration
  12004. var translator = {
  12005. words: {
  12006. //Different grammatical cases
  12007. ss: ['sekund', 'sekunda', 'sekundi'],
  12008. m: ['jedan minut', 'jednog minuta'],
  12009. mm: ['minut', 'minuta', 'minuta'],
  12010. h: ['jedan sat', 'jednog sata'],
  12011. hh: ['sat', 'sata', 'sati'],
  12012. dd: ['dan', 'dana', 'dana'],
  12013. MM: ['mjesec', 'mjeseca', 'mjeseci'],
  12014. yy: ['godina', 'godine', 'godina'],
  12015. },
  12016. correctGrammaticalCase: function (number, wordKey) {
  12017. return number === 1
  12018. ? wordKey[0]
  12019. : number >= 2 && number <= 4
  12020. ? wordKey[1]
  12021. : wordKey[2];
  12022. },
  12023. translate: function (number, withoutSuffix, key) {
  12024. var wordKey = translator.words[key];
  12025. if (key.length === 1) {
  12026. return withoutSuffix ? wordKey[0] : wordKey[1];
  12027. } else {
  12028. return (
  12029. number +
  12030. ' ' +
  12031. translator.correctGrammaticalCase(number, wordKey)
  12032. );
  12033. }
  12034. },
  12035. };
  12036. hooks.defineLocale('me', {
  12037. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(
  12038. '_'
  12039. ),
  12040. monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split(
  12041. '_'
  12042. ),
  12043. monthsParseExact: true,
  12044. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
  12045. '_'
  12046. ),
  12047. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  12048. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  12049. weekdaysParseExact: true,
  12050. longDateFormat: {
  12051. LT: 'H:mm',
  12052. LTS: 'H:mm:ss',
  12053. L: 'DD.MM.YYYY',
  12054. LL: 'D. MMMM YYYY',
  12055. LLL: 'D. MMMM YYYY H:mm',
  12056. LLLL: 'dddd, D. MMMM YYYY H:mm',
  12057. },
  12058. calendar: {
  12059. sameDay: '[danas u] LT',
  12060. nextDay: '[sjutra u] LT',
  12061. nextWeek: function () {
  12062. switch (this.day()) {
  12063. case 0:
  12064. return '[u] [nedjelju] [u] LT';
  12065. case 3:
  12066. return '[u] [srijedu] [u] LT';
  12067. case 6:
  12068. return '[u] [subotu] [u] LT';
  12069. case 1:
  12070. case 2:
  12071. case 4:
  12072. case 5:
  12073. return '[u] dddd [u] LT';
  12074. }
  12075. },
  12076. lastDay: '[juče u] LT',
  12077. lastWeek: function () {
  12078. var lastWeekDays = [
  12079. '[prošle] [nedjelje] [u] LT',
  12080. '[prošlog] [ponedjeljka] [u] LT',
  12081. '[prošlog] [utorka] [u] LT',
  12082. '[prošle] [srijede] [u] LT',
  12083. '[prošlog] [četvrtka] [u] LT',
  12084. '[prošlog] [petka] [u] LT',
  12085. '[prošle] [subote] [u] LT',
  12086. ];
  12087. return lastWeekDays[this.day()];
  12088. },
  12089. sameElse: 'L',
  12090. },
  12091. relativeTime: {
  12092. future: 'za %s',
  12093. past: 'prije %s',
  12094. s: 'nekoliko sekundi',
  12095. ss: translator.translate,
  12096. m: translator.translate,
  12097. mm: translator.translate,
  12098. h: translator.translate,
  12099. hh: translator.translate,
  12100. d: 'dan',
  12101. dd: translator.translate,
  12102. M: 'mjesec',
  12103. MM: translator.translate,
  12104. y: 'godinu',
  12105. yy: translator.translate,
  12106. },
  12107. dayOfMonthOrdinalParse: /\d{1,2}\./,
  12108. ordinal: '%d.',
  12109. week: {
  12110. dow: 1, // Monday is the first day of the week.
  12111. doy: 7, // The week that contains Jan 7th is the first week of the year.
  12112. },
  12113. });
  12114. //! moment.js locale configuration
  12115. hooks.defineLocale('mi', {
  12116. 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(
  12117. '_'
  12118. ),
  12119. monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split(
  12120. '_'
  12121. ),
  12122. monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  12123. monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  12124. monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  12125. monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
  12126. weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
  12127. weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  12128. weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  12129. longDateFormat: {
  12130. LT: 'HH:mm',
  12131. LTS: 'HH:mm:ss',
  12132. L: 'DD/MM/YYYY',
  12133. LL: 'D MMMM YYYY',
  12134. LLL: 'D MMMM YYYY [i] HH:mm',
  12135. LLLL: 'dddd, D MMMM YYYY [i] HH:mm',
  12136. },
  12137. calendar: {
  12138. sameDay: '[i teie mahana, i] LT',
  12139. nextDay: '[apopo i] LT',
  12140. nextWeek: 'dddd [i] LT',
  12141. lastDay: '[inanahi i] LT',
  12142. lastWeek: 'dddd [whakamutunga i] LT',
  12143. sameElse: 'L',
  12144. },
  12145. relativeTime: {
  12146. future: 'i roto i %s',
  12147. past: '%s i mua',
  12148. s: 'te hēkona ruarua',
  12149. ss: '%d hēkona',
  12150. m: 'he meneti',
  12151. mm: '%d meneti',
  12152. h: 'te haora',
  12153. hh: '%d haora',
  12154. d: 'he ra',
  12155. dd: '%d ra',
  12156. M: 'he marama',
  12157. MM: '%d marama',
  12158. y: 'he tau',
  12159. yy: '%d tau',
  12160. },
  12161. dayOfMonthOrdinalParse: /\d{1,2}º/,
  12162. ordinal: '%dº',
  12163. week: {
  12164. dow: 1, // Monday is the first day of the week.
  12165. doy: 4, // The week that contains Jan 4th is the first week of the year.
  12166. },
  12167. });
  12168. //! moment.js locale configuration
  12169. hooks.defineLocale('mk', {
  12170. months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split(
  12171. '_'
  12172. ),
  12173. monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
  12174. weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split(
  12175. '_'
  12176. ),
  12177. weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
  12178. weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'),
  12179. longDateFormat: {
  12180. LT: 'H:mm',
  12181. LTS: 'H:mm:ss',
  12182. L: 'D.MM.YYYY',
  12183. LL: 'D MMMM YYYY',
  12184. LLL: 'D MMMM YYYY H:mm',
  12185. LLLL: 'dddd, D MMMM YYYY H:mm',
  12186. },
  12187. calendar: {
  12188. sameDay: '[Денес во] LT',
  12189. nextDay: '[Утре во] LT',
  12190. nextWeek: '[Во] dddd [во] LT',
  12191. lastDay: '[Вчера во] LT',
  12192. lastWeek: function () {
  12193. switch (this.day()) {
  12194. case 0:
  12195. case 3:
  12196. case 6:
  12197. return '[Изминатата] dddd [во] LT';
  12198. case 1:
  12199. case 2:
  12200. case 4:
  12201. case 5:
  12202. return '[Изминатиот] dddd [во] LT';
  12203. }
  12204. },
  12205. sameElse: 'L',
  12206. },
  12207. relativeTime: {
  12208. future: 'за %s',
  12209. past: 'пред %s',
  12210. s: 'неколку секунди',
  12211. ss: '%d секунди',
  12212. m: 'една минута',
  12213. mm: '%d минути',
  12214. h: 'еден час',
  12215. hh: '%d часа',
  12216. d: 'еден ден',
  12217. dd: '%d дена',
  12218. M: 'еден месец',
  12219. MM: '%d месеци',
  12220. y: 'една година',
  12221. yy: '%d години',
  12222. },
  12223. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  12224. ordinal: function (number) {
  12225. var lastDigit = number % 10,
  12226. last2Digits = number % 100;
  12227. if (number === 0) {
  12228. return number + '-ев';
  12229. } else if (last2Digits === 0) {
  12230. return number + '-ен';
  12231. } else if (last2Digits > 10 && last2Digits < 20) {
  12232. return number + '-ти';
  12233. } else if (lastDigit === 1) {
  12234. return number + '-ви';
  12235. } else if (lastDigit === 2) {
  12236. return number + '-ри';
  12237. } else if (lastDigit === 7 || lastDigit === 8) {
  12238. return number + '-ми';
  12239. } else {
  12240. return number + '-ти';
  12241. }
  12242. },
  12243. week: {
  12244. dow: 1, // Monday is the first day of the week.
  12245. doy: 7, // The week that contains Jan 7th is the first week of the year.
  12246. },
  12247. });
  12248. //! moment.js locale configuration
  12249. hooks.defineLocale('ml', {
  12250. months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split(
  12251. '_'
  12252. ),
  12253. monthsShort: 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split(
  12254. '_'
  12255. ),
  12256. monthsParseExact: true,
  12257. weekdays: 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split(
  12258. '_'
  12259. ),
  12260. weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
  12261. weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
  12262. longDateFormat: {
  12263. LT: 'A h:mm -നു',
  12264. LTS: 'A h:mm:ss -നു',
  12265. L: 'DD/MM/YYYY',
  12266. LL: 'D MMMM YYYY',
  12267. LLL: 'D MMMM YYYY, A h:mm -നു',
  12268. LLLL: 'dddd, D MMMM YYYY, A h:mm -നു',
  12269. },
  12270. calendar: {
  12271. sameDay: '[ഇന്ന്] LT',
  12272. nextDay: '[നാളെ] LT',
  12273. nextWeek: 'dddd, LT',
  12274. lastDay: '[ഇന്നലെ] LT',
  12275. lastWeek: '[കഴിഞ്ഞ] dddd, LT',
  12276. sameElse: 'L',
  12277. },
  12278. relativeTime: {
  12279. future: '%s കഴിഞ്ഞ്',
  12280. past: '%s മുൻപ്',
  12281. s: 'അൽപ നിമിഷങ്ങൾ',
  12282. ss: '%d സെക്കൻഡ്',
  12283. m: 'ഒരു മിനിറ്റ്',
  12284. mm: '%d മിനിറ്റ്',
  12285. h: 'ഒരു മണിക്കൂർ',
  12286. hh: '%d മണിക്കൂർ',
  12287. d: 'ഒരു ദിവസം',
  12288. dd: '%d ദിവസം',
  12289. M: 'ഒരു മാസം',
  12290. MM: '%d മാസം',
  12291. y: 'ഒരു വർഷം',
  12292. yy: '%d വർഷം',
  12293. },
  12294. meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
  12295. meridiemHour: function (hour, meridiem) {
  12296. if (hour === 12) {
  12297. hour = 0;
  12298. }
  12299. if (
  12300. (meridiem === 'രാത്രി' && hour >= 4) ||
  12301. meridiem === 'ഉച്ച കഴിഞ്ഞ്' ||
  12302. meridiem === 'വൈകുന്നേരം'
  12303. ) {
  12304. return hour + 12;
  12305. } else {
  12306. return hour;
  12307. }
  12308. },
  12309. meridiem: function (hour, minute, isLower) {
  12310. if (hour < 4) {
  12311. return 'രാത്രി';
  12312. } else if (hour < 12) {
  12313. return 'രാവിലെ';
  12314. } else if (hour < 17) {
  12315. return 'ഉച്ച കഴിഞ്ഞ്';
  12316. } else if (hour < 20) {
  12317. return 'വൈകുന്നേരം';
  12318. } else {
  12319. return 'രാത്രി';
  12320. }
  12321. },
  12322. });
  12323. //! moment.js locale configuration
  12324. function translate$7(number, withoutSuffix, key, isFuture) {
  12325. switch (key) {
  12326. case 's':
  12327. return withoutSuffix ? 'хэдхэн секунд' : 'хэдхэн секундын';
  12328. case 'ss':
  12329. return number + (withoutSuffix ? ' секунд' : ' секундын');
  12330. case 'm':
  12331. case 'mm':
  12332. return number + (withoutSuffix ? ' минут' : ' минутын');
  12333. case 'h':
  12334. case 'hh':
  12335. return number + (withoutSuffix ? ' цаг' : ' цагийн');
  12336. case 'd':
  12337. case 'dd':
  12338. return number + (withoutSuffix ? ' өдөр' : ' өдрийн');
  12339. case 'M':
  12340. case 'MM':
  12341. return number + (withoutSuffix ? ' сар' : ' сарын');
  12342. case 'y':
  12343. case 'yy':
  12344. return number + (withoutSuffix ? ' жил' : ' жилийн');
  12345. default:
  12346. return number;
  12347. }
  12348. }
  12349. hooks.defineLocale('mn', {
  12350. months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split(
  12351. '_'
  12352. ),
  12353. monthsShort: '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split(
  12354. '_'
  12355. ),
  12356. monthsParseExact: true,
  12357. weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'),
  12358. weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'),
  12359. weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'),
  12360. weekdaysParseExact: true,
  12361. longDateFormat: {
  12362. LT: 'HH:mm',
  12363. LTS: 'HH:mm:ss',
  12364. L: 'YYYY-MM-DD',
  12365. LL: 'YYYY оны MMMMын D',
  12366. LLL: 'YYYY оны MMMMын D HH:mm',
  12367. LLLL: 'dddd, YYYY оны MMMMын D HH:mm',
  12368. },
  12369. meridiemParse: /ҮӨ|ҮХ/i,
  12370. isPM: function (input) {
  12371. return input === 'ҮХ';
  12372. },
  12373. meridiem: function (hour, minute, isLower) {
  12374. if (hour < 12) {
  12375. return 'ҮӨ';
  12376. } else {
  12377. return 'ҮХ';
  12378. }
  12379. },
  12380. calendar: {
  12381. sameDay: '[Өнөөдөр] LT',
  12382. nextDay: '[Маргааш] LT',
  12383. nextWeek: '[Ирэх] dddd LT',
  12384. lastDay: '[Өчигдөр] LT',
  12385. lastWeek: '[Өнгөрсөн] dddd LT',
  12386. sameElse: 'L',
  12387. },
  12388. relativeTime: {
  12389. future: '%s дараа',
  12390. past: '%s өмнө',
  12391. s: translate$7,
  12392. ss: translate$7,
  12393. m: translate$7,
  12394. mm: translate$7,
  12395. h: translate$7,
  12396. hh: translate$7,
  12397. d: translate$7,
  12398. dd: translate$7,
  12399. M: translate$7,
  12400. MM: translate$7,
  12401. y: translate$7,
  12402. yy: translate$7,
  12403. },
  12404. dayOfMonthOrdinalParse: /\d{1,2} өдөр/,
  12405. ordinal: function (number, period) {
  12406. switch (period) {
  12407. case 'd':
  12408. case 'D':
  12409. case 'DDD':
  12410. return number + ' өдөр';
  12411. default:
  12412. return number;
  12413. }
  12414. },
  12415. });
  12416. //! moment.js locale configuration
  12417. var symbolMap$c = {
  12418. 1: '१',
  12419. 2: '२',
  12420. 3: '३',
  12421. 4: '४',
  12422. 5: '५',
  12423. 6: '६',
  12424. 7: '७',
  12425. 8: '८',
  12426. 9: '९',
  12427. 0: '०',
  12428. },
  12429. numberMap$b = {
  12430. '१': '1',
  12431. '२': '2',
  12432. '३': '3',
  12433. '४': '4',
  12434. '५': '5',
  12435. '६': '6',
  12436. '७': '7',
  12437. '८': '8',
  12438. '९': '9',
  12439. '०': '0',
  12440. };
  12441. function relativeTimeMr(number, withoutSuffix, string, isFuture) {
  12442. var output = '';
  12443. if (withoutSuffix) {
  12444. switch (string) {
  12445. case 's':
  12446. output = 'काही सेकंद';
  12447. break;
  12448. case 'ss':
  12449. output = '%d सेकंद';
  12450. break;
  12451. case 'm':
  12452. output = 'एक मिनिट';
  12453. break;
  12454. case 'mm':
  12455. output = '%d मिनिटे';
  12456. break;
  12457. case 'h':
  12458. output = 'एक तास';
  12459. break;
  12460. case 'hh':
  12461. output = '%d तास';
  12462. break;
  12463. case 'd':
  12464. output = 'एक दिवस';
  12465. break;
  12466. case 'dd':
  12467. output = '%d दिवस';
  12468. break;
  12469. case 'M':
  12470. output = 'एक महिना';
  12471. break;
  12472. case 'MM':
  12473. output = '%d महिने';
  12474. break;
  12475. case 'y':
  12476. output = 'एक वर्ष';
  12477. break;
  12478. case 'yy':
  12479. output = '%d वर्षे';
  12480. break;
  12481. }
  12482. } else {
  12483. switch (string) {
  12484. case 's':
  12485. output = 'काही सेकंदां';
  12486. break;
  12487. case 'ss':
  12488. output = '%d सेकंदां';
  12489. break;
  12490. case 'm':
  12491. output = 'एका मिनिटा';
  12492. break;
  12493. case 'mm':
  12494. output = '%d मिनिटां';
  12495. break;
  12496. case 'h':
  12497. output = 'एका तासा';
  12498. break;
  12499. case 'hh':
  12500. output = '%d तासां';
  12501. break;
  12502. case 'd':
  12503. output = 'एका दिवसा';
  12504. break;
  12505. case 'dd':
  12506. output = '%d दिवसां';
  12507. break;
  12508. case 'M':
  12509. output = 'एका महिन्या';
  12510. break;
  12511. case 'MM':
  12512. output = '%d महिन्यां';
  12513. break;
  12514. case 'y':
  12515. output = 'एका वर्षा';
  12516. break;
  12517. case 'yy':
  12518. output = '%d वर्षां';
  12519. break;
  12520. }
  12521. }
  12522. return output.replace(/%d/i, number);
  12523. }
  12524. hooks.defineLocale('mr', {
  12525. months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(
  12526. '_'
  12527. ),
  12528. monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(
  12529. '_'
  12530. ),
  12531. monthsParseExact: true,
  12532. weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  12533. weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
  12534. weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'),
  12535. longDateFormat: {
  12536. LT: 'A h:mm वाजता',
  12537. LTS: 'A h:mm:ss वाजता',
  12538. L: 'DD/MM/YYYY',
  12539. LL: 'D MMMM YYYY',
  12540. LLL: 'D MMMM YYYY, A h:mm वाजता',
  12541. LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता',
  12542. },
  12543. calendar: {
  12544. sameDay: '[आज] LT',
  12545. nextDay: '[उद्या] LT',
  12546. nextWeek: 'dddd, LT',
  12547. lastDay: '[काल] LT',
  12548. lastWeek: '[मागील] dddd, LT',
  12549. sameElse: 'L',
  12550. },
  12551. relativeTime: {
  12552. future: '%sमध्ये',
  12553. past: '%sपूर्वी',
  12554. s: relativeTimeMr,
  12555. ss: relativeTimeMr,
  12556. m: relativeTimeMr,
  12557. mm: relativeTimeMr,
  12558. h: relativeTimeMr,
  12559. hh: relativeTimeMr,
  12560. d: relativeTimeMr,
  12561. dd: relativeTimeMr,
  12562. M: relativeTimeMr,
  12563. MM: relativeTimeMr,
  12564. y: relativeTimeMr,
  12565. yy: relativeTimeMr,
  12566. },
  12567. preparse: function (string) {
  12568. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  12569. return numberMap$b[match];
  12570. });
  12571. },
  12572. postformat: function (string) {
  12573. return string.replace(/\d/g, function (match) {
  12574. return symbolMap$c[match];
  12575. });
  12576. },
  12577. meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,
  12578. meridiemHour: function (hour, meridiem) {
  12579. if (hour === 12) {
  12580. hour = 0;
  12581. }
  12582. if (meridiem === 'पहाटे' || meridiem === 'सकाळी') {
  12583. return hour;
  12584. } else if (
  12585. meridiem === 'दुपारी' ||
  12586. meridiem === 'सायंकाळी' ||
  12587. meridiem === 'रात्री'
  12588. ) {
  12589. return hour >= 12 ? hour : hour + 12;
  12590. }
  12591. },
  12592. meridiem: function (hour, minute, isLower) {
  12593. if (hour >= 0 && hour < 6) {
  12594. return 'पहाटे';
  12595. } else if (hour < 12) {
  12596. return 'सकाळी';
  12597. } else if (hour < 17) {
  12598. return 'दुपारी';
  12599. } else if (hour < 20) {
  12600. return 'सायंकाळी';
  12601. } else {
  12602. return 'रात्री';
  12603. }
  12604. },
  12605. week: {
  12606. dow: 0, // Sunday is the first day of the week.
  12607. doy: 6, // The week that contains Jan 6th is the first week of the year.
  12608. },
  12609. });
  12610. //! moment.js locale configuration
  12611. hooks.defineLocale('ms-my', {
  12612. months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(
  12613. '_'
  12614. ),
  12615. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  12616. weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  12617. weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  12618. weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  12619. longDateFormat: {
  12620. LT: 'HH.mm',
  12621. LTS: 'HH.mm.ss',
  12622. L: 'DD/MM/YYYY',
  12623. LL: 'D MMMM YYYY',
  12624. LLL: 'D MMMM YYYY [pukul] HH.mm',
  12625. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
  12626. },
  12627. meridiemParse: /pagi|tengahari|petang|malam/,
  12628. meridiemHour: function (hour, meridiem) {
  12629. if (hour === 12) {
  12630. hour = 0;
  12631. }
  12632. if (meridiem === 'pagi') {
  12633. return hour;
  12634. } else if (meridiem === 'tengahari') {
  12635. return hour >= 11 ? hour : hour + 12;
  12636. } else if (meridiem === 'petang' || meridiem === 'malam') {
  12637. return hour + 12;
  12638. }
  12639. },
  12640. meridiem: function (hours, minutes, isLower) {
  12641. if (hours < 11) {
  12642. return 'pagi';
  12643. } else if (hours < 15) {
  12644. return 'tengahari';
  12645. } else if (hours < 19) {
  12646. return 'petang';
  12647. } else {
  12648. return 'malam';
  12649. }
  12650. },
  12651. calendar: {
  12652. sameDay: '[Hari ini pukul] LT',
  12653. nextDay: '[Esok pukul] LT',
  12654. nextWeek: 'dddd [pukul] LT',
  12655. lastDay: '[Kelmarin pukul] LT',
  12656. lastWeek: 'dddd [lepas pukul] LT',
  12657. sameElse: 'L',
  12658. },
  12659. relativeTime: {
  12660. future: 'dalam %s',
  12661. past: '%s yang lepas',
  12662. s: 'beberapa saat',
  12663. ss: '%d saat',
  12664. m: 'seminit',
  12665. mm: '%d minit',
  12666. h: 'sejam',
  12667. hh: '%d jam',
  12668. d: 'sehari',
  12669. dd: '%d hari',
  12670. M: 'sebulan',
  12671. MM: '%d bulan',
  12672. y: 'setahun',
  12673. yy: '%d tahun',
  12674. },
  12675. week: {
  12676. dow: 1, // Monday is the first day of the week.
  12677. doy: 7, // The week that contains Jan 7th is the first week of the year.
  12678. },
  12679. });
  12680. //! moment.js locale configuration
  12681. hooks.defineLocale('ms', {
  12682. months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(
  12683. '_'
  12684. ),
  12685. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  12686. weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  12687. weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  12688. weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  12689. longDateFormat: {
  12690. LT: 'HH.mm',
  12691. LTS: 'HH.mm.ss',
  12692. L: 'DD/MM/YYYY',
  12693. LL: 'D MMMM YYYY',
  12694. LLL: 'D MMMM YYYY [pukul] HH.mm',
  12695. LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',
  12696. },
  12697. meridiemParse: /pagi|tengahari|petang|malam/,
  12698. meridiemHour: function (hour, meridiem) {
  12699. if (hour === 12) {
  12700. hour = 0;
  12701. }
  12702. if (meridiem === 'pagi') {
  12703. return hour;
  12704. } else if (meridiem === 'tengahari') {
  12705. return hour >= 11 ? hour : hour + 12;
  12706. } else if (meridiem === 'petang' || meridiem === 'malam') {
  12707. return hour + 12;
  12708. }
  12709. },
  12710. meridiem: function (hours, minutes, isLower) {
  12711. if (hours < 11) {
  12712. return 'pagi';
  12713. } else if (hours < 15) {
  12714. return 'tengahari';
  12715. } else if (hours < 19) {
  12716. return 'petang';
  12717. } else {
  12718. return 'malam';
  12719. }
  12720. },
  12721. calendar: {
  12722. sameDay: '[Hari ini pukul] LT',
  12723. nextDay: '[Esok pukul] LT',
  12724. nextWeek: 'dddd [pukul] LT',
  12725. lastDay: '[Kelmarin pukul] LT',
  12726. lastWeek: 'dddd [lepas pukul] LT',
  12727. sameElse: 'L',
  12728. },
  12729. relativeTime: {
  12730. future: 'dalam %s',
  12731. past: '%s yang lepas',
  12732. s: 'beberapa saat',
  12733. ss: '%d saat',
  12734. m: 'seminit',
  12735. mm: '%d minit',
  12736. h: 'sejam',
  12737. hh: '%d jam',
  12738. d: 'sehari',
  12739. dd: '%d hari',
  12740. M: 'sebulan',
  12741. MM: '%d bulan',
  12742. y: 'setahun',
  12743. yy: '%d tahun',
  12744. },
  12745. week: {
  12746. dow: 1, // Monday is the first day of the week.
  12747. doy: 7, // The week that contains Jan 7th is the first week of the year.
  12748. },
  12749. });
  12750. //! moment.js locale configuration
  12751. hooks.defineLocale('mt', {
  12752. months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split(
  12753. '_'
  12754. ),
  12755. monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split('_'),
  12756. weekdays: 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split(
  12757. '_'
  12758. ),
  12759. weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'),
  12760. weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'),
  12761. longDateFormat: {
  12762. LT: 'HH:mm',
  12763. LTS: 'HH:mm:ss',
  12764. L: 'DD/MM/YYYY',
  12765. LL: 'D MMMM YYYY',
  12766. LLL: 'D MMMM YYYY HH:mm',
  12767. LLLL: 'dddd, D MMMM YYYY HH:mm',
  12768. },
  12769. calendar: {
  12770. sameDay: '[Illum fil-]LT',
  12771. nextDay: '[Għada fil-]LT',
  12772. nextWeek: 'dddd [fil-]LT',
  12773. lastDay: '[Il-bieraħ fil-]LT',
  12774. lastWeek: 'dddd [li għadda] [fil-]LT',
  12775. sameElse: 'L',
  12776. },
  12777. relativeTime: {
  12778. future: 'f’ %s',
  12779. past: '%s ilu',
  12780. s: 'ftit sekondi',
  12781. ss: '%d sekondi',
  12782. m: 'minuta',
  12783. mm: '%d minuti',
  12784. h: 'siegħa',
  12785. hh: '%d siegħat',
  12786. d: 'ġurnata',
  12787. dd: '%d ġranet',
  12788. M: 'xahar',
  12789. MM: '%d xhur',
  12790. y: 'sena',
  12791. yy: '%d sni',
  12792. },
  12793. dayOfMonthOrdinalParse: /\d{1,2}º/,
  12794. ordinal: '%dº',
  12795. week: {
  12796. dow: 1, // Monday is the first day of the week.
  12797. doy: 4, // The week that contains Jan 4th is the first week of the year.
  12798. },
  12799. });
  12800. //! moment.js locale configuration
  12801. var symbolMap$d = {
  12802. 1: '၁',
  12803. 2: '၂',
  12804. 3: '၃',
  12805. 4: '၄',
  12806. 5: '၅',
  12807. 6: '၆',
  12808. 7: '၇',
  12809. 8: '၈',
  12810. 9: '၉',
  12811. 0: '၀',
  12812. },
  12813. numberMap$c = {
  12814. '၁': '1',
  12815. '၂': '2',
  12816. '၃': '3',
  12817. '၄': '4',
  12818. '၅': '5',
  12819. '၆': '6',
  12820. '၇': '7',
  12821. '၈': '8',
  12822. '၉': '9',
  12823. '၀': '0',
  12824. };
  12825. hooks.defineLocale('my', {
  12826. months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split(
  12827. '_'
  12828. ),
  12829. monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
  12830. weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split(
  12831. '_'
  12832. ),
  12833. weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  12834. weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  12835. longDateFormat: {
  12836. LT: 'HH:mm',
  12837. LTS: 'HH:mm:ss',
  12838. L: 'DD/MM/YYYY',
  12839. LL: 'D MMMM YYYY',
  12840. LLL: 'D MMMM YYYY HH:mm',
  12841. LLLL: 'dddd D MMMM YYYY HH:mm',
  12842. },
  12843. calendar: {
  12844. sameDay: '[ယနေ.] LT [မှာ]',
  12845. nextDay: '[မနက်ဖြန်] LT [မှာ]',
  12846. nextWeek: 'dddd LT [မှာ]',
  12847. lastDay: '[မနေ.က] LT [မှာ]',
  12848. lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
  12849. sameElse: 'L',
  12850. },
  12851. relativeTime: {
  12852. future: 'လာမည့် %s မှာ',
  12853. past: 'လွန်ခဲ့သော %s က',
  12854. s: 'စက္ကန်.အနည်းငယ်',
  12855. ss: '%d စက္ကန့်',
  12856. m: 'တစ်မိနစ်',
  12857. mm: '%d မိနစ်',
  12858. h: 'တစ်နာရီ',
  12859. hh: '%d နာရီ',
  12860. d: 'တစ်ရက်',
  12861. dd: '%d ရက်',
  12862. M: 'တစ်လ',
  12863. MM: '%d လ',
  12864. y: 'တစ်နှစ်',
  12865. yy: '%d နှစ်',
  12866. },
  12867. preparse: function (string) {
  12868. return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
  12869. return numberMap$c[match];
  12870. });
  12871. },
  12872. postformat: function (string) {
  12873. return string.replace(/\d/g, function (match) {
  12874. return symbolMap$d[match];
  12875. });
  12876. },
  12877. week: {
  12878. dow: 1, // Monday is the first day of the week.
  12879. doy: 4, // The week that contains Jan 4th is the first week of the year.
  12880. },
  12881. });
  12882. //! moment.js locale configuration
  12883. hooks.defineLocale('nb', {
  12884. months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
  12885. '_'
  12886. ),
  12887. monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split(
  12888. '_'
  12889. ),
  12890. monthsParseExact: true,
  12891. weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  12892. weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'),
  12893. weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
  12894. weekdaysParseExact: true,
  12895. longDateFormat: {
  12896. LT: 'HH:mm',
  12897. LTS: 'HH:mm:ss',
  12898. L: 'DD.MM.YYYY',
  12899. LL: 'D. MMMM YYYY',
  12900. LLL: 'D. MMMM YYYY [kl.] HH:mm',
  12901. LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
  12902. },
  12903. calendar: {
  12904. sameDay: '[i dag kl.] LT',
  12905. nextDay: '[i morgen kl.] LT',
  12906. nextWeek: 'dddd [kl.] LT',
  12907. lastDay: '[i går kl.] LT',
  12908. lastWeek: '[forrige] dddd [kl.] LT',
  12909. sameElse: 'L',
  12910. },
  12911. relativeTime: {
  12912. future: 'om %s',
  12913. past: '%s siden',
  12914. s: 'noen sekunder',
  12915. ss: '%d sekunder',
  12916. m: 'ett minutt',
  12917. mm: '%d minutter',
  12918. h: 'en time',
  12919. hh: '%d timer',
  12920. d: 'en dag',
  12921. dd: '%d dager',
  12922. w: 'en uke',
  12923. ww: '%d uker',
  12924. M: 'en måned',
  12925. MM: '%d måneder',
  12926. y: 'ett år',
  12927. yy: '%d år',
  12928. },
  12929. dayOfMonthOrdinalParse: /\d{1,2}\./,
  12930. ordinal: '%d.',
  12931. week: {
  12932. dow: 1, // Monday is the first day of the week.
  12933. doy: 4, // The week that contains Jan 4th is the first week of the year.
  12934. },
  12935. });
  12936. //! moment.js locale configuration
  12937. var symbolMap$e = {
  12938. 1: '१',
  12939. 2: '२',
  12940. 3: '३',
  12941. 4: '४',
  12942. 5: '५',
  12943. 6: '६',
  12944. 7: '७',
  12945. 8: '८',
  12946. 9: '९',
  12947. 0: '०',
  12948. },
  12949. numberMap$d = {
  12950. '१': '1',
  12951. '२': '2',
  12952. '३': '3',
  12953. '४': '4',
  12954. '५': '5',
  12955. '६': '6',
  12956. '७': '7',
  12957. '८': '8',
  12958. '९': '9',
  12959. '०': '0',
  12960. };
  12961. hooks.defineLocale('ne', {
  12962. months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split(
  12963. '_'
  12964. ),
  12965. monthsShort: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split(
  12966. '_'
  12967. ),
  12968. monthsParseExact: true,
  12969. weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split(
  12970. '_'
  12971. ),
  12972. weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
  12973. weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
  12974. weekdaysParseExact: true,
  12975. longDateFormat: {
  12976. LT: 'Aको h:mm बजे',
  12977. LTS: 'Aको h:mm:ss बजे',
  12978. L: 'DD/MM/YYYY',
  12979. LL: 'D MMMM YYYY',
  12980. LLL: 'D MMMM YYYY, Aको h:mm बजे',
  12981. LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे',
  12982. },
  12983. preparse: function (string) {
  12984. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  12985. return numberMap$d[match];
  12986. });
  12987. },
  12988. postformat: function (string) {
  12989. return string.replace(/\d/g, function (match) {
  12990. return symbolMap$e[match];
  12991. });
  12992. },
  12993. meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
  12994. meridiemHour: function (hour, meridiem) {
  12995. if (hour === 12) {
  12996. hour = 0;
  12997. }
  12998. if (meridiem === 'राति') {
  12999. return hour < 4 ? hour : hour + 12;
  13000. } else if (meridiem === 'बिहान') {
  13001. return hour;
  13002. } else if (meridiem === 'दिउँसो') {
  13003. return hour >= 10 ? hour : hour + 12;
  13004. } else if (meridiem === 'साँझ') {
  13005. return hour + 12;
  13006. }
  13007. },
  13008. meridiem: function (hour, minute, isLower) {
  13009. if (hour < 3) {
  13010. return 'राति';
  13011. } else if (hour < 12) {
  13012. return 'बिहान';
  13013. } else if (hour < 16) {
  13014. return 'दिउँसो';
  13015. } else if (hour < 20) {
  13016. return 'साँझ';
  13017. } else {
  13018. return 'राति';
  13019. }
  13020. },
  13021. calendar: {
  13022. sameDay: '[आज] LT',
  13023. nextDay: '[भोलि] LT',
  13024. nextWeek: '[आउँदो] dddd[,] LT',
  13025. lastDay: '[हिजो] LT',
  13026. lastWeek: '[गएको] dddd[,] LT',
  13027. sameElse: 'L',
  13028. },
  13029. relativeTime: {
  13030. future: '%sमा',
  13031. past: '%s अगाडि',
  13032. s: 'केही क्षण',
  13033. ss: '%d सेकेण्ड',
  13034. m: 'एक मिनेट',
  13035. mm: '%d मिनेट',
  13036. h: 'एक घण्टा',
  13037. hh: '%d घण्टा',
  13038. d: 'एक दिन',
  13039. dd: '%d दिन',
  13040. M: 'एक महिना',
  13041. MM: '%d महिना',
  13042. y: 'एक बर्ष',
  13043. yy: '%d बर्ष',
  13044. },
  13045. week: {
  13046. dow: 0, // Sunday is the first day of the week.
  13047. doy: 6, // The week that contains Jan 6th is the first week of the year.
  13048. },
  13049. });
  13050. //! moment.js locale configuration
  13051. var monthsShortWithDots$1 = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split(
  13052. '_'
  13053. ),
  13054. monthsShortWithoutDots$1 = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split(
  13055. '_'
  13056. ),
  13057. monthsParse$7 = [
  13058. /^jan/i,
  13059. /^feb/i,
  13060. /^maart|mrt.?$/i,
  13061. /^apr/i,
  13062. /^mei$/i,
  13063. /^jun[i.]?$/i,
  13064. /^jul[i.]?$/i,
  13065. /^aug/i,
  13066. /^sep/i,
  13067. /^okt/i,
  13068. /^nov/i,
  13069. /^dec/i,
  13070. ],
  13071. monthsRegex$8 = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
  13072. hooks.defineLocale('nl-be', {
  13073. months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(
  13074. '_'
  13075. ),
  13076. monthsShort: function (m, format) {
  13077. if (!m) {
  13078. return monthsShortWithDots$1;
  13079. } else if (/-MMM-/.test(format)) {
  13080. return monthsShortWithoutDots$1[m.month()];
  13081. } else {
  13082. return monthsShortWithDots$1[m.month()];
  13083. }
  13084. },
  13085. monthsRegex: monthsRegex$8,
  13086. monthsShortRegex: monthsRegex$8,
  13087. monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
  13088. monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  13089. monthsParse: monthsParse$7,
  13090. longMonthsParse: monthsParse$7,
  13091. shortMonthsParse: monthsParse$7,
  13092. weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split(
  13093. '_'
  13094. ),
  13095. weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
  13096. weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
  13097. weekdaysParseExact: true,
  13098. longDateFormat: {
  13099. LT: 'HH:mm',
  13100. LTS: 'HH:mm:ss',
  13101. L: 'DD/MM/YYYY',
  13102. LL: 'D MMMM YYYY',
  13103. LLL: 'D MMMM YYYY HH:mm',
  13104. LLLL: 'dddd D MMMM YYYY HH:mm',
  13105. },
  13106. calendar: {
  13107. sameDay: '[vandaag om] LT',
  13108. nextDay: '[morgen om] LT',
  13109. nextWeek: 'dddd [om] LT',
  13110. lastDay: '[gisteren om] LT',
  13111. lastWeek: '[afgelopen] dddd [om] LT',
  13112. sameElse: 'L',
  13113. },
  13114. relativeTime: {
  13115. future: 'over %s',
  13116. past: '%s geleden',
  13117. s: 'een paar seconden',
  13118. ss: '%d seconden',
  13119. m: 'één minuut',
  13120. mm: '%d minuten',
  13121. h: 'één uur',
  13122. hh: '%d uur',
  13123. d: 'één dag',
  13124. dd: '%d dagen',
  13125. M: 'één maand',
  13126. MM: '%d maanden',
  13127. y: 'één jaar',
  13128. yy: '%d jaar',
  13129. },
  13130. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  13131. ordinal: function (number) {
  13132. return (
  13133. number +
  13134. (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
  13135. );
  13136. },
  13137. week: {
  13138. dow: 1, // Monday is the first day of the week.
  13139. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13140. },
  13141. });
  13142. //! moment.js locale configuration
  13143. var monthsShortWithDots$2 = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split(
  13144. '_'
  13145. ),
  13146. monthsShortWithoutDots$2 = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split(
  13147. '_'
  13148. ),
  13149. monthsParse$8 = [
  13150. /^jan/i,
  13151. /^feb/i,
  13152. /^maart|mrt.?$/i,
  13153. /^apr/i,
  13154. /^mei$/i,
  13155. /^jun[i.]?$/i,
  13156. /^jul[i.]?$/i,
  13157. /^aug/i,
  13158. /^sep/i,
  13159. /^okt/i,
  13160. /^nov/i,
  13161. /^dec/i,
  13162. ],
  13163. monthsRegex$9 = /^(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;
  13164. hooks.defineLocale('nl', {
  13165. months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(
  13166. '_'
  13167. ),
  13168. monthsShort: function (m, format) {
  13169. if (!m) {
  13170. return monthsShortWithDots$2;
  13171. } else if (/-MMM-/.test(format)) {
  13172. return monthsShortWithoutDots$2[m.month()];
  13173. } else {
  13174. return monthsShortWithDots$2[m.month()];
  13175. }
  13176. },
  13177. monthsRegex: monthsRegex$9,
  13178. monthsShortRegex: monthsRegex$9,
  13179. monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
  13180. monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  13181. monthsParse: monthsParse$8,
  13182. longMonthsParse: monthsParse$8,
  13183. shortMonthsParse: monthsParse$8,
  13184. weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split(
  13185. '_'
  13186. ),
  13187. weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
  13188. weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
  13189. weekdaysParseExact: true,
  13190. longDateFormat: {
  13191. LT: 'HH:mm',
  13192. LTS: 'HH:mm:ss',
  13193. L: 'DD-MM-YYYY',
  13194. LL: 'D MMMM YYYY',
  13195. LLL: 'D MMMM YYYY HH:mm',
  13196. LLLL: 'dddd D MMMM YYYY HH:mm',
  13197. },
  13198. calendar: {
  13199. sameDay: '[vandaag om] LT',
  13200. nextDay: '[morgen om] LT',
  13201. nextWeek: 'dddd [om] LT',
  13202. lastDay: '[gisteren om] LT',
  13203. lastWeek: '[afgelopen] dddd [om] LT',
  13204. sameElse: 'L',
  13205. },
  13206. relativeTime: {
  13207. future: 'over %s',
  13208. past: '%s geleden',
  13209. s: 'een paar seconden',
  13210. ss: '%d seconden',
  13211. m: 'één minuut',
  13212. mm: '%d minuten',
  13213. h: 'één uur',
  13214. hh: '%d uur',
  13215. d: 'één dag',
  13216. dd: '%d dagen',
  13217. w: 'één week',
  13218. ww: '%d weken',
  13219. M: 'één maand',
  13220. MM: '%d maanden',
  13221. y: 'één jaar',
  13222. yy: '%d jaar',
  13223. },
  13224. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  13225. ordinal: function (number) {
  13226. return (
  13227. number +
  13228. (number === 1 || number === 8 || number >= 20 ? 'ste' : 'de')
  13229. );
  13230. },
  13231. week: {
  13232. dow: 1, // Monday is the first day of the week.
  13233. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13234. },
  13235. });
  13236. //! moment.js locale configuration
  13237. hooks.defineLocale('nn', {
  13238. months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
  13239. '_'
  13240. ),
  13241. monthsShort: 'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split(
  13242. '_'
  13243. ),
  13244. monthsParseExact: true,
  13245. weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
  13246. weekdaysShort: 'su._må._ty._on._to._fr._lau.'.split('_'),
  13247. weekdaysMin: 'su_må_ty_on_to_fr_la'.split('_'),
  13248. weekdaysParseExact: true,
  13249. longDateFormat: {
  13250. LT: 'HH:mm',
  13251. LTS: 'HH:mm:ss',
  13252. L: 'DD.MM.YYYY',
  13253. LL: 'D. MMMM YYYY',
  13254. LLL: 'D. MMMM YYYY [kl.] H:mm',
  13255. LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
  13256. },
  13257. calendar: {
  13258. sameDay: '[I dag klokka] LT',
  13259. nextDay: '[I morgon klokka] LT',
  13260. nextWeek: 'dddd [klokka] LT',
  13261. lastDay: '[I går klokka] LT',
  13262. lastWeek: '[Føregåande] dddd [klokka] LT',
  13263. sameElse: 'L',
  13264. },
  13265. relativeTime: {
  13266. future: 'om %s',
  13267. past: '%s sidan',
  13268. s: 'nokre sekund',
  13269. ss: '%d sekund',
  13270. m: 'eit minutt',
  13271. mm: '%d minutt',
  13272. h: 'ein time',
  13273. hh: '%d timar',
  13274. d: 'ein dag',
  13275. dd: '%d dagar',
  13276. w: 'ei veke',
  13277. ww: '%d veker',
  13278. M: 'ein månad',
  13279. MM: '%d månader',
  13280. y: 'eit år',
  13281. yy: '%d år',
  13282. },
  13283. dayOfMonthOrdinalParse: /\d{1,2}\./,
  13284. ordinal: '%d.',
  13285. week: {
  13286. dow: 1, // Monday is the first day of the week.
  13287. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13288. },
  13289. });
  13290. //! moment.js locale configuration
  13291. hooks.defineLocale('oc-lnc', {
  13292. months: {
  13293. standalone: 'genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre'.split(
  13294. '_'
  13295. ),
  13296. 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(
  13297. '_'
  13298. ),
  13299. isFormat: /D[oD]?(\s)+MMMM/,
  13300. },
  13301. monthsShort: 'gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.'.split(
  13302. '_'
  13303. ),
  13304. monthsParseExact: true,
  13305. weekdays: 'dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte'.split(
  13306. '_'
  13307. ),
  13308. weekdaysShort: 'dg._dl._dm._dc._dj._dv._ds.'.split('_'),
  13309. weekdaysMin: 'dg_dl_dm_dc_dj_dv_ds'.split('_'),
  13310. weekdaysParseExact: true,
  13311. longDateFormat: {
  13312. LT: 'H:mm',
  13313. LTS: 'H:mm:ss',
  13314. L: 'DD/MM/YYYY',
  13315. LL: 'D MMMM [de] YYYY',
  13316. ll: 'D MMM YYYY',
  13317. LLL: 'D MMMM [de] YYYY [a] H:mm',
  13318. lll: 'D MMM YYYY, H:mm',
  13319. LLLL: 'dddd D MMMM [de] YYYY [a] H:mm',
  13320. llll: 'ddd D MMM YYYY, H:mm',
  13321. },
  13322. calendar: {
  13323. sameDay: '[uèi a] LT',
  13324. nextDay: '[deman a] LT',
  13325. nextWeek: 'dddd [a] LT',
  13326. lastDay: '[ièr a] LT',
  13327. lastWeek: 'dddd [passat a] LT',
  13328. sameElse: 'L',
  13329. },
  13330. relativeTime: {
  13331. future: "d'aquí %s",
  13332. past: 'fa %s',
  13333. s: 'unas segondas',
  13334. ss: '%d segondas',
  13335. m: 'una minuta',
  13336. mm: '%d minutas',
  13337. h: 'una ora',
  13338. hh: '%d oras',
  13339. d: 'un jorn',
  13340. dd: '%d jorns',
  13341. M: 'un mes',
  13342. MM: '%d meses',
  13343. y: 'un an',
  13344. yy: '%d ans',
  13345. },
  13346. dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
  13347. ordinal: function (number, period) {
  13348. var output =
  13349. number === 1
  13350. ? 'r'
  13351. : number === 2
  13352. ? 'n'
  13353. : number === 3
  13354. ? 'r'
  13355. : number === 4
  13356. ? 't'
  13357. : 'è';
  13358. if (period === 'w' || period === 'W') {
  13359. output = 'a';
  13360. }
  13361. return number + output;
  13362. },
  13363. week: {
  13364. dow: 1, // Monday is the first day of the week.
  13365. doy: 4,
  13366. },
  13367. });
  13368. //! moment.js locale configuration
  13369. var symbolMap$f = {
  13370. 1: '੧',
  13371. 2: '੨',
  13372. 3: '੩',
  13373. 4: '੪',
  13374. 5: '੫',
  13375. 6: '੬',
  13376. 7: '੭',
  13377. 8: '੮',
  13378. 9: '੯',
  13379. 0: '੦',
  13380. },
  13381. numberMap$e = {
  13382. '੧': '1',
  13383. '੨': '2',
  13384. '੩': '3',
  13385. '੪': '4',
  13386. '੫': '5',
  13387. '੬': '6',
  13388. '੭': '7',
  13389. '੮': '8',
  13390. '੯': '9',
  13391. '੦': '0',
  13392. };
  13393. hooks.defineLocale('pa-in', {
  13394. // There are months name as per Nanakshahi Calendar but they are not used as rigidly in modern Punjabi.
  13395. months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(
  13396. '_'
  13397. ),
  13398. monthsShort: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split(
  13399. '_'
  13400. ),
  13401. weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split(
  13402. '_'
  13403. ),
  13404. weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  13405. weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  13406. longDateFormat: {
  13407. LT: 'A h:mm ਵਜੇ',
  13408. LTS: 'A h:mm:ss ਵਜੇ',
  13409. L: 'DD/MM/YYYY',
  13410. LL: 'D MMMM YYYY',
  13411. LLL: 'D MMMM YYYY, A h:mm ਵਜੇ',
  13412. LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ',
  13413. },
  13414. calendar: {
  13415. sameDay: '[ਅਜ] LT',
  13416. nextDay: '[ਕਲ] LT',
  13417. nextWeek: '[ਅਗਲਾ] dddd, LT',
  13418. lastDay: '[ਕਲ] LT',
  13419. lastWeek: '[ਪਿਛਲੇ] dddd, LT',
  13420. sameElse: 'L',
  13421. },
  13422. relativeTime: {
  13423. future: '%s ਵਿੱਚ',
  13424. past: '%s ਪਿਛਲੇ',
  13425. s: 'ਕੁਝ ਸਕਿੰਟ',
  13426. ss: '%d ਸਕਿੰਟ',
  13427. m: 'ਇਕ ਮਿੰਟ',
  13428. mm: '%d ਮਿੰਟ',
  13429. h: 'ਇੱਕ ਘੰਟਾ',
  13430. hh: '%d ਘੰਟੇ',
  13431. d: 'ਇੱਕ ਦਿਨ',
  13432. dd: '%d ਦਿਨ',
  13433. M: 'ਇੱਕ ਮਹੀਨਾ',
  13434. MM: '%d ਮਹੀਨੇ',
  13435. y: 'ਇੱਕ ਸਾਲ',
  13436. yy: '%d ਸਾਲ',
  13437. },
  13438. preparse: function (string) {
  13439. return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {
  13440. return numberMap$e[match];
  13441. });
  13442. },
  13443. postformat: function (string) {
  13444. return string.replace(/\d/g, function (match) {
  13445. return symbolMap$f[match];
  13446. });
  13447. },
  13448. // Punjabi notation for meridiems are quite fuzzy in practice. While there exists
  13449. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
  13450. meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
  13451. meridiemHour: function (hour, meridiem) {
  13452. if (hour === 12) {
  13453. hour = 0;
  13454. }
  13455. if (meridiem === 'ਰਾਤ') {
  13456. return hour < 4 ? hour : hour + 12;
  13457. } else if (meridiem === 'ਸਵੇਰ') {
  13458. return hour;
  13459. } else if (meridiem === 'ਦੁਪਹਿਰ') {
  13460. return hour >= 10 ? hour : hour + 12;
  13461. } else if (meridiem === 'ਸ਼ਾਮ') {
  13462. return hour + 12;
  13463. }
  13464. },
  13465. meridiem: function (hour, minute, isLower) {
  13466. if (hour < 4) {
  13467. return 'ਰਾਤ';
  13468. } else if (hour < 10) {
  13469. return 'ਸਵੇਰ';
  13470. } else if (hour < 17) {
  13471. return 'ਦੁਪਹਿਰ';
  13472. } else if (hour < 20) {
  13473. return 'ਸ਼ਾਮ';
  13474. } else {
  13475. return 'ਰਾਤ';
  13476. }
  13477. },
  13478. week: {
  13479. dow: 0, // Sunday is the first day of the week.
  13480. doy: 6, // The week that contains Jan 6th is the first week of the year.
  13481. },
  13482. });
  13483. //! moment.js locale configuration
  13484. var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split(
  13485. '_'
  13486. ),
  13487. monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split(
  13488. '_'
  13489. ),
  13490. monthsParse$9 = [
  13491. /^sty/i,
  13492. /^lut/i,
  13493. /^mar/i,
  13494. /^kwi/i,
  13495. /^maj/i,
  13496. /^cze/i,
  13497. /^lip/i,
  13498. /^sie/i,
  13499. /^wrz/i,
  13500. /^paź/i,
  13501. /^lis/i,
  13502. /^gru/i,
  13503. ];
  13504. function plural$3(n) {
  13505. return n % 10 < 5 && n % 10 > 1 && ~~(n / 10) % 10 !== 1;
  13506. }
  13507. function translate$8(number, withoutSuffix, key) {
  13508. var result = number + ' ';
  13509. switch (key) {
  13510. case 'ss':
  13511. return result + (plural$3(number) ? 'sekundy' : 'sekund');
  13512. case 'm':
  13513. return withoutSuffix ? 'minuta' : 'minutę';
  13514. case 'mm':
  13515. return result + (plural$3(number) ? 'minuty' : 'minut');
  13516. case 'h':
  13517. return withoutSuffix ? 'godzina' : 'godzinę';
  13518. case 'hh':
  13519. return result + (plural$3(number) ? 'godziny' : 'godzin');
  13520. case 'ww':
  13521. return result + (plural$3(number) ? 'tygodnie' : 'tygodni');
  13522. case 'MM':
  13523. return result + (plural$3(number) ? 'miesiące' : 'miesięcy');
  13524. case 'yy':
  13525. return result + (plural$3(number) ? 'lata' : 'lat');
  13526. }
  13527. }
  13528. hooks.defineLocale('pl', {
  13529. months: function (momentToFormat, format) {
  13530. if (!momentToFormat) {
  13531. return monthsNominative;
  13532. } else if (/D MMMM/.test(format)) {
  13533. return monthsSubjective[momentToFormat.month()];
  13534. } else {
  13535. return monthsNominative[momentToFormat.month()];
  13536. }
  13537. },
  13538. monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
  13539. monthsParse: monthsParse$9,
  13540. longMonthsParse: monthsParse$9,
  13541. shortMonthsParse: monthsParse$9,
  13542. weekdays: 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split(
  13543. '_'
  13544. ),
  13545. weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),
  13546. weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
  13547. longDateFormat: {
  13548. LT: 'HH:mm',
  13549. LTS: 'HH:mm:ss',
  13550. L: 'DD.MM.YYYY',
  13551. LL: 'D MMMM YYYY',
  13552. LLL: 'D MMMM YYYY HH:mm',
  13553. LLLL: 'dddd, D MMMM YYYY HH:mm',
  13554. },
  13555. calendar: {
  13556. sameDay: '[Dziś o] LT',
  13557. nextDay: '[Jutro o] LT',
  13558. nextWeek: function () {
  13559. switch (this.day()) {
  13560. case 0:
  13561. return '[W niedzielę o] LT';
  13562. case 2:
  13563. return '[We wtorek o] LT';
  13564. case 3:
  13565. return '[W środę o] LT';
  13566. case 6:
  13567. return '[W sobotę o] LT';
  13568. default:
  13569. return '[W] dddd [o] LT';
  13570. }
  13571. },
  13572. lastDay: '[Wczoraj o] LT',
  13573. lastWeek: function () {
  13574. switch (this.day()) {
  13575. case 0:
  13576. return '[W zeszłą niedzielę o] LT';
  13577. case 3:
  13578. return '[W zeszłą środę o] LT';
  13579. case 6:
  13580. return '[W zeszłą sobotę o] LT';
  13581. default:
  13582. return '[W zeszły] dddd [o] LT';
  13583. }
  13584. },
  13585. sameElse: 'L',
  13586. },
  13587. relativeTime: {
  13588. future: 'za %s',
  13589. past: '%s temu',
  13590. s: 'kilka sekund',
  13591. ss: translate$8,
  13592. m: translate$8,
  13593. mm: translate$8,
  13594. h: translate$8,
  13595. hh: translate$8,
  13596. d: '1 dzień',
  13597. dd: '%d dni',
  13598. w: 'tydzień',
  13599. ww: translate$8,
  13600. M: 'miesiąc',
  13601. MM: translate$8,
  13602. y: 'rok',
  13603. yy: translate$8,
  13604. },
  13605. dayOfMonthOrdinalParse: /\d{1,2}\./,
  13606. ordinal: '%d.',
  13607. week: {
  13608. dow: 1, // Monday is the first day of the week.
  13609. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13610. },
  13611. });
  13612. //! moment.js locale configuration
  13613. hooks.defineLocale('pt-br', {
  13614. months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(
  13615. '_'
  13616. ),
  13617. monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
  13618. weekdays: 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split(
  13619. '_'
  13620. ),
  13621. weekdaysShort: 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),
  13622. weekdaysMin: 'do_2ª_3ª_4ª_5ª_6ª_sá'.split('_'),
  13623. weekdaysParseExact: true,
  13624. longDateFormat: {
  13625. LT: 'HH:mm',
  13626. LTS: 'HH:mm:ss',
  13627. L: 'DD/MM/YYYY',
  13628. LL: 'D [de] MMMM [de] YYYY',
  13629. LLL: 'D [de] MMMM [de] YYYY [às] HH:mm',
  13630. LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm',
  13631. },
  13632. calendar: {
  13633. sameDay: '[Hoje às] LT',
  13634. nextDay: '[Amanhã às] LT',
  13635. nextWeek: 'dddd [às] LT',
  13636. lastDay: '[Ontem às] LT',
  13637. lastWeek: function () {
  13638. return this.day() === 0 || this.day() === 6
  13639. ? '[Último] dddd [às] LT' // Saturday + Sunday
  13640. : '[Última] dddd [às] LT'; // Monday - Friday
  13641. },
  13642. sameElse: 'L',
  13643. },
  13644. relativeTime: {
  13645. future: 'em %s',
  13646. past: 'há %s',
  13647. s: 'poucos segundos',
  13648. ss: '%d segundos',
  13649. m: 'um minuto',
  13650. mm: '%d minutos',
  13651. h: 'uma hora',
  13652. hh: '%d horas',
  13653. d: 'um dia',
  13654. dd: '%d dias',
  13655. M: 'um mês',
  13656. MM: '%d meses',
  13657. y: 'um ano',
  13658. yy: '%d anos',
  13659. },
  13660. dayOfMonthOrdinalParse: /\d{1,2}º/,
  13661. ordinal: '%dº',
  13662. invalidDate: 'Data inválida',
  13663. });
  13664. //! moment.js locale configuration
  13665. hooks.defineLocale('pt', {
  13666. months: 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split(
  13667. '_'
  13668. ),
  13669. monthsShort: 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
  13670. weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split(
  13671. '_'
  13672. ),
  13673. weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
  13674. weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
  13675. weekdaysParseExact: true,
  13676. longDateFormat: {
  13677. LT: 'HH:mm',
  13678. LTS: 'HH:mm:ss',
  13679. L: 'DD/MM/YYYY',
  13680. LL: 'D [de] MMMM [de] YYYY',
  13681. LLL: 'D [de] MMMM [de] YYYY HH:mm',
  13682. LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm',
  13683. },
  13684. calendar: {
  13685. sameDay: '[Hoje às] LT',
  13686. nextDay: '[Amanhã às] LT',
  13687. nextWeek: 'dddd [às] LT',
  13688. lastDay: '[Ontem às] LT',
  13689. lastWeek: function () {
  13690. return this.day() === 0 || this.day() === 6
  13691. ? '[Último] dddd [às] LT' // Saturday + Sunday
  13692. : '[Última] dddd [às] LT'; // Monday - Friday
  13693. },
  13694. sameElse: 'L',
  13695. },
  13696. relativeTime: {
  13697. future: 'em %s',
  13698. past: 'há %s',
  13699. s: 'segundos',
  13700. ss: '%d segundos',
  13701. m: 'um minuto',
  13702. mm: '%d minutos',
  13703. h: 'uma hora',
  13704. hh: '%d horas',
  13705. d: 'um dia',
  13706. dd: '%d dias',
  13707. w: 'uma semana',
  13708. ww: '%d semanas',
  13709. M: 'um mês',
  13710. MM: '%d meses',
  13711. y: 'um ano',
  13712. yy: '%d anos',
  13713. },
  13714. dayOfMonthOrdinalParse: /\d{1,2}º/,
  13715. ordinal: '%dº',
  13716. week: {
  13717. dow: 1, // Monday is the first day of the week.
  13718. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13719. },
  13720. });
  13721. //! moment.js locale configuration
  13722. function relativeTimeWithPlural$2(number, withoutSuffix, key) {
  13723. var format = {
  13724. ss: 'secunde',
  13725. mm: 'minute',
  13726. hh: 'ore',
  13727. dd: 'zile',
  13728. ww: 'săptămâni',
  13729. MM: 'luni',
  13730. yy: 'ani',
  13731. },
  13732. separator = ' ';
  13733. if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
  13734. separator = ' de ';
  13735. }
  13736. return number + separator + format[key];
  13737. }
  13738. hooks.defineLocale('ro', {
  13739. months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split(
  13740. '_'
  13741. ),
  13742. monthsShort: 'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split(
  13743. '_'
  13744. ),
  13745. monthsParseExact: true,
  13746. weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
  13747. weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
  13748. weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
  13749. longDateFormat: {
  13750. LT: 'H:mm',
  13751. LTS: 'H:mm:ss',
  13752. L: 'DD.MM.YYYY',
  13753. LL: 'D MMMM YYYY',
  13754. LLL: 'D MMMM YYYY H:mm',
  13755. LLLL: 'dddd, D MMMM YYYY H:mm',
  13756. },
  13757. calendar: {
  13758. sameDay: '[azi la] LT',
  13759. nextDay: '[mâine la] LT',
  13760. nextWeek: 'dddd [la] LT',
  13761. lastDay: '[ieri la] LT',
  13762. lastWeek: '[fosta] dddd [la] LT',
  13763. sameElse: 'L',
  13764. },
  13765. relativeTime: {
  13766. future: 'peste %s',
  13767. past: '%s în urmă',
  13768. s: 'câteva secunde',
  13769. ss: relativeTimeWithPlural$2,
  13770. m: 'un minut',
  13771. mm: relativeTimeWithPlural$2,
  13772. h: 'o oră',
  13773. hh: relativeTimeWithPlural$2,
  13774. d: 'o zi',
  13775. dd: relativeTimeWithPlural$2,
  13776. w: 'o săptămână',
  13777. ww: relativeTimeWithPlural$2,
  13778. M: 'o lună',
  13779. MM: relativeTimeWithPlural$2,
  13780. y: 'un an',
  13781. yy: relativeTimeWithPlural$2,
  13782. },
  13783. week: {
  13784. dow: 1, // Monday is the first day of the week.
  13785. doy: 7, // The week that contains Jan 7th is the first week of the year.
  13786. },
  13787. });
  13788. //! moment.js locale configuration
  13789. function plural$4(word, num) {
  13790. var forms = word.split('_');
  13791. return num % 10 === 1 && num % 100 !== 11
  13792. ? forms[0]
  13793. : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
  13794. ? forms[1]
  13795. : forms[2];
  13796. }
  13797. function relativeTimeWithPlural$3(number, withoutSuffix, key) {
  13798. var format = {
  13799. ss: withoutSuffix ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд',
  13800. mm: withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
  13801. hh: 'час_часа_часов',
  13802. dd: 'день_дня_дней',
  13803. ww: 'неделя_недели_недель',
  13804. MM: 'месяц_месяца_месяцев',
  13805. yy: 'год_года_лет',
  13806. };
  13807. if (key === 'm') {
  13808. return withoutSuffix ? 'минута' : 'минуту';
  13809. } else {
  13810. return number + ' ' + plural$4(format[key], +number);
  13811. }
  13812. }
  13813. var monthsParse$a = [
  13814. /^янв/i,
  13815. /^фев/i,
  13816. /^мар/i,
  13817. /^апр/i,
  13818. /^ма[йя]/i,
  13819. /^июн/i,
  13820. /^июл/i,
  13821. /^авг/i,
  13822. /^сен/i,
  13823. /^окт/i,
  13824. /^ноя/i,
  13825. /^дек/i,
  13826. ];
  13827. // http://new.gramota.ru/spravka/rules/139-prop : § 103
  13828. // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
  13829. // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
  13830. hooks.defineLocale('ru', {
  13831. months: {
  13832. format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split(
  13833. '_'
  13834. ),
  13835. standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split(
  13836. '_'
  13837. ),
  13838. },
  13839. monthsShort: {
  13840. // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку?
  13841. format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split(
  13842. '_'
  13843. ),
  13844. standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split(
  13845. '_'
  13846. ),
  13847. },
  13848. weekdays: {
  13849. standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split(
  13850. '_'
  13851. ),
  13852. format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split(
  13853. '_'
  13854. ),
  13855. isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/,
  13856. },
  13857. weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  13858. weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  13859. monthsParse: monthsParse$a,
  13860. longMonthsParse: monthsParse$a,
  13861. shortMonthsParse: monthsParse$a,
  13862. // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
  13863. monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  13864. // копия предыдущего
  13865. monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  13866. // полные названия с падежами
  13867. monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,
  13868. // Выражение, которое соответствует только сокращённым формам
  13869. monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
  13870. longDateFormat: {
  13871. LT: 'H:mm',
  13872. LTS: 'H:mm:ss',
  13873. L: 'DD.MM.YYYY',
  13874. LL: 'D MMMM YYYY г.',
  13875. LLL: 'D MMMM YYYY г., H:mm',
  13876. LLLL: 'dddd, D MMMM YYYY г., H:mm',
  13877. },
  13878. calendar: {
  13879. sameDay: '[Сегодня, в] LT',
  13880. nextDay: '[Завтра, в] LT',
  13881. lastDay: '[Вчера, в] LT',
  13882. nextWeek: function (now) {
  13883. if (now.week() !== this.week()) {
  13884. switch (this.day()) {
  13885. case 0:
  13886. return '[В следующее] dddd, [в] LT';
  13887. case 1:
  13888. case 2:
  13889. case 4:
  13890. return '[В следующий] dddd, [в] LT';
  13891. case 3:
  13892. case 5:
  13893. case 6:
  13894. return '[В следующую] dddd, [в] LT';
  13895. }
  13896. } else {
  13897. if (this.day() === 2) {
  13898. return '[Во] dddd, [в] LT';
  13899. } else {
  13900. return '[В] dddd, [в] LT';
  13901. }
  13902. }
  13903. },
  13904. lastWeek: function (now) {
  13905. if (now.week() !== this.week()) {
  13906. switch (this.day()) {
  13907. case 0:
  13908. return '[В прошлое] dddd, [в] LT';
  13909. case 1:
  13910. case 2:
  13911. case 4:
  13912. return '[В прошлый] dddd, [в] LT';
  13913. case 3:
  13914. case 5:
  13915. case 6:
  13916. return '[В прошлую] dddd, [в] LT';
  13917. }
  13918. } else {
  13919. if (this.day() === 2) {
  13920. return '[Во] dddd, [в] LT';
  13921. } else {
  13922. return '[В] dddd, [в] LT';
  13923. }
  13924. }
  13925. },
  13926. sameElse: 'L',
  13927. },
  13928. relativeTime: {
  13929. future: 'через %s',
  13930. past: '%s назад',
  13931. s: 'несколько секунд',
  13932. ss: relativeTimeWithPlural$3,
  13933. m: relativeTimeWithPlural$3,
  13934. mm: relativeTimeWithPlural$3,
  13935. h: 'час',
  13936. hh: relativeTimeWithPlural$3,
  13937. d: 'день',
  13938. dd: relativeTimeWithPlural$3,
  13939. w: 'неделя',
  13940. ww: relativeTimeWithPlural$3,
  13941. M: 'месяц',
  13942. MM: relativeTimeWithPlural$3,
  13943. y: 'год',
  13944. yy: relativeTimeWithPlural$3,
  13945. },
  13946. meridiemParse: /ночи|утра|дня|вечера/i,
  13947. isPM: function (input) {
  13948. return /^(дня|вечера)$/.test(input);
  13949. },
  13950. meridiem: function (hour, minute, isLower) {
  13951. if (hour < 4) {
  13952. return 'ночи';
  13953. } else if (hour < 12) {
  13954. return 'утра';
  13955. } else if (hour < 17) {
  13956. return 'дня';
  13957. } else {
  13958. return 'вечера';
  13959. }
  13960. },
  13961. dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/,
  13962. ordinal: function (number, period) {
  13963. switch (period) {
  13964. case 'M':
  13965. case 'd':
  13966. case 'DDD':
  13967. return number + '-й';
  13968. case 'D':
  13969. return number + '-го';
  13970. case 'w':
  13971. case 'W':
  13972. return number + '-я';
  13973. default:
  13974. return number;
  13975. }
  13976. },
  13977. week: {
  13978. dow: 1, // Monday is the first day of the week.
  13979. doy: 4, // The week that contains Jan 4th is the first week of the year.
  13980. },
  13981. });
  13982. //! moment.js locale configuration
  13983. var months$9 = [
  13984. 'جنوري',
  13985. 'فيبروري',
  13986. 'مارچ',
  13987. 'اپريل',
  13988. 'مئي',
  13989. 'جون',
  13990. 'جولاءِ',
  13991. 'آگسٽ',
  13992. 'سيپٽمبر',
  13993. 'آڪٽوبر',
  13994. 'نومبر',
  13995. 'ڊسمبر',
  13996. ],
  13997. days$1 = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر'];
  13998. hooks.defineLocale('sd', {
  13999. months: months$9,
  14000. monthsShort: months$9,
  14001. weekdays: days$1,
  14002. weekdaysShort: days$1,
  14003. weekdaysMin: days$1,
  14004. longDateFormat: {
  14005. LT: 'HH:mm',
  14006. LTS: 'HH:mm:ss',
  14007. L: 'DD/MM/YYYY',
  14008. LL: 'D MMMM YYYY',
  14009. LLL: 'D MMMM YYYY HH:mm',
  14010. LLLL: 'dddd، D MMMM YYYY HH:mm',
  14011. },
  14012. meridiemParse: /صبح|شام/,
  14013. isPM: function (input) {
  14014. return 'شام' === input;
  14015. },
  14016. meridiem: function (hour, minute, isLower) {
  14017. if (hour < 12) {
  14018. return 'صبح';
  14019. }
  14020. return 'شام';
  14021. },
  14022. calendar: {
  14023. sameDay: '[اڄ] LT',
  14024. nextDay: '[سڀاڻي] LT',
  14025. nextWeek: 'dddd [اڳين هفتي تي] LT',
  14026. lastDay: '[ڪالهه] LT',
  14027. lastWeek: '[گزريل هفتي] dddd [تي] LT',
  14028. sameElse: 'L',
  14029. },
  14030. relativeTime: {
  14031. future: '%s پوء',
  14032. past: '%s اڳ',
  14033. s: 'چند سيڪنڊ',
  14034. ss: '%d سيڪنڊ',
  14035. m: 'هڪ منٽ',
  14036. mm: '%d منٽ',
  14037. h: 'هڪ ڪلاڪ',
  14038. hh: '%d ڪلاڪ',
  14039. d: 'هڪ ڏينهن',
  14040. dd: '%d ڏينهن',
  14041. M: 'هڪ مهينو',
  14042. MM: '%d مهينا',
  14043. y: 'هڪ سال',
  14044. yy: '%d سال',
  14045. },
  14046. preparse: function (string) {
  14047. return string.replace(/،/g, ',');
  14048. },
  14049. postformat: function (string) {
  14050. return string.replace(/,/g, '،');
  14051. },
  14052. week: {
  14053. dow: 1, // Monday is the first day of the week.
  14054. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14055. },
  14056. });
  14057. //! moment.js locale configuration
  14058. hooks.defineLocale('se', {
  14059. 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(
  14060. '_'
  14061. ),
  14062. monthsShort: 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split(
  14063. '_'
  14064. ),
  14065. weekdays: 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split(
  14066. '_'
  14067. ),
  14068. weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
  14069. weekdaysMin: 's_v_m_g_d_b_L'.split('_'),
  14070. longDateFormat: {
  14071. LT: 'HH:mm',
  14072. LTS: 'HH:mm:ss',
  14073. L: 'DD.MM.YYYY',
  14074. LL: 'MMMM D. [b.] YYYY',
  14075. LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm',
  14076. LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm',
  14077. },
  14078. calendar: {
  14079. sameDay: '[otne ti] LT',
  14080. nextDay: '[ihttin ti] LT',
  14081. nextWeek: 'dddd [ti] LT',
  14082. lastDay: '[ikte ti] LT',
  14083. lastWeek: '[ovddit] dddd [ti] LT',
  14084. sameElse: 'L',
  14085. },
  14086. relativeTime: {
  14087. future: '%s geažes',
  14088. past: 'maŋit %s',
  14089. s: 'moadde sekunddat',
  14090. ss: '%d sekunddat',
  14091. m: 'okta minuhta',
  14092. mm: '%d minuhtat',
  14093. h: 'okta diimmu',
  14094. hh: '%d diimmut',
  14095. d: 'okta beaivi',
  14096. dd: '%d beaivvit',
  14097. M: 'okta mánnu',
  14098. MM: '%d mánut',
  14099. y: 'okta jahki',
  14100. yy: '%d jagit',
  14101. },
  14102. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14103. ordinal: '%d.',
  14104. week: {
  14105. dow: 1, // Monday is the first day of the week.
  14106. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14107. },
  14108. });
  14109. //! moment.js locale configuration
  14110. /*jshint -W100*/
  14111. hooks.defineLocale('si', {
  14112. months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split(
  14113. '_'
  14114. ),
  14115. monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split(
  14116. '_'
  14117. ),
  14118. weekdays: 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split(
  14119. '_'
  14120. ),
  14121. weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
  14122. weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
  14123. weekdaysParseExact: true,
  14124. longDateFormat: {
  14125. LT: 'a h:mm',
  14126. LTS: 'a h:mm:ss',
  14127. L: 'YYYY/MM/DD',
  14128. LL: 'YYYY MMMM D',
  14129. LLL: 'YYYY MMMM D, a h:mm',
  14130. LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss',
  14131. },
  14132. calendar: {
  14133. sameDay: '[අද] LT[ට]',
  14134. nextDay: '[හෙට] LT[ට]',
  14135. nextWeek: 'dddd LT[ට]',
  14136. lastDay: '[ඊයේ] LT[ට]',
  14137. lastWeek: '[පසුගිය] dddd LT[ට]',
  14138. sameElse: 'L',
  14139. },
  14140. relativeTime: {
  14141. future: '%sකින්',
  14142. past: '%sකට පෙර',
  14143. s: 'තත්පර කිහිපය',
  14144. ss: 'තත්පර %d',
  14145. m: 'මිනිත්තුව',
  14146. mm: 'මිනිත්තු %d',
  14147. h: 'පැය',
  14148. hh: 'පැය %d',
  14149. d: 'දිනය',
  14150. dd: 'දින %d',
  14151. M: 'මාසය',
  14152. MM: 'මාස %d',
  14153. y: 'වසර',
  14154. yy: 'වසර %d',
  14155. },
  14156. dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
  14157. ordinal: function (number) {
  14158. return number + ' වැනි';
  14159. },
  14160. meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
  14161. isPM: function (input) {
  14162. return input === 'ප.ව.' || input === 'පස් වරු';
  14163. },
  14164. meridiem: function (hours, minutes, isLower) {
  14165. if (hours > 11) {
  14166. return isLower ? 'ප.ව.' : 'පස් වරු';
  14167. } else {
  14168. return isLower ? 'පෙ.ව.' : 'පෙර වරු';
  14169. }
  14170. },
  14171. });
  14172. //! moment.js locale configuration
  14173. var months$a = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split(
  14174. '_'
  14175. ),
  14176. monthsShort$7 = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
  14177. function plural$5(n) {
  14178. return n > 1 && n < 5;
  14179. }
  14180. function translate$9(number, withoutSuffix, key, isFuture) {
  14181. var result = number + ' ';
  14182. switch (key) {
  14183. case 's': // a few seconds / in a few seconds / a few seconds ago
  14184. return withoutSuffix || isFuture ? 'pár sekúnd' : 'pár sekundami';
  14185. case 'ss': // 9 seconds / in 9 seconds / 9 seconds ago
  14186. if (withoutSuffix || isFuture) {
  14187. return result + (plural$5(number) ? 'sekundy' : 'sekúnd');
  14188. } else {
  14189. return result + 'sekundami';
  14190. }
  14191. case 'm': // a minute / in a minute / a minute ago
  14192. return withoutSuffix ? 'minúta' : isFuture ? 'minútu' : 'minútou';
  14193. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  14194. if (withoutSuffix || isFuture) {
  14195. return result + (plural$5(number) ? 'minúty' : 'minút');
  14196. } else {
  14197. return result + 'minútami';
  14198. }
  14199. case 'h': // an hour / in an hour / an hour ago
  14200. return withoutSuffix ? 'hodina' : isFuture ? 'hodinu' : 'hodinou';
  14201. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  14202. if (withoutSuffix || isFuture) {
  14203. return result + (plural$5(number) ? 'hodiny' : 'hodín');
  14204. } else {
  14205. return result + 'hodinami';
  14206. }
  14207. case 'd': // a day / in a day / a day ago
  14208. return withoutSuffix || isFuture ? 'deň' : 'dňom';
  14209. case 'dd': // 9 days / in 9 days / 9 days ago
  14210. if (withoutSuffix || isFuture) {
  14211. return result + (plural$5(number) ? 'dni' : 'dní');
  14212. } else {
  14213. return result + 'dňami';
  14214. }
  14215. case 'M': // a month / in a month / a month ago
  14216. return withoutSuffix || isFuture ? 'mesiac' : 'mesiacom';
  14217. case 'MM': // 9 months / in 9 months / 9 months ago
  14218. if (withoutSuffix || isFuture) {
  14219. return result + (plural$5(number) ? 'mesiace' : 'mesiacov');
  14220. } else {
  14221. return result + 'mesiacmi';
  14222. }
  14223. case 'y': // a year / in a year / a year ago
  14224. return withoutSuffix || isFuture ? 'rok' : 'rokom';
  14225. case 'yy': // 9 years / in 9 years / 9 years ago
  14226. if (withoutSuffix || isFuture) {
  14227. return result + (plural$5(number) ? 'roky' : 'rokov');
  14228. } else {
  14229. return result + 'rokmi';
  14230. }
  14231. }
  14232. }
  14233. hooks.defineLocale('sk', {
  14234. months: months$a,
  14235. monthsShort: monthsShort$7,
  14236. weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
  14237. weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'),
  14238. weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'),
  14239. longDateFormat: {
  14240. LT: 'H:mm',
  14241. LTS: 'H:mm:ss',
  14242. L: 'DD.MM.YYYY',
  14243. LL: 'D. MMMM YYYY',
  14244. LLL: 'D. MMMM YYYY H:mm',
  14245. LLLL: 'dddd D. MMMM YYYY H:mm',
  14246. },
  14247. calendar: {
  14248. sameDay: '[dnes o] LT',
  14249. nextDay: '[zajtra o] LT',
  14250. nextWeek: function () {
  14251. switch (this.day()) {
  14252. case 0:
  14253. return '[v nedeľu o] LT';
  14254. case 1:
  14255. case 2:
  14256. return '[v] dddd [o] LT';
  14257. case 3:
  14258. return '[v stredu o] LT';
  14259. case 4:
  14260. return '[vo štvrtok o] LT';
  14261. case 5:
  14262. return '[v piatok o] LT';
  14263. case 6:
  14264. return '[v sobotu o] LT';
  14265. }
  14266. },
  14267. lastDay: '[včera o] LT',
  14268. lastWeek: function () {
  14269. switch (this.day()) {
  14270. case 0:
  14271. return '[minulú nedeľu o] LT';
  14272. case 1:
  14273. case 2:
  14274. return '[minulý] dddd [o] LT';
  14275. case 3:
  14276. return '[minulú stredu o] LT';
  14277. case 4:
  14278. case 5:
  14279. return '[minulý] dddd [o] LT';
  14280. case 6:
  14281. return '[minulú sobotu o] LT';
  14282. }
  14283. },
  14284. sameElse: 'L',
  14285. },
  14286. relativeTime: {
  14287. future: 'za %s',
  14288. past: 'pred %s',
  14289. s: translate$9,
  14290. ss: translate$9,
  14291. m: translate$9,
  14292. mm: translate$9,
  14293. h: translate$9,
  14294. hh: translate$9,
  14295. d: translate$9,
  14296. dd: translate$9,
  14297. M: translate$9,
  14298. MM: translate$9,
  14299. y: translate$9,
  14300. yy: translate$9,
  14301. },
  14302. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14303. ordinal: '%d.',
  14304. week: {
  14305. dow: 1, // Monday is the first day of the week.
  14306. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14307. },
  14308. });
  14309. //! moment.js locale configuration
  14310. function processRelativeTime$7(number, withoutSuffix, key, isFuture) {
  14311. var result = number + ' ';
  14312. switch (key) {
  14313. case 's':
  14314. return withoutSuffix || isFuture
  14315. ? 'nekaj sekund'
  14316. : 'nekaj sekundami';
  14317. case 'ss':
  14318. if (number === 1) {
  14319. result += withoutSuffix ? 'sekundo' : 'sekundi';
  14320. } else if (number === 2) {
  14321. result += withoutSuffix || isFuture ? 'sekundi' : 'sekundah';
  14322. } else if (number < 5) {
  14323. result += withoutSuffix || isFuture ? 'sekunde' : 'sekundah';
  14324. } else {
  14325. result += 'sekund';
  14326. }
  14327. return result;
  14328. case 'm':
  14329. return withoutSuffix ? 'ena minuta' : 'eno minuto';
  14330. case 'mm':
  14331. if (number === 1) {
  14332. result += withoutSuffix ? 'minuta' : 'minuto';
  14333. } else if (number === 2) {
  14334. result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
  14335. } else if (number < 5) {
  14336. result += withoutSuffix || isFuture ? 'minute' : 'minutami';
  14337. } else {
  14338. result += withoutSuffix || isFuture ? 'minut' : 'minutami';
  14339. }
  14340. return result;
  14341. case 'h':
  14342. return withoutSuffix ? 'ena ura' : 'eno uro';
  14343. case 'hh':
  14344. if (number === 1) {
  14345. result += withoutSuffix ? 'ura' : 'uro';
  14346. } else if (number === 2) {
  14347. result += withoutSuffix || isFuture ? 'uri' : 'urama';
  14348. } else if (number < 5) {
  14349. result += withoutSuffix || isFuture ? 'ure' : 'urami';
  14350. } else {
  14351. result += withoutSuffix || isFuture ? 'ur' : 'urami';
  14352. }
  14353. return result;
  14354. case 'd':
  14355. return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
  14356. case 'dd':
  14357. if (number === 1) {
  14358. result += withoutSuffix || isFuture ? 'dan' : 'dnem';
  14359. } else if (number === 2) {
  14360. result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
  14361. } else {
  14362. result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
  14363. }
  14364. return result;
  14365. case 'M':
  14366. return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
  14367. case 'MM':
  14368. if (number === 1) {
  14369. result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
  14370. } else if (number === 2) {
  14371. result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
  14372. } else if (number < 5) {
  14373. result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
  14374. } else {
  14375. result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
  14376. }
  14377. return result;
  14378. case 'y':
  14379. return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
  14380. case 'yy':
  14381. if (number === 1) {
  14382. result += withoutSuffix || isFuture ? 'leto' : 'letom';
  14383. } else if (number === 2) {
  14384. result += withoutSuffix || isFuture ? 'leti' : 'letoma';
  14385. } else if (number < 5) {
  14386. result += withoutSuffix || isFuture ? 'leta' : 'leti';
  14387. } else {
  14388. result += withoutSuffix || isFuture ? 'let' : 'leti';
  14389. }
  14390. return result;
  14391. }
  14392. }
  14393. hooks.defineLocale('sl', {
  14394. months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split(
  14395. '_'
  14396. ),
  14397. monthsShort: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split(
  14398. '_'
  14399. ),
  14400. monthsParseExact: true,
  14401. weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
  14402. weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
  14403. weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'),
  14404. weekdaysParseExact: true,
  14405. longDateFormat: {
  14406. LT: 'H:mm',
  14407. LTS: 'H:mm:ss',
  14408. L: 'DD. MM. YYYY',
  14409. LL: 'D. MMMM YYYY',
  14410. LLL: 'D. MMMM YYYY H:mm',
  14411. LLLL: 'dddd, D. MMMM YYYY H:mm',
  14412. },
  14413. calendar: {
  14414. sameDay: '[danes ob] LT',
  14415. nextDay: '[jutri ob] LT',
  14416. nextWeek: function () {
  14417. switch (this.day()) {
  14418. case 0:
  14419. return '[v] [nedeljo] [ob] LT';
  14420. case 3:
  14421. return '[v] [sredo] [ob] LT';
  14422. case 6:
  14423. return '[v] [soboto] [ob] LT';
  14424. case 1:
  14425. case 2:
  14426. case 4:
  14427. case 5:
  14428. return '[v] dddd [ob] LT';
  14429. }
  14430. },
  14431. lastDay: '[včeraj ob] LT',
  14432. lastWeek: function () {
  14433. switch (this.day()) {
  14434. case 0:
  14435. return '[prejšnjo] [nedeljo] [ob] LT';
  14436. case 3:
  14437. return '[prejšnjo] [sredo] [ob] LT';
  14438. case 6:
  14439. return '[prejšnjo] [soboto] [ob] LT';
  14440. case 1:
  14441. case 2:
  14442. case 4:
  14443. case 5:
  14444. return '[prejšnji] dddd [ob] LT';
  14445. }
  14446. },
  14447. sameElse: 'L',
  14448. },
  14449. relativeTime: {
  14450. future: 'čez %s',
  14451. past: 'pred %s',
  14452. s: processRelativeTime$7,
  14453. ss: processRelativeTime$7,
  14454. m: processRelativeTime$7,
  14455. mm: processRelativeTime$7,
  14456. h: processRelativeTime$7,
  14457. hh: processRelativeTime$7,
  14458. d: processRelativeTime$7,
  14459. dd: processRelativeTime$7,
  14460. M: processRelativeTime$7,
  14461. MM: processRelativeTime$7,
  14462. y: processRelativeTime$7,
  14463. yy: processRelativeTime$7,
  14464. },
  14465. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14466. ordinal: '%d.',
  14467. week: {
  14468. dow: 1, // Monday is the first day of the week.
  14469. doy: 7, // The week that contains Jan 7th is the first week of the year.
  14470. },
  14471. });
  14472. //! moment.js locale configuration
  14473. hooks.defineLocale('sq', {
  14474. months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split(
  14475. '_'
  14476. ),
  14477. monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
  14478. weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split(
  14479. '_'
  14480. ),
  14481. weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
  14482. weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'),
  14483. weekdaysParseExact: true,
  14484. meridiemParse: /PD|MD/,
  14485. isPM: function (input) {
  14486. return input.charAt(0) === 'M';
  14487. },
  14488. meridiem: function (hours, minutes, isLower) {
  14489. return hours < 12 ? 'PD' : 'MD';
  14490. },
  14491. longDateFormat: {
  14492. LT: 'HH:mm',
  14493. LTS: 'HH:mm:ss',
  14494. L: 'DD/MM/YYYY',
  14495. LL: 'D MMMM YYYY',
  14496. LLL: 'D MMMM YYYY HH:mm',
  14497. LLLL: 'dddd, D MMMM YYYY HH:mm',
  14498. },
  14499. calendar: {
  14500. sameDay: '[Sot në] LT',
  14501. nextDay: '[Nesër në] LT',
  14502. nextWeek: 'dddd [në] LT',
  14503. lastDay: '[Dje në] LT',
  14504. lastWeek: 'dddd [e kaluar në] LT',
  14505. sameElse: 'L',
  14506. },
  14507. relativeTime: {
  14508. future: 'në %s',
  14509. past: '%s më parë',
  14510. s: 'disa sekonda',
  14511. ss: '%d sekonda',
  14512. m: 'një minutë',
  14513. mm: '%d minuta',
  14514. h: 'një orë',
  14515. hh: '%d orë',
  14516. d: 'një ditë',
  14517. dd: '%d ditë',
  14518. M: 'një muaj',
  14519. MM: '%d muaj',
  14520. y: 'një vit',
  14521. yy: '%d vite',
  14522. },
  14523. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14524. ordinal: '%d.',
  14525. week: {
  14526. dow: 1, // Monday is the first day of the week.
  14527. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14528. },
  14529. });
  14530. //! moment.js locale configuration
  14531. var translator$1 = {
  14532. words: {
  14533. //Different grammatical cases
  14534. ss: ['секунда', 'секунде', 'секунди'],
  14535. m: ['један минут', 'једне минуте'],
  14536. mm: ['минут', 'минуте', 'минута'],
  14537. h: ['један сат', 'једног сата'],
  14538. hh: ['сат', 'сата', 'сати'],
  14539. dd: ['дан', 'дана', 'дана'],
  14540. MM: ['месец', 'месеца', 'месеци'],
  14541. yy: ['година', 'године', 'година'],
  14542. },
  14543. correctGrammaticalCase: function (number, wordKey) {
  14544. return number === 1
  14545. ? wordKey[0]
  14546. : number >= 2 && number <= 4
  14547. ? wordKey[1]
  14548. : wordKey[2];
  14549. },
  14550. translate: function (number, withoutSuffix, key) {
  14551. var wordKey = translator$1.words[key];
  14552. if (key.length === 1) {
  14553. return withoutSuffix ? wordKey[0] : wordKey[1];
  14554. } else {
  14555. return (
  14556. number +
  14557. ' ' +
  14558. translator$1.correctGrammaticalCase(number, wordKey)
  14559. );
  14560. }
  14561. },
  14562. };
  14563. hooks.defineLocale('sr-cyrl', {
  14564. months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split(
  14565. '_'
  14566. ),
  14567. monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split(
  14568. '_'
  14569. ),
  14570. monthsParseExact: true,
  14571. weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
  14572. weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
  14573. weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),
  14574. weekdaysParseExact: true,
  14575. longDateFormat: {
  14576. LT: 'H:mm',
  14577. LTS: 'H:mm:ss',
  14578. L: 'D. M. YYYY.',
  14579. LL: 'D. MMMM YYYY.',
  14580. LLL: 'D. MMMM YYYY. H:mm',
  14581. LLLL: 'dddd, D. MMMM YYYY. H:mm',
  14582. },
  14583. calendar: {
  14584. sameDay: '[данас у] LT',
  14585. nextDay: '[сутра у] LT',
  14586. nextWeek: function () {
  14587. switch (this.day()) {
  14588. case 0:
  14589. return '[у] [недељу] [у] LT';
  14590. case 3:
  14591. return '[у] [среду] [у] LT';
  14592. case 6:
  14593. return '[у] [суботу] [у] LT';
  14594. case 1:
  14595. case 2:
  14596. case 4:
  14597. case 5:
  14598. return '[у] dddd [у] LT';
  14599. }
  14600. },
  14601. lastDay: '[јуче у] LT',
  14602. lastWeek: function () {
  14603. var lastWeekDays = [
  14604. '[прошле] [недеље] [у] LT',
  14605. '[прошлог] [понедељка] [у] LT',
  14606. '[прошлог] [уторка] [у] LT',
  14607. '[прошле] [среде] [у] LT',
  14608. '[прошлог] [четвртка] [у] LT',
  14609. '[прошлог] [петка] [у] LT',
  14610. '[прошле] [суботе] [у] LT',
  14611. ];
  14612. return lastWeekDays[this.day()];
  14613. },
  14614. sameElse: 'L',
  14615. },
  14616. relativeTime: {
  14617. future: 'за %s',
  14618. past: 'пре %s',
  14619. s: 'неколико секунди',
  14620. ss: translator$1.translate,
  14621. m: translator$1.translate,
  14622. mm: translator$1.translate,
  14623. h: translator$1.translate,
  14624. hh: translator$1.translate,
  14625. d: 'дан',
  14626. dd: translator$1.translate,
  14627. M: 'месец',
  14628. MM: translator$1.translate,
  14629. y: 'годину',
  14630. yy: translator$1.translate,
  14631. },
  14632. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14633. ordinal: '%d.',
  14634. week: {
  14635. dow: 1, // Monday is the first day of the week.
  14636. doy: 7, // The week that contains Jan 1st is the first week of the year.
  14637. },
  14638. });
  14639. //! moment.js locale configuration
  14640. var translator$2 = {
  14641. words: {
  14642. //Different grammatical cases
  14643. ss: ['sekunda', 'sekunde', 'sekundi'],
  14644. m: ['jedan minut', 'jedne minute'],
  14645. mm: ['minut', 'minute', 'minuta'],
  14646. h: ['jedan sat', 'jednog sata'],
  14647. hh: ['sat', 'sata', 'sati'],
  14648. dd: ['dan', 'dana', 'dana'],
  14649. MM: ['mesec', 'meseca', 'meseci'],
  14650. yy: ['godina', 'godine', 'godina'],
  14651. },
  14652. correctGrammaticalCase: function (number, wordKey) {
  14653. return number === 1
  14654. ? wordKey[0]
  14655. : number >= 2 && number <= 4
  14656. ? wordKey[1]
  14657. : wordKey[2];
  14658. },
  14659. translate: function (number, withoutSuffix, key) {
  14660. var wordKey = translator$2.words[key];
  14661. if (key.length === 1) {
  14662. return withoutSuffix ? wordKey[0] : wordKey[1];
  14663. } else {
  14664. return (
  14665. number +
  14666. ' ' +
  14667. translator$2.correctGrammaticalCase(number, wordKey)
  14668. );
  14669. }
  14670. },
  14671. };
  14672. hooks.defineLocale('sr', {
  14673. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split(
  14674. '_'
  14675. ),
  14676. monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split(
  14677. '_'
  14678. ),
  14679. monthsParseExact: true,
  14680. weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split(
  14681. '_'
  14682. ),
  14683. weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
  14684. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  14685. weekdaysParseExact: true,
  14686. longDateFormat: {
  14687. LT: 'H:mm',
  14688. LTS: 'H:mm:ss',
  14689. L: 'D. M. YYYY.',
  14690. LL: 'D. MMMM YYYY.',
  14691. LLL: 'D. MMMM YYYY. H:mm',
  14692. LLLL: 'dddd, D. MMMM YYYY. H:mm',
  14693. },
  14694. calendar: {
  14695. sameDay: '[danas u] LT',
  14696. nextDay: '[sutra u] LT',
  14697. nextWeek: function () {
  14698. switch (this.day()) {
  14699. case 0:
  14700. return '[u] [nedelju] [u] LT';
  14701. case 3:
  14702. return '[u] [sredu] [u] LT';
  14703. case 6:
  14704. return '[u] [subotu] [u] LT';
  14705. case 1:
  14706. case 2:
  14707. case 4:
  14708. case 5:
  14709. return '[u] dddd [u] LT';
  14710. }
  14711. },
  14712. lastDay: '[juče u] LT',
  14713. lastWeek: function () {
  14714. var lastWeekDays = [
  14715. '[prošle] [nedelje] [u] LT',
  14716. '[prošlog] [ponedeljka] [u] LT',
  14717. '[prošlog] [utorka] [u] LT',
  14718. '[prošle] [srede] [u] LT',
  14719. '[prošlog] [četvrtka] [u] LT',
  14720. '[prošlog] [petka] [u] LT',
  14721. '[prošle] [subote] [u] LT',
  14722. ];
  14723. return lastWeekDays[this.day()];
  14724. },
  14725. sameElse: 'L',
  14726. },
  14727. relativeTime: {
  14728. future: 'za %s',
  14729. past: 'pre %s',
  14730. s: 'nekoliko sekundi',
  14731. ss: translator$2.translate,
  14732. m: translator$2.translate,
  14733. mm: translator$2.translate,
  14734. h: translator$2.translate,
  14735. hh: translator$2.translate,
  14736. d: 'dan',
  14737. dd: translator$2.translate,
  14738. M: 'mesec',
  14739. MM: translator$2.translate,
  14740. y: 'godinu',
  14741. yy: translator$2.translate,
  14742. },
  14743. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14744. ordinal: '%d.',
  14745. week: {
  14746. dow: 1, // Monday is the first day of the week.
  14747. doy: 7, // The week that contains Jan 7th is the first week of the year.
  14748. },
  14749. });
  14750. //! moment.js locale configuration
  14751. hooks.defineLocale('ss', {
  14752. months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split(
  14753. '_'
  14754. ),
  14755. monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
  14756. weekdays: 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split(
  14757. '_'
  14758. ),
  14759. weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
  14760. weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
  14761. weekdaysParseExact: true,
  14762. longDateFormat: {
  14763. LT: 'h:mm A',
  14764. LTS: 'h:mm:ss A',
  14765. L: 'DD/MM/YYYY',
  14766. LL: 'D MMMM YYYY',
  14767. LLL: 'D MMMM YYYY h:mm A',
  14768. LLLL: 'dddd, D MMMM YYYY h:mm A',
  14769. },
  14770. calendar: {
  14771. sameDay: '[Namuhla nga] LT',
  14772. nextDay: '[Kusasa nga] LT',
  14773. nextWeek: 'dddd [nga] LT',
  14774. lastDay: '[Itolo nga] LT',
  14775. lastWeek: 'dddd [leliphelile] [nga] LT',
  14776. sameElse: 'L',
  14777. },
  14778. relativeTime: {
  14779. future: 'nga %s',
  14780. past: 'wenteka nga %s',
  14781. s: 'emizuzwana lomcane',
  14782. ss: '%d mzuzwana',
  14783. m: 'umzuzu',
  14784. mm: '%d emizuzu',
  14785. h: 'lihora',
  14786. hh: '%d emahora',
  14787. d: 'lilanga',
  14788. dd: '%d emalanga',
  14789. M: 'inyanga',
  14790. MM: '%d tinyanga',
  14791. y: 'umnyaka',
  14792. yy: '%d iminyaka',
  14793. },
  14794. meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
  14795. meridiem: function (hours, minutes, isLower) {
  14796. if (hours < 11) {
  14797. return 'ekuseni';
  14798. } else if (hours < 15) {
  14799. return 'emini';
  14800. } else if (hours < 19) {
  14801. return 'entsambama';
  14802. } else {
  14803. return 'ebusuku';
  14804. }
  14805. },
  14806. meridiemHour: function (hour, meridiem) {
  14807. if (hour === 12) {
  14808. hour = 0;
  14809. }
  14810. if (meridiem === 'ekuseni') {
  14811. return hour;
  14812. } else if (meridiem === 'emini') {
  14813. return hour >= 11 ? hour : hour + 12;
  14814. } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {
  14815. if (hour === 0) {
  14816. return 0;
  14817. }
  14818. return hour + 12;
  14819. }
  14820. },
  14821. dayOfMonthOrdinalParse: /\d{1,2}/,
  14822. ordinal: '%d',
  14823. week: {
  14824. dow: 1, // Monday is the first day of the week.
  14825. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14826. },
  14827. });
  14828. //! moment.js locale configuration
  14829. hooks.defineLocale('sv', {
  14830. months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split(
  14831. '_'
  14832. ),
  14833. monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  14834. weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
  14835. weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
  14836. weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),
  14837. longDateFormat: {
  14838. LT: 'HH:mm',
  14839. LTS: 'HH:mm:ss',
  14840. L: 'YYYY-MM-DD',
  14841. LL: 'D MMMM YYYY',
  14842. LLL: 'D MMMM YYYY [kl.] HH:mm',
  14843. LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',
  14844. lll: 'D MMM YYYY HH:mm',
  14845. llll: 'ddd D MMM YYYY HH:mm',
  14846. },
  14847. calendar: {
  14848. sameDay: '[Idag] LT',
  14849. nextDay: '[Imorgon] LT',
  14850. lastDay: '[Igår] LT',
  14851. nextWeek: '[På] dddd LT',
  14852. lastWeek: '[I] dddd[s] LT',
  14853. sameElse: 'L',
  14854. },
  14855. relativeTime: {
  14856. future: 'om %s',
  14857. past: 'för %s sedan',
  14858. s: 'några sekunder',
  14859. ss: '%d sekunder',
  14860. m: 'en minut',
  14861. mm: '%d minuter',
  14862. h: 'en timme',
  14863. hh: '%d timmar',
  14864. d: 'en dag',
  14865. dd: '%d dagar',
  14866. M: 'en månad',
  14867. MM: '%d månader',
  14868. y: 'ett år',
  14869. yy: '%d år',
  14870. },
  14871. dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/,
  14872. ordinal: function (number) {
  14873. var b = number % 10,
  14874. output =
  14875. ~~((number % 100) / 10) === 1
  14876. ? ':e'
  14877. : b === 1
  14878. ? ':a'
  14879. : b === 2
  14880. ? ':a'
  14881. : b === 3
  14882. ? ':e'
  14883. : ':e';
  14884. return number + output;
  14885. },
  14886. week: {
  14887. dow: 1, // Monday is the first day of the week.
  14888. doy: 4, // The week that contains Jan 4th is the first week of the year.
  14889. },
  14890. });
  14891. //! moment.js locale configuration
  14892. hooks.defineLocale('sw', {
  14893. months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split(
  14894. '_'
  14895. ),
  14896. monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
  14897. weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split(
  14898. '_'
  14899. ),
  14900. weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
  14901. weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
  14902. weekdaysParseExact: true,
  14903. longDateFormat: {
  14904. LT: 'hh:mm A',
  14905. LTS: 'HH:mm:ss',
  14906. L: 'DD.MM.YYYY',
  14907. LL: 'D MMMM YYYY',
  14908. LLL: 'D MMMM YYYY HH:mm',
  14909. LLLL: 'dddd, D MMMM YYYY HH:mm',
  14910. },
  14911. calendar: {
  14912. sameDay: '[leo saa] LT',
  14913. nextDay: '[kesho saa] LT',
  14914. nextWeek: '[wiki ijayo] dddd [saat] LT',
  14915. lastDay: '[jana] LT',
  14916. lastWeek: '[wiki iliyopita] dddd [saat] LT',
  14917. sameElse: 'L',
  14918. },
  14919. relativeTime: {
  14920. future: '%s baadaye',
  14921. past: 'tokea %s',
  14922. s: 'hivi punde',
  14923. ss: 'sekunde %d',
  14924. m: 'dakika moja',
  14925. mm: 'dakika %d',
  14926. h: 'saa limoja',
  14927. hh: 'masaa %d',
  14928. d: 'siku moja',
  14929. dd: 'siku %d',
  14930. M: 'mwezi mmoja',
  14931. MM: 'miezi %d',
  14932. y: 'mwaka mmoja',
  14933. yy: 'miaka %d',
  14934. },
  14935. week: {
  14936. dow: 1, // Monday is the first day of the week.
  14937. doy: 7, // The week that contains Jan 7th is the first week of the year.
  14938. },
  14939. });
  14940. //! moment.js locale configuration
  14941. var symbolMap$g = {
  14942. 1: '௧',
  14943. 2: '௨',
  14944. 3: '௩',
  14945. 4: '௪',
  14946. 5: '௫',
  14947. 6: '௬',
  14948. 7: '௭',
  14949. 8: '௮',
  14950. 9: '௯',
  14951. 0: '௦',
  14952. },
  14953. numberMap$f = {
  14954. '௧': '1',
  14955. '௨': '2',
  14956. '௩': '3',
  14957. '௪': '4',
  14958. '௫': '5',
  14959. '௬': '6',
  14960. '௭': '7',
  14961. '௮': '8',
  14962. '௯': '9',
  14963. '௦': '0',
  14964. };
  14965. hooks.defineLocale('ta', {
  14966. months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(
  14967. '_'
  14968. ),
  14969. monthsShort: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split(
  14970. '_'
  14971. ),
  14972. weekdays: 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split(
  14973. '_'
  14974. ),
  14975. weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split(
  14976. '_'
  14977. ),
  14978. weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
  14979. longDateFormat: {
  14980. LT: 'HH:mm',
  14981. LTS: 'HH:mm:ss',
  14982. L: 'DD/MM/YYYY',
  14983. LL: 'D MMMM YYYY',
  14984. LLL: 'D MMMM YYYY, HH:mm',
  14985. LLLL: 'dddd, D MMMM YYYY, HH:mm',
  14986. },
  14987. calendar: {
  14988. sameDay: '[இன்று] LT',
  14989. nextDay: '[நாளை] LT',
  14990. nextWeek: 'dddd, LT',
  14991. lastDay: '[நேற்று] LT',
  14992. lastWeek: '[கடந்த வாரம்] dddd, LT',
  14993. sameElse: 'L',
  14994. },
  14995. relativeTime: {
  14996. future: '%s இல்',
  14997. past: '%s முன்',
  14998. s: 'ஒரு சில விநாடிகள்',
  14999. ss: '%d விநாடிகள்',
  15000. m: 'ஒரு நிமிடம்',
  15001. mm: '%d நிமிடங்கள்',
  15002. h: 'ஒரு மணி நேரம்',
  15003. hh: '%d மணி நேரம்',
  15004. d: 'ஒரு நாள்',
  15005. dd: '%d நாட்கள்',
  15006. M: 'ஒரு மாதம்',
  15007. MM: '%d மாதங்கள்',
  15008. y: 'ஒரு வருடம்',
  15009. yy: '%d ஆண்டுகள்',
  15010. },
  15011. dayOfMonthOrdinalParse: /\d{1,2}வது/,
  15012. ordinal: function (number) {
  15013. return number + 'வது';
  15014. },
  15015. preparse: function (string) {
  15016. return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
  15017. return numberMap$f[match];
  15018. });
  15019. },
  15020. postformat: function (string) {
  15021. return string.replace(/\d/g, function (match) {
  15022. return symbolMap$g[match];
  15023. });
  15024. },
  15025. // refer http://ta.wikipedia.org/s/1er1
  15026. meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
  15027. meridiem: function (hour, minute, isLower) {
  15028. if (hour < 2) {
  15029. return ' யாமம்';
  15030. } else if (hour < 6) {
  15031. return ' வைகறை'; // வைகறை
  15032. } else if (hour < 10) {
  15033. return ' காலை'; // காலை
  15034. } else if (hour < 14) {
  15035. return ' நண்பகல்'; // நண்பகல்
  15036. } else if (hour < 18) {
  15037. return ' எற்பாடு'; // எற்பாடு
  15038. } else if (hour < 22) {
  15039. return ' மாலை'; // மாலை
  15040. } else {
  15041. return ' யாமம்';
  15042. }
  15043. },
  15044. meridiemHour: function (hour, meridiem) {
  15045. if (hour === 12) {
  15046. hour = 0;
  15047. }
  15048. if (meridiem === 'யாமம்') {
  15049. return hour < 2 ? hour : hour + 12;
  15050. } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {
  15051. return hour;
  15052. } else if (meridiem === 'நண்பகல்') {
  15053. return hour >= 10 ? hour : hour + 12;
  15054. } else {
  15055. return hour + 12;
  15056. }
  15057. },
  15058. week: {
  15059. dow: 0, // Sunday is the first day of the week.
  15060. doy: 6, // The week that contains Jan 6th is the first week of the year.
  15061. },
  15062. });
  15063. //! moment.js locale configuration
  15064. hooks.defineLocale('te', {
  15065. months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split(
  15066. '_'
  15067. ),
  15068. monthsShort: 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split(
  15069. '_'
  15070. ),
  15071. monthsParseExact: true,
  15072. weekdays: 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split(
  15073. '_'
  15074. ),
  15075. weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
  15076. weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
  15077. longDateFormat: {
  15078. LT: 'A h:mm',
  15079. LTS: 'A h:mm:ss',
  15080. L: 'DD/MM/YYYY',
  15081. LL: 'D MMMM YYYY',
  15082. LLL: 'D MMMM YYYY, A h:mm',
  15083. LLLL: 'dddd, D MMMM YYYY, A h:mm',
  15084. },
  15085. calendar: {
  15086. sameDay: '[నేడు] LT',
  15087. nextDay: '[రేపు] LT',
  15088. nextWeek: 'dddd, LT',
  15089. lastDay: '[నిన్న] LT',
  15090. lastWeek: '[గత] dddd, LT',
  15091. sameElse: 'L',
  15092. },
  15093. relativeTime: {
  15094. future: '%s లో',
  15095. past: '%s క్రితం',
  15096. s: 'కొన్ని క్షణాలు',
  15097. ss: '%d సెకన్లు',
  15098. m: 'ఒక నిమిషం',
  15099. mm: '%d నిమిషాలు',
  15100. h: 'ఒక గంట',
  15101. hh: '%d గంటలు',
  15102. d: 'ఒక రోజు',
  15103. dd: '%d రోజులు',
  15104. M: 'ఒక నెల',
  15105. MM: '%d నెలలు',
  15106. y: 'ఒక సంవత్సరం',
  15107. yy: '%d సంవత్సరాలు',
  15108. },
  15109. dayOfMonthOrdinalParse: /\d{1,2}వ/,
  15110. ordinal: '%dవ',
  15111. meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
  15112. meridiemHour: function (hour, meridiem) {
  15113. if (hour === 12) {
  15114. hour = 0;
  15115. }
  15116. if (meridiem === 'రాత్రి') {
  15117. return hour < 4 ? hour : hour + 12;
  15118. } else if (meridiem === 'ఉదయం') {
  15119. return hour;
  15120. } else if (meridiem === 'మధ్యాహ్నం') {
  15121. return hour >= 10 ? hour : hour + 12;
  15122. } else if (meridiem === 'సాయంత్రం') {
  15123. return hour + 12;
  15124. }
  15125. },
  15126. meridiem: function (hour, minute, isLower) {
  15127. if (hour < 4) {
  15128. return 'రాత్రి';
  15129. } else if (hour < 10) {
  15130. return 'ఉదయం';
  15131. } else if (hour < 17) {
  15132. return 'మధ్యాహ్నం';
  15133. } else if (hour < 20) {
  15134. return 'సాయంత్రం';
  15135. } else {
  15136. return 'రాత్రి';
  15137. }
  15138. },
  15139. week: {
  15140. dow: 0, // Sunday is the first day of the week.
  15141. doy: 6, // The week that contains Jan 6th is the first week of the year.
  15142. },
  15143. });
  15144. //! moment.js locale configuration
  15145. hooks.defineLocale('tet', {
  15146. months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split(
  15147. '_'
  15148. ),
  15149. monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
  15150. weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'),
  15151. weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'),
  15152. weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'),
  15153. longDateFormat: {
  15154. LT: 'HH:mm',
  15155. LTS: 'HH:mm:ss',
  15156. L: 'DD/MM/YYYY',
  15157. LL: 'D MMMM YYYY',
  15158. LLL: 'D MMMM YYYY HH:mm',
  15159. LLLL: 'dddd, D MMMM YYYY HH:mm',
  15160. },
  15161. calendar: {
  15162. sameDay: '[Ohin iha] LT',
  15163. nextDay: '[Aban iha] LT',
  15164. nextWeek: 'dddd [iha] LT',
  15165. lastDay: '[Horiseik iha] LT',
  15166. lastWeek: 'dddd [semana kotuk] [iha] LT',
  15167. sameElse: 'L',
  15168. },
  15169. relativeTime: {
  15170. future: 'iha %s',
  15171. past: '%s liuba',
  15172. s: 'segundu balun',
  15173. ss: 'segundu %d',
  15174. m: 'minutu ida',
  15175. mm: 'minutu %d',
  15176. h: 'oras ida',
  15177. hh: 'oras %d',
  15178. d: 'loron ida',
  15179. dd: 'loron %d',
  15180. M: 'fulan ida',
  15181. MM: 'fulan %d',
  15182. y: 'tinan ida',
  15183. yy: 'tinan %d',
  15184. },
  15185. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  15186. ordinal: function (number) {
  15187. var b = number % 10,
  15188. output =
  15189. ~~((number % 100) / 10) === 1
  15190. ? 'th'
  15191. : b === 1
  15192. ? 'st'
  15193. : b === 2
  15194. ? 'nd'
  15195. : b === 3
  15196. ? 'rd'
  15197. : 'th';
  15198. return number + output;
  15199. },
  15200. week: {
  15201. dow: 1, // Monday is the first day of the week.
  15202. doy: 4, // The week that contains Jan 4th is the first week of the year.
  15203. },
  15204. });
  15205. //! moment.js locale configuration
  15206. var suffixes$3 = {
  15207. 0: '-ум',
  15208. 1: '-ум',
  15209. 2: '-юм',
  15210. 3: '-юм',
  15211. 4: '-ум',
  15212. 5: '-ум',
  15213. 6: '-ум',
  15214. 7: '-ум',
  15215. 8: '-ум',
  15216. 9: '-ум',
  15217. 10: '-ум',
  15218. 12: '-ум',
  15219. 13: '-ум',
  15220. 20: '-ум',
  15221. 30: '-юм',
  15222. 40: '-ум',
  15223. 50: '-ум',
  15224. 60: '-ум',
  15225. 70: '-ум',
  15226. 80: '-ум',
  15227. 90: '-ум',
  15228. 100: '-ум',
  15229. };
  15230. hooks.defineLocale('tg', {
  15231. months: {
  15232. format: 'январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри'.split(
  15233. '_'
  15234. ),
  15235. standalone: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
  15236. '_'
  15237. ),
  15238. },
  15239. monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
  15240. weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split(
  15241. '_'
  15242. ),
  15243. weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'),
  15244. weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'),
  15245. longDateFormat: {
  15246. LT: 'HH:mm',
  15247. LTS: 'HH:mm:ss',
  15248. L: 'DD.MM.YYYY',
  15249. LL: 'D MMMM YYYY',
  15250. LLL: 'D MMMM YYYY HH:mm',
  15251. LLLL: 'dddd, D MMMM YYYY HH:mm',
  15252. },
  15253. calendar: {
  15254. sameDay: '[Имрӯз соати] LT',
  15255. nextDay: '[Фардо соати] LT',
  15256. lastDay: '[Дирӯз соати] LT',
  15257. nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT',
  15258. lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT',
  15259. sameElse: 'L',
  15260. },
  15261. relativeTime: {
  15262. future: 'баъди %s',
  15263. past: '%s пеш',
  15264. s: 'якчанд сония',
  15265. m: 'як дақиқа',
  15266. mm: '%d дақиқа',
  15267. h: 'як соат',
  15268. hh: '%d соат',
  15269. d: 'як рӯз',
  15270. dd: '%d рӯз',
  15271. M: 'як моҳ',
  15272. MM: '%d моҳ',
  15273. y: 'як сол',
  15274. yy: '%d сол',
  15275. },
  15276. meridiemParse: /шаб|субҳ|рӯз|бегоҳ/,
  15277. meridiemHour: function (hour, meridiem) {
  15278. if (hour === 12) {
  15279. hour = 0;
  15280. }
  15281. if (meridiem === 'шаб') {
  15282. return hour < 4 ? hour : hour + 12;
  15283. } else if (meridiem === 'субҳ') {
  15284. return hour;
  15285. } else if (meridiem === 'рӯз') {
  15286. return hour >= 11 ? hour : hour + 12;
  15287. } else if (meridiem === 'бегоҳ') {
  15288. return hour + 12;
  15289. }
  15290. },
  15291. meridiem: function (hour, minute, isLower) {
  15292. if (hour < 4) {
  15293. return 'шаб';
  15294. } else if (hour < 11) {
  15295. return 'субҳ';
  15296. } else if (hour < 16) {
  15297. return 'рӯз';
  15298. } else if (hour < 19) {
  15299. return 'бегоҳ';
  15300. } else {
  15301. return 'шаб';
  15302. }
  15303. },
  15304. dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/,
  15305. ordinal: function (number) {
  15306. var a = number % 10,
  15307. b = number >= 100 ? 100 : null;
  15308. return number + (suffixes$3[number] || suffixes$3[a] || suffixes$3[b]);
  15309. },
  15310. week: {
  15311. dow: 1, // Monday is the first day of the week.
  15312. doy: 7, // The week that contains Jan 1th is the first week of the year.
  15313. },
  15314. });
  15315. //! moment.js locale configuration
  15316. hooks.defineLocale('th', {
  15317. months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split(
  15318. '_'
  15319. ),
  15320. monthsShort: 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split(
  15321. '_'
  15322. ),
  15323. monthsParseExact: true,
  15324. weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
  15325. weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
  15326. weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
  15327. weekdaysParseExact: true,
  15328. longDateFormat: {
  15329. LT: 'H:mm',
  15330. LTS: 'H:mm:ss',
  15331. L: 'DD/MM/YYYY',
  15332. LL: 'D MMMM YYYY',
  15333. LLL: 'D MMMM YYYY เวลา H:mm',
  15334. LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm',
  15335. },
  15336. meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
  15337. isPM: function (input) {
  15338. return input === 'หลังเที่ยง';
  15339. },
  15340. meridiem: function (hour, minute, isLower) {
  15341. if (hour < 12) {
  15342. return 'ก่อนเที่ยง';
  15343. } else {
  15344. return 'หลังเที่ยง';
  15345. }
  15346. },
  15347. calendar: {
  15348. sameDay: '[วันนี้ เวลา] LT',
  15349. nextDay: '[พรุ่งนี้ เวลา] LT',
  15350. nextWeek: 'dddd[หน้า เวลา] LT',
  15351. lastDay: '[เมื่อวานนี้ เวลา] LT',
  15352. lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT',
  15353. sameElse: 'L',
  15354. },
  15355. relativeTime: {
  15356. future: 'อีก %s',
  15357. past: '%sที่แล้ว',
  15358. s: 'ไม่กี่วินาที',
  15359. ss: '%d วินาที',
  15360. m: '1 นาที',
  15361. mm: '%d นาที',
  15362. h: '1 ชั่วโมง',
  15363. hh: '%d ชั่วโมง',
  15364. d: '1 วัน',
  15365. dd: '%d วัน',
  15366. w: '1 สัปดาห์',
  15367. ww: '%d สัปดาห์',
  15368. M: '1 เดือน',
  15369. MM: '%d เดือน',
  15370. y: '1 ปี',
  15371. yy: '%d ปี',
  15372. },
  15373. });
  15374. //! moment.js locale configuration
  15375. var suffixes$4 = {
  15376. 1: "'inji",
  15377. 5: "'inji",
  15378. 8: "'inji",
  15379. 70: "'inji",
  15380. 80: "'inji",
  15381. 2: "'nji",
  15382. 7: "'nji",
  15383. 20: "'nji",
  15384. 50: "'nji",
  15385. 3: "'ünji",
  15386. 4: "'ünji",
  15387. 100: "'ünji",
  15388. 6: "'njy",
  15389. 9: "'unjy",
  15390. 10: "'unjy",
  15391. 30: "'unjy",
  15392. 60: "'ynjy",
  15393. 90: "'ynjy",
  15394. };
  15395. hooks.defineLocale('tk', {
  15396. months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split(
  15397. '_'
  15398. ),
  15399. monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split('_'),
  15400. weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split(
  15401. '_'
  15402. ),
  15403. weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'),
  15404. weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'),
  15405. longDateFormat: {
  15406. LT: 'HH:mm',
  15407. LTS: 'HH:mm:ss',
  15408. L: 'DD.MM.YYYY',
  15409. LL: 'D MMMM YYYY',
  15410. LLL: 'D MMMM YYYY HH:mm',
  15411. LLLL: 'dddd, D MMMM YYYY HH:mm',
  15412. },
  15413. calendar: {
  15414. sameDay: '[bugün sagat] LT',
  15415. nextDay: '[ertir sagat] LT',
  15416. nextWeek: '[indiki] dddd [sagat] LT',
  15417. lastDay: '[düýn] LT',
  15418. lastWeek: '[geçen] dddd [sagat] LT',
  15419. sameElse: 'L',
  15420. },
  15421. relativeTime: {
  15422. future: '%s soň',
  15423. past: '%s öň',
  15424. s: 'birnäçe sekunt',
  15425. m: 'bir minut',
  15426. mm: '%d minut',
  15427. h: 'bir sagat',
  15428. hh: '%d sagat',
  15429. d: 'bir gün',
  15430. dd: '%d gün',
  15431. M: 'bir aý',
  15432. MM: '%d aý',
  15433. y: 'bir ýyl',
  15434. yy: '%d ýyl',
  15435. },
  15436. ordinal: function (number, period) {
  15437. switch (period) {
  15438. case 'd':
  15439. case 'D':
  15440. case 'Do':
  15441. case 'DD':
  15442. return number;
  15443. default:
  15444. if (number === 0) {
  15445. // special case for zero
  15446. return number + "'unjy";
  15447. }
  15448. var a = number % 10,
  15449. b = (number % 100) - a,
  15450. c = number >= 100 ? 100 : null;
  15451. return number + (suffixes$4[a] || suffixes$4[b] || suffixes$4[c]);
  15452. }
  15453. },
  15454. week: {
  15455. dow: 1, // Monday is the first day of the week.
  15456. doy: 7, // The week that contains Jan 7th is the first week of the year.
  15457. },
  15458. });
  15459. //! moment.js locale configuration
  15460. hooks.defineLocale('tl-ph', {
  15461. months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(
  15462. '_'
  15463. ),
  15464. monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
  15465. weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(
  15466. '_'
  15467. ),
  15468. weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
  15469. weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
  15470. longDateFormat: {
  15471. LT: 'HH:mm',
  15472. LTS: 'HH:mm:ss',
  15473. L: 'MM/D/YYYY',
  15474. LL: 'MMMM D, YYYY',
  15475. LLL: 'MMMM D, YYYY HH:mm',
  15476. LLLL: 'dddd, MMMM DD, YYYY HH:mm',
  15477. },
  15478. calendar: {
  15479. sameDay: 'LT [ngayong araw]',
  15480. nextDay: '[Bukas ng] LT',
  15481. nextWeek: 'LT [sa susunod na] dddd',
  15482. lastDay: 'LT [kahapon]',
  15483. lastWeek: 'LT [noong nakaraang] dddd',
  15484. sameElse: 'L',
  15485. },
  15486. relativeTime: {
  15487. future: 'sa loob ng %s',
  15488. past: '%s ang nakalipas',
  15489. s: 'ilang segundo',
  15490. ss: '%d segundo',
  15491. m: 'isang minuto',
  15492. mm: '%d minuto',
  15493. h: 'isang oras',
  15494. hh: '%d oras',
  15495. d: 'isang araw',
  15496. dd: '%d araw',
  15497. M: 'isang buwan',
  15498. MM: '%d buwan',
  15499. y: 'isang taon',
  15500. yy: '%d taon',
  15501. },
  15502. dayOfMonthOrdinalParse: /\d{1,2}/,
  15503. ordinal: function (number) {
  15504. return number;
  15505. },
  15506. week: {
  15507. dow: 1, // Monday is the first day of the week.
  15508. doy: 4, // The week that contains Jan 4th is the first week of the year.
  15509. },
  15510. });
  15511. //! moment.js locale configuration
  15512. var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');
  15513. function translateFuture(output) {
  15514. var time = output;
  15515. time =
  15516. output.indexOf('jaj') !== -1
  15517. ? time.slice(0, -3) + 'leS'
  15518. : output.indexOf('jar') !== -1
  15519. ? time.slice(0, -3) + 'waQ'
  15520. : output.indexOf('DIS') !== -1
  15521. ? time.slice(0, -3) + 'nem'
  15522. : time + ' pIq';
  15523. return time;
  15524. }
  15525. function translatePast(output) {
  15526. var time = output;
  15527. time =
  15528. output.indexOf('jaj') !== -1
  15529. ? time.slice(0, -3) + 'Hu’'
  15530. : output.indexOf('jar') !== -1
  15531. ? time.slice(0, -3) + 'wen'
  15532. : output.indexOf('DIS') !== -1
  15533. ? time.slice(0, -3) + 'ben'
  15534. : time + ' ret';
  15535. return time;
  15536. }
  15537. function translate$a(number, withoutSuffix, string, isFuture) {
  15538. var numberNoun = numberAsNoun(number);
  15539. switch (string) {
  15540. case 'ss':
  15541. return numberNoun + ' lup';
  15542. case 'mm':
  15543. return numberNoun + ' tup';
  15544. case 'hh':
  15545. return numberNoun + ' rep';
  15546. case 'dd':
  15547. return numberNoun + ' jaj';
  15548. case 'MM':
  15549. return numberNoun + ' jar';
  15550. case 'yy':
  15551. return numberNoun + ' DIS';
  15552. }
  15553. }
  15554. function numberAsNoun(number) {
  15555. var hundred = Math.floor((number % 1000) / 100),
  15556. ten = Math.floor((number % 100) / 10),
  15557. one = number % 10,
  15558. word = '';
  15559. if (hundred > 0) {
  15560. word += numbersNouns[hundred] + 'vatlh';
  15561. }
  15562. if (ten > 0) {
  15563. word += (word !== '' ? ' ' : '') + numbersNouns[ten] + 'maH';
  15564. }
  15565. if (one > 0) {
  15566. word += (word !== '' ? ' ' : '') + numbersNouns[one];
  15567. }
  15568. return word === '' ? 'pagh' : word;
  15569. }
  15570. hooks.defineLocale('tlh', {
  15571. 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(
  15572. '_'
  15573. ),
  15574. monthsShort: 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split(
  15575. '_'
  15576. ),
  15577. monthsParseExact: true,
  15578. weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(
  15579. '_'
  15580. ),
  15581. weekdaysShort: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(
  15582. '_'
  15583. ),
  15584. weekdaysMin: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(
  15585. '_'
  15586. ),
  15587. longDateFormat: {
  15588. LT: 'HH:mm',
  15589. LTS: 'HH:mm:ss',
  15590. L: 'DD.MM.YYYY',
  15591. LL: 'D MMMM YYYY',
  15592. LLL: 'D MMMM YYYY HH:mm',
  15593. LLLL: 'dddd, D MMMM YYYY HH:mm',
  15594. },
  15595. calendar: {
  15596. sameDay: '[DaHjaj] LT',
  15597. nextDay: '[wa’leS] LT',
  15598. nextWeek: 'LLL',
  15599. lastDay: '[wa’Hu’] LT',
  15600. lastWeek: 'LLL',
  15601. sameElse: 'L',
  15602. },
  15603. relativeTime: {
  15604. future: translateFuture,
  15605. past: translatePast,
  15606. s: 'puS lup',
  15607. ss: translate$a,
  15608. m: 'wa’ tup',
  15609. mm: translate$a,
  15610. h: 'wa’ rep',
  15611. hh: translate$a,
  15612. d: 'wa’ jaj',
  15613. dd: translate$a,
  15614. M: 'wa’ jar',
  15615. MM: translate$a,
  15616. y: 'wa’ DIS',
  15617. yy: translate$a,
  15618. },
  15619. dayOfMonthOrdinalParse: /\d{1,2}\./,
  15620. ordinal: '%d.',
  15621. week: {
  15622. dow: 1, // Monday is the first day of the week.
  15623. doy: 4, // The week that contains Jan 4th is the first week of the year.
  15624. },
  15625. });
  15626. //! moment.js locale configuration
  15627. var suffixes$5 = {
  15628. 1: "'inci",
  15629. 5: "'inci",
  15630. 8: "'inci",
  15631. 70: "'inci",
  15632. 80: "'inci",
  15633. 2: "'nci",
  15634. 7: "'nci",
  15635. 20: "'nci",
  15636. 50: "'nci",
  15637. 3: "'üncü",
  15638. 4: "'üncü",
  15639. 100: "'üncü",
  15640. 6: "'ncı",
  15641. 9: "'uncu",
  15642. 10: "'uncu",
  15643. 30: "'uncu",
  15644. 60: "'ıncı",
  15645. 90: "'ıncı",
  15646. };
  15647. hooks.defineLocale('tr', {
  15648. months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split(
  15649. '_'
  15650. ),
  15651. monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
  15652. weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split(
  15653. '_'
  15654. ),
  15655. weekdaysShort: 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),
  15656. weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
  15657. meridiem: function (hours, minutes, isLower) {
  15658. if (hours < 12) {
  15659. return isLower ? 'öö' : 'ÖÖ';
  15660. } else {
  15661. return isLower ? 'ös' : 'ÖS';
  15662. }
  15663. },
  15664. meridiemParse: /öö|ÖÖ|ös|ÖS/,
  15665. isPM: function (input) {
  15666. return input === 'ös' || input === 'ÖS';
  15667. },
  15668. longDateFormat: {
  15669. LT: 'HH:mm',
  15670. LTS: 'HH:mm:ss',
  15671. L: 'DD.MM.YYYY',
  15672. LL: 'D MMMM YYYY',
  15673. LLL: 'D MMMM YYYY HH:mm',
  15674. LLLL: 'dddd, D MMMM YYYY HH:mm',
  15675. },
  15676. calendar: {
  15677. sameDay: '[bugün saat] LT',
  15678. nextDay: '[yarın saat] LT',
  15679. nextWeek: '[gelecek] dddd [saat] LT',
  15680. lastDay: '[dün] LT',
  15681. lastWeek: '[geçen] dddd [saat] LT',
  15682. sameElse: 'L',
  15683. },
  15684. relativeTime: {
  15685. future: '%s sonra',
  15686. past: '%s önce',
  15687. s: 'birkaç saniye',
  15688. ss: '%d saniye',
  15689. m: 'bir dakika',
  15690. mm: '%d dakika',
  15691. h: 'bir saat',
  15692. hh: '%d saat',
  15693. d: 'bir gün',
  15694. dd: '%d gün',
  15695. w: 'bir hafta',
  15696. ww: '%d hafta',
  15697. M: 'bir ay',
  15698. MM: '%d ay',
  15699. y: 'bir yıl',
  15700. yy: '%d yıl',
  15701. },
  15702. ordinal: function (number, period) {
  15703. switch (period) {
  15704. case 'd':
  15705. case 'D':
  15706. case 'Do':
  15707. case 'DD':
  15708. return number;
  15709. default:
  15710. if (number === 0) {
  15711. // special case for zero
  15712. return number + "'ıncı";
  15713. }
  15714. var a = number % 10,
  15715. b = (number % 100) - a,
  15716. c = number >= 100 ? 100 : null;
  15717. return number + (suffixes$5[a] || suffixes$5[b] || suffixes$5[c]);
  15718. }
  15719. },
  15720. week: {
  15721. dow: 1, // Monday is the first day of the week.
  15722. doy: 7, // The week that contains Jan 7th is the first week of the year.
  15723. },
  15724. });
  15725. //! moment.js locale configuration
  15726. // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
  15727. // This is currently too difficult (maybe even impossible) to add.
  15728. hooks.defineLocale('tzl', {
  15729. months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split(
  15730. '_'
  15731. ),
  15732. monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
  15733. weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
  15734. weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
  15735. weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
  15736. longDateFormat: {
  15737. LT: 'HH.mm',
  15738. LTS: 'HH.mm.ss',
  15739. L: 'DD.MM.YYYY',
  15740. LL: 'D. MMMM [dallas] YYYY',
  15741. LLL: 'D. MMMM [dallas] YYYY HH.mm',
  15742. LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm',
  15743. },
  15744. meridiemParse: /d\'o|d\'a/i,
  15745. isPM: function (input) {
  15746. return "d'o" === input.toLowerCase();
  15747. },
  15748. meridiem: function (hours, minutes, isLower) {
  15749. if (hours > 11) {
  15750. return isLower ? "d'o" : "D'O";
  15751. } else {
  15752. return isLower ? "d'a" : "D'A";
  15753. }
  15754. },
  15755. calendar: {
  15756. sameDay: '[oxhi à] LT',
  15757. nextDay: '[demà à] LT',
  15758. nextWeek: 'dddd [à] LT',
  15759. lastDay: '[ieiri à] LT',
  15760. lastWeek: '[sür el] dddd [lasteu à] LT',
  15761. sameElse: 'L',
  15762. },
  15763. relativeTime: {
  15764. future: 'osprei %s',
  15765. past: 'ja%s',
  15766. s: processRelativeTime$8,
  15767. ss: processRelativeTime$8,
  15768. m: processRelativeTime$8,
  15769. mm: processRelativeTime$8,
  15770. h: processRelativeTime$8,
  15771. hh: processRelativeTime$8,
  15772. d: processRelativeTime$8,
  15773. dd: processRelativeTime$8,
  15774. M: processRelativeTime$8,
  15775. MM: processRelativeTime$8,
  15776. y: processRelativeTime$8,
  15777. yy: processRelativeTime$8,
  15778. },
  15779. dayOfMonthOrdinalParse: /\d{1,2}\./,
  15780. ordinal: '%d.',
  15781. week: {
  15782. dow: 1, // Monday is the first day of the week.
  15783. doy: 4, // The week that contains Jan 4th is the first week of the year.
  15784. },
  15785. });
  15786. function processRelativeTime$8(number, withoutSuffix, key, isFuture) {
  15787. var format = {
  15788. s: ['viensas secunds', "'iensas secunds"],
  15789. ss: [number + ' secunds', '' + number + ' secunds'],
  15790. m: ["'n míut", "'iens míut"],
  15791. mm: [number + ' míuts', '' + number + ' míuts'],
  15792. h: ["'n þora", "'iensa þora"],
  15793. hh: [number + ' þoras', '' + number + ' þoras'],
  15794. d: ["'n ziua", "'iensa ziua"],
  15795. dd: [number + ' ziuas', '' + number + ' ziuas'],
  15796. M: ["'n mes", "'iens mes"],
  15797. MM: [number + ' mesen', '' + number + ' mesen'],
  15798. y: ["'n ar", "'iens ar"],
  15799. yy: [number + ' ars', '' + number + ' ars'],
  15800. };
  15801. return isFuture
  15802. ? format[key][0]
  15803. : withoutSuffix
  15804. ? format[key][0]
  15805. : format[key][1];
  15806. }
  15807. //! moment.js locale configuration
  15808. hooks.defineLocale('tzm-latn', {
  15809. months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(
  15810. '_'
  15811. ),
  15812. monthsShort: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split(
  15813. '_'
  15814. ),
  15815. weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  15816. weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  15817. weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  15818. longDateFormat: {
  15819. LT: 'HH:mm',
  15820. LTS: 'HH:mm:ss',
  15821. L: 'DD/MM/YYYY',
  15822. LL: 'D MMMM YYYY',
  15823. LLL: 'D MMMM YYYY HH:mm',
  15824. LLLL: 'dddd D MMMM YYYY HH:mm',
  15825. },
  15826. calendar: {
  15827. sameDay: '[asdkh g] LT',
  15828. nextDay: '[aska g] LT',
  15829. nextWeek: 'dddd [g] LT',
  15830. lastDay: '[assant g] LT',
  15831. lastWeek: 'dddd [g] LT',
  15832. sameElse: 'L',
  15833. },
  15834. relativeTime: {
  15835. future: 'dadkh s yan %s',
  15836. past: 'yan %s',
  15837. s: 'imik',
  15838. ss: '%d imik',
  15839. m: 'minuḍ',
  15840. mm: '%d minuḍ',
  15841. h: 'saɛa',
  15842. hh: '%d tassaɛin',
  15843. d: 'ass',
  15844. dd: '%d ossan',
  15845. M: 'ayowr',
  15846. MM: '%d iyyirn',
  15847. y: 'asgas',
  15848. yy: '%d isgasn',
  15849. },
  15850. week: {
  15851. dow: 6, // Saturday is the first day of the week.
  15852. doy: 12, // The week that contains Jan 12th is the first week of the year.
  15853. },
  15854. });
  15855. //! moment.js locale configuration
  15856. hooks.defineLocale('tzm', {
  15857. months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(
  15858. '_'
  15859. ),
  15860. monthsShort: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split(
  15861. '_'
  15862. ),
  15863. weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  15864. weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  15865. weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  15866. longDateFormat: {
  15867. LT: 'HH:mm',
  15868. LTS: 'HH:mm:ss',
  15869. L: 'DD/MM/YYYY',
  15870. LL: 'D MMMM YYYY',
  15871. LLL: 'D MMMM YYYY HH:mm',
  15872. LLLL: 'dddd D MMMM YYYY HH:mm',
  15873. },
  15874. calendar: {
  15875. sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
  15876. nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
  15877. nextWeek: 'dddd [ⴴ] LT',
  15878. lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
  15879. lastWeek: 'dddd [ⴴ] LT',
  15880. sameElse: 'L',
  15881. },
  15882. relativeTime: {
  15883. future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
  15884. past: 'ⵢⴰⵏ %s',
  15885. s: 'ⵉⵎⵉⴽ',
  15886. ss: '%d ⵉⵎⵉⴽ',
  15887. m: 'ⵎⵉⵏⵓⴺ',
  15888. mm: '%d ⵎⵉⵏⵓⴺ',
  15889. h: 'ⵙⴰⵄⴰ',
  15890. hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
  15891. d: 'ⴰⵙⵙ',
  15892. dd: '%d oⵙⵙⴰⵏ',
  15893. M: 'ⴰⵢoⵓⵔ',
  15894. MM: '%d ⵉⵢⵢⵉⵔⵏ',
  15895. y: 'ⴰⵙⴳⴰⵙ',
  15896. yy: '%d ⵉⵙⴳⴰⵙⵏ',
  15897. },
  15898. week: {
  15899. dow: 6, // Saturday is the first day of the week.
  15900. doy: 12, // The week that contains Jan 12th is the first week of the year.
  15901. },
  15902. });
  15903. //! moment.js locale configuration
  15904. hooks.defineLocale('ug-cn', {
  15905. months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
  15906. '_'
  15907. ),
  15908. monthsShort: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split(
  15909. '_'
  15910. ),
  15911. weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split(
  15912. '_'
  15913. ),
  15914. weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
  15915. weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'),
  15916. longDateFormat: {
  15917. LT: 'HH:mm',
  15918. LTS: 'HH:mm:ss',
  15919. L: 'YYYY-MM-DD',
  15920. LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى',
  15921. LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
  15922. LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm',
  15923. },
  15924. meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,
  15925. meridiemHour: function (hour, meridiem) {
  15926. if (hour === 12) {
  15927. hour = 0;
  15928. }
  15929. if (
  15930. meridiem === 'يېرىم كېچە' ||
  15931. meridiem === 'سەھەر' ||
  15932. meridiem === 'چۈشتىن بۇرۇن'
  15933. ) {
  15934. return hour;
  15935. } else if (meridiem === 'چۈشتىن كېيىن' || meridiem === 'كەچ') {
  15936. return hour + 12;
  15937. } else {
  15938. return hour >= 11 ? hour : hour + 12;
  15939. }
  15940. },
  15941. meridiem: function (hour, minute, isLower) {
  15942. var hm = hour * 100 + minute;
  15943. if (hm < 600) {
  15944. return 'يېرىم كېچە';
  15945. } else if (hm < 900) {
  15946. return 'سەھەر';
  15947. } else if (hm < 1130) {
  15948. return 'چۈشتىن بۇرۇن';
  15949. } else if (hm < 1230) {
  15950. return 'چۈش';
  15951. } else if (hm < 1800) {
  15952. return 'چۈشتىن كېيىن';
  15953. } else {
  15954. return 'كەچ';
  15955. }
  15956. },
  15957. calendar: {
  15958. sameDay: '[بۈگۈن سائەت] LT',
  15959. nextDay: '[ئەتە سائەت] LT',
  15960. nextWeek: '[كېلەركى] dddd [سائەت] LT',
  15961. lastDay: '[تۆنۈگۈن] LT',
  15962. lastWeek: '[ئالدىنقى] dddd [سائەت] LT',
  15963. sameElse: 'L',
  15964. },
  15965. relativeTime: {
  15966. future: '%s كېيىن',
  15967. past: '%s بۇرۇن',
  15968. s: 'نەچچە سېكونت',
  15969. ss: '%d سېكونت',
  15970. m: 'بىر مىنۇت',
  15971. mm: '%d مىنۇت',
  15972. h: 'بىر سائەت',
  15973. hh: '%d سائەت',
  15974. d: 'بىر كۈن',
  15975. dd: '%d كۈن',
  15976. M: 'بىر ئاي',
  15977. MM: '%d ئاي',
  15978. y: 'بىر يىل',
  15979. yy: '%d يىل',
  15980. },
  15981. dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,
  15982. ordinal: function (number, period) {
  15983. switch (period) {
  15984. case 'd':
  15985. case 'D':
  15986. case 'DDD':
  15987. return number + '-كۈنى';
  15988. case 'w':
  15989. case 'W':
  15990. return number + '-ھەپتە';
  15991. default:
  15992. return number;
  15993. }
  15994. },
  15995. preparse: function (string) {
  15996. return string.replace(/،/g, ',');
  15997. },
  15998. postformat: function (string) {
  15999. return string.replace(/,/g, '،');
  16000. },
  16001. week: {
  16002. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  16003. dow: 1, // Monday is the first day of the week.
  16004. doy: 7, // The week that contains Jan 1st is the first week of the year.
  16005. },
  16006. });
  16007. //! moment.js locale configuration
  16008. function plural$6(word, num) {
  16009. var forms = word.split('_');
  16010. return num % 10 === 1 && num % 100 !== 11
  16011. ? forms[0]
  16012. : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20)
  16013. ? forms[1]
  16014. : forms[2];
  16015. }
  16016. function relativeTimeWithPlural$4(number, withoutSuffix, key) {
  16017. var format = {
  16018. ss: withoutSuffix ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд',
  16019. mm: withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
  16020. hh: withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
  16021. dd: 'день_дні_днів',
  16022. MM: 'місяць_місяці_місяців',
  16023. yy: 'рік_роки_років',
  16024. };
  16025. if (key === 'm') {
  16026. return withoutSuffix ? 'хвилина' : 'хвилину';
  16027. } else if (key === 'h') {
  16028. return withoutSuffix ? 'година' : 'годину';
  16029. } else {
  16030. return number + ' ' + plural$6(format[key], +number);
  16031. }
  16032. }
  16033. function weekdaysCaseReplace(m, format) {
  16034. var weekdays = {
  16035. nominative: 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split(
  16036. '_'
  16037. ),
  16038. accusative: 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split(
  16039. '_'
  16040. ),
  16041. genitive: 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split(
  16042. '_'
  16043. ),
  16044. },
  16045. nounCase;
  16046. if (m === true) {
  16047. return weekdays['nominative']
  16048. .slice(1, 7)
  16049. .concat(weekdays['nominative'].slice(0, 1));
  16050. }
  16051. if (!m) {
  16052. return weekdays['nominative'];
  16053. }
  16054. nounCase = /(\[[ВвУу]\]) ?dddd/.test(format)
  16055. ? 'accusative'
  16056. : /\[?(?:минулої|наступної)? ?\] ?dddd/.test(format)
  16057. ? 'genitive'
  16058. : 'nominative';
  16059. return weekdays[nounCase][m.day()];
  16060. }
  16061. function processHoursFunction(str) {
  16062. return function () {
  16063. return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
  16064. };
  16065. }
  16066. hooks.defineLocale('uk', {
  16067. months: {
  16068. format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split(
  16069. '_'
  16070. ),
  16071. standalone: 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split(
  16072. '_'
  16073. ),
  16074. },
  16075. monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split(
  16076. '_'
  16077. ),
  16078. weekdays: weekdaysCaseReplace,
  16079. weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  16080. weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  16081. longDateFormat: {
  16082. LT: 'HH:mm',
  16083. LTS: 'HH:mm:ss',
  16084. L: 'DD.MM.YYYY',
  16085. LL: 'D MMMM YYYY р.',
  16086. LLL: 'D MMMM YYYY р., HH:mm',
  16087. LLLL: 'dddd, D MMMM YYYY р., HH:mm',
  16088. },
  16089. calendar: {
  16090. sameDay: processHoursFunction('[Сьогодні '),
  16091. nextDay: processHoursFunction('[Завтра '),
  16092. lastDay: processHoursFunction('[Вчора '),
  16093. nextWeek: processHoursFunction('[У] dddd ['),
  16094. lastWeek: function () {
  16095. switch (this.day()) {
  16096. case 0:
  16097. case 3:
  16098. case 5:
  16099. case 6:
  16100. return processHoursFunction('[Минулої] dddd [').call(this);
  16101. case 1:
  16102. case 2:
  16103. case 4:
  16104. return processHoursFunction('[Минулого] dddd [').call(this);
  16105. }
  16106. },
  16107. sameElse: 'L',
  16108. },
  16109. relativeTime: {
  16110. future: 'за %s',
  16111. past: '%s тому',
  16112. s: 'декілька секунд',
  16113. ss: relativeTimeWithPlural$4,
  16114. m: relativeTimeWithPlural$4,
  16115. mm: relativeTimeWithPlural$4,
  16116. h: 'годину',
  16117. hh: relativeTimeWithPlural$4,
  16118. d: 'день',
  16119. dd: relativeTimeWithPlural$4,
  16120. M: 'місяць',
  16121. MM: relativeTimeWithPlural$4,
  16122. y: 'рік',
  16123. yy: relativeTimeWithPlural$4,
  16124. },
  16125. // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
  16126. meridiemParse: /ночі|ранку|дня|вечора/,
  16127. isPM: function (input) {
  16128. return /^(дня|вечора)$/.test(input);
  16129. },
  16130. meridiem: function (hour, minute, isLower) {
  16131. if (hour < 4) {
  16132. return 'ночі';
  16133. } else if (hour < 12) {
  16134. return 'ранку';
  16135. } else if (hour < 17) {
  16136. return 'дня';
  16137. } else {
  16138. return 'вечора';
  16139. }
  16140. },
  16141. dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/,
  16142. ordinal: function (number, period) {
  16143. switch (period) {
  16144. case 'M':
  16145. case 'd':
  16146. case 'DDD':
  16147. case 'w':
  16148. case 'W':
  16149. return number + '-й';
  16150. case 'D':
  16151. return number + '-го';
  16152. default:
  16153. return number;
  16154. }
  16155. },
  16156. week: {
  16157. dow: 1, // Monday is the first day of the week.
  16158. doy: 7, // The week that contains Jan 7th is the first week of the year.
  16159. },
  16160. });
  16161. //! moment.js locale configuration
  16162. var months$b = [
  16163. 'جنوری',
  16164. 'فروری',
  16165. 'مارچ',
  16166. 'اپریل',
  16167. 'مئی',
  16168. 'جون',
  16169. 'جولائی',
  16170. 'اگست',
  16171. 'ستمبر',
  16172. 'اکتوبر',
  16173. 'نومبر',
  16174. 'دسمبر',
  16175. ],
  16176. days$2 = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ'];
  16177. hooks.defineLocale('ur', {
  16178. months: months$b,
  16179. monthsShort: months$b,
  16180. weekdays: days$2,
  16181. weekdaysShort: days$2,
  16182. weekdaysMin: days$2,
  16183. longDateFormat: {
  16184. LT: 'HH:mm',
  16185. LTS: 'HH:mm:ss',
  16186. L: 'DD/MM/YYYY',
  16187. LL: 'D MMMM YYYY',
  16188. LLL: 'D MMMM YYYY HH:mm',
  16189. LLLL: 'dddd، D MMMM YYYY HH:mm',
  16190. },
  16191. meridiemParse: /صبح|شام/,
  16192. isPM: function (input) {
  16193. return 'شام' === input;
  16194. },
  16195. meridiem: function (hour, minute, isLower) {
  16196. if (hour < 12) {
  16197. return 'صبح';
  16198. }
  16199. return 'شام';
  16200. },
  16201. calendar: {
  16202. sameDay: '[آج بوقت] LT',
  16203. nextDay: '[کل بوقت] LT',
  16204. nextWeek: 'dddd [بوقت] LT',
  16205. lastDay: '[گذشتہ روز بوقت] LT',
  16206. lastWeek: '[گذشتہ] dddd [بوقت] LT',
  16207. sameElse: 'L',
  16208. },
  16209. relativeTime: {
  16210. future: '%s بعد',
  16211. past: '%s قبل',
  16212. s: 'چند سیکنڈ',
  16213. ss: '%d سیکنڈ',
  16214. m: 'ایک منٹ',
  16215. mm: '%d منٹ',
  16216. h: 'ایک گھنٹہ',
  16217. hh: '%d گھنٹے',
  16218. d: 'ایک دن',
  16219. dd: '%d دن',
  16220. M: 'ایک ماہ',
  16221. MM: '%d ماہ',
  16222. y: 'ایک سال',
  16223. yy: '%d سال',
  16224. },
  16225. preparse: function (string) {
  16226. return string.replace(/،/g, ',');
  16227. },
  16228. postformat: function (string) {
  16229. return string.replace(/,/g, '،');
  16230. },
  16231. week: {
  16232. dow: 1, // Monday is the first day of the week.
  16233. doy: 4, // The week that contains Jan 4th is the first week of the year.
  16234. },
  16235. });
  16236. //! moment.js locale configuration
  16237. hooks.defineLocale('uz-latn', {
  16238. months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split(
  16239. '_'
  16240. ),
  16241. monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
  16242. weekdays: 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split(
  16243. '_'
  16244. ),
  16245. weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
  16246. weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
  16247. longDateFormat: {
  16248. LT: 'HH:mm',
  16249. LTS: 'HH:mm:ss',
  16250. L: 'DD/MM/YYYY',
  16251. LL: 'D MMMM YYYY',
  16252. LLL: 'D MMMM YYYY HH:mm',
  16253. LLLL: 'D MMMM YYYY, dddd HH:mm',
  16254. },
  16255. calendar: {
  16256. sameDay: '[Bugun soat] LT [da]',
  16257. nextDay: '[Ertaga] LT [da]',
  16258. nextWeek: 'dddd [kuni soat] LT [da]',
  16259. lastDay: '[Kecha soat] LT [da]',
  16260. lastWeek: "[O'tgan] dddd [kuni soat] LT [da]",
  16261. sameElse: 'L',
  16262. },
  16263. relativeTime: {
  16264. future: 'Yaqin %s ichida',
  16265. past: 'Bir necha %s oldin',
  16266. s: 'soniya',
  16267. ss: '%d soniya',
  16268. m: 'bir daqiqa',
  16269. mm: '%d daqiqa',
  16270. h: 'bir soat',
  16271. hh: '%d soat',
  16272. d: 'bir kun',
  16273. dd: '%d kun',
  16274. M: 'bir oy',
  16275. MM: '%d oy',
  16276. y: 'bir yil',
  16277. yy: '%d yil',
  16278. },
  16279. week: {
  16280. dow: 1, // Monday is the first day of the week.
  16281. doy: 7, // The week that contains Jan 7th is the first week of the year.
  16282. },
  16283. });
  16284. //! moment.js locale configuration
  16285. hooks.defineLocale('uz', {
  16286. months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split(
  16287. '_'
  16288. ),
  16289. monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
  16290. weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
  16291. weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
  16292. weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
  16293. longDateFormat: {
  16294. LT: 'HH:mm',
  16295. LTS: 'HH:mm:ss',
  16296. L: 'DD/MM/YYYY',
  16297. LL: 'D MMMM YYYY',
  16298. LLL: 'D MMMM YYYY HH:mm',
  16299. LLLL: 'D MMMM YYYY, dddd HH:mm',
  16300. },
  16301. calendar: {
  16302. sameDay: '[Бугун соат] LT [да]',
  16303. nextDay: '[Эртага] LT [да]',
  16304. nextWeek: 'dddd [куни соат] LT [да]',
  16305. lastDay: '[Кеча соат] LT [да]',
  16306. lastWeek: '[Утган] dddd [куни соат] LT [да]',
  16307. sameElse: 'L',
  16308. },
  16309. relativeTime: {
  16310. future: 'Якин %s ичида',
  16311. past: 'Бир неча %s олдин',
  16312. s: 'фурсат',
  16313. ss: '%d фурсат',
  16314. m: 'бир дакика',
  16315. mm: '%d дакика',
  16316. h: 'бир соат',
  16317. hh: '%d соат',
  16318. d: 'бир кун',
  16319. dd: '%d кун',
  16320. M: 'бир ой',
  16321. MM: '%d ой',
  16322. y: 'бир йил',
  16323. yy: '%d йил',
  16324. },
  16325. week: {
  16326. dow: 1, // Monday is the first day of the week.
  16327. doy: 7, // The week that contains Jan 4th is the first week of the year.
  16328. },
  16329. });
  16330. //! moment.js locale configuration
  16331. hooks.defineLocale('vi', {
  16332. 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(
  16333. '_'
  16334. ),
  16335. monthsShort: 'Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12'.split(
  16336. '_'
  16337. ),
  16338. monthsParseExact: true,
  16339. weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split(
  16340. '_'
  16341. ),
  16342. weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  16343. weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  16344. weekdaysParseExact: true,
  16345. meridiemParse: /sa|ch/i,
  16346. isPM: function (input) {
  16347. return /^ch$/i.test(input);
  16348. },
  16349. meridiem: function (hours, minutes, isLower) {
  16350. if (hours < 12) {
  16351. return isLower ? 'sa' : 'SA';
  16352. } else {
  16353. return isLower ? 'ch' : 'CH';
  16354. }
  16355. },
  16356. longDateFormat: {
  16357. LT: 'HH:mm',
  16358. LTS: 'HH:mm:ss',
  16359. L: 'DD/MM/YYYY',
  16360. LL: 'D MMMM [năm] YYYY',
  16361. LLL: 'D MMMM [năm] YYYY HH:mm',
  16362. LLLL: 'dddd, D MMMM [năm] YYYY HH:mm',
  16363. l: 'DD/M/YYYY',
  16364. ll: 'D MMM YYYY',
  16365. lll: 'D MMM YYYY HH:mm',
  16366. llll: 'ddd, D MMM YYYY HH:mm',
  16367. },
  16368. calendar: {
  16369. sameDay: '[Hôm nay lúc] LT',
  16370. nextDay: '[Ngày mai lúc] LT',
  16371. nextWeek: 'dddd [tuần tới lúc] LT',
  16372. lastDay: '[Hôm qua lúc] LT',
  16373. lastWeek: 'dddd [tuần trước lúc] LT',
  16374. sameElse: 'L',
  16375. },
  16376. relativeTime: {
  16377. future: '%s tới',
  16378. past: '%s trước',
  16379. s: 'vài giây',
  16380. ss: '%d giây',
  16381. m: 'một phút',
  16382. mm: '%d phút',
  16383. h: 'một giờ',
  16384. hh: '%d giờ',
  16385. d: 'một ngày',
  16386. dd: '%d ngày',
  16387. w: 'một tuần',
  16388. ww: '%d tuần',
  16389. M: 'một tháng',
  16390. MM: '%d tháng',
  16391. y: 'một năm',
  16392. yy: '%d năm',
  16393. },
  16394. dayOfMonthOrdinalParse: /\d{1,2}/,
  16395. ordinal: function (number) {
  16396. return number;
  16397. },
  16398. week: {
  16399. dow: 1, // Monday is the first day of the week.
  16400. doy: 4, // The week that contains Jan 4th is the first week of the year.
  16401. },
  16402. });
  16403. //! moment.js locale configuration
  16404. hooks.defineLocale('x-pseudo', {
  16405. 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(
  16406. '_'
  16407. ),
  16408. monthsShort: 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split(
  16409. '_'
  16410. ),
  16411. monthsParseExact: true,
  16412. weekdays: 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split(
  16413. '_'
  16414. ),
  16415. weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
  16416. weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
  16417. weekdaysParseExact: true,
  16418. longDateFormat: {
  16419. LT: 'HH:mm',
  16420. L: 'DD/MM/YYYY',
  16421. LL: 'D MMMM YYYY',
  16422. LLL: 'D MMMM YYYY HH:mm',
  16423. LLLL: 'dddd, D MMMM YYYY HH:mm',
  16424. },
  16425. calendar: {
  16426. sameDay: '[T~ódá~ý át] LT',
  16427. nextDay: '[T~ómó~rró~w át] LT',
  16428. nextWeek: 'dddd [át] LT',
  16429. lastDay: '[Ý~ést~érdá~ý át] LT',
  16430. lastWeek: '[L~ást] dddd [át] LT',
  16431. sameElse: 'L',
  16432. },
  16433. relativeTime: {
  16434. future: 'í~ñ %s',
  16435. past: '%s á~gó',
  16436. s: 'á ~féw ~sécó~ñds',
  16437. ss: '%d s~écóñ~ds',
  16438. m: 'á ~míñ~úté',
  16439. mm: '%d m~íñú~tés',
  16440. h: 'á~ñ hó~úr',
  16441. hh: '%d h~óúrs',
  16442. d: 'á ~dáý',
  16443. dd: '%d d~áýs',
  16444. M: 'á ~móñ~th',
  16445. MM: '%d m~óñt~hs',
  16446. y: 'á ~ýéár',
  16447. yy: '%d ý~éárs',
  16448. },
  16449. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  16450. ordinal: function (number) {
  16451. var b = number % 10,
  16452. output =
  16453. ~~((number % 100) / 10) === 1
  16454. ? 'th'
  16455. : b === 1
  16456. ? 'st'
  16457. : b === 2
  16458. ? 'nd'
  16459. : b === 3
  16460. ? 'rd'
  16461. : 'th';
  16462. return number + output;
  16463. },
  16464. week: {
  16465. dow: 1, // Monday is the first day of the week.
  16466. doy: 4, // The week that contains Jan 4th is the first week of the year.
  16467. },
  16468. });
  16469. //! moment.js locale configuration
  16470. hooks.defineLocale('yo', {
  16471. months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split(
  16472. '_'
  16473. ),
  16474. monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),
  16475. weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),
  16476. weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),
  16477. weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),
  16478. longDateFormat: {
  16479. LT: 'h:mm A',
  16480. LTS: 'h:mm:ss A',
  16481. L: 'DD/MM/YYYY',
  16482. LL: 'D MMMM YYYY',
  16483. LLL: 'D MMMM YYYY h:mm A',
  16484. LLLL: 'dddd, D MMMM YYYY h:mm A',
  16485. },
  16486. calendar: {
  16487. sameDay: '[Ònì ni] LT',
  16488. nextDay: '[Ọ̀la ni] LT',
  16489. nextWeek: "dddd [Ọsẹ̀ tón'bọ] [ni] LT",
  16490. lastDay: '[Àna ni] LT',
  16491. lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT',
  16492. sameElse: 'L',
  16493. },
  16494. relativeTime: {
  16495. future: 'ní %s',
  16496. past: '%s kọjá',
  16497. s: 'ìsẹjú aayá die',
  16498. ss: 'aayá %d',
  16499. m: 'ìsẹjú kan',
  16500. mm: 'ìsẹjú %d',
  16501. h: 'wákati kan',
  16502. hh: 'wákati %d',
  16503. d: 'ọjọ́ kan',
  16504. dd: 'ọjọ́ %d',
  16505. M: 'osù kan',
  16506. MM: 'osù %d',
  16507. y: 'ọdún kan',
  16508. yy: 'ọdún %d',
  16509. },
  16510. dayOfMonthOrdinalParse: /ọjọ́\s\d{1,2}/,
  16511. ordinal: 'ọjọ́ %d',
  16512. week: {
  16513. dow: 1, // Monday is the first day of the week.
  16514. doy: 4, // The week that contains Jan 4th is the first week of the year.
  16515. },
  16516. });
  16517. //! moment.js locale configuration
  16518. hooks.defineLocale('zh-cn', {
  16519. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
  16520. '_'
  16521. ),
  16522. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  16523. '_'
  16524. ),
  16525. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  16526. weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),
  16527. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  16528. longDateFormat: {
  16529. LT: 'HH:mm',
  16530. LTS: 'HH:mm:ss',
  16531. L: 'YYYY/MM/DD',
  16532. LL: 'YYYY年M月D日',
  16533. LLL: 'YYYY年M月D日Ah点mm分',
  16534. LLLL: 'YYYY年M月D日ddddAh点mm分',
  16535. l: 'YYYY/M/D',
  16536. ll: 'YYYY年M月D日',
  16537. lll: 'YYYY年M月D日 HH:mm',
  16538. llll: 'YYYY年M月D日dddd HH:mm',
  16539. },
  16540. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  16541. meridiemHour: function (hour, meridiem) {
  16542. if (hour === 12) {
  16543. hour = 0;
  16544. }
  16545. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  16546. return hour;
  16547. } else if (meridiem === '下午' || meridiem === '晚上') {
  16548. return hour + 12;
  16549. } else {
  16550. // '中午'
  16551. return hour >= 11 ? hour : hour + 12;
  16552. }
  16553. },
  16554. meridiem: function (hour, minute, isLower) {
  16555. var hm = hour * 100 + minute;
  16556. if (hm < 600) {
  16557. return '凌晨';
  16558. } else if (hm < 900) {
  16559. return '早上';
  16560. } else if (hm < 1130) {
  16561. return '上午';
  16562. } else if (hm < 1230) {
  16563. return '中午';
  16564. } else if (hm < 1800) {
  16565. return '下午';
  16566. } else {
  16567. return '晚上';
  16568. }
  16569. },
  16570. calendar: {
  16571. sameDay: '[今天]LT',
  16572. nextDay: '[明天]LT',
  16573. nextWeek: function (now) {
  16574. if (now.week() !== this.week()) {
  16575. return '[下]dddLT';
  16576. } else {
  16577. return '[本]dddLT';
  16578. }
  16579. },
  16580. lastDay: '[昨天]LT',
  16581. lastWeek: function (now) {
  16582. if (this.week() !== now.week()) {
  16583. return '[上]dddLT';
  16584. } else {
  16585. return '[本]dddLT';
  16586. }
  16587. },
  16588. sameElse: 'L',
  16589. },
  16590. dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
  16591. ordinal: function (number, period) {
  16592. switch (period) {
  16593. case 'd':
  16594. case 'D':
  16595. case 'DDD':
  16596. return number + '日';
  16597. case 'M':
  16598. return number + '月';
  16599. case 'w':
  16600. case 'W':
  16601. return number + '周';
  16602. default:
  16603. return number;
  16604. }
  16605. },
  16606. relativeTime: {
  16607. future: '%s后',
  16608. past: '%s前',
  16609. s: '几秒',
  16610. ss: '%d 秒',
  16611. m: '1 分钟',
  16612. mm: '%d 分钟',
  16613. h: '1 小时',
  16614. hh: '%d 小时',
  16615. d: '1 天',
  16616. dd: '%d 天',
  16617. w: '1 周',
  16618. ww: '%d 周',
  16619. M: '1 个月',
  16620. MM: '%d 个月',
  16621. y: '1 年',
  16622. yy: '%d 年',
  16623. },
  16624. week: {
  16625. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  16626. dow: 1, // Monday is the first day of the week.
  16627. doy: 4, // The week that contains Jan 4th is the first week of the year.
  16628. },
  16629. });
  16630. //! moment.js locale configuration
  16631. hooks.defineLocale('zh-hk', {
  16632. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
  16633. '_'
  16634. ),
  16635. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  16636. '_'
  16637. ),
  16638. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  16639. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  16640. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  16641. longDateFormat: {
  16642. LT: 'HH:mm',
  16643. LTS: 'HH:mm:ss',
  16644. L: 'YYYY/MM/DD',
  16645. LL: 'YYYY年M月D日',
  16646. LLL: 'YYYY年M月D日 HH:mm',
  16647. LLLL: 'YYYY年M月D日dddd HH:mm',
  16648. l: 'YYYY/M/D',
  16649. ll: 'YYYY年M月D日',
  16650. lll: 'YYYY年M月D日 HH:mm',
  16651. llll: 'YYYY年M月D日dddd HH:mm',
  16652. },
  16653. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  16654. meridiemHour: function (hour, meridiem) {
  16655. if (hour === 12) {
  16656. hour = 0;
  16657. }
  16658. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  16659. return hour;
  16660. } else if (meridiem === '中午') {
  16661. return hour >= 11 ? hour : hour + 12;
  16662. } else if (meridiem === '下午' || meridiem === '晚上') {
  16663. return hour + 12;
  16664. }
  16665. },
  16666. meridiem: function (hour, minute, isLower) {
  16667. var hm = hour * 100 + minute;
  16668. if (hm < 600) {
  16669. return '凌晨';
  16670. } else if (hm < 900) {
  16671. return '早上';
  16672. } else if (hm < 1200) {
  16673. return '上午';
  16674. } else if (hm === 1200) {
  16675. return '中午';
  16676. } else if (hm < 1800) {
  16677. return '下午';
  16678. } else {
  16679. return '晚上';
  16680. }
  16681. },
  16682. calendar: {
  16683. sameDay: '[今天]LT',
  16684. nextDay: '[明天]LT',
  16685. nextWeek: '[下]ddddLT',
  16686. lastDay: '[昨天]LT',
  16687. lastWeek: '[上]ddddLT',
  16688. sameElse: 'L',
  16689. },
  16690. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  16691. ordinal: function (number, period) {
  16692. switch (period) {
  16693. case 'd':
  16694. case 'D':
  16695. case 'DDD':
  16696. return number + '日';
  16697. case 'M':
  16698. return number + '月';
  16699. case 'w':
  16700. case 'W':
  16701. return number + '週';
  16702. default:
  16703. return number;
  16704. }
  16705. },
  16706. relativeTime: {
  16707. future: '%s後',
  16708. past: '%s前',
  16709. s: '幾秒',
  16710. ss: '%d 秒',
  16711. m: '1 分鐘',
  16712. mm: '%d 分鐘',
  16713. h: '1 小時',
  16714. hh: '%d 小時',
  16715. d: '1 天',
  16716. dd: '%d 天',
  16717. M: '1 個月',
  16718. MM: '%d 個月',
  16719. y: '1 年',
  16720. yy: '%d 年',
  16721. },
  16722. });
  16723. //! moment.js locale configuration
  16724. hooks.defineLocale('zh-mo', {
  16725. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
  16726. '_'
  16727. ),
  16728. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  16729. '_'
  16730. ),
  16731. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  16732. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  16733. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  16734. longDateFormat: {
  16735. LT: 'HH:mm',
  16736. LTS: 'HH:mm:ss',
  16737. L: 'DD/MM/YYYY',
  16738. LL: 'YYYY年M月D日',
  16739. LLL: 'YYYY年M月D日 HH:mm',
  16740. LLLL: 'YYYY年M月D日dddd HH:mm',
  16741. l: 'D/M/YYYY',
  16742. ll: 'YYYY年M月D日',
  16743. lll: 'YYYY年M月D日 HH:mm',
  16744. llll: 'YYYY年M月D日dddd HH:mm',
  16745. },
  16746. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  16747. meridiemHour: function (hour, meridiem) {
  16748. if (hour === 12) {
  16749. hour = 0;
  16750. }
  16751. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  16752. return hour;
  16753. } else if (meridiem === '中午') {
  16754. return hour >= 11 ? hour : hour + 12;
  16755. } else if (meridiem === '下午' || meridiem === '晚上') {
  16756. return hour + 12;
  16757. }
  16758. },
  16759. meridiem: function (hour, minute, isLower) {
  16760. var hm = hour * 100 + minute;
  16761. if (hm < 600) {
  16762. return '凌晨';
  16763. } else if (hm < 900) {
  16764. return '早上';
  16765. } else if (hm < 1130) {
  16766. return '上午';
  16767. } else if (hm < 1230) {
  16768. return '中午';
  16769. } else if (hm < 1800) {
  16770. return '下午';
  16771. } else {
  16772. return '晚上';
  16773. }
  16774. },
  16775. calendar: {
  16776. sameDay: '[今天] LT',
  16777. nextDay: '[明天] LT',
  16778. nextWeek: '[下]dddd LT',
  16779. lastDay: '[昨天] LT',
  16780. lastWeek: '[上]dddd LT',
  16781. sameElse: 'L',
  16782. },
  16783. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  16784. ordinal: function (number, period) {
  16785. switch (period) {
  16786. case 'd':
  16787. case 'D':
  16788. case 'DDD':
  16789. return number + '日';
  16790. case 'M':
  16791. return number + '月';
  16792. case 'w':
  16793. case 'W':
  16794. return number + '週';
  16795. default:
  16796. return number;
  16797. }
  16798. },
  16799. relativeTime: {
  16800. future: '%s內',
  16801. past: '%s前',
  16802. s: '幾秒',
  16803. ss: '%d 秒',
  16804. m: '1 分鐘',
  16805. mm: '%d 分鐘',
  16806. h: '1 小時',
  16807. hh: '%d 小時',
  16808. d: '1 天',
  16809. dd: '%d 天',
  16810. M: '1 個月',
  16811. MM: '%d 個月',
  16812. y: '1 年',
  16813. yy: '%d 年',
  16814. },
  16815. });
  16816. //! moment.js locale configuration
  16817. hooks.defineLocale('zh-tw', {
  16818. months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
  16819. '_'
  16820. ),
  16821. monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
  16822. '_'
  16823. ),
  16824. weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  16825. weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  16826. weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
  16827. longDateFormat: {
  16828. LT: 'HH:mm',
  16829. LTS: 'HH:mm:ss',
  16830. L: 'YYYY/MM/DD',
  16831. LL: 'YYYY年M月D日',
  16832. LLL: 'YYYY年M月D日 HH:mm',
  16833. LLLL: 'YYYY年M月D日dddd HH:mm',
  16834. l: 'YYYY/M/D',
  16835. ll: 'YYYY年M月D日',
  16836. lll: 'YYYY年M月D日 HH:mm',
  16837. llll: 'YYYY年M月D日dddd HH:mm',
  16838. },
  16839. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  16840. meridiemHour: function (hour, meridiem) {
  16841. if (hour === 12) {
  16842. hour = 0;
  16843. }
  16844. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  16845. return hour;
  16846. } else if (meridiem === '中午') {
  16847. return hour >= 11 ? hour : hour + 12;
  16848. } else if (meridiem === '下午' || meridiem === '晚上') {
  16849. return hour + 12;
  16850. }
  16851. },
  16852. meridiem: function (hour, minute, isLower) {
  16853. var hm = hour * 100 + minute;
  16854. if (hm < 600) {
  16855. return '凌晨';
  16856. } else if (hm < 900) {
  16857. return '早上';
  16858. } else if (hm < 1130) {
  16859. return '上午';
  16860. } else if (hm < 1230) {
  16861. return '中午';
  16862. } else if (hm < 1800) {
  16863. return '下午';
  16864. } else {
  16865. return '晚上';
  16866. }
  16867. },
  16868. calendar: {
  16869. sameDay: '[今天] LT',
  16870. nextDay: '[明天] LT',
  16871. nextWeek: '[下]dddd LT',
  16872. lastDay: '[昨天] LT',
  16873. lastWeek: '[上]dddd LT',
  16874. sameElse: 'L',
  16875. },
  16876. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  16877. ordinal: function (number, period) {
  16878. switch (period) {
  16879. case 'd':
  16880. case 'D':
  16881. case 'DDD':
  16882. return number + '日';
  16883. case 'M':
  16884. return number + '月';
  16885. case 'w':
  16886. case 'W':
  16887. return number + '週';
  16888. default:
  16889. return number;
  16890. }
  16891. },
  16892. relativeTime: {
  16893. future: '%s後',
  16894. past: '%s前',
  16895. s: '幾秒',
  16896. ss: '%d 秒',
  16897. m: '1 分鐘',
  16898. mm: '%d 分鐘',
  16899. h: '1 小時',
  16900. hh: '%d 小時',
  16901. d: '1 天',
  16902. dd: '%d 天',
  16903. M: '1 個月',
  16904. MM: '%d 個月',
  16905. y: '1 年',
  16906. yy: '%d 年',
  16907. },
  16908. });
  16909. hooks.locale('en');
  16910. return hooks;
  16911. })));