moment-with-locales.js 404 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144
  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 utils_hooks__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 Object.prototype.toString.call(input) === '[object Array]';
  17. }
  18. function isDate(input) {
  19. return input instanceof Date || Object.prototype.toString.call(input) === '[object Date]';
  20. }
  21. function map(arr, fn) {
  22. var res = [], i;
  23. for (i = 0; i < arr.length; ++i) {
  24. res.push(fn(arr[i], i));
  25. }
  26. return res;
  27. }
  28. function hasOwnProp(a, b) {
  29. return Object.prototype.hasOwnProperty.call(a, b);
  30. }
  31. function extend(a, b) {
  32. for (var i in b) {
  33. if (hasOwnProp(b, i)) {
  34. a[i] = b[i];
  35. }
  36. }
  37. if (hasOwnProp(b, 'toString')) {
  38. a.toString = b.toString;
  39. }
  40. if (hasOwnProp(b, 'valueOf')) {
  41. a.valueOf = b.valueOf;
  42. }
  43. return a;
  44. }
  45. function create_utc__createUTC (input, format, locale, strict) {
  46. return createLocalOrUTC(input, format, locale, strict, true).utc();
  47. }
  48. function defaultParsingFlags() {
  49. // We need to deep clone this object.
  50. return {
  51. empty : false,
  52. unusedTokens : [],
  53. unusedInput : [],
  54. overflow : -2,
  55. charsLeftOver : 0,
  56. nullInput : false,
  57. invalidMonth : null,
  58. invalidFormat : false,
  59. userInvalidated : false,
  60. iso : false
  61. };
  62. }
  63. function getParsingFlags(m) {
  64. if (m._pf == null) {
  65. m._pf = defaultParsingFlags();
  66. }
  67. return m._pf;
  68. }
  69. function valid__isValid(m) {
  70. if (m._isValid == null) {
  71. var flags = getParsingFlags(m);
  72. m._isValid = !isNaN(m._d.getTime()) &&
  73. flags.overflow < 0 &&
  74. !flags.empty &&
  75. !flags.invalidMonth &&
  76. !flags.invalidWeekday &&
  77. !flags.nullInput &&
  78. !flags.invalidFormat &&
  79. !flags.userInvalidated;
  80. if (m._strict) {
  81. m._isValid = m._isValid &&
  82. flags.charsLeftOver === 0 &&
  83. flags.unusedTokens.length === 0 &&
  84. flags.bigHour === undefined;
  85. }
  86. }
  87. return m._isValid;
  88. }
  89. function valid__createInvalid (flags) {
  90. var m = create_utc__createUTC(NaN);
  91. if (flags != null) {
  92. extend(getParsingFlags(m), flags);
  93. }
  94. else {
  95. getParsingFlags(m).userInvalidated = true;
  96. }
  97. return m;
  98. }
  99. function isUndefined(input) {
  100. return input === void 0;
  101. }
  102. // Plugins that add properties should also add the key here (null value),
  103. // so we can properly clone ourselves.
  104. var momentProperties = utils_hooks__hooks.momentProperties = [];
  105. function copyConfig(to, from) {
  106. var i, prop, val;
  107. if (!isUndefined(from._isAMomentObject)) {
  108. to._isAMomentObject = from._isAMomentObject;
  109. }
  110. if (!isUndefined(from._i)) {
  111. to._i = from._i;
  112. }
  113. if (!isUndefined(from._f)) {
  114. to._f = from._f;
  115. }
  116. if (!isUndefined(from._l)) {
  117. to._l = from._l;
  118. }
  119. if (!isUndefined(from._strict)) {
  120. to._strict = from._strict;
  121. }
  122. if (!isUndefined(from._tzm)) {
  123. to._tzm = from._tzm;
  124. }
  125. if (!isUndefined(from._isUTC)) {
  126. to._isUTC = from._isUTC;
  127. }
  128. if (!isUndefined(from._offset)) {
  129. to._offset = from._offset;
  130. }
  131. if (!isUndefined(from._pf)) {
  132. to._pf = getParsingFlags(from);
  133. }
  134. if (!isUndefined(from._locale)) {
  135. to._locale = from._locale;
  136. }
  137. if (momentProperties.length > 0) {
  138. for (i in momentProperties) {
  139. prop = momentProperties[i];
  140. val = from[prop];
  141. if (!isUndefined(val)) {
  142. to[prop] = val;
  143. }
  144. }
  145. }
  146. return to;
  147. }
  148. var updateInProgress = false;
  149. // Moment prototype object
  150. function Moment(config) {
  151. copyConfig(this, config);
  152. this._d = new Date(config._d != null ? config._d.getTime() : NaN);
  153. // Prevent infinite loop in case updateOffset creates new moment
  154. // objects.
  155. if (updateInProgress === false) {
  156. updateInProgress = true;
  157. utils_hooks__hooks.updateOffset(this);
  158. updateInProgress = false;
  159. }
  160. }
  161. function isMoment (obj) {
  162. return obj instanceof Moment || (obj != null && obj._isAMomentObject != null);
  163. }
  164. function absFloor (number) {
  165. if (number < 0) {
  166. return Math.ceil(number);
  167. } else {
  168. return Math.floor(number);
  169. }
  170. }
  171. function toInt(argumentForCoercion) {
  172. var coercedNumber = +argumentForCoercion,
  173. value = 0;
  174. if (coercedNumber !== 0 && isFinite(coercedNumber)) {
  175. value = absFloor(coercedNumber);
  176. }
  177. return value;
  178. }
  179. // compare two arrays, return the number of differences
  180. function compareArrays(array1, array2, dontConvert) {
  181. var len = Math.min(array1.length, array2.length),
  182. lengthDiff = Math.abs(array1.length - array2.length),
  183. diffs = 0,
  184. i;
  185. for (i = 0; i < len; i++) {
  186. if ((dontConvert && array1[i] !== array2[i]) ||
  187. (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) {
  188. diffs++;
  189. }
  190. }
  191. return diffs + lengthDiff;
  192. }
  193. function Locale() {
  194. }
  195. // internal storage for locale config files
  196. var locales = {};
  197. var globalLocale;
  198. function normalizeLocale(key) {
  199. return key ? key.toLowerCase().replace('_', '-') : key;
  200. }
  201. // pick the locale from the array
  202. // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
  203. // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
  204. function chooseLocale(names) {
  205. var i = 0, j, next, locale, split;
  206. while (i < names.length) {
  207. split = normalizeLocale(names[i]).split('-');
  208. j = split.length;
  209. next = normalizeLocale(names[i + 1]);
  210. next = next ? next.split('-') : null;
  211. while (j > 0) {
  212. locale = loadLocale(split.slice(0, j).join('-'));
  213. if (locale) {
  214. return locale;
  215. }
  216. if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {
  217. //the next array item is better than a shallower substring of this one
  218. break;
  219. }
  220. j--;
  221. }
  222. i++;
  223. }
  224. return null;
  225. }
  226. function loadLocale(name) {
  227. var oldLocale = null;
  228. // TODO: Find a better way to register and load all the locales in Node
  229. if (!locales[name] && (typeof module !== 'undefined') &&
  230. module && module.exports) {
  231. try {
  232. oldLocale = globalLocale._abbr;
  233. require('./locale/' + name);
  234. // because defineLocale currently also sets the global locale, we
  235. // want to undo that for lazy loaded locales
  236. locale_locales__getSetGlobalLocale(oldLocale);
  237. } catch (e) { }
  238. }
  239. return locales[name];
  240. }
  241. // This function will load locale and then set the global locale. If
  242. // no arguments are passed in, it will simply return the current global
  243. // locale key.
  244. function locale_locales__getSetGlobalLocale (key, values) {
  245. var data;
  246. if (key) {
  247. if (isUndefined(values)) {
  248. data = locale_locales__getLocale(key);
  249. }
  250. else {
  251. data = defineLocale(key, values);
  252. }
  253. if (data) {
  254. // moment.duration._locale = moment._locale = data;
  255. globalLocale = data;
  256. }
  257. }
  258. return globalLocale._abbr;
  259. }
  260. function defineLocale (name, values) {
  261. if (values !== null) {
  262. values.abbr = name;
  263. locales[name] = locales[name] || new Locale();
  264. locales[name].set(values);
  265. // backwards compat for now: also set the locale
  266. locale_locales__getSetGlobalLocale(name);
  267. return locales[name];
  268. } else {
  269. // useful for testing
  270. delete locales[name];
  271. return null;
  272. }
  273. }
  274. // returns locale data
  275. function locale_locales__getLocale (key) {
  276. var locale;
  277. if (key && key._locale && key._locale._abbr) {
  278. key = key._locale._abbr;
  279. }
  280. if (!key) {
  281. return globalLocale;
  282. }
  283. if (!isArray(key)) {
  284. //short-circuit everything else
  285. locale = loadLocale(key);
  286. if (locale) {
  287. return locale;
  288. }
  289. key = [key];
  290. }
  291. return chooseLocale(key);
  292. }
  293. var aliases = {};
  294. function addUnitAlias (unit, shorthand) {
  295. var lowerCase = unit.toLowerCase();
  296. aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
  297. }
  298. function normalizeUnits(units) {
  299. return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined;
  300. }
  301. function normalizeObjectUnits(inputObject) {
  302. var normalizedInput = {},
  303. normalizedProp,
  304. prop;
  305. for (prop in inputObject) {
  306. if (hasOwnProp(inputObject, prop)) {
  307. normalizedProp = normalizeUnits(prop);
  308. if (normalizedProp) {
  309. normalizedInput[normalizedProp] = inputObject[prop];
  310. }
  311. }
  312. }
  313. return normalizedInput;
  314. }
  315. function isFunction(input) {
  316. return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
  317. }
  318. function makeGetSet (unit, keepTime) {
  319. return function (value) {
  320. if (value != null) {
  321. get_set__set(this, unit, value);
  322. utils_hooks__hooks.updateOffset(this, keepTime);
  323. return this;
  324. } else {
  325. return get_set__get(this, unit);
  326. }
  327. };
  328. }
  329. function get_set__get (mom, unit) {
  330. return mom.isValid() ?
  331. mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() : NaN;
  332. }
  333. function get_set__set (mom, unit, value) {
  334. if (mom.isValid()) {
  335. mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
  336. }
  337. }
  338. // MOMENTS
  339. function getSet (units, value) {
  340. var unit;
  341. if (typeof units === 'object') {
  342. for (unit in units) {
  343. this.set(unit, units[unit]);
  344. }
  345. } else {
  346. units = normalizeUnits(units);
  347. if (isFunction(this[units])) {
  348. return this[units](value);
  349. }
  350. }
  351. return this;
  352. }
  353. function zeroFill(number, targetLength, forceSign) {
  354. var absNumber = '' + Math.abs(number),
  355. zerosToFill = targetLength - absNumber.length,
  356. sign = number >= 0;
  357. return (sign ? (forceSign ? '+' : '') : '-') +
  358. Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;
  359. }
  360. var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;
  361. var localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g;
  362. var formatFunctions = {};
  363. var formatTokenFunctions = {};
  364. // token: 'M'
  365. // padded: ['MM', 2]
  366. // ordinal: 'Mo'
  367. // callback: function () { this.month() + 1 }
  368. function addFormatToken (token, padded, ordinal, callback) {
  369. var func = callback;
  370. if (typeof callback === 'string') {
  371. func = function () {
  372. return this[callback]();
  373. };
  374. }
  375. if (token) {
  376. formatTokenFunctions[token] = func;
  377. }
  378. if (padded) {
  379. formatTokenFunctions[padded[0]] = function () {
  380. return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
  381. };
  382. }
  383. if (ordinal) {
  384. formatTokenFunctions[ordinal] = function () {
  385. return this.localeData().ordinal(func.apply(this, arguments), token);
  386. };
  387. }
  388. }
  389. function removeFormattingTokens(input) {
  390. if (input.match(/\[[\s\S]/)) {
  391. return input.replace(/^\[|\]$/g, '');
  392. }
  393. return input.replace(/\\/g, '');
  394. }
  395. function makeFormatFunction(format) {
  396. var array = format.match(formattingTokens), i, length;
  397. for (i = 0, length = array.length; i < length; i++) {
  398. if (formatTokenFunctions[array[i]]) {
  399. array[i] = formatTokenFunctions[array[i]];
  400. } else {
  401. array[i] = removeFormattingTokens(array[i]);
  402. }
  403. }
  404. return function (mom) {
  405. var output = '';
  406. for (i = 0; i < length; i++) {
  407. output += array[i] instanceof Function ? array[i].call(mom, format) : array[i];
  408. }
  409. return output;
  410. };
  411. }
  412. // format date using native date object
  413. function formatMoment(m, format) {
  414. if (!m.isValid()) {
  415. return m.localeData().invalidDate();
  416. }
  417. format = expandFormat(format, m.localeData());
  418. formatFunctions[format] = formatFunctions[format] || makeFormatFunction(format);
  419. return formatFunctions[format](m);
  420. }
  421. function expandFormat(format, locale) {
  422. var i = 5;
  423. function replaceLongDateFormatTokens(input) {
  424. return locale.longDateFormat(input) || input;
  425. }
  426. localFormattingTokens.lastIndex = 0;
  427. while (i >= 0 && localFormattingTokens.test(format)) {
  428. format = format.replace(localFormattingTokens, replaceLongDateFormatTokens);
  429. localFormattingTokens.lastIndex = 0;
  430. i -= 1;
  431. }
  432. return format;
  433. }
  434. var match1 = /\d/; // 0 - 9
  435. var match2 = /\d\d/; // 00 - 99
  436. var match3 = /\d{3}/; // 000 - 999
  437. var match4 = /\d{4}/; // 0000 - 9999
  438. var match6 = /[+-]?\d{6}/; // -999999 - 999999
  439. var match1to2 = /\d\d?/; // 0 - 99
  440. var match3to4 = /\d\d\d\d?/; // 999 - 9999
  441. var match5to6 = /\d\d\d\d\d\d?/; // 99999 - 999999
  442. var match1to3 = /\d{1,3}/; // 0 - 999
  443. var match1to4 = /\d{1,4}/; // 0 - 9999
  444. var match1to6 = /[+-]?\d{1,6}/; // -999999 - 999999
  445. var matchUnsigned = /\d+/; // 0 - inf
  446. var matchSigned = /[+-]?\d+/; // -inf - inf
  447. var matchOffset = /Z|[+-]\d\d:?\d\d/gi; // +00:00 -00:00 +0000 -0000 or Z
  448. var matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi; // +00 -00 +00:00 -00:00 +0000 -0000 or Z
  449. var matchTimestamp = /[+-]?\d+(\.\d{1,3})?/; // 123456789 123456789.123
  450. // any word (or two) characters or numbers including two/three word month in arabic.
  451. // includes scottish gaelic two word and hyphenated months
  452. var matchWord = /[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i;
  453. var regexes = {};
  454. function addRegexToken (token, regex, strictRegex) {
  455. regexes[token] = isFunction(regex) ? regex : function (isStrict, localeData) {
  456. return (isStrict && strictRegex) ? strictRegex : regex;
  457. };
  458. }
  459. function getParseRegexForToken (token, config) {
  460. if (!hasOwnProp(regexes, token)) {
  461. return new RegExp(unescapeFormat(token));
  462. }
  463. return regexes[token](config._strict, config._locale);
  464. }
  465. // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
  466. function unescapeFormat(s) {
  467. return regexEscape(s.replace('\\', '').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) {
  468. return p1 || p2 || p3 || p4;
  469. }));
  470. }
  471. function regexEscape(s) {
  472. return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
  473. }
  474. var tokens = {};
  475. function addParseToken (token, callback) {
  476. var i, func = callback;
  477. if (typeof token === 'string') {
  478. token = [token];
  479. }
  480. if (typeof callback === 'number') {
  481. func = function (input, array) {
  482. array[callback] = toInt(input);
  483. };
  484. }
  485. for (i = 0; i < token.length; i++) {
  486. tokens[token[i]] = func;
  487. }
  488. }
  489. function addWeekParseToken (token, callback) {
  490. addParseToken(token, function (input, array, config, token) {
  491. config._w = config._w || {};
  492. callback(input, config._w, config, token);
  493. });
  494. }
  495. function addTimeToArrayFromToken(token, input, config) {
  496. if (input != null && hasOwnProp(tokens, token)) {
  497. tokens[token](input, config._a, config, token);
  498. }
  499. }
  500. var YEAR = 0;
  501. var MONTH = 1;
  502. var DATE = 2;
  503. var HOUR = 3;
  504. var MINUTE = 4;
  505. var SECOND = 5;
  506. var MILLISECOND = 6;
  507. var WEEK = 7;
  508. var WEEKDAY = 8;
  509. function daysInMonth(year, month) {
  510. return new Date(Date.UTC(year, month + 1, 0)).getUTCDate();
  511. }
  512. // FORMATTING
  513. addFormatToken('M', ['MM', 2], 'Mo', function () {
  514. return this.month() + 1;
  515. });
  516. addFormatToken('MMM', 0, 0, function (format) {
  517. return this.localeData().monthsShort(this, format);
  518. });
  519. addFormatToken('MMMM', 0, 0, function (format) {
  520. return this.localeData().months(this, format);
  521. });
  522. // ALIASES
  523. addUnitAlias('month', 'M');
  524. // PARSING
  525. addRegexToken('M', match1to2);
  526. addRegexToken('MM', match1to2, match2);
  527. addRegexToken('MMM', function (isStrict, locale) {
  528. return locale.monthsShortRegex(isStrict);
  529. });
  530. addRegexToken('MMMM', function (isStrict, locale) {
  531. return locale.monthsRegex(isStrict);
  532. });
  533. addParseToken(['M', 'MM'], function (input, array) {
  534. array[MONTH] = toInt(input) - 1;
  535. });
  536. addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
  537. var month = config._locale.monthsParse(input, token, config._strict);
  538. // if we didn't find a month name, mark the date as invalid.
  539. if (month != null) {
  540. array[MONTH] = month;
  541. } else {
  542. getParsingFlags(config).invalidMonth = input;
  543. }
  544. });
  545. // LOCALES
  546. var MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/;
  547. var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_');
  548. function localeMonths (m, format) {
  549. return isArray(this._months) ? this._months[m.month()] :
  550. this._months[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][m.month()];
  551. }
  552. var defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_');
  553. function localeMonthsShort (m, format) {
  554. return isArray(this._monthsShort) ? this._monthsShort[m.month()] :
  555. this._monthsShort[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][m.month()];
  556. }
  557. function localeMonthsParse (monthName, format, strict) {
  558. var i, mom, regex;
  559. if (!this._monthsParse) {
  560. this._monthsParse = [];
  561. this._longMonthsParse = [];
  562. this._shortMonthsParse = [];
  563. }
  564. for (i = 0; i < 12; i++) {
  565. // make the regex if we don't have it already
  566. mom = create_utc__createUTC([2000, i]);
  567. if (strict && !this._longMonthsParse[i]) {
  568. this._longMonthsParse[i] = new RegExp('^' + this.months(mom, '').replace('.', '') + '$', 'i');
  569. this._shortMonthsParse[i] = new RegExp('^' + this.monthsShort(mom, '').replace('.', '') + '$', 'i');
  570. }
  571. if (!strict && !this._monthsParse[i]) {
  572. regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
  573. this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
  574. }
  575. // test the regex
  576. if (strict && format === 'MMMM' && this._longMonthsParse[i].test(monthName)) {
  577. return i;
  578. } else if (strict && format === 'MMM' && this._shortMonthsParse[i].test(monthName)) {
  579. return i;
  580. } else if (!strict && this._monthsParse[i].test(monthName)) {
  581. return i;
  582. }
  583. }
  584. }
  585. // MOMENTS
  586. function setMonth (mom, value) {
  587. var dayOfMonth;
  588. if (!mom.isValid()) {
  589. // No op
  590. return mom;
  591. }
  592. // TODO: Move this out of here!
  593. if (typeof value === 'string') {
  594. value = mom.localeData().monthsParse(value);
  595. // TODO: Another silent failure?
  596. if (typeof value !== 'number') {
  597. return mom;
  598. }
  599. }
  600. dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
  601. mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
  602. return mom;
  603. }
  604. function getSetMonth (value) {
  605. if (value != null) {
  606. setMonth(this, value);
  607. utils_hooks__hooks.updateOffset(this, true);
  608. return this;
  609. } else {
  610. return get_set__get(this, 'Month');
  611. }
  612. }
  613. function getDaysInMonth () {
  614. return daysInMonth(this.year(), this.month());
  615. }
  616. var defaultMonthsShortRegex = matchWord;
  617. function monthsShortRegex (isStrict) {
  618. if (this._monthsParseExact) {
  619. if (!hasOwnProp(this, '_monthsRegex')) {
  620. computeMonthsParse.call(this);
  621. }
  622. if (isStrict) {
  623. return this._monthsShortStrictRegex;
  624. } else {
  625. return this._monthsShortRegex;
  626. }
  627. } else {
  628. return this._monthsShortStrictRegex && isStrict ?
  629. this._monthsShortStrictRegex : this._monthsShortRegex;
  630. }
  631. }
  632. var defaultMonthsRegex = matchWord;
  633. function monthsRegex (isStrict) {
  634. if (this._monthsParseExact) {
  635. if (!hasOwnProp(this, '_monthsRegex')) {
  636. computeMonthsParse.call(this);
  637. }
  638. if (isStrict) {
  639. return this._monthsStrictRegex;
  640. } else {
  641. return this._monthsRegex;
  642. }
  643. } else {
  644. return this._monthsStrictRegex && isStrict ?
  645. this._monthsStrictRegex : this._monthsRegex;
  646. }
  647. }
  648. function computeMonthsParse () {
  649. function cmpLenRev(a, b) {
  650. return b.length - a.length;
  651. }
  652. var shortPieces = [], longPieces = [], mixedPieces = [],
  653. i, mom;
  654. for (i = 0; i < 12; i++) {
  655. // make the regex if we don't have it already
  656. mom = create_utc__createUTC([2000, i]);
  657. shortPieces.push(this.monthsShort(mom, ''));
  658. longPieces.push(this.months(mom, ''));
  659. mixedPieces.push(this.months(mom, ''));
  660. mixedPieces.push(this.monthsShort(mom, ''));
  661. }
  662. // Sorting makes sure if one month (or abbr) is a prefix of another it
  663. // will match the longer piece.
  664. shortPieces.sort(cmpLenRev);
  665. longPieces.sort(cmpLenRev);
  666. mixedPieces.sort(cmpLenRev);
  667. for (i = 0; i < 12; i++) {
  668. shortPieces[i] = regexEscape(shortPieces[i]);
  669. longPieces[i] = regexEscape(longPieces[i]);
  670. mixedPieces[i] = regexEscape(mixedPieces[i]);
  671. }
  672. this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  673. this._monthsShortRegex = this._monthsRegex;
  674. this._monthsStrictRegex = new RegExp('^(' + longPieces.join('|') + ')$', 'i');
  675. this._monthsShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')$', 'i');
  676. }
  677. function checkOverflow (m) {
  678. var overflow;
  679. var a = m._a;
  680. if (a && getParsingFlags(m).overflow === -2) {
  681. overflow =
  682. a[MONTH] < 0 || a[MONTH] > 11 ? MONTH :
  683. a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE :
  684. a[HOUR] < 0 || a[HOUR] > 24 || (a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0)) ? HOUR :
  685. a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE :
  686. a[SECOND] < 0 || a[SECOND] > 59 ? SECOND :
  687. a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND :
  688. -1;
  689. if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) {
  690. overflow = DATE;
  691. }
  692. if (getParsingFlags(m)._overflowWeeks && overflow === -1) {
  693. overflow = WEEK;
  694. }
  695. if (getParsingFlags(m)._overflowWeekday && overflow === -1) {
  696. overflow = WEEKDAY;
  697. }
  698. getParsingFlags(m).overflow = overflow;
  699. }
  700. return m;
  701. }
  702. function warn(msg) {
  703. if (utils_hooks__hooks.suppressDeprecationWarnings === false &&
  704. (typeof console !== 'undefined') && console.warn) {
  705. console.warn('Deprecation warning: ' + msg);
  706. }
  707. }
  708. function deprecate(msg, fn) {
  709. var firstTime = true;
  710. return extend(function () {
  711. if (firstTime) {
  712. warn(msg + '\nArguments: ' + Array.prototype.slice.call(arguments).join(', ') + '\n' + (new Error()).stack);
  713. firstTime = false;
  714. }
  715. return fn.apply(this, arguments);
  716. }, fn);
  717. }
  718. var deprecations = {};
  719. function deprecateSimple(name, msg) {
  720. if (!deprecations[name]) {
  721. warn(msg);
  722. deprecations[name] = true;
  723. }
  724. }
  725. utils_hooks__hooks.suppressDeprecationWarnings = false;
  726. // iso 8601 regex
  727. // 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)
  728. 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)?)?/;
  729. var 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)?)?/;
  730. var tzRegex = /Z|[+-]\d\d(?::?\d\d)?/;
  731. var isoDates = [
  732. ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
  733. ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/],
  734. ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/],
  735. ['GGGG-[W]WW', /\d{4}-W\d\d/, false],
  736. ['YYYY-DDD', /\d{4}-\d{3}/],
  737. ['YYYY-MM', /\d{4}-\d\d/, false],
  738. ['YYYYYYMMDD', /[+-]\d{10}/],
  739. ['YYYYMMDD', /\d{8}/],
  740. // YYYYMM is NOT allowed by the standard
  741. ['GGGG[W]WWE', /\d{4}W\d{3}/],
  742. ['GGGG[W]WW', /\d{4}W\d{2}/, false],
  743. ['YYYYDDD', /\d{7}/]
  744. ];
  745. // iso time formats and regexes
  746. var isoTimes = [
  747. ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/],
  748. ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/],
  749. ['HH:mm:ss', /\d\d:\d\d:\d\d/],
  750. ['HH:mm', /\d\d:\d\d/],
  751. ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/],
  752. ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/],
  753. ['HHmmss', /\d\d\d\d\d\d/],
  754. ['HHmm', /\d\d\d\d/],
  755. ['HH', /\d\d/]
  756. ];
  757. var aspNetJsonRegex = /^\/?Date\((\-?\d+)/i;
  758. // date from iso format
  759. function configFromISO(config) {
  760. var i, l,
  761. string = config._i,
  762. match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
  763. allowTime, dateFormat, timeFormat, tzFormat;
  764. if (match) {
  765. getParsingFlags(config).iso = true;
  766. for (i = 0, l = isoDates.length; i < l; i++) {
  767. if (isoDates[i][1].exec(match[1])) {
  768. dateFormat = isoDates[i][0];
  769. allowTime = isoDates[i][2] !== false;
  770. break;
  771. }
  772. }
  773. if (dateFormat == null) {
  774. config._isValid = false;
  775. return;
  776. }
  777. if (match[3]) {
  778. for (i = 0, l = isoTimes.length; i < l; i++) {
  779. if (isoTimes[i][1].exec(match[3])) {
  780. // match[2] should be 'T' or space
  781. timeFormat = (match[2] || ' ') + isoTimes[i][0];
  782. break;
  783. }
  784. }
  785. if (timeFormat == null) {
  786. config._isValid = false;
  787. return;
  788. }
  789. }
  790. if (!allowTime && timeFormat != null) {
  791. config._isValid = false;
  792. return;
  793. }
  794. if (match[4]) {
  795. if (tzRegex.exec(match[4])) {
  796. tzFormat = 'Z';
  797. } else {
  798. config._isValid = false;
  799. return;
  800. }
  801. }
  802. config._f = dateFormat + (timeFormat || '') + (tzFormat || '');
  803. configFromStringAndFormat(config);
  804. } else {
  805. config._isValid = false;
  806. }
  807. }
  808. // date from iso format or fallback
  809. function configFromString(config) {
  810. var matched = aspNetJsonRegex.exec(config._i);
  811. if (matched !== null) {
  812. config._d = new Date(+matched[1]);
  813. return;
  814. }
  815. configFromISO(config);
  816. if (config._isValid === false) {
  817. delete config._isValid;
  818. utils_hooks__hooks.createFromInputFallback(config);
  819. }
  820. }
  821. utils_hooks__hooks.createFromInputFallback = deprecate(
  822. 'moment construction falls back to js Date. This is ' +
  823. 'discouraged and will be removed in upcoming major ' +
  824. 'release. Please refer to ' +
  825. 'https://github.com/moment/moment/issues/1407 for more info.',
  826. function (config) {
  827. config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
  828. }
  829. );
  830. function createDate (y, m, d, h, M, s, ms) {
  831. //can't just apply() to create a date:
  832. //http://stackoverflow.com/questions/181348/instantiating-a-javascript-object-by-calling-prototype-constructor-apply
  833. var date = new Date(y, m, d, h, M, s, ms);
  834. //the date constructor remaps years 0-99 to 1900-1999
  835. if (y < 100 && y >= 0 && isFinite(date.getFullYear())) {
  836. date.setFullYear(y);
  837. }
  838. return date;
  839. }
  840. function createUTCDate (y) {
  841. var date = new Date(Date.UTC.apply(null, arguments));
  842. //the Date.UTC function remaps years 0-99 to 1900-1999
  843. if (y < 100 && y >= 0 && isFinite(date.getUTCFullYear())) {
  844. date.setUTCFullYear(y);
  845. }
  846. return date;
  847. }
  848. // FORMATTING
  849. addFormatToken('Y', 0, 0, function () {
  850. var y = this.year();
  851. return y <= 9999 ? '' + y : '+' + y;
  852. });
  853. addFormatToken(0, ['YY', 2], 0, function () {
  854. return this.year() % 100;
  855. });
  856. addFormatToken(0, ['YYYY', 4], 0, 'year');
  857. addFormatToken(0, ['YYYYY', 5], 0, 'year');
  858. addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
  859. // ALIASES
  860. addUnitAlias('year', 'y');
  861. // PARSING
  862. addRegexToken('Y', matchSigned);
  863. addRegexToken('YY', match1to2, match2);
  864. addRegexToken('YYYY', match1to4, match4);
  865. addRegexToken('YYYYY', match1to6, match6);
  866. addRegexToken('YYYYYY', match1to6, match6);
  867. addParseToken(['YYYYY', 'YYYYYY'], YEAR);
  868. addParseToken('YYYY', function (input, array) {
  869. array[YEAR] = input.length === 2 ? utils_hooks__hooks.parseTwoDigitYear(input) : toInt(input);
  870. });
  871. addParseToken('YY', function (input, array) {
  872. array[YEAR] = utils_hooks__hooks.parseTwoDigitYear(input);
  873. });
  874. addParseToken('Y', function (input, array) {
  875. array[YEAR] = parseInt(input, 10);
  876. });
  877. // HELPERS
  878. function daysInYear(year) {
  879. return isLeapYear(year) ? 366 : 365;
  880. }
  881. function isLeapYear(year) {
  882. return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
  883. }
  884. // HOOKS
  885. utils_hooks__hooks.parseTwoDigitYear = function (input) {
  886. return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
  887. };
  888. // MOMENTS
  889. var getSetYear = makeGetSet('FullYear', false);
  890. function getIsLeapYear () {
  891. return isLeapYear(this.year());
  892. }
  893. // start-of-first-week - start-of-year
  894. function firstWeekOffset(year, dow, doy) {
  895. var // first-week day -- which january is always in the first week (4 for iso, 1 for other)
  896. fwd = 7 + dow - doy,
  897. // first-week day local weekday -- which local weekday is fwd
  898. fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
  899. return -fwdlw + fwd - 1;
  900. }
  901. //http://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
  902. function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
  903. var localWeekday = (7 + weekday - dow) % 7,
  904. weekOffset = firstWeekOffset(year, dow, doy),
  905. dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,
  906. resYear, resDayOfYear;
  907. if (dayOfYear <= 0) {
  908. resYear = year - 1;
  909. resDayOfYear = daysInYear(resYear) + dayOfYear;
  910. } else if (dayOfYear > daysInYear(year)) {
  911. resYear = year + 1;
  912. resDayOfYear = dayOfYear - daysInYear(year);
  913. } else {
  914. resYear = year;
  915. resDayOfYear = dayOfYear;
  916. }
  917. return {
  918. year: resYear,
  919. dayOfYear: resDayOfYear
  920. };
  921. }
  922. function weekOfYear(mom, dow, doy) {
  923. var weekOffset = firstWeekOffset(mom.year(), dow, doy),
  924. week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,
  925. resWeek, resYear;
  926. if (week < 1) {
  927. resYear = mom.year() - 1;
  928. resWeek = week + weeksInYear(resYear, dow, doy);
  929. } else if (week > weeksInYear(mom.year(), dow, doy)) {
  930. resWeek = week - weeksInYear(mom.year(), dow, doy);
  931. resYear = mom.year() + 1;
  932. } else {
  933. resYear = mom.year();
  934. resWeek = week;
  935. }
  936. return {
  937. week: resWeek,
  938. year: resYear
  939. };
  940. }
  941. function weeksInYear(year, dow, doy) {
  942. var weekOffset = firstWeekOffset(year, dow, doy),
  943. weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
  944. return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
  945. }
  946. // Pick the first defined of two or three arguments.
  947. function defaults(a, b, c) {
  948. if (a != null) {
  949. return a;
  950. }
  951. if (b != null) {
  952. return b;
  953. }
  954. return c;
  955. }
  956. function currentDateArray(config) {
  957. // hooks is actually the exported moment object
  958. var nowValue = new Date(utils_hooks__hooks.now());
  959. if (config._useUTC) {
  960. return [nowValue.getUTCFullYear(), nowValue.getUTCMonth(), nowValue.getUTCDate()];
  961. }
  962. return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
  963. }
  964. // convert an array to a date.
  965. // the array should mirror the parameters below
  966. // note: all values past the year are optional and will default to the lowest possible value.
  967. // [year, month, day , hour, minute, second, millisecond]
  968. function configFromArray (config) {
  969. var i, date, input = [], currentDate, yearToUse;
  970. if (config._d) {
  971. return;
  972. }
  973. currentDate = currentDateArray(config);
  974. //compute day of the year from weeks and weekdays
  975. if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
  976. dayOfYearFromWeekInfo(config);
  977. }
  978. //if the day of the year is set, figure out what it is
  979. if (config._dayOfYear) {
  980. yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);
  981. if (config._dayOfYear > daysInYear(yearToUse)) {
  982. getParsingFlags(config)._overflowDayOfYear = true;
  983. }
  984. date = createUTCDate(yearToUse, 0, config._dayOfYear);
  985. config._a[MONTH] = date.getUTCMonth();
  986. config._a[DATE] = date.getUTCDate();
  987. }
  988. // Default to current date.
  989. // * if no year, month, day of month are given, default to today
  990. // * if day of month is given, default month and year
  991. // * if month is given, default only year
  992. // * if year is given, don't default anything
  993. for (i = 0; i < 3 && config._a[i] == null; ++i) {
  994. config._a[i] = input[i] = currentDate[i];
  995. }
  996. // Zero out whatever was not defaulted, including time
  997. for (; i < 7; i++) {
  998. config._a[i] = input[i] = (config._a[i] == null) ? (i === 2 ? 1 : 0) : config._a[i];
  999. }
  1000. // Check for 24:00:00.000
  1001. if (config._a[HOUR] === 24 &&
  1002. config._a[MINUTE] === 0 &&
  1003. config._a[SECOND] === 0 &&
  1004. config._a[MILLISECOND] === 0) {
  1005. config._nextDay = true;
  1006. config._a[HOUR] = 0;
  1007. }
  1008. config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input);
  1009. // Apply timezone offset from input. The actual utcOffset can be changed
  1010. // with parseZone.
  1011. if (config._tzm != null) {
  1012. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  1013. }
  1014. if (config._nextDay) {
  1015. config._a[HOUR] = 24;
  1016. }
  1017. }
  1018. function dayOfYearFromWeekInfo(config) {
  1019. var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow;
  1020. w = config._w;
  1021. if (w.GG != null || w.W != null || w.E != null) {
  1022. dow = 1;
  1023. doy = 4;
  1024. // TODO: We need to take the current isoWeekYear, but that depends on
  1025. // how we interpret now (local, utc, fixed offset). So create
  1026. // a now version of current config (take local/utc/offset flags, and
  1027. // create now).
  1028. weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(local__createLocal(), 1, 4).year);
  1029. week = defaults(w.W, 1);
  1030. weekday = defaults(w.E, 1);
  1031. if (weekday < 1 || weekday > 7) {
  1032. weekdayOverflow = true;
  1033. }
  1034. } else {
  1035. dow = config._locale._week.dow;
  1036. doy = config._locale._week.doy;
  1037. weekYear = defaults(w.gg, config._a[YEAR], weekOfYear(local__createLocal(), dow, doy).year);
  1038. week = defaults(w.w, 1);
  1039. if (w.d != null) {
  1040. // weekday -- low day numbers are considered next week
  1041. weekday = w.d;
  1042. if (weekday < 0 || weekday > 6) {
  1043. weekdayOverflow = true;
  1044. }
  1045. } else if (w.e != null) {
  1046. // local weekday -- counting starts from begining of week
  1047. weekday = w.e + dow;
  1048. if (w.e < 0 || w.e > 6) {
  1049. weekdayOverflow = true;
  1050. }
  1051. } else {
  1052. // default to begining of week
  1053. weekday = dow;
  1054. }
  1055. }
  1056. if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {
  1057. getParsingFlags(config)._overflowWeeks = true;
  1058. } else if (weekdayOverflow != null) {
  1059. getParsingFlags(config)._overflowWeekday = true;
  1060. } else {
  1061. temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);
  1062. config._a[YEAR] = temp.year;
  1063. config._dayOfYear = temp.dayOfYear;
  1064. }
  1065. }
  1066. // constant that refers to the ISO standard
  1067. utils_hooks__hooks.ISO_8601 = function () {};
  1068. // date from string and format string
  1069. function configFromStringAndFormat(config) {
  1070. // TODO: Move this to another part of the creation flow to prevent circular deps
  1071. if (config._f === utils_hooks__hooks.ISO_8601) {
  1072. configFromISO(config);
  1073. return;
  1074. }
  1075. config._a = [];
  1076. getParsingFlags(config).empty = true;
  1077. // This array is used to make a Date, either with `new Date` or `Date.UTC`
  1078. var string = '' + config._i,
  1079. i, parsedInput, tokens, token, skipped,
  1080. stringLength = string.length,
  1081. totalParsedInputLength = 0;
  1082. tokens = expandFormat(config._f, config._locale).match(formattingTokens) || [];
  1083. for (i = 0; i < tokens.length; i++) {
  1084. token = tokens[i];
  1085. parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0];
  1086. // console.log('token', token, 'parsedInput', parsedInput,
  1087. // 'regex', getParseRegexForToken(token, config));
  1088. if (parsedInput) {
  1089. skipped = string.substr(0, string.indexOf(parsedInput));
  1090. if (skipped.length > 0) {
  1091. getParsingFlags(config).unusedInput.push(skipped);
  1092. }
  1093. string = string.slice(string.indexOf(parsedInput) + parsedInput.length);
  1094. totalParsedInputLength += parsedInput.length;
  1095. }
  1096. // don't parse if it's not a known token
  1097. if (formatTokenFunctions[token]) {
  1098. if (parsedInput) {
  1099. getParsingFlags(config).empty = false;
  1100. }
  1101. else {
  1102. getParsingFlags(config).unusedTokens.push(token);
  1103. }
  1104. addTimeToArrayFromToken(token, parsedInput, config);
  1105. }
  1106. else if (config._strict && !parsedInput) {
  1107. getParsingFlags(config).unusedTokens.push(token);
  1108. }
  1109. }
  1110. // add remaining unparsed input length to the string
  1111. getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength;
  1112. if (string.length > 0) {
  1113. getParsingFlags(config).unusedInput.push(string);
  1114. }
  1115. // clear _12h flag if hour is <= 12
  1116. if (getParsingFlags(config).bigHour === true &&
  1117. config._a[HOUR] <= 12 &&
  1118. config._a[HOUR] > 0) {
  1119. getParsingFlags(config).bigHour = undefined;
  1120. }
  1121. // handle meridiem
  1122. config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem);
  1123. configFromArray(config);
  1124. checkOverflow(config);
  1125. }
  1126. function meridiemFixWrap (locale, hour, meridiem) {
  1127. var isPm;
  1128. if (meridiem == null) {
  1129. // nothing to do
  1130. return hour;
  1131. }
  1132. if (locale.meridiemHour != null) {
  1133. return locale.meridiemHour(hour, meridiem);
  1134. } else if (locale.isPM != null) {
  1135. // Fallback
  1136. isPm = locale.isPM(meridiem);
  1137. if (isPm && hour < 12) {
  1138. hour += 12;
  1139. }
  1140. if (!isPm && hour === 12) {
  1141. hour = 0;
  1142. }
  1143. return hour;
  1144. } else {
  1145. // this is not supposed to happen
  1146. return hour;
  1147. }
  1148. }
  1149. // date from string and array of format strings
  1150. function configFromStringAndArray(config) {
  1151. var tempConfig,
  1152. bestMoment,
  1153. scoreToBeat,
  1154. i,
  1155. currentScore;
  1156. if (config._f.length === 0) {
  1157. getParsingFlags(config).invalidFormat = true;
  1158. config._d = new Date(NaN);
  1159. return;
  1160. }
  1161. for (i = 0; i < config._f.length; i++) {
  1162. currentScore = 0;
  1163. tempConfig = copyConfig({}, config);
  1164. if (config._useUTC != null) {
  1165. tempConfig._useUTC = config._useUTC;
  1166. }
  1167. tempConfig._f = config._f[i];
  1168. configFromStringAndFormat(tempConfig);
  1169. if (!valid__isValid(tempConfig)) {
  1170. continue;
  1171. }
  1172. // if there is any input that was not parsed add a penalty for that format
  1173. currentScore += getParsingFlags(tempConfig).charsLeftOver;
  1174. //or tokens
  1175. currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;
  1176. getParsingFlags(tempConfig).score = currentScore;
  1177. if (scoreToBeat == null || currentScore < scoreToBeat) {
  1178. scoreToBeat = currentScore;
  1179. bestMoment = tempConfig;
  1180. }
  1181. }
  1182. extend(config, bestMoment || tempConfig);
  1183. }
  1184. function configFromObject(config) {
  1185. if (config._d) {
  1186. return;
  1187. }
  1188. var i = normalizeObjectUnits(config._i);
  1189. config._a = map([i.year, i.month, i.day || i.date, i.hour, i.minute, i.second, i.millisecond], function (obj) {
  1190. return obj && parseInt(obj, 10);
  1191. });
  1192. configFromArray(config);
  1193. }
  1194. function createFromConfig (config) {
  1195. var res = new Moment(checkOverflow(prepareConfig(config)));
  1196. if (res._nextDay) {
  1197. // Adding is smart enough around DST
  1198. res.add(1, 'd');
  1199. res._nextDay = undefined;
  1200. }
  1201. return res;
  1202. }
  1203. function prepareConfig (config) {
  1204. var input = config._i,
  1205. format = config._f;
  1206. config._locale = config._locale || locale_locales__getLocale(config._l);
  1207. if (input === null || (format === undefined && input === '')) {
  1208. return valid__createInvalid({nullInput: true});
  1209. }
  1210. if (typeof input === 'string') {
  1211. config._i = input = config._locale.preparse(input);
  1212. }
  1213. if (isMoment(input)) {
  1214. return new Moment(checkOverflow(input));
  1215. } else if (isArray(format)) {
  1216. configFromStringAndArray(config);
  1217. } else if (format) {
  1218. configFromStringAndFormat(config);
  1219. } else if (isDate(input)) {
  1220. config._d = input;
  1221. } else {
  1222. configFromInput(config);
  1223. }
  1224. if (!valid__isValid(config)) {
  1225. config._d = null;
  1226. }
  1227. return config;
  1228. }
  1229. function configFromInput(config) {
  1230. var input = config._i;
  1231. if (input === undefined) {
  1232. config._d = new Date(utils_hooks__hooks.now());
  1233. } else if (isDate(input)) {
  1234. config._d = new Date(+input);
  1235. } else if (typeof input === 'string') {
  1236. configFromString(config);
  1237. } else if (isArray(input)) {
  1238. config._a = map(input.slice(0), function (obj) {
  1239. return parseInt(obj, 10);
  1240. });
  1241. configFromArray(config);
  1242. } else if (typeof(input) === 'object') {
  1243. configFromObject(config);
  1244. } else if (typeof(input) === 'number') {
  1245. // from milliseconds
  1246. config._d = new Date(input);
  1247. } else {
  1248. utils_hooks__hooks.createFromInputFallback(config);
  1249. }
  1250. }
  1251. function createLocalOrUTC (input, format, locale, strict, isUTC) {
  1252. var c = {};
  1253. if (typeof(locale) === 'boolean') {
  1254. strict = locale;
  1255. locale = undefined;
  1256. }
  1257. // object construction must be done this way.
  1258. // https://github.com/moment/moment/issues/1423
  1259. c._isAMomentObject = true;
  1260. c._useUTC = c._isUTC = isUTC;
  1261. c._l = locale;
  1262. c._i = input;
  1263. c._f = format;
  1264. c._strict = strict;
  1265. return createFromConfig(c);
  1266. }
  1267. function local__createLocal (input, format, locale, strict) {
  1268. return createLocalOrUTC(input, format, locale, strict, false);
  1269. }
  1270. var prototypeMin = deprecate(
  1271. 'moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548',
  1272. function () {
  1273. var other = local__createLocal.apply(null, arguments);
  1274. if (this.isValid() && other.isValid()) {
  1275. return other < this ? this : other;
  1276. } else {
  1277. return valid__createInvalid();
  1278. }
  1279. }
  1280. );
  1281. var prototypeMax = deprecate(
  1282. 'moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548',
  1283. function () {
  1284. var other = local__createLocal.apply(null, arguments);
  1285. if (this.isValid() && other.isValid()) {
  1286. return other > this ? this : other;
  1287. } else {
  1288. return valid__createInvalid();
  1289. }
  1290. }
  1291. );
  1292. // Pick a moment m from moments so that m[fn](other) is true for all
  1293. // other. This relies on the function fn to be transitive.
  1294. //
  1295. // moments should either be an array of moment objects or an array, whose
  1296. // first element is an array of moment objects.
  1297. function pickBy(fn, moments) {
  1298. var res, i;
  1299. if (moments.length === 1 && isArray(moments[0])) {
  1300. moments = moments[0];
  1301. }
  1302. if (!moments.length) {
  1303. return local__createLocal();
  1304. }
  1305. res = moments[0];
  1306. for (i = 1; i < moments.length; ++i) {
  1307. if (!moments[i].isValid() || moments[i][fn](res)) {
  1308. res = moments[i];
  1309. }
  1310. }
  1311. return res;
  1312. }
  1313. // TODO: Use [].sort instead?
  1314. function min () {
  1315. var args = [].slice.call(arguments, 0);
  1316. return pickBy('isBefore', args);
  1317. }
  1318. function max () {
  1319. var args = [].slice.call(arguments, 0);
  1320. return pickBy('isAfter', args);
  1321. }
  1322. var now = function () {
  1323. return Date.now ? Date.now() : +(new Date());
  1324. };
  1325. function Duration (duration) {
  1326. var normalizedInput = normalizeObjectUnits(duration),
  1327. years = normalizedInput.year || 0,
  1328. quarters = normalizedInput.quarter || 0,
  1329. months = normalizedInput.month || 0,
  1330. weeks = normalizedInput.week || 0,
  1331. days = normalizedInput.day || 0,
  1332. hours = normalizedInput.hour || 0,
  1333. minutes = normalizedInput.minute || 0,
  1334. seconds = normalizedInput.second || 0,
  1335. milliseconds = normalizedInput.millisecond || 0;
  1336. // representation for dateAddRemove
  1337. this._milliseconds = +milliseconds +
  1338. seconds * 1e3 + // 1000
  1339. minutes * 6e4 + // 1000 * 60
  1340. hours * 36e5; // 1000 * 60 * 60
  1341. // Because of dateAddRemove treats 24 hours as different from a
  1342. // day when working around DST, we need to store them separately
  1343. this._days = +days +
  1344. weeks * 7;
  1345. // It is impossible translate months into days without knowing
  1346. // which months you are are talking about, so we have to store
  1347. // it separately.
  1348. this._months = +months +
  1349. quarters * 3 +
  1350. years * 12;
  1351. this._data = {};
  1352. this._locale = locale_locales__getLocale();
  1353. this._bubble();
  1354. }
  1355. function isDuration (obj) {
  1356. return obj instanceof Duration;
  1357. }
  1358. // FORMATTING
  1359. function offset (token, separator) {
  1360. addFormatToken(token, 0, 0, function () {
  1361. var offset = this.utcOffset();
  1362. var sign = '+';
  1363. if (offset < 0) {
  1364. offset = -offset;
  1365. sign = '-';
  1366. }
  1367. return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~(offset) % 60, 2);
  1368. });
  1369. }
  1370. offset('Z', ':');
  1371. offset('ZZ', '');
  1372. // PARSING
  1373. addRegexToken('Z', matchShortOffset);
  1374. addRegexToken('ZZ', matchShortOffset);
  1375. addParseToken(['Z', 'ZZ'], function (input, array, config) {
  1376. config._useUTC = true;
  1377. config._tzm = offsetFromString(matchShortOffset, input);
  1378. });
  1379. // HELPERS
  1380. // timezone chunker
  1381. // '+10:00' > ['10', '00']
  1382. // '-1530' > ['-15', '30']
  1383. var chunkOffset = /([\+\-]|\d\d)/gi;
  1384. function offsetFromString(matcher, string) {
  1385. var matches = ((string || '').match(matcher) || []);
  1386. var chunk = matches[matches.length - 1] || [];
  1387. var parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
  1388. var minutes = +(parts[1] * 60) + toInt(parts[2]);
  1389. return parts[0] === '+' ? minutes : -minutes;
  1390. }
  1391. // Return a moment from input, that is local/utc/zone equivalent to model.
  1392. function cloneWithOffset(input, model) {
  1393. var res, diff;
  1394. if (model._isUTC) {
  1395. res = model.clone();
  1396. diff = (isMoment(input) || isDate(input) ? +input : +local__createLocal(input)) - (+res);
  1397. // Use low-level api, because this fn is low-level api.
  1398. res._d.setTime(+res._d + diff);
  1399. utils_hooks__hooks.updateOffset(res, false);
  1400. return res;
  1401. } else {
  1402. return local__createLocal(input).local();
  1403. }
  1404. }
  1405. function getDateOffset (m) {
  1406. // On Firefox.24 Date#getTimezoneOffset returns a floating point.
  1407. // https://github.com/moment/moment/pull/1871
  1408. return -Math.round(m._d.getTimezoneOffset() / 15) * 15;
  1409. }
  1410. // HOOKS
  1411. // This function will be called whenever a moment is mutated.
  1412. // It is intended to keep the offset in sync with the timezone.
  1413. utils_hooks__hooks.updateOffset = function () {};
  1414. // MOMENTS
  1415. // keepLocalTime = true means only change the timezone, without
  1416. // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
  1417. // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
  1418. // +0200, so we adjust the time as needed, to be valid.
  1419. //
  1420. // Keeping the time actually adds/subtracts (one hour)
  1421. // from the actual represented time. That is why we call updateOffset
  1422. // a second time. In case it wants us to change the offset again
  1423. // _changeInProgress == true case, then we have to adjust, because
  1424. // there is no such time in the given timezone.
  1425. function getSetOffset (input, keepLocalTime) {
  1426. var offset = this._offset || 0,
  1427. localAdjust;
  1428. if (!this.isValid()) {
  1429. return input != null ? this : NaN;
  1430. }
  1431. if (input != null) {
  1432. if (typeof input === 'string') {
  1433. input = offsetFromString(matchShortOffset, input);
  1434. } else if (Math.abs(input) < 16) {
  1435. input = input * 60;
  1436. }
  1437. if (!this._isUTC && keepLocalTime) {
  1438. localAdjust = getDateOffset(this);
  1439. }
  1440. this._offset = input;
  1441. this._isUTC = true;
  1442. if (localAdjust != null) {
  1443. this.add(localAdjust, 'm');
  1444. }
  1445. if (offset !== input) {
  1446. if (!keepLocalTime || this._changeInProgress) {
  1447. add_subtract__addSubtract(this, create__createDuration(input - offset, 'm'), 1, false);
  1448. } else if (!this._changeInProgress) {
  1449. this._changeInProgress = true;
  1450. utils_hooks__hooks.updateOffset(this, true);
  1451. this._changeInProgress = null;
  1452. }
  1453. }
  1454. return this;
  1455. } else {
  1456. return this._isUTC ? offset : getDateOffset(this);
  1457. }
  1458. }
  1459. function getSetZone (input, keepLocalTime) {
  1460. if (input != null) {
  1461. if (typeof input !== 'string') {
  1462. input = -input;
  1463. }
  1464. this.utcOffset(input, keepLocalTime);
  1465. return this;
  1466. } else {
  1467. return -this.utcOffset();
  1468. }
  1469. }
  1470. function setOffsetToUTC (keepLocalTime) {
  1471. return this.utcOffset(0, keepLocalTime);
  1472. }
  1473. function setOffsetToLocal (keepLocalTime) {
  1474. if (this._isUTC) {
  1475. this.utcOffset(0, keepLocalTime);
  1476. this._isUTC = false;
  1477. if (keepLocalTime) {
  1478. this.subtract(getDateOffset(this), 'm');
  1479. }
  1480. }
  1481. return this;
  1482. }
  1483. function setOffsetToParsedOffset () {
  1484. if (this._tzm) {
  1485. this.utcOffset(this._tzm);
  1486. } else if (typeof this._i === 'string') {
  1487. this.utcOffset(offsetFromString(matchOffset, this._i));
  1488. }
  1489. return this;
  1490. }
  1491. function hasAlignedHourOffset (input) {
  1492. if (!this.isValid()) {
  1493. return false;
  1494. }
  1495. input = input ? local__createLocal(input).utcOffset() : 0;
  1496. return (this.utcOffset() - input) % 60 === 0;
  1497. }
  1498. function isDaylightSavingTime () {
  1499. return (
  1500. this.utcOffset() > this.clone().month(0).utcOffset() ||
  1501. this.utcOffset() > this.clone().month(5).utcOffset()
  1502. );
  1503. }
  1504. function isDaylightSavingTimeShifted () {
  1505. if (!isUndefined(this._isDSTShifted)) {
  1506. return this._isDSTShifted;
  1507. }
  1508. var c = {};
  1509. copyConfig(c, this);
  1510. c = prepareConfig(c);
  1511. if (c._a) {
  1512. var other = c._isUTC ? create_utc__createUTC(c._a) : local__createLocal(c._a);
  1513. this._isDSTShifted = this.isValid() &&
  1514. compareArrays(c._a, other.toArray()) > 0;
  1515. } else {
  1516. this._isDSTShifted = false;
  1517. }
  1518. return this._isDSTShifted;
  1519. }
  1520. function isLocal () {
  1521. return this.isValid() ? !this._isUTC : false;
  1522. }
  1523. function isUtcOffset () {
  1524. return this.isValid() ? this._isUTC : false;
  1525. }
  1526. function isUtc () {
  1527. return this.isValid() ? this._isUTC && this._offset === 0 : false;
  1528. }
  1529. // ASP.NET json date format regex
  1530. var aspNetRegex = /^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?$/;
  1531. // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
  1532. // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
  1533. var isoRegex = /^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;
  1534. function create__createDuration (input, key) {
  1535. var duration = input,
  1536. // matching against regexp is expensive, do it on demand
  1537. match = null,
  1538. sign,
  1539. ret,
  1540. diffRes;
  1541. if (isDuration(input)) {
  1542. duration = {
  1543. ms : input._milliseconds,
  1544. d : input._days,
  1545. M : input._months
  1546. };
  1547. } else if (typeof input === 'number') {
  1548. duration = {};
  1549. if (key) {
  1550. duration[key] = input;
  1551. } else {
  1552. duration.milliseconds = input;
  1553. }
  1554. } else if (!!(match = aspNetRegex.exec(input))) {
  1555. sign = (match[1] === '-') ? -1 : 1;
  1556. duration = {
  1557. y : 0,
  1558. d : toInt(match[DATE]) * sign,
  1559. h : toInt(match[HOUR]) * sign,
  1560. m : toInt(match[MINUTE]) * sign,
  1561. s : toInt(match[SECOND]) * sign,
  1562. ms : toInt(match[MILLISECOND]) * sign
  1563. };
  1564. } else if (!!(match = isoRegex.exec(input))) {
  1565. sign = (match[1] === '-') ? -1 : 1;
  1566. duration = {
  1567. y : parseIso(match[2], sign),
  1568. M : parseIso(match[3], sign),
  1569. d : parseIso(match[4], sign),
  1570. h : parseIso(match[5], sign),
  1571. m : parseIso(match[6], sign),
  1572. s : parseIso(match[7], sign),
  1573. w : parseIso(match[8], sign)
  1574. };
  1575. } else if (duration == null) {// checks for null or undefined
  1576. duration = {};
  1577. } else if (typeof duration === 'object' && ('from' in duration || 'to' in duration)) {
  1578. diffRes = momentsDifference(local__createLocal(duration.from), local__createLocal(duration.to));
  1579. duration = {};
  1580. duration.ms = diffRes.milliseconds;
  1581. duration.M = diffRes.months;
  1582. }
  1583. ret = new Duration(duration);
  1584. if (isDuration(input) && hasOwnProp(input, '_locale')) {
  1585. ret._locale = input._locale;
  1586. }
  1587. return ret;
  1588. }
  1589. create__createDuration.fn = Duration.prototype;
  1590. function parseIso (inp, sign) {
  1591. // We'd normally use ~~inp for this, but unfortunately it also
  1592. // converts floats to ints.
  1593. // inp may be undefined, so careful calling replace on it.
  1594. var res = inp && parseFloat(inp.replace(',', '.'));
  1595. // apply sign while we're at it
  1596. return (isNaN(res) ? 0 : res) * sign;
  1597. }
  1598. function positiveMomentsDifference(base, other) {
  1599. var res = {milliseconds: 0, months: 0};
  1600. res.months = other.month() - base.month() +
  1601. (other.year() - base.year()) * 12;
  1602. if (base.clone().add(res.months, 'M').isAfter(other)) {
  1603. --res.months;
  1604. }
  1605. res.milliseconds = +other - +(base.clone().add(res.months, 'M'));
  1606. return res;
  1607. }
  1608. function momentsDifference(base, other) {
  1609. var res;
  1610. if (!(base.isValid() && other.isValid())) {
  1611. return {milliseconds: 0, months: 0};
  1612. }
  1613. other = cloneWithOffset(other, base);
  1614. if (base.isBefore(other)) {
  1615. res = positiveMomentsDifference(base, other);
  1616. } else {
  1617. res = positiveMomentsDifference(other, base);
  1618. res.milliseconds = -res.milliseconds;
  1619. res.months = -res.months;
  1620. }
  1621. return res;
  1622. }
  1623. // TODO: remove 'name' arg after deprecation is removed
  1624. function createAdder(direction, name) {
  1625. return function (val, period) {
  1626. var dur, tmp;
  1627. //invert the arguments, but complain about it
  1628. if (period !== null && !isNaN(+period)) {
  1629. deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period).');
  1630. tmp = val; val = period; period = tmp;
  1631. }
  1632. val = typeof val === 'string' ? +val : val;
  1633. dur = create__createDuration(val, period);
  1634. add_subtract__addSubtract(this, dur, direction);
  1635. return this;
  1636. };
  1637. }
  1638. function add_subtract__addSubtract (mom, duration, isAdding, updateOffset) {
  1639. var milliseconds = duration._milliseconds,
  1640. days = duration._days,
  1641. months = duration._months;
  1642. if (!mom.isValid()) {
  1643. // No op
  1644. return;
  1645. }
  1646. updateOffset = updateOffset == null ? true : updateOffset;
  1647. if (milliseconds) {
  1648. mom._d.setTime(+mom._d + milliseconds * isAdding);
  1649. }
  1650. if (days) {
  1651. get_set__set(mom, 'Date', get_set__get(mom, 'Date') + days * isAdding);
  1652. }
  1653. if (months) {
  1654. setMonth(mom, get_set__get(mom, 'Month') + months * isAdding);
  1655. }
  1656. if (updateOffset) {
  1657. utils_hooks__hooks.updateOffset(mom, days || months);
  1658. }
  1659. }
  1660. var add_subtract__add = createAdder(1, 'add');
  1661. var add_subtract__subtract = createAdder(-1, 'subtract');
  1662. function moment_calendar__calendar (time, formats) {
  1663. // We want to compare the start of today, vs this.
  1664. // Getting start-of-today depends on whether we're local/utc/offset or not.
  1665. var now = time || local__createLocal(),
  1666. sod = cloneWithOffset(now, this).startOf('day'),
  1667. diff = this.diff(sod, 'days', true),
  1668. format = diff < -6 ? 'sameElse' :
  1669. diff < -1 ? 'lastWeek' :
  1670. diff < 0 ? 'lastDay' :
  1671. diff < 1 ? 'sameDay' :
  1672. diff < 2 ? 'nextDay' :
  1673. diff < 7 ? 'nextWeek' : 'sameElse';
  1674. var output = formats && (isFunction(formats[format]) ? formats[format]() : formats[format]);
  1675. return this.format(output || this.localeData().calendar(format, this, local__createLocal(now)));
  1676. }
  1677. function clone () {
  1678. return new Moment(this);
  1679. }
  1680. function isAfter (input, units) {
  1681. var localInput = isMoment(input) ? input : local__createLocal(input);
  1682. if (!(this.isValid() && localInput.isValid())) {
  1683. return false;
  1684. }
  1685. units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');
  1686. if (units === 'millisecond') {
  1687. return +this > +localInput;
  1688. } else {
  1689. return +localInput < +this.clone().startOf(units);
  1690. }
  1691. }
  1692. function isBefore (input, units) {
  1693. var localInput = isMoment(input) ? input : local__createLocal(input);
  1694. if (!(this.isValid() && localInput.isValid())) {
  1695. return false;
  1696. }
  1697. units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');
  1698. if (units === 'millisecond') {
  1699. return +this < +localInput;
  1700. } else {
  1701. return +this.clone().endOf(units) < +localInput;
  1702. }
  1703. }
  1704. function isBetween (from, to, units) {
  1705. return this.isAfter(from, units) && this.isBefore(to, units);
  1706. }
  1707. function isSame (input, units) {
  1708. var localInput = isMoment(input) ? input : local__createLocal(input),
  1709. inputMs;
  1710. if (!(this.isValid() && localInput.isValid())) {
  1711. return false;
  1712. }
  1713. units = normalizeUnits(units || 'millisecond');
  1714. if (units === 'millisecond') {
  1715. return +this === +localInput;
  1716. } else {
  1717. inputMs = +localInput;
  1718. return +(this.clone().startOf(units)) <= inputMs && inputMs <= +(this.clone().endOf(units));
  1719. }
  1720. }
  1721. function isSameOrAfter (input, units) {
  1722. return this.isSame(input, units) || this.isAfter(input,units);
  1723. }
  1724. function isSameOrBefore (input, units) {
  1725. return this.isSame(input, units) || this.isBefore(input,units);
  1726. }
  1727. function diff (input, units, asFloat) {
  1728. var that,
  1729. zoneDelta,
  1730. delta, output;
  1731. if (!this.isValid()) {
  1732. return NaN;
  1733. }
  1734. that = cloneWithOffset(input, this);
  1735. if (!that.isValid()) {
  1736. return NaN;
  1737. }
  1738. zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;
  1739. units = normalizeUnits(units);
  1740. if (units === 'year' || units === 'month' || units === 'quarter') {
  1741. output = monthDiff(this, that);
  1742. if (units === 'quarter') {
  1743. output = output / 3;
  1744. } else if (units === 'year') {
  1745. output = output / 12;
  1746. }
  1747. } else {
  1748. delta = this - that;
  1749. output = units === 'second' ? delta / 1e3 : // 1000
  1750. units === 'minute' ? delta / 6e4 : // 1000 * 60
  1751. units === 'hour' ? delta / 36e5 : // 1000 * 60 * 60
  1752. units === 'day' ? (delta - zoneDelta) / 864e5 : // 1000 * 60 * 60 * 24, negate dst
  1753. units === 'week' ? (delta - zoneDelta) / 6048e5 : // 1000 * 60 * 60 * 24 * 7, negate dst
  1754. delta;
  1755. }
  1756. return asFloat ? output : absFloor(output);
  1757. }
  1758. function monthDiff (a, b) {
  1759. // difference in months
  1760. var wholeMonthDiff = ((b.year() - a.year()) * 12) + (b.month() - a.month()),
  1761. // b is in (anchor - 1 month, anchor + 1 month)
  1762. anchor = a.clone().add(wholeMonthDiff, 'months'),
  1763. anchor2, adjust;
  1764. if (b - anchor < 0) {
  1765. anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');
  1766. // linear across the month
  1767. adjust = (b - anchor) / (anchor - anchor2);
  1768. } else {
  1769. anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');
  1770. // linear across the month
  1771. adjust = (b - anchor) / (anchor2 - anchor);
  1772. }
  1773. return -(wholeMonthDiff + adjust);
  1774. }
  1775. utils_hooks__hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
  1776. function toString () {
  1777. return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
  1778. }
  1779. function moment_format__toISOString () {
  1780. var m = this.clone().utc();
  1781. if (0 < m.year() && m.year() <= 9999) {
  1782. if (isFunction(Date.prototype.toISOString)) {
  1783. // native implementation is ~50x faster, use it when we can
  1784. return this.toDate().toISOString();
  1785. } else {
  1786. return formatMoment(m, 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]');
  1787. }
  1788. } else {
  1789. return formatMoment(m, 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]');
  1790. }
  1791. }
  1792. function moment_format__format (inputString) {
  1793. var output = formatMoment(this, inputString || utils_hooks__hooks.defaultFormat);
  1794. return this.localeData().postformat(output);
  1795. }
  1796. function from (time, withoutSuffix) {
  1797. if (this.isValid() &&
  1798. ((isMoment(time) && time.isValid()) ||
  1799. local__createLocal(time).isValid())) {
  1800. return create__createDuration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix);
  1801. } else {
  1802. return this.localeData().invalidDate();
  1803. }
  1804. }
  1805. function fromNow (withoutSuffix) {
  1806. return this.from(local__createLocal(), withoutSuffix);
  1807. }
  1808. function to (time, withoutSuffix) {
  1809. if (this.isValid() &&
  1810. ((isMoment(time) && time.isValid()) ||
  1811. local__createLocal(time).isValid())) {
  1812. return create__createDuration({from: this, to: time}).locale(this.locale()).humanize(!withoutSuffix);
  1813. } else {
  1814. return this.localeData().invalidDate();
  1815. }
  1816. }
  1817. function toNow (withoutSuffix) {
  1818. return this.to(local__createLocal(), withoutSuffix);
  1819. }
  1820. // If passed a locale key, it will set the locale for this
  1821. // instance. Otherwise, it will return the locale configuration
  1822. // variables for this instance.
  1823. function locale (key) {
  1824. var newLocaleData;
  1825. if (key === undefined) {
  1826. return this._locale._abbr;
  1827. } else {
  1828. newLocaleData = locale_locales__getLocale(key);
  1829. if (newLocaleData != null) {
  1830. this._locale = newLocaleData;
  1831. }
  1832. return this;
  1833. }
  1834. }
  1835. var lang = deprecate(
  1836. 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
  1837. function (key) {
  1838. if (key === undefined) {
  1839. return this.localeData();
  1840. } else {
  1841. return this.locale(key);
  1842. }
  1843. }
  1844. );
  1845. function localeData () {
  1846. return this._locale;
  1847. }
  1848. function startOf (units) {
  1849. units = normalizeUnits(units);
  1850. // the following switch intentionally omits break keywords
  1851. // to utilize falling through the cases.
  1852. switch (units) {
  1853. case 'year':
  1854. this.month(0);
  1855. /* falls through */
  1856. case 'quarter':
  1857. case 'month':
  1858. this.date(1);
  1859. /* falls through */
  1860. case 'week':
  1861. case 'isoWeek':
  1862. case 'day':
  1863. this.hours(0);
  1864. /* falls through */
  1865. case 'hour':
  1866. this.minutes(0);
  1867. /* falls through */
  1868. case 'minute':
  1869. this.seconds(0);
  1870. /* falls through */
  1871. case 'second':
  1872. this.milliseconds(0);
  1873. }
  1874. // weeks are a special case
  1875. if (units === 'week') {
  1876. this.weekday(0);
  1877. }
  1878. if (units === 'isoWeek') {
  1879. this.isoWeekday(1);
  1880. }
  1881. // quarters are also special
  1882. if (units === 'quarter') {
  1883. this.month(Math.floor(this.month() / 3) * 3);
  1884. }
  1885. return this;
  1886. }
  1887. function endOf (units) {
  1888. units = normalizeUnits(units);
  1889. if (units === undefined || units === 'millisecond') {
  1890. return this;
  1891. }
  1892. return this.startOf(units).add(1, (units === 'isoWeek' ? 'week' : units)).subtract(1, 'ms');
  1893. }
  1894. function to_type__valueOf () {
  1895. return +this._d - ((this._offset || 0) * 60000);
  1896. }
  1897. function unix () {
  1898. return Math.floor(+this / 1000);
  1899. }
  1900. function toDate () {
  1901. return this._offset ? new Date(+this) : this._d;
  1902. }
  1903. function toArray () {
  1904. var m = this;
  1905. return [m.year(), m.month(), m.date(), m.hour(), m.minute(), m.second(), m.millisecond()];
  1906. }
  1907. function toObject () {
  1908. var m = this;
  1909. return {
  1910. years: m.year(),
  1911. months: m.month(),
  1912. date: m.date(),
  1913. hours: m.hours(),
  1914. minutes: m.minutes(),
  1915. seconds: m.seconds(),
  1916. milliseconds: m.milliseconds()
  1917. };
  1918. }
  1919. function toJSON () {
  1920. // JSON.stringify(new Date(NaN)) === 'null'
  1921. return this.isValid() ? this.toISOString() : 'null';
  1922. }
  1923. function moment_valid__isValid () {
  1924. return valid__isValid(this);
  1925. }
  1926. function parsingFlags () {
  1927. return extend({}, getParsingFlags(this));
  1928. }
  1929. function invalidAt () {
  1930. return getParsingFlags(this).overflow;
  1931. }
  1932. function creationData() {
  1933. return {
  1934. input: this._i,
  1935. format: this._f,
  1936. locale: this._locale,
  1937. isUTC: this._isUTC,
  1938. strict: this._strict
  1939. };
  1940. }
  1941. // FORMATTING
  1942. addFormatToken(0, ['gg', 2], 0, function () {
  1943. return this.weekYear() % 100;
  1944. });
  1945. addFormatToken(0, ['GG', 2], 0, function () {
  1946. return this.isoWeekYear() % 100;
  1947. });
  1948. function addWeekYearFormatToken (token, getter) {
  1949. addFormatToken(0, [token, token.length], 0, getter);
  1950. }
  1951. addWeekYearFormatToken('gggg', 'weekYear');
  1952. addWeekYearFormatToken('ggggg', 'weekYear');
  1953. addWeekYearFormatToken('GGGG', 'isoWeekYear');
  1954. addWeekYearFormatToken('GGGGG', 'isoWeekYear');
  1955. // ALIASES
  1956. addUnitAlias('weekYear', 'gg');
  1957. addUnitAlias('isoWeekYear', 'GG');
  1958. // PARSING
  1959. addRegexToken('G', matchSigned);
  1960. addRegexToken('g', matchSigned);
  1961. addRegexToken('GG', match1to2, match2);
  1962. addRegexToken('gg', match1to2, match2);
  1963. addRegexToken('GGGG', match1to4, match4);
  1964. addRegexToken('gggg', match1to4, match4);
  1965. addRegexToken('GGGGG', match1to6, match6);
  1966. addRegexToken('ggggg', match1to6, match6);
  1967. addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input, week, config, token) {
  1968. week[token.substr(0, 2)] = toInt(input);
  1969. });
  1970. addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
  1971. week[token] = utils_hooks__hooks.parseTwoDigitYear(input);
  1972. });
  1973. // MOMENTS
  1974. function getSetWeekYear (input) {
  1975. return getSetWeekYearHelper.call(this,
  1976. input,
  1977. this.week(),
  1978. this.weekday(),
  1979. this.localeData()._week.dow,
  1980. this.localeData()._week.doy);
  1981. }
  1982. function getSetISOWeekYear (input) {
  1983. return getSetWeekYearHelper.call(this,
  1984. input, this.isoWeek(), this.isoWeekday(), 1, 4);
  1985. }
  1986. function getISOWeeksInYear () {
  1987. return weeksInYear(this.year(), 1, 4);
  1988. }
  1989. function getWeeksInYear () {
  1990. var weekInfo = this.localeData()._week;
  1991. return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
  1992. }
  1993. function getSetWeekYearHelper(input, week, weekday, dow, doy) {
  1994. var weeksTarget;
  1995. if (input == null) {
  1996. return weekOfYear(this, dow, doy).year;
  1997. } else {
  1998. weeksTarget = weeksInYear(input, dow, doy);
  1999. if (week > weeksTarget) {
  2000. week = weeksTarget;
  2001. }
  2002. return setWeekAll.call(this, input, week, weekday, dow, doy);
  2003. }
  2004. }
  2005. function setWeekAll(weekYear, week, weekday, dow, doy) {
  2006. var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),
  2007. date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);
  2008. // console.log("got", weekYear, week, weekday, "set", date.toISOString());
  2009. this.year(date.getUTCFullYear());
  2010. this.month(date.getUTCMonth());
  2011. this.date(date.getUTCDate());
  2012. return this;
  2013. }
  2014. // FORMATTING
  2015. addFormatToken('Q', 0, 'Qo', 'quarter');
  2016. // ALIASES
  2017. addUnitAlias('quarter', 'Q');
  2018. // PARSING
  2019. addRegexToken('Q', match1);
  2020. addParseToken('Q', function (input, array) {
  2021. array[MONTH] = (toInt(input) - 1) * 3;
  2022. });
  2023. // MOMENTS
  2024. function getSetQuarter (input) {
  2025. return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);
  2026. }
  2027. // FORMATTING
  2028. addFormatToken('w', ['ww', 2], 'wo', 'week');
  2029. addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
  2030. // ALIASES
  2031. addUnitAlias('week', 'w');
  2032. addUnitAlias('isoWeek', 'W');
  2033. // PARSING
  2034. addRegexToken('w', match1to2);
  2035. addRegexToken('ww', match1to2, match2);
  2036. addRegexToken('W', match1to2);
  2037. addRegexToken('WW', match1to2, match2);
  2038. addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input, week, config, token) {
  2039. week[token.substr(0, 1)] = toInt(input);
  2040. });
  2041. // HELPERS
  2042. // LOCALES
  2043. function localeWeek (mom) {
  2044. return weekOfYear(mom, this._week.dow, this._week.doy).week;
  2045. }
  2046. var defaultLocaleWeek = {
  2047. dow : 0, // Sunday is the first day of the week.
  2048. doy : 6 // The week that contains Jan 1st is the first week of the year.
  2049. };
  2050. function localeFirstDayOfWeek () {
  2051. return this._week.dow;
  2052. }
  2053. function localeFirstDayOfYear () {
  2054. return this._week.doy;
  2055. }
  2056. // MOMENTS
  2057. function getSetWeek (input) {
  2058. var week = this.localeData().week(this);
  2059. return input == null ? week : this.add((input - week) * 7, 'd');
  2060. }
  2061. function getSetISOWeek (input) {
  2062. var week = weekOfYear(this, 1, 4).week;
  2063. return input == null ? week : this.add((input - week) * 7, 'd');
  2064. }
  2065. // FORMATTING
  2066. addFormatToken('D', ['DD', 2], 'Do', 'date');
  2067. // ALIASES
  2068. addUnitAlias('date', 'D');
  2069. // PARSING
  2070. addRegexToken('D', match1to2);
  2071. addRegexToken('DD', match1to2, match2);
  2072. addRegexToken('Do', function (isStrict, locale) {
  2073. return isStrict ? locale._ordinalParse : locale._ordinalParseLenient;
  2074. });
  2075. addParseToken(['D', 'DD'], DATE);
  2076. addParseToken('Do', function (input, array) {
  2077. array[DATE] = toInt(input.match(match1to2)[0], 10);
  2078. });
  2079. // MOMENTS
  2080. var getSetDayOfMonth = makeGetSet('Date', true);
  2081. // FORMATTING
  2082. addFormatToken('d', 0, 'do', 'day');
  2083. addFormatToken('dd', 0, 0, function (format) {
  2084. return this.localeData().weekdaysMin(this, format);
  2085. });
  2086. addFormatToken('ddd', 0, 0, function (format) {
  2087. return this.localeData().weekdaysShort(this, format);
  2088. });
  2089. addFormatToken('dddd', 0, 0, function (format) {
  2090. return this.localeData().weekdays(this, format);
  2091. });
  2092. addFormatToken('e', 0, 0, 'weekday');
  2093. addFormatToken('E', 0, 0, 'isoWeekday');
  2094. // ALIASES
  2095. addUnitAlias('day', 'd');
  2096. addUnitAlias('weekday', 'e');
  2097. addUnitAlias('isoWeekday', 'E');
  2098. // PARSING
  2099. addRegexToken('d', match1to2);
  2100. addRegexToken('e', match1to2);
  2101. addRegexToken('E', match1to2);
  2102. addRegexToken('dd', matchWord);
  2103. addRegexToken('ddd', matchWord);
  2104. addRegexToken('dddd', matchWord);
  2105. addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {
  2106. var weekday = config._locale.weekdaysParse(input, token, config._strict);
  2107. // if we didn't get a weekday name, mark the date as invalid
  2108. if (weekday != null) {
  2109. week.d = weekday;
  2110. } else {
  2111. getParsingFlags(config).invalidWeekday = input;
  2112. }
  2113. });
  2114. addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {
  2115. week[token] = toInt(input);
  2116. });
  2117. // HELPERS
  2118. function parseWeekday(input, locale) {
  2119. if (typeof input !== 'string') {
  2120. return input;
  2121. }
  2122. if (!isNaN(input)) {
  2123. return parseInt(input, 10);
  2124. }
  2125. input = locale.weekdaysParse(input);
  2126. if (typeof input === 'number') {
  2127. return input;
  2128. }
  2129. return null;
  2130. }
  2131. // LOCALES
  2132. var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_');
  2133. function localeWeekdays (m, format) {
  2134. return isArray(this._weekdays) ? this._weekdays[m.day()] :
  2135. this._weekdays[this._weekdays.isFormat.test(format) ? 'format' : 'standalone'][m.day()];
  2136. }
  2137. var defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_');
  2138. function localeWeekdaysShort (m) {
  2139. return this._weekdaysShort[m.day()];
  2140. }
  2141. var defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_');
  2142. function localeWeekdaysMin (m) {
  2143. return this._weekdaysMin[m.day()];
  2144. }
  2145. function localeWeekdaysParse (weekdayName, format, strict) {
  2146. var i, mom, regex;
  2147. if (!this._weekdaysParse) {
  2148. this._weekdaysParse = [];
  2149. this._minWeekdaysParse = [];
  2150. this._shortWeekdaysParse = [];
  2151. this._fullWeekdaysParse = [];
  2152. }
  2153. for (i = 0; i < 7; i++) {
  2154. // make the regex if we don't have it already
  2155. mom = local__createLocal([2000, 1]).day(i);
  2156. if (strict && !this._fullWeekdaysParse[i]) {
  2157. this._fullWeekdaysParse[i] = new RegExp('^' + this.weekdays(mom, '').replace('.', '\.?') + '$', 'i');
  2158. this._shortWeekdaysParse[i] = new RegExp('^' + this.weekdaysShort(mom, '').replace('.', '\.?') + '$', 'i');
  2159. this._minWeekdaysParse[i] = new RegExp('^' + this.weekdaysMin(mom, '').replace('.', '\.?') + '$', 'i');
  2160. }
  2161. if (!this._weekdaysParse[i]) {
  2162. regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, '');
  2163. this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
  2164. }
  2165. // test the regex
  2166. if (strict && format === 'dddd' && this._fullWeekdaysParse[i].test(weekdayName)) {
  2167. return i;
  2168. } else if (strict && format === 'ddd' && this._shortWeekdaysParse[i].test(weekdayName)) {
  2169. return i;
  2170. } else if (strict && format === 'dd' && this._minWeekdaysParse[i].test(weekdayName)) {
  2171. return i;
  2172. } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {
  2173. return i;
  2174. }
  2175. }
  2176. }
  2177. // MOMENTS
  2178. function getSetDayOfWeek (input) {
  2179. if (!this.isValid()) {
  2180. return input != null ? this : NaN;
  2181. }
  2182. var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
  2183. if (input != null) {
  2184. input = parseWeekday(input, this.localeData());
  2185. return this.add(input - day, 'd');
  2186. } else {
  2187. return day;
  2188. }
  2189. }
  2190. function getSetLocaleDayOfWeek (input) {
  2191. if (!this.isValid()) {
  2192. return input != null ? this : NaN;
  2193. }
  2194. var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
  2195. return input == null ? weekday : this.add(input - weekday, 'd');
  2196. }
  2197. function getSetISODayOfWeek (input) {
  2198. if (!this.isValid()) {
  2199. return input != null ? this : NaN;
  2200. }
  2201. // behaves the same as moment#day except
  2202. // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
  2203. // as a setter, sunday should belong to the previous week.
  2204. return input == null ? this.day() || 7 : this.day(this.day() % 7 ? input : input - 7);
  2205. }
  2206. // FORMATTING
  2207. addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
  2208. // ALIASES
  2209. addUnitAlias('dayOfYear', 'DDD');
  2210. // PARSING
  2211. addRegexToken('DDD', match1to3);
  2212. addRegexToken('DDDD', match3);
  2213. addParseToken(['DDD', 'DDDD'], function (input, array, config) {
  2214. config._dayOfYear = toInt(input);
  2215. });
  2216. // HELPERS
  2217. // MOMENTS
  2218. function getSetDayOfYear (input) {
  2219. var dayOfYear = Math.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5) + 1;
  2220. return input == null ? dayOfYear : this.add((input - dayOfYear), 'd');
  2221. }
  2222. // FORMATTING
  2223. function hFormat() {
  2224. return this.hours() % 12 || 12;
  2225. }
  2226. addFormatToken('H', ['HH', 2], 0, 'hour');
  2227. addFormatToken('h', ['hh', 2], 0, hFormat);
  2228. addFormatToken('hmm', 0, 0, function () {
  2229. return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);
  2230. });
  2231. addFormatToken('hmmss', 0, 0, function () {
  2232. return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2) +
  2233. zeroFill(this.seconds(), 2);
  2234. });
  2235. addFormatToken('Hmm', 0, 0, function () {
  2236. return '' + this.hours() + zeroFill(this.minutes(), 2);
  2237. });
  2238. addFormatToken('Hmmss', 0, 0, function () {
  2239. return '' + this.hours() + zeroFill(this.minutes(), 2) +
  2240. zeroFill(this.seconds(), 2);
  2241. });
  2242. function meridiem (token, lowercase) {
  2243. addFormatToken(token, 0, 0, function () {
  2244. return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);
  2245. });
  2246. }
  2247. meridiem('a', true);
  2248. meridiem('A', false);
  2249. // ALIASES
  2250. addUnitAlias('hour', 'h');
  2251. // PARSING
  2252. function matchMeridiem (isStrict, locale) {
  2253. return locale._meridiemParse;
  2254. }
  2255. addRegexToken('a', matchMeridiem);
  2256. addRegexToken('A', matchMeridiem);
  2257. addRegexToken('H', match1to2);
  2258. addRegexToken('h', match1to2);
  2259. addRegexToken('HH', match1to2, match2);
  2260. addRegexToken('hh', match1to2, match2);
  2261. addRegexToken('hmm', match3to4);
  2262. addRegexToken('hmmss', match5to6);
  2263. addRegexToken('Hmm', match3to4);
  2264. addRegexToken('Hmmss', match5to6);
  2265. addParseToken(['H', 'HH'], HOUR);
  2266. addParseToken(['a', 'A'], function (input, array, config) {
  2267. config._isPm = config._locale.isPM(input);
  2268. config._meridiem = input;
  2269. });
  2270. addParseToken(['h', 'hh'], function (input, array, config) {
  2271. array[HOUR] = toInt(input);
  2272. getParsingFlags(config).bigHour = true;
  2273. });
  2274. addParseToken('hmm', function (input, array, config) {
  2275. var pos = input.length - 2;
  2276. array[HOUR] = toInt(input.substr(0, pos));
  2277. array[MINUTE] = toInt(input.substr(pos));
  2278. getParsingFlags(config).bigHour = true;
  2279. });
  2280. addParseToken('hmmss', function (input, array, config) {
  2281. var pos1 = input.length - 4;
  2282. var pos2 = input.length - 2;
  2283. array[HOUR] = toInt(input.substr(0, pos1));
  2284. array[MINUTE] = toInt(input.substr(pos1, 2));
  2285. array[SECOND] = toInt(input.substr(pos2));
  2286. getParsingFlags(config).bigHour = true;
  2287. });
  2288. addParseToken('Hmm', function (input, array, config) {
  2289. var pos = input.length - 2;
  2290. array[HOUR] = toInt(input.substr(0, pos));
  2291. array[MINUTE] = toInt(input.substr(pos));
  2292. });
  2293. addParseToken('Hmmss', function (input, array, config) {
  2294. var pos1 = input.length - 4;
  2295. var pos2 = input.length - 2;
  2296. array[HOUR] = toInt(input.substr(0, pos1));
  2297. array[MINUTE] = toInt(input.substr(pos1, 2));
  2298. array[SECOND] = toInt(input.substr(pos2));
  2299. });
  2300. // LOCALES
  2301. function localeIsPM (input) {
  2302. // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
  2303. // Using charAt should be more compatible.
  2304. return ((input + '').toLowerCase().charAt(0) === 'p');
  2305. }
  2306. var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i;
  2307. function localeMeridiem (hours, minutes, isLower) {
  2308. if (hours > 11) {
  2309. return isLower ? 'pm' : 'PM';
  2310. } else {
  2311. return isLower ? 'am' : 'AM';
  2312. }
  2313. }
  2314. // MOMENTS
  2315. // Setting the hour should keep the time, because the user explicitly
  2316. // specified which hour he wants. So trying to maintain the same hour (in
  2317. // a new timezone) makes sense. Adding/subtracting hours does not follow
  2318. // this rule.
  2319. var getSetHour = makeGetSet('Hours', true);
  2320. // FORMATTING
  2321. addFormatToken('m', ['mm', 2], 0, 'minute');
  2322. // ALIASES
  2323. addUnitAlias('minute', 'm');
  2324. // PARSING
  2325. addRegexToken('m', match1to2);
  2326. addRegexToken('mm', match1to2, match2);
  2327. addParseToken(['m', 'mm'], MINUTE);
  2328. // MOMENTS
  2329. var getSetMinute = makeGetSet('Minutes', false);
  2330. // FORMATTING
  2331. addFormatToken('s', ['ss', 2], 0, 'second');
  2332. // ALIASES
  2333. addUnitAlias('second', 's');
  2334. // PARSING
  2335. addRegexToken('s', match1to2);
  2336. addRegexToken('ss', match1to2, match2);
  2337. addParseToken(['s', 'ss'], SECOND);
  2338. // MOMENTS
  2339. var getSetSecond = makeGetSet('Seconds', false);
  2340. // FORMATTING
  2341. addFormatToken('S', 0, 0, function () {
  2342. return ~~(this.millisecond() / 100);
  2343. });
  2344. addFormatToken(0, ['SS', 2], 0, function () {
  2345. return ~~(this.millisecond() / 10);
  2346. });
  2347. addFormatToken(0, ['SSS', 3], 0, 'millisecond');
  2348. addFormatToken(0, ['SSSS', 4], 0, function () {
  2349. return this.millisecond() * 10;
  2350. });
  2351. addFormatToken(0, ['SSSSS', 5], 0, function () {
  2352. return this.millisecond() * 100;
  2353. });
  2354. addFormatToken(0, ['SSSSSS', 6], 0, function () {
  2355. return this.millisecond() * 1000;
  2356. });
  2357. addFormatToken(0, ['SSSSSSS', 7], 0, function () {
  2358. return this.millisecond() * 10000;
  2359. });
  2360. addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
  2361. return this.millisecond() * 100000;
  2362. });
  2363. addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
  2364. return this.millisecond() * 1000000;
  2365. });
  2366. // ALIASES
  2367. addUnitAlias('millisecond', 'ms');
  2368. // PARSING
  2369. addRegexToken('S', match1to3, match1);
  2370. addRegexToken('SS', match1to3, match2);
  2371. addRegexToken('SSS', match1to3, match3);
  2372. var token;
  2373. for (token = 'SSSS'; token.length <= 9; token += 'S') {
  2374. addRegexToken(token, matchUnsigned);
  2375. }
  2376. function parseMs(input, array) {
  2377. array[MILLISECOND] = toInt(('0.' + input) * 1000);
  2378. }
  2379. for (token = 'S'; token.length <= 9; token += 'S') {
  2380. addParseToken(token, parseMs);
  2381. }
  2382. // MOMENTS
  2383. var getSetMillisecond = makeGetSet('Milliseconds', false);
  2384. // FORMATTING
  2385. addFormatToken('z', 0, 0, 'zoneAbbr');
  2386. addFormatToken('zz', 0, 0, 'zoneName');
  2387. // MOMENTS
  2388. function getZoneAbbr () {
  2389. return this._isUTC ? 'UTC' : '';
  2390. }
  2391. function getZoneName () {
  2392. return this._isUTC ? 'Coordinated Universal Time' : '';
  2393. }
  2394. var momentPrototype__proto = Moment.prototype;
  2395. momentPrototype__proto.add = add_subtract__add;
  2396. momentPrototype__proto.calendar = moment_calendar__calendar;
  2397. momentPrototype__proto.clone = clone;
  2398. momentPrototype__proto.diff = diff;
  2399. momentPrototype__proto.endOf = endOf;
  2400. momentPrototype__proto.format = moment_format__format;
  2401. momentPrototype__proto.from = from;
  2402. momentPrototype__proto.fromNow = fromNow;
  2403. momentPrototype__proto.to = to;
  2404. momentPrototype__proto.toNow = toNow;
  2405. momentPrototype__proto.get = getSet;
  2406. momentPrototype__proto.invalidAt = invalidAt;
  2407. momentPrototype__proto.isAfter = isAfter;
  2408. momentPrototype__proto.isBefore = isBefore;
  2409. momentPrototype__proto.isBetween = isBetween;
  2410. momentPrototype__proto.isSame = isSame;
  2411. momentPrototype__proto.isSameOrAfter = isSameOrAfter;
  2412. momentPrototype__proto.isSameOrBefore = isSameOrBefore;
  2413. momentPrototype__proto.isValid = moment_valid__isValid;
  2414. momentPrototype__proto.lang = lang;
  2415. momentPrototype__proto.locale = locale;
  2416. momentPrototype__proto.localeData = localeData;
  2417. momentPrototype__proto.max = prototypeMax;
  2418. momentPrototype__proto.min = prototypeMin;
  2419. momentPrototype__proto.parsingFlags = parsingFlags;
  2420. momentPrototype__proto.set = getSet;
  2421. momentPrototype__proto.startOf = startOf;
  2422. momentPrototype__proto.subtract = add_subtract__subtract;
  2423. momentPrototype__proto.toArray = toArray;
  2424. momentPrototype__proto.toObject = toObject;
  2425. momentPrototype__proto.toDate = toDate;
  2426. momentPrototype__proto.toISOString = moment_format__toISOString;
  2427. momentPrototype__proto.toJSON = toJSON;
  2428. momentPrototype__proto.toString = toString;
  2429. momentPrototype__proto.unix = unix;
  2430. momentPrototype__proto.valueOf = to_type__valueOf;
  2431. momentPrototype__proto.creationData = creationData;
  2432. // Year
  2433. momentPrototype__proto.year = getSetYear;
  2434. momentPrototype__proto.isLeapYear = getIsLeapYear;
  2435. // Week Year
  2436. momentPrototype__proto.weekYear = getSetWeekYear;
  2437. momentPrototype__proto.isoWeekYear = getSetISOWeekYear;
  2438. // Quarter
  2439. momentPrototype__proto.quarter = momentPrototype__proto.quarters = getSetQuarter;
  2440. // Month
  2441. momentPrototype__proto.month = getSetMonth;
  2442. momentPrototype__proto.daysInMonth = getDaysInMonth;
  2443. // Week
  2444. momentPrototype__proto.week = momentPrototype__proto.weeks = getSetWeek;
  2445. momentPrototype__proto.isoWeek = momentPrototype__proto.isoWeeks = getSetISOWeek;
  2446. momentPrototype__proto.weeksInYear = getWeeksInYear;
  2447. momentPrototype__proto.isoWeeksInYear = getISOWeeksInYear;
  2448. // Day
  2449. momentPrototype__proto.date = getSetDayOfMonth;
  2450. momentPrototype__proto.day = momentPrototype__proto.days = getSetDayOfWeek;
  2451. momentPrototype__proto.weekday = getSetLocaleDayOfWeek;
  2452. momentPrototype__proto.isoWeekday = getSetISODayOfWeek;
  2453. momentPrototype__proto.dayOfYear = getSetDayOfYear;
  2454. // Hour
  2455. momentPrototype__proto.hour = momentPrototype__proto.hours = getSetHour;
  2456. // Minute
  2457. momentPrototype__proto.minute = momentPrototype__proto.minutes = getSetMinute;
  2458. // Second
  2459. momentPrototype__proto.second = momentPrototype__proto.seconds = getSetSecond;
  2460. // Millisecond
  2461. momentPrototype__proto.millisecond = momentPrototype__proto.milliseconds = getSetMillisecond;
  2462. // Offset
  2463. momentPrototype__proto.utcOffset = getSetOffset;
  2464. momentPrototype__proto.utc = setOffsetToUTC;
  2465. momentPrototype__proto.local = setOffsetToLocal;
  2466. momentPrototype__proto.parseZone = setOffsetToParsedOffset;
  2467. momentPrototype__proto.hasAlignedHourOffset = hasAlignedHourOffset;
  2468. momentPrototype__proto.isDST = isDaylightSavingTime;
  2469. momentPrototype__proto.isDSTShifted = isDaylightSavingTimeShifted;
  2470. momentPrototype__proto.isLocal = isLocal;
  2471. momentPrototype__proto.isUtcOffset = isUtcOffset;
  2472. momentPrototype__proto.isUtc = isUtc;
  2473. momentPrototype__proto.isUTC = isUtc;
  2474. // Timezone
  2475. momentPrototype__proto.zoneAbbr = getZoneAbbr;
  2476. momentPrototype__proto.zoneName = getZoneName;
  2477. // Deprecations
  2478. momentPrototype__proto.dates = deprecate('dates accessor is deprecated. Use date instead.', getSetDayOfMonth);
  2479. momentPrototype__proto.months = deprecate('months accessor is deprecated. Use month instead', getSetMonth);
  2480. momentPrototype__proto.years = deprecate('years accessor is deprecated. Use year instead', getSetYear);
  2481. momentPrototype__proto.zone = deprecate('moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779', getSetZone);
  2482. var momentPrototype = momentPrototype__proto;
  2483. function moment_moment__createUnix (input) {
  2484. return local__createLocal(input * 1000);
  2485. }
  2486. function moment_moment__createInZone () {
  2487. return local__createLocal.apply(null, arguments).parseZone();
  2488. }
  2489. var defaultCalendar = {
  2490. sameDay : '[Today at] LT',
  2491. nextDay : '[Tomorrow at] LT',
  2492. nextWeek : 'dddd [at] LT',
  2493. lastDay : '[Yesterday at] LT',
  2494. lastWeek : '[Last] dddd [at] LT',
  2495. sameElse : 'L'
  2496. };
  2497. function locale_calendar__calendar (key, mom, now) {
  2498. var output = this._calendar[key];
  2499. return isFunction(output) ? output.call(mom, now) : output;
  2500. }
  2501. var defaultLongDateFormat = {
  2502. LTS : 'h:mm:ss A',
  2503. LT : 'h:mm A',
  2504. L : 'MM/DD/YYYY',
  2505. LL : 'MMMM D, YYYY',
  2506. LLL : 'MMMM D, YYYY h:mm A',
  2507. LLLL : 'dddd, MMMM D, YYYY h:mm A'
  2508. };
  2509. function longDateFormat (key) {
  2510. var format = this._longDateFormat[key],
  2511. formatUpper = this._longDateFormat[key.toUpperCase()];
  2512. if (format || !formatUpper) {
  2513. return format;
  2514. }
  2515. this._longDateFormat[key] = formatUpper.replace(/MMMM|MM|DD|dddd/g, function (val) {
  2516. return val.slice(1);
  2517. });
  2518. return this._longDateFormat[key];
  2519. }
  2520. var defaultInvalidDate = 'Invalid date';
  2521. function invalidDate () {
  2522. return this._invalidDate;
  2523. }
  2524. var defaultOrdinal = '%d';
  2525. var defaultOrdinalParse = /\d{1,2}/;
  2526. function ordinal (number) {
  2527. return this._ordinal.replace('%d', number);
  2528. }
  2529. function preParsePostFormat (string) {
  2530. return string;
  2531. }
  2532. var defaultRelativeTime = {
  2533. future : 'in %s',
  2534. past : '%s ago',
  2535. s : 'a few seconds',
  2536. m : 'a minute',
  2537. mm : '%d minutes',
  2538. h : 'an hour',
  2539. hh : '%d hours',
  2540. d : 'a day',
  2541. dd : '%d days',
  2542. M : 'a month',
  2543. MM : '%d months',
  2544. y : 'a year',
  2545. yy : '%d years'
  2546. };
  2547. function relative__relativeTime (number, withoutSuffix, string, isFuture) {
  2548. var output = this._relativeTime[string];
  2549. return (isFunction(output)) ?
  2550. output(number, withoutSuffix, string, isFuture) :
  2551. output.replace(/%d/i, number);
  2552. }
  2553. function pastFuture (diff, output) {
  2554. var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
  2555. return isFunction(format) ? format(output) : format.replace(/%s/i, output);
  2556. }
  2557. function locale_set__set (config) {
  2558. var prop, i;
  2559. for (i in config) {
  2560. prop = config[i];
  2561. if (isFunction(prop)) {
  2562. this[i] = prop;
  2563. } else {
  2564. this['_' + i] = prop;
  2565. }
  2566. }
  2567. // Lenient ordinal parsing accepts just a number in addition to
  2568. // number + (possibly) stuff coming from _ordinalParseLenient.
  2569. this._ordinalParseLenient = new RegExp(this._ordinalParse.source + '|' + (/\d{1,2}/).source);
  2570. }
  2571. var prototype__proto = Locale.prototype;
  2572. prototype__proto._calendar = defaultCalendar;
  2573. prototype__proto.calendar = locale_calendar__calendar;
  2574. prototype__proto._longDateFormat = defaultLongDateFormat;
  2575. prototype__proto.longDateFormat = longDateFormat;
  2576. prototype__proto._invalidDate = defaultInvalidDate;
  2577. prototype__proto.invalidDate = invalidDate;
  2578. prototype__proto._ordinal = defaultOrdinal;
  2579. prototype__proto.ordinal = ordinal;
  2580. prototype__proto._ordinalParse = defaultOrdinalParse;
  2581. prototype__proto.preparse = preParsePostFormat;
  2582. prototype__proto.postformat = preParsePostFormat;
  2583. prototype__proto._relativeTime = defaultRelativeTime;
  2584. prototype__proto.relativeTime = relative__relativeTime;
  2585. prototype__proto.pastFuture = pastFuture;
  2586. prototype__proto.set = locale_set__set;
  2587. // Month
  2588. prototype__proto.months = localeMonths;
  2589. prototype__proto._months = defaultLocaleMonths;
  2590. prototype__proto.monthsShort = localeMonthsShort;
  2591. prototype__proto._monthsShort = defaultLocaleMonthsShort;
  2592. prototype__proto.monthsParse = localeMonthsParse;
  2593. prototype__proto._monthsRegex = defaultMonthsRegex;
  2594. prototype__proto.monthsRegex = monthsRegex;
  2595. prototype__proto._monthsShortRegex = defaultMonthsShortRegex;
  2596. prototype__proto.monthsShortRegex = monthsShortRegex;
  2597. // Week
  2598. prototype__proto.week = localeWeek;
  2599. prototype__proto._week = defaultLocaleWeek;
  2600. prototype__proto.firstDayOfYear = localeFirstDayOfYear;
  2601. prototype__proto.firstDayOfWeek = localeFirstDayOfWeek;
  2602. // Day of Week
  2603. prototype__proto.weekdays = localeWeekdays;
  2604. prototype__proto._weekdays = defaultLocaleWeekdays;
  2605. prototype__proto.weekdaysMin = localeWeekdaysMin;
  2606. prototype__proto._weekdaysMin = defaultLocaleWeekdaysMin;
  2607. prototype__proto.weekdaysShort = localeWeekdaysShort;
  2608. prototype__proto._weekdaysShort = defaultLocaleWeekdaysShort;
  2609. prototype__proto.weekdaysParse = localeWeekdaysParse;
  2610. // Hours
  2611. prototype__proto.isPM = localeIsPM;
  2612. prototype__proto._meridiemParse = defaultLocaleMeridiemParse;
  2613. prototype__proto.meridiem = localeMeridiem;
  2614. function lists__get (format, index, field, setter) {
  2615. var locale = locale_locales__getLocale();
  2616. var utc = create_utc__createUTC().set(setter, index);
  2617. return locale[field](utc, format);
  2618. }
  2619. function list (format, index, field, count, setter) {
  2620. if (typeof format === 'number') {
  2621. index = format;
  2622. format = undefined;
  2623. }
  2624. format = format || '';
  2625. if (index != null) {
  2626. return lists__get(format, index, field, setter);
  2627. }
  2628. var i;
  2629. var out = [];
  2630. for (i = 0; i < count; i++) {
  2631. out[i] = lists__get(format, i, field, setter);
  2632. }
  2633. return out;
  2634. }
  2635. function lists__listMonths (format, index) {
  2636. return list(format, index, 'months', 12, 'month');
  2637. }
  2638. function lists__listMonthsShort (format, index) {
  2639. return list(format, index, 'monthsShort', 12, 'month');
  2640. }
  2641. function lists__listWeekdays (format, index) {
  2642. return list(format, index, 'weekdays', 7, 'day');
  2643. }
  2644. function lists__listWeekdaysShort (format, index) {
  2645. return list(format, index, 'weekdaysShort', 7, 'day');
  2646. }
  2647. function lists__listWeekdaysMin (format, index) {
  2648. return list(format, index, 'weekdaysMin', 7, 'day');
  2649. }
  2650. locale_locales__getSetGlobalLocale('en', {
  2651. ordinalParse: /\d{1,2}(th|st|nd|rd)/,
  2652. ordinal : function (number) {
  2653. var b = number % 10,
  2654. output = (toInt(number % 100 / 10) === 1) ? 'th' :
  2655. (b === 1) ? 'st' :
  2656. (b === 2) ? 'nd' :
  2657. (b === 3) ? 'rd' : 'th';
  2658. return number + output;
  2659. }
  2660. });
  2661. // Side effect imports
  2662. utils_hooks__hooks.lang = deprecate('moment.lang is deprecated. Use moment.locale instead.', locale_locales__getSetGlobalLocale);
  2663. utils_hooks__hooks.langData = deprecate('moment.langData is deprecated. Use moment.localeData instead.', locale_locales__getLocale);
  2664. var mathAbs = Math.abs;
  2665. function duration_abs__abs () {
  2666. var data = this._data;
  2667. this._milliseconds = mathAbs(this._milliseconds);
  2668. this._days = mathAbs(this._days);
  2669. this._months = mathAbs(this._months);
  2670. data.milliseconds = mathAbs(data.milliseconds);
  2671. data.seconds = mathAbs(data.seconds);
  2672. data.minutes = mathAbs(data.minutes);
  2673. data.hours = mathAbs(data.hours);
  2674. data.months = mathAbs(data.months);
  2675. data.years = mathAbs(data.years);
  2676. return this;
  2677. }
  2678. function duration_add_subtract__addSubtract (duration, input, value, direction) {
  2679. var other = create__createDuration(input, value);
  2680. duration._milliseconds += direction * other._milliseconds;
  2681. duration._days += direction * other._days;
  2682. duration._months += direction * other._months;
  2683. return duration._bubble();
  2684. }
  2685. // supports only 2.0-style add(1, 's') or add(duration)
  2686. function duration_add_subtract__add (input, value) {
  2687. return duration_add_subtract__addSubtract(this, input, value, 1);
  2688. }
  2689. // supports only 2.0-style subtract(1, 's') or subtract(duration)
  2690. function duration_add_subtract__subtract (input, value) {
  2691. return duration_add_subtract__addSubtract(this, input, value, -1);
  2692. }
  2693. function absCeil (number) {
  2694. if (number < 0) {
  2695. return Math.floor(number);
  2696. } else {
  2697. return Math.ceil(number);
  2698. }
  2699. }
  2700. function bubble () {
  2701. var milliseconds = this._milliseconds;
  2702. var days = this._days;
  2703. var months = this._months;
  2704. var data = this._data;
  2705. var seconds, minutes, hours, years, monthsFromDays;
  2706. // if we have a mix of positive and negative values, bubble down first
  2707. // check: https://github.com/moment/moment/issues/2166
  2708. if (!((milliseconds >= 0 && days >= 0 && months >= 0) ||
  2709. (milliseconds <= 0 && days <= 0 && months <= 0))) {
  2710. milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
  2711. days = 0;
  2712. months = 0;
  2713. }
  2714. // The following code bubbles up values, see the tests for
  2715. // examples of what that means.
  2716. data.milliseconds = milliseconds % 1000;
  2717. seconds = absFloor(milliseconds / 1000);
  2718. data.seconds = seconds % 60;
  2719. minutes = absFloor(seconds / 60);
  2720. data.minutes = minutes % 60;
  2721. hours = absFloor(minutes / 60);
  2722. data.hours = hours % 24;
  2723. days += absFloor(hours / 24);
  2724. // convert days to months
  2725. monthsFromDays = absFloor(daysToMonths(days));
  2726. months += monthsFromDays;
  2727. days -= absCeil(monthsToDays(monthsFromDays));
  2728. // 12 months -> 1 year
  2729. years = absFloor(months / 12);
  2730. months %= 12;
  2731. data.days = days;
  2732. data.months = months;
  2733. data.years = years;
  2734. return this;
  2735. }
  2736. function daysToMonths (days) {
  2737. // 400 years have 146097 days (taking into account leap year rules)
  2738. // 400 years have 12 months === 4800
  2739. return days * 4800 / 146097;
  2740. }
  2741. function monthsToDays (months) {
  2742. // the reverse of daysToMonths
  2743. return months * 146097 / 4800;
  2744. }
  2745. function as (units) {
  2746. var days;
  2747. var months;
  2748. var milliseconds = this._milliseconds;
  2749. units = normalizeUnits(units);
  2750. if (units === 'month' || units === 'year') {
  2751. days = this._days + milliseconds / 864e5;
  2752. months = this._months + daysToMonths(days);
  2753. return units === 'month' ? months : months / 12;
  2754. } else {
  2755. // handle milliseconds separately because of floating point math errors (issue #1867)
  2756. days = this._days + Math.round(monthsToDays(this._months));
  2757. switch (units) {
  2758. case 'week' : return days / 7 + milliseconds / 6048e5;
  2759. case 'day' : return days + milliseconds / 864e5;
  2760. case 'hour' : return days * 24 + milliseconds / 36e5;
  2761. case 'minute' : return days * 1440 + milliseconds / 6e4;
  2762. case 'second' : return days * 86400 + milliseconds / 1000;
  2763. // Math.floor prevents floating point math errors here
  2764. case 'millisecond': return Math.floor(days * 864e5) + milliseconds;
  2765. default: throw new Error('Unknown unit ' + units);
  2766. }
  2767. }
  2768. }
  2769. // TODO: Use this.as('ms')?
  2770. function duration_as__valueOf () {
  2771. return (
  2772. this._milliseconds +
  2773. this._days * 864e5 +
  2774. (this._months % 12) * 2592e6 +
  2775. toInt(this._months / 12) * 31536e6
  2776. );
  2777. }
  2778. function makeAs (alias) {
  2779. return function () {
  2780. return this.as(alias);
  2781. };
  2782. }
  2783. var asMilliseconds = makeAs('ms');
  2784. var asSeconds = makeAs('s');
  2785. var asMinutes = makeAs('m');
  2786. var asHours = makeAs('h');
  2787. var asDays = makeAs('d');
  2788. var asWeeks = makeAs('w');
  2789. var asMonths = makeAs('M');
  2790. var asYears = makeAs('y');
  2791. function duration_get__get (units) {
  2792. units = normalizeUnits(units);
  2793. return this[units + 's']();
  2794. }
  2795. function makeGetter(name) {
  2796. return function () {
  2797. return this._data[name];
  2798. };
  2799. }
  2800. var milliseconds = makeGetter('milliseconds');
  2801. var seconds = makeGetter('seconds');
  2802. var minutes = makeGetter('minutes');
  2803. var hours = makeGetter('hours');
  2804. var days = makeGetter('days');
  2805. var duration_get__months = makeGetter('months');
  2806. var years = makeGetter('years');
  2807. function weeks () {
  2808. return absFloor(this.days() / 7);
  2809. }
  2810. var round = Math.round;
  2811. var thresholds = {
  2812. s: 45, // seconds to minute
  2813. m: 45, // minutes to hour
  2814. h: 22, // hours to day
  2815. d: 26, // days to month
  2816. M: 11 // months to year
  2817. };
  2818. // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
  2819. function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
  2820. return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
  2821. }
  2822. function duration_humanize__relativeTime (posNegDuration, withoutSuffix, locale) {
  2823. var duration = create__createDuration(posNegDuration).abs();
  2824. var seconds = round(duration.as('s'));
  2825. var minutes = round(duration.as('m'));
  2826. var hours = round(duration.as('h'));
  2827. var days = round(duration.as('d'));
  2828. var months = round(duration.as('M'));
  2829. var years = round(duration.as('y'));
  2830. var a = seconds < thresholds.s && ['s', seconds] ||
  2831. minutes <= 1 && ['m'] ||
  2832. minutes < thresholds.m && ['mm', minutes] ||
  2833. hours <= 1 && ['h'] ||
  2834. hours < thresholds.h && ['hh', hours] ||
  2835. days <= 1 && ['d'] ||
  2836. days < thresholds.d && ['dd', days] ||
  2837. months <= 1 && ['M'] ||
  2838. months < thresholds.M && ['MM', months] ||
  2839. years <= 1 && ['y'] || ['yy', years];
  2840. a[2] = withoutSuffix;
  2841. a[3] = +posNegDuration > 0;
  2842. a[4] = locale;
  2843. return substituteTimeAgo.apply(null, a);
  2844. }
  2845. // This function allows you to set a threshold for relative time strings
  2846. function duration_humanize__getSetRelativeTimeThreshold (threshold, limit) {
  2847. if (thresholds[threshold] === undefined) {
  2848. return false;
  2849. }
  2850. if (limit === undefined) {
  2851. return thresholds[threshold];
  2852. }
  2853. thresholds[threshold] = limit;
  2854. return true;
  2855. }
  2856. function humanize (withSuffix) {
  2857. var locale = this.localeData();
  2858. var output = duration_humanize__relativeTime(this, !withSuffix, locale);
  2859. if (withSuffix) {
  2860. output = locale.pastFuture(+this, output);
  2861. }
  2862. return locale.postformat(output);
  2863. }
  2864. var iso_string__abs = Math.abs;
  2865. function iso_string__toISOString() {
  2866. // for ISO strings we do not use the normal bubbling rules:
  2867. // * milliseconds bubble up until they become hours
  2868. // * days do not bubble at all
  2869. // * months bubble up until they become years
  2870. // This is because there is no context-free conversion between hours and days
  2871. // (think of clock changes)
  2872. // and also not between days and months (28-31 days per month)
  2873. var seconds = iso_string__abs(this._milliseconds) / 1000;
  2874. var days = iso_string__abs(this._days);
  2875. var months = iso_string__abs(this._months);
  2876. var minutes, hours, years;
  2877. // 3600 seconds -> 60 minutes -> 1 hour
  2878. minutes = absFloor(seconds / 60);
  2879. hours = absFloor(minutes / 60);
  2880. seconds %= 60;
  2881. minutes %= 60;
  2882. // 12 months -> 1 year
  2883. years = absFloor(months / 12);
  2884. months %= 12;
  2885. // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
  2886. var Y = years;
  2887. var M = months;
  2888. var D = days;
  2889. var h = hours;
  2890. var m = minutes;
  2891. var s = seconds;
  2892. var total = this.asSeconds();
  2893. if (!total) {
  2894. // this is the same as C#'s (Noda) and python (isodate)...
  2895. // but not other JS (goog.date)
  2896. return 'P0D';
  2897. }
  2898. return (total < 0 ? '-' : '') +
  2899. 'P' +
  2900. (Y ? Y + 'Y' : '') +
  2901. (M ? M + 'M' : '') +
  2902. (D ? D + 'D' : '') +
  2903. ((h || m || s) ? 'T' : '') +
  2904. (h ? h + 'H' : '') +
  2905. (m ? m + 'M' : '') +
  2906. (s ? s + 'S' : '');
  2907. }
  2908. var duration_prototype__proto = Duration.prototype;
  2909. duration_prototype__proto.abs = duration_abs__abs;
  2910. duration_prototype__proto.add = duration_add_subtract__add;
  2911. duration_prototype__proto.subtract = duration_add_subtract__subtract;
  2912. duration_prototype__proto.as = as;
  2913. duration_prototype__proto.asMilliseconds = asMilliseconds;
  2914. duration_prototype__proto.asSeconds = asSeconds;
  2915. duration_prototype__proto.asMinutes = asMinutes;
  2916. duration_prototype__proto.asHours = asHours;
  2917. duration_prototype__proto.asDays = asDays;
  2918. duration_prototype__proto.asWeeks = asWeeks;
  2919. duration_prototype__proto.asMonths = asMonths;
  2920. duration_prototype__proto.asYears = asYears;
  2921. duration_prototype__proto.valueOf = duration_as__valueOf;
  2922. duration_prototype__proto._bubble = bubble;
  2923. duration_prototype__proto.get = duration_get__get;
  2924. duration_prototype__proto.milliseconds = milliseconds;
  2925. duration_prototype__proto.seconds = seconds;
  2926. duration_prototype__proto.minutes = minutes;
  2927. duration_prototype__proto.hours = hours;
  2928. duration_prototype__proto.days = days;
  2929. duration_prototype__proto.weeks = weeks;
  2930. duration_prototype__proto.months = duration_get__months;
  2931. duration_prototype__proto.years = years;
  2932. duration_prototype__proto.humanize = humanize;
  2933. duration_prototype__proto.toISOString = iso_string__toISOString;
  2934. duration_prototype__proto.toString = iso_string__toISOString;
  2935. duration_prototype__proto.toJSON = iso_string__toISOString;
  2936. duration_prototype__proto.locale = locale;
  2937. duration_prototype__proto.localeData = localeData;
  2938. // Deprecations
  2939. duration_prototype__proto.toIsoString = deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', iso_string__toISOString);
  2940. duration_prototype__proto.lang = lang;
  2941. // Side effect imports
  2942. // FORMATTING
  2943. addFormatToken('X', 0, 0, 'unix');
  2944. addFormatToken('x', 0, 0, 'valueOf');
  2945. // PARSING
  2946. addRegexToken('x', matchSigned);
  2947. addRegexToken('X', matchTimestamp);
  2948. addParseToken('X', function (input, array, config) {
  2949. config._d = new Date(parseFloat(input, 10) * 1000);
  2950. });
  2951. addParseToken('x', function (input, array, config) {
  2952. config._d = new Date(toInt(input));
  2953. });
  2954. // Side effect imports
  2955. ;
  2956. //! moment.js
  2957. //! version : 2.11.2
  2958. //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
  2959. //! license : MIT
  2960. //! momentjs.com
  2961. utils_hooks__hooks.version = '2.11.2';
  2962. setHookCallback(local__createLocal);
  2963. utils_hooks__hooks.fn = momentPrototype;
  2964. utils_hooks__hooks.min = min;
  2965. utils_hooks__hooks.max = max;
  2966. utils_hooks__hooks.now = now;
  2967. utils_hooks__hooks.utc = create_utc__createUTC;
  2968. utils_hooks__hooks.unix = moment_moment__createUnix;
  2969. utils_hooks__hooks.months = lists__listMonths;
  2970. utils_hooks__hooks.isDate = isDate;
  2971. utils_hooks__hooks.locale = locale_locales__getSetGlobalLocale;
  2972. utils_hooks__hooks.invalid = valid__createInvalid;
  2973. utils_hooks__hooks.duration = create__createDuration;
  2974. utils_hooks__hooks.isMoment = isMoment;
  2975. utils_hooks__hooks.weekdays = lists__listWeekdays;
  2976. utils_hooks__hooks.parseZone = moment_moment__createInZone;
  2977. utils_hooks__hooks.localeData = locale_locales__getLocale;
  2978. utils_hooks__hooks.isDuration = isDuration;
  2979. utils_hooks__hooks.monthsShort = lists__listMonthsShort;
  2980. utils_hooks__hooks.weekdaysMin = lists__listWeekdaysMin;
  2981. utils_hooks__hooks.defineLocale = defineLocale;
  2982. utils_hooks__hooks.weekdaysShort = lists__listWeekdaysShort;
  2983. utils_hooks__hooks.normalizeUnits = normalizeUnits;
  2984. utils_hooks__hooks.relativeTimeThreshold = duration_humanize__getSetRelativeTimeThreshold;
  2985. utils_hooks__hooks.prototype = momentPrototype;
  2986. var moment__default = utils_hooks__hooks;
  2987. //! moment.js locale configuration
  2988. //! locale : afrikaans (af)
  2989. //! author : Werner Mollentze : https://github.com/wernerm
  2990. var af = moment__default.defineLocale('af', {
  2991. months : 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),
  2992. monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
  2993. weekdays : 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),
  2994. weekdaysShort : 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
  2995. weekdaysMin : 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
  2996. meridiemParse: /vm|nm/i,
  2997. isPM : function (input) {
  2998. return /^nm$/i.test(input);
  2999. },
  3000. meridiem : function (hours, minutes, isLower) {
  3001. if (hours < 12) {
  3002. return isLower ? 'vm' : 'VM';
  3003. } else {
  3004. return isLower ? 'nm' : 'NM';
  3005. }
  3006. },
  3007. longDateFormat : {
  3008. LT : 'HH:mm',
  3009. LTS : 'HH:mm:ss',
  3010. L : 'DD/MM/YYYY',
  3011. LL : 'D MMMM YYYY',
  3012. LLL : 'D MMMM YYYY HH:mm',
  3013. LLLL : 'dddd, D MMMM YYYY HH:mm'
  3014. },
  3015. calendar : {
  3016. sameDay : '[Vandag om] LT',
  3017. nextDay : '[Môre om] LT',
  3018. nextWeek : 'dddd [om] LT',
  3019. lastDay : '[Gister om] LT',
  3020. lastWeek : '[Laas] dddd [om] LT',
  3021. sameElse : 'L'
  3022. },
  3023. relativeTime : {
  3024. future : 'oor %s',
  3025. past : '%s gelede',
  3026. s : '\'n paar sekondes',
  3027. m : '\'n minuut',
  3028. mm : '%d minute',
  3029. h : '\'n uur',
  3030. hh : '%d ure',
  3031. d : '\'n dag',
  3032. dd : '%d dae',
  3033. M : '\'n maand',
  3034. MM : '%d maande',
  3035. y : '\'n jaar',
  3036. yy : '%d jaar'
  3037. },
  3038. ordinalParse: /\d{1,2}(ste|de)/,
  3039. ordinal : function (number) {
  3040. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter
  3041. },
  3042. week : {
  3043. dow : 1, // Maandag is die eerste dag van die week.
  3044. doy : 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
  3045. }
  3046. });
  3047. //! moment.js locale configuration
  3048. //! locale : Moroccan Arabic (ar-ma)
  3049. //! author : ElFadili Yassine : https://github.com/ElFadiliY
  3050. //! author : Abdel Said : https://github.com/abdelsaid
  3051. var ar_ma = moment__default.defineLocale('ar-ma', {
  3052. months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  3053. monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  3054. weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  3055. weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  3056. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  3057. longDateFormat : {
  3058. LT : 'HH:mm',
  3059. LTS : 'HH:mm:ss',
  3060. L : 'DD/MM/YYYY',
  3061. LL : 'D MMMM YYYY',
  3062. LLL : 'D MMMM YYYY HH:mm',
  3063. LLLL : 'dddd D MMMM YYYY HH:mm'
  3064. },
  3065. calendar : {
  3066. sameDay: '[اليوم على الساعة] LT',
  3067. nextDay: '[غدا على الساعة] LT',
  3068. nextWeek: 'dddd [على الساعة] LT',
  3069. lastDay: '[أمس على الساعة] LT',
  3070. lastWeek: 'dddd [على الساعة] LT',
  3071. sameElse: 'L'
  3072. },
  3073. relativeTime : {
  3074. future : 'في %s',
  3075. past : 'منذ %s',
  3076. s : 'ثوان',
  3077. m : 'دقيقة',
  3078. mm : '%d دقائق',
  3079. h : 'ساعة',
  3080. hh : '%d ساعات',
  3081. d : 'يوم',
  3082. dd : '%d أيام',
  3083. M : 'شهر',
  3084. MM : '%d أشهر',
  3085. y : 'سنة',
  3086. yy : '%d سنوات'
  3087. },
  3088. week : {
  3089. dow : 6, // Saturday is the first day of the week.
  3090. doy : 12 // The week that contains Jan 1st is the first week of the year.
  3091. }
  3092. });
  3093. //! moment.js locale configuration
  3094. //! locale : Arabic Saudi Arabia (ar-sa)
  3095. //! author : Suhail Alkowaileet : https://github.com/xsoh
  3096. var ar_sa__symbolMap = {
  3097. '1': '١',
  3098. '2': '٢',
  3099. '3': '٣',
  3100. '4': '٤',
  3101. '5': '٥',
  3102. '6': '٦',
  3103. '7': '٧',
  3104. '8': '٨',
  3105. '9': '٩',
  3106. '0': '٠'
  3107. }, ar_sa__numberMap = {
  3108. '١': '1',
  3109. '٢': '2',
  3110. '٣': '3',
  3111. '٤': '4',
  3112. '٥': '5',
  3113. '٦': '6',
  3114. '٧': '7',
  3115. '٨': '8',
  3116. '٩': '9',
  3117. '٠': '0'
  3118. };
  3119. var ar_sa = moment__default.defineLocale('ar-sa', {
  3120. months : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  3121. monthsShort : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  3122. weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  3123. weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  3124. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  3125. longDateFormat : {
  3126. LT : 'HH:mm',
  3127. LTS : 'HH:mm:ss',
  3128. L : 'DD/MM/YYYY',
  3129. LL : 'D MMMM YYYY',
  3130. LLL : 'D MMMM YYYY HH:mm',
  3131. LLLL : 'dddd D MMMM YYYY HH:mm'
  3132. },
  3133. meridiemParse: /ص|م/,
  3134. isPM : function (input) {
  3135. return 'م' === input;
  3136. },
  3137. meridiem : function (hour, minute, isLower) {
  3138. if (hour < 12) {
  3139. return 'ص';
  3140. } else {
  3141. return 'م';
  3142. }
  3143. },
  3144. calendar : {
  3145. sameDay: '[اليوم على الساعة] LT',
  3146. nextDay: '[غدا على الساعة] LT',
  3147. nextWeek: 'dddd [على الساعة] LT',
  3148. lastDay: '[أمس على الساعة] LT',
  3149. lastWeek: 'dddd [على الساعة] LT',
  3150. sameElse: 'L'
  3151. },
  3152. relativeTime : {
  3153. future : 'في %s',
  3154. past : 'منذ %s',
  3155. s : 'ثوان',
  3156. m : 'دقيقة',
  3157. mm : '%d دقائق',
  3158. h : 'ساعة',
  3159. hh : '%d ساعات',
  3160. d : 'يوم',
  3161. dd : '%d أيام',
  3162. M : 'شهر',
  3163. MM : '%d أشهر',
  3164. y : 'سنة',
  3165. yy : '%d سنوات'
  3166. },
  3167. preparse: function (string) {
  3168. return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  3169. return ar_sa__numberMap[match];
  3170. }).replace(/،/g, ',');
  3171. },
  3172. postformat: function (string) {
  3173. return string.replace(/\d/g, function (match) {
  3174. return ar_sa__symbolMap[match];
  3175. }).replace(/,/g, '،');
  3176. },
  3177. week : {
  3178. dow : 6, // Saturday is the first day of the week.
  3179. doy : 12 // The week that contains Jan 1st is the first week of the year.
  3180. }
  3181. });
  3182. //! moment.js locale configuration
  3183. //! locale : Tunisian Arabic (ar-tn)
  3184. var ar_tn = moment__default.defineLocale('ar-tn', {
  3185. months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  3186. monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  3187. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  3188. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  3189. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  3190. longDateFormat: {
  3191. LT: 'HH:mm',
  3192. LTS: 'HH:mm:ss',
  3193. L: 'DD/MM/YYYY',
  3194. LL: 'D MMMM YYYY',
  3195. LLL: 'D MMMM YYYY HH:mm',
  3196. LLLL: 'dddd D MMMM YYYY HH:mm'
  3197. },
  3198. calendar: {
  3199. sameDay: '[اليوم على الساعة] LT',
  3200. nextDay: '[غدا على الساعة] LT',
  3201. nextWeek: 'dddd [على الساعة] LT',
  3202. lastDay: '[أمس على الساعة] LT',
  3203. lastWeek: 'dddd [على الساعة] LT',
  3204. sameElse: 'L'
  3205. },
  3206. relativeTime: {
  3207. future: 'في %s',
  3208. past: 'منذ %s',
  3209. s: 'ثوان',
  3210. m: 'دقيقة',
  3211. mm: '%d دقائق',
  3212. h: 'ساعة',
  3213. hh: '%d ساعات',
  3214. d: 'يوم',
  3215. dd: '%d أيام',
  3216. M: 'شهر',
  3217. MM: '%d أشهر',
  3218. y: 'سنة',
  3219. yy: '%d سنوات'
  3220. },
  3221. week: {
  3222. dow: 1, // Monday is the first day of the week.
  3223. doy: 4 // The week that contains Jan 4th is the first week of the year.
  3224. }
  3225. });
  3226. //! moment.js locale configuration
  3227. //! Locale: Arabic (ar)
  3228. //! Author: Abdel Said: https://github.com/abdelsaid
  3229. //! Changes in months, weekdays: Ahmed Elkhatib
  3230. //! Native plural forms: forabi https://github.com/forabi
  3231. var ar__symbolMap = {
  3232. '1': '١',
  3233. '2': '٢',
  3234. '3': '٣',
  3235. '4': '٤',
  3236. '5': '٥',
  3237. '6': '٦',
  3238. '7': '٧',
  3239. '8': '٨',
  3240. '9': '٩',
  3241. '0': '٠'
  3242. }, ar__numberMap = {
  3243. '١': '1',
  3244. '٢': '2',
  3245. '٣': '3',
  3246. '٤': '4',
  3247. '٥': '5',
  3248. '٦': '6',
  3249. '٧': '7',
  3250. '٨': '8',
  3251. '٩': '9',
  3252. '٠': '0'
  3253. }, pluralForm = function (n) {
  3254. return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
  3255. }, plurals = {
  3256. s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
  3257. m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
  3258. h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
  3259. d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
  3260. M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
  3261. y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
  3262. }, pluralize = function (u) {
  3263. return function (number, withoutSuffix, string, isFuture) {
  3264. var f = pluralForm(number),
  3265. str = plurals[u][pluralForm(number)];
  3266. if (f === 2) {
  3267. str = str[withoutSuffix ? 0 : 1];
  3268. }
  3269. return str.replace(/%d/i, number);
  3270. };
  3271. }, ar__months = [
  3272. 'كانون الثاني يناير',
  3273. 'شباط فبراير',
  3274. 'آذار مارس',
  3275. 'نيسان أبريل',
  3276. 'أيار مايو',
  3277. 'حزيران يونيو',
  3278. 'تموز يوليو',
  3279. 'آب أغسطس',
  3280. 'أيلول سبتمبر',
  3281. 'تشرين الأول أكتوبر',
  3282. 'تشرين الثاني نوفمبر',
  3283. 'كانون الأول ديسمبر'
  3284. ];
  3285. var ar = moment__default.defineLocale('ar', {
  3286. months : ar__months,
  3287. monthsShort : ar__months,
  3288. weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  3289. weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  3290. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  3291. longDateFormat : {
  3292. LT : 'HH:mm',
  3293. LTS : 'HH:mm:ss',
  3294. L : 'D/\u200FM/\u200FYYYY',
  3295. LL : 'D MMMM YYYY',
  3296. LLL : 'D MMMM YYYY HH:mm',
  3297. LLLL : 'dddd D MMMM YYYY HH:mm'
  3298. },
  3299. meridiemParse: /ص|م/,
  3300. isPM : function (input) {
  3301. return 'م' === input;
  3302. },
  3303. meridiem : function (hour, minute, isLower) {
  3304. if (hour < 12) {
  3305. return 'ص';
  3306. } else {
  3307. return 'م';
  3308. }
  3309. },
  3310. calendar : {
  3311. sameDay: '[اليوم عند الساعة] LT',
  3312. nextDay: '[غدًا عند الساعة] LT',
  3313. nextWeek: 'dddd [عند الساعة] LT',
  3314. lastDay: '[أمس عند الساعة] LT',
  3315. lastWeek: 'dddd [عند الساعة] LT',
  3316. sameElse: 'L'
  3317. },
  3318. relativeTime : {
  3319. future : 'بعد %s',
  3320. past : 'منذ %s',
  3321. s : pluralize('s'),
  3322. m : pluralize('m'),
  3323. mm : pluralize('m'),
  3324. h : pluralize('h'),
  3325. hh : pluralize('h'),
  3326. d : pluralize('d'),
  3327. dd : pluralize('d'),
  3328. M : pluralize('M'),
  3329. MM : pluralize('M'),
  3330. y : pluralize('y'),
  3331. yy : pluralize('y')
  3332. },
  3333. preparse: function (string) {
  3334. return string.replace(/\u200f/g, '').replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  3335. return ar__numberMap[match];
  3336. }).replace(/،/g, ',');
  3337. },
  3338. postformat: function (string) {
  3339. return string.replace(/\d/g, function (match) {
  3340. return ar__symbolMap[match];
  3341. }).replace(/,/g, '،');
  3342. },
  3343. week : {
  3344. dow : 6, // Saturday is the first day of the week.
  3345. doy : 12 // The week that contains Jan 1st is the first week of the year.
  3346. }
  3347. });
  3348. //! moment.js locale configuration
  3349. //! locale : azerbaijani (az)
  3350. //! author : topchiyev : https://github.com/topchiyev
  3351. var az__suffixes = {
  3352. 1: '-inci',
  3353. 5: '-inci',
  3354. 8: '-inci',
  3355. 70: '-inci',
  3356. 80: '-inci',
  3357. 2: '-nci',
  3358. 7: '-nci',
  3359. 20: '-nci',
  3360. 50: '-nci',
  3361. 3: '-üncü',
  3362. 4: '-üncü',
  3363. 100: '-üncü',
  3364. 6: '-ncı',
  3365. 9: '-uncu',
  3366. 10: '-uncu',
  3367. 30: '-uncu',
  3368. 60: '-ıncı',
  3369. 90: '-ıncı'
  3370. };
  3371. var az = moment__default.defineLocale('az', {
  3372. months : 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),
  3373. monthsShort : 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
  3374. weekdays : 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),
  3375. weekdaysShort : 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
  3376. weekdaysMin : 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
  3377. longDateFormat : {
  3378. LT : 'HH:mm',
  3379. LTS : 'HH:mm:ss',
  3380. L : 'DD.MM.YYYY',
  3381. LL : 'D MMMM YYYY',
  3382. LLL : 'D MMMM YYYY HH:mm',
  3383. LLLL : 'dddd, D MMMM YYYY HH:mm'
  3384. },
  3385. calendar : {
  3386. sameDay : '[bugün saat] LT',
  3387. nextDay : '[sabah saat] LT',
  3388. nextWeek : '[gələn həftə] dddd [saat] LT',
  3389. lastDay : '[dünən] LT',
  3390. lastWeek : '[keçən həftə] dddd [saat] LT',
  3391. sameElse : 'L'
  3392. },
  3393. relativeTime : {
  3394. future : '%s sonra',
  3395. past : '%s əvvəl',
  3396. s : 'birneçə saniyyə',
  3397. m : 'bir dəqiqə',
  3398. mm : '%d dəqiqə',
  3399. h : 'bir saat',
  3400. hh : '%d saat',
  3401. d : 'bir gün',
  3402. dd : '%d gün',
  3403. M : 'bir ay',
  3404. MM : '%d ay',
  3405. y : 'bir il',
  3406. yy : '%d il'
  3407. },
  3408. meridiemParse: /gecə|səhər|gündüz|axşam/,
  3409. isPM : function (input) {
  3410. return /^(gündüz|axşam)$/.test(input);
  3411. },
  3412. meridiem : function (hour, minute, isLower) {
  3413. if (hour < 4) {
  3414. return 'gecə';
  3415. } else if (hour < 12) {
  3416. return 'səhər';
  3417. } else if (hour < 17) {
  3418. return 'gündüz';
  3419. } else {
  3420. return 'axşam';
  3421. }
  3422. },
  3423. ordinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
  3424. ordinal : function (number) {
  3425. if (number === 0) { // special case for zero
  3426. return number + '-ıncı';
  3427. }
  3428. var a = number % 10,
  3429. b = number % 100 - a,
  3430. c = number >= 100 ? 100 : null;
  3431. return number + (az__suffixes[a] || az__suffixes[b] || az__suffixes[c]);
  3432. },
  3433. week : {
  3434. dow : 1, // Monday is the first day of the week.
  3435. doy : 7 // The week that contains Jan 1st is the first week of the year.
  3436. }
  3437. });
  3438. //! moment.js locale configuration
  3439. //! locale : belarusian (be)
  3440. //! author : Dmitry Demidov : https://github.com/demidov91
  3441. //! author: Praleska: http://praleska.pro/
  3442. //! Author : Menelion Elensúle : https://github.com/Oire
  3443. function be__plural(word, num) {
  3444. var forms = word.split('_');
  3445. return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
  3446. }
  3447. function be__relativeTimeWithPlural(number, withoutSuffix, key) {
  3448. var format = {
  3449. 'mm': withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
  3450. 'hh': withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
  3451. 'dd': 'дзень_дні_дзён',
  3452. 'MM': 'месяц_месяцы_месяцаў',
  3453. 'yy': 'год_гады_гадоў'
  3454. };
  3455. if (key === 'm') {
  3456. return withoutSuffix ? 'хвіліна' : 'хвіліну';
  3457. }
  3458. else if (key === 'h') {
  3459. return withoutSuffix ? 'гадзіна' : 'гадзіну';
  3460. }
  3461. else {
  3462. return number + ' ' + be__plural(format[key], +number);
  3463. }
  3464. }
  3465. var be = moment__default.defineLocale('be', {
  3466. months : {
  3467. format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_'),
  3468. standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_')
  3469. },
  3470. monthsShort : 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
  3471. weekdays : {
  3472. format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'),
  3473. standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),
  3474. isFormat: /\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/
  3475. },
  3476. weekdaysShort : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  3477. weekdaysMin : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  3478. longDateFormat : {
  3479. LT : 'HH:mm',
  3480. LTS : 'HH:mm:ss',
  3481. L : 'DD.MM.YYYY',
  3482. LL : 'D MMMM YYYY г.',
  3483. LLL : 'D MMMM YYYY г., HH:mm',
  3484. LLLL : 'dddd, D MMMM YYYY г., HH:mm'
  3485. },
  3486. calendar : {
  3487. sameDay: '[Сёння ў] LT',
  3488. nextDay: '[Заўтра ў] LT',
  3489. lastDay: '[Учора ў] LT',
  3490. nextWeek: function () {
  3491. return '[У] dddd [ў] LT';
  3492. },
  3493. lastWeek: function () {
  3494. switch (this.day()) {
  3495. case 0:
  3496. case 3:
  3497. case 5:
  3498. case 6:
  3499. return '[У мінулую] dddd [ў] LT';
  3500. case 1:
  3501. case 2:
  3502. case 4:
  3503. return '[У мінулы] dddd [ў] LT';
  3504. }
  3505. },
  3506. sameElse: 'L'
  3507. },
  3508. relativeTime : {
  3509. future : 'праз %s',
  3510. past : '%s таму',
  3511. s : 'некалькі секунд',
  3512. m : be__relativeTimeWithPlural,
  3513. mm : be__relativeTimeWithPlural,
  3514. h : be__relativeTimeWithPlural,
  3515. hh : be__relativeTimeWithPlural,
  3516. d : 'дзень',
  3517. dd : be__relativeTimeWithPlural,
  3518. M : 'месяц',
  3519. MM : be__relativeTimeWithPlural,
  3520. y : 'год',
  3521. yy : be__relativeTimeWithPlural
  3522. },
  3523. meridiemParse: /ночы|раніцы|дня|вечара/,
  3524. isPM : function (input) {
  3525. return /^(дня|вечара)$/.test(input);
  3526. },
  3527. meridiem : function (hour, minute, isLower) {
  3528. if (hour < 4) {
  3529. return 'ночы';
  3530. } else if (hour < 12) {
  3531. return 'раніцы';
  3532. } else if (hour < 17) {
  3533. return 'дня';
  3534. } else {
  3535. return 'вечара';
  3536. }
  3537. },
  3538. ordinalParse: /\d{1,2}-(і|ы|га)/,
  3539. ordinal: function (number, period) {
  3540. switch (period) {
  3541. case 'M':
  3542. case 'd':
  3543. case 'DDD':
  3544. case 'w':
  3545. case 'W':
  3546. return (number % 10 === 2 || number % 10 === 3) && (number % 100 !== 12 && number % 100 !== 13) ? number + '-і' : number + '-ы';
  3547. case 'D':
  3548. return number + '-га';
  3549. default:
  3550. return number;
  3551. }
  3552. },
  3553. week : {
  3554. dow : 1, // Monday is the first day of the week.
  3555. doy : 7 // The week that contains Jan 1st is the first week of the year.
  3556. }
  3557. });
  3558. //! moment.js locale configuration
  3559. //! locale : bulgarian (bg)
  3560. //! author : Krasen Borisov : https://github.com/kraz
  3561. var bg = moment__default.defineLocale('bg', {
  3562. months : 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'),
  3563. monthsShort : 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
  3564. weekdays : 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'),
  3565. weekdaysShort : 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
  3566. weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  3567. longDateFormat : {
  3568. LT : 'H:mm',
  3569. LTS : 'H:mm:ss',
  3570. L : 'D.MM.YYYY',
  3571. LL : 'D MMMM YYYY',
  3572. LLL : 'D MMMM YYYY H:mm',
  3573. LLLL : 'dddd, D MMMM YYYY H:mm'
  3574. },
  3575. calendar : {
  3576. sameDay : '[Днес в] LT',
  3577. nextDay : '[Утре в] LT',
  3578. nextWeek : 'dddd [в] LT',
  3579. lastDay : '[Вчера в] LT',
  3580. lastWeek : function () {
  3581. switch (this.day()) {
  3582. case 0:
  3583. case 3:
  3584. case 6:
  3585. return '[В изминалата] dddd [в] LT';
  3586. case 1:
  3587. case 2:
  3588. case 4:
  3589. case 5:
  3590. return '[В изминалия] dddd [в] LT';
  3591. }
  3592. },
  3593. sameElse : 'L'
  3594. },
  3595. relativeTime : {
  3596. future : 'след %s',
  3597. past : 'преди %s',
  3598. s : 'няколко секунди',
  3599. m : 'минута',
  3600. mm : '%d минути',
  3601. h : 'час',
  3602. hh : '%d часа',
  3603. d : 'ден',
  3604. dd : '%d дни',
  3605. M : 'месец',
  3606. MM : '%d месеца',
  3607. y : 'година',
  3608. yy : '%d години'
  3609. },
  3610. ordinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  3611. ordinal : function (number) {
  3612. var lastDigit = number % 10,
  3613. last2Digits = number % 100;
  3614. if (number === 0) {
  3615. return number + '-ев';
  3616. } else if (last2Digits === 0) {
  3617. return number + '-ен';
  3618. } else if (last2Digits > 10 && last2Digits < 20) {
  3619. return number + '-ти';
  3620. } else if (lastDigit === 1) {
  3621. return number + '-ви';
  3622. } else if (lastDigit === 2) {
  3623. return number + '-ри';
  3624. } else if (lastDigit === 7 || lastDigit === 8) {
  3625. return number + '-ми';
  3626. } else {
  3627. return number + '-ти';
  3628. }
  3629. },
  3630. week : {
  3631. dow : 1, // Monday is the first day of the week.
  3632. doy : 7 // The week that contains Jan 1st is the first week of the year.
  3633. }
  3634. });
  3635. //! moment.js locale configuration
  3636. //! locale : Bengali (bn)
  3637. //! author : Kaushik Gandhi : https://github.com/kaushikgandhi
  3638. var bn__symbolMap = {
  3639. '1': '১',
  3640. '2': '২',
  3641. '3': '৩',
  3642. '4': '৪',
  3643. '5': '৫',
  3644. '6': '৬',
  3645. '7': '৭',
  3646. '8': '৮',
  3647. '9': '৯',
  3648. '0': '০'
  3649. },
  3650. bn__numberMap = {
  3651. '১': '1',
  3652. '২': '2',
  3653. '৩': '3',
  3654. '৪': '4',
  3655. '৫': '5',
  3656. '৬': '6',
  3657. '৭': '7',
  3658. '৮': '8',
  3659. '৯': '9',
  3660. '০': '0'
  3661. };
  3662. var bn = moment__default.defineLocale('bn', {
  3663. months : 'জানুয়ারী_ফেবুয়ারী_মার্চ_এপ্রিল_মে_জুন_জুলাই_অগাস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
  3664. monthsShort : 'জানু_ফেব_মার্চ_এপর_মে_জুন_জুল_অগ_সেপ্ট_অক্টো_নভ_ডিসেম্'.split('_'),
  3665. weekdays : 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পত্তিবার_শুক্রবার_শনিবার'.split('_'),
  3666. weekdaysShort : 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পত্তি_শুক্র_শনি'.split('_'),
  3667. weekdaysMin : 'রব_সম_মঙ্গ_বু_ব্রিহ_শু_শনি'.split('_'),
  3668. longDateFormat : {
  3669. LT : 'A h:mm সময়',
  3670. LTS : 'A h:mm:ss সময়',
  3671. L : 'DD/MM/YYYY',
  3672. LL : 'D MMMM YYYY',
  3673. LLL : 'D MMMM YYYY, A h:mm সময়',
  3674. LLLL : 'dddd, D MMMM YYYY, A h:mm সময়'
  3675. },
  3676. calendar : {
  3677. sameDay : '[আজ] LT',
  3678. nextDay : '[আগামীকাল] LT',
  3679. nextWeek : 'dddd, LT',
  3680. lastDay : '[গতকাল] LT',
  3681. lastWeek : '[গত] dddd, LT',
  3682. sameElse : 'L'
  3683. },
  3684. relativeTime : {
  3685. future : '%s পরে',
  3686. past : '%s আগে',
  3687. s : 'কয়েক সেকেন্ড',
  3688. m : 'এক মিনিট',
  3689. mm : '%d মিনিট',
  3690. h : 'এক ঘন্টা',
  3691. hh : '%d ঘন্টা',
  3692. d : 'এক দিন',
  3693. dd : '%d দিন',
  3694. M : 'এক মাস',
  3695. MM : '%d মাস',
  3696. y : 'এক বছর',
  3697. yy : '%d বছর'
  3698. },
  3699. preparse: function (string) {
  3700. return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
  3701. return bn__numberMap[match];
  3702. });
  3703. },
  3704. postformat: function (string) {
  3705. return string.replace(/\d/g, function (match) {
  3706. return bn__symbolMap[match];
  3707. });
  3708. },
  3709. meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
  3710. isPM: function (input) {
  3711. return /^(দুপুর|বিকাল|রাত)$/.test(input);
  3712. },
  3713. //Bengali is a vast language its spoken
  3714. //in different forms in various parts of the world.
  3715. //I have just generalized with most common one used
  3716. meridiem : function (hour, minute, isLower) {
  3717. if (hour < 4) {
  3718. return 'রাত';
  3719. } else if (hour < 10) {
  3720. return 'সকাল';
  3721. } else if (hour < 17) {
  3722. return 'দুপুর';
  3723. } else if (hour < 20) {
  3724. return 'বিকাল';
  3725. } else {
  3726. return 'রাত';
  3727. }
  3728. },
  3729. week : {
  3730. dow : 0, // Sunday is the first day of the week.
  3731. doy : 6 // The week that contains Jan 1st is the first week of the year.
  3732. }
  3733. });
  3734. //! moment.js locale configuration
  3735. //! locale : tibetan (bo)
  3736. //! author : Thupten N. Chakrishar : https://github.com/vajradog
  3737. var bo__symbolMap = {
  3738. '1': '༡',
  3739. '2': '༢',
  3740. '3': '༣',
  3741. '4': '༤',
  3742. '5': '༥',
  3743. '6': '༦',
  3744. '7': '༧',
  3745. '8': '༨',
  3746. '9': '༩',
  3747. '0': '༠'
  3748. },
  3749. bo__numberMap = {
  3750. '༡': '1',
  3751. '༢': '2',
  3752. '༣': '3',
  3753. '༤': '4',
  3754. '༥': '5',
  3755. '༦': '6',
  3756. '༧': '7',
  3757. '༨': '8',
  3758. '༩': '9',
  3759. '༠': '0'
  3760. };
  3761. var bo = moment__default.defineLocale('bo', {
  3762. months : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
  3763. monthsShort : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
  3764. weekdays : 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'),
  3765. weekdaysShort : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
  3766. weekdaysMin : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
  3767. longDateFormat : {
  3768. LT : 'A h:mm',
  3769. LTS : 'A h:mm:ss',
  3770. L : 'DD/MM/YYYY',
  3771. LL : 'D MMMM YYYY',
  3772. LLL : 'D MMMM YYYY, A h:mm',
  3773. LLLL : 'dddd, D MMMM YYYY, A h:mm'
  3774. },
  3775. calendar : {
  3776. sameDay : '[དི་རིང] LT',
  3777. nextDay : '[སང་ཉིན] LT',
  3778. nextWeek : '[བདུན་ཕྲག་རྗེས་མ], LT',
  3779. lastDay : '[ཁ་སང] LT',
  3780. lastWeek : '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
  3781. sameElse : 'L'
  3782. },
  3783. relativeTime : {
  3784. future : '%s ལ་',
  3785. past : '%s སྔན་ལ',
  3786. s : 'ལམ་སང',
  3787. m : 'སྐར་མ་གཅིག',
  3788. mm : '%d སྐར་མ',
  3789. h : 'ཆུ་ཚོད་གཅིག',
  3790. hh : '%d ཆུ་ཚོད',
  3791. d : 'ཉིན་གཅིག',
  3792. dd : '%d ཉིན་',
  3793. M : 'ཟླ་བ་གཅིག',
  3794. MM : '%d ཟླ་བ',
  3795. y : 'ལོ་གཅིག',
  3796. yy : '%d ལོ'
  3797. },
  3798. preparse: function (string) {
  3799. return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
  3800. return bo__numberMap[match];
  3801. });
  3802. },
  3803. postformat: function (string) {
  3804. return string.replace(/\d/g, function (match) {
  3805. return bo__symbolMap[match];
  3806. });
  3807. },
  3808. meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
  3809. isPM: function (input) {
  3810. return /^(ཉིན་གུང|དགོང་དག|མཚན་མོ)$/.test(input);
  3811. },
  3812. meridiem : function (hour, minute, isLower) {
  3813. if (hour < 4) {
  3814. return 'མཚན་མོ';
  3815. } else if (hour < 10) {
  3816. return 'ཞོགས་ཀས';
  3817. } else if (hour < 17) {
  3818. return 'ཉིན་གུང';
  3819. } else if (hour < 20) {
  3820. return 'དགོང་དག';
  3821. } else {
  3822. return 'མཚན་མོ';
  3823. }
  3824. },
  3825. week : {
  3826. dow : 0, // Sunday is the first day of the week.
  3827. doy : 6 // The week that contains Jan 1st is the first week of the year.
  3828. }
  3829. });
  3830. //! moment.js locale configuration
  3831. //! locale : breton (br)
  3832. //! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou
  3833. function relativeTimeWithMutation(number, withoutSuffix, key) {
  3834. var format = {
  3835. 'mm': 'munutenn',
  3836. 'MM': 'miz',
  3837. 'dd': 'devezh'
  3838. };
  3839. return number + ' ' + mutation(format[key], number);
  3840. }
  3841. function specialMutationForYears(number) {
  3842. switch (lastNumber(number)) {
  3843. case 1:
  3844. case 3:
  3845. case 4:
  3846. case 5:
  3847. case 9:
  3848. return number + ' bloaz';
  3849. default:
  3850. return number + ' vloaz';
  3851. }
  3852. }
  3853. function lastNumber(number) {
  3854. if (number > 9) {
  3855. return lastNumber(number % 10);
  3856. }
  3857. return number;
  3858. }
  3859. function mutation(text, number) {
  3860. if (number === 2) {
  3861. return softMutation(text);
  3862. }
  3863. return text;
  3864. }
  3865. function softMutation(text) {
  3866. var mutationTable = {
  3867. 'm': 'v',
  3868. 'b': 'v',
  3869. 'd': 'z'
  3870. };
  3871. if (mutationTable[text.charAt(0)] === undefined) {
  3872. return text;
  3873. }
  3874. return mutationTable[text.charAt(0)] + text.substring(1);
  3875. }
  3876. var br = moment__default.defineLocale('br', {
  3877. months : 'Genver_C\'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'),
  3878. monthsShort : 'Gen_C\'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
  3879. weekdays : 'Sul_Lun_Meurzh_Merc\'her_Yaou_Gwener_Sadorn'.split('_'),
  3880. weekdaysShort : 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
  3881. weekdaysMin : 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
  3882. longDateFormat : {
  3883. LT : 'h[e]mm A',
  3884. LTS : 'h[e]mm:ss A',
  3885. L : 'DD/MM/YYYY',
  3886. LL : 'D [a viz] MMMM YYYY',
  3887. LLL : 'D [a viz] MMMM YYYY h[e]mm A',
  3888. LLLL : 'dddd, D [a viz] MMMM YYYY h[e]mm A'
  3889. },
  3890. calendar : {
  3891. sameDay : '[Hiziv da] LT',
  3892. nextDay : '[Warc\'hoazh da] LT',
  3893. nextWeek : 'dddd [da] LT',
  3894. lastDay : '[Dec\'h da] LT',
  3895. lastWeek : 'dddd [paset da] LT',
  3896. sameElse : 'L'
  3897. },
  3898. relativeTime : {
  3899. future : 'a-benn %s',
  3900. past : '%s \'zo',
  3901. s : 'un nebeud segondennoù',
  3902. m : 'ur vunutenn',
  3903. mm : relativeTimeWithMutation,
  3904. h : 'un eur',
  3905. hh : '%d eur',
  3906. d : 'un devezh',
  3907. dd : relativeTimeWithMutation,
  3908. M : 'ur miz',
  3909. MM : relativeTimeWithMutation,
  3910. y : 'ur bloaz',
  3911. yy : specialMutationForYears
  3912. },
  3913. ordinalParse: /\d{1,2}(añ|vet)/,
  3914. ordinal : function (number) {
  3915. var output = (number === 1) ? 'añ' : 'vet';
  3916. return number + output;
  3917. },
  3918. week : {
  3919. dow : 1, // Monday is the first day of the week.
  3920. doy : 4 // The week that contains Jan 4th is the first week of the year.
  3921. }
  3922. });
  3923. //! moment.js locale configuration
  3924. //! locale : bosnian (bs)
  3925. //! author : Nedim Cholich : https://github.com/frontyard
  3926. //! based on (hr) translation by Bojan Marković
  3927. function bs__translate(number, withoutSuffix, key) {
  3928. var result = number + ' ';
  3929. switch (key) {
  3930. case 'm':
  3931. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  3932. case 'mm':
  3933. if (number === 1) {
  3934. result += 'minuta';
  3935. } else if (number === 2 || number === 3 || number === 4) {
  3936. result += 'minute';
  3937. } else {
  3938. result += 'minuta';
  3939. }
  3940. return result;
  3941. case 'h':
  3942. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  3943. case 'hh':
  3944. if (number === 1) {
  3945. result += 'sat';
  3946. } else if (number === 2 || number === 3 || number === 4) {
  3947. result += 'sata';
  3948. } else {
  3949. result += 'sati';
  3950. }
  3951. return result;
  3952. case 'dd':
  3953. if (number === 1) {
  3954. result += 'dan';
  3955. } else {
  3956. result += 'dana';
  3957. }
  3958. return result;
  3959. case 'MM':
  3960. if (number === 1) {
  3961. result += 'mjesec';
  3962. } else if (number === 2 || number === 3 || number === 4) {
  3963. result += 'mjeseca';
  3964. } else {
  3965. result += 'mjeseci';
  3966. }
  3967. return result;
  3968. case 'yy':
  3969. if (number === 1) {
  3970. result += 'godina';
  3971. } else if (number === 2 || number === 3 || number === 4) {
  3972. result += 'godine';
  3973. } else {
  3974. result += 'godina';
  3975. }
  3976. return result;
  3977. }
  3978. }
  3979. var bs = moment__default.defineLocale('bs', {
  3980. months : 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),
  3981. monthsShort : 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),
  3982. weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  3983. weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  3984. weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
  3985. longDateFormat : {
  3986. LT : 'H:mm',
  3987. LTS : 'H:mm:ss',
  3988. L : 'DD. MM. YYYY',
  3989. LL : 'D. MMMM YYYY',
  3990. LLL : 'D. MMMM YYYY H:mm',
  3991. LLLL : 'dddd, D. MMMM YYYY H:mm'
  3992. },
  3993. calendar : {
  3994. sameDay : '[danas u] LT',
  3995. nextDay : '[sutra u] LT',
  3996. nextWeek : function () {
  3997. switch (this.day()) {
  3998. case 0:
  3999. return '[u] [nedjelju] [u] LT';
  4000. case 3:
  4001. return '[u] [srijedu] [u] LT';
  4002. case 6:
  4003. return '[u] [subotu] [u] LT';
  4004. case 1:
  4005. case 2:
  4006. case 4:
  4007. case 5:
  4008. return '[u] dddd [u] LT';
  4009. }
  4010. },
  4011. lastDay : '[jučer u] LT',
  4012. lastWeek : function () {
  4013. switch (this.day()) {
  4014. case 0:
  4015. case 3:
  4016. return '[prošlu] dddd [u] LT';
  4017. case 6:
  4018. return '[prošle] [subote] [u] LT';
  4019. case 1:
  4020. case 2:
  4021. case 4:
  4022. case 5:
  4023. return '[prošli] dddd [u] LT';
  4024. }
  4025. },
  4026. sameElse : 'L'
  4027. },
  4028. relativeTime : {
  4029. future : 'za %s',
  4030. past : 'prije %s',
  4031. s : 'par sekundi',
  4032. m : bs__translate,
  4033. mm : bs__translate,
  4034. h : bs__translate,
  4035. hh : bs__translate,
  4036. d : 'dan',
  4037. dd : bs__translate,
  4038. M : 'mjesec',
  4039. MM : bs__translate,
  4040. y : 'godinu',
  4041. yy : bs__translate
  4042. },
  4043. ordinalParse: /\d{1,2}\./,
  4044. ordinal : '%d.',
  4045. week : {
  4046. dow : 1, // Monday is the first day of the week.
  4047. doy : 7 // The week that contains Jan 1st is the first week of the year.
  4048. }
  4049. });
  4050. //! moment.js locale configuration
  4051. //! locale : catalan (ca)
  4052. //! author : Juan G. Hurtado : https://github.com/juanghurtado
  4053. var ca = moment__default.defineLocale('ca', {
  4054. months : 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'),
  4055. monthsShort : 'gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.'.split('_'),
  4056. weekdays : 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),
  4057. weekdaysShort : 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
  4058. weekdaysMin : 'Dg_Dl_Dt_Dc_Dj_Dv_Ds'.split('_'),
  4059. longDateFormat : {
  4060. LT : 'H:mm',
  4061. LTS : 'H:mm:ss',
  4062. L : 'DD/MM/YYYY',
  4063. LL : 'D MMMM YYYY',
  4064. LLL : 'D MMMM YYYY H:mm',
  4065. LLLL : 'dddd D MMMM YYYY H:mm'
  4066. },
  4067. calendar : {
  4068. sameDay : function () {
  4069. return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  4070. },
  4071. nextDay : function () {
  4072. return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  4073. },
  4074. nextWeek : function () {
  4075. return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  4076. },
  4077. lastDay : function () {
  4078. return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  4079. },
  4080. lastWeek : function () {
  4081. return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  4082. },
  4083. sameElse : 'L'
  4084. },
  4085. relativeTime : {
  4086. future : 'en %s',
  4087. past : 'fa %s',
  4088. s : 'uns segons',
  4089. m : 'un minut',
  4090. mm : '%d minuts',
  4091. h : 'una hora',
  4092. hh : '%d hores',
  4093. d : 'un dia',
  4094. dd : '%d dies',
  4095. M : 'un mes',
  4096. MM : '%d mesos',
  4097. y : 'un any',
  4098. yy : '%d anys'
  4099. },
  4100. ordinalParse: /\d{1,2}(r|n|t|è|a)/,
  4101. ordinal : function (number, period) {
  4102. var output = (number === 1) ? 'r' :
  4103. (number === 2) ? 'n' :
  4104. (number === 3) ? 'r' :
  4105. (number === 4) ? 't' : 'è';
  4106. if (period === 'w' || period === 'W') {
  4107. output = 'a';
  4108. }
  4109. return number + output;
  4110. },
  4111. week : {
  4112. dow : 1, // Monday is the first day of the week.
  4113. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4114. }
  4115. });
  4116. //! moment.js locale configuration
  4117. //! locale : czech (cs)
  4118. //! author : petrbela : https://github.com/petrbela
  4119. var cs__months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'),
  4120. cs__monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_');
  4121. function cs__plural(n) {
  4122. return (n > 1) && (n < 5) && (~~(n / 10) !== 1);
  4123. }
  4124. function cs__translate(number, withoutSuffix, key, isFuture) {
  4125. var result = number + ' ';
  4126. switch (key) {
  4127. case 's': // a few seconds / in a few seconds / a few seconds ago
  4128. return (withoutSuffix || isFuture) ? 'pár sekund' : 'pár sekundami';
  4129. case 'm': // a minute / in a minute / a minute ago
  4130. return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou');
  4131. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  4132. if (withoutSuffix || isFuture) {
  4133. return result + (cs__plural(number) ? 'minuty' : 'minut');
  4134. } else {
  4135. return result + 'minutami';
  4136. }
  4137. break;
  4138. case 'h': // an hour / in an hour / an hour ago
  4139. return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
  4140. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  4141. if (withoutSuffix || isFuture) {
  4142. return result + (cs__plural(number) ? 'hodiny' : 'hodin');
  4143. } else {
  4144. return result + 'hodinami';
  4145. }
  4146. break;
  4147. case 'd': // a day / in a day / a day ago
  4148. return (withoutSuffix || isFuture) ? 'den' : 'dnem';
  4149. case 'dd': // 9 days / in 9 days / 9 days ago
  4150. if (withoutSuffix || isFuture) {
  4151. return result + (cs__plural(number) ? 'dny' : 'dní');
  4152. } else {
  4153. return result + 'dny';
  4154. }
  4155. break;
  4156. case 'M': // a month / in a month / a month ago
  4157. return (withoutSuffix || isFuture) ? 'měsíc' : 'měsícem';
  4158. case 'MM': // 9 months / in 9 months / 9 months ago
  4159. if (withoutSuffix || isFuture) {
  4160. return result + (cs__plural(number) ? 'měsíce' : 'měsíců');
  4161. } else {
  4162. return result + 'měsíci';
  4163. }
  4164. break;
  4165. case 'y': // a year / in a year / a year ago
  4166. return (withoutSuffix || isFuture) ? 'rok' : 'rokem';
  4167. case 'yy': // 9 years / in 9 years / 9 years ago
  4168. if (withoutSuffix || isFuture) {
  4169. return result + (cs__plural(number) ? 'roky' : 'let');
  4170. } else {
  4171. return result + 'lety';
  4172. }
  4173. break;
  4174. }
  4175. }
  4176. var cs = moment__default.defineLocale('cs', {
  4177. months : cs__months,
  4178. monthsShort : cs__monthsShort,
  4179. monthsParse : (function (months, monthsShort) {
  4180. var i, _monthsParse = [];
  4181. for (i = 0; i < 12; i++) {
  4182. // use custom parser to solve problem with July (červenec)
  4183. _monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i');
  4184. }
  4185. return _monthsParse;
  4186. }(cs__months, cs__monthsShort)),
  4187. shortMonthsParse : (function (monthsShort) {
  4188. var i, _shortMonthsParse = [];
  4189. for (i = 0; i < 12; i++) {
  4190. _shortMonthsParse[i] = new RegExp('^' + monthsShort[i] + '$', 'i');
  4191. }
  4192. return _shortMonthsParse;
  4193. }(cs__monthsShort)),
  4194. longMonthsParse : (function (months) {
  4195. var i, _longMonthsParse = [];
  4196. for (i = 0; i < 12; i++) {
  4197. _longMonthsParse[i] = new RegExp('^' + months[i] + '$', 'i');
  4198. }
  4199. return _longMonthsParse;
  4200. }(cs__months)),
  4201. weekdays : 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
  4202. weekdaysShort : 'ne_po_út_st_čt_pá_so'.split('_'),
  4203. weekdaysMin : 'ne_po_út_st_čt_pá_so'.split('_'),
  4204. longDateFormat : {
  4205. LT: 'H:mm',
  4206. LTS : 'H:mm:ss',
  4207. L : 'DD.MM.YYYY',
  4208. LL : 'D. MMMM YYYY',
  4209. LLL : 'D. MMMM YYYY H:mm',
  4210. LLLL : 'dddd D. MMMM YYYY H:mm'
  4211. },
  4212. calendar : {
  4213. sameDay: '[dnes v] LT',
  4214. nextDay: '[zítra v] LT',
  4215. nextWeek: function () {
  4216. switch (this.day()) {
  4217. case 0:
  4218. return '[v neděli v] LT';
  4219. case 1:
  4220. case 2:
  4221. return '[v] dddd [v] LT';
  4222. case 3:
  4223. return '[ve středu v] LT';
  4224. case 4:
  4225. return '[ve čtvrtek v] LT';
  4226. case 5:
  4227. return '[v pátek v] LT';
  4228. case 6:
  4229. return '[v sobotu v] LT';
  4230. }
  4231. },
  4232. lastDay: '[včera v] LT',
  4233. lastWeek: function () {
  4234. switch (this.day()) {
  4235. case 0:
  4236. return '[minulou neděli v] LT';
  4237. case 1:
  4238. case 2:
  4239. return '[minulé] dddd [v] LT';
  4240. case 3:
  4241. return '[minulou středu v] LT';
  4242. case 4:
  4243. case 5:
  4244. return '[minulý] dddd [v] LT';
  4245. case 6:
  4246. return '[minulou sobotu v] LT';
  4247. }
  4248. },
  4249. sameElse: 'L'
  4250. },
  4251. relativeTime : {
  4252. future : 'za %s',
  4253. past : 'před %s',
  4254. s : cs__translate,
  4255. m : cs__translate,
  4256. mm : cs__translate,
  4257. h : cs__translate,
  4258. hh : cs__translate,
  4259. d : cs__translate,
  4260. dd : cs__translate,
  4261. M : cs__translate,
  4262. MM : cs__translate,
  4263. y : cs__translate,
  4264. yy : cs__translate
  4265. },
  4266. ordinalParse : /\d{1,2}\./,
  4267. ordinal : '%d.',
  4268. week : {
  4269. dow : 1, // Monday is the first day of the week.
  4270. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4271. }
  4272. });
  4273. //! moment.js locale configuration
  4274. //! locale : chuvash (cv)
  4275. //! author : Anatoly Mironov : https://github.com/mirontoli
  4276. var cv = moment__default.defineLocale('cv', {
  4277. months : 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'),
  4278. monthsShort : 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
  4279. weekdays : 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'),
  4280. weekdaysShort : 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
  4281. weekdaysMin : 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
  4282. longDateFormat : {
  4283. LT : 'HH:mm',
  4284. LTS : 'HH:mm:ss',
  4285. L : 'DD-MM-YYYY',
  4286. LL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
  4287. LLL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
  4288. LLLL : 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm'
  4289. },
  4290. calendar : {
  4291. sameDay: '[Паян] LT [сехетре]',
  4292. nextDay: '[Ыран] LT [сехетре]',
  4293. lastDay: '[Ӗнер] LT [сехетре]',
  4294. nextWeek: '[Ҫитес] dddd LT [сехетре]',
  4295. lastWeek: '[Иртнӗ] dddd LT [сехетре]',
  4296. sameElse: 'L'
  4297. },
  4298. relativeTime : {
  4299. future : function (output) {
  4300. var affix = /сехет$/i.exec(output) ? 'рен' : /ҫул$/i.exec(output) ? 'тан' : 'ран';
  4301. return output + affix;
  4302. },
  4303. past : '%s каялла',
  4304. s : 'пӗр-ик ҫеккунт',
  4305. m : 'пӗр минут',
  4306. mm : '%d минут',
  4307. h : 'пӗр сехет',
  4308. hh : '%d сехет',
  4309. d : 'пӗр кун',
  4310. dd : '%d кун',
  4311. M : 'пӗр уйӑх',
  4312. MM : '%d уйӑх',
  4313. y : 'пӗр ҫул',
  4314. yy : '%d ҫул'
  4315. },
  4316. ordinalParse: /\d{1,2}-мӗш/,
  4317. ordinal : '%d-мӗш',
  4318. week : {
  4319. dow : 1, // Monday is the first day of the week.
  4320. doy : 7 // The week that contains Jan 1st is the first week of the year.
  4321. }
  4322. });
  4323. //! moment.js locale configuration
  4324. //! locale : Welsh (cy)
  4325. //! author : Robert Allen
  4326. var cy = moment__default.defineLocale('cy', {
  4327. months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'),
  4328. monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'),
  4329. weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'),
  4330. weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
  4331. weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
  4332. // time formats are the same as en-gb
  4333. longDateFormat: {
  4334. LT: 'HH:mm',
  4335. LTS : 'HH:mm:ss',
  4336. L: 'DD/MM/YYYY',
  4337. LL: 'D MMMM YYYY',
  4338. LLL: 'D MMMM YYYY HH:mm',
  4339. LLLL: 'dddd, D MMMM YYYY HH:mm'
  4340. },
  4341. calendar: {
  4342. sameDay: '[Heddiw am] LT',
  4343. nextDay: '[Yfory am] LT',
  4344. nextWeek: 'dddd [am] LT',
  4345. lastDay: '[Ddoe am] LT',
  4346. lastWeek: 'dddd [diwethaf am] LT',
  4347. sameElse: 'L'
  4348. },
  4349. relativeTime: {
  4350. future: 'mewn %s',
  4351. past: '%s yn ôl',
  4352. s: 'ychydig eiliadau',
  4353. m: 'munud',
  4354. mm: '%d munud',
  4355. h: 'awr',
  4356. hh: '%d awr',
  4357. d: 'diwrnod',
  4358. dd: '%d diwrnod',
  4359. M: 'mis',
  4360. MM: '%d mis',
  4361. y: 'blwyddyn',
  4362. yy: '%d flynedd'
  4363. },
  4364. ordinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
  4365. // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
  4366. ordinal: function (number) {
  4367. var b = number,
  4368. output = '',
  4369. lookup = [
  4370. '', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed
  4371. 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed
  4372. ];
  4373. if (b > 20) {
  4374. if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
  4375. output = 'fed'; // not 30ain, 70ain or 90ain
  4376. } else {
  4377. output = 'ain';
  4378. }
  4379. } else if (b > 0) {
  4380. output = lookup[b];
  4381. }
  4382. return number + output;
  4383. },
  4384. week : {
  4385. dow : 1, // Monday is the first day of the week.
  4386. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4387. }
  4388. });
  4389. //! moment.js locale configuration
  4390. //! locale : danish (da)
  4391. //! author : Ulrik Nielsen : https://github.com/mrbase
  4392. var da = moment__default.defineLocale('da', {
  4393. months : 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),
  4394. monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  4395. weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  4396. weekdaysShort : 'søn_man_tir_ons_tor_fre_lør'.split('_'),
  4397. weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
  4398. longDateFormat : {
  4399. LT : 'HH:mm',
  4400. LTS : 'HH:mm:ss',
  4401. L : 'DD/MM/YYYY',
  4402. LL : 'D. MMMM YYYY',
  4403. LLL : 'D. MMMM YYYY HH:mm',
  4404. LLLL : 'dddd [d.] D. MMMM YYYY HH:mm'
  4405. },
  4406. calendar : {
  4407. sameDay : '[I dag kl.] LT',
  4408. nextDay : '[I morgen kl.] LT',
  4409. nextWeek : 'dddd [kl.] LT',
  4410. lastDay : '[I går kl.] LT',
  4411. lastWeek : '[sidste] dddd [kl] LT',
  4412. sameElse : 'L'
  4413. },
  4414. relativeTime : {
  4415. future : 'om %s',
  4416. past : '%s siden',
  4417. s : 'få sekunder',
  4418. m : 'et minut',
  4419. mm : '%d minutter',
  4420. h : 'en time',
  4421. hh : '%d timer',
  4422. d : 'en dag',
  4423. dd : '%d dage',
  4424. M : 'en måned',
  4425. MM : '%d måneder',
  4426. y : 'et år',
  4427. yy : '%d år'
  4428. },
  4429. ordinalParse: /\d{1,2}\./,
  4430. ordinal : '%d.',
  4431. week : {
  4432. dow : 1, // Monday is the first day of the week.
  4433. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4434. }
  4435. });
  4436. //! moment.js locale configuration
  4437. //! locale : austrian german (de-at)
  4438. //! author : lluchs : https://github.com/lluchs
  4439. //! author: Menelion Elensúle: https://github.com/Oire
  4440. //! author : Martin Groller : https://github.com/MadMG
  4441. //! author : Mikolaj Dadela : https://github.com/mik01aj
  4442. function de_at__processRelativeTime(number, withoutSuffix, key, isFuture) {
  4443. var format = {
  4444. 'm': ['eine Minute', 'einer Minute'],
  4445. 'h': ['eine Stunde', 'einer Stunde'],
  4446. 'd': ['ein Tag', 'einem Tag'],
  4447. 'dd': [number + ' Tage', number + ' Tagen'],
  4448. 'M': ['ein Monat', 'einem Monat'],
  4449. 'MM': [number + ' Monate', number + ' Monaten'],
  4450. 'y': ['ein Jahr', 'einem Jahr'],
  4451. 'yy': [number + ' Jahre', number + ' Jahren']
  4452. };
  4453. return withoutSuffix ? format[key][0] : format[key][1];
  4454. }
  4455. var de_at = moment__default.defineLocale('de-at', {
  4456. months : 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  4457. monthsShort : 'Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
  4458. weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  4459. weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  4460. weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  4461. longDateFormat : {
  4462. LT: 'HH:mm',
  4463. LTS: 'HH:mm:ss',
  4464. L : 'DD.MM.YYYY',
  4465. LL : 'D. MMMM YYYY',
  4466. LLL : 'D. MMMM YYYY HH:mm',
  4467. LLLL : 'dddd, D. MMMM YYYY HH:mm'
  4468. },
  4469. calendar : {
  4470. sameDay: '[heute um] LT [Uhr]',
  4471. sameElse: 'L',
  4472. nextDay: '[morgen um] LT [Uhr]',
  4473. nextWeek: 'dddd [um] LT [Uhr]',
  4474. lastDay: '[gestern um] LT [Uhr]',
  4475. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  4476. },
  4477. relativeTime : {
  4478. future : 'in %s',
  4479. past : 'vor %s',
  4480. s : 'ein paar Sekunden',
  4481. m : de_at__processRelativeTime,
  4482. mm : '%d Minuten',
  4483. h : de_at__processRelativeTime,
  4484. hh : '%d Stunden',
  4485. d : de_at__processRelativeTime,
  4486. dd : de_at__processRelativeTime,
  4487. M : de_at__processRelativeTime,
  4488. MM : de_at__processRelativeTime,
  4489. y : de_at__processRelativeTime,
  4490. yy : de_at__processRelativeTime
  4491. },
  4492. ordinalParse: /\d{1,2}\./,
  4493. ordinal : '%d.',
  4494. week : {
  4495. dow : 1, // Monday is the first day of the week.
  4496. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4497. }
  4498. });
  4499. //! moment.js locale configuration
  4500. //! locale : german (de)
  4501. //! author : lluchs : https://github.com/lluchs
  4502. //! author: Menelion Elensúle: https://github.com/Oire
  4503. //! author : Mikolaj Dadela : https://github.com/mik01aj
  4504. function de__processRelativeTime(number, withoutSuffix, key, isFuture) {
  4505. var format = {
  4506. 'm': ['eine Minute', 'einer Minute'],
  4507. 'h': ['eine Stunde', 'einer Stunde'],
  4508. 'd': ['ein Tag', 'einem Tag'],
  4509. 'dd': [number + ' Tage', number + ' Tagen'],
  4510. 'M': ['ein Monat', 'einem Monat'],
  4511. 'MM': [number + ' Monate', number + ' Monaten'],
  4512. 'y': ['ein Jahr', 'einem Jahr'],
  4513. 'yy': [number + ' Jahre', number + ' Jahren']
  4514. };
  4515. return withoutSuffix ? format[key][0] : format[key][1];
  4516. }
  4517. var de = moment__default.defineLocale('de', {
  4518. months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  4519. monthsShort : 'Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
  4520. weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  4521. weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  4522. weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  4523. longDateFormat : {
  4524. LT: 'HH:mm',
  4525. LTS: 'HH:mm:ss',
  4526. L : 'DD.MM.YYYY',
  4527. LL : 'D. MMMM YYYY',
  4528. LLL : 'D. MMMM YYYY HH:mm',
  4529. LLLL : 'dddd, D. MMMM YYYY HH:mm'
  4530. },
  4531. calendar : {
  4532. sameDay: '[heute um] LT [Uhr]',
  4533. sameElse: 'L',
  4534. nextDay: '[morgen um] LT [Uhr]',
  4535. nextWeek: 'dddd [um] LT [Uhr]',
  4536. lastDay: '[gestern um] LT [Uhr]',
  4537. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  4538. },
  4539. relativeTime : {
  4540. future : 'in %s',
  4541. past : 'vor %s',
  4542. s : 'ein paar Sekunden',
  4543. m : de__processRelativeTime,
  4544. mm : '%d Minuten',
  4545. h : de__processRelativeTime,
  4546. hh : '%d Stunden',
  4547. d : de__processRelativeTime,
  4548. dd : de__processRelativeTime,
  4549. M : de__processRelativeTime,
  4550. MM : de__processRelativeTime,
  4551. y : de__processRelativeTime,
  4552. yy : de__processRelativeTime
  4553. },
  4554. ordinalParse: /\d{1,2}\./,
  4555. ordinal : '%d.',
  4556. week : {
  4557. dow : 1, // Monday is the first day of the week.
  4558. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4559. }
  4560. });
  4561. //! moment.js locale configuration
  4562. //! locale : dhivehi (dv)
  4563. //! author : Jawish Hameed : https://github.com/jawish
  4564. var dv__months = [
  4565. 'ޖެނުއަރީ',
  4566. 'ފެބްރުއަރީ',
  4567. 'މާރިޗު',
  4568. 'އޭޕްރީލު',
  4569. 'މޭ',
  4570. 'ޖޫން',
  4571. 'ޖުލައި',
  4572. 'އޯގަސްޓު',
  4573. 'ސެޕްޓެމްބަރު',
  4574. 'އޮކްޓޯބަރު',
  4575. 'ނޮވެމްބަރު',
  4576. 'ޑިސެމްބަރު'
  4577. ], dv__weekdays = [
  4578. 'އާދިއްތަ',
  4579. 'ހޯމަ',
  4580. 'އަންގާރަ',
  4581. 'ބުދަ',
  4582. 'ބުރާސްފަތި',
  4583. 'ހުކުރު',
  4584. 'ހޮނިހިރު'
  4585. ];
  4586. var dv = moment__default.defineLocale('dv', {
  4587. months : dv__months,
  4588. monthsShort : dv__months,
  4589. weekdays : dv__weekdays,
  4590. weekdaysShort : dv__weekdays,
  4591. weekdaysMin : 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
  4592. longDateFormat : {
  4593. LT : 'HH:mm',
  4594. LTS : 'HH:mm:ss',
  4595. L : 'D/M/YYYY',
  4596. LL : 'D MMMM YYYY',
  4597. LLL : 'D MMMM YYYY HH:mm',
  4598. LLLL : 'dddd D MMMM YYYY HH:mm'
  4599. },
  4600. meridiemParse: /މކ|މފ/,
  4601. isPM : function (input) {
  4602. return '' === input;
  4603. },
  4604. meridiem : function (hour, minute, isLower) {
  4605. if (hour < 12) {
  4606. return 'މކ';
  4607. } else {
  4608. return 'މފ';
  4609. }
  4610. },
  4611. calendar : {
  4612. sameDay : '[މިއަދު] LT',
  4613. nextDay : '[މާދަމާ] LT',
  4614. nextWeek : 'dddd LT',
  4615. lastDay : '[އިއްޔެ] LT',
  4616. lastWeek : '[ފާއިތުވި] dddd LT',
  4617. sameElse : 'L'
  4618. },
  4619. relativeTime : {
  4620. future : 'ތެރޭގައި %s',
  4621. past : 'ކުރިން %s',
  4622. s : 'ސިކުންތުކޮޅެއް',
  4623. m : 'މިނިޓެއް',
  4624. mm : 'މިނިޓު %d',
  4625. h : 'ގަޑިއިރެއް',
  4626. hh : 'ގަޑިއިރު %d',
  4627. d : 'ދުވަހެއް',
  4628. dd : 'ދުވަސް %d',
  4629. M : 'މަހެއް',
  4630. MM : 'މަސް %d',
  4631. y : 'އަހަރެއް',
  4632. yy : 'އަހަރު %d'
  4633. },
  4634. preparse: function (string) {
  4635. return string.replace(/،/g, ',');
  4636. },
  4637. postformat: function (string) {
  4638. return string.replace(/,/g, '،');
  4639. },
  4640. week : {
  4641. dow : 7, // Sunday is the first day of the week.
  4642. doy : 12 // The week that contains Jan 1st is the first week of the year.
  4643. }
  4644. });
  4645. //! moment.js locale configuration
  4646. //! locale : modern greek (el)
  4647. //! author : Aggelos Karalias : https://github.com/mehiel
  4648. var el = moment__default.defineLocale('el', {
  4649. monthsNominativeEl : 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),
  4650. monthsGenitiveEl : 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'),
  4651. months : function (momentToFormat, format) {
  4652. if (/D/.test(format.substring(0, format.indexOf('MMMM')))) { // if there is a day number before 'MMMM'
  4653. return this._monthsGenitiveEl[momentToFormat.month()];
  4654. } else {
  4655. return this._monthsNominativeEl[momentToFormat.month()];
  4656. }
  4657. },
  4658. monthsShort : 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
  4659. weekdays : 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'),
  4660. weekdaysShort : 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
  4661. weekdaysMin : 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
  4662. meridiem : function (hours, minutes, isLower) {
  4663. if (hours > 11) {
  4664. return isLower ? 'μμ' : 'ΜΜ';
  4665. } else {
  4666. return isLower ? 'πμ' : 'ΠΜ';
  4667. }
  4668. },
  4669. isPM : function (input) {
  4670. return ((input + '').toLowerCase()[0] === 'μ');
  4671. },
  4672. meridiemParse : /[ΠΜ]\.?Μ?\.?/i,
  4673. longDateFormat : {
  4674. LT : 'h:mm A',
  4675. LTS : 'h:mm:ss A',
  4676. L : 'DD/MM/YYYY',
  4677. LL : 'D MMMM YYYY',
  4678. LLL : 'D MMMM YYYY h:mm A',
  4679. LLLL : 'dddd, D MMMM YYYY h:mm A'
  4680. },
  4681. calendarEl : {
  4682. sameDay : '[Σήμερα {}] LT',
  4683. nextDay : '[Αύριο {}] LT',
  4684. nextWeek : 'dddd [{}] LT',
  4685. lastDay : '[Χθες {}] LT',
  4686. lastWeek : function () {
  4687. switch (this.day()) {
  4688. case 6:
  4689. return '[το προηγούμενο] dddd [{}] LT';
  4690. default:
  4691. return '[την προηγούμενη] dddd [{}] LT';
  4692. }
  4693. },
  4694. sameElse : 'L'
  4695. },
  4696. calendar : function (key, mom) {
  4697. var output = this._calendarEl[key],
  4698. hours = mom && mom.hours();
  4699. if (isFunction(output)) {
  4700. output = output.apply(mom);
  4701. }
  4702. return output.replace('{}', (hours % 12 === 1 ? 'στη' : 'στις'));
  4703. },
  4704. relativeTime : {
  4705. future : 'σε %s',
  4706. past : '%s πριν',
  4707. s : 'λίγα δευτερόλεπτα',
  4708. m : 'ένα λεπτό',
  4709. mm : '%d λεπτά',
  4710. h : 'μία ώρα',
  4711. hh : '%d ώρες',
  4712. d : 'μία μέρα',
  4713. dd : '%d μέρες',
  4714. M : 'ένας μήνας',
  4715. MM : '%d μήνες',
  4716. y : 'ένας χρόνος',
  4717. yy : '%d χρόνια'
  4718. },
  4719. ordinalParse: /\d{1,2}η/,
  4720. ordinal: '%dη',
  4721. week : {
  4722. dow : 1, // Monday is the first day of the week.
  4723. doy : 4 // The week that contains Jan 4st is the first week of the year.
  4724. }
  4725. });
  4726. //! moment.js locale configuration
  4727. //! locale : australian english (en-au)
  4728. var en_au = moment__default.defineLocale('en-au', {
  4729. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  4730. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  4731. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  4732. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  4733. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  4734. longDateFormat : {
  4735. LT : 'h:mm A',
  4736. LTS : 'h:mm:ss A',
  4737. L : 'DD/MM/YYYY',
  4738. LL : 'D MMMM YYYY',
  4739. LLL : 'D MMMM YYYY h:mm A',
  4740. LLLL : 'dddd, D MMMM YYYY h:mm A'
  4741. },
  4742. calendar : {
  4743. sameDay : '[Today at] LT',
  4744. nextDay : '[Tomorrow at] LT',
  4745. nextWeek : 'dddd [at] LT',
  4746. lastDay : '[Yesterday at] LT',
  4747. lastWeek : '[Last] dddd [at] LT',
  4748. sameElse : 'L'
  4749. },
  4750. relativeTime : {
  4751. future : 'in %s',
  4752. past : '%s ago',
  4753. s : 'a few seconds',
  4754. m : 'a minute',
  4755. mm : '%d minutes',
  4756. h : 'an hour',
  4757. hh : '%d hours',
  4758. d : 'a day',
  4759. dd : '%d days',
  4760. M : 'a month',
  4761. MM : '%d months',
  4762. y : 'a year',
  4763. yy : '%d years'
  4764. },
  4765. ordinalParse: /\d{1,2}(st|nd|rd|th)/,
  4766. ordinal : function (number) {
  4767. var b = number % 10,
  4768. output = (~~(number % 100 / 10) === 1) ? 'th' :
  4769. (b === 1) ? 'st' :
  4770. (b === 2) ? 'nd' :
  4771. (b === 3) ? 'rd' : 'th';
  4772. return number + output;
  4773. },
  4774. week : {
  4775. dow : 1, // Monday is the first day of the week.
  4776. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4777. }
  4778. });
  4779. //! moment.js locale configuration
  4780. //! locale : canadian english (en-ca)
  4781. //! author : Jonathan Abourbih : https://github.com/jonbca
  4782. var en_ca = moment__default.defineLocale('en-ca', {
  4783. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  4784. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  4785. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  4786. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  4787. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  4788. longDateFormat : {
  4789. LT : 'h:mm A',
  4790. LTS : 'h:mm:ss A',
  4791. L : 'YYYY-MM-DD',
  4792. LL : 'D MMMM, YYYY',
  4793. LLL : 'D MMMM, YYYY h:mm A',
  4794. LLLL : 'dddd, D MMMM, YYYY h:mm A'
  4795. },
  4796. calendar : {
  4797. sameDay : '[Today at] LT',
  4798. nextDay : '[Tomorrow at] LT',
  4799. nextWeek : 'dddd [at] LT',
  4800. lastDay : '[Yesterday at] LT',
  4801. lastWeek : '[Last] dddd [at] LT',
  4802. sameElse : 'L'
  4803. },
  4804. relativeTime : {
  4805. future : 'in %s',
  4806. past : '%s ago',
  4807. s : 'a few seconds',
  4808. m : 'a minute',
  4809. mm : '%d minutes',
  4810. h : 'an hour',
  4811. hh : '%d hours',
  4812. d : 'a day',
  4813. dd : '%d days',
  4814. M : 'a month',
  4815. MM : '%d months',
  4816. y : 'a year',
  4817. yy : '%d years'
  4818. },
  4819. ordinalParse: /\d{1,2}(st|nd|rd|th)/,
  4820. ordinal : function (number) {
  4821. var b = number % 10,
  4822. output = (~~(number % 100 / 10) === 1) ? 'th' :
  4823. (b === 1) ? 'st' :
  4824. (b === 2) ? 'nd' :
  4825. (b === 3) ? 'rd' : 'th';
  4826. return number + output;
  4827. }
  4828. });
  4829. //! moment.js locale configuration
  4830. //! locale : great britain english (en-gb)
  4831. //! author : Chris Gedrim : https://github.com/chrisgedrim
  4832. var en_gb = moment__default.defineLocale('en-gb', {
  4833. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  4834. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  4835. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  4836. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  4837. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  4838. longDateFormat : {
  4839. LT : 'HH:mm',
  4840. LTS : 'HH:mm:ss',
  4841. L : 'DD/MM/YYYY',
  4842. LL : 'D MMMM YYYY',
  4843. LLL : 'D MMMM YYYY HH:mm',
  4844. LLLL : 'dddd, D MMMM YYYY HH:mm'
  4845. },
  4846. calendar : {
  4847. sameDay : '[Today at] LT',
  4848. nextDay : '[Tomorrow at] LT',
  4849. nextWeek : 'dddd [at] LT',
  4850. lastDay : '[Yesterday at] LT',
  4851. lastWeek : '[Last] dddd [at] LT',
  4852. sameElse : 'L'
  4853. },
  4854. relativeTime : {
  4855. future : 'in %s',
  4856. past : '%s ago',
  4857. s : 'a few seconds',
  4858. m : 'a minute',
  4859. mm : '%d minutes',
  4860. h : 'an hour',
  4861. hh : '%d hours',
  4862. d : 'a day',
  4863. dd : '%d days',
  4864. M : 'a month',
  4865. MM : '%d months',
  4866. y : 'a year',
  4867. yy : '%d years'
  4868. },
  4869. ordinalParse: /\d{1,2}(st|nd|rd|th)/,
  4870. ordinal : function (number) {
  4871. var b = number % 10,
  4872. output = (~~(number % 100 / 10) === 1) ? 'th' :
  4873. (b === 1) ? 'st' :
  4874. (b === 2) ? 'nd' :
  4875. (b === 3) ? 'rd' : 'th';
  4876. return number + output;
  4877. },
  4878. week : {
  4879. dow : 1, // Monday is the first day of the week.
  4880. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4881. }
  4882. });
  4883. //! moment.js locale configuration
  4884. //! locale : Irish english (en-ie)
  4885. //! author : Chris Cartlidge : https://github.com/chriscartlidge
  4886. var en_ie = moment__default.defineLocale('en-ie', {
  4887. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  4888. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  4889. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  4890. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  4891. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  4892. longDateFormat : {
  4893. LT : 'HH:mm',
  4894. LTS : 'HH:mm:ss',
  4895. L : 'DD-MM-YYYY',
  4896. LL : 'D MMMM YYYY',
  4897. LLL : 'D MMMM YYYY HH:mm',
  4898. LLLL : 'dddd D MMMM YYYY HH:mm'
  4899. },
  4900. calendar : {
  4901. sameDay : '[Today at] LT',
  4902. nextDay : '[Tomorrow at] LT',
  4903. nextWeek : 'dddd [at] LT',
  4904. lastDay : '[Yesterday at] LT',
  4905. lastWeek : '[Last] dddd [at] LT',
  4906. sameElse : 'L'
  4907. },
  4908. relativeTime : {
  4909. future : 'in %s',
  4910. past : '%s ago',
  4911. s : 'a few seconds',
  4912. m : 'a minute',
  4913. mm : '%d minutes',
  4914. h : 'an hour',
  4915. hh : '%d hours',
  4916. d : 'a day',
  4917. dd : '%d days',
  4918. M : 'a month',
  4919. MM : '%d months',
  4920. y : 'a year',
  4921. yy : '%d years'
  4922. },
  4923. ordinalParse: /\d{1,2}(st|nd|rd|th)/,
  4924. ordinal : function (number) {
  4925. var b = number % 10,
  4926. output = (~~(number % 100 / 10) === 1) ? 'th' :
  4927. (b === 1) ? 'st' :
  4928. (b === 2) ? 'nd' :
  4929. (b === 3) ? 'rd' : 'th';
  4930. return number + output;
  4931. },
  4932. week : {
  4933. dow : 1, // Monday is the first day of the week.
  4934. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4935. }
  4936. });
  4937. //! moment.js locale configuration
  4938. //! locale : New Zealand english (en-nz)
  4939. var en_nz = moment__default.defineLocale('en-nz', {
  4940. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  4941. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  4942. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  4943. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  4944. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  4945. longDateFormat : {
  4946. LT : 'h:mm A',
  4947. LTS : 'h:mm:ss A',
  4948. L : 'DD/MM/YYYY',
  4949. LL : 'D MMMM YYYY',
  4950. LLL : 'D MMMM YYYY h:mm A',
  4951. LLLL : 'dddd, D MMMM YYYY h:mm A'
  4952. },
  4953. calendar : {
  4954. sameDay : '[Today at] LT',
  4955. nextDay : '[Tomorrow at] LT',
  4956. nextWeek : 'dddd [at] LT',
  4957. lastDay : '[Yesterday at] LT',
  4958. lastWeek : '[Last] dddd [at] LT',
  4959. sameElse : 'L'
  4960. },
  4961. relativeTime : {
  4962. future : 'in %s',
  4963. past : '%s ago',
  4964. s : 'a few seconds',
  4965. m : 'a minute',
  4966. mm : '%d minutes',
  4967. h : 'an hour',
  4968. hh : '%d hours',
  4969. d : 'a day',
  4970. dd : '%d days',
  4971. M : 'a month',
  4972. MM : '%d months',
  4973. y : 'a year',
  4974. yy : '%d years'
  4975. },
  4976. ordinalParse: /\d{1,2}(st|nd|rd|th)/,
  4977. ordinal : function (number) {
  4978. var b = number % 10,
  4979. output = (~~(number % 100 / 10) === 1) ? 'th' :
  4980. (b === 1) ? 'st' :
  4981. (b === 2) ? 'nd' :
  4982. (b === 3) ? 'rd' : 'th';
  4983. return number + output;
  4984. },
  4985. week : {
  4986. dow : 1, // Monday is the first day of the week.
  4987. doy : 4 // The week that contains Jan 4th is the first week of the year.
  4988. }
  4989. });
  4990. //! moment.js locale configuration
  4991. //! locale : esperanto (eo)
  4992. //! author : Colin Dean : https://github.com/colindean
  4993. //! komento: Mi estas malcerta se mi korekte traktis akuzativojn en tiu traduko.
  4994. //! Se ne, bonvolu korekti kaj avizi min por ke mi povas lerni!
  4995. var eo = moment__default.defineLocale('eo', {
  4996. months : 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),
  4997. monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'),
  4998. weekdays : 'Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato'.split('_'),
  4999. weekdaysShort : 'Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab'.split('_'),
  5000. weekdaysMin : 'Di_Lu_Ma_Me_Ĵa_Ve_Sa'.split('_'),
  5001. longDateFormat : {
  5002. LT : 'HH:mm',
  5003. LTS : 'HH:mm:ss',
  5004. L : 'YYYY-MM-DD',
  5005. LL : 'D[-an de] MMMM, YYYY',
  5006. LLL : 'D[-an de] MMMM, YYYY HH:mm',
  5007. LLLL : 'dddd, [la] D[-an de] MMMM, YYYY HH:mm'
  5008. },
  5009. meridiemParse: /[ap]\.t\.m/i,
  5010. isPM: function (input) {
  5011. return input.charAt(0).toLowerCase() === 'p';
  5012. },
  5013. meridiem : function (hours, minutes, isLower) {
  5014. if (hours > 11) {
  5015. return isLower ? 'p.t.m.' : 'P.T.M.';
  5016. } else {
  5017. return isLower ? 'a.t.m.' : 'A.T.M.';
  5018. }
  5019. },
  5020. calendar : {
  5021. sameDay : '[Hodiaŭ je] LT',
  5022. nextDay : '[Morgaŭ je] LT',
  5023. nextWeek : 'dddd [je] LT',
  5024. lastDay : '[Hieraŭ je] LT',
  5025. lastWeek : '[pasinta] dddd [je] LT',
  5026. sameElse : 'L'
  5027. },
  5028. relativeTime : {
  5029. future : 'je %s',
  5030. past : 'antaŭ %s',
  5031. s : 'sekundoj',
  5032. m : 'minuto',
  5033. mm : '%d minutoj',
  5034. h : 'horo',
  5035. hh : '%d horoj',
  5036. d : 'tago',//ne 'diurno', ĉar estas uzita por proksimumo
  5037. dd : '%d tagoj',
  5038. M : 'monato',
  5039. MM : '%d monatoj',
  5040. y : 'jaro',
  5041. yy : '%d jaroj'
  5042. },
  5043. ordinalParse: /\d{1,2}a/,
  5044. ordinal : '%da',
  5045. week : {
  5046. dow : 1, // Monday is the first day of the week.
  5047. doy : 7 // The week that contains Jan 1st is the first week of the year.
  5048. }
  5049. });
  5050. //! moment.js locale configuration
  5051. //! locale : spanish (es)
  5052. //! author : Julio Napurí : https://github.com/julionc
  5053. var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
  5054. es__monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
  5055. var es = moment__default.defineLocale('es', {
  5056. months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  5057. monthsShort : function (m, format) {
  5058. if (/-MMM-/.test(format)) {
  5059. return es__monthsShort[m.month()];
  5060. } else {
  5061. return monthsShortDot[m.month()];
  5062. }
  5063. },
  5064. weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  5065. weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  5066. weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  5067. longDateFormat : {
  5068. LT : 'H:mm',
  5069. LTS : 'H:mm:ss',
  5070. L : 'DD/MM/YYYY',
  5071. LL : 'D [de] MMMM [de] YYYY',
  5072. LLL : 'D [de] MMMM [de] YYYY H:mm',
  5073. LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'
  5074. },
  5075. calendar : {
  5076. sameDay : function () {
  5077. return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  5078. },
  5079. nextDay : function () {
  5080. return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  5081. },
  5082. nextWeek : function () {
  5083. return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  5084. },
  5085. lastDay : function () {
  5086. return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  5087. },
  5088. lastWeek : function () {
  5089. return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  5090. },
  5091. sameElse : 'L'
  5092. },
  5093. relativeTime : {
  5094. future : 'en %s',
  5095. past : 'hace %s',
  5096. s : 'unos segundos',
  5097. m : 'un minuto',
  5098. mm : '%d minutos',
  5099. h : 'una hora',
  5100. hh : '%d horas',
  5101. d : 'un día',
  5102. dd : '%d días',
  5103. M : 'un mes',
  5104. MM : '%d meses',
  5105. y : 'un año',
  5106. yy : '%d años'
  5107. },
  5108. ordinalParse : /\d{1,2}º/,
  5109. ordinal : '%dº',
  5110. week : {
  5111. dow : 1, // Monday is the first day of the week.
  5112. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5113. }
  5114. });
  5115. //! moment.js locale configuration
  5116. //! locale : estonian (et)
  5117. //! author : Henry Kehlmann : https://github.com/madhenry
  5118. //! improvements : Illimar Tambek : https://github.com/ragulka
  5119. function et__processRelativeTime(number, withoutSuffix, key, isFuture) {
  5120. var format = {
  5121. 's' : ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
  5122. 'm' : ['ühe minuti', 'üks minut'],
  5123. 'mm': [number + ' minuti', number + ' minutit'],
  5124. 'h' : ['ühe tunni', 'tund aega', 'üks tund'],
  5125. 'hh': [number + ' tunni', number + ' tundi'],
  5126. 'd' : ['ühe päeva', 'üks päev'],
  5127. 'M' : ['kuu aja', 'kuu aega', 'üks kuu'],
  5128. 'MM': [number + ' kuu', number + ' kuud'],
  5129. 'y' : ['ühe aasta', 'aasta', 'üks aasta'],
  5130. 'yy': [number + ' aasta', number + ' aastat']
  5131. };
  5132. if (withoutSuffix) {
  5133. return format[key][2] ? format[key][2] : format[key][1];
  5134. }
  5135. return isFuture ? format[key][0] : format[key][1];
  5136. }
  5137. var et = moment__default.defineLocale('et', {
  5138. months : 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'),
  5139. monthsShort : 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),
  5140. weekdays : 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'),
  5141. weekdaysShort : 'P_E_T_K_N_R_L'.split('_'),
  5142. weekdaysMin : 'P_E_T_K_N_R_L'.split('_'),
  5143. longDateFormat : {
  5144. LT : 'H:mm',
  5145. LTS : 'H:mm:ss',
  5146. L : 'DD.MM.YYYY',
  5147. LL : 'D. MMMM YYYY',
  5148. LLL : 'D. MMMM YYYY H:mm',
  5149. LLLL : 'dddd, D. MMMM YYYY H:mm'
  5150. },
  5151. calendar : {
  5152. sameDay : '[Täna,] LT',
  5153. nextDay : '[Homme,] LT',
  5154. nextWeek : '[Järgmine] dddd LT',
  5155. lastDay : '[Eile,] LT',
  5156. lastWeek : '[Eelmine] dddd LT',
  5157. sameElse : 'L'
  5158. },
  5159. relativeTime : {
  5160. future : '%s pärast',
  5161. past : '%s tagasi',
  5162. s : et__processRelativeTime,
  5163. m : et__processRelativeTime,
  5164. mm : et__processRelativeTime,
  5165. h : et__processRelativeTime,
  5166. hh : et__processRelativeTime,
  5167. d : et__processRelativeTime,
  5168. dd : '%d päeva',
  5169. M : et__processRelativeTime,
  5170. MM : et__processRelativeTime,
  5171. y : et__processRelativeTime,
  5172. yy : et__processRelativeTime
  5173. },
  5174. ordinalParse: /\d{1,2}\./,
  5175. ordinal : '%d.',
  5176. week : {
  5177. dow : 1, // Monday is the first day of the week.
  5178. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5179. }
  5180. });
  5181. //! moment.js locale configuration
  5182. //! locale : euskara (eu)
  5183. //! author : Eneko Illarramendi : https://github.com/eillarra
  5184. var eu = moment__default.defineLocale('eu', {
  5185. months : 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'),
  5186. monthsShort : 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'),
  5187. weekdays : 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'),
  5188. weekdaysShort : 'ig._al._ar._az._og._ol._lr.'.split('_'),
  5189. weekdaysMin : 'ig_al_ar_az_og_ol_lr'.split('_'),
  5190. longDateFormat : {
  5191. LT : 'HH:mm',
  5192. LTS : 'HH:mm:ss',
  5193. L : 'YYYY-MM-DD',
  5194. LL : 'YYYY[ko] MMMM[ren] D[a]',
  5195. LLL : 'YYYY[ko] MMMM[ren] D[a] HH:mm',
  5196. LLLL : 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
  5197. l : 'YYYY-M-D',
  5198. ll : 'YYYY[ko] MMM D[a]',
  5199. lll : 'YYYY[ko] MMM D[a] HH:mm',
  5200. llll : 'ddd, YYYY[ko] MMM D[a] HH:mm'
  5201. },
  5202. calendar : {
  5203. sameDay : '[gaur] LT[etan]',
  5204. nextDay : '[bihar] LT[etan]',
  5205. nextWeek : 'dddd LT[etan]',
  5206. lastDay : '[atzo] LT[etan]',
  5207. lastWeek : '[aurreko] dddd LT[etan]',
  5208. sameElse : 'L'
  5209. },
  5210. relativeTime : {
  5211. future : '%s barru',
  5212. past : 'duela %s',
  5213. s : 'segundo batzuk',
  5214. m : 'minutu bat',
  5215. mm : '%d minutu',
  5216. h : 'ordu bat',
  5217. hh : '%d ordu',
  5218. d : 'egun bat',
  5219. dd : '%d egun',
  5220. M : 'hilabete bat',
  5221. MM : '%d hilabete',
  5222. y : 'urte bat',
  5223. yy : '%d urte'
  5224. },
  5225. ordinalParse: /\d{1,2}\./,
  5226. ordinal : '%d.',
  5227. week : {
  5228. dow : 1, // Monday is the first day of the week.
  5229. doy : 7 // The week that contains Jan 1st is the first week of the year.
  5230. }
  5231. });
  5232. //! moment.js locale configuration
  5233. //! locale : Persian (fa)
  5234. //! author : Ebrahim Byagowi : https://github.com/ebraminio
  5235. var fa__symbolMap = {
  5236. '1': '۱',
  5237. '2': '۲',
  5238. '3': '۳',
  5239. '4': '۴',
  5240. '5': '۵',
  5241. '6': '۶',
  5242. '7': '۷',
  5243. '8': '۸',
  5244. '9': '۹',
  5245. '0': '۰'
  5246. }, fa__numberMap = {
  5247. '۱': '1',
  5248. '۲': '2',
  5249. '۳': '3',
  5250. '۴': '4',
  5251. '۵': '5',
  5252. '۶': '6',
  5253. '۷': '7',
  5254. '۸': '8',
  5255. '۹': '9',
  5256. '۰': '0'
  5257. };
  5258. var fa = moment__default.defineLocale('fa', {
  5259. months : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
  5260. monthsShort : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
  5261. weekdays : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
  5262. weekdaysShort : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
  5263. weekdaysMin : 'ی_د_س_چ_پ_ج_ش'.split('_'),
  5264. longDateFormat : {
  5265. LT : 'HH:mm',
  5266. LTS : 'HH:mm:ss',
  5267. L : 'DD/MM/YYYY',
  5268. LL : 'D MMMM YYYY',
  5269. LLL : 'D MMMM YYYY HH:mm',
  5270. LLLL : 'dddd, D MMMM YYYY HH:mm'
  5271. },
  5272. meridiemParse: /قبل از ظهر|بعد از ظهر/,
  5273. isPM: function (input) {
  5274. return /بعد از ظهر/.test(input);
  5275. },
  5276. meridiem : function (hour, minute, isLower) {
  5277. if (hour < 12) {
  5278. return 'قبل از ظهر';
  5279. } else {
  5280. return 'بعد از ظهر';
  5281. }
  5282. },
  5283. calendar : {
  5284. sameDay : '[امروز ساعت] LT',
  5285. nextDay : '[فردا ساعت] LT',
  5286. nextWeek : 'dddd [ساعت] LT',
  5287. lastDay : '[دیروز ساعت] LT',
  5288. lastWeek : 'dddd [پیش] [ساعت] LT',
  5289. sameElse : 'L'
  5290. },
  5291. relativeTime : {
  5292. future : 'در %s',
  5293. past : '%s پیش',
  5294. s : 'چندین ثانیه',
  5295. m : 'یک دقیقه',
  5296. mm : '%d دقیقه',
  5297. h : 'یک ساعت',
  5298. hh : '%d ساعت',
  5299. d : 'یک روز',
  5300. dd : '%d روز',
  5301. M : 'یک ماه',
  5302. MM : '%d ماه',
  5303. y : 'یک سال',
  5304. yy : '%d سال'
  5305. },
  5306. preparse: function (string) {
  5307. return string.replace(/[۰-۹]/g, function (match) {
  5308. return fa__numberMap[match];
  5309. }).replace(/،/g, ',');
  5310. },
  5311. postformat: function (string) {
  5312. return string.replace(/\d/g, function (match) {
  5313. return fa__symbolMap[match];
  5314. }).replace(/,/g, '،');
  5315. },
  5316. ordinalParse: /\d{1,2}م/,
  5317. ordinal : '%dم',
  5318. week : {
  5319. dow : 6, // Saturday is the first day of the week.
  5320. doy : 12 // The week that contains Jan 1st is the first week of the year.
  5321. }
  5322. });
  5323. //! moment.js locale configuration
  5324. //! locale : finnish (fi)
  5325. //! author : Tarmo Aidantausta : https://github.com/bleadof
  5326. var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' '),
  5327. numbersFuture = [
  5328. 'nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden',
  5329. numbersPast[7], numbersPast[8], numbersPast[9]
  5330. ];
  5331. function fi__translate(number, withoutSuffix, key, isFuture) {
  5332. var result = '';
  5333. switch (key) {
  5334. case 's':
  5335. return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
  5336. case 'm':
  5337. return isFuture ? 'minuutin' : 'minuutti';
  5338. case 'mm':
  5339. result = isFuture ? 'minuutin' : 'minuuttia';
  5340. break;
  5341. case 'h':
  5342. return isFuture ? 'tunnin' : 'tunti';
  5343. case 'hh':
  5344. result = isFuture ? 'tunnin' : 'tuntia';
  5345. break;
  5346. case 'd':
  5347. return isFuture ? 'päivän' : 'päivä';
  5348. case 'dd':
  5349. result = isFuture ? 'päivän' : 'päivää';
  5350. break;
  5351. case 'M':
  5352. return isFuture ? 'kuukauden' : 'kuukausi';
  5353. case 'MM':
  5354. result = isFuture ? 'kuukauden' : 'kuukautta';
  5355. break;
  5356. case 'y':
  5357. return isFuture ? 'vuoden' : 'vuosi';
  5358. case 'yy':
  5359. result = isFuture ? 'vuoden' : 'vuotta';
  5360. break;
  5361. }
  5362. result = verbalNumber(number, isFuture) + ' ' + result;
  5363. return result;
  5364. }
  5365. function verbalNumber(number, isFuture) {
  5366. return number < 10 ? (isFuture ? numbersFuture[number] : numbersPast[number]) : number;
  5367. }
  5368. var fi = moment__default.defineLocale('fi', {
  5369. months : 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'),
  5370. monthsShort : 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'),
  5371. weekdays : 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'),
  5372. weekdaysShort : 'su_ma_ti_ke_to_pe_la'.split('_'),
  5373. weekdaysMin : 'su_ma_ti_ke_to_pe_la'.split('_'),
  5374. longDateFormat : {
  5375. LT : 'HH.mm',
  5376. LTS : 'HH.mm.ss',
  5377. L : 'DD.MM.YYYY',
  5378. LL : 'Do MMMM[ta] YYYY',
  5379. LLL : 'Do MMMM[ta] YYYY, [klo] HH.mm',
  5380. LLLL : 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
  5381. l : 'D.M.YYYY',
  5382. ll : 'Do MMM YYYY',
  5383. lll : 'Do MMM YYYY, [klo] HH.mm',
  5384. llll : 'ddd, Do MMM YYYY, [klo] HH.mm'
  5385. },
  5386. calendar : {
  5387. sameDay : '[tänään] [klo] LT',
  5388. nextDay : '[huomenna] [klo] LT',
  5389. nextWeek : 'dddd [klo] LT',
  5390. lastDay : '[eilen] [klo] LT',
  5391. lastWeek : '[viime] dddd[na] [klo] LT',
  5392. sameElse : 'L'
  5393. },
  5394. relativeTime : {
  5395. future : '%s päästä',
  5396. past : '%s sitten',
  5397. s : fi__translate,
  5398. m : fi__translate,
  5399. mm : fi__translate,
  5400. h : fi__translate,
  5401. hh : fi__translate,
  5402. d : fi__translate,
  5403. dd : fi__translate,
  5404. M : fi__translate,
  5405. MM : fi__translate,
  5406. y : fi__translate,
  5407. yy : fi__translate
  5408. },
  5409. ordinalParse: /\d{1,2}\./,
  5410. ordinal : '%d.',
  5411. week : {
  5412. dow : 1, // Monday is the first day of the week.
  5413. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5414. }
  5415. });
  5416. //! moment.js locale configuration
  5417. //! locale : faroese (fo)
  5418. //! author : Ragnar Johannesen : https://github.com/ragnar123
  5419. var fo = moment__default.defineLocale('fo', {
  5420. months : 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  5421. monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  5422. weekdays : 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'),
  5423. weekdaysShort : 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
  5424. weekdaysMin : 'su_má_tý_mi_hó_fr_le'.split('_'),
  5425. longDateFormat : {
  5426. LT : 'HH:mm',
  5427. LTS : 'HH:mm:ss',
  5428. L : 'DD/MM/YYYY',
  5429. LL : 'D MMMM YYYY',
  5430. LLL : 'D MMMM YYYY HH:mm',
  5431. LLLL : 'dddd D. MMMM, YYYY HH:mm'
  5432. },
  5433. calendar : {
  5434. sameDay : '[Í dag kl.] LT',
  5435. nextDay : '[Í morgin kl.] LT',
  5436. nextWeek : 'dddd [kl.] LT',
  5437. lastDay : '[Í gjár kl.] LT',
  5438. lastWeek : '[síðstu] dddd [kl] LT',
  5439. sameElse : 'L'
  5440. },
  5441. relativeTime : {
  5442. future : 'um %s',
  5443. past : '%s síðani',
  5444. s : 'fá sekund',
  5445. m : 'ein minutt',
  5446. mm : '%d minuttir',
  5447. h : 'ein tími',
  5448. hh : '%d tímar',
  5449. d : 'ein dagur',
  5450. dd : '%d dagar',
  5451. M : 'ein mánaði',
  5452. MM : '%d mánaðir',
  5453. y : 'eitt ár',
  5454. yy : '%d ár'
  5455. },
  5456. ordinalParse: /\d{1,2}\./,
  5457. ordinal : '%d.',
  5458. week : {
  5459. dow : 1, // Monday is the first day of the week.
  5460. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5461. }
  5462. });
  5463. //! moment.js locale configuration
  5464. //! locale : canadian french (fr-ca)
  5465. //! author : Jonathan Abourbih : https://github.com/jonbca
  5466. var fr_ca = moment__default.defineLocale('fr-ca', {
  5467. months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  5468. monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  5469. weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  5470. weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  5471. weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
  5472. longDateFormat : {
  5473. LT : 'HH:mm',
  5474. LTS : 'HH:mm:ss',
  5475. L : 'YYYY-MM-DD',
  5476. LL : 'D MMMM YYYY',
  5477. LLL : 'D MMMM YYYY HH:mm',
  5478. LLLL : 'dddd D MMMM YYYY HH:mm'
  5479. },
  5480. calendar : {
  5481. sameDay: '[Aujourd\'hui à] LT',
  5482. nextDay: '[Demain à] LT',
  5483. nextWeek: 'dddd [à] LT',
  5484. lastDay: '[Hier à] LT',
  5485. lastWeek: 'dddd [dernier à] LT',
  5486. sameElse: 'L'
  5487. },
  5488. relativeTime : {
  5489. future : 'dans %s',
  5490. past : 'il y a %s',
  5491. s : 'quelques secondes',
  5492. m : 'une minute',
  5493. mm : '%d minutes',
  5494. h : 'une heure',
  5495. hh : '%d heures',
  5496. d : 'un jour',
  5497. dd : '%d jours',
  5498. M : 'un mois',
  5499. MM : '%d mois',
  5500. y : 'un an',
  5501. yy : '%d ans'
  5502. },
  5503. ordinalParse: /\d{1,2}(er|e)/,
  5504. ordinal : function (number) {
  5505. return number + (number === 1 ? 'er' : 'e');
  5506. }
  5507. });
  5508. //! moment.js locale configuration
  5509. //! locale : swiss french (fr)
  5510. //! author : Gaspard Bucher : https://github.com/gaspard
  5511. var fr_ch = moment__default.defineLocale('fr-ch', {
  5512. months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  5513. monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  5514. weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  5515. weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  5516. weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
  5517. longDateFormat : {
  5518. LT : 'HH:mm',
  5519. LTS : 'HH:mm:ss',
  5520. L : 'DD.MM.YYYY',
  5521. LL : 'D MMMM YYYY',
  5522. LLL : 'D MMMM YYYY HH:mm',
  5523. LLLL : 'dddd D MMMM YYYY HH:mm'
  5524. },
  5525. calendar : {
  5526. sameDay: '[Aujourd\'hui à] LT',
  5527. nextDay: '[Demain à] LT',
  5528. nextWeek: 'dddd [à] LT',
  5529. lastDay: '[Hier à] LT',
  5530. lastWeek: 'dddd [dernier à] LT',
  5531. sameElse: 'L'
  5532. },
  5533. relativeTime : {
  5534. future : 'dans %s',
  5535. past : 'il y a %s',
  5536. s : 'quelques secondes',
  5537. m : 'une minute',
  5538. mm : '%d minutes',
  5539. h : 'une heure',
  5540. hh : '%d heures',
  5541. d : 'un jour',
  5542. dd : '%d jours',
  5543. M : 'un mois',
  5544. MM : '%d mois',
  5545. y : 'un an',
  5546. yy : '%d ans'
  5547. },
  5548. ordinalParse: /\d{1,2}(er|e)/,
  5549. ordinal : function (number) {
  5550. return number + (number === 1 ? 'er' : 'e');
  5551. },
  5552. week : {
  5553. dow : 1, // Monday is the first day of the week.
  5554. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5555. }
  5556. });
  5557. //! moment.js locale configuration
  5558. //! locale : french (fr)
  5559. //! author : John Fischer : https://github.com/jfroffice
  5560. var fr = moment__default.defineLocale('fr', {
  5561. months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  5562. monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  5563. weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  5564. weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  5565. weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
  5566. longDateFormat : {
  5567. LT : 'HH:mm',
  5568. LTS : 'HH:mm:ss',
  5569. L : 'DD/MM/YYYY',
  5570. LL : 'D MMMM YYYY',
  5571. LLL : 'D MMMM YYYY HH:mm',
  5572. LLLL : 'dddd D MMMM YYYY HH:mm'
  5573. },
  5574. calendar : {
  5575. sameDay: '[Aujourd\'hui à] LT',
  5576. nextDay: '[Demain à] LT',
  5577. nextWeek: 'dddd [à] LT',
  5578. lastDay: '[Hier à] LT',
  5579. lastWeek: 'dddd [dernier à] LT',
  5580. sameElse: 'L'
  5581. },
  5582. relativeTime : {
  5583. future : 'dans %s',
  5584. past : 'il y a %s',
  5585. s : 'quelques secondes',
  5586. m : 'une minute',
  5587. mm : '%d minutes',
  5588. h : 'une heure',
  5589. hh : '%d heures',
  5590. d : 'un jour',
  5591. dd : '%d jours',
  5592. M : 'un mois',
  5593. MM : '%d mois',
  5594. y : 'un an',
  5595. yy : '%d ans'
  5596. },
  5597. ordinalParse: /\d{1,2}(er|)/,
  5598. ordinal : function (number) {
  5599. return number + (number === 1 ? 'er' : '');
  5600. },
  5601. week : {
  5602. dow : 1, // Monday is the first day of the week.
  5603. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5604. }
  5605. });
  5606. //! moment.js locale configuration
  5607. //! locale : frisian (fy)
  5608. //! author : Robin van der Vliet : https://github.com/robin0van0der0v
  5609. var fy__monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'),
  5610. fy__monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
  5611. var fy = moment__default.defineLocale('fy', {
  5612. months : 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),
  5613. monthsShort : function (m, format) {
  5614. if (/-MMM-/.test(format)) {
  5615. return fy__monthsShortWithoutDots[m.month()];
  5616. } else {
  5617. return fy__monthsShortWithDots[m.month()];
  5618. }
  5619. },
  5620. weekdays : 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),
  5621. weekdaysShort : 'si._mo._ti._wo._to._fr._so.'.split('_'),
  5622. weekdaysMin : 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
  5623. longDateFormat : {
  5624. LT : 'HH:mm',
  5625. LTS : 'HH:mm:ss',
  5626. L : 'DD-MM-YYYY',
  5627. LL : 'D MMMM YYYY',
  5628. LLL : 'D MMMM YYYY HH:mm',
  5629. LLLL : 'dddd D MMMM YYYY HH:mm'
  5630. },
  5631. calendar : {
  5632. sameDay: '[hjoed om] LT',
  5633. nextDay: '[moarn om] LT',
  5634. nextWeek: 'dddd [om] LT',
  5635. lastDay: '[juster om] LT',
  5636. lastWeek: '[ôfrûne] dddd [om] LT',
  5637. sameElse: 'L'
  5638. },
  5639. relativeTime : {
  5640. future : 'oer %s',
  5641. past : '%s lyn',
  5642. s : 'in pear sekonden',
  5643. m : 'ien minút',
  5644. mm : '%d minuten',
  5645. h : 'ien oere',
  5646. hh : '%d oeren',
  5647. d : 'ien dei',
  5648. dd : '%d dagen',
  5649. M : 'ien moanne',
  5650. MM : '%d moannen',
  5651. y : 'ien jier',
  5652. yy : '%d jierren'
  5653. },
  5654. ordinalParse: /\d{1,2}(ste|de)/,
  5655. ordinal : function (number) {
  5656. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
  5657. },
  5658. week : {
  5659. dow : 1, // Monday is the first day of the week.
  5660. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5661. }
  5662. });
  5663. //! moment.js locale configuration
  5664. //! locale : great britain scottish gealic (gd)
  5665. //! author : Jon Ashdown : https://github.com/jonashdown
  5666. var gd__months = [
  5667. 'Am Faoilleach', 'An Gearran', 'Am Màrt', 'An Giblean', 'An Cèitean', 'An t-Ògmhios', 'An t-Iuchar', 'An Lùnastal', 'An t-Sultain', 'An Dàmhair', 'An t-Samhain', 'An Dùbhlachd'
  5668. ];
  5669. var gd__monthsShort = ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh'];
  5670. var gd__weekdays = ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne'];
  5671. var weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'];
  5672. var weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
  5673. var gd = moment__default.defineLocale('gd', {
  5674. months : gd__months,
  5675. monthsShort : gd__monthsShort,
  5676. monthsParseExact : true,
  5677. weekdays : gd__weekdays,
  5678. weekdaysShort : weekdaysShort,
  5679. weekdaysMin : weekdaysMin,
  5680. longDateFormat : {
  5681. LT : 'HH:mm',
  5682. LTS : 'HH:mm:ss',
  5683. L : 'DD/MM/YYYY',
  5684. LL : 'D MMMM YYYY',
  5685. LLL : 'D MMMM YYYY HH:mm',
  5686. LLLL : 'dddd, D MMMM YYYY HH:mm'
  5687. },
  5688. calendar : {
  5689. sameDay : '[An-diugh aig] LT',
  5690. nextDay : '[A-màireach aig] LT',
  5691. nextWeek : 'dddd [aig] LT',
  5692. lastDay : '[An-dè aig] LT',
  5693. lastWeek : 'dddd [seo chaidh] [aig] LT',
  5694. sameElse : 'L'
  5695. },
  5696. relativeTime : {
  5697. future : 'ann an %s',
  5698. past : 'bho chionn %s',
  5699. s : 'beagan diogan',
  5700. m : 'mionaid',
  5701. mm : '%d mionaidean',
  5702. h : 'uair',
  5703. hh : '%d uairean',
  5704. d : 'latha',
  5705. dd : '%d latha',
  5706. M : 'mìos',
  5707. MM : '%d mìosan',
  5708. y : 'bliadhna',
  5709. yy : '%d bliadhna'
  5710. },
  5711. ordinalParse : /\d{1,2}(d|na|mh)/,
  5712. ordinal : function (number) {
  5713. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  5714. return number + output;
  5715. },
  5716. week : {
  5717. dow : 1, // Monday is the first day of the week.
  5718. doy : 4 // The week that contains Jan 4th is the first week of the year.
  5719. }
  5720. });
  5721. //! moment.js locale configuration
  5722. //! locale : galician (gl)
  5723. //! author : Juan G. Hurtado : https://github.com/juanghurtado
  5724. var gl = moment__default.defineLocale('gl', {
  5725. months : 'Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro'.split('_'),
  5726. monthsShort : 'Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.'.split('_'),
  5727. weekdays : 'Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado'.split('_'),
  5728. weekdaysShort : 'Dom._Lun._Mar._Mér._Xov._Ven._Sáb.'.split('_'),
  5729. weekdaysMin : 'Do_Lu_Ma_Mé_Xo_Ve_Sá'.split('_'),
  5730. longDateFormat : {
  5731. LT : 'H:mm',
  5732. LTS : 'H:mm:ss',
  5733. L : 'DD/MM/YYYY',
  5734. LL : 'D MMMM YYYY',
  5735. LLL : 'D MMMM YYYY H:mm',
  5736. LLLL : 'dddd D MMMM YYYY H:mm'
  5737. },
  5738. calendar : {
  5739. sameDay : function () {
  5740. return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
  5741. },
  5742. nextDay : function () {
  5743. return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
  5744. },
  5745. nextWeek : function () {
  5746. return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
  5747. },
  5748. lastDay : function () {
  5749. return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT';
  5750. },
  5751. lastWeek : function () {
  5752. return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
  5753. },
  5754. sameElse : 'L'
  5755. },
  5756. relativeTime : {
  5757. future : function (str) {
  5758. if (str === 'uns segundos') {
  5759. return 'nuns segundos';
  5760. }
  5761. return 'en ' + str;
  5762. },
  5763. past : 'hai %s',
  5764. s : 'uns segundos',
  5765. m : 'un minuto',
  5766. mm : '%d minutos',
  5767. h : 'unha hora',
  5768. hh : '%d horas',
  5769. d : 'un día',
  5770. dd : '%d días',
  5771. M : 'un mes',
  5772. MM : '%d meses',
  5773. y : 'un ano',
  5774. yy : '%d anos'
  5775. },
  5776. ordinalParse : /\d{1,2}º/,
  5777. ordinal : '%dº',
  5778. week : {
  5779. dow : 1, // Monday is the first day of the week.
  5780. doy : 7 // The week that contains Jan 1st is the first week of the year.
  5781. }
  5782. });
  5783. //! moment.js locale configuration
  5784. //! locale : Hebrew (he)
  5785. //! author : Tomer Cohen : https://github.com/tomer
  5786. //! author : Moshe Simantov : https://github.com/DevelopmentIL
  5787. //! author : Tal Ater : https://github.com/TalAter
  5788. var he = moment__default.defineLocale('he', {
  5789. months : 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),
  5790. monthsShort : 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
  5791. weekdays : 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
  5792. weekdaysShort : 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
  5793. weekdaysMin : 'א_ב_ג_ד_ה_ו_ש'.split('_'),
  5794. longDateFormat : {
  5795. LT : 'HH:mm',
  5796. LTS : 'HH:mm:ss',
  5797. L : 'DD/MM/YYYY',
  5798. LL : 'D [ב]MMMM YYYY',
  5799. LLL : 'D [ב]MMMM YYYY HH:mm',
  5800. LLLL : 'dddd, D [ב]MMMM YYYY HH:mm',
  5801. l : 'D/M/YYYY',
  5802. ll : 'D MMM YYYY',
  5803. lll : 'D MMM YYYY HH:mm',
  5804. llll : 'ddd, D MMM YYYY HH:mm'
  5805. },
  5806. calendar : {
  5807. sameDay : '[היום ב־]LT',
  5808. nextDay : '[מחר ב־]LT',
  5809. nextWeek : 'dddd [בשעה] LT',
  5810. lastDay : '[אתמול ב־]LT',
  5811. lastWeek : '[ביום] dddd [האחרון בשעה] LT',
  5812. sameElse : 'L'
  5813. },
  5814. relativeTime : {
  5815. future : 'בעוד %s',
  5816. past : 'לפני %s',
  5817. s : 'מספר שניות',
  5818. m : 'דקה',
  5819. mm : '%d דקות',
  5820. h : 'שעה',
  5821. hh : function (number) {
  5822. if (number === 2) {
  5823. return 'שעתיים';
  5824. }
  5825. return number + ' שעות';
  5826. },
  5827. d : 'יום',
  5828. dd : function (number) {
  5829. if (number === 2) {
  5830. return 'יומיים';
  5831. }
  5832. return number + ' ימים';
  5833. },
  5834. M : 'חודש',
  5835. MM : function (number) {
  5836. if (number === 2) {
  5837. return 'חודשיים';
  5838. }
  5839. return number + ' חודשים';
  5840. },
  5841. y : 'שנה',
  5842. yy : function (number) {
  5843. if (number === 2) {
  5844. return 'שנתיים';
  5845. } else if (number % 10 === 0 && number !== 10) {
  5846. return number + ' שנה';
  5847. }
  5848. return number + ' שנים';
  5849. }
  5850. }
  5851. });
  5852. //! moment.js locale configuration
  5853. //! locale : hindi (hi)
  5854. //! author : Mayank Singhal : https://github.com/mayanksinghal
  5855. var hi__symbolMap = {
  5856. '1': '१',
  5857. '2': '२',
  5858. '3': '३',
  5859. '4': '४',
  5860. '5': '५',
  5861. '6': '६',
  5862. '7': '७',
  5863. '8': '८',
  5864. '9': '९',
  5865. '0': '०'
  5866. },
  5867. hi__numberMap = {
  5868. '१': '1',
  5869. '२': '2',
  5870. '३': '3',
  5871. '४': '4',
  5872. '५': '5',
  5873. '६': '6',
  5874. '७': '7',
  5875. '८': '8',
  5876. '९': '9',
  5877. '०': '0'
  5878. };
  5879. var hi = moment__default.defineLocale('hi', {
  5880. months : 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'),
  5881. monthsShort : 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
  5882. weekdays : 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  5883. weekdaysShort : 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
  5884. weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
  5885. longDateFormat : {
  5886. LT : 'A h:mm बजे',
  5887. LTS : 'A h:mm:ss बजे',
  5888. L : 'DD/MM/YYYY',
  5889. LL : 'D MMMM YYYY',
  5890. LLL : 'D MMMM YYYY, A h:mm बजे',
  5891. LLLL : 'dddd, D MMMM YYYY, A h:mm बजे'
  5892. },
  5893. calendar : {
  5894. sameDay : '[आज] LT',
  5895. nextDay : '[कल] LT',
  5896. nextWeek : 'dddd, LT',
  5897. lastDay : '[कल] LT',
  5898. lastWeek : '[पिछले] dddd, LT',
  5899. sameElse : 'L'
  5900. },
  5901. relativeTime : {
  5902. future : '%s में',
  5903. past : '%s पहले',
  5904. s : 'कुछ ही क्षण',
  5905. m : 'एक मिनट',
  5906. mm : '%d मिनट',
  5907. h : 'एक घंटा',
  5908. hh : '%d घंटे',
  5909. d : 'एक दिन',
  5910. dd : '%d दिन',
  5911. M : 'एक महीने',
  5912. MM : '%d महीने',
  5913. y : 'एक वर्ष',
  5914. yy : '%d वर्ष'
  5915. },
  5916. preparse: function (string) {
  5917. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  5918. return hi__numberMap[match];
  5919. });
  5920. },
  5921. postformat: function (string) {
  5922. return string.replace(/\d/g, function (match) {
  5923. return hi__symbolMap[match];
  5924. });
  5925. },
  5926. // Hindi notation for meridiems are quite fuzzy in practice. While there exists
  5927. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
  5928. meridiemParse: /रात|सुबह|दोपहर|शाम/,
  5929. meridiemHour : function (hour, meridiem) {
  5930. if (hour === 12) {
  5931. hour = 0;
  5932. }
  5933. if (meridiem === 'रात') {
  5934. return hour < 4 ? hour : hour + 12;
  5935. } else if (meridiem === 'सुबह') {
  5936. return hour;
  5937. } else if (meridiem === 'दोपहर') {
  5938. return hour >= 10 ? hour : hour + 12;
  5939. } else if (meridiem === 'शाम') {
  5940. return hour + 12;
  5941. }
  5942. },
  5943. meridiem : function (hour, minute, isLower) {
  5944. if (hour < 4) {
  5945. return 'रात';
  5946. } else if (hour < 10) {
  5947. return 'सुबह';
  5948. } else if (hour < 17) {
  5949. return 'दोपहर';
  5950. } else if (hour < 20) {
  5951. return 'शाम';
  5952. } else {
  5953. return 'रात';
  5954. }
  5955. },
  5956. week : {
  5957. dow : 0, // Sunday is the first day of the week.
  5958. doy : 6 // The week that contains Jan 1st is the first week of the year.
  5959. }
  5960. });
  5961. //! moment.js locale configuration
  5962. //! locale : hrvatski (hr)
  5963. //! author : Bojan Marković : https://github.com/bmarkovic
  5964. function hr__translate(number, withoutSuffix, key) {
  5965. var result = number + ' ';
  5966. switch (key) {
  5967. case 'm':
  5968. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  5969. case 'mm':
  5970. if (number === 1) {
  5971. result += 'minuta';
  5972. } else if (number === 2 || number === 3 || number === 4) {
  5973. result += 'minute';
  5974. } else {
  5975. result += 'minuta';
  5976. }
  5977. return result;
  5978. case 'h':
  5979. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  5980. case 'hh':
  5981. if (number === 1) {
  5982. result += 'sat';
  5983. } else if (number === 2 || number === 3 || number === 4) {
  5984. result += 'sata';
  5985. } else {
  5986. result += 'sati';
  5987. }
  5988. return result;
  5989. case 'dd':
  5990. if (number === 1) {
  5991. result += 'dan';
  5992. } else {
  5993. result += 'dana';
  5994. }
  5995. return result;
  5996. case 'MM':
  5997. if (number === 1) {
  5998. result += 'mjesec';
  5999. } else if (number === 2 || number === 3 || number === 4) {
  6000. result += 'mjeseca';
  6001. } else {
  6002. result += 'mjeseci';
  6003. }
  6004. return result;
  6005. case 'yy':
  6006. if (number === 1) {
  6007. result += 'godina';
  6008. } else if (number === 2 || number === 3 || number === 4) {
  6009. result += 'godine';
  6010. } else {
  6011. result += 'godina';
  6012. }
  6013. return result;
  6014. }
  6015. }
  6016. var hr = moment__default.defineLocale('hr', {
  6017. months : {
  6018. format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split('_'),
  6019. standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_')
  6020. },
  6021. monthsShort : 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'),
  6022. weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  6023. weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  6024. weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
  6025. longDateFormat : {
  6026. LT : 'H:mm',
  6027. LTS : 'H:mm:ss',
  6028. L : 'DD. MM. YYYY',
  6029. LL : 'D. MMMM YYYY',
  6030. LLL : 'D. MMMM YYYY H:mm',
  6031. LLLL : 'dddd, D. MMMM YYYY H:mm'
  6032. },
  6033. calendar : {
  6034. sameDay : '[danas u] LT',
  6035. nextDay : '[sutra u] LT',
  6036. nextWeek : function () {
  6037. switch (this.day()) {
  6038. case 0:
  6039. return '[u] [nedjelju] [u] LT';
  6040. case 3:
  6041. return '[u] [srijedu] [u] LT';
  6042. case 6:
  6043. return '[u] [subotu] [u] LT';
  6044. case 1:
  6045. case 2:
  6046. case 4:
  6047. case 5:
  6048. return '[u] dddd [u] LT';
  6049. }
  6050. },
  6051. lastDay : '[jučer u] LT',
  6052. lastWeek : function () {
  6053. switch (this.day()) {
  6054. case 0:
  6055. case 3:
  6056. return '[prošlu] dddd [u] LT';
  6057. case 6:
  6058. return '[prošle] [subote] [u] LT';
  6059. case 1:
  6060. case 2:
  6061. case 4:
  6062. case 5:
  6063. return '[prošli] dddd [u] LT';
  6064. }
  6065. },
  6066. sameElse : 'L'
  6067. },
  6068. relativeTime : {
  6069. future : 'za %s',
  6070. past : 'prije %s',
  6071. s : 'par sekundi',
  6072. m : hr__translate,
  6073. mm : hr__translate,
  6074. h : hr__translate,
  6075. hh : hr__translate,
  6076. d : 'dan',
  6077. dd : hr__translate,
  6078. M : 'mjesec',
  6079. MM : hr__translate,
  6080. y : 'godinu',
  6081. yy : hr__translate
  6082. },
  6083. ordinalParse: /\d{1,2}\./,
  6084. ordinal : '%d.',
  6085. week : {
  6086. dow : 1, // Monday is the first day of the week.
  6087. doy : 7 // The week that contains Jan 1st is the first week of the year.
  6088. }
  6089. });
  6090. //! moment.js locale configuration
  6091. //! locale : hungarian (hu)
  6092. //! author : Adam Brunner : https://github.com/adambrunner
  6093. var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
  6094. function hu__translate(number, withoutSuffix, key, isFuture) {
  6095. var num = number,
  6096. suffix;
  6097. switch (key) {
  6098. case 's':
  6099. return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce';
  6100. case 'm':
  6101. return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
  6102. case 'mm':
  6103. return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
  6104. case 'h':
  6105. return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
  6106. case 'hh':
  6107. return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
  6108. case 'd':
  6109. return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
  6110. case 'dd':
  6111. return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
  6112. case 'M':
  6113. return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  6114. case 'MM':
  6115. return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  6116. case 'y':
  6117. return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
  6118. case 'yy':
  6119. return num + (isFuture || withoutSuffix ? ' év' : ' éve');
  6120. }
  6121. return '';
  6122. }
  6123. function week(isFuture) {
  6124. return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]';
  6125. }
  6126. var hu = moment__default.defineLocale('hu', {
  6127. months : 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'),
  6128. monthsShort : 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'),
  6129. weekdays : 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
  6130. weekdaysShort : 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
  6131. weekdaysMin : 'v_h_k_sze_cs_p_szo'.split('_'),
  6132. longDateFormat : {
  6133. LT : 'H:mm',
  6134. LTS : 'H:mm:ss',
  6135. L : 'YYYY.MM.DD.',
  6136. LL : 'YYYY. MMMM D.',
  6137. LLL : 'YYYY. MMMM D. H:mm',
  6138. LLLL : 'YYYY. MMMM D., dddd H:mm'
  6139. },
  6140. meridiemParse: /de|du/i,
  6141. isPM: function (input) {
  6142. return input.charAt(1).toLowerCase() === 'u';
  6143. },
  6144. meridiem : function (hours, minutes, isLower) {
  6145. if (hours < 12) {
  6146. return isLower === true ? 'de' : 'DE';
  6147. } else {
  6148. return isLower === true ? 'du' : 'DU';
  6149. }
  6150. },
  6151. calendar : {
  6152. sameDay : '[ma] LT[-kor]',
  6153. nextDay : '[holnap] LT[-kor]',
  6154. nextWeek : function () {
  6155. return week.call(this, true);
  6156. },
  6157. lastDay : '[tegnap] LT[-kor]',
  6158. lastWeek : function () {
  6159. return week.call(this, false);
  6160. },
  6161. sameElse : 'L'
  6162. },
  6163. relativeTime : {
  6164. future : '%s múlva',
  6165. past : '%s',
  6166. s : hu__translate,
  6167. m : hu__translate,
  6168. mm : hu__translate,
  6169. h : hu__translate,
  6170. hh : hu__translate,
  6171. d : hu__translate,
  6172. dd : hu__translate,
  6173. M : hu__translate,
  6174. MM : hu__translate,
  6175. y : hu__translate,
  6176. yy : hu__translate
  6177. },
  6178. ordinalParse: /\d{1,2}\./,
  6179. ordinal : '%d.',
  6180. week : {
  6181. dow : 1, // Monday is the first day of the week.
  6182. doy : 7 // The week that contains Jan 1st is the first week of the year.
  6183. }
  6184. });
  6185. //! moment.js locale configuration
  6186. //! locale : Armenian (hy-am)
  6187. //! author : Armendarabyan : https://github.com/armendarabyan
  6188. var hy_am = moment__default.defineLocale('hy-am', {
  6189. months : {
  6190. format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_'),
  6191. standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_')
  6192. },
  6193. monthsShort : 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
  6194. weekdays : 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_'),
  6195. weekdaysShort : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  6196. weekdaysMin : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  6197. longDateFormat : {
  6198. LT : 'HH:mm',
  6199. LTS : 'HH:mm:ss',
  6200. L : 'DD.MM.YYYY',
  6201. LL : 'D MMMM YYYY թ.',
  6202. LLL : 'D MMMM YYYY թ., HH:mm',
  6203. LLLL : 'dddd, D MMMM YYYY թ., HH:mm'
  6204. },
  6205. calendar : {
  6206. sameDay: '[այսօր] LT',
  6207. nextDay: '[վաղը] LT',
  6208. lastDay: '[երեկ] LT',
  6209. nextWeek: function () {
  6210. return 'dddd [օրը ժամը] LT';
  6211. },
  6212. lastWeek: function () {
  6213. return '[անցած] dddd [օրը ժամը] LT';
  6214. },
  6215. sameElse: 'L'
  6216. },
  6217. relativeTime : {
  6218. future : '%s հետո',
  6219. past : '%s առաջ',
  6220. s : 'մի քանի վայրկյան',
  6221. m : 'րոպե',
  6222. mm : '%d րոպե',
  6223. h : 'ժամ',
  6224. hh : '%d ժամ',
  6225. d : 'օր',
  6226. dd : '%d օր',
  6227. M : 'ամիս',
  6228. MM : '%d ամիս',
  6229. y : 'տարի',
  6230. yy : '%d տարի'
  6231. },
  6232. meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
  6233. isPM: function (input) {
  6234. return /^(ցերեկվա|երեկոյան)$/.test(input);
  6235. },
  6236. meridiem : function (hour) {
  6237. if (hour < 4) {
  6238. return 'գիշերվա';
  6239. } else if (hour < 12) {
  6240. return 'առավոտվա';
  6241. } else if (hour < 17) {
  6242. return 'ցերեկվա';
  6243. } else {
  6244. return 'երեկոյան';
  6245. }
  6246. },
  6247. ordinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
  6248. ordinal: function (number, period) {
  6249. switch (period) {
  6250. case 'DDD':
  6251. case 'w':
  6252. case 'W':
  6253. case 'DDDo':
  6254. if (number === 1) {
  6255. return number + '-ին';
  6256. }
  6257. return number + '-րդ';
  6258. default:
  6259. return number;
  6260. }
  6261. },
  6262. week : {
  6263. dow : 1, // Monday is the first day of the week.
  6264. doy : 7 // The week that contains Jan 1st is the first week of the year.
  6265. }
  6266. });
  6267. //! moment.js locale configuration
  6268. //! locale : Bahasa Indonesia (id)
  6269. //! author : Mohammad Satrio Utomo : https://github.com/tyok
  6270. //! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan
  6271. var id = moment__default.defineLocale('id', {
  6272. months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),
  6273. monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des'.split('_'),
  6274. weekdays : 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
  6275. weekdaysShort : 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
  6276. weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
  6277. longDateFormat : {
  6278. LT : 'HH.mm',
  6279. LTS : 'HH.mm.ss',
  6280. L : 'DD/MM/YYYY',
  6281. LL : 'D MMMM YYYY',
  6282. LLL : 'D MMMM YYYY [pukul] HH.mm',
  6283. LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
  6284. },
  6285. meridiemParse: /pagi|siang|sore|malam/,
  6286. meridiemHour : function (hour, meridiem) {
  6287. if (hour === 12) {
  6288. hour = 0;
  6289. }
  6290. if (meridiem === 'pagi') {
  6291. return hour;
  6292. } else if (meridiem === 'siang') {
  6293. return hour >= 11 ? hour : hour + 12;
  6294. } else if (meridiem === 'sore' || meridiem === 'malam') {
  6295. return hour + 12;
  6296. }
  6297. },
  6298. meridiem : function (hours, minutes, isLower) {
  6299. if (hours < 11) {
  6300. return 'pagi';
  6301. } else if (hours < 15) {
  6302. return 'siang';
  6303. } else if (hours < 19) {
  6304. return 'sore';
  6305. } else {
  6306. return 'malam';
  6307. }
  6308. },
  6309. calendar : {
  6310. sameDay : '[Hari ini pukul] LT',
  6311. nextDay : '[Besok pukul] LT',
  6312. nextWeek : 'dddd [pukul] LT',
  6313. lastDay : '[Kemarin pukul] LT',
  6314. lastWeek : 'dddd [lalu pukul] LT',
  6315. sameElse : 'L'
  6316. },
  6317. relativeTime : {
  6318. future : 'dalam %s',
  6319. past : '%s yang lalu',
  6320. s : 'beberapa detik',
  6321. m : 'semenit',
  6322. mm : '%d menit',
  6323. h : 'sejam',
  6324. hh : '%d jam',
  6325. d : 'sehari',
  6326. dd : '%d hari',
  6327. M : 'sebulan',
  6328. MM : '%d bulan',
  6329. y : 'setahun',
  6330. yy : '%d tahun'
  6331. },
  6332. week : {
  6333. dow : 1, // Monday is the first day of the week.
  6334. doy : 7 // The week that contains Jan 1st is the first week of the year.
  6335. }
  6336. });
  6337. //! moment.js locale configuration
  6338. //! locale : icelandic (is)
  6339. //! author : Hinrik Örn Sigurðsson : https://github.com/hinrik
  6340. function is__plural(n) {
  6341. if (n % 100 === 11) {
  6342. return true;
  6343. } else if (n % 10 === 1) {
  6344. return false;
  6345. }
  6346. return true;
  6347. }
  6348. function is__translate(number, withoutSuffix, key, isFuture) {
  6349. var result = number + ' ';
  6350. switch (key) {
  6351. case 's':
  6352. return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum';
  6353. case 'm':
  6354. return withoutSuffix ? 'mínúta' : 'mínútu';
  6355. case 'mm':
  6356. if (is__plural(number)) {
  6357. return result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum');
  6358. } else if (withoutSuffix) {
  6359. return result + 'mínúta';
  6360. }
  6361. return result + 'mínútu';
  6362. case 'hh':
  6363. if (is__plural(number)) {
  6364. return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum');
  6365. }
  6366. return result + 'klukkustund';
  6367. case 'd':
  6368. if (withoutSuffix) {
  6369. return 'dagur';
  6370. }
  6371. return isFuture ? 'dag' : 'degi';
  6372. case 'dd':
  6373. if (is__plural(number)) {
  6374. if (withoutSuffix) {
  6375. return result + 'dagar';
  6376. }
  6377. return result + (isFuture ? 'daga' : 'dögum');
  6378. } else if (withoutSuffix) {
  6379. return result + 'dagur';
  6380. }
  6381. return result + (isFuture ? 'dag' : 'degi');
  6382. case 'M':
  6383. if (withoutSuffix) {
  6384. return 'mánuður';
  6385. }
  6386. return isFuture ? 'mánuð' : 'mánuði';
  6387. case 'MM':
  6388. if (is__plural(number)) {
  6389. if (withoutSuffix) {
  6390. return result + 'mánuðir';
  6391. }
  6392. return result + (isFuture ? 'mánuði' : 'mánuðum');
  6393. } else if (withoutSuffix) {
  6394. return result + 'mánuður';
  6395. }
  6396. return result + (isFuture ? 'mánuð' : 'mánuði');
  6397. case 'y':
  6398. return withoutSuffix || isFuture ? 'ár' : 'ári';
  6399. case 'yy':
  6400. if (is__plural(number)) {
  6401. return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
  6402. }
  6403. return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
  6404. }
  6405. }
  6406. var is = moment__default.defineLocale('is', {
  6407. months : 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'),
  6408. monthsShort : 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
  6409. weekdays : 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'),
  6410. weekdaysShort : 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
  6411. weekdaysMin : 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
  6412. longDateFormat : {
  6413. LT : 'H:mm',
  6414. LTS : 'H:mm:ss',
  6415. L : 'DD/MM/YYYY',
  6416. LL : 'D. MMMM YYYY',
  6417. LLL : 'D. MMMM YYYY [kl.] H:mm',
  6418. LLLL : 'dddd, D. MMMM YYYY [kl.] H:mm'
  6419. },
  6420. calendar : {
  6421. sameDay : '[í dag kl.] LT',
  6422. nextDay : '[á morgun kl.] LT',
  6423. nextWeek : 'dddd [kl.] LT',
  6424. lastDay : '[í gær kl.] LT',
  6425. lastWeek : '[síðasta] dddd [kl.] LT',
  6426. sameElse : 'L'
  6427. },
  6428. relativeTime : {
  6429. future : 'eftir %s',
  6430. past : 'fyrir %s síðan',
  6431. s : is__translate,
  6432. m : is__translate,
  6433. mm : is__translate,
  6434. h : 'klukkustund',
  6435. hh : is__translate,
  6436. d : is__translate,
  6437. dd : is__translate,
  6438. M : is__translate,
  6439. MM : is__translate,
  6440. y : is__translate,
  6441. yy : is__translate
  6442. },
  6443. ordinalParse: /\d{1,2}\./,
  6444. ordinal : '%d.',
  6445. week : {
  6446. dow : 1, // Monday is the first day of the week.
  6447. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6448. }
  6449. });
  6450. //! moment.js locale configuration
  6451. //! locale : italian (it)
  6452. //! author : Lorenzo : https://github.com/aliem
  6453. //! author: Mattia Larentis: https://github.com/nostalgiaz
  6454. var it = moment__default.defineLocale('it', {
  6455. months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
  6456. monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  6457. weekdays : 'Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato'.split('_'),
  6458. weekdaysShort : 'Dom_Lun_Mar_Mer_Gio_Ven_Sab'.split('_'),
  6459. weekdaysMin : 'Do_Lu_Ma_Me_Gi_Ve_Sa'.split('_'),
  6460. longDateFormat : {
  6461. LT : 'HH:mm',
  6462. LTS : 'HH:mm:ss',
  6463. L : 'DD/MM/YYYY',
  6464. LL : 'D MMMM YYYY',
  6465. LLL : 'D MMMM YYYY HH:mm',
  6466. LLLL : 'dddd, D MMMM YYYY HH:mm'
  6467. },
  6468. calendar : {
  6469. sameDay: '[Oggi alle] LT',
  6470. nextDay: '[Domani alle] LT',
  6471. nextWeek: 'dddd [alle] LT',
  6472. lastDay: '[Ieri alle] LT',
  6473. lastWeek: function () {
  6474. switch (this.day()) {
  6475. case 0:
  6476. return '[la scorsa] dddd [alle] LT';
  6477. default:
  6478. return '[lo scorso] dddd [alle] LT';
  6479. }
  6480. },
  6481. sameElse: 'L'
  6482. },
  6483. relativeTime : {
  6484. future : function (s) {
  6485. return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s;
  6486. },
  6487. past : '%s fa',
  6488. s : 'alcuni secondi',
  6489. m : 'un minuto',
  6490. mm : '%d minuti',
  6491. h : 'un\'ora',
  6492. hh : '%d ore',
  6493. d : 'un giorno',
  6494. dd : '%d giorni',
  6495. M : 'un mese',
  6496. MM : '%d mesi',
  6497. y : 'un anno',
  6498. yy : '%d anni'
  6499. },
  6500. ordinalParse : /\d{1,2}º/,
  6501. ordinal: '%dº',
  6502. week : {
  6503. dow : 1, // Monday is the first day of the week.
  6504. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6505. }
  6506. });
  6507. //! moment.js locale configuration
  6508. //! locale : japanese (ja)
  6509. //! author : LI Long : https://github.com/baryon
  6510. var ja = moment__default.defineLocale('ja', {
  6511. months : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  6512. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  6513. weekdays : '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
  6514. weekdaysShort : '日_月_火_水_木_金_土'.split('_'),
  6515. weekdaysMin : '日_月_火_水_木_金_土'.split('_'),
  6516. longDateFormat : {
  6517. LT : 'Ah時m分',
  6518. LTS : 'Ah時m分s秒',
  6519. L : 'YYYY/MM/DD',
  6520. LL : 'YYYY年M月D日',
  6521. LLL : 'YYYY年M月D日Ah時m分',
  6522. LLLL : 'YYYY年M月D日Ah時m分 dddd'
  6523. },
  6524. meridiemParse: /午前|午後/i,
  6525. isPM : function (input) {
  6526. return input === '午後';
  6527. },
  6528. meridiem : function (hour, minute, isLower) {
  6529. if (hour < 12) {
  6530. return '午前';
  6531. } else {
  6532. return '午後';
  6533. }
  6534. },
  6535. calendar : {
  6536. sameDay : '[今日] LT',
  6537. nextDay : '[明日] LT',
  6538. nextWeek : '[来週]dddd LT',
  6539. lastDay : '[昨日] LT',
  6540. lastWeek : '[前週]dddd LT',
  6541. sameElse : 'L'
  6542. },
  6543. relativeTime : {
  6544. future : '%s後',
  6545. past : '%s前',
  6546. s : '数秒',
  6547. m : '1分',
  6548. mm : '%d分',
  6549. h : '1時間',
  6550. hh : '%d時間',
  6551. d : '1日',
  6552. dd : '%d日',
  6553. M : '1ヶ月',
  6554. MM : '%dヶ月',
  6555. y : '1年',
  6556. yy : '%d年'
  6557. }
  6558. });
  6559. //! moment.js locale configuration
  6560. //! locale : Boso Jowo (jv)
  6561. //! author : Rony Lantip : https://github.com/lantip
  6562. //! reference: http://jv.wikipedia.org/wiki/Basa_Jawa
  6563. var jv = moment__default.defineLocale('jv', {
  6564. months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split('_'),
  6565. monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
  6566. weekdays : 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
  6567. weekdaysShort : 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
  6568. weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
  6569. longDateFormat : {
  6570. LT : 'HH.mm',
  6571. LTS : 'HH.mm.ss',
  6572. L : 'DD/MM/YYYY',
  6573. LL : 'D MMMM YYYY',
  6574. LLL : 'D MMMM YYYY [pukul] HH.mm',
  6575. LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
  6576. },
  6577. meridiemParse: /enjing|siyang|sonten|ndalu/,
  6578. meridiemHour : function (hour, meridiem) {
  6579. if (hour === 12) {
  6580. hour = 0;
  6581. }
  6582. if (meridiem === 'enjing') {
  6583. return hour;
  6584. } else if (meridiem === 'siyang') {
  6585. return hour >= 11 ? hour : hour + 12;
  6586. } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
  6587. return hour + 12;
  6588. }
  6589. },
  6590. meridiem : function (hours, minutes, isLower) {
  6591. if (hours < 11) {
  6592. return 'enjing';
  6593. } else if (hours < 15) {
  6594. return 'siyang';
  6595. } else if (hours < 19) {
  6596. return 'sonten';
  6597. } else {
  6598. return 'ndalu';
  6599. }
  6600. },
  6601. calendar : {
  6602. sameDay : '[Dinten puniko pukul] LT',
  6603. nextDay : '[Mbenjang pukul] LT',
  6604. nextWeek : 'dddd [pukul] LT',
  6605. lastDay : '[Kala wingi pukul] LT',
  6606. lastWeek : 'dddd [kepengker pukul] LT',
  6607. sameElse : 'L'
  6608. },
  6609. relativeTime : {
  6610. future : 'wonten ing %s',
  6611. past : '%s ingkang kepengker',
  6612. s : 'sawetawis detik',
  6613. m : 'setunggal menit',
  6614. mm : '%d menit',
  6615. h : 'setunggal jam',
  6616. hh : '%d jam',
  6617. d : 'sedinten',
  6618. dd : '%d dinten',
  6619. M : 'sewulan',
  6620. MM : '%d wulan',
  6621. y : 'setaun',
  6622. yy : '%d taun'
  6623. },
  6624. week : {
  6625. dow : 1, // Monday is the first day of the week.
  6626. doy : 7 // The week that contains Jan 1st is the first week of the year.
  6627. }
  6628. });
  6629. //! moment.js locale configuration
  6630. //! locale : Georgian (ka)
  6631. //! author : Irakli Janiashvili : https://github.com/irakli-janiashvili
  6632. var ka = moment__default.defineLocale('ka', {
  6633. months : {
  6634. standalone: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'),
  6635. format: 'იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს'.split('_')
  6636. },
  6637. monthsShort : 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
  6638. weekdays : {
  6639. standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'),
  6640. format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_'),
  6641. isFormat: /(წინა|შემდეგ)/
  6642. },
  6643. weekdaysShort : 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
  6644. weekdaysMin : 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
  6645. longDateFormat : {
  6646. LT : 'h:mm A',
  6647. LTS : 'h:mm:ss A',
  6648. L : 'DD/MM/YYYY',
  6649. LL : 'D MMMM YYYY',
  6650. LLL : 'D MMMM YYYY h:mm A',
  6651. LLLL : 'dddd, D MMMM YYYY h:mm A'
  6652. },
  6653. calendar : {
  6654. sameDay : '[დღეს] LT[-ზე]',
  6655. nextDay : '[ხვალ] LT[-ზე]',
  6656. lastDay : '[გუშინ] LT[-ზე]',
  6657. nextWeek : '[შემდეგ] dddd LT[-ზე]',
  6658. lastWeek : '[წინა] dddd LT-ზე',
  6659. sameElse : 'L'
  6660. },
  6661. relativeTime : {
  6662. future : function (s) {
  6663. return (/(წამი|წუთი|საათი|წელი)/).test(s) ?
  6664. s.replace(/ი$/, 'ში') :
  6665. s + 'ში';
  6666. },
  6667. past : function (s) {
  6668. if ((/(წამი|წუთი|საათი|დღე|თვე)/).test(s)) {
  6669. return s.replace(/(ი|ე)$/, 'ის წინ');
  6670. }
  6671. if ((/წელი/).test(s)) {
  6672. return s.replace(/წელი$/, 'წლის წინ');
  6673. }
  6674. },
  6675. s : 'რამდენიმე წამი',
  6676. m : 'წუთი',
  6677. mm : '%d წუთი',
  6678. h : 'საათი',
  6679. hh : '%d საათი',
  6680. d : 'დღე',
  6681. dd : '%d დღე',
  6682. M : 'თვე',
  6683. MM : '%d თვე',
  6684. y : 'წელი',
  6685. yy : '%d წელი'
  6686. },
  6687. ordinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
  6688. ordinal : function (number) {
  6689. if (number === 0) {
  6690. return number;
  6691. }
  6692. if (number === 1) {
  6693. return number + '-ლი';
  6694. }
  6695. if ((number < 20) || (number <= 100 && (number % 20 === 0)) || (number % 100 === 0)) {
  6696. return 'მე-' + number;
  6697. }
  6698. return number + '-ე';
  6699. },
  6700. week : {
  6701. dow : 1,
  6702. doy : 7
  6703. }
  6704. });
  6705. //! moment.js locale configuration
  6706. //! locale : kazakh (kk)
  6707. //! authors : Nurlan Rakhimzhanov : https://github.com/nurlan
  6708. var kk__suffixes = {
  6709. 0: '-ші',
  6710. 1: '-ші',
  6711. 2: '-ші',
  6712. 3: '-ші',
  6713. 4: '-ші',
  6714. 5: '-ші',
  6715. 6: '-шы',
  6716. 7: '-ші',
  6717. 8: '-ші',
  6718. 9: '-шы',
  6719. 10: '-шы',
  6720. 20: '-шы',
  6721. 30: '-шы',
  6722. 40: '-шы',
  6723. 50: '-ші',
  6724. 60: '-шы',
  6725. 70: '-ші',
  6726. 80: '-ші',
  6727. 90: '-шы',
  6728. 100: '-ші'
  6729. };
  6730. var kk = moment__default.defineLocale('kk', {
  6731. months : 'Қаңтар_Ақпан_Наурыз_Сәуір_Мамыр_Маусым_Шілде_Тамыз_Қыркүйек_Қазан_Қараша_Желтоқсан'.split('_'),
  6732. monthsShort : 'Қаң_Ақп_Нау_Сәу_Мам_Мау_Шіл_Там_Қыр_Қаз_Қар_Жел'.split('_'),
  6733. weekdays : 'Жексенбі_Дүйсенбі_Сейсенбі_Сәрсенбі_Бейсенбі_Жұма_Сенбі'.split('_'),
  6734. weekdaysShort : 'Жек_Дүй_Сей_Сәр_Бей_Жұм_Сен'.split('_'),
  6735. weekdaysMin : 'Жк_Дй_Сй_Ср_Бй_Жм_Сн'.split('_'),
  6736. longDateFormat : {
  6737. LT : 'HH:mm',
  6738. LTS : 'HH:mm:ss',
  6739. L : 'DD.MM.YYYY',
  6740. LL : 'D MMMM YYYY',
  6741. LLL : 'D MMMM YYYY HH:mm',
  6742. LLLL : 'dddd, D MMMM YYYY HH:mm'
  6743. },
  6744. calendar : {
  6745. sameDay : '[Бүгін сағат] LT',
  6746. nextDay : '[Ертең сағат] LT',
  6747. nextWeek : 'dddd [сағат] LT',
  6748. lastDay : '[Кеше сағат] LT',
  6749. lastWeek : '[Өткен аптаның] dddd [сағат] LT',
  6750. sameElse : 'L'
  6751. },
  6752. relativeTime : {
  6753. future : '%s ішінде',
  6754. past : '%s бұрын',
  6755. s : 'бірнеше секунд',
  6756. m : 'бір минут',
  6757. mm : '%d минут',
  6758. h : 'бір сағат',
  6759. hh : '%d сағат',
  6760. d : 'бір күн',
  6761. dd : '%d күн',
  6762. M : 'бір ай',
  6763. MM : '%d ай',
  6764. y : 'бір жыл',
  6765. yy : '%d жыл'
  6766. },
  6767. ordinalParse: /\d{1,2}-(ші|шы)/,
  6768. ordinal : function (number) {
  6769. var a = number % 10,
  6770. b = number >= 100 ? 100 : null;
  6771. return number + (kk__suffixes[number] || kk__suffixes[a] || kk__suffixes[b]);
  6772. },
  6773. week : {
  6774. dow : 1, // Monday is the first day of the week.
  6775. doy : 7 // The week that contains Jan 1st is the first week of the year.
  6776. }
  6777. });
  6778. //! moment.js locale configuration
  6779. //! locale : khmer (km)
  6780. //! author : Kruy Vanna : https://github.com/kruyvanna
  6781. var km = moment__default.defineLocale('km', {
  6782. months: 'មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
  6783. monthsShort: 'មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
  6784. weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  6785. weekdaysShort: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  6786. weekdaysMin: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  6787. longDateFormat: {
  6788. LT: 'HH:mm',
  6789. LTS : 'HH:mm:ss',
  6790. L: 'DD/MM/YYYY',
  6791. LL: 'D MMMM YYYY',
  6792. LLL: 'D MMMM YYYY HH:mm',
  6793. LLLL: 'dddd, D MMMM YYYY HH:mm'
  6794. },
  6795. calendar: {
  6796. sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
  6797. nextDay: '[ស្អែក ម៉ោង] LT',
  6798. nextWeek: 'dddd [ម៉ោង] LT',
  6799. lastDay: '[ម្សិលមិញ ម៉ោង] LT',
  6800. lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
  6801. sameElse: 'L'
  6802. },
  6803. relativeTime: {
  6804. future: '%sទៀត',
  6805. past: '%sមុន',
  6806. s: 'ប៉ុន្មានវិនាទី',
  6807. m: 'មួយនាទី',
  6808. mm: '%d នាទី',
  6809. h: 'មួយម៉ោង',
  6810. hh: '%d ម៉ោង',
  6811. d: 'មួយថ្ងៃ',
  6812. dd: '%d ថ្ងៃ',
  6813. M: 'មួយខែ',
  6814. MM: '%d ខែ',
  6815. y: 'មួយឆ្នាំ',
  6816. yy: '%d ឆ្នាំ'
  6817. },
  6818. week: {
  6819. dow: 1, // Monday is the first day of the week.
  6820. doy: 4 // The week that contains Jan 4th is the first week of the year.
  6821. }
  6822. });
  6823. //! moment.js locale configuration
  6824. //! locale : korean (ko)
  6825. //!
  6826. //! authors
  6827. //!
  6828. //! - Kyungwook, Park : https://github.com/kyungw00k
  6829. //! - Jeeeyul Lee <jeeeyul@gmail.com>
  6830. var ko = moment__default.defineLocale('ko', {
  6831. months : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  6832. monthsShort : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  6833. weekdays : '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
  6834. weekdaysShort : '일_월_화_수_목_금_토'.split('_'),
  6835. weekdaysMin : '일_월_화_수_목_금_토'.split('_'),
  6836. longDateFormat : {
  6837. LT : 'A h시 m분',
  6838. LTS : 'A h시 m분 s초',
  6839. L : 'YYYY.MM.DD',
  6840. LL : 'YYYY년 MMMM D일',
  6841. LLL : 'YYYY년 MMMM D일 A h시 m분',
  6842. LLLL : 'YYYY년 MMMM D일 dddd A h시 m분'
  6843. },
  6844. calendar : {
  6845. sameDay : '오늘 LT',
  6846. nextDay : '내일 LT',
  6847. nextWeek : 'dddd LT',
  6848. lastDay : '어제 LT',
  6849. lastWeek : '지난주 dddd LT',
  6850. sameElse : 'L'
  6851. },
  6852. relativeTime : {
  6853. future : '%s 후',
  6854. past : '%s 전',
  6855. s : '몇초',
  6856. ss : '%d초',
  6857. m : '일분',
  6858. mm : '%d분',
  6859. h : '한시간',
  6860. hh : '%d시간',
  6861. d : '하루',
  6862. dd : '%d일',
  6863. M : '한달',
  6864. MM : '%d달',
  6865. y : '일년',
  6866. yy : '%d년'
  6867. },
  6868. ordinalParse : /\d{1,2}일/,
  6869. ordinal : '%d일',
  6870. meridiemParse : /오전|오후/,
  6871. isPM : function (token) {
  6872. return token === '오후';
  6873. },
  6874. meridiem : function (hour, minute, isUpper) {
  6875. return hour < 12 ? '오전' : '오후';
  6876. }
  6877. });
  6878. //! moment.js locale configuration
  6879. //! locale : Luxembourgish (lb)
  6880. //! author : mweimerskirch : https://github.com/mweimerskirch, David Raison : https://github.com/kwisatz
  6881. function lb__processRelativeTime(number, withoutSuffix, key, isFuture) {
  6882. var format = {
  6883. 'm': ['eng Minutt', 'enger Minutt'],
  6884. 'h': ['eng Stonn', 'enger Stonn'],
  6885. 'd': ['een Dag', 'engem Dag'],
  6886. 'M': ['ee Mount', 'engem Mount'],
  6887. 'y': ['ee Joer', 'engem Joer']
  6888. };
  6889. return withoutSuffix ? format[key][0] : format[key][1];
  6890. }
  6891. function processFutureTime(string) {
  6892. var number = string.substr(0, string.indexOf(' '));
  6893. if (eifelerRegelAppliesToNumber(number)) {
  6894. return 'a ' + string;
  6895. }
  6896. return 'an ' + string;
  6897. }
  6898. function processPastTime(string) {
  6899. var number = string.substr(0, string.indexOf(' '));
  6900. if (eifelerRegelAppliesToNumber(number)) {
  6901. return 'viru ' + string;
  6902. }
  6903. return 'virun ' + string;
  6904. }
  6905. /**
  6906. * Returns true if the word before the given number loses the '-n' ending.
  6907. * e.g. 'an 10 Deeg' but 'a 5 Deeg'
  6908. *
  6909. * @param number {integer}
  6910. * @returns {boolean}
  6911. */
  6912. function eifelerRegelAppliesToNumber(number) {
  6913. number = parseInt(number, 10);
  6914. if (isNaN(number)) {
  6915. return false;
  6916. }
  6917. if (number < 0) {
  6918. // Negative Number --> always true
  6919. return true;
  6920. } else if (number < 10) {
  6921. // Only 1 digit
  6922. if (4 <= number && number <= 7) {
  6923. return true;
  6924. }
  6925. return false;
  6926. } else if (number < 100) {
  6927. // 2 digits
  6928. var lastDigit = number % 10, firstDigit = number / 10;
  6929. if (lastDigit === 0) {
  6930. return eifelerRegelAppliesToNumber(firstDigit);
  6931. }
  6932. return eifelerRegelAppliesToNumber(lastDigit);
  6933. } else if (number < 10000) {
  6934. // 3 or 4 digits --> recursively check first digit
  6935. while (number >= 10) {
  6936. number = number / 10;
  6937. }
  6938. return eifelerRegelAppliesToNumber(number);
  6939. } else {
  6940. // Anything larger than 4 digits: recursively check first n-3 digits
  6941. number = number / 1000;
  6942. return eifelerRegelAppliesToNumber(number);
  6943. }
  6944. }
  6945. var lb = moment__default.defineLocale('lb', {
  6946. months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  6947. monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
  6948. weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'),
  6949. weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
  6950. weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
  6951. longDateFormat: {
  6952. LT: 'H:mm [Auer]',
  6953. LTS: 'H:mm:ss [Auer]',
  6954. L: 'DD.MM.YYYY',
  6955. LL: 'D. MMMM YYYY',
  6956. LLL: 'D. MMMM YYYY H:mm [Auer]',
  6957. LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]'
  6958. },
  6959. calendar: {
  6960. sameDay: '[Haut um] LT',
  6961. sameElse: 'L',
  6962. nextDay: '[Muer um] LT',
  6963. nextWeek: 'dddd [um] LT',
  6964. lastDay: '[Gëschter um] LT',
  6965. lastWeek: function () {
  6966. // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
  6967. switch (this.day()) {
  6968. case 2:
  6969. case 4:
  6970. return '[Leschten] dddd [um] LT';
  6971. default:
  6972. return '[Leschte] dddd [um] LT';
  6973. }
  6974. }
  6975. },
  6976. relativeTime : {
  6977. future : processFutureTime,
  6978. past : processPastTime,
  6979. s : 'e puer Sekonnen',
  6980. m : lb__processRelativeTime,
  6981. mm : '%d Minutten',
  6982. h : lb__processRelativeTime,
  6983. hh : '%d Stonnen',
  6984. d : lb__processRelativeTime,
  6985. dd : '%d Deeg',
  6986. M : lb__processRelativeTime,
  6987. MM : '%d Méint',
  6988. y : lb__processRelativeTime,
  6989. yy : '%d Joer'
  6990. },
  6991. ordinalParse: /\d{1,2}\./,
  6992. ordinal: '%d.',
  6993. week: {
  6994. dow: 1, // Monday is the first day of the week.
  6995. doy: 4 // The week that contains Jan 4th is the first week of the year.
  6996. }
  6997. });
  6998. //! moment.js locale configuration
  6999. //! locale : lao (lo)
  7000. //! author : Ryan Hart : https://github.com/ryanhart2
  7001. var lo = moment__default.defineLocale('lo', {
  7002. months : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
  7003. monthsShort : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
  7004. weekdays : 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  7005. weekdaysShort : 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  7006. weekdaysMin : 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
  7007. longDateFormat : {
  7008. LT : 'HH:mm',
  7009. LTS : 'HH:mm:ss',
  7010. L : 'DD/MM/YYYY',
  7011. LL : 'D MMMM YYYY',
  7012. LLL : 'D MMMM YYYY HH:mm',
  7013. LLLL : 'ວັນdddd D MMMM YYYY HH:mm'
  7014. },
  7015. meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
  7016. isPM: function (input) {
  7017. return input === 'ຕອນແລງ';
  7018. },
  7019. meridiem : function (hour, minute, isLower) {
  7020. if (hour < 12) {
  7021. return 'ຕອນເຊົ້າ';
  7022. } else {
  7023. return 'ຕອນແລງ';
  7024. }
  7025. },
  7026. calendar : {
  7027. sameDay : '[ມື້ນີ້ເວລາ] LT',
  7028. nextDay : '[ມື້ອື່ນເວລາ] LT',
  7029. nextWeek : '[ວັນ]dddd[ໜ້າເວລາ] LT',
  7030. lastDay : '[ມື້ວານນີ້ເວລາ] LT',
  7031. lastWeek : '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
  7032. sameElse : 'L'
  7033. },
  7034. relativeTime : {
  7035. future : 'ອີກ %s',
  7036. past : '%sຜ່ານມາ',
  7037. s : 'ບໍ່ເທົ່າໃດວິນາທີ',
  7038. m : '1 ນາທີ',
  7039. mm : '%d ນາທີ',
  7040. h : '1 ຊົ່ວໂມງ',
  7041. hh : '%d ຊົ່ວໂມງ',
  7042. d : '1 ມື້',
  7043. dd : '%d ມື້',
  7044. M : '1 ເດືອນ',
  7045. MM : '%d ເດືອນ',
  7046. y : '1 ປີ',
  7047. yy : '%d ປີ'
  7048. },
  7049. ordinalParse: /(ທີ່)\d{1,2}/,
  7050. ordinal : function (number) {
  7051. return 'ທີ່' + number;
  7052. }
  7053. });
  7054. //! moment.js locale configuration
  7055. //! locale : Lithuanian (lt)
  7056. //! author : Mindaugas Mozūras : https://github.com/mmozuras
  7057. var lt__units = {
  7058. 'm' : 'minutė_minutės_minutę',
  7059. 'mm': 'minutės_minučių_minutes',
  7060. 'h' : 'valanda_valandos_valandą',
  7061. 'hh': 'valandos_valandų_valandas',
  7062. 'd' : 'diena_dienos_dieną',
  7063. 'dd': 'dienos_dienų_dienas',
  7064. 'M' : 'mėnuo_mėnesio_mėnesį',
  7065. 'MM': 'mėnesiai_mėnesių_mėnesius',
  7066. 'y' : 'metai_metų_metus',
  7067. 'yy': 'metai_metų_metus'
  7068. };
  7069. function translateSeconds(number, withoutSuffix, key, isFuture) {
  7070. if (withoutSuffix) {
  7071. return 'kelios sekundės';
  7072. } else {
  7073. return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
  7074. }
  7075. }
  7076. function translateSingular(number, withoutSuffix, key, isFuture) {
  7077. return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]);
  7078. }
  7079. function special(number) {
  7080. return number % 10 === 0 || (number > 10 && number < 20);
  7081. }
  7082. function forms(key) {
  7083. return lt__units[key].split('_');
  7084. }
  7085. function lt__translate(number, withoutSuffix, key, isFuture) {
  7086. var result = number + ' ';
  7087. if (number === 1) {
  7088. return result + translateSingular(number, withoutSuffix, key[0], isFuture);
  7089. } else if (withoutSuffix) {
  7090. return result + (special(number) ? forms(key)[1] : forms(key)[0]);
  7091. } else {
  7092. if (isFuture) {
  7093. return result + forms(key)[1];
  7094. } else {
  7095. return result + (special(number) ? forms(key)[1] : forms(key)[2]);
  7096. }
  7097. }
  7098. }
  7099. var lt = moment__default.defineLocale('lt', {
  7100. months : {
  7101. format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'),
  7102. standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_')
  7103. },
  7104. monthsShort : 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
  7105. weekdays : {
  7106. format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split('_'),
  7107. standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'),
  7108. isFormat: /dddd HH:mm/
  7109. },
  7110. weekdaysShort : 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
  7111. weekdaysMin : 'S_P_A_T_K_Pn_Š'.split('_'),
  7112. longDateFormat : {
  7113. LT : 'HH:mm',
  7114. LTS : 'HH:mm:ss',
  7115. L : 'YYYY-MM-DD',
  7116. LL : 'YYYY [m.] MMMM D [d.]',
  7117. LLL : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  7118. LLLL : 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
  7119. l : 'YYYY-MM-DD',
  7120. ll : 'YYYY [m.] MMMM D [d.]',
  7121. lll : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  7122. llll : 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]'
  7123. },
  7124. calendar : {
  7125. sameDay : '[Šiandien] LT',
  7126. nextDay : '[Rytoj] LT',
  7127. nextWeek : 'dddd LT',
  7128. lastDay : '[Vakar] LT',
  7129. lastWeek : '[Praėjusį] dddd LT',
  7130. sameElse : 'L'
  7131. },
  7132. relativeTime : {
  7133. future : 'po %s',
  7134. past : 'prieš %s',
  7135. s : translateSeconds,
  7136. m : translateSingular,
  7137. mm : lt__translate,
  7138. h : translateSingular,
  7139. hh : lt__translate,
  7140. d : translateSingular,
  7141. dd : lt__translate,
  7142. M : translateSingular,
  7143. MM : lt__translate,
  7144. y : translateSingular,
  7145. yy : lt__translate
  7146. },
  7147. ordinalParse: /\d{1,2}-oji/,
  7148. ordinal : function (number) {
  7149. return number + '-oji';
  7150. },
  7151. week : {
  7152. dow : 1, // Monday is the first day of the week.
  7153. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7154. }
  7155. });
  7156. //! moment.js locale configuration
  7157. //! locale : latvian (lv)
  7158. //! author : Kristaps Karlsons : https://github.com/skakri
  7159. //! author : Jānis Elmeris : https://github.com/JanisE
  7160. var lv__units = {
  7161. 'm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  7162. 'mm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  7163. 'h': 'stundas_stundām_stunda_stundas'.split('_'),
  7164. 'hh': 'stundas_stundām_stunda_stundas'.split('_'),
  7165. 'd': 'dienas_dienām_diena_dienas'.split('_'),
  7166. 'dd': 'dienas_dienām_diena_dienas'.split('_'),
  7167. 'M': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  7168. 'MM': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  7169. 'y': 'gada_gadiem_gads_gadi'.split('_'),
  7170. 'yy': 'gada_gadiem_gads_gadi'.split('_')
  7171. };
  7172. /**
  7173. * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
  7174. */
  7175. function lv__format(forms, number, withoutSuffix) {
  7176. if (withoutSuffix) {
  7177. // E.g. "21 minūte", "3 minūtes".
  7178. return number % 10 === 1 && number !== 11 ? forms[2] : forms[3];
  7179. } else {
  7180. // E.g. "21 minūtes" as in "pēc 21 minūtes".
  7181. // E.g. "3 minūtēm" as in "pēc 3 minūtēm".
  7182. return number % 10 === 1 && number !== 11 ? forms[0] : forms[1];
  7183. }
  7184. }
  7185. function lv__relativeTimeWithPlural(number, withoutSuffix, key) {
  7186. return number + ' ' + lv__format(lv__units[key], number, withoutSuffix);
  7187. }
  7188. function relativeTimeWithSingular(number, withoutSuffix, key) {
  7189. return lv__format(lv__units[key], number, withoutSuffix);
  7190. }
  7191. function relativeSeconds(number, withoutSuffix) {
  7192. return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
  7193. }
  7194. var lv = moment__default.defineLocale('lv', {
  7195. months : 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'),
  7196. monthsShort : 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
  7197. weekdays : 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'),
  7198. weekdaysShort : 'Sv_P_O_T_C_Pk_S'.split('_'),
  7199. weekdaysMin : 'Sv_P_O_T_C_Pk_S'.split('_'),
  7200. longDateFormat : {
  7201. LT : 'HH:mm',
  7202. LTS : 'HH:mm:ss',
  7203. L : 'DD.MM.YYYY.',
  7204. LL : 'YYYY. [gada] D. MMMM',
  7205. LLL : 'YYYY. [gada] D. MMMM, HH:mm',
  7206. LLLL : 'YYYY. [gada] D. MMMM, dddd, HH:mm'
  7207. },
  7208. calendar : {
  7209. sameDay : '[Šodien pulksten] LT',
  7210. nextDay : '[Rīt pulksten] LT',
  7211. nextWeek : 'dddd [pulksten] LT',
  7212. lastDay : '[Vakar pulksten] LT',
  7213. lastWeek : '[Pagājušā] dddd [pulksten] LT',
  7214. sameElse : 'L'
  7215. },
  7216. relativeTime : {
  7217. future : 'pēc %s',
  7218. past : 'pirms %s',
  7219. s : relativeSeconds,
  7220. m : relativeTimeWithSingular,
  7221. mm : lv__relativeTimeWithPlural,
  7222. h : relativeTimeWithSingular,
  7223. hh : lv__relativeTimeWithPlural,
  7224. d : relativeTimeWithSingular,
  7225. dd : lv__relativeTimeWithPlural,
  7226. M : relativeTimeWithSingular,
  7227. MM : lv__relativeTimeWithPlural,
  7228. y : relativeTimeWithSingular,
  7229. yy : lv__relativeTimeWithPlural
  7230. },
  7231. ordinalParse: /\d{1,2}\./,
  7232. ordinal : '%d.',
  7233. week : {
  7234. dow : 1, // Monday is the first day of the week.
  7235. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7236. }
  7237. });
  7238. //! moment.js locale configuration
  7239. //! locale : Montenegrin (me)
  7240. //! author : Miodrag Nikač <miodrag@restartit.me> : https://github.com/miodragnikac
  7241. var me__translator = {
  7242. words: { //Different grammatical cases
  7243. m: ['jedan minut', 'jednog minuta'],
  7244. mm: ['minut', 'minuta', 'minuta'],
  7245. h: ['jedan sat', 'jednog sata'],
  7246. hh: ['sat', 'sata', 'sati'],
  7247. dd: ['dan', 'dana', 'dana'],
  7248. MM: ['mjesec', 'mjeseca', 'mjeseci'],
  7249. yy: ['godina', 'godine', 'godina']
  7250. },
  7251. correctGrammaticalCase: function (number, wordKey) {
  7252. return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
  7253. },
  7254. translate: function (number, withoutSuffix, key) {
  7255. var wordKey = me__translator.words[key];
  7256. if (key.length === 1) {
  7257. return withoutSuffix ? wordKey[0] : wordKey[1];
  7258. } else {
  7259. return number + ' ' + me__translator.correctGrammaticalCase(number, wordKey);
  7260. }
  7261. }
  7262. };
  7263. var me = moment__default.defineLocale('me', {
  7264. months: ['januar', 'februar', 'mart', 'april', 'maj', 'jun', 'jul', 'avgust', 'septembar', 'oktobar', 'novembar', 'decembar'],
  7265. monthsShort: ['jan.', 'feb.', 'mar.', 'apr.', 'maj', 'jun', 'jul', 'avg.', 'sep.', 'okt.', 'nov.', 'dec.'],
  7266. weekdays: ['nedjelja', 'ponedjeljak', 'utorak', 'srijeda', 'četvrtak', 'petak', 'subota'],
  7267. weekdaysShort: ['ned.', 'pon.', 'uto.', 'sri.', 'čet.', 'pet.', 'sub.'],
  7268. weekdaysMin: ['ne', 'po', 'ut', 'sr', 'če', 'pe', 'su'],
  7269. longDateFormat: {
  7270. LT: 'H:mm',
  7271. LTS : 'H:mm:ss',
  7272. L: 'DD. MM. YYYY',
  7273. LL: 'D. MMMM YYYY',
  7274. LLL: 'D. MMMM YYYY H:mm',
  7275. LLLL: 'dddd, D. MMMM YYYY H:mm'
  7276. },
  7277. calendar: {
  7278. sameDay: '[danas u] LT',
  7279. nextDay: '[sjutra u] LT',
  7280. nextWeek: function () {
  7281. switch (this.day()) {
  7282. case 0:
  7283. return '[u] [nedjelju] [u] LT';
  7284. case 3:
  7285. return '[u] [srijedu] [u] LT';
  7286. case 6:
  7287. return '[u] [subotu] [u] LT';
  7288. case 1:
  7289. case 2:
  7290. case 4:
  7291. case 5:
  7292. return '[u] dddd [u] LT';
  7293. }
  7294. },
  7295. lastDay : '[juče u] LT',
  7296. lastWeek : function () {
  7297. var lastWeekDays = [
  7298. '[prošle] [nedjelje] [u] LT',
  7299. '[prošlog] [ponedjeljka] [u] LT',
  7300. '[prošlog] [utorka] [u] LT',
  7301. '[prošle] [srijede] [u] LT',
  7302. '[prošlog] [četvrtka] [u] LT',
  7303. '[prošlog] [petka] [u] LT',
  7304. '[prošle] [subote] [u] LT'
  7305. ];
  7306. return lastWeekDays[this.day()];
  7307. },
  7308. sameElse : 'L'
  7309. },
  7310. relativeTime : {
  7311. future : 'za %s',
  7312. past : 'prije %s',
  7313. s : 'nekoliko sekundi',
  7314. m : me__translator.translate,
  7315. mm : me__translator.translate,
  7316. h : me__translator.translate,
  7317. hh : me__translator.translate,
  7318. d : 'dan',
  7319. dd : me__translator.translate,
  7320. M : 'mjesec',
  7321. MM : me__translator.translate,
  7322. y : 'godinu',
  7323. yy : me__translator.translate
  7324. },
  7325. ordinalParse: /\d{1,2}\./,
  7326. ordinal : '%d.',
  7327. week : {
  7328. dow : 1, // Monday is the first day of the week.
  7329. doy : 7 // The week that contains Jan 1st is the first week of the year.
  7330. }
  7331. });
  7332. //! moment.js locale configuration
  7333. //! locale : macedonian (mk)
  7334. //! author : Borislav Mickov : https://github.com/B0k0
  7335. var mk = moment__default.defineLocale('mk', {
  7336. months : 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'),
  7337. monthsShort : 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
  7338. weekdays : 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'),
  7339. weekdaysShort : 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
  7340. weekdaysMin : 'нe_пo_вт_ср_че_пе_сa'.split('_'),
  7341. longDateFormat : {
  7342. LT : 'H:mm',
  7343. LTS : 'H:mm:ss',
  7344. L : 'D.MM.YYYY',
  7345. LL : 'D MMMM YYYY',
  7346. LLL : 'D MMMM YYYY H:mm',
  7347. LLLL : 'dddd, D MMMM YYYY H:mm'
  7348. },
  7349. calendar : {
  7350. sameDay : '[Денес во] LT',
  7351. nextDay : '[Утре во] LT',
  7352. nextWeek : '[Во] dddd [во] LT',
  7353. lastDay : '[Вчера во] LT',
  7354. lastWeek : function () {
  7355. switch (this.day()) {
  7356. case 0:
  7357. case 3:
  7358. case 6:
  7359. return '[Изминатата] dddd [во] LT';
  7360. case 1:
  7361. case 2:
  7362. case 4:
  7363. case 5:
  7364. return '[Изминатиот] dddd [во] LT';
  7365. }
  7366. },
  7367. sameElse : 'L'
  7368. },
  7369. relativeTime : {
  7370. future : 'после %s',
  7371. past : 'пред %s',
  7372. s : 'неколку секунди',
  7373. m : 'минута',
  7374. mm : '%d минути',
  7375. h : 'час',
  7376. hh : '%d часа',
  7377. d : 'ден',
  7378. dd : '%d дена',
  7379. M : 'месец',
  7380. MM : '%d месеци',
  7381. y : 'година',
  7382. yy : '%d години'
  7383. },
  7384. ordinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  7385. ordinal : function (number) {
  7386. var lastDigit = number % 10,
  7387. last2Digits = number % 100;
  7388. if (number === 0) {
  7389. return number + '-ев';
  7390. } else if (last2Digits === 0) {
  7391. return number + '-ен';
  7392. } else if (last2Digits > 10 && last2Digits < 20) {
  7393. return number + '-ти';
  7394. } else if (lastDigit === 1) {
  7395. return number + '-ви';
  7396. } else if (lastDigit === 2) {
  7397. return number + '-ри';
  7398. } else if (lastDigit === 7 || lastDigit === 8) {
  7399. return number + '-ми';
  7400. } else {
  7401. return number + '-ти';
  7402. }
  7403. },
  7404. week : {
  7405. dow : 1, // Monday is the first day of the week.
  7406. doy : 7 // The week that contains Jan 1st is the first week of the year.
  7407. }
  7408. });
  7409. //! moment.js locale configuration
  7410. //! locale : malayalam (ml)
  7411. //! author : Floyd Pink : https://github.com/floydpink
  7412. var ml = moment__default.defineLocale('ml', {
  7413. months : 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'),
  7414. monthsShort : 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'),
  7415. weekdays : 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'),
  7416. weekdaysShort : 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
  7417. weekdaysMin : 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
  7418. longDateFormat : {
  7419. LT : 'A h:mm -നു',
  7420. LTS : 'A h:mm:ss -നു',
  7421. L : 'DD/MM/YYYY',
  7422. LL : 'D MMMM YYYY',
  7423. LLL : 'D MMMM YYYY, A h:mm -നു',
  7424. LLLL : 'dddd, D MMMM YYYY, A h:mm -നു'
  7425. },
  7426. calendar : {
  7427. sameDay : '[ഇന്ന്] LT',
  7428. nextDay : '[നാളെ] LT',
  7429. nextWeek : 'dddd, LT',
  7430. lastDay : '[ഇന്നലെ] LT',
  7431. lastWeek : '[കഴിഞ്ഞ] dddd, LT',
  7432. sameElse : 'L'
  7433. },
  7434. relativeTime : {
  7435. future : '%s കഴിഞ്ഞ്',
  7436. past : '%s മുൻപ്',
  7437. s : 'അൽപ നിമിഷങ്ങൾ',
  7438. m : 'ഒരു മിനിറ്റ്',
  7439. mm : '%d മിനിറ്റ്',
  7440. h : 'ഒരു മണിക്കൂർ',
  7441. hh : '%d മണിക്കൂർ',
  7442. d : 'ഒരു ദിവസം',
  7443. dd : '%d ദിവസം',
  7444. M : 'ഒരു മാസം',
  7445. MM : '%d മാസം',
  7446. y : 'ഒരു വർഷം',
  7447. yy : '%d വർഷം'
  7448. },
  7449. meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
  7450. isPM : function (input) {
  7451. return /^(ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി)$/.test(input);
  7452. },
  7453. meridiem : function (hour, minute, isLower) {
  7454. if (hour < 4) {
  7455. return 'രാത്രി';
  7456. } else if (hour < 12) {
  7457. return 'രാവിലെ';
  7458. } else if (hour < 17) {
  7459. return 'ഉച്ച കഴിഞ്ഞ്';
  7460. } else if (hour < 20) {
  7461. return 'വൈകുന്നേരം';
  7462. } else {
  7463. return 'രാത്രി';
  7464. }
  7465. }
  7466. });
  7467. //! moment.js locale configuration
  7468. //! locale : Marathi (mr)
  7469. //! author : Harshad Kale : https://github.com/kalehv
  7470. //! author : Vivek Athalye : https://github.com/vnathalye
  7471. var mr__symbolMap = {
  7472. '1': '१',
  7473. '2': '२',
  7474. '3': '३',
  7475. '4': '४',
  7476. '5': '५',
  7477. '6': '६',
  7478. '7': '७',
  7479. '8': '८',
  7480. '9': '९',
  7481. '0': '०'
  7482. },
  7483. mr__numberMap = {
  7484. '१': '1',
  7485. '२': '2',
  7486. '३': '3',
  7487. '४': '4',
  7488. '५': '5',
  7489. '६': '6',
  7490. '७': '7',
  7491. '८': '8',
  7492. '९': '9',
  7493. '०': '0'
  7494. };
  7495. function relativeTimeMr(number, withoutSuffix, string, isFuture)
  7496. {
  7497. var output = '';
  7498. if (withoutSuffix) {
  7499. switch (string) {
  7500. case 's': output = 'काही सेकंद'; break;
  7501. case 'm': output = 'एक मिनिट'; break;
  7502. case 'mm': output = '%d मिनिटे'; break;
  7503. case 'h': output = 'एक तास'; break;
  7504. case 'hh': output = '%d तास'; break;
  7505. case 'd': output = 'एक दिवस'; break;
  7506. case 'dd': output = '%d दिवस'; break;
  7507. case 'M': output = 'एक महिना'; break;
  7508. case 'MM': output = '%d महिने'; break;
  7509. case 'y': output = 'एक वर्ष'; break;
  7510. case 'yy': output = '%d वर्षे'; break;
  7511. }
  7512. }
  7513. else {
  7514. switch (string) {
  7515. case 's': output = 'काही सेकंदां'; break;
  7516. case 'm': output = 'एका मिनिटा'; break;
  7517. case 'mm': output = '%d मिनिटां'; break;
  7518. case 'h': output = 'एका तासा'; break;
  7519. case 'hh': output = '%d तासां'; break;
  7520. case 'd': output = 'एका दिवसा'; break;
  7521. case 'dd': output = '%d दिवसां'; break;
  7522. case 'M': output = 'एका महिन्या'; break;
  7523. case 'MM': output = '%d महिन्यां'; break;
  7524. case 'y': output = 'एका वर्षा'; break;
  7525. case 'yy': output = '%d वर्षां'; break;
  7526. }
  7527. }
  7528. return output.replace(/%d/i, number);
  7529. }
  7530. var mr = moment__default.defineLocale('mr', {
  7531. months : 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
  7532. monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
  7533. weekdays : 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  7534. weekdaysShort : 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
  7535. weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
  7536. longDateFormat : {
  7537. LT : 'A h:mm वाजता',
  7538. LTS : 'A h:mm:ss वाजता',
  7539. L : 'DD/MM/YYYY',
  7540. LL : 'D MMMM YYYY',
  7541. LLL : 'D MMMM YYYY, A h:mm वाजता',
  7542. LLLL : 'dddd, D MMMM YYYY, A h:mm वाजता'
  7543. },
  7544. calendar : {
  7545. sameDay : '[आज] LT',
  7546. nextDay : '[उद्या] LT',
  7547. nextWeek : 'dddd, LT',
  7548. lastDay : '[काल] LT',
  7549. lastWeek: '[मागील] dddd, LT',
  7550. sameElse : 'L'
  7551. },
  7552. relativeTime : {
  7553. future: '%sमध्ये',
  7554. past: '%sपूर्वी',
  7555. s: relativeTimeMr,
  7556. m: relativeTimeMr,
  7557. mm: relativeTimeMr,
  7558. h: relativeTimeMr,
  7559. hh: relativeTimeMr,
  7560. d: relativeTimeMr,
  7561. dd: relativeTimeMr,
  7562. M: relativeTimeMr,
  7563. MM: relativeTimeMr,
  7564. y: relativeTimeMr,
  7565. yy: relativeTimeMr
  7566. },
  7567. preparse: function (string) {
  7568. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  7569. return mr__numberMap[match];
  7570. });
  7571. },
  7572. postformat: function (string) {
  7573. return string.replace(/\d/g, function (match) {
  7574. return mr__symbolMap[match];
  7575. });
  7576. },
  7577. meridiemParse: /रात्री|सकाळी|दुपारी|सायंकाळी/,
  7578. meridiemHour : function (hour, meridiem) {
  7579. if (hour === 12) {
  7580. hour = 0;
  7581. }
  7582. if (meridiem === 'रात्री') {
  7583. return hour < 4 ? hour : hour + 12;
  7584. } else if (meridiem === 'सकाळी') {
  7585. return hour;
  7586. } else if (meridiem === 'दुपारी') {
  7587. return hour >= 10 ? hour : hour + 12;
  7588. } else if (meridiem === 'सायंकाळी') {
  7589. return hour + 12;
  7590. }
  7591. },
  7592. meridiem: function (hour, minute, isLower) {
  7593. if (hour < 4) {
  7594. return 'रात्री';
  7595. } else if (hour < 10) {
  7596. return 'सकाळी';
  7597. } else if (hour < 17) {
  7598. return 'दुपारी';
  7599. } else if (hour < 20) {
  7600. return 'सायंकाळी';
  7601. } else {
  7602. return 'रात्री';
  7603. }
  7604. },
  7605. week : {
  7606. dow : 0, // Sunday is the first day of the week.
  7607. doy : 6 // The week that contains Jan 1st is the first week of the year.
  7608. }
  7609. });
  7610. //! moment.js locale configuration
  7611. //! locale : Bahasa Malaysia (ms-MY)
  7612. //! author : Weldan Jamili : https://github.com/weldan
  7613. var ms_my = moment__default.defineLocale('ms-my', {
  7614. months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
  7615. monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  7616. weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  7617. weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  7618. weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  7619. longDateFormat : {
  7620. LT : 'HH.mm',
  7621. LTS : 'HH.mm.ss',
  7622. L : 'DD/MM/YYYY',
  7623. LL : 'D MMMM YYYY',
  7624. LLL : 'D MMMM YYYY [pukul] HH.mm',
  7625. LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
  7626. },
  7627. meridiemParse: /pagi|tengahari|petang|malam/,
  7628. meridiemHour: function (hour, meridiem) {
  7629. if (hour === 12) {
  7630. hour = 0;
  7631. }
  7632. if (meridiem === 'pagi') {
  7633. return hour;
  7634. } else if (meridiem === 'tengahari') {
  7635. return hour >= 11 ? hour : hour + 12;
  7636. } else if (meridiem === 'petang' || meridiem === 'malam') {
  7637. return hour + 12;
  7638. }
  7639. },
  7640. meridiem : function (hours, minutes, isLower) {
  7641. if (hours < 11) {
  7642. return 'pagi';
  7643. } else if (hours < 15) {
  7644. return 'tengahari';
  7645. } else if (hours < 19) {
  7646. return 'petang';
  7647. } else {
  7648. return 'malam';
  7649. }
  7650. },
  7651. calendar : {
  7652. sameDay : '[Hari ini pukul] LT',
  7653. nextDay : '[Esok pukul] LT',
  7654. nextWeek : 'dddd [pukul] LT',
  7655. lastDay : '[Kelmarin pukul] LT',
  7656. lastWeek : 'dddd [lepas pukul] LT',
  7657. sameElse : 'L'
  7658. },
  7659. relativeTime : {
  7660. future : 'dalam %s',
  7661. past : '%s yang lepas',
  7662. s : 'beberapa saat',
  7663. m : 'seminit',
  7664. mm : '%d minit',
  7665. h : 'sejam',
  7666. hh : '%d jam',
  7667. d : 'sehari',
  7668. dd : '%d hari',
  7669. M : 'sebulan',
  7670. MM : '%d bulan',
  7671. y : 'setahun',
  7672. yy : '%d tahun'
  7673. },
  7674. week : {
  7675. dow : 1, // Monday is the first day of the week.
  7676. doy : 7 // The week that contains Jan 1st is the first week of the year.
  7677. }
  7678. });
  7679. //! moment.js locale configuration
  7680. //! locale : Bahasa Malaysia (ms-MY)
  7681. //! author : Weldan Jamili : https://github.com/weldan
  7682. var locale_ms = moment__default.defineLocale('ms', {
  7683. months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
  7684. monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  7685. weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  7686. weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  7687. weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  7688. longDateFormat : {
  7689. LT : 'HH.mm',
  7690. LTS : 'HH.mm.ss',
  7691. L : 'DD/MM/YYYY',
  7692. LL : 'D MMMM YYYY',
  7693. LLL : 'D MMMM YYYY [pukul] HH.mm',
  7694. LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
  7695. },
  7696. meridiemParse: /pagi|tengahari|petang|malam/,
  7697. meridiemHour: function (hour, meridiem) {
  7698. if (hour === 12) {
  7699. hour = 0;
  7700. }
  7701. if (meridiem === 'pagi') {
  7702. return hour;
  7703. } else if (meridiem === 'tengahari') {
  7704. return hour >= 11 ? hour : hour + 12;
  7705. } else if (meridiem === 'petang' || meridiem === 'malam') {
  7706. return hour + 12;
  7707. }
  7708. },
  7709. meridiem : function (hours, minutes, isLower) {
  7710. if (hours < 11) {
  7711. return 'pagi';
  7712. } else if (hours < 15) {
  7713. return 'tengahari';
  7714. } else if (hours < 19) {
  7715. return 'petang';
  7716. } else {
  7717. return 'malam';
  7718. }
  7719. },
  7720. calendar : {
  7721. sameDay : '[Hari ini pukul] LT',
  7722. nextDay : '[Esok pukul] LT',
  7723. nextWeek : 'dddd [pukul] LT',
  7724. lastDay : '[Kelmarin pukul] LT',
  7725. lastWeek : 'dddd [lepas pukul] LT',
  7726. sameElse : 'L'
  7727. },
  7728. relativeTime : {
  7729. future : 'dalam %s',
  7730. past : '%s yang lepas',
  7731. s : 'beberapa saat',
  7732. m : 'seminit',
  7733. mm : '%d minit',
  7734. h : 'sejam',
  7735. hh : '%d jam',
  7736. d : 'sehari',
  7737. dd : '%d hari',
  7738. M : 'sebulan',
  7739. MM : '%d bulan',
  7740. y : 'setahun',
  7741. yy : '%d tahun'
  7742. },
  7743. week : {
  7744. dow : 1, // Monday is the first day of the week.
  7745. doy : 7 // The week that contains Jan 1st is the first week of the year.
  7746. }
  7747. });
  7748. //! moment.js locale configuration
  7749. //! locale : Burmese (my)
  7750. //! author : Squar team, mysquar.com
  7751. var my__symbolMap = {
  7752. '1': '၁',
  7753. '2': '၂',
  7754. '3': '၃',
  7755. '4': '၄',
  7756. '5': '၅',
  7757. '6': '၆',
  7758. '7': '၇',
  7759. '8': '၈',
  7760. '9': '၉',
  7761. '0': '၀'
  7762. }, my__numberMap = {
  7763. '၁': '1',
  7764. '၂': '2',
  7765. '၃': '3',
  7766. '၄': '4',
  7767. '၅': '5',
  7768. '၆': '6',
  7769. '၇': '7',
  7770. '၈': '8',
  7771. '၉': '9',
  7772. '၀': '0'
  7773. };
  7774. var my = moment__default.defineLocale('my', {
  7775. months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'),
  7776. monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
  7777. weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'),
  7778. weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  7779. weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  7780. longDateFormat: {
  7781. LT: 'HH:mm',
  7782. LTS: 'HH:mm:ss',
  7783. L: 'DD/MM/YYYY',
  7784. LL: 'D MMMM YYYY',
  7785. LLL: 'D MMMM YYYY HH:mm',
  7786. LLLL: 'dddd D MMMM YYYY HH:mm'
  7787. },
  7788. calendar: {
  7789. sameDay: '[ယနေ.] LT [မှာ]',
  7790. nextDay: '[မနက်ဖြန်] LT [မှာ]',
  7791. nextWeek: 'dddd LT [မှာ]',
  7792. lastDay: '[မနေ.က] LT [မှာ]',
  7793. lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
  7794. sameElse: 'L'
  7795. },
  7796. relativeTime: {
  7797. future: 'လာမည့် %s မှာ',
  7798. past: 'လွန်ခဲ့သော %s က',
  7799. s: 'စက္ကန်.အနည်းငယ်',
  7800. m: 'တစ်မိနစ်',
  7801. mm: '%d မိနစ်',
  7802. h: 'တစ်နာရီ',
  7803. hh: '%d နာရီ',
  7804. d: 'တစ်ရက်',
  7805. dd: '%d ရက်',
  7806. M: 'တစ်လ',
  7807. MM: '%d လ',
  7808. y: 'တစ်နှစ်',
  7809. yy: '%d နှစ်'
  7810. },
  7811. preparse: function (string) {
  7812. return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
  7813. return my__numberMap[match];
  7814. });
  7815. },
  7816. postformat: function (string) {
  7817. return string.replace(/\d/g, function (match) {
  7818. return my__symbolMap[match];
  7819. });
  7820. },
  7821. week: {
  7822. dow: 1, // Monday is the first day of the week.
  7823. doy: 4 // The week that contains Jan 1st is the first week of the year.
  7824. }
  7825. });
  7826. //! moment.js locale configuration
  7827. //! locale : norwegian bokmål (nb)
  7828. //! authors : Espen Hovlandsdal : https://github.com/rexxars
  7829. //! Sigurd Gartmann : https://github.com/sigurdga
  7830. var nb = moment__default.defineLocale('nb', {
  7831. months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  7832. monthsShort : 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
  7833. weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  7834. weekdaysShort : 'sø._ma._ti._on._to._fr._lø.'.split('_'),
  7835. weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
  7836. longDateFormat : {
  7837. LT : 'HH:mm',
  7838. LTS : 'HH:mm:ss',
  7839. L : 'DD.MM.YYYY',
  7840. LL : 'D. MMMM YYYY',
  7841. LLL : 'D. MMMM YYYY [kl.] HH:mm',
  7842. LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'
  7843. },
  7844. calendar : {
  7845. sameDay: '[i dag kl.] LT',
  7846. nextDay: '[i morgen kl.] LT',
  7847. nextWeek: 'dddd [kl.] LT',
  7848. lastDay: '[i går kl.] LT',
  7849. lastWeek: '[forrige] dddd [kl.] LT',
  7850. sameElse: 'L'
  7851. },
  7852. relativeTime : {
  7853. future : 'om %s',
  7854. past : 'for %s siden',
  7855. s : 'noen sekunder',
  7856. m : 'ett minutt',
  7857. mm : '%d minutter',
  7858. h : 'en time',
  7859. hh : '%d timer',
  7860. d : 'en dag',
  7861. dd : '%d dager',
  7862. M : 'en måned',
  7863. MM : '%d måneder',
  7864. y : 'ett år',
  7865. yy : '%d år'
  7866. },
  7867. ordinalParse: /\d{1,2}\./,
  7868. ordinal : '%d.',
  7869. week : {
  7870. dow : 1, // Monday is the first day of the week.
  7871. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7872. }
  7873. });
  7874. //! moment.js locale configuration
  7875. //! locale : nepali/nepalese
  7876. //! author : suvash : https://github.com/suvash
  7877. var ne__symbolMap = {
  7878. '1': '१',
  7879. '2': '२',
  7880. '3': '३',
  7881. '4': '४',
  7882. '5': '५',
  7883. '6': '६',
  7884. '7': '७',
  7885. '8': '८',
  7886. '9': '९',
  7887. '0': '०'
  7888. },
  7889. ne__numberMap = {
  7890. '१': '1',
  7891. '२': '2',
  7892. '३': '3',
  7893. '४': '4',
  7894. '५': '5',
  7895. '६': '6',
  7896. '७': '7',
  7897. '८': '8',
  7898. '९': '9',
  7899. '०': '0'
  7900. };
  7901. var ne = moment__default.defineLocale('ne', {
  7902. months : 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'),
  7903. monthsShort : 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'),
  7904. weekdays : 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'),
  7905. weekdaysShort : 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
  7906. weekdaysMin : 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
  7907. longDateFormat : {
  7908. LT : 'Aको h:mm बजे',
  7909. LTS : 'Aको h:mm:ss बजे',
  7910. L : 'DD/MM/YYYY',
  7911. LL : 'D MMMM YYYY',
  7912. LLL : 'D MMMM YYYY, Aको h:mm बजे',
  7913. LLLL : 'dddd, D MMMM YYYY, Aको h:mm बजे'
  7914. },
  7915. preparse: function (string) {
  7916. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  7917. return ne__numberMap[match];
  7918. });
  7919. },
  7920. postformat: function (string) {
  7921. return string.replace(/\d/g, function (match) {
  7922. return ne__symbolMap[match];
  7923. });
  7924. },
  7925. meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
  7926. meridiemHour : function (hour, meridiem) {
  7927. if (hour === 12) {
  7928. hour = 0;
  7929. }
  7930. if (meridiem === 'राति') {
  7931. return hour < 4 ? hour : hour + 12;
  7932. } else if (meridiem === 'बिहान') {
  7933. return hour;
  7934. } else if (meridiem === 'दिउँसो') {
  7935. return hour >= 10 ? hour : hour + 12;
  7936. } else if (meridiem === 'साँझ') {
  7937. return hour + 12;
  7938. }
  7939. },
  7940. meridiem : function (hour, minute, isLower) {
  7941. if (hour < 3) {
  7942. return 'राति';
  7943. } else if (hour < 12) {
  7944. return 'बिहान';
  7945. } else if (hour < 16) {
  7946. return 'दिउँसो';
  7947. } else if (hour < 20) {
  7948. return 'साँझ';
  7949. } else {
  7950. return 'राति';
  7951. }
  7952. },
  7953. calendar : {
  7954. sameDay : '[आज] LT',
  7955. nextDay : '[भोलि] LT',
  7956. nextWeek : '[आउँदो] dddd[,] LT',
  7957. lastDay : '[हिजो] LT',
  7958. lastWeek : '[गएको] dddd[,] LT',
  7959. sameElse : 'L'
  7960. },
  7961. relativeTime : {
  7962. future : '%sमा',
  7963. past : '%s अगाडि',
  7964. s : 'केही क्षण',
  7965. m : 'एक मिनेट',
  7966. mm : '%d मिनेट',
  7967. h : 'एक घण्टा',
  7968. hh : '%d घण्टा',
  7969. d : 'एक दिन',
  7970. dd : '%d दिन',
  7971. M : 'एक महिना',
  7972. MM : '%d महिना',
  7973. y : 'एक बर्ष',
  7974. yy : '%d बर्ष'
  7975. },
  7976. week : {
  7977. dow : 0, // Sunday is the first day of the week.
  7978. doy : 6 // The week that contains Jan 1st is the first week of the year.
  7979. }
  7980. });
  7981. //! moment.js locale configuration
  7982. //! locale : dutch (nl)
  7983. //! author : Joris Röling : https://github.com/jjupiter
  7984. var nl__monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
  7985. nl__monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
  7986. var nl = moment__default.defineLocale('nl', {
  7987. months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
  7988. monthsShort : function (m, format) {
  7989. if (/-MMM-/.test(format)) {
  7990. return nl__monthsShortWithoutDots[m.month()];
  7991. } else {
  7992. return nl__monthsShortWithDots[m.month()];
  7993. }
  7994. },
  7995. weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
  7996. weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'),
  7997. weekdaysMin : 'Zo_Ma_Di_Wo_Do_Vr_Za'.split('_'),
  7998. longDateFormat : {
  7999. LT : 'HH:mm',
  8000. LTS : 'HH:mm:ss',
  8001. L : 'DD-MM-YYYY',
  8002. LL : 'D MMMM YYYY',
  8003. LLL : 'D MMMM YYYY HH:mm',
  8004. LLLL : 'dddd D MMMM YYYY HH:mm'
  8005. },
  8006. calendar : {
  8007. sameDay: '[vandaag om] LT',
  8008. nextDay: '[morgen om] LT',
  8009. nextWeek: 'dddd [om] LT',
  8010. lastDay: '[gisteren om] LT',
  8011. lastWeek: '[afgelopen] dddd [om] LT',
  8012. sameElse: 'L'
  8013. },
  8014. relativeTime : {
  8015. future : 'over %s',
  8016. past : '%s geleden',
  8017. s : 'een paar seconden',
  8018. m : 'één minuut',
  8019. mm : '%d minuten',
  8020. h : 'één uur',
  8021. hh : '%d uur',
  8022. d : 'één dag',
  8023. dd : '%d dagen',
  8024. M : 'één maand',
  8025. MM : '%d maanden',
  8026. y : 'één jaar',
  8027. yy : '%d jaar'
  8028. },
  8029. ordinalParse: /\d{1,2}(ste|de)/,
  8030. ordinal : function (number) {
  8031. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
  8032. },
  8033. week : {
  8034. dow : 1, // Monday is the first day of the week.
  8035. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8036. }
  8037. });
  8038. //! moment.js locale configuration
  8039. //! locale : norwegian nynorsk (nn)
  8040. //! author : https://github.com/mechuwind
  8041. var nn = moment__default.defineLocale('nn', {
  8042. months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  8043. monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  8044. weekdays : 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
  8045. weekdaysShort : 'sun_mån_tys_ons_tor_fre_lau'.split('_'),
  8046. weekdaysMin : 'su_må_ty_on_to_fr_lø'.split('_'),
  8047. longDateFormat : {
  8048. LT : 'HH:mm',
  8049. LTS : 'HH:mm:ss',
  8050. L : 'DD.MM.YYYY',
  8051. LL : 'D. MMMM YYYY',
  8052. LLL : 'D. MMMM YYYY [kl.] H:mm',
  8053. LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'
  8054. },
  8055. calendar : {
  8056. sameDay: '[I dag klokka] LT',
  8057. nextDay: '[I morgon klokka] LT',
  8058. nextWeek: 'dddd [klokka] LT',
  8059. lastDay: '[I går klokka] LT',
  8060. lastWeek: '[Føregåande] dddd [klokka] LT',
  8061. sameElse: 'L'
  8062. },
  8063. relativeTime : {
  8064. future : 'om %s',
  8065. past : 'for %s sidan',
  8066. s : 'nokre sekund',
  8067. m : 'eit minutt',
  8068. mm : '%d minutt',
  8069. h : 'ein time',
  8070. hh : '%d timar',
  8071. d : 'ein dag',
  8072. dd : '%d dagar',
  8073. M : 'ein månad',
  8074. MM : '%d månader',
  8075. y : 'eit år',
  8076. yy : '%d år'
  8077. },
  8078. ordinalParse: /\d{1,2}\./,
  8079. ordinal : '%d.',
  8080. week : {
  8081. dow : 1, // Monday is the first day of the week.
  8082. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8083. }
  8084. });
  8085. //! moment.js locale configuration
  8086. //! locale : polish (pl)
  8087. //! author : Rafal Hirsz : https://github.com/evoL
  8088. var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_'),
  8089. monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_');
  8090. function pl__plural(n) {
  8091. return (n % 10 < 5) && (n % 10 > 1) && ((~~(n / 10) % 10) !== 1);
  8092. }
  8093. function pl__translate(number, withoutSuffix, key) {
  8094. var result = number + ' ';
  8095. switch (key) {
  8096. case 'm':
  8097. return withoutSuffix ? 'minuta' : 'minutę';
  8098. case 'mm':
  8099. return result + (pl__plural(number) ? 'minuty' : 'minut');
  8100. case 'h':
  8101. return withoutSuffix ? 'godzina' : 'godzinę';
  8102. case 'hh':
  8103. return result + (pl__plural(number) ? 'godziny' : 'godzin');
  8104. case 'MM':
  8105. return result + (pl__plural(number) ? 'miesiące' : 'miesięcy');
  8106. case 'yy':
  8107. return result + (pl__plural(number) ? 'lata' : 'lat');
  8108. }
  8109. }
  8110. var pl = moment__default.defineLocale('pl', {
  8111. months : function (momentToFormat, format) {
  8112. if (format === '') {
  8113. // Hack: if format empty we know this is used to generate
  8114. // RegExp by moment. Give then back both valid forms of months
  8115. // in RegExp ready format.
  8116. return '(' + monthsSubjective[momentToFormat.month()] + '|' + monthsNominative[momentToFormat.month()] + ')';
  8117. } else if (/D MMMM/.test(format)) {
  8118. return monthsSubjective[momentToFormat.month()];
  8119. } else {
  8120. return monthsNominative[momentToFormat.month()];
  8121. }
  8122. },
  8123. monthsShort : 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
  8124. weekdays : 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
  8125. weekdaysShort : 'nie_pon_wt_śr_czw_pt_sb'.split('_'),
  8126. weekdaysMin : 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
  8127. longDateFormat : {
  8128. LT : 'HH:mm',
  8129. LTS : 'HH:mm:ss',
  8130. L : 'DD.MM.YYYY',
  8131. LL : 'D MMMM YYYY',
  8132. LLL : 'D MMMM YYYY HH:mm',
  8133. LLLL : 'dddd, D MMMM YYYY HH:mm'
  8134. },
  8135. calendar : {
  8136. sameDay: '[Dziś o] LT',
  8137. nextDay: '[Jutro o] LT',
  8138. nextWeek: '[W] dddd [o] LT',
  8139. lastDay: '[Wczoraj o] LT',
  8140. lastWeek: function () {
  8141. switch (this.day()) {
  8142. case 0:
  8143. return '[W zeszłą niedzielę o] LT';
  8144. case 3:
  8145. return '[W zeszłą środę o] LT';
  8146. case 6:
  8147. return '[W zeszłą sobotę o] LT';
  8148. default:
  8149. return '[W zeszły] dddd [o] LT';
  8150. }
  8151. },
  8152. sameElse: 'L'
  8153. },
  8154. relativeTime : {
  8155. future : 'za %s',
  8156. past : '%s temu',
  8157. s : 'kilka sekund',
  8158. m : pl__translate,
  8159. mm : pl__translate,
  8160. h : pl__translate,
  8161. hh : pl__translate,
  8162. d : '1 dzień',
  8163. dd : '%d dni',
  8164. M : 'miesiąc',
  8165. MM : pl__translate,
  8166. y : 'rok',
  8167. yy : pl__translate
  8168. },
  8169. ordinalParse: /\d{1,2}\./,
  8170. ordinal : '%d.',
  8171. week : {
  8172. dow : 1, // Monday is the first day of the week.
  8173. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8174. }
  8175. });
  8176. //! moment.js locale configuration
  8177. //! locale : brazilian portuguese (pt-br)
  8178. //! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira
  8179. var pt_br = moment__default.defineLocale('pt-br', {
  8180. months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),
  8181. monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
  8182. weekdays : 'Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado'.split('_'),
  8183. weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
  8184. weekdaysMin : 'Dom_2ª_3ª_4ª_5ª_6ª_Sáb'.split('_'),
  8185. longDateFormat : {
  8186. LT : 'HH:mm',
  8187. LTS : 'HH:mm:ss',
  8188. L : 'DD/MM/YYYY',
  8189. LL : 'D [de] MMMM [de] YYYY',
  8190. LLL : 'D [de] MMMM [de] YYYY [às] HH:mm',
  8191. LLLL : 'dddd, D [de] MMMM [de] YYYY [às] HH:mm'
  8192. },
  8193. calendar : {
  8194. sameDay: '[Hoje às] LT',
  8195. nextDay: '[Amanhã às] LT',
  8196. nextWeek: 'dddd [às] LT',
  8197. lastDay: '[Ontem às] LT',
  8198. lastWeek: function () {
  8199. return (this.day() === 0 || this.day() === 6) ?
  8200. '[Último] dddd [às] LT' : // Saturday + Sunday
  8201. '[Última] dddd [às] LT'; // Monday - Friday
  8202. },
  8203. sameElse: 'L'
  8204. },
  8205. relativeTime : {
  8206. future : 'em %s',
  8207. past : '%s atrás',
  8208. s : 'poucos segundos',
  8209. m : 'um minuto',
  8210. mm : '%d minutos',
  8211. h : 'uma hora',
  8212. hh : '%d horas',
  8213. d : 'um dia',
  8214. dd : '%d dias',
  8215. M : 'um mês',
  8216. MM : '%d meses',
  8217. y : 'um ano',
  8218. yy : '%d anos'
  8219. },
  8220. ordinalParse: /\d{1,2}º/,
  8221. ordinal : '%dº'
  8222. });
  8223. //! moment.js locale configuration
  8224. //! locale : portuguese (pt)
  8225. //! author : Jefferson : https://github.com/jalex79
  8226. var pt = moment__default.defineLocale('pt', {
  8227. months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),
  8228. monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
  8229. weekdays : 'Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado'.split('_'),
  8230. weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
  8231. weekdaysMin : 'Dom_2ª_3ª_4ª_5ª_6ª_Sáb'.split('_'),
  8232. longDateFormat : {
  8233. LT : 'HH:mm',
  8234. LTS : 'HH:mm:ss',
  8235. L : 'DD/MM/YYYY',
  8236. LL : 'D [de] MMMM [de] YYYY',
  8237. LLL : 'D [de] MMMM [de] YYYY HH:mm',
  8238. LLLL : 'dddd, D [de] MMMM [de] YYYY HH:mm'
  8239. },
  8240. calendar : {
  8241. sameDay: '[Hoje às] LT',
  8242. nextDay: '[Amanhã às] LT',
  8243. nextWeek: 'dddd [às] LT',
  8244. lastDay: '[Ontem às] LT',
  8245. lastWeek: function () {
  8246. return (this.day() === 0 || this.day() === 6) ?
  8247. '[Último] dddd [às] LT' : // Saturday + Sunday
  8248. '[Última] dddd [às] LT'; // Monday - Friday
  8249. },
  8250. sameElse: 'L'
  8251. },
  8252. relativeTime : {
  8253. future : 'em %s',
  8254. past : 'há %s',
  8255. s : 'segundos',
  8256. m : 'um minuto',
  8257. mm : '%d minutos',
  8258. h : 'uma hora',
  8259. hh : '%d horas',
  8260. d : 'um dia',
  8261. dd : '%d dias',
  8262. M : 'um mês',
  8263. MM : '%d meses',
  8264. y : 'um ano',
  8265. yy : '%d anos'
  8266. },
  8267. ordinalParse: /\d{1,2}º/,
  8268. ordinal : '%dº',
  8269. week : {
  8270. dow : 1, // Monday is the first day of the week.
  8271. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8272. }
  8273. });
  8274. //! moment.js locale configuration
  8275. //! locale : romanian (ro)
  8276. //! author : Vlad Gurdiga : https://github.com/gurdiga
  8277. //! author : Valentin Agachi : https://github.com/avaly
  8278. function ro__relativeTimeWithPlural(number, withoutSuffix, key) {
  8279. var format = {
  8280. 'mm': 'minute',
  8281. 'hh': 'ore',
  8282. 'dd': 'zile',
  8283. 'MM': 'luni',
  8284. 'yy': 'ani'
  8285. },
  8286. separator = ' ';
  8287. if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
  8288. separator = ' de ';
  8289. }
  8290. return number + separator + format[key];
  8291. }
  8292. var ro = moment__default.defineLocale('ro', {
  8293. months : 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),
  8294. monthsShort : 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),
  8295. weekdays : 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
  8296. weekdaysShort : 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
  8297. weekdaysMin : 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
  8298. longDateFormat : {
  8299. LT : 'H:mm',
  8300. LTS : 'H:mm:ss',
  8301. L : 'DD.MM.YYYY',
  8302. LL : 'D MMMM YYYY',
  8303. LLL : 'D MMMM YYYY H:mm',
  8304. LLLL : 'dddd, D MMMM YYYY H:mm'
  8305. },
  8306. calendar : {
  8307. sameDay: '[azi la] LT',
  8308. nextDay: '[mâine la] LT',
  8309. nextWeek: 'dddd [la] LT',
  8310. lastDay: '[ieri la] LT',
  8311. lastWeek: '[fosta] dddd [la] LT',
  8312. sameElse: 'L'
  8313. },
  8314. relativeTime : {
  8315. future : 'peste %s',
  8316. past : '%s în urmă',
  8317. s : 'câteva secunde',
  8318. m : 'un minut',
  8319. mm : ro__relativeTimeWithPlural,
  8320. h : 'o oră',
  8321. hh : ro__relativeTimeWithPlural,
  8322. d : 'o zi',
  8323. dd : ro__relativeTimeWithPlural,
  8324. M : 'o lună',
  8325. MM : ro__relativeTimeWithPlural,
  8326. y : 'un an',
  8327. yy : ro__relativeTimeWithPlural
  8328. },
  8329. week : {
  8330. dow : 1, // Monday is the first day of the week.
  8331. doy : 7 // The week that contains Jan 1st is the first week of the year.
  8332. }
  8333. });
  8334. //! moment.js locale configuration
  8335. //! locale : russian (ru)
  8336. //! author : Viktorminator : https://github.com/Viktorminator
  8337. //! Author : Menelion Elensúle : https://github.com/Oire
  8338. function ru__plural(word, num) {
  8339. var forms = word.split('_');
  8340. return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
  8341. }
  8342. function ru__relativeTimeWithPlural(number, withoutSuffix, key) {
  8343. var format = {
  8344. 'mm': withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
  8345. 'hh': 'час_часа_часов',
  8346. 'dd': 'день_дня_дней',
  8347. 'MM': 'месяц_месяца_месяцев',
  8348. 'yy': 'год_года_лет'
  8349. };
  8350. if (key === 'm') {
  8351. return withoutSuffix ? 'минута' : 'минуту';
  8352. }
  8353. else {
  8354. return number + ' ' + ru__plural(format[key], +number);
  8355. }
  8356. }
  8357. var monthsParse = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[й|я]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i];
  8358. var ru = moment__default.defineLocale('ru', {
  8359. months : {
  8360. format: 'Января_Февраля_Марта_Апреля_Мая_Июня_Июля_Августа_Сентября_Октября_Ноября_Декабря'.split('_'),
  8361. standalone: 'Январь_Февраль_Март_Апрель_Май_Июнь_Июль_Август_Сентябрь_Октябрь_Ноябрь_Декабрь'.split('_')
  8362. },
  8363. monthsShort : {
  8364. format: 'янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек'.split('_'),
  8365. standalone: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_')
  8366. },
  8367. weekdays : {
  8368. standalone: 'Воскресенье_Понедельник_Вторник_Среда_Четверг_Пятница_Суббота'.split('_'),
  8369. format: 'Воскресенье_Понедельник_Вторник_Среду_Четверг_Пятницу_Субботу'.split('_'),
  8370. isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/
  8371. },
  8372. weekdaysShort : 'Вс_Пн_Вт_Ср_Чт_Пт_Сб'.split('_'),
  8373. weekdaysMin : 'Вс_Пн_Вт_Ср_Чт_Пт_Сб'.split('_'),
  8374. monthsParse : monthsParse,
  8375. longMonthsParse : monthsParse,
  8376. shortMonthsParse : monthsParse,
  8377. longDateFormat : {
  8378. LT : 'HH:mm',
  8379. LTS : 'HH:mm:ss',
  8380. L : 'DD.MM.YYYY',
  8381. LL : 'D MMMM YYYY г.',
  8382. LLL : 'D MMMM YYYY г., HH:mm',
  8383. LLLL : 'dddd, D MMMM YYYY г., HH:mm'
  8384. },
  8385. calendar : {
  8386. sameDay: '[Сегодня в] LT',
  8387. nextDay: '[Завтра в] LT',
  8388. lastDay: '[Вчера в] LT',
  8389. nextWeek: function (now) {
  8390. if (now.week() !== this.week()) {
  8391. switch (this.day()) {
  8392. case 0:
  8393. return '[В следующее] dddd [в] LT';
  8394. case 1:
  8395. case 2:
  8396. case 4:
  8397. return '[В следующий] dddd [в] LT';
  8398. case 3:
  8399. case 5:
  8400. case 6:
  8401. return '[В следующую] dddd [в] LT';
  8402. }
  8403. } else {
  8404. if (this.day() === 2) {
  8405. return '[Во] dddd [в] LT';
  8406. } else {
  8407. return '[В] dddd [в] LT';
  8408. }
  8409. }
  8410. },
  8411. lastWeek: function (now) {
  8412. if (now.week() !== this.week()) {
  8413. switch (this.day()) {
  8414. case 0:
  8415. return '[В прошлое] dddd [в] LT';
  8416. case 1:
  8417. case 2:
  8418. case 4:
  8419. return '[В прошлый] dddd [в] LT';
  8420. case 3:
  8421. case 5:
  8422. case 6:
  8423. return '[В прошлую] dddd [в] LT';
  8424. }
  8425. } else {
  8426. if (this.day() === 2) {
  8427. return '[Во] dddd [в] LT';
  8428. } else {
  8429. return '[В] dddd [в] LT';
  8430. }
  8431. }
  8432. },
  8433. sameElse: 'L'
  8434. },
  8435. relativeTime : {
  8436. future : 'через %s',
  8437. past : '%s назад',
  8438. s : 'несколько секунд',
  8439. m : ru__relativeTimeWithPlural,
  8440. mm : ru__relativeTimeWithPlural,
  8441. h : 'час',
  8442. hh : ru__relativeTimeWithPlural,
  8443. d : 'день',
  8444. dd : ru__relativeTimeWithPlural,
  8445. M : 'месяц',
  8446. MM : ru__relativeTimeWithPlural,
  8447. y : 'год',
  8448. yy : ru__relativeTimeWithPlural
  8449. },
  8450. meridiemParse: /ночи|утра|дня|вечера/i,
  8451. isPM : function (input) {
  8452. return /^(дня|вечера)$/.test(input);
  8453. },
  8454. meridiem : function (hour, minute, isLower) {
  8455. if (hour < 4) {
  8456. return 'ночи';
  8457. } else if (hour < 12) {
  8458. return 'утра';
  8459. } else if (hour < 17) {
  8460. return 'дня';
  8461. } else {
  8462. return 'вечера';
  8463. }
  8464. },
  8465. ordinalParse: /\d{1,2}-(й|го|я)/,
  8466. ordinal: function (number, period) {
  8467. switch (period) {
  8468. case 'M':
  8469. case 'd':
  8470. case 'DDD':
  8471. return number + '-й';
  8472. case 'D':
  8473. return number + '-го';
  8474. case 'w':
  8475. case 'W':
  8476. return number + '-я';
  8477. default:
  8478. return number;
  8479. }
  8480. },
  8481. week : {
  8482. dow : 1, // Monday is the first day of the week.
  8483. doy : 7 // The week that contains Jan 1st is the first week of the year.
  8484. }
  8485. });
  8486. //! moment.js locale configuration
  8487. //! locale : Northern Sami (se)
  8488. //! authors : Bård Rolstad Henriksen : https://github.com/karamell
  8489. var se = moment__default.defineLocale('se', {
  8490. 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('_'),
  8491. monthsShort : 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),
  8492. weekdays : 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split('_'),
  8493. weekdaysShort : 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
  8494. weekdaysMin : 's_v_m_g_d_b_L'.split('_'),
  8495. longDateFormat : {
  8496. LT : 'HH:mm',
  8497. LTS : 'HH:mm:ss',
  8498. L : 'DD.MM.YYYY',
  8499. LL : 'MMMM D. [b.] YYYY',
  8500. LLL : 'MMMM D. [b.] YYYY [ti.] HH:mm',
  8501. LLLL : 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm'
  8502. },
  8503. calendar : {
  8504. sameDay: '[otne ti] LT',
  8505. nextDay: '[ihttin ti] LT',
  8506. nextWeek: 'dddd [ti] LT',
  8507. lastDay: '[ikte ti] LT',
  8508. lastWeek: '[ovddit] dddd [ti] LT',
  8509. sameElse: 'L'
  8510. },
  8511. relativeTime : {
  8512. future : '%s geažes',
  8513. past : 'maŋit %s',
  8514. s : 'moadde sekunddat',
  8515. m : 'okta minuhta',
  8516. mm : '%d minuhtat',
  8517. h : 'okta diimmu',
  8518. hh : '%d diimmut',
  8519. d : 'okta beaivi',
  8520. dd : '%d beaivvit',
  8521. M : 'okta mánnu',
  8522. MM : '%d mánut',
  8523. y : 'okta jahki',
  8524. yy : '%d jagit'
  8525. },
  8526. ordinalParse: /\d{1,2}\./,
  8527. ordinal : '%d.',
  8528. week : {
  8529. dow : 1, // Monday is the first day of the week.
  8530. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8531. }
  8532. });
  8533. //! moment.js locale configuration
  8534. //! locale : Sinhalese (si)
  8535. //! author : Sampath Sitinamaluwa : https://github.com/sampathsris
  8536. /*jshint -W100*/
  8537. var si = moment__default.defineLocale('si', {
  8538. months : 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'),
  8539. monthsShort : 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'),
  8540. weekdays : 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'),
  8541. weekdaysShort : 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
  8542. weekdaysMin : 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
  8543. longDateFormat : {
  8544. LT : 'a h:mm',
  8545. LTS : 'a h:mm:ss',
  8546. L : 'YYYY/MM/DD',
  8547. LL : 'YYYY MMMM D',
  8548. LLL : 'YYYY MMMM D, a h:mm',
  8549. LLLL : 'YYYY MMMM D [වැනි] dddd, a h:mm:ss'
  8550. },
  8551. calendar : {
  8552. sameDay : '[අද] LT[ට]',
  8553. nextDay : '[හෙට] LT[ට]',
  8554. nextWeek : 'dddd LT[ට]',
  8555. lastDay : '[ඊයේ] LT[ට]',
  8556. lastWeek : '[පසුගිය] dddd LT[ට]',
  8557. sameElse : 'L'
  8558. },
  8559. relativeTime : {
  8560. future : '%sකින්',
  8561. past : '%sකට පෙර',
  8562. s : 'තත්පර කිහිපය',
  8563. m : 'මිනිත්තුව',
  8564. mm : 'මිනිත්තු %d',
  8565. h : 'පැය',
  8566. hh : 'පැය %d',
  8567. d : 'දිනය',
  8568. dd : 'දින %d',
  8569. M : 'මාසය',
  8570. MM : 'මාස %d',
  8571. y : 'වසර',
  8572. yy : 'වසර %d'
  8573. },
  8574. ordinalParse: /\d{1,2} වැනි/,
  8575. ordinal : function (number) {
  8576. return number + ' වැනි';
  8577. },
  8578. meridiem : function (hours, minutes, isLower) {
  8579. if (hours > 11) {
  8580. return isLower ? 'ප.ව.' : 'පස් වරු';
  8581. } else {
  8582. return isLower ? 'පෙ.ව.' : 'පෙර වරු';
  8583. }
  8584. }
  8585. });
  8586. //! moment.js locale configuration
  8587. //! locale : slovak (sk)
  8588. //! author : Martin Minka : https://github.com/k2s
  8589. //! based on work of petrbela : https://github.com/petrbela
  8590. var sk__months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_'),
  8591. sk__monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
  8592. function sk__plural(n) {
  8593. return (n > 1) && (n < 5);
  8594. }
  8595. function sk__translate(number, withoutSuffix, key, isFuture) {
  8596. var result = number + ' ';
  8597. switch (key) {
  8598. case 's': // a few seconds / in a few seconds / a few seconds ago
  8599. return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami';
  8600. case 'm': // a minute / in a minute / a minute ago
  8601. return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou');
  8602. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  8603. if (withoutSuffix || isFuture) {
  8604. return result + (sk__plural(number) ? 'minúty' : 'minút');
  8605. } else {
  8606. return result + 'minútami';
  8607. }
  8608. break;
  8609. case 'h': // an hour / in an hour / an hour ago
  8610. return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
  8611. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  8612. if (withoutSuffix || isFuture) {
  8613. return result + (sk__plural(number) ? 'hodiny' : 'hodín');
  8614. } else {
  8615. return result + 'hodinami';
  8616. }
  8617. break;
  8618. case 'd': // a day / in a day / a day ago
  8619. return (withoutSuffix || isFuture) ? 'deň' : 'dňom';
  8620. case 'dd': // 9 days / in 9 days / 9 days ago
  8621. if (withoutSuffix || isFuture) {
  8622. return result + (sk__plural(number) ? 'dni' : 'dní');
  8623. } else {
  8624. return result + 'dňami';
  8625. }
  8626. break;
  8627. case 'M': // a month / in a month / a month ago
  8628. return (withoutSuffix || isFuture) ? 'mesiac' : 'mesiacom';
  8629. case 'MM': // 9 months / in 9 months / 9 months ago
  8630. if (withoutSuffix || isFuture) {
  8631. return result + (sk__plural(number) ? 'mesiace' : 'mesiacov');
  8632. } else {
  8633. return result + 'mesiacmi';
  8634. }
  8635. break;
  8636. case 'y': // a year / in a year / a year ago
  8637. return (withoutSuffix || isFuture) ? 'rok' : 'rokom';
  8638. case 'yy': // 9 years / in 9 years / 9 years ago
  8639. if (withoutSuffix || isFuture) {
  8640. return result + (sk__plural(number) ? 'roky' : 'rokov');
  8641. } else {
  8642. return result + 'rokmi';
  8643. }
  8644. break;
  8645. }
  8646. }
  8647. var sk = moment__default.defineLocale('sk', {
  8648. months : sk__months,
  8649. monthsShort : sk__monthsShort,
  8650. weekdays : 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
  8651. weekdaysShort : 'ne_po_ut_st_št_pi_so'.split('_'),
  8652. weekdaysMin : 'ne_po_ut_st_št_pi_so'.split('_'),
  8653. longDateFormat : {
  8654. LT: 'H:mm',
  8655. LTS : 'H:mm:ss',
  8656. L : 'DD.MM.YYYY',
  8657. LL : 'D. MMMM YYYY',
  8658. LLL : 'D. MMMM YYYY H:mm',
  8659. LLLL : 'dddd D. MMMM YYYY H:mm'
  8660. },
  8661. calendar : {
  8662. sameDay: '[dnes o] LT',
  8663. nextDay: '[zajtra o] LT',
  8664. nextWeek: function () {
  8665. switch (this.day()) {
  8666. case 0:
  8667. return '[v nedeľu o] LT';
  8668. case 1:
  8669. case 2:
  8670. return '[v] dddd [o] LT';
  8671. case 3:
  8672. return '[v stredu o] LT';
  8673. case 4:
  8674. return '[vo štvrtok o] LT';
  8675. case 5:
  8676. return '[v piatok o] LT';
  8677. case 6:
  8678. return '[v sobotu o] LT';
  8679. }
  8680. },
  8681. lastDay: '[včera o] LT',
  8682. lastWeek: function () {
  8683. switch (this.day()) {
  8684. case 0:
  8685. return '[minulú nedeľu o] LT';
  8686. case 1:
  8687. case 2:
  8688. return '[minulý] dddd [o] LT';
  8689. case 3:
  8690. return '[minulú stredu o] LT';
  8691. case 4:
  8692. case 5:
  8693. return '[minulý] dddd [o] LT';
  8694. case 6:
  8695. return '[minulú sobotu o] LT';
  8696. }
  8697. },
  8698. sameElse: 'L'
  8699. },
  8700. relativeTime : {
  8701. future : 'za %s',
  8702. past : 'pred %s',
  8703. s : sk__translate,
  8704. m : sk__translate,
  8705. mm : sk__translate,
  8706. h : sk__translate,
  8707. hh : sk__translate,
  8708. d : sk__translate,
  8709. dd : sk__translate,
  8710. M : sk__translate,
  8711. MM : sk__translate,
  8712. y : sk__translate,
  8713. yy : sk__translate
  8714. },
  8715. ordinalParse: /\d{1,2}\./,
  8716. ordinal : '%d.',
  8717. week : {
  8718. dow : 1, // Monday is the first day of the week.
  8719. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8720. }
  8721. });
  8722. //! moment.js locale configuration
  8723. //! locale : slovenian (sl)
  8724. //! author : Robert Sedovšek : https://github.com/sedovsek
  8725. function sl__processRelativeTime(number, withoutSuffix, key, isFuture) {
  8726. var result = number + ' ';
  8727. switch (key) {
  8728. case 's':
  8729. return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';
  8730. case 'm':
  8731. return withoutSuffix ? 'ena minuta' : 'eno minuto';
  8732. case 'mm':
  8733. if (number === 1) {
  8734. result += withoutSuffix ? 'minuta' : 'minuto';
  8735. } else if (number === 2) {
  8736. result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
  8737. } else if (number < 5) {
  8738. result += withoutSuffix || isFuture ? 'minute' : 'minutami';
  8739. } else {
  8740. result += withoutSuffix || isFuture ? 'minut' : 'minutami';
  8741. }
  8742. return result;
  8743. case 'h':
  8744. return withoutSuffix ? 'ena ura' : 'eno uro';
  8745. case 'hh':
  8746. if (number === 1) {
  8747. result += withoutSuffix ? 'ura' : 'uro';
  8748. } else if (number === 2) {
  8749. result += withoutSuffix || isFuture ? 'uri' : 'urama';
  8750. } else if (number < 5) {
  8751. result += withoutSuffix || isFuture ? 'ure' : 'urami';
  8752. } else {
  8753. result += withoutSuffix || isFuture ? 'ur' : 'urami';
  8754. }
  8755. return result;
  8756. case 'd':
  8757. return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
  8758. case 'dd':
  8759. if (number === 1) {
  8760. result += withoutSuffix || isFuture ? 'dan' : 'dnem';
  8761. } else if (number === 2) {
  8762. result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
  8763. } else {
  8764. result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
  8765. }
  8766. return result;
  8767. case 'M':
  8768. return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
  8769. case 'MM':
  8770. if (number === 1) {
  8771. result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
  8772. } else if (number === 2) {
  8773. result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
  8774. } else if (number < 5) {
  8775. result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
  8776. } else {
  8777. result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
  8778. }
  8779. return result;
  8780. case 'y':
  8781. return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
  8782. case 'yy':
  8783. if (number === 1) {
  8784. result += withoutSuffix || isFuture ? 'leto' : 'letom';
  8785. } else if (number === 2) {
  8786. result += withoutSuffix || isFuture ? 'leti' : 'letoma';
  8787. } else if (number < 5) {
  8788. result += withoutSuffix || isFuture ? 'leta' : 'leti';
  8789. } else {
  8790. result += withoutSuffix || isFuture ? 'let' : 'leti';
  8791. }
  8792. return result;
  8793. }
  8794. }
  8795. var sl = moment__default.defineLocale('sl', {
  8796. months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
  8797. monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
  8798. weekdays : 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
  8799. weekdaysShort : 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
  8800. weekdaysMin : 'ne_po_to_sr_če_pe_so'.split('_'),
  8801. longDateFormat : {
  8802. LT : 'H:mm',
  8803. LTS : 'H:mm:ss',
  8804. L : 'DD. MM. YYYY',
  8805. LL : 'D. MMMM YYYY',
  8806. LLL : 'D. MMMM YYYY H:mm',
  8807. LLLL : 'dddd, D. MMMM YYYY H:mm'
  8808. },
  8809. calendar : {
  8810. sameDay : '[danes ob] LT',
  8811. nextDay : '[jutri ob] LT',
  8812. nextWeek : function () {
  8813. switch (this.day()) {
  8814. case 0:
  8815. return '[v] [nedeljo] [ob] LT';
  8816. case 3:
  8817. return '[v] [sredo] [ob] LT';
  8818. case 6:
  8819. return '[v] [soboto] [ob] LT';
  8820. case 1:
  8821. case 2:
  8822. case 4:
  8823. case 5:
  8824. return '[v] dddd [ob] LT';
  8825. }
  8826. },
  8827. lastDay : '[včeraj ob] LT',
  8828. lastWeek : function () {
  8829. switch (this.day()) {
  8830. case 0:
  8831. return '[prejšnjo] [nedeljo] [ob] LT';
  8832. case 3:
  8833. return '[prejšnjo] [sredo] [ob] LT';
  8834. case 6:
  8835. return '[prejšnjo] [soboto] [ob] LT';
  8836. case 1:
  8837. case 2:
  8838. case 4:
  8839. case 5:
  8840. return '[prejšnji] dddd [ob] LT';
  8841. }
  8842. },
  8843. sameElse : 'L'
  8844. },
  8845. relativeTime : {
  8846. future : 'čez %s',
  8847. past : 'pred %s',
  8848. s : sl__processRelativeTime,
  8849. m : sl__processRelativeTime,
  8850. mm : sl__processRelativeTime,
  8851. h : sl__processRelativeTime,
  8852. hh : sl__processRelativeTime,
  8853. d : sl__processRelativeTime,
  8854. dd : sl__processRelativeTime,
  8855. M : sl__processRelativeTime,
  8856. MM : sl__processRelativeTime,
  8857. y : sl__processRelativeTime,
  8858. yy : sl__processRelativeTime
  8859. },
  8860. ordinalParse: /\d{1,2}\./,
  8861. ordinal : '%d.',
  8862. week : {
  8863. dow : 1, // Monday is the first day of the week.
  8864. doy : 7 // The week that contains Jan 1st is the first week of the year.
  8865. }
  8866. });
  8867. //! moment.js locale configuration
  8868. //! locale : Albanian (sq)
  8869. //! author : Flakërim Ismani : https://github.com/flakerimi
  8870. //! author: Menelion Elensúle: https://github.com/Oire (tests)
  8871. //! author : Oerd Cukalla : https://github.com/oerd (fixes)
  8872. var sq = moment__default.defineLocale('sq', {
  8873. months : 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'),
  8874. monthsShort : 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
  8875. weekdays : 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),
  8876. weekdaysShort : 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
  8877. weekdaysMin : 'D_H_Ma_Më_E_P_Sh'.split('_'),
  8878. meridiemParse: /PD|MD/,
  8879. isPM: function (input) {
  8880. return input.charAt(0) === 'M';
  8881. },
  8882. meridiem : function (hours, minutes, isLower) {
  8883. return hours < 12 ? 'PD' : 'MD';
  8884. },
  8885. longDateFormat : {
  8886. LT : 'HH:mm',
  8887. LTS : 'HH:mm:ss',
  8888. L : 'DD/MM/YYYY',
  8889. LL : 'D MMMM YYYY',
  8890. LLL : 'D MMMM YYYY HH:mm',
  8891. LLLL : 'dddd, D MMMM YYYY HH:mm'
  8892. },
  8893. calendar : {
  8894. sameDay : '[Sot në] LT',
  8895. nextDay : '[Nesër në] LT',
  8896. nextWeek : 'dddd [në] LT',
  8897. lastDay : '[Dje në] LT',
  8898. lastWeek : 'dddd [e kaluar në] LT',
  8899. sameElse : 'L'
  8900. },
  8901. relativeTime : {
  8902. future : 'në %s',
  8903. past : '%s më parë',
  8904. s : 'disa sekonda',
  8905. m : 'një minutë',
  8906. mm : '%d minuta',
  8907. h : 'një orë',
  8908. hh : '%d orë',
  8909. d : 'një ditë',
  8910. dd : '%d ditë',
  8911. M : 'një muaj',
  8912. MM : '%d muaj',
  8913. y : 'një vit',
  8914. yy : '%d vite'
  8915. },
  8916. ordinalParse: /\d{1,2}\./,
  8917. ordinal : '%d.',
  8918. week : {
  8919. dow : 1, // Monday is the first day of the week.
  8920. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8921. }
  8922. });
  8923. //! moment.js locale configuration
  8924. //! locale : Serbian-cyrillic (sr-cyrl)
  8925. //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
  8926. var sr_cyrl__translator = {
  8927. words: { //Different grammatical cases
  8928. m: ['један минут', 'једне минуте'],
  8929. mm: ['минут', 'минуте', 'минута'],
  8930. h: ['један сат', 'једног сата'],
  8931. hh: ['сат', 'сата', 'сати'],
  8932. dd: ['дан', 'дана', 'дана'],
  8933. MM: ['месец', 'месеца', 'месеци'],
  8934. yy: ['година', 'године', 'година']
  8935. },
  8936. correctGrammaticalCase: function (number, wordKey) {
  8937. return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
  8938. },
  8939. translate: function (number, withoutSuffix, key) {
  8940. var wordKey = sr_cyrl__translator.words[key];
  8941. if (key.length === 1) {
  8942. return withoutSuffix ? wordKey[0] : wordKey[1];
  8943. } else {
  8944. return number + ' ' + sr_cyrl__translator.correctGrammaticalCase(number, wordKey);
  8945. }
  8946. }
  8947. };
  8948. var sr_cyrl = moment__default.defineLocale('sr-cyrl', {
  8949. months: ['јануар', 'фебруар', 'март', 'април', 'мај', 'јун', 'јул', 'август', 'септембар', 'октобар', 'новембар', 'децембар'],
  8950. monthsShort: ['јан.', 'феб.', 'мар.', 'апр.', 'мај', 'јун', 'јул', 'авг.', 'сеп.', 'окт.', 'нов.', 'дец.'],
  8951. weekdays: ['недеља', 'понедељак', 'уторак', 'среда', 'четвртак', 'петак', 'субота'],
  8952. weekdaysShort: ['нед.', 'пон.', 'уто.', 'сре.', 'чет.', 'пет.', 'суб.'],
  8953. weekdaysMin: ['не', 'по', 'ут', 'ср', 'че', 'пе', 'су'],
  8954. longDateFormat: {
  8955. LT: 'H:mm',
  8956. LTS : 'H:mm:ss',
  8957. L: 'DD. MM. YYYY',
  8958. LL: 'D. MMMM YYYY',
  8959. LLL: 'D. MMMM YYYY H:mm',
  8960. LLLL: 'dddd, D. MMMM YYYY H:mm'
  8961. },
  8962. calendar: {
  8963. sameDay: '[данас у] LT',
  8964. nextDay: '[сутра у] LT',
  8965. nextWeek: function () {
  8966. switch (this.day()) {
  8967. case 0:
  8968. return '[у] [недељу] [у] LT';
  8969. case 3:
  8970. return '[у] [среду] [у] LT';
  8971. case 6:
  8972. return '[у] [суботу] [у] LT';
  8973. case 1:
  8974. case 2:
  8975. case 4:
  8976. case 5:
  8977. return '[у] dddd [у] LT';
  8978. }
  8979. },
  8980. lastDay : '[јуче у] LT',
  8981. lastWeek : function () {
  8982. var lastWeekDays = [
  8983. '[прошле] [недеље] [у] LT',
  8984. '[прошлог] [понедељка] [у] LT',
  8985. '[прошлог] [уторка] [у] LT',
  8986. '[прошле] [среде] [у] LT',
  8987. '[прошлог] [четвртка] [у] LT',
  8988. '[прошлог] [петка] [у] LT',
  8989. '[прошле] [суботе] [у] LT'
  8990. ];
  8991. return lastWeekDays[this.day()];
  8992. },
  8993. sameElse : 'L'
  8994. },
  8995. relativeTime : {
  8996. future : 'за %s',
  8997. past : 'пре %s',
  8998. s : 'неколико секунди',
  8999. m : sr_cyrl__translator.translate,
  9000. mm : sr_cyrl__translator.translate,
  9001. h : sr_cyrl__translator.translate,
  9002. hh : sr_cyrl__translator.translate,
  9003. d : 'дан',
  9004. dd : sr_cyrl__translator.translate,
  9005. M : 'месец',
  9006. MM : sr_cyrl__translator.translate,
  9007. y : 'годину',
  9008. yy : sr_cyrl__translator.translate
  9009. },
  9010. ordinalParse: /\d{1,2}\./,
  9011. ordinal : '%d.',
  9012. week : {
  9013. dow : 1, // Monday is the first day of the week.
  9014. doy : 7 // The week that contains Jan 1st is the first week of the year.
  9015. }
  9016. });
  9017. //! moment.js locale configuration
  9018. //! locale : Serbian-latin (sr)
  9019. //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
  9020. var sr__translator = {
  9021. words: { //Different grammatical cases
  9022. m: ['jedan minut', 'jedne minute'],
  9023. mm: ['minut', 'minute', 'minuta'],
  9024. h: ['jedan sat', 'jednog sata'],
  9025. hh: ['sat', 'sata', 'sati'],
  9026. dd: ['dan', 'dana', 'dana'],
  9027. MM: ['mesec', 'meseca', 'meseci'],
  9028. yy: ['godina', 'godine', 'godina']
  9029. },
  9030. correctGrammaticalCase: function (number, wordKey) {
  9031. return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
  9032. },
  9033. translate: function (number, withoutSuffix, key) {
  9034. var wordKey = sr__translator.words[key];
  9035. if (key.length === 1) {
  9036. return withoutSuffix ? wordKey[0] : wordKey[1];
  9037. } else {
  9038. return number + ' ' + sr__translator.correctGrammaticalCase(number, wordKey);
  9039. }
  9040. }
  9041. };
  9042. var sr = moment__default.defineLocale('sr', {
  9043. months: ['januar', 'februar', 'mart', 'april', 'maj', 'jun', 'jul', 'avgust', 'septembar', 'oktobar', 'novembar', 'decembar'],
  9044. monthsShort: ['jan.', 'feb.', 'mar.', 'apr.', 'maj', 'jun', 'jul', 'avg.', 'sep.', 'okt.', 'nov.', 'dec.'],
  9045. weekdays: ['nedelja', 'ponedeljak', 'utorak', 'sreda', 'četvrtak', 'petak', 'subota'],
  9046. weekdaysShort: ['ned.', 'pon.', 'uto.', 'sre.', 'čet.', 'pet.', 'sub.'],
  9047. weekdaysMin: ['ne', 'po', 'ut', 'sr', 'če', 'pe', 'su'],
  9048. longDateFormat: {
  9049. LT: 'H:mm',
  9050. LTS : 'H:mm:ss',
  9051. L: 'DD. MM. YYYY',
  9052. LL: 'D. MMMM YYYY',
  9053. LLL: 'D. MMMM YYYY H:mm',
  9054. LLLL: 'dddd, D. MMMM YYYY H:mm'
  9055. },
  9056. calendar: {
  9057. sameDay: '[danas u] LT',
  9058. nextDay: '[sutra u] LT',
  9059. nextWeek: function () {
  9060. switch (this.day()) {
  9061. case 0:
  9062. return '[u] [nedelju] [u] LT';
  9063. case 3:
  9064. return '[u] [sredu] [u] LT';
  9065. case 6:
  9066. return '[u] [subotu] [u] LT';
  9067. case 1:
  9068. case 2:
  9069. case 4:
  9070. case 5:
  9071. return '[u] dddd [u] LT';
  9072. }
  9073. },
  9074. lastDay : '[juče u] LT',
  9075. lastWeek : function () {
  9076. var lastWeekDays = [
  9077. '[prošle] [nedelje] [u] LT',
  9078. '[prošlog] [ponedeljka] [u] LT',
  9079. '[prošlog] [utorka] [u] LT',
  9080. '[prošle] [srede] [u] LT',
  9081. '[prošlog] [četvrtka] [u] LT',
  9082. '[prošlog] [petka] [u] LT',
  9083. '[prošle] [subote] [u] LT'
  9084. ];
  9085. return lastWeekDays[this.day()];
  9086. },
  9087. sameElse : 'L'
  9088. },
  9089. relativeTime : {
  9090. future : 'za %s',
  9091. past : 'pre %s',
  9092. s : 'nekoliko sekundi',
  9093. m : sr__translator.translate,
  9094. mm : sr__translator.translate,
  9095. h : sr__translator.translate,
  9096. hh : sr__translator.translate,
  9097. d : 'dan',
  9098. dd : sr__translator.translate,
  9099. M : 'mesec',
  9100. MM : sr__translator.translate,
  9101. y : 'godinu',
  9102. yy : sr__translator.translate
  9103. },
  9104. ordinalParse: /\d{1,2}\./,
  9105. ordinal : '%d.',
  9106. week : {
  9107. dow : 1, // Monday is the first day of the week.
  9108. doy : 7 // The week that contains Jan 1st is the first week of the year.
  9109. }
  9110. });
  9111. //! moment.js locale configuration
  9112. //! locale : swedish (sv)
  9113. //! author : Jens Alm : https://github.com/ulmus
  9114. var sv = moment__default.defineLocale('sv', {
  9115. months : 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),
  9116. monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  9117. weekdays : 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
  9118. weekdaysShort : 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
  9119. weekdaysMin : 'sö_må_ti_on_to_fr_lö'.split('_'),
  9120. longDateFormat : {
  9121. LT : 'HH:mm',
  9122. LTS : 'HH:mm:ss',
  9123. L : 'YYYY-MM-DD',
  9124. LL : 'D MMMM YYYY',
  9125. LLL : 'D MMMM YYYY HH:mm',
  9126. LLLL : 'dddd D MMMM YYYY HH:mm'
  9127. },
  9128. calendar : {
  9129. sameDay: '[Idag] LT',
  9130. nextDay: '[Imorgon] LT',
  9131. lastDay: '[Igår] LT',
  9132. nextWeek: '[På] dddd LT',
  9133. lastWeek: '[I] dddd[s] LT',
  9134. sameElse: 'L'
  9135. },
  9136. relativeTime : {
  9137. future : 'om %s',
  9138. past : 'för %s sedan',
  9139. s : 'några sekunder',
  9140. m : 'en minut',
  9141. mm : '%d minuter',
  9142. h : 'en timme',
  9143. hh : '%d timmar',
  9144. d : 'en dag',
  9145. dd : '%d dagar',
  9146. M : 'en månad',
  9147. MM : '%d månader',
  9148. y : 'ett år',
  9149. yy : '%d år'
  9150. },
  9151. ordinalParse: /\d{1,2}(e|a)/,
  9152. ordinal : function (number) {
  9153. var b = number % 10,
  9154. output = (~~(number % 100 / 10) === 1) ? 'e' :
  9155. (b === 1) ? 'a' :
  9156. (b === 2) ? 'a' :
  9157. (b === 3) ? 'e' : 'e';
  9158. return number + output;
  9159. },
  9160. week : {
  9161. dow : 1, // Monday is the first day of the week.
  9162. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9163. }
  9164. });
  9165. //! moment.js locale configuration
  9166. //! locale : swahili (sw)
  9167. //! author : Fahad Kassim : https://github.com/fadsel
  9168. var sw = moment__default.defineLocale('sw', {
  9169. months : 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'),
  9170. monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
  9171. weekdays : 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'),
  9172. weekdaysShort : 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
  9173. weekdaysMin : 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
  9174. longDateFormat : {
  9175. LT : 'HH:mm',
  9176. LTS : 'HH:mm:ss',
  9177. L : 'DD.MM.YYYY',
  9178. LL : 'D MMMM YYYY',
  9179. LLL : 'D MMMM YYYY HH:mm',
  9180. LLLL : 'dddd, D MMMM YYYY HH:mm'
  9181. },
  9182. calendar : {
  9183. sameDay : '[leo saa] LT',
  9184. nextDay : '[kesho saa] LT',
  9185. nextWeek : '[wiki ijayo] dddd [saat] LT',
  9186. lastDay : '[jana] LT',
  9187. lastWeek : '[wiki iliyopita] dddd [saat] LT',
  9188. sameElse : 'L'
  9189. },
  9190. relativeTime : {
  9191. future : '%s baadaye',
  9192. past : 'tokea %s',
  9193. s : 'hivi punde',
  9194. m : 'dakika moja',
  9195. mm : 'dakika %d',
  9196. h : 'saa limoja',
  9197. hh : 'masaa %d',
  9198. d : 'siku moja',
  9199. dd : 'masiku %d',
  9200. M : 'mwezi mmoja',
  9201. MM : 'miezi %d',
  9202. y : 'mwaka mmoja',
  9203. yy : 'miaka %d'
  9204. },
  9205. week : {
  9206. dow : 1, // Monday is the first day of the week.
  9207. doy : 7 // The week that contains Jan 1st is the first week of the year.
  9208. }
  9209. });
  9210. //! moment.js locale configuration
  9211. //! locale : tamil (ta)
  9212. //! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404
  9213. var ta__symbolMap = {
  9214. '1': '௧',
  9215. '2': '௨',
  9216. '3': '௩',
  9217. '4': '௪',
  9218. '5': '௫',
  9219. '6': '௬',
  9220. '7': '௭',
  9221. '8': '௮',
  9222. '9': '௯',
  9223. '0': '௦'
  9224. }, ta__numberMap = {
  9225. '௧': '1',
  9226. '௨': '2',
  9227. '௩': '3',
  9228. '௪': '4',
  9229. '௫': '5',
  9230. '௬': '6',
  9231. '௭': '7',
  9232. '௮': '8',
  9233. '௯': '9',
  9234. '௦': '0'
  9235. };
  9236. var ta = moment__default.defineLocale('ta', {
  9237. months : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
  9238. monthsShort : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
  9239. weekdays : 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'),
  9240. weekdaysShort : 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'),
  9241. weekdaysMin : 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
  9242. longDateFormat : {
  9243. LT : 'HH:mm',
  9244. LTS : 'HH:mm:ss',
  9245. L : 'DD/MM/YYYY',
  9246. LL : 'D MMMM YYYY',
  9247. LLL : 'D MMMM YYYY, HH:mm',
  9248. LLLL : 'dddd, D MMMM YYYY, HH:mm'
  9249. },
  9250. calendar : {
  9251. sameDay : '[இன்று] LT',
  9252. nextDay : '[நாளை] LT',
  9253. nextWeek : 'dddd, LT',
  9254. lastDay : '[நேற்று] LT',
  9255. lastWeek : '[கடந்த வாரம்] dddd, LT',
  9256. sameElse : 'L'
  9257. },
  9258. relativeTime : {
  9259. future : '%s இல்',
  9260. past : '%s முன்',
  9261. s : 'ஒரு சில விநாடிகள்',
  9262. m : 'ஒரு நிமிடம்',
  9263. mm : '%d நிமிடங்கள்',
  9264. h : 'ஒரு மணி நேரம்',
  9265. hh : '%d மணி நேரம்',
  9266. d : 'ஒரு நாள்',
  9267. dd : '%d நாட்கள்',
  9268. M : 'ஒரு மாதம்',
  9269. MM : '%d மாதங்கள்',
  9270. y : 'ஒரு வருடம்',
  9271. yy : '%d ஆண்டுகள்'
  9272. },
  9273. ordinalParse: /\d{1,2}வது/,
  9274. ordinal : function (number) {
  9275. return number + 'வது';
  9276. },
  9277. preparse: function (string) {
  9278. return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
  9279. return ta__numberMap[match];
  9280. });
  9281. },
  9282. postformat: function (string) {
  9283. return string.replace(/\d/g, function (match) {
  9284. return ta__symbolMap[match];
  9285. });
  9286. },
  9287. // refer http://ta.wikipedia.org/s/1er1
  9288. meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
  9289. meridiem : function (hour, minute, isLower) {
  9290. if (hour < 2) {
  9291. return ' யாமம்';
  9292. } else if (hour < 6) {
  9293. return ' வைகறை'; // வைகறை
  9294. } else if (hour < 10) {
  9295. return ' காலை'; // காலை
  9296. } else if (hour < 14) {
  9297. return ' நண்பகல்'; // நண்பகல்
  9298. } else if (hour < 18) {
  9299. return ' எற்பாடு'; // எற்பாடு
  9300. } else if (hour < 22) {
  9301. return ' மாலை'; // மாலை
  9302. } else {
  9303. return ' யாமம்';
  9304. }
  9305. },
  9306. meridiemHour : function (hour, meridiem) {
  9307. if (hour === 12) {
  9308. hour = 0;
  9309. }
  9310. if (meridiem === 'யாமம்') {
  9311. return hour < 2 ? hour : hour + 12;
  9312. } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {
  9313. return hour;
  9314. } else if (meridiem === 'நண்பகல்') {
  9315. return hour >= 10 ? hour : hour + 12;
  9316. } else {
  9317. return hour + 12;
  9318. }
  9319. },
  9320. week : {
  9321. dow : 0, // Sunday is the first day of the week.
  9322. doy : 6 // The week that contains Jan 1st is the first week of the year.
  9323. }
  9324. });
  9325. //! moment.js locale configuration
  9326. //! locale : telugu (te)
  9327. //! author : Krishna Chaitanya Thota : https://github.com/kcthota
  9328. var te = moment__default.defineLocale('te', {
  9329. months : 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split('_'),
  9330. monthsShort : 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split('_'),
  9331. weekdays : 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split('_'),
  9332. weekdaysShort : 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
  9333. weekdaysMin : 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
  9334. longDateFormat : {
  9335. LT : 'A h:mm',
  9336. LTS : 'A h:mm:ss',
  9337. L : 'DD/MM/YYYY',
  9338. LL : 'D MMMM YYYY',
  9339. LLL : 'D MMMM YYYY, A h:mm',
  9340. LLLL : 'dddd, D MMMM YYYY, A h:mm'
  9341. },
  9342. calendar : {
  9343. sameDay : '[నేడు] LT',
  9344. nextDay : '[రేపు] LT',
  9345. nextWeek : 'dddd, LT',
  9346. lastDay : '[నిన్న] LT',
  9347. lastWeek : '[గత] dddd, LT',
  9348. sameElse : 'L'
  9349. },
  9350. relativeTime : {
  9351. future : '%s లో',
  9352. past : '%s క్రితం',
  9353. s : 'కొన్ని క్షణాలు',
  9354. m : 'ఒక నిమిషం',
  9355. mm : '%d నిమిషాలు',
  9356. h : 'ఒక గంట',
  9357. hh : '%d గంటలు',
  9358. d : 'ఒక రోజు',
  9359. dd : '%d రోజులు',
  9360. M : 'ఒక నెల',
  9361. MM : '%d నెలలు',
  9362. y : 'ఒక సంవత్సరం',
  9363. yy : '%d సంవత్సరాలు'
  9364. },
  9365. ordinalParse : /\d{1,2}వ/,
  9366. ordinal : '%dవ',
  9367. meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
  9368. meridiemHour : function (hour, meridiem) {
  9369. if (hour === 12) {
  9370. hour = 0;
  9371. }
  9372. if (meridiem === 'రాత్రి') {
  9373. return hour < 4 ? hour : hour + 12;
  9374. } else if (meridiem === 'ఉదయం') {
  9375. return hour;
  9376. } else if (meridiem === 'మధ్యాహ్నం') {
  9377. return hour >= 10 ? hour : hour + 12;
  9378. } else if (meridiem === 'సాయంత్రం') {
  9379. return hour + 12;
  9380. }
  9381. },
  9382. meridiem : function (hour, minute, isLower) {
  9383. if (hour < 4) {
  9384. return 'రాత్రి';
  9385. } else if (hour < 10) {
  9386. return 'ఉదయం';
  9387. } else if (hour < 17) {
  9388. return 'మధ్యాహ్నం';
  9389. } else if (hour < 20) {
  9390. return 'సాయంత్రం';
  9391. } else {
  9392. return 'రాత్రి';
  9393. }
  9394. },
  9395. week : {
  9396. dow : 0, // Sunday is the first day of the week.
  9397. doy : 6 // The week that contains Jan 1st is the first week of the year.
  9398. }
  9399. });
  9400. //! moment.js locale configuration
  9401. //! locale : thai (th)
  9402. //! author : Kridsada Thanabulpong : https://github.com/sirn
  9403. var th = moment__default.defineLocale('th', {
  9404. months : 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'),
  9405. monthsShort : 'มกรา_กุมภา_มีนา_เมษา_พฤษภา_มิถุนา_กรกฎา_สิงหา_กันยา_ตุลา_พฤศจิกา_ธันวา'.split('_'),
  9406. weekdays : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
  9407. weekdaysShort : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
  9408. weekdaysMin : 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
  9409. longDateFormat : {
  9410. LT : 'H นาฬิกา m นาที',
  9411. LTS : 'H นาฬิกา m นาที s วินาที',
  9412. L : 'YYYY/MM/DD',
  9413. LL : 'D MMMM YYYY',
  9414. LLL : 'D MMMM YYYY เวลา H นาฬิกา m นาที',
  9415. LLLL : 'วันddddที่ D MMMM YYYY เวลา H นาฬิกา m นาที'
  9416. },
  9417. meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
  9418. isPM: function (input) {
  9419. return input === 'หลังเที่ยง';
  9420. },
  9421. meridiem : function (hour, minute, isLower) {
  9422. if (hour < 12) {
  9423. return 'ก่อนเที่ยง';
  9424. } else {
  9425. return 'หลังเที่ยง';
  9426. }
  9427. },
  9428. calendar : {
  9429. sameDay : '[วันนี้ เวลา] LT',
  9430. nextDay : '[พรุ่งนี้ เวลา] LT',
  9431. nextWeek : 'dddd[หน้า เวลา] LT',
  9432. lastDay : '[เมื่อวานนี้ เวลา] LT',
  9433. lastWeek : '[วัน]dddd[ที่แล้ว เวลา] LT',
  9434. sameElse : 'L'
  9435. },
  9436. relativeTime : {
  9437. future : 'อีก %s',
  9438. past : '%sที่แล้ว',
  9439. s : 'ไม่กี่วินาที',
  9440. m : '1 นาที',
  9441. mm : '%d นาที',
  9442. h : '1 ชั่วโมง',
  9443. hh : '%d ชั่วโมง',
  9444. d : '1 วัน',
  9445. dd : '%d วัน',
  9446. M : '1 เดือน',
  9447. MM : '%d เดือน',
  9448. y : '1 ปี',
  9449. yy : '%d ปี'
  9450. }
  9451. });
  9452. //! moment.js locale configuration
  9453. //! locale : Tagalog/Filipino (tl-ph)
  9454. //! author : Dan Hagman
  9455. var tl_ph = moment__default.defineLocale('tl-ph', {
  9456. months : 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),
  9457. monthsShort : 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
  9458. weekdays : 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),
  9459. weekdaysShort : 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
  9460. weekdaysMin : 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
  9461. longDateFormat : {
  9462. LT : 'HH:mm',
  9463. LTS : 'HH:mm:ss',
  9464. L : 'MM/D/YYYY',
  9465. LL : 'MMMM D, YYYY',
  9466. LLL : 'MMMM D, YYYY HH:mm',
  9467. LLLL : 'dddd, MMMM DD, YYYY HH:mm'
  9468. },
  9469. calendar : {
  9470. sameDay: '[Ngayon sa] LT',
  9471. nextDay: '[Bukas sa] LT',
  9472. nextWeek: 'dddd [sa] LT',
  9473. lastDay: '[Kahapon sa] LT',
  9474. lastWeek: 'dddd [huling linggo] LT',
  9475. sameElse: 'L'
  9476. },
  9477. relativeTime : {
  9478. future : 'sa loob ng %s',
  9479. past : '%s ang nakalipas',
  9480. s : 'ilang segundo',
  9481. m : 'isang minuto',
  9482. mm : '%d minuto',
  9483. h : 'isang oras',
  9484. hh : '%d oras',
  9485. d : 'isang araw',
  9486. dd : '%d araw',
  9487. M : 'isang buwan',
  9488. MM : '%d buwan',
  9489. y : 'isang taon',
  9490. yy : '%d taon'
  9491. },
  9492. ordinalParse: /\d{1,2}/,
  9493. ordinal : function (number) {
  9494. return number;
  9495. },
  9496. week : {
  9497. dow : 1, // Monday is the first day of the week.
  9498. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9499. }
  9500. });
  9501. //! moment.js locale configuration
  9502. //! locale : Klingon (tlh)
  9503. //! author : Dominika Kruk : https://github.com/amaranthrose
  9504. var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');
  9505. function translateFuture(output) {
  9506. var time = output;
  9507. time = (output.indexOf('jaj') !== -1) ?
  9508. time.slice(0, -3) + 'leS' :
  9509. (output.indexOf('jar') !== -1) ?
  9510. time.slice(0, -3) + 'waQ' :
  9511. (output.indexOf('DIS') !== -1) ?
  9512. time.slice(0, -3) + 'nem' :
  9513. time + ' pIq';
  9514. return time;
  9515. }
  9516. function translatePast(output) {
  9517. var time = output;
  9518. time = (output.indexOf('jaj') !== -1) ?
  9519. time.slice(0, -3) + 'Hu’' :
  9520. (output.indexOf('jar') !== -1) ?
  9521. time.slice(0, -3) + 'wen' :
  9522. (output.indexOf('DIS') !== -1) ?
  9523. time.slice(0, -3) + 'ben' :
  9524. time + ' ret';
  9525. return time;
  9526. }
  9527. function tlh__translate(number, withoutSuffix, string, isFuture) {
  9528. var numberNoun = numberAsNoun(number);
  9529. switch (string) {
  9530. case 'mm':
  9531. return numberNoun + ' tup';
  9532. case 'hh':
  9533. return numberNoun + ' rep';
  9534. case 'dd':
  9535. return numberNoun + ' jaj';
  9536. case 'MM':
  9537. return numberNoun + ' jar';
  9538. case 'yy':
  9539. return numberNoun + ' DIS';
  9540. }
  9541. }
  9542. function numberAsNoun(number) {
  9543. var hundred = Math.floor((number % 1000) / 100),
  9544. ten = Math.floor((number % 100) / 10),
  9545. one = number % 10,
  9546. word = '';
  9547. if (hundred > 0) {
  9548. word += numbersNouns[hundred] + 'vatlh';
  9549. }
  9550. if (ten > 0) {
  9551. word += ((word !== '') ? ' ' : '') + numbersNouns[ten] + 'maH';
  9552. }
  9553. if (one > 0) {
  9554. word += ((word !== '') ? ' ' : '') + numbersNouns[one];
  9555. }
  9556. return (word === '') ? 'pagh' : word;
  9557. }
  9558. var tlh = moment__default.defineLocale('tlh', {
  9559. 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('_'),
  9560. 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('_'),
  9561. weekdays : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  9562. weekdaysShort : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  9563. weekdaysMin : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  9564. longDateFormat : {
  9565. LT : 'HH:mm',
  9566. LTS : 'HH:mm:ss',
  9567. L : 'DD.MM.YYYY',
  9568. LL : 'D MMMM YYYY',
  9569. LLL : 'D MMMM YYYY HH:mm',
  9570. LLLL : 'dddd, D MMMM YYYY HH:mm'
  9571. },
  9572. calendar : {
  9573. sameDay: '[DaHjaj] LT',
  9574. nextDay: '[wa’leS] LT',
  9575. nextWeek: 'LLL',
  9576. lastDay: '[wa’Hu’] LT',
  9577. lastWeek: 'LLL',
  9578. sameElse: 'L'
  9579. },
  9580. relativeTime : {
  9581. future : translateFuture,
  9582. past : translatePast,
  9583. s : 'puS lup',
  9584. m : 'wa’ tup',
  9585. mm : tlh__translate,
  9586. h : 'wa’ rep',
  9587. hh : tlh__translate,
  9588. d : 'wa’ jaj',
  9589. dd : tlh__translate,
  9590. M : 'wa’ jar',
  9591. MM : tlh__translate,
  9592. y : 'wa’ DIS',
  9593. yy : tlh__translate
  9594. },
  9595. ordinalParse: /\d{1,2}\./,
  9596. ordinal : '%d.',
  9597. week : {
  9598. dow : 1, // Monday is the first day of the week.
  9599. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9600. }
  9601. });
  9602. //! moment.js locale configuration
  9603. //! locale : turkish (tr)
  9604. //! authors : Erhan Gundogan : https://github.com/erhangundogan,
  9605. //! Burak Yiğit Kaya: https://github.com/BYK
  9606. var tr__suffixes = {
  9607. 1: '\'inci',
  9608. 5: '\'inci',
  9609. 8: '\'inci',
  9610. 70: '\'inci',
  9611. 80: '\'inci',
  9612. 2: '\'nci',
  9613. 7: '\'nci',
  9614. 20: '\'nci',
  9615. 50: '\'nci',
  9616. 3: '\'üncü',
  9617. 4: '\'üncü',
  9618. 100: '\'üncü',
  9619. 6: '\'ncı',
  9620. 9: '\'uncu',
  9621. 10: '\'uncu',
  9622. 30: '\'uncu',
  9623. 60: '\'ıncı',
  9624. 90: '\'ıncı'
  9625. };
  9626. var tr = moment__default.defineLocale('tr', {
  9627. months : 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'),
  9628. monthsShort : 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
  9629. weekdays : 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'),
  9630. weekdaysShort : 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),
  9631. weekdaysMin : 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
  9632. longDateFormat : {
  9633. LT : 'HH:mm',
  9634. LTS : 'HH:mm:ss',
  9635. L : 'DD.MM.YYYY',
  9636. LL : 'D MMMM YYYY',
  9637. LLL : 'D MMMM YYYY HH:mm',
  9638. LLLL : 'dddd, D MMMM YYYY HH:mm'
  9639. },
  9640. calendar : {
  9641. sameDay : '[bugün saat] LT',
  9642. nextDay : '[yarın saat] LT',
  9643. nextWeek : '[haftaya] dddd [saat] LT',
  9644. lastDay : '[dün] LT',
  9645. lastWeek : '[geçen hafta] dddd [saat] LT',
  9646. sameElse : 'L'
  9647. },
  9648. relativeTime : {
  9649. future : '%s sonra',
  9650. past : '%s önce',
  9651. s : 'birkaç saniye',
  9652. m : 'bir dakika',
  9653. mm : '%d dakika',
  9654. h : 'bir saat',
  9655. hh : '%d saat',
  9656. d : 'bir gün',
  9657. dd : '%d gün',
  9658. M : 'bir ay',
  9659. MM : '%d ay',
  9660. y : 'bir yıl',
  9661. yy : '%d yıl'
  9662. },
  9663. ordinalParse: /\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,
  9664. ordinal : function (number) {
  9665. if (number === 0) { // special case for zero
  9666. return number + '\'ıncı';
  9667. }
  9668. var a = number % 10,
  9669. b = number % 100 - a,
  9670. c = number >= 100 ? 100 : null;
  9671. return number + (tr__suffixes[a] || tr__suffixes[b] || tr__suffixes[c]);
  9672. },
  9673. week : {
  9674. dow : 1, // Monday is the first day of the week.
  9675. doy : 7 // The week that contains Jan 1st is the first week of the year.
  9676. }
  9677. });
  9678. //! moment.js locale configuration
  9679. //! locale : talossan (tzl)
  9680. //! author : Robin van der Vliet : https://github.com/robin0van0der0v with the help of Iustì Canun
  9681. // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
  9682. // This is currently too difficult (maybe even impossible) to add.
  9683. var tzl = moment__default.defineLocale('tzl', {
  9684. months : 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split('_'),
  9685. monthsShort : 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
  9686. weekdays : 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
  9687. weekdaysShort : 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
  9688. weekdaysMin : 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
  9689. longDateFormat : {
  9690. LT : 'HH.mm',
  9691. LTS : 'HH.mm.ss',
  9692. L : 'DD.MM.YYYY',
  9693. LL : 'D. MMMM [dallas] YYYY',
  9694. LLL : 'D. MMMM [dallas] YYYY HH.mm',
  9695. LLLL : 'dddd, [li] D. MMMM [dallas] YYYY HH.mm'
  9696. },
  9697. meridiem : function (hours, minutes, isLower) {
  9698. if (hours > 11) {
  9699. return isLower ? 'd\'o' : 'D\'O';
  9700. } else {
  9701. return isLower ? 'd\'a' : 'D\'A';
  9702. }
  9703. },
  9704. calendar : {
  9705. sameDay : '[oxhi à] LT',
  9706. nextDay : '[demà à] LT',
  9707. nextWeek : 'dddd [à] LT',
  9708. lastDay : '[ieiri à] LT',
  9709. lastWeek : '[sür el] dddd [lasteu à] LT',
  9710. sameElse : 'L'
  9711. },
  9712. relativeTime : {
  9713. future : 'osprei %s',
  9714. past : 'ja%s',
  9715. s : tzl__processRelativeTime,
  9716. m : tzl__processRelativeTime,
  9717. mm : tzl__processRelativeTime,
  9718. h : tzl__processRelativeTime,
  9719. hh : tzl__processRelativeTime,
  9720. d : tzl__processRelativeTime,
  9721. dd : tzl__processRelativeTime,
  9722. M : tzl__processRelativeTime,
  9723. MM : tzl__processRelativeTime,
  9724. y : tzl__processRelativeTime,
  9725. yy : tzl__processRelativeTime
  9726. },
  9727. ordinalParse: /\d{1,2}\./,
  9728. ordinal : '%d.',
  9729. week : {
  9730. dow : 1, // Monday is the first day of the week.
  9731. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9732. }
  9733. });
  9734. function tzl__processRelativeTime(number, withoutSuffix, key, isFuture) {
  9735. var format = {
  9736. 's': ['viensas secunds', '\'iensas secunds'],
  9737. 'm': ['\'n míut', '\'iens míut'],
  9738. 'mm': [number + ' míuts', '' + number + ' míuts'],
  9739. 'h': ['\'n þora', '\'iensa þora'],
  9740. 'hh': [number + ' þoras', '' + number + ' þoras'],
  9741. 'd': ['\'n ziua', '\'iensa ziua'],
  9742. 'dd': [number + ' ziuas', '' + number + ' ziuas'],
  9743. 'M': ['\'n mes', '\'iens mes'],
  9744. 'MM': [number + ' mesen', '' + number + ' mesen'],
  9745. 'y': ['\'n ar', '\'iens ar'],
  9746. 'yy': [number + ' ars', '' + number + ' ars']
  9747. };
  9748. return isFuture ? format[key][0] : (withoutSuffix ? format[key][0] : format[key][1]);
  9749. }
  9750. //! moment.js locale configuration
  9751. //! locale : Morocco Central Atlas Tamaziɣt in Latin (tzm-latn)
  9752. //! author : Abdel Said : https://github.com/abdelsaid
  9753. var tzm_latn = moment__default.defineLocale('tzm-latn', {
  9754. months : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
  9755. monthsShort : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
  9756. weekdays : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  9757. weekdaysShort : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  9758. weekdaysMin : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  9759. longDateFormat : {
  9760. LT : 'HH:mm',
  9761. LTS : 'HH:mm:ss',
  9762. L : 'DD/MM/YYYY',
  9763. LL : 'D MMMM YYYY',
  9764. LLL : 'D MMMM YYYY HH:mm',
  9765. LLLL : 'dddd D MMMM YYYY HH:mm'
  9766. },
  9767. calendar : {
  9768. sameDay: '[asdkh g] LT',
  9769. nextDay: '[aska g] LT',
  9770. nextWeek: 'dddd [g] LT',
  9771. lastDay: '[assant g] LT',
  9772. lastWeek: 'dddd [g] LT',
  9773. sameElse: 'L'
  9774. },
  9775. relativeTime : {
  9776. future : 'dadkh s yan %s',
  9777. past : 'yan %s',
  9778. s : 'imik',
  9779. m : 'minuḍ',
  9780. mm : '%d minuḍ',
  9781. h : 'saɛa',
  9782. hh : '%d tassaɛin',
  9783. d : 'ass',
  9784. dd : '%d ossan',
  9785. M : 'ayowr',
  9786. MM : '%d iyyirn',
  9787. y : 'asgas',
  9788. yy : '%d isgasn'
  9789. },
  9790. week : {
  9791. dow : 6, // Saturday is the first day of the week.
  9792. doy : 12 // The week that contains Jan 1st is the first week of the year.
  9793. }
  9794. });
  9795. //! moment.js locale configuration
  9796. //! locale : Morocco Central Atlas Tamaziɣt (tzm)
  9797. //! author : Abdel Said : https://github.com/abdelsaid
  9798. var tzm = moment__default.defineLocale('tzm', {
  9799. months : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
  9800. monthsShort : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
  9801. weekdays : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  9802. weekdaysShort : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  9803. weekdaysMin : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  9804. longDateFormat : {
  9805. LT : 'HH:mm',
  9806. LTS: 'HH:mm:ss',
  9807. L : 'DD/MM/YYYY',
  9808. LL : 'D MMMM YYYY',
  9809. LLL : 'D MMMM YYYY HH:mm',
  9810. LLLL : 'dddd D MMMM YYYY HH:mm'
  9811. },
  9812. calendar : {
  9813. sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
  9814. nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
  9815. nextWeek: 'dddd [ⴴ] LT',
  9816. lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
  9817. lastWeek: 'dddd [ⴴ] LT',
  9818. sameElse: 'L'
  9819. },
  9820. relativeTime : {
  9821. future : 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
  9822. past : 'ⵢⴰⵏ %s',
  9823. s : 'ⵉⵎⵉⴽ',
  9824. m : 'ⵎⵉⵏⵓⴺ',
  9825. mm : '%d ⵎⵉⵏⵓⴺ',
  9826. h : 'ⵙⴰⵄⴰ',
  9827. hh : '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
  9828. d : 'ⴰⵙⵙ',
  9829. dd : '%d oⵙⵙⴰⵏ',
  9830. M : 'ⴰⵢoⵓⵔ',
  9831. MM : '%d ⵉⵢⵢⵉⵔⵏ',
  9832. y : 'ⴰⵙⴳⴰⵙ',
  9833. yy : '%d ⵉⵙⴳⴰⵙⵏ'
  9834. },
  9835. week : {
  9836. dow : 6, // Saturday is the first day of the week.
  9837. doy : 12 // The week that contains Jan 1st is the first week of the year.
  9838. }
  9839. });
  9840. //! moment.js locale configuration
  9841. //! locale : ukrainian (uk)
  9842. //! author : zemlanin : https://github.com/zemlanin
  9843. //! Author : Menelion Elensúle : https://github.com/Oire
  9844. function uk__plural(word, num) {
  9845. var forms = word.split('_');
  9846. return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
  9847. }
  9848. function uk__relativeTimeWithPlural(number, withoutSuffix, key) {
  9849. var format = {
  9850. 'mm': withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
  9851. 'hh': withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
  9852. 'dd': 'день_дні_днів',
  9853. 'MM': 'місяць_місяці_місяців',
  9854. 'yy': 'рік_роки_років'
  9855. };
  9856. if (key === 'm') {
  9857. return withoutSuffix ? 'хвилина' : 'хвилину';
  9858. }
  9859. else if (key === 'h') {
  9860. return withoutSuffix ? 'година' : 'годину';
  9861. }
  9862. else {
  9863. return number + ' ' + uk__plural(format[key], +number);
  9864. }
  9865. }
  9866. function weekdaysCaseReplace(m, format) {
  9867. var weekdays = {
  9868. 'nominative': 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'),
  9869. 'accusative': 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'),
  9870. 'genitive': 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')
  9871. },
  9872. nounCase = (/(\[[ВвУу]\]) ?dddd/).test(format) ?
  9873. 'accusative' :
  9874. ((/\[?(?:минулої|наступної)? ?\] ?dddd/).test(format) ?
  9875. 'genitive' :
  9876. 'nominative');
  9877. return weekdays[nounCase][m.day()];
  9878. }
  9879. function processHoursFunction(str) {
  9880. return function () {
  9881. return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
  9882. };
  9883. }
  9884. var uk = moment__default.defineLocale('uk', {
  9885. months : {
  9886. 'format': 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_'),
  9887. 'standalone': 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_')
  9888. },
  9889. monthsShort : 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'),
  9890. weekdays : weekdaysCaseReplace,
  9891. weekdaysShort : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  9892. weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  9893. longDateFormat : {
  9894. LT : 'HH:mm',
  9895. LTS : 'HH:mm:ss',
  9896. L : 'DD.MM.YYYY',
  9897. LL : 'D MMMM YYYY р.',
  9898. LLL : 'D MMMM YYYY р., HH:mm',
  9899. LLLL : 'dddd, D MMMM YYYY р., HH:mm'
  9900. },
  9901. calendar : {
  9902. sameDay: processHoursFunction('[Сьогодні '),
  9903. nextDay: processHoursFunction('[Завтра '),
  9904. lastDay: processHoursFunction('[Вчора '),
  9905. nextWeek: processHoursFunction('[У] dddd ['),
  9906. lastWeek: function () {
  9907. switch (this.day()) {
  9908. case 0:
  9909. case 3:
  9910. case 5:
  9911. case 6:
  9912. return processHoursFunction('[Минулої] dddd [').call(this);
  9913. case 1:
  9914. case 2:
  9915. case 4:
  9916. return processHoursFunction('[Минулого] dddd [').call(this);
  9917. }
  9918. },
  9919. sameElse: 'L'
  9920. },
  9921. relativeTime : {
  9922. future : 'за %s',
  9923. past : '%s тому',
  9924. s : 'декілька секунд',
  9925. m : uk__relativeTimeWithPlural,
  9926. mm : uk__relativeTimeWithPlural,
  9927. h : 'годину',
  9928. hh : uk__relativeTimeWithPlural,
  9929. d : 'день',
  9930. dd : uk__relativeTimeWithPlural,
  9931. M : 'місяць',
  9932. MM : uk__relativeTimeWithPlural,
  9933. y : 'рік',
  9934. yy : uk__relativeTimeWithPlural
  9935. },
  9936. // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
  9937. meridiemParse: /ночі|ранку|дня|вечора/,
  9938. isPM: function (input) {
  9939. return /^(дня|вечора)$/.test(input);
  9940. },
  9941. meridiem : function (hour, minute, isLower) {
  9942. if (hour < 4) {
  9943. return 'ночі';
  9944. } else if (hour < 12) {
  9945. return 'ранку';
  9946. } else if (hour < 17) {
  9947. return 'дня';
  9948. } else {
  9949. return 'вечора';
  9950. }
  9951. },
  9952. ordinalParse: /\d{1,2}-(й|го)/,
  9953. ordinal: function (number, period) {
  9954. switch (period) {
  9955. case 'M':
  9956. case 'd':
  9957. case 'DDD':
  9958. case 'w':
  9959. case 'W':
  9960. return number + '-й';
  9961. case 'D':
  9962. return number + '-го';
  9963. default:
  9964. return number;
  9965. }
  9966. },
  9967. week : {
  9968. dow : 1, // Monday is the first day of the week.
  9969. doy : 7 // The week that contains Jan 1st is the first week of the year.
  9970. }
  9971. });
  9972. //! moment.js locale configuration
  9973. //! locale : uzbek (uz)
  9974. //! author : Sardor Muminov : https://github.com/muminoff
  9975. var uz = moment__default.defineLocale('uz', {
  9976. months : 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'),
  9977. monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
  9978. weekdays : 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
  9979. weekdaysShort : 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
  9980. weekdaysMin : 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
  9981. longDateFormat : {
  9982. LT : 'HH:mm',
  9983. LTS : 'HH:mm:ss',
  9984. L : 'DD/MM/YYYY',
  9985. LL : 'D MMMM YYYY',
  9986. LLL : 'D MMMM YYYY HH:mm',
  9987. LLLL : 'D MMMM YYYY, dddd HH:mm'
  9988. },
  9989. calendar : {
  9990. sameDay : '[Бугун соат] LT [да]',
  9991. nextDay : '[Эртага] LT [да]',
  9992. nextWeek : 'dddd [куни соат] LT [да]',
  9993. lastDay : '[Кеча соат] LT [да]',
  9994. lastWeek : '[Утган] dddd [куни соат] LT [да]',
  9995. sameElse : 'L'
  9996. },
  9997. relativeTime : {
  9998. future : 'Якин %s ичида',
  9999. past : 'Бир неча %s олдин',
  10000. s : 'фурсат',
  10001. m : 'бир дакика',
  10002. mm : '%d дакика',
  10003. h : 'бир соат',
  10004. hh : '%d соат',
  10005. d : 'бир кун',
  10006. dd : '%d кун',
  10007. M : 'бир ой',
  10008. MM : '%d ой',
  10009. y : 'бир йил',
  10010. yy : '%d йил'
  10011. },
  10012. week : {
  10013. dow : 1, // Monday is the first day of the week.
  10014. doy : 7 // The week that contains Jan 4th is the first week of the year.
  10015. }
  10016. });
  10017. //! moment.js locale configuration
  10018. //! locale : vietnamese (vi)
  10019. //! author : Bang Nguyen : https://github.com/bangnk
  10020. var vi = moment__default.defineLocale('vi', {
  10021. 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('_'),
  10022. monthsShort : 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'),
  10023. weekdays : 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),
  10024. weekdaysShort : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  10025. weekdaysMin : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  10026. longDateFormat : {
  10027. LT : 'HH:mm',
  10028. LTS : 'HH:mm:ss',
  10029. L : 'DD/MM/YYYY',
  10030. LL : 'D MMMM [năm] YYYY',
  10031. LLL : 'D MMMM [năm] YYYY HH:mm',
  10032. LLLL : 'dddd, D MMMM [năm] YYYY HH:mm',
  10033. l : 'DD/M/YYYY',
  10034. ll : 'D MMM YYYY',
  10035. lll : 'D MMM YYYY HH:mm',
  10036. llll : 'ddd, D MMM YYYY HH:mm'
  10037. },
  10038. calendar : {
  10039. sameDay: '[Hôm nay lúc] LT',
  10040. nextDay: '[Ngày mai lúc] LT',
  10041. nextWeek: 'dddd [tuần tới lúc] LT',
  10042. lastDay: '[Hôm qua lúc] LT',
  10043. lastWeek: 'dddd [tuần rồi lúc] LT',
  10044. sameElse: 'L'
  10045. },
  10046. relativeTime : {
  10047. future : '%s tới',
  10048. past : '%s trước',
  10049. s : 'vài giây',
  10050. m : 'một phút',
  10051. mm : '%d phút',
  10052. h : 'một giờ',
  10053. hh : '%d giờ',
  10054. d : 'một ngày',
  10055. dd : '%d ngày',
  10056. M : 'một tháng',
  10057. MM : '%d tháng',
  10058. y : 'một năm',
  10059. yy : '%d năm'
  10060. },
  10061. ordinalParse: /\d{1,2}/,
  10062. ordinal : function (number) {
  10063. return number;
  10064. },
  10065. week : {
  10066. dow : 1, // Monday is the first day of the week.
  10067. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10068. }
  10069. });
  10070. //! moment.js locale configuration
  10071. //! locale : chinese (zh-cn)
  10072. //! author : suupic : https://github.com/suupic
  10073. //! author : Zeno Zeng : https://github.com/zenozeng
  10074. var zh_cn = moment__default.defineLocale('zh-cn', {
  10075. months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  10076. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  10077. weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  10078. weekdaysShort : '周日_周一_周二_周三_周四_周五_周六'.split('_'),
  10079. weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
  10080. longDateFormat : {
  10081. LT : 'Ah点mm分',
  10082. LTS : 'Ah点m分s秒',
  10083. L : 'YYYY-MM-DD',
  10084. LL : 'YYYY年MMMD日',
  10085. LLL : 'YYYY年MMMD日Ah点mm分',
  10086. LLLL : 'YYYY年MMMD日ddddAh点mm分',
  10087. l : 'YYYY-MM-DD',
  10088. ll : 'YYYY年MMMD日',
  10089. lll : 'YYYY年MMMD日Ah点mm分',
  10090. llll : 'YYYY年MMMD日ddddAh点mm分'
  10091. },
  10092. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  10093. meridiemHour: function (hour, meridiem) {
  10094. if (hour === 12) {
  10095. hour = 0;
  10096. }
  10097. if (meridiem === '凌晨' || meridiem === '早上' ||
  10098. meridiem === '上午') {
  10099. return hour;
  10100. } else if (meridiem === '下午' || meridiem === '晚上') {
  10101. return hour + 12;
  10102. } else {
  10103. // '中午'
  10104. return hour >= 11 ? hour : hour + 12;
  10105. }
  10106. },
  10107. meridiem : function (hour, minute, isLower) {
  10108. var hm = hour * 100 + minute;
  10109. if (hm < 600) {
  10110. return '凌晨';
  10111. } else if (hm < 900) {
  10112. return '早上';
  10113. } else if (hm < 1130) {
  10114. return '上午';
  10115. } else if (hm < 1230) {
  10116. return '中午';
  10117. } else if (hm < 1800) {
  10118. return '下午';
  10119. } else {
  10120. return '晚上';
  10121. }
  10122. },
  10123. calendar : {
  10124. sameDay : function () {
  10125. return this.minutes() === 0 ? '[今天]Ah[点整]' : '[今天]LT';
  10126. },
  10127. nextDay : function () {
  10128. return this.minutes() === 0 ? '[明天]Ah[点整]' : '[明天]LT';
  10129. },
  10130. lastDay : function () {
  10131. return this.minutes() === 0 ? '[昨天]Ah[点整]' : '[昨天]LT';
  10132. },
  10133. nextWeek : function () {
  10134. var startOfWeek, prefix;
  10135. startOfWeek = moment__default().startOf('week');
  10136. prefix = this.unix() - startOfWeek.unix() >= 7 * 24 * 3600 ? '[下]' : '[本]';
  10137. return this.minutes() === 0 ? prefix + 'dddAh点整' : prefix + 'dddAh点mm';
  10138. },
  10139. lastWeek : function () {
  10140. var startOfWeek, prefix;
  10141. startOfWeek = moment__default().startOf('week');
  10142. prefix = this.unix() < startOfWeek.unix() ? '[上]' : '[本]';
  10143. return this.minutes() === 0 ? prefix + 'dddAh点整' : prefix + 'dddAh点mm';
  10144. },
  10145. sameElse : 'LL'
  10146. },
  10147. ordinalParse: /\d{1,2}(日|月|周)/,
  10148. ordinal : function (number, period) {
  10149. switch (period) {
  10150. case 'd':
  10151. case 'D':
  10152. case 'DDD':
  10153. return number + '日';
  10154. case 'M':
  10155. return number + '月';
  10156. case 'w':
  10157. case 'W':
  10158. return number + '周';
  10159. default:
  10160. return number;
  10161. }
  10162. },
  10163. relativeTime : {
  10164. future : '%s内',
  10165. past : '%s前',
  10166. s : '几秒',
  10167. m : '1 分钟',
  10168. mm : '%d 分钟',
  10169. h : '1 小时',
  10170. hh : '%d 小时',
  10171. d : '1 天',
  10172. dd : '%d 天',
  10173. M : '1 个月',
  10174. MM : '%d 个月',
  10175. y : '1 年',
  10176. yy : '%d 年'
  10177. },
  10178. week : {
  10179. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  10180. dow : 1, // Monday is the first day of the week.
  10181. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10182. }
  10183. });
  10184. //! moment.js locale configuration
  10185. //! locale : traditional chinese (zh-tw)
  10186. //! author : Ben : https://github.com/ben-lin
  10187. var zh_tw = moment__default.defineLocale('zh-tw', {
  10188. months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  10189. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  10190. weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  10191. weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  10192. weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
  10193. longDateFormat : {
  10194. LT : 'Ah點mm分',
  10195. LTS : 'Ah點m分s秒',
  10196. L : 'YYYY年MMMD日',
  10197. LL : 'YYYY年MMMD日',
  10198. LLL : 'YYYY年MMMD日Ah點mm分',
  10199. LLLL : 'YYYY年MMMD日ddddAh點mm分',
  10200. l : 'YYYY年MMMD日',
  10201. ll : 'YYYY年MMMD日',
  10202. lll : 'YYYY年MMMD日Ah點mm分',
  10203. llll : 'YYYY年MMMD日ddddAh點mm分'
  10204. },
  10205. meridiemParse: /早上|上午|中午|下午|晚上/,
  10206. meridiemHour : function (hour, meridiem) {
  10207. if (hour === 12) {
  10208. hour = 0;
  10209. }
  10210. if (meridiem === '早上' || meridiem === '上午') {
  10211. return hour;
  10212. } else if (meridiem === '中午') {
  10213. return hour >= 11 ? hour : hour + 12;
  10214. } else if (meridiem === '下午' || meridiem === '晚上') {
  10215. return hour + 12;
  10216. }
  10217. },
  10218. meridiem : function (hour, minute, isLower) {
  10219. var hm = hour * 100 + minute;
  10220. if (hm < 900) {
  10221. return '早上';
  10222. } else if (hm < 1130) {
  10223. return '上午';
  10224. } else if (hm < 1230) {
  10225. return '中午';
  10226. } else if (hm < 1800) {
  10227. return '下午';
  10228. } else {
  10229. return '晚上';
  10230. }
  10231. },
  10232. calendar : {
  10233. sameDay : '[今天]LT',
  10234. nextDay : '[明天]LT',
  10235. nextWeek : '[下]ddddLT',
  10236. lastDay : '[昨天]LT',
  10237. lastWeek : '[上]ddddLT',
  10238. sameElse : 'L'
  10239. },
  10240. ordinalParse: /\d{1,2}(日|月|週)/,
  10241. ordinal : function (number, period) {
  10242. switch (period) {
  10243. case 'd' :
  10244. case 'D' :
  10245. case 'DDD' :
  10246. return number + '日';
  10247. case 'M' :
  10248. return number + '月';
  10249. case 'w' :
  10250. case 'W' :
  10251. return number + '週';
  10252. default :
  10253. return number;
  10254. }
  10255. },
  10256. relativeTime : {
  10257. future : '%s內',
  10258. past : '%s前',
  10259. s : '幾秒',
  10260. m : '一分鐘',
  10261. mm : '%d分鐘',
  10262. h : '一小時',
  10263. hh : '%d小時',
  10264. d : '一天',
  10265. dd : '%d天',
  10266. M : '一個月',
  10267. MM : '%d個月',
  10268. y : '一年',
  10269. yy : '%d年'
  10270. }
  10271. });
  10272. var moment_with_locales = moment__default;
  10273. moment_with_locales.locale('en');
  10274. return moment_with_locales;
  10275. }));