converse-no-dependencies.js 2.5 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912669136691466915669166691766918669196692066921669226692366924669256692666927669286692966930669316693266933669346693566936669376693866939669406694166942669436694466945669466694766948669496695066951669526695366954669556695666957669586695966960669616696266963669646696566966669676696866969669706697166972669736697466975669766697766978669796698066981669826698366984669856698666987669886698966990669916699266993669946699566996669976699866999670006700167002670036700467005670066700767008670096701067011670126701367014670156701667017670186701967020670216702267023670246702567026670276702867029670306703167032670336703467035670366703767038670396704067041670426704367044670456704667047670486704967050670516705267053670546705567056670576705867059670606706167062670636706467065670666706767068670696707067071670726707367074670756707667077670786707967080670816708267083670846708567086670876708867089670906709167092670936709467095670966709767098670996710067101671026710367104671056710667107671086710967110671116711267113671146711567116671176711867119671206712167122671236712467125671266712767128671296713067131671326713367134671356713667137671386713967140671416714267143671446714567146671476714867149671506715167152671536715467155671566715767158671596716067161671626716367164671656716667167671686716967170671716717267173671746717567176671776717867179671806718167182671836718467185671866718767188671896719067191671926719367194671956719667197671986719967200672016720267203672046720567206672076720867209672106721167212672136721467215672166721767218672196722067221672226722367224672256722667227672286722967230672316723267233672346723567236672376723867239672406724167242672436724467245672466724767248672496725067251672526725367254672556725667257672586725967260672616726267263672646726567266672676726867269672706727167272672736727467275672766727767278672796728067281672826728367284672856728667287672886728967290672916729267293672946729567296672976729867299673006730167302673036730467305673066730767308673096731067311673126731367314673156731667317673186731967320673216732267323673246732567326673276732867329673306733167332673336733467335673366733767338673396734067341673426734367344673456734667347673486734967350673516735267353673546735567356673576735867359673606736167362673636736467365673666736767368673696737067371673726737367374673756737667377673786737967380673816738267383673846738567386673876738867389673906739167392673936739467395673966739767398673996740067401674026740367404674056740667407674086740967410674116741267413674146741567416674176741867419674206742167422674236742467425674266742767428674296743067431674326743367434674356743667437674386743967440674416744267443674446744567446674476744867449674506745167452674536745467455674566745767458674596746067461674626746367464674656746667467674686746967470674716747267473674746747567476674776747867479674806748167482674836748467485674866748767488674896749067491674926749367494674956749667497674986749967500675016750267503675046750567506675076750867509675106751167512675136751467515675166751767518675196752067521675226752367524675256752667527675286752967530675316753267533675346753567536675376753867539675406754167542675436754467545675466754767548675496755067551675526755367554675556755667557675586755967560675616756267563675646756567566675676756867569675706757167572675736757467575675766757767578675796758067581675826758367584675856758667587675886758967590675916759267593675946759567596675976759867599676006760167602676036760467605676066760767608676096761067611676126761367614676156761667617676186761967620676216762267623676246762567626676276762867629676306763167632676336763467635676366763767638676396764067641676426764367644676456764667647676486764967650676516765267653676546765567656676576765867659676606766167662676636766467665676666766767668676696767067671676726767367674676756767667677676786767967680676816768267683676846768567686676876768867689676906769167692676936769467695676966769767698676996770067701677026770367704677056770667707677086770967710677116771267713677146771567716677176771867719677206772167722677236772467725677266772767728677296773067731677326773367734677356773667737677386773967740677416774267743677446774567746677476774867749677506775167752677536775467755677566775767758677596776067761677626776367764677656776667767677686776967770677716777267773677746777567776677776777867779677806778167782677836778467785677866778767788677896779067791677926779367794677956779667797677986779967800678016780267803678046780567806678076780867809678106781167812678136781467815678166781767818678196782067821678226782367824678256782667827678286782967830678316783267833678346783567836678376783867839678406784167842678436784467845678466784767848678496785067851678526785367854678556785667857678586785967860678616786267863678646786567866678676786867869678706787167872678736787467875678766787767878678796788067881678826788367884678856788667887678886788967890678916789267893678946789567896678976789867899679006790167902679036790467905679066790767908679096791067911679126791367914679156791667917679186791967920679216792267923679246792567926679276792867929679306793167932679336793467935679366793767938679396794067941679426794367944679456794667947679486794967950679516795267953679546795567956679576795867959679606796167962679636796467965679666796767968679696797067971679726797367974679756797667977679786797967980679816798267983679846798567986679876798867989679906799167992679936799467995679966799767998679996800068001680026800368004680056800668007680086800968010680116801268013680146801568016680176801868019680206802168022680236802468025680266802768028680296803068031680326803368034680356803668037680386803968040680416804268043680446804568046680476804868049680506805168052680536805468055680566805768058680596806068061680626806368064680656806668067680686806968070680716807268073680746807568076680776807868079680806808168082680836808468085680866808768088680896809068091680926809368094680956809668097680986809968100681016810268103681046810568106681076810868109681106811168112681136811468115681166811768118681196812068121681226812368124681256812668127681286812968130681316813268133681346813568136681376813868139681406814168142681436814468145681466814768148681496815068151681526815368154681556815668157681586815968160681616816268163681646816568166681676816868169681706817168172681736817468175681766817768178681796818068181681826818368184681856818668187681886818968190681916819268193681946819568196681976819868199682006820168202682036820468205682066820768208682096821068211682126821368214682156821668217682186821968220682216822268223682246822568226682276822868229682306823168232682336823468235682366823768238682396824068241682426824368244682456824668247682486824968250682516825268253682546825568256682576825868259682606826168262682636826468265682666826768268682696827068271682726827368274682756827668277682786827968280682816828268283682846828568286682876828868289682906829168292682936829468295682966829768298682996830068301683026830368304683056830668307683086830968310683116831268313683146831568316683176831868319683206832168322683236832468325683266832768328683296833068331683326833368334683356833668337683386833968340683416834268343683446834568346683476834868349683506835168352683536835468355683566835768358683596836068361683626836368364683656836668367683686836968370683716837268373683746837568376683776837868379683806838168382683836838468385683866838768388683896839068391683926839368394683956839668397683986839968400684016840268403684046840568406684076840868409684106841168412684136841468415684166841768418684196842068421684226842368424684256842668427684286842968430684316843268433684346843568436684376843868439684406844168442684436844468445684466844768448684496845068451684526845368454684556845668457684586845968460684616846268463684646846568466684676846868469684706847168472684736847468475684766847768478684796848068481684826848368484684856848668487684886848968490684916849268493684946849568496684976849868499685006850168502685036850468505685066850768508685096851068511685126851368514685156851668517685186851968520685216852268523685246852568526685276852868529685306853168532685336853468535685366853768538685396854068541685426854368544685456854668547685486854968550685516855268553685546855568556685576855868559685606856168562685636856468565685666856768568685696857068571685726857368574685756857668577685786857968580685816858268583685846858568586685876858868589685906859168592685936859468595685966859768598685996860068601686026860368604686056860668607686086860968610686116861268613686146861568616686176861868619686206862168622686236862468625686266862768628686296863068631686326863368634686356863668637686386863968640686416864268643686446864568646686476864868649686506865168652686536865468655686566865768658686596866068661686626866368664686656866668667686686866968670686716867268673686746867568676686776867868679686806868168682686836868468685686866868768688686896869068691686926869368694686956869668697686986869968700687016870268703687046870568706687076870868709687106871168712687136871468715687166871768718687196872068721687226872368724687256872668727687286872968730687316873268733687346873568736687376873868739687406874168742687436874468745687466874768748687496875068751687526875368754687556875668757687586875968760687616876268763687646876568766687676876868769687706877168772687736877468775687766877768778687796878068781687826878368784687856878668787687886878968790687916879268793687946879568796687976879868799688006880168802688036880468805688066880768808688096881068811688126881368814688156881668817688186881968820688216882268823688246882568826688276882868829688306883168832688336883468835688366883768838688396884068841688426884368844688456884668847688486884968850688516885268853688546885568856688576885868859688606886168862688636886468865688666886768868688696887068871688726887368874688756887668877688786887968880688816888268883688846888568886688876888868889688906889168892688936889468895688966889768898688996890068901689026890368904689056890668907689086890968910689116891268913689146891568916689176891868919689206892168922689236892468925689266892768928689296893068931689326893368934689356893668937689386893968940689416894268943689446894568946689476894868949689506895168952689536895468955689566895768958689596896068961689626896368964689656896668967689686896968970689716897268973689746897568976689776897868979689806898168982689836898468985689866898768988689896899068991689926899368994689956899668997689986899969000690016900269003690046900569006690076900869009690106901169012690136901469015690166901769018690196902069021690226902369024690256902669027690286902969030690316903269033690346903569036690376903869039690406904169042690436904469045690466904769048690496905069051690526905369054690556905669057690586905969060690616906269063690646906569066690676906869069690706907169072690736907469075690766907769078690796908069081690826908369084690856908669087690886908969090690916909269093690946909569096690976909869099691006910169102691036910469105691066910769108691096911069111691126911369114691156911669117691186911969120691216912269123691246912569126691276912869129691306913169132691336913469135691366913769138691396914069141691426914369144691456914669147691486914969150691516915269153691546915569156691576915869159691606916169162691636916469165691666916769168691696917069171691726917369174691756917669177691786917969180691816918269183691846918569186691876918869189691906919169192691936919469195691966919769198691996920069201692026920369204692056920669207692086920969210692116921269213692146921569216692176921869219692206922169222692236922469225692266922769228692296923069231692326923369234692356923669237692386923969240692416924269243692446924569246692476924869249692506925169252692536925469255692566925769258692596926069261692626926369264692656926669267692686926969270692716927269273692746927569276692776927869279692806928169282692836928469285692866928769288692896929069291692926929369294692956929669297692986929969300693016930269303693046930569306693076930869309693106931169312693136931469315693166931769318693196932069321693226932369324693256932669327693286932969330693316933269333693346933569336693376933869339693406934169342693436934469345693466934769348693496935069351693526935369354693556935669357693586935969360693616936269363693646936569366693676936869369693706937169372693736937469375693766937769378693796938069381693826938369384693856938669387693886938969390693916939269393693946939569396693976939869399694006940169402694036940469405694066940769408694096941069411694126941369414694156941669417694186941969420694216942269423694246942569426694276942869429694306943169432694336943469435694366943769438694396944069441694426944369444694456944669447694486944969450694516945269453694546945569456694576945869459694606946169462694636946469465694666946769468694696947069471694726947369474694756947669477694786947969480694816948269483694846948569486694876948869489694906949169492694936949469495694966949769498694996950069501695026950369504695056950669507695086950969510695116951269513695146951569516695176951869519695206952169522695236952469525695266952769528695296953069531695326953369534695356953669537695386953969540695416954269543695446954569546695476954869549695506955169552695536955469555695566955769558695596956069561695626956369564695656956669567695686956969570695716957269573695746957569576695776957869579695806958169582695836958469585695866958769588695896959069591695926959369594695956959669597695986959969600696016960269603696046960569606696076960869609696106961169612696136961469615696166961769618696196962069621696226962369624696256962669627696286962969630696316963269633696346963569636696376963869639696406964169642696436964469645696466964769648696496965069651696526965369654696556965669657696586965969660696616966269663696646966569666696676966869669696706967169672696736967469675696766967769678696796968069681696826968369684696856968669687696886968969690696916969269693696946969569696696976969869699697006970169702697036970469705697066970769708697096971069711697126971369714697156971669717697186971969720697216972269723697246972569726697276972869729697306973169732697336973469735697366973769738697396974069741697426974369744697456974669747697486974969750697516975269753697546975569756697576975869759697606976169762697636976469765697666976769768697696977069771697726977369774697756977669777697786977969780697816978269783697846978569786697876978869789697906979169792697936979469795697966979769798697996980069801698026980369804698056980669807698086980969810698116981269813698146981569816698176981869819698206982169822698236982469825698266982769828698296983069831698326983369834698356983669837698386983969840698416984269843698446984569846698476984869849698506985169852698536985469855698566985769858698596986069861698626986369864698656986669867698686986969870698716987269873698746987569876698776987869879698806988169882698836988469885698866988769888698896989069891698926989369894698956989669897698986989969900699016990269903699046990569906699076990869909699106991169912699136991469915699166991769918699196992069921699226992369924699256992669927699286992969930699316993269933699346993569936699376993869939699406994169942699436994469945699466994769948699496995069951699526995369954699556995669957699586995969960699616996269963699646996569966699676996869969699706997169972699736997469975699766997769978699796998069981699826998369984699856998669987699886998969990699916999269993699946999569996699976999869999700007000170002700037000470005700067000770008700097001070011700127001370014700157001670017700187001970020700217002270023700247002570026700277002870029700307003170032700337003470035700367003770038700397004070041700427004370044700457004670047700487004970050700517005270053700547005570056700577005870059700607006170062700637006470065700667006770068700697007070071700727007370074700757007670077700787007970080700817008270083700847008570086700877008870089700907009170092700937009470095700967009770098700997010070101701027010370104701057010670107701087010970110701117011270113701147011570116701177011870119701207012170122701237012470125701267012770128701297013070131701327013370134701357013670137701387013970140701417014270143701447014570146701477014870149701507015170152701537015470155701567015770158701597016070161701627016370164701657016670167701687016970170701717017270173701747017570176701777017870179701807018170182701837018470185701867018770188701897019070191701927019370194701957019670197701987019970200702017020270203702047020570206702077020870209702107021170212702137021470215702167021770218702197022070221702227022370224702257022670227702287022970230702317023270233702347023570236702377023870239702407024170242702437024470245702467024770248702497025070251702527025370254702557025670257702587025970260702617026270263702647026570266702677026870269702707027170272702737027470275702767027770278702797028070281702827028370284702857028670287702887028970290702917029270293702947029570296702977029870299703007030170302703037030470305703067030770308703097031070311703127031370314703157031670317703187031970320703217032270323703247032570326703277032870329703307033170332703337033470335703367033770338703397034070341703427034370344703457034670347703487034970350703517035270353703547035570356703577035870359703607036170362703637036470365703667036770368703697037070371703727037370374703757037670377703787037970380703817038270383703847038570386703877038870389703907039170392703937039470395703967039770398703997040070401704027040370404704057040670407704087040970410704117041270413704147041570416704177041870419704207042170422704237042470425704267042770428704297043070431704327043370434704357043670437704387043970440704417044270443704447044570446704477044870449704507045170452704537045470455704567045770458704597046070461704627046370464704657046670467704687046970470704717047270473704747047570476704777047870479704807048170482704837048470485704867048770488704897049070491704927049370494704957049670497704987049970500705017050270503705047050570506705077050870509705107051170512705137051470515705167051770518705197052070521705227052370524705257052670527705287052970530705317053270533705347053570536705377053870539705407054170542705437054470545705467054770548705497055070551705527055370554705557055670557705587055970560705617056270563705647056570566705677056870569705707057170572705737057470575705767057770578705797058070581705827058370584705857058670587705887058970590705917059270593705947059570596705977059870599706007060170602706037060470605706067060770608706097061070611706127061370614706157061670617706187061970620706217062270623706247062570626706277062870629706307063170632706337063470635706367063770638706397064070641706427064370644706457064670647706487064970650706517065270653706547065570656706577065870659706607066170662706637066470665706667066770668706697067070671706727067370674706757067670677706787067970680706817068270683706847068570686706877068870689706907069170692706937069470695706967069770698706997070070701707027070370704707057070670707707087070970710707117071270713707147071570716707177071870719707207072170722707237072470725707267072770728707297073070731707327073370734707357073670737707387073970740707417074270743707447074570746707477074870749707507075170752707537075470755707567075770758707597076070761707627076370764707657076670767707687076970770707717077270773707747077570776707777077870779707807078170782707837078470785707867078770788707897079070791707927079370794707957079670797707987079970800708017080270803708047080570806708077080870809708107081170812708137081470815708167081770818708197082070821708227082370824708257082670827708287082970830708317083270833708347083570836708377083870839708407084170842708437084470845708467084770848708497085070851708527085370854708557085670857708587085970860708617086270863708647086570866708677086870869708707087170872708737087470875708767087770878708797088070881708827088370884708857088670887708887088970890708917089270893708947089570896708977089870899709007090170902709037090470905709067090770908709097091070911709127091370914709157091670917709187091970920709217092270923709247092570926709277092870929709307093170932709337093470935709367093770938709397094070941709427094370944709457094670947709487094970950709517095270953709547095570956709577095870959709607096170962709637096470965709667096770968709697097070971709727097370974709757097670977709787097970980709817098270983709847098570986709877098870989709907099170992709937099470995709967099770998709997100071001710027100371004710057100671007710087100971010710117101271013710147101571016710177101871019710207102171022710237102471025710267102771028710297103071031710327103371034710357103671037710387103971040710417104271043710447104571046710477104871049710507105171052710537105471055710567105771058710597106071061710627106371064710657106671067710687106971070710717107271073710747107571076710777107871079710807108171082710837108471085710867108771088710897109071091710927109371094710957109671097710987109971100711017110271103711047110571106711077110871109711107111171112711137111471115711167111771118711197112071121711227112371124711257112671127711287112971130711317113271133711347113571136711377113871139711407114171142711437114471145711467114771148711497115071151711527115371154711557115671157711587115971160711617116271163711647116571166711677116871169711707117171172711737117471175711767117771178711797118071181711827118371184711857118671187711887118971190711917119271193711947119571196711977119871199712007120171202712037120471205712067120771208712097121071211712127121371214712157121671217712187121971220712217122271223712247122571226712277122871229712307123171232712337123471235712367123771238712397124071241712427124371244712457124671247712487124971250712517125271253712547125571256712577125871259712607126171262712637126471265712667126771268712697127071271712727127371274712757127671277712787127971280712817128271283712847128571286712877128871289712907129171292712937129471295712967129771298712997130071301713027130371304713057130671307713087130971310713117131271313713147131571316713177131871319713207132171322713237132471325713267132771328713297133071331713327133371334713357133671337713387133971340713417134271343713447134571346713477134871349713507135171352713537135471355713567135771358713597136071361713627136371364713657136671367713687136971370713717137271373713747137571376713777137871379713807138171382713837138471385713867138771388713897139071391713927139371394713957139671397713987139971400714017140271403714047140571406714077140871409714107141171412714137141471415714167141771418714197142071421714227142371424714257142671427714287142971430714317143271433714347143571436714377143871439714407144171442714437144471445714467144771448714497145071451714527145371454714557145671457714587145971460714617146271463714647146571466714677146871469714707147171472714737147471475714767147771478714797148071481714827148371484714857148671487714887148971490714917149271493714947149571496714977149871499715007150171502715037150471505715067150771508715097151071511715127151371514715157151671517715187151971520715217152271523715247152571526715277152871529715307153171532715337153471535715367153771538715397154071541715427154371544715457154671547715487154971550715517155271553715547155571556715577155871559715607156171562715637156471565715667156771568715697157071571715727157371574715757157671577715787157971580715817158271583715847158571586715877158871589715907159171592715937159471595715967159771598715997160071601716027160371604716057160671607716087160971610716117161271613716147161571616716177161871619716207162171622716237162471625716267162771628716297163071631716327163371634716357163671637716387163971640716417164271643716447164571646716477164871649716507165171652716537165471655716567165771658716597166071661716627166371664716657166671667716687166971670716717167271673716747167571676716777167871679716807168171682716837168471685716867168771688716897169071691716927169371694716957169671697716987169971700717017170271703717047170571706717077170871709717107171171712717137171471715717167171771718717197172071721717227172371724717257172671727717287172971730717317173271733717347173571736717377173871739717407174171742717437174471745717467174771748717497175071751717527175371754717557175671757717587175971760717617176271763717647176571766717677176871769717707177171772717737177471775717767177771778717797178071781717827178371784717857178671787717887178971790717917179271793717947179571796717977179871799718007180171802718037180471805718067180771808718097181071811718127181371814718157181671817718187181971820718217182271823718247182571826718277182871829718307183171832718337183471835718367183771838718397184071841718427184371844718457184671847718487184971850718517185271853718547185571856718577185871859718607186171862718637186471865718667186771868718697187071871718727187371874718757187671877718787187971880718817188271883718847188571886718877188871889718907189171892718937189471895718967189771898718997190071901719027190371904719057190671907719087190971910719117191271913719147191571916719177191871919719207192171922719237192471925719267192771928719297193071931719327193371934719357193671937719387193971940719417194271943719447194571946719477194871949719507195171952719537195471955719567195771958719597196071961719627196371964719657196671967719687196971970719717197271973719747197571976719777197871979719807198171982719837198471985719867198771988719897199071991719927199371994719957199671997719987199972000720017200272003720047200572006720077200872009720107201172012720137201472015720167201772018720197202072021720227202372024720257202672027720287202972030720317203272033720347203572036720377203872039720407204172042720437204472045720467204772048720497205072051720527205372054720557205672057720587205972060720617206272063720647206572066720677206872069720707207172072720737207472075720767207772078720797208072081720827208372084720857208672087720887208972090720917209272093720947209572096720977209872099721007210172102721037210472105721067210772108721097211072111721127211372114721157211672117721187211972120721217212272123721247212572126721277212872129721307213172132721337213472135721367213772138721397214072141721427214372144721457214672147721487214972150721517215272153721547215572156721577215872159721607216172162721637216472165721667216772168721697217072171721727217372174721757217672177721787217972180721817218272183721847218572186721877218872189721907219172192721937219472195721967219772198721997220072201722027220372204722057220672207722087220972210722117221272213722147221572216722177221872219722207222172222722237222472225722267222772228722297223072231722327223372234722357223672237722387223972240722417224272243722447224572246722477224872249722507225172252722537225472255722567225772258722597226072261722627226372264722657226672267722687226972270722717227272273722747227572276722777227872279722807228172282722837228472285722867228772288722897229072291722927229372294722957229672297722987229972300723017230272303723047230572306723077230872309723107231172312723137231472315723167231772318723197232072321723227232372324723257232672327723287232972330723317233272333723347233572336723377233872339723407234172342723437234472345723467234772348723497235072351723527235372354723557235672357723587235972360723617236272363723647236572366723677236872369723707237172372723737237472375723767237772378723797238072381723827238372384723857238672387723887238972390723917239272393723947239572396723977239872399724007240172402724037240472405724067240772408724097241072411724127241372414724157241672417724187241972420724217242272423724247242572426724277242872429724307243172432724337243472435724367243772438724397244072441724427244372444724457244672447724487244972450724517245272453724547245572456724577245872459724607246172462724637246472465724667246772468724697247072471724727247372474724757247672477724787247972480724817248272483724847248572486724877248872489724907249172492724937249472495724967249772498724997250072501725027250372504725057250672507725087250972510725117251272513725147251572516725177251872519725207252172522725237252472525725267252772528725297253072531725327253372534725357253672537725387253972540725417254272543725447254572546725477254872549725507255172552725537255472555725567255772558725597256072561725627256372564725657256672567725687256972570725717257272573725747257572576725777257872579725807258172582725837258472585725867258772588725897259072591725927259372594725957259672597725987259972600726017260272603726047260572606726077260872609726107261172612726137261472615726167261772618726197262072621726227262372624726257262672627726287262972630726317263272633726347263572636726377263872639726407264172642726437264472645726467264772648726497265072651726527265372654726557265672657726587265972660726617266272663726647266572666726677266872669726707267172672726737267472675726767267772678726797268072681726827268372684726857268672687726887268972690726917269272693726947269572696726977269872699727007270172702727037270472705727067270772708727097271072711727127271372714727157271672717727187271972720727217272272723727247272572726727277272872729727307273172732727337273472735727367273772738727397274072741727427274372744727457274672747727487274972750727517275272753727547275572756727577275872759727607276172762727637276472765727667276772768727697277072771727727277372774727757277672777727787277972780727817278272783727847278572786727877278872789727907279172792727937279472795727967279772798727997280072801728027280372804728057280672807728087280972810728117281272813728147281572816728177281872819728207282172822728237282472825728267282772828728297283072831728327283372834728357283672837728387283972840728417284272843728447284572846728477284872849728507285172852728537285472855728567285772858728597286072861728627286372864728657286672867728687286972870728717287272873728747287572876728777287872879728807288172882728837288472885728867288772888728897289072891728927289372894728957289672897728987289972900729017290272903729047290572906729077290872909729107291172912729137291472915729167291772918729197292072921729227292372924729257292672927729287292972930729317293272933729347293572936729377293872939729407294172942729437294472945729467294772948729497295072951729527295372954729557295672957729587295972960729617296272963729647296572966729677296872969729707297172972729737297472975729767297772978729797298072981729827298372984729857298672987729887298972990729917299272993729947299572996729977299872999730007300173002730037300473005730067300773008730097301073011730127301373014730157301673017730187301973020730217302273023730247302573026730277302873029730307303173032730337303473035730367303773038730397304073041730427304373044730457304673047730487304973050730517305273053730547305573056730577305873059730607306173062730637306473065730667306773068730697307073071730727307373074730757307673077730787307973080730817308273083730847308573086730877308873089730907309173092730937309473095730967309773098730997310073101731027310373104731057310673107731087310973110731117311273113731147311573116731177311873119731207312173122731237312473125731267312773128731297313073131731327313373134731357313673137731387313973140731417314273143731447314573146731477314873149731507315173152731537315473155731567315773158731597316073161731627316373164731657316673167731687316973170731717317273173731747317573176731777317873179731807318173182731837318473185731867318773188731897319073191731927319373194731957319673197731987319973200732017320273203732047320573206732077320873209732107321173212732137321473215732167321773218732197322073221732227322373224732257322673227732287322973230732317323273233732347323573236732377323873239732407324173242732437324473245732467324773248732497325073251732527325373254732557325673257732587325973260732617326273263732647326573266732677326873269732707327173272732737327473275732767327773278732797328073281732827328373284732857328673287732887328973290732917329273293732947329573296732977329873299733007330173302733037330473305733067330773308733097331073311733127331373314733157331673317733187331973320733217332273323733247332573326733277332873329733307333173332733337333473335733367333773338733397334073341733427334373344733457334673347733487334973350733517335273353733547335573356733577335873359733607336173362733637336473365733667336773368733697337073371733727337373374733757337673377733787337973380733817338273383733847338573386733877338873389733907339173392733937339473395733967339773398733997340073401734027340373404734057340673407734087340973410734117341273413734147341573416734177341873419734207342173422734237342473425734267342773428734297343073431734327343373434734357343673437734387343973440734417344273443734447344573446734477344873449734507345173452734537345473455734567345773458734597346073461734627346373464734657346673467734687346973470734717347273473734747347573476734777347873479734807348173482734837348473485734867348773488734897349073491734927349373494734957349673497734987349973500735017350273503735047350573506735077350873509735107351173512735137351473515735167351773518735197352073521735227352373524735257352673527735287352973530735317353273533735347353573536735377353873539735407354173542735437354473545735467354773548735497355073551735527355373554735557355673557735587355973560735617356273563735647356573566735677356873569735707357173572735737357473575735767357773578735797358073581735827358373584735857358673587735887358973590735917359273593735947359573596735977359873599736007360173602736037360473605736067360773608736097361073611736127361373614736157361673617736187361973620736217362273623736247362573626736277362873629736307363173632736337363473635736367363773638736397364073641736427364373644736457364673647736487364973650736517365273653736547365573656736577365873659736607366173662736637366473665736667366773668736697367073671736727367373674736757367673677736787367973680736817368273683736847368573686736877368873689736907369173692736937369473695736967369773698736997370073701737027370373704737057370673707737087370973710737117371273713737147371573716737177371873719737207372173722737237372473725737267372773728737297373073731737327373373734737357373673737737387373973740737417374273743737447374573746737477374873749737507375173752737537375473755737567375773758737597376073761737627376373764737657376673767737687376973770737717377273773737747377573776737777377873779737807378173782737837378473785737867378773788737897379073791737927379373794737957379673797737987379973800738017380273803738047380573806738077380873809738107381173812738137381473815738167381773818738197382073821738227382373824738257382673827738287382973830738317383273833738347383573836738377383873839738407384173842738437384473845738467384773848738497385073851738527385373854738557385673857738587385973860738617386273863738647386573866738677386873869738707387173872738737387473875738767387773878738797388073881738827388373884738857388673887738887388973890738917389273893738947389573896738977389873899739007390173902739037390473905739067390773908739097391073911739127391373914739157391673917739187391973920739217392273923739247392573926739277392873929739307393173932739337393473935739367393773938739397394073941739427394373944739457394673947739487394973950739517395273953739547395573956739577395873959739607396173962739637396473965739667396773968739697397073971739727397373974739757397673977739787397973980739817398273983739847398573986739877398873989739907399173992739937399473995739967399773998739997400074001740027400374004740057400674007740087400974010740117401274013740147401574016740177401874019740207402174022740237402474025740267402774028740297403074031740327403374034740357403674037740387403974040740417404274043740447404574046740477404874049740507405174052740537405474055740567405774058740597406074061740627406374064740657406674067740687406974070740717407274073740747407574076740777407874079740807408174082740837408474085740867408774088740897409074091740927409374094740957409674097740987409974100741017410274103741047410574106741077410874109741107411174112741137411474115741167411774118741197412074121741227412374124741257412674127741287412974130741317413274133741347413574136741377413874139741407414174142741437414474145741467414774148741497415074151741527415374154741557415674157741587415974160741617416274163741647416574166741677416874169741707417174172741737417474175741767417774178741797418074181741827418374184741857418674187741887418974190741917419274193741947419574196741977419874199742007420174202742037420474205742067420774208742097421074211742127421374214742157421674217742187421974220742217422274223742247422574226742277422874229742307423174232742337423474235742367423774238742397424074241742427424374244742457424674247742487424974250742517425274253742547425574256742577425874259742607426174262742637426474265742667426774268742697427074271742727427374274742757427674277742787427974280742817428274283742847428574286742877428874289742907429174292742937429474295742967429774298742997430074301743027430374304743057430674307743087430974310743117431274313743147431574316743177431874319743207432174322743237432474325743267432774328743297433074331743327433374334743357433674337743387433974340743417434274343743447434574346743477434874349743507435174352743537435474355743567435774358743597436074361743627436374364743657436674367743687436974370743717437274373743747437574376743777437874379743807438174382743837438474385743867438774388743897439074391743927439374394743957439674397743987439974400744017440274403744047440574406744077440874409744107441174412744137441474415744167441774418744197442074421744227442374424744257442674427744287442974430744317443274433744347443574436744377443874439744407444174442744437444474445744467444774448744497445074451744527445374454744557445674457744587445974460744617446274463744647446574466744677446874469744707447174472744737447474475744767447774478744797448074481744827448374484744857448674487744887448974490744917449274493744947449574496744977449874499745007450174502745037450474505745067450774508745097451074511745127451374514745157451674517745187451974520745217452274523745247452574526745277452874529745307453174532745337453474535745367453774538745397454074541745427454374544745457454674547745487454974550745517455274553745547455574556745577455874559745607456174562745637456474565745667456774568745697457074571745727457374574745757457674577745787457974580745817458274583745847458574586745877458874589745907459174592745937459474595745967459774598745997460074601746027460374604746057460674607746087460974610746117461274613746147461574616746177461874619746207462174622746237462474625746267462774628746297463074631746327463374634746357463674637746387463974640746417464274643746447464574646746477464874649746507465174652746537465474655746567465774658746597466074661746627466374664746657466674667746687466974670746717467274673746747467574676746777467874679746807468174682746837468474685746867468774688746897469074691746927469374694746957469674697746987469974700747017470274703747047470574706747077470874709747107471174712747137471474715747167471774718747197472074721747227472374724747257472674727747287472974730747317473274733747347473574736747377473874739747407474174742747437474474745747467474774748747497475074751747527475374754747557475674757747587475974760747617476274763747647476574766747677476874769747707477174772747737477474775747767477774778747797478074781747827478374784747857478674787747887478974790747917479274793747947479574796747977479874799748007480174802748037480474805748067480774808748097481074811748127481374814748157481674817748187481974820748217482274823748247482574826748277482874829748307483174832748337483474835748367483774838748397484074841748427484374844748457484674847748487484974850748517485274853748547485574856748577485874859748607486174862748637486474865748667486774868748697487074871748727487374874748757487674877748787487974880748817488274883748847488574886748877488874889748907489174892748937489474895748967489774898748997490074901749027490374904749057490674907749087490974910749117491274913749147491574916749177491874919749207492174922749237492474925749267492774928749297493074931749327493374934749357493674937749387493974940749417494274943749447494574946749477494874949749507495174952749537495474955749567495774958749597496074961749627496374964749657496674967749687496974970749717497274973749747497574976749777497874979749807498174982749837498474985749867498774988749897499074991749927499374994749957499674997749987499975000750017500275003750047500575006750077500875009750107501175012750137501475015750167501775018750197502075021750227502375024750257502675027750287502975030750317503275033750347503575036750377503875039750407504175042750437504475045750467504775048750497505075051750527505375054750557505675057750587505975060750617506275063750647506575066750677506875069750707507175072750737507475075750767507775078750797508075081750827508375084750857508675087750887508975090750917509275093750947509575096750977509875099751007510175102751037510475105751067510775108751097511075111751127511375114751157511675117751187511975120751217512275123751247512575126751277512875129751307513175132751337513475135751367513775138751397514075141751427514375144751457514675147751487514975150751517515275153751547515575156751577515875159751607516175162751637516475165751667516775168751697517075171751727517375174751757517675177751787517975180751817518275183751847518575186751877518875189751907519175192751937519475195751967519775198751997520075201752027520375204752057520675207752087520975210752117521275213752147521575216752177521875219752207522175222752237522475225752267522775228752297523075231752327523375234752357523675237752387523975240752417524275243752447524575246752477524875249752507525175252752537525475255752567525775258752597526075261752627526375264752657526675267752687526975270752717527275273752747527575276752777527875279752807528175282752837528475285752867528775288752897529075291752927529375294752957529675297752987529975300753017530275303753047530575306753077530875309753107531175312753137531475315753167531775318753197532075321753227532375324753257532675327753287532975330753317533275333753347533575336753377533875339753407534175342753437534475345753467534775348753497535075351753527535375354753557535675357753587535975360753617536275363753647536575366753677536875369753707537175372753737537475375753767537775378753797538075381753827538375384753857538675387753887538975390753917539275393753947539575396753977539875399754007540175402754037540475405754067540775408754097541075411754127541375414754157541675417754187541975420754217542275423754247542575426754277542875429754307543175432754337543475435754367543775438754397544075441754427544375444754457544675447754487544975450754517545275453754547545575456754577545875459754607546175462754637546475465754667546775468754697547075471754727547375474754757547675477754787547975480754817548275483754847548575486754877548875489754907549175492754937549475495754967549775498754997550075501755027550375504755057550675507755087550975510755117551275513755147551575516755177551875519755207552175522755237552475525755267552775528755297553075531755327553375534755357553675537755387553975540755417554275543755447554575546755477554875549755507555175552755537555475555755567555775558755597556075561755627556375564755657556675567755687556975570755717557275573755747557575576755777557875579755807558175582755837558475585755867558775588755897559075591755927559375594755957559675597755987559975600756017560275603756047560575606756077560875609756107561175612756137561475615756167561775618756197562075621756227562375624756257562675627756287562975630756317563275633756347563575636756377563875639756407564175642756437564475645756467564775648756497565075651756527565375654756557565675657756587565975660756617566275663756647566575666756677566875669756707567175672756737567475675756767567775678756797568075681756827568375684756857568675687756887568975690756917569275693756947569575696756977569875699757007570175702757037570475705757067570775708757097571075711757127571375714757157571675717757187571975720757217572275723757247572575726757277572875729757307573175732757337573475735757367573775738757397574075741757427574375744757457574675747757487574975750757517575275753757547575575756757577575875759757607576175762757637576475765757667576775768757697577075771757727577375774757757577675777757787577975780757817578275783757847578575786757877578875789757907579175792757937579475795757967579775798757997580075801758027580375804758057580675807758087580975810758117581275813758147581575816758177581875819758207582175822758237582475825758267582775828758297583075831758327583375834758357583675837758387583975840758417584275843758447584575846758477584875849758507585175852758537585475855758567585775858758597586075861758627586375864758657586675867758687586975870758717587275873758747587575876758777587875879758807588175882758837588475885758867588775888758897589075891758927589375894758957589675897758987589975900759017590275903759047590575906759077590875909759107591175912759137591475915759167591775918759197592075921759227592375924759257592675927759287592975930759317593275933759347593575936759377593875939759407594175942759437594475945759467594775948759497595075951759527595375954759557595675957759587595975960759617596275963759647596575966759677596875969759707597175972759737597475975759767597775978759797598075981759827598375984759857598675987759887598975990759917599275993759947599575996759977599875999760007600176002760037600476005760067600776008760097601076011760127601376014760157601676017760187601976020760217602276023760247602576026760277602876029760307603176032760337603476035760367603776038760397604076041760427604376044760457604676047760487604976050760517605276053760547605576056760577605876059760607606176062760637606476065760667606776068760697607076071760727607376074760757607676077760787607976080760817608276083760847608576086760877608876089760907609176092760937609476095760967609776098760997610076101761027610376104761057610676107761087610976110761117611276113761147611576116761177611876119761207612176122761237612476125761267612776128761297613076131761327613376134761357613676137761387613976140761417614276143761447614576146761477614876149761507615176152761537615476155761567615776158761597616076161761627616376164761657616676167761687616976170761717617276173761747617576176761777617876179761807618176182761837618476185761867618776188761897619076191761927619376194761957619676197761987619976200762017620276203762047620576206762077620876209762107621176212762137621476215762167621776218762197622076221762227622376224762257622676227762287622976230762317623276233762347623576236762377623876239762407624176242762437624476245762467624776248762497625076251762527625376254762557625676257762587625976260762617626276263762647626576266762677626876269762707627176272762737627476275762767627776278762797628076281762827628376284762857628676287762887628976290762917629276293762947629576296762977629876299763007630176302763037630476305763067630776308763097631076311763127631376314763157631676317763187631976320763217632276323763247632576326763277632876329763307633176332763337633476335763367633776338763397634076341
  1. /******/ (function(modules) { // webpackBootstrap
  2. /******/ // The module cache
  3. /******/ var installedModules = {};
  4. /******/
  5. /******/ // The require function
  6. /******/ function __webpack_require__(moduleId) {
  7. /******/
  8. /******/ // Check if module is in cache
  9. /******/ if(installedModules[moduleId]) {
  10. /******/ return installedModules[moduleId].exports;
  11. /******/ }
  12. /******/ // Create a new module (and put it into the cache)
  13. /******/ var module = installedModules[moduleId] = {
  14. /******/ i: moduleId,
  15. /******/ l: false,
  16. /******/ exports: {}
  17. /******/ };
  18. /******/
  19. /******/ // Execute the module function
  20. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  21. /******/
  22. /******/ // Flag the module as loaded
  23. /******/ module.l = true;
  24. /******/
  25. /******/ // Return the exports of the module
  26. /******/ return module.exports;
  27. /******/ }
  28. /******/
  29. /******/
  30. /******/ // expose the modules object (__webpack_modules__)
  31. /******/ __webpack_require__.m = modules;
  32. /******/
  33. /******/ // expose the module cache
  34. /******/ __webpack_require__.c = installedModules;
  35. /******/
  36. /******/ // define getter function for harmony exports
  37. /******/ __webpack_require__.d = function(exports, name, getter) {
  38. /******/ if(!__webpack_require__.o(exports, name)) {
  39. /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
  40. /******/ }
  41. /******/ };
  42. /******/
  43. /******/ // define __esModule on exports
  44. /******/ __webpack_require__.r = function(exports) {
  45. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  46. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  47. /******/ }
  48. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  49. /******/ };
  50. /******/
  51. /******/ // create a fake namespace object
  52. /******/ // mode & 1: value is a module id, require it
  53. /******/ // mode & 2: merge all properties of value into the ns
  54. /******/ // mode & 4: return value when already ns object
  55. /******/ // mode & 8|1: behave like require
  56. /******/ __webpack_require__.t = function(value, mode) {
  57. /******/ if(mode & 1) value = __webpack_require__(value);
  58. /******/ if(mode & 8) return value;
  59. /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  60. /******/ var ns = Object.create(null);
  61. /******/ __webpack_require__.r(ns);
  62. /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  63. /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  64. /******/ return ns;
  65. /******/ };
  66. /******/
  67. /******/ // getDefaultExport function for compatibility with non-harmony modules
  68. /******/ __webpack_require__.n = function(module) {
  69. /******/ var getter = module && module.__esModule ?
  70. /******/ function getDefault() { return module['default']; } :
  71. /******/ function getModuleExports() { return module; };
  72. /******/ __webpack_require__.d(getter, 'a', getter);
  73. /******/ return getter;
  74. /******/ };
  75. /******/
  76. /******/ // Object.prototype.hasOwnProperty.call
  77. /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  78. /******/
  79. /******/ // __webpack_public_path__
  80. /******/ __webpack_require__.p = "";
  81. /******/
  82. /******/
  83. /******/ // Load entry module and return exports
  84. /******/ return __webpack_require__(__webpack_require__.s = "./src/converse.js");
  85. /******/ })
  86. /************************************************************************/
  87. /******/ ({
  88. /***/ "./node_modules/backbone.nativeview/backbone.nativeview.js":
  89. /*!*****************************************************************!*\
  90. !*** ./node_modules/backbone.nativeview/backbone.nativeview.js ***!
  91. \*****************************************************************/
  92. /*! no static exports found */
  93. /***/ (function(module, exports, __webpack_require__) {
  94. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Backbone.NativeView.js 0.3.3
  95. // ---------------
  96. // (c) 2015 Adam Krebs, Jimmy Yuen Ho Wong
  97. // Backbone.NativeView may be freely distributed under the MIT license.
  98. // For all details and documentation:
  99. // https://github.com/akre54/Backbone.NativeView
  100. (function (factory) {
  101. if (true) { !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! backbone */ "./node_modules/backbone/backbone.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  102. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  103. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  104. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  105. } else {}
  106. }(function (Backbone) {
  107. // Cached regex to match an opening '<' of an HTML tag, possibly left-padded
  108. // with whitespace.
  109. var paddedLt = /^\s*</;
  110. // Caches a local reference to `Element.prototype` for faster access.
  111. var ElementProto = (typeof Element !== 'undefined' && Element.prototype) || {};
  112. // Cross-browser event listener shims
  113. var elementAddEventListener = ElementProto.addEventListener || function(eventName, listener) {
  114. return this.attachEvent('on' + eventName, listener);
  115. }
  116. var elementRemoveEventListener = ElementProto.removeEventListener || function(eventName, listener) {
  117. return this.detachEvent('on' + eventName, listener);
  118. }
  119. var indexOf = function(array, item) {
  120. for (var i = 0, len = array.length; i < len; i++) if (array[i] === item) return i;
  121. return -1;
  122. }
  123. // Find the right `Element#matches` for IE>=9 and modern browsers.
  124. var matchesSelector = ElementProto.matches ||
  125. ElementProto.webkitMatchesSelector ||
  126. ElementProto.mozMatchesSelector ||
  127. ElementProto.msMatchesSelector ||
  128. ElementProto.oMatchesSelector ||
  129. // Make our own `Element#matches` for IE8
  130. function(selector) {
  131. // Use querySelectorAll to find all elements matching the selector,
  132. // then check if the given element is included in that list.
  133. // Executing the query on the parentNode reduces the resulting nodeList,
  134. // (document doesn't have a parentNode).
  135. var nodeList = (this.parentNode || document).querySelectorAll(selector) || [];
  136. return ~indexOf(nodeList, this);
  137. };
  138. // Cache Backbone.View for later access in constructor
  139. var BBView = Backbone.View;
  140. // To extend an existing view to use native methods, extend the View prototype
  141. // with the mixin: _.extend(MyView.prototype, Backbone.NativeViewMixin);
  142. Backbone.NativeViewMixin = {
  143. _domEvents: null,
  144. constructor: function() {
  145. this._domEvents = [];
  146. return BBView.apply(this, arguments);
  147. },
  148. $: function(selector) {
  149. return this.el.querySelectorAll(selector);
  150. },
  151. _removeElement: function() {
  152. this.undelegateEvents();
  153. if (this.el.parentNode) this.el.parentNode.removeChild(this.el);
  154. },
  155. // Apply the `element` to the view. `element` can be a CSS selector,
  156. // a string of HTML, or an Element node.
  157. _setElement: function(element) {
  158. if (typeof element == 'string') {
  159. if (paddedLt.test(element)) {
  160. var el = document.createElement('div');
  161. el.innerHTML = element;
  162. this.el = el.firstChild;
  163. } else {
  164. this.el = document.querySelector(element);
  165. }
  166. } else {
  167. this.el = element;
  168. }
  169. },
  170. // Set a hash of attributes to the view's `el`. We use the "prop" version
  171. // if available, falling back to `setAttribute` for the catch-all.
  172. _setAttributes: function(attrs) {
  173. for (var attr in attrs) {
  174. attr in this.el ? this.el[attr] = attrs[attr] : this.el.setAttribute(attr, attrs[attr]);
  175. }
  176. },
  177. // Make a event delegation handler for the given `eventName` and `selector`
  178. // and attach it to `this.el`.
  179. // If selector is empty, the listener will be bound to `this.el`. If not, a
  180. // new handler that will recursively traverse up the event target's DOM
  181. // hierarchy looking for a node that matches the selector. If one is found,
  182. // the event's `delegateTarget` property is set to it and the return the
  183. // result of calling bound `listener` with the parameters given to the
  184. // handler.
  185. delegate: function(eventName, selector, listener) {
  186. if (typeof selector === 'function') {
  187. listener = selector;
  188. selector = null;
  189. }
  190. var root = this.el;
  191. var handler = selector ? function (e) {
  192. var node = e.target || e.srcElement;
  193. for (; node && node != root; node = node.parentNode) {
  194. if (matchesSelector.call(node, selector)) {
  195. e.delegateTarget = node;
  196. listener(e);
  197. }
  198. }
  199. } : listener;
  200. elementAddEventListener.call(this.el, eventName, handler, false);
  201. this._domEvents.push({eventName: eventName, handler: handler, listener: listener, selector: selector});
  202. return handler;
  203. },
  204. // Remove a single delegated event. Either `eventName` or `selector` must
  205. // be included, `selector` and `listener` are optional.
  206. undelegate: function(eventName, selector, listener) {
  207. if (typeof selector === 'function') {
  208. listener = selector;
  209. selector = null;
  210. }
  211. if (this.el) {
  212. var handlers = this._domEvents.slice();
  213. for (var i = 0, len = handlers.length; i < len; i++) {
  214. var item = handlers[i];
  215. var match = item.eventName === eventName &&
  216. (listener ? item.listener === listener : true) &&
  217. (selector ? item.selector === selector : true);
  218. if (!match) continue;
  219. elementRemoveEventListener.call(this.el, item.eventName, item.handler, false);
  220. this._domEvents.splice(indexOf(handlers, item), 1);
  221. }
  222. }
  223. return this;
  224. },
  225. // Remove all events created with `delegate` from `el`
  226. undelegateEvents: function() {
  227. if (this.el) {
  228. for (var i = 0, len = this._domEvents.length; i < len; i++) {
  229. var item = this._domEvents[i];
  230. elementRemoveEventListener.call(this.el, item.eventName, item.handler, false);
  231. };
  232. this._domEvents.length = 0;
  233. }
  234. return this;
  235. }
  236. };
  237. Backbone.NativeView = Backbone.View.extend(Backbone.NativeViewMixin);
  238. return Backbone.NativeView;
  239. }));
  240. /***/ }),
  241. /***/ "./node_modules/backbone.overview/backbone.orderedlistview.js":
  242. /*!********************************************************************!*\
  243. !*** ./node_modules/backbone.overview/backbone.orderedlistview.js ***!
  244. \********************************************************************/
  245. /*! no static exports found */
  246. /***/ (function(module, exports, __webpack_require__) {
  247. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*** IMPORTS FROM imports-loader ***/
  248. var backbone = (backbone || {});
  249. backbone.nativeview = __webpack_require__(/*! backbone.nativeview */ "./node_modules/backbone.nativeview/backbone.nativeview.js");
  250. /*!
  251. * Backbone.OrderedListView
  252. *
  253. * Copyright (c) 2017, JC Brand <jc@opkode.com>
  254. * Licensed under the Mozilla Public License (MPL)
  255. */
  256. (function (root, factory) {
  257. if (true) {
  258. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! underscore */ "./src/underscore-shim.js"), __webpack_require__(/*! backbone */ "./node_modules/backbone/backbone.js"), __webpack_require__(/*! backbone.overview */ "backbone.overview")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  259. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  260. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  261. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  262. } else {}
  263. }(this, function (_, Backbone) {
  264. "use strict";
  265. Backbone.OrderedListView = Backbone.Overview.extend({
  266. /* An OrderedListView is a special type of Overview which adds some
  267. * methods and conventions for rendering an ordered list of elements.
  268. */
  269. // The `listItems` attribute denotes the path (from this View) to the
  270. // list of items.
  271. listItems: 'model',
  272. // The `sortEvent` attribute specifies the event which should cause the
  273. // ordered list to be sorted.
  274. sortEvent: 'change',
  275. // The `listSelector` is the selector used to query for the DOM list
  276. // element which contains the ordered items.
  277. listSelector: '.ordered-items',
  278. // The `itemView` is constructor which should be called to create a
  279. // View for a new item.
  280. ItemView: undefined,
  281. // The `subviewIndex` is the attribute of the list element model which
  282. // acts as the index of the subview in the overview.
  283. // An overview is a "Collection" of views, and they can be retrieved
  284. // via an index. By default this is the 'id' attribute, but it could be
  285. // set to something else.
  286. subviewIndex: 'id',
  287. initialize () {
  288. this.sortEventually = _.debounce(
  289. this.sortAndPositionAllItems.bind(this), 500);
  290. this.items = _.get(this, this.listItems);
  291. this.items.on('add', this.sortAndPositionAllItems, this);
  292. this.items.on('remove', this.removeView, this);
  293. if (!_.isNil(this.sortEvent)) {
  294. this.items.on(this.sortEvent, this.sortEventually, this);
  295. }
  296. },
  297. createItemView (item) {
  298. let item_view = this.get(item.get(this.subviewIndex));
  299. if (!item_view) {
  300. item_view = new this.ItemView({model: item});
  301. this.add(item.get(this.subviewIndex), item_view);
  302. } else {
  303. item_view.model = item;
  304. item_view.initialize();
  305. }
  306. item_view.render();
  307. return item_view;
  308. },
  309. removeView (item) {
  310. this.remove(item.get(this.subviewIndex));
  311. },
  312. sortAndPositionAllItems () {
  313. if (!this.items.length) {
  314. return;
  315. }
  316. this.items.sort();
  317. const list_el = this.el.querySelector(this.listSelector);
  318. const div = document.createElement('div');
  319. list_el.parentNode.replaceChild(div, list_el);
  320. this.items.each((item) => {
  321. let view = this.get(item.get(this.subviewIndex));
  322. if (_.isUndefined(view)) {
  323. view = this.createItemView(item)
  324. }
  325. list_el.insertAdjacentElement('beforeend', view.el);
  326. });
  327. div.parentNode.replaceChild(list_el, div);
  328. }
  329. });
  330. return Backbone.OrderedListView;
  331. }));
  332. /***/ }),
  333. /***/ "./node_modules/backbone.vdomview/backbone.vdomview.js":
  334. /*!*************************************************************!*\
  335. !*** ./node_modules/backbone.vdomview/backbone.vdomview.js ***!
  336. \*************************************************************/
  337. /*! no static exports found */
  338. /***/ (function(module, exports, __webpack_require__) {
  339. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*** IMPORTS FROM imports-loader ***/
  340. var backbone = (backbone || {});
  341. backbone.nativeview = __webpack_require__(/*! backbone.nativeview */ "./node_modules/backbone.nativeview/backbone.nativeview.js");
  342. /*!
  343. * Backbone.VDOMView
  344. *
  345. * MIT Licensed. Copyright (c) 2017, JC Brand <jc@opkode.com>
  346. */
  347. (function (root, factory) {
  348. if (true) {
  349. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [
  350. __webpack_require__(/*! snabbdom */ "./node_modules/snabbdom/dist/snabbdom.js"),
  351. __webpack_require__(/*! snabbdom-attributes */ "./node_modules/snabbdom/dist/snabbdom-attributes.js"),
  352. __webpack_require__(/*! snabbdom-class */ "./node_modules/snabbdom/dist/snabbdom-class.js"),
  353. __webpack_require__(/*! snabbdom-dataset */ "./node_modules/snabbdom/dist/snabbdom-dataset.js"),
  354. __webpack_require__(/*! snabbdom-props */ "./node_modules/snabbdom/dist/snabbdom-props.js"),
  355. __webpack_require__(/*! snabbdom-style */ "./node_modules/snabbdom/dist/snabbdom-style.js"),
  356. __webpack_require__(/*! tovnode */ "./node_modules/snabbdom/dist/tovnode.js"),
  357. __webpack_require__(/*! underscore */ "./src/underscore-shim.js"),
  358. __webpack_require__(/*! backbone */ "./node_modules/backbone/backbone.js")
  359. ], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  360. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  361. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  362. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  363. } else {}
  364. }(this, function (
  365. snabbdom,
  366. snabbdom_attributes,
  367. snabbdom_class,
  368. snabbdom_dataset,
  369. snabbdom_props,
  370. snabbdom_style,
  371. tovnode,
  372. _,
  373. Backbone) {
  374. "use strict";
  375. let domParser = new DOMParser();
  376. const patch = snabbdom.init([
  377. snabbdom_attributes.default,
  378. snabbdom_class.default,
  379. snabbdom_dataset.default,
  380. snabbdom_props.default,
  381. snabbdom_style.default
  382. ]);
  383. const View = _.isUndefined(Backbone.NativeView) ? Backbone.View : Backbone.NativeView;
  384. function parseHTMLToDOM (html_str) {
  385. /* Parses a string with HTML and returns a DOM element.
  386. *
  387. * Forked from vdom_parser:
  388. * https://github.com/bitinn/vdom-parser
  389. */
  390. if (typeof html_str !== 'string') {
  391. throw new Error('Invalid parameter type in parseHTMLToDOM');
  392. }
  393. if ( !('DOMParser' in window) ) {
  394. throw new Error(
  395. 'DOMParser is not available, '+
  396. 'so parsing string to DOM node is not possible.');
  397. }
  398. if (!html_str) {
  399. return document.createTextNode('');
  400. }
  401. domParser = domParser || new DOMParser();
  402. const doc = domParser.parseFromString(html_str, 'text/html');
  403. // most tags default to body
  404. if (doc.body.firstChild) {
  405. return doc.getElementsByTagName('body')[0].firstChild;
  406. // some tags, like script and style, default to head
  407. } else if (doc.head.firstChild && (doc.head.firstChild.tagName !== 'TITLE' || doc.title)) {
  408. return doc.head.firstChild;
  409. // special case for html comment, cdata, doctype
  410. } else if (doc.firstChild && doc.firstChild.tagName !== 'HTML') {
  411. return doc.firstChild;
  412. // other element, such as whitespace, or html/body/head tag, fallback to empty text node
  413. } else {
  414. return document.createTextNode('');
  415. }
  416. }
  417. Backbone.VDOMView = View.extend({
  418. updateEventListeners (old_vnode, new_vnode) {
  419. this.setElement(new_vnode.elm);
  420. },
  421. render () {
  422. if (_.isFunction(this.beforeRender)) {
  423. this.beforeRender();
  424. }
  425. const new_vnode = tovnode.toVNode(parseHTMLToDOM(this.toHTML()));
  426. new_vnode.data.hook = _.extend({
  427. create: this.updateEventListeners.bind(this),
  428. update: this.updateEventListeners.bind(this)
  429. });
  430. const el = this.vnode ? this.vnode.elm : this.el;
  431. if (el.outerHTML !== new_vnode.elm.outerHTML) {
  432. this.vnode = patch(this.vnode || this.el, new_vnode);
  433. }
  434. if (_.isFunction(this.afterRender)) {
  435. this.afterRender();
  436. }
  437. return this;
  438. }
  439. });
  440. return Backbone.VDOMView;
  441. }));
  442. /***/ }),
  443. /***/ "./node_modules/backbone/backbone.js":
  444. /*!*******************************************!*\
  445. !*** ./node_modules/backbone/backbone.js ***!
  446. \*******************************************/
  447. /*! no static exports found */
  448. /***/ (function(module, exports, __webpack_require__) {
  449. /* WEBPACK VAR INJECTION */(function(global) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Backbone.js 1.3.3
  450. // (c) 2010-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  451. // Backbone may be freely distributed under the MIT license.
  452. // For all details and documentation:
  453. // http://backbonejs.org
  454. (function(factory) {
  455. // Establish the root object, `window` (`self`) in the browser, or `global` on the server.
  456. // We use `self` instead of `window` for `WebWorker` support.
  457. var root = (typeof self == 'object' && self.self === self && self) ||
  458. (typeof global == 'object' && global.global === global && global);
  459. // Set up Backbone appropriately for the environment. Start with AMD.
  460. if (true) {
  461. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! underscore */ "./src/underscore-shim.js"), __webpack_require__(/*! jquery */ "./src/jquery-stub.js"), exports], __WEBPACK_AMD_DEFINE_RESULT__ = (function(_, $, exports) {
  462. // Export global even in AMD case in case this script is loaded with
  463. // others that may still expect a global Backbone.
  464. root.Backbone = factory(root, exports, _, $);
  465. }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
  466. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  467. // Next for Node.js or CommonJS. jQuery may not be needed as a module.
  468. } else { var _, $; }
  469. })(function(root, Backbone, _, $) {
  470. // Initial Setup
  471. // -------------
  472. // Save the previous value of the `Backbone` variable, so that it can be
  473. // restored later on, if `noConflict` is used.
  474. var previousBackbone = root.Backbone;
  475. // Create a local reference to a common array method we'll want to use later.
  476. var slice = Array.prototype.slice;
  477. // Current version of the library. Keep in sync with `package.json`.
  478. Backbone.VERSION = '1.3.3';
  479. // For Backbone's purposes, jQuery, Zepto, Ender, or My Library (kidding) owns
  480. // the `$` variable.
  481. Backbone.$ = $;
  482. // Runs Backbone.js in *noConflict* mode, returning the `Backbone` variable
  483. // to its previous owner. Returns a reference to this Backbone object.
  484. Backbone.noConflict = function() {
  485. root.Backbone = previousBackbone;
  486. return this;
  487. };
  488. // Turn on `emulateHTTP` to support legacy HTTP servers. Setting this option
  489. // will fake `"PATCH"`, `"PUT"` and `"DELETE"` requests via the `_method` parameter and
  490. // set a `X-Http-Method-Override` header.
  491. Backbone.emulateHTTP = false;
  492. // Turn on `emulateJSON` to support legacy servers that can't deal with direct
  493. // `application/json` requests ... this will encode the body as
  494. // `application/x-www-form-urlencoded` instead and will send the model in a
  495. // form param named `model`.
  496. Backbone.emulateJSON = false;
  497. // Proxy Backbone class methods to Underscore functions, wrapping the model's
  498. // `attributes` object or collection's `models` array behind the scenes.
  499. //
  500. // collection.filter(function(model) { return model.get('age') > 10 });
  501. // collection.each(this.addView);
  502. //
  503. // `Function#apply` can be slow so we use the method's arg count, if we know it.
  504. var addMethod = function(length, method, attribute) {
  505. switch (length) {
  506. case 1: return function() {
  507. return _[method](this[attribute]);
  508. };
  509. case 2: return function(value) {
  510. return _[method](this[attribute], value);
  511. };
  512. case 3: return function(iteratee, context) {
  513. return _[method](this[attribute], cb(iteratee, this), context);
  514. };
  515. case 4: return function(iteratee, defaultVal, context) {
  516. return _[method](this[attribute], cb(iteratee, this), defaultVal, context);
  517. };
  518. default: return function() {
  519. var args = slice.call(arguments);
  520. args.unshift(this[attribute]);
  521. return _[method].apply(_, args);
  522. };
  523. }
  524. };
  525. var addUnderscoreMethods = function(Class, methods, attribute) {
  526. _.each(methods, function(length, method) {
  527. if (_[method]) Class.prototype[method] = addMethod(length, method, attribute);
  528. });
  529. };
  530. // Support `collection.sortBy('attr')` and `collection.findWhere({id: 1})`.
  531. var cb = function(iteratee, instance) {
  532. if (_.isFunction(iteratee)) return iteratee;
  533. if (_.isObject(iteratee) && !instance._isModel(iteratee)) return modelMatcher(iteratee);
  534. if (_.isString(iteratee)) return function(model) { return model.get(iteratee); };
  535. return iteratee;
  536. };
  537. var modelMatcher = function(attrs) {
  538. var matcher = _.matches(attrs);
  539. return function(model) {
  540. return matcher(model.attributes);
  541. };
  542. };
  543. // Backbone.Events
  544. // ---------------
  545. // A module that can be mixed in to *any object* in order to provide it with
  546. // a custom event channel. You may bind a callback to an event with `on` or
  547. // remove with `off`; `trigger`-ing an event fires all callbacks in
  548. // succession.
  549. //
  550. // var object = {};
  551. // _.extend(object, Backbone.Events);
  552. // object.on('expand', function(){ alert('expanded'); });
  553. // object.trigger('expand');
  554. //
  555. var Events = Backbone.Events = {};
  556. // Regular expression used to split event strings.
  557. var eventSplitter = /\s+/;
  558. // Iterates over the standard `event, callback` (as well as the fancy multiple
  559. // space-separated events `"change blur", callback` and jQuery-style event
  560. // maps `{event: callback}`).
  561. var eventsApi = function(iteratee, events, name, callback, opts) {
  562. var i = 0, names;
  563. if (name && typeof name === 'object') {
  564. // Handle event maps.
  565. if (callback !== void 0 && 'context' in opts && opts.context === void 0) opts.context = callback;
  566. for (names = _.keys(name); i < names.length ; i++) {
  567. events = eventsApi(iteratee, events, names[i], name[names[i]], opts);
  568. }
  569. } else if (name && eventSplitter.test(name)) {
  570. // Handle space-separated event names by delegating them individually.
  571. for (names = name.split(eventSplitter); i < names.length; i++) {
  572. events = iteratee(events, names[i], callback, opts);
  573. }
  574. } else {
  575. // Finally, standard events.
  576. events = iteratee(events, name, callback, opts);
  577. }
  578. return events;
  579. };
  580. // Bind an event to a `callback` function. Passing `"all"` will bind
  581. // the callback to all events fired.
  582. Events.on = function(name, callback, context) {
  583. return internalOn(this, name, callback, context);
  584. };
  585. // Guard the `listening` argument from the public API.
  586. var internalOn = function(obj, name, callback, context, listening) {
  587. obj._events = eventsApi(onApi, obj._events || {}, name, callback, {
  588. context: context,
  589. ctx: obj,
  590. listening: listening
  591. });
  592. if (listening) {
  593. var listeners = obj._listeners || (obj._listeners = {});
  594. listeners[listening.id] = listening;
  595. }
  596. return obj;
  597. };
  598. // Inversion-of-control versions of `on`. Tell *this* object to listen to
  599. // an event in another object... keeping track of what it's listening to
  600. // for easier unbinding later.
  601. Events.listenTo = function(obj, name, callback) {
  602. if (!obj) return this;
  603. var id = obj._listenId || (obj._listenId = _.uniqueId('l'));
  604. var listeningTo = this._listeningTo || (this._listeningTo = {});
  605. var listening = listeningTo[id];
  606. // This object is not listening to any other events on `obj` yet.
  607. // Setup the necessary references to track the listening callbacks.
  608. if (!listening) {
  609. var thisId = this._listenId || (this._listenId = _.uniqueId('l'));
  610. listening = listeningTo[id] = {obj: obj, objId: id, id: thisId, listeningTo: listeningTo, count: 0};
  611. }
  612. // Bind callbacks on obj, and keep track of them on listening.
  613. internalOn(obj, name, callback, this, listening);
  614. return this;
  615. };
  616. // The reducing API that adds a callback to the `events` object.
  617. var onApi = function(events, name, callback, options) {
  618. if (callback) {
  619. var handlers = events[name] || (events[name] = []);
  620. var context = options.context, ctx = options.ctx, listening = options.listening;
  621. if (listening) listening.count++;
  622. handlers.push({callback: callback, context: context, ctx: context || ctx, listening: listening});
  623. }
  624. return events;
  625. };
  626. // Remove one or many callbacks. If `context` is null, removes all
  627. // callbacks with that function. If `callback` is null, removes all
  628. // callbacks for the event. If `name` is null, removes all bound
  629. // callbacks for all events.
  630. Events.off = function(name, callback, context) {
  631. if (!this._events) return this;
  632. this._events = eventsApi(offApi, this._events, name, callback, {
  633. context: context,
  634. listeners: this._listeners
  635. });
  636. return this;
  637. };
  638. // Tell this object to stop listening to either specific events ... or
  639. // to every object it's currently listening to.
  640. Events.stopListening = function(obj, name, callback) {
  641. var listeningTo = this._listeningTo;
  642. if (!listeningTo) return this;
  643. var ids = obj ? [obj._listenId] : _.keys(listeningTo);
  644. for (var i = 0; i < ids.length; i++) {
  645. var listening = listeningTo[ids[i]];
  646. // If listening doesn't exist, this object is not currently
  647. // listening to obj. Break out early.
  648. if (!listening) break;
  649. listening.obj.off(name, callback, this);
  650. }
  651. return this;
  652. };
  653. // The reducing API that removes a callback from the `events` object.
  654. var offApi = function(events, name, callback, options) {
  655. if (!events) return;
  656. var i = 0, listening;
  657. var context = options.context, listeners = options.listeners;
  658. // Delete all events listeners and "drop" events.
  659. if (!name && !callback && !context) {
  660. var ids = _.keys(listeners);
  661. for (; i < ids.length; i++) {
  662. listening = listeners[ids[i]];
  663. delete listeners[listening.id];
  664. delete listening.listeningTo[listening.objId];
  665. }
  666. return;
  667. }
  668. var names = name ? [name] : _.keys(events);
  669. for (; i < names.length; i++) {
  670. name = names[i];
  671. var handlers = events[name];
  672. // Bail out if there are no events stored.
  673. if (!handlers) break;
  674. // Replace events if there are any remaining. Otherwise, clean up.
  675. var remaining = [];
  676. for (var j = 0; j < handlers.length; j++) {
  677. var handler = handlers[j];
  678. if (
  679. callback && callback !== handler.callback &&
  680. callback !== handler.callback._callback ||
  681. context && context !== handler.context
  682. ) {
  683. remaining.push(handler);
  684. } else {
  685. listening = handler.listening;
  686. if (listening && --listening.count === 0) {
  687. delete listeners[listening.id];
  688. delete listening.listeningTo[listening.objId];
  689. }
  690. }
  691. }
  692. // Update tail event if the list has any events. Otherwise, clean up.
  693. if (remaining.length) {
  694. events[name] = remaining;
  695. } else {
  696. delete events[name];
  697. }
  698. }
  699. return events;
  700. };
  701. // Bind an event to only be triggered a single time. After the first time
  702. // the callback is invoked, its listener will be removed. If multiple events
  703. // are passed in using the space-separated syntax, the handler will fire
  704. // once for each event, not once for a combination of all events.
  705. Events.once = function(name, callback, context) {
  706. // Map the event into a `{event: once}` object.
  707. var events = eventsApi(onceMap, {}, name, callback, _.bind(this.off, this));
  708. if (typeof name === 'string' && context == null) callback = void 0;
  709. return this.on(events, callback, context);
  710. };
  711. // Inversion-of-control versions of `once`.
  712. Events.listenToOnce = function(obj, name, callback) {
  713. // Map the event into a `{event: once}` object.
  714. var events = eventsApi(onceMap, {}, name, callback, _.bind(this.stopListening, this, obj));
  715. return this.listenTo(obj, events);
  716. };
  717. // Reduces the event callbacks into a map of `{event: onceWrapper}`.
  718. // `offer` unbinds the `onceWrapper` after it has been called.
  719. var onceMap = function(map, name, callback, offer) {
  720. if (callback) {
  721. var once = map[name] = _.once(function() {
  722. offer(name, once);
  723. callback.apply(this, arguments);
  724. });
  725. once._callback = callback;
  726. }
  727. return map;
  728. };
  729. // Trigger one or many events, firing all bound callbacks. Callbacks are
  730. // passed the same arguments as `trigger` is, apart from the event name
  731. // (unless you're listening on `"all"`, which will cause your callback to
  732. // receive the true name of the event as the first argument).
  733. Events.trigger = function(name) {
  734. if (!this._events) return this;
  735. var length = Math.max(0, arguments.length - 1);
  736. var args = Array(length);
  737. for (var i = 0; i < length; i++) args[i] = arguments[i + 1];
  738. eventsApi(triggerApi, this._events, name, void 0, args);
  739. return this;
  740. };
  741. // Handles triggering the appropriate event callbacks.
  742. var triggerApi = function(objEvents, name, callback, args) {
  743. if (objEvents) {
  744. var events = objEvents[name];
  745. var allEvents = objEvents.all;
  746. if (events && allEvents) allEvents = allEvents.slice();
  747. if (events) triggerEvents(events, args);
  748. if (allEvents) triggerEvents(allEvents, [name].concat(args));
  749. }
  750. return objEvents;
  751. };
  752. // A difficult-to-believe, but optimized internal dispatch function for
  753. // triggering events. Tries to keep the usual cases speedy (most internal
  754. // Backbone events have 3 arguments).
  755. var triggerEvents = function(events, args) {
  756. var ev, i = -1, l = events.length, a1 = args[0], a2 = args[1], a3 = args[2];
  757. switch (args.length) {
  758. case 0: while (++i < l) (ev = events[i]).callback.call(ev.ctx); return;
  759. case 1: while (++i < l) (ev = events[i]).callback.call(ev.ctx, a1); return;
  760. case 2: while (++i < l) (ev = events[i]).callback.call(ev.ctx, a1, a2); return;
  761. case 3: while (++i < l) (ev = events[i]).callback.call(ev.ctx, a1, a2, a3); return;
  762. default: while (++i < l) (ev = events[i]).callback.apply(ev.ctx, args); return;
  763. }
  764. };
  765. // Aliases for backwards compatibility.
  766. Events.bind = Events.on;
  767. Events.unbind = Events.off;
  768. // Allow the `Backbone` object to serve as a global event bus, for folks who
  769. // want global "pubsub" in a convenient place.
  770. _.extend(Backbone, Events);
  771. // Backbone.Model
  772. // --------------
  773. // Backbone **Models** are the basic data object in the framework --
  774. // frequently representing a row in a table in a database on your server.
  775. // A discrete chunk of data and a bunch of useful, related methods for
  776. // performing computations and transformations on that data.
  777. // Create a new model with the specified attributes. A client id (`cid`)
  778. // is automatically generated and assigned for you.
  779. var Model = Backbone.Model = function(attributes, options) {
  780. var attrs = attributes || {};
  781. options || (options = {});
  782. this.cid = _.uniqueId(this.cidPrefix);
  783. this.attributes = {};
  784. if (options.collection) this.collection = options.collection;
  785. if (options.parse) attrs = this.parse(attrs, options) || {};
  786. var defaults = _.result(this, 'defaults');
  787. attrs = _.defaults(_.extend({}, defaults, attrs), defaults);
  788. this.set(attrs, options);
  789. this.changed = {};
  790. this.initialize.apply(this, arguments);
  791. };
  792. // Attach all inheritable methods to the Model prototype.
  793. _.extend(Model.prototype, Events, {
  794. // A hash of attributes whose current and previous value differ.
  795. changed: null,
  796. // The value returned during the last failed validation.
  797. validationError: null,
  798. // The default name for the JSON `id` attribute is `"id"`. MongoDB and
  799. // CouchDB users may want to set this to `"_id"`.
  800. idAttribute: 'id',
  801. // The prefix is used to create the client id which is used to identify models locally.
  802. // You may want to override this if you're experiencing name clashes with model ids.
  803. cidPrefix: 'c',
  804. // Initialize is an empty function by default. Override it with your own
  805. // initialization logic.
  806. initialize: function(){},
  807. // Return a copy of the model's `attributes` object.
  808. toJSON: function(options) {
  809. return _.clone(this.attributes);
  810. },
  811. // Proxy `Backbone.sync` by default -- but override this if you need
  812. // custom syncing semantics for *this* particular model.
  813. sync: function() {
  814. return Backbone.sync.apply(this, arguments);
  815. },
  816. // Get the value of an attribute.
  817. get: function(attr) {
  818. return this.attributes[attr];
  819. },
  820. // Get the HTML-escaped value of an attribute.
  821. escape: function(attr) {
  822. return _.escape(this.get(attr));
  823. },
  824. // Returns `true` if the attribute contains a value that is not null
  825. // or undefined.
  826. has: function(attr) {
  827. return this.get(attr) != null;
  828. },
  829. // Special-cased proxy to underscore's `_.matches` method.
  830. matches: function(attrs) {
  831. return !!_.iteratee(attrs, this)(this.attributes);
  832. },
  833. // Set a hash of model attributes on the object, firing `"change"`. This is
  834. // the core primitive operation of a model, updating the data and notifying
  835. // anyone who needs to know about the change in state. The heart of the beast.
  836. set: function(key, val, options) {
  837. if (key == null) return this;
  838. // Handle both `"key", value` and `{key: value}` -style arguments.
  839. var attrs;
  840. if (typeof key === 'object') {
  841. attrs = key;
  842. options = val;
  843. } else {
  844. (attrs = {})[key] = val;
  845. }
  846. options || (options = {});
  847. // Run validation.
  848. if (!this._validate(attrs, options)) return false;
  849. // Extract attributes and options.
  850. var unset = options.unset;
  851. var silent = options.silent;
  852. var changes = [];
  853. var changing = this._changing;
  854. this._changing = true;
  855. if (!changing) {
  856. this._previousAttributes = _.clone(this.attributes);
  857. this.changed = {};
  858. }
  859. var current = this.attributes;
  860. var changed = this.changed;
  861. var prev = this._previousAttributes;
  862. // For each `set` attribute, update or delete the current value.
  863. for (var attr in attrs) {
  864. val = attrs[attr];
  865. if (!_.isEqual(current[attr], val)) changes.push(attr);
  866. if (!_.isEqual(prev[attr], val)) {
  867. changed[attr] = val;
  868. } else {
  869. delete changed[attr];
  870. }
  871. unset ? delete current[attr] : current[attr] = val;
  872. }
  873. // Update the `id`.
  874. if (this.idAttribute in attrs) this.id = this.get(this.idAttribute);
  875. // Trigger all relevant attribute changes.
  876. if (!silent) {
  877. if (changes.length) this._pending = options;
  878. for (var i = 0; i < changes.length; i++) {
  879. this.trigger('change:' + changes[i], this, current[changes[i]], options);
  880. }
  881. }
  882. // You might be wondering why there's a `while` loop here. Changes can
  883. // be recursively nested within `"change"` events.
  884. if (changing) return this;
  885. if (!silent) {
  886. while (this._pending) {
  887. options = this._pending;
  888. this._pending = false;
  889. this.trigger('change', this, options);
  890. }
  891. }
  892. this._pending = false;
  893. this._changing = false;
  894. return this;
  895. },
  896. // Remove an attribute from the model, firing `"change"`. `unset` is a noop
  897. // if the attribute doesn't exist.
  898. unset: function(attr, options) {
  899. return this.set(attr, void 0, _.extend({}, options, {unset: true}));
  900. },
  901. // Clear all attributes on the model, firing `"change"`.
  902. clear: function(options) {
  903. var attrs = {};
  904. for (var key in this.attributes) attrs[key] = void 0;
  905. return this.set(attrs, _.extend({}, options, {unset: true}));
  906. },
  907. // Determine if the model has changed since the last `"change"` event.
  908. // If you specify an attribute name, determine if that attribute has changed.
  909. hasChanged: function(attr) {
  910. if (attr == null) return !_.isEmpty(this.changed);
  911. return _.has(this.changed, attr);
  912. },
  913. // Return an object containing all the attributes that have changed, or
  914. // false if there are no changed attributes. Useful for determining what
  915. // parts of a view need to be updated and/or what attributes need to be
  916. // persisted to the server. Unset attributes will be set to undefined.
  917. // You can also pass an attributes object to diff against the model,
  918. // determining if there *would be* a change.
  919. changedAttributes: function(diff) {
  920. if (!diff) return this.hasChanged() ? _.clone(this.changed) : false;
  921. var old = this._changing ? this._previousAttributes : this.attributes;
  922. var changed = {};
  923. for (var attr in diff) {
  924. var val = diff[attr];
  925. if (_.isEqual(old[attr], val)) continue;
  926. changed[attr] = val;
  927. }
  928. return _.size(changed) ? changed : false;
  929. },
  930. // Get the previous value of an attribute, recorded at the time the last
  931. // `"change"` event was fired.
  932. previous: function(attr) {
  933. if (attr == null || !this._previousAttributes) return null;
  934. return this._previousAttributes[attr];
  935. },
  936. // Get all of the attributes of the model at the time of the previous
  937. // `"change"` event.
  938. previousAttributes: function() {
  939. return _.clone(this._previousAttributes);
  940. },
  941. // Fetch the model from the server, merging the response with the model's
  942. // local attributes. Any changed attributes will trigger a "change" event.
  943. fetch: function(options) {
  944. options = _.extend({parse: true}, options);
  945. var model = this;
  946. var success = options.success;
  947. options.success = function(resp) {
  948. var serverAttrs = options.parse ? model.parse(resp, options) : resp;
  949. if (!model.set(serverAttrs, options)) return false;
  950. if (success) success.call(options.context, model, resp, options);
  951. model.trigger('sync', model, resp, options);
  952. };
  953. wrapError(this, options);
  954. return this.sync('read', this, options);
  955. },
  956. // Set a hash of model attributes, and sync the model to the server.
  957. // If the server returns an attributes hash that differs, the model's
  958. // state will be `set` again.
  959. save: function(key, val, options) {
  960. // Handle both `"key", value` and `{key: value}` -style arguments.
  961. var attrs;
  962. if (key == null || typeof key === 'object') {
  963. attrs = key;
  964. options = val;
  965. } else {
  966. (attrs = {})[key] = val;
  967. }
  968. options = _.extend({validate: true, parse: true}, options);
  969. var wait = options.wait;
  970. // If we're not waiting and attributes exist, save acts as
  971. // `set(attr).save(null, opts)` with validation. Otherwise, check if
  972. // the model will be valid when the attributes, if any, are set.
  973. if (attrs && !wait) {
  974. if (!this.set(attrs, options)) return false;
  975. } else if (!this._validate(attrs, options)) {
  976. return false;
  977. }
  978. // After a successful server-side save, the client is (optionally)
  979. // updated with the server-side state.
  980. var model = this;
  981. var success = options.success;
  982. var attributes = this.attributes;
  983. options.success = function(resp) {
  984. // Ensure attributes are restored during synchronous saves.
  985. model.attributes = attributes;
  986. var serverAttrs = options.parse ? model.parse(resp, options) : resp;
  987. if (wait) serverAttrs = _.extend({}, attrs, serverAttrs);
  988. if (serverAttrs && !model.set(serverAttrs, options)) return false;
  989. if (success) success.call(options.context, model, resp, options);
  990. model.trigger('sync', model, resp, options);
  991. };
  992. wrapError(this, options);
  993. // Set temporary attributes if `{wait: true}` to properly find new ids.
  994. if (attrs && wait) this.attributes = _.extend({}, attributes, attrs);
  995. var method = this.isNew() ? 'create' : (options.patch ? 'patch' : 'update');
  996. if (method === 'patch' && !options.attrs) options.attrs = attrs;
  997. var xhr = this.sync(method, this, options);
  998. // Restore attributes.
  999. this.attributes = attributes;
  1000. return xhr;
  1001. },
  1002. // Destroy this model on the server if it was already persisted.
  1003. // Optimistically removes the model from its collection, if it has one.
  1004. // If `wait: true` is passed, waits for the server to respond before removal.
  1005. destroy: function(options) {
  1006. options = options ? _.clone(options) : {};
  1007. var model = this;
  1008. var success = options.success;
  1009. var wait = options.wait;
  1010. var destroy = function() {
  1011. model.stopListening();
  1012. model.trigger('destroy', model, model.collection, options);
  1013. };
  1014. options.success = function(resp) {
  1015. if (wait) destroy();
  1016. if (success) success.call(options.context, model, resp, options);
  1017. if (!model.isNew()) model.trigger('sync', model, resp, options);
  1018. };
  1019. var xhr = false;
  1020. if (this.isNew()) {
  1021. _.defer(options.success);
  1022. } else {
  1023. wrapError(this, options);
  1024. xhr = this.sync('delete', this, options);
  1025. }
  1026. if (!wait) destroy();
  1027. return xhr;
  1028. },
  1029. // Default URL for the model's representation on the server -- if you're
  1030. // using Backbone's restful methods, override this to change the endpoint
  1031. // that will be called.
  1032. url: function() {
  1033. var base =
  1034. _.result(this, 'urlRoot') ||
  1035. _.result(this.collection, 'url') ||
  1036. urlError();
  1037. if (this.isNew()) return base;
  1038. var id = this.get(this.idAttribute);
  1039. return base.replace(/[^\/]$/, '$&/') + encodeURIComponent(id);
  1040. },
  1041. // **parse** converts a response into the hash of attributes to be `set` on
  1042. // the model. The default implementation is just to pass the response along.
  1043. parse: function(resp, options) {
  1044. return resp;
  1045. },
  1046. // Create a new model with identical attributes to this one.
  1047. clone: function() {
  1048. return new this.constructor(this.attributes);
  1049. },
  1050. // A model is new if it has never been saved to the server, and lacks an id.
  1051. isNew: function() {
  1052. return !this.has(this.idAttribute);
  1053. },
  1054. // Check if the model is currently in a valid state.
  1055. isValid: function(options) {
  1056. return this._validate({}, _.extend({}, options, {validate: true}));
  1057. },
  1058. // Run validation against the next complete set of model attributes,
  1059. // returning `true` if all is well. Otherwise, fire an `"invalid"` event.
  1060. _validate: function(attrs, options) {
  1061. if (!options.validate || !this.validate) return true;
  1062. attrs = _.extend({}, this.attributes, attrs);
  1063. var error = this.validationError = this.validate(attrs, options) || null;
  1064. if (!error) return true;
  1065. this.trigger('invalid', this, error, _.extend(options, {validationError: error}));
  1066. return false;
  1067. }
  1068. });
  1069. // Underscore methods that we want to implement on the Model, mapped to the
  1070. // number of arguments they take.
  1071. var modelMethods = {keys: 1, values: 1, pairs: 1, invert: 1, pick: 0,
  1072. omit: 0, chain: 1, isEmpty: 1};
  1073. // Mix in each Underscore method as a proxy to `Model#attributes`.
  1074. addUnderscoreMethods(Model, modelMethods, 'attributes');
  1075. // Backbone.Collection
  1076. // -------------------
  1077. // If models tend to represent a single row of data, a Backbone Collection is
  1078. // more analogous to a table full of data ... or a small slice or page of that
  1079. // table, or a collection of rows that belong together for a particular reason
  1080. // -- all of the messages in this particular folder, all of the documents
  1081. // belonging to this particular author, and so on. Collections maintain
  1082. // indexes of their models, both in order, and for lookup by `id`.
  1083. // Create a new **Collection**, perhaps to contain a specific type of `model`.
  1084. // If a `comparator` is specified, the Collection will maintain
  1085. // its models in sort order, as they're added and removed.
  1086. var Collection = Backbone.Collection = function(models, options) {
  1087. options || (options = {});
  1088. if (options.model) this.model = options.model;
  1089. if (options.comparator !== void 0) this.comparator = options.comparator;
  1090. this._reset();
  1091. this.initialize.apply(this, arguments);
  1092. if (models) this.reset(models, _.extend({silent: true}, options));
  1093. };
  1094. // Default options for `Collection#set`.
  1095. var setOptions = {add: true, remove: true, merge: true};
  1096. var addOptions = {add: true, remove: false};
  1097. // Splices `insert` into `array` at index `at`.
  1098. var splice = function(array, insert, at) {
  1099. at = Math.min(Math.max(at, 0), array.length);
  1100. var tail = Array(array.length - at);
  1101. var length = insert.length;
  1102. var i;
  1103. for (i = 0; i < tail.length; i++) tail[i] = array[i + at];
  1104. for (i = 0; i < length; i++) array[i + at] = insert[i];
  1105. for (i = 0; i < tail.length; i++) array[i + length + at] = tail[i];
  1106. };
  1107. // Define the Collection's inheritable methods.
  1108. _.extend(Collection.prototype, Events, {
  1109. // The default model for a collection is just a **Backbone.Model**.
  1110. // This should be overridden in most cases.
  1111. model: Model,
  1112. // Initialize is an empty function by default. Override it with your own
  1113. // initialization logic.
  1114. initialize: function(){},
  1115. // The JSON representation of a Collection is an array of the
  1116. // models' attributes.
  1117. toJSON: function(options) {
  1118. return this.map(function(model) { return model.toJSON(options); });
  1119. },
  1120. // Proxy `Backbone.sync` by default.
  1121. sync: function() {
  1122. return Backbone.sync.apply(this, arguments);
  1123. },
  1124. // Add a model, or list of models to the set. `models` may be Backbone
  1125. // Models or raw JavaScript objects to be converted to Models, or any
  1126. // combination of the two.
  1127. add: function(models, options) {
  1128. return this.set(models, _.extend({merge: false}, options, addOptions));
  1129. },
  1130. // Remove a model, or a list of models from the set.
  1131. remove: function(models, options) {
  1132. options = _.extend({}, options);
  1133. var singular = !_.isArray(models);
  1134. models = singular ? [models] : models.slice();
  1135. var removed = this._removeModels(models, options);
  1136. if (!options.silent && removed.length) {
  1137. options.changes = {added: [], merged: [], removed: removed};
  1138. this.trigger('update', this, options);
  1139. }
  1140. return singular ? removed[0] : removed;
  1141. },
  1142. // Update a collection by `set`-ing a new list of models, adding new ones,
  1143. // removing models that are no longer present, and merging models that
  1144. // already exist in the collection, as necessary. Similar to **Model#set**,
  1145. // the core operation for updating the data contained by the collection.
  1146. set: function(models, options) {
  1147. if (models == null) return;
  1148. options = _.extend({}, setOptions, options);
  1149. if (options.parse && !this._isModel(models)) {
  1150. models = this.parse(models, options) || [];
  1151. }
  1152. var singular = !_.isArray(models);
  1153. models = singular ? [models] : models.slice();
  1154. var at = options.at;
  1155. if (at != null) at = +at;
  1156. if (at > this.length) at = this.length;
  1157. if (at < 0) at += this.length + 1;
  1158. var set = [];
  1159. var toAdd = [];
  1160. var toMerge = [];
  1161. var toRemove = [];
  1162. var modelMap = {};
  1163. var add = options.add;
  1164. var merge = options.merge;
  1165. var remove = options.remove;
  1166. var sort = false;
  1167. var sortable = this.comparator && at == null && options.sort !== false;
  1168. var sortAttr = _.isString(this.comparator) ? this.comparator : null;
  1169. // Turn bare objects into model references, and prevent invalid models
  1170. // from being added.
  1171. var model, i;
  1172. for (i = 0; i < models.length; i++) {
  1173. model = models[i];
  1174. // If a duplicate is found, prevent it from being added and
  1175. // optionally merge it into the existing model.
  1176. var existing = this.get(model);
  1177. if (existing) {
  1178. if (merge && model !== existing) {
  1179. var attrs = this._isModel(model) ? model.attributes : model;
  1180. if (options.parse) attrs = existing.parse(attrs, options);
  1181. existing.set(attrs, options);
  1182. toMerge.push(existing);
  1183. if (sortable && !sort) sort = existing.hasChanged(sortAttr);
  1184. }
  1185. if (!modelMap[existing.cid]) {
  1186. modelMap[existing.cid] = true;
  1187. set.push(existing);
  1188. }
  1189. models[i] = existing;
  1190. // If this is a new, valid model, push it to the `toAdd` list.
  1191. } else if (add) {
  1192. model = models[i] = this._prepareModel(model, options);
  1193. if (model) {
  1194. toAdd.push(model);
  1195. this._addReference(model, options);
  1196. modelMap[model.cid] = true;
  1197. set.push(model);
  1198. }
  1199. }
  1200. }
  1201. // Remove stale models.
  1202. if (remove) {
  1203. for (i = 0; i < this.length; i++) {
  1204. model = this.models[i];
  1205. if (!modelMap[model.cid]) toRemove.push(model);
  1206. }
  1207. if (toRemove.length) this._removeModels(toRemove, options);
  1208. }
  1209. // See if sorting is needed, update `length` and splice in new models.
  1210. var orderChanged = false;
  1211. var replace = !sortable && add && remove;
  1212. if (set.length && replace) {
  1213. orderChanged = this.length !== set.length || _.some(this.models, function(m, index) {
  1214. return m !== set[index];
  1215. });
  1216. this.models.length = 0;
  1217. splice(this.models, set, 0);
  1218. this.length = this.models.length;
  1219. } else if (toAdd.length) {
  1220. if (sortable) sort = true;
  1221. splice(this.models, toAdd, at == null ? this.length : at);
  1222. this.length = this.models.length;
  1223. }
  1224. // Silently sort the collection if appropriate.
  1225. if (sort) this.sort({silent: true});
  1226. // Unless silenced, it's time to fire all appropriate add/sort/update events.
  1227. if (!options.silent) {
  1228. for (i = 0; i < toAdd.length; i++) {
  1229. if (at != null) options.index = at + i;
  1230. model = toAdd[i];
  1231. model.trigger('add', model, this, options);
  1232. }
  1233. if (sort || orderChanged) this.trigger('sort', this, options);
  1234. if (toAdd.length || toRemove.length || toMerge.length) {
  1235. options.changes = {
  1236. added: toAdd,
  1237. removed: toRemove,
  1238. merged: toMerge
  1239. };
  1240. this.trigger('update', this, options);
  1241. }
  1242. }
  1243. // Return the added (or merged) model (or models).
  1244. return singular ? models[0] : models;
  1245. },
  1246. // When you have more items than you want to add or remove individually,
  1247. // you can reset the entire set with a new list of models, without firing
  1248. // any granular `add` or `remove` events. Fires `reset` when finished.
  1249. // Useful for bulk operations and optimizations.
  1250. reset: function(models, options) {
  1251. options = options ? _.clone(options) : {};
  1252. for (var i = 0; i < this.models.length; i++) {
  1253. this._removeReference(this.models[i], options);
  1254. }
  1255. options.previousModels = this.models;
  1256. this._reset();
  1257. models = this.add(models, _.extend({silent: true}, options));
  1258. if (!options.silent) this.trigger('reset', this, options);
  1259. return models;
  1260. },
  1261. // Add a model to the end of the collection.
  1262. push: function(model, options) {
  1263. return this.add(model, _.extend({at: this.length}, options));
  1264. },
  1265. // Remove a model from the end of the collection.
  1266. pop: function(options) {
  1267. var model = this.at(this.length - 1);
  1268. return this.remove(model, options);
  1269. },
  1270. // Add a model to the beginning of the collection.
  1271. unshift: function(model, options) {
  1272. return this.add(model, _.extend({at: 0}, options));
  1273. },
  1274. // Remove a model from the beginning of the collection.
  1275. shift: function(options) {
  1276. var model = this.at(0);
  1277. return this.remove(model, options);
  1278. },
  1279. // Slice out a sub-array of models from the collection.
  1280. slice: function() {
  1281. return slice.apply(this.models, arguments);
  1282. },
  1283. // Get a model from the set by id, cid, model object with id or cid
  1284. // properties, or an attributes object that is transformed through modelId.
  1285. get: function(obj) {
  1286. if (obj == null) return void 0;
  1287. return this._byId[obj] ||
  1288. this._byId[this.modelId(obj.attributes || obj)] ||
  1289. obj.cid && this._byId[obj.cid];
  1290. },
  1291. // Returns `true` if the model is in the collection.
  1292. has: function(obj) {
  1293. return this.get(obj) != null;
  1294. },
  1295. // Get the model at the given index.
  1296. at: function(index) {
  1297. if (index < 0) index += this.length;
  1298. return this.models[index];
  1299. },
  1300. // Return models with matching attributes. Useful for simple cases of
  1301. // `filter`.
  1302. where: function(attrs, first) {
  1303. return this[first ? 'find' : 'filter'](attrs);
  1304. },
  1305. // Return the first model with matching attributes. Useful for simple cases
  1306. // of `find`.
  1307. findWhere: function(attrs) {
  1308. return this.where(attrs, true);
  1309. },
  1310. // Force the collection to re-sort itself. You don't need to call this under
  1311. // normal circumstances, as the set will maintain sort order as each item
  1312. // is added.
  1313. sort: function(options) {
  1314. var comparator = this.comparator;
  1315. if (!comparator) throw new Error('Cannot sort a set without a comparator');
  1316. options || (options = {});
  1317. var length = comparator.length;
  1318. if (_.isFunction(comparator)) comparator = _.bind(comparator, this);
  1319. // Run sort based on type of `comparator`.
  1320. if (length === 1 || _.isString(comparator)) {
  1321. this.models = this.sortBy(comparator);
  1322. } else {
  1323. this.models.sort(comparator);
  1324. }
  1325. if (!options.silent) this.trigger('sort', this, options);
  1326. return this;
  1327. },
  1328. // Pluck an attribute from each model in the collection.
  1329. pluck: function(attr) {
  1330. return this.map(attr + '');
  1331. },
  1332. // Fetch the default set of models for this collection, resetting the
  1333. // collection when they arrive. If `reset: true` is passed, the response
  1334. // data will be passed through the `reset` method instead of `set`.
  1335. fetch: function(options) {
  1336. options = _.extend({parse: true}, options);
  1337. var success = options.success;
  1338. var collection = this;
  1339. options.success = function(resp) {
  1340. var method = options.reset ? 'reset' : 'set';
  1341. collection[method](resp, options);
  1342. if (success) success.call(options.context, collection, resp, options);
  1343. collection.trigger('sync', collection, resp, options);
  1344. };
  1345. wrapError(this, options);
  1346. return this.sync('read', this, options);
  1347. },
  1348. // Create a new instance of a model in this collection. Add the model to the
  1349. // collection immediately, unless `wait: true` is passed, in which case we
  1350. // wait for the server to agree.
  1351. create: function(model, options) {
  1352. options = options ? _.clone(options) : {};
  1353. var wait = options.wait;
  1354. model = this._prepareModel(model, options);
  1355. if (!model) return false;
  1356. if (!wait) this.add(model, options);
  1357. var collection = this;
  1358. var success = options.success;
  1359. options.success = function(m, resp, callbackOpts) {
  1360. if (wait) collection.add(m, callbackOpts);
  1361. if (success) success.call(callbackOpts.context, m, resp, callbackOpts);
  1362. };
  1363. model.save(null, options);
  1364. return model;
  1365. },
  1366. // **parse** converts a response into a list of models to be added to the
  1367. // collection. The default implementation is just to pass it through.
  1368. parse: function(resp, options) {
  1369. return resp;
  1370. },
  1371. // Create a new collection with an identical list of models as this one.
  1372. clone: function() {
  1373. return new this.constructor(this.models, {
  1374. model: this.model,
  1375. comparator: this.comparator
  1376. });
  1377. },
  1378. // Define how to uniquely identify models in the collection.
  1379. modelId: function(attrs) {
  1380. return attrs[this.model.prototype.idAttribute || 'id'];
  1381. },
  1382. // Private method to reset all internal state. Called when the collection
  1383. // is first initialized or reset.
  1384. _reset: function() {
  1385. this.length = 0;
  1386. this.models = [];
  1387. this._byId = {};
  1388. },
  1389. // Prepare a hash of attributes (or other model) to be added to this
  1390. // collection.
  1391. _prepareModel: function(attrs, options) {
  1392. if (this._isModel(attrs)) {
  1393. if (!attrs.collection) attrs.collection = this;
  1394. return attrs;
  1395. }
  1396. options = options ? _.clone(options) : {};
  1397. options.collection = this;
  1398. var model = new this.model(attrs, options);
  1399. if (!model.validationError) return model;
  1400. this.trigger('invalid', this, model.validationError, options);
  1401. return false;
  1402. },
  1403. // Internal method called by both remove and set.
  1404. _removeModels: function(models, options) {
  1405. var removed = [];
  1406. for (var i = 0; i < models.length; i++) {
  1407. var model = this.get(models[i]);
  1408. if (!model) continue;
  1409. var index = this.indexOf(model);
  1410. this.models.splice(index, 1);
  1411. this.length--;
  1412. // Remove references before triggering 'remove' event to prevent an
  1413. // infinite loop. #3693
  1414. delete this._byId[model.cid];
  1415. var id = this.modelId(model.attributes);
  1416. if (id != null) delete this._byId[id];
  1417. if (!options.silent) {
  1418. options.index = index;
  1419. model.trigger('remove', model, this, options);
  1420. }
  1421. removed.push(model);
  1422. this._removeReference(model, options);
  1423. }
  1424. return removed;
  1425. },
  1426. // Method for checking whether an object should be considered a model for
  1427. // the purposes of adding to the collection.
  1428. _isModel: function(model) {
  1429. return model instanceof Model;
  1430. },
  1431. // Internal method to create a model's ties to a collection.
  1432. _addReference: function(model, options) {
  1433. this._byId[model.cid] = model;
  1434. var id = this.modelId(model.attributes);
  1435. if (id != null) this._byId[id] = model;
  1436. model.on('all', this._onModelEvent, this);
  1437. },
  1438. // Internal method to sever a model's ties to a collection.
  1439. _removeReference: function(model, options) {
  1440. delete this._byId[model.cid];
  1441. var id = this.modelId(model.attributes);
  1442. if (id != null) delete this._byId[id];
  1443. if (this === model.collection) delete model.collection;
  1444. model.off('all', this._onModelEvent, this);
  1445. },
  1446. // Internal method called every time a model in the set fires an event.
  1447. // Sets need to update their indexes when models change ids. All other
  1448. // events simply proxy through. "add" and "remove" events that originate
  1449. // in other collections are ignored.
  1450. _onModelEvent: function(event, model, collection, options) {
  1451. if (model) {
  1452. if ((event === 'add' || event === 'remove') && collection !== this) return;
  1453. if (event === 'destroy') this.remove(model, options);
  1454. if (event === 'change') {
  1455. var prevId = this.modelId(model.previousAttributes());
  1456. var id = this.modelId(model.attributes);
  1457. if (prevId !== id) {
  1458. if (prevId != null) delete this._byId[prevId];
  1459. if (id != null) this._byId[id] = model;
  1460. }
  1461. }
  1462. }
  1463. this.trigger.apply(this, arguments);
  1464. }
  1465. });
  1466. // Underscore methods that we want to implement on the Collection.
  1467. // 90% of the core usefulness of Backbone Collections is actually implemented
  1468. // right here:
  1469. var collectionMethods = {forEach: 3, each: 3, map: 3, collect: 3, reduce: 0,
  1470. foldl: 0, inject: 0, reduceRight: 0, foldr: 0, find: 3, detect: 3, filter: 3,
  1471. select: 3, reject: 3, every: 3, all: 3, some: 3, any: 3, include: 3, includes: 3,
  1472. contains: 3, invoke: 0, max: 3, min: 3, toArray: 1, size: 1, first: 3,
  1473. head: 3, take: 3, initial: 3, rest: 3, tail: 3, drop: 3, last: 3,
  1474. without: 0, difference: 0, indexOf: 3, shuffle: 1, lastIndexOf: 3,
  1475. isEmpty: 1, chain: 1, sample: 3, partition: 3, groupBy: 3, countBy: 3,
  1476. sortBy: 3, indexBy: 3, findIndex: 3, findLastIndex: 3};
  1477. // Mix in each Underscore method as a proxy to `Collection#models`.
  1478. addUnderscoreMethods(Collection, collectionMethods, 'models');
  1479. // Backbone.View
  1480. // -------------
  1481. // Backbone Views are almost more convention than they are actual code. A View
  1482. // is simply a JavaScript object that represents a logical chunk of UI in the
  1483. // DOM. This might be a single item, an entire list, a sidebar or panel, or
  1484. // even the surrounding frame which wraps your whole app. Defining a chunk of
  1485. // UI as a **View** allows you to define your DOM events declaratively, without
  1486. // having to worry about render order ... and makes it easy for the view to
  1487. // react to specific changes in the state of your models.
  1488. // Creating a Backbone.View creates its initial element outside of the DOM,
  1489. // if an existing element is not provided...
  1490. var View = Backbone.View = function(options) {
  1491. this.cid = _.uniqueId('view');
  1492. _.extend(this, _.pick(options, viewOptions));
  1493. this._ensureElement();
  1494. this.initialize.apply(this, arguments);
  1495. };
  1496. // Cached regex to split keys for `delegate`.
  1497. var delegateEventSplitter = /^(\S+)\s*(.*)$/;
  1498. // List of view options to be set as properties.
  1499. var viewOptions = ['model', 'collection', 'el', 'id', 'attributes', 'className', 'tagName', 'events'];
  1500. // Set up all inheritable **Backbone.View** properties and methods.
  1501. _.extend(View.prototype, Events, {
  1502. // The default `tagName` of a View's element is `"div"`.
  1503. tagName: 'div',
  1504. // jQuery delegate for element lookup, scoped to DOM elements within the
  1505. // current view. This should be preferred to global lookups where possible.
  1506. $: function(selector) {
  1507. return this.$el.find(selector);
  1508. },
  1509. // Initialize is an empty function by default. Override it with your own
  1510. // initialization logic.
  1511. initialize: function(){},
  1512. // **render** is the core function that your view should override, in order
  1513. // to populate its element (`this.el`), with the appropriate HTML. The
  1514. // convention is for **render** to always return `this`.
  1515. render: function() {
  1516. return this;
  1517. },
  1518. // Remove this view by taking the element out of the DOM, and removing any
  1519. // applicable Backbone.Events listeners.
  1520. remove: function() {
  1521. this._removeElement();
  1522. this.stopListening();
  1523. return this;
  1524. },
  1525. // Remove this view's element from the document and all event listeners
  1526. // attached to it. Exposed for subclasses using an alternative DOM
  1527. // manipulation API.
  1528. _removeElement: function() {
  1529. this.$el.remove();
  1530. },
  1531. // Change the view's element (`this.el` property) and re-delegate the
  1532. // view's events on the new element.
  1533. setElement: function(element) {
  1534. this.undelegateEvents();
  1535. this._setElement(element);
  1536. this.delegateEvents();
  1537. return this;
  1538. },
  1539. // Creates the `this.el` and `this.$el` references for this view using the
  1540. // given `el`. `el` can be a CSS selector or an HTML string, a jQuery
  1541. // context or an element. Subclasses can override this to utilize an
  1542. // alternative DOM manipulation API and are only required to set the
  1543. // `this.el` property.
  1544. _setElement: function(el) {
  1545. this.$el = el instanceof Backbone.$ ? el : Backbone.$(el);
  1546. this.el = this.$el[0];
  1547. },
  1548. // Set callbacks, where `this.events` is a hash of
  1549. //
  1550. // *{"event selector": "callback"}*
  1551. //
  1552. // {
  1553. // 'mousedown .title': 'edit',
  1554. // 'click .button': 'save',
  1555. // 'click .open': function(e) { ... }
  1556. // }
  1557. //
  1558. // pairs. Callbacks will be bound to the view, with `this` set properly.
  1559. // Uses event delegation for efficiency.
  1560. // Omitting the selector binds the event to `this.el`.
  1561. delegateEvents: function(events) {
  1562. events || (events = _.result(this, 'events'));
  1563. if (!events) return this;
  1564. this.undelegateEvents();
  1565. for (var key in events) {
  1566. var method = events[key];
  1567. if (!_.isFunction(method)) method = this[method];
  1568. if (!method) continue;
  1569. var match = key.match(delegateEventSplitter);
  1570. this.delegate(match[1], match[2], _.bind(method, this));
  1571. }
  1572. return this;
  1573. },
  1574. // Add a single event listener to the view's element (or a child element
  1575. // using `selector`). This only works for delegate-able events: not `focus`,
  1576. // `blur`, and not `change`, `submit`, and `reset` in Internet Explorer.
  1577. delegate: function(eventName, selector, listener) {
  1578. this.$el.on(eventName + '.delegateEvents' + this.cid, selector, listener);
  1579. return this;
  1580. },
  1581. // Clears all callbacks previously bound to the view by `delegateEvents`.
  1582. // You usually don't need to use this, but may wish to if you have multiple
  1583. // Backbone views attached to the same DOM element.
  1584. undelegateEvents: function() {
  1585. if (this.$el) this.$el.off('.delegateEvents' + this.cid);
  1586. return this;
  1587. },
  1588. // A finer-grained `undelegateEvents` for removing a single delegated event.
  1589. // `selector` and `listener` are both optional.
  1590. undelegate: function(eventName, selector, listener) {
  1591. this.$el.off(eventName + '.delegateEvents' + this.cid, selector, listener);
  1592. return this;
  1593. },
  1594. // Produces a DOM element to be assigned to your view. Exposed for
  1595. // subclasses using an alternative DOM manipulation API.
  1596. _createElement: function(tagName) {
  1597. return document.createElement(tagName);
  1598. },
  1599. // Ensure that the View has a DOM element to render into.
  1600. // If `this.el` is a string, pass it through `$()`, take the first
  1601. // matching element, and re-assign it to `el`. Otherwise, create
  1602. // an element from the `id`, `className` and `tagName` properties.
  1603. _ensureElement: function() {
  1604. if (!this.el) {
  1605. var attrs = _.extend({}, _.result(this, 'attributes'));
  1606. if (this.id) attrs.id = _.result(this, 'id');
  1607. if (this.className) attrs['class'] = _.result(this, 'className');
  1608. this.setElement(this._createElement(_.result(this, 'tagName')));
  1609. this._setAttributes(attrs);
  1610. } else {
  1611. this.setElement(_.result(this, 'el'));
  1612. }
  1613. },
  1614. // Set attributes from a hash on this view's element. Exposed for
  1615. // subclasses using an alternative DOM manipulation API.
  1616. _setAttributes: function(attributes) {
  1617. this.$el.attr(attributes);
  1618. }
  1619. });
  1620. // Backbone.sync
  1621. // -------------
  1622. // Override this function to change the manner in which Backbone persists
  1623. // models to the server. You will be passed the type of request, and the
  1624. // model in question. By default, makes a RESTful Ajax request
  1625. // to the model's `url()`. Some possible customizations could be:
  1626. //
  1627. // * Use `setTimeout` to batch rapid-fire updates into a single request.
  1628. // * Send up the models as XML instead of JSON.
  1629. // * Persist models via WebSockets instead of Ajax.
  1630. //
  1631. // Turn on `Backbone.emulateHTTP` in order to send `PUT` and `DELETE` requests
  1632. // as `POST`, with a `_method` parameter containing the true HTTP method,
  1633. // as well as all requests with the body as `application/x-www-form-urlencoded`
  1634. // instead of `application/json` with the model in a param named `model`.
  1635. // Useful when interfacing with server-side languages like **PHP** that make
  1636. // it difficult to read the body of `PUT` requests.
  1637. Backbone.sync = function(method, model, options) {
  1638. var type = methodMap[method];
  1639. // Default options, unless specified.
  1640. _.defaults(options || (options = {}), {
  1641. emulateHTTP: Backbone.emulateHTTP,
  1642. emulateJSON: Backbone.emulateJSON
  1643. });
  1644. // Default JSON-request options.
  1645. var params = {type: type, dataType: 'json'};
  1646. // Ensure that we have a URL.
  1647. if (!options.url) {
  1648. params.url = _.result(model, 'url') || urlError();
  1649. }
  1650. // Ensure that we have the appropriate request data.
  1651. if (options.data == null && model && (method === 'create' || method === 'update' || method === 'patch')) {
  1652. params.contentType = 'application/json';
  1653. params.data = JSON.stringify(options.attrs || model.toJSON(options));
  1654. }
  1655. // For older servers, emulate JSON by encoding the request into an HTML-form.
  1656. if (options.emulateJSON) {
  1657. params.contentType = 'application/x-www-form-urlencoded';
  1658. params.data = params.data ? {model: params.data} : {};
  1659. }
  1660. // For older servers, emulate HTTP by mimicking the HTTP method with `_method`
  1661. // And an `X-HTTP-Method-Override` header.
  1662. if (options.emulateHTTP && (type === 'PUT' || type === 'DELETE' || type === 'PATCH')) {
  1663. params.type = 'POST';
  1664. if (options.emulateJSON) params.data._method = type;
  1665. var beforeSend = options.beforeSend;
  1666. options.beforeSend = function(xhr) {
  1667. xhr.setRequestHeader('X-HTTP-Method-Override', type);
  1668. if (beforeSend) return beforeSend.apply(this, arguments);
  1669. };
  1670. }
  1671. // Don't process data on a non-GET request.
  1672. if (params.type !== 'GET' && !options.emulateJSON) {
  1673. params.processData = false;
  1674. }
  1675. // Pass along `textStatus` and `errorThrown` from jQuery.
  1676. var error = options.error;
  1677. options.error = function(xhr, textStatus, errorThrown) {
  1678. options.textStatus = textStatus;
  1679. options.errorThrown = errorThrown;
  1680. if (error) error.call(options.context, xhr, textStatus, errorThrown);
  1681. };
  1682. // Make the request, allowing the user to override any Ajax options.
  1683. var xhr = options.xhr = Backbone.ajax(_.extend(params, options));
  1684. model.trigger('request', model, xhr, options);
  1685. return xhr;
  1686. };
  1687. // Map from CRUD to HTTP for our default `Backbone.sync` implementation.
  1688. var methodMap = {
  1689. 'create': 'POST',
  1690. 'update': 'PUT',
  1691. 'patch': 'PATCH',
  1692. 'delete': 'DELETE',
  1693. 'read': 'GET'
  1694. };
  1695. // Set the default implementation of `Backbone.ajax` to proxy through to `$`.
  1696. // Override this if you'd like to use a different library.
  1697. Backbone.ajax = function() {
  1698. return Backbone.$.ajax.apply(Backbone.$, arguments);
  1699. };
  1700. // Backbone.Router
  1701. // ---------------
  1702. // Routers map faux-URLs to actions, and fire events when routes are
  1703. // matched. Creating a new one sets its `routes` hash, if not set statically.
  1704. var Router = Backbone.Router = function(options) {
  1705. options || (options = {});
  1706. if (options.routes) this.routes = options.routes;
  1707. this._bindRoutes();
  1708. this.initialize.apply(this, arguments);
  1709. };
  1710. // Cached regular expressions for matching named param parts and splatted
  1711. // parts of route strings.
  1712. var optionalParam = /\((.*?)\)/g;
  1713. var namedParam = /(\(\?)?:\w+/g;
  1714. var splatParam = /\*\w+/g;
  1715. var escapeRegExp = /[\-{}\[\]+?.,\\\^$|#\s]/g;
  1716. // Set up all inheritable **Backbone.Router** properties and methods.
  1717. _.extend(Router.prototype, Events, {
  1718. // Initialize is an empty function by default. Override it with your own
  1719. // initialization logic.
  1720. initialize: function(){},
  1721. // Manually bind a single named route to a callback. For example:
  1722. //
  1723. // this.route('search/:query/p:num', 'search', function(query, num) {
  1724. // ...
  1725. // });
  1726. //
  1727. route: function(route, name, callback) {
  1728. if (!_.isRegExp(route)) route = this._routeToRegExp(route);
  1729. if (_.isFunction(name)) {
  1730. callback = name;
  1731. name = '';
  1732. }
  1733. if (!callback) callback = this[name];
  1734. var router = this;
  1735. Backbone.history.route(route, function(fragment) {
  1736. var args = router._extractParameters(route, fragment);
  1737. if (router.execute(callback, args, name) !== false) {
  1738. router.trigger.apply(router, ['route:' + name].concat(args));
  1739. router.trigger('route', name, args);
  1740. Backbone.history.trigger('route', router, name, args);
  1741. }
  1742. });
  1743. return this;
  1744. },
  1745. // Execute a route handler with the provided parameters. This is an
  1746. // excellent place to do pre-route setup or post-route cleanup.
  1747. execute: function(callback, args, name) {
  1748. if (callback) callback.apply(this, args);
  1749. },
  1750. // Simple proxy to `Backbone.history` to save a fragment into the history.
  1751. navigate: function(fragment, options) {
  1752. Backbone.history.navigate(fragment, options);
  1753. return this;
  1754. },
  1755. // Bind all defined routes to `Backbone.history`. We have to reverse the
  1756. // order of the routes here to support behavior where the most general
  1757. // routes can be defined at the bottom of the route map.
  1758. _bindRoutes: function() {
  1759. if (!this.routes) return;
  1760. this.routes = _.result(this, 'routes');
  1761. var route, routes = _.keys(this.routes);
  1762. while ((route = routes.pop()) != null) {
  1763. this.route(route, this.routes[route]);
  1764. }
  1765. },
  1766. // Convert a route string into a regular expression, suitable for matching
  1767. // against the current location hash.
  1768. _routeToRegExp: function(route) {
  1769. route = route.replace(escapeRegExp, '\\$&')
  1770. .replace(optionalParam, '(?:$1)?')
  1771. .replace(namedParam, function(match, optional) {
  1772. return optional ? match : '([^/?]+)';
  1773. })
  1774. .replace(splatParam, '([^?]*?)');
  1775. return new RegExp('^' + route + '(?:\\?([\\s\\S]*))?$');
  1776. },
  1777. // Given a route, and a URL fragment that it matches, return the array of
  1778. // extracted decoded parameters. Empty or unmatched parameters will be
  1779. // treated as `null` to normalize cross-browser behavior.
  1780. _extractParameters: function(route, fragment) {
  1781. var params = route.exec(fragment).slice(1);
  1782. return _.map(params, function(param, i) {
  1783. // Don't decode the search params.
  1784. if (i === params.length - 1) return param || null;
  1785. return param ? decodeURIComponent(param) : null;
  1786. });
  1787. }
  1788. });
  1789. // Backbone.History
  1790. // ----------------
  1791. // Handles cross-browser history management, based on either
  1792. // [pushState](http://diveintohtml5.info/history.html) and real URLs, or
  1793. // [onhashchange](https://developer.mozilla.org/en-US/docs/DOM/window.onhashchange)
  1794. // and URL fragments. If the browser supports neither (old IE, natch),
  1795. // falls back to polling.
  1796. var History = Backbone.History = function() {
  1797. this.handlers = [];
  1798. this.checkUrl = _.bind(this.checkUrl, this);
  1799. // Ensure that `History` can be used outside of the browser.
  1800. if (typeof window !== 'undefined') {
  1801. this.location = window.location;
  1802. this.history = window.history;
  1803. }
  1804. };
  1805. // Cached regex for stripping a leading hash/slash and trailing space.
  1806. var routeStripper = /^[#\/]|\s+$/g;
  1807. // Cached regex for stripping leading and trailing slashes.
  1808. var rootStripper = /^\/+|\/+$/g;
  1809. // Cached regex for stripping urls of hash.
  1810. var pathStripper = /#.*$/;
  1811. // Has the history handling already been started?
  1812. History.started = false;
  1813. // Set up all inheritable **Backbone.History** properties and methods.
  1814. _.extend(History.prototype, Events, {
  1815. // The default interval to poll for hash changes, if necessary, is
  1816. // twenty times a second.
  1817. interval: 50,
  1818. // Are we at the app root?
  1819. atRoot: function() {
  1820. var path = this.location.pathname.replace(/[^\/]$/, '$&/');
  1821. return path === this.root && !this.getSearch();
  1822. },
  1823. // Does the pathname match the root?
  1824. matchRoot: function() {
  1825. var path = this.decodeFragment(this.location.pathname);
  1826. var rootPath = path.slice(0, this.root.length - 1) + '/';
  1827. return rootPath === this.root;
  1828. },
  1829. // Unicode characters in `location.pathname` are percent encoded so they're
  1830. // decoded for comparison. `%25` should not be decoded since it may be part
  1831. // of an encoded parameter.
  1832. decodeFragment: function(fragment) {
  1833. return decodeURI(fragment.replace(/%25/g, '%2525'));
  1834. },
  1835. // In IE6, the hash fragment and search params are incorrect if the
  1836. // fragment contains `?`.
  1837. getSearch: function() {
  1838. var match = this.location.href.replace(/#.*/, '').match(/\?.+/);
  1839. return match ? match[0] : '';
  1840. },
  1841. // Gets the true hash value. Cannot use location.hash directly due to bug
  1842. // in Firefox where location.hash will always be decoded.
  1843. getHash: function(window) {
  1844. var match = (window || this).location.href.match(/#(.*)$/);
  1845. return match ? match[1] : '';
  1846. },
  1847. // Get the pathname and search params, without the root.
  1848. getPath: function() {
  1849. var path = this.decodeFragment(
  1850. this.location.pathname + this.getSearch()
  1851. ).slice(this.root.length - 1);
  1852. return path.charAt(0) === '/' ? path.slice(1) : path;
  1853. },
  1854. // Get the cross-browser normalized URL fragment from the path or hash.
  1855. getFragment: function(fragment) {
  1856. if (fragment == null) {
  1857. if (this._usePushState || !this._wantsHashChange) {
  1858. fragment = this.getPath();
  1859. } else {
  1860. fragment = this.getHash();
  1861. }
  1862. }
  1863. return fragment.replace(routeStripper, '');
  1864. },
  1865. // Start the hash change handling, returning `true` if the current URL matches
  1866. // an existing route, and `false` otherwise.
  1867. start: function(options) {
  1868. if (History.started) throw new Error('Backbone.history has already been started');
  1869. History.started = true;
  1870. // Figure out the initial configuration. Do we need an iframe?
  1871. // Is pushState desired ... is it available?
  1872. this.options = _.extend({root: '/'}, this.options, options);
  1873. this.root = this.options.root;
  1874. this._wantsHashChange = this.options.hashChange !== false;
  1875. this._hasHashChange = 'onhashchange' in window && (document.documentMode === void 0 || document.documentMode > 7);
  1876. this._useHashChange = this._wantsHashChange && this._hasHashChange;
  1877. this._wantsPushState = !!this.options.pushState;
  1878. this._hasPushState = !!(this.history && this.history.pushState);
  1879. this._usePushState = this._wantsPushState && this._hasPushState;
  1880. this.fragment = this.getFragment();
  1881. // Normalize root to always include a leading and trailing slash.
  1882. this.root = ('/' + this.root + '/').replace(rootStripper, '/');
  1883. // Transition from hashChange to pushState or vice versa if both are
  1884. // requested.
  1885. if (this._wantsHashChange && this._wantsPushState) {
  1886. // If we've started off with a route from a `pushState`-enabled
  1887. // browser, but we're currently in a browser that doesn't support it...
  1888. if (!this._hasPushState && !this.atRoot()) {
  1889. var rootPath = this.root.slice(0, -1) || '/';
  1890. this.location.replace(rootPath + '#' + this.getPath());
  1891. // Return immediately as browser will do redirect to new url
  1892. return true;
  1893. // Or if we've started out with a hash-based route, but we're currently
  1894. // in a browser where it could be `pushState`-based instead...
  1895. } else if (this._hasPushState && this.atRoot()) {
  1896. this.navigate(this.getHash(), {replace: true});
  1897. }
  1898. }
  1899. // Proxy an iframe to handle location events if the browser doesn't
  1900. // support the `hashchange` event, HTML5 history, or the user wants
  1901. // `hashChange` but not `pushState`.
  1902. if (!this._hasHashChange && this._wantsHashChange && !this._usePushState) {
  1903. this.iframe = document.createElement('iframe');
  1904. this.iframe.src = 'javascript:0';
  1905. this.iframe.style.display = 'none';
  1906. this.iframe.tabIndex = -1;
  1907. var body = document.body;
  1908. // Using `appendChild` will throw on IE < 9 if the document is not ready.
  1909. var iWindow = body.insertBefore(this.iframe, body.firstChild).contentWindow;
  1910. iWindow.document.open();
  1911. iWindow.document.close();
  1912. iWindow.location.hash = '#' + this.fragment;
  1913. }
  1914. // Add a cross-platform `addEventListener` shim for older browsers.
  1915. var addEventListener = window.addEventListener || function(eventName, listener) {
  1916. return attachEvent('on' + eventName, listener);
  1917. };
  1918. // Depending on whether we're using pushState or hashes, and whether
  1919. // 'onhashchange' is supported, determine how we check the URL state.
  1920. if (this._usePushState) {
  1921. addEventListener('popstate', this.checkUrl, false);
  1922. } else if (this._useHashChange && !this.iframe) {
  1923. addEventListener('hashchange', this.checkUrl, false);
  1924. } else if (this._wantsHashChange) {
  1925. this._checkUrlInterval = setInterval(this.checkUrl, this.interval);
  1926. }
  1927. if (!this.options.silent) return this.loadUrl();
  1928. },
  1929. // Disable Backbone.history, perhaps temporarily. Not useful in a real app,
  1930. // but possibly useful for unit testing Routers.
  1931. stop: function() {
  1932. // Add a cross-platform `removeEventListener` shim for older browsers.
  1933. var removeEventListener = window.removeEventListener || function(eventName, listener) {
  1934. return detachEvent('on' + eventName, listener);
  1935. };
  1936. // Remove window listeners.
  1937. if (this._usePushState) {
  1938. removeEventListener('popstate', this.checkUrl, false);
  1939. } else if (this._useHashChange && !this.iframe) {
  1940. removeEventListener('hashchange', this.checkUrl, false);
  1941. }
  1942. // Clean up the iframe if necessary.
  1943. if (this.iframe) {
  1944. document.body.removeChild(this.iframe);
  1945. this.iframe = null;
  1946. }
  1947. // Some environments will throw when clearing an undefined interval.
  1948. if (this._checkUrlInterval) clearInterval(this._checkUrlInterval);
  1949. History.started = false;
  1950. },
  1951. // Add a route to be tested when the fragment changes. Routes added later
  1952. // may override previous routes.
  1953. route: function(route, callback) {
  1954. this.handlers.unshift({route: route, callback: callback});
  1955. },
  1956. // Checks the current URL to see if it has changed, and if it has,
  1957. // calls `loadUrl`, normalizing across the hidden iframe.
  1958. checkUrl: function(e) {
  1959. var current = this.getFragment();
  1960. // If the user pressed the back button, the iframe's hash will have
  1961. // changed and we should use that for comparison.
  1962. if (current === this.fragment && this.iframe) {
  1963. current = this.getHash(this.iframe.contentWindow);
  1964. }
  1965. if (current === this.fragment) return false;
  1966. if (this.iframe) this.navigate(current);
  1967. this.loadUrl();
  1968. },
  1969. // Attempt to load the current URL fragment. If a route succeeds with a
  1970. // match, returns `true`. If no defined routes matches the fragment,
  1971. // returns `false`.
  1972. loadUrl: function(fragment) {
  1973. // If the root doesn't match, no routes can match either.
  1974. if (!this.matchRoot()) return false;
  1975. fragment = this.fragment = this.getFragment(fragment);
  1976. return _.some(this.handlers, function(handler) {
  1977. if (handler.route.test(fragment)) {
  1978. handler.callback(fragment);
  1979. return true;
  1980. }
  1981. });
  1982. },
  1983. // Save a fragment into the hash history, or replace the URL state if the
  1984. // 'replace' option is passed. You are responsible for properly URL-encoding
  1985. // the fragment in advance.
  1986. //
  1987. // The options object can contain `trigger: true` if you wish to have the
  1988. // route callback be fired (not usually desirable), or `replace: true`, if
  1989. // you wish to modify the current URL without adding an entry to the history.
  1990. navigate: function(fragment, options) {
  1991. if (!History.started) return false;
  1992. if (!options || options === true) options = {trigger: !!options};
  1993. // Normalize the fragment.
  1994. fragment = this.getFragment(fragment || '');
  1995. // Don't include a trailing slash on the root.
  1996. var rootPath = this.root;
  1997. if (fragment === '' || fragment.charAt(0) === '?') {
  1998. rootPath = rootPath.slice(0, -1) || '/';
  1999. }
  2000. var url = rootPath + fragment;
  2001. // Strip the hash and decode for matching.
  2002. fragment = this.decodeFragment(fragment.replace(pathStripper, ''));
  2003. if (this.fragment === fragment) return;
  2004. this.fragment = fragment;
  2005. // If pushState is available, we use it to set the fragment as a real URL.
  2006. if (this._usePushState) {
  2007. this.history[options.replace ? 'replaceState' : 'pushState']({}, document.title, url);
  2008. // If hash changes haven't been explicitly disabled, update the hash
  2009. // fragment to store history.
  2010. } else if (this._wantsHashChange) {
  2011. this._updateHash(this.location, fragment, options.replace);
  2012. if (this.iframe && fragment !== this.getHash(this.iframe.contentWindow)) {
  2013. var iWindow = this.iframe.contentWindow;
  2014. // Opening and closing the iframe tricks IE7 and earlier to push a
  2015. // history entry on hash-tag change. When replace is true, we don't
  2016. // want this.
  2017. if (!options.replace) {
  2018. iWindow.document.open();
  2019. iWindow.document.close();
  2020. }
  2021. this._updateHash(iWindow.location, fragment, options.replace);
  2022. }
  2023. // If you've told us that you explicitly don't want fallback hashchange-
  2024. // based history, then `navigate` becomes a page refresh.
  2025. } else {
  2026. return this.location.assign(url);
  2027. }
  2028. if (options.trigger) return this.loadUrl(fragment);
  2029. },
  2030. // Update the hash location, either replacing the current entry, or adding
  2031. // a new one to the browser history.
  2032. _updateHash: function(location, fragment, replace) {
  2033. if (replace) {
  2034. var href = location.href.replace(/(javascript:|#).*$/, '');
  2035. location.replace(href + '#' + fragment);
  2036. } else {
  2037. // Some browsers require that `hash` contains a leading #.
  2038. location.hash = '#' + fragment;
  2039. }
  2040. }
  2041. });
  2042. // Create the default Backbone.history.
  2043. Backbone.history = new History;
  2044. // Helpers
  2045. // -------
  2046. // Helper function to correctly set up the prototype chain for subclasses.
  2047. // Similar to `goog.inherits`, but uses a hash of prototype properties and
  2048. // class properties to be extended.
  2049. var extend = function(protoProps, staticProps) {
  2050. var parent = this;
  2051. var child;
  2052. // The constructor function for the new subclass is either defined by you
  2053. // (the "constructor" property in your `extend` definition), or defaulted
  2054. // by us to simply call the parent constructor.
  2055. if (protoProps && _.has(protoProps, 'constructor')) {
  2056. child = protoProps.constructor;
  2057. } else {
  2058. child = function(){ return parent.apply(this, arguments); };
  2059. }
  2060. // Add static properties to the constructor function, if supplied.
  2061. _.extend(child, parent, staticProps);
  2062. // Set the prototype chain to inherit from `parent`, without calling
  2063. // `parent`'s constructor function and add the prototype properties.
  2064. child.prototype = _.create(parent.prototype, protoProps);
  2065. child.prototype.constructor = child;
  2066. // Set a convenience property in case the parent's prototype is needed
  2067. // later.
  2068. child.__super__ = parent.prototype;
  2069. return child;
  2070. };
  2071. // Set up inheritance for the model, collection, router, view and history.
  2072. Model.extend = Collection.extend = Router.extend = View.extend = History.extend = extend;
  2073. // Throw an error when a URL is needed, and none is supplied.
  2074. var urlError = function() {
  2075. throw new Error('A "url" property or function must be specified');
  2076. };
  2077. // Wrap an optional error callback with a fallback error event.
  2078. var wrapError = function(model, options) {
  2079. var error = options.error;
  2080. options.error = function(resp) {
  2081. if (error) error.call(options.context, model, resp, options);
  2082. model.trigger('error', model, resp, options);
  2083. };
  2084. };
  2085. return Backbone;
  2086. });
  2087. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
  2088. /***/ }),
  2089. /***/ "./node_modules/bootstrap.native/dist/bootstrap-native-v4.js":
  2090. /*!*******************************************************************!*\
  2091. !*** ./node_modules/bootstrap.native/dist/bootstrap-native-v4.js ***!
  2092. \*******************************************************************/
  2093. /*! no static exports found */
  2094. /***/ (function(module, exports, __webpack_require__) {
  2095. /* WEBPACK VAR INJECTION */(function(global) {var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// Native Javascript for Bootstrap 4 v2.0.23 | © dnp_theme | MIT-License
  2096. (function (root, factory) {
  2097. if (true) {
  2098. // AMD support:
  2099. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  2100. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  2101. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  2102. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  2103. } else { var bsn; }
  2104. }(this, function () {
  2105. /* Native Javascript for Bootstrap 4 | Internal Utility Functions
  2106. ----------------------------------------------------------------*/
  2107. "use strict";
  2108. // globals
  2109. var globalObject = typeof global !== 'undefined' ? global : this||window,
  2110. DOC = document, HTML = DOC.documentElement, body = 'body', // allow the library to be used in <head>
  2111. // Native Javascript for Bootstrap Global Object
  2112. BSN = globalObject.BSN = {},
  2113. supports = BSN.supports = [],
  2114. // function toggle attributes
  2115. dataToggle = 'data-toggle',
  2116. dataDismiss = 'data-dismiss',
  2117. dataSpy = 'data-spy',
  2118. dataRide = 'data-ride',
  2119. // components
  2120. stringAlert = 'Alert',
  2121. stringButton = 'Button',
  2122. stringCarousel = 'Carousel',
  2123. stringCollapse = 'Collapse',
  2124. stringDropdown = 'Dropdown',
  2125. stringModal = 'Modal',
  2126. stringPopover = 'Popover',
  2127. stringScrollSpy = 'ScrollSpy',
  2128. stringTab = 'Tab',
  2129. stringTooltip = 'Tooltip',
  2130. // options DATA API
  2131. databackdrop = 'data-backdrop',
  2132. dataKeyboard = 'data-keyboard',
  2133. dataTarget = 'data-target',
  2134. dataInterval = 'data-interval',
  2135. dataHeight = 'data-height',
  2136. dataPause = 'data-pause',
  2137. dataTitle = 'data-title',
  2138. dataOriginalTitle = 'data-original-title',
  2139. dataOriginalText = 'data-original-text',
  2140. dataDismissible = 'data-dismissible',
  2141. dataTrigger = 'data-trigger',
  2142. dataAnimation = 'data-animation',
  2143. dataContainer = 'data-container',
  2144. dataPlacement = 'data-placement',
  2145. dataDelay = 'data-delay',
  2146. dataOffsetTop = 'data-offset-top',
  2147. dataOffsetBottom = 'data-offset-bottom',
  2148. // option keys
  2149. backdrop = 'backdrop', keyboard = 'keyboard', delay = 'delay',
  2150. content = 'content', target = 'target',
  2151. interval = 'interval', pause = 'pause', animation = 'animation',
  2152. placement = 'placement', container = 'container',
  2153. // box model
  2154. offsetTop = 'offsetTop', offsetBottom = 'offsetBottom',
  2155. offsetLeft = 'offsetLeft',
  2156. scrollTop = 'scrollTop', scrollLeft = 'scrollLeft',
  2157. clientWidth = 'clientWidth', clientHeight = 'clientHeight',
  2158. offsetWidth = 'offsetWidth', offsetHeight = 'offsetHeight',
  2159. innerWidth = 'innerWidth', innerHeight = 'innerHeight',
  2160. scrollHeight = 'scrollHeight', height = 'height',
  2161. // aria
  2162. ariaExpanded = 'aria-expanded',
  2163. ariaHidden = 'aria-hidden',
  2164. // event names
  2165. clickEvent = 'click',
  2166. hoverEvent = 'hover',
  2167. keydownEvent = 'keydown',
  2168. keyupEvent = 'keyup',
  2169. resizeEvent = 'resize',
  2170. scrollEvent = 'scroll',
  2171. // originalEvents
  2172. showEvent = 'show',
  2173. shownEvent = 'shown',
  2174. hideEvent = 'hide',
  2175. hiddenEvent = 'hidden',
  2176. closeEvent = 'close',
  2177. closedEvent = 'closed',
  2178. slidEvent = 'slid',
  2179. slideEvent = 'slide',
  2180. changeEvent = 'change',
  2181. // other
  2182. getAttribute = 'getAttribute',
  2183. setAttribute = 'setAttribute',
  2184. hasAttribute = 'hasAttribute',
  2185. createElement = 'createElement',
  2186. appendChild = 'appendChild',
  2187. innerHTML = 'innerHTML',
  2188. getElementsByTagName = 'getElementsByTagName',
  2189. preventDefault = 'preventDefault',
  2190. getBoundingClientRect = 'getBoundingClientRect',
  2191. querySelectorAll = 'querySelectorAll',
  2192. getElementsByCLASSNAME = 'getElementsByClassName',
  2193. getComputedStyle = 'getComputedStyle',
  2194. indexOf = 'indexOf',
  2195. parentNode = 'parentNode',
  2196. length = 'length',
  2197. toLowerCase = 'toLowerCase',
  2198. Transition = 'Transition',
  2199. Duration = 'Duration',
  2200. Webkit = 'Webkit',
  2201. style = 'style',
  2202. push = 'push',
  2203. tabindex = 'tabindex',
  2204. contains = 'contains',
  2205. active = 'active',
  2206. showClass = 'show',
  2207. collapsing = 'collapsing',
  2208. disabled = 'disabled',
  2209. loading = 'loading',
  2210. left = 'left',
  2211. right = 'right',
  2212. top = 'top',
  2213. bottom = 'bottom',
  2214. // tooltip / popover
  2215. mouseHover = ('onmouseleave' in DOC) ? [ 'mouseenter', 'mouseleave'] : [ 'mouseover', 'mouseout' ],
  2216. tipPositions = /\b(top|bottom|left|right)+/,
  2217. // modal
  2218. modalOverlay = 0,
  2219. fixedTop = 'fixed-top',
  2220. fixedBottom = 'fixed-bottom',
  2221. // transitionEnd since 2.0.4
  2222. supportTransitions = Webkit+Transition in HTML[style] || Transition[toLowerCase]() in HTML[style],
  2223. transitionEndEvent = Webkit+Transition in HTML[style] ? Webkit[toLowerCase]()+Transition+'End' : Transition[toLowerCase]()+'end',
  2224. transitionDuration = Webkit+Duration in HTML[style] ? Webkit[toLowerCase]()+Transition+Duration : Transition[toLowerCase]()+Duration,
  2225. // set new focus element since 2.0.3
  2226. setFocus = function(element){
  2227. element.focus ? element.focus() : element.setActive();
  2228. },
  2229. // class manipulation, since 2.0.0 requires polyfill.js
  2230. addClass = function(element,classNAME) {
  2231. element.classList.add(classNAME);
  2232. },
  2233. removeClass = function(element,classNAME) {
  2234. element.classList.remove(classNAME);
  2235. },
  2236. hasClass = function(element,classNAME){ // since 2.0.0
  2237. return element.classList[contains](classNAME);
  2238. },
  2239. // selection methods
  2240. getElementsByClassName = function(element,classNAME) { // returns Array
  2241. return [].slice.call(element[getElementsByCLASSNAME]( classNAME ));
  2242. },
  2243. queryElement = function (selector, parent) {
  2244. var lookUp = parent ? parent : DOC;
  2245. return typeof selector === 'object' ? selector : lookUp.querySelector(selector);
  2246. },
  2247. getClosest = function (element, selector) { //element is the element and selector is for the closest parent element to find
  2248. // source http://gomakethings.com/climbing-up-and-down-the-dom-tree-with-vanilla-javascript/
  2249. var firstChar = selector.charAt(0), selectorSubstring = selector.substr(1);
  2250. if ( firstChar === '.' ) {// If selector is a class
  2251. for ( ; element && element !== DOC; element = element[parentNode] ) { // Get closest match
  2252. if ( queryElement(selector,element[parentNode]) !== null && hasClass(element,selectorSubstring) ) { return element; }
  2253. }
  2254. } else if ( firstChar === '#' ) { // If selector is an ID
  2255. for ( ; element && element !== DOC; element = element[parentNode] ) { // Get closest match
  2256. if ( element.id === selectorSubstring ) { return element; }
  2257. }
  2258. }
  2259. return false;
  2260. },
  2261. // event attach jQuery style / trigger since 1.2.0
  2262. on = function (element, event, handler) {
  2263. element.addEventListener(event, handler, false);
  2264. },
  2265. off = function(element, event, handler) {
  2266. element.removeEventListener(event, handler, false);
  2267. },
  2268. one = function (element, event, handler) { // one since 2.0.4
  2269. on(element, event, function handlerWrapper(e){
  2270. handler(e);
  2271. off(element, event, handlerWrapper);
  2272. });
  2273. },
  2274. getTransitionDurationFromElement = function(element) {
  2275. var duration = globalObject[getComputedStyle](element)[transitionDuration];
  2276. duration = parseFloat(duration);
  2277. duration = typeof duration === 'number' && !isNaN(duration) ? duration * 1000 : 0;
  2278. return duration + 50; // we take a short offset to make sure we fire on the next frame after animation
  2279. },
  2280. emulateTransitionEnd = function(element,handler){ // emulateTransitionEnd since 2.0.4
  2281. var called = 0, duration = getTransitionDurationFromElement(element);
  2282. supportTransitions && one(element, transitionEndEvent, function(e){ handler(e); called = 1; });
  2283. setTimeout(function() { !called && handler(); }, duration);
  2284. },
  2285. bootstrapCustomEvent = function (eventName, componentName, related) {
  2286. var OriginalCustomEvent = new CustomEvent( eventName + '.bs.' + componentName);
  2287. OriginalCustomEvent.relatedTarget = related;
  2288. this.dispatchEvent(OriginalCustomEvent);
  2289. },
  2290. // tooltip / popover stuff
  2291. getScroll = function() { // also Affix and ScrollSpy uses it
  2292. return {
  2293. y : globalObject.pageYOffset || HTML[scrollTop],
  2294. x : globalObject.pageXOffset || HTML[scrollLeft]
  2295. }
  2296. },
  2297. styleTip = function(link,element,position,parent) { // both popovers and tooltips (target,tooltip,placement,elementToAppendTo)
  2298. var elementDimensions = { w : element[offsetWidth], h: element[offsetHeight] },
  2299. windowWidth = (HTML[clientWidth] || DOC[body][clientWidth]),
  2300. windowHeight = (HTML[clientHeight] || DOC[body][clientHeight]),
  2301. rect = link[getBoundingClientRect](),
  2302. scroll = parent === DOC[body] ? getScroll() : { x: parent[offsetLeft] + parent[scrollLeft], y: parent[offsetTop] + parent[scrollTop] },
  2303. linkDimensions = { w: rect[right] - rect[left], h: rect[bottom] - rect[top] },
  2304. isPopover = hasClass(element,'popover'),
  2305. topPosition, leftPosition,
  2306. arrow = queryElement('.arrow',element),
  2307. arrowTop, arrowLeft, arrowWidth, arrowHeight,
  2308. halfTopExceed = rect[top] + linkDimensions.h/2 - elementDimensions.h/2 < 0,
  2309. halfLeftExceed = rect[left] + linkDimensions.w/2 - elementDimensions.w/2 < 0,
  2310. halfRightExceed = rect[left] + elementDimensions.w/2 + linkDimensions.w/2 >= windowWidth,
  2311. halfBottomExceed = rect[top] + elementDimensions.h/2 + linkDimensions.h/2 >= windowHeight,
  2312. topExceed = rect[top] - elementDimensions.h < 0,
  2313. leftExceed = rect[left] - elementDimensions.w < 0,
  2314. bottomExceed = rect[top] + elementDimensions.h + linkDimensions.h >= windowHeight,
  2315. rightExceed = rect[left] + elementDimensions.w + linkDimensions.w >= windowWidth;
  2316. // recompute position
  2317. position = (position === left || position === right) && leftExceed && rightExceed ? top : position; // first, when both left and right limits are exceeded, we fall back to top|bottom
  2318. position = position === top && topExceed ? bottom : position;
  2319. position = position === bottom && bottomExceed ? top : position;
  2320. position = position === left && leftExceed ? right : position;
  2321. position = position === right && rightExceed ? left : position;
  2322. // update tooltip/popover class
  2323. element.className[indexOf](position) === -1 && (element.className = element.className.replace(tipPositions,position));
  2324. // we check the computed width & height and update here
  2325. arrowWidth = arrow[offsetWidth]; arrowHeight = arrow[offsetHeight];
  2326. // apply styling to tooltip or popover
  2327. if ( position === left || position === right ) { // secondary|side positions
  2328. if ( position === left ) { // LEFT
  2329. leftPosition = rect[left] + scroll.x - elementDimensions.w - ( isPopover ? arrowWidth : 0 );
  2330. } else { // RIGHT
  2331. leftPosition = rect[left] + scroll.x + linkDimensions.w;
  2332. }
  2333. // adjust top and arrow
  2334. if (halfTopExceed) {
  2335. topPosition = rect[top] + scroll.y;
  2336. arrowTop = linkDimensions.h/2 - arrowWidth;
  2337. } else if (halfBottomExceed) {
  2338. topPosition = rect[top] + scroll.y - elementDimensions.h + linkDimensions.h;
  2339. arrowTop = elementDimensions.h - linkDimensions.h/2 - arrowWidth;
  2340. } else {
  2341. topPosition = rect[top] + scroll.y - elementDimensions.h/2 + linkDimensions.h/2;
  2342. arrowTop = elementDimensions.h/2 - (isPopover ? arrowHeight*0.9 : arrowHeight/2);
  2343. }
  2344. } else if ( position === top || position === bottom ) { // primary|vertical positions
  2345. if ( position === top) { // TOP
  2346. topPosition = rect[top] + scroll.y - elementDimensions.h - ( isPopover ? arrowHeight : 0 );
  2347. } else { // BOTTOM
  2348. topPosition = rect[top] + scroll.y + linkDimensions.h;
  2349. }
  2350. // adjust left | right and also the arrow
  2351. if (halfLeftExceed) {
  2352. leftPosition = 0;
  2353. arrowLeft = rect[left] + linkDimensions.w/2 - arrowWidth;
  2354. } else if (halfRightExceed) {
  2355. leftPosition = windowWidth - elementDimensions.w*1.01;
  2356. arrowLeft = elementDimensions.w - ( windowWidth - rect[left] ) + linkDimensions.w/2 - arrowWidth/2;
  2357. } else {
  2358. leftPosition = rect[left] + scroll.x - elementDimensions.w/2 + linkDimensions.w/2;
  2359. arrowLeft = elementDimensions.w/2 - arrowWidth/2;
  2360. }
  2361. }
  2362. // apply style to tooltip/popover and its arrow
  2363. element[style][top] = topPosition + 'px';
  2364. element[style][left] = leftPosition + 'px';
  2365. arrowTop && (arrow[style][top] = arrowTop + 'px');
  2366. arrowLeft && (arrow[style][left] = arrowLeft + 'px');
  2367. };
  2368. BSN.version = '2.0.23';
  2369. /* Native Javascript for Bootstrap 4 | Alert
  2370. -------------------------------------------*/
  2371. // ALERT DEFINITION
  2372. // ================
  2373. var Alert = function( element ) {
  2374. // initialization element
  2375. element = queryElement(element);
  2376. // bind, target alert, duration and stuff
  2377. var self = this, component = 'alert',
  2378. alert = getClosest(element,'.'+component),
  2379. triggerHandler = function(){ hasClass(alert,'fade') ? emulateTransitionEnd(alert,transitionEndHandler) : transitionEndHandler(); },
  2380. // handlers
  2381. clickHandler = function(e){
  2382. alert = getClosest(e[target],'.'+component);
  2383. element = queryElement('['+dataDismiss+'="'+component+'"]',alert);
  2384. element && alert && (element === e[target] || element[contains](e[target])) && self.close();
  2385. },
  2386. transitionEndHandler = function(){
  2387. bootstrapCustomEvent.call(alert, closedEvent, component);
  2388. off(element, clickEvent, clickHandler); // detach it's listener
  2389. alert[parentNode].removeChild(alert);
  2390. };
  2391. // public method
  2392. this.close = function() {
  2393. if ( alert && element && hasClass(alert,showClass) ) {
  2394. bootstrapCustomEvent.call(alert, closeEvent, component);
  2395. removeClass(alert,showClass);
  2396. alert && triggerHandler();
  2397. }
  2398. };
  2399. // init
  2400. if ( !(stringAlert in element ) ) { // prevent adding event handlers twice
  2401. on(element, clickEvent, clickHandler);
  2402. }
  2403. element[stringAlert] = self;
  2404. };
  2405. // ALERT DATA API
  2406. // ==============
  2407. supports[push]([stringAlert, Alert, '['+dataDismiss+'="alert"]']);
  2408. /* Native Javascript for Bootstrap 4 | Button
  2409. ---------------------------------------------*/
  2410. // BUTTON DEFINITION
  2411. // ===================
  2412. var Button = function( element ) {
  2413. // initialization element
  2414. element = queryElement(element);
  2415. // constant
  2416. var toggled = false, // toggled makes sure to prevent triggering twice the change.bs.button events
  2417. // strings
  2418. component = 'button',
  2419. checked = 'checked',
  2420. reset = 'reset',
  2421. LABEL = 'LABEL',
  2422. INPUT = 'INPUT',
  2423. // private methods
  2424. keyHandler = function(e){
  2425. var key = e.which || e.keyCode;
  2426. key === 32 && e[target] === DOC.activeElement && toggle(e);
  2427. },
  2428. preventScroll = function(e){
  2429. var key = e.which || e.keyCode;
  2430. key === 32 && e[preventDefault]();
  2431. },
  2432. toggle = function(e) {
  2433. var label = e[target].tagName === LABEL ? e[target] : e[target][parentNode].tagName === LABEL ? e[target][parentNode] : null; // the .btn label
  2434. if ( !label ) return; //react if a label or its immediate child is clicked
  2435. var eventTarget = e[target], // the button itself, the target of the handler function
  2436. labels = getElementsByClassName(eventTarget[parentNode],'btn'), // all the button group buttons
  2437. input = label[getElementsByTagName](INPUT)[0];
  2438. if ( !input ) return; //return if no input found
  2439. // manage the dom manipulation
  2440. if ( input.type === 'checkbox' ) { //checkboxes
  2441. if ( !input[checked] ) {
  2442. addClass(label,active);
  2443. input[getAttribute](checked);
  2444. input[setAttribute](checked,checked);
  2445. input[checked] = true;
  2446. } else {
  2447. removeClass(label,active);
  2448. input[getAttribute](checked);
  2449. input.removeAttribute(checked);
  2450. input[checked] = false;
  2451. }
  2452. if (!toggled) { // prevent triggering the event twice
  2453. toggled = true;
  2454. bootstrapCustomEvent.call(input, changeEvent, component); //trigger the change for the input
  2455. bootstrapCustomEvent.call(element, changeEvent, component); //trigger the change for the btn-group
  2456. }
  2457. }
  2458. if ( input.type === 'radio' && !toggled ) { // radio buttons
  2459. if ( !input[checked] ) { // don't trigger if already active
  2460. addClass(label,active);
  2461. input[setAttribute](checked,checked);
  2462. input[checked] = true;
  2463. bootstrapCustomEvent.call(input, changeEvent, component); //trigger the change for the input
  2464. bootstrapCustomEvent.call(element, changeEvent, component); //trigger the change for the btn-group
  2465. toggled = true;
  2466. for (var i = 0, ll = labels[length]; i<ll; i++) {
  2467. var otherLabel = labels[i], otherInput = otherLabel[getElementsByTagName](INPUT)[0];
  2468. if ( otherLabel !== label && hasClass(otherLabel,active) ) {
  2469. removeClass(otherLabel,active);
  2470. otherInput.removeAttribute(checked);
  2471. otherInput[checked] = false;
  2472. bootstrapCustomEvent.call(otherInput, changeEvent, component); // trigger the change
  2473. }
  2474. }
  2475. }
  2476. }
  2477. setTimeout( function() { toggled = false; }, 50 );
  2478. };
  2479. // init
  2480. if ( !( stringButton in element ) ) { // prevent adding event handlers twice
  2481. on( element, clickEvent, toggle );
  2482. queryElement('['+tabindex+']',element) && on( element, keyupEvent, keyHandler ),
  2483. on( element, keydownEvent, preventScroll );
  2484. }
  2485. // activate items on load
  2486. var labelsToACtivate = getElementsByClassName(element, 'btn'), lbll = labelsToACtivate[length];
  2487. for (var i=0; i<lbll; i++) {
  2488. !hasClass(labelsToACtivate[i],active) && queryElement('input:checked',labelsToACtivate[i])
  2489. && addClass(labelsToACtivate[i],active);
  2490. }
  2491. element[stringButton] = this;
  2492. };
  2493. // BUTTON DATA API
  2494. // =================
  2495. supports[push]( [ stringButton, Button, '['+dataToggle+'="buttons"]' ] );
  2496. /* Native Javascript for Bootstrap 4 | Carousel
  2497. ----------------------------------------------*/
  2498. // CAROUSEL DEFINITION
  2499. // ===================
  2500. var Carousel = function( element, options ) {
  2501. // initialization element
  2502. element = queryElement( element );
  2503. // set options
  2504. options = options || {};
  2505. // DATA API
  2506. var intervalAttribute = element[getAttribute](dataInterval),
  2507. intervalOption = options[interval],
  2508. intervalData = intervalAttribute === 'false' ? 0 : parseInt(intervalAttribute),
  2509. pauseData = element[getAttribute](dataPause) === hoverEvent || false,
  2510. keyboardData = element[getAttribute](dataKeyboard) === 'true' || false,
  2511. // strings
  2512. component = 'carousel',
  2513. paused = 'paused',
  2514. direction = 'direction',
  2515. carouselItem = 'carousel-item',
  2516. dataSlideTo = 'data-slide-to';
  2517. this[keyboard] = options[keyboard] === true || keyboardData;
  2518. this[pause] = (options[pause] === hoverEvent || pauseData) ? hoverEvent : false; // false / hover
  2519. this[interval] = typeof intervalOption === 'number' ? intervalOption
  2520. : intervalOption === false || intervalData === 0 || intervalData === false ? 0
  2521. : 5000; // bootstrap carousel default interval
  2522. // bind, event targets
  2523. var self = this, index = element.index = 0, timer = element.timer = 0,
  2524. isSliding = false, // isSliding prevents click event handlers when animation is running
  2525. slides = getElementsByClassName(element,carouselItem), total = slides[length],
  2526. slideDirection = this[direction] = left,
  2527. leftArrow = getElementsByClassName(element,component+'-control-prev')[0],
  2528. rightArrow = getElementsByClassName(element,component+'-control-next')[0],
  2529. indicator = queryElement( '.'+component+'-indicators', element ),
  2530. indicators = indicator && indicator[getElementsByTagName]( "LI" ) || [];
  2531. // handlers
  2532. var pauseHandler = function () {
  2533. if ( self[interval] !==false && !hasClass(element,paused) ) {
  2534. addClass(element,paused);
  2535. !isSliding && clearInterval( timer );
  2536. }
  2537. },
  2538. resumeHandler = function() {
  2539. if ( self[interval] !== false && hasClass(element,paused) ) {
  2540. removeClass(element,paused);
  2541. !isSliding && clearInterval( timer );
  2542. !isSliding && self.cycle();
  2543. }
  2544. },
  2545. indicatorHandler = function(e) {
  2546. e[preventDefault]();
  2547. if (isSliding) return;
  2548. var eventTarget = e[target]; // event target | the current active item
  2549. if ( eventTarget && !hasClass(eventTarget,active) && eventTarget[getAttribute](dataSlideTo) ) {
  2550. index = parseInt( eventTarget[getAttribute](dataSlideTo), 10 );
  2551. } else { return false; }
  2552. self.slideTo( index ); //Do the slide
  2553. },
  2554. controlsHandler = function (e) {
  2555. e[preventDefault]();
  2556. if (isSliding) return;
  2557. var eventTarget = e.currentTarget || e.srcElement;
  2558. if ( eventTarget === rightArrow ) {
  2559. index++;
  2560. } else if ( eventTarget === leftArrow ) {
  2561. index--;
  2562. }
  2563. self.slideTo( index ); //Do the slide
  2564. },
  2565. keyHandler = function (e) {
  2566. if (isSliding) return;
  2567. switch (e.which) {
  2568. case 39:
  2569. index++;
  2570. break;
  2571. case 37:
  2572. index--;
  2573. break;
  2574. default: return;
  2575. }
  2576. self.slideTo( index ); //Do the slide
  2577. },
  2578. // private methods
  2579. isElementInScrollRange = function () {
  2580. var rect = element[getBoundingClientRect](),
  2581. viewportHeight = globalObject[innerHeight] || HTML[clientHeight]
  2582. return rect[top] <= viewportHeight && rect[bottom] >= 0; // bottom && top
  2583. },
  2584. setActivePage = function( pageIndex ) { //indicators
  2585. for ( var i = 0, icl = indicators[length]; i < icl; i++ ) {
  2586. removeClass(indicators[i],active);
  2587. }
  2588. if (indicators[pageIndex]) addClass(indicators[pageIndex], active);
  2589. };
  2590. // public methods
  2591. this.cycle = function() {
  2592. timer = setInterval(function() {
  2593. isElementInScrollRange() && (index++, self.slideTo( index ) );
  2594. }, this[interval]);
  2595. };
  2596. this.slideTo = function( next ) {
  2597. if (isSliding) return; // when controled via methods, make sure to check again
  2598. var activeItem = this.getActiveIndex(), // the current active
  2599. orientation;
  2600. // determine slideDirection first
  2601. if ( (activeItem < next ) || (activeItem === 0 && next === total -1 ) ) {
  2602. slideDirection = self[direction] = left; // next
  2603. } else if ( (activeItem > next) || (activeItem === total - 1 && next === 0 ) ) {
  2604. slideDirection = self[direction] = right; // prev
  2605. }
  2606. // find the right next index
  2607. if ( next < 0 ) { next = total - 1; }
  2608. else if ( next === total ){ next = 0; }
  2609. // update index
  2610. index = next;
  2611. orientation = slideDirection === left ? 'next' : 'prev'; //determine type
  2612. bootstrapCustomEvent.call(element, slideEvent, component, slides[next]); // here we go with the slide
  2613. isSliding = true;
  2614. clearInterval(timer);
  2615. setActivePage( next );
  2616. if ( supportTransitions && hasClass(element,'slide') ) {
  2617. addClass(slides[next],carouselItem +'-'+ orientation);
  2618. slides[next][offsetWidth];
  2619. addClass(slides[next],carouselItem +'-'+ slideDirection);
  2620. addClass(slides[activeItem],carouselItem +'-'+ slideDirection);
  2621. one(slides[next], transitionEndEvent, function(e) {
  2622. var timeout = e[target] !== slides[next] ? e.elapsedTime*1000+100 : 20;
  2623. isSliding && setTimeout(function(){
  2624. isSliding = false;
  2625. addClass(slides[next],active);
  2626. removeClass(slides[activeItem],active);
  2627. removeClass(slides[next],carouselItem +'-'+ orientation);
  2628. removeClass(slides[next],carouselItem +'-'+ slideDirection);
  2629. removeClass(slides[activeItem],carouselItem +'-'+ slideDirection);
  2630. bootstrapCustomEvent.call(element, slidEvent, component, slides[next]);
  2631. if ( !DOC.hidden && self[interval] && !hasClass(element,paused) ) {
  2632. self.cycle();
  2633. }
  2634. }, timeout);
  2635. });
  2636. } else {
  2637. addClass(slides[next],active);
  2638. slides[next][offsetWidth];
  2639. removeClass(slides[activeItem],active);
  2640. setTimeout(function() {
  2641. isSliding = false;
  2642. if ( self[interval] && !hasClass(element,paused) ) {
  2643. self.cycle();
  2644. }
  2645. bootstrapCustomEvent.call(element, slidEvent, component, slides[next]);
  2646. }, 100 );
  2647. }
  2648. };
  2649. this.getActiveIndex = function () {
  2650. return slides[indexOf](getElementsByClassName(element,carouselItem+' active')[0]) || 0;
  2651. };
  2652. // init
  2653. if ( !(stringCarousel in element ) ) { // prevent adding event handlers twice
  2654. if ( self[pause] && self[interval] ) {
  2655. on( element, mouseHover[0], pauseHandler );
  2656. on( element, mouseHover[1], resumeHandler );
  2657. on( element, 'touchstart', pauseHandler );
  2658. on( element, 'touchend', resumeHandler );
  2659. }
  2660. rightArrow && on( rightArrow, clickEvent, controlsHandler );
  2661. leftArrow && on( leftArrow, clickEvent, controlsHandler );
  2662. indicator && on( indicator, clickEvent, indicatorHandler );
  2663. self[keyboard] === true && on( globalObject, keydownEvent, keyHandler );
  2664. }
  2665. if (self.getActiveIndex()<0) {
  2666. slides[length] && addClass(slides[0],active);
  2667. indicators[length] && setActivePage(0);
  2668. }
  2669. if ( self[interval] ){ self.cycle(); }
  2670. element[stringCarousel] = self;
  2671. };
  2672. // CAROUSEL DATA API
  2673. // =================
  2674. supports[push]( [ stringCarousel, Carousel, '['+dataRide+'="carousel"]' ] );
  2675. /* Native Javascript for Bootstrap 4 | Collapse
  2676. -----------------------------------------------*/
  2677. // COLLAPSE DEFINITION
  2678. // ===================
  2679. var Collapse = function( element, options ) {
  2680. // initialization element
  2681. element = queryElement(element);
  2682. // set options
  2683. options = options || {};
  2684. // event targets and constants
  2685. var accordion = null, collapse = null, self = this,
  2686. accordionData = element[getAttribute]('data-parent'),
  2687. activeCollapse, activeElement,
  2688. // component strings
  2689. component = 'collapse',
  2690. collapsed = 'collapsed',
  2691. isAnimating = 'isAnimating',
  2692. // private methods
  2693. openAction = function(collapseElement,toggle) {
  2694. bootstrapCustomEvent.call(collapseElement, showEvent, component);
  2695. collapseElement[isAnimating] = true;
  2696. addClass(collapseElement,collapsing);
  2697. removeClass(collapseElement,component);
  2698. collapseElement[style][height] = collapseElement[scrollHeight] + 'px';
  2699. emulateTransitionEnd(collapseElement, function() {
  2700. collapseElement[isAnimating] = false;
  2701. collapseElement[setAttribute](ariaExpanded,'true');
  2702. toggle[setAttribute](ariaExpanded,'true');
  2703. removeClass(collapseElement,collapsing);
  2704. addClass(collapseElement, component);
  2705. addClass(collapseElement,showClass);
  2706. collapseElement[style][height] = '';
  2707. bootstrapCustomEvent.call(collapseElement, shownEvent, component);
  2708. });
  2709. },
  2710. closeAction = function(collapseElement,toggle) {
  2711. bootstrapCustomEvent.call(collapseElement, hideEvent, component);
  2712. collapseElement[isAnimating] = true;
  2713. collapseElement[style][height] = collapseElement[scrollHeight] + 'px'; // set height first
  2714. removeClass(collapseElement,component);
  2715. removeClass(collapseElement,showClass);
  2716. addClass(collapseElement,collapsing);
  2717. collapseElement[offsetWidth]; // force reflow to enable transition
  2718. collapseElement[style][height] = '0px';
  2719. emulateTransitionEnd(collapseElement, function() {
  2720. collapseElement[isAnimating] = false;
  2721. collapseElement[setAttribute](ariaExpanded,'false');
  2722. toggle[setAttribute](ariaExpanded,'false');
  2723. removeClass(collapseElement,collapsing);
  2724. addClass(collapseElement,component);
  2725. collapseElement[style][height] = '';
  2726. bootstrapCustomEvent.call(collapseElement, hiddenEvent, component);
  2727. });
  2728. },
  2729. getTarget = function() {
  2730. var href = element.href && element[getAttribute]('href'),
  2731. parent = element[getAttribute](dataTarget),
  2732. id = href || ( parent && parent.charAt(0) === '#' ) && parent;
  2733. return id && queryElement(id);
  2734. };
  2735. // public methods
  2736. this.toggle = function(e) {
  2737. e[preventDefault]();
  2738. if (!hasClass(collapse,showClass)) { self.show(); }
  2739. else { self.hide(); }
  2740. };
  2741. this.hide = function() {
  2742. if ( collapse[isAnimating] ) return;
  2743. closeAction(collapse,element);
  2744. addClass(element,collapsed);
  2745. };
  2746. this.show = function() {
  2747. if ( accordion ) {
  2748. activeCollapse = queryElement('.'+component+'.'+showClass,accordion);
  2749. activeElement = activeCollapse && (queryElement('['+dataToggle+'="'+component+'"]['+dataTarget+'="#'+activeCollapse.id+'"]',accordion)
  2750. || queryElement('['+dataToggle+'="'+component+'"][href="#'+activeCollapse.id+'"]',accordion) );
  2751. }
  2752. if ( !collapse[isAnimating] || activeCollapse && !activeCollapse[isAnimating] ) {
  2753. if ( activeElement && activeCollapse !== collapse ) {
  2754. closeAction(activeCollapse,activeElement);
  2755. addClass(activeElement,collapsed);
  2756. }
  2757. openAction(collapse,element);
  2758. removeClass(element,collapsed);
  2759. }
  2760. };
  2761. // init
  2762. if ( !(stringCollapse in element ) ) { // prevent adding event handlers twice
  2763. on(element, clickEvent, self.toggle);
  2764. }
  2765. collapse = getTarget();
  2766. collapse[isAnimating] = false; // when true it will prevent click handlers
  2767. accordion = queryElement(options.parent) || accordionData && getClosest(element, accordionData);
  2768. element[stringCollapse] = self;
  2769. };
  2770. // COLLAPSE DATA API
  2771. // =================
  2772. supports[push]( [ stringCollapse, Collapse, '['+dataToggle+'="collapse"]' ] );
  2773. /* Native Javascript for Bootstrap 4 | Dropdown
  2774. ----------------------------------------------*/
  2775. // DROPDOWN DEFINITION
  2776. // ===================
  2777. var Dropdown = function( element, option ) {
  2778. // initialization element
  2779. element = queryElement(element);
  2780. // set option
  2781. this.persist = option === true || element[getAttribute]('data-persist') === 'true' || false;
  2782. // constants, event targets, strings
  2783. var self = this, children = 'children',
  2784. parent = element[parentNode],
  2785. component = 'dropdown', open = 'open',
  2786. relatedTarget = null,
  2787. menu = queryElement('.dropdown-menu', parent),
  2788. menuItems = (function(){
  2789. var set = menu[children], newSet = [];
  2790. for ( var i=0; i<set[length]; i++ ){
  2791. set[i][children][length] && (set[i][children][0].tagName === 'A' && newSet[push](set[i][children][0]));
  2792. set[i].tagName === 'A' && newSet[push](set[i]);
  2793. }
  2794. return newSet;
  2795. })(),
  2796. // preventDefault on empty anchor links
  2797. preventEmptyAnchor = function(anchor){
  2798. (anchor.href && anchor.href.slice(-1) === '#' || anchor[parentNode] && anchor[parentNode].href
  2799. && anchor[parentNode].href.slice(-1) === '#') && this[preventDefault]();
  2800. },
  2801. // toggle dismissible events
  2802. toggleDismiss = function(){
  2803. var type = element[open] ? on : off;
  2804. type(DOC, clickEvent, dismissHandler);
  2805. type(DOC, keydownEvent, preventScroll);
  2806. type(DOC, keyupEvent, keyHandler);
  2807. },
  2808. // handlers
  2809. dismissHandler = function(e) {
  2810. var eventTarget = e[target], hasData = eventTarget && (stringDropdown in eventTarget || stringDropdown in eventTarget[parentNode]);
  2811. if ( (eventTarget === menu || menu[contains](eventTarget)) && (self.persist || hasData) ) { return; }
  2812. else {
  2813. relatedTarget = eventTarget === element || element[contains](eventTarget) ? element : null;
  2814. hide();
  2815. }
  2816. preventEmptyAnchor.call(e,eventTarget);
  2817. },
  2818. clickHandler = function(e) {
  2819. relatedTarget = element;
  2820. show();
  2821. preventEmptyAnchor.call(e,e[target]);
  2822. },
  2823. preventScroll = function(e){
  2824. var key = e.which || e.keyCode;
  2825. if( key === 38 || key === 40 ) { e[preventDefault](); }
  2826. },
  2827. keyHandler = function(e){
  2828. var key = e.which || e.keyCode,
  2829. activeItem = DOC.activeElement,
  2830. idx = menuItems[indexOf](activeItem),
  2831. isSameElement = activeItem === element,
  2832. isInsideMenu = menu[contains](activeItem),
  2833. isMenuItem = activeItem[parentNode] === menu || activeItem[parentNode][parentNode] === menu;
  2834. if ( isMenuItem || isSameElement ) { // navigate up | down
  2835. idx = isSameElement ? 0
  2836. : key === 38 ? (idx>1?idx-1:0)
  2837. : key === 40 ? (idx<menuItems[length]-1?idx+1:idx) : idx;
  2838. menuItems[idx] && setFocus(menuItems[idx]);
  2839. }
  2840. if ( (menuItems[length] && isMenuItem // menu has items
  2841. || !menuItems[length] && (isInsideMenu || isSameElement) // menu might be a form
  2842. || !isInsideMenu ) // or the focused element is not in the menu at all
  2843. && element[open] && key === 27 // menu must be open
  2844. ) {
  2845. self.toggle();
  2846. relatedTarget = null;
  2847. }
  2848. },
  2849. // private methods
  2850. show = function() {
  2851. bootstrapCustomEvent.call(parent, showEvent, component, relatedTarget);
  2852. addClass(menu,showClass);
  2853. addClass(parent,showClass);
  2854. menu[setAttribute](ariaExpanded,true);
  2855. bootstrapCustomEvent.call(parent, shownEvent, component, relatedTarget);
  2856. element[open] = true;
  2857. off(element, clickEvent, clickHandler);
  2858. setTimeout(function(){
  2859. setFocus( menu[getElementsByTagName]('INPUT')[0] || element ); // focus the first input item | element
  2860. toggleDismiss();
  2861. },1);
  2862. },
  2863. hide = function() {
  2864. bootstrapCustomEvent.call(parent, hideEvent, component, relatedTarget);
  2865. removeClass(menu,showClass);
  2866. removeClass(parent,showClass);
  2867. menu[setAttribute](ariaExpanded,false);
  2868. bootstrapCustomEvent.call(parent, hiddenEvent, component, relatedTarget);
  2869. element[open] = false;
  2870. toggleDismiss();
  2871. setFocus(element);
  2872. setTimeout(function(){ on(element, clickEvent, clickHandler); },1);
  2873. };
  2874. // set initial state to closed
  2875. element[open] = false;
  2876. // public methods
  2877. this.toggle = function() {
  2878. if (hasClass(parent,showClass) && element[open]) { hide(); }
  2879. else { show(); }
  2880. };
  2881. // init
  2882. if ( !(stringDropdown in element) ) { // prevent adding event handlers twice
  2883. !tabindex in menu && menu[setAttribute](tabindex, '0'); // Fix onblur on Chrome | Safari
  2884. on(element, clickEvent, clickHandler);
  2885. }
  2886. element[stringDropdown] = self;
  2887. };
  2888. // DROPDOWN DATA API
  2889. // =================
  2890. supports[push]( [stringDropdown, Dropdown, '['+dataToggle+'="dropdown"]'] );
  2891. /* Native Javascript for Bootstrap 4 | Modal
  2892. -------------------------------------------*/
  2893. // MODAL DEFINITION
  2894. // ===============
  2895. var Modal = function(element, options) { // element can be the modal/triggering button
  2896. // the modal (both JavaScript / DATA API init) / triggering button element (DATA API)
  2897. element = queryElement(element);
  2898. // determine modal, triggering element
  2899. var btnCheck = element[getAttribute](dataTarget)||element[getAttribute]('href'),
  2900. checkModal = queryElement( btnCheck ),
  2901. modal = hasClass(element,'modal') ? element : checkModal,
  2902. overlayDelay,
  2903. // strings
  2904. component = 'modal',
  2905. staticString = 'static',
  2906. paddingLeft = 'paddingLeft',
  2907. paddingRight = 'paddingRight',
  2908. modalBackdropString = 'modal-backdrop';
  2909. if ( hasClass(element,'modal') ) { element = null; } // modal is now independent of it's triggering element
  2910. if ( !modal ) { return; } // invalidate
  2911. // set options
  2912. options = options || {};
  2913. this[keyboard] = options[keyboard] === false || modal[getAttribute](dataKeyboard) === 'false' ? false : true;
  2914. this[backdrop] = options[backdrop] === staticString || modal[getAttribute](databackdrop) === staticString ? staticString : true;
  2915. this[backdrop] = options[backdrop] === false || modal[getAttribute](databackdrop) === 'false' ? false : this[backdrop];
  2916. this[content] = options[content]; // JavaScript only
  2917. // bind, constants, event targets and other vars
  2918. var self = this, relatedTarget = null,
  2919. bodyIsOverflowing, modalIsOverflowing, scrollbarWidth, overlay,
  2920. // also find fixed-top / fixed-bottom items
  2921. fixedItems = getElementsByClassName(HTML,fixedTop).concat(getElementsByClassName(HTML,fixedBottom)),
  2922. // private methods
  2923. getWindowWidth = function() {
  2924. var htmlRect = HTML[getBoundingClientRect]();
  2925. return globalObject[innerWidth] || (htmlRect[right] - Math.abs(htmlRect[left]));
  2926. },
  2927. setScrollbar = function () {
  2928. var bodyStyle = globalObject[getComputedStyle](DOC[body]),
  2929. bodyPad = parseInt((bodyStyle[paddingRight]), 10), itemPad;
  2930. if (bodyIsOverflowing) {
  2931. DOC[body][style][paddingRight] = (bodyPad + scrollbarWidth) + 'px';
  2932. if (fixedItems[length]){
  2933. for (var i = 0; i < fixedItems[length]; i++) {
  2934. itemPad = globalObject[getComputedStyle](fixedItems[i])[paddingRight];
  2935. fixedItems[i][style][paddingRight] = ( parseInt(itemPad) + scrollbarWidth) + 'px';
  2936. }
  2937. }
  2938. }
  2939. },
  2940. resetScrollbar = function () {
  2941. DOC[body][style][paddingRight] = '';
  2942. if (fixedItems[length]){
  2943. for (var i = 0; i < fixedItems[length]; i++) {
  2944. fixedItems[i][style][paddingRight] = '';
  2945. }
  2946. }
  2947. },
  2948. measureScrollbar = function () { // thx walsh
  2949. var scrollDiv = DOC[createElement]('div'), scrollBarWidth;
  2950. scrollDiv.className = component+'-scrollbar-measure'; // this is here to stay
  2951. DOC[body][appendChild](scrollDiv);
  2952. scrollBarWidth = scrollDiv[offsetWidth] - scrollDiv[clientWidth];
  2953. DOC[body].removeChild(scrollDiv);
  2954. return scrollBarWidth;
  2955. },
  2956. checkScrollbar = function () {
  2957. bodyIsOverflowing = DOC[body][clientWidth] < getWindowWidth();
  2958. modalIsOverflowing = modal[scrollHeight] > HTML[clientHeight];
  2959. scrollbarWidth = measureScrollbar();
  2960. },
  2961. adjustDialog = function () {
  2962. modal[style][paddingLeft] = !bodyIsOverflowing && modalIsOverflowing ? scrollbarWidth + 'px' : '';
  2963. modal[style][paddingRight] = bodyIsOverflowing && !modalIsOverflowing ? scrollbarWidth + 'px' : '';
  2964. },
  2965. resetAdjustments = function () {
  2966. modal[style][paddingLeft] = '';
  2967. modal[style][paddingRight] = '';
  2968. },
  2969. createOverlay = function() {
  2970. modalOverlay = 1;
  2971. var newOverlay = DOC[createElement]('div');
  2972. overlay = queryElement('.'+modalBackdropString);
  2973. if ( overlay === null ) {
  2974. newOverlay[setAttribute]('class',modalBackdropString+' fade');
  2975. overlay = newOverlay;
  2976. DOC[body][appendChild](overlay);
  2977. }
  2978. },
  2979. removeOverlay = function() {
  2980. overlay = queryElement('.'+modalBackdropString);
  2981. if ( overlay && overlay !== null && typeof overlay === 'object' ) {
  2982. modalOverlay = 0;
  2983. DOC[body].removeChild(overlay); overlay = null;
  2984. }
  2985. bootstrapCustomEvent.call(modal, hiddenEvent, component);
  2986. },
  2987. keydownHandlerToggle = function() {
  2988. if (hasClass(modal,showClass)) {
  2989. on(DOC, keydownEvent, keyHandler);
  2990. } else {
  2991. off(DOC, keydownEvent, keyHandler);
  2992. }
  2993. },
  2994. resizeHandlerToggle = function() {
  2995. if (hasClass(modal,showClass)) {
  2996. on(globalObject, resizeEvent, self.update);
  2997. } else {
  2998. off(globalObject, resizeEvent, self.update);
  2999. }
  3000. },
  3001. dismissHandlerToggle = function() {
  3002. if (hasClass(modal,showClass)) {
  3003. on(modal, clickEvent, dismissHandler);
  3004. } else {
  3005. off(modal, clickEvent, dismissHandler);
  3006. }
  3007. },
  3008. // triggers
  3009. triggerShow = function() {
  3010. setFocus(modal);
  3011. bootstrapCustomEvent.call(modal, shownEvent, component, relatedTarget);
  3012. },
  3013. triggerHide = function() {
  3014. modal[style].display = '';
  3015. element && (setFocus(element));
  3016. (function(){
  3017. if (!getElementsByClassName(DOC,component+' '+showClass)[0]) {
  3018. resetAdjustments();
  3019. resetScrollbar();
  3020. removeClass(DOC[body],component+'-open');
  3021. overlay && hasClass(overlay,'fade') ? (removeClass(overlay,showClass), emulateTransitionEnd(overlay,removeOverlay))
  3022. : removeOverlay();
  3023. resizeHandlerToggle();
  3024. dismissHandlerToggle();
  3025. keydownHandlerToggle();
  3026. }
  3027. }());
  3028. },
  3029. // handlers
  3030. clickHandler = function(e) {
  3031. var clickTarget = e[target];
  3032. clickTarget = clickTarget[hasAttribute](dataTarget) || clickTarget[hasAttribute]('href') ? clickTarget : clickTarget[parentNode];
  3033. if ( clickTarget === element && !hasClass(modal,showClass) ) {
  3034. modal.modalTrigger = element;
  3035. relatedTarget = element;
  3036. self.show();
  3037. e[preventDefault]();
  3038. }
  3039. },
  3040. keyHandler = function(e) {
  3041. if (self[keyboard] && e.which == 27 && hasClass(modal,showClass)) {
  3042. self.hide();
  3043. }
  3044. },
  3045. dismissHandler = function(e) {
  3046. var clickTarget = e[target];
  3047. if ( hasClass(modal,showClass) && (clickTarget[parentNode][getAttribute](dataDismiss) === component
  3048. || clickTarget[getAttribute](dataDismiss) === component
  3049. || (clickTarget === modal && self[backdrop] !== staticString) ) ) {
  3050. self.hide(); relatedTarget = null;
  3051. e[preventDefault]();
  3052. }
  3053. };
  3054. // public methods
  3055. this.toggle = function() {
  3056. if ( hasClass(modal,showClass) ) {this.hide();} else {this.show();}
  3057. };
  3058. this.show = function() {
  3059. bootstrapCustomEvent.call(modal, showEvent, component, relatedTarget);
  3060. // we elegantly hide any opened modal
  3061. var currentOpen = getElementsByClassName(DOC,component+' '+showClass)[0];
  3062. currentOpen && currentOpen !== modal && currentOpen.modalTrigger[stringModal].hide();
  3063. if ( this[backdrop] ) {
  3064. !modalOverlay && createOverlay();
  3065. }
  3066. if ( overlay && modalOverlay && !hasClass(overlay,showClass)) {
  3067. overlay[offsetWidth]; // force reflow to enable trasition
  3068. overlayDelay = getTransitionDurationFromElement(overlay);
  3069. addClass(overlay, showClass);
  3070. }
  3071. setTimeout( function() {
  3072. modal[style].display = 'block';
  3073. checkScrollbar();
  3074. setScrollbar();
  3075. adjustDialog();
  3076. addClass(DOC[body],component+'-open');
  3077. addClass(modal,showClass);
  3078. modal[setAttribute](ariaHidden, false);
  3079. resizeHandlerToggle();
  3080. dismissHandlerToggle();
  3081. keydownHandlerToggle();
  3082. hasClass(modal,'fade') ? emulateTransitionEnd(modal, triggerShow) : triggerShow();
  3083. }, supportTransitions && overlay ? overlayDelay : 0);
  3084. };
  3085. this.hide = function() {
  3086. bootstrapCustomEvent.call(modal, hideEvent, component);
  3087. overlay = queryElement('.'+modalBackdropString);
  3088. overlayDelay = overlay && getTransitionDurationFromElement(overlay);
  3089. removeClass(modal,showClass);
  3090. modal[setAttribute](ariaHidden, true);
  3091. setTimeout(function(){
  3092. hasClass(modal,'fade') ? emulateTransitionEnd(modal, triggerHide) : triggerHide();
  3093. }, supportTransitions && overlay ? overlayDelay : 0);
  3094. };
  3095. this.setContent = function( content ) {
  3096. queryElement('.'+component+'-content',modal)[innerHTML] = content;
  3097. };
  3098. this.update = function() {
  3099. if (hasClass(modal,showClass)) {
  3100. checkScrollbar();
  3101. setScrollbar();
  3102. adjustDialog();
  3103. }
  3104. };
  3105. // init
  3106. // prevent adding event handlers over and over
  3107. // modal is independent of a triggering element
  3108. if ( !!element && !(stringModal in element) ) {
  3109. on(element, clickEvent, clickHandler);
  3110. }
  3111. if ( !!self[content] ) { self.setContent( self[content] ); }
  3112. !!element && (element[stringModal] = self);
  3113. };
  3114. // DATA API
  3115. supports[push]( [ stringModal, Modal, '['+dataToggle+'="modal"]' ] );
  3116. /* Native Javascript for Bootstrap 4 | Popover
  3117. ----------------------------------------------*/
  3118. // POPOVER DEFINITION
  3119. // ==================
  3120. var Popover = function( element, options ) {
  3121. // initialization element
  3122. element = queryElement(element);
  3123. // set options
  3124. options = options || {};
  3125. // DATA API
  3126. var triggerData = element[getAttribute](dataTrigger), // click / hover / focus
  3127. animationData = element[getAttribute](dataAnimation), // true / false
  3128. placementData = element[getAttribute](dataPlacement),
  3129. dismissibleData = element[getAttribute](dataDismissible),
  3130. delayData = element[getAttribute](dataDelay),
  3131. containerData = element[getAttribute](dataContainer),
  3132. // internal strings
  3133. component = 'popover',
  3134. template = 'template',
  3135. trigger = 'trigger',
  3136. classString = 'class',
  3137. div = 'div',
  3138. fade = 'fade',
  3139. content = 'content',
  3140. dataContent = 'data-content',
  3141. dismissible = 'dismissible',
  3142. closeBtn = '<button type="button" class="close">×</button>',
  3143. // check container
  3144. containerElement = queryElement(options[container]),
  3145. containerDataElement = queryElement(containerData),
  3146. // maybe the element is inside a modal
  3147. modal = getClosest(element,'.modal'),
  3148. // maybe the element is inside a fixed navbar
  3149. navbarFixedTop = getClosest(element,'.'+fixedTop),
  3150. navbarFixedBottom = getClosest(element,'.'+fixedBottom);
  3151. // set instance options
  3152. this[template] = options[template] ? options[template] : null; // JavaScript only
  3153. this[trigger] = options[trigger] ? options[trigger] : triggerData || hoverEvent;
  3154. this[animation] = options[animation] && options[animation] !== fade ? options[animation] : animationData || fade;
  3155. this[placement] = options[placement] ? options[placement] : placementData || top;
  3156. this[delay] = parseInt(options[delay] || delayData) || 200;
  3157. this[dismissible] = options[dismissible] || dismissibleData === 'true' ? true : false;
  3158. this[container] = containerElement ? containerElement
  3159. : containerDataElement ? containerDataElement
  3160. : navbarFixedTop ? navbarFixedTop
  3161. : navbarFixedBottom ? navbarFixedBottom
  3162. : modal ? modal : DOC[body];
  3163. // bind, content
  3164. var self = this,
  3165. titleString = element[getAttribute](dataTitle) || null,
  3166. contentString = element[getAttribute](dataContent) || null;
  3167. if ( !contentString && !this[template] ) return; // invalidate
  3168. // constants, vars
  3169. var popover = null, timer = 0, placementSetting = this[placement],
  3170. // handlers
  3171. dismissibleHandler = function(e) {
  3172. if (popover !== null && e[target] === queryElement('.close',popover)) {
  3173. self.hide();
  3174. }
  3175. },
  3176. // private methods
  3177. removePopover = function() {
  3178. self[container].removeChild(popover);
  3179. timer = null; popover = null;
  3180. },
  3181. createPopover = function() {
  3182. titleString = element[getAttribute](dataTitle); // check content again
  3183. contentString = element[getAttribute](dataContent);
  3184. popover = DOC[createElement](div);
  3185. // popover arrow
  3186. var popoverArrow = DOC[createElement](div);
  3187. popoverArrow[setAttribute](classString,'arrow');
  3188. popover[appendChild](popoverArrow);
  3189. if ( contentString !== null && self[template] === null ) { //create the popover from data attributes
  3190. popover[setAttribute]('role','tooltip');
  3191. if (titleString !== null) {
  3192. var popoverTitle = DOC[createElement]('h3');
  3193. popoverTitle[setAttribute](classString,component+'-header');
  3194. popoverTitle[innerHTML] = self[dismissible] ? titleString + closeBtn : titleString;
  3195. popover[appendChild](popoverTitle);
  3196. }
  3197. //set popover content
  3198. var popoverContent = DOC[createElement](div);
  3199. popoverContent[setAttribute](classString,component+'-body');
  3200. popoverContent[innerHTML] = self[dismissible] && titleString === null ? contentString + closeBtn : contentString;
  3201. popover[appendChild](popoverContent);
  3202. } else { // or create the popover from template
  3203. var popoverTemplate = DOC[createElement](div);
  3204. popoverTemplate[innerHTML] = self[template];
  3205. popover[innerHTML] = popoverTemplate.firstChild[innerHTML];
  3206. }
  3207. //append to the container
  3208. self[container][appendChild](popover);
  3209. popover[style].display = 'block';
  3210. popover[setAttribute](classString, component+ ' bs-' + component+'-'+placementSetting + ' ' + self[animation]);
  3211. },
  3212. showPopover = function () {
  3213. !hasClass(popover,showClass) && ( addClass(popover,showClass) );
  3214. },
  3215. updatePopover = function() {
  3216. styleTip(element,popover,placementSetting,self[container]);
  3217. },
  3218. // event toggle
  3219. dismissHandlerToggle = function(type){
  3220. if (clickEvent == self[trigger] || 'focus' == self[trigger]) {
  3221. !self[dismissible] && type( element, 'blur', self.hide );
  3222. }
  3223. self[dismissible] && type( DOC, clickEvent, dismissibleHandler );
  3224. type( globalObject, resizeEvent, self.hide );
  3225. },
  3226. // triggers
  3227. showTrigger = function() {
  3228. dismissHandlerToggle(on);
  3229. bootstrapCustomEvent.call(element, shownEvent, component);
  3230. },
  3231. hideTrigger = function() {
  3232. dismissHandlerToggle(off);
  3233. removePopover();
  3234. bootstrapCustomEvent.call(element, hiddenEvent, component);
  3235. };
  3236. // public methods / handlers
  3237. this.toggle = function() {
  3238. if (popover === null) { self.show(); }
  3239. else { self.hide(); }
  3240. };
  3241. this.show = function() {
  3242. clearTimeout(timer);
  3243. timer = setTimeout( function() {
  3244. if (popover === null) {
  3245. placementSetting = self[placement]; // we reset placement in all cases
  3246. createPopover();
  3247. updatePopover();
  3248. showPopover();
  3249. bootstrapCustomEvent.call(element, showEvent, component);
  3250. !!self[animation] ? emulateTransitionEnd(popover, showTrigger) : showTrigger();
  3251. }
  3252. }, 20 );
  3253. };
  3254. this.hide = function() {
  3255. clearTimeout(timer);
  3256. timer = setTimeout( function() {
  3257. if (popover && popover !== null && hasClass(popover,showClass)) {
  3258. bootstrapCustomEvent.call(element, hideEvent, component);
  3259. removeClass(popover,showClass);
  3260. !!self[animation] ? emulateTransitionEnd(popover, hideTrigger) : hideTrigger();
  3261. }
  3262. }, self[delay] );
  3263. };
  3264. // init
  3265. if ( !(stringPopover in element) ) { // prevent adding event handlers twice
  3266. if (self[trigger] === hoverEvent) {
  3267. on( element, mouseHover[0], self.show );
  3268. if (!self[dismissible]) { on( element, mouseHover[1], self.hide ); }
  3269. } else if (clickEvent == self[trigger] || 'focus' == self[trigger]) {
  3270. on( element, self[trigger], self.toggle );
  3271. }
  3272. }
  3273. element[stringPopover] = self;
  3274. };
  3275. // POPOVER DATA API
  3276. // ================
  3277. supports[push]( [ stringPopover, Popover, '['+dataToggle+'="popover"]' ] );
  3278. /* Native Javascript for Bootstrap 4 | ScrollSpy
  3279. -----------------------------------------------*/
  3280. // SCROLLSPY DEFINITION
  3281. // ====================
  3282. var ScrollSpy = function(element, options) {
  3283. // initialization element, the element we spy on
  3284. element = queryElement(element);
  3285. // DATA API
  3286. var targetData = queryElement(element[getAttribute](dataTarget)),
  3287. offsetData = element[getAttribute]('data-offset');
  3288. // set options
  3289. options = options || {};
  3290. if ( !options[target] && !targetData ) { return; } // invalidate
  3291. // event targets, constants
  3292. var self = this, spyTarget = options[target] && queryElement(options[target]) || targetData,
  3293. links = spyTarget && spyTarget[getElementsByTagName]('A'),
  3294. offset = parseInt(offsetData || options['offset']) || 10,
  3295. items = [], targetItems = [], scrollOffset,
  3296. scrollTarget = element[offsetHeight] < element[scrollHeight] ? element : globalObject, // determine which is the real scrollTarget
  3297. isWindow = scrollTarget === globalObject;
  3298. // populate items and targets
  3299. for (var i=0, il=links[length]; i<il; i++) {
  3300. var href = links[i][getAttribute]('href'),
  3301. targetItem = href && href.charAt(0) === '#' && href.slice(-1) !== '#' && queryElement(href);
  3302. if ( !!targetItem ) {
  3303. items[push](links[i]);
  3304. targetItems[push](targetItem);
  3305. }
  3306. }
  3307. // private methods
  3308. var updateItem = function(index) {
  3309. var item = items[index],
  3310. targetItem = targetItems[index], // the menu item targets this element
  3311. dropdown = item[parentNode][parentNode],
  3312. dropdownLink = hasClass(dropdown,'dropdown') && dropdown[getElementsByTagName]('A')[0],
  3313. targetRect = isWindow && targetItem[getBoundingClientRect](),
  3314. isActive = hasClass(item,active) || false,
  3315. topEdge = (isWindow ? targetRect[top] + scrollOffset : targetItem[offsetTop]) - offset,
  3316. bottomEdge = isWindow ? targetRect[bottom] + scrollOffset - offset : targetItems[index+1] ? targetItems[index+1][offsetTop] - offset : element[scrollHeight],
  3317. inside = scrollOffset >= topEdge && bottomEdge > scrollOffset;
  3318. if ( !isActive && inside ) {
  3319. if ( !hasClass(item,active) ) {
  3320. addClass(item,active);
  3321. if (dropdownLink && !hasClass(dropdownLink,active) ) {
  3322. addClass(dropdownLink,active);
  3323. }
  3324. bootstrapCustomEvent.call(element, 'activate', 'scrollspy', items[index]);
  3325. }
  3326. } else if ( !inside ) {
  3327. if ( hasClass(item,active) ) {
  3328. removeClass(item,active);
  3329. if (dropdownLink && hasClass(dropdownLink,active) && !getElementsByClassName(item[parentNode],active).length ) {
  3330. removeClass(dropdownLink,active);
  3331. }
  3332. }
  3333. } else if ( !inside && !isActive || isActive && inside ) {
  3334. return;
  3335. }
  3336. },
  3337. updateItems = function(){
  3338. scrollOffset = isWindow ? getScroll().y : element[scrollTop];
  3339. for (var index=0, itl=items[length]; index<itl; index++) {
  3340. updateItem(index)
  3341. }
  3342. };
  3343. // public method
  3344. this.refresh = function () {
  3345. updateItems();
  3346. }
  3347. // init
  3348. if ( !(stringScrollSpy in element) ) { // prevent adding event handlers twice
  3349. on( scrollTarget, scrollEvent, self.refresh );
  3350. on( globalObject, resizeEvent, self.refresh );
  3351. }
  3352. self.refresh();
  3353. element[stringScrollSpy] = self;
  3354. };
  3355. // SCROLLSPY DATA API
  3356. // ==================
  3357. supports[push]( [ stringScrollSpy, ScrollSpy, '['+dataSpy+'="scroll"]' ] );
  3358. /* Native Javascript for Bootstrap 4 | Tab
  3359. -----------------------------------------*/
  3360. // TAB DEFINITION
  3361. // ==============
  3362. var Tab = function( element, options ) {
  3363. // initialization element
  3364. element = queryElement(element);
  3365. // DATA API
  3366. var heightData = element[getAttribute](dataHeight),
  3367. // strings
  3368. component = 'tab', height = 'height', float = 'float', isAnimating = 'isAnimating';
  3369. // set options
  3370. options = options || {};
  3371. this[height] = supportTransitions ? (options[height] || heightData === 'true') : false;
  3372. // bind, event targets
  3373. var self = this, next,
  3374. tabs = getClosest(element,'.nav'),
  3375. tabsContentContainer = false,
  3376. dropdown = tabs && queryElement('.dropdown-toggle',tabs),
  3377. activeTab, activeContent, nextContent, containerHeight, equalContents, nextHeight,
  3378. // trigger
  3379. triggerEnd = function(){
  3380. tabsContentContainer[style][height] = '';
  3381. removeClass(tabsContentContainer,collapsing);
  3382. tabs[isAnimating] = false;
  3383. },
  3384. triggerShow = function() {
  3385. if (tabsContentContainer) { // height animation
  3386. if ( equalContents ) {
  3387. triggerEnd();
  3388. } else {
  3389. setTimeout(function(){ // enables height animation
  3390. tabsContentContainer[style][height] = nextHeight + 'px'; // height animation
  3391. tabsContentContainer[offsetWidth];
  3392. emulateTransitionEnd(tabsContentContainer, triggerEnd);
  3393. },50);
  3394. }
  3395. } else {
  3396. tabs[isAnimating] = false;
  3397. }
  3398. bootstrapCustomEvent.call(next, shownEvent, component, activeTab);
  3399. },
  3400. triggerHide = function() {
  3401. if (tabsContentContainer) {
  3402. activeContent[style][float] = left;
  3403. nextContent[style][float] = left;
  3404. containerHeight = activeContent[scrollHeight];
  3405. }
  3406. addClass(nextContent,active);
  3407. bootstrapCustomEvent.call(next, showEvent, component, activeTab);
  3408. removeClass(activeContent,active);
  3409. bootstrapCustomEvent.call(activeTab, hiddenEvent, component, next);
  3410. if (tabsContentContainer) {
  3411. nextHeight = nextContent[scrollHeight];
  3412. equalContents = nextHeight === containerHeight;
  3413. addClass(tabsContentContainer,collapsing);
  3414. tabsContentContainer[style][height] = containerHeight + 'px'; // height animation
  3415. tabsContentContainer[offsetHeight];
  3416. activeContent[style][float] = '';
  3417. nextContent[style][float] = '';
  3418. }
  3419. if ( hasClass(nextContent, 'fade') ) {
  3420. setTimeout(function(){
  3421. addClass(nextContent,showClass);
  3422. emulateTransitionEnd(nextContent,triggerShow);
  3423. },20);
  3424. } else { triggerShow(); }
  3425. };
  3426. if (!tabs) return; // invalidate
  3427. // set default animation state
  3428. tabs[isAnimating] = false;
  3429. // private methods
  3430. var getActiveTab = function() {
  3431. var activeTabs = getElementsByClassName(tabs,active), activeTab;
  3432. if ( activeTabs[length] === 1 && !hasClass(activeTabs[0][parentNode],'dropdown') ) {
  3433. activeTab = activeTabs[0];
  3434. } else if ( activeTabs[length] > 1 ) {
  3435. activeTab = activeTabs[activeTabs[length]-1];
  3436. }
  3437. return activeTab;
  3438. },
  3439. getActiveContent = function() {
  3440. return queryElement(getActiveTab()[getAttribute]('href'));
  3441. },
  3442. // handler
  3443. clickHandler = function(e) {
  3444. var href = e[target][getAttribute]('href');
  3445. e[preventDefault]();
  3446. next = e[target][getAttribute](dataToggle) === component || (href && href.charAt(0) === '#')
  3447. ? e[target] : e[target][parentNode]; // allow for child elements like icons to use the handler
  3448. !tabs[isAnimating] && !hasClass(next,active) && self.show();
  3449. };
  3450. // public method
  3451. this.show = function() { // the tab we clicked is now the next tab
  3452. next = next || element;
  3453. nextContent = queryElement(next[getAttribute]('href')); //this is the actual object, the next tab content to activate
  3454. activeTab = getActiveTab();
  3455. activeContent = getActiveContent();
  3456. tabs[isAnimating] = true;
  3457. removeClass(activeTab,active);
  3458. addClass(next,active);
  3459. if ( dropdown ) {
  3460. if ( !hasClass(element[parentNode],'dropdown-menu') ) {
  3461. if (hasClass(dropdown,active)) removeClass(dropdown,active);
  3462. } else {
  3463. if (!hasClass(dropdown,active)) addClass(dropdown,active);
  3464. }
  3465. }
  3466. bootstrapCustomEvent.call(activeTab, hideEvent, component, next);
  3467. if (hasClass(activeContent, 'fade')) {
  3468. removeClass(activeContent,showClass);
  3469. emulateTransitionEnd(activeContent, triggerHide);
  3470. } else { triggerHide(); }
  3471. };
  3472. // init
  3473. if ( !(stringTab in element) ) { // prevent adding event handlers twice
  3474. on(element, clickEvent, clickHandler);
  3475. }
  3476. if (self[height]) { tabsContentContainer = getActiveContent()[parentNode]; }
  3477. element[stringTab] = self;
  3478. };
  3479. // TAB DATA API
  3480. // ============
  3481. supports[push]( [ stringTab, Tab, '['+dataToggle+'="tab"]' ] );
  3482. /* Native Javascript for Bootstrap 4 | Tooltip
  3483. ---------------------------------------------*/
  3484. // TOOLTIP DEFINITION
  3485. // ==================
  3486. var Tooltip = function( element,options ) {
  3487. // initialization element
  3488. element = queryElement(element);
  3489. // set options
  3490. options = options || {};
  3491. // DATA API
  3492. var animationData = element[getAttribute](dataAnimation),
  3493. placementData = element[getAttribute](dataPlacement),
  3494. delayData = element[getAttribute](dataDelay),
  3495. containerData = element[getAttribute](dataContainer),
  3496. // strings
  3497. component = 'tooltip',
  3498. classString = 'class',
  3499. title = 'title',
  3500. fade = 'fade',
  3501. div = 'div',
  3502. // check container
  3503. containerElement = queryElement(options[container]),
  3504. containerDataElement = queryElement(containerData),
  3505. // maybe the element is inside a modal
  3506. modal = getClosest(element,'.modal'),
  3507. // maybe the element is inside a fixed navbar
  3508. navbarFixedTop = getClosest(element,'.'+fixedTop),
  3509. navbarFixedBottom = getClosest(element,'.'+fixedBottom);
  3510. // set instance options
  3511. this[animation] = options[animation] && options[animation] !== fade ? options[animation] : animationData || fade;
  3512. this[placement] = options[placement] ? options[placement] : placementData || top;
  3513. this[delay] = parseInt(options[delay] || delayData) || 200;
  3514. this[container] = containerElement ? containerElement
  3515. : containerDataElement ? containerDataElement
  3516. : navbarFixedTop ? navbarFixedTop
  3517. : navbarFixedBottom ? navbarFixedBottom
  3518. : modal ? modal : DOC[body];
  3519. // bind, event targets, title and constants
  3520. var self = this, timer = 0, placementSetting = this[placement], tooltip = null,
  3521. titleString = element[getAttribute](title) || element[getAttribute](dataTitle) || element[getAttribute](dataOriginalTitle);
  3522. if ( !titleString || titleString == "" ) return; // invalidate
  3523. // private methods
  3524. var removeToolTip = function() {
  3525. self[container].removeChild(tooltip);
  3526. tooltip = null; timer = null;
  3527. },
  3528. createToolTip = function() {
  3529. titleString = element[getAttribute](title) || element[getAttribute](dataTitle) || element[getAttribute](dataOriginalTitle); // read the title again
  3530. if ( !titleString || titleString == "" ) return false; // invalidate
  3531. tooltip = DOC[createElement](div);
  3532. tooltip[setAttribute]('role',component);
  3533. // tooltip arrow
  3534. var tooltipArrow = DOC[createElement](div);
  3535. tooltipArrow[setAttribute](classString,'arrow');
  3536. tooltip[appendChild](tooltipArrow);
  3537. var tooltipInner = DOC[createElement](div);
  3538. tooltipInner[setAttribute](classString,component+'-inner');
  3539. tooltip[appendChild](tooltipInner);
  3540. tooltipInner[innerHTML] = titleString;
  3541. self[container][appendChild](tooltip);
  3542. tooltip[setAttribute](classString, component + ' bs-' + component+'-'+placementSetting + ' ' + self[animation]);
  3543. },
  3544. updateTooltip = function () {
  3545. styleTip(element,tooltip,placementSetting,self[container]);
  3546. },
  3547. showTooltip = function () {
  3548. !hasClass(tooltip,showClass) && ( addClass(tooltip,showClass) );
  3549. },
  3550. // triggers
  3551. showTrigger = function() {
  3552. on( globalObject, resizeEvent, self.hide );
  3553. bootstrapCustomEvent.call(element, shownEvent, component);
  3554. },
  3555. hideTrigger = function() {
  3556. off( globalObject, resizeEvent, self.hide );
  3557. removeToolTip();
  3558. bootstrapCustomEvent.call(element, hiddenEvent, component);
  3559. };
  3560. // public methods
  3561. this.show = function() {
  3562. clearTimeout(timer);
  3563. timer = setTimeout( function() {
  3564. if (tooltip === null) {
  3565. placementSetting = self[placement]; // we reset placement in all cases
  3566. if(createToolTip() == false) return;
  3567. updateTooltip();
  3568. showTooltip();
  3569. bootstrapCustomEvent.call(element, showEvent, component);
  3570. !!self[animation] ? emulateTransitionEnd(tooltip, showTrigger) : showTrigger();
  3571. }
  3572. }, 20 );
  3573. };
  3574. this.hide = function() {
  3575. clearTimeout(timer);
  3576. timer = setTimeout( function() {
  3577. if (tooltip && hasClass(tooltip,showClass)) {
  3578. bootstrapCustomEvent.call(element, hideEvent, component);
  3579. removeClass(tooltip,showClass);
  3580. !!self[animation] ? emulateTransitionEnd(tooltip, hideTrigger) : hideTrigger();
  3581. }
  3582. }, self[delay]);
  3583. };
  3584. this.toggle = function() {
  3585. if (!tooltip) { self.show(); }
  3586. else { self.hide(); }
  3587. };
  3588. // init
  3589. if ( !(stringTooltip in element) ) { // prevent adding event handlers twice
  3590. element[setAttribute](dataOriginalTitle,titleString);
  3591. element.removeAttribute(title);
  3592. on(element, mouseHover[0], self.show);
  3593. on(element, mouseHover[1], self.hide);
  3594. }
  3595. element[stringTooltip] = self;
  3596. };
  3597. // TOOLTIP DATA API
  3598. // =================
  3599. supports[push]( [ stringTooltip, Tooltip, '['+dataToggle+'="tooltip"]' ] );
  3600. /* Native Javascript for Bootstrap 4 | Initialize Data API
  3601. --------------------------------------------------------*/
  3602. var initializeDataAPI = function( constructor, collection ){
  3603. for (var i=0, l=collection[length]; i<l; i++) {
  3604. new constructor(collection[i]);
  3605. }
  3606. },
  3607. initCallback = BSN.initCallback = function(lookUp){
  3608. lookUp = lookUp || DOC;
  3609. for (var i=0, l=supports[length]; i<l; i++) {
  3610. initializeDataAPI( supports[i][1], lookUp[querySelectorAll] (supports[i][2]) );
  3611. }
  3612. };
  3613. // bulk initialize all components
  3614. DOC[body] ? initCallback() : on( DOC, 'DOMContentLoaded', function(){ initCallback(); } );
  3615. return {
  3616. Alert: Alert,
  3617. Button: Button,
  3618. Carousel: Carousel,
  3619. Collapse: Collapse,
  3620. Dropdown: Dropdown,
  3621. Modal: Modal,
  3622. Popover: Popover,
  3623. ScrollSpy: ScrollSpy,
  3624. Tab: Tab,
  3625. Tooltip: Tooltip
  3626. };
  3627. }));
  3628. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
  3629. /***/ }),
  3630. /***/ "./node_modules/filesize/lib/filesize.js":
  3631. /*!***********************************************!*\
  3632. !*** ./node_modules/filesize/lib/filesize.js ***!
  3633. \***********************************************/
  3634. /*! no static exports found */
  3635. /***/ (function(module, exports, __webpack_require__) {
  3636. "use strict";
  3637. /* WEBPACK VAR INJECTION */(function(global) {
  3638. /**
  3639. * filesize
  3640. *
  3641. * @copyright 2018 Jason Mulligan <jason.mulligan@avoidwork.com>
  3642. * @license BSD-3-Clause
  3643. * @version 3.6.1
  3644. */
  3645. (function (global) {
  3646. var b = /^(b|B)$/,
  3647. symbol = {
  3648. iec: {
  3649. bits: ["b", "Kib", "Mib", "Gib", "Tib", "Pib", "Eib", "Zib", "Yib"],
  3650. bytes: ["B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"]
  3651. },
  3652. jedec: {
  3653. bits: ["b", "Kb", "Mb", "Gb", "Tb", "Pb", "Eb", "Zb", "Yb"],
  3654. bytes: ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"]
  3655. }
  3656. },
  3657. fullform = {
  3658. iec: ["", "kibi", "mebi", "gibi", "tebi", "pebi", "exbi", "zebi", "yobi"],
  3659. jedec: ["", "kilo", "mega", "giga", "tera", "peta", "exa", "zetta", "yotta"]
  3660. };
  3661. /**
  3662. * filesize
  3663. *
  3664. * @method filesize
  3665. * @param {Mixed} arg String, Int or Float to transform
  3666. * @param {Object} descriptor [Optional] Flags
  3667. * @return {String} Readable file size String
  3668. */
  3669. function filesize(arg) {
  3670. var descriptor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  3671. var result = [],
  3672. val = 0,
  3673. e = void 0,
  3674. base = void 0,
  3675. bits = void 0,
  3676. ceil = void 0,
  3677. full = void 0,
  3678. fullforms = void 0,
  3679. neg = void 0,
  3680. num = void 0,
  3681. output = void 0,
  3682. round = void 0,
  3683. unix = void 0,
  3684. separator = void 0,
  3685. spacer = void 0,
  3686. standard = void 0,
  3687. symbols = void 0;
  3688. if (isNaN(arg)) {
  3689. throw new Error("Invalid arguments");
  3690. }
  3691. bits = descriptor.bits === true;
  3692. unix = descriptor.unix === true;
  3693. base = descriptor.base || 2;
  3694. round = descriptor.round !== void 0 ? descriptor.round : unix ? 1 : 2;
  3695. separator = descriptor.separator !== void 0 ? descriptor.separator || "" : "";
  3696. spacer = descriptor.spacer !== void 0 ? descriptor.spacer : unix ? "" : " ";
  3697. symbols = descriptor.symbols || descriptor.suffixes || {};
  3698. standard = base === 2 ? descriptor.standard || "jedec" : "jedec";
  3699. output = descriptor.output || "string";
  3700. full = descriptor.fullform === true;
  3701. fullforms = descriptor.fullforms instanceof Array ? descriptor.fullforms : [];
  3702. e = descriptor.exponent !== void 0 ? descriptor.exponent : -1;
  3703. num = Number(arg);
  3704. neg = num < 0;
  3705. ceil = base > 2 ? 1000 : 1024;
  3706. // Flipping a negative number to determine the size
  3707. if (neg) {
  3708. num = -num;
  3709. }
  3710. // Determining the exponent
  3711. if (e === -1 || isNaN(e)) {
  3712. e = Math.floor(Math.log(num) / Math.log(ceil));
  3713. if (e < 0) {
  3714. e = 0;
  3715. }
  3716. }
  3717. // Exceeding supported length, time to reduce & multiply
  3718. if (e > 8) {
  3719. e = 8;
  3720. }
  3721. // Zero is now a special case because bytes divide by 1
  3722. if (num === 0) {
  3723. result[0] = 0;
  3724. result[1] = unix ? "" : symbol[standard][bits ? "bits" : "bytes"][e];
  3725. } else {
  3726. val = num / (base === 2 ? Math.pow(2, e * 10) : Math.pow(1000, e));
  3727. if (bits) {
  3728. val = val * 8;
  3729. if (val >= ceil && e < 8) {
  3730. val = val / ceil;
  3731. e++;
  3732. }
  3733. }
  3734. result[0] = Number(val.toFixed(e > 0 ? round : 0));
  3735. result[1] = base === 10 && e === 1 ? bits ? "kb" : "kB" : symbol[standard][bits ? "bits" : "bytes"][e];
  3736. if (unix) {
  3737. result[1] = standard === "jedec" ? result[1].charAt(0) : e > 0 ? result[1].replace(/B$/, "") : result[1];
  3738. if (b.test(result[1])) {
  3739. result[0] = Math.floor(result[0]);
  3740. result[1] = "";
  3741. }
  3742. }
  3743. }
  3744. // Decorating a 'diff'
  3745. if (neg) {
  3746. result[0] = -result[0];
  3747. }
  3748. // Applying custom symbol
  3749. result[1] = symbols[result[1]] || result[1];
  3750. // Returning Array, Object, or String (default)
  3751. if (output === "array") {
  3752. return result;
  3753. }
  3754. if (output === "exponent") {
  3755. return e;
  3756. }
  3757. if (output === "object") {
  3758. return { value: result[0], suffix: result[1], symbol: result[1] };
  3759. }
  3760. if (full) {
  3761. result[1] = fullforms[e] ? fullforms[e] : fullform[standard][e] + (bits ? "bit" : "byte") + (result[0] === 1 ? "" : "s");
  3762. }
  3763. if (separator.length > 0) {
  3764. result[0] = result[0].toString().replace(".", separator);
  3765. }
  3766. return result.join(spacer);
  3767. }
  3768. // Partial application for functional programming
  3769. filesize.partial = function (opt) {
  3770. return function (arg) {
  3771. return filesize(arg, opt);
  3772. };
  3773. };
  3774. // CommonJS, AMD, script tag
  3775. if (true) {
  3776. module.exports = filesize;
  3777. } else {}
  3778. })(typeof window !== "undefined" ? window : global);
  3779. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
  3780. /***/ }),
  3781. /***/ "./node_modules/jed/jed.js":
  3782. /*!*********************************!*\
  3783. !*** ./node_modules/jed/jed.js ***!
  3784. \*********************************/
  3785. /*! no static exports found */
  3786. /***/ (function(module, exports, __webpack_require__) {
  3787. /**
  3788. * @preserve jed.js https://github.com/SlexAxton/Jed
  3789. */
  3790. /*
  3791. -----------
  3792. A gettext compatible i18n library for modern JavaScript Applications
  3793. by Alex Sexton - AlexSexton [at] gmail - @SlexAxton
  3794. MIT License
  3795. A jQuery Foundation project - requires CLA to contribute -
  3796. https://contribute.jquery.org/CLA/
  3797. Jed offers the entire applicable GNU gettext spec'd set of
  3798. functions, but also offers some nicer wrappers around them.
  3799. The api for gettext was written for a language with no function
  3800. overloading, so Jed allows a little more of that.
  3801. Many thanks to Joshua I. Miller - unrtst@cpan.org - who wrote
  3802. gettext.js back in 2008. I was able to vet a lot of my ideas
  3803. against his. I also made sure Jed passed against his tests
  3804. in order to offer easy upgrades -- jsgettext.berlios.de
  3805. */
  3806. (function (root, undef) {
  3807. // Set up some underscore-style functions, if you already have
  3808. // underscore, feel free to delete this section, and use it
  3809. // directly, however, the amount of functions used doesn't
  3810. // warrant having underscore as a full dependency.
  3811. // Underscore 1.3.0 was used to port and is licensed
  3812. // under the MIT License by Jeremy Ashkenas.
  3813. var ArrayProto = Array.prototype,
  3814. ObjProto = Object.prototype,
  3815. slice = ArrayProto.slice,
  3816. hasOwnProp = ObjProto.hasOwnProperty,
  3817. nativeForEach = ArrayProto.forEach,
  3818. breaker = {};
  3819. // We're not using the OOP style _ so we don't need the
  3820. // extra level of indirection. This still means that you
  3821. // sub out for real `_` though.
  3822. var _ = {
  3823. forEach : function( obj, iterator, context ) {
  3824. var i, l, key;
  3825. if ( obj === null ) {
  3826. return;
  3827. }
  3828. if ( nativeForEach && obj.forEach === nativeForEach ) {
  3829. obj.forEach( iterator, context );
  3830. }
  3831. else if ( obj.length === +obj.length ) {
  3832. for ( i = 0, l = obj.length; i < l; i++ ) {
  3833. if ( i in obj && iterator.call( context, obj[i], i, obj ) === breaker ) {
  3834. return;
  3835. }
  3836. }
  3837. }
  3838. else {
  3839. for ( key in obj) {
  3840. if ( hasOwnProp.call( obj, key ) ) {
  3841. if ( iterator.call (context, obj[key], key, obj ) === breaker ) {
  3842. return;
  3843. }
  3844. }
  3845. }
  3846. }
  3847. },
  3848. extend : function( obj ) {
  3849. this.forEach( slice.call( arguments, 1 ), function ( source ) {
  3850. for ( var prop in source ) {
  3851. obj[prop] = source[prop];
  3852. }
  3853. });
  3854. return obj;
  3855. }
  3856. };
  3857. // END Miniature underscore impl
  3858. // Jed is a constructor function
  3859. var Jed = function ( options ) {
  3860. // Some minimal defaults
  3861. this.defaults = {
  3862. "locale_data" : {
  3863. "messages" : {
  3864. "" : {
  3865. "domain" : "messages",
  3866. "lang" : "en",
  3867. "plural_forms" : "nplurals=2; plural=(n != 1);"
  3868. }
  3869. // There are no default keys, though
  3870. }
  3871. },
  3872. // The default domain if one is missing
  3873. "domain" : "messages",
  3874. // enable debug mode to log untranslated strings to the console
  3875. "debug" : false
  3876. };
  3877. // Mix in the sent options with the default options
  3878. this.options = _.extend( {}, this.defaults, options );
  3879. this.textdomain( this.options.domain );
  3880. if ( options.domain && ! this.options.locale_data[ this.options.domain ] ) {
  3881. throw new Error('Text domain set to non-existent domain: `' + options.domain + '`');
  3882. }
  3883. };
  3884. // The gettext spec sets this character as the default
  3885. // delimiter for context lookups.
  3886. // e.g.: context\u0004key
  3887. // If your translation company uses something different,
  3888. // just change this at any time and it will use that instead.
  3889. Jed.context_delimiter = String.fromCharCode( 4 );
  3890. function getPluralFormFunc ( plural_form_string ) {
  3891. return Jed.PF.compile( plural_form_string || "nplurals=2; plural=(n != 1);");
  3892. }
  3893. function Chain( key, i18n ){
  3894. this._key = key;
  3895. this._i18n = i18n;
  3896. }
  3897. // Create a chainable api for adding args prettily
  3898. _.extend( Chain.prototype, {
  3899. onDomain : function ( domain ) {
  3900. this._domain = domain;
  3901. return this;
  3902. },
  3903. withContext : function ( context ) {
  3904. this._context = context;
  3905. return this;
  3906. },
  3907. ifPlural : function ( num, pkey ) {
  3908. this._val = num;
  3909. this._pkey = pkey;
  3910. return this;
  3911. },
  3912. fetch : function ( sArr ) {
  3913. if ( {}.toString.call( sArr ) != '[object Array]' ) {
  3914. sArr = [].slice.call(arguments, 0);
  3915. }
  3916. return ( sArr && sArr.length ? Jed.sprintf : function(x){ return x; } )(
  3917. this._i18n.dcnpgettext(this._domain, this._context, this._key, this._pkey, this._val),
  3918. sArr
  3919. );
  3920. }
  3921. });
  3922. // Add functions to the Jed prototype.
  3923. // These will be the functions on the object that's returned
  3924. // from creating a `new Jed()`
  3925. // These seem redundant, but they gzip pretty well.
  3926. _.extend( Jed.prototype, {
  3927. // The sexier api start point
  3928. translate : function ( key ) {
  3929. return new Chain( key, this );
  3930. },
  3931. textdomain : function ( domain ) {
  3932. if ( ! domain ) {
  3933. return this._textdomain;
  3934. }
  3935. this._textdomain = domain;
  3936. },
  3937. gettext : function ( key ) {
  3938. return this.dcnpgettext.call( this, undef, undef, key );
  3939. },
  3940. dgettext : function ( domain, key ) {
  3941. return this.dcnpgettext.call( this, domain, undef, key );
  3942. },
  3943. dcgettext : function ( domain , key /*, category */ ) {
  3944. // Ignores the category anyways
  3945. return this.dcnpgettext.call( this, domain, undef, key );
  3946. },
  3947. ngettext : function ( skey, pkey, val ) {
  3948. return this.dcnpgettext.call( this, undef, undef, skey, pkey, val );
  3949. },
  3950. dngettext : function ( domain, skey, pkey, val ) {
  3951. return this.dcnpgettext.call( this, domain, undef, skey, pkey, val );
  3952. },
  3953. dcngettext : function ( domain, skey, pkey, val/*, category */) {
  3954. return this.dcnpgettext.call( this, domain, undef, skey, pkey, val );
  3955. },
  3956. pgettext : function ( context, key ) {
  3957. return this.dcnpgettext.call( this, undef, context, key );
  3958. },
  3959. dpgettext : function ( domain, context, key ) {
  3960. return this.dcnpgettext.call( this, domain, context, key );
  3961. },
  3962. dcpgettext : function ( domain, context, key/*, category */) {
  3963. return this.dcnpgettext.call( this, domain, context, key );
  3964. },
  3965. npgettext : function ( context, skey, pkey, val ) {
  3966. return this.dcnpgettext.call( this, undef, context, skey, pkey, val );
  3967. },
  3968. dnpgettext : function ( domain, context, skey, pkey, val ) {
  3969. return this.dcnpgettext.call( this, domain, context, skey, pkey, val );
  3970. },
  3971. // The most fully qualified gettext function. It has every option.
  3972. // Since it has every option, we can use it from every other method.
  3973. // This is the bread and butter.
  3974. // Technically there should be one more argument in this function for 'Category',
  3975. // but since we never use it, we might as well not waste the bytes to define it.
  3976. dcnpgettext : function ( domain, context, singular_key, plural_key, val ) {
  3977. // Set some defaults
  3978. plural_key = plural_key || singular_key;
  3979. // Use the global domain default if one
  3980. // isn't explicitly passed in
  3981. domain = domain || this._textdomain;
  3982. var fallback;
  3983. // Handle special cases
  3984. // No options found
  3985. if ( ! this.options ) {
  3986. // There's likely something wrong, but we'll return the correct key for english
  3987. // We do this by instantiating a brand new Jed instance with the default set
  3988. // for everything that could be broken.
  3989. fallback = new Jed();
  3990. return fallback.dcnpgettext.call( fallback, undefined, undefined, singular_key, plural_key, val );
  3991. }
  3992. // No translation data provided
  3993. if ( ! this.options.locale_data ) {
  3994. throw new Error('No locale data provided.');
  3995. }
  3996. if ( ! this.options.locale_data[ domain ] ) {
  3997. throw new Error('Domain `' + domain + '` was not found.');
  3998. }
  3999. if ( ! this.options.locale_data[ domain ][ "" ] ) {
  4000. throw new Error('No locale meta information provided.');
  4001. }
  4002. // Make sure we have a truthy key. Otherwise we might start looking
  4003. // into the empty string key, which is the options for the locale
  4004. // data.
  4005. if ( ! singular_key ) {
  4006. throw new Error('No translation key found.');
  4007. }
  4008. var key = context ? context + Jed.context_delimiter + singular_key : singular_key,
  4009. locale_data = this.options.locale_data,
  4010. dict = locale_data[ domain ],
  4011. defaultConf = (locale_data.messages || this.defaults.locale_data.messages)[""],
  4012. pluralForms = dict[""].plural_forms || dict[""]["Plural-Forms"] || dict[""]["plural-forms"] || defaultConf.plural_forms || defaultConf["Plural-Forms"] || defaultConf["plural-forms"],
  4013. val_list,
  4014. res;
  4015. var val_idx;
  4016. if (val === undefined) {
  4017. // No value passed in; assume singular key lookup.
  4018. val_idx = 0;
  4019. } else {
  4020. // Value has been passed in; use plural-forms calculations.
  4021. // Handle invalid numbers, but try casting strings for good measure
  4022. if ( typeof val != 'number' ) {
  4023. val = parseInt( val, 10 );
  4024. if ( isNaN( val ) ) {
  4025. throw new Error('The number that was passed in is not a number.');
  4026. }
  4027. }
  4028. val_idx = getPluralFormFunc(pluralForms)(val);
  4029. }
  4030. // Throw an error if a domain isn't found
  4031. if ( ! dict ) {
  4032. throw new Error('No domain named `' + domain + '` could be found.');
  4033. }
  4034. val_list = dict[ key ];
  4035. // If there is no match, then revert back to
  4036. // english style singular/plural with the keys passed in.
  4037. if ( ! val_list || val_idx > val_list.length ) {
  4038. if (this.options.missing_key_callback) {
  4039. this.options.missing_key_callback(key, domain);
  4040. }
  4041. res = [ singular_key, plural_key ];
  4042. // collect untranslated strings
  4043. if (this.options.debug===true) {
  4044. console.log(res[ getPluralFormFunc(pluralForms)( val ) ]);
  4045. }
  4046. return res[ getPluralFormFunc()( val ) ];
  4047. }
  4048. res = val_list[ val_idx ];
  4049. // This includes empty strings on purpose
  4050. if ( ! res ) {
  4051. res = [ singular_key, plural_key ];
  4052. return res[ getPluralFormFunc()( val ) ];
  4053. }
  4054. return res;
  4055. }
  4056. });
  4057. // We add in sprintf capabilities for post translation value interolation
  4058. // This is not internally used, so you can remove it if you have this
  4059. // available somewhere else, or want to use a different system.
  4060. // We _slightly_ modify the normal sprintf behavior to more gracefully handle
  4061. // undefined values.
  4062. /**
  4063. sprintf() for JavaScript 0.7-beta1
  4064. http://www.diveintojavascript.com/projects/javascript-sprintf
  4065. Copyright (c) Alexandru Marasteanu <alexaholic [at) gmail (dot] com>
  4066. All rights reserved.
  4067. Redistribution and use in source and binary forms, with or without
  4068. modification, are permitted provided that the following conditions are met:
  4069. * Redistributions of source code must retain the above copyright
  4070. notice, this list of conditions and the following disclaimer.
  4071. * Redistributions in binary form must reproduce the above copyright
  4072. notice, this list of conditions and the following disclaimer in the
  4073. documentation and/or other materials provided with the distribution.
  4074. * Neither the name of sprintf() for JavaScript nor the
  4075. names of its contributors may be used to endorse or promote products
  4076. derived from this software without specific prior written permission.
  4077. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  4078. ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  4079. WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  4080. DISCLAIMED. IN NO EVENT SHALL Alexandru Marasteanu BE LIABLE FOR ANY
  4081. DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  4082. (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  4083. LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  4084. ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  4085. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  4086. SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  4087. */
  4088. var sprintf = (function() {
  4089. function get_type(variable) {
  4090. return Object.prototype.toString.call(variable).slice(8, -1).toLowerCase();
  4091. }
  4092. function str_repeat(input, multiplier) {
  4093. for (var output = []; multiplier > 0; output[--multiplier] = input) {/* do nothing */}
  4094. return output.join('');
  4095. }
  4096. var str_format = function() {
  4097. if (!str_format.cache.hasOwnProperty(arguments[0])) {
  4098. str_format.cache[arguments[0]] = str_format.parse(arguments[0]);
  4099. }
  4100. return str_format.format.call(null, str_format.cache[arguments[0]], arguments);
  4101. };
  4102. str_format.format = function(parse_tree, argv) {
  4103. var cursor = 1, tree_length = parse_tree.length, node_type = '', arg, output = [], i, k, match, pad, pad_character, pad_length;
  4104. for (i = 0; i < tree_length; i++) {
  4105. node_type = get_type(parse_tree[i]);
  4106. if (node_type === 'string') {
  4107. output.push(parse_tree[i]);
  4108. }
  4109. else if (node_type === 'array') {
  4110. match = parse_tree[i]; // convenience purposes only
  4111. if (match[2]) { // keyword argument
  4112. arg = argv[cursor];
  4113. for (k = 0; k < match[2].length; k++) {
  4114. if (!arg.hasOwnProperty(match[2][k])) {
  4115. throw(sprintf('[sprintf] property "%s" does not exist', match[2][k]));
  4116. }
  4117. arg = arg[match[2][k]];
  4118. }
  4119. }
  4120. else if (match[1]) { // positional argument (explicit)
  4121. arg = argv[match[1]];
  4122. }
  4123. else { // positional argument (implicit)
  4124. arg = argv[cursor++];
  4125. }
  4126. if (/[^s]/.test(match[8]) && (get_type(arg) != 'number')) {
  4127. throw(sprintf('[sprintf] expecting number but found %s', get_type(arg)));
  4128. }
  4129. // Jed EDIT
  4130. if ( typeof arg == 'undefined' || arg === null ) {
  4131. arg = '';
  4132. }
  4133. // Jed EDIT
  4134. switch (match[8]) {
  4135. case 'b': arg = arg.toString(2); break;
  4136. case 'c': arg = String.fromCharCode(arg); break;
  4137. case 'd': arg = parseInt(arg, 10); break;
  4138. case 'e': arg = match[7] ? arg.toExponential(match[7]) : arg.toExponential(); break;
  4139. case 'f': arg = match[7] ? parseFloat(arg).toFixed(match[7]) : parseFloat(arg); break;
  4140. case 'o': arg = arg.toString(8); break;
  4141. case 's': arg = ((arg = String(arg)) && match[7] ? arg.substring(0, match[7]) : arg); break;
  4142. case 'u': arg = Math.abs(arg); break;
  4143. case 'x': arg = arg.toString(16); break;
  4144. case 'X': arg = arg.toString(16).toUpperCase(); break;
  4145. }
  4146. arg = (/[def]/.test(match[8]) && match[3] && arg >= 0 ? '+'+ arg : arg);
  4147. pad_character = match[4] ? match[4] == '0' ? '0' : match[4].charAt(1) : ' ';
  4148. pad_length = match[6] - String(arg).length;
  4149. pad = match[6] ? str_repeat(pad_character, pad_length) : '';
  4150. output.push(match[5] ? arg + pad : pad + arg);
  4151. }
  4152. }
  4153. return output.join('');
  4154. };
  4155. str_format.cache = {};
  4156. str_format.parse = function(fmt) {
  4157. var _fmt = fmt, match = [], parse_tree = [], arg_names = 0;
  4158. while (_fmt) {
  4159. if ((match = /^[^\x25]+/.exec(_fmt)) !== null) {
  4160. parse_tree.push(match[0]);
  4161. }
  4162. else if ((match = /^\x25{2}/.exec(_fmt)) !== null) {
  4163. parse_tree.push('%');
  4164. }
  4165. else if ((match = /^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(_fmt)) !== null) {
  4166. if (match[2]) {
  4167. arg_names |= 1;
  4168. var field_list = [], replacement_field = match[2], field_match = [];
  4169. if ((field_match = /^([a-z_][a-z_\d]*)/i.exec(replacement_field)) !== null) {
  4170. field_list.push(field_match[1]);
  4171. while ((replacement_field = replacement_field.substring(field_match[0].length)) !== '') {
  4172. if ((field_match = /^\.([a-z_][a-z_\d]*)/i.exec(replacement_field)) !== null) {
  4173. field_list.push(field_match[1]);
  4174. }
  4175. else if ((field_match = /^\[(\d+)\]/.exec(replacement_field)) !== null) {
  4176. field_list.push(field_match[1]);
  4177. }
  4178. else {
  4179. throw('[sprintf] huh?');
  4180. }
  4181. }
  4182. }
  4183. else {
  4184. throw('[sprintf] huh?');
  4185. }
  4186. match[2] = field_list;
  4187. }
  4188. else {
  4189. arg_names |= 2;
  4190. }
  4191. if (arg_names === 3) {
  4192. throw('[sprintf] mixing positional and named placeholders is not (yet) supported');
  4193. }
  4194. parse_tree.push(match);
  4195. }
  4196. else {
  4197. throw('[sprintf] huh?');
  4198. }
  4199. _fmt = _fmt.substring(match[0].length);
  4200. }
  4201. return parse_tree;
  4202. };
  4203. return str_format;
  4204. })();
  4205. var vsprintf = function(fmt, argv) {
  4206. argv.unshift(fmt);
  4207. return sprintf.apply(null, argv);
  4208. };
  4209. Jed.parse_plural = function ( plural_forms, n ) {
  4210. plural_forms = plural_forms.replace(/n/g, n);
  4211. return Jed.parse_expression(plural_forms);
  4212. };
  4213. Jed.sprintf = function ( fmt, args ) {
  4214. if ( {}.toString.call( args ) == '[object Array]' ) {
  4215. return vsprintf( fmt, [].slice.call(args) );
  4216. }
  4217. return sprintf.apply(this, [].slice.call(arguments) );
  4218. };
  4219. Jed.prototype.sprintf = function () {
  4220. return Jed.sprintf.apply(this, arguments);
  4221. };
  4222. // END sprintf Implementation
  4223. // Start the Plural forms section
  4224. // This is a full plural form expression parser. It is used to avoid
  4225. // running 'eval' or 'new Function' directly against the plural
  4226. // forms.
  4227. //
  4228. // This can be important if you get translations done through a 3rd
  4229. // party vendor. I encourage you to use this instead, however, I
  4230. // also will provide a 'precompiler' that you can use at build time
  4231. // to output valid/safe function representations of the plural form
  4232. // expressions. This means you can build this code out for the most
  4233. // part.
  4234. Jed.PF = {};
  4235. Jed.PF.parse = function ( p ) {
  4236. var plural_str = Jed.PF.extractPluralExpr( p );
  4237. return Jed.PF.parser.parse.call(Jed.PF.parser, plural_str);
  4238. };
  4239. Jed.PF.compile = function ( p ) {
  4240. // Handle trues and falses as 0 and 1
  4241. function imply( val ) {
  4242. return (val === true ? 1 : val ? val : 0);
  4243. }
  4244. var ast = Jed.PF.parse( p );
  4245. return function ( n ) {
  4246. return imply( Jed.PF.interpreter( ast )( n ) );
  4247. };
  4248. };
  4249. Jed.PF.interpreter = function ( ast ) {
  4250. return function ( n ) {
  4251. var res;
  4252. switch ( ast.type ) {
  4253. case 'GROUP':
  4254. return Jed.PF.interpreter( ast.expr )( n );
  4255. case 'TERNARY':
  4256. if ( Jed.PF.interpreter( ast.expr )( n ) ) {
  4257. return Jed.PF.interpreter( ast.truthy )( n );
  4258. }
  4259. return Jed.PF.interpreter( ast.falsey )( n );
  4260. case 'OR':
  4261. return Jed.PF.interpreter( ast.left )( n ) || Jed.PF.interpreter( ast.right )( n );
  4262. case 'AND':
  4263. return Jed.PF.interpreter( ast.left )( n ) && Jed.PF.interpreter( ast.right )( n );
  4264. case 'LT':
  4265. return Jed.PF.interpreter( ast.left )( n ) < Jed.PF.interpreter( ast.right )( n );
  4266. case 'GT':
  4267. return Jed.PF.interpreter( ast.left )( n ) > Jed.PF.interpreter( ast.right )( n );
  4268. case 'LTE':
  4269. return Jed.PF.interpreter( ast.left )( n ) <= Jed.PF.interpreter( ast.right )( n );
  4270. case 'GTE':
  4271. return Jed.PF.interpreter( ast.left )( n ) >= Jed.PF.interpreter( ast.right )( n );
  4272. case 'EQ':
  4273. return Jed.PF.interpreter( ast.left )( n ) == Jed.PF.interpreter( ast.right )( n );
  4274. case 'NEQ':
  4275. return Jed.PF.interpreter( ast.left )( n ) != Jed.PF.interpreter( ast.right )( n );
  4276. case 'MOD':
  4277. return Jed.PF.interpreter( ast.left )( n ) % Jed.PF.interpreter( ast.right )( n );
  4278. case 'VAR':
  4279. return n;
  4280. case 'NUM':
  4281. return ast.val;
  4282. default:
  4283. throw new Error("Invalid Token found.");
  4284. }
  4285. };
  4286. };
  4287. Jed.PF.extractPluralExpr = function ( p ) {
  4288. // trim first
  4289. p = p.replace(/^\s\s*/, '').replace(/\s\s*$/, '');
  4290. if (! /;\s*$/.test(p)) {
  4291. p = p.concat(';');
  4292. }
  4293. var nplurals_re = /nplurals\=(\d+);/,
  4294. plural_re = /plural\=(.*);/,
  4295. nplurals_matches = p.match( nplurals_re ),
  4296. res = {},
  4297. plural_matches;
  4298. // Find the nplurals number
  4299. if ( nplurals_matches.length > 1 ) {
  4300. res.nplurals = nplurals_matches[1];
  4301. }
  4302. else {
  4303. throw new Error('nplurals not found in plural_forms string: ' + p );
  4304. }
  4305. // remove that data to get to the formula
  4306. p = p.replace( nplurals_re, "" );
  4307. plural_matches = p.match( plural_re );
  4308. if (!( plural_matches && plural_matches.length > 1 ) ) {
  4309. throw new Error('`plural` expression not found: ' + p);
  4310. }
  4311. return plural_matches[ 1 ];
  4312. };
  4313. /* Jison generated parser */
  4314. Jed.PF.parser = (function(){
  4315. var parser = {trace: function trace() { },
  4316. yy: {},
  4317. symbols_: {"error":2,"expressions":3,"e":4,"EOF":5,"?":6,":":7,"||":8,"&&":9,"<":10,"<=":11,">":12,">=":13,"!=":14,"==":15,"%":16,"(":17,")":18,"n":19,"NUMBER":20,"$accept":0,"$end":1},
  4318. terminals_: {2:"error",5:"EOF",6:"?",7:":",8:"||",9:"&&",10:"<",11:"<=",12:">",13:">=",14:"!=",15:"==",16:"%",17:"(",18:")",19:"n",20:"NUMBER"},
  4319. productions_: [0,[3,2],[4,5],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,1],[4,1]],
  4320. performAction: function anonymous(yytext,yyleng,yylineno,yy,yystate,$$,_$) {
  4321. var $0 = $$.length - 1;
  4322. switch (yystate) {
  4323. case 1: return { type : 'GROUP', expr: $$[$0-1] };
  4324. break;
  4325. case 2:this.$ = { type: 'TERNARY', expr: $$[$0-4], truthy : $$[$0-2], falsey: $$[$0] };
  4326. break;
  4327. case 3:this.$ = { type: "OR", left: $$[$0-2], right: $$[$0] };
  4328. break;
  4329. case 4:this.$ = { type: "AND", left: $$[$0-2], right: $$[$0] };
  4330. break;
  4331. case 5:this.$ = { type: 'LT', left: $$[$0-2], right: $$[$0] };
  4332. break;
  4333. case 6:this.$ = { type: 'LTE', left: $$[$0-2], right: $$[$0] };
  4334. break;
  4335. case 7:this.$ = { type: 'GT', left: $$[$0-2], right: $$[$0] };
  4336. break;
  4337. case 8:this.$ = { type: 'GTE', left: $$[$0-2], right: $$[$0] };
  4338. break;
  4339. case 9:this.$ = { type: 'NEQ', left: $$[$0-2], right: $$[$0] };
  4340. break;
  4341. case 10:this.$ = { type: 'EQ', left: $$[$0-2], right: $$[$0] };
  4342. break;
  4343. case 11:this.$ = { type: 'MOD', left: $$[$0-2], right: $$[$0] };
  4344. break;
  4345. case 12:this.$ = { type: 'GROUP', expr: $$[$0-1] };
  4346. break;
  4347. case 13:this.$ = { type: 'VAR' };
  4348. break;
  4349. case 14:this.$ = { type: 'NUM', val: Number(yytext) };
  4350. break;
  4351. }
  4352. },
  4353. table: [{3:1,4:2,17:[1,3],19:[1,4],20:[1,5]},{1:[3]},{5:[1,6],6:[1,7],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16]},{4:17,17:[1,3],19:[1,4],20:[1,5]},{5:[2,13],6:[2,13],7:[2,13],8:[2,13],9:[2,13],10:[2,13],11:[2,13],12:[2,13],13:[2,13],14:[2,13],15:[2,13],16:[2,13],18:[2,13]},{5:[2,14],6:[2,14],7:[2,14],8:[2,14],9:[2,14],10:[2,14],11:[2,14],12:[2,14],13:[2,14],14:[2,14],15:[2,14],16:[2,14],18:[2,14]},{1:[2,1]},{4:18,17:[1,3],19:[1,4],20:[1,5]},{4:19,17:[1,3],19:[1,4],20:[1,5]},{4:20,17:[1,3],19:[1,4],20:[1,5]},{4:21,17:[1,3],19:[1,4],20:[1,5]},{4:22,17:[1,3],19:[1,4],20:[1,5]},{4:23,17:[1,3],19:[1,4],20:[1,5]},{4:24,17:[1,3],19:[1,4],20:[1,5]},{4:25,17:[1,3],19:[1,4],20:[1,5]},{4:26,17:[1,3],19:[1,4],20:[1,5]},{4:27,17:[1,3],19:[1,4],20:[1,5]},{6:[1,7],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[1,28]},{6:[1,7],7:[1,29],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16]},{5:[2,3],6:[2,3],7:[2,3],8:[2,3],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,3]},{5:[2,4],6:[2,4],7:[2,4],8:[2,4],9:[2,4],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,4]},{5:[2,5],6:[2,5],7:[2,5],8:[2,5],9:[2,5],10:[2,5],11:[2,5],12:[2,5],13:[2,5],14:[2,5],15:[2,5],16:[1,16],18:[2,5]},{5:[2,6],6:[2,6],7:[2,6],8:[2,6],9:[2,6],10:[2,6],11:[2,6],12:[2,6],13:[2,6],14:[2,6],15:[2,6],16:[1,16],18:[2,6]},{5:[2,7],6:[2,7],7:[2,7],8:[2,7],9:[2,7],10:[2,7],11:[2,7],12:[2,7],13:[2,7],14:[2,7],15:[2,7],16:[1,16],18:[2,7]},{5:[2,8],6:[2,8],7:[2,8],8:[2,8],9:[2,8],10:[2,8],11:[2,8],12:[2,8],13:[2,8],14:[2,8],15:[2,8],16:[1,16],18:[2,8]},{5:[2,9],6:[2,9],7:[2,9],8:[2,9],9:[2,9],10:[2,9],11:[2,9],12:[2,9],13:[2,9],14:[2,9],15:[2,9],16:[1,16],18:[2,9]},{5:[2,10],6:[2,10],7:[2,10],8:[2,10],9:[2,10],10:[2,10],11:[2,10],12:[2,10],13:[2,10],14:[2,10],15:[2,10],16:[1,16],18:[2,10]},{5:[2,11],6:[2,11],7:[2,11],8:[2,11],9:[2,11],10:[2,11],11:[2,11],12:[2,11],13:[2,11],14:[2,11],15:[2,11],16:[2,11],18:[2,11]},{5:[2,12],6:[2,12],7:[2,12],8:[2,12],9:[2,12],10:[2,12],11:[2,12],12:[2,12],13:[2,12],14:[2,12],15:[2,12],16:[2,12],18:[2,12]},{4:30,17:[1,3],19:[1,4],20:[1,5]},{5:[2,2],6:[1,7],7:[2,2],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,2]}],
  4354. defaultActions: {6:[2,1]},
  4355. parseError: function parseError(str, hash) {
  4356. throw new Error(str);
  4357. },
  4358. parse: function parse(input) {
  4359. var self = this,
  4360. stack = [0],
  4361. vstack = [null], // semantic value stack
  4362. lstack = [], // location stack
  4363. table = this.table,
  4364. yytext = '',
  4365. yylineno = 0,
  4366. yyleng = 0,
  4367. recovering = 0,
  4368. TERROR = 2,
  4369. EOF = 1;
  4370. //this.reductionCount = this.shiftCount = 0;
  4371. this.lexer.setInput(input);
  4372. this.lexer.yy = this.yy;
  4373. this.yy.lexer = this.lexer;
  4374. if (typeof this.lexer.yylloc == 'undefined')
  4375. this.lexer.yylloc = {};
  4376. var yyloc = this.lexer.yylloc;
  4377. lstack.push(yyloc);
  4378. if (typeof this.yy.parseError === 'function')
  4379. this.parseError = this.yy.parseError;
  4380. function popStack (n) {
  4381. stack.length = stack.length - 2*n;
  4382. vstack.length = vstack.length - n;
  4383. lstack.length = lstack.length - n;
  4384. }
  4385. function lex() {
  4386. var token;
  4387. token = self.lexer.lex() || 1; // $end = 1
  4388. // if token isn't its numeric value, convert
  4389. if (typeof token !== 'number') {
  4390. token = self.symbols_[token] || token;
  4391. }
  4392. return token;
  4393. }
  4394. var symbol, preErrorSymbol, state, action, a, r, yyval={},p,len,newState, expected;
  4395. while (true) {
  4396. // retreive state number from top of stack
  4397. state = stack[stack.length-1];
  4398. // use default actions if available
  4399. if (this.defaultActions[state]) {
  4400. action = this.defaultActions[state];
  4401. } else {
  4402. if (symbol == null)
  4403. symbol = lex();
  4404. // read action for current state and first input
  4405. action = table[state] && table[state][symbol];
  4406. }
  4407. // handle parse error
  4408. _handle_error:
  4409. if (typeof action === 'undefined' || !action.length || !action[0]) {
  4410. if (!recovering) {
  4411. // Report error
  4412. expected = [];
  4413. for (p in table[state]) if (this.terminals_[p] && p > 2) {
  4414. expected.push("'"+this.terminals_[p]+"'");
  4415. }
  4416. var errStr = '';
  4417. if (this.lexer.showPosition) {
  4418. errStr = 'Parse error on line '+(yylineno+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+expected.join(', ') + ", got '" + this.terminals_[symbol]+ "'";
  4419. } else {
  4420. errStr = 'Parse error on line '+(yylineno+1)+": Unexpected " +
  4421. (symbol == 1 /*EOF*/ ? "end of input" :
  4422. ("'"+(this.terminals_[symbol] || symbol)+"'"));
  4423. }
  4424. this.parseError(errStr,
  4425. {text: this.lexer.match, token: this.terminals_[symbol] || symbol, line: this.lexer.yylineno, loc: yyloc, expected: expected});
  4426. }
  4427. // just recovered from another error
  4428. if (recovering == 3) {
  4429. if (symbol == EOF) {
  4430. throw new Error(errStr || 'Parsing halted.');
  4431. }
  4432. // discard current lookahead and grab another
  4433. yyleng = this.lexer.yyleng;
  4434. yytext = this.lexer.yytext;
  4435. yylineno = this.lexer.yylineno;
  4436. yyloc = this.lexer.yylloc;
  4437. symbol = lex();
  4438. }
  4439. // try to recover from error
  4440. while (1) {
  4441. // check for error recovery rule in this state
  4442. if ((TERROR.toString()) in table[state]) {
  4443. break;
  4444. }
  4445. if (state == 0) {
  4446. throw new Error(errStr || 'Parsing halted.');
  4447. }
  4448. popStack(1);
  4449. state = stack[stack.length-1];
  4450. }
  4451. preErrorSymbol = symbol; // save the lookahead token
  4452. symbol = TERROR; // insert generic error symbol as new lookahead
  4453. state = stack[stack.length-1];
  4454. action = table[state] && table[state][TERROR];
  4455. recovering = 3; // allow 3 real symbols to be shifted before reporting a new error
  4456. }
  4457. // this shouldn't happen, unless resolve defaults are off
  4458. if (action[0] instanceof Array && action.length > 1) {
  4459. throw new Error('Parse Error: multiple actions possible at state: '+state+', token: '+symbol);
  4460. }
  4461. switch (action[0]) {
  4462. case 1: // shift
  4463. //this.shiftCount++;
  4464. stack.push(symbol);
  4465. vstack.push(this.lexer.yytext);
  4466. lstack.push(this.lexer.yylloc);
  4467. stack.push(action[1]); // push state
  4468. symbol = null;
  4469. if (!preErrorSymbol) { // normal execution/no error
  4470. yyleng = this.lexer.yyleng;
  4471. yytext = this.lexer.yytext;
  4472. yylineno = this.lexer.yylineno;
  4473. yyloc = this.lexer.yylloc;
  4474. if (recovering > 0)
  4475. recovering--;
  4476. } else { // error just occurred, resume old lookahead f/ before error
  4477. symbol = preErrorSymbol;
  4478. preErrorSymbol = null;
  4479. }
  4480. break;
  4481. case 2: // reduce
  4482. //this.reductionCount++;
  4483. len = this.productions_[action[1]][1];
  4484. // perform semantic action
  4485. yyval.$ = vstack[vstack.length-len]; // default to $$ = $1
  4486. // default location, uses first token for firsts, last for lasts
  4487. yyval._$ = {
  4488. first_line: lstack[lstack.length-(len||1)].first_line,
  4489. last_line: lstack[lstack.length-1].last_line,
  4490. first_column: lstack[lstack.length-(len||1)].first_column,
  4491. last_column: lstack[lstack.length-1].last_column
  4492. };
  4493. r = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action[1], vstack, lstack);
  4494. if (typeof r !== 'undefined') {
  4495. return r;
  4496. }
  4497. // pop off stack
  4498. if (len) {
  4499. stack = stack.slice(0,-1*len*2);
  4500. vstack = vstack.slice(0, -1*len);
  4501. lstack = lstack.slice(0, -1*len);
  4502. }
  4503. stack.push(this.productions_[action[1]][0]); // push nonterminal (reduce)
  4504. vstack.push(yyval.$);
  4505. lstack.push(yyval._$);
  4506. // goto new state = table[STATE][NONTERMINAL]
  4507. newState = table[stack[stack.length-2]][stack[stack.length-1]];
  4508. stack.push(newState);
  4509. break;
  4510. case 3: // accept
  4511. return true;
  4512. }
  4513. }
  4514. return true;
  4515. }};/* Jison generated lexer */
  4516. var lexer = (function(){
  4517. var lexer = ({EOF:1,
  4518. parseError:function parseError(str, hash) {
  4519. if (this.yy.parseError) {
  4520. this.yy.parseError(str, hash);
  4521. } else {
  4522. throw new Error(str);
  4523. }
  4524. },
  4525. setInput:function (input) {
  4526. this._input = input;
  4527. this._more = this._less = this.done = false;
  4528. this.yylineno = this.yyleng = 0;
  4529. this.yytext = this.matched = this.match = '';
  4530. this.conditionStack = ['INITIAL'];
  4531. this.yylloc = {first_line:1,first_column:0,last_line:1,last_column:0};
  4532. return this;
  4533. },
  4534. input:function () {
  4535. var ch = this._input[0];
  4536. this.yytext+=ch;
  4537. this.yyleng++;
  4538. this.match+=ch;
  4539. this.matched+=ch;
  4540. var lines = ch.match(/\n/);
  4541. if (lines) this.yylineno++;
  4542. this._input = this._input.slice(1);
  4543. return ch;
  4544. },
  4545. unput:function (ch) {
  4546. this._input = ch + this._input;
  4547. return this;
  4548. },
  4549. more:function () {
  4550. this._more = true;
  4551. return this;
  4552. },
  4553. pastInput:function () {
  4554. var past = this.matched.substr(0, this.matched.length - this.match.length);
  4555. return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, "");
  4556. },
  4557. upcomingInput:function () {
  4558. var next = this.match;
  4559. if (next.length < 20) {
  4560. next += this._input.substr(0, 20-next.length);
  4561. }
  4562. return (next.substr(0,20)+(next.length > 20 ? '...':'')).replace(/\n/g, "");
  4563. },
  4564. showPosition:function () {
  4565. var pre = this.pastInput();
  4566. var c = new Array(pre.length + 1).join("-");
  4567. return pre + this.upcomingInput() + "\n" + c+"^";
  4568. },
  4569. next:function () {
  4570. if (this.done) {
  4571. return this.EOF;
  4572. }
  4573. if (!this._input) this.done = true;
  4574. var token,
  4575. match,
  4576. col,
  4577. lines;
  4578. if (!this._more) {
  4579. this.yytext = '';
  4580. this.match = '';
  4581. }
  4582. var rules = this._currentRules();
  4583. for (var i=0;i < rules.length; i++) {
  4584. match = this._input.match(this.rules[rules[i]]);
  4585. if (match) {
  4586. lines = match[0].match(/\n.*/g);
  4587. if (lines) this.yylineno += lines.length;
  4588. this.yylloc = {first_line: this.yylloc.last_line,
  4589. last_line: this.yylineno+1,
  4590. first_column: this.yylloc.last_column,
  4591. last_column: lines ? lines[lines.length-1].length-1 : this.yylloc.last_column + match[0].length}
  4592. this.yytext += match[0];
  4593. this.match += match[0];
  4594. this.matches = match;
  4595. this.yyleng = this.yytext.length;
  4596. this._more = false;
  4597. this._input = this._input.slice(match[0].length);
  4598. this.matched += match[0];
  4599. token = this.performAction.call(this, this.yy, this, rules[i],this.conditionStack[this.conditionStack.length-1]);
  4600. if (token) return token;
  4601. else return;
  4602. }
  4603. }
  4604. if (this._input === "") {
  4605. return this.EOF;
  4606. } else {
  4607. this.parseError('Lexical error on line '+(this.yylineno+1)+'. Unrecognized text.\n'+this.showPosition(),
  4608. {text: "", token: null, line: this.yylineno});
  4609. }
  4610. },
  4611. lex:function lex() {
  4612. var r = this.next();
  4613. if (typeof r !== 'undefined') {
  4614. return r;
  4615. } else {
  4616. return this.lex();
  4617. }
  4618. },
  4619. begin:function begin(condition) {
  4620. this.conditionStack.push(condition);
  4621. },
  4622. popState:function popState() {
  4623. return this.conditionStack.pop();
  4624. },
  4625. _currentRules:function _currentRules() {
  4626. return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;
  4627. },
  4628. topState:function () {
  4629. return this.conditionStack[this.conditionStack.length-2];
  4630. },
  4631. pushState:function begin(condition) {
  4632. this.begin(condition);
  4633. }});
  4634. lexer.performAction = function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {
  4635. var YYSTATE=YY_START;
  4636. switch($avoiding_name_collisions) {
  4637. case 0:/* skip whitespace */
  4638. break;
  4639. case 1:return 20
  4640. break;
  4641. case 2:return 19
  4642. break;
  4643. case 3:return 8
  4644. break;
  4645. case 4:return 9
  4646. break;
  4647. case 5:return 6
  4648. break;
  4649. case 6:return 7
  4650. break;
  4651. case 7:return 11
  4652. break;
  4653. case 8:return 13
  4654. break;
  4655. case 9:return 10
  4656. break;
  4657. case 10:return 12
  4658. break;
  4659. case 11:return 14
  4660. break;
  4661. case 12:return 15
  4662. break;
  4663. case 13:return 16
  4664. break;
  4665. case 14:return 17
  4666. break;
  4667. case 15:return 18
  4668. break;
  4669. case 16:return 5
  4670. break;
  4671. case 17:return 'INVALID'
  4672. break;
  4673. }
  4674. };
  4675. lexer.rules = [/^\s+/,/^[0-9]+(\.[0-9]+)?\b/,/^n\b/,/^\|\|/,/^&&/,/^\?/,/^:/,/^<=/,/^>=/,/^</,/^>/,/^!=/,/^==/,/^%/,/^\(/,/^\)/,/^$/,/^./];
  4676. lexer.conditions = {"INITIAL":{"rules":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],"inclusive":true}};return lexer;})()
  4677. parser.lexer = lexer;
  4678. return parser;
  4679. })();
  4680. // End parser
  4681. // Handle node, amd, and global systems
  4682. if (true) {
  4683. if (typeof module !== 'undefined' && module.exports) {
  4684. exports = module.exports = Jed;
  4685. }
  4686. exports.Jed = Jed;
  4687. }
  4688. else {}
  4689. })(this);
  4690. /***/ }),
  4691. /***/ "./node_modules/lodash/_Symbol.js":
  4692. /*!****************************************!*\
  4693. !*** ./node_modules/lodash/_Symbol.js ***!
  4694. \****************************************/
  4695. /*! no static exports found */
  4696. /***/ (function(module, exports, __webpack_require__) {
  4697. var root = __webpack_require__(/*! ./_root */ "./node_modules/lodash/_root.js");
  4698. /** Built-in value references. */
  4699. var Symbol = root.Symbol;
  4700. module.exports = Symbol;
  4701. /***/ }),
  4702. /***/ "./node_modules/lodash/_arrayMap.js":
  4703. /*!******************************************!*\
  4704. !*** ./node_modules/lodash/_arrayMap.js ***!
  4705. \******************************************/
  4706. /*! no static exports found */
  4707. /***/ (function(module, exports) {
  4708. /**
  4709. * A specialized version of `_.map` for arrays without support for iteratee
  4710. * shorthands.
  4711. *
  4712. * @private
  4713. * @param {Array} [array] The array to iterate over.
  4714. * @param {Function} iteratee The function invoked per iteration.
  4715. * @returns {Array} Returns the new mapped array.
  4716. */
  4717. function arrayMap(array, iteratee) {
  4718. var index = -1,
  4719. length = array == null ? 0 : array.length,
  4720. result = Array(length);
  4721. while (++index < length) {
  4722. result[index] = iteratee(array[index], index, array);
  4723. }
  4724. return result;
  4725. }
  4726. module.exports = arrayMap;
  4727. /***/ }),
  4728. /***/ "./node_modules/lodash/_baseGetTag.js":
  4729. /*!********************************************!*\
  4730. !*** ./node_modules/lodash/_baseGetTag.js ***!
  4731. \********************************************/
  4732. /*! no static exports found */
  4733. /***/ (function(module, exports, __webpack_require__) {
  4734. var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
  4735. getRawTag = __webpack_require__(/*! ./_getRawTag */ "./node_modules/lodash/_getRawTag.js"),
  4736. objectToString = __webpack_require__(/*! ./_objectToString */ "./node_modules/lodash/_objectToString.js");
  4737. /** `Object#toString` result references. */
  4738. var nullTag = '[object Null]',
  4739. undefinedTag = '[object Undefined]';
  4740. /** Built-in value references. */
  4741. var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  4742. /**
  4743. * The base implementation of `getTag` without fallbacks for buggy environments.
  4744. *
  4745. * @private
  4746. * @param {*} value The value to query.
  4747. * @returns {string} Returns the `toStringTag`.
  4748. */
  4749. function baseGetTag(value) {
  4750. if (value == null) {
  4751. return value === undefined ? undefinedTag : nullTag;
  4752. }
  4753. return (symToStringTag && symToStringTag in Object(value))
  4754. ? getRawTag(value)
  4755. : objectToString(value);
  4756. }
  4757. module.exports = baseGetTag;
  4758. /***/ }),
  4759. /***/ "./node_modules/lodash/_basePropertyOf.js":
  4760. /*!************************************************!*\
  4761. !*** ./node_modules/lodash/_basePropertyOf.js ***!
  4762. \************************************************/
  4763. /*! no static exports found */
  4764. /***/ (function(module, exports) {
  4765. /**
  4766. * The base implementation of `_.propertyOf` without support for deep paths.
  4767. *
  4768. * @private
  4769. * @param {Object} object The object to query.
  4770. * @returns {Function} Returns the new accessor function.
  4771. */
  4772. function basePropertyOf(object) {
  4773. return function(key) {
  4774. return object == null ? undefined : object[key];
  4775. };
  4776. }
  4777. module.exports = basePropertyOf;
  4778. /***/ }),
  4779. /***/ "./node_modules/lodash/_baseToString.js":
  4780. /*!**********************************************!*\
  4781. !*** ./node_modules/lodash/_baseToString.js ***!
  4782. \**********************************************/
  4783. /*! no static exports found */
  4784. /***/ (function(module, exports, __webpack_require__) {
  4785. var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js"),
  4786. arrayMap = __webpack_require__(/*! ./_arrayMap */ "./node_modules/lodash/_arrayMap.js"),
  4787. isArray = __webpack_require__(/*! ./isArray */ "./node_modules/lodash/isArray.js"),
  4788. isSymbol = __webpack_require__(/*! ./isSymbol */ "./node_modules/lodash/isSymbol.js");
  4789. /** Used as references for various `Number` constants. */
  4790. var INFINITY = 1 / 0;
  4791. /** Used to convert symbols to primitives and strings. */
  4792. var symbolProto = Symbol ? Symbol.prototype : undefined,
  4793. symbolToString = symbolProto ? symbolProto.toString : undefined;
  4794. /**
  4795. * The base implementation of `_.toString` which doesn't convert nullish
  4796. * values to empty strings.
  4797. *
  4798. * @private
  4799. * @param {*} value The value to process.
  4800. * @returns {string} Returns the string.
  4801. */
  4802. function baseToString(value) {
  4803. // Exit early for strings to avoid a performance hit in some environments.
  4804. if (typeof value == 'string') {
  4805. return value;
  4806. }
  4807. if (isArray(value)) {
  4808. // Recursively convert values (susceptible to call stack limits).
  4809. return arrayMap(value, baseToString) + '';
  4810. }
  4811. if (isSymbol(value)) {
  4812. return symbolToString ? symbolToString.call(value) : '';
  4813. }
  4814. var result = (value + '');
  4815. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  4816. }
  4817. module.exports = baseToString;
  4818. /***/ }),
  4819. /***/ "./node_modules/lodash/_escapeHtmlChar.js":
  4820. /*!************************************************!*\
  4821. !*** ./node_modules/lodash/_escapeHtmlChar.js ***!
  4822. \************************************************/
  4823. /*! no static exports found */
  4824. /***/ (function(module, exports, __webpack_require__) {
  4825. var basePropertyOf = __webpack_require__(/*! ./_basePropertyOf */ "./node_modules/lodash/_basePropertyOf.js");
  4826. /** Used to map characters to HTML entities. */
  4827. var htmlEscapes = {
  4828. '&': '&amp;',
  4829. '<': '&lt;',
  4830. '>': '&gt;',
  4831. '"': '&quot;',
  4832. "'": '&#39;'
  4833. };
  4834. /**
  4835. * Used by `_.escape` to convert characters to HTML entities.
  4836. *
  4837. * @private
  4838. * @param {string} chr The matched character to escape.
  4839. * @returns {string} Returns the escaped character.
  4840. */
  4841. var escapeHtmlChar = basePropertyOf(htmlEscapes);
  4842. module.exports = escapeHtmlChar;
  4843. /***/ }),
  4844. /***/ "./node_modules/lodash/_freeGlobal.js":
  4845. /*!********************************************!*\
  4846. !*** ./node_modules/lodash/_freeGlobal.js ***!
  4847. \********************************************/
  4848. /*! no static exports found */
  4849. /***/ (function(module, exports, __webpack_require__) {
  4850. /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
  4851. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  4852. module.exports = freeGlobal;
  4853. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
  4854. /***/ }),
  4855. /***/ "./node_modules/lodash/_getRawTag.js":
  4856. /*!*******************************************!*\
  4857. !*** ./node_modules/lodash/_getRawTag.js ***!
  4858. \*******************************************/
  4859. /*! no static exports found */
  4860. /***/ (function(module, exports, __webpack_require__) {
  4861. var Symbol = __webpack_require__(/*! ./_Symbol */ "./node_modules/lodash/_Symbol.js");
  4862. /** Used for built-in method references. */
  4863. var objectProto = Object.prototype;
  4864. /** Used to check objects for own properties. */
  4865. var hasOwnProperty = objectProto.hasOwnProperty;
  4866. /**
  4867. * Used to resolve the
  4868. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  4869. * of values.
  4870. */
  4871. var nativeObjectToString = objectProto.toString;
  4872. /** Built-in value references. */
  4873. var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  4874. /**
  4875. * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
  4876. *
  4877. * @private
  4878. * @param {*} value The value to query.
  4879. * @returns {string} Returns the raw `toStringTag`.
  4880. */
  4881. function getRawTag(value) {
  4882. var isOwn = hasOwnProperty.call(value, symToStringTag),
  4883. tag = value[symToStringTag];
  4884. try {
  4885. value[symToStringTag] = undefined;
  4886. var unmasked = true;
  4887. } catch (e) {}
  4888. var result = nativeObjectToString.call(value);
  4889. if (unmasked) {
  4890. if (isOwn) {
  4891. value[symToStringTag] = tag;
  4892. } else {
  4893. delete value[symToStringTag];
  4894. }
  4895. }
  4896. return result;
  4897. }
  4898. module.exports = getRawTag;
  4899. /***/ }),
  4900. /***/ "./node_modules/lodash/_objectToString.js":
  4901. /*!************************************************!*\
  4902. !*** ./node_modules/lodash/_objectToString.js ***!
  4903. \************************************************/
  4904. /*! no static exports found */
  4905. /***/ (function(module, exports) {
  4906. /** Used for built-in method references. */
  4907. var objectProto = Object.prototype;
  4908. /**
  4909. * Used to resolve the
  4910. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  4911. * of values.
  4912. */
  4913. var nativeObjectToString = objectProto.toString;
  4914. /**
  4915. * Converts `value` to a string using `Object.prototype.toString`.
  4916. *
  4917. * @private
  4918. * @param {*} value The value to convert.
  4919. * @returns {string} Returns the converted string.
  4920. */
  4921. function objectToString(value) {
  4922. return nativeObjectToString.call(value);
  4923. }
  4924. module.exports = objectToString;
  4925. /***/ }),
  4926. /***/ "./node_modules/lodash/_root.js":
  4927. /*!**************************************!*\
  4928. !*** ./node_modules/lodash/_root.js ***!
  4929. \**************************************/
  4930. /*! no static exports found */
  4931. /***/ (function(module, exports, __webpack_require__) {
  4932. var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "./node_modules/lodash/_freeGlobal.js");
  4933. /** Detect free variable `self`. */
  4934. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  4935. /** Used as a reference to the global object. */
  4936. var root = freeGlobal || freeSelf || Function('return this')();
  4937. module.exports = root;
  4938. /***/ }),
  4939. /***/ "./node_modules/lodash/escape.js":
  4940. /*!***************************************!*\
  4941. !*** ./node_modules/lodash/escape.js ***!
  4942. \***************************************/
  4943. /*! no static exports found */
  4944. /***/ (function(module, exports, __webpack_require__) {
  4945. var escapeHtmlChar = __webpack_require__(/*! ./_escapeHtmlChar */ "./node_modules/lodash/_escapeHtmlChar.js"),
  4946. toString = __webpack_require__(/*! ./toString */ "./node_modules/lodash/toString.js");
  4947. /** Used to match HTML entities and HTML characters. */
  4948. var reUnescapedHtml = /[&<>"']/g,
  4949. reHasUnescapedHtml = RegExp(reUnescapedHtml.source);
  4950. /**
  4951. * Converts the characters "&", "<", ">", '"', and "'" in `string` to their
  4952. * corresponding HTML entities.
  4953. *
  4954. * **Note:** No other characters are escaped. To escape additional
  4955. * characters use a third-party library like [_he_](https://mths.be/he).
  4956. *
  4957. * Though the ">" character is escaped for symmetry, characters like
  4958. * ">" and "/" don't need escaping in HTML and have no special meaning
  4959. * unless they're part of a tag or unquoted attribute value. See
  4960. * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)
  4961. * (under "semi-related fun fact") for more details.
  4962. *
  4963. * When working with HTML you should always
  4964. * [quote attribute values](http://wonko.com/post/html-escaping) to reduce
  4965. * XSS vectors.
  4966. *
  4967. * @static
  4968. * @since 0.1.0
  4969. * @memberOf _
  4970. * @category String
  4971. * @param {string} [string=''] The string to escape.
  4972. * @returns {string} Returns the escaped string.
  4973. * @example
  4974. *
  4975. * _.escape('fred, barney, & pebbles');
  4976. * // => 'fred, barney, &amp; pebbles'
  4977. */
  4978. function escape(string) {
  4979. string = toString(string);
  4980. return (string && reHasUnescapedHtml.test(string))
  4981. ? string.replace(reUnescapedHtml, escapeHtmlChar)
  4982. : string;
  4983. }
  4984. module.exports = escape;
  4985. /***/ }),
  4986. /***/ "./node_modules/lodash/isArray.js":
  4987. /*!****************************************!*\
  4988. !*** ./node_modules/lodash/isArray.js ***!
  4989. \****************************************/
  4990. /*! no static exports found */
  4991. /***/ (function(module, exports) {
  4992. /**
  4993. * Checks if `value` is classified as an `Array` object.
  4994. *
  4995. * @static
  4996. * @memberOf _
  4997. * @since 0.1.0
  4998. * @category Lang
  4999. * @param {*} value The value to check.
  5000. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  5001. * @example
  5002. *
  5003. * _.isArray([1, 2, 3]);
  5004. * // => true
  5005. *
  5006. * _.isArray(document.body.children);
  5007. * // => false
  5008. *
  5009. * _.isArray('abc');
  5010. * // => false
  5011. *
  5012. * _.isArray(_.noop);
  5013. * // => false
  5014. */
  5015. var isArray = Array.isArray;
  5016. module.exports = isArray;
  5017. /***/ }),
  5018. /***/ "./node_modules/lodash/isObjectLike.js":
  5019. /*!*********************************************!*\
  5020. !*** ./node_modules/lodash/isObjectLike.js ***!
  5021. \*********************************************/
  5022. /*! no static exports found */
  5023. /***/ (function(module, exports) {
  5024. /**
  5025. * Checks if `value` is object-like. A value is object-like if it's not `null`
  5026. * and has a `typeof` result of "object".
  5027. *
  5028. * @static
  5029. * @memberOf _
  5030. * @since 4.0.0
  5031. * @category Lang
  5032. * @param {*} value The value to check.
  5033. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  5034. * @example
  5035. *
  5036. * _.isObjectLike({});
  5037. * // => true
  5038. *
  5039. * _.isObjectLike([1, 2, 3]);
  5040. * // => true
  5041. *
  5042. * _.isObjectLike(_.noop);
  5043. * // => false
  5044. *
  5045. * _.isObjectLike(null);
  5046. * // => false
  5047. */
  5048. function isObjectLike(value) {
  5049. return value != null && typeof value == 'object';
  5050. }
  5051. module.exports = isObjectLike;
  5052. /***/ }),
  5053. /***/ "./node_modules/lodash/isSymbol.js":
  5054. /*!*****************************************!*\
  5055. !*** ./node_modules/lodash/isSymbol.js ***!
  5056. \*****************************************/
  5057. /*! no static exports found */
  5058. /***/ (function(module, exports, __webpack_require__) {
  5059. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "./node_modules/lodash/_baseGetTag.js"),
  5060. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "./node_modules/lodash/isObjectLike.js");
  5061. /** `Object#toString` result references. */
  5062. var symbolTag = '[object Symbol]';
  5063. /**
  5064. * Checks if `value` is classified as a `Symbol` primitive or object.
  5065. *
  5066. * @static
  5067. * @memberOf _
  5068. * @since 4.0.0
  5069. * @category Lang
  5070. * @param {*} value The value to check.
  5071. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  5072. * @example
  5073. *
  5074. * _.isSymbol(Symbol.iterator);
  5075. * // => true
  5076. *
  5077. * _.isSymbol('abc');
  5078. * // => false
  5079. */
  5080. function isSymbol(value) {
  5081. return typeof value == 'symbol' ||
  5082. (isObjectLike(value) && baseGetTag(value) == symbolTag);
  5083. }
  5084. module.exports = isSymbol;
  5085. /***/ }),
  5086. /***/ "./node_modules/lodash/toString.js":
  5087. /*!*****************************************!*\
  5088. !*** ./node_modules/lodash/toString.js ***!
  5089. \*****************************************/
  5090. /*! no static exports found */
  5091. /***/ (function(module, exports, __webpack_require__) {
  5092. var baseToString = __webpack_require__(/*! ./_baseToString */ "./node_modules/lodash/_baseToString.js");
  5093. /**
  5094. * Converts `value` to a string. An empty string is returned for `null`
  5095. * and `undefined` values. The sign of `-0` is preserved.
  5096. *
  5097. * @static
  5098. * @memberOf _
  5099. * @since 4.0.0
  5100. * @category Lang
  5101. * @param {*} value The value to convert.
  5102. * @returns {string} Returns the converted string.
  5103. * @example
  5104. *
  5105. * _.toString(null);
  5106. * // => ''
  5107. *
  5108. * _.toString(-0);
  5109. * // => '-0'
  5110. *
  5111. * _.toString([1, 2, 3]);
  5112. * // => '1,2,3'
  5113. */
  5114. function toString(value) {
  5115. return value == null ? '' : baseToString(value);
  5116. }
  5117. module.exports = toString;
  5118. /***/ }),
  5119. /***/ "./node_modules/moment/locale sync recursive ^\\.\\/.*$":
  5120. /*!**************************************************!*\
  5121. !*** ./node_modules/moment/locale sync ^\.\/.*$ ***!
  5122. \**************************************************/
  5123. /*! no static exports found */
  5124. /***/ (function(module, exports, __webpack_require__) {
  5125. var map = {
  5126. "./af": "./node_modules/moment/locale/af.js",
  5127. "./af.js": "./node_modules/moment/locale/af.js",
  5128. "./ar": "./node_modules/moment/locale/ar.js",
  5129. "./ar-dz": "./node_modules/moment/locale/ar-dz.js",
  5130. "./ar-dz.js": "./node_modules/moment/locale/ar-dz.js",
  5131. "./ar-kw": "./node_modules/moment/locale/ar-kw.js",
  5132. "./ar-kw.js": "./node_modules/moment/locale/ar-kw.js",
  5133. "./ar-ly": "./node_modules/moment/locale/ar-ly.js",
  5134. "./ar-ly.js": "./node_modules/moment/locale/ar-ly.js",
  5135. "./ar-ma": "./node_modules/moment/locale/ar-ma.js",
  5136. "./ar-ma.js": "./node_modules/moment/locale/ar-ma.js",
  5137. "./ar-sa": "./node_modules/moment/locale/ar-sa.js",
  5138. "./ar-sa.js": "./node_modules/moment/locale/ar-sa.js",
  5139. "./ar-tn": "./node_modules/moment/locale/ar-tn.js",
  5140. "./ar-tn.js": "./node_modules/moment/locale/ar-tn.js",
  5141. "./ar.js": "./node_modules/moment/locale/ar.js",
  5142. "./az": "./node_modules/moment/locale/az.js",
  5143. "./az.js": "./node_modules/moment/locale/az.js",
  5144. "./be": "./node_modules/moment/locale/be.js",
  5145. "./be.js": "./node_modules/moment/locale/be.js",
  5146. "./bg": "./node_modules/moment/locale/bg.js",
  5147. "./bg.js": "./node_modules/moment/locale/bg.js",
  5148. "./bm": "./node_modules/moment/locale/bm.js",
  5149. "./bm.js": "./node_modules/moment/locale/bm.js",
  5150. "./bn": "./node_modules/moment/locale/bn.js",
  5151. "./bn.js": "./node_modules/moment/locale/bn.js",
  5152. "./bo": "./node_modules/moment/locale/bo.js",
  5153. "./bo.js": "./node_modules/moment/locale/bo.js",
  5154. "./br": "./node_modules/moment/locale/br.js",
  5155. "./br.js": "./node_modules/moment/locale/br.js",
  5156. "./bs": "./node_modules/moment/locale/bs.js",
  5157. "./bs.js": "./node_modules/moment/locale/bs.js",
  5158. "./ca": "./node_modules/moment/locale/ca.js",
  5159. "./ca.js": "./node_modules/moment/locale/ca.js",
  5160. "./cs": "./node_modules/moment/locale/cs.js",
  5161. "./cs.js": "./node_modules/moment/locale/cs.js",
  5162. "./cv": "./node_modules/moment/locale/cv.js",
  5163. "./cv.js": "./node_modules/moment/locale/cv.js",
  5164. "./cy": "./node_modules/moment/locale/cy.js",
  5165. "./cy.js": "./node_modules/moment/locale/cy.js",
  5166. "./da": "./node_modules/moment/locale/da.js",
  5167. "./da.js": "./node_modules/moment/locale/da.js",
  5168. "./de": "./node_modules/moment/locale/de.js",
  5169. "./de-at": "./node_modules/moment/locale/de-at.js",
  5170. "./de-at.js": "./node_modules/moment/locale/de-at.js",
  5171. "./de-ch": "./node_modules/moment/locale/de-ch.js",
  5172. "./de-ch.js": "./node_modules/moment/locale/de-ch.js",
  5173. "./de.js": "./node_modules/moment/locale/de.js",
  5174. "./dv": "./node_modules/moment/locale/dv.js",
  5175. "./dv.js": "./node_modules/moment/locale/dv.js",
  5176. "./el": "./node_modules/moment/locale/el.js",
  5177. "./el.js": "./node_modules/moment/locale/el.js",
  5178. "./en-au": "./node_modules/moment/locale/en-au.js",
  5179. "./en-au.js": "./node_modules/moment/locale/en-au.js",
  5180. "./en-ca": "./node_modules/moment/locale/en-ca.js",
  5181. "./en-ca.js": "./node_modules/moment/locale/en-ca.js",
  5182. "./en-gb": "./node_modules/moment/locale/en-gb.js",
  5183. "./en-gb.js": "./node_modules/moment/locale/en-gb.js",
  5184. "./en-ie": "./node_modules/moment/locale/en-ie.js",
  5185. "./en-ie.js": "./node_modules/moment/locale/en-ie.js",
  5186. "./en-nz": "./node_modules/moment/locale/en-nz.js",
  5187. "./en-nz.js": "./node_modules/moment/locale/en-nz.js",
  5188. "./eo": "./node_modules/moment/locale/eo.js",
  5189. "./eo.js": "./node_modules/moment/locale/eo.js",
  5190. "./es": "./node_modules/moment/locale/es.js",
  5191. "./es-do": "./node_modules/moment/locale/es-do.js",
  5192. "./es-do.js": "./node_modules/moment/locale/es-do.js",
  5193. "./es-us": "./node_modules/moment/locale/es-us.js",
  5194. "./es-us.js": "./node_modules/moment/locale/es-us.js",
  5195. "./es.js": "./node_modules/moment/locale/es.js",
  5196. "./et": "./node_modules/moment/locale/et.js",
  5197. "./et.js": "./node_modules/moment/locale/et.js",
  5198. "./eu": "./node_modules/moment/locale/eu.js",
  5199. "./eu.js": "./node_modules/moment/locale/eu.js",
  5200. "./fa": "./node_modules/moment/locale/fa.js",
  5201. "./fa.js": "./node_modules/moment/locale/fa.js",
  5202. "./fi": "./node_modules/moment/locale/fi.js",
  5203. "./fi.js": "./node_modules/moment/locale/fi.js",
  5204. "./fo": "./node_modules/moment/locale/fo.js",
  5205. "./fo.js": "./node_modules/moment/locale/fo.js",
  5206. "./fr": "./node_modules/moment/locale/fr.js",
  5207. "./fr-ca": "./node_modules/moment/locale/fr-ca.js",
  5208. "./fr-ca.js": "./node_modules/moment/locale/fr-ca.js",
  5209. "./fr-ch": "./node_modules/moment/locale/fr-ch.js",
  5210. "./fr-ch.js": "./node_modules/moment/locale/fr-ch.js",
  5211. "./fr.js": "./node_modules/moment/locale/fr.js",
  5212. "./fy": "./node_modules/moment/locale/fy.js",
  5213. "./fy.js": "./node_modules/moment/locale/fy.js",
  5214. "./gd": "./node_modules/moment/locale/gd.js",
  5215. "./gd.js": "./node_modules/moment/locale/gd.js",
  5216. "./gl": "./node_modules/moment/locale/gl.js",
  5217. "./gl.js": "./node_modules/moment/locale/gl.js",
  5218. "./gom-latn": "./node_modules/moment/locale/gom-latn.js",
  5219. "./gom-latn.js": "./node_modules/moment/locale/gom-latn.js",
  5220. "./gu": "./node_modules/moment/locale/gu.js",
  5221. "./gu.js": "./node_modules/moment/locale/gu.js",
  5222. "./he": "./node_modules/moment/locale/he.js",
  5223. "./he.js": "./node_modules/moment/locale/he.js",
  5224. "./hi": "./node_modules/moment/locale/hi.js",
  5225. "./hi.js": "./node_modules/moment/locale/hi.js",
  5226. "./hr": "./node_modules/moment/locale/hr.js",
  5227. "./hr.js": "./node_modules/moment/locale/hr.js",
  5228. "./hu": "./node_modules/moment/locale/hu.js",
  5229. "./hu.js": "./node_modules/moment/locale/hu.js",
  5230. "./hy-am": "./node_modules/moment/locale/hy-am.js",
  5231. "./hy-am.js": "./node_modules/moment/locale/hy-am.js",
  5232. "./id": "./node_modules/moment/locale/id.js",
  5233. "./id.js": "./node_modules/moment/locale/id.js",
  5234. "./is": "./node_modules/moment/locale/is.js",
  5235. "./is.js": "./node_modules/moment/locale/is.js",
  5236. "./it": "./node_modules/moment/locale/it.js",
  5237. "./it.js": "./node_modules/moment/locale/it.js",
  5238. "./ja": "./node_modules/moment/locale/ja.js",
  5239. "./ja.js": "./node_modules/moment/locale/ja.js",
  5240. "./jv": "./node_modules/moment/locale/jv.js",
  5241. "./jv.js": "./node_modules/moment/locale/jv.js",
  5242. "./ka": "./node_modules/moment/locale/ka.js",
  5243. "./ka.js": "./node_modules/moment/locale/ka.js",
  5244. "./kk": "./node_modules/moment/locale/kk.js",
  5245. "./kk.js": "./node_modules/moment/locale/kk.js",
  5246. "./km": "./node_modules/moment/locale/km.js",
  5247. "./km.js": "./node_modules/moment/locale/km.js",
  5248. "./kn": "./node_modules/moment/locale/kn.js",
  5249. "./kn.js": "./node_modules/moment/locale/kn.js",
  5250. "./ko": "./node_modules/moment/locale/ko.js",
  5251. "./ko.js": "./node_modules/moment/locale/ko.js",
  5252. "./ky": "./node_modules/moment/locale/ky.js",
  5253. "./ky.js": "./node_modules/moment/locale/ky.js",
  5254. "./lb": "./node_modules/moment/locale/lb.js",
  5255. "./lb.js": "./node_modules/moment/locale/lb.js",
  5256. "./lo": "./node_modules/moment/locale/lo.js",
  5257. "./lo.js": "./node_modules/moment/locale/lo.js",
  5258. "./lt": "./node_modules/moment/locale/lt.js",
  5259. "./lt.js": "./node_modules/moment/locale/lt.js",
  5260. "./lv": "./node_modules/moment/locale/lv.js",
  5261. "./lv.js": "./node_modules/moment/locale/lv.js",
  5262. "./me": "./node_modules/moment/locale/me.js",
  5263. "./me.js": "./node_modules/moment/locale/me.js",
  5264. "./mi": "./node_modules/moment/locale/mi.js",
  5265. "./mi.js": "./node_modules/moment/locale/mi.js",
  5266. "./mk": "./node_modules/moment/locale/mk.js",
  5267. "./mk.js": "./node_modules/moment/locale/mk.js",
  5268. "./ml": "./node_modules/moment/locale/ml.js",
  5269. "./ml.js": "./node_modules/moment/locale/ml.js",
  5270. "./mr": "./node_modules/moment/locale/mr.js",
  5271. "./mr.js": "./node_modules/moment/locale/mr.js",
  5272. "./ms": "./node_modules/moment/locale/ms.js",
  5273. "./ms-my": "./node_modules/moment/locale/ms-my.js",
  5274. "./ms-my.js": "./node_modules/moment/locale/ms-my.js",
  5275. "./ms.js": "./node_modules/moment/locale/ms.js",
  5276. "./my": "./node_modules/moment/locale/my.js",
  5277. "./my.js": "./node_modules/moment/locale/my.js",
  5278. "./nb": "./node_modules/moment/locale/nb.js",
  5279. "./nb.js": "./node_modules/moment/locale/nb.js",
  5280. "./ne": "./node_modules/moment/locale/ne.js",
  5281. "./ne.js": "./node_modules/moment/locale/ne.js",
  5282. "./nl": "./node_modules/moment/locale/nl.js",
  5283. "./nl-be": "./node_modules/moment/locale/nl-be.js",
  5284. "./nl-be.js": "./node_modules/moment/locale/nl-be.js",
  5285. "./nl.js": "./node_modules/moment/locale/nl.js",
  5286. "./nn": "./node_modules/moment/locale/nn.js",
  5287. "./nn.js": "./node_modules/moment/locale/nn.js",
  5288. "./pa-in": "./node_modules/moment/locale/pa-in.js",
  5289. "./pa-in.js": "./node_modules/moment/locale/pa-in.js",
  5290. "./pl": "./node_modules/moment/locale/pl.js",
  5291. "./pl.js": "./node_modules/moment/locale/pl.js",
  5292. "./pt": "./node_modules/moment/locale/pt.js",
  5293. "./pt-br": "./node_modules/moment/locale/pt-br.js",
  5294. "./pt-br.js": "./node_modules/moment/locale/pt-br.js",
  5295. "./pt.js": "./node_modules/moment/locale/pt.js",
  5296. "./ro": "./node_modules/moment/locale/ro.js",
  5297. "./ro.js": "./node_modules/moment/locale/ro.js",
  5298. "./ru": "./node_modules/moment/locale/ru.js",
  5299. "./ru.js": "./node_modules/moment/locale/ru.js",
  5300. "./sd": "./node_modules/moment/locale/sd.js",
  5301. "./sd.js": "./node_modules/moment/locale/sd.js",
  5302. "./se": "./node_modules/moment/locale/se.js",
  5303. "./se.js": "./node_modules/moment/locale/se.js",
  5304. "./si": "./node_modules/moment/locale/si.js",
  5305. "./si.js": "./node_modules/moment/locale/si.js",
  5306. "./sk": "./node_modules/moment/locale/sk.js",
  5307. "./sk.js": "./node_modules/moment/locale/sk.js",
  5308. "./sl": "./node_modules/moment/locale/sl.js",
  5309. "./sl.js": "./node_modules/moment/locale/sl.js",
  5310. "./sq": "./node_modules/moment/locale/sq.js",
  5311. "./sq.js": "./node_modules/moment/locale/sq.js",
  5312. "./sr": "./node_modules/moment/locale/sr.js",
  5313. "./sr-cyrl": "./node_modules/moment/locale/sr-cyrl.js",
  5314. "./sr-cyrl.js": "./node_modules/moment/locale/sr-cyrl.js",
  5315. "./sr.js": "./node_modules/moment/locale/sr.js",
  5316. "./ss": "./node_modules/moment/locale/ss.js",
  5317. "./ss.js": "./node_modules/moment/locale/ss.js",
  5318. "./sv": "./node_modules/moment/locale/sv.js",
  5319. "./sv.js": "./node_modules/moment/locale/sv.js",
  5320. "./sw": "./node_modules/moment/locale/sw.js",
  5321. "./sw.js": "./node_modules/moment/locale/sw.js",
  5322. "./ta": "./node_modules/moment/locale/ta.js",
  5323. "./ta.js": "./node_modules/moment/locale/ta.js",
  5324. "./te": "./node_modules/moment/locale/te.js",
  5325. "./te.js": "./node_modules/moment/locale/te.js",
  5326. "./tet": "./node_modules/moment/locale/tet.js",
  5327. "./tet.js": "./node_modules/moment/locale/tet.js",
  5328. "./th": "./node_modules/moment/locale/th.js",
  5329. "./th.js": "./node_modules/moment/locale/th.js",
  5330. "./tl-ph": "./node_modules/moment/locale/tl-ph.js",
  5331. "./tl-ph.js": "./node_modules/moment/locale/tl-ph.js",
  5332. "./tlh": "./node_modules/moment/locale/tlh.js",
  5333. "./tlh.js": "./node_modules/moment/locale/tlh.js",
  5334. "./tr": "./node_modules/moment/locale/tr.js",
  5335. "./tr.js": "./node_modules/moment/locale/tr.js",
  5336. "./tzl": "./node_modules/moment/locale/tzl.js",
  5337. "./tzl.js": "./node_modules/moment/locale/tzl.js",
  5338. "./tzm": "./node_modules/moment/locale/tzm.js",
  5339. "./tzm-latn": "./node_modules/moment/locale/tzm-latn.js",
  5340. "./tzm-latn.js": "./node_modules/moment/locale/tzm-latn.js",
  5341. "./tzm.js": "./node_modules/moment/locale/tzm.js",
  5342. "./uk": "./node_modules/moment/locale/uk.js",
  5343. "./uk.js": "./node_modules/moment/locale/uk.js",
  5344. "./ur": "./node_modules/moment/locale/ur.js",
  5345. "./ur.js": "./node_modules/moment/locale/ur.js",
  5346. "./uz": "./node_modules/moment/locale/uz.js",
  5347. "./uz-latn": "./node_modules/moment/locale/uz-latn.js",
  5348. "./uz-latn.js": "./node_modules/moment/locale/uz-latn.js",
  5349. "./uz.js": "./node_modules/moment/locale/uz.js",
  5350. "./vi": "./node_modules/moment/locale/vi.js",
  5351. "./vi.js": "./node_modules/moment/locale/vi.js",
  5352. "./x-pseudo": "./node_modules/moment/locale/x-pseudo.js",
  5353. "./x-pseudo.js": "./node_modules/moment/locale/x-pseudo.js",
  5354. "./yo": "./node_modules/moment/locale/yo.js",
  5355. "./yo.js": "./node_modules/moment/locale/yo.js",
  5356. "./zh-cn": "./node_modules/moment/locale/zh-cn.js",
  5357. "./zh-cn.js": "./node_modules/moment/locale/zh-cn.js",
  5358. "./zh-hk": "./node_modules/moment/locale/zh-hk.js",
  5359. "./zh-hk.js": "./node_modules/moment/locale/zh-hk.js",
  5360. "./zh-tw": "./node_modules/moment/locale/zh-tw.js",
  5361. "./zh-tw.js": "./node_modules/moment/locale/zh-tw.js"
  5362. };
  5363. function webpackContext(req) {
  5364. var id = webpackContextResolve(req);
  5365. return __webpack_require__(id);
  5366. }
  5367. function webpackContextResolve(req) {
  5368. var id = map[req];
  5369. if(!(id + 1)) { // check for number or string
  5370. var e = new Error("Cannot find module '" + req + "'");
  5371. e.code = 'MODULE_NOT_FOUND';
  5372. throw e;
  5373. }
  5374. return id;
  5375. }
  5376. webpackContext.keys = function webpackContextKeys() {
  5377. return Object.keys(map);
  5378. };
  5379. webpackContext.resolve = webpackContextResolve;
  5380. module.exports = webpackContext;
  5381. webpackContext.id = "./node_modules/moment/locale sync recursive ^\\.\\/.*$";
  5382. /***/ }),
  5383. /***/ "./node_modules/moment/locale/af.js":
  5384. /*!******************************************!*\
  5385. !*** ./node_modules/moment/locale/af.js ***!
  5386. \******************************************/
  5387. /*! no static exports found */
  5388. /***/ (function(module, exports, __webpack_require__) {
  5389. //! moment.js locale configuration
  5390. //! locale : Afrikaans [af]
  5391. //! author : Werner Mollentze : https://github.com/wernerm
  5392. ;(function (global, factory) {
  5393. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  5394. undefined
  5395. }(this, (function (moment) { 'use strict';
  5396. var af = moment.defineLocale('af', {
  5397. months : 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'),
  5398. monthsShort : 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'),
  5399. weekdays : 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'),
  5400. weekdaysShort : 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'),
  5401. weekdaysMin : 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'),
  5402. meridiemParse: /vm|nm/i,
  5403. isPM : function (input) {
  5404. return /^nm$/i.test(input);
  5405. },
  5406. meridiem : function (hours, minutes, isLower) {
  5407. if (hours < 12) {
  5408. return isLower ? 'vm' : 'VM';
  5409. } else {
  5410. return isLower ? 'nm' : 'NM';
  5411. }
  5412. },
  5413. longDateFormat : {
  5414. LT : 'HH:mm',
  5415. LTS : 'HH:mm:ss',
  5416. L : 'DD/MM/YYYY',
  5417. LL : 'D MMMM YYYY',
  5418. LLL : 'D MMMM YYYY HH:mm',
  5419. LLLL : 'dddd, D MMMM YYYY HH:mm'
  5420. },
  5421. calendar : {
  5422. sameDay : '[Vandag om] LT',
  5423. nextDay : '[Môre om] LT',
  5424. nextWeek : 'dddd [om] LT',
  5425. lastDay : '[Gister om] LT',
  5426. lastWeek : '[Laas] dddd [om] LT',
  5427. sameElse : 'L'
  5428. },
  5429. relativeTime : {
  5430. future : 'oor %s',
  5431. past : '%s gelede',
  5432. s : '\'n paar sekondes',
  5433. m : '\'n minuut',
  5434. mm : '%d minute',
  5435. h : '\'n uur',
  5436. hh : '%d ure',
  5437. d : '\'n dag',
  5438. dd : '%d dae',
  5439. M : '\'n maand',
  5440. MM : '%d maande',
  5441. y : '\'n jaar',
  5442. yy : '%d jaar'
  5443. },
  5444. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  5445. ordinal : function (number) {
  5446. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter
  5447. },
  5448. week : {
  5449. dow : 1, // Maandag is die eerste dag van die week.
  5450. doy : 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
  5451. }
  5452. });
  5453. return af;
  5454. })));
  5455. /***/ }),
  5456. /***/ "./node_modules/moment/locale/ar-dz.js":
  5457. /*!*********************************************!*\
  5458. !*** ./node_modules/moment/locale/ar-dz.js ***!
  5459. \*********************************************/
  5460. /*! no static exports found */
  5461. /***/ (function(module, exports, __webpack_require__) {
  5462. //! moment.js locale configuration
  5463. //! locale : Arabic (Algeria) [ar-dz]
  5464. //! author : Noureddine LOUAHEDJ : https://github.com/noureddineme
  5465. ;(function (global, factory) {
  5466. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  5467. undefined
  5468. }(this, (function (moment) { 'use strict';
  5469. var arDz = moment.defineLocale('ar-dz', {
  5470. months : 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  5471. monthsShort : 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  5472. weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5473. weekdaysShort : 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  5474. weekdaysMin : 'أح_إث_ثلا_أر_خم_جم_سب'.split('_'),
  5475. weekdaysParseExact : true,
  5476. longDateFormat : {
  5477. LT : 'HH:mm',
  5478. LTS : 'HH:mm:ss',
  5479. L : 'DD/MM/YYYY',
  5480. LL : 'D MMMM YYYY',
  5481. LLL : 'D MMMM YYYY HH:mm',
  5482. LLLL : 'dddd D MMMM YYYY HH:mm'
  5483. },
  5484. calendar : {
  5485. sameDay: '[اليوم على الساعة] LT',
  5486. nextDay: '[غدا على الساعة] LT',
  5487. nextWeek: 'dddd [على الساعة] LT',
  5488. lastDay: '[أمس على الساعة] LT',
  5489. lastWeek: 'dddd [على الساعة] LT',
  5490. sameElse: 'L'
  5491. },
  5492. relativeTime : {
  5493. future : 'في %s',
  5494. past : 'منذ %s',
  5495. s : 'ثوان',
  5496. m : 'دقيقة',
  5497. mm : '%d دقائق',
  5498. h : 'ساعة',
  5499. hh : '%d ساعات',
  5500. d : 'يوم',
  5501. dd : '%d أيام',
  5502. M : 'شهر',
  5503. MM : '%d أشهر',
  5504. y : 'سنة',
  5505. yy : '%d سنوات'
  5506. },
  5507. week : {
  5508. dow : 0, // Sunday is the first day of the week.
  5509. doy : 4 // The week that contains Jan 1st is the first week of the year.
  5510. }
  5511. });
  5512. return arDz;
  5513. })));
  5514. /***/ }),
  5515. /***/ "./node_modules/moment/locale/ar-kw.js":
  5516. /*!*********************************************!*\
  5517. !*** ./node_modules/moment/locale/ar-kw.js ***!
  5518. \*********************************************/
  5519. /*! no static exports found */
  5520. /***/ (function(module, exports, __webpack_require__) {
  5521. //! moment.js locale configuration
  5522. //! locale : Arabic (Kuwait) [ar-kw]
  5523. //! author : Nusret Parlak: https://github.com/nusretparlak
  5524. ;(function (global, factory) {
  5525. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  5526. undefined
  5527. }(this, (function (moment) { 'use strict';
  5528. var arKw = moment.defineLocale('ar-kw', {
  5529. months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  5530. monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  5531. weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5532. weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  5533. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5534. weekdaysParseExact : true,
  5535. longDateFormat : {
  5536. LT : 'HH:mm',
  5537. LTS : 'HH:mm:ss',
  5538. L : 'DD/MM/YYYY',
  5539. LL : 'D MMMM YYYY',
  5540. LLL : 'D MMMM YYYY HH:mm',
  5541. LLLL : 'dddd D MMMM YYYY HH:mm'
  5542. },
  5543. calendar : {
  5544. sameDay: '[اليوم على الساعة] LT',
  5545. nextDay: '[غدا على الساعة] LT',
  5546. nextWeek: 'dddd [على الساعة] LT',
  5547. lastDay: '[أمس على الساعة] LT',
  5548. lastWeek: 'dddd [على الساعة] LT',
  5549. sameElse: 'L'
  5550. },
  5551. relativeTime : {
  5552. future : 'في %s',
  5553. past : 'منذ %s',
  5554. s : 'ثوان',
  5555. m : 'دقيقة',
  5556. mm : '%d دقائق',
  5557. h : 'ساعة',
  5558. hh : '%d ساعات',
  5559. d : 'يوم',
  5560. dd : '%d أيام',
  5561. M : 'شهر',
  5562. MM : '%d أشهر',
  5563. y : 'سنة',
  5564. yy : '%d سنوات'
  5565. },
  5566. week : {
  5567. dow : 0, // Sunday is the first day of the week.
  5568. doy : 12 // The week that contains Jan 1st is the first week of the year.
  5569. }
  5570. });
  5571. return arKw;
  5572. })));
  5573. /***/ }),
  5574. /***/ "./node_modules/moment/locale/ar-ly.js":
  5575. /*!*********************************************!*\
  5576. !*** ./node_modules/moment/locale/ar-ly.js ***!
  5577. \*********************************************/
  5578. /*! no static exports found */
  5579. /***/ (function(module, exports, __webpack_require__) {
  5580. //! moment.js locale configuration
  5581. //! locale : Arabic (Lybia) [ar-ly]
  5582. //! author : Ali Hmer: https://github.com/kikoanis
  5583. ;(function (global, factory) {
  5584. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  5585. undefined
  5586. }(this, (function (moment) { 'use strict';
  5587. var symbolMap = {
  5588. '1': '1',
  5589. '2': '2',
  5590. '3': '3',
  5591. '4': '4',
  5592. '5': '5',
  5593. '6': '6',
  5594. '7': '7',
  5595. '8': '8',
  5596. '9': '9',
  5597. '0': '0'
  5598. };
  5599. var pluralForm = function (n) {
  5600. return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
  5601. };
  5602. var plurals = {
  5603. s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
  5604. m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
  5605. h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
  5606. d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
  5607. M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
  5608. y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
  5609. };
  5610. var pluralize = function (u) {
  5611. return function (number, withoutSuffix, string, isFuture) {
  5612. var f = pluralForm(number),
  5613. str = plurals[u][pluralForm(number)];
  5614. if (f === 2) {
  5615. str = str[withoutSuffix ? 0 : 1];
  5616. }
  5617. return str.replace(/%d/i, number);
  5618. };
  5619. };
  5620. var months = [
  5621. 'يناير',
  5622. 'فبراير',
  5623. 'مارس',
  5624. 'أبريل',
  5625. 'مايو',
  5626. 'يونيو',
  5627. 'يوليو',
  5628. 'أغسطس',
  5629. 'سبتمبر',
  5630. 'أكتوبر',
  5631. 'نوفمبر',
  5632. 'ديسمبر'
  5633. ];
  5634. var arLy = moment.defineLocale('ar-ly', {
  5635. months : months,
  5636. monthsShort : months,
  5637. weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5638. weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5639. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5640. weekdaysParseExact : true,
  5641. longDateFormat : {
  5642. LT : 'HH:mm',
  5643. LTS : 'HH:mm:ss',
  5644. L : 'D/\u200FM/\u200FYYYY',
  5645. LL : 'D MMMM YYYY',
  5646. LLL : 'D MMMM YYYY HH:mm',
  5647. LLLL : 'dddd D MMMM YYYY HH:mm'
  5648. },
  5649. meridiemParse: /ص|م/,
  5650. isPM : function (input) {
  5651. return 'م' === input;
  5652. },
  5653. meridiem : function (hour, minute, isLower) {
  5654. if (hour < 12) {
  5655. return 'ص';
  5656. } else {
  5657. return 'م';
  5658. }
  5659. },
  5660. calendar : {
  5661. sameDay: '[اليوم عند الساعة] LT',
  5662. nextDay: '[غدًا عند الساعة] LT',
  5663. nextWeek: 'dddd [عند الساعة] LT',
  5664. lastDay: '[أمس عند الساعة] LT',
  5665. lastWeek: 'dddd [عند الساعة] LT',
  5666. sameElse: 'L'
  5667. },
  5668. relativeTime : {
  5669. future : 'بعد %s',
  5670. past : 'منذ %s',
  5671. s : pluralize('s'),
  5672. m : pluralize('m'),
  5673. mm : pluralize('m'),
  5674. h : pluralize('h'),
  5675. hh : pluralize('h'),
  5676. d : pluralize('d'),
  5677. dd : pluralize('d'),
  5678. M : pluralize('M'),
  5679. MM : pluralize('M'),
  5680. y : pluralize('y'),
  5681. yy : pluralize('y')
  5682. },
  5683. preparse: function (string) {
  5684. return string.replace(/،/g, ',');
  5685. },
  5686. postformat: function (string) {
  5687. return string.replace(/\d/g, function (match) {
  5688. return symbolMap[match];
  5689. }).replace(/,/g, '،');
  5690. },
  5691. week : {
  5692. dow : 6, // Saturday is the first day of the week.
  5693. doy : 12 // The week that contains Jan 1st is the first week of the year.
  5694. }
  5695. });
  5696. return arLy;
  5697. })));
  5698. /***/ }),
  5699. /***/ "./node_modules/moment/locale/ar-ma.js":
  5700. /*!*********************************************!*\
  5701. !*** ./node_modules/moment/locale/ar-ma.js ***!
  5702. \*********************************************/
  5703. /*! no static exports found */
  5704. /***/ (function(module, exports, __webpack_require__) {
  5705. //! moment.js locale configuration
  5706. //! locale : Arabic (Morocco) [ar-ma]
  5707. //! author : ElFadili Yassine : https://github.com/ElFadiliY
  5708. //! author : Abdel Said : https://github.com/abdelsaid
  5709. ;(function (global, factory) {
  5710. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  5711. undefined
  5712. }(this, (function (moment) { 'use strict';
  5713. var arMa = moment.defineLocale('ar-ma', {
  5714. months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  5715. monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'),
  5716. weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5717. weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'),
  5718. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5719. weekdaysParseExact : true,
  5720. longDateFormat : {
  5721. LT : 'HH:mm',
  5722. LTS : 'HH:mm:ss',
  5723. L : 'DD/MM/YYYY',
  5724. LL : 'D MMMM YYYY',
  5725. LLL : 'D MMMM YYYY HH:mm',
  5726. LLLL : 'dddd D MMMM YYYY HH:mm'
  5727. },
  5728. calendar : {
  5729. sameDay: '[اليوم على الساعة] LT',
  5730. nextDay: '[غدا على الساعة] LT',
  5731. nextWeek: 'dddd [على الساعة] LT',
  5732. lastDay: '[أمس على الساعة] LT',
  5733. lastWeek: 'dddd [على الساعة] LT',
  5734. sameElse: 'L'
  5735. },
  5736. relativeTime : {
  5737. future : 'في %s',
  5738. past : 'منذ %s',
  5739. s : 'ثوان',
  5740. m : 'دقيقة',
  5741. mm : '%d دقائق',
  5742. h : 'ساعة',
  5743. hh : '%d ساعات',
  5744. d : 'يوم',
  5745. dd : '%d أيام',
  5746. M : 'شهر',
  5747. MM : '%d أشهر',
  5748. y : 'سنة',
  5749. yy : '%d سنوات'
  5750. },
  5751. week : {
  5752. dow : 6, // Saturday is the first day of the week.
  5753. doy : 12 // The week that contains Jan 1st is the first week of the year.
  5754. }
  5755. });
  5756. return arMa;
  5757. })));
  5758. /***/ }),
  5759. /***/ "./node_modules/moment/locale/ar-sa.js":
  5760. /*!*********************************************!*\
  5761. !*** ./node_modules/moment/locale/ar-sa.js ***!
  5762. \*********************************************/
  5763. /*! no static exports found */
  5764. /***/ (function(module, exports, __webpack_require__) {
  5765. //! moment.js locale configuration
  5766. //! locale : Arabic (Saudi Arabia) [ar-sa]
  5767. //! author : Suhail Alkowaileet : https://github.com/xsoh
  5768. ;(function (global, factory) {
  5769. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  5770. undefined
  5771. }(this, (function (moment) { 'use strict';
  5772. var symbolMap = {
  5773. '1': '١',
  5774. '2': '٢',
  5775. '3': '٣',
  5776. '4': '٤',
  5777. '5': '٥',
  5778. '6': '٦',
  5779. '7': '٧',
  5780. '8': '٨',
  5781. '9': '٩',
  5782. '0': '٠'
  5783. };
  5784. var numberMap = {
  5785. '١': '1',
  5786. '٢': '2',
  5787. '٣': '3',
  5788. '٤': '4',
  5789. '٥': '5',
  5790. '٦': '6',
  5791. '٧': '7',
  5792. '٨': '8',
  5793. '٩': '9',
  5794. '٠': '0'
  5795. };
  5796. var arSa = moment.defineLocale('ar-sa', {
  5797. months : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  5798. monthsShort : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  5799. weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5800. weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5801. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5802. weekdaysParseExact : true,
  5803. longDateFormat : {
  5804. LT : 'HH:mm',
  5805. LTS : 'HH:mm:ss',
  5806. L : 'DD/MM/YYYY',
  5807. LL : 'D MMMM YYYY',
  5808. LLL : 'D MMMM YYYY HH:mm',
  5809. LLLL : 'dddd D MMMM YYYY HH:mm'
  5810. },
  5811. meridiemParse: /ص|م/,
  5812. isPM : function (input) {
  5813. return 'م' === input;
  5814. },
  5815. meridiem : function (hour, minute, isLower) {
  5816. if (hour < 12) {
  5817. return 'ص';
  5818. } else {
  5819. return 'م';
  5820. }
  5821. },
  5822. calendar : {
  5823. sameDay: '[اليوم على الساعة] LT',
  5824. nextDay: '[غدا على الساعة] LT',
  5825. nextWeek: 'dddd [على الساعة] LT',
  5826. lastDay: '[أمس على الساعة] LT',
  5827. lastWeek: 'dddd [على الساعة] LT',
  5828. sameElse: 'L'
  5829. },
  5830. relativeTime : {
  5831. future : 'في %s',
  5832. past : 'منذ %s',
  5833. s : 'ثوان',
  5834. m : 'دقيقة',
  5835. mm : '%d دقائق',
  5836. h : 'ساعة',
  5837. hh : '%d ساعات',
  5838. d : 'يوم',
  5839. dd : '%d أيام',
  5840. M : 'شهر',
  5841. MM : '%d أشهر',
  5842. y : 'سنة',
  5843. yy : '%d سنوات'
  5844. },
  5845. preparse: function (string) {
  5846. return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  5847. return numberMap[match];
  5848. }).replace(/،/g, ',');
  5849. },
  5850. postformat: function (string) {
  5851. return string.replace(/\d/g, function (match) {
  5852. return symbolMap[match];
  5853. }).replace(/,/g, '،');
  5854. },
  5855. week : {
  5856. dow : 0, // Sunday is the first day of the week.
  5857. doy : 6 // The week that contains Jan 1st is the first week of the year.
  5858. }
  5859. });
  5860. return arSa;
  5861. })));
  5862. /***/ }),
  5863. /***/ "./node_modules/moment/locale/ar-tn.js":
  5864. /*!*********************************************!*\
  5865. !*** ./node_modules/moment/locale/ar-tn.js ***!
  5866. \*********************************************/
  5867. /*! no static exports found */
  5868. /***/ (function(module, exports, __webpack_require__) {
  5869. //! moment.js locale configuration
  5870. //! locale : Arabic (Tunisia) [ar-tn]
  5871. //! author : Nader Toukabri : https://github.com/naderio
  5872. ;(function (global, factory) {
  5873. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  5874. undefined
  5875. }(this, (function (moment) { 'use strict';
  5876. var arTn = moment.defineLocale('ar-tn', {
  5877. months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  5878. monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'),
  5879. weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  5880. weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  5881. weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  5882. weekdaysParseExact : true,
  5883. longDateFormat: {
  5884. LT: 'HH:mm',
  5885. LTS: 'HH:mm:ss',
  5886. L: 'DD/MM/YYYY',
  5887. LL: 'D MMMM YYYY',
  5888. LLL: 'D MMMM YYYY HH:mm',
  5889. LLLL: 'dddd D MMMM YYYY HH:mm'
  5890. },
  5891. calendar: {
  5892. sameDay: '[اليوم على الساعة] LT',
  5893. nextDay: '[غدا على الساعة] LT',
  5894. nextWeek: 'dddd [على الساعة] LT',
  5895. lastDay: '[أمس على الساعة] LT',
  5896. lastWeek: 'dddd [على الساعة] LT',
  5897. sameElse: 'L'
  5898. },
  5899. relativeTime: {
  5900. future: 'في %s',
  5901. past: 'منذ %s',
  5902. s: 'ثوان',
  5903. m: 'دقيقة',
  5904. mm: '%d دقائق',
  5905. h: 'ساعة',
  5906. hh: '%d ساعات',
  5907. d: 'يوم',
  5908. dd: '%d أيام',
  5909. M: 'شهر',
  5910. MM: '%d أشهر',
  5911. y: 'سنة',
  5912. yy: '%d سنوات'
  5913. },
  5914. week: {
  5915. dow: 1, // Monday is the first day of the week.
  5916. doy: 4 // The week that contains Jan 4th is the first week of the year.
  5917. }
  5918. });
  5919. return arTn;
  5920. })));
  5921. /***/ }),
  5922. /***/ "./node_modules/moment/locale/ar.js":
  5923. /*!******************************************!*\
  5924. !*** ./node_modules/moment/locale/ar.js ***!
  5925. \******************************************/
  5926. /*! no static exports found */
  5927. /***/ (function(module, exports, __webpack_require__) {
  5928. //! moment.js locale configuration
  5929. //! locale : Arabic [ar]
  5930. //! author : Abdel Said: https://github.com/abdelsaid
  5931. //! author : Ahmed Elkhatib
  5932. //! author : forabi https://github.com/forabi
  5933. ;(function (global, factory) {
  5934. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  5935. undefined
  5936. }(this, (function (moment) { 'use strict';
  5937. var symbolMap = {
  5938. '1': '١',
  5939. '2': '٢',
  5940. '3': '٣',
  5941. '4': '٤',
  5942. '5': '٥',
  5943. '6': '٦',
  5944. '7': '٧',
  5945. '8': '٨',
  5946. '9': '٩',
  5947. '0': '٠'
  5948. };
  5949. var numberMap = {
  5950. '١': '1',
  5951. '٢': '2',
  5952. '٣': '3',
  5953. '٤': '4',
  5954. '٥': '5',
  5955. '٦': '6',
  5956. '٧': '7',
  5957. '٨': '8',
  5958. '٩': '9',
  5959. '٠': '0'
  5960. };
  5961. var pluralForm = function (n) {
  5962. return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5;
  5963. };
  5964. var plurals = {
  5965. s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'],
  5966. m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'],
  5967. h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'],
  5968. d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'],
  5969. M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'],
  5970. y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام']
  5971. };
  5972. var pluralize = function (u) {
  5973. return function (number, withoutSuffix, string, isFuture) {
  5974. var f = pluralForm(number),
  5975. str = plurals[u][pluralForm(number)];
  5976. if (f === 2) {
  5977. str = str[withoutSuffix ? 0 : 1];
  5978. }
  5979. return str.replace(/%d/i, number);
  5980. };
  5981. };
  5982. var months = [
  5983. 'كانون الثاني يناير',
  5984. 'شباط فبراير',
  5985. 'آذار مارس',
  5986. 'نيسان أبريل',
  5987. 'أيار مايو',
  5988. 'حزيران يونيو',
  5989. 'تموز يوليو',
  5990. 'آب أغسطس',
  5991. 'أيلول سبتمبر',
  5992. 'تشرين الأول أكتوبر',
  5993. 'تشرين الثاني نوفمبر',
  5994. 'كانون الأول ديسمبر'
  5995. ];
  5996. var ar = moment.defineLocale('ar', {
  5997. months : months,
  5998. monthsShort : months,
  5999. weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'),
  6000. weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'),
  6001. weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
  6002. weekdaysParseExact : true,
  6003. longDateFormat : {
  6004. LT : 'HH:mm',
  6005. LTS : 'HH:mm:ss',
  6006. L : 'D/\u200FM/\u200FYYYY',
  6007. LL : 'D MMMM YYYY',
  6008. LLL : 'D MMMM YYYY HH:mm',
  6009. LLLL : 'dddd D MMMM YYYY HH:mm'
  6010. },
  6011. meridiemParse: /ص|م/,
  6012. isPM : function (input) {
  6013. return 'م' === input;
  6014. },
  6015. meridiem : function (hour, minute, isLower) {
  6016. if (hour < 12) {
  6017. return 'ص';
  6018. } else {
  6019. return 'م';
  6020. }
  6021. },
  6022. calendar : {
  6023. sameDay: '[اليوم عند الساعة] LT',
  6024. nextDay: '[غدًا عند الساعة] LT',
  6025. nextWeek: 'dddd [عند الساعة] LT',
  6026. lastDay: '[أمس عند الساعة] LT',
  6027. lastWeek: 'dddd [عند الساعة] LT',
  6028. sameElse: 'L'
  6029. },
  6030. relativeTime : {
  6031. future : 'بعد %s',
  6032. past : 'منذ %s',
  6033. s : pluralize('s'),
  6034. m : pluralize('m'),
  6035. mm : pluralize('m'),
  6036. h : pluralize('h'),
  6037. hh : pluralize('h'),
  6038. d : pluralize('d'),
  6039. dd : pluralize('d'),
  6040. M : pluralize('M'),
  6041. MM : pluralize('M'),
  6042. y : pluralize('y'),
  6043. yy : pluralize('y')
  6044. },
  6045. preparse: function (string) {
  6046. return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
  6047. return numberMap[match];
  6048. }).replace(/،/g, ',');
  6049. },
  6050. postformat: function (string) {
  6051. return string.replace(/\d/g, function (match) {
  6052. return symbolMap[match];
  6053. }).replace(/,/g, '،');
  6054. },
  6055. week : {
  6056. dow : 6, // Saturday is the first day of the week.
  6057. doy : 12 // The week that contains Jan 1st is the first week of the year.
  6058. }
  6059. });
  6060. return ar;
  6061. })));
  6062. /***/ }),
  6063. /***/ "./node_modules/moment/locale/az.js":
  6064. /*!******************************************!*\
  6065. !*** ./node_modules/moment/locale/az.js ***!
  6066. \******************************************/
  6067. /*! no static exports found */
  6068. /***/ (function(module, exports, __webpack_require__) {
  6069. //! moment.js locale configuration
  6070. //! locale : Azerbaijani [az]
  6071. //! author : topchiyev : https://github.com/topchiyev
  6072. ;(function (global, factory) {
  6073. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  6074. undefined
  6075. }(this, (function (moment) { 'use strict';
  6076. var suffixes = {
  6077. 1: '-inci',
  6078. 5: '-inci',
  6079. 8: '-inci',
  6080. 70: '-inci',
  6081. 80: '-inci',
  6082. 2: '-nci',
  6083. 7: '-nci',
  6084. 20: '-nci',
  6085. 50: '-nci',
  6086. 3: '-üncü',
  6087. 4: '-üncü',
  6088. 100: '-üncü',
  6089. 6: '-ncı',
  6090. 9: '-uncu',
  6091. 10: '-uncu',
  6092. 30: '-uncu',
  6093. 60: '-ıncı',
  6094. 90: '-ıncı'
  6095. };
  6096. var az = moment.defineLocale('az', {
  6097. months : 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),
  6098. monthsShort : 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
  6099. weekdays : 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),
  6100. weekdaysShort : 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
  6101. weekdaysMin : 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
  6102. weekdaysParseExact : true,
  6103. longDateFormat : {
  6104. LT : 'HH:mm',
  6105. LTS : 'HH:mm:ss',
  6106. L : 'DD.MM.YYYY',
  6107. LL : 'D MMMM YYYY',
  6108. LLL : 'D MMMM YYYY HH:mm',
  6109. LLLL : 'dddd, D MMMM YYYY HH:mm'
  6110. },
  6111. calendar : {
  6112. sameDay : '[bugün saat] LT',
  6113. nextDay : '[sabah saat] LT',
  6114. nextWeek : '[gələn həftə] dddd [saat] LT',
  6115. lastDay : '[dünən] LT',
  6116. lastWeek : '[keçən həftə] dddd [saat] LT',
  6117. sameElse : 'L'
  6118. },
  6119. relativeTime : {
  6120. future : '%s sonra',
  6121. past : '%s əvvəl',
  6122. s : 'birneçə saniyyə',
  6123. m : 'bir dəqiqə',
  6124. mm : '%d dəqiqə',
  6125. h : 'bir saat',
  6126. hh : '%d saat',
  6127. d : 'bir gün',
  6128. dd : '%d gün',
  6129. M : 'bir ay',
  6130. MM : '%d ay',
  6131. y : 'bir il',
  6132. yy : '%d il'
  6133. },
  6134. meridiemParse: /gecə|səhər|gündüz|axşam/,
  6135. isPM : function (input) {
  6136. return /^(gündüz|axşam)$/.test(input);
  6137. },
  6138. meridiem : function (hour, minute, isLower) {
  6139. if (hour < 4) {
  6140. return 'gecə';
  6141. } else if (hour < 12) {
  6142. return 'səhər';
  6143. } else if (hour < 17) {
  6144. return 'gündüz';
  6145. } else {
  6146. return 'axşam';
  6147. }
  6148. },
  6149. dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
  6150. ordinal : function (number) {
  6151. if (number === 0) { // special case for zero
  6152. return number + '-ıncı';
  6153. }
  6154. var a = number % 10,
  6155. b = number % 100 - a,
  6156. c = number >= 100 ? 100 : null;
  6157. return number + (suffixes[a] || suffixes[b] || suffixes[c]);
  6158. },
  6159. week : {
  6160. dow : 1, // Monday is the first day of the week.
  6161. doy : 7 // The week that contains Jan 1st is the first week of the year.
  6162. }
  6163. });
  6164. return az;
  6165. })));
  6166. /***/ }),
  6167. /***/ "./node_modules/moment/locale/be.js":
  6168. /*!******************************************!*\
  6169. !*** ./node_modules/moment/locale/be.js ***!
  6170. \******************************************/
  6171. /*! no static exports found */
  6172. /***/ (function(module, exports, __webpack_require__) {
  6173. //! moment.js locale configuration
  6174. //! locale : Belarusian [be]
  6175. //! author : Dmitry Demidov : https://github.com/demidov91
  6176. //! author: Praleska: http://praleska.pro/
  6177. //! Author : Menelion Elensúle : https://github.com/Oire
  6178. ;(function (global, factory) {
  6179. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  6180. undefined
  6181. }(this, (function (moment) { 'use strict';
  6182. function plural(word, num) {
  6183. var forms = word.split('_');
  6184. 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]);
  6185. }
  6186. function relativeTimeWithPlural(number, withoutSuffix, key) {
  6187. var format = {
  6188. 'mm': withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
  6189. 'hh': withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
  6190. 'dd': 'дзень_дні_дзён',
  6191. 'MM': 'месяц_месяцы_месяцаў',
  6192. 'yy': 'год_гады_гадоў'
  6193. };
  6194. if (key === 'm') {
  6195. return withoutSuffix ? 'хвіліна' : 'хвіліну';
  6196. }
  6197. else if (key === 'h') {
  6198. return withoutSuffix ? 'гадзіна' : 'гадзіну';
  6199. }
  6200. else {
  6201. return number + ' ' + plural(format[key], +number);
  6202. }
  6203. }
  6204. var be = moment.defineLocale('be', {
  6205. months : {
  6206. format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_'),
  6207. standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_')
  6208. },
  6209. monthsShort : 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
  6210. weekdays : {
  6211. format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_'),
  6212. standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),
  6213. isFormat: /\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/
  6214. },
  6215. weekdaysShort : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  6216. weekdaysMin : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
  6217. longDateFormat : {
  6218. LT : 'HH:mm',
  6219. LTS : 'HH:mm:ss',
  6220. L : 'DD.MM.YYYY',
  6221. LL : 'D MMMM YYYY г.',
  6222. LLL : 'D MMMM YYYY г., HH:mm',
  6223. LLLL : 'dddd, D MMMM YYYY г., HH:mm'
  6224. },
  6225. calendar : {
  6226. sameDay: '[Сёння ў] LT',
  6227. nextDay: '[Заўтра ў] LT',
  6228. lastDay: '[Учора ў] LT',
  6229. nextWeek: function () {
  6230. return '[У] dddd [ў] LT';
  6231. },
  6232. lastWeek: function () {
  6233. switch (this.day()) {
  6234. case 0:
  6235. case 3:
  6236. case 5:
  6237. case 6:
  6238. return '[У мінулую] dddd [ў] LT';
  6239. case 1:
  6240. case 2:
  6241. case 4:
  6242. return '[У мінулы] dddd [ў] LT';
  6243. }
  6244. },
  6245. sameElse: 'L'
  6246. },
  6247. relativeTime : {
  6248. future : 'праз %s',
  6249. past : '%s таму',
  6250. s : 'некалькі секунд',
  6251. m : relativeTimeWithPlural,
  6252. mm : relativeTimeWithPlural,
  6253. h : relativeTimeWithPlural,
  6254. hh : relativeTimeWithPlural,
  6255. d : 'дзень',
  6256. dd : relativeTimeWithPlural,
  6257. M : 'месяц',
  6258. MM : relativeTimeWithPlural,
  6259. y : 'год',
  6260. yy : relativeTimeWithPlural
  6261. },
  6262. meridiemParse: /ночы|раніцы|дня|вечара/,
  6263. isPM : function (input) {
  6264. return /^(дня|вечара)$/.test(input);
  6265. },
  6266. meridiem : function (hour, minute, isLower) {
  6267. if (hour < 4) {
  6268. return 'ночы';
  6269. } else if (hour < 12) {
  6270. return 'раніцы';
  6271. } else if (hour < 17) {
  6272. return 'дня';
  6273. } else {
  6274. return 'вечара';
  6275. }
  6276. },
  6277. dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/,
  6278. ordinal: function (number, period) {
  6279. switch (period) {
  6280. case 'M':
  6281. case 'd':
  6282. case 'DDD':
  6283. case 'w':
  6284. case 'W':
  6285. return (number % 10 === 2 || number % 10 === 3) && (number % 100 !== 12 && number % 100 !== 13) ? number + '-і' : number + '-ы';
  6286. case 'D':
  6287. return number + '-га';
  6288. default:
  6289. return number;
  6290. }
  6291. },
  6292. week : {
  6293. dow : 1, // Monday is the first day of the week.
  6294. doy : 7 // The week that contains Jan 1st is the first week of the year.
  6295. }
  6296. });
  6297. return be;
  6298. })));
  6299. /***/ }),
  6300. /***/ "./node_modules/moment/locale/bg.js":
  6301. /*!******************************************!*\
  6302. !*** ./node_modules/moment/locale/bg.js ***!
  6303. \******************************************/
  6304. /*! no static exports found */
  6305. /***/ (function(module, exports, __webpack_require__) {
  6306. //! moment.js locale configuration
  6307. //! locale : Bulgarian [bg]
  6308. //! author : Krasen Borisov : https://github.com/kraz
  6309. ;(function (global, factory) {
  6310. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  6311. undefined
  6312. }(this, (function (moment) { 'use strict';
  6313. var bg = moment.defineLocale('bg', {
  6314. months : 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'),
  6315. monthsShort : 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
  6316. weekdays : 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'),
  6317. weekdaysShort : 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
  6318. weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  6319. longDateFormat : {
  6320. LT : 'H:mm',
  6321. LTS : 'H:mm:ss',
  6322. L : 'D.MM.YYYY',
  6323. LL : 'D MMMM YYYY',
  6324. LLL : 'D MMMM YYYY H:mm',
  6325. LLLL : 'dddd, D MMMM YYYY H:mm'
  6326. },
  6327. calendar : {
  6328. sameDay : '[Днес в] LT',
  6329. nextDay : '[Утре в] LT',
  6330. nextWeek : 'dddd [в] LT',
  6331. lastDay : '[Вчера в] LT',
  6332. lastWeek : function () {
  6333. switch (this.day()) {
  6334. case 0:
  6335. case 3:
  6336. case 6:
  6337. return '[В изминалата] dddd [в] LT';
  6338. case 1:
  6339. case 2:
  6340. case 4:
  6341. case 5:
  6342. return '[В изминалия] dddd [в] LT';
  6343. }
  6344. },
  6345. sameElse : 'L'
  6346. },
  6347. relativeTime : {
  6348. future : 'след %s',
  6349. past : 'преди %s',
  6350. s : 'няколко секунди',
  6351. m : 'минута',
  6352. mm : '%d минути',
  6353. h : 'час',
  6354. hh : '%d часа',
  6355. d : 'ден',
  6356. dd : '%d дни',
  6357. M : 'месец',
  6358. MM : '%d месеца',
  6359. y : 'година',
  6360. yy : '%d години'
  6361. },
  6362. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  6363. ordinal : function (number) {
  6364. var lastDigit = number % 10,
  6365. last2Digits = number % 100;
  6366. if (number === 0) {
  6367. return number + '-ев';
  6368. } else if (last2Digits === 0) {
  6369. return number + '-ен';
  6370. } else if (last2Digits > 10 && last2Digits < 20) {
  6371. return number + '-ти';
  6372. } else if (lastDigit === 1) {
  6373. return number + '-ви';
  6374. } else if (lastDigit === 2) {
  6375. return number + '-ри';
  6376. } else if (lastDigit === 7 || lastDigit === 8) {
  6377. return number + '-ми';
  6378. } else {
  6379. return number + '-ти';
  6380. }
  6381. },
  6382. week : {
  6383. dow : 1, // Monday is the first day of the week.
  6384. doy : 7 // The week that contains Jan 1st is the first week of the year.
  6385. }
  6386. });
  6387. return bg;
  6388. })));
  6389. /***/ }),
  6390. /***/ "./node_modules/moment/locale/bm.js":
  6391. /*!******************************************!*\
  6392. !*** ./node_modules/moment/locale/bm.js ***!
  6393. \******************************************/
  6394. /*! no static exports found */
  6395. /***/ (function(module, exports, __webpack_require__) {
  6396. //! moment.js locale configuration
  6397. //! locale : Bambara [bm]
  6398. //! author : Estelle Comment : https://github.com/estellecomment
  6399. ;(function (global, factory) {
  6400. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  6401. undefined
  6402. }(this, (function (moment) { 'use strict';
  6403. // Language contact person : Abdoufata Kane : https://github.com/abdoufata
  6404. var bm = moment.defineLocale('bm', {
  6405. months : 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split('_'),
  6406. monthsShort : 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split('_'),
  6407. weekdays : 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'),
  6408. weekdaysShort : 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'),
  6409. weekdaysMin : 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'),
  6410. longDateFormat : {
  6411. LT : 'HH:mm',
  6412. LTS : 'HH:mm:ss',
  6413. L : 'DD/MM/YYYY',
  6414. LL : 'MMMM [tile] D [san] YYYY',
  6415. LLL : 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm',
  6416. LLLL : 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm'
  6417. },
  6418. calendar : {
  6419. sameDay : '[Bi lɛrɛ] LT',
  6420. nextDay : '[Sini lɛrɛ] LT',
  6421. nextWeek : 'dddd [don lɛrɛ] LT',
  6422. lastDay : '[Kunu lɛrɛ] LT',
  6423. lastWeek : 'dddd [tɛmɛnen lɛrɛ] LT',
  6424. sameElse : 'L'
  6425. },
  6426. relativeTime : {
  6427. future : '%s kɔnɔ',
  6428. past : 'a bɛ %s bɔ',
  6429. s : 'sanga dama dama',
  6430. m : 'miniti kelen',
  6431. mm : 'miniti %d',
  6432. h : 'lɛrɛ kelen',
  6433. hh : 'lɛrɛ %d',
  6434. d : 'tile kelen',
  6435. dd : 'tile %d',
  6436. M : 'kalo kelen',
  6437. MM : 'kalo %d',
  6438. y : 'san kelen',
  6439. yy : 'san %d'
  6440. },
  6441. week : {
  6442. dow : 1, // Monday is the first day of the week.
  6443. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6444. }
  6445. });
  6446. return bm;
  6447. })));
  6448. /***/ }),
  6449. /***/ "./node_modules/moment/locale/bn.js":
  6450. /*!******************************************!*\
  6451. !*** ./node_modules/moment/locale/bn.js ***!
  6452. \******************************************/
  6453. /*! no static exports found */
  6454. /***/ (function(module, exports, __webpack_require__) {
  6455. //! moment.js locale configuration
  6456. //! locale : Bengali [bn]
  6457. //! author : Kaushik Gandhi : https://github.com/kaushikgandhi
  6458. ;(function (global, factory) {
  6459. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  6460. undefined
  6461. }(this, (function (moment) { 'use strict';
  6462. var symbolMap = {
  6463. '1': '১',
  6464. '2': '২',
  6465. '3': '৩',
  6466. '4': '৪',
  6467. '5': '৫',
  6468. '6': '৬',
  6469. '7': '৭',
  6470. '8': '৮',
  6471. '9': '৯',
  6472. '0': '০'
  6473. };
  6474. var numberMap = {
  6475. '১': '1',
  6476. '২': '2',
  6477. '৩': '3',
  6478. '৪': '4',
  6479. '৫': '5',
  6480. '৬': '6',
  6481. '৭': '7',
  6482. '৮': '8',
  6483. '৯': '9',
  6484. '০': '0'
  6485. };
  6486. var bn = moment.defineLocale('bn', {
  6487. months : 'জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
  6488. monthsShort : 'জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),
  6489. weekdays : 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),
  6490. weekdaysShort : 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
  6491. weekdaysMin : 'রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি'.split('_'),
  6492. longDateFormat : {
  6493. LT : 'A h:mm সময়',
  6494. LTS : 'A h:mm:ss সময়',
  6495. L : 'DD/MM/YYYY',
  6496. LL : 'D MMMM YYYY',
  6497. LLL : 'D MMMM YYYY, A h:mm সময়',
  6498. LLLL : 'dddd, D MMMM YYYY, A h:mm সময়'
  6499. },
  6500. calendar : {
  6501. sameDay : '[আজ] LT',
  6502. nextDay : '[আগামীকাল] LT',
  6503. nextWeek : 'dddd, LT',
  6504. lastDay : '[গতকাল] LT',
  6505. lastWeek : '[গত] dddd, LT',
  6506. sameElse : 'L'
  6507. },
  6508. relativeTime : {
  6509. future : '%s পরে',
  6510. past : '%s আগে',
  6511. s : 'কয়েক সেকেন্ড',
  6512. m : 'এক মিনিট',
  6513. mm : '%d মিনিট',
  6514. h : 'এক ঘন্টা',
  6515. hh : '%d ঘন্টা',
  6516. d : 'এক দিন',
  6517. dd : '%d দিন',
  6518. M : 'এক মাস',
  6519. MM : '%d মাস',
  6520. y : 'এক বছর',
  6521. yy : '%d বছর'
  6522. },
  6523. preparse: function (string) {
  6524. return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
  6525. return numberMap[match];
  6526. });
  6527. },
  6528. postformat: function (string) {
  6529. return string.replace(/\d/g, function (match) {
  6530. return symbolMap[match];
  6531. });
  6532. },
  6533. meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
  6534. meridiemHour : function (hour, meridiem) {
  6535. if (hour === 12) {
  6536. hour = 0;
  6537. }
  6538. if ((meridiem === 'রাত' && hour >= 4) ||
  6539. (meridiem === 'দুপুর' && hour < 5) ||
  6540. meridiem === 'বিকাল') {
  6541. return hour + 12;
  6542. } else {
  6543. return hour;
  6544. }
  6545. },
  6546. meridiem : function (hour, minute, isLower) {
  6547. if (hour < 4) {
  6548. return 'রাত';
  6549. } else if (hour < 10) {
  6550. return 'সকাল';
  6551. } else if (hour < 17) {
  6552. return 'দুপুর';
  6553. } else if (hour < 20) {
  6554. return 'বিকাল';
  6555. } else {
  6556. return 'রাত';
  6557. }
  6558. },
  6559. week : {
  6560. dow : 0, // Sunday is the first day of the week.
  6561. doy : 6 // The week that contains Jan 1st is the first week of the year.
  6562. }
  6563. });
  6564. return bn;
  6565. })));
  6566. /***/ }),
  6567. /***/ "./node_modules/moment/locale/bo.js":
  6568. /*!******************************************!*\
  6569. !*** ./node_modules/moment/locale/bo.js ***!
  6570. \******************************************/
  6571. /*! no static exports found */
  6572. /***/ (function(module, exports, __webpack_require__) {
  6573. //! moment.js locale configuration
  6574. //! locale : Tibetan [bo]
  6575. //! author : Thupten N. Chakrishar : https://github.com/vajradog
  6576. ;(function (global, factory) {
  6577. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  6578. undefined
  6579. }(this, (function (moment) { 'use strict';
  6580. var symbolMap = {
  6581. '1': '༡',
  6582. '2': '༢',
  6583. '3': '༣',
  6584. '4': '༤',
  6585. '5': '༥',
  6586. '6': '༦',
  6587. '7': '༧',
  6588. '8': '༨',
  6589. '9': '༩',
  6590. '0': '༠'
  6591. };
  6592. var numberMap = {
  6593. '༡': '1',
  6594. '༢': '2',
  6595. '༣': '3',
  6596. '༤': '4',
  6597. '༥': '5',
  6598. '༦': '6',
  6599. '༧': '7',
  6600. '༨': '8',
  6601. '༩': '9',
  6602. '༠': '0'
  6603. };
  6604. var bo = moment.defineLocale('bo', {
  6605. months : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
  6606. monthsShort : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
  6607. weekdays : 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'),
  6608. weekdaysShort : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
  6609. weekdaysMin : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
  6610. longDateFormat : {
  6611. LT : 'A h:mm',
  6612. LTS : 'A h:mm:ss',
  6613. L : 'DD/MM/YYYY',
  6614. LL : 'D MMMM YYYY',
  6615. LLL : 'D MMMM YYYY, A h:mm',
  6616. LLLL : 'dddd, D MMMM YYYY, A h:mm'
  6617. },
  6618. calendar : {
  6619. sameDay : '[དི་རིང] LT',
  6620. nextDay : '[སང་ཉིན] LT',
  6621. nextWeek : '[བདུན་ཕྲག་རྗེས་མ], LT',
  6622. lastDay : '[ཁ་སང] LT',
  6623. lastWeek : '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
  6624. sameElse : 'L'
  6625. },
  6626. relativeTime : {
  6627. future : '%s ལ་',
  6628. past : '%s སྔན་ལ',
  6629. s : 'ལམ་སང',
  6630. m : 'སྐར་མ་གཅིག',
  6631. mm : '%d སྐར་མ',
  6632. h : 'ཆུ་ཚོད་གཅིག',
  6633. hh : '%d ཆུ་ཚོད',
  6634. d : 'ཉིན་གཅིག',
  6635. dd : '%d ཉིན་',
  6636. M : 'ཟླ་བ་གཅིག',
  6637. MM : '%d ཟླ་བ',
  6638. y : 'ལོ་གཅིག',
  6639. yy : '%d ལོ'
  6640. },
  6641. preparse: function (string) {
  6642. return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
  6643. return numberMap[match];
  6644. });
  6645. },
  6646. postformat: function (string) {
  6647. return string.replace(/\d/g, function (match) {
  6648. return symbolMap[match];
  6649. });
  6650. },
  6651. meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
  6652. meridiemHour : function (hour, meridiem) {
  6653. if (hour === 12) {
  6654. hour = 0;
  6655. }
  6656. if ((meridiem === 'མཚན་མོ' && hour >= 4) ||
  6657. (meridiem === 'ཉིན་གུང' && hour < 5) ||
  6658. meridiem === 'དགོང་དག') {
  6659. return hour + 12;
  6660. } else {
  6661. return hour;
  6662. }
  6663. },
  6664. meridiem : function (hour, minute, isLower) {
  6665. if (hour < 4) {
  6666. return 'མཚན་མོ';
  6667. } else if (hour < 10) {
  6668. return 'ཞོགས་ཀས';
  6669. } else if (hour < 17) {
  6670. return 'ཉིན་གུང';
  6671. } else if (hour < 20) {
  6672. return 'དགོང་དག';
  6673. } else {
  6674. return 'མཚན་མོ';
  6675. }
  6676. },
  6677. week : {
  6678. dow : 0, // Sunday is the first day of the week.
  6679. doy : 6 // The week that contains Jan 1st is the first week of the year.
  6680. }
  6681. });
  6682. return bo;
  6683. })));
  6684. /***/ }),
  6685. /***/ "./node_modules/moment/locale/br.js":
  6686. /*!******************************************!*\
  6687. !*** ./node_modules/moment/locale/br.js ***!
  6688. \******************************************/
  6689. /*! no static exports found */
  6690. /***/ (function(module, exports, __webpack_require__) {
  6691. //! moment.js locale configuration
  6692. //! locale : Breton [br]
  6693. //! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou
  6694. ;(function (global, factory) {
  6695. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  6696. undefined
  6697. }(this, (function (moment) { 'use strict';
  6698. function relativeTimeWithMutation(number, withoutSuffix, key) {
  6699. var format = {
  6700. 'mm': 'munutenn',
  6701. 'MM': 'miz',
  6702. 'dd': 'devezh'
  6703. };
  6704. return number + ' ' + mutation(format[key], number);
  6705. }
  6706. function specialMutationForYears(number) {
  6707. switch (lastNumber(number)) {
  6708. case 1:
  6709. case 3:
  6710. case 4:
  6711. case 5:
  6712. case 9:
  6713. return number + ' bloaz';
  6714. default:
  6715. return number + ' vloaz';
  6716. }
  6717. }
  6718. function lastNumber(number) {
  6719. if (number > 9) {
  6720. return lastNumber(number % 10);
  6721. }
  6722. return number;
  6723. }
  6724. function mutation(text, number) {
  6725. if (number === 2) {
  6726. return softMutation(text);
  6727. }
  6728. return text;
  6729. }
  6730. function softMutation(text) {
  6731. var mutationTable = {
  6732. 'm': 'v',
  6733. 'b': 'v',
  6734. 'd': 'z'
  6735. };
  6736. if (mutationTable[text.charAt(0)] === undefined) {
  6737. return text;
  6738. }
  6739. return mutationTable[text.charAt(0)] + text.substring(1);
  6740. }
  6741. var br = moment.defineLocale('br', {
  6742. months : 'Genver_C\'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'),
  6743. monthsShort : 'Gen_C\'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
  6744. weekdays : 'Sul_Lun_Meurzh_Merc\'her_Yaou_Gwener_Sadorn'.split('_'),
  6745. weekdaysShort : 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
  6746. weekdaysMin : 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
  6747. weekdaysParseExact : true,
  6748. longDateFormat : {
  6749. LT : 'h[e]mm A',
  6750. LTS : 'h[e]mm:ss A',
  6751. L : 'DD/MM/YYYY',
  6752. LL : 'D [a viz] MMMM YYYY',
  6753. LLL : 'D [a viz] MMMM YYYY h[e]mm A',
  6754. LLLL : 'dddd, D [a viz] MMMM YYYY h[e]mm A'
  6755. },
  6756. calendar : {
  6757. sameDay : '[Hiziv da] LT',
  6758. nextDay : '[Warc\'hoazh da] LT',
  6759. nextWeek : 'dddd [da] LT',
  6760. lastDay : '[Dec\'h da] LT',
  6761. lastWeek : 'dddd [paset da] LT',
  6762. sameElse : 'L'
  6763. },
  6764. relativeTime : {
  6765. future : 'a-benn %s',
  6766. past : '%s \'zo',
  6767. s : 'un nebeud segondennoù',
  6768. m : 'ur vunutenn',
  6769. mm : relativeTimeWithMutation,
  6770. h : 'un eur',
  6771. hh : '%d eur',
  6772. d : 'un devezh',
  6773. dd : relativeTimeWithMutation,
  6774. M : 'ur miz',
  6775. MM : relativeTimeWithMutation,
  6776. y : 'ur bloaz',
  6777. yy : specialMutationForYears
  6778. },
  6779. dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
  6780. ordinal : function (number) {
  6781. var output = (number === 1) ? 'añ' : 'vet';
  6782. return number + output;
  6783. },
  6784. week : {
  6785. dow : 1, // Monday is the first day of the week.
  6786. doy : 4 // The week that contains Jan 4th is the first week of the year.
  6787. }
  6788. });
  6789. return br;
  6790. })));
  6791. /***/ }),
  6792. /***/ "./node_modules/moment/locale/bs.js":
  6793. /*!******************************************!*\
  6794. !*** ./node_modules/moment/locale/bs.js ***!
  6795. \******************************************/
  6796. /*! no static exports found */
  6797. /***/ (function(module, exports, __webpack_require__) {
  6798. //! moment.js locale configuration
  6799. //! locale : Bosnian [bs]
  6800. //! author : Nedim Cholich : https://github.com/frontyard
  6801. //! based on (hr) translation by Bojan Marković
  6802. ;(function (global, factory) {
  6803. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  6804. undefined
  6805. }(this, (function (moment) { 'use strict';
  6806. function translate(number, withoutSuffix, key) {
  6807. var result = number + ' ';
  6808. switch (key) {
  6809. case 'm':
  6810. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  6811. case 'mm':
  6812. if (number === 1) {
  6813. result += 'minuta';
  6814. } else if (number === 2 || number === 3 || number === 4) {
  6815. result += 'minute';
  6816. } else {
  6817. result += 'minuta';
  6818. }
  6819. return result;
  6820. case 'h':
  6821. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  6822. case 'hh':
  6823. if (number === 1) {
  6824. result += 'sat';
  6825. } else if (number === 2 || number === 3 || number === 4) {
  6826. result += 'sata';
  6827. } else {
  6828. result += 'sati';
  6829. }
  6830. return result;
  6831. case 'dd':
  6832. if (number === 1) {
  6833. result += 'dan';
  6834. } else {
  6835. result += 'dana';
  6836. }
  6837. return result;
  6838. case 'MM':
  6839. if (number === 1) {
  6840. result += 'mjesec';
  6841. } else if (number === 2 || number === 3 || number === 4) {
  6842. result += 'mjeseca';
  6843. } else {
  6844. result += 'mjeseci';
  6845. }
  6846. return result;
  6847. case 'yy':
  6848. if (number === 1) {
  6849. result += 'godina';
  6850. } else if (number === 2 || number === 3 || number === 4) {
  6851. result += 'godine';
  6852. } else {
  6853. result += 'godina';
  6854. }
  6855. return result;
  6856. }
  6857. }
  6858. var bs = moment.defineLocale('bs', {
  6859. months : 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),
  6860. monthsShort : 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),
  6861. monthsParseExact: true,
  6862. weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  6863. weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  6864. weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
  6865. weekdaysParseExact : true,
  6866. longDateFormat : {
  6867. LT : 'H:mm',
  6868. LTS : 'H:mm:ss',
  6869. L : 'DD.MM.YYYY',
  6870. LL : 'D. MMMM YYYY',
  6871. LLL : 'D. MMMM YYYY H:mm',
  6872. LLLL : 'dddd, D. MMMM YYYY H:mm'
  6873. },
  6874. calendar : {
  6875. sameDay : '[danas u] LT',
  6876. nextDay : '[sutra u] LT',
  6877. nextWeek : function () {
  6878. switch (this.day()) {
  6879. case 0:
  6880. return '[u] [nedjelju] [u] LT';
  6881. case 3:
  6882. return '[u] [srijedu] [u] LT';
  6883. case 6:
  6884. return '[u] [subotu] [u] LT';
  6885. case 1:
  6886. case 2:
  6887. case 4:
  6888. case 5:
  6889. return '[u] dddd [u] LT';
  6890. }
  6891. },
  6892. lastDay : '[jučer u] LT',
  6893. lastWeek : function () {
  6894. switch (this.day()) {
  6895. case 0:
  6896. case 3:
  6897. return '[prošlu] dddd [u] LT';
  6898. case 6:
  6899. return '[prošle] [subote] [u] LT';
  6900. case 1:
  6901. case 2:
  6902. case 4:
  6903. case 5:
  6904. return '[prošli] dddd [u] LT';
  6905. }
  6906. },
  6907. sameElse : 'L'
  6908. },
  6909. relativeTime : {
  6910. future : 'za %s',
  6911. past : 'prije %s',
  6912. s : 'par sekundi',
  6913. m : translate,
  6914. mm : translate,
  6915. h : translate,
  6916. hh : translate,
  6917. d : 'dan',
  6918. dd : translate,
  6919. M : 'mjesec',
  6920. MM : translate,
  6921. y : 'godinu',
  6922. yy : translate
  6923. },
  6924. dayOfMonthOrdinalParse: /\d{1,2}\./,
  6925. ordinal : '%d.',
  6926. week : {
  6927. dow : 1, // Monday is the first day of the week.
  6928. doy : 7 // The week that contains Jan 1st is the first week of the year.
  6929. }
  6930. });
  6931. return bs;
  6932. })));
  6933. /***/ }),
  6934. /***/ "./node_modules/moment/locale/ca.js":
  6935. /*!******************************************!*\
  6936. !*** ./node_modules/moment/locale/ca.js ***!
  6937. \******************************************/
  6938. /*! no static exports found */
  6939. /***/ (function(module, exports, __webpack_require__) {
  6940. //! moment.js locale configuration
  6941. //! locale : Catalan [ca]
  6942. //! author : Juan G. Hurtado : https://github.com/juanghurtado
  6943. ;(function (global, factory) {
  6944. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  6945. undefined
  6946. }(this, (function (moment) { 'use strict';
  6947. var ca = moment.defineLocale('ca', {
  6948. months : {
  6949. standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'),
  6950. format: 'de gener_de febrer_de març_d\'abril_de maig_de juny_de juliol_d\'agost_de setembre_d\'octubre_de novembre_de desembre'.split('_'),
  6951. isFormat: /D[oD]?(\s)+MMMM/
  6952. },
  6953. monthsShort : 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split('_'),
  6954. monthsParseExact : true,
  6955. weekdays : 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),
  6956. weekdaysShort : 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
  6957. weekdaysMin : 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
  6958. weekdaysParseExact : true,
  6959. longDateFormat : {
  6960. LT : 'H:mm',
  6961. LTS : 'H:mm:ss',
  6962. L : 'DD/MM/YYYY',
  6963. LL : 'D MMMM [de] YYYY',
  6964. ll : 'D MMM YYYY',
  6965. LLL : 'D MMMM [de] YYYY [a les] H:mm',
  6966. lll : 'D MMM YYYY, H:mm',
  6967. LLLL : 'dddd D MMMM [de] YYYY [a les] H:mm',
  6968. llll : 'ddd D MMM YYYY, H:mm'
  6969. },
  6970. calendar : {
  6971. sameDay : function () {
  6972. return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  6973. },
  6974. nextDay : function () {
  6975. return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  6976. },
  6977. nextWeek : function () {
  6978. return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  6979. },
  6980. lastDay : function () {
  6981. return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  6982. },
  6983. lastWeek : function () {
  6984. return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
  6985. },
  6986. sameElse : 'L'
  6987. },
  6988. relativeTime : {
  6989. future : 'd\'aquí %s',
  6990. past : 'fa %s',
  6991. s : 'uns segons',
  6992. m : 'un minut',
  6993. mm : '%d minuts',
  6994. h : 'una hora',
  6995. hh : '%d hores',
  6996. d : 'un dia',
  6997. dd : '%d dies',
  6998. M : 'un mes',
  6999. MM : '%d mesos',
  7000. y : 'un any',
  7001. yy : '%d anys'
  7002. },
  7003. dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
  7004. ordinal : function (number, period) {
  7005. var output = (number === 1) ? 'r' :
  7006. (number === 2) ? 'n' :
  7007. (number === 3) ? 'r' :
  7008. (number === 4) ? 't' : 'è';
  7009. if (period === 'w' || period === 'W') {
  7010. output = 'a';
  7011. }
  7012. return number + output;
  7013. },
  7014. week : {
  7015. dow : 1, // Monday is the first day of the week.
  7016. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7017. }
  7018. });
  7019. return ca;
  7020. })));
  7021. /***/ }),
  7022. /***/ "./node_modules/moment/locale/cs.js":
  7023. /*!******************************************!*\
  7024. !*** ./node_modules/moment/locale/cs.js ***!
  7025. \******************************************/
  7026. /*! no static exports found */
  7027. /***/ (function(module, exports, __webpack_require__) {
  7028. //! moment.js locale configuration
  7029. //! locale : Czech [cs]
  7030. //! author : petrbela : https://github.com/petrbela
  7031. ;(function (global, factory) {
  7032. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  7033. undefined
  7034. }(this, (function (moment) { 'use strict';
  7035. var months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_');
  7036. var monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_');
  7037. function plural(n) {
  7038. return (n > 1) && (n < 5) && (~~(n / 10) !== 1);
  7039. }
  7040. function translate(number, withoutSuffix, key, isFuture) {
  7041. var result = number + ' ';
  7042. switch (key) {
  7043. case 's': // a few seconds / in a few seconds / a few seconds ago
  7044. return (withoutSuffix || isFuture) ? 'pár sekund' : 'pár sekundami';
  7045. case 'm': // a minute / in a minute / a minute ago
  7046. return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou');
  7047. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  7048. if (withoutSuffix || isFuture) {
  7049. return result + (plural(number) ? 'minuty' : 'minut');
  7050. } else {
  7051. return result + 'minutami';
  7052. }
  7053. break;
  7054. case 'h': // an hour / in an hour / an hour ago
  7055. return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
  7056. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  7057. if (withoutSuffix || isFuture) {
  7058. return result + (plural(number) ? 'hodiny' : 'hodin');
  7059. } else {
  7060. return result + 'hodinami';
  7061. }
  7062. break;
  7063. case 'd': // a day / in a day / a day ago
  7064. return (withoutSuffix || isFuture) ? 'den' : 'dnem';
  7065. case 'dd': // 9 days / in 9 days / 9 days ago
  7066. if (withoutSuffix || isFuture) {
  7067. return result + (plural(number) ? 'dny' : 'dní');
  7068. } else {
  7069. return result + 'dny';
  7070. }
  7071. break;
  7072. case 'M': // a month / in a month / a month ago
  7073. return (withoutSuffix || isFuture) ? 'měsíc' : 'měsícem';
  7074. case 'MM': // 9 months / in 9 months / 9 months ago
  7075. if (withoutSuffix || isFuture) {
  7076. return result + (plural(number) ? 'měsíce' : 'měsíců');
  7077. } else {
  7078. return result + 'měsíci';
  7079. }
  7080. break;
  7081. case 'y': // a year / in a year / a year ago
  7082. return (withoutSuffix || isFuture) ? 'rok' : 'rokem';
  7083. case 'yy': // 9 years / in 9 years / 9 years ago
  7084. if (withoutSuffix || isFuture) {
  7085. return result + (plural(number) ? 'roky' : 'let');
  7086. } else {
  7087. return result + 'lety';
  7088. }
  7089. break;
  7090. }
  7091. }
  7092. var cs = moment.defineLocale('cs', {
  7093. months : months,
  7094. monthsShort : monthsShort,
  7095. monthsParse : (function (months, monthsShort) {
  7096. var i, _monthsParse = [];
  7097. for (i = 0; i < 12; i++) {
  7098. // use custom parser to solve problem with July (červenec)
  7099. _monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i');
  7100. }
  7101. return _monthsParse;
  7102. }(months, monthsShort)),
  7103. shortMonthsParse : (function (monthsShort) {
  7104. var i, _shortMonthsParse = [];
  7105. for (i = 0; i < 12; i++) {
  7106. _shortMonthsParse[i] = new RegExp('^' + monthsShort[i] + '$', 'i');
  7107. }
  7108. return _shortMonthsParse;
  7109. }(monthsShort)),
  7110. longMonthsParse : (function (months) {
  7111. var i, _longMonthsParse = [];
  7112. for (i = 0; i < 12; i++) {
  7113. _longMonthsParse[i] = new RegExp('^' + months[i] + '$', 'i');
  7114. }
  7115. return _longMonthsParse;
  7116. }(months)),
  7117. weekdays : 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'),
  7118. weekdaysShort : 'ne_po_út_st_čt_pá_so'.split('_'),
  7119. weekdaysMin : 'ne_po_út_st_čt_pá_so'.split('_'),
  7120. longDateFormat : {
  7121. LT: 'H:mm',
  7122. LTS : 'H:mm:ss',
  7123. L : 'DD.MM.YYYY',
  7124. LL : 'D. MMMM YYYY',
  7125. LLL : 'D. MMMM YYYY H:mm',
  7126. LLLL : 'dddd D. MMMM YYYY H:mm',
  7127. l : 'D. M. YYYY'
  7128. },
  7129. calendar : {
  7130. sameDay: '[dnes v] LT',
  7131. nextDay: '[zítra v] LT',
  7132. nextWeek: function () {
  7133. switch (this.day()) {
  7134. case 0:
  7135. return '[v neděli v] LT';
  7136. case 1:
  7137. case 2:
  7138. return '[v] dddd [v] LT';
  7139. case 3:
  7140. return '[ve středu v] LT';
  7141. case 4:
  7142. return '[ve čtvrtek v] LT';
  7143. case 5:
  7144. return '[v pátek v] LT';
  7145. case 6:
  7146. return '[v sobotu v] LT';
  7147. }
  7148. },
  7149. lastDay: '[včera v] LT',
  7150. lastWeek: function () {
  7151. switch (this.day()) {
  7152. case 0:
  7153. return '[minulou neděli v] LT';
  7154. case 1:
  7155. case 2:
  7156. return '[minulé] dddd [v] LT';
  7157. case 3:
  7158. return '[minulou středu v] LT';
  7159. case 4:
  7160. case 5:
  7161. return '[minulý] dddd [v] LT';
  7162. case 6:
  7163. return '[minulou sobotu v] LT';
  7164. }
  7165. },
  7166. sameElse: 'L'
  7167. },
  7168. relativeTime : {
  7169. future : 'za %s',
  7170. past : 'před %s',
  7171. s : translate,
  7172. m : translate,
  7173. mm : translate,
  7174. h : translate,
  7175. hh : translate,
  7176. d : translate,
  7177. dd : translate,
  7178. M : translate,
  7179. MM : translate,
  7180. y : translate,
  7181. yy : translate
  7182. },
  7183. dayOfMonthOrdinalParse : /\d{1,2}\./,
  7184. ordinal : '%d.',
  7185. week : {
  7186. dow : 1, // Monday is the first day of the week.
  7187. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7188. }
  7189. });
  7190. return cs;
  7191. })));
  7192. /***/ }),
  7193. /***/ "./node_modules/moment/locale/cv.js":
  7194. /*!******************************************!*\
  7195. !*** ./node_modules/moment/locale/cv.js ***!
  7196. \******************************************/
  7197. /*! no static exports found */
  7198. /***/ (function(module, exports, __webpack_require__) {
  7199. //! moment.js locale configuration
  7200. //! locale : Chuvash [cv]
  7201. //! author : Anatoly Mironov : https://github.com/mirontoli
  7202. ;(function (global, factory) {
  7203. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  7204. undefined
  7205. }(this, (function (moment) { 'use strict';
  7206. var cv = moment.defineLocale('cv', {
  7207. months : 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'),
  7208. monthsShort : 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
  7209. weekdays : 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'),
  7210. weekdaysShort : 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
  7211. weekdaysMin : 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
  7212. longDateFormat : {
  7213. LT : 'HH:mm',
  7214. LTS : 'HH:mm:ss',
  7215. L : 'DD-MM-YYYY',
  7216. LL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
  7217. LLL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm',
  7218. LLLL : 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm'
  7219. },
  7220. calendar : {
  7221. sameDay: '[Паян] LT [сехетре]',
  7222. nextDay: '[Ыран] LT [сехетре]',
  7223. lastDay: '[Ӗнер] LT [сехетре]',
  7224. nextWeek: '[Ҫитес] dddd LT [сехетре]',
  7225. lastWeek: '[Иртнӗ] dddd LT [сехетре]',
  7226. sameElse: 'L'
  7227. },
  7228. relativeTime : {
  7229. future : function (output) {
  7230. var affix = /сехет$/i.exec(output) ? 'рен' : /ҫул$/i.exec(output) ? 'тан' : 'ран';
  7231. return output + affix;
  7232. },
  7233. past : '%s каялла',
  7234. s : 'пӗр-ик ҫеккунт',
  7235. m : 'пӗр минут',
  7236. mm : '%d минут',
  7237. h : 'пӗр сехет',
  7238. hh : '%d сехет',
  7239. d : 'пӗр кун',
  7240. dd : '%d кун',
  7241. M : 'пӗр уйӑх',
  7242. MM : '%d уйӑх',
  7243. y : 'пӗр ҫул',
  7244. yy : '%d ҫул'
  7245. },
  7246. dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
  7247. ordinal : '%d-мӗш',
  7248. week : {
  7249. dow : 1, // Monday is the first day of the week.
  7250. doy : 7 // The week that contains Jan 1st is the first week of the year.
  7251. }
  7252. });
  7253. return cv;
  7254. })));
  7255. /***/ }),
  7256. /***/ "./node_modules/moment/locale/cy.js":
  7257. /*!******************************************!*\
  7258. !*** ./node_modules/moment/locale/cy.js ***!
  7259. \******************************************/
  7260. /*! no static exports found */
  7261. /***/ (function(module, exports, __webpack_require__) {
  7262. //! moment.js locale configuration
  7263. //! locale : Welsh [cy]
  7264. //! author : Robert Allen : https://github.com/robgallen
  7265. //! author : https://github.com/ryangreaves
  7266. ;(function (global, factory) {
  7267. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  7268. undefined
  7269. }(this, (function (moment) { 'use strict';
  7270. var cy = moment.defineLocale('cy', {
  7271. months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'),
  7272. monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'),
  7273. weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'),
  7274. weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'),
  7275. weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'),
  7276. weekdaysParseExact : true,
  7277. // time formats are the same as en-gb
  7278. longDateFormat: {
  7279. LT: 'HH:mm',
  7280. LTS : 'HH:mm:ss',
  7281. L: 'DD/MM/YYYY',
  7282. LL: 'D MMMM YYYY',
  7283. LLL: 'D MMMM YYYY HH:mm',
  7284. LLLL: 'dddd, D MMMM YYYY HH:mm'
  7285. },
  7286. calendar: {
  7287. sameDay: '[Heddiw am] LT',
  7288. nextDay: '[Yfory am] LT',
  7289. nextWeek: 'dddd [am] LT',
  7290. lastDay: '[Ddoe am] LT',
  7291. lastWeek: 'dddd [diwethaf am] LT',
  7292. sameElse: 'L'
  7293. },
  7294. relativeTime: {
  7295. future: 'mewn %s',
  7296. past: '%s yn ôl',
  7297. s: 'ychydig eiliadau',
  7298. m: 'munud',
  7299. mm: '%d munud',
  7300. h: 'awr',
  7301. hh: '%d awr',
  7302. d: 'diwrnod',
  7303. dd: '%d diwrnod',
  7304. M: 'mis',
  7305. MM: '%d mis',
  7306. y: 'blwyddyn',
  7307. yy: '%d flynedd'
  7308. },
  7309. dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
  7310. // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
  7311. ordinal: function (number) {
  7312. var b = number,
  7313. output = '',
  7314. lookup = [
  7315. '', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed
  7316. 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed
  7317. ];
  7318. if (b > 20) {
  7319. if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) {
  7320. output = 'fed'; // not 30ain, 70ain or 90ain
  7321. } else {
  7322. output = 'ain';
  7323. }
  7324. } else if (b > 0) {
  7325. output = lookup[b];
  7326. }
  7327. return number + output;
  7328. },
  7329. week : {
  7330. dow : 1, // Monday is the first day of the week.
  7331. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7332. }
  7333. });
  7334. return cy;
  7335. })));
  7336. /***/ }),
  7337. /***/ "./node_modules/moment/locale/da.js":
  7338. /*!******************************************!*\
  7339. !*** ./node_modules/moment/locale/da.js ***!
  7340. \******************************************/
  7341. /*! no static exports found */
  7342. /***/ (function(module, exports, __webpack_require__) {
  7343. //! moment.js locale configuration
  7344. //! locale : Danish [da]
  7345. //! author : Ulrik Nielsen : https://github.com/mrbase
  7346. ;(function (global, factory) {
  7347. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  7348. undefined
  7349. }(this, (function (moment) { 'use strict';
  7350. var da = moment.defineLocale('da', {
  7351. months : 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),
  7352. monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  7353. weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  7354. weekdaysShort : 'søn_man_tir_ons_tor_fre_lør'.split('_'),
  7355. weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
  7356. longDateFormat : {
  7357. LT : 'HH:mm',
  7358. LTS : 'HH:mm:ss',
  7359. L : 'DD.MM.YYYY',
  7360. LL : 'D. MMMM YYYY',
  7361. LLL : 'D. MMMM YYYY HH:mm',
  7362. LLLL : 'dddd [d.] D. MMMM YYYY [kl.] HH:mm'
  7363. },
  7364. calendar : {
  7365. sameDay : '[i dag kl.] LT',
  7366. nextDay : '[i morgen kl.] LT',
  7367. nextWeek : 'på dddd [kl.] LT',
  7368. lastDay : '[i går kl.] LT',
  7369. lastWeek : '[i] dddd[s kl.] LT',
  7370. sameElse : 'L'
  7371. },
  7372. relativeTime : {
  7373. future : 'om %s',
  7374. past : '%s siden',
  7375. s : 'få sekunder',
  7376. m : 'et minut',
  7377. mm : '%d minutter',
  7378. h : 'en time',
  7379. hh : '%d timer',
  7380. d : 'en dag',
  7381. dd : '%d dage',
  7382. M : 'en måned',
  7383. MM : '%d måneder',
  7384. y : 'et år',
  7385. yy : '%d år'
  7386. },
  7387. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7388. ordinal : '%d.',
  7389. week : {
  7390. dow : 1, // Monday is the first day of the week.
  7391. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7392. }
  7393. });
  7394. return da;
  7395. })));
  7396. /***/ }),
  7397. /***/ "./node_modules/moment/locale/de-at.js":
  7398. /*!*********************************************!*\
  7399. !*** ./node_modules/moment/locale/de-at.js ***!
  7400. \*********************************************/
  7401. /*! no static exports found */
  7402. /***/ (function(module, exports, __webpack_require__) {
  7403. //! moment.js locale configuration
  7404. //! locale : German (Austria) [de-at]
  7405. //! author : lluchs : https://github.com/lluchs
  7406. //! author: Menelion Elensúle: https://github.com/Oire
  7407. //! author : Martin Groller : https://github.com/MadMG
  7408. //! author : Mikolaj Dadela : https://github.com/mik01aj
  7409. ;(function (global, factory) {
  7410. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  7411. undefined
  7412. }(this, (function (moment) { 'use strict';
  7413. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  7414. var format = {
  7415. 'm': ['eine Minute', 'einer Minute'],
  7416. 'h': ['eine Stunde', 'einer Stunde'],
  7417. 'd': ['ein Tag', 'einem Tag'],
  7418. 'dd': [number + ' Tage', number + ' Tagen'],
  7419. 'M': ['ein Monat', 'einem Monat'],
  7420. 'MM': [number + ' Monate', number + ' Monaten'],
  7421. 'y': ['ein Jahr', 'einem Jahr'],
  7422. 'yy': [number + ' Jahre', number + ' Jahren']
  7423. };
  7424. return withoutSuffix ? format[key][0] : format[key][1];
  7425. }
  7426. var deAt = moment.defineLocale('de-at', {
  7427. months : 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  7428. monthsShort : 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
  7429. monthsParseExact : true,
  7430. weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  7431. weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  7432. weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  7433. weekdaysParseExact : true,
  7434. longDateFormat : {
  7435. LT: 'HH:mm',
  7436. LTS: 'HH:mm:ss',
  7437. L : 'DD.MM.YYYY',
  7438. LL : 'D. MMMM YYYY',
  7439. LLL : 'D. MMMM YYYY HH:mm',
  7440. LLLL : 'dddd, D. MMMM YYYY HH:mm'
  7441. },
  7442. calendar : {
  7443. sameDay: '[heute um] LT [Uhr]',
  7444. sameElse: 'L',
  7445. nextDay: '[morgen um] LT [Uhr]',
  7446. nextWeek: 'dddd [um] LT [Uhr]',
  7447. lastDay: '[gestern um] LT [Uhr]',
  7448. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  7449. },
  7450. relativeTime : {
  7451. future : 'in %s',
  7452. past : 'vor %s',
  7453. s : 'ein paar Sekunden',
  7454. m : processRelativeTime,
  7455. mm : '%d Minuten',
  7456. h : processRelativeTime,
  7457. hh : '%d Stunden',
  7458. d : processRelativeTime,
  7459. dd : processRelativeTime,
  7460. M : processRelativeTime,
  7461. MM : processRelativeTime,
  7462. y : processRelativeTime,
  7463. yy : processRelativeTime
  7464. },
  7465. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7466. ordinal : '%d.',
  7467. week : {
  7468. dow : 1, // Monday is the first day of the week.
  7469. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7470. }
  7471. });
  7472. return deAt;
  7473. })));
  7474. /***/ }),
  7475. /***/ "./node_modules/moment/locale/de-ch.js":
  7476. /*!*********************************************!*\
  7477. !*** ./node_modules/moment/locale/de-ch.js ***!
  7478. \*********************************************/
  7479. /*! no static exports found */
  7480. /***/ (function(module, exports, __webpack_require__) {
  7481. //! moment.js locale configuration
  7482. //! locale : German (Switzerland) [de-ch]
  7483. //! author : sschueller : https://github.com/sschueller
  7484. ;(function (global, factory) {
  7485. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  7486. undefined
  7487. }(this, (function (moment) { 'use strict';
  7488. // based on: https://www.bk.admin.ch/dokumentation/sprachen/04915/05016/index.html?lang=de#
  7489. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  7490. var format = {
  7491. 'm': ['eine Minute', 'einer Minute'],
  7492. 'h': ['eine Stunde', 'einer Stunde'],
  7493. 'd': ['ein Tag', 'einem Tag'],
  7494. 'dd': [number + ' Tage', number + ' Tagen'],
  7495. 'M': ['ein Monat', 'einem Monat'],
  7496. 'MM': [number + ' Monate', number + ' Monaten'],
  7497. 'y': ['ein Jahr', 'einem Jahr'],
  7498. 'yy': [number + ' Jahre', number + ' Jahren']
  7499. };
  7500. return withoutSuffix ? format[key][0] : format[key][1];
  7501. }
  7502. var deCh = moment.defineLocale('de-ch', {
  7503. months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  7504. monthsShort : 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
  7505. monthsParseExact : true,
  7506. weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  7507. weekdaysShort : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  7508. weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  7509. weekdaysParseExact : true,
  7510. longDateFormat : {
  7511. LT: 'HH.mm',
  7512. LTS: 'HH.mm.ss',
  7513. L : 'DD.MM.YYYY',
  7514. LL : 'D. MMMM YYYY',
  7515. LLL : 'D. MMMM YYYY HH.mm',
  7516. LLLL : 'dddd, D. MMMM YYYY HH.mm'
  7517. },
  7518. calendar : {
  7519. sameDay: '[heute um] LT [Uhr]',
  7520. sameElse: 'L',
  7521. nextDay: '[morgen um] LT [Uhr]',
  7522. nextWeek: 'dddd [um] LT [Uhr]',
  7523. lastDay: '[gestern um] LT [Uhr]',
  7524. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  7525. },
  7526. relativeTime : {
  7527. future : 'in %s',
  7528. past : 'vor %s',
  7529. s : 'ein paar Sekunden',
  7530. m : processRelativeTime,
  7531. mm : '%d Minuten',
  7532. h : processRelativeTime,
  7533. hh : '%d Stunden',
  7534. d : processRelativeTime,
  7535. dd : processRelativeTime,
  7536. M : processRelativeTime,
  7537. MM : processRelativeTime,
  7538. y : processRelativeTime,
  7539. yy : processRelativeTime
  7540. },
  7541. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7542. ordinal : '%d.',
  7543. week : {
  7544. dow : 1, // Monday is the first day of the week.
  7545. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7546. }
  7547. });
  7548. return deCh;
  7549. })));
  7550. /***/ }),
  7551. /***/ "./node_modules/moment/locale/de.js":
  7552. /*!******************************************!*\
  7553. !*** ./node_modules/moment/locale/de.js ***!
  7554. \******************************************/
  7555. /*! no static exports found */
  7556. /***/ (function(module, exports, __webpack_require__) {
  7557. //! moment.js locale configuration
  7558. //! locale : German [de]
  7559. //! author : lluchs : https://github.com/lluchs
  7560. //! author: Menelion Elensúle: https://github.com/Oire
  7561. //! author : Mikolaj Dadela : https://github.com/mik01aj
  7562. ;(function (global, factory) {
  7563. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  7564. undefined
  7565. }(this, (function (moment) { 'use strict';
  7566. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  7567. var format = {
  7568. 'm': ['eine Minute', 'einer Minute'],
  7569. 'h': ['eine Stunde', 'einer Stunde'],
  7570. 'd': ['ein Tag', 'einem Tag'],
  7571. 'dd': [number + ' Tage', number + ' Tagen'],
  7572. 'M': ['ein Monat', 'einem Monat'],
  7573. 'MM': [number + ' Monate', number + ' Monaten'],
  7574. 'y': ['ein Jahr', 'einem Jahr'],
  7575. 'yy': [number + ' Jahre', number + ' Jahren']
  7576. };
  7577. return withoutSuffix ? format[key][0] : format[key][1];
  7578. }
  7579. var de = moment.defineLocale('de', {
  7580. months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  7581. monthsShort : 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
  7582. monthsParseExact : true,
  7583. weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),
  7584. weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
  7585. weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
  7586. weekdaysParseExact : true,
  7587. longDateFormat : {
  7588. LT: 'HH:mm',
  7589. LTS: 'HH:mm:ss',
  7590. L : 'DD.MM.YYYY',
  7591. LL : 'D. MMMM YYYY',
  7592. LLL : 'D. MMMM YYYY HH:mm',
  7593. LLLL : 'dddd, D. MMMM YYYY HH:mm'
  7594. },
  7595. calendar : {
  7596. sameDay: '[heute um] LT [Uhr]',
  7597. sameElse: 'L',
  7598. nextDay: '[morgen um] LT [Uhr]',
  7599. nextWeek: 'dddd [um] LT [Uhr]',
  7600. lastDay: '[gestern um] LT [Uhr]',
  7601. lastWeek: '[letzten] dddd [um] LT [Uhr]'
  7602. },
  7603. relativeTime : {
  7604. future : 'in %s',
  7605. past : 'vor %s',
  7606. s : 'ein paar Sekunden',
  7607. m : processRelativeTime,
  7608. mm : '%d Minuten',
  7609. h : processRelativeTime,
  7610. hh : '%d Stunden',
  7611. d : processRelativeTime,
  7612. dd : processRelativeTime,
  7613. M : processRelativeTime,
  7614. MM : processRelativeTime,
  7615. y : processRelativeTime,
  7616. yy : processRelativeTime
  7617. },
  7618. dayOfMonthOrdinalParse: /\d{1,2}\./,
  7619. ordinal : '%d.',
  7620. week : {
  7621. dow : 1, // Monday is the first day of the week.
  7622. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7623. }
  7624. });
  7625. return de;
  7626. })));
  7627. /***/ }),
  7628. /***/ "./node_modules/moment/locale/dv.js":
  7629. /*!******************************************!*\
  7630. !*** ./node_modules/moment/locale/dv.js ***!
  7631. \******************************************/
  7632. /*! no static exports found */
  7633. /***/ (function(module, exports, __webpack_require__) {
  7634. //! moment.js locale configuration
  7635. //! locale : Maldivian [dv]
  7636. //! author : Jawish Hameed : https://github.com/jawish
  7637. ;(function (global, factory) {
  7638. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  7639. undefined
  7640. }(this, (function (moment) { 'use strict';
  7641. var months = [
  7642. 'ޖެނުއަރީ',
  7643. 'ފެބްރުއަރީ',
  7644. 'މާރިޗު',
  7645. 'އޭޕްރީލު',
  7646. 'މޭ',
  7647. 'ޖޫން',
  7648. 'ޖުލައި',
  7649. 'އޯގަސްޓު',
  7650. 'ސެޕްޓެމްބަރު',
  7651. 'އޮކްޓޯބަރު',
  7652. 'ނޮވެމްބަރު',
  7653. 'ޑިސެމްބަރު'
  7654. ];
  7655. var weekdays = [
  7656. 'އާދިއްތަ',
  7657. 'ހޯމަ',
  7658. 'އަންގާރަ',
  7659. 'ބުދަ',
  7660. 'ބުރާސްފަތި',
  7661. 'ހުކުރު',
  7662. 'ހޮނިހިރު'
  7663. ];
  7664. var dv = moment.defineLocale('dv', {
  7665. months : months,
  7666. monthsShort : months,
  7667. weekdays : weekdays,
  7668. weekdaysShort : weekdays,
  7669. weekdaysMin : 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'),
  7670. longDateFormat : {
  7671. LT : 'HH:mm',
  7672. LTS : 'HH:mm:ss',
  7673. L : 'D/M/YYYY',
  7674. LL : 'D MMMM YYYY',
  7675. LLL : 'D MMMM YYYY HH:mm',
  7676. LLLL : 'dddd D MMMM YYYY HH:mm'
  7677. },
  7678. meridiemParse: /މކ|މފ/,
  7679. isPM : function (input) {
  7680. return 'މފ' === input;
  7681. },
  7682. meridiem : function (hour, minute, isLower) {
  7683. if (hour < 12) {
  7684. return 'މކ';
  7685. } else {
  7686. return 'މފ';
  7687. }
  7688. },
  7689. calendar : {
  7690. sameDay : '[މިއަދު] LT',
  7691. nextDay : '[މާދަމާ] LT',
  7692. nextWeek : 'dddd LT',
  7693. lastDay : '[އިއްޔެ] LT',
  7694. lastWeek : '[ފާއިތުވި] dddd LT',
  7695. sameElse : 'L'
  7696. },
  7697. relativeTime : {
  7698. future : 'ތެރޭގައި %s',
  7699. past : 'ކުރިން %s',
  7700. s : 'ސިކުންތުކޮޅެއް',
  7701. m : 'މިނިޓެއް',
  7702. mm : 'މިނިޓު %d',
  7703. h : 'ގަޑިއިރެއް',
  7704. hh : 'ގަޑިއިރު %d',
  7705. d : 'ދުވަހެއް',
  7706. dd : 'ދުވަސް %d',
  7707. M : 'މަހެއް',
  7708. MM : 'މަސް %d',
  7709. y : 'އަހަރެއް',
  7710. yy : 'އަހަރު %d'
  7711. },
  7712. preparse: function (string) {
  7713. return string.replace(/،/g, ',');
  7714. },
  7715. postformat: function (string) {
  7716. return string.replace(/,/g, '،');
  7717. },
  7718. week : {
  7719. dow : 7, // Sunday is the first day of the week.
  7720. doy : 12 // The week that contains Jan 1st is the first week of the year.
  7721. }
  7722. });
  7723. return dv;
  7724. })));
  7725. /***/ }),
  7726. /***/ "./node_modules/moment/locale/el.js":
  7727. /*!******************************************!*\
  7728. !*** ./node_modules/moment/locale/el.js ***!
  7729. \******************************************/
  7730. /*! no static exports found */
  7731. /***/ (function(module, exports, __webpack_require__) {
  7732. //! moment.js locale configuration
  7733. //! locale : Greek [el]
  7734. //! author : Aggelos Karalias : https://github.com/mehiel
  7735. ;(function (global, factory) {
  7736. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  7737. undefined
  7738. }(this, (function (moment) { 'use strict';
  7739. function isFunction(input) {
  7740. return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
  7741. }
  7742. var el = moment.defineLocale('el', {
  7743. monthsNominativeEl : 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),
  7744. monthsGenitiveEl : 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'),
  7745. months : function (momentToFormat, format) {
  7746. if (!momentToFormat) {
  7747. return this._monthsNominativeEl;
  7748. } else if (typeof format === 'string' && /D/.test(format.substring(0, format.indexOf('MMMM')))) { // if there is a day number before 'MMMM'
  7749. return this._monthsGenitiveEl[momentToFormat.month()];
  7750. } else {
  7751. return this._monthsNominativeEl[momentToFormat.month()];
  7752. }
  7753. },
  7754. monthsShort : 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
  7755. weekdays : 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'),
  7756. weekdaysShort : 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
  7757. weekdaysMin : 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
  7758. meridiem : function (hours, minutes, isLower) {
  7759. if (hours > 11) {
  7760. return isLower ? 'μμ' : 'ΜΜ';
  7761. } else {
  7762. return isLower ? 'πμ' : 'ΠΜ';
  7763. }
  7764. },
  7765. isPM : function (input) {
  7766. return ((input + '').toLowerCase()[0] === 'μ');
  7767. },
  7768. meridiemParse : /[ΠΜ]\.?Μ?\.?/i,
  7769. longDateFormat : {
  7770. LT : 'h:mm A',
  7771. LTS : 'h:mm:ss A',
  7772. L : 'DD/MM/YYYY',
  7773. LL : 'D MMMM YYYY',
  7774. LLL : 'D MMMM YYYY h:mm A',
  7775. LLLL : 'dddd, D MMMM YYYY h:mm A'
  7776. },
  7777. calendarEl : {
  7778. sameDay : '[Σήμερα {}] LT',
  7779. nextDay : '[Αύριο {}] LT',
  7780. nextWeek : 'dddd [{}] LT',
  7781. lastDay : '[Χθες {}] LT',
  7782. lastWeek : function () {
  7783. switch (this.day()) {
  7784. case 6:
  7785. return '[το προηγούμενο] dddd [{}] LT';
  7786. default:
  7787. return '[την προηγούμενη] dddd [{}] LT';
  7788. }
  7789. },
  7790. sameElse : 'L'
  7791. },
  7792. calendar : function (key, mom) {
  7793. var output = this._calendarEl[key],
  7794. hours = mom && mom.hours();
  7795. if (isFunction(output)) {
  7796. output = output.apply(mom);
  7797. }
  7798. return output.replace('{}', (hours % 12 === 1 ? 'στη' : 'στις'));
  7799. },
  7800. relativeTime : {
  7801. future : 'σε %s',
  7802. past : '%s πριν',
  7803. s : 'λίγα δευτερόλεπτα',
  7804. m : 'ένα λεπτό',
  7805. mm : '%d λεπτά',
  7806. h : 'μία ώρα',
  7807. hh : '%d ώρες',
  7808. d : 'μία μέρα',
  7809. dd : '%d μέρες',
  7810. M : 'ένας μήνας',
  7811. MM : '%d μήνες',
  7812. y : 'ένας χρόνος',
  7813. yy : '%d χρόνια'
  7814. },
  7815. dayOfMonthOrdinalParse: /\d{1,2}η/,
  7816. ordinal: '%dη',
  7817. week : {
  7818. dow : 1, // Monday is the first day of the week.
  7819. doy : 4 // The week that contains Jan 4st is the first week of the year.
  7820. }
  7821. });
  7822. return el;
  7823. })));
  7824. /***/ }),
  7825. /***/ "./node_modules/moment/locale/en-au.js":
  7826. /*!*********************************************!*\
  7827. !*** ./node_modules/moment/locale/en-au.js ***!
  7828. \*********************************************/
  7829. /*! no static exports found */
  7830. /***/ (function(module, exports, __webpack_require__) {
  7831. //! moment.js locale configuration
  7832. //! locale : English (Australia) [en-au]
  7833. //! author : Jared Morse : https://github.com/jarcoal
  7834. ;(function (global, factory) {
  7835. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  7836. undefined
  7837. }(this, (function (moment) { 'use strict';
  7838. var enAu = moment.defineLocale('en-au', {
  7839. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  7840. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7841. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  7842. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7843. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7844. longDateFormat : {
  7845. LT : 'h:mm A',
  7846. LTS : 'h:mm:ss A',
  7847. L : 'DD/MM/YYYY',
  7848. LL : 'D MMMM YYYY',
  7849. LLL : 'D MMMM YYYY h:mm A',
  7850. LLLL : 'dddd, D MMMM YYYY h:mm A'
  7851. },
  7852. calendar : {
  7853. sameDay : '[Today at] LT',
  7854. nextDay : '[Tomorrow at] LT',
  7855. nextWeek : 'dddd [at] LT',
  7856. lastDay : '[Yesterday at] LT',
  7857. lastWeek : '[Last] dddd [at] LT',
  7858. sameElse : 'L'
  7859. },
  7860. relativeTime : {
  7861. future : 'in %s',
  7862. past : '%s ago',
  7863. s : 'a few seconds',
  7864. m : 'a minute',
  7865. mm : '%d minutes',
  7866. h : 'an hour',
  7867. hh : '%d hours',
  7868. d : 'a day',
  7869. dd : '%d days',
  7870. M : 'a month',
  7871. MM : '%d months',
  7872. y : 'a year',
  7873. yy : '%d years'
  7874. },
  7875. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7876. ordinal : function (number) {
  7877. var b = number % 10,
  7878. output = (~~(number % 100 / 10) === 1) ? 'th' :
  7879. (b === 1) ? 'st' :
  7880. (b === 2) ? 'nd' :
  7881. (b === 3) ? 'rd' : 'th';
  7882. return number + output;
  7883. },
  7884. week : {
  7885. dow : 1, // Monday is the first day of the week.
  7886. doy : 4 // The week that contains Jan 4th is the first week of the year.
  7887. }
  7888. });
  7889. return enAu;
  7890. })));
  7891. /***/ }),
  7892. /***/ "./node_modules/moment/locale/en-ca.js":
  7893. /*!*********************************************!*\
  7894. !*** ./node_modules/moment/locale/en-ca.js ***!
  7895. \*********************************************/
  7896. /*! no static exports found */
  7897. /***/ (function(module, exports, __webpack_require__) {
  7898. //! moment.js locale configuration
  7899. //! locale : English (Canada) [en-ca]
  7900. //! author : Jonathan Abourbih : https://github.com/jonbca
  7901. ;(function (global, factory) {
  7902. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  7903. undefined
  7904. }(this, (function (moment) { 'use strict';
  7905. var enCa = moment.defineLocale('en-ca', {
  7906. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  7907. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7908. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  7909. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7910. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7911. longDateFormat : {
  7912. LT : 'h:mm A',
  7913. LTS : 'h:mm:ss A',
  7914. L : 'YYYY-MM-DD',
  7915. LL : 'MMMM D, YYYY',
  7916. LLL : 'MMMM D, YYYY h:mm A',
  7917. LLLL : 'dddd, MMMM D, YYYY h:mm A'
  7918. },
  7919. calendar : {
  7920. sameDay : '[Today at] LT',
  7921. nextDay : '[Tomorrow at] LT',
  7922. nextWeek : 'dddd [at] LT',
  7923. lastDay : '[Yesterday at] LT',
  7924. lastWeek : '[Last] dddd [at] LT',
  7925. sameElse : 'L'
  7926. },
  7927. relativeTime : {
  7928. future : 'in %s',
  7929. past : '%s ago',
  7930. s : 'a few seconds',
  7931. m : 'a minute',
  7932. mm : '%d minutes',
  7933. h : 'an hour',
  7934. hh : '%d hours',
  7935. d : 'a day',
  7936. dd : '%d days',
  7937. M : 'a month',
  7938. MM : '%d months',
  7939. y : 'a year',
  7940. yy : '%d years'
  7941. },
  7942. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  7943. ordinal : function (number) {
  7944. var b = number % 10,
  7945. output = (~~(number % 100 / 10) === 1) ? 'th' :
  7946. (b === 1) ? 'st' :
  7947. (b === 2) ? 'nd' :
  7948. (b === 3) ? 'rd' : 'th';
  7949. return number + output;
  7950. }
  7951. });
  7952. return enCa;
  7953. })));
  7954. /***/ }),
  7955. /***/ "./node_modules/moment/locale/en-gb.js":
  7956. /*!*********************************************!*\
  7957. !*** ./node_modules/moment/locale/en-gb.js ***!
  7958. \*********************************************/
  7959. /*! no static exports found */
  7960. /***/ (function(module, exports, __webpack_require__) {
  7961. //! moment.js locale configuration
  7962. //! locale : English (United Kingdom) [en-gb]
  7963. //! author : Chris Gedrim : https://github.com/chrisgedrim
  7964. ;(function (global, factory) {
  7965. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  7966. undefined
  7967. }(this, (function (moment) { 'use strict';
  7968. var enGb = moment.defineLocale('en-gb', {
  7969. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  7970. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  7971. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  7972. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  7973. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  7974. longDateFormat : {
  7975. LT : 'HH:mm',
  7976. LTS : 'HH:mm:ss',
  7977. L : 'DD/MM/YYYY',
  7978. LL : 'D MMMM YYYY',
  7979. LLL : 'D MMMM YYYY HH:mm',
  7980. LLLL : 'dddd, D MMMM YYYY HH:mm'
  7981. },
  7982. calendar : {
  7983. sameDay : '[Today at] LT',
  7984. nextDay : '[Tomorrow at] LT',
  7985. nextWeek : 'dddd [at] LT',
  7986. lastDay : '[Yesterday at] LT',
  7987. lastWeek : '[Last] dddd [at] LT',
  7988. sameElse : 'L'
  7989. },
  7990. relativeTime : {
  7991. future : 'in %s',
  7992. past : '%s ago',
  7993. s : 'a few seconds',
  7994. m : 'a minute',
  7995. mm : '%d minutes',
  7996. h : 'an hour',
  7997. hh : '%d hours',
  7998. d : 'a day',
  7999. dd : '%d days',
  8000. M : 'a month',
  8001. MM : '%d months',
  8002. y : 'a year',
  8003. yy : '%d years'
  8004. },
  8005. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  8006. ordinal : function (number) {
  8007. var b = number % 10,
  8008. output = (~~(number % 100 / 10) === 1) ? 'th' :
  8009. (b === 1) ? 'st' :
  8010. (b === 2) ? 'nd' :
  8011. (b === 3) ? 'rd' : 'th';
  8012. return number + output;
  8013. },
  8014. week : {
  8015. dow : 1, // Monday is the first day of the week.
  8016. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8017. }
  8018. });
  8019. return enGb;
  8020. })));
  8021. /***/ }),
  8022. /***/ "./node_modules/moment/locale/en-ie.js":
  8023. /*!*********************************************!*\
  8024. !*** ./node_modules/moment/locale/en-ie.js ***!
  8025. \*********************************************/
  8026. /*! no static exports found */
  8027. /***/ (function(module, exports, __webpack_require__) {
  8028. //! moment.js locale configuration
  8029. //! locale : English (Ireland) [en-ie]
  8030. //! author : Chris Cartlidge : https://github.com/chriscartlidge
  8031. ;(function (global, factory) {
  8032. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  8033. undefined
  8034. }(this, (function (moment) { 'use strict';
  8035. var enIe = moment.defineLocale('en-ie', {
  8036. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  8037. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  8038. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  8039. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  8040. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  8041. longDateFormat : {
  8042. LT : 'HH:mm',
  8043. LTS : 'HH:mm:ss',
  8044. L : 'DD-MM-YYYY',
  8045. LL : 'D MMMM YYYY',
  8046. LLL : 'D MMMM YYYY HH:mm',
  8047. LLLL : 'dddd D MMMM YYYY HH:mm'
  8048. },
  8049. calendar : {
  8050. sameDay : '[Today at] LT',
  8051. nextDay : '[Tomorrow at] LT',
  8052. nextWeek : 'dddd [at] LT',
  8053. lastDay : '[Yesterday at] LT',
  8054. lastWeek : '[Last] dddd [at] LT',
  8055. sameElse : 'L'
  8056. },
  8057. relativeTime : {
  8058. future : 'in %s',
  8059. past : '%s ago',
  8060. s : 'a few seconds',
  8061. m : 'a minute',
  8062. mm : '%d minutes',
  8063. h : 'an hour',
  8064. hh : '%d hours',
  8065. d : 'a day',
  8066. dd : '%d days',
  8067. M : 'a month',
  8068. MM : '%d months',
  8069. y : 'a year',
  8070. yy : '%d years'
  8071. },
  8072. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  8073. ordinal : function (number) {
  8074. var b = number % 10,
  8075. output = (~~(number % 100 / 10) === 1) ? 'th' :
  8076. (b === 1) ? 'st' :
  8077. (b === 2) ? 'nd' :
  8078. (b === 3) ? 'rd' : 'th';
  8079. return number + output;
  8080. },
  8081. week : {
  8082. dow : 1, // Monday is the first day of the week.
  8083. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8084. }
  8085. });
  8086. return enIe;
  8087. })));
  8088. /***/ }),
  8089. /***/ "./node_modules/moment/locale/en-nz.js":
  8090. /*!*********************************************!*\
  8091. !*** ./node_modules/moment/locale/en-nz.js ***!
  8092. \*********************************************/
  8093. /*! no static exports found */
  8094. /***/ (function(module, exports, __webpack_require__) {
  8095. //! moment.js locale configuration
  8096. //! locale : English (New Zealand) [en-nz]
  8097. //! author : Luke McGregor : https://github.com/lukemcgregor
  8098. ;(function (global, factory) {
  8099. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  8100. undefined
  8101. }(this, (function (moment) { 'use strict';
  8102. var enNz = moment.defineLocale('en-nz', {
  8103. months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),
  8104. monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  8105. weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
  8106. weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  8107. weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  8108. longDateFormat : {
  8109. LT : 'h:mm A',
  8110. LTS : 'h:mm:ss A',
  8111. L : 'DD/MM/YYYY',
  8112. LL : 'D MMMM YYYY',
  8113. LLL : 'D MMMM YYYY h:mm A',
  8114. LLLL : 'dddd, D MMMM YYYY h:mm A'
  8115. },
  8116. calendar : {
  8117. sameDay : '[Today at] LT',
  8118. nextDay : '[Tomorrow at] LT',
  8119. nextWeek : 'dddd [at] LT',
  8120. lastDay : '[Yesterday at] LT',
  8121. lastWeek : '[Last] dddd [at] LT',
  8122. sameElse : 'L'
  8123. },
  8124. relativeTime : {
  8125. future : 'in %s',
  8126. past : '%s ago',
  8127. s : 'a few seconds',
  8128. m : 'a minute',
  8129. mm : '%d minutes',
  8130. h : 'an hour',
  8131. hh : '%d hours',
  8132. d : 'a day',
  8133. dd : '%d days',
  8134. M : 'a month',
  8135. MM : '%d months',
  8136. y : 'a year',
  8137. yy : '%d years'
  8138. },
  8139. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  8140. ordinal : function (number) {
  8141. var b = number % 10,
  8142. output = (~~(number % 100 / 10) === 1) ? 'th' :
  8143. (b === 1) ? 'st' :
  8144. (b === 2) ? 'nd' :
  8145. (b === 3) ? 'rd' : 'th';
  8146. return number + output;
  8147. },
  8148. week : {
  8149. dow : 1, // Monday is the first day of the week.
  8150. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8151. }
  8152. });
  8153. return enNz;
  8154. })));
  8155. /***/ }),
  8156. /***/ "./node_modules/moment/locale/eo.js":
  8157. /*!******************************************!*\
  8158. !*** ./node_modules/moment/locale/eo.js ***!
  8159. \******************************************/
  8160. /*! no static exports found */
  8161. /***/ (function(module, exports, __webpack_require__) {
  8162. //! moment.js locale configuration
  8163. //! locale : Esperanto [eo]
  8164. //! author : Colin Dean : https://github.com/colindean
  8165. //! author : Mia Nordentoft Imperatori : https://github.com/miestasmia
  8166. //! comment : miestasmia corrected the translation by colindean
  8167. ;(function (global, factory) {
  8168. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  8169. undefined
  8170. }(this, (function (moment) { 'use strict';
  8171. var eo = moment.defineLocale('eo', {
  8172. months : 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'),
  8173. monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'),
  8174. weekdays : 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split('_'),
  8175. weekdaysShort : 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'),
  8176. weekdaysMin : 'di_lu_ma_me_ĵa_ve_sa'.split('_'),
  8177. longDateFormat : {
  8178. LT : 'HH:mm',
  8179. LTS : 'HH:mm:ss',
  8180. L : 'YYYY-MM-DD',
  8181. LL : 'D[-a de] MMMM, YYYY',
  8182. LLL : 'D[-a de] MMMM, YYYY HH:mm',
  8183. LLLL : 'dddd, [la] D[-a de] MMMM, YYYY HH:mm'
  8184. },
  8185. meridiemParse: /[ap]\.t\.m/i,
  8186. isPM: function (input) {
  8187. return input.charAt(0).toLowerCase() === 'p';
  8188. },
  8189. meridiem : function (hours, minutes, isLower) {
  8190. if (hours > 11) {
  8191. return isLower ? 'p.t.m.' : 'P.T.M.';
  8192. } else {
  8193. return isLower ? 'a.t.m.' : 'A.T.M.';
  8194. }
  8195. },
  8196. calendar : {
  8197. sameDay : '[Hodiaŭ je] LT',
  8198. nextDay : '[Morgaŭ je] LT',
  8199. nextWeek : 'dddd [je] LT',
  8200. lastDay : '[Hieraŭ je] LT',
  8201. lastWeek : '[pasinta] dddd [je] LT',
  8202. sameElse : 'L'
  8203. },
  8204. relativeTime : {
  8205. future : 'post %s',
  8206. past : 'antaŭ %s',
  8207. s : 'sekundoj',
  8208. m : 'minuto',
  8209. mm : '%d minutoj',
  8210. h : 'horo',
  8211. hh : '%d horoj',
  8212. d : 'tago',//ne 'diurno', ĉar estas uzita por proksimumo
  8213. dd : '%d tagoj',
  8214. M : 'monato',
  8215. MM : '%d monatoj',
  8216. y : 'jaro',
  8217. yy : '%d jaroj'
  8218. },
  8219. dayOfMonthOrdinalParse: /\d{1,2}a/,
  8220. ordinal : '%da',
  8221. week : {
  8222. dow : 1, // Monday is the first day of the week.
  8223. doy : 7 // The week that contains Jan 1st is the first week of the year.
  8224. }
  8225. });
  8226. return eo;
  8227. })));
  8228. /***/ }),
  8229. /***/ "./node_modules/moment/locale/es-do.js":
  8230. /*!*********************************************!*\
  8231. !*** ./node_modules/moment/locale/es-do.js ***!
  8232. \*********************************************/
  8233. /*! no static exports found */
  8234. /***/ (function(module, exports, __webpack_require__) {
  8235. //! moment.js locale configuration
  8236. //! locale : Spanish (Dominican Republic) [es-do]
  8237. ;(function (global, factory) {
  8238. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  8239. undefined
  8240. }(this, (function (moment) { 'use strict';
  8241. var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_');
  8242. var monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
  8243. var monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i];
  8244. var monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
  8245. var esDo = moment.defineLocale('es-do', {
  8246. months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  8247. monthsShort : function (m, format) {
  8248. if (!m) {
  8249. return monthsShortDot;
  8250. } else if (/-MMM-/.test(format)) {
  8251. return monthsShort[m.month()];
  8252. } else {
  8253. return monthsShortDot[m.month()];
  8254. }
  8255. },
  8256. monthsRegex: monthsRegex,
  8257. monthsShortRegex: monthsRegex,
  8258. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  8259. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  8260. monthsParse: monthsParse,
  8261. longMonthsParse: monthsParse,
  8262. shortMonthsParse: monthsParse,
  8263. weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  8264. weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  8265. weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  8266. weekdaysParseExact : true,
  8267. longDateFormat : {
  8268. LT : 'h:mm A',
  8269. LTS : 'h:mm:ss A',
  8270. L : 'DD/MM/YYYY',
  8271. LL : 'D [de] MMMM [de] YYYY',
  8272. LLL : 'D [de] MMMM [de] YYYY h:mm A',
  8273. LLLL : 'dddd, D [de] MMMM [de] YYYY h:mm A'
  8274. },
  8275. calendar : {
  8276. sameDay : function () {
  8277. return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  8278. },
  8279. nextDay : function () {
  8280. return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  8281. },
  8282. nextWeek : function () {
  8283. return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  8284. },
  8285. lastDay : function () {
  8286. return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  8287. },
  8288. lastWeek : function () {
  8289. return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  8290. },
  8291. sameElse : 'L'
  8292. },
  8293. relativeTime : {
  8294. future : 'en %s',
  8295. past : 'hace %s',
  8296. s : 'unos segundos',
  8297. m : 'un minuto',
  8298. mm : '%d minutos',
  8299. h : 'una hora',
  8300. hh : '%d horas',
  8301. d : 'un día',
  8302. dd : '%d días',
  8303. M : 'un mes',
  8304. MM : '%d meses',
  8305. y : 'un año',
  8306. yy : '%d años'
  8307. },
  8308. dayOfMonthOrdinalParse : /\d{1,2}º/,
  8309. ordinal : '%dº',
  8310. week : {
  8311. dow : 1, // Monday is the first day of the week.
  8312. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8313. }
  8314. });
  8315. return esDo;
  8316. })));
  8317. /***/ }),
  8318. /***/ "./node_modules/moment/locale/es-us.js":
  8319. /*!*********************************************!*\
  8320. !*** ./node_modules/moment/locale/es-us.js ***!
  8321. \*********************************************/
  8322. /*! no static exports found */
  8323. /***/ (function(module, exports, __webpack_require__) {
  8324. //! moment.js locale configuration
  8325. //! locale : Spanish (United States) [es-us]
  8326. //! author : bustta : https://github.com/bustta
  8327. ;(function (global, factory) {
  8328. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  8329. undefined
  8330. }(this, (function (moment) { 'use strict';
  8331. var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_');
  8332. var monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
  8333. var esUs = moment.defineLocale('es-us', {
  8334. months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  8335. monthsShort : function (m, format) {
  8336. if (!m) {
  8337. return monthsShortDot;
  8338. } else if (/-MMM-/.test(format)) {
  8339. return monthsShort[m.month()];
  8340. } else {
  8341. return monthsShortDot[m.month()];
  8342. }
  8343. },
  8344. monthsParseExact : true,
  8345. weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  8346. weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  8347. weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  8348. weekdaysParseExact : true,
  8349. longDateFormat : {
  8350. LT : 'H:mm',
  8351. LTS : 'H:mm:ss',
  8352. L : 'MM/DD/YYYY',
  8353. LL : 'MMMM [de] D [de] YYYY',
  8354. LLL : 'MMMM [de] D [de] YYYY H:mm',
  8355. LLLL : 'dddd, MMMM [de] D [de] YYYY H:mm'
  8356. },
  8357. calendar : {
  8358. sameDay : function () {
  8359. return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  8360. },
  8361. nextDay : function () {
  8362. return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  8363. },
  8364. nextWeek : function () {
  8365. return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  8366. },
  8367. lastDay : function () {
  8368. return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  8369. },
  8370. lastWeek : function () {
  8371. return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  8372. },
  8373. sameElse : 'L'
  8374. },
  8375. relativeTime : {
  8376. future : 'en %s',
  8377. past : 'hace %s',
  8378. s : 'unos segundos',
  8379. m : 'un minuto',
  8380. mm : '%d minutos',
  8381. h : 'una hora',
  8382. hh : '%d horas',
  8383. d : 'un día',
  8384. dd : '%d días',
  8385. M : 'un mes',
  8386. MM : '%d meses',
  8387. y : 'un año',
  8388. yy : '%d años'
  8389. },
  8390. dayOfMonthOrdinalParse : /\d{1,2}º/,
  8391. ordinal : '%dº',
  8392. week : {
  8393. dow : 0, // Sunday is the first day of the week.
  8394. doy : 6 // The week that contains Jan 1st is the first week of the year.
  8395. }
  8396. });
  8397. return esUs;
  8398. })));
  8399. /***/ }),
  8400. /***/ "./node_modules/moment/locale/es.js":
  8401. /*!******************************************!*\
  8402. !*** ./node_modules/moment/locale/es.js ***!
  8403. \******************************************/
  8404. /*! no static exports found */
  8405. /***/ (function(module, exports, __webpack_require__) {
  8406. //! moment.js locale configuration
  8407. //! locale : Spanish [es]
  8408. //! author : Julio Napurí : https://github.com/julionc
  8409. ;(function (global, factory) {
  8410. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  8411. undefined
  8412. }(this, (function (moment) { 'use strict';
  8413. var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_');
  8414. var monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
  8415. var monthsParse = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i];
  8416. var monthsRegex = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;
  8417. var es = moment.defineLocale('es', {
  8418. months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
  8419. monthsShort : function (m, format) {
  8420. if (!m) {
  8421. return monthsShortDot;
  8422. } else if (/-MMM-/.test(format)) {
  8423. return monthsShort[m.month()];
  8424. } else {
  8425. return monthsShortDot[m.month()];
  8426. }
  8427. },
  8428. monthsRegex : monthsRegex,
  8429. monthsShortRegex : monthsRegex,
  8430. monthsStrictRegex : /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  8431. monthsShortStrictRegex : /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  8432. monthsParse : monthsParse,
  8433. longMonthsParse : monthsParse,
  8434. shortMonthsParse : monthsParse,
  8435. weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
  8436. weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
  8437. weekdaysMin : 'do_lu_ma_mi_ju_vi_sá'.split('_'),
  8438. weekdaysParseExact : true,
  8439. longDateFormat : {
  8440. LT : 'H:mm',
  8441. LTS : 'H:mm:ss',
  8442. L : 'DD/MM/YYYY',
  8443. LL : 'D [de] MMMM [de] YYYY',
  8444. LLL : 'D [de] MMMM [de] YYYY H:mm',
  8445. LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'
  8446. },
  8447. calendar : {
  8448. sameDay : function () {
  8449. return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  8450. },
  8451. nextDay : function () {
  8452. return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  8453. },
  8454. nextWeek : function () {
  8455. return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  8456. },
  8457. lastDay : function () {
  8458. return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  8459. },
  8460. lastWeek : function () {
  8461. return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
  8462. },
  8463. sameElse : 'L'
  8464. },
  8465. relativeTime : {
  8466. future : 'en %s',
  8467. past : 'hace %s',
  8468. s : 'unos segundos',
  8469. m : 'un minuto',
  8470. mm : '%d minutos',
  8471. h : 'una hora',
  8472. hh : '%d horas',
  8473. d : 'un día',
  8474. dd : '%d días',
  8475. M : 'un mes',
  8476. MM : '%d meses',
  8477. y : 'un año',
  8478. yy : '%d años'
  8479. },
  8480. dayOfMonthOrdinalParse : /\d{1,2}º/,
  8481. ordinal : '%dº',
  8482. week : {
  8483. dow : 1, // Monday is the first day of the week.
  8484. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8485. }
  8486. });
  8487. return es;
  8488. })));
  8489. /***/ }),
  8490. /***/ "./node_modules/moment/locale/et.js":
  8491. /*!******************************************!*\
  8492. !*** ./node_modules/moment/locale/et.js ***!
  8493. \******************************************/
  8494. /*! no static exports found */
  8495. /***/ (function(module, exports, __webpack_require__) {
  8496. //! moment.js locale configuration
  8497. //! locale : Estonian [et]
  8498. //! author : Henry Kehlmann : https://github.com/madhenry
  8499. //! improvements : Illimar Tambek : https://github.com/ragulka
  8500. ;(function (global, factory) {
  8501. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  8502. undefined
  8503. }(this, (function (moment) { 'use strict';
  8504. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  8505. var format = {
  8506. 's' : ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
  8507. 'm' : ['ühe minuti', 'üks minut'],
  8508. 'mm': [number + ' minuti', number + ' minutit'],
  8509. 'h' : ['ühe tunni', 'tund aega', 'üks tund'],
  8510. 'hh': [number + ' tunni', number + ' tundi'],
  8511. 'd' : ['ühe päeva', 'üks päev'],
  8512. 'M' : ['kuu aja', 'kuu aega', 'üks kuu'],
  8513. 'MM': [number + ' kuu', number + ' kuud'],
  8514. 'y' : ['ühe aasta', 'aasta', 'üks aasta'],
  8515. 'yy': [number + ' aasta', number + ' aastat']
  8516. };
  8517. if (withoutSuffix) {
  8518. return format[key][2] ? format[key][2] : format[key][1];
  8519. }
  8520. return isFuture ? format[key][0] : format[key][1];
  8521. }
  8522. var et = moment.defineLocale('et', {
  8523. months : 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'),
  8524. monthsShort : 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),
  8525. weekdays : 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'),
  8526. weekdaysShort : 'P_E_T_K_N_R_L'.split('_'),
  8527. weekdaysMin : 'P_E_T_K_N_R_L'.split('_'),
  8528. longDateFormat : {
  8529. LT : 'H:mm',
  8530. LTS : 'H:mm:ss',
  8531. L : 'DD.MM.YYYY',
  8532. LL : 'D. MMMM YYYY',
  8533. LLL : 'D. MMMM YYYY H:mm',
  8534. LLLL : 'dddd, D. MMMM YYYY H:mm'
  8535. },
  8536. calendar : {
  8537. sameDay : '[Täna,] LT',
  8538. nextDay : '[Homme,] LT',
  8539. nextWeek : '[Järgmine] dddd LT',
  8540. lastDay : '[Eile,] LT',
  8541. lastWeek : '[Eelmine] dddd LT',
  8542. sameElse : 'L'
  8543. },
  8544. relativeTime : {
  8545. future : '%s pärast',
  8546. past : '%s tagasi',
  8547. s : processRelativeTime,
  8548. m : processRelativeTime,
  8549. mm : processRelativeTime,
  8550. h : processRelativeTime,
  8551. hh : processRelativeTime,
  8552. d : processRelativeTime,
  8553. dd : '%d päeva',
  8554. M : processRelativeTime,
  8555. MM : processRelativeTime,
  8556. y : processRelativeTime,
  8557. yy : processRelativeTime
  8558. },
  8559. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8560. ordinal : '%d.',
  8561. week : {
  8562. dow : 1, // Monday is the first day of the week.
  8563. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8564. }
  8565. });
  8566. return et;
  8567. })));
  8568. /***/ }),
  8569. /***/ "./node_modules/moment/locale/eu.js":
  8570. /*!******************************************!*\
  8571. !*** ./node_modules/moment/locale/eu.js ***!
  8572. \******************************************/
  8573. /*! no static exports found */
  8574. /***/ (function(module, exports, __webpack_require__) {
  8575. //! moment.js locale configuration
  8576. //! locale : Basque [eu]
  8577. //! author : Eneko Illarramendi : https://github.com/eillarra
  8578. ;(function (global, factory) {
  8579. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  8580. undefined
  8581. }(this, (function (moment) { 'use strict';
  8582. var eu = moment.defineLocale('eu', {
  8583. months : 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'),
  8584. monthsShort : 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'),
  8585. monthsParseExact : true,
  8586. weekdays : 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'),
  8587. weekdaysShort : 'ig._al._ar._az._og._ol._lr.'.split('_'),
  8588. weekdaysMin : 'ig_al_ar_az_og_ol_lr'.split('_'),
  8589. weekdaysParseExact : true,
  8590. longDateFormat : {
  8591. LT : 'HH:mm',
  8592. LTS : 'HH:mm:ss',
  8593. L : 'YYYY-MM-DD',
  8594. LL : 'YYYY[ko] MMMM[ren] D[a]',
  8595. LLL : 'YYYY[ko] MMMM[ren] D[a] HH:mm',
  8596. LLLL : 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
  8597. l : 'YYYY-M-D',
  8598. ll : 'YYYY[ko] MMM D[a]',
  8599. lll : 'YYYY[ko] MMM D[a] HH:mm',
  8600. llll : 'ddd, YYYY[ko] MMM D[a] HH:mm'
  8601. },
  8602. calendar : {
  8603. sameDay : '[gaur] LT[etan]',
  8604. nextDay : '[bihar] LT[etan]',
  8605. nextWeek : 'dddd LT[etan]',
  8606. lastDay : '[atzo] LT[etan]',
  8607. lastWeek : '[aurreko] dddd LT[etan]',
  8608. sameElse : 'L'
  8609. },
  8610. relativeTime : {
  8611. future : '%s barru',
  8612. past : 'duela %s',
  8613. s : 'segundo batzuk',
  8614. m : 'minutu bat',
  8615. mm : '%d minutu',
  8616. h : 'ordu bat',
  8617. hh : '%d ordu',
  8618. d : 'egun bat',
  8619. dd : '%d egun',
  8620. M : 'hilabete bat',
  8621. MM : '%d hilabete',
  8622. y : 'urte bat',
  8623. yy : '%d urte'
  8624. },
  8625. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8626. ordinal : '%d.',
  8627. week : {
  8628. dow : 1, // Monday is the first day of the week.
  8629. doy : 7 // The week that contains Jan 1st is the first week of the year.
  8630. }
  8631. });
  8632. return eu;
  8633. })));
  8634. /***/ }),
  8635. /***/ "./node_modules/moment/locale/fa.js":
  8636. /*!******************************************!*\
  8637. !*** ./node_modules/moment/locale/fa.js ***!
  8638. \******************************************/
  8639. /*! no static exports found */
  8640. /***/ (function(module, exports, __webpack_require__) {
  8641. //! moment.js locale configuration
  8642. //! locale : Persian [fa]
  8643. //! author : Ebrahim Byagowi : https://github.com/ebraminio
  8644. ;(function (global, factory) {
  8645. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  8646. undefined
  8647. }(this, (function (moment) { 'use strict';
  8648. var symbolMap = {
  8649. '1': '۱',
  8650. '2': '۲',
  8651. '3': '۳',
  8652. '4': '۴',
  8653. '5': '۵',
  8654. '6': '۶',
  8655. '7': '۷',
  8656. '8': '۸',
  8657. '9': '۹',
  8658. '0': '۰'
  8659. };
  8660. var numberMap = {
  8661. '۱': '1',
  8662. '۲': '2',
  8663. '۳': '3',
  8664. '۴': '4',
  8665. '۵': '5',
  8666. '۶': '6',
  8667. '۷': '7',
  8668. '۸': '8',
  8669. '۹': '9',
  8670. '۰': '0'
  8671. };
  8672. var fa = moment.defineLocale('fa', {
  8673. months : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
  8674. monthsShort : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
  8675. weekdays : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
  8676. weekdaysShort : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
  8677. weekdaysMin : 'ی_د_س_چ_پ_ج_ش'.split('_'),
  8678. weekdaysParseExact : true,
  8679. longDateFormat : {
  8680. LT : 'HH:mm',
  8681. LTS : 'HH:mm:ss',
  8682. L : 'DD/MM/YYYY',
  8683. LL : 'D MMMM YYYY',
  8684. LLL : 'D MMMM YYYY HH:mm',
  8685. LLLL : 'dddd, D MMMM YYYY HH:mm'
  8686. },
  8687. meridiemParse: /قبل از ظهر|بعد از ظهر/,
  8688. isPM: function (input) {
  8689. return /بعد از ظهر/.test(input);
  8690. },
  8691. meridiem : function (hour, minute, isLower) {
  8692. if (hour < 12) {
  8693. return 'قبل از ظهر';
  8694. } else {
  8695. return 'بعد از ظهر';
  8696. }
  8697. },
  8698. calendar : {
  8699. sameDay : '[امروز ساعت] LT',
  8700. nextDay : '[فردا ساعت] LT',
  8701. nextWeek : 'dddd [ساعت] LT',
  8702. lastDay : '[دیروز ساعت] LT',
  8703. lastWeek : 'dddd [پیش] [ساعت] LT',
  8704. sameElse : 'L'
  8705. },
  8706. relativeTime : {
  8707. future : 'در %s',
  8708. past : '%s پیش',
  8709. s : 'چند ثانیه',
  8710. m : 'یک دقیقه',
  8711. mm : '%d دقیقه',
  8712. h : 'یک ساعت',
  8713. hh : '%d ساعت',
  8714. d : 'یک روز',
  8715. dd : '%d روز',
  8716. M : 'یک ماه',
  8717. MM : '%d ماه',
  8718. y : 'یک سال',
  8719. yy : '%d سال'
  8720. },
  8721. preparse: function (string) {
  8722. return string.replace(/[۰-۹]/g, function (match) {
  8723. return numberMap[match];
  8724. }).replace(/،/g, ',');
  8725. },
  8726. postformat: function (string) {
  8727. return string.replace(/\d/g, function (match) {
  8728. return symbolMap[match];
  8729. }).replace(/,/g, '،');
  8730. },
  8731. dayOfMonthOrdinalParse: /\d{1,2}م/,
  8732. ordinal : '%dم',
  8733. week : {
  8734. dow : 6, // Saturday is the first day of the week.
  8735. doy : 12 // The week that contains Jan 1st is the first week of the year.
  8736. }
  8737. });
  8738. return fa;
  8739. })));
  8740. /***/ }),
  8741. /***/ "./node_modules/moment/locale/fi.js":
  8742. /*!******************************************!*\
  8743. !*** ./node_modules/moment/locale/fi.js ***!
  8744. \******************************************/
  8745. /*! no static exports found */
  8746. /***/ (function(module, exports, __webpack_require__) {
  8747. //! moment.js locale configuration
  8748. //! locale : Finnish [fi]
  8749. //! author : Tarmo Aidantausta : https://github.com/bleadof
  8750. ;(function (global, factory) {
  8751. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  8752. undefined
  8753. }(this, (function (moment) { 'use strict';
  8754. var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' ');
  8755. var numbersFuture = [
  8756. 'nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden',
  8757. numbersPast[7], numbersPast[8], numbersPast[9]
  8758. ];
  8759. function translate(number, withoutSuffix, key, isFuture) {
  8760. var result = '';
  8761. switch (key) {
  8762. case 's':
  8763. return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
  8764. case 'm':
  8765. return isFuture ? 'minuutin' : 'minuutti';
  8766. case 'mm':
  8767. result = isFuture ? 'minuutin' : 'minuuttia';
  8768. break;
  8769. case 'h':
  8770. return isFuture ? 'tunnin' : 'tunti';
  8771. case 'hh':
  8772. result = isFuture ? 'tunnin' : 'tuntia';
  8773. break;
  8774. case 'd':
  8775. return isFuture ? 'päivän' : 'päivä';
  8776. case 'dd':
  8777. result = isFuture ? 'päivän' : 'päivää';
  8778. break;
  8779. case 'M':
  8780. return isFuture ? 'kuukauden' : 'kuukausi';
  8781. case 'MM':
  8782. result = isFuture ? 'kuukauden' : 'kuukautta';
  8783. break;
  8784. case 'y':
  8785. return isFuture ? 'vuoden' : 'vuosi';
  8786. case 'yy':
  8787. result = isFuture ? 'vuoden' : 'vuotta';
  8788. break;
  8789. }
  8790. result = verbalNumber(number, isFuture) + ' ' + result;
  8791. return result;
  8792. }
  8793. function verbalNumber(number, isFuture) {
  8794. return number < 10 ? (isFuture ? numbersFuture[number] : numbersPast[number]) : number;
  8795. }
  8796. var fi = moment.defineLocale('fi', {
  8797. months : 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'),
  8798. monthsShort : 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'),
  8799. weekdays : 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'),
  8800. weekdaysShort : 'su_ma_ti_ke_to_pe_la'.split('_'),
  8801. weekdaysMin : 'su_ma_ti_ke_to_pe_la'.split('_'),
  8802. longDateFormat : {
  8803. LT : 'HH.mm',
  8804. LTS : 'HH.mm.ss',
  8805. L : 'DD.MM.YYYY',
  8806. LL : 'Do MMMM[ta] YYYY',
  8807. LLL : 'Do MMMM[ta] YYYY, [klo] HH.mm',
  8808. LLLL : 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
  8809. l : 'D.M.YYYY',
  8810. ll : 'Do MMM YYYY',
  8811. lll : 'Do MMM YYYY, [klo] HH.mm',
  8812. llll : 'ddd, Do MMM YYYY, [klo] HH.mm'
  8813. },
  8814. calendar : {
  8815. sameDay : '[tänään] [klo] LT',
  8816. nextDay : '[huomenna] [klo] LT',
  8817. nextWeek : 'dddd [klo] LT',
  8818. lastDay : '[eilen] [klo] LT',
  8819. lastWeek : '[viime] dddd[na] [klo] LT',
  8820. sameElse : 'L'
  8821. },
  8822. relativeTime : {
  8823. future : '%s päästä',
  8824. past : '%s sitten',
  8825. s : translate,
  8826. m : translate,
  8827. mm : translate,
  8828. h : translate,
  8829. hh : translate,
  8830. d : translate,
  8831. dd : translate,
  8832. M : translate,
  8833. MM : translate,
  8834. y : translate,
  8835. yy : translate
  8836. },
  8837. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8838. ordinal : '%d.',
  8839. week : {
  8840. dow : 1, // Monday is the first day of the week.
  8841. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8842. }
  8843. });
  8844. return fi;
  8845. })));
  8846. /***/ }),
  8847. /***/ "./node_modules/moment/locale/fo.js":
  8848. /*!******************************************!*\
  8849. !*** ./node_modules/moment/locale/fo.js ***!
  8850. \******************************************/
  8851. /*! no static exports found */
  8852. /***/ (function(module, exports, __webpack_require__) {
  8853. //! moment.js locale configuration
  8854. //! locale : Faroese [fo]
  8855. //! author : Ragnar Johannesen : https://github.com/ragnar123
  8856. ;(function (global, factory) {
  8857. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  8858. undefined
  8859. }(this, (function (moment) { 'use strict';
  8860. var fo = moment.defineLocale('fo', {
  8861. months : 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  8862. monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  8863. weekdays : 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'),
  8864. weekdaysShort : 'sun_mán_týs_mik_hós_frí_ley'.split('_'),
  8865. weekdaysMin : 'su_má_tý_mi_hó_fr_le'.split('_'),
  8866. longDateFormat : {
  8867. LT : 'HH:mm',
  8868. LTS : 'HH:mm:ss',
  8869. L : 'DD/MM/YYYY',
  8870. LL : 'D MMMM YYYY',
  8871. LLL : 'D MMMM YYYY HH:mm',
  8872. LLLL : 'dddd D. MMMM, YYYY HH:mm'
  8873. },
  8874. calendar : {
  8875. sameDay : '[Í dag kl.] LT',
  8876. nextDay : '[Í morgin kl.] LT',
  8877. nextWeek : 'dddd [kl.] LT',
  8878. lastDay : '[Í gjár kl.] LT',
  8879. lastWeek : '[síðstu] dddd [kl] LT',
  8880. sameElse : 'L'
  8881. },
  8882. relativeTime : {
  8883. future : 'um %s',
  8884. past : '%s síðani',
  8885. s : 'fá sekund',
  8886. m : 'ein minutt',
  8887. mm : '%d minuttir',
  8888. h : 'ein tími',
  8889. hh : '%d tímar',
  8890. d : 'ein dagur',
  8891. dd : '%d dagar',
  8892. M : 'ein mánaði',
  8893. MM : '%d mánaðir',
  8894. y : 'eitt ár',
  8895. yy : '%d ár'
  8896. },
  8897. dayOfMonthOrdinalParse: /\d{1,2}\./,
  8898. ordinal : '%d.',
  8899. week : {
  8900. dow : 1, // Monday is the first day of the week.
  8901. doy : 4 // The week that contains Jan 4th is the first week of the year.
  8902. }
  8903. });
  8904. return fo;
  8905. })));
  8906. /***/ }),
  8907. /***/ "./node_modules/moment/locale/fr-ca.js":
  8908. /*!*********************************************!*\
  8909. !*** ./node_modules/moment/locale/fr-ca.js ***!
  8910. \*********************************************/
  8911. /*! no static exports found */
  8912. /***/ (function(module, exports, __webpack_require__) {
  8913. //! moment.js locale configuration
  8914. //! locale : French (Canada) [fr-ca]
  8915. //! author : Jonathan Abourbih : https://github.com/jonbca
  8916. ;(function (global, factory) {
  8917. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  8918. undefined
  8919. }(this, (function (moment) { 'use strict';
  8920. var frCa = moment.defineLocale('fr-ca', {
  8921. months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  8922. monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  8923. monthsParseExact : true,
  8924. weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  8925. weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  8926. weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
  8927. weekdaysParseExact : true,
  8928. longDateFormat : {
  8929. LT : 'HH:mm',
  8930. LTS : 'HH:mm:ss',
  8931. L : 'YYYY-MM-DD',
  8932. LL : 'D MMMM YYYY',
  8933. LLL : 'D MMMM YYYY HH:mm',
  8934. LLLL : 'dddd D MMMM YYYY HH:mm'
  8935. },
  8936. calendar : {
  8937. sameDay : '[Aujourd’hui à] LT',
  8938. nextDay : '[Demain à] LT',
  8939. nextWeek : 'dddd [à] LT',
  8940. lastDay : '[Hier à] LT',
  8941. lastWeek : 'dddd [dernier à] LT',
  8942. sameElse : 'L'
  8943. },
  8944. relativeTime : {
  8945. future : 'dans %s',
  8946. past : 'il y a %s',
  8947. s : 'quelques secondes',
  8948. m : 'une minute',
  8949. mm : '%d minutes',
  8950. h : 'une heure',
  8951. hh : '%d heures',
  8952. d : 'un jour',
  8953. dd : '%d jours',
  8954. M : 'un mois',
  8955. MM : '%d mois',
  8956. y : 'un an',
  8957. yy : '%d ans'
  8958. },
  8959. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  8960. ordinal : function (number, period) {
  8961. switch (period) {
  8962. // Words with masculine grammatical gender: mois, trimestre, jour
  8963. default:
  8964. case 'M':
  8965. case 'Q':
  8966. case 'D':
  8967. case 'DDD':
  8968. case 'd':
  8969. return number + (number === 1 ? 'er' : 'e');
  8970. // Words with feminine grammatical gender: semaine
  8971. case 'w':
  8972. case 'W':
  8973. return number + (number === 1 ? 're' : 'e');
  8974. }
  8975. }
  8976. });
  8977. return frCa;
  8978. })));
  8979. /***/ }),
  8980. /***/ "./node_modules/moment/locale/fr-ch.js":
  8981. /*!*********************************************!*\
  8982. !*** ./node_modules/moment/locale/fr-ch.js ***!
  8983. \*********************************************/
  8984. /*! no static exports found */
  8985. /***/ (function(module, exports, __webpack_require__) {
  8986. //! moment.js locale configuration
  8987. //! locale : French (Switzerland) [fr-ch]
  8988. //! author : Gaspard Bucher : https://github.com/gaspard
  8989. ;(function (global, factory) {
  8990. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  8991. undefined
  8992. }(this, (function (moment) { 'use strict';
  8993. var frCh = moment.defineLocale('fr-ch', {
  8994. months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  8995. monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  8996. monthsParseExact : true,
  8997. weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  8998. weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  8999. weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
  9000. weekdaysParseExact : true,
  9001. longDateFormat : {
  9002. LT : 'HH:mm',
  9003. LTS : 'HH:mm:ss',
  9004. L : 'DD.MM.YYYY',
  9005. LL : 'D MMMM YYYY',
  9006. LLL : 'D MMMM YYYY HH:mm',
  9007. LLLL : 'dddd D MMMM YYYY HH:mm'
  9008. },
  9009. calendar : {
  9010. sameDay : '[Aujourd’hui à] LT',
  9011. nextDay : '[Demain à] LT',
  9012. nextWeek : 'dddd [à] LT',
  9013. lastDay : '[Hier à] LT',
  9014. lastWeek : 'dddd [dernier à] LT',
  9015. sameElse : 'L'
  9016. },
  9017. relativeTime : {
  9018. future : 'dans %s',
  9019. past : 'il y a %s',
  9020. s : 'quelques secondes',
  9021. m : 'une minute',
  9022. mm : '%d minutes',
  9023. h : 'une heure',
  9024. hh : '%d heures',
  9025. d : 'un jour',
  9026. dd : '%d jours',
  9027. M : 'un mois',
  9028. MM : '%d mois',
  9029. y : 'un an',
  9030. yy : '%d ans'
  9031. },
  9032. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  9033. ordinal : function (number, period) {
  9034. switch (period) {
  9035. // Words with masculine grammatical gender: mois, trimestre, jour
  9036. default:
  9037. case 'M':
  9038. case 'Q':
  9039. case 'D':
  9040. case 'DDD':
  9041. case 'd':
  9042. return number + (number === 1 ? 'er' : 'e');
  9043. // Words with feminine grammatical gender: semaine
  9044. case 'w':
  9045. case 'W':
  9046. return number + (number === 1 ? 're' : 'e');
  9047. }
  9048. },
  9049. week : {
  9050. dow : 1, // Monday is the first day of the week.
  9051. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9052. }
  9053. });
  9054. return frCh;
  9055. })));
  9056. /***/ }),
  9057. /***/ "./node_modules/moment/locale/fr.js":
  9058. /*!******************************************!*\
  9059. !*** ./node_modules/moment/locale/fr.js ***!
  9060. \******************************************/
  9061. /*! no static exports found */
  9062. /***/ (function(module, exports, __webpack_require__) {
  9063. //! moment.js locale configuration
  9064. //! locale : French [fr]
  9065. //! author : John Fischer : https://github.com/jfroffice
  9066. ;(function (global, factory) {
  9067. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  9068. undefined
  9069. }(this, (function (moment) { 'use strict';
  9070. var fr = moment.defineLocale('fr', {
  9071. months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'),
  9072. monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'),
  9073. monthsParseExact : true,
  9074. weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),
  9075. weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),
  9076. weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'),
  9077. weekdaysParseExact : true,
  9078. longDateFormat : {
  9079. LT : 'HH:mm',
  9080. LTS : 'HH:mm:ss',
  9081. L : 'DD/MM/YYYY',
  9082. LL : 'D MMMM YYYY',
  9083. LLL : 'D MMMM YYYY HH:mm',
  9084. LLLL : 'dddd D MMMM YYYY HH:mm'
  9085. },
  9086. calendar : {
  9087. sameDay : '[Aujourd’hui à] LT',
  9088. nextDay : '[Demain à] LT',
  9089. nextWeek : 'dddd [à] LT',
  9090. lastDay : '[Hier à] LT',
  9091. lastWeek : 'dddd [dernier à] LT',
  9092. sameElse : 'L'
  9093. },
  9094. relativeTime : {
  9095. future : 'dans %s',
  9096. past : 'il y a %s',
  9097. s : 'quelques secondes',
  9098. m : 'une minute',
  9099. mm : '%d minutes',
  9100. h : 'une heure',
  9101. hh : '%d heures',
  9102. d : 'un jour',
  9103. dd : '%d jours',
  9104. M : 'un mois',
  9105. MM : '%d mois',
  9106. y : 'un an',
  9107. yy : '%d ans'
  9108. },
  9109. dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
  9110. ordinal : function (number, period) {
  9111. switch (period) {
  9112. // TODO: Return 'e' when day of month > 1. Move this case inside
  9113. // block for masculine words below.
  9114. // See https://github.com/moment/moment/issues/3375
  9115. case 'D':
  9116. return number + (number === 1 ? 'er' : '');
  9117. // Words with masculine grammatical gender: mois, trimestre, jour
  9118. default:
  9119. case 'M':
  9120. case 'Q':
  9121. case 'DDD':
  9122. case 'd':
  9123. return number + (number === 1 ? 'er' : 'e');
  9124. // Words with feminine grammatical gender: semaine
  9125. case 'w':
  9126. case 'W':
  9127. return number + (number === 1 ? 're' : 'e');
  9128. }
  9129. },
  9130. week : {
  9131. dow : 1, // Monday is the first day of the week.
  9132. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9133. }
  9134. });
  9135. return fr;
  9136. })));
  9137. /***/ }),
  9138. /***/ "./node_modules/moment/locale/fy.js":
  9139. /*!******************************************!*\
  9140. !*** ./node_modules/moment/locale/fy.js ***!
  9141. \******************************************/
  9142. /*! no static exports found */
  9143. /***/ (function(module, exports, __webpack_require__) {
  9144. //! moment.js locale configuration
  9145. //! locale : Frisian [fy]
  9146. //! author : Robin van der Vliet : https://github.com/robin0van0der0v
  9147. ;(function (global, factory) {
  9148. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  9149. undefined
  9150. }(this, (function (moment) { 'use strict';
  9151. var monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_');
  9152. var monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_');
  9153. var fy = moment.defineLocale('fy', {
  9154. months : 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'),
  9155. monthsShort : function (m, format) {
  9156. if (!m) {
  9157. return monthsShortWithDots;
  9158. } else if (/-MMM-/.test(format)) {
  9159. return monthsShortWithoutDots[m.month()];
  9160. } else {
  9161. return monthsShortWithDots[m.month()];
  9162. }
  9163. },
  9164. monthsParseExact : true,
  9165. weekdays : 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'),
  9166. weekdaysShort : 'si._mo._ti._wo._to._fr._so.'.split('_'),
  9167. weekdaysMin : 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'),
  9168. weekdaysParseExact : true,
  9169. longDateFormat : {
  9170. LT : 'HH:mm',
  9171. LTS : 'HH:mm:ss',
  9172. L : 'DD-MM-YYYY',
  9173. LL : 'D MMMM YYYY',
  9174. LLL : 'D MMMM YYYY HH:mm',
  9175. LLLL : 'dddd D MMMM YYYY HH:mm'
  9176. },
  9177. calendar : {
  9178. sameDay: '[hjoed om] LT',
  9179. nextDay: '[moarn om] LT',
  9180. nextWeek: 'dddd [om] LT',
  9181. lastDay: '[juster om] LT',
  9182. lastWeek: '[ôfrûne] dddd [om] LT',
  9183. sameElse: 'L'
  9184. },
  9185. relativeTime : {
  9186. future : 'oer %s',
  9187. past : '%s lyn',
  9188. s : 'in pear sekonden',
  9189. m : 'ien minút',
  9190. mm : '%d minuten',
  9191. h : 'ien oere',
  9192. hh : '%d oeren',
  9193. d : 'ien dei',
  9194. dd : '%d dagen',
  9195. M : 'ien moanne',
  9196. MM : '%d moannen',
  9197. y : 'ien jier',
  9198. yy : '%d jierren'
  9199. },
  9200. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  9201. ordinal : function (number) {
  9202. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
  9203. },
  9204. week : {
  9205. dow : 1, // Monday is the first day of the week.
  9206. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9207. }
  9208. });
  9209. return fy;
  9210. })));
  9211. /***/ }),
  9212. /***/ "./node_modules/moment/locale/gd.js":
  9213. /*!******************************************!*\
  9214. !*** ./node_modules/moment/locale/gd.js ***!
  9215. \******************************************/
  9216. /*! no static exports found */
  9217. /***/ (function(module, exports, __webpack_require__) {
  9218. //! moment.js locale configuration
  9219. //! locale : Scottish Gaelic [gd]
  9220. //! author : Jon Ashdown : https://github.com/jonashdown
  9221. ;(function (global, factory) {
  9222. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  9223. undefined
  9224. }(this, (function (moment) { 'use strict';
  9225. var months = [
  9226. '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'
  9227. ];
  9228. var monthsShort = ['Faoi', 'Gear', 'Màrt', 'Gibl', 'Cèit', 'Ògmh', 'Iuch', 'Lùn', 'Sult', 'Dàmh', 'Samh', 'Dùbh'];
  9229. var weekdays = ['Didòmhnaich', 'Diluain', 'Dimàirt', 'Diciadain', 'Diardaoin', 'Dihaoine', 'Disathairne'];
  9230. var weekdaysShort = ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'];
  9231. var weekdaysMin = ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'];
  9232. var gd = moment.defineLocale('gd', {
  9233. months : months,
  9234. monthsShort : monthsShort,
  9235. monthsParseExact : true,
  9236. weekdays : weekdays,
  9237. weekdaysShort : weekdaysShort,
  9238. weekdaysMin : weekdaysMin,
  9239. longDateFormat : {
  9240. LT : 'HH:mm',
  9241. LTS : 'HH:mm:ss',
  9242. L : 'DD/MM/YYYY',
  9243. LL : 'D MMMM YYYY',
  9244. LLL : 'D MMMM YYYY HH:mm',
  9245. LLLL : 'dddd, D MMMM YYYY HH:mm'
  9246. },
  9247. calendar : {
  9248. sameDay : '[An-diugh aig] LT',
  9249. nextDay : '[A-màireach aig] LT',
  9250. nextWeek : 'dddd [aig] LT',
  9251. lastDay : '[An-dè aig] LT',
  9252. lastWeek : 'dddd [seo chaidh] [aig] LT',
  9253. sameElse : 'L'
  9254. },
  9255. relativeTime : {
  9256. future : 'ann an %s',
  9257. past : 'bho chionn %s',
  9258. s : 'beagan diogan',
  9259. m : 'mionaid',
  9260. mm : '%d mionaidean',
  9261. h : 'uair',
  9262. hh : '%d uairean',
  9263. d : 'latha',
  9264. dd : '%d latha',
  9265. M : 'mìos',
  9266. MM : '%d mìosan',
  9267. y : 'bliadhna',
  9268. yy : '%d bliadhna'
  9269. },
  9270. dayOfMonthOrdinalParse : /\d{1,2}(d|na|mh)/,
  9271. ordinal : function (number) {
  9272. var output = number === 1 ? 'd' : number % 10 === 2 ? 'na' : 'mh';
  9273. return number + output;
  9274. },
  9275. week : {
  9276. dow : 1, // Monday is the first day of the week.
  9277. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9278. }
  9279. });
  9280. return gd;
  9281. })));
  9282. /***/ }),
  9283. /***/ "./node_modules/moment/locale/gl.js":
  9284. /*!******************************************!*\
  9285. !*** ./node_modules/moment/locale/gl.js ***!
  9286. \******************************************/
  9287. /*! no static exports found */
  9288. /***/ (function(module, exports, __webpack_require__) {
  9289. //! moment.js locale configuration
  9290. //! locale : Galician [gl]
  9291. //! author : Juan G. Hurtado : https://github.com/juanghurtado
  9292. ;(function (global, factory) {
  9293. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  9294. undefined
  9295. }(this, (function (moment) { 'use strict';
  9296. var gl = moment.defineLocale('gl', {
  9297. months : 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split('_'),
  9298. monthsShort : 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split('_'),
  9299. monthsParseExact: true,
  9300. weekdays : 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'),
  9301. weekdaysShort : 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'),
  9302. weekdaysMin : 'do_lu_ma_mé_xo_ve_sá'.split('_'),
  9303. weekdaysParseExact : true,
  9304. longDateFormat : {
  9305. LT : 'H:mm',
  9306. LTS : 'H:mm:ss',
  9307. L : 'DD/MM/YYYY',
  9308. LL : 'D [de] MMMM [de] YYYY',
  9309. LLL : 'D [de] MMMM [de] YYYY H:mm',
  9310. LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm'
  9311. },
  9312. calendar : {
  9313. sameDay : function () {
  9314. return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
  9315. },
  9316. nextDay : function () {
  9317. return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT';
  9318. },
  9319. nextWeek : function () {
  9320. return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
  9321. },
  9322. lastDay : function () {
  9323. return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT';
  9324. },
  9325. lastWeek : function () {
  9326. return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
  9327. },
  9328. sameElse : 'L'
  9329. },
  9330. relativeTime : {
  9331. future : function (str) {
  9332. if (str.indexOf('un') === 0) {
  9333. return 'n' + str;
  9334. }
  9335. return 'en ' + str;
  9336. },
  9337. past : 'hai %s',
  9338. s : 'uns segundos',
  9339. m : 'un minuto',
  9340. mm : '%d minutos',
  9341. h : 'unha hora',
  9342. hh : '%d horas',
  9343. d : 'un día',
  9344. dd : '%d días',
  9345. M : 'un mes',
  9346. MM : '%d meses',
  9347. y : 'un ano',
  9348. yy : '%d anos'
  9349. },
  9350. dayOfMonthOrdinalParse : /\d{1,2}º/,
  9351. ordinal : '%dº',
  9352. week : {
  9353. dow : 1, // Monday is the first day of the week.
  9354. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9355. }
  9356. });
  9357. return gl;
  9358. })));
  9359. /***/ }),
  9360. /***/ "./node_modules/moment/locale/gom-latn.js":
  9361. /*!************************************************!*\
  9362. !*** ./node_modules/moment/locale/gom-latn.js ***!
  9363. \************************************************/
  9364. /*! no static exports found */
  9365. /***/ (function(module, exports, __webpack_require__) {
  9366. //! moment.js locale configuration
  9367. //! locale : Konkani Latin script [gom-latn]
  9368. //! author : The Discoverer : https://github.com/WikiDiscoverer
  9369. ;(function (global, factory) {
  9370. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  9371. undefined
  9372. }(this, (function (moment) { 'use strict';
  9373. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  9374. var format = {
  9375. 's': ['thodde secondanim', 'thodde second'],
  9376. 'm': ['eka mintan', 'ek minute'],
  9377. 'mm': [number + ' mintanim', number + ' mintam'],
  9378. 'h': ['eka horan', 'ek hor'],
  9379. 'hh': [number + ' horanim', number + ' hor'],
  9380. 'd': ['eka disan', 'ek dis'],
  9381. 'dd': [number + ' disanim', number + ' dis'],
  9382. 'M': ['eka mhoinean', 'ek mhoino'],
  9383. 'MM': [number + ' mhoineanim', number + ' mhoine'],
  9384. 'y': ['eka vorsan', 'ek voros'],
  9385. 'yy': [number + ' vorsanim', number + ' vorsam']
  9386. };
  9387. return withoutSuffix ? format[key][0] : format[key][1];
  9388. }
  9389. var gomLatn = moment.defineLocale('gom-latn', {
  9390. months : 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split('_'),
  9391. monthsShort : 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split('_'),
  9392. monthsParseExact : true,
  9393. weekdays : 'Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son\'var'.split('_'),
  9394. weekdaysShort : 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),
  9395. weekdaysMin : 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),
  9396. weekdaysParseExact : true,
  9397. longDateFormat : {
  9398. LT : 'A h:mm [vazta]',
  9399. LTS : 'A h:mm:ss [vazta]',
  9400. L : 'DD-MM-YYYY',
  9401. LL : 'D MMMM YYYY',
  9402. LLL : 'D MMMM YYYY A h:mm [vazta]',
  9403. LLLL : 'dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]',
  9404. llll: 'ddd, D MMM YYYY, A h:mm [vazta]'
  9405. },
  9406. calendar : {
  9407. sameDay: '[Aiz] LT',
  9408. nextDay: '[Faleam] LT',
  9409. nextWeek: '[Ieta to] dddd[,] LT',
  9410. lastDay: '[Kal] LT',
  9411. lastWeek: '[Fatlo] dddd[,] LT',
  9412. sameElse: 'L'
  9413. },
  9414. relativeTime : {
  9415. future : '%s',
  9416. past : '%s adim',
  9417. s : processRelativeTime,
  9418. m : processRelativeTime,
  9419. mm : processRelativeTime,
  9420. h : processRelativeTime,
  9421. hh : processRelativeTime,
  9422. d : processRelativeTime,
  9423. dd : processRelativeTime,
  9424. M : processRelativeTime,
  9425. MM : processRelativeTime,
  9426. y : processRelativeTime,
  9427. yy : processRelativeTime
  9428. },
  9429. dayOfMonthOrdinalParse : /\d{1,2}(er)/,
  9430. ordinal : function (number, period) {
  9431. switch (period) {
  9432. // the ordinal 'er' only applies to day of the month
  9433. case 'D':
  9434. return number + 'er';
  9435. default:
  9436. case 'M':
  9437. case 'Q':
  9438. case 'DDD':
  9439. case 'd':
  9440. case 'w':
  9441. case 'W':
  9442. return number;
  9443. }
  9444. },
  9445. week : {
  9446. dow : 1, // Monday is the first day of the week.
  9447. doy : 4 // The week that contains Jan 4th is the first week of the year.
  9448. },
  9449. meridiemParse: /rati|sokalli|donparam|sanje/,
  9450. meridiemHour : function (hour, meridiem) {
  9451. if (hour === 12) {
  9452. hour = 0;
  9453. }
  9454. if (meridiem === 'rati') {
  9455. return hour < 4 ? hour : hour + 12;
  9456. } else if (meridiem === 'sokalli') {
  9457. return hour;
  9458. } else if (meridiem === 'donparam') {
  9459. return hour > 12 ? hour : hour + 12;
  9460. } else if (meridiem === 'sanje') {
  9461. return hour + 12;
  9462. }
  9463. },
  9464. meridiem : function (hour, minute, isLower) {
  9465. if (hour < 4) {
  9466. return 'rati';
  9467. } else if (hour < 12) {
  9468. return 'sokalli';
  9469. } else if (hour < 16) {
  9470. return 'donparam';
  9471. } else if (hour < 20) {
  9472. return 'sanje';
  9473. } else {
  9474. return 'rati';
  9475. }
  9476. }
  9477. });
  9478. return gomLatn;
  9479. })));
  9480. /***/ }),
  9481. /***/ "./node_modules/moment/locale/gu.js":
  9482. /*!******************************************!*\
  9483. !*** ./node_modules/moment/locale/gu.js ***!
  9484. \******************************************/
  9485. /*! no static exports found */
  9486. /***/ (function(module, exports, __webpack_require__) {
  9487. //! moment.js locale configuration
  9488. //! locale : Gujarati [gu]
  9489. //! author : Kaushik Thanki : https://github.com/Kaushik1987
  9490. ;(function (global, factory) {
  9491. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  9492. undefined
  9493. }(this, (function (moment) { 'use strict';
  9494. var symbolMap = {
  9495. '1': '૧',
  9496. '2': '૨',
  9497. '3': '૩',
  9498. '4': '૪',
  9499. '5': '૫',
  9500. '6': '૬',
  9501. '7': '૭',
  9502. '8': '૮',
  9503. '9': '૯',
  9504. '0': '૦'
  9505. };
  9506. var numberMap = {
  9507. '૧': '1',
  9508. '૨': '2',
  9509. '૩': '3',
  9510. '૪': '4',
  9511. '૫': '5',
  9512. '૬': '6',
  9513. '૭': '7',
  9514. '૮': '8',
  9515. '૯': '9',
  9516. '૦': '0'
  9517. };
  9518. var gu = moment.defineLocale('gu', {
  9519. months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split('_'),
  9520. monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split('_'),
  9521. monthsParseExact: true,
  9522. weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split('_'),
  9523. weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'),
  9524. weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'),
  9525. longDateFormat: {
  9526. LT: 'A h:mm વાગ્યે',
  9527. LTS: 'A h:mm:ss વાગ્યે',
  9528. L: 'DD/MM/YYYY',
  9529. LL: 'D MMMM YYYY',
  9530. LLL: 'D MMMM YYYY, A h:mm વાગ્યે',
  9531. LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે'
  9532. },
  9533. calendar: {
  9534. sameDay: '[આજ] LT',
  9535. nextDay: '[કાલે] LT',
  9536. nextWeek: 'dddd, LT',
  9537. lastDay: '[ગઇકાલે] LT',
  9538. lastWeek: '[પાછલા] dddd, LT',
  9539. sameElse: 'L'
  9540. },
  9541. relativeTime: {
  9542. future: '%s મા',
  9543. past: '%s પેહલા',
  9544. s: 'અમુક પળો',
  9545. m: 'એક મિનિટ',
  9546. mm: '%d મિનિટ',
  9547. h: 'એક કલાક',
  9548. hh: '%d કલાક',
  9549. d: 'એક દિવસ',
  9550. dd: '%d દિવસ',
  9551. M: 'એક મહિનો',
  9552. MM: '%d મહિનો',
  9553. y: 'એક વર્ષ',
  9554. yy: '%d વર્ષ'
  9555. },
  9556. preparse: function (string) {
  9557. return string.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (match) {
  9558. return numberMap[match];
  9559. });
  9560. },
  9561. postformat: function (string) {
  9562. return string.replace(/\d/g, function (match) {
  9563. return symbolMap[match];
  9564. });
  9565. },
  9566. // Gujarati notation for meridiems are quite fuzzy in practice. While there exists
  9567. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Gujarati.
  9568. meridiemParse: /રાત|બપોર|સવાર|સાંજ/,
  9569. meridiemHour: function (hour, meridiem) {
  9570. if (hour === 12) {
  9571. hour = 0;
  9572. }
  9573. if (meridiem === 'રાત') {
  9574. return hour < 4 ? hour : hour + 12;
  9575. } else if (meridiem === 'સવાર') {
  9576. return hour;
  9577. } else if (meridiem === 'બપોર') {
  9578. return hour >= 10 ? hour : hour + 12;
  9579. } else if (meridiem === 'સાંજ') {
  9580. return hour + 12;
  9581. }
  9582. },
  9583. meridiem: function (hour, minute, isLower) {
  9584. if (hour < 4) {
  9585. return 'રાત';
  9586. } else if (hour < 10) {
  9587. return 'સવાર';
  9588. } else if (hour < 17) {
  9589. return 'બપોર';
  9590. } else if (hour < 20) {
  9591. return 'સાંજ';
  9592. } else {
  9593. return 'રાત';
  9594. }
  9595. },
  9596. week: {
  9597. dow: 0, // Sunday is the first day of the week.
  9598. doy: 6 // The week that contains Jan 1st is the first week of the year.
  9599. }
  9600. });
  9601. return gu;
  9602. })));
  9603. /***/ }),
  9604. /***/ "./node_modules/moment/locale/he.js":
  9605. /*!******************************************!*\
  9606. !*** ./node_modules/moment/locale/he.js ***!
  9607. \******************************************/
  9608. /*! no static exports found */
  9609. /***/ (function(module, exports, __webpack_require__) {
  9610. //! moment.js locale configuration
  9611. //! locale : Hebrew [he]
  9612. //! author : Tomer Cohen : https://github.com/tomer
  9613. //! author : Moshe Simantov : https://github.com/DevelopmentIL
  9614. //! author : Tal Ater : https://github.com/TalAter
  9615. ;(function (global, factory) {
  9616. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  9617. undefined
  9618. }(this, (function (moment) { 'use strict';
  9619. var he = moment.defineLocale('he', {
  9620. months : 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),
  9621. monthsShort : 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
  9622. weekdays : 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
  9623. weekdaysShort : 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
  9624. weekdaysMin : 'א_ב_ג_ד_ה_ו_ש'.split('_'),
  9625. longDateFormat : {
  9626. LT : 'HH:mm',
  9627. LTS : 'HH:mm:ss',
  9628. L : 'DD/MM/YYYY',
  9629. LL : 'D [ב]MMMM YYYY',
  9630. LLL : 'D [ב]MMMM YYYY HH:mm',
  9631. LLLL : 'dddd, D [ב]MMMM YYYY HH:mm',
  9632. l : 'D/M/YYYY',
  9633. ll : 'D MMM YYYY',
  9634. lll : 'D MMM YYYY HH:mm',
  9635. llll : 'ddd, D MMM YYYY HH:mm'
  9636. },
  9637. calendar : {
  9638. sameDay : '[היום ב־]LT',
  9639. nextDay : '[מחר ב־]LT',
  9640. nextWeek : 'dddd [בשעה] LT',
  9641. lastDay : '[אתמול ב־]LT',
  9642. lastWeek : '[ביום] dddd [האחרון בשעה] LT',
  9643. sameElse : 'L'
  9644. },
  9645. relativeTime : {
  9646. future : 'בעוד %s',
  9647. past : 'לפני %s',
  9648. s : 'מספר שניות',
  9649. m : 'דקה',
  9650. mm : '%d דקות',
  9651. h : 'שעה',
  9652. hh : function (number) {
  9653. if (number === 2) {
  9654. return 'שעתיים';
  9655. }
  9656. return number + ' שעות';
  9657. },
  9658. d : 'יום',
  9659. dd : function (number) {
  9660. if (number === 2) {
  9661. return 'יומיים';
  9662. }
  9663. return number + ' ימים';
  9664. },
  9665. M : 'חודש',
  9666. MM : function (number) {
  9667. if (number === 2) {
  9668. return 'חודשיים';
  9669. }
  9670. return number + ' חודשים';
  9671. },
  9672. y : 'שנה',
  9673. yy : function (number) {
  9674. if (number === 2) {
  9675. return 'שנתיים';
  9676. } else if (number % 10 === 0 && number !== 10) {
  9677. return number + ' שנה';
  9678. }
  9679. return number + ' שנים';
  9680. }
  9681. },
  9682. meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
  9683. isPM : function (input) {
  9684. return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
  9685. },
  9686. meridiem : function (hour, minute, isLower) {
  9687. if (hour < 5) {
  9688. return 'לפנות בוקר';
  9689. } else if (hour < 10) {
  9690. return 'בבוקר';
  9691. } else if (hour < 12) {
  9692. return isLower ? 'לפנה"צ' : 'לפני הצהריים';
  9693. } else if (hour < 18) {
  9694. return isLower ? 'אחה"צ' : 'אחרי הצהריים';
  9695. } else {
  9696. return 'בערב';
  9697. }
  9698. }
  9699. });
  9700. return he;
  9701. })));
  9702. /***/ }),
  9703. /***/ "./node_modules/moment/locale/hi.js":
  9704. /*!******************************************!*\
  9705. !*** ./node_modules/moment/locale/hi.js ***!
  9706. \******************************************/
  9707. /*! no static exports found */
  9708. /***/ (function(module, exports, __webpack_require__) {
  9709. //! moment.js locale configuration
  9710. //! locale : Hindi [hi]
  9711. //! author : Mayank Singhal : https://github.com/mayanksinghal
  9712. ;(function (global, factory) {
  9713. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  9714. undefined
  9715. }(this, (function (moment) { 'use strict';
  9716. var symbolMap = {
  9717. '1': '१',
  9718. '2': '२',
  9719. '3': '३',
  9720. '4': '४',
  9721. '5': '५',
  9722. '6': '६',
  9723. '7': '७',
  9724. '8': '८',
  9725. '9': '९',
  9726. '0': '०'
  9727. };
  9728. var numberMap = {
  9729. '१': '1',
  9730. '२': '2',
  9731. '३': '3',
  9732. '४': '4',
  9733. '५': '5',
  9734. '६': '6',
  9735. '७': '7',
  9736. '८': '8',
  9737. '९': '9',
  9738. '०': '0'
  9739. };
  9740. var hi = moment.defineLocale('hi', {
  9741. months : 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'),
  9742. monthsShort : 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'),
  9743. monthsParseExact: true,
  9744. weekdays : 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  9745. weekdaysShort : 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'),
  9746. weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
  9747. longDateFormat : {
  9748. LT : 'A h:mm बजे',
  9749. LTS : 'A h:mm:ss बजे',
  9750. L : 'DD/MM/YYYY',
  9751. LL : 'D MMMM YYYY',
  9752. LLL : 'D MMMM YYYY, A h:mm बजे',
  9753. LLLL : 'dddd, D MMMM YYYY, A h:mm बजे'
  9754. },
  9755. calendar : {
  9756. sameDay : '[आज] LT',
  9757. nextDay : '[कल] LT',
  9758. nextWeek : 'dddd, LT',
  9759. lastDay : '[कल] LT',
  9760. lastWeek : '[पिछले] dddd, LT',
  9761. sameElse : 'L'
  9762. },
  9763. relativeTime : {
  9764. future : '%s में',
  9765. past : '%s पहले',
  9766. s : 'कुछ ही क्षण',
  9767. m : 'एक मिनट',
  9768. mm : '%d मिनट',
  9769. h : 'एक घंटा',
  9770. hh : '%d घंटे',
  9771. d : 'एक दिन',
  9772. dd : '%d दिन',
  9773. M : 'एक महीने',
  9774. MM : '%d महीने',
  9775. y : 'एक वर्ष',
  9776. yy : '%d वर्ष'
  9777. },
  9778. preparse: function (string) {
  9779. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  9780. return numberMap[match];
  9781. });
  9782. },
  9783. postformat: function (string) {
  9784. return string.replace(/\d/g, function (match) {
  9785. return symbolMap[match];
  9786. });
  9787. },
  9788. // Hindi notation for meridiems are quite fuzzy in practice. While there exists
  9789. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi.
  9790. meridiemParse: /रात|सुबह|दोपहर|शाम/,
  9791. meridiemHour : function (hour, meridiem) {
  9792. if (hour === 12) {
  9793. hour = 0;
  9794. }
  9795. if (meridiem === 'रात') {
  9796. return hour < 4 ? hour : hour + 12;
  9797. } else if (meridiem === 'सुबह') {
  9798. return hour;
  9799. } else if (meridiem === 'दोपहर') {
  9800. return hour >= 10 ? hour : hour + 12;
  9801. } else if (meridiem === 'शाम') {
  9802. return hour + 12;
  9803. }
  9804. },
  9805. meridiem : function (hour, minute, isLower) {
  9806. if (hour < 4) {
  9807. return 'रात';
  9808. } else if (hour < 10) {
  9809. return 'सुबह';
  9810. } else if (hour < 17) {
  9811. return 'दोपहर';
  9812. } else if (hour < 20) {
  9813. return 'शाम';
  9814. } else {
  9815. return 'रात';
  9816. }
  9817. },
  9818. week : {
  9819. dow : 0, // Sunday is the first day of the week.
  9820. doy : 6 // The week that contains Jan 1st is the first week of the year.
  9821. }
  9822. });
  9823. return hi;
  9824. })));
  9825. /***/ }),
  9826. /***/ "./node_modules/moment/locale/hr.js":
  9827. /*!******************************************!*\
  9828. !*** ./node_modules/moment/locale/hr.js ***!
  9829. \******************************************/
  9830. /*! no static exports found */
  9831. /***/ (function(module, exports, __webpack_require__) {
  9832. //! moment.js locale configuration
  9833. //! locale : Croatian [hr]
  9834. //! author : Bojan Marković : https://github.com/bmarkovic
  9835. ;(function (global, factory) {
  9836. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  9837. undefined
  9838. }(this, (function (moment) { 'use strict';
  9839. function translate(number, withoutSuffix, key) {
  9840. var result = number + ' ';
  9841. switch (key) {
  9842. case 'm':
  9843. return withoutSuffix ? 'jedna minuta' : 'jedne minute';
  9844. case 'mm':
  9845. if (number === 1) {
  9846. result += 'minuta';
  9847. } else if (number === 2 || number === 3 || number === 4) {
  9848. result += 'minute';
  9849. } else {
  9850. result += 'minuta';
  9851. }
  9852. return result;
  9853. case 'h':
  9854. return withoutSuffix ? 'jedan sat' : 'jednog sata';
  9855. case 'hh':
  9856. if (number === 1) {
  9857. result += 'sat';
  9858. } else if (number === 2 || number === 3 || number === 4) {
  9859. result += 'sata';
  9860. } else {
  9861. result += 'sati';
  9862. }
  9863. return result;
  9864. case 'dd':
  9865. if (number === 1) {
  9866. result += 'dan';
  9867. } else {
  9868. result += 'dana';
  9869. }
  9870. return result;
  9871. case 'MM':
  9872. if (number === 1) {
  9873. result += 'mjesec';
  9874. } else if (number === 2 || number === 3 || number === 4) {
  9875. result += 'mjeseca';
  9876. } else {
  9877. result += 'mjeseci';
  9878. }
  9879. return result;
  9880. case 'yy':
  9881. if (number === 1) {
  9882. result += 'godina';
  9883. } else if (number === 2 || number === 3 || number === 4) {
  9884. result += 'godine';
  9885. } else {
  9886. result += 'godina';
  9887. }
  9888. return result;
  9889. }
  9890. }
  9891. var hr = moment.defineLocale('hr', {
  9892. months : {
  9893. format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split('_'),
  9894. standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_')
  9895. },
  9896. monthsShort : 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'),
  9897. monthsParseExact: true,
  9898. weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  9899. weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  9900. weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
  9901. weekdaysParseExact : true,
  9902. longDateFormat : {
  9903. LT : 'H:mm',
  9904. LTS : 'H:mm:ss',
  9905. L : 'DD.MM.YYYY',
  9906. LL : 'D. MMMM YYYY',
  9907. LLL : 'D. MMMM YYYY H:mm',
  9908. LLLL : 'dddd, D. MMMM YYYY H:mm'
  9909. },
  9910. calendar : {
  9911. sameDay : '[danas u] LT',
  9912. nextDay : '[sutra u] LT',
  9913. nextWeek : function () {
  9914. switch (this.day()) {
  9915. case 0:
  9916. return '[u] [nedjelju] [u] LT';
  9917. case 3:
  9918. return '[u] [srijedu] [u] LT';
  9919. case 6:
  9920. return '[u] [subotu] [u] LT';
  9921. case 1:
  9922. case 2:
  9923. case 4:
  9924. case 5:
  9925. return '[u] dddd [u] LT';
  9926. }
  9927. },
  9928. lastDay : '[jučer u] LT',
  9929. lastWeek : function () {
  9930. switch (this.day()) {
  9931. case 0:
  9932. case 3:
  9933. return '[prošlu] dddd [u] LT';
  9934. case 6:
  9935. return '[prošle] [subote] [u] LT';
  9936. case 1:
  9937. case 2:
  9938. case 4:
  9939. case 5:
  9940. return '[prošli] dddd [u] LT';
  9941. }
  9942. },
  9943. sameElse : 'L'
  9944. },
  9945. relativeTime : {
  9946. future : 'za %s',
  9947. past : 'prije %s',
  9948. s : 'par sekundi',
  9949. m : translate,
  9950. mm : translate,
  9951. h : translate,
  9952. hh : translate,
  9953. d : 'dan',
  9954. dd : translate,
  9955. M : 'mjesec',
  9956. MM : translate,
  9957. y : 'godinu',
  9958. yy : translate
  9959. },
  9960. dayOfMonthOrdinalParse: /\d{1,2}\./,
  9961. ordinal : '%d.',
  9962. week : {
  9963. dow : 1, // Monday is the first day of the week.
  9964. doy : 7 // The week that contains Jan 1st is the first week of the year.
  9965. }
  9966. });
  9967. return hr;
  9968. })));
  9969. /***/ }),
  9970. /***/ "./node_modules/moment/locale/hu.js":
  9971. /*!******************************************!*\
  9972. !*** ./node_modules/moment/locale/hu.js ***!
  9973. \******************************************/
  9974. /*! no static exports found */
  9975. /***/ (function(module, exports, __webpack_require__) {
  9976. //! moment.js locale configuration
  9977. //! locale : Hungarian [hu]
  9978. //! author : Adam Brunner : https://github.com/adambrunner
  9979. ;(function (global, factory) {
  9980. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  9981. undefined
  9982. }(this, (function (moment) { 'use strict';
  9983. var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
  9984. function translate(number, withoutSuffix, key, isFuture) {
  9985. var num = number;
  9986. switch (key) {
  9987. case 's':
  9988. return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce';
  9989. case 'm':
  9990. return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
  9991. case 'mm':
  9992. return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
  9993. case 'h':
  9994. return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
  9995. case 'hh':
  9996. return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
  9997. case 'd':
  9998. return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
  9999. case 'dd':
  10000. return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
  10001. case 'M':
  10002. return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  10003. case 'MM':
  10004. return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
  10005. case 'y':
  10006. return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
  10007. case 'yy':
  10008. return num + (isFuture || withoutSuffix ? ' év' : ' éve');
  10009. }
  10010. return '';
  10011. }
  10012. function week(isFuture) {
  10013. return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]';
  10014. }
  10015. var hu = moment.defineLocale('hu', {
  10016. months : 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'),
  10017. monthsShort : 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'),
  10018. weekdays : 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
  10019. weekdaysShort : 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
  10020. weekdaysMin : 'v_h_k_sze_cs_p_szo'.split('_'),
  10021. longDateFormat : {
  10022. LT : 'H:mm',
  10023. LTS : 'H:mm:ss',
  10024. L : 'YYYY.MM.DD.',
  10025. LL : 'YYYY. MMMM D.',
  10026. LLL : 'YYYY. MMMM D. H:mm',
  10027. LLLL : 'YYYY. MMMM D., dddd H:mm'
  10028. },
  10029. meridiemParse: /de|du/i,
  10030. isPM: function (input) {
  10031. return input.charAt(1).toLowerCase() === 'u';
  10032. },
  10033. meridiem : function (hours, minutes, isLower) {
  10034. if (hours < 12) {
  10035. return isLower === true ? 'de' : 'DE';
  10036. } else {
  10037. return isLower === true ? 'du' : 'DU';
  10038. }
  10039. },
  10040. calendar : {
  10041. sameDay : '[ma] LT[-kor]',
  10042. nextDay : '[holnap] LT[-kor]',
  10043. nextWeek : function () {
  10044. return week.call(this, true);
  10045. },
  10046. lastDay : '[tegnap] LT[-kor]',
  10047. lastWeek : function () {
  10048. return week.call(this, false);
  10049. },
  10050. sameElse : 'L'
  10051. },
  10052. relativeTime : {
  10053. future : '%s múlva',
  10054. past : '%s',
  10055. s : translate,
  10056. m : translate,
  10057. mm : translate,
  10058. h : translate,
  10059. hh : translate,
  10060. d : translate,
  10061. dd : translate,
  10062. M : translate,
  10063. MM : translate,
  10064. y : translate,
  10065. yy : translate
  10066. },
  10067. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10068. ordinal : '%d.',
  10069. week : {
  10070. dow : 1, // Monday is the first day of the week.
  10071. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10072. }
  10073. });
  10074. return hu;
  10075. })));
  10076. /***/ }),
  10077. /***/ "./node_modules/moment/locale/hy-am.js":
  10078. /*!*********************************************!*\
  10079. !*** ./node_modules/moment/locale/hy-am.js ***!
  10080. \*********************************************/
  10081. /*! no static exports found */
  10082. /***/ (function(module, exports, __webpack_require__) {
  10083. //! moment.js locale configuration
  10084. //! locale : Armenian [hy-am]
  10085. //! author : Armendarabyan : https://github.com/armendarabyan
  10086. ;(function (global, factory) {
  10087. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  10088. undefined
  10089. }(this, (function (moment) { 'use strict';
  10090. var hyAm = moment.defineLocale('hy-am', {
  10091. months : {
  10092. format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_'),
  10093. standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_')
  10094. },
  10095. monthsShort : 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
  10096. weekdays : 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_'),
  10097. weekdaysShort : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  10098. weekdaysMin : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
  10099. longDateFormat : {
  10100. LT : 'HH:mm',
  10101. LTS : 'HH:mm:ss',
  10102. L : 'DD.MM.YYYY',
  10103. LL : 'D MMMM YYYY թ.',
  10104. LLL : 'D MMMM YYYY թ., HH:mm',
  10105. LLLL : 'dddd, D MMMM YYYY թ., HH:mm'
  10106. },
  10107. calendar : {
  10108. sameDay: '[այսօր] LT',
  10109. nextDay: '[վաղը] LT',
  10110. lastDay: '[երեկ] LT',
  10111. nextWeek: function () {
  10112. return 'dddd [օրը ժամը] LT';
  10113. },
  10114. lastWeek: function () {
  10115. return '[անցած] dddd [օրը ժամը] LT';
  10116. },
  10117. sameElse: 'L'
  10118. },
  10119. relativeTime : {
  10120. future : '%s հետո',
  10121. past : '%s առաջ',
  10122. s : 'մի քանի վայրկյան',
  10123. m : 'րոպե',
  10124. mm : '%d րոպե',
  10125. h : 'ժամ',
  10126. hh : '%d ժամ',
  10127. d : 'օր',
  10128. dd : '%d օր',
  10129. M : 'ամիս',
  10130. MM : '%d ամիս',
  10131. y : 'տարի',
  10132. yy : '%d տարի'
  10133. },
  10134. meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
  10135. isPM: function (input) {
  10136. return /^(ցերեկվա|երեկոյան)$/.test(input);
  10137. },
  10138. meridiem : function (hour) {
  10139. if (hour < 4) {
  10140. return 'գիշերվա';
  10141. } else if (hour < 12) {
  10142. return 'առավոտվա';
  10143. } else if (hour < 17) {
  10144. return 'ցերեկվա';
  10145. } else {
  10146. return 'երեկոյան';
  10147. }
  10148. },
  10149. dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
  10150. ordinal: function (number, period) {
  10151. switch (period) {
  10152. case 'DDD':
  10153. case 'w':
  10154. case 'W':
  10155. case 'DDDo':
  10156. if (number === 1) {
  10157. return number + '-ին';
  10158. }
  10159. return number + '-րդ';
  10160. default:
  10161. return number;
  10162. }
  10163. },
  10164. week : {
  10165. dow : 1, // Monday is the first day of the week.
  10166. doy : 7 // The week that contains Jan 1st is the first week of the year.
  10167. }
  10168. });
  10169. return hyAm;
  10170. })));
  10171. /***/ }),
  10172. /***/ "./node_modules/moment/locale/id.js":
  10173. /*!******************************************!*\
  10174. !*** ./node_modules/moment/locale/id.js ***!
  10175. \******************************************/
  10176. /*! no static exports found */
  10177. /***/ (function(module, exports, __webpack_require__) {
  10178. //! moment.js locale configuration
  10179. //! locale : Indonesian [id]
  10180. //! author : Mohammad Satrio Utomo : https://github.com/tyok
  10181. //! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan
  10182. ;(function (global, factory) {
  10183. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  10184. undefined
  10185. }(this, (function (moment) { 'use strict';
  10186. var id = moment.defineLocale('id', {
  10187. months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),
  10188. monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des'.split('_'),
  10189. weekdays : 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
  10190. weekdaysShort : 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
  10191. weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
  10192. longDateFormat : {
  10193. LT : 'HH.mm',
  10194. LTS : 'HH.mm.ss',
  10195. L : 'DD/MM/YYYY',
  10196. LL : 'D MMMM YYYY',
  10197. LLL : 'D MMMM YYYY [pukul] HH.mm',
  10198. LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
  10199. },
  10200. meridiemParse: /pagi|siang|sore|malam/,
  10201. meridiemHour : function (hour, meridiem) {
  10202. if (hour === 12) {
  10203. hour = 0;
  10204. }
  10205. if (meridiem === 'pagi') {
  10206. return hour;
  10207. } else if (meridiem === 'siang') {
  10208. return hour >= 11 ? hour : hour + 12;
  10209. } else if (meridiem === 'sore' || meridiem === 'malam') {
  10210. return hour + 12;
  10211. }
  10212. },
  10213. meridiem : function (hours, minutes, isLower) {
  10214. if (hours < 11) {
  10215. return 'pagi';
  10216. } else if (hours < 15) {
  10217. return 'siang';
  10218. } else if (hours < 19) {
  10219. return 'sore';
  10220. } else {
  10221. return 'malam';
  10222. }
  10223. },
  10224. calendar : {
  10225. sameDay : '[Hari ini pukul] LT',
  10226. nextDay : '[Besok pukul] LT',
  10227. nextWeek : 'dddd [pukul] LT',
  10228. lastDay : '[Kemarin pukul] LT',
  10229. lastWeek : 'dddd [lalu pukul] LT',
  10230. sameElse : 'L'
  10231. },
  10232. relativeTime : {
  10233. future : 'dalam %s',
  10234. past : '%s yang lalu',
  10235. s : 'beberapa detik',
  10236. m : 'semenit',
  10237. mm : '%d menit',
  10238. h : 'sejam',
  10239. hh : '%d jam',
  10240. d : 'sehari',
  10241. dd : '%d hari',
  10242. M : 'sebulan',
  10243. MM : '%d bulan',
  10244. y : 'setahun',
  10245. yy : '%d tahun'
  10246. },
  10247. week : {
  10248. dow : 1, // Monday is the first day of the week.
  10249. doy : 7 // The week that contains Jan 1st is the first week of the year.
  10250. }
  10251. });
  10252. return id;
  10253. })));
  10254. /***/ }),
  10255. /***/ "./node_modules/moment/locale/is.js":
  10256. /*!******************************************!*\
  10257. !*** ./node_modules/moment/locale/is.js ***!
  10258. \******************************************/
  10259. /*! no static exports found */
  10260. /***/ (function(module, exports, __webpack_require__) {
  10261. //! moment.js locale configuration
  10262. //! locale : Icelandic [is]
  10263. //! author : Hinrik Örn Sigurðsson : https://github.com/hinrik
  10264. ;(function (global, factory) {
  10265. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  10266. undefined
  10267. }(this, (function (moment) { 'use strict';
  10268. function plural(n) {
  10269. if (n % 100 === 11) {
  10270. return true;
  10271. } else if (n % 10 === 1) {
  10272. return false;
  10273. }
  10274. return true;
  10275. }
  10276. function translate(number, withoutSuffix, key, isFuture) {
  10277. var result = number + ' ';
  10278. switch (key) {
  10279. case 's':
  10280. return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum';
  10281. case 'm':
  10282. return withoutSuffix ? 'mínúta' : 'mínútu';
  10283. case 'mm':
  10284. if (plural(number)) {
  10285. return result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum');
  10286. } else if (withoutSuffix) {
  10287. return result + 'mínúta';
  10288. }
  10289. return result + 'mínútu';
  10290. case 'hh':
  10291. if (plural(number)) {
  10292. return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum');
  10293. }
  10294. return result + 'klukkustund';
  10295. case 'd':
  10296. if (withoutSuffix) {
  10297. return 'dagur';
  10298. }
  10299. return isFuture ? 'dag' : 'degi';
  10300. case 'dd':
  10301. if (plural(number)) {
  10302. if (withoutSuffix) {
  10303. return result + 'dagar';
  10304. }
  10305. return result + (isFuture ? 'daga' : 'dögum');
  10306. } else if (withoutSuffix) {
  10307. return result + 'dagur';
  10308. }
  10309. return result + (isFuture ? 'dag' : 'degi');
  10310. case 'M':
  10311. if (withoutSuffix) {
  10312. return 'mánuður';
  10313. }
  10314. return isFuture ? 'mánuð' : 'mánuði';
  10315. case 'MM':
  10316. if (plural(number)) {
  10317. if (withoutSuffix) {
  10318. return result + 'mánuðir';
  10319. }
  10320. return result + (isFuture ? 'mánuði' : 'mánuðum');
  10321. } else if (withoutSuffix) {
  10322. return result + 'mánuður';
  10323. }
  10324. return result + (isFuture ? 'mánuð' : 'mánuði');
  10325. case 'y':
  10326. return withoutSuffix || isFuture ? 'ár' : 'ári';
  10327. case 'yy':
  10328. if (plural(number)) {
  10329. return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
  10330. }
  10331. return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
  10332. }
  10333. }
  10334. var is = moment.defineLocale('is', {
  10335. months : 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'),
  10336. monthsShort : 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
  10337. weekdays : 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'),
  10338. weekdaysShort : 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
  10339. weekdaysMin : 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
  10340. longDateFormat : {
  10341. LT : 'H:mm',
  10342. LTS : 'H:mm:ss',
  10343. L : 'DD.MM.YYYY',
  10344. LL : 'D. MMMM YYYY',
  10345. LLL : 'D. MMMM YYYY [kl.] H:mm',
  10346. LLLL : 'dddd, D. MMMM YYYY [kl.] H:mm'
  10347. },
  10348. calendar : {
  10349. sameDay : '[í dag kl.] LT',
  10350. nextDay : '[á morgun kl.] LT',
  10351. nextWeek : 'dddd [kl.] LT',
  10352. lastDay : '[í gær kl.] LT',
  10353. lastWeek : '[síðasta] dddd [kl.] LT',
  10354. sameElse : 'L'
  10355. },
  10356. relativeTime : {
  10357. future : 'eftir %s',
  10358. past : 'fyrir %s síðan',
  10359. s : translate,
  10360. m : translate,
  10361. mm : translate,
  10362. h : 'klukkustund',
  10363. hh : translate,
  10364. d : translate,
  10365. dd : translate,
  10366. M : translate,
  10367. MM : translate,
  10368. y : translate,
  10369. yy : translate
  10370. },
  10371. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10372. ordinal : '%d.',
  10373. week : {
  10374. dow : 1, // Monday is the first day of the week.
  10375. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10376. }
  10377. });
  10378. return is;
  10379. })));
  10380. /***/ }),
  10381. /***/ "./node_modules/moment/locale/it.js":
  10382. /*!******************************************!*\
  10383. !*** ./node_modules/moment/locale/it.js ***!
  10384. \******************************************/
  10385. /*! no static exports found */
  10386. /***/ (function(module, exports, __webpack_require__) {
  10387. //! moment.js locale configuration
  10388. //! locale : Italian [it]
  10389. //! author : Lorenzo : https://github.com/aliem
  10390. //! author: Mattia Larentis: https://github.com/nostalgiaz
  10391. ;(function (global, factory) {
  10392. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  10393. undefined
  10394. }(this, (function (moment) { 'use strict';
  10395. var it = moment.defineLocale('it', {
  10396. months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
  10397. monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
  10398. weekdays : 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'),
  10399. weekdaysShort : 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
  10400. weekdaysMin : 'do_lu_ma_me_gi_ve_sa'.split('_'),
  10401. longDateFormat : {
  10402. LT : 'HH:mm',
  10403. LTS : 'HH:mm:ss',
  10404. L : 'DD/MM/YYYY',
  10405. LL : 'D MMMM YYYY',
  10406. LLL : 'D MMMM YYYY HH:mm',
  10407. LLLL : 'dddd, D MMMM YYYY HH:mm'
  10408. },
  10409. calendar : {
  10410. sameDay: '[Oggi alle] LT',
  10411. nextDay: '[Domani alle] LT',
  10412. nextWeek: 'dddd [alle] LT',
  10413. lastDay: '[Ieri alle] LT',
  10414. lastWeek: function () {
  10415. switch (this.day()) {
  10416. case 0:
  10417. return '[la scorsa] dddd [alle] LT';
  10418. default:
  10419. return '[lo scorso] dddd [alle] LT';
  10420. }
  10421. },
  10422. sameElse: 'L'
  10423. },
  10424. relativeTime : {
  10425. future : function (s) {
  10426. return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s;
  10427. },
  10428. past : '%s fa',
  10429. s : 'alcuni secondi',
  10430. m : 'un minuto',
  10431. mm : '%d minuti',
  10432. h : 'un\'ora',
  10433. hh : '%d ore',
  10434. d : 'un giorno',
  10435. dd : '%d giorni',
  10436. M : 'un mese',
  10437. MM : '%d mesi',
  10438. y : 'un anno',
  10439. yy : '%d anni'
  10440. },
  10441. dayOfMonthOrdinalParse : /\d{1,2}º/,
  10442. ordinal: '%dº',
  10443. week : {
  10444. dow : 1, // Monday is the first day of the week.
  10445. doy : 4 // The week that contains Jan 4th is the first week of the year.
  10446. }
  10447. });
  10448. return it;
  10449. })));
  10450. /***/ }),
  10451. /***/ "./node_modules/moment/locale/ja.js":
  10452. /*!******************************************!*\
  10453. !*** ./node_modules/moment/locale/ja.js ***!
  10454. \******************************************/
  10455. /*! no static exports found */
  10456. /***/ (function(module, exports, __webpack_require__) {
  10457. //! moment.js locale configuration
  10458. //! locale : Japanese [ja]
  10459. //! author : LI Long : https://github.com/baryon
  10460. ;(function (global, factory) {
  10461. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  10462. undefined
  10463. }(this, (function (moment) { 'use strict';
  10464. var ja = moment.defineLocale('ja', {
  10465. months : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  10466. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  10467. weekdays : '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
  10468. weekdaysShort : '日_月_火_水_木_金_土'.split('_'),
  10469. weekdaysMin : '日_月_火_水_木_金_土'.split('_'),
  10470. longDateFormat : {
  10471. LT : 'HH:mm',
  10472. LTS : 'HH:mm:ss',
  10473. L : 'YYYY/MM/DD',
  10474. LL : 'YYYY年M月D日',
  10475. LLL : 'YYYY年M月D日 HH:mm',
  10476. LLLL : 'YYYY年M月D日 HH:mm dddd',
  10477. l : 'YYYY/MM/DD',
  10478. ll : 'YYYY年M月D日',
  10479. lll : 'YYYY年M月D日 HH:mm',
  10480. llll : 'YYYY年M月D日 HH:mm dddd'
  10481. },
  10482. meridiemParse: /午前|午後/i,
  10483. isPM : function (input) {
  10484. return input === '午後';
  10485. },
  10486. meridiem : function (hour, minute, isLower) {
  10487. if (hour < 12) {
  10488. return '午前';
  10489. } else {
  10490. return '午後';
  10491. }
  10492. },
  10493. calendar : {
  10494. sameDay : '[今日] LT',
  10495. nextDay : '[明日] LT',
  10496. nextWeek : '[来週]dddd LT',
  10497. lastDay : '[昨日] LT',
  10498. lastWeek : '[前週]dddd LT',
  10499. sameElse : 'L'
  10500. },
  10501. dayOfMonthOrdinalParse : /\d{1,2}日/,
  10502. ordinal : function (number, period) {
  10503. switch (period) {
  10504. case 'd':
  10505. case 'D':
  10506. case 'DDD':
  10507. return number + '日';
  10508. default:
  10509. return number;
  10510. }
  10511. },
  10512. relativeTime : {
  10513. future : '%s後',
  10514. past : '%s前',
  10515. s : '数秒',
  10516. m : '1分',
  10517. mm : '%d分',
  10518. h : '1時間',
  10519. hh : '%d時間',
  10520. d : '1日',
  10521. dd : '%d日',
  10522. M : '1ヶ月',
  10523. MM : '%dヶ月',
  10524. y : '1年',
  10525. yy : '%d年'
  10526. }
  10527. });
  10528. return ja;
  10529. })));
  10530. /***/ }),
  10531. /***/ "./node_modules/moment/locale/jv.js":
  10532. /*!******************************************!*\
  10533. !*** ./node_modules/moment/locale/jv.js ***!
  10534. \******************************************/
  10535. /*! no static exports found */
  10536. /***/ (function(module, exports, __webpack_require__) {
  10537. //! moment.js locale configuration
  10538. //! locale : Javanese [jv]
  10539. //! author : Rony Lantip : https://github.com/lantip
  10540. //! reference: http://jv.wikipedia.org/wiki/Basa_Jawa
  10541. ;(function (global, factory) {
  10542. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  10543. undefined
  10544. }(this, (function (moment) { 'use strict';
  10545. var jv = moment.defineLocale('jv', {
  10546. months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split('_'),
  10547. monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
  10548. weekdays : 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
  10549. weekdaysShort : 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
  10550. weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
  10551. longDateFormat : {
  10552. LT : 'HH.mm',
  10553. LTS : 'HH.mm.ss',
  10554. L : 'DD/MM/YYYY',
  10555. LL : 'D MMMM YYYY',
  10556. LLL : 'D MMMM YYYY [pukul] HH.mm',
  10557. LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
  10558. },
  10559. meridiemParse: /enjing|siyang|sonten|ndalu/,
  10560. meridiemHour : function (hour, meridiem) {
  10561. if (hour === 12) {
  10562. hour = 0;
  10563. }
  10564. if (meridiem === 'enjing') {
  10565. return hour;
  10566. } else if (meridiem === 'siyang') {
  10567. return hour >= 11 ? hour : hour + 12;
  10568. } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
  10569. return hour + 12;
  10570. }
  10571. },
  10572. meridiem : function (hours, minutes, isLower) {
  10573. if (hours < 11) {
  10574. return 'enjing';
  10575. } else if (hours < 15) {
  10576. return 'siyang';
  10577. } else if (hours < 19) {
  10578. return 'sonten';
  10579. } else {
  10580. return 'ndalu';
  10581. }
  10582. },
  10583. calendar : {
  10584. sameDay : '[Dinten puniko pukul] LT',
  10585. nextDay : '[Mbenjang pukul] LT',
  10586. nextWeek : 'dddd [pukul] LT',
  10587. lastDay : '[Kala wingi pukul] LT',
  10588. lastWeek : 'dddd [kepengker pukul] LT',
  10589. sameElse : 'L'
  10590. },
  10591. relativeTime : {
  10592. future : 'wonten ing %s',
  10593. past : '%s ingkang kepengker',
  10594. s : 'sawetawis detik',
  10595. m : 'setunggal menit',
  10596. mm : '%d menit',
  10597. h : 'setunggal jam',
  10598. hh : '%d jam',
  10599. d : 'sedinten',
  10600. dd : '%d dinten',
  10601. M : 'sewulan',
  10602. MM : '%d wulan',
  10603. y : 'setaun',
  10604. yy : '%d taun'
  10605. },
  10606. week : {
  10607. dow : 1, // Monday is the first day of the week.
  10608. doy : 7 // The week that contains Jan 1st is the first week of the year.
  10609. }
  10610. });
  10611. return jv;
  10612. })));
  10613. /***/ }),
  10614. /***/ "./node_modules/moment/locale/ka.js":
  10615. /*!******************************************!*\
  10616. !*** ./node_modules/moment/locale/ka.js ***!
  10617. \******************************************/
  10618. /*! no static exports found */
  10619. /***/ (function(module, exports, __webpack_require__) {
  10620. //! moment.js locale configuration
  10621. //! locale : Georgian [ka]
  10622. //! author : Irakli Janiashvili : https://github.com/irakli-janiashvili
  10623. ;(function (global, factory) {
  10624. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  10625. undefined
  10626. }(this, (function (moment) { 'use strict';
  10627. var ka = moment.defineLocale('ka', {
  10628. months : {
  10629. standalone: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'),
  10630. format: 'იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს'.split('_')
  10631. },
  10632. monthsShort : 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'),
  10633. weekdays : {
  10634. standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'),
  10635. format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_'),
  10636. isFormat: /(წინა|შემდეგ)/
  10637. },
  10638. weekdaysShort : 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'),
  10639. weekdaysMin : 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'),
  10640. longDateFormat : {
  10641. LT : 'h:mm A',
  10642. LTS : 'h:mm:ss A',
  10643. L : 'DD/MM/YYYY',
  10644. LL : 'D MMMM YYYY',
  10645. LLL : 'D MMMM YYYY h:mm A',
  10646. LLLL : 'dddd, D MMMM YYYY h:mm A'
  10647. },
  10648. calendar : {
  10649. sameDay : '[დღეს] LT[-ზე]',
  10650. nextDay : '[ხვალ] LT[-ზე]',
  10651. lastDay : '[გუშინ] LT[-ზე]',
  10652. nextWeek : '[შემდეგ] dddd LT[-ზე]',
  10653. lastWeek : '[წინა] dddd LT-ზე',
  10654. sameElse : 'L'
  10655. },
  10656. relativeTime : {
  10657. future : function (s) {
  10658. return (/(წამი|წუთი|საათი|წელი)/).test(s) ?
  10659. s.replace(/ი$/, 'ში') :
  10660. s + 'ში';
  10661. },
  10662. past : function (s) {
  10663. if ((/(წამი|წუთი|საათი|დღე|თვე)/).test(s)) {
  10664. return s.replace(/(ი|ე)$/, 'ის უკან');
  10665. }
  10666. if ((/წელი/).test(s)) {
  10667. return s.replace(/წელი$/, 'წლის უკან');
  10668. }
  10669. },
  10670. s : 'რამდენიმე წამი',
  10671. m : 'წუთი',
  10672. mm : '%d წუთი',
  10673. h : 'საათი',
  10674. hh : '%d საათი',
  10675. d : 'დღე',
  10676. dd : '%d დღე',
  10677. M : 'თვე',
  10678. MM : '%d თვე',
  10679. y : 'წელი',
  10680. yy : '%d წელი'
  10681. },
  10682. dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
  10683. ordinal : function (number) {
  10684. if (number === 0) {
  10685. return number;
  10686. }
  10687. if (number === 1) {
  10688. return number + '-ლი';
  10689. }
  10690. if ((number < 20) || (number <= 100 && (number % 20 === 0)) || (number % 100 === 0)) {
  10691. return 'მე-' + number;
  10692. }
  10693. return number + '-ე';
  10694. },
  10695. week : {
  10696. dow : 1,
  10697. doy : 7
  10698. }
  10699. });
  10700. return ka;
  10701. })));
  10702. /***/ }),
  10703. /***/ "./node_modules/moment/locale/kk.js":
  10704. /*!******************************************!*\
  10705. !*** ./node_modules/moment/locale/kk.js ***!
  10706. \******************************************/
  10707. /*! no static exports found */
  10708. /***/ (function(module, exports, __webpack_require__) {
  10709. //! moment.js locale configuration
  10710. //! locale : Kazakh [kk]
  10711. //! authors : Nurlan Rakhimzhanov : https://github.com/nurlan
  10712. ;(function (global, factory) {
  10713. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  10714. undefined
  10715. }(this, (function (moment) { 'use strict';
  10716. var suffixes = {
  10717. 0: '-ші',
  10718. 1: '-ші',
  10719. 2: '-ші',
  10720. 3: '-ші',
  10721. 4: '-ші',
  10722. 5: '-ші',
  10723. 6: '-шы',
  10724. 7: '-ші',
  10725. 8: '-ші',
  10726. 9: '-шы',
  10727. 10: '-шы',
  10728. 20: '-шы',
  10729. 30: '-шы',
  10730. 40: '-шы',
  10731. 50: '-ші',
  10732. 60: '-шы',
  10733. 70: '-ші',
  10734. 80: '-ші',
  10735. 90: '-шы',
  10736. 100: '-ші'
  10737. };
  10738. var kk = moment.defineLocale('kk', {
  10739. months : 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split('_'),
  10740. monthsShort : 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split('_'),
  10741. weekdays : 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split('_'),
  10742. weekdaysShort : 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'),
  10743. weekdaysMin : 'жк_дй_сй_ср_бй_жм_сн'.split('_'),
  10744. longDateFormat : {
  10745. LT : 'HH:mm',
  10746. LTS : 'HH:mm:ss',
  10747. L : 'DD.MM.YYYY',
  10748. LL : 'D MMMM YYYY',
  10749. LLL : 'D MMMM YYYY HH:mm',
  10750. LLLL : 'dddd, D MMMM YYYY HH:mm'
  10751. },
  10752. calendar : {
  10753. sameDay : '[Бүгін сағат] LT',
  10754. nextDay : '[Ертең сағат] LT',
  10755. nextWeek : 'dddd [сағат] LT',
  10756. lastDay : '[Кеше сағат] LT',
  10757. lastWeek : '[Өткен аптаның] dddd [сағат] LT',
  10758. sameElse : 'L'
  10759. },
  10760. relativeTime : {
  10761. future : '%s ішінде',
  10762. past : '%s бұрын',
  10763. s : 'бірнеше секунд',
  10764. m : 'бір минут',
  10765. mm : '%d минут',
  10766. h : 'бір сағат',
  10767. hh : '%d сағат',
  10768. d : 'бір күн',
  10769. dd : '%d күн',
  10770. M : 'бір ай',
  10771. MM : '%d ай',
  10772. y : 'бір жыл',
  10773. yy : '%d жыл'
  10774. },
  10775. dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/,
  10776. ordinal : function (number) {
  10777. var a = number % 10,
  10778. b = number >= 100 ? 100 : null;
  10779. return number + (suffixes[number] || suffixes[a] || suffixes[b]);
  10780. },
  10781. week : {
  10782. dow : 1, // Monday is the first day of the week.
  10783. doy : 7 // The week that contains Jan 1st is the first week of the year.
  10784. }
  10785. });
  10786. return kk;
  10787. })));
  10788. /***/ }),
  10789. /***/ "./node_modules/moment/locale/km.js":
  10790. /*!******************************************!*\
  10791. !*** ./node_modules/moment/locale/km.js ***!
  10792. \******************************************/
  10793. /*! no static exports found */
  10794. /***/ (function(module, exports, __webpack_require__) {
  10795. //! moment.js locale configuration
  10796. //! locale : Cambodian [km]
  10797. //! author : Kruy Vanna : https://github.com/kruyvanna
  10798. ;(function (global, factory) {
  10799. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  10800. undefined
  10801. }(this, (function (moment) { 'use strict';
  10802. var km = moment.defineLocale('km', {
  10803. months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
  10804. monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'),
  10805. weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  10806. weekdaysShort: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  10807. weekdaysMin: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'),
  10808. longDateFormat: {
  10809. LT: 'HH:mm',
  10810. LTS : 'HH:mm:ss',
  10811. L: 'DD/MM/YYYY',
  10812. LL: 'D MMMM YYYY',
  10813. LLL: 'D MMMM YYYY HH:mm',
  10814. LLLL: 'dddd, D MMMM YYYY HH:mm'
  10815. },
  10816. calendar: {
  10817. sameDay: '[ថ្ងៃនេះ ម៉ោង] LT',
  10818. nextDay: '[ស្អែក ម៉ោង] LT',
  10819. nextWeek: 'dddd [ម៉ោង] LT',
  10820. lastDay: '[ម្សិលមិញ ម៉ោង] LT',
  10821. lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT',
  10822. sameElse: 'L'
  10823. },
  10824. relativeTime: {
  10825. future: '%sទៀត',
  10826. past: '%sមុន',
  10827. s: 'ប៉ុន្មានវិនាទី',
  10828. m: 'មួយនាទី',
  10829. mm: '%d នាទី',
  10830. h: 'មួយម៉ោង',
  10831. hh: '%d ម៉ោង',
  10832. d: 'មួយថ្ងៃ',
  10833. dd: '%d ថ្ងៃ',
  10834. M: 'មួយខែ',
  10835. MM: '%d ខែ',
  10836. y: 'មួយឆ្នាំ',
  10837. yy: '%d ឆ្នាំ'
  10838. },
  10839. week: {
  10840. dow: 1, // Monday is the first day of the week.
  10841. doy: 4 // The week that contains Jan 4th is the first week of the year.
  10842. }
  10843. });
  10844. return km;
  10845. })));
  10846. /***/ }),
  10847. /***/ "./node_modules/moment/locale/kn.js":
  10848. /*!******************************************!*\
  10849. !*** ./node_modules/moment/locale/kn.js ***!
  10850. \******************************************/
  10851. /*! no static exports found */
  10852. /***/ (function(module, exports, __webpack_require__) {
  10853. //! moment.js locale configuration
  10854. //! locale : Kannada [kn]
  10855. //! author : Rajeev Naik : https://github.com/rajeevnaikte
  10856. ;(function (global, factory) {
  10857. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  10858. undefined
  10859. }(this, (function (moment) { 'use strict';
  10860. var symbolMap = {
  10861. '1': '೧',
  10862. '2': '೨',
  10863. '3': '೩',
  10864. '4': '೪',
  10865. '5': '೫',
  10866. '6': '೬',
  10867. '7': '೭',
  10868. '8': '೮',
  10869. '9': '೯',
  10870. '0': '೦'
  10871. };
  10872. var numberMap = {
  10873. '೧': '1',
  10874. '೨': '2',
  10875. '೩': '3',
  10876. '೪': '4',
  10877. '೫': '5',
  10878. '೬': '6',
  10879. '೭': '7',
  10880. '೮': '8',
  10881. '೯': '9',
  10882. '೦': '0'
  10883. };
  10884. var kn = moment.defineLocale('kn', {
  10885. months : 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split('_'),
  10886. monthsShort : 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬ_ಅಕ್ಟೋಬ_ನವೆಂಬ_ಡಿಸೆಂಬ'.split('_'),
  10887. monthsParseExact: true,
  10888. weekdays : 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split('_'),
  10889. weekdaysShort : 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'),
  10890. weekdaysMin : 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'),
  10891. longDateFormat : {
  10892. LT : 'A h:mm',
  10893. LTS : 'A h:mm:ss',
  10894. L : 'DD/MM/YYYY',
  10895. LL : 'D MMMM YYYY',
  10896. LLL : 'D MMMM YYYY, A h:mm',
  10897. LLLL : 'dddd, D MMMM YYYY, A h:mm'
  10898. },
  10899. calendar : {
  10900. sameDay : '[ಇಂದು] LT',
  10901. nextDay : '[ನಾಳೆ] LT',
  10902. nextWeek : 'dddd, LT',
  10903. lastDay : '[ನಿನ್ನೆ] LT',
  10904. lastWeek : '[ಕೊನೆಯ] dddd, LT',
  10905. sameElse : 'L'
  10906. },
  10907. relativeTime : {
  10908. future : '%s ನಂತರ',
  10909. past : '%s ಹಿಂದೆ',
  10910. s : 'ಕೆಲವು ಕ್ಷಣಗಳು',
  10911. m : 'ಒಂದು ನಿಮಿಷ',
  10912. mm : '%d ನಿಮಿಷ',
  10913. h : 'ಒಂದು ಗಂಟೆ',
  10914. hh : '%d ಗಂಟೆ',
  10915. d : 'ಒಂದು ದಿನ',
  10916. dd : '%d ದಿನ',
  10917. M : 'ಒಂದು ತಿಂಗಳು',
  10918. MM : '%d ತಿಂಗಳು',
  10919. y : 'ಒಂದು ವರ್ಷ',
  10920. yy : '%d ವರ್ಷ'
  10921. },
  10922. preparse: function (string) {
  10923. return string.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (match) {
  10924. return numberMap[match];
  10925. });
  10926. },
  10927. postformat: function (string) {
  10928. return string.replace(/\d/g, function (match) {
  10929. return symbolMap[match];
  10930. });
  10931. },
  10932. meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
  10933. meridiemHour : function (hour, meridiem) {
  10934. if (hour === 12) {
  10935. hour = 0;
  10936. }
  10937. if (meridiem === 'ರಾತ್ರಿ') {
  10938. return hour < 4 ? hour : hour + 12;
  10939. } else if (meridiem === 'ಬೆಳಿಗ್ಗೆ') {
  10940. return hour;
  10941. } else if (meridiem === 'ಮಧ್ಯಾಹ್ನ') {
  10942. return hour >= 10 ? hour : hour + 12;
  10943. } else if (meridiem === 'ಸಂಜೆ') {
  10944. return hour + 12;
  10945. }
  10946. },
  10947. meridiem : function (hour, minute, isLower) {
  10948. if (hour < 4) {
  10949. return 'ರಾತ್ರಿ';
  10950. } else if (hour < 10) {
  10951. return 'ಬೆಳಿಗ್ಗೆ';
  10952. } else if (hour < 17) {
  10953. return 'ಮಧ್ಯಾಹ್ನ';
  10954. } else if (hour < 20) {
  10955. return 'ಸಂಜೆ';
  10956. } else {
  10957. return 'ರಾತ್ರಿ';
  10958. }
  10959. },
  10960. dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
  10961. ordinal : function (number) {
  10962. return number + 'ನೇ';
  10963. },
  10964. week : {
  10965. dow : 0, // Sunday is the first day of the week.
  10966. doy : 6 // The week that contains Jan 1st is the first week of the year.
  10967. }
  10968. });
  10969. return kn;
  10970. })));
  10971. /***/ }),
  10972. /***/ "./node_modules/moment/locale/ko.js":
  10973. /*!******************************************!*\
  10974. !*** ./node_modules/moment/locale/ko.js ***!
  10975. \******************************************/
  10976. /*! no static exports found */
  10977. /***/ (function(module, exports, __webpack_require__) {
  10978. //! moment.js locale configuration
  10979. //! locale : Korean [ko]
  10980. //! author : Kyungwook, Park : https://github.com/kyungw00k
  10981. //! author : Jeeeyul Lee <jeeeyul@gmail.com>
  10982. ;(function (global, factory) {
  10983. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  10984. undefined
  10985. }(this, (function (moment) { 'use strict';
  10986. var ko = moment.defineLocale('ko', {
  10987. months : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  10988. monthsShort : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
  10989. weekdays : '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'),
  10990. weekdaysShort : '일_월_화_수_목_금_토'.split('_'),
  10991. weekdaysMin : '일_월_화_수_목_금_토'.split('_'),
  10992. longDateFormat : {
  10993. LT : 'A h:mm',
  10994. LTS : 'A h:mm:ss',
  10995. L : 'YYYY.MM.DD',
  10996. LL : 'YYYY년 MMMM D일',
  10997. LLL : 'YYYY년 MMMM D일 A h:mm',
  10998. LLLL : 'YYYY년 MMMM D일 dddd A h:mm',
  10999. l : 'YYYY.MM.DD',
  11000. ll : 'YYYY년 MMMM D일',
  11001. lll : 'YYYY년 MMMM D일 A h:mm',
  11002. llll : 'YYYY년 MMMM D일 dddd A h:mm'
  11003. },
  11004. calendar : {
  11005. sameDay : '오늘 LT',
  11006. nextDay : '내일 LT',
  11007. nextWeek : 'dddd LT',
  11008. lastDay : '어제 LT',
  11009. lastWeek : '지난주 dddd LT',
  11010. sameElse : 'L'
  11011. },
  11012. relativeTime : {
  11013. future : '%s 후',
  11014. past : '%s 전',
  11015. s : '몇 초',
  11016. ss : '%d초',
  11017. m : '1분',
  11018. mm : '%d분',
  11019. h : '한 시간',
  11020. hh : '%d시간',
  11021. d : '하루',
  11022. dd : '%d일',
  11023. M : '한 달',
  11024. MM : '%d달',
  11025. y : '일 년',
  11026. yy : '%d년'
  11027. },
  11028. dayOfMonthOrdinalParse : /\d{1,2}(일|월|주)/,
  11029. ordinal : function (number, period) {
  11030. switch (period) {
  11031. case 'd':
  11032. case 'D':
  11033. case 'DDD':
  11034. return number + '일';
  11035. case 'M':
  11036. return number + '월';
  11037. case 'w':
  11038. case 'W':
  11039. return number + '주';
  11040. default:
  11041. return number;
  11042. }
  11043. },
  11044. meridiemParse : /오전|오후/,
  11045. isPM : function (token) {
  11046. return token === '오후';
  11047. },
  11048. meridiem : function (hour, minute, isUpper) {
  11049. return hour < 12 ? '오전' : '오후';
  11050. }
  11051. });
  11052. return ko;
  11053. })));
  11054. /***/ }),
  11055. /***/ "./node_modules/moment/locale/ky.js":
  11056. /*!******************************************!*\
  11057. !*** ./node_modules/moment/locale/ky.js ***!
  11058. \******************************************/
  11059. /*! no static exports found */
  11060. /***/ (function(module, exports, __webpack_require__) {
  11061. //! moment.js locale configuration
  11062. //! locale : Kyrgyz [ky]
  11063. //! author : Chyngyz Arystan uulu : https://github.com/chyngyz
  11064. ;(function (global, factory) {
  11065. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  11066. undefined
  11067. }(this, (function (moment) { 'use strict';
  11068. var suffixes = {
  11069. 0: '-чү',
  11070. 1: '-чи',
  11071. 2: '-чи',
  11072. 3: '-чү',
  11073. 4: '-чү',
  11074. 5: '-чи',
  11075. 6: '-чы',
  11076. 7: '-чи',
  11077. 8: '-чи',
  11078. 9: '-чу',
  11079. 10: '-чу',
  11080. 20: '-чы',
  11081. 30: '-чу',
  11082. 40: '-чы',
  11083. 50: '-чү',
  11084. 60: '-чы',
  11085. 70: '-чи',
  11086. 80: '-чи',
  11087. 90: '-чу',
  11088. 100: '-чү'
  11089. };
  11090. var ky = moment.defineLocale('ky', {
  11091. months : 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
  11092. monthsShort : 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'),
  11093. weekdays : 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split('_'),
  11094. weekdaysShort : 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'),
  11095. weekdaysMin : 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'),
  11096. longDateFormat : {
  11097. LT : 'HH:mm',
  11098. LTS : 'HH:mm:ss',
  11099. L : 'DD.MM.YYYY',
  11100. LL : 'D MMMM YYYY',
  11101. LLL : 'D MMMM YYYY HH:mm',
  11102. LLLL : 'dddd, D MMMM YYYY HH:mm'
  11103. },
  11104. calendar : {
  11105. sameDay : '[Бүгүн саат] LT',
  11106. nextDay : '[Эртең саат] LT',
  11107. nextWeek : 'dddd [саат] LT',
  11108. lastDay : '[Кече саат] LT',
  11109. lastWeek : '[Өткен аптанын] dddd [күнү] [саат] LT',
  11110. sameElse : 'L'
  11111. },
  11112. relativeTime : {
  11113. future : '%s ичинде',
  11114. past : '%s мурун',
  11115. s : 'бирнече секунд',
  11116. m : 'бир мүнөт',
  11117. mm : '%d мүнөт',
  11118. h : 'бир саат',
  11119. hh : '%d саат',
  11120. d : 'бир күн',
  11121. dd : '%d күн',
  11122. M : 'бир ай',
  11123. MM : '%d ай',
  11124. y : 'бир жыл',
  11125. yy : '%d жыл'
  11126. },
  11127. dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/,
  11128. ordinal : function (number) {
  11129. var a = number % 10,
  11130. b = number >= 100 ? 100 : null;
  11131. return number + (suffixes[number] || suffixes[a] || suffixes[b]);
  11132. },
  11133. week : {
  11134. dow : 1, // Monday is the first day of the week.
  11135. doy : 7 // The week that contains Jan 1st is the first week of the year.
  11136. }
  11137. });
  11138. return ky;
  11139. })));
  11140. /***/ }),
  11141. /***/ "./node_modules/moment/locale/lb.js":
  11142. /*!******************************************!*\
  11143. !*** ./node_modules/moment/locale/lb.js ***!
  11144. \******************************************/
  11145. /*! no static exports found */
  11146. /***/ (function(module, exports, __webpack_require__) {
  11147. //! moment.js locale configuration
  11148. //! locale : Luxembourgish [lb]
  11149. //! author : mweimerskirch : https://github.com/mweimerskirch
  11150. //! author : David Raison : https://github.com/kwisatz
  11151. ;(function (global, factory) {
  11152. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  11153. undefined
  11154. }(this, (function (moment) { 'use strict';
  11155. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  11156. var format = {
  11157. 'm': ['eng Minutt', 'enger Minutt'],
  11158. 'h': ['eng Stonn', 'enger Stonn'],
  11159. 'd': ['een Dag', 'engem Dag'],
  11160. 'M': ['ee Mount', 'engem Mount'],
  11161. 'y': ['ee Joer', 'engem Joer']
  11162. };
  11163. return withoutSuffix ? format[key][0] : format[key][1];
  11164. }
  11165. function processFutureTime(string) {
  11166. var number = string.substr(0, string.indexOf(' '));
  11167. if (eifelerRegelAppliesToNumber(number)) {
  11168. return 'a ' + string;
  11169. }
  11170. return 'an ' + string;
  11171. }
  11172. function processPastTime(string) {
  11173. var number = string.substr(0, string.indexOf(' '));
  11174. if (eifelerRegelAppliesToNumber(number)) {
  11175. return 'viru ' + string;
  11176. }
  11177. return 'virun ' + string;
  11178. }
  11179. /**
  11180. * Returns true if the word before the given number loses the '-n' ending.
  11181. * e.g. 'an 10 Deeg' but 'a 5 Deeg'
  11182. *
  11183. * @param number {integer}
  11184. * @returns {boolean}
  11185. */
  11186. function eifelerRegelAppliesToNumber(number) {
  11187. number = parseInt(number, 10);
  11188. if (isNaN(number)) {
  11189. return false;
  11190. }
  11191. if (number < 0) {
  11192. // Negative Number --> always true
  11193. return true;
  11194. } else if (number < 10) {
  11195. // Only 1 digit
  11196. if (4 <= number && number <= 7) {
  11197. return true;
  11198. }
  11199. return false;
  11200. } else if (number < 100) {
  11201. // 2 digits
  11202. var lastDigit = number % 10, firstDigit = number / 10;
  11203. if (lastDigit === 0) {
  11204. return eifelerRegelAppliesToNumber(firstDigit);
  11205. }
  11206. return eifelerRegelAppliesToNumber(lastDigit);
  11207. } else if (number < 10000) {
  11208. // 3 or 4 digits --> recursively check first digit
  11209. while (number >= 10) {
  11210. number = number / 10;
  11211. }
  11212. return eifelerRegelAppliesToNumber(number);
  11213. } else {
  11214. // Anything larger than 4 digits: recursively check first n-3 digits
  11215. number = number / 1000;
  11216. return eifelerRegelAppliesToNumber(number);
  11217. }
  11218. }
  11219. var lb = moment.defineLocale('lb', {
  11220. months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),
  11221. monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'),
  11222. monthsParseExact : true,
  11223. weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'),
  11224. weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'),
  11225. weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'),
  11226. weekdaysParseExact : true,
  11227. longDateFormat: {
  11228. LT: 'H:mm [Auer]',
  11229. LTS: 'H:mm:ss [Auer]',
  11230. L: 'DD.MM.YYYY',
  11231. LL: 'D. MMMM YYYY',
  11232. LLL: 'D. MMMM YYYY H:mm [Auer]',
  11233. LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]'
  11234. },
  11235. calendar: {
  11236. sameDay: '[Haut um] LT',
  11237. sameElse: 'L',
  11238. nextDay: '[Muer um] LT',
  11239. nextWeek: 'dddd [um] LT',
  11240. lastDay: '[Gëschter um] LT',
  11241. lastWeek: function () {
  11242. // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule
  11243. switch (this.day()) {
  11244. case 2:
  11245. case 4:
  11246. return '[Leschten] dddd [um] LT';
  11247. default:
  11248. return '[Leschte] dddd [um] LT';
  11249. }
  11250. }
  11251. },
  11252. relativeTime : {
  11253. future : processFutureTime,
  11254. past : processPastTime,
  11255. s : 'e puer Sekonnen',
  11256. m : processRelativeTime,
  11257. mm : '%d Minutten',
  11258. h : processRelativeTime,
  11259. hh : '%d Stonnen',
  11260. d : processRelativeTime,
  11261. dd : '%d Deeg',
  11262. M : processRelativeTime,
  11263. MM : '%d Méint',
  11264. y : processRelativeTime,
  11265. yy : '%d Joer'
  11266. },
  11267. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11268. ordinal: '%d.',
  11269. week: {
  11270. dow: 1, // Monday is the first day of the week.
  11271. doy: 4 // The week that contains Jan 4th is the first week of the year.
  11272. }
  11273. });
  11274. return lb;
  11275. })));
  11276. /***/ }),
  11277. /***/ "./node_modules/moment/locale/lo.js":
  11278. /*!******************************************!*\
  11279. !*** ./node_modules/moment/locale/lo.js ***!
  11280. \******************************************/
  11281. /*! no static exports found */
  11282. /***/ (function(module, exports, __webpack_require__) {
  11283. //! moment.js locale configuration
  11284. //! locale : Lao [lo]
  11285. //! author : Ryan Hart : https://github.com/ryanhart2
  11286. ;(function (global, factory) {
  11287. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  11288. undefined
  11289. }(this, (function (moment) { 'use strict';
  11290. var lo = moment.defineLocale('lo', {
  11291. months : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
  11292. monthsShort : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
  11293. weekdays : 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  11294. weekdaysShort : 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
  11295. weekdaysMin : 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
  11296. weekdaysParseExact : true,
  11297. longDateFormat : {
  11298. LT : 'HH:mm',
  11299. LTS : 'HH:mm:ss',
  11300. L : 'DD/MM/YYYY',
  11301. LL : 'D MMMM YYYY',
  11302. LLL : 'D MMMM YYYY HH:mm',
  11303. LLLL : 'ວັນdddd D MMMM YYYY HH:mm'
  11304. },
  11305. meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
  11306. isPM: function (input) {
  11307. return input === 'ຕອນແລງ';
  11308. },
  11309. meridiem : function (hour, minute, isLower) {
  11310. if (hour < 12) {
  11311. return 'ຕອນເຊົ້າ';
  11312. } else {
  11313. return 'ຕອນແລງ';
  11314. }
  11315. },
  11316. calendar : {
  11317. sameDay : '[ມື້ນີ້ເວລາ] LT',
  11318. nextDay : '[ມື້ອື່ນເວລາ] LT',
  11319. nextWeek : '[ວັນ]dddd[ໜ້າເວລາ] LT',
  11320. lastDay : '[ມື້ວານນີ້ເວລາ] LT',
  11321. lastWeek : '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
  11322. sameElse : 'L'
  11323. },
  11324. relativeTime : {
  11325. future : 'ອີກ %s',
  11326. past : '%sຜ່ານມາ',
  11327. s : 'ບໍ່ເທົ່າໃດວິນາທີ',
  11328. m : '1 ນາທີ',
  11329. mm : '%d ນາທີ',
  11330. h : '1 ຊົ່ວໂມງ',
  11331. hh : '%d ຊົ່ວໂມງ',
  11332. d : '1 ມື້',
  11333. dd : '%d ມື້',
  11334. M : '1 ເດືອນ',
  11335. MM : '%d ເດືອນ',
  11336. y : '1 ປີ',
  11337. yy : '%d ປີ'
  11338. },
  11339. dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
  11340. ordinal : function (number) {
  11341. return 'ທີ່' + number;
  11342. }
  11343. });
  11344. return lo;
  11345. })));
  11346. /***/ }),
  11347. /***/ "./node_modules/moment/locale/lt.js":
  11348. /*!******************************************!*\
  11349. !*** ./node_modules/moment/locale/lt.js ***!
  11350. \******************************************/
  11351. /*! no static exports found */
  11352. /***/ (function(module, exports, __webpack_require__) {
  11353. //! moment.js locale configuration
  11354. //! locale : Lithuanian [lt]
  11355. //! author : Mindaugas Mozūras : https://github.com/mmozuras
  11356. ;(function (global, factory) {
  11357. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  11358. undefined
  11359. }(this, (function (moment) { 'use strict';
  11360. var units = {
  11361. 'm' : 'minutė_minutės_minutę',
  11362. 'mm': 'minutės_minučių_minutes',
  11363. 'h' : 'valanda_valandos_valandą',
  11364. 'hh': 'valandos_valandų_valandas',
  11365. 'd' : 'diena_dienos_dieną',
  11366. 'dd': 'dienos_dienų_dienas',
  11367. 'M' : 'mėnuo_mėnesio_mėnesį',
  11368. 'MM': 'mėnesiai_mėnesių_mėnesius',
  11369. 'y' : 'metai_metų_metus',
  11370. 'yy': 'metai_metų_metus'
  11371. };
  11372. function translateSeconds(number, withoutSuffix, key, isFuture) {
  11373. if (withoutSuffix) {
  11374. return 'kelios sekundės';
  11375. } else {
  11376. return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
  11377. }
  11378. }
  11379. function translateSingular(number, withoutSuffix, key, isFuture) {
  11380. return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]);
  11381. }
  11382. function special(number) {
  11383. return number % 10 === 0 || (number > 10 && number < 20);
  11384. }
  11385. function forms(key) {
  11386. return units[key].split('_');
  11387. }
  11388. function translate(number, withoutSuffix, key, isFuture) {
  11389. var result = number + ' ';
  11390. if (number === 1) {
  11391. return result + translateSingular(number, withoutSuffix, key[0], isFuture);
  11392. } else if (withoutSuffix) {
  11393. return result + (special(number) ? forms(key)[1] : forms(key)[0]);
  11394. } else {
  11395. if (isFuture) {
  11396. return result + forms(key)[1];
  11397. } else {
  11398. return result + (special(number) ? forms(key)[1] : forms(key)[2]);
  11399. }
  11400. }
  11401. }
  11402. var lt = moment.defineLocale('lt', {
  11403. months : {
  11404. format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'),
  11405. standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_'),
  11406. isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/
  11407. },
  11408. monthsShort : 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
  11409. weekdays : {
  11410. format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split('_'),
  11411. standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'),
  11412. isFormat: /dddd HH:mm/
  11413. },
  11414. weekdaysShort : 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
  11415. weekdaysMin : 'S_P_A_T_K_Pn_Š'.split('_'),
  11416. weekdaysParseExact : true,
  11417. longDateFormat : {
  11418. LT : 'HH:mm',
  11419. LTS : 'HH:mm:ss',
  11420. L : 'YYYY-MM-DD',
  11421. LL : 'YYYY [m.] MMMM D [d.]',
  11422. LLL : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  11423. LLLL : 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
  11424. l : 'YYYY-MM-DD',
  11425. ll : 'YYYY [m.] MMMM D [d.]',
  11426. lll : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
  11427. llll : 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]'
  11428. },
  11429. calendar : {
  11430. sameDay : '[Šiandien] LT',
  11431. nextDay : '[Rytoj] LT',
  11432. nextWeek : 'dddd LT',
  11433. lastDay : '[Vakar] LT',
  11434. lastWeek : '[Praėjusį] dddd LT',
  11435. sameElse : 'L'
  11436. },
  11437. relativeTime : {
  11438. future : 'po %s',
  11439. past : 'prieš %s',
  11440. s : translateSeconds,
  11441. m : translateSingular,
  11442. mm : translate,
  11443. h : translateSingular,
  11444. hh : translate,
  11445. d : translateSingular,
  11446. dd : translate,
  11447. M : translateSingular,
  11448. MM : translate,
  11449. y : translateSingular,
  11450. yy : translate
  11451. },
  11452. dayOfMonthOrdinalParse: /\d{1,2}-oji/,
  11453. ordinal : function (number) {
  11454. return number + '-oji';
  11455. },
  11456. week : {
  11457. dow : 1, // Monday is the first day of the week.
  11458. doy : 4 // The week that contains Jan 4th is the first week of the year.
  11459. }
  11460. });
  11461. return lt;
  11462. })));
  11463. /***/ }),
  11464. /***/ "./node_modules/moment/locale/lv.js":
  11465. /*!******************************************!*\
  11466. !*** ./node_modules/moment/locale/lv.js ***!
  11467. \******************************************/
  11468. /*! no static exports found */
  11469. /***/ (function(module, exports, __webpack_require__) {
  11470. //! moment.js locale configuration
  11471. //! locale : Latvian [lv]
  11472. //! author : Kristaps Karlsons : https://github.com/skakri
  11473. //! author : Jānis Elmeris : https://github.com/JanisE
  11474. ;(function (global, factory) {
  11475. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  11476. undefined
  11477. }(this, (function (moment) { 'use strict';
  11478. var units = {
  11479. 'm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  11480. 'mm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
  11481. 'h': 'stundas_stundām_stunda_stundas'.split('_'),
  11482. 'hh': 'stundas_stundām_stunda_stundas'.split('_'),
  11483. 'd': 'dienas_dienām_diena_dienas'.split('_'),
  11484. 'dd': 'dienas_dienām_diena_dienas'.split('_'),
  11485. 'M': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  11486. 'MM': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
  11487. 'y': 'gada_gadiem_gads_gadi'.split('_'),
  11488. 'yy': 'gada_gadiem_gads_gadi'.split('_')
  11489. };
  11490. /**
  11491. * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
  11492. */
  11493. function format(forms, number, withoutSuffix) {
  11494. if (withoutSuffix) {
  11495. // E.g. "21 minūte", "3 minūtes".
  11496. return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];
  11497. } else {
  11498. // E.g. "21 minūtes" as in "pēc 21 minūtes".
  11499. // E.g. "3 minūtēm" as in "pēc 3 minūtēm".
  11500. return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];
  11501. }
  11502. }
  11503. function relativeTimeWithPlural(number, withoutSuffix, key) {
  11504. return number + ' ' + format(units[key], number, withoutSuffix);
  11505. }
  11506. function relativeTimeWithSingular(number, withoutSuffix, key) {
  11507. return format(units[key], number, withoutSuffix);
  11508. }
  11509. function relativeSeconds(number, withoutSuffix) {
  11510. return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
  11511. }
  11512. var lv = moment.defineLocale('lv', {
  11513. months : 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'),
  11514. monthsShort : 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
  11515. weekdays : 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'),
  11516. weekdaysShort : 'Sv_P_O_T_C_Pk_S'.split('_'),
  11517. weekdaysMin : 'Sv_P_O_T_C_Pk_S'.split('_'),
  11518. weekdaysParseExact : true,
  11519. longDateFormat : {
  11520. LT : 'HH:mm',
  11521. LTS : 'HH:mm:ss',
  11522. L : 'DD.MM.YYYY.',
  11523. LL : 'YYYY. [gada] D. MMMM',
  11524. LLL : 'YYYY. [gada] D. MMMM, HH:mm',
  11525. LLLL : 'YYYY. [gada] D. MMMM, dddd, HH:mm'
  11526. },
  11527. calendar : {
  11528. sameDay : '[Šodien pulksten] LT',
  11529. nextDay : '[Rīt pulksten] LT',
  11530. nextWeek : 'dddd [pulksten] LT',
  11531. lastDay : '[Vakar pulksten] LT',
  11532. lastWeek : '[Pagājušā] dddd [pulksten] LT',
  11533. sameElse : 'L'
  11534. },
  11535. relativeTime : {
  11536. future : 'pēc %s',
  11537. past : 'pirms %s',
  11538. s : relativeSeconds,
  11539. m : relativeTimeWithSingular,
  11540. mm : relativeTimeWithPlural,
  11541. h : relativeTimeWithSingular,
  11542. hh : relativeTimeWithPlural,
  11543. d : relativeTimeWithSingular,
  11544. dd : relativeTimeWithPlural,
  11545. M : relativeTimeWithSingular,
  11546. MM : relativeTimeWithPlural,
  11547. y : relativeTimeWithSingular,
  11548. yy : relativeTimeWithPlural
  11549. },
  11550. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11551. ordinal : '%d.',
  11552. week : {
  11553. dow : 1, // Monday is the first day of the week.
  11554. doy : 4 // The week that contains Jan 4th is the first week of the year.
  11555. }
  11556. });
  11557. return lv;
  11558. })));
  11559. /***/ }),
  11560. /***/ "./node_modules/moment/locale/me.js":
  11561. /*!******************************************!*\
  11562. !*** ./node_modules/moment/locale/me.js ***!
  11563. \******************************************/
  11564. /*! no static exports found */
  11565. /***/ (function(module, exports, __webpack_require__) {
  11566. //! moment.js locale configuration
  11567. //! locale : Montenegrin [me]
  11568. //! author : Miodrag Nikač <miodrag@restartit.me> : https://github.com/miodragnikac
  11569. ;(function (global, factory) {
  11570. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  11571. undefined
  11572. }(this, (function (moment) { 'use strict';
  11573. var translator = {
  11574. words: { //Different grammatical cases
  11575. m: ['jedan minut', 'jednog minuta'],
  11576. mm: ['minut', 'minuta', 'minuta'],
  11577. h: ['jedan sat', 'jednog sata'],
  11578. hh: ['sat', 'sata', 'sati'],
  11579. dd: ['dan', 'dana', 'dana'],
  11580. MM: ['mjesec', 'mjeseca', 'mjeseci'],
  11581. yy: ['godina', 'godine', 'godina']
  11582. },
  11583. correctGrammaticalCase: function (number, wordKey) {
  11584. return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
  11585. },
  11586. translate: function (number, withoutSuffix, key) {
  11587. var wordKey = translator.words[key];
  11588. if (key.length === 1) {
  11589. return withoutSuffix ? wordKey[0] : wordKey[1];
  11590. } else {
  11591. return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
  11592. }
  11593. }
  11594. };
  11595. var me = moment.defineLocale('me', {
  11596. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
  11597. monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
  11598. monthsParseExact : true,
  11599. weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
  11600. weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
  11601. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  11602. weekdaysParseExact : true,
  11603. longDateFormat: {
  11604. LT: 'H:mm',
  11605. LTS : 'H:mm:ss',
  11606. L: 'DD.MM.YYYY',
  11607. LL: 'D. MMMM YYYY',
  11608. LLL: 'D. MMMM YYYY H:mm',
  11609. LLLL: 'dddd, D. MMMM YYYY H:mm'
  11610. },
  11611. calendar: {
  11612. sameDay: '[danas u] LT',
  11613. nextDay: '[sjutra u] LT',
  11614. nextWeek: function () {
  11615. switch (this.day()) {
  11616. case 0:
  11617. return '[u] [nedjelju] [u] LT';
  11618. case 3:
  11619. return '[u] [srijedu] [u] LT';
  11620. case 6:
  11621. return '[u] [subotu] [u] LT';
  11622. case 1:
  11623. case 2:
  11624. case 4:
  11625. case 5:
  11626. return '[u] dddd [u] LT';
  11627. }
  11628. },
  11629. lastDay : '[juče u] LT',
  11630. lastWeek : function () {
  11631. var lastWeekDays = [
  11632. '[prošle] [nedjelje] [u] LT',
  11633. '[prošlog] [ponedjeljka] [u] LT',
  11634. '[prošlog] [utorka] [u] LT',
  11635. '[prošle] [srijede] [u] LT',
  11636. '[prošlog] [četvrtka] [u] LT',
  11637. '[prošlog] [petka] [u] LT',
  11638. '[prošle] [subote] [u] LT'
  11639. ];
  11640. return lastWeekDays[this.day()];
  11641. },
  11642. sameElse : 'L'
  11643. },
  11644. relativeTime : {
  11645. future : 'za %s',
  11646. past : 'prije %s',
  11647. s : 'nekoliko sekundi',
  11648. m : translator.translate,
  11649. mm : translator.translate,
  11650. h : translator.translate,
  11651. hh : translator.translate,
  11652. d : 'dan',
  11653. dd : translator.translate,
  11654. M : 'mjesec',
  11655. MM : translator.translate,
  11656. y : 'godinu',
  11657. yy : translator.translate
  11658. },
  11659. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11660. ordinal : '%d.',
  11661. week : {
  11662. dow : 1, // Monday is the first day of the week.
  11663. doy : 7 // The week that contains Jan 1st is the first week of the year.
  11664. }
  11665. });
  11666. return me;
  11667. })));
  11668. /***/ }),
  11669. /***/ "./node_modules/moment/locale/mi.js":
  11670. /*!******************************************!*\
  11671. !*** ./node_modules/moment/locale/mi.js ***!
  11672. \******************************************/
  11673. /*! no static exports found */
  11674. /***/ (function(module, exports, __webpack_require__) {
  11675. //! moment.js locale configuration
  11676. //! locale : Maori [mi]
  11677. //! author : John Corrigan <robbiecloset@gmail.com> : https://github.com/johnideal
  11678. ;(function (global, factory) {
  11679. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  11680. undefined
  11681. }(this, (function (moment) { 'use strict';
  11682. var mi = moment.defineLocale('mi', {
  11683. months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split('_'),
  11684. monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split('_'),
  11685. monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  11686. monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  11687. monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  11688. monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
  11689. weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
  11690. weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  11691. weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
  11692. longDateFormat: {
  11693. LT: 'HH:mm',
  11694. LTS: 'HH:mm:ss',
  11695. L: 'DD/MM/YYYY',
  11696. LL: 'D MMMM YYYY',
  11697. LLL: 'D MMMM YYYY [i] HH:mm',
  11698. LLLL: 'dddd, D MMMM YYYY [i] HH:mm'
  11699. },
  11700. calendar: {
  11701. sameDay: '[i teie mahana, i] LT',
  11702. nextDay: '[apopo i] LT',
  11703. nextWeek: 'dddd [i] LT',
  11704. lastDay: '[inanahi i] LT',
  11705. lastWeek: 'dddd [whakamutunga i] LT',
  11706. sameElse: 'L'
  11707. },
  11708. relativeTime: {
  11709. future: 'i roto i %s',
  11710. past: '%s i mua',
  11711. s: 'te hēkona ruarua',
  11712. m: 'he meneti',
  11713. mm: '%d meneti',
  11714. h: 'te haora',
  11715. hh: '%d haora',
  11716. d: 'he ra',
  11717. dd: '%d ra',
  11718. M: 'he marama',
  11719. MM: '%d marama',
  11720. y: 'he tau',
  11721. yy: '%d tau'
  11722. },
  11723. dayOfMonthOrdinalParse: /\d{1,2}º/,
  11724. ordinal: '%dº',
  11725. week : {
  11726. dow : 1, // Monday is the first day of the week.
  11727. doy : 4 // The week that contains Jan 4th is the first week of the year.
  11728. }
  11729. });
  11730. return mi;
  11731. })));
  11732. /***/ }),
  11733. /***/ "./node_modules/moment/locale/mk.js":
  11734. /*!******************************************!*\
  11735. !*** ./node_modules/moment/locale/mk.js ***!
  11736. \******************************************/
  11737. /*! no static exports found */
  11738. /***/ (function(module, exports, __webpack_require__) {
  11739. //! moment.js locale configuration
  11740. //! locale : Macedonian [mk]
  11741. //! author : Borislav Mickov : https://github.com/B0k0
  11742. ;(function (global, factory) {
  11743. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  11744. undefined
  11745. }(this, (function (moment) { 'use strict';
  11746. var mk = moment.defineLocale('mk', {
  11747. months : 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'),
  11748. monthsShort : 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'),
  11749. weekdays : 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'),
  11750. weekdaysShort : 'нед_пон_вто_сре_чет_пет_саб'.split('_'),
  11751. weekdaysMin : 'нe_пo_вт_ср_че_пе_сa'.split('_'),
  11752. longDateFormat : {
  11753. LT : 'H:mm',
  11754. LTS : 'H:mm:ss',
  11755. L : 'D.MM.YYYY',
  11756. LL : 'D MMMM YYYY',
  11757. LLL : 'D MMMM YYYY H:mm',
  11758. LLLL : 'dddd, D MMMM YYYY H:mm'
  11759. },
  11760. calendar : {
  11761. sameDay : '[Денес во] LT',
  11762. nextDay : '[Утре во] LT',
  11763. nextWeek : '[Во] dddd [во] LT',
  11764. lastDay : '[Вчера во] LT',
  11765. lastWeek : function () {
  11766. switch (this.day()) {
  11767. case 0:
  11768. case 3:
  11769. case 6:
  11770. return '[Изминатата] dddd [во] LT';
  11771. case 1:
  11772. case 2:
  11773. case 4:
  11774. case 5:
  11775. return '[Изминатиот] dddd [во] LT';
  11776. }
  11777. },
  11778. sameElse : 'L'
  11779. },
  11780. relativeTime : {
  11781. future : 'после %s',
  11782. past : 'пред %s',
  11783. s : 'неколку секунди',
  11784. m : 'минута',
  11785. mm : '%d минути',
  11786. h : 'час',
  11787. hh : '%d часа',
  11788. d : 'ден',
  11789. dd : '%d дена',
  11790. M : 'месец',
  11791. MM : '%d месеци',
  11792. y : 'година',
  11793. yy : '%d години'
  11794. },
  11795. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  11796. ordinal : function (number) {
  11797. var lastDigit = number % 10,
  11798. last2Digits = number % 100;
  11799. if (number === 0) {
  11800. return number + '-ев';
  11801. } else if (last2Digits === 0) {
  11802. return number + '-ен';
  11803. } else if (last2Digits > 10 && last2Digits < 20) {
  11804. return number + '-ти';
  11805. } else if (lastDigit === 1) {
  11806. return number + '-ви';
  11807. } else if (lastDigit === 2) {
  11808. return number + '-ри';
  11809. } else if (lastDigit === 7 || lastDigit === 8) {
  11810. return number + '-ми';
  11811. } else {
  11812. return number + '-ти';
  11813. }
  11814. },
  11815. week : {
  11816. dow : 1, // Monday is the first day of the week.
  11817. doy : 7 // The week that contains Jan 1st is the first week of the year.
  11818. }
  11819. });
  11820. return mk;
  11821. })));
  11822. /***/ }),
  11823. /***/ "./node_modules/moment/locale/ml.js":
  11824. /*!******************************************!*\
  11825. !*** ./node_modules/moment/locale/ml.js ***!
  11826. \******************************************/
  11827. /*! no static exports found */
  11828. /***/ (function(module, exports, __webpack_require__) {
  11829. //! moment.js locale configuration
  11830. //! locale : Malayalam [ml]
  11831. //! author : Floyd Pink : https://github.com/floydpink
  11832. ;(function (global, factory) {
  11833. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  11834. undefined
  11835. }(this, (function (moment) { 'use strict';
  11836. var ml = moment.defineLocale('ml', {
  11837. months : 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'),
  11838. monthsShort : 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'),
  11839. monthsParseExact : true,
  11840. weekdays : 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'),
  11841. weekdaysShort : 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'),
  11842. weekdaysMin : 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'),
  11843. longDateFormat : {
  11844. LT : 'A h:mm -നു',
  11845. LTS : 'A h:mm:ss -നു',
  11846. L : 'DD/MM/YYYY',
  11847. LL : 'D MMMM YYYY',
  11848. LLL : 'D MMMM YYYY, A h:mm -നു',
  11849. LLLL : 'dddd, D MMMM YYYY, A h:mm -നു'
  11850. },
  11851. calendar : {
  11852. sameDay : '[ഇന്ന്] LT',
  11853. nextDay : '[നാളെ] LT',
  11854. nextWeek : 'dddd, LT',
  11855. lastDay : '[ഇന്നലെ] LT',
  11856. lastWeek : '[കഴിഞ്ഞ] dddd, LT',
  11857. sameElse : 'L'
  11858. },
  11859. relativeTime : {
  11860. future : '%s കഴിഞ്ഞ്',
  11861. past : '%s മുൻപ്',
  11862. s : 'അൽപ നിമിഷങ്ങൾ',
  11863. m : 'ഒരു മിനിറ്റ്',
  11864. mm : '%d മിനിറ്റ്',
  11865. h : 'ഒരു മണിക്കൂർ',
  11866. hh : '%d മണിക്കൂർ',
  11867. d : 'ഒരു ദിവസം',
  11868. dd : '%d ദിവസം',
  11869. M : 'ഒരു മാസം',
  11870. MM : '%d മാസം',
  11871. y : 'ഒരു വർഷം',
  11872. yy : '%d വർഷം'
  11873. },
  11874. meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
  11875. meridiemHour : function (hour, meridiem) {
  11876. if (hour === 12) {
  11877. hour = 0;
  11878. }
  11879. if ((meridiem === 'രാത്രി' && hour >= 4) ||
  11880. meridiem === 'ഉച്ച കഴിഞ്ഞ്' ||
  11881. meridiem === 'വൈകുന്നേരം') {
  11882. return hour + 12;
  11883. } else {
  11884. return hour;
  11885. }
  11886. },
  11887. meridiem : function (hour, minute, isLower) {
  11888. if (hour < 4) {
  11889. return 'രാത്രി';
  11890. } else if (hour < 12) {
  11891. return 'രാവിലെ';
  11892. } else if (hour < 17) {
  11893. return 'ഉച്ച കഴിഞ്ഞ്';
  11894. } else if (hour < 20) {
  11895. return 'വൈകുന്നേരം';
  11896. } else {
  11897. return 'രാത്രി';
  11898. }
  11899. }
  11900. });
  11901. return ml;
  11902. })));
  11903. /***/ }),
  11904. /***/ "./node_modules/moment/locale/mr.js":
  11905. /*!******************************************!*\
  11906. !*** ./node_modules/moment/locale/mr.js ***!
  11907. \******************************************/
  11908. /*! no static exports found */
  11909. /***/ (function(module, exports, __webpack_require__) {
  11910. //! moment.js locale configuration
  11911. //! locale : Marathi [mr]
  11912. //! author : Harshad Kale : https://github.com/kalehv
  11913. //! author : Vivek Athalye : https://github.com/vnathalye
  11914. ;(function (global, factory) {
  11915. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  11916. undefined
  11917. }(this, (function (moment) { 'use strict';
  11918. var symbolMap = {
  11919. '1': '१',
  11920. '2': '२',
  11921. '3': '३',
  11922. '4': '४',
  11923. '5': '५',
  11924. '6': '६',
  11925. '7': '७',
  11926. '8': '८',
  11927. '9': '९',
  11928. '0': '०'
  11929. };
  11930. var numberMap = {
  11931. '१': '1',
  11932. '२': '2',
  11933. '३': '3',
  11934. '४': '4',
  11935. '५': '5',
  11936. '६': '6',
  11937. '७': '7',
  11938. '८': '8',
  11939. '९': '9',
  11940. '०': '0'
  11941. };
  11942. function relativeTimeMr(number, withoutSuffix, string, isFuture)
  11943. {
  11944. var output = '';
  11945. if (withoutSuffix) {
  11946. switch (string) {
  11947. case 's': output = 'काही सेकंद'; break;
  11948. case 'm': output = 'एक मिनिट'; break;
  11949. case 'mm': output = '%d मिनिटे'; break;
  11950. case 'h': output = 'एक तास'; break;
  11951. case 'hh': output = '%d तास'; break;
  11952. case 'd': output = 'एक दिवस'; break;
  11953. case 'dd': output = '%d दिवस'; break;
  11954. case 'M': output = 'एक महिना'; break;
  11955. case 'MM': output = '%d महिने'; break;
  11956. case 'y': output = 'एक वर्ष'; break;
  11957. case 'yy': output = '%d वर्षे'; break;
  11958. }
  11959. }
  11960. else {
  11961. switch (string) {
  11962. case 's': output = 'काही सेकंदां'; break;
  11963. case 'm': output = 'एका मिनिटा'; break;
  11964. case 'mm': output = '%d मिनिटां'; break;
  11965. case 'h': output = 'एका तासा'; break;
  11966. case 'hh': output = '%d तासां'; break;
  11967. case 'd': output = 'एका दिवसा'; break;
  11968. case 'dd': output = '%d दिवसां'; break;
  11969. case 'M': output = 'एका महिन्या'; break;
  11970. case 'MM': output = '%d महिन्यां'; break;
  11971. case 'y': output = 'एका वर्षा'; break;
  11972. case 'yy': output = '%d वर्षां'; break;
  11973. }
  11974. }
  11975. return output.replace(/%d/i, number);
  11976. }
  11977. var mr = moment.defineLocale('mr', {
  11978. months : 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
  11979. monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
  11980. monthsParseExact : true,
  11981. weekdays : 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'),
  11982. weekdaysShort : 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'),
  11983. weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'),
  11984. longDateFormat : {
  11985. LT : 'A h:mm वाजता',
  11986. LTS : 'A h:mm:ss वाजता',
  11987. L : 'DD/MM/YYYY',
  11988. LL : 'D MMMM YYYY',
  11989. LLL : 'D MMMM YYYY, A h:mm वाजता',
  11990. LLLL : 'dddd, D MMMM YYYY, A h:mm वाजता'
  11991. },
  11992. calendar : {
  11993. sameDay : '[आज] LT',
  11994. nextDay : '[उद्या] LT',
  11995. nextWeek : 'dddd, LT',
  11996. lastDay : '[काल] LT',
  11997. lastWeek: '[मागील] dddd, LT',
  11998. sameElse : 'L'
  11999. },
  12000. relativeTime : {
  12001. future: '%sमध्ये',
  12002. past: '%sपूर्वी',
  12003. s: relativeTimeMr,
  12004. m: relativeTimeMr,
  12005. mm: relativeTimeMr,
  12006. h: relativeTimeMr,
  12007. hh: relativeTimeMr,
  12008. d: relativeTimeMr,
  12009. dd: relativeTimeMr,
  12010. M: relativeTimeMr,
  12011. MM: relativeTimeMr,
  12012. y: relativeTimeMr,
  12013. yy: relativeTimeMr
  12014. },
  12015. preparse: function (string) {
  12016. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  12017. return numberMap[match];
  12018. });
  12019. },
  12020. postformat: function (string) {
  12021. return string.replace(/\d/g, function (match) {
  12022. return symbolMap[match];
  12023. });
  12024. },
  12025. meridiemParse: /रात्री|सकाळी|दुपारी|सायंकाळी/,
  12026. meridiemHour : function (hour, meridiem) {
  12027. if (hour === 12) {
  12028. hour = 0;
  12029. }
  12030. if (meridiem === 'रात्री') {
  12031. return hour < 4 ? hour : hour + 12;
  12032. } else if (meridiem === 'सकाळी') {
  12033. return hour;
  12034. } else if (meridiem === 'दुपारी') {
  12035. return hour >= 10 ? hour : hour + 12;
  12036. } else if (meridiem === 'सायंकाळी') {
  12037. return hour + 12;
  12038. }
  12039. },
  12040. meridiem: function (hour, minute, isLower) {
  12041. if (hour < 4) {
  12042. return 'रात्री';
  12043. } else if (hour < 10) {
  12044. return 'सकाळी';
  12045. } else if (hour < 17) {
  12046. return 'दुपारी';
  12047. } else if (hour < 20) {
  12048. return 'सायंकाळी';
  12049. } else {
  12050. return 'रात्री';
  12051. }
  12052. },
  12053. week : {
  12054. dow : 0, // Sunday is the first day of the week.
  12055. doy : 6 // The week that contains Jan 1st is the first week of the year.
  12056. }
  12057. });
  12058. return mr;
  12059. })));
  12060. /***/ }),
  12061. /***/ "./node_modules/moment/locale/ms-my.js":
  12062. /*!*********************************************!*\
  12063. !*** ./node_modules/moment/locale/ms-my.js ***!
  12064. \*********************************************/
  12065. /*! no static exports found */
  12066. /***/ (function(module, exports, __webpack_require__) {
  12067. //! moment.js locale configuration
  12068. //! locale : Malay [ms-my]
  12069. //! note : DEPRECATED, the correct one is [ms]
  12070. //! author : Weldan Jamili : https://github.com/weldan
  12071. ;(function (global, factory) {
  12072. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  12073. undefined
  12074. }(this, (function (moment) { 'use strict';
  12075. var msMy = moment.defineLocale('ms-my', {
  12076. months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
  12077. monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  12078. weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  12079. weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  12080. weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  12081. longDateFormat : {
  12082. LT : 'HH.mm',
  12083. LTS : 'HH.mm.ss',
  12084. L : 'DD/MM/YYYY',
  12085. LL : 'D MMMM YYYY',
  12086. LLL : 'D MMMM YYYY [pukul] HH.mm',
  12087. LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
  12088. },
  12089. meridiemParse: /pagi|tengahari|petang|malam/,
  12090. meridiemHour: function (hour, meridiem) {
  12091. if (hour === 12) {
  12092. hour = 0;
  12093. }
  12094. if (meridiem === 'pagi') {
  12095. return hour;
  12096. } else if (meridiem === 'tengahari') {
  12097. return hour >= 11 ? hour : hour + 12;
  12098. } else if (meridiem === 'petang' || meridiem === 'malam') {
  12099. return hour + 12;
  12100. }
  12101. },
  12102. meridiem : function (hours, minutes, isLower) {
  12103. if (hours < 11) {
  12104. return 'pagi';
  12105. } else if (hours < 15) {
  12106. return 'tengahari';
  12107. } else if (hours < 19) {
  12108. return 'petang';
  12109. } else {
  12110. return 'malam';
  12111. }
  12112. },
  12113. calendar : {
  12114. sameDay : '[Hari ini pukul] LT',
  12115. nextDay : '[Esok pukul] LT',
  12116. nextWeek : 'dddd [pukul] LT',
  12117. lastDay : '[Kelmarin pukul] LT',
  12118. lastWeek : 'dddd [lepas pukul] LT',
  12119. sameElse : 'L'
  12120. },
  12121. relativeTime : {
  12122. future : 'dalam %s',
  12123. past : '%s yang lepas',
  12124. s : 'beberapa saat',
  12125. m : 'seminit',
  12126. mm : '%d minit',
  12127. h : 'sejam',
  12128. hh : '%d jam',
  12129. d : 'sehari',
  12130. dd : '%d hari',
  12131. M : 'sebulan',
  12132. MM : '%d bulan',
  12133. y : 'setahun',
  12134. yy : '%d tahun'
  12135. },
  12136. week : {
  12137. dow : 1, // Monday is the first day of the week.
  12138. doy : 7 // The week that contains Jan 1st is the first week of the year.
  12139. }
  12140. });
  12141. return msMy;
  12142. })));
  12143. /***/ }),
  12144. /***/ "./node_modules/moment/locale/ms.js":
  12145. /*!******************************************!*\
  12146. !*** ./node_modules/moment/locale/ms.js ***!
  12147. \******************************************/
  12148. /*! no static exports found */
  12149. /***/ (function(module, exports, __webpack_require__) {
  12150. //! moment.js locale configuration
  12151. //! locale : Malay [ms]
  12152. //! author : Weldan Jamili : https://github.com/weldan
  12153. ;(function (global, factory) {
  12154. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  12155. undefined
  12156. }(this, (function (moment) { 'use strict';
  12157. var ms = moment.defineLocale('ms', {
  12158. months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'),
  12159. monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),
  12160. weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),
  12161. weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),
  12162. weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),
  12163. longDateFormat : {
  12164. LT : 'HH.mm',
  12165. LTS : 'HH.mm.ss',
  12166. L : 'DD/MM/YYYY',
  12167. LL : 'D MMMM YYYY',
  12168. LLL : 'D MMMM YYYY [pukul] HH.mm',
  12169. LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
  12170. },
  12171. meridiemParse: /pagi|tengahari|petang|malam/,
  12172. meridiemHour: function (hour, meridiem) {
  12173. if (hour === 12) {
  12174. hour = 0;
  12175. }
  12176. if (meridiem === 'pagi') {
  12177. return hour;
  12178. } else if (meridiem === 'tengahari') {
  12179. return hour >= 11 ? hour : hour + 12;
  12180. } else if (meridiem === 'petang' || meridiem === 'malam') {
  12181. return hour + 12;
  12182. }
  12183. },
  12184. meridiem : function (hours, minutes, isLower) {
  12185. if (hours < 11) {
  12186. return 'pagi';
  12187. } else if (hours < 15) {
  12188. return 'tengahari';
  12189. } else if (hours < 19) {
  12190. return 'petang';
  12191. } else {
  12192. return 'malam';
  12193. }
  12194. },
  12195. calendar : {
  12196. sameDay : '[Hari ini pukul] LT',
  12197. nextDay : '[Esok pukul] LT',
  12198. nextWeek : 'dddd [pukul] LT',
  12199. lastDay : '[Kelmarin pukul] LT',
  12200. lastWeek : 'dddd [lepas pukul] LT',
  12201. sameElse : 'L'
  12202. },
  12203. relativeTime : {
  12204. future : 'dalam %s',
  12205. past : '%s yang lepas',
  12206. s : 'beberapa saat',
  12207. m : 'seminit',
  12208. mm : '%d minit',
  12209. h : 'sejam',
  12210. hh : '%d jam',
  12211. d : 'sehari',
  12212. dd : '%d hari',
  12213. M : 'sebulan',
  12214. MM : '%d bulan',
  12215. y : 'setahun',
  12216. yy : '%d tahun'
  12217. },
  12218. week : {
  12219. dow : 1, // Monday is the first day of the week.
  12220. doy : 7 // The week that contains Jan 1st is the first week of the year.
  12221. }
  12222. });
  12223. return ms;
  12224. })));
  12225. /***/ }),
  12226. /***/ "./node_modules/moment/locale/my.js":
  12227. /*!******************************************!*\
  12228. !*** ./node_modules/moment/locale/my.js ***!
  12229. \******************************************/
  12230. /*! no static exports found */
  12231. /***/ (function(module, exports, __webpack_require__) {
  12232. //! moment.js locale configuration
  12233. //! locale : Burmese [my]
  12234. //! author : Squar team, mysquar.com
  12235. //! author : David Rossellat : https://github.com/gholadr
  12236. //! author : Tin Aung Lin : https://github.com/thanyawzinmin
  12237. ;(function (global, factory) {
  12238. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  12239. undefined
  12240. }(this, (function (moment) { 'use strict';
  12241. var symbolMap = {
  12242. '1': '၁',
  12243. '2': '၂',
  12244. '3': '၃',
  12245. '4': '၄',
  12246. '5': '၅',
  12247. '6': '၆',
  12248. '7': '၇',
  12249. '8': '၈',
  12250. '9': '၉',
  12251. '0': '၀'
  12252. };
  12253. var numberMap = {
  12254. '၁': '1',
  12255. '၂': '2',
  12256. '၃': '3',
  12257. '၄': '4',
  12258. '၅': '5',
  12259. '၆': '6',
  12260. '၇': '7',
  12261. '၈': '8',
  12262. '၉': '9',
  12263. '၀': '0'
  12264. };
  12265. var my = moment.defineLocale('my', {
  12266. months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'),
  12267. monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
  12268. weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'),
  12269. weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  12270. weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
  12271. longDateFormat: {
  12272. LT: 'HH:mm',
  12273. LTS: 'HH:mm:ss',
  12274. L: 'DD/MM/YYYY',
  12275. LL: 'D MMMM YYYY',
  12276. LLL: 'D MMMM YYYY HH:mm',
  12277. LLLL: 'dddd D MMMM YYYY HH:mm'
  12278. },
  12279. calendar: {
  12280. sameDay: '[ယနေ.] LT [မှာ]',
  12281. nextDay: '[မနက်ဖြန်] LT [မှာ]',
  12282. nextWeek: 'dddd LT [မှာ]',
  12283. lastDay: '[မနေ.က] LT [မှာ]',
  12284. lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
  12285. sameElse: 'L'
  12286. },
  12287. relativeTime: {
  12288. future: 'လာမည့် %s မှာ',
  12289. past: 'လွန်ခဲ့သော %s က',
  12290. s: 'စက္ကန်.အနည်းငယ်',
  12291. m: 'တစ်မိနစ်',
  12292. mm: '%d မိနစ်',
  12293. h: 'တစ်နာရီ',
  12294. hh: '%d နာရီ',
  12295. d: 'တစ်ရက်',
  12296. dd: '%d ရက်',
  12297. M: 'တစ်လ',
  12298. MM: '%d လ',
  12299. y: 'တစ်နှစ်',
  12300. yy: '%d နှစ်'
  12301. },
  12302. preparse: function (string) {
  12303. return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
  12304. return numberMap[match];
  12305. });
  12306. },
  12307. postformat: function (string) {
  12308. return string.replace(/\d/g, function (match) {
  12309. return symbolMap[match];
  12310. });
  12311. },
  12312. week: {
  12313. dow: 1, // Monday is the first day of the week.
  12314. doy: 4 // The week that contains Jan 1st is the first week of the year.
  12315. }
  12316. });
  12317. return my;
  12318. })));
  12319. /***/ }),
  12320. /***/ "./node_modules/moment/locale/nb.js":
  12321. /*!******************************************!*\
  12322. !*** ./node_modules/moment/locale/nb.js ***!
  12323. \******************************************/
  12324. /*! no static exports found */
  12325. /***/ (function(module, exports, __webpack_require__) {
  12326. //! moment.js locale configuration
  12327. //! locale : Norwegian Bokmål [nb]
  12328. //! authors : Espen Hovlandsdal : https://github.com/rexxars
  12329. //! Sigurd Gartmann : https://github.com/sigurdga
  12330. ;(function (global, factory) {
  12331. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  12332. undefined
  12333. }(this, (function (moment) { 'use strict';
  12334. var nb = moment.defineLocale('nb', {
  12335. months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  12336. monthsShort : 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
  12337. monthsParseExact : true,
  12338. weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
  12339. weekdaysShort : 'sø._ma._ti._on._to._fr._lø.'.split('_'),
  12340. weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
  12341. weekdaysParseExact : true,
  12342. longDateFormat : {
  12343. LT : 'HH:mm',
  12344. LTS : 'HH:mm:ss',
  12345. L : 'DD.MM.YYYY',
  12346. LL : 'D. MMMM YYYY',
  12347. LLL : 'D. MMMM YYYY [kl.] HH:mm',
  12348. LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'
  12349. },
  12350. calendar : {
  12351. sameDay: '[i dag kl.] LT',
  12352. nextDay: '[i morgen kl.] LT',
  12353. nextWeek: 'dddd [kl.] LT',
  12354. lastDay: '[i går kl.] LT',
  12355. lastWeek: '[forrige] dddd [kl.] LT',
  12356. sameElse: 'L'
  12357. },
  12358. relativeTime : {
  12359. future : 'om %s',
  12360. past : '%s siden',
  12361. s : 'noen sekunder',
  12362. m : 'ett minutt',
  12363. mm : '%d minutter',
  12364. h : 'en time',
  12365. hh : '%d timer',
  12366. d : 'en dag',
  12367. dd : '%d dager',
  12368. M : 'en måned',
  12369. MM : '%d måneder',
  12370. y : 'ett år',
  12371. yy : '%d år'
  12372. },
  12373. dayOfMonthOrdinalParse: /\d{1,2}\./,
  12374. ordinal : '%d.',
  12375. week : {
  12376. dow : 1, // Monday is the first day of the week.
  12377. doy : 4 // The week that contains Jan 4th is the first week of the year.
  12378. }
  12379. });
  12380. return nb;
  12381. })));
  12382. /***/ }),
  12383. /***/ "./node_modules/moment/locale/ne.js":
  12384. /*!******************************************!*\
  12385. !*** ./node_modules/moment/locale/ne.js ***!
  12386. \******************************************/
  12387. /*! no static exports found */
  12388. /***/ (function(module, exports, __webpack_require__) {
  12389. //! moment.js locale configuration
  12390. //! locale : Nepalese [ne]
  12391. //! author : suvash : https://github.com/suvash
  12392. ;(function (global, factory) {
  12393. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  12394. undefined
  12395. }(this, (function (moment) { 'use strict';
  12396. var symbolMap = {
  12397. '1': '१',
  12398. '2': '२',
  12399. '3': '३',
  12400. '4': '४',
  12401. '5': '५',
  12402. '6': '६',
  12403. '7': '७',
  12404. '8': '८',
  12405. '9': '९',
  12406. '0': '०'
  12407. };
  12408. var numberMap = {
  12409. '१': '1',
  12410. '२': '2',
  12411. '३': '3',
  12412. '४': '4',
  12413. '५': '5',
  12414. '६': '6',
  12415. '७': '7',
  12416. '८': '8',
  12417. '९': '9',
  12418. '०': '0'
  12419. };
  12420. var ne = moment.defineLocale('ne', {
  12421. months : 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'),
  12422. monthsShort : 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'),
  12423. monthsParseExact : true,
  12424. weekdays : 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'),
  12425. weekdaysShort : 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
  12426. weekdaysMin : 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
  12427. weekdaysParseExact : true,
  12428. longDateFormat : {
  12429. LT : 'Aको h:mm बजे',
  12430. LTS : 'Aको h:mm:ss बजे',
  12431. L : 'DD/MM/YYYY',
  12432. LL : 'D MMMM YYYY',
  12433. LLL : 'D MMMM YYYY, Aको h:mm बजे',
  12434. LLLL : 'dddd, D MMMM YYYY, Aको h:mm बजे'
  12435. },
  12436. preparse: function (string) {
  12437. return string.replace(/[१२३४५६७८९०]/g, function (match) {
  12438. return numberMap[match];
  12439. });
  12440. },
  12441. postformat: function (string) {
  12442. return string.replace(/\d/g, function (match) {
  12443. return symbolMap[match];
  12444. });
  12445. },
  12446. meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
  12447. meridiemHour : function (hour, meridiem) {
  12448. if (hour === 12) {
  12449. hour = 0;
  12450. }
  12451. if (meridiem === 'राति') {
  12452. return hour < 4 ? hour : hour + 12;
  12453. } else if (meridiem === 'बिहान') {
  12454. return hour;
  12455. } else if (meridiem === 'दिउँसो') {
  12456. return hour >= 10 ? hour : hour + 12;
  12457. } else if (meridiem === 'साँझ') {
  12458. return hour + 12;
  12459. }
  12460. },
  12461. meridiem : function (hour, minute, isLower) {
  12462. if (hour < 3) {
  12463. return 'राति';
  12464. } else if (hour < 12) {
  12465. return 'बिहान';
  12466. } else if (hour < 16) {
  12467. return 'दिउँसो';
  12468. } else if (hour < 20) {
  12469. return 'साँझ';
  12470. } else {
  12471. return 'राति';
  12472. }
  12473. },
  12474. calendar : {
  12475. sameDay : '[आज] LT',
  12476. nextDay : '[भोलि] LT',
  12477. nextWeek : '[आउँदो] dddd[,] LT',
  12478. lastDay : '[हिजो] LT',
  12479. lastWeek : '[गएको] dddd[,] LT',
  12480. sameElse : 'L'
  12481. },
  12482. relativeTime : {
  12483. future : '%sमा',
  12484. past : '%s अगाडि',
  12485. s : 'केही क्षण',
  12486. m : 'एक मिनेट',
  12487. mm : '%d मिनेट',
  12488. h : 'एक घण्टा',
  12489. hh : '%d घण्टा',
  12490. d : 'एक दिन',
  12491. dd : '%d दिन',
  12492. M : 'एक महिना',
  12493. MM : '%d महिना',
  12494. y : 'एक बर्ष',
  12495. yy : '%d बर्ष'
  12496. },
  12497. week : {
  12498. dow : 0, // Sunday is the first day of the week.
  12499. doy : 6 // The week that contains Jan 1st is the first week of the year.
  12500. }
  12501. });
  12502. return ne;
  12503. })));
  12504. /***/ }),
  12505. /***/ "./node_modules/moment/locale/nl-be.js":
  12506. /*!*********************************************!*\
  12507. !*** ./node_modules/moment/locale/nl-be.js ***!
  12508. \*********************************************/
  12509. /*! no static exports found */
  12510. /***/ (function(module, exports, __webpack_require__) {
  12511. //! moment.js locale configuration
  12512. //! locale : Dutch (Belgium) [nl-be]
  12513. //! author : Joris Röling : https://github.com/jorisroling
  12514. //! author : Jacob Middag : https://github.com/middagj
  12515. ;(function (global, factory) {
  12516. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  12517. undefined
  12518. }(this, (function (moment) { 'use strict';
  12519. var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_');
  12520. var monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
  12521. var monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i];
  12522. var monthsRegex = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
  12523. var nlBe = moment.defineLocale('nl-be', {
  12524. months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
  12525. monthsShort : function (m, format) {
  12526. if (!m) {
  12527. return monthsShortWithDots;
  12528. } else if (/-MMM-/.test(format)) {
  12529. return monthsShortWithoutDots[m.month()];
  12530. } else {
  12531. return monthsShortWithDots[m.month()];
  12532. }
  12533. },
  12534. monthsRegex: monthsRegex,
  12535. monthsShortRegex: monthsRegex,
  12536. monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,
  12537. monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  12538. monthsParse : monthsParse,
  12539. longMonthsParse : monthsParse,
  12540. shortMonthsParse : monthsParse,
  12541. weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
  12542. weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'),
  12543. weekdaysMin : 'zo_ma_di_wo_do_vr_za'.split('_'),
  12544. weekdaysParseExact : true,
  12545. longDateFormat : {
  12546. LT : 'HH:mm',
  12547. LTS : 'HH:mm:ss',
  12548. L : 'DD/MM/YYYY',
  12549. LL : 'D MMMM YYYY',
  12550. LLL : 'D MMMM YYYY HH:mm',
  12551. LLLL : 'dddd D MMMM YYYY HH:mm'
  12552. },
  12553. calendar : {
  12554. sameDay: '[vandaag om] LT',
  12555. nextDay: '[morgen om] LT',
  12556. nextWeek: 'dddd [om] LT',
  12557. lastDay: '[gisteren om] LT',
  12558. lastWeek: '[afgelopen] dddd [om] LT',
  12559. sameElse: 'L'
  12560. },
  12561. relativeTime : {
  12562. future : 'over %s',
  12563. past : '%s geleden',
  12564. s : 'een paar seconden',
  12565. m : 'één minuut',
  12566. mm : '%d minuten',
  12567. h : 'één uur',
  12568. hh : '%d uur',
  12569. d : 'één dag',
  12570. dd : '%d dagen',
  12571. M : 'één maand',
  12572. MM : '%d maanden',
  12573. y : 'één jaar',
  12574. yy : '%d jaar'
  12575. },
  12576. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  12577. ordinal : function (number) {
  12578. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
  12579. },
  12580. week : {
  12581. dow : 1, // Monday is the first day of the week.
  12582. doy : 4 // The week that contains Jan 4th is the first week of the year.
  12583. }
  12584. });
  12585. return nlBe;
  12586. })));
  12587. /***/ }),
  12588. /***/ "./node_modules/moment/locale/nl.js":
  12589. /*!******************************************!*\
  12590. !*** ./node_modules/moment/locale/nl.js ***!
  12591. \******************************************/
  12592. /*! no static exports found */
  12593. /***/ (function(module, exports, __webpack_require__) {
  12594. //! moment.js locale configuration
  12595. //! locale : Dutch [nl]
  12596. //! author : Joris Röling : https://github.com/jorisroling
  12597. //! author : Jacob Middag : https://github.com/middagj
  12598. ;(function (global, factory) {
  12599. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  12600. undefined
  12601. }(this, (function (moment) { 'use strict';
  12602. var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_');
  12603. var monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
  12604. var monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i];
  12605. var monthsRegex = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
  12606. var nl = moment.defineLocale('nl', {
  12607. months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
  12608. monthsShort : function (m, format) {
  12609. if (!m) {
  12610. return monthsShortWithDots;
  12611. } else if (/-MMM-/.test(format)) {
  12612. return monthsShortWithoutDots[m.month()];
  12613. } else {
  12614. return monthsShortWithDots[m.month()];
  12615. }
  12616. },
  12617. monthsRegex: monthsRegex,
  12618. monthsShortRegex: monthsRegex,
  12619. monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,
  12620. monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  12621. monthsParse : monthsParse,
  12622. longMonthsParse : monthsParse,
  12623. shortMonthsParse : monthsParse,
  12624. weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
  12625. weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'),
  12626. weekdaysMin : 'zo_ma_di_wo_do_vr_za'.split('_'),
  12627. weekdaysParseExact : true,
  12628. longDateFormat : {
  12629. LT : 'HH:mm',
  12630. LTS : 'HH:mm:ss',
  12631. L : 'DD-MM-YYYY',
  12632. LL : 'D MMMM YYYY',
  12633. LLL : 'D MMMM YYYY HH:mm',
  12634. LLLL : 'dddd D MMMM YYYY HH:mm'
  12635. },
  12636. calendar : {
  12637. sameDay: '[vandaag om] LT',
  12638. nextDay: '[morgen om] LT',
  12639. nextWeek: 'dddd [om] LT',
  12640. lastDay: '[gisteren om] LT',
  12641. lastWeek: '[afgelopen] dddd [om] LT',
  12642. sameElse: 'L'
  12643. },
  12644. relativeTime : {
  12645. future : 'over %s',
  12646. past : '%s geleden',
  12647. s : 'een paar seconden',
  12648. m : 'één minuut',
  12649. mm : '%d minuten',
  12650. h : 'één uur',
  12651. hh : '%d uur',
  12652. d : 'één dag',
  12653. dd : '%d dagen',
  12654. M : 'één maand',
  12655. MM : '%d maanden',
  12656. y : 'één jaar',
  12657. yy : '%d jaar'
  12658. },
  12659. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  12660. ordinal : function (number) {
  12661. return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
  12662. },
  12663. week : {
  12664. dow : 1, // Monday is the first day of the week.
  12665. doy : 4 // The week that contains Jan 4th is the first week of the year.
  12666. }
  12667. });
  12668. return nl;
  12669. })));
  12670. /***/ }),
  12671. /***/ "./node_modules/moment/locale/nn.js":
  12672. /*!******************************************!*\
  12673. !*** ./node_modules/moment/locale/nn.js ***!
  12674. \******************************************/
  12675. /*! no static exports found */
  12676. /***/ (function(module, exports, __webpack_require__) {
  12677. //! moment.js locale configuration
  12678. //! locale : Nynorsk [nn]
  12679. //! author : https://github.com/mechuwind
  12680. ;(function (global, factory) {
  12681. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  12682. undefined
  12683. }(this, (function (moment) { 'use strict';
  12684. var nn = moment.defineLocale('nn', {
  12685. months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
  12686. monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
  12687. weekdays : 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
  12688. weekdaysShort : 'sun_mån_tys_ons_tor_fre_lau'.split('_'),
  12689. weekdaysMin : 'su_må_ty_on_to_fr_lø'.split('_'),
  12690. longDateFormat : {
  12691. LT : 'HH:mm',
  12692. LTS : 'HH:mm:ss',
  12693. L : 'DD.MM.YYYY',
  12694. LL : 'D. MMMM YYYY',
  12695. LLL : 'D. MMMM YYYY [kl.] H:mm',
  12696. LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'
  12697. },
  12698. calendar : {
  12699. sameDay: '[I dag klokka] LT',
  12700. nextDay: '[I morgon klokka] LT',
  12701. nextWeek: 'dddd [klokka] LT',
  12702. lastDay: '[I går klokka] LT',
  12703. lastWeek: '[Føregåande] dddd [klokka] LT',
  12704. sameElse: 'L'
  12705. },
  12706. relativeTime : {
  12707. future : 'om %s',
  12708. past : '%s sidan',
  12709. s : 'nokre sekund',
  12710. m : 'eit minutt',
  12711. mm : '%d minutt',
  12712. h : 'ein time',
  12713. hh : '%d timar',
  12714. d : 'ein dag',
  12715. dd : '%d dagar',
  12716. M : 'ein månad',
  12717. MM : '%d månader',
  12718. y : 'eit år',
  12719. yy : '%d år'
  12720. },
  12721. dayOfMonthOrdinalParse: /\d{1,2}\./,
  12722. ordinal : '%d.',
  12723. week : {
  12724. dow : 1, // Monday is the first day of the week.
  12725. doy : 4 // The week that contains Jan 4th is the first week of the year.
  12726. }
  12727. });
  12728. return nn;
  12729. })));
  12730. /***/ }),
  12731. /***/ "./node_modules/moment/locale/pa-in.js":
  12732. /*!*********************************************!*\
  12733. !*** ./node_modules/moment/locale/pa-in.js ***!
  12734. \*********************************************/
  12735. /*! no static exports found */
  12736. /***/ (function(module, exports, __webpack_require__) {
  12737. //! moment.js locale configuration
  12738. //! locale : Punjabi (India) [pa-in]
  12739. //! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit
  12740. ;(function (global, factory) {
  12741. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  12742. undefined
  12743. }(this, (function (moment) { 'use strict';
  12744. var symbolMap = {
  12745. '1': '੧',
  12746. '2': '੨',
  12747. '3': '੩',
  12748. '4': '੪',
  12749. '5': '੫',
  12750. '6': '੬',
  12751. '7': '੭',
  12752. '8': '੮',
  12753. '9': '੯',
  12754. '0': '੦'
  12755. };
  12756. var numberMap = {
  12757. '੧': '1',
  12758. '੨': '2',
  12759. '੩': '3',
  12760. '੪': '4',
  12761. '੫': '5',
  12762. '੬': '6',
  12763. '੭': '7',
  12764. '੮': '8',
  12765. '੯': '9',
  12766. '੦': '0'
  12767. };
  12768. var paIn = moment.defineLocale('pa-in', {
  12769. // There are months name as per Nanakshahi Calender but they are not used as rigidly in modern Punjabi.
  12770. months : 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
  12771. monthsShort : 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
  12772. weekdays : 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split('_'),
  12773. weekdaysShort : 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  12774. weekdaysMin : 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
  12775. longDateFormat : {
  12776. LT : 'A h:mm ਵਜੇ',
  12777. LTS : 'A h:mm:ss ਵਜੇ',
  12778. L : 'DD/MM/YYYY',
  12779. LL : 'D MMMM YYYY',
  12780. LLL : 'D MMMM YYYY, A h:mm ਵਜੇ',
  12781. LLLL : 'dddd, D MMMM YYYY, A h:mm ਵਜੇ'
  12782. },
  12783. calendar : {
  12784. sameDay : '[ਅਜ] LT',
  12785. nextDay : '[ਕਲ] LT',
  12786. nextWeek : 'dddd, LT',
  12787. lastDay : '[ਕਲ] LT',
  12788. lastWeek : '[ਪਿਛਲੇ] dddd, LT',
  12789. sameElse : 'L'
  12790. },
  12791. relativeTime : {
  12792. future : '%s ਵਿੱਚ',
  12793. past : '%s ਪਿਛਲੇ',
  12794. s : 'ਕੁਝ ਸਕਿੰਟ',
  12795. m : 'ਇਕ ਮਿੰਟ',
  12796. mm : '%d ਮਿੰਟ',
  12797. h : 'ਇੱਕ ਘੰਟਾ',
  12798. hh : '%d ਘੰਟੇ',
  12799. d : 'ਇੱਕ ਦਿਨ',
  12800. dd : '%d ਦਿਨ',
  12801. M : 'ਇੱਕ ਮਹੀਨਾ',
  12802. MM : '%d ਮਹੀਨੇ',
  12803. y : 'ਇੱਕ ਸਾਲ',
  12804. yy : '%d ਸਾਲ'
  12805. },
  12806. preparse: function (string) {
  12807. return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {
  12808. return numberMap[match];
  12809. });
  12810. },
  12811. postformat: function (string) {
  12812. return string.replace(/\d/g, function (match) {
  12813. return symbolMap[match];
  12814. });
  12815. },
  12816. // Punjabi notation for meridiems are quite fuzzy in practice. While there exists
  12817. // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
  12818. meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
  12819. meridiemHour : function (hour, meridiem) {
  12820. if (hour === 12) {
  12821. hour = 0;
  12822. }
  12823. if (meridiem === 'ਰਾਤ') {
  12824. return hour < 4 ? hour : hour + 12;
  12825. } else if (meridiem === 'ਸਵੇਰ') {
  12826. return hour;
  12827. } else if (meridiem === 'ਦੁਪਹਿਰ') {
  12828. return hour >= 10 ? hour : hour + 12;
  12829. } else if (meridiem === 'ਸ਼ਾਮ') {
  12830. return hour + 12;
  12831. }
  12832. },
  12833. meridiem : function (hour, minute, isLower) {
  12834. if (hour < 4) {
  12835. return 'ਰਾਤ';
  12836. } else if (hour < 10) {
  12837. return 'ਸਵੇਰ';
  12838. } else if (hour < 17) {
  12839. return 'ਦੁਪਹਿਰ';
  12840. } else if (hour < 20) {
  12841. return 'ਸ਼ਾਮ';
  12842. } else {
  12843. return 'ਰਾਤ';
  12844. }
  12845. },
  12846. week : {
  12847. dow : 0, // Sunday is the first day of the week.
  12848. doy : 6 // The week that contains Jan 1st is the first week of the year.
  12849. }
  12850. });
  12851. return paIn;
  12852. })));
  12853. /***/ }),
  12854. /***/ "./node_modules/moment/locale/pl.js":
  12855. /*!******************************************!*\
  12856. !*** ./node_modules/moment/locale/pl.js ***!
  12857. \******************************************/
  12858. /*! no static exports found */
  12859. /***/ (function(module, exports, __webpack_require__) {
  12860. //! moment.js locale configuration
  12861. //! locale : Polish [pl]
  12862. //! author : Rafal Hirsz : https://github.com/evoL
  12863. ;(function (global, factory) {
  12864. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  12865. undefined
  12866. }(this, (function (moment) { 'use strict';
  12867. var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_');
  12868. var monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_');
  12869. function plural(n) {
  12870. return (n % 10 < 5) && (n % 10 > 1) && ((~~(n / 10) % 10) !== 1);
  12871. }
  12872. function translate(number, withoutSuffix, key) {
  12873. var result = number + ' ';
  12874. switch (key) {
  12875. case 'm':
  12876. return withoutSuffix ? 'minuta' : 'minutę';
  12877. case 'mm':
  12878. return result + (plural(number) ? 'minuty' : 'minut');
  12879. case 'h':
  12880. return withoutSuffix ? 'godzina' : 'godzinę';
  12881. case 'hh':
  12882. return result + (plural(number) ? 'godziny' : 'godzin');
  12883. case 'MM':
  12884. return result + (plural(number) ? 'miesiące' : 'miesięcy');
  12885. case 'yy':
  12886. return result + (plural(number) ? 'lata' : 'lat');
  12887. }
  12888. }
  12889. var pl = moment.defineLocale('pl', {
  12890. months : function (momentToFormat, format) {
  12891. if (!momentToFormat) {
  12892. return monthsNominative;
  12893. } else if (format === '') {
  12894. // Hack: if format empty we know this is used to generate
  12895. // RegExp by moment. Give then back both valid forms of months
  12896. // in RegExp ready format.
  12897. return '(' + monthsSubjective[momentToFormat.month()] + '|' + monthsNominative[momentToFormat.month()] + ')';
  12898. } else if (/D MMMM/.test(format)) {
  12899. return monthsSubjective[momentToFormat.month()];
  12900. } else {
  12901. return monthsNominative[momentToFormat.month()];
  12902. }
  12903. },
  12904. monthsShort : 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
  12905. weekdays : 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
  12906. weekdaysShort : 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),
  12907. weekdaysMin : 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
  12908. longDateFormat : {
  12909. LT : 'HH:mm',
  12910. LTS : 'HH:mm:ss',
  12911. L : 'DD.MM.YYYY',
  12912. LL : 'D MMMM YYYY',
  12913. LLL : 'D MMMM YYYY HH:mm',
  12914. LLLL : 'dddd, D MMMM YYYY HH:mm'
  12915. },
  12916. calendar : {
  12917. sameDay: '[Dziś o] LT',
  12918. nextDay: '[Jutro o] LT',
  12919. nextWeek: function () {
  12920. switch (this.day()) {
  12921. case 0:
  12922. return '[W niedzielę o] LT';
  12923. case 2:
  12924. return '[We wtorek o] LT';
  12925. case 3:
  12926. return '[W środę o] LT';
  12927. case 6:
  12928. return '[W sobotę o] LT';
  12929. default:
  12930. return '[W] dddd [o] LT';
  12931. }
  12932. },
  12933. lastDay: '[Wczoraj o] LT',
  12934. lastWeek: function () {
  12935. switch (this.day()) {
  12936. case 0:
  12937. return '[W zeszłą niedzielę o] LT';
  12938. case 3:
  12939. return '[W zeszłą środę o] LT';
  12940. case 6:
  12941. return '[W zeszłą sobotę o] LT';
  12942. default:
  12943. return '[W zeszły] dddd [o] LT';
  12944. }
  12945. },
  12946. sameElse: 'L'
  12947. },
  12948. relativeTime : {
  12949. future : 'za %s',
  12950. past : '%s temu',
  12951. s : 'kilka sekund',
  12952. m : translate,
  12953. mm : translate,
  12954. h : translate,
  12955. hh : translate,
  12956. d : '1 dzień',
  12957. dd : '%d dni',
  12958. M : 'miesiąc',
  12959. MM : translate,
  12960. y : 'rok',
  12961. yy : translate
  12962. },
  12963. dayOfMonthOrdinalParse: /\d{1,2}\./,
  12964. ordinal : '%d.',
  12965. week : {
  12966. dow : 1, // Monday is the first day of the week.
  12967. doy : 4 // The week that contains Jan 4th is the first week of the year.
  12968. }
  12969. });
  12970. return pl;
  12971. })));
  12972. /***/ }),
  12973. /***/ "./node_modules/moment/locale/pt-br.js":
  12974. /*!*********************************************!*\
  12975. !*** ./node_modules/moment/locale/pt-br.js ***!
  12976. \*********************************************/
  12977. /*! no static exports found */
  12978. /***/ (function(module, exports, __webpack_require__) {
  12979. //! moment.js locale configuration
  12980. //! locale : Portuguese (Brazil) [pt-br]
  12981. //! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira
  12982. ;(function (global, factory) {
  12983. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  12984. undefined
  12985. }(this, (function (moment) { 'use strict';
  12986. var ptBr = moment.defineLocale('pt-br', {
  12987. months : 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
  12988. monthsShort : 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
  12989. weekdays : 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
  12990. weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
  12991. weekdaysMin : 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
  12992. weekdaysParseExact : true,
  12993. longDateFormat : {
  12994. LT : 'HH:mm',
  12995. LTS : 'HH:mm:ss',
  12996. L : 'DD/MM/YYYY',
  12997. LL : 'D [de] MMMM [de] YYYY',
  12998. LLL : 'D [de] MMMM [de] YYYY [às] HH:mm',
  12999. LLLL : 'dddd, D [de] MMMM [de] YYYY [às] HH:mm'
  13000. },
  13001. calendar : {
  13002. sameDay: '[Hoje às] LT',
  13003. nextDay: '[Amanhã às] LT',
  13004. nextWeek: 'dddd [às] LT',
  13005. lastDay: '[Ontem às] LT',
  13006. lastWeek: function () {
  13007. return (this.day() === 0 || this.day() === 6) ?
  13008. '[Último] dddd [às] LT' : // Saturday + Sunday
  13009. '[Última] dddd [às] LT'; // Monday - Friday
  13010. },
  13011. sameElse: 'L'
  13012. },
  13013. relativeTime : {
  13014. future : 'em %s',
  13015. past : '%s atrás',
  13016. s : 'poucos segundos',
  13017. ss : '%d segundos',
  13018. m : 'um minuto',
  13019. mm : '%d minutos',
  13020. h : 'uma hora',
  13021. hh : '%d horas',
  13022. d : 'um dia',
  13023. dd : '%d dias',
  13024. M : 'um mês',
  13025. MM : '%d meses',
  13026. y : 'um ano',
  13027. yy : '%d anos'
  13028. },
  13029. dayOfMonthOrdinalParse: /\d{1,2}º/,
  13030. ordinal : '%dº'
  13031. });
  13032. return ptBr;
  13033. })));
  13034. /***/ }),
  13035. /***/ "./node_modules/moment/locale/pt.js":
  13036. /*!******************************************!*\
  13037. !*** ./node_modules/moment/locale/pt.js ***!
  13038. \******************************************/
  13039. /*! no static exports found */
  13040. /***/ (function(module, exports, __webpack_require__) {
  13041. //! moment.js locale configuration
  13042. //! locale : Portuguese [pt]
  13043. //! author : Jefferson : https://github.com/jalex79
  13044. ;(function (global, factory) {
  13045. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  13046. undefined
  13047. }(this, (function (moment) { 'use strict';
  13048. var pt = moment.defineLocale('pt', {
  13049. months : 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
  13050. monthsShort : 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
  13051. weekdays : 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
  13052. weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
  13053. weekdaysMin : 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
  13054. weekdaysParseExact : true,
  13055. longDateFormat : {
  13056. LT : 'HH:mm',
  13057. LTS : 'HH:mm:ss',
  13058. L : 'DD/MM/YYYY',
  13059. LL : 'D [de] MMMM [de] YYYY',
  13060. LLL : 'D [de] MMMM [de] YYYY HH:mm',
  13061. LLLL : 'dddd, D [de] MMMM [de] YYYY HH:mm'
  13062. },
  13063. calendar : {
  13064. sameDay: '[Hoje às] LT',
  13065. nextDay: '[Amanhã às] LT',
  13066. nextWeek: 'dddd [às] LT',
  13067. lastDay: '[Ontem às] LT',
  13068. lastWeek: function () {
  13069. return (this.day() === 0 || this.day() === 6) ?
  13070. '[Último] dddd [às] LT' : // Saturday + Sunday
  13071. '[Última] dddd [às] LT'; // Monday - Friday
  13072. },
  13073. sameElse: 'L'
  13074. },
  13075. relativeTime : {
  13076. future : 'em %s',
  13077. past : 'há %s',
  13078. s : 'segundos',
  13079. m : 'um minuto',
  13080. mm : '%d minutos',
  13081. h : 'uma hora',
  13082. hh : '%d horas',
  13083. d : 'um dia',
  13084. dd : '%d dias',
  13085. M : 'um mês',
  13086. MM : '%d meses',
  13087. y : 'um ano',
  13088. yy : '%d anos'
  13089. },
  13090. dayOfMonthOrdinalParse: /\d{1,2}º/,
  13091. ordinal : '%dº',
  13092. week : {
  13093. dow : 1, // Monday is the first day of the week.
  13094. doy : 4 // The week that contains Jan 4th is the first week of the year.
  13095. }
  13096. });
  13097. return pt;
  13098. })));
  13099. /***/ }),
  13100. /***/ "./node_modules/moment/locale/ro.js":
  13101. /*!******************************************!*\
  13102. !*** ./node_modules/moment/locale/ro.js ***!
  13103. \******************************************/
  13104. /*! no static exports found */
  13105. /***/ (function(module, exports, __webpack_require__) {
  13106. //! moment.js locale configuration
  13107. //! locale : Romanian [ro]
  13108. //! author : Vlad Gurdiga : https://github.com/gurdiga
  13109. //! author : Valentin Agachi : https://github.com/avaly
  13110. ;(function (global, factory) {
  13111. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  13112. undefined
  13113. }(this, (function (moment) { 'use strict';
  13114. function relativeTimeWithPlural(number, withoutSuffix, key) {
  13115. var format = {
  13116. 'mm': 'minute',
  13117. 'hh': 'ore',
  13118. 'dd': 'zile',
  13119. 'MM': 'luni',
  13120. 'yy': 'ani'
  13121. },
  13122. separator = ' ';
  13123. if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
  13124. separator = ' de ';
  13125. }
  13126. return number + separator + format[key];
  13127. }
  13128. var ro = moment.defineLocale('ro', {
  13129. months : 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),
  13130. monthsShort : 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),
  13131. monthsParseExact: true,
  13132. weekdays : 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
  13133. weekdaysShort : 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
  13134. weekdaysMin : 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
  13135. longDateFormat : {
  13136. LT : 'H:mm',
  13137. LTS : 'H:mm:ss',
  13138. L : 'DD.MM.YYYY',
  13139. LL : 'D MMMM YYYY',
  13140. LLL : 'D MMMM YYYY H:mm',
  13141. LLLL : 'dddd, D MMMM YYYY H:mm'
  13142. },
  13143. calendar : {
  13144. sameDay: '[azi la] LT',
  13145. nextDay: '[mâine la] LT',
  13146. nextWeek: 'dddd [la] LT',
  13147. lastDay: '[ieri la] LT',
  13148. lastWeek: '[fosta] dddd [la] LT',
  13149. sameElse: 'L'
  13150. },
  13151. relativeTime : {
  13152. future : 'peste %s',
  13153. past : '%s în urmă',
  13154. s : 'câteva secunde',
  13155. m : 'un minut',
  13156. mm : relativeTimeWithPlural,
  13157. h : 'o oră',
  13158. hh : relativeTimeWithPlural,
  13159. d : 'o zi',
  13160. dd : relativeTimeWithPlural,
  13161. M : 'o lună',
  13162. MM : relativeTimeWithPlural,
  13163. y : 'un an',
  13164. yy : relativeTimeWithPlural
  13165. },
  13166. week : {
  13167. dow : 1, // Monday is the first day of the week.
  13168. doy : 7 // The week that contains Jan 1st is the first week of the year.
  13169. }
  13170. });
  13171. return ro;
  13172. })));
  13173. /***/ }),
  13174. /***/ "./node_modules/moment/locale/ru.js":
  13175. /*!******************************************!*\
  13176. !*** ./node_modules/moment/locale/ru.js ***!
  13177. \******************************************/
  13178. /*! no static exports found */
  13179. /***/ (function(module, exports, __webpack_require__) {
  13180. //! moment.js locale configuration
  13181. //! locale : Russian [ru]
  13182. //! author : Viktorminator : https://github.com/Viktorminator
  13183. //! Author : Menelion Elensúle : https://github.com/Oire
  13184. //! author : Коренберг Марк : https://github.com/socketpair
  13185. ;(function (global, factory) {
  13186. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  13187. undefined
  13188. }(this, (function (moment) { 'use strict';
  13189. function plural(word, num) {
  13190. var forms = word.split('_');
  13191. 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]);
  13192. }
  13193. function relativeTimeWithPlural(number, withoutSuffix, key) {
  13194. var format = {
  13195. 'mm': withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут',
  13196. 'hh': 'час_часа_часов',
  13197. 'dd': 'день_дня_дней',
  13198. 'MM': 'месяц_месяца_месяцев',
  13199. 'yy': 'год_года_лет'
  13200. };
  13201. if (key === 'm') {
  13202. return withoutSuffix ? 'минута' : 'минуту';
  13203. }
  13204. else {
  13205. return number + ' ' + plural(format[key], +number);
  13206. }
  13207. }
  13208. var monthsParse = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i];
  13209. // http://new.gramota.ru/spravka/rules/139-prop : § 103
  13210. // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
  13211. // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
  13212. var ru = moment.defineLocale('ru', {
  13213. months : {
  13214. format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_'),
  13215. standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_')
  13216. },
  13217. monthsShort : {
  13218. // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку ?
  13219. format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split('_'),
  13220. standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split('_')
  13221. },
  13222. weekdays : {
  13223. standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),
  13224. format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_'),
  13225. isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/
  13226. },
  13227. weekdaysShort : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  13228. weekdaysMin : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
  13229. monthsParse : monthsParse,
  13230. longMonthsParse : monthsParse,
  13231. shortMonthsParse : monthsParse,
  13232. // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
  13233. monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  13234. // копия предыдущего
  13235. monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  13236. // полные названия с падежами
  13237. monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,
  13238. // Выражение, которое соотвествует только сокращённым формам
  13239. monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
  13240. longDateFormat : {
  13241. LT : 'HH:mm',
  13242. LTS : 'HH:mm:ss',
  13243. L : 'DD.MM.YYYY',
  13244. LL : 'D MMMM YYYY г.',
  13245. LLL : 'D MMMM YYYY г., HH:mm',
  13246. LLLL : 'dddd, D MMMM YYYY г., HH:mm'
  13247. },
  13248. calendar : {
  13249. sameDay: '[Сегодня в] LT',
  13250. nextDay: '[Завтра в] LT',
  13251. lastDay: '[Вчера в] LT',
  13252. nextWeek: function (now) {
  13253. if (now.week() !== this.week()) {
  13254. switch (this.day()) {
  13255. case 0:
  13256. return '[В следующее] dddd [в] LT';
  13257. case 1:
  13258. case 2:
  13259. case 4:
  13260. return '[В следующий] dddd [в] LT';
  13261. case 3:
  13262. case 5:
  13263. case 6:
  13264. return '[В следующую] dddd [в] LT';
  13265. }
  13266. } else {
  13267. if (this.day() === 2) {
  13268. return '[Во] dddd [в] LT';
  13269. } else {
  13270. return '[В] dddd [в] LT';
  13271. }
  13272. }
  13273. },
  13274. lastWeek: function (now) {
  13275. if (now.week() !== this.week()) {
  13276. switch (this.day()) {
  13277. case 0:
  13278. return '[В прошлое] dddd [в] LT';
  13279. case 1:
  13280. case 2:
  13281. case 4:
  13282. return '[В прошлый] dddd [в] LT';
  13283. case 3:
  13284. case 5:
  13285. case 6:
  13286. return '[В прошлую] dddd [в] LT';
  13287. }
  13288. } else {
  13289. if (this.day() === 2) {
  13290. return '[Во] dddd [в] LT';
  13291. } else {
  13292. return '[В] dddd [в] LT';
  13293. }
  13294. }
  13295. },
  13296. sameElse: 'L'
  13297. },
  13298. relativeTime : {
  13299. future : 'через %s',
  13300. past : '%s назад',
  13301. s : 'несколько секунд',
  13302. m : relativeTimeWithPlural,
  13303. mm : relativeTimeWithPlural,
  13304. h : 'час',
  13305. hh : relativeTimeWithPlural,
  13306. d : 'день',
  13307. dd : relativeTimeWithPlural,
  13308. M : 'месяц',
  13309. MM : relativeTimeWithPlural,
  13310. y : 'год',
  13311. yy : relativeTimeWithPlural
  13312. },
  13313. meridiemParse: /ночи|утра|дня|вечера/i,
  13314. isPM : function (input) {
  13315. return /^(дня|вечера)$/.test(input);
  13316. },
  13317. meridiem : function (hour, minute, isLower) {
  13318. if (hour < 4) {
  13319. return 'ночи';
  13320. } else if (hour < 12) {
  13321. return 'утра';
  13322. } else if (hour < 17) {
  13323. return 'дня';
  13324. } else {
  13325. return 'вечера';
  13326. }
  13327. },
  13328. dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/,
  13329. ordinal: function (number, period) {
  13330. switch (period) {
  13331. case 'M':
  13332. case 'd':
  13333. case 'DDD':
  13334. return number + '-й';
  13335. case 'D':
  13336. return number + '-го';
  13337. case 'w':
  13338. case 'W':
  13339. return number + '-я';
  13340. default:
  13341. return number;
  13342. }
  13343. },
  13344. week : {
  13345. dow : 1, // Monday is the first day of the week.
  13346. doy : 4 // The week that contains Jan 4th is the first week of the year.
  13347. }
  13348. });
  13349. return ru;
  13350. })));
  13351. /***/ }),
  13352. /***/ "./node_modules/moment/locale/sd.js":
  13353. /*!******************************************!*\
  13354. !*** ./node_modules/moment/locale/sd.js ***!
  13355. \******************************************/
  13356. /*! no static exports found */
  13357. /***/ (function(module, exports, __webpack_require__) {
  13358. //! moment.js locale configuration
  13359. //! locale : Sindhi [sd]
  13360. //! author : Narain Sagar : https://github.com/narainsagar
  13361. ;(function (global, factory) {
  13362. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  13363. undefined
  13364. }(this, (function (moment) { 'use strict';
  13365. var months = [
  13366. 'جنوري',
  13367. 'فيبروري',
  13368. 'مارچ',
  13369. 'اپريل',
  13370. 'مئي',
  13371. 'جون',
  13372. 'جولاءِ',
  13373. 'آگسٽ',
  13374. 'سيپٽمبر',
  13375. 'آڪٽوبر',
  13376. 'نومبر',
  13377. 'ڊسمبر'
  13378. ];
  13379. var days = [
  13380. 'آچر',
  13381. 'سومر',
  13382. 'اڱارو',
  13383. 'اربع',
  13384. 'خميس',
  13385. 'جمع',
  13386. 'ڇنڇر'
  13387. ];
  13388. var sd = moment.defineLocale('sd', {
  13389. months : months,
  13390. monthsShort : months,
  13391. weekdays : days,
  13392. weekdaysShort : days,
  13393. weekdaysMin : days,
  13394. longDateFormat : {
  13395. LT : 'HH:mm',
  13396. LTS : 'HH:mm:ss',
  13397. L : 'DD/MM/YYYY',
  13398. LL : 'D MMMM YYYY',
  13399. LLL : 'D MMMM YYYY HH:mm',
  13400. LLLL : 'dddd، D MMMM YYYY HH:mm'
  13401. },
  13402. meridiemParse: /صبح|شام/,
  13403. isPM : function (input) {
  13404. return 'شام' === input;
  13405. },
  13406. meridiem : function (hour, minute, isLower) {
  13407. if (hour < 12) {
  13408. return 'صبح';
  13409. }
  13410. return 'شام';
  13411. },
  13412. calendar : {
  13413. sameDay : '[اڄ] LT',
  13414. nextDay : '[سڀاڻي] LT',
  13415. nextWeek : 'dddd [اڳين هفتي تي] LT',
  13416. lastDay : '[ڪالهه] LT',
  13417. lastWeek : '[گزريل هفتي] dddd [تي] LT',
  13418. sameElse : 'L'
  13419. },
  13420. relativeTime : {
  13421. future : '%s پوء',
  13422. past : '%s اڳ',
  13423. s : 'چند سيڪنڊ',
  13424. m : 'هڪ منٽ',
  13425. mm : '%d منٽ',
  13426. h : 'هڪ ڪلاڪ',
  13427. hh : '%d ڪلاڪ',
  13428. d : 'هڪ ڏينهن',
  13429. dd : '%d ڏينهن',
  13430. M : 'هڪ مهينو',
  13431. MM : '%d مهينا',
  13432. y : 'هڪ سال',
  13433. yy : '%d سال'
  13434. },
  13435. preparse: function (string) {
  13436. return string.replace(/،/g, ',');
  13437. },
  13438. postformat: function (string) {
  13439. return string.replace(/,/g, '،');
  13440. },
  13441. week : {
  13442. dow : 1, // Monday is the first day of the week.
  13443. doy : 4 // The week that contains Jan 4th is the first week of the year.
  13444. }
  13445. });
  13446. return sd;
  13447. })));
  13448. /***/ }),
  13449. /***/ "./node_modules/moment/locale/se.js":
  13450. /*!******************************************!*\
  13451. !*** ./node_modules/moment/locale/se.js ***!
  13452. \******************************************/
  13453. /*! no static exports found */
  13454. /***/ (function(module, exports, __webpack_require__) {
  13455. //! moment.js locale configuration
  13456. //! locale : Northern Sami [se]
  13457. //! authors : Bård Rolstad Henriksen : https://github.com/karamell
  13458. ;(function (global, factory) {
  13459. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  13460. undefined
  13461. }(this, (function (moment) { 'use strict';
  13462. var se = moment.defineLocale('se', {
  13463. 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('_'),
  13464. monthsShort : 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split('_'),
  13465. weekdays : 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split('_'),
  13466. weekdaysShort : 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'),
  13467. weekdaysMin : 's_v_m_g_d_b_L'.split('_'),
  13468. longDateFormat : {
  13469. LT : 'HH:mm',
  13470. LTS : 'HH:mm:ss',
  13471. L : 'DD.MM.YYYY',
  13472. LL : 'MMMM D. [b.] YYYY',
  13473. LLL : 'MMMM D. [b.] YYYY [ti.] HH:mm',
  13474. LLLL : 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm'
  13475. },
  13476. calendar : {
  13477. sameDay: '[otne ti] LT',
  13478. nextDay: '[ihttin ti] LT',
  13479. nextWeek: 'dddd [ti] LT',
  13480. lastDay: '[ikte ti] LT',
  13481. lastWeek: '[ovddit] dddd [ti] LT',
  13482. sameElse: 'L'
  13483. },
  13484. relativeTime : {
  13485. future : '%s geažes',
  13486. past : 'maŋit %s',
  13487. s : 'moadde sekunddat',
  13488. m : 'okta minuhta',
  13489. mm : '%d minuhtat',
  13490. h : 'okta diimmu',
  13491. hh : '%d diimmut',
  13492. d : 'okta beaivi',
  13493. dd : '%d beaivvit',
  13494. M : 'okta mánnu',
  13495. MM : '%d mánut',
  13496. y : 'okta jahki',
  13497. yy : '%d jagit'
  13498. },
  13499. dayOfMonthOrdinalParse: /\d{1,2}\./,
  13500. ordinal : '%d.',
  13501. week : {
  13502. dow : 1, // Monday is the first day of the week.
  13503. doy : 4 // The week that contains Jan 4th is the first week of the year.
  13504. }
  13505. });
  13506. return se;
  13507. })));
  13508. /***/ }),
  13509. /***/ "./node_modules/moment/locale/si.js":
  13510. /*!******************************************!*\
  13511. !*** ./node_modules/moment/locale/si.js ***!
  13512. \******************************************/
  13513. /*! no static exports found */
  13514. /***/ (function(module, exports, __webpack_require__) {
  13515. //! moment.js locale configuration
  13516. //! locale : Sinhalese [si]
  13517. //! author : Sampath Sitinamaluwa : https://github.com/sampathsris
  13518. ;(function (global, factory) {
  13519. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  13520. undefined
  13521. }(this, (function (moment) { 'use strict';
  13522. /*jshint -W100*/
  13523. var si = moment.defineLocale('si', {
  13524. months : 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'),
  13525. monthsShort : 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'),
  13526. weekdays : 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'),
  13527. weekdaysShort : 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'),
  13528. weekdaysMin : 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'),
  13529. weekdaysParseExact : true,
  13530. longDateFormat : {
  13531. LT : 'a h:mm',
  13532. LTS : 'a h:mm:ss',
  13533. L : 'YYYY/MM/DD',
  13534. LL : 'YYYY MMMM D',
  13535. LLL : 'YYYY MMMM D, a h:mm',
  13536. LLLL : 'YYYY MMMM D [වැනි] dddd, a h:mm:ss'
  13537. },
  13538. calendar : {
  13539. sameDay : '[අද] LT[ට]',
  13540. nextDay : '[හෙට] LT[ට]',
  13541. nextWeek : 'dddd LT[ට]',
  13542. lastDay : '[ඊයේ] LT[ට]',
  13543. lastWeek : '[පසුගිය] dddd LT[ට]',
  13544. sameElse : 'L'
  13545. },
  13546. relativeTime : {
  13547. future : '%sකින්',
  13548. past : '%sකට පෙර',
  13549. s : 'තත්පර කිහිපය',
  13550. m : 'මිනිත්තුව',
  13551. mm : 'මිනිත්තු %d',
  13552. h : 'පැය',
  13553. hh : 'පැය %d',
  13554. d : 'දිනය',
  13555. dd : 'දින %d',
  13556. M : 'මාසය',
  13557. MM : 'මාස %d',
  13558. y : 'වසර',
  13559. yy : 'වසර %d'
  13560. },
  13561. dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
  13562. ordinal : function (number) {
  13563. return number + ' වැනි';
  13564. },
  13565. meridiemParse : /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
  13566. isPM : function (input) {
  13567. return input === 'ප.ව.' || input === 'පස් වරු';
  13568. },
  13569. meridiem : function (hours, minutes, isLower) {
  13570. if (hours > 11) {
  13571. return isLower ? 'ප.ව.' : 'පස් වරු';
  13572. } else {
  13573. return isLower ? 'පෙ.ව.' : 'පෙර වරු';
  13574. }
  13575. }
  13576. });
  13577. return si;
  13578. })));
  13579. /***/ }),
  13580. /***/ "./node_modules/moment/locale/sk.js":
  13581. /*!******************************************!*\
  13582. !*** ./node_modules/moment/locale/sk.js ***!
  13583. \******************************************/
  13584. /*! no static exports found */
  13585. /***/ (function(module, exports, __webpack_require__) {
  13586. //! moment.js locale configuration
  13587. //! locale : Slovak [sk]
  13588. //! author : Martin Minka : https://github.com/k2s
  13589. //! based on work of petrbela : https://github.com/petrbela
  13590. ;(function (global, factory) {
  13591. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  13592. undefined
  13593. }(this, (function (moment) { 'use strict';
  13594. var months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_');
  13595. var monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_');
  13596. function plural(n) {
  13597. return (n > 1) && (n < 5);
  13598. }
  13599. function translate(number, withoutSuffix, key, isFuture) {
  13600. var result = number + ' ';
  13601. switch (key) {
  13602. case 's': // a few seconds / in a few seconds / a few seconds ago
  13603. return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami';
  13604. case 'm': // a minute / in a minute / a minute ago
  13605. return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou');
  13606. case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
  13607. if (withoutSuffix || isFuture) {
  13608. return result + (plural(number) ? 'minúty' : 'minút');
  13609. } else {
  13610. return result + 'minútami';
  13611. }
  13612. break;
  13613. case 'h': // an hour / in an hour / an hour ago
  13614. return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
  13615. case 'hh': // 9 hours / in 9 hours / 9 hours ago
  13616. if (withoutSuffix || isFuture) {
  13617. return result + (plural(number) ? 'hodiny' : 'hodín');
  13618. } else {
  13619. return result + 'hodinami';
  13620. }
  13621. break;
  13622. case 'd': // a day / in a day / a day ago
  13623. return (withoutSuffix || isFuture) ? 'deň' : 'dňom';
  13624. case 'dd': // 9 days / in 9 days / 9 days ago
  13625. if (withoutSuffix || isFuture) {
  13626. return result + (plural(number) ? 'dni' : 'dní');
  13627. } else {
  13628. return result + 'dňami';
  13629. }
  13630. break;
  13631. case 'M': // a month / in a month / a month ago
  13632. return (withoutSuffix || isFuture) ? 'mesiac' : 'mesiacom';
  13633. case 'MM': // 9 months / in 9 months / 9 months ago
  13634. if (withoutSuffix || isFuture) {
  13635. return result + (plural(number) ? 'mesiace' : 'mesiacov');
  13636. } else {
  13637. return result + 'mesiacmi';
  13638. }
  13639. break;
  13640. case 'y': // a year / in a year / a year ago
  13641. return (withoutSuffix || isFuture) ? 'rok' : 'rokom';
  13642. case 'yy': // 9 years / in 9 years / 9 years ago
  13643. if (withoutSuffix || isFuture) {
  13644. return result + (plural(number) ? 'roky' : 'rokov');
  13645. } else {
  13646. return result + 'rokmi';
  13647. }
  13648. break;
  13649. }
  13650. }
  13651. var sk = moment.defineLocale('sk', {
  13652. months : months,
  13653. monthsShort : monthsShort,
  13654. weekdays : 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'),
  13655. weekdaysShort : 'ne_po_ut_st_št_pi_so'.split('_'),
  13656. weekdaysMin : 'ne_po_ut_st_št_pi_so'.split('_'),
  13657. longDateFormat : {
  13658. LT: 'H:mm',
  13659. LTS : 'H:mm:ss',
  13660. L : 'DD.MM.YYYY',
  13661. LL : 'D. MMMM YYYY',
  13662. LLL : 'D. MMMM YYYY H:mm',
  13663. LLLL : 'dddd D. MMMM YYYY H:mm'
  13664. },
  13665. calendar : {
  13666. sameDay: '[dnes o] LT',
  13667. nextDay: '[zajtra o] LT',
  13668. nextWeek: function () {
  13669. switch (this.day()) {
  13670. case 0:
  13671. return '[v nedeľu o] LT';
  13672. case 1:
  13673. case 2:
  13674. return '[v] dddd [o] LT';
  13675. case 3:
  13676. return '[v stredu o] LT';
  13677. case 4:
  13678. return '[vo štvrtok o] LT';
  13679. case 5:
  13680. return '[v piatok o] LT';
  13681. case 6:
  13682. return '[v sobotu o] LT';
  13683. }
  13684. },
  13685. lastDay: '[včera o] LT',
  13686. lastWeek: function () {
  13687. switch (this.day()) {
  13688. case 0:
  13689. return '[minulú nedeľu o] LT';
  13690. case 1:
  13691. case 2:
  13692. return '[minulý] dddd [o] LT';
  13693. case 3:
  13694. return '[minulú stredu o] LT';
  13695. case 4:
  13696. case 5:
  13697. return '[minulý] dddd [o] LT';
  13698. case 6:
  13699. return '[minulú sobotu o] LT';
  13700. }
  13701. },
  13702. sameElse: 'L'
  13703. },
  13704. relativeTime : {
  13705. future : 'za %s',
  13706. past : 'pred %s',
  13707. s : translate,
  13708. m : translate,
  13709. mm : translate,
  13710. h : translate,
  13711. hh : translate,
  13712. d : translate,
  13713. dd : translate,
  13714. M : translate,
  13715. MM : translate,
  13716. y : translate,
  13717. yy : translate
  13718. },
  13719. dayOfMonthOrdinalParse: /\d{1,2}\./,
  13720. ordinal : '%d.',
  13721. week : {
  13722. dow : 1, // Monday is the first day of the week.
  13723. doy : 4 // The week that contains Jan 4th is the first week of the year.
  13724. }
  13725. });
  13726. return sk;
  13727. })));
  13728. /***/ }),
  13729. /***/ "./node_modules/moment/locale/sl.js":
  13730. /*!******************************************!*\
  13731. !*** ./node_modules/moment/locale/sl.js ***!
  13732. \******************************************/
  13733. /*! no static exports found */
  13734. /***/ (function(module, exports, __webpack_require__) {
  13735. //! moment.js locale configuration
  13736. //! locale : Slovenian [sl]
  13737. //! author : Robert Sedovšek : https://github.com/sedovsek
  13738. ;(function (global, factory) {
  13739. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  13740. undefined
  13741. }(this, (function (moment) { 'use strict';
  13742. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  13743. var result = number + ' ';
  13744. switch (key) {
  13745. case 's':
  13746. return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';
  13747. case 'm':
  13748. return withoutSuffix ? 'ena minuta' : 'eno minuto';
  13749. case 'mm':
  13750. if (number === 1) {
  13751. result += withoutSuffix ? 'minuta' : 'minuto';
  13752. } else if (number === 2) {
  13753. result += withoutSuffix || isFuture ? 'minuti' : 'minutama';
  13754. } else if (number < 5) {
  13755. result += withoutSuffix || isFuture ? 'minute' : 'minutami';
  13756. } else {
  13757. result += withoutSuffix || isFuture ? 'minut' : 'minutami';
  13758. }
  13759. return result;
  13760. case 'h':
  13761. return withoutSuffix ? 'ena ura' : 'eno uro';
  13762. case 'hh':
  13763. if (number === 1) {
  13764. result += withoutSuffix ? 'ura' : 'uro';
  13765. } else if (number === 2) {
  13766. result += withoutSuffix || isFuture ? 'uri' : 'urama';
  13767. } else if (number < 5) {
  13768. result += withoutSuffix || isFuture ? 'ure' : 'urami';
  13769. } else {
  13770. result += withoutSuffix || isFuture ? 'ur' : 'urami';
  13771. }
  13772. return result;
  13773. case 'd':
  13774. return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
  13775. case 'dd':
  13776. if (number === 1) {
  13777. result += withoutSuffix || isFuture ? 'dan' : 'dnem';
  13778. } else if (number === 2) {
  13779. result += withoutSuffix || isFuture ? 'dni' : 'dnevoma';
  13780. } else {
  13781. result += withoutSuffix || isFuture ? 'dni' : 'dnevi';
  13782. }
  13783. return result;
  13784. case 'M':
  13785. return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
  13786. case 'MM':
  13787. if (number === 1) {
  13788. result += withoutSuffix || isFuture ? 'mesec' : 'mesecem';
  13789. } else if (number === 2) {
  13790. result += withoutSuffix || isFuture ? 'meseca' : 'mesecema';
  13791. } else if (number < 5) {
  13792. result += withoutSuffix || isFuture ? 'mesece' : 'meseci';
  13793. } else {
  13794. result += withoutSuffix || isFuture ? 'mesecev' : 'meseci';
  13795. }
  13796. return result;
  13797. case 'y':
  13798. return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
  13799. case 'yy':
  13800. if (number === 1) {
  13801. result += withoutSuffix || isFuture ? 'leto' : 'letom';
  13802. } else if (number === 2) {
  13803. result += withoutSuffix || isFuture ? 'leti' : 'letoma';
  13804. } else if (number < 5) {
  13805. result += withoutSuffix || isFuture ? 'leta' : 'leti';
  13806. } else {
  13807. result += withoutSuffix || isFuture ? 'let' : 'leti';
  13808. }
  13809. return result;
  13810. }
  13811. }
  13812. var sl = moment.defineLocale('sl', {
  13813. months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),
  13814. monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
  13815. monthsParseExact: true,
  13816. weekdays : 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
  13817. weekdaysShort : 'ned._pon._tor._sre._čet._pet._sob.'.split('_'),
  13818. weekdaysMin : 'ne_po_to_sr_če_pe_so'.split('_'),
  13819. weekdaysParseExact : true,
  13820. longDateFormat : {
  13821. LT : 'H:mm',
  13822. LTS : 'H:mm:ss',
  13823. L : 'DD.MM.YYYY',
  13824. LL : 'D. MMMM YYYY',
  13825. LLL : 'D. MMMM YYYY H:mm',
  13826. LLLL : 'dddd, D. MMMM YYYY H:mm'
  13827. },
  13828. calendar : {
  13829. sameDay : '[danes ob] LT',
  13830. nextDay : '[jutri ob] LT',
  13831. nextWeek : function () {
  13832. switch (this.day()) {
  13833. case 0:
  13834. return '[v] [nedeljo] [ob] LT';
  13835. case 3:
  13836. return '[v] [sredo] [ob] LT';
  13837. case 6:
  13838. return '[v] [soboto] [ob] LT';
  13839. case 1:
  13840. case 2:
  13841. case 4:
  13842. case 5:
  13843. return '[v] dddd [ob] LT';
  13844. }
  13845. },
  13846. lastDay : '[včeraj ob] LT',
  13847. lastWeek : function () {
  13848. switch (this.day()) {
  13849. case 0:
  13850. return '[prejšnjo] [nedeljo] [ob] LT';
  13851. case 3:
  13852. return '[prejšnjo] [sredo] [ob] LT';
  13853. case 6:
  13854. return '[prejšnjo] [soboto] [ob] LT';
  13855. case 1:
  13856. case 2:
  13857. case 4:
  13858. case 5:
  13859. return '[prejšnji] dddd [ob] LT';
  13860. }
  13861. },
  13862. sameElse : 'L'
  13863. },
  13864. relativeTime : {
  13865. future : 'čez %s',
  13866. past : 'pred %s',
  13867. s : processRelativeTime,
  13868. m : processRelativeTime,
  13869. mm : processRelativeTime,
  13870. h : processRelativeTime,
  13871. hh : processRelativeTime,
  13872. d : processRelativeTime,
  13873. dd : processRelativeTime,
  13874. M : processRelativeTime,
  13875. MM : processRelativeTime,
  13876. y : processRelativeTime,
  13877. yy : processRelativeTime
  13878. },
  13879. dayOfMonthOrdinalParse: /\d{1,2}\./,
  13880. ordinal : '%d.',
  13881. week : {
  13882. dow : 1, // Monday is the first day of the week.
  13883. doy : 7 // The week that contains Jan 1st is the first week of the year.
  13884. }
  13885. });
  13886. return sl;
  13887. })));
  13888. /***/ }),
  13889. /***/ "./node_modules/moment/locale/sq.js":
  13890. /*!******************************************!*\
  13891. !*** ./node_modules/moment/locale/sq.js ***!
  13892. \******************************************/
  13893. /*! no static exports found */
  13894. /***/ (function(module, exports, __webpack_require__) {
  13895. //! moment.js locale configuration
  13896. //! locale : Albanian [sq]
  13897. //! author : Flakërim Ismani : https://github.com/flakerimi
  13898. //! author : Menelion Elensúle : https://github.com/Oire
  13899. //! author : Oerd Cukalla : https://github.com/oerd
  13900. ;(function (global, factory) {
  13901. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  13902. undefined
  13903. }(this, (function (moment) { 'use strict';
  13904. var sq = moment.defineLocale('sq', {
  13905. months : 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'),
  13906. monthsShort : 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'),
  13907. weekdays : 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'),
  13908. weekdaysShort : 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'),
  13909. weekdaysMin : 'D_H_Ma_Më_E_P_Sh'.split('_'),
  13910. weekdaysParseExact : true,
  13911. meridiemParse: /PD|MD/,
  13912. isPM: function (input) {
  13913. return input.charAt(0) === 'M';
  13914. },
  13915. meridiem : function (hours, minutes, isLower) {
  13916. return hours < 12 ? 'PD' : 'MD';
  13917. },
  13918. longDateFormat : {
  13919. LT : 'HH:mm',
  13920. LTS : 'HH:mm:ss',
  13921. L : 'DD/MM/YYYY',
  13922. LL : 'D MMMM YYYY',
  13923. LLL : 'D MMMM YYYY HH:mm',
  13924. LLLL : 'dddd, D MMMM YYYY HH:mm'
  13925. },
  13926. calendar : {
  13927. sameDay : '[Sot në] LT',
  13928. nextDay : '[Nesër në] LT',
  13929. nextWeek : 'dddd [në] LT',
  13930. lastDay : '[Dje në] LT',
  13931. lastWeek : 'dddd [e kaluar në] LT',
  13932. sameElse : 'L'
  13933. },
  13934. relativeTime : {
  13935. future : 'në %s',
  13936. past : '%s më parë',
  13937. s : 'disa sekonda',
  13938. m : 'një minutë',
  13939. mm : '%d minuta',
  13940. h : 'një orë',
  13941. hh : '%d orë',
  13942. d : 'një ditë',
  13943. dd : '%d ditë',
  13944. M : 'një muaj',
  13945. MM : '%d muaj',
  13946. y : 'një vit',
  13947. yy : '%d vite'
  13948. },
  13949. dayOfMonthOrdinalParse: /\d{1,2}\./,
  13950. ordinal : '%d.',
  13951. week : {
  13952. dow : 1, // Monday is the first day of the week.
  13953. doy : 4 // The week that contains Jan 4th is the first week of the year.
  13954. }
  13955. });
  13956. return sq;
  13957. })));
  13958. /***/ }),
  13959. /***/ "./node_modules/moment/locale/sr-cyrl.js":
  13960. /*!***********************************************!*\
  13961. !*** ./node_modules/moment/locale/sr-cyrl.js ***!
  13962. \***********************************************/
  13963. /*! no static exports found */
  13964. /***/ (function(module, exports, __webpack_require__) {
  13965. //! moment.js locale configuration
  13966. //! locale : Serbian Cyrillic [sr-cyrl]
  13967. //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
  13968. ;(function (global, factory) {
  13969. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  13970. undefined
  13971. }(this, (function (moment) { 'use strict';
  13972. var translator = {
  13973. words: { //Different grammatical cases
  13974. m: ['један минут', 'једне минуте'],
  13975. mm: ['минут', 'минуте', 'минута'],
  13976. h: ['један сат', 'једног сата'],
  13977. hh: ['сат', 'сата', 'сати'],
  13978. dd: ['дан', 'дана', 'дана'],
  13979. MM: ['месец', 'месеца', 'месеци'],
  13980. yy: ['година', 'године', 'година']
  13981. },
  13982. correctGrammaticalCase: function (number, wordKey) {
  13983. return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
  13984. },
  13985. translate: function (number, withoutSuffix, key) {
  13986. var wordKey = translator.words[key];
  13987. if (key.length === 1) {
  13988. return withoutSuffix ? wordKey[0] : wordKey[1];
  13989. } else {
  13990. return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
  13991. }
  13992. }
  13993. };
  13994. var srCyrl = moment.defineLocale('sr-cyrl', {
  13995. months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split('_'),
  13996. monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'),
  13997. monthsParseExact: true,
  13998. weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split('_'),
  13999. weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'),
  14000. weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'),
  14001. weekdaysParseExact : true,
  14002. longDateFormat: {
  14003. LT: 'H:mm',
  14004. LTS : 'H:mm:ss',
  14005. L: 'DD.MM.YYYY',
  14006. LL: 'D. MMMM YYYY',
  14007. LLL: 'D. MMMM YYYY H:mm',
  14008. LLLL: 'dddd, D. MMMM YYYY H:mm'
  14009. },
  14010. calendar: {
  14011. sameDay: '[данас у] LT',
  14012. nextDay: '[сутра у] LT',
  14013. nextWeek: function () {
  14014. switch (this.day()) {
  14015. case 0:
  14016. return '[у] [недељу] [у] LT';
  14017. case 3:
  14018. return '[у] [среду] [у] LT';
  14019. case 6:
  14020. return '[у] [суботу] [у] LT';
  14021. case 1:
  14022. case 2:
  14023. case 4:
  14024. case 5:
  14025. return '[у] dddd [у] LT';
  14026. }
  14027. },
  14028. lastDay : '[јуче у] LT',
  14029. lastWeek : function () {
  14030. var lastWeekDays = [
  14031. '[прошле] [недеље] [у] LT',
  14032. '[прошлог] [понедељка] [у] LT',
  14033. '[прошлог] [уторка] [у] LT',
  14034. '[прошле] [среде] [у] LT',
  14035. '[прошлог] [четвртка] [у] LT',
  14036. '[прошлог] [петка] [у] LT',
  14037. '[прошле] [суботе] [у] LT'
  14038. ];
  14039. return lastWeekDays[this.day()];
  14040. },
  14041. sameElse : 'L'
  14042. },
  14043. relativeTime : {
  14044. future : 'за %s',
  14045. past : 'пре %s',
  14046. s : 'неколико секунди',
  14047. m : translator.translate,
  14048. mm : translator.translate,
  14049. h : translator.translate,
  14050. hh : translator.translate,
  14051. d : 'дан',
  14052. dd : translator.translate,
  14053. M : 'месец',
  14054. MM : translator.translate,
  14055. y : 'годину',
  14056. yy : translator.translate
  14057. },
  14058. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14059. ordinal : '%d.',
  14060. week : {
  14061. dow : 1, // Monday is the first day of the week.
  14062. doy : 7 // The week that contains Jan 1st is the first week of the year.
  14063. }
  14064. });
  14065. return srCyrl;
  14066. })));
  14067. /***/ }),
  14068. /***/ "./node_modules/moment/locale/sr.js":
  14069. /*!******************************************!*\
  14070. !*** ./node_modules/moment/locale/sr.js ***!
  14071. \******************************************/
  14072. /*! no static exports found */
  14073. /***/ (function(module, exports, __webpack_require__) {
  14074. //! moment.js locale configuration
  14075. //! locale : Serbian [sr]
  14076. //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
  14077. ;(function (global, factory) {
  14078. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  14079. undefined
  14080. }(this, (function (moment) { 'use strict';
  14081. var translator = {
  14082. words: { //Different grammatical cases
  14083. m: ['jedan minut', 'jedne minute'],
  14084. mm: ['minut', 'minute', 'minuta'],
  14085. h: ['jedan sat', 'jednog sata'],
  14086. hh: ['sat', 'sata', 'sati'],
  14087. dd: ['dan', 'dana', 'dana'],
  14088. MM: ['mesec', 'meseca', 'meseci'],
  14089. yy: ['godina', 'godine', 'godina']
  14090. },
  14091. correctGrammaticalCase: function (number, wordKey) {
  14092. return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
  14093. },
  14094. translate: function (number, withoutSuffix, key) {
  14095. var wordKey = translator.words[key];
  14096. if (key.length === 1) {
  14097. return withoutSuffix ? wordKey[0] : wordKey[1];
  14098. } else {
  14099. return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
  14100. }
  14101. }
  14102. };
  14103. var sr = moment.defineLocale('sr', {
  14104. months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
  14105. monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
  14106. monthsParseExact: true,
  14107. weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split('_'),
  14108. weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'),
  14109. weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
  14110. weekdaysParseExact : true,
  14111. longDateFormat: {
  14112. LT: 'H:mm',
  14113. LTS : 'H:mm:ss',
  14114. L: 'DD.MM.YYYY',
  14115. LL: 'D. MMMM YYYY',
  14116. LLL: 'D. MMMM YYYY H:mm',
  14117. LLLL: 'dddd, D. MMMM YYYY H:mm'
  14118. },
  14119. calendar: {
  14120. sameDay: '[danas u] LT',
  14121. nextDay: '[sutra u] LT',
  14122. nextWeek: function () {
  14123. switch (this.day()) {
  14124. case 0:
  14125. return '[u] [nedelju] [u] LT';
  14126. case 3:
  14127. return '[u] [sredu] [u] LT';
  14128. case 6:
  14129. return '[u] [subotu] [u] LT';
  14130. case 1:
  14131. case 2:
  14132. case 4:
  14133. case 5:
  14134. return '[u] dddd [u] LT';
  14135. }
  14136. },
  14137. lastDay : '[juče u] LT',
  14138. lastWeek : function () {
  14139. var lastWeekDays = [
  14140. '[prošle] [nedelje] [u] LT',
  14141. '[prošlog] [ponedeljka] [u] LT',
  14142. '[prošlog] [utorka] [u] LT',
  14143. '[prošle] [srede] [u] LT',
  14144. '[prošlog] [četvrtka] [u] LT',
  14145. '[prošlog] [petka] [u] LT',
  14146. '[prošle] [subote] [u] LT'
  14147. ];
  14148. return lastWeekDays[this.day()];
  14149. },
  14150. sameElse : 'L'
  14151. },
  14152. relativeTime : {
  14153. future : 'za %s',
  14154. past : 'pre %s',
  14155. s : 'nekoliko sekundi',
  14156. m : translator.translate,
  14157. mm : translator.translate,
  14158. h : translator.translate,
  14159. hh : translator.translate,
  14160. d : 'dan',
  14161. dd : translator.translate,
  14162. M : 'mesec',
  14163. MM : translator.translate,
  14164. y : 'godinu',
  14165. yy : translator.translate
  14166. },
  14167. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14168. ordinal : '%d.',
  14169. week : {
  14170. dow : 1, // Monday is the first day of the week.
  14171. doy : 7 // The week that contains Jan 1st is the first week of the year.
  14172. }
  14173. });
  14174. return sr;
  14175. })));
  14176. /***/ }),
  14177. /***/ "./node_modules/moment/locale/ss.js":
  14178. /*!******************************************!*\
  14179. !*** ./node_modules/moment/locale/ss.js ***!
  14180. \******************************************/
  14181. /*! no static exports found */
  14182. /***/ (function(module, exports, __webpack_require__) {
  14183. //! moment.js locale configuration
  14184. //! locale : siSwati [ss]
  14185. //! author : Nicolai Davies<mail@nicolai.io> : https://github.com/nicolaidavies
  14186. ;(function (global, factory) {
  14187. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  14188. undefined
  14189. }(this, (function (moment) { 'use strict';
  14190. var ss = moment.defineLocale('ss', {
  14191. months : "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split('_'),
  14192. monthsShort : 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split('_'),
  14193. weekdays : 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split('_'),
  14194. weekdaysShort : 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'),
  14195. weekdaysMin : 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'),
  14196. weekdaysParseExact : true,
  14197. longDateFormat : {
  14198. LT : 'h:mm A',
  14199. LTS : 'h:mm:ss A',
  14200. L : 'DD/MM/YYYY',
  14201. LL : 'D MMMM YYYY',
  14202. LLL : 'D MMMM YYYY h:mm A',
  14203. LLLL : 'dddd, D MMMM YYYY h:mm A'
  14204. },
  14205. calendar : {
  14206. sameDay : '[Namuhla nga] LT',
  14207. nextDay : '[Kusasa nga] LT',
  14208. nextWeek : 'dddd [nga] LT',
  14209. lastDay : '[Itolo nga] LT',
  14210. lastWeek : 'dddd [leliphelile] [nga] LT',
  14211. sameElse : 'L'
  14212. },
  14213. relativeTime : {
  14214. future : 'nga %s',
  14215. past : 'wenteka nga %s',
  14216. s : 'emizuzwana lomcane',
  14217. m : 'umzuzu',
  14218. mm : '%d emizuzu',
  14219. h : 'lihora',
  14220. hh : '%d emahora',
  14221. d : 'lilanga',
  14222. dd : '%d emalanga',
  14223. M : 'inyanga',
  14224. MM : '%d tinyanga',
  14225. y : 'umnyaka',
  14226. yy : '%d iminyaka'
  14227. },
  14228. meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
  14229. meridiem : function (hours, minutes, isLower) {
  14230. if (hours < 11) {
  14231. return 'ekuseni';
  14232. } else if (hours < 15) {
  14233. return 'emini';
  14234. } else if (hours < 19) {
  14235. return 'entsambama';
  14236. } else {
  14237. return 'ebusuku';
  14238. }
  14239. },
  14240. meridiemHour : function (hour, meridiem) {
  14241. if (hour === 12) {
  14242. hour = 0;
  14243. }
  14244. if (meridiem === 'ekuseni') {
  14245. return hour;
  14246. } else if (meridiem === 'emini') {
  14247. return hour >= 11 ? hour : hour + 12;
  14248. } else if (meridiem === 'entsambama' || meridiem === 'ebusuku') {
  14249. if (hour === 0) {
  14250. return 0;
  14251. }
  14252. return hour + 12;
  14253. }
  14254. },
  14255. dayOfMonthOrdinalParse: /\d{1,2}/,
  14256. ordinal : '%d',
  14257. week : {
  14258. dow : 1, // Monday is the first day of the week.
  14259. doy : 4 // The week that contains Jan 4th is the first week of the year.
  14260. }
  14261. });
  14262. return ss;
  14263. })));
  14264. /***/ }),
  14265. /***/ "./node_modules/moment/locale/sv.js":
  14266. /*!******************************************!*\
  14267. !*** ./node_modules/moment/locale/sv.js ***!
  14268. \******************************************/
  14269. /*! no static exports found */
  14270. /***/ (function(module, exports, __webpack_require__) {
  14271. //! moment.js locale configuration
  14272. //! locale : Swedish [sv]
  14273. //! author : Jens Alm : https://github.com/ulmus
  14274. ;(function (global, factory) {
  14275. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  14276. undefined
  14277. }(this, (function (moment) { 'use strict';
  14278. var sv = moment.defineLocale('sv', {
  14279. months : 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),
  14280. monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
  14281. weekdays : 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
  14282. weekdaysShort : 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
  14283. weekdaysMin : 'sö_må_ti_on_to_fr_lö'.split('_'),
  14284. longDateFormat : {
  14285. LT : 'HH:mm',
  14286. LTS : 'HH:mm:ss',
  14287. L : 'YYYY-MM-DD',
  14288. LL : 'D MMMM YYYY',
  14289. LLL : 'D MMMM YYYY [kl.] HH:mm',
  14290. LLLL : 'dddd D MMMM YYYY [kl.] HH:mm',
  14291. lll : 'D MMM YYYY HH:mm',
  14292. llll : 'ddd D MMM YYYY HH:mm'
  14293. },
  14294. calendar : {
  14295. sameDay: '[Idag] LT',
  14296. nextDay: '[Imorgon] LT',
  14297. lastDay: '[Igår] LT',
  14298. nextWeek: '[På] dddd LT',
  14299. lastWeek: '[I] dddd[s] LT',
  14300. sameElse: 'L'
  14301. },
  14302. relativeTime : {
  14303. future : 'om %s',
  14304. past : 'för %s sedan',
  14305. s : 'några sekunder',
  14306. m : 'en minut',
  14307. mm : '%d minuter',
  14308. h : 'en timme',
  14309. hh : '%d timmar',
  14310. d : 'en dag',
  14311. dd : '%d dagar',
  14312. M : 'en månad',
  14313. MM : '%d månader',
  14314. y : 'ett år',
  14315. yy : '%d år'
  14316. },
  14317. dayOfMonthOrdinalParse: /\d{1,2}(e|a)/,
  14318. ordinal : function (number) {
  14319. var b = number % 10,
  14320. output = (~~(number % 100 / 10) === 1) ? 'e' :
  14321. (b === 1) ? 'a' :
  14322. (b === 2) ? 'a' :
  14323. (b === 3) ? 'e' : 'e';
  14324. return number + output;
  14325. },
  14326. week : {
  14327. dow : 1, // Monday is the first day of the week.
  14328. doy : 4 // The week that contains Jan 4th is the first week of the year.
  14329. }
  14330. });
  14331. return sv;
  14332. })));
  14333. /***/ }),
  14334. /***/ "./node_modules/moment/locale/sw.js":
  14335. /*!******************************************!*\
  14336. !*** ./node_modules/moment/locale/sw.js ***!
  14337. \******************************************/
  14338. /*! no static exports found */
  14339. /***/ (function(module, exports, __webpack_require__) {
  14340. //! moment.js locale configuration
  14341. //! locale : Swahili [sw]
  14342. //! author : Fahad Kassim : https://github.com/fadsel
  14343. ;(function (global, factory) {
  14344. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  14345. undefined
  14346. }(this, (function (moment) { 'use strict';
  14347. var sw = moment.defineLocale('sw', {
  14348. months : 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split('_'),
  14349. monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split('_'),
  14350. weekdays : 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split('_'),
  14351. weekdaysShort : 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'),
  14352. weekdaysMin : 'J2_J3_J4_J5_Al_Ij_J1'.split('_'),
  14353. weekdaysParseExact : true,
  14354. longDateFormat : {
  14355. LT : 'HH:mm',
  14356. LTS : 'HH:mm:ss',
  14357. L : 'DD.MM.YYYY',
  14358. LL : 'D MMMM YYYY',
  14359. LLL : 'D MMMM YYYY HH:mm',
  14360. LLLL : 'dddd, D MMMM YYYY HH:mm'
  14361. },
  14362. calendar : {
  14363. sameDay : '[leo saa] LT',
  14364. nextDay : '[kesho saa] LT',
  14365. nextWeek : '[wiki ijayo] dddd [saat] LT',
  14366. lastDay : '[jana] LT',
  14367. lastWeek : '[wiki iliyopita] dddd [saat] LT',
  14368. sameElse : 'L'
  14369. },
  14370. relativeTime : {
  14371. future : '%s baadaye',
  14372. past : 'tokea %s',
  14373. s : 'hivi punde',
  14374. m : 'dakika moja',
  14375. mm : 'dakika %d',
  14376. h : 'saa limoja',
  14377. hh : 'masaa %d',
  14378. d : 'siku moja',
  14379. dd : 'masiku %d',
  14380. M : 'mwezi mmoja',
  14381. MM : 'miezi %d',
  14382. y : 'mwaka mmoja',
  14383. yy : 'miaka %d'
  14384. },
  14385. week : {
  14386. dow : 1, // Monday is the first day of the week.
  14387. doy : 7 // The week that contains Jan 1st is the first week of the year.
  14388. }
  14389. });
  14390. return sw;
  14391. })));
  14392. /***/ }),
  14393. /***/ "./node_modules/moment/locale/ta.js":
  14394. /*!******************************************!*\
  14395. !*** ./node_modules/moment/locale/ta.js ***!
  14396. \******************************************/
  14397. /*! no static exports found */
  14398. /***/ (function(module, exports, __webpack_require__) {
  14399. //! moment.js locale configuration
  14400. //! locale : Tamil [ta]
  14401. //! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404
  14402. ;(function (global, factory) {
  14403. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  14404. undefined
  14405. }(this, (function (moment) { 'use strict';
  14406. var symbolMap = {
  14407. '1': '௧',
  14408. '2': '௨',
  14409. '3': '௩',
  14410. '4': '௪',
  14411. '5': '௫',
  14412. '6': '௬',
  14413. '7': '௭',
  14414. '8': '௮',
  14415. '9': '௯',
  14416. '0': '௦'
  14417. };
  14418. var numberMap = {
  14419. '௧': '1',
  14420. '௨': '2',
  14421. '௩': '3',
  14422. '௪': '4',
  14423. '௫': '5',
  14424. '௬': '6',
  14425. '௭': '7',
  14426. '௮': '8',
  14427. '௯': '9',
  14428. '௦': '0'
  14429. };
  14430. var ta = moment.defineLocale('ta', {
  14431. months : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
  14432. monthsShort : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
  14433. weekdays : 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'),
  14434. weekdaysShort : 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'),
  14435. weekdaysMin : 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
  14436. longDateFormat : {
  14437. LT : 'HH:mm',
  14438. LTS : 'HH:mm:ss',
  14439. L : 'DD/MM/YYYY',
  14440. LL : 'D MMMM YYYY',
  14441. LLL : 'D MMMM YYYY, HH:mm',
  14442. LLLL : 'dddd, D MMMM YYYY, HH:mm'
  14443. },
  14444. calendar : {
  14445. sameDay : '[இன்று] LT',
  14446. nextDay : '[நாளை] LT',
  14447. nextWeek : 'dddd, LT',
  14448. lastDay : '[நேற்று] LT',
  14449. lastWeek : '[கடந்த வாரம்] dddd, LT',
  14450. sameElse : 'L'
  14451. },
  14452. relativeTime : {
  14453. future : '%s இல்',
  14454. past : '%s முன்',
  14455. s : 'ஒரு சில விநாடிகள்',
  14456. m : 'ஒரு நிமிடம்',
  14457. mm : '%d நிமிடங்கள்',
  14458. h : 'ஒரு மணி நேரம்',
  14459. hh : '%d மணி நேரம்',
  14460. d : 'ஒரு நாள்',
  14461. dd : '%d நாட்கள்',
  14462. M : 'ஒரு மாதம்',
  14463. MM : '%d மாதங்கள்',
  14464. y : 'ஒரு வருடம்',
  14465. yy : '%d ஆண்டுகள்'
  14466. },
  14467. dayOfMonthOrdinalParse: /\d{1,2}வது/,
  14468. ordinal : function (number) {
  14469. return number + 'வது';
  14470. },
  14471. preparse: function (string) {
  14472. return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
  14473. return numberMap[match];
  14474. });
  14475. },
  14476. postformat: function (string) {
  14477. return string.replace(/\d/g, function (match) {
  14478. return symbolMap[match];
  14479. });
  14480. },
  14481. // refer http://ta.wikipedia.org/s/1er1
  14482. meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
  14483. meridiem : function (hour, minute, isLower) {
  14484. if (hour < 2) {
  14485. return ' யாமம்';
  14486. } else if (hour < 6) {
  14487. return ' வைகறை'; // வைகறை
  14488. } else if (hour < 10) {
  14489. return ' காலை'; // காலை
  14490. } else if (hour < 14) {
  14491. return ' நண்பகல்'; // நண்பகல்
  14492. } else if (hour < 18) {
  14493. return ' எற்பாடு'; // எற்பாடு
  14494. } else if (hour < 22) {
  14495. return ' மாலை'; // மாலை
  14496. } else {
  14497. return ' யாமம்';
  14498. }
  14499. },
  14500. meridiemHour : function (hour, meridiem) {
  14501. if (hour === 12) {
  14502. hour = 0;
  14503. }
  14504. if (meridiem === 'யாமம்') {
  14505. return hour < 2 ? hour : hour + 12;
  14506. } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {
  14507. return hour;
  14508. } else if (meridiem === 'நண்பகல்') {
  14509. return hour >= 10 ? hour : hour + 12;
  14510. } else {
  14511. return hour + 12;
  14512. }
  14513. },
  14514. week : {
  14515. dow : 0, // Sunday is the first day of the week.
  14516. doy : 6 // The week that contains Jan 1st is the first week of the year.
  14517. }
  14518. });
  14519. return ta;
  14520. })));
  14521. /***/ }),
  14522. /***/ "./node_modules/moment/locale/te.js":
  14523. /*!******************************************!*\
  14524. !*** ./node_modules/moment/locale/te.js ***!
  14525. \******************************************/
  14526. /*! no static exports found */
  14527. /***/ (function(module, exports, __webpack_require__) {
  14528. //! moment.js locale configuration
  14529. //! locale : Telugu [te]
  14530. //! author : Krishna Chaitanya Thota : https://github.com/kcthota
  14531. ;(function (global, factory) {
  14532. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  14533. undefined
  14534. }(this, (function (moment) { 'use strict';
  14535. var te = moment.defineLocale('te', {
  14536. months : 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split('_'),
  14537. monthsShort : 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split('_'),
  14538. monthsParseExact : true,
  14539. weekdays : 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split('_'),
  14540. weekdaysShort : 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'),
  14541. weekdaysMin : 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'),
  14542. longDateFormat : {
  14543. LT : 'A h:mm',
  14544. LTS : 'A h:mm:ss',
  14545. L : 'DD/MM/YYYY',
  14546. LL : 'D MMMM YYYY',
  14547. LLL : 'D MMMM YYYY, A h:mm',
  14548. LLLL : 'dddd, D MMMM YYYY, A h:mm'
  14549. },
  14550. calendar : {
  14551. sameDay : '[నేడు] LT',
  14552. nextDay : '[రేపు] LT',
  14553. nextWeek : 'dddd, LT',
  14554. lastDay : '[నిన్న] LT',
  14555. lastWeek : '[గత] dddd, LT',
  14556. sameElse : 'L'
  14557. },
  14558. relativeTime : {
  14559. future : '%s లో',
  14560. past : '%s క్రితం',
  14561. s : 'కొన్ని క్షణాలు',
  14562. m : 'ఒక నిమిషం',
  14563. mm : '%d నిమిషాలు',
  14564. h : 'ఒక గంట',
  14565. hh : '%d గంటలు',
  14566. d : 'ఒక రోజు',
  14567. dd : '%d రోజులు',
  14568. M : 'ఒక నెల',
  14569. MM : '%d నెలలు',
  14570. y : 'ఒక సంవత్సరం',
  14571. yy : '%d సంవత్సరాలు'
  14572. },
  14573. dayOfMonthOrdinalParse : /\d{1,2}వ/,
  14574. ordinal : '%dవ',
  14575. meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
  14576. meridiemHour : function (hour, meridiem) {
  14577. if (hour === 12) {
  14578. hour = 0;
  14579. }
  14580. if (meridiem === 'రాత్రి') {
  14581. return hour < 4 ? hour : hour + 12;
  14582. } else if (meridiem === 'ఉదయం') {
  14583. return hour;
  14584. } else if (meridiem === 'మధ్యాహ్నం') {
  14585. return hour >= 10 ? hour : hour + 12;
  14586. } else if (meridiem === 'సాయంత్రం') {
  14587. return hour + 12;
  14588. }
  14589. },
  14590. meridiem : function (hour, minute, isLower) {
  14591. if (hour < 4) {
  14592. return 'రాత్రి';
  14593. } else if (hour < 10) {
  14594. return 'ఉదయం';
  14595. } else if (hour < 17) {
  14596. return 'మధ్యాహ్నం';
  14597. } else if (hour < 20) {
  14598. return 'సాయంత్రం';
  14599. } else {
  14600. return 'రాత్రి';
  14601. }
  14602. },
  14603. week : {
  14604. dow : 0, // Sunday is the first day of the week.
  14605. doy : 6 // The week that contains Jan 1st is the first week of the year.
  14606. }
  14607. });
  14608. return te;
  14609. })));
  14610. /***/ }),
  14611. /***/ "./node_modules/moment/locale/tet.js":
  14612. /*!*******************************************!*\
  14613. !*** ./node_modules/moment/locale/tet.js ***!
  14614. \*******************************************/
  14615. /*! no static exports found */
  14616. /***/ (function(module, exports, __webpack_require__) {
  14617. //! moment.js locale configuration
  14618. //! locale : Tetun Dili (East Timor) [tet]
  14619. //! author : Joshua Brooks : https://github.com/joshbrooks
  14620. //! author : Onorio De J. Afonso : https://github.com/marobo
  14621. ;(function (global, factory) {
  14622. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  14623. undefined
  14624. }(this, (function (moment) { 'use strict';
  14625. var tet = moment.defineLocale('tet', {
  14626. months : 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juniu_Juliu_Augustu_Setembru_Outubru_Novembru_Dezembru'.split('_'),
  14627. monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Aug_Set_Out_Nov_Dez'.split('_'),
  14628. weekdays : 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sexta_Sabadu'.split('_'),
  14629. weekdaysShort : 'Dom_Seg_Ters_Kua_Kint_Sext_Sab'.split('_'),
  14630. weekdaysMin : 'Do_Seg_Te_Ku_Ki_Sex_Sa'.split('_'),
  14631. longDateFormat : {
  14632. LT : 'HH:mm',
  14633. LTS : 'HH:mm:ss',
  14634. L : 'DD/MM/YYYY',
  14635. LL : 'D MMMM YYYY',
  14636. LLL : 'D MMMM YYYY HH:mm',
  14637. LLLL : 'dddd, D MMMM YYYY HH:mm'
  14638. },
  14639. calendar : {
  14640. sameDay: '[Ohin iha] LT',
  14641. nextDay: '[Aban iha] LT',
  14642. nextWeek: 'dddd [iha] LT',
  14643. lastDay: '[Horiseik iha] LT',
  14644. lastWeek: 'dddd [semana kotuk] [iha] LT',
  14645. sameElse: 'L'
  14646. },
  14647. relativeTime : {
  14648. future : 'iha %s',
  14649. past : '%s liuba',
  14650. s : 'minutu balun',
  14651. m : 'minutu ida',
  14652. mm : 'minutus %d',
  14653. h : 'horas ida',
  14654. hh : 'horas %d',
  14655. d : 'loron ida',
  14656. dd : 'loron %d',
  14657. M : 'fulan ida',
  14658. MM : 'fulan %d',
  14659. y : 'tinan ida',
  14660. yy : 'tinan %d'
  14661. },
  14662. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  14663. ordinal : function (number) {
  14664. var b = number % 10,
  14665. output = (~~(number % 100 / 10) === 1) ? 'th' :
  14666. (b === 1) ? 'st' :
  14667. (b === 2) ? 'nd' :
  14668. (b === 3) ? 'rd' : 'th';
  14669. return number + output;
  14670. },
  14671. week : {
  14672. dow : 1, // Monday is the first day of the week.
  14673. doy : 4 // The week that contains Jan 4th is the first week of the year.
  14674. }
  14675. });
  14676. return tet;
  14677. })));
  14678. /***/ }),
  14679. /***/ "./node_modules/moment/locale/th.js":
  14680. /*!******************************************!*\
  14681. !*** ./node_modules/moment/locale/th.js ***!
  14682. \******************************************/
  14683. /*! no static exports found */
  14684. /***/ (function(module, exports, __webpack_require__) {
  14685. //! moment.js locale configuration
  14686. //! locale : Thai [th]
  14687. //! author : Kridsada Thanabulpong : https://github.com/sirn
  14688. ;(function (global, factory) {
  14689. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  14690. undefined
  14691. }(this, (function (moment) { 'use strict';
  14692. var th = moment.defineLocale('th', {
  14693. months : 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'),
  14694. monthsShort : 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split('_'),
  14695. monthsParseExact: true,
  14696. weekdays : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
  14697. weekdaysShort : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
  14698. weekdaysMin : 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
  14699. weekdaysParseExact : true,
  14700. longDateFormat : {
  14701. LT : 'H:mm',
  14702. LTS : 'H:mm:ss',
  14703. L : 'DD/MM/YYYY',
  14704. LL : 'D MMMM YYYY',
  14705. LLL : 'D MMMM YYYY เวลา H:mm',
  14706. LLLL : 'วันddddที่ D MMMM YYYY เวลา H:mm'
  14707. },
  14708. meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
  14709. isPM: function (input) {
  14710. return input === 'หลังเที่ยง';
  14711. },
  14712. meridiem : function (hour, minute, isLower) {
  14713. if (hour < 12) {
  14714. return 'ก่อนเที่ยง';
  14715. } else {
  14716. return 'หลังเที่ยง';
  14717. }
  14718. },
  14719. calendar : {
  14720. sameDay : '[วันนี้ เวลา] LT',
  14721. nextDay : '[พรุ่งนี้ เวลา] LT',
  14722. nextWeek : 'dddd[หน้า เวลา] LT',
  14723. lastDay : '[เมื่อวานนี้ เวลา] LT',
  14724. lastWeek : '[วัน]dddd[ที่แล้ว เวลา] LT',
  14725. sameElse : 'L'
  14726. },
  14727. relativeTime : {
  14728. future : 'อีก %s',
  14729. past : '%sที่แล้ว',
  14730. s : 'ไม่กี่วินาที',
  14731. m : '1 นาที',
  14732. mm : '%d นาที',
  14733. h : '1 ชั่วโมง',
  14734. hh : '%d ชั่วโมง',
  14735. d : '1 วัน',
  14736. dd : '%d วัน',
  14737. M : '1 เดือน',
  14738. MM : '%d เดือน',
  14739. y : '1 ปี',
  14740. yy : '%d ปี'
  14741. }
  14742. });
  14743. return th;
  14744. })));
  14745. /***/ }),
  14746. /***/ "./node_modules/moment/locale/tl-ph.js":
  14747. /*!*********************************************!*\
  14748. !*** ./node_modules/moment/locale/tl-ph.js ***!
  14749. \*********************************************/
  14750. /*! no static exports found */
  14751. /***/ (function(module, exports, __webpack_require__) {
  14752. //! moment.js locale configuration
  14753. //! locale : Tagalog (Philippines) [tl-ph]
  14754. //! author : Dan Hagman : https://github.com/hagmandan
  14755. ;(function (global, factory) {
  14756. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  14757. undefined
  14758. }(this, (function (moment) { 'use strict';
  14759. var tlPh = moment.defineLocale('tl-ph', {
  14760. months : 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'),
  14761. monthsShort : 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
  14762. weekdays : 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'),
  14763. weekdaysShort : 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
  14764. weekdaysMin : 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
  14765. longDateFormat : {
  14766. LT : 'HH:mm',
  14767. LTS : 'HH:mm:ss',
  14768. L : 'MM/D/YYYY',
  14769. LL : 'MMMM D, YYYY',
  14770. LLL : 'MMMM D, YYYY HH:mm',
  14771. LLLL : 'dddd, MMMM DD, YYYY HH:mm'
  14772. },
  14773. calendar : {
  14774. sameDay: 'LT [ngayong araw]',
  14775. nextDay: '[Bukas ng] LT',
  14776. nextWeek: 'LT [sa susunod na] dddd',
  14777. lastDay: 'LT [kahapon]',
  14778. lastWeek: 'LT [noong nakaraang] dddd',
  14779. sameElse: 'L'
  14780. },
  14781. relativeTime : {
  14782. future : 'sa loob ng %s',
  14783. past : '%s ang nakalipas',
  14784. s : 'ilang segundo',
  14785. m : 'isang minuto',
  14786. mm : '%d minuto',
  14787. h : 'isang oras',
  14788. hh : '%d oras',
  14789. d : 'isang araw',
  14790. dd : '%d araw',
  14791. M : 'isang buwan',
  14792. MM : '%d buwan',
  14793. y : 'isang taon',
  14794. yy : '%d taon'
  14795. },
  14796. dayOfMonthOrdinalParse: /\d{1,2}/,
  14797. ordinal : function (number) {
  14798. return number;
  14799. },
  14800. week : {
  14801. dow : 1, // Monday is the first day of the week.
  14802. doy : 4 // The week that contains Jan 4th is the first week of the year.
  14803. }
  14804. });
  14805. return tlPh;
  14806. })));
  14807. /***/ }),
  14808. /***/ "./node_modules/moment/locale/tlh.js":
  14809. /*!*******************************************!*\
  14810. !*** ./node_modules/moment/locale/tlh.js ***!
  14811. \*******************************************/
  14812. /*! no static exports found */
  14813. /***/ (function(module, exports, __webpack_require__) {
  14814. //! moment.js locale configuration
  14815. //! locale : Klingon [tlh]
  14816. //! author : Dominika Kruk : https://github.com/amaranthrose
  14817. ;(function (global, factory) {
  14818. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  14819. undefined
  14820. }(this, (function (moment) { 'use strict';
  14821. var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');
  14822. function translateFuture(output) {
  14823. var time = output;
  14824. time = (output.indexOf('jaj') !== -1) ?
  14825. time.slice(0, -3) + 'leS' :
  14826. (output.indexOf('jar') !== -1) ?
  14827. time.slice(0, -3) + 'waQ' :
  14828. (output.indexOf('DIS') !== -1) ?
  14829. time.slice(0, -3) + 'nem' :
  14830. time + ' pIq';
  14831. return time;
  14832. }
  14833. function translatePast(output) {
  14834. var time = output;
  14835. time = (output.indexOf('jaj') !== -1) ?
  14836. time.slice(0, -3) + 'Hu’' :
  14837. (output.indexOf('jar') !== -1) ?
  14838. time.slice(0, -3) + 'wen' :
  14839. (output.indexOf('DIS') !== -1) ?
  14840. time.slice(0, -3) + 'ben' :
  14841. time + ' ret';
  14842. return time;
  14843. }
  14844. function translate(number, withoutSuffix, string, isFuture) {
  14845. var numberNoun = numberAsNoun(number);
  14846. switch (string) {
  14847. case 'mm':
  14848. return numberNoun + ' tup';
  14849. case 'hh':
  14850. return numberNoun + ' rep';
  14851. case 'dd':
  14852. return numberNoun + ' jaj';
  14853. case 'MM':
  14854. return numberNoun + ' jar';
  14855. case 'yy':
  14856. return numberNoun + ' DIS';
  14857. }
  14858. }
  14859. function numberAsNoun(number) {
  14860. var hundred = Math.floor((number % 1000) / 100),
  14861. ten = Math.floor((number % 100) / 10),
  14862. one = number % 10,
  14863. word = '';
  14864. if (hundred > 0) {
  14865. word += numbersNouns[hundred] + 'vatlh';
  14866. }
  14867. if (ten > 0) {
  14868. word += ((word !== '') ? ' ' : '') + numbersNouns[ten] + 'maH';
  14869. }
  14870. if (one > 0) {
  14871. word += ((word !== '') ? ' ' : '') + numbersNouns[one];
  14872. }
  14873. return (word === '') ? 'pagh' : word;
  14874. }
  14875. var tlh = moment.defineLocale('tlh', {
  14876. 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('_'),
  14877. 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('_'),
  14878. monthsParseExact : true,
  14879. weekdays : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  14880. weekdaysShort : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  14881. weekdaysMin : 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split('_'),
  14882. longDateFormat : {
  14883. LT : 'HH:mm',
  14884. LTS : 'HH:mm:ss',
  14885. L : 'DD.MM.YYYY',
  14886. LL : 'D MMMM YYYY',
  14887. LLL : 'D MMMM YYYY HH:mm',
  14888. LLLL : 'dddd, D MMMM YYYY HH:mm'
  14889. },
  14890. calendar : {
  14891. sameDay: '[DaHjaj] LT',
  14892. nextDay: '[wa’leS] LT',
  14893. nextWeek: 'LLL',
  14894. lastDay: '[wa’Hu’] LT',
  14895. lastWeek: 'LLL',
  14896. sameElse: 'L'
  14897. },
  14898. relativeTime : {
  14899. future : translateFuture,
  14900. past : translatePast,
  14901. s : 'puS lup',
  14902. m : 'wa’ tup',
  14903. mm : translate,
  14904. h : 'wa’ rep',
  14905. hh : translate,
  14906. d : 'wa’ jaj',
  14907. dd : translate,
  14908. M : 'wa’ jar',
  14909. MM : translate,
  14910. y : 'wa’ DIS',
  14911. yy : translate
  14912. },
  14913. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14914. ordinal : '%d.',
  14915. week : {
  14916. dow : 1, // Monday is the first day of the week.
  14917. doy : 4 // The week that contains Jan 4th is the first week of the year.
  14918. }
  14919. });
  14920. return tlh;
  14921. })));
  14922. /***/ }),
  14923. /***/ "./node_modules/moment/locale/tr.js":
  14924. /*!******************************************!*\
  14925. !*** ./node_modules/moment/locale/tr.js ***!
  14926. \******************************************/
  14927. /*! no static exports found */
  14928. /***/ (function(module, exports, __webpack_require__) {
  14929. //! moment.js locale configuration
  14930. //! locale : Turkish [tr]
  14931. //! authors : Erhan Gundogan : https://github.com/erhangundogan,
  14932. //! Burak Yiğit Kaya: https://github.com/BYK
  14933. ;(function (global, factory) {
  14934. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  14935. undefined
  14936. }(this, (function (moment) { 'use strict';
  14937. var suffixes = {
  14938. 1: '\'inci',
  14939. 5: '\'inci',
  14940. 8: '\'inci',
  14941. 70: '\'inci',
  14942. 80: '\'inci',
  14943. 2: '\'nci',
  14944. 7: '\'nci',
  14945. 20: '\'nci',
  14946. 50: '\'nci',
  14947. 3: '\'üncü',
  14948. 4: '\'üncü',
  14949. 100: '\'üncü',
  14950. 6: '\'ncı',
  14951. 9: '\'uncu',
  14952. 10: '\'uncu',
  14953. 30: '\'uncu',
  14954. 60: '\'ıncı',
  14955. 90: '\'ıncı'
  14956. };
  14957. var tr = moment.defineLocale('tr', {
  14958. months : 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'),
  14959. monthsShort : 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
  14960. weekdays : 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'),
  14961. weekdaysShort : 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),
  14962. weekdaysMin : 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'),
  14963. longDateFormat : {
  14964. LT : 'HH:mm',
  14965. LTS : 'HH:mm:ss',
  14966. L : 'DD.MM.YYYY',
  14967. LL : 'D MMMM YYYY',
  14968. LLL : 'D MMMM YYYY HH:mm',
  14969. LLLL : 'dddd, D MMMM YYYY HH:mm'
  14970. },
  14971. calendar : {
  14972. sameDay : '[bugün saat] LT',
  14973. nextDay : '[yarın saat] LT',
  14974. nextWeek : '[gelecek] dddd [saat] LT',
  14975. lastDay : '[dün] LT',
  14976. lastWeek : '[geçen] dddd [saat] LT',
  14977. sameElse : 'L'
  14978. },
  14979. relativeTime : {
  14980. future : '%s sonra',
  14981. past : '%s önce',
  14982. s : 'birkaç saniye',
  14983. m : 'bir dakika',
  14984. mm : '%d dakika',
  14985. h : 'bir saat',
  14986. hh : '%d saat',
  14987. d : 'bir gün',
  14988. dd : '%d gün',
  14989. M : 'bir ay',
  14990. MM : '%d ay',
  14991. y : 'bir yıl',
  14992. yy : '%d yıl'
  14993. },
  14994. dayOfMonthOrdinalParse: /\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,
  14995. ordinal : function (number) {
  14996. if (number === 0) { // special case for zero
  14997. return number + '\'ıncı';
  14998. }
  14999. var a = number % 10,
  15000. b = number % 100 - a,
  15001. c = number >= 100 ? 100 : null;
  15002. return number + (suffixes[a] || suffixes[b] || suffixes[c]);
  15003. },
  15004. week : {
  15005. dow : 1, // Monday is the first day of the week.
  15006. doy : 7 // The week that contains Jan 1st is the first week of the year.
  15007. }
  15008. });
  15009. return tr;
  15010. })));
  15011. /***/ }),
  15012. /***/ "./node_modules/moment/locale/tzl.js":
  15013. /*!*******************************************!*\
  15014. !*** ./node_modules/moment/locale/tzl.js ***!
  15015. \*******************************************/
  15016. /*! no static exports found */
  15017. /***/ (function(module, exports, __webpack_require__) {
  15018. //! moment.js locale configuration
  15019. //! locale : Talossan [tzl]
  15020. //! author : Robin van der Vliet : https://github.com/robin0van0der0v
  15021. //! author : Iustì Canun
  15022. ;(function (global, factory) {
  15023. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  15024. undefined
  15025. }(this, (function (moment) { 'use strict';
  15026. // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals.
  15027. // This is currently too difficult (maybe even impossible) to add.
  15028. var tzl = moment.defineLocale('tzl', {
  15029. months : 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split('_'),
  15030. monthsShort : 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'),
  15031. weekdays : 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'),
  15032. weekdaysShort : 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'),
  15033. weekdaysMin : 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'),
  15034. longDateFormat : {
  15035. LT : 'HH.mm',
  15036. LTS : 'HH.mm.ss',
  15037. L : 'DD.MM.YYYY',
  15038. LL : 'D. MMMM [dallas] YYYY',
  15039. LLL : 'D. MMMM [dallas] YYYY HH.mm',
  15040. LLLL : 'dddd, [li] D. MMMM [dallas] YYYY HH.mm'
  15041. },
  15042. meridiemParse: /d\'o|d\'a/i,
  15043. isPM : function (input) {
  15044. return 'd\'o' === input.toLowerCase();
  15045. },
  15046. meridiem : function (hours, minutes, isLower) {
  15047. if (hours > 11) {
  15048. return isLower ? 'd\'o' : 'D\'O';
  15049. } else {
  15050. return isLower ? 'd\'a' : 'D\'A';
  15051. }
  15052. },
  15053. calendar : {
  15054. sameDay : '[oxhi à] LT',
  15055. nextDay : '[demà à] LT',
  15056. nextWeek : 'dddd [à] LT',
  15057. lastDay : '[ieiri à] LT',
  15058. lastWeek : '[sür el] dddd [lasteu à] LT',
  15059. sameElse : 'L'
  15060. },
  15061. relativeTime : {
  15062. future : 'osprei %s',
  15063. past : 'ja%s',
  15064. s : processRelativeTime,
  15065. m : processRelativeTime,
  15066. mm : processRelativeTime,
  15067. h : processRelativeTime,
  15068. hh : processRelativeTime,
  15069. d : processRelativeTime,
  15070. dd : processRelativeTime,
  15071. M : processRelativeTime,
  15072. MM : processRelativeTime,
  15073. y : processRelativeTime,
  15074. yy : processRelativeTime
  15075. },
  15076. dayOfMonthOrdinalParse: /\d{1,2}\./,
  15077. ordinal : '%d.',
  15078. week : {
  15079. dow : 1, // Monday is the first day of the week.
  15080. doy : 4 // The week that contains Jan 4th is the first week of the year.
  15081. }
  15082. });
  15083. function processRelativeTime(number, withoutSuffix, key, isFuture) {
  15084. var format = {
  15085. 's': ['viensas secunds', '\'iensas secunds'],
  15086. 'm': ['\'n míut', '\'iens míut'],
  15087. 'mm': [number + ' míuts', '' + number + ' míuts'],
  15088. 'h': ['\'n þora', '\'iensa þora'],
  15089. 'hh': [number + ' þoras', '' + number + ' þoras'],
  15090. 'd': ['\'n ziua', '\'iensa ziua'],
  15091. 'dd': [number + ' ziuas', '' + number + ' ziuas'],
  15092. 'M': ['\'n mes', '\'iens mes'],
  15093. 'MM': [number + ' mesen', '' + number + ' mesen'],
  15094. 'y': ['\'n ar', '\'iens ar'],
  15095. 'yy': [number + ' ars', '' + number + ' ars']
  15096. };
  15097. return isFuture ? format[key][0] : (withoutSuffix ? format[key][0] : format[key][1]);
  15098. }
  15099. return tzl;
  15100. })));
  15101. /***/ }),
  15102. /***/ "./node_modules/moment/locale/tzm-latn.js":
  15103. /*!************************************************!*\
  15104. !*** ./node_modules/moment/locale/tzm-latn.js ***!
  15105. \************************************************/
  15106. /*! no static exports found */
  15107. /***/ (function(module, exports, __webpack_require__) {
  15108. //! moment.js locale configuration
  15109. //! locale : Central Atlas Tamazight Latin [tzm-latn]
  15110. //! author : Abdel Said : https://github.com/abdelsaid
  15111. ;(function (global, factory) {
  15112. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  15113. undefined
  15114. }(this, (function (moment) { 'use strict';
  15115. var tzmLatn = moment.defineLocale('tzm-latn', {
  15116. months : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
  15117. monthsShort : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'),
  15118. weekdays : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  15119. weekdaysShort : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  15120. weekdaysMin : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'),
  15121. longDateFormat : {
  15122. LT : 'HH:mm',
  15123. LTS : 'HH:mm:ss',
  15124. L : 'DD/MM/YYYY',
  15125. LL : 'D MMMM YYYY',
  15126. LLL : 'D MMMM YYYY HH:mm',
  15127. LLLL : 'dddd D MMMM YYYY HH:mm'
  15128. },
  15129. calendar : {
  15130. sameDay: '[asdkh g] LT',
  15131. nextDay: '[aska g] LT',
  15132. nextWeek: 'dddd [g] LT',
  15133. lastDay: '[assant g] LT',
  15134. lastWeek: 'dddd [g] LT',
  15135. sameElse: 'L'
  15136. },
  15137. relativeTime : {
  15138. future : 'dadkh s yan %s',
  15139. past : 'yan %s',
  15140. s : 'imik',
  15141. m : 'minuḍ',
  15142. mm : '%d minuḍ',
  15143. h : 'saɛa',
  15144. hh : '%d tassaɛin',
  15145. d : 'ass',
  15146. dd : '%d ossan',
  15147. M : 'ayowr',
  15148. MM : '%d iyyirn',
  15149. y : 'asgas',
  15150. yy : '%d isgasn'
  15151. },
  15152. week : {
  15153. dow : 6, // Saturday is the first day of the week.
  15154. doy : 12 // The week that contains Jan 1st is the first week of the year.
  15155. }
  15156. });
  15157. return tzmLatn;
  15158. })));
  15159. /***/ }),
  15160. /***/ "./node_modules/moment/locale/tzm.js":
  15161. /*!*******************************************!*\
  15162. !*** ./node_modules/moment/locale/tzm.js ***!
  15163. \*******************************************/
  15164. /*! no static exports found */
  15165. /***/ (function(module, exports, __webpack_require__) {
  15166. //! moment.js locale configuration
  15167. //! locale : Central Atlas Tamazight [tzm]
  15168. //! author : Abdel Said : https://github.com/abdelsaid
  15169. ;(function (global, factory) {
  15170. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  15171. undefined
  15172. }(this, (function (moment) { 'use strict';
  15173. var tzm = moment.defineLocale('tzm', {
  15174. months : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
  15175. monthsShort : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'),
  15176. weekdays : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  15177. weekdaysShort : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  15178. weekdaysMin : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
  15179. longDateFormat : {
  15180. LT : 'HH:mm',
  15181. LTS: 'HH:mm:ss',
  15182. L : 'DD/MM/YYYY',
  15183. LL : 'D MMMM YYYY',
  15184. LLL : 'D MMMM YYYY HH:mm',
  15185. LLLL : 'dddd D MMMM YYYY HH:mm'
  15186. },
  15187. calendar : {
  15188. sameDay: '[ⴰⵙⴷⵅ ⴴ] LT',
  15189. nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
  15190. nextWeek: 'dddd [ⴴ] LT',
  15191. lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
  15192. lastWeek: 'dddd [ⴴ] LT',
  15193. sameElse: 'L'
  15194. },
  15195. relativeTime : {
  15196. future : 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s',
  15197. past : 'ⵢⴰⵏ %s',
  15198. s : 'ⵉⵎⵉⴽ',
  15199. m : 'ⵎⵉⵏⵓⴺ',
  15200. mm : '%d ⵎⵉⵏⵓⴺ',
  15201. h : 'ⵙⴰⵄⴰ',
  15202. hh : '%d ⵜⴰⵙⵙⴰⵄⵉⵏ',
  15203. d : 'ⴰⵙⵙ',
  15204. dd : '%d oⵙⵙⴰⵏ',
  15205. M : 'ⴰⵢoⵓⵔ',
  15206. MM : '%d ⵉⵢⵢⵉⵔⵏ',
  15207. y : 'ⴰⵙⴳⴰⵙ',
  15208. yy : '%d ⵉⵙⴳⴰⵙⵏ'
  15209. },
  15210. week : {
  15211. dow : 6, // Saturday is the first day of the week.
  15212. doy : 12 // The week that contains Jan 1st is the first week of the year.
  15213. }
  15214. });
  15215. return tzm;
  15216. })));
  15217. /***/ }),
  15218. /***/ "./node_modules/moment/locale/uk.js":
  15219. /*!******************************************!*\
  15220. !*** ./node_modules/moment/locale/uk.js ***!
  15221. \******************************************/
  15222. /*! no static exports found */
  15223. /***/ (function(module, exports, __webpack_require__) {
  15224. //! moment.js locale configuration
  15225. //! locale : Ukrainian [uk]
  15226. //! author : zemlanin : https://github.com/zemlanin
  15227. //! Author : Menelion Elensúle : https://github.com/Oire
  15228. ;(function (global, factory) {
  15229. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  15230. undefined
  15231. }(this, (function (moment) { 'use strict';
  15232. function plural(word, num) {
  15233. var forms = word.split('_');
  15234. 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]);
  15235. }
  15236. function relativeTimeWithPlural(number, withoutSuffix, key) {
  15237. var format = {
  15238. 'mm': withoutSuffix ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин',
  15239. 'hh': withoutSuffix ? 'година_години_годин' : 'годину_години_годин',
  15240. 'dd': 'день_дні_днів',
  15241. 'MM': 'місяць_місяці_місяців',
  15242. 'yy': 'рік_роки_років'
  15243. };
  15244. if (key === 'm') {
  15245. return withoutSuffix ? 'хвилина' : 'хвилину';
  15246. }
  15247. else if (key === 'h') {
  15248. return withoutSuffix ? 'година' : 'годину';
  15249. }
  15250. else {
  15251. return number + ' ' + plural(format[key], +number);
  15252. }
  15253. }
  15254. function weekdaysCaseReplace(m, format) {
  15255. var weekdays = {
  15256. 'nominative': 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'),
  15257. 'accusative': 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'),
  15258. 'genitive': 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')
  15259. };
  15260. if (!m) {
  15261. return weekdays['nominative'];
  15262. }
  15263. var nounCase = (/(\[[ВвУу]\]) ?dddd/).test(format) ?
  15264. 'accusative' :
  15265. ((/\[?(?:минулої|наступної)? ?\] ?dddd/).test(format) ?
  15266. 'genitive' :
  15267. 'nominative');
  15268. return weekdays[nounCase][m.day()];
  15269. }
  15270. function processHoursFunction(str) {
  15271. return function () {
  15272. return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
  15273. };
  15274. }
  15275. var uk = moment.defineLocale('uk', {
  15276. months : {
  15277. 'format': 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_'),
  15278. 'standalone': 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_')
  15279. },
  15280. monthsShort : 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'),
  15281. weekdays : weekdaysCaseReplace,
  15282. weekdaysShort : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  15283. weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
  15284. longDateFormat : {
  15285. LT : 'HH:mm',
  15286. LTS : 'HH:mm:ss',
  15287. L : 'DD.MM.YYYY',
  15288. LL : 'D MMMM YYYY р.',
  15289. LLL : 'D MMMM YYYY р., HH:mm',
  15290. LLLL : 'dddd, D MMMM YYYY р., HH:mm'
  15291. },
  15292. calendar : {
  15293. sameDay: processHoursFunction('[Сьогодні '),
  15294. nextDay: processHoursFunction('[Завтра '),
  15295. lastDay: processHoursFunction('[Вчора '),
  15296. nextWeek: processHoursFunction('[У] dddd ['),
  15297. lastWeek: function () {
  15298. switch (this.day()) {
  15299. case 0:
  15300. case 3:
  15301. case 5:
  15302. case 6:
  15303. return processHoursFunction('[Минулої] dddd [').call(this);
  15304. case 1:
  15305. case 2:
  15306. case 4:
  15307. return processHoursFunction('[Минулого] dddd [').call(this);
  15308. }
  15309. },
  15310. sameElse: 'L'
  15311. },
  15312. relativeTime : {
  15313. future : 'за %s',
  15314. past : '%s тому',
  15315. s : 'декілька секунд',
  15316. m : relativeTimeWithPlural,
  15317. mm : relativeTimeWithPlural,
  15318. h : 'годину',
  15319. hh : relativeTimeWithPlural,
  15320. d : 'день',
  15321. dd : relativeTimeWithPlural,
  15322. M : 'місяць',
  15323. MM : relativeTimeWithPlural,
  15324. y : 'рік',
  15325. yy : relativeTimeWithPlural
  15326. },
  15327. // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
  15328. meridiemParse: /ночі|ранку|дня|вечора/,
  15329. isPM: function (input) {
  15330. return /^(дня|вечора)$/.test(input);
  15331. },
  15332. meridiem : function (hour, minute, isLower) {
  15333. if (hour < 4) {
  15334. return 'ночі';
  15335. } else if (hour < 12) {
  15336. return 'ранку';
  15337. } else if (hour < 17) {
  15338. return 'дня';
  15339. } else {
  15340. return 'вечора';
  15341. }
  15342. },
  15343. dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/,
  15344. ordinal: function (number, period) {
  15345. switch (period) {
  15346. case 'M':
  15347. case 'd':
  15348. case 'DDD':
  15349. case 'w':
  15350. case 'W':
  15351. return number + '-й';
  15352. case 'D':
  15353. return number + '-го';
  15354. default:
  15355. return number;
  15356. }
  15357. },
  15358. week : {
  15359. dow : 1, // Monday is the first day of the week.
  15360. doy : 7 // The week that contains Jan 1st is the first week of the year.
  15361. }
  15362. });
  15363. return uk;
  15364. })));
  15365. /***/ }),
  15366. /***/ "./node_modules/moment/locale/ur.js":
  15367. /*!******************************************!*\
  15368. !*** ./node_modules/moment/locale/ur.js ***!
  15369. \******************************************/
  15370. /*! no static exports found */
  15371. /***/ (function(module, exports, __webpack_require__) {
  15372. //! moment.js locale configuration
  15373. //! locale : Urdu [ur]
  15374. //! author : Sawood Alam : https://github.com/ibnesayeed
  15375. //! author : Zack : https://github.com/ZackVision
  15376. ;(function (global, factory) {
  15377. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  15378. undefined
  15379. }(this, (function (moment) { 'use strict';
  15380. var months = [
  15381. 'جنوری',
  15382. 'فروری',
  15383. 'مارچ',
  15384. 'اپریل',
  15385. 'مئی',
  15386. 'جون',
  15387. 'جولائی',
  15388. 'اگست',
  15389. 'ستمبر',
  15390. 'اکتوبر',
  15391. 'نومبر',
  15392. 'دسمبر'
  15393. ];
  15394. var days = [
  15395. 'اتوار',
  15396. 'پیر',
  15397. 'منگل',
  15398. 'بدھ',
  15399. 'جمعرات',
  15400. 'جمعہ',
  15401. 'ہفتہ'
  15402. ];
  15403. var ur = moment.defineLocale('ur', {
  15404. months : months,
  15405. monthsShort : months,
  15406. weekdays : days,
  15407. weekdaysShort : days,
  15408. weekdaysMin : days,
  15409. longDateFormat : {
  15410. LT : 'HH:mm',
  15411. LTS : 'HH:mm:ss',
  15412. L : 'DD/MM/YYYY',
  15413. LL : 'D MMMM YYYY',
  15414. LLL : 'D MMMM YYYY HH:mm',
  15415. LLLL : 'dddd، D MMMM YYYY HH:mm'
  15416. },
  15417. meridiemParse: /صبح|شام/,
  15418. isPM : function (input) {
  15419. return 'شام' === input;
  15420. },
  15421. meridiem : function (hour, minute, isLower) {
  15422. if (hour < 12) {
  15423. return 'صبح';
  15424. }
  15425. return 'شام';
  15426. },
  15427. calendar : {
  15428. sameDay : '[آج بوقت] LT',
  15429. nextDay : '[کل بوقت] LT',
  15430. nextWeek : 'dddd [بوقت] LT',
  15431. lastDay : '[گذشتہ روز بوقت] LT',
  15432. lastWeek : '[گذشتہ] dddd [بوقت] LT',
  15433. sameElse : 'L'
  15434. },
  15435. relativeTime : {
  15436. future : '%s بعد',
  15437. past : '%s قبل',
  15438. s : 'چند سیکنڈ',
  15439. m : 'ایک منٹ',
  15440. mm : '%d منٹ',
  15441. h : 'ایک گھنٹہ',
  15442. hh : '%d گھنٹے',
  15443. d : 'ایک دن',
  15444. dd : '%d دن',
  15445. M : 'ایک ماہ',
  15446. MM : '%d ماہ',
  15447. y : 'ایک سال',
  15448. yy : '%d سال'
  15449. },
  15450. preparse: function (string) {
  15451. return string.replace(/،/g, ',');
  15452. },
  15453. postformat: function (string) {
  15454. return string.replace(/,/g, '،');
  15455. },
  15456. week : {
  15457. dow : 1, // Monday is the first day of the week.
  15458. doy : 4 // The week that contains Jan 4th is the first week of the year.
  15459. }
  15460. });
  15461. return ur;
  15462. })));
  15463. /***/ }),
  15464. /***/ "./node_modules/moment/locale/uz-latn.js":
  15465. /*!***********************************************!*\
  15466. !*** ./node_modules/moment/locale/uz-latn.js ***!
  15467. \***********************************************/
  15468. /*! no static exports found */
  15469. /***/ (function(module, exports, __webpack_require__) {
  15470. //! moment.js locale configuration
  15471. //! locale : Uzbek Latin [uz-latn]
  15472. //! author : Rasulbek Mirzayev : github.com/Rasulbeeek
  15473. ;(function (global, factory) {
  15474. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  15475. undefined
  15476. }(this, (function (moment) { 'use strict';
  15477. var uzLatn = moment.defineLocale('uz-latn', {
  15478. months : 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split('_'),
  15479. monthsShort : 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split('_'),
  15480. weekdays : 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split('_'),
  15481. weekdaysShort : 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'),
  15482. weekdaysMin : 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'),
  15483. longDateFormat : {
  15484. LT : 'HH:mm',
  15485. LTS : 'HH:mm:ss',
  15486. L : 'DD/MM/YYYY',
  15487. LL : 'D MMMM YYYY',
  15488. LLL : 'D MMMM YYYY HH:mm',
  15489. LLLL : 'D MMMM YYYY, dddd HH:mm'
  15490. },
  15491. calendar : {
  15492. sameDay : '[Bugun soat] LT [da]',
  15493. nextDay : '[Ertaga] LT [da]',
  15494. nextWeek : 'dddd [kuni soat] LT [da]',
  15495. lastDay : '[Kecha soat] LT [da]',
  15496. lastWeek : '[O\'tgan] dddd [kuni soat] LT [da]',
  15497. sameElse : 'L'
  15498. },
  15499. relativeTime : {
  15500. future : 'Yaqin %s ichida',
  15501. past : 'Bir necha %s oldin',
  15502. s : 'soniya',
  15503. m : 'bir daqiqa',
  15504. mm : '%d daqiqa',
  15505. h : 'bir soat',
  15506. hh : '%d soat',
  15507. d : 'bir kun',
  15508. dd : '%d kun',
  15509. M : 'bir oy',
  15510. MM : '%d oy',
  15511. y : 'bir yil',
  15512. yy : '%d yil'
  15513. },
  15514. week : {
  15515. dow : 1, // Monday is the first day of the week.
  15516. doy : 7 // The week that contains Jan 1st is the first week of the year.
  15517. }
  15518. });
  15519. return uzLatn;
  15520. })));
  15521. /***/ }),
  15522. /***/ "./node_modules/moment/locale/uz.js":
  15523. /*!******************************************!*\
  15524. !*** ./node_modules/moment/locale/uz.js ***!
  15525. \******************************************/
  15526. /*! no static exports found */
  15527. /***/ (function(module, exports, __webpack_require__) {
  15528. //! moment.js locale configuration
  15529. //! locale : Uzbek [uz]
  15530. //! author : Sardor Muminov : https://github.com/muminoff
  15531. ;(function (global, factory) {
  15532. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  15533. undefined
  15534. }(this, (function (moment) { 'use strict';
  15535. var uz = moment.defineLocale('uz', {
  15536. months : 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split('_'),
  15537. monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'),
  15538. weekdays : 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'),
  15539. weekdaysShort : 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'),
  15540. weekdaysMin : 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
  15541. longDateFormat : {
  15542. LT : 'HH:mm',
  15543. LTS : 'HH:mm:ss',
  15544. L : 'DD/MM/YYYY',
  15545. LL : 'D MMMM YYYY',
  15546. LLL : 'D MMMM YYYY HH:mm',
  15547. LLLL : 'D MMMM YYYY, dddd HH:mm'
  15548. },
  15549. calendar : {
  15550. sameDay : '[Бугун соат] LT [да]',
  15551. nextDay : '[Эртага] LT [да]',
  15552. nextWeek : 'dddd [куни соат] LT [да]',
  15553. lastDay : '[Кеча соат] LT [да]',
  15554. lastWeek : '[Утган] dddd [куни соат] LT [да]',
  15555. sameElse : 'L'
  15556. },
  15557. relativeTime : {
  15558. future : 'Якин %s ичида',
  15559. past : 'Бир неча %s олдин',
  15560. s : 'фурсат',
  15561. m : 'бир дакика',
  15562. mm : '%d дакика',
  15563. h : 'бир соат',
  15564. hh : '%d соат',
  15565. d : 'бир кун',
  15566. dd : '%d кун',
  15567. M : 'бир ой',
  15568. MM : '%d ой',
  15569. y : 'бир йил',
  15570. yy : '%d йил'
  15571. },
  15572. week : {
  15573. dow : 1, // Monday is the first day of the week.
  15574. doy : 7 // The week that contains Jan 4th is the first week of the year.
  15575. }
  15576. });
  15577. return uz;
  15578. })));
  15579. /***/ }),
  15580. /***/ "./node_modules/moment/locale/vi.js":
  15581. /*!******************************************!*\
  15582. !*** ./node_modules/moment/locale/vi.js ***!
  15583. \******************************************/
  15584. /*! no static exports found */
  15585. /***/ (function(module, exports, __webpack_require__) {
  15586. //! moment.js locale configuration
  15587. //! locale : Vietnamese [vi]
  15588. //! author : Bang Nguyen : https://github.com/bangnk
  15589. ;(function (global, factory) {
  15590. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  15591. undefined
  15592. }(this, (function (moment) { 'use strict';
  15593. var vi = moment.defineLocale('vi', {
  15594. 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('_'),
  15595. monthsShort : 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'),
  15596. monthsParseExact : true,
  15597. weekdays : 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),
  15598. weekdaysShort : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  15599. weekdaysMin : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  15600. weekdaysParseExact : true,
  15601. meridiemParse: /sa|ch/i,
  15602. isPM : function (input) {
  15603. return /^ch$/i.test(input);
  15604. },
  15605. meridiem : function (hours, minutes, isLower) {
  15606. if (hours < 12) {
  15607. return isLower ? 'sa' : 'SA';
  15608. } else {
  15609. return isLower ? 'ch' : 'CH';
  15610. }
  15611. },
  15612. longDateFormat : {
  15613. LT : 'HH:mm',
  15614. LTS : 'HH:mm:ss',
  15615. L : 'DD/MM/YYYY',
  15616. LL : 'D MMMM [năm] YYYY',
  15617. LLL : 'D MMMM [năm] YYYY HH:mm',
  15618. LLLL : 'dddd, D MMMM [năm] YYYY HH:mm',
  15619. l : 'DD/M/YYYY',
  15620. ll : 'D MMM YYYY',
  15621. lll : 'D MMM YYYY HH:mm',
  15622. llll : 'ddd, D MMM YYYY HH:mm'
  15623. },
  15624. calendar : {
  15625. sameDay: '[Hôm nay lúc] LT',
  15626. nextDay: '[Ngày mai lúc] LT',
  15627. nextWeek: 'dddd [tuần tới lúc] LT',
  15628. lastDay: '[Hôm qua lúc] LT',
  15629. lastWeek: 'dddd [tuần rồi lúc] LT',
  15630. sameElse: 'L'
  15631. },
  15632. relativeTime : {
  15633. future : '%s tới',
  15634. past : '%s trước',
  15635. s : 'vài giây',
  15636. m : 'một phút',
  15637. mm : '%d phút',
  15638. h : 'một giờ',
  15639. hh : '%d giờ',
  15640. d : 'một ngày',
  15641. dd : '%d ngày',
  15642. M : 'một tháng',
  15643. MM : '%d tháng',
  15644. y : 'một năm',
  15645. yy : '%d năm'
  15646. },
  15647. dayOfMonthOrdinalParse: /\d{1,2}/,
  15648. ordinal : function (number) {
  15649. return number;
  15650. },
  15651. week : {
  15652. dow : 1, // Monday is the first day of the week.
  15653. doy : 4 // The week that contains Jan 4th is the first week of the year.
  15654. }
  15655. });
  15656. return vi;
  15657. })));
  15658. /***/ }),
  15659. /***/ "./node_modules/moment/locale/x-pseudo.js":
  15660. /*!************************************************!*\
  15661. !*** ./node_modules/moment/locale/x-pseudo.js ***!
  15662. \************************************************/
  15663. /*! no static exports found */
  15664. /***/ (function(module, exports, __webpack_require__) {
  15665. //! moment.js locale configuration
  15666. //! locale : Pseudo [x-pseudo]
  15667. //! author : Andrew Hood : https://github.com/andrewhood125
  15668. ;(function (global, factory) {
  15669. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  15670. undefined
  15671. }(this, (function (moment) { 'use strict';
  15672. var xPseudo = moment.defineLocale('x-pseudo', {
  15673. months : 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split('_'),
  15674. monthsShort : 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split('_'),
  15675. monthsParseExact : true,
  15676. weekdays : 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split('_'),
  15677. weekdaysShort : 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'),
  15678. weekdaysMin : 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'),
  15679. weekdaysParseExact : true,
  15680. longDateFormat : {
  15681. LT : 'HH:mm',
  15682. L : 'DD/MM/YYYY',
  15683. LL : 'D MMMM YYYY',
  15684. LLL : 'D MMMM YYYY HH:mm',
  15685. LLLL : 'dddd, D MMMM YYYY HH:mm'
  15686. },
  15687. calendar : {
  15688. sameDay : '[T~ódá~ý át] LT',
  15689. nextDay : '[T~ómó~rró~w át] LT',
  15690. nextWeek : 'dddd [át] LT',
  15691. lastDay : '[Ý~ést~érdá~ý át] LT',
  15692. lastWeek : '[L~ást] dddd [át] LT',
  15693. sameElse : 'L'
  15694. },
  15695. relativeTime : {
  15696. future : 'í~ñ %s',
  15697. past : '%s á~gó',
  15698. s : 'á ~féw ~sécó~ñds',
  15699. m : 'á ~míñ~úté',
  15700. mm : '%d m~íñú~tés',
  15701. h : 'á~ñ hó~úr',
  15702. hh : '%d h~óúrs',
  15703. d : 'á ~dáý',
  15704. dd : '%d d~áýs',
  15705. M : 'á ~móñ~th',
  15706. MM : '%d m~óñt~hs',
  15707. y : 'á ~ýéár',
  15708. yy : '%d ý~éárs'
  15709. },
  15710. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  15711. ordinal : function (number) {
  15712. var b = number % 10,
  15713. output = (~~(number % 100 / 10) === 1) ? 'th' :
  15714. (b === 1) ? 'st' :
  15715. (b === 2) ? 'nd' :
  15716. (b === 3) ? 'rd' : 'th';
  15717. return number + output;
  15718. },
  15719. week : {
  15720. dow : 1, // Monday is the first day of the week.
  15721. doy : 4 // The week that contains Jan 4th is the first week of the year.
  15722. }
  15723. });
  15724. return xPseudo;
  15725. })));
  15726. /***/ }),
  15727. /***/ "./node_modules/moment/locale/yo.js":
  15728. /*!******************************************!*\
  15729. !*** ./node_modules/moment/locale/yo.js ***!
  15730. \******************************************/
  15731. /*! no static exports found */
  15732. /***/ (function(module, exports, __webpack_require__) {
  15733. //! moment.js locale configuration
  15734. //! locale : Yoruba Nigeria [yo]
  15735. //! author : Atolagbe Abisoye : https://github.com/andela-batolagbe
  15736. ;(function (global, factory) {
  15737. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  15738. undefined
  15739. }(this, (function (moment) { 'use strict';
  15740. var yo = moment.defineLocale('yo', {
  15741. months : 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split('_'),
  15742. monthsShort : 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split('_'),
  15743. weekdays : 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'),
  15744. weekdaysShort : 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'),
  15745. weekdaysMin : 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'),
  15746. longDateFormat : {
  15747. LT : 'h:mm A',
  15748. LTS : 'h:mm:ss A',
  15749. L : 'DD/MM/YYYY',
  15750. LL : 'D MMMM YYYY',
  15751. LLL : 'D MMMM YYYY h:mm A',
  15752. LLLL : 'dddd, D MMMM YYYY h:mm A'
  15753. },
  15754. calendar : {
  15755. sameDay : '[Ònì ni] LT',
  15756. nextDay : '[Ọ̀la ni] LT',
  15757. nextWeek : 'dddd [Ọsẹ̀ tón\'bọ] [ni] LT',
  15758. lastDay : '[Àna ni] LT',
  15759. lastWeek : 'dddd [Ọsẹ̀ tólọ́] [ni] LT',
  15760. sameElse : 'L'
  15761. },
  15762. relativeTime : {
  15763. future : 'ní %s',
  15764. past : '%s kọjá',
  15765. s : 'ìsẹjú aayá die',
  15766. m : 'ìsẹjú kan',
  15767. mm : 'ìsẹjú %d',
  15768. h : 'wákati kan',
  15769. hh : 'wákati %d',
  15770. d : 'ọjọ́ kan',
  15771. dd : 'ọjọ́ %d',
  15772. M : 'osù kan',
  15773. MM : 'osù %d',
  15774. y : 'ọdún kan',
  15775. yy : 'ọdún %d'
  15776. },
  15777. dayOfMonthOrdinalParse : /ọjọ́\s\d{1,2}/,
  15778. ordinal : 'ọjọ́ %d',
  15779. week : {
  15780. dow : 1, // Monday is the first day of the week.
  15781. doy : 4 // The week that contains Jan 4th is the first week of the year.
  15782. }
  15783. });
  15784. return yo;
  15785. })));
  15786. /***/ }),
  15787. /***/ "./node_modules/moment/locale/zh-cn.js":
  15788. /*!*********************************************!*\
  15789. !*** ./node_modules/moment/locale/zh-cn.js ***!
  15790. \*********************************************/
  15791. /*! no static exports found */
  15792. /***/ (function(module, exports, __webpack_require__) {
  15793. //! moment.js locale configuration
  15794. //! locale : Chinese (China) [zh-cn]
  15795. //! author : suupic : https://github.com/suupic
  15796. //! author : Zeno Zeng : https://github.com/zenozeng
  15797. ;(function (global, factory) {
  15798. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  15799. undefined
  15800. }(this, (function (moment) { 'use strict';
  15801. var zhCn = moment.defineLocale('zh-cn', {
  15802. months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  15803. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  15804. weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  15805. weekdaysShort : '周日_周一_周二_周三_周四_周五_周六'.split('_'),
  15806. weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
  15807. longDateFormat : {
  15808. LT : 'HH:mm',
  15809. LTS : 'HH:mm:ss',
  15810. L : 'YYYY年MMMD日',
  15811. LL : 'YYYY年MMMD日',
  15812. LLL : 'YYYY年MMMD日Ah点mm分',
  15813. LLLL : 'YYYY年MMMD日ddddAh点mm分',
  15814. l : 'YYYY年MMMD日',
  15815. ll : 'YYYY年MMMD日',
  15816. lll : 'YYYY年MMMD日 HH:mm',
  15817. llll : 'YYYY年MMMD日dddd HH:mm'
  15818. },
  15819. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  15820. meridiemHour: function (hour, meridiem) {
  15821. if (hour === 12) {
  15822. hour = 0;
  15823. }
  15824. if (meridiem === '凌晨' || meridiem === '早上' ||
  15825. meridiem === '上午') {
  15826. return hour;
  15827. } else if (meridiem === '下午' || meridiem === '晚上') {
  15828. return hour + 12;
  15829. } else {
  15830. // '中午'
  15831. return hour >= 11 ? hour : hour + 12;
  15832. }
  15833. },
  15834. meridiem : function (hour, minute, isLower) {
  15835. var hm = hour * 100 + minute;
  15836. if (hm < 600) {
  15837. return '凌晨';
  15838. } else if (hm < 900) {
  15839. return '早上';
  15840. } else if (hm < 1130) {
  15841. return '上午';
  15842. } else if (hm < 1230) {
  15843. return '中午';
  15844. } else if (hm < 1800) {
  15845. return '下午';
  15846. } else {
  15847. return '晚上';
  15848. }
  15849. },
  15850. calendar : {
  15851. sameDay : '[今天]LT',
  15852. nextDay : '[明天]LT',
  15853. nextWeek : '[下]ddddLT',
  15854. lastDay : '[昨天]LT',
  15855. lastWeek : '[上]ddddLT',
  15856. sameElse : 'L'
  15857. },
  15858. dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
  15859. ordinal : function (number, period) {
  15860. switch (period) {
  15861. case 'd':
  15862. case 'D':
  15863. case 'DDD':
  15864. return number + '日';
  15865. case 'M':
  15866. return number + '月';
  15867. case 'w':
  15868. case 'W':
  15869. return number + '周';
  15870. default:
  15871. return number;
  15872. }
  15873. },
  15874. relativeTime : {
  15875. future : '%s内',
  15876. past : '%s前',
  15877. s : '几秒',
  15878. m : '1 分钟',
  15879. mm : '%d 分钟',
  15880. h : '1 小时',
  15881. hh : '%d 小时',
  15882. d : '1 天',
  15883. dd : '%d 天',
  15884. M : '1 个月',
  15885. MM : '%d 个月',
  15886. y : '1 年',
  15887. yy : '%d 年'
  15888. },
  15889. week : {
  15890. // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
  15891. dow : 1, // Monday is the first day of the week.
  15892. doy : 4 // The week that contains Jan 4th is the first week of the year.
  15893. }
  15894. });
  15895. return zhCn;
  15896. })));
  15897. /***/ }),
  15898. /***/ "./node_modules/moment/locale/zh-hk.js":
  15899. /*!*********************************************!*\
  15900. !*** ./node_modules/moment/locale/zh-hk.js ***!
  15901. \*********************************************/
  15902. /*! no static exports found */
  15903. /***/ (function(module, exports, __webpack_require__) {
  15904. //! moment.js locale configuration
  15905. //! locale : Chinese (Hong Kong) [zh-hk]
  15906. //! author : Ben : https://github.com/ben-lin
  15907. //! author : Chris Lam : https://github.com/hehachris
  15908. //! author : Konstantin : https://github.com/skfd
  15909. ;(function (global, factory) {
  15910. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  15911. undefined
  15912. }(this, (function (moment) { 'use strict';
  15913. var zhHk = moment.defineLocale('zh-hk', {
  15914. months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  15915. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  15916. weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  15917. weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  15918. weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
  15919. longDateFormat : {
  15920. LT : 'HH:mm',
  15921. LTS : 'HH:mm:ss',
  15922. L : 'YYYY年MMMD日',
  15923. LL : 'YYYY年MMMD日',
  15924. LLL : 'YYYY年MMMD日 HH:mm',
  15925. LLLL : 'YYYY年MMMD日dddd HH:mm',
  15926. l : 'YYYY年MMMD日',
  15927. ll : 'YYYY年MMMD日',
  15928. lll : 'YYYY年MMMD日 HH:mm',
  15929. llll : 'YYYY年MMMD日dddd HH:mm'
  15930. },
  15931. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  15932. meridiemHour : function (hour, meridiem) {
  15933. if (hour === 12) {
  15934. hour = 0;
  15935. }
  15936. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  15937. return hour;
  15938. } else if (meridiem === '中午') {
  15939. return hour >= 11 ? hour : hour + 12;
  15940. } else if (meridiem === '下午' || meridiem === '晚上') {
  15941. return hour + 12;
  15942. }
  15943. },
  15944. meridiem : function (hour, minute, isLower) {
  15945. var hm = hour * 100 + minute;
  15946. if (hm < 600) {
  15947. return '凌晨';
  15948. } else if (hm < 900) {
  15949. return '早上';
  15950. } else if (hm < 1130) {
  15951. return '上午';
  15952. } else if (hm < 1230) {
  15953. return '中午';
  15954. } else if (hm < 1800) {
  15955. return '下午';
  15956. } else {
  15957. return '晚上';
  15958. }
  15959. },
  15960. calendar : {
  15961. sameDay : '[今天]LT',
  15962. nextDay : '[明天]LT',
  15963. nextWeek : '[下]ddddLT',
  15964. lastDay : '[昨天]LT',
  15965. lastWeek : '[上]ddddLT',
  15966. sameElse : 'L'
  15967. },
  15968. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  15969. ordinal : function (number, period) {
  15970. switch (period) {
  15971. case 'd' :
  15972. case 'D' :
  15973. case 'DDD' :
  15974. return number + '日';
  15975. case 'M' :
  15976. return number + '月';
  15977. case 'w' :
  15978. case 'W' :
  15979. return number + '週';
  15980. default :
  15981. return number;
  15982. }
  15983. },
  15984. relativeTime : {
  15985. future : '%s內',
  15986. past : '%s前',
  15987. s : '幾秒',
  15988. m : '1 分鐘',
  15989. mm : '%d 分鐘',
  15990. h : '1 小時',
  15991. hh : '%d 小時',
  15992. d : '1 天',
  15993. dd : '%d 天',
  15994. M : '1 個月',
  15995. MM : '%d 個月',
  15996. y : '1 年',
  15997. yy : '%d 年'
  15998. }
  15999. });
  16000. return zhHk;
  16001. })));
  16002. /***/ }),
  16003. /***/ "./node_modules/moment/locale/zh-tw.js":
  16004. /*!*********************************************!*\
  16005. !*** ./node_modules/moment/locale/zh-tw.js ***!
  16006. \*********************************************/
  16007. /*! no static exports found */
  16008. /***/ (function(module, exports, __webpack_require__) {
  16009. //! moment.js locale configuration
  16010. //! locale : Chinese (Taiwan) [zh-tw]
  16011. //! author : Ben : https://github.com/ben-lin
  16012. //! author : Chris Lam : https://github.com/hehachris
  16013. ;(function (global, factory) {
  16014. true ? factory(__webpack_require__(/*! ../moment */ "./node_modules/moment/moment.js")) :
  16015. undefined
  16016. }(this, (function (moment) { 'use strict';
  16017. var zhTw = moment.defineLocale('zh-tw', {
  16018. months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
  16019. monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
  16020. weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
  16021. weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'),
  16022. weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
  16023. longDateFormat : {
  16024. LT : 'HH:mm',
  16025. LTS : 'HH:mm:ss',
  16026. L : 'YYYY年MMMD日',
  16027. LL : 'YYYY年MMMD日',
  16028. LLL : 'YYYY年MMMD日 HH:mm',
  16029. LLLL : 'YYYY年MMMD日dddd HH:mm',
  16030. l : 'YYYY年MMMD日',
  16031. ll : 'YYYY年MMMD日',
  16032. lll : 'YYYY年MMMD日 HH:mm',
  16033. llll : 'YYYY年MMMD日dddd HH:mm'
  16034. },
  16035. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  16036. meridiemHour : function (hour, meridiem) {
  16037. if (hour === 12) {
  16038. hour = 0;
  16039. }
  16040. if (meridiem === '凌晨' || meridiem === '早上' || meridiem === '上午') {
  16041. return hour;
  16042. } else if (meridiem === '中午') {
  16043. return hour >= 11 ? hour : hour + 12;
  16044. } else if (meridiem === '下午' || meridiem === '晚上') {
  16045. return hour + 12;
  16046. }
  16047. },
  16048. meridiem : function (hour, minute, isLower) {
  16049. var hm = hour * 100 + minute;
  16050. if (hm < 600) {
  16051. return '凌晨';
  16052. } else if (hm < 900) {
  16053. return '早上';
  16054. } else if (hm < 1130) {
  16055. return '上午';
  16056. } else if (hm < 1230) {
  16057. return '中午';
  16058. } else if (hm < 1800) {
  16059. return '下午';
  16060. } else {
  16061. return '晚上';
  16062. }
  16063. },
  16064. calendar : {
  16065. sameDay : '[今天]LT',
  16066. nextDay : '[明天]LT',
  16067. nextWeek : '[下]ddddLT',
  16068. lastDay : '[昨天]LT',
  16069. lastWeek : '[上]ddddLT',
  16070. sameElse : 'L'
  16071. },
  16072. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  16073. ordinal : function (number, period) {
  16074. switch (period) {
  16075. case 'd' :
  16076. case 'D' :
  16077. case 'DDD' :
  16078. return number + '日';
  16079. case 'M' :
  16080. return number + '月';
  16081. case 'w' :
  16082. case 'W' :
  16083. return number + '週';
  16084. default :
  16085. return number;
  16086. }
  16087. },
  16088. relativeTime : {
  16089. future : '%s內',
  16090. past : '%s前',
  16091. s : '幾秒',
  16092. m : '1 分鐘',
  16093. mm : '%d 分鐘',
  16094. h : '1 小時',
  16095. hh : '%d 小時',
  16096. d : '1 天',
  16097. dd : '%d 天',
  16098. M : '1 個月',
  16099. MM : '%d 個月',
  16100. y : '1 年',
  16101. yy : '%d 年'
  16102. }
  16103. });
  16104. return zhTw;
  16105. })));
  16106. /***/ }),
  16107. /***/ "./node_modules/moment/moment.js":
  16108. /*!***************************************!*\
  16109. !*** ./node_modules/moment/moment.js ***!
  16110. \***************************************/
  16111. /*! no static exports found */
  16112. /***/ (function(module, exports, __webpack_require__) {
  16113. /* WEBPACK VAR INJECTION */(function(module) {var require;//! moment.js
  16114. //! version : 2.19.4
  16115. //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
  16116. //! license : MIT
  16117. //! momentjs.com
  16118. ;(function (global, factory) {
  16119. true ? module.exports = factory() :
  16120. undefined
  16121. }(this, (function () { 'use strict';
  16122. var hookCallback;
  16123. function hooks () {
  16124. return hookCallback.apply(null, arguments);
  16125. }
  16126. // This is done to register the method called with moment()
  16127. // without creating circular dependencies.
  16128. function setHookCallback (callback) {
  16129. hookCallback = callback;
  16130. }
  16131. function isArray(input) {
  16132. return input instanceof Array || Object.prototype.toString.call(input) === '[object Array]';
  16133. }
  16134. function isObject(input) {
  16135. // IE8 will treat undefined and null as object if it wasn't for
  16136. // input != null
  16137. return input != null && Object.prototype.toString.call(input) === '[object Object]';
  16138. }
  16139. function isObjectEmpty(obj) {
  16140. if (Object.getOwnPropertyNames) {
  16141. return (Object.getOwnPropertyNames(obj).length === 0);
  16142. } else {
  16143. var k;
  16144. for (k in obj) {
  16145. if (obj.hasOwnProperty(k)) {
  16146. return false;
  16147. }
  16148. }
  16149. return true;
  16150. }
  16151. }
  16152. function isUndefined(input) {
  16153. return input === void 0;
  16154. }
  16155. function isNumber(input) {
  16156. return typeof input === 'number' || Object.prototype.toString.call(input) === '[object Number]';
  16157. }
  16158. function isDate(input) {
  16159. return input instanceof Date || Object.prototype.toString.call(input) === '[object Date]';
  16160. }
  16161. function map(arr, fn) {
  16162. var res = [], i;
  16163. for (i = 0; i < arr.length; ++i) {
  16164. res.push(fn(arr[i], i));
  16165. }
  16166. return res;
  16167. }
  16168. function hasOwnProp(a, b) {
  16169. return Object.prototype.hasOwnProperty.call(a, b);
  16170. }
  16171. function extend(a, b) {
  16172. for (var i in b) {
  16173. if (hasOwnProp(b, i)) {
  16174. a[i] = b[i];
  16175. }
  16176. }
  16177. if (hasOwnProp(b, 'toString')) {
  16178. a.toString = b.toString;
  16179. }
  16180. if (hasOwnProp(b, 'valueOf')) {
  16181. a.valueOf = b.valueOf;
  16182. }
  16183. return a;
  16184. }
  16185. function createUTC (input, format, locale, strict) {
  16186. return createLocalOrUTC(input, format, locale, strict, true).utc();
  16187. }
  16188. function defaultParsingFlags() {
  16189. // We need to deep clone this object.
  16190. return {
  16191. empty : false,
  16192. unusedTokens : [],
  16193. unusedInput : [],
  16194. overflow : -2,
  16195. charsLeftOver : 0,
  16196. nullInput : false,
  16197. invalidMonth : null,
  16198. invalidFormat : false,
  16199. userInvalidated : false,
  16200. iso : false,
  16201. parsedDateParts : [],
  16202. meridiem : null,
  16203. rfc2822 : false,
  16204. weekdayMismatch : false
  16205. };
  16206. }
  16207. function getParsingFlags(m) {
  16208. if (m._pf == null) {
  16209. m._pf = defaultParsingFlags();
  16210. }
  16211. return m._pf;
  16212. }
  16213. var some;
  16214. if (Array.prototype.some) {
  16215. some = Array.prototype.some;
  16216. } else {
  16217. some = function (fun) {
  16218. var t = Object(this);
  16219. var len = t.length >>> 0;
  16220. for (var i = 0; i < len; i++) {
  16221. if (i in t && fun.call(this, t[i], i, t)) {
  16222. return true;
  16223. }
  16224. }
  16225. return false;
  16226. };
  16227. }
  16228. function isValid(m) {
  16229. if (m._isValid == null) {
  16230. var flags = getParsingFlags(m);
  16231. var parsedParts = some.call(flags.parsedDateParts, function (i) {
  16232. return i != null;
  16233. });
  16234. var isNowValid = !isNaN(m._d.getTime()) &&
  16235. flags.overflow < 0 &&
  16236. !flags.empty &&
  16237. !flags.invalidMonth &&
  16238. !flags.invalidWeekday &&
  16239. !flags.weekdayMismatch &&
  16240. !flags.nullInput &&
  16241. !flags.invalidFormat &&
  16242. !flags.userInvalidated &&
  16243. (!flags.meridiem || (flags.meridiem && parsedParts));
  16244. if (m._strict) {
  16245. isNowValid = isNowValid &&
  16246. flags.charsLeftOver === 0 &&
  16247. flags.unusedTokens.length === 0 &&
  16248. flags.bigHour === undefined;
  16249. }
  16250. if (Object.isFrozen == null || !Object.isFrozen(m)) {
  16251. m._isValid = isNowValid;
  16252. }
  16253. else {
  16254. return isNowValid;
  16255. }
  16256. }
  16257. return m._isValid;
  16258. }
  16259. function createInvalid (flags) {
  16260. var m = createUTC(NaN);
  16261. if (flags != null) {
  16262. extend(getParsingFlags(m), flags);
  16263. }
  16264. else {
  16265. getParsingFlags(m).userInvalidated = true;
  16266. }
  16267. return m;
  16268. }
  16269. // Plugins that add properties should also add the key here (null value),
  16270. // so we can properly clone ourselves.
  16271. var momentProperties = hooks.momentProperties = [];
  16272. function copyConfig(to, from) {
  16273. var i, prop, val;
  16274. if (!isUndefined(from._isAMomentObject)) {
  16275. to._isAMomentObject = from._isAMomentObject;
  16276. }
  16277. if (!isUndefined(from._i)) {
  16278. to._i = from._i;
  16279. }
  16280. if (!isUndefined(from._f)) {
  16281. to._f = from._f;
  16282. }
  16283. if (!isUndefined(from._l)) {
  16284. to._l = from._l;
  16285. }
  16286. if (!isUndefined(from._strict)) {
  16287. to._strict = from._strict;
  16288. }
  16289. if (!isUndefined(from._tzm)) {
  16290. to._tzm = from._tzm;
  16291. }
  16292. if (!isUndefined(from._isUTC)) {
  16293. to._isUTC = from._isUTC;
  16294. }
  16295. if (!isUndefined(from._offset)) {
  16296. to._offset = from._offset;
  16297. }
  16298. if (!isUndefined(from._pf)) {
  16299. to._pf = getParsingFlags(from);
  16300. }
  16301. if (!isUndefined(from._locale)) {
  16302. to._locale = from._locale;
  16303. }
  16304. if (momentProperties.length > 0) {
  16305. for (i = 0; i < momentProperties.length; i++) {
  16306. prop = momentProperties[i];
  16307. val = from[prop];
  16308. if (!isUndefined(val)) {
  16309. to[prop] = val;
  16310. }
  16311. }
  16312. }
  16313. return to;
  16314. }
  16315. var updateInProgress = false;
  16316. // Moment prototype object
  16317. function Moment(config) {
  16318. copyConfig(this, config);
  16319. this._d = new Date(config._d != null ? config._d.getTime() : NaN);
  16320. if (!this.isValid()) {
  16321. this._d = new Date(NaN);
  16322. }
  16323. // Prevent infinite loop in case updateOffset creates new moment
  16324. // objects.
  16325. if (updateInProgress === false) {
  16326. updateInProgress = true;
  16327. hooks.updateOffset(this);
  16328. updateInProgress = false;
  16329. }
  16330. }
  16331. function isMoment (obj) {
  16332. return obj instanceof Moment || (obj != null && obj._isAMomentObject != null);
  16333. }
  16334. function absFloor (number) {
  16335. if (number < 0) {
  16336. // -0 -> 0
  16337. return Math.ceil(number) || 0;
  16338. } else {
  16339. return Math.floor(number);
  16340. }
  16341. }
  16342. function toInt(argumentForCoercion) {
  16343. var coercedNumber = +argumentForCoercion,
  16344. value = 0;
  16345. if (coercedNumber !== 0 && isFinite(coercedNumber)) {
  16346. value = absFloor(coercedNumber);
  16347. }
  16348. return value;
  16349. }
  16350. // compare two arrays, return the number of differences
  16351. function compareArrays(array1, array2, dontConvert) {
  16352. var len = Math.min(array1.length, array2.length),
  16353. lengthDiff = Math.abs(array1.length - array2.length),
  16354. diffs = 0,
  16355. i;
  16356. for (i = 0; i < len; i++) {
  16357. if ((dontConvert && array1[i] !== array2[i]) ||
  16358. (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) {
  16359. diffs++;
  16360. }
  16361. }
  16362. return diffs + lengthDiff;
  16363. }
  16364. function warn(msg) {
  16365. if (hooks.suppressDeprecationWarnings === false &&
  16366. (typeof console !== 'undefined') && console.warn) {
  16367. console.warn('Deprecation warning: ' + msg);
  16368. }
  16369. }
  16370. function deprecate(msg, fn) {
  16371. var firstTime = true;
  16372. return extend(function () {
  16373. if (hooks.deprecationHandler != null) {
  16374. hooks.deprecationHandler(null, msg);
  16375. }
  16376. if (firstTime) {
  16377. var args = [];
  16378. var arg;
  16379. for (var i = 0; i < arguments.length; i++) {
  16380. arg = '';
  16381. if (typeof arguments[i] === 'object') {
  16382. arg += '\n[' + i + '] ';
  16383. for (var key in arguments[0]) {
  16384. arg += key + ': ' + arguments[0][key] + ', ';
  16385. }
  16386. arg = arg.slice(0, -2); // Remove trailing comma and space
  16387. } else {
  16388. arg = arguments[i];
  16389. }
  16390. args.push(arg);
  16391. }
  16392. warn(msg + '\nArguments: ' + Array.prototype.slice.call(args).join('') + '\n' + (new Error()).stack);
  16393. firstTime = false;
  16394. }
  16395. return fn.apply(this, arguments);
  16396. }, fn);
  16397. }
  16398. var deprecations = {};
  16399. function deprecateSimple(name, msg) {
  16400. if (hooks.deprecationHandler != null) {
  16401. hooks.deprecationHandler(name, msg);
  16402. }
  16403. if (!deprecations[name]) {
  16404. warn(msg);
  16405. deprecations[name] = true;
  16406. }
  16407. }
  16408. hooks.suppressDeprecationWarnings = false;
  16409. hooks.deprecationHandler = null;
  16410. function isFunction(input) {
  16411. return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
  16412. }
  16413. function set (config) {
  16414. var prop, i;
  16415. for (i in config) {
  16416. prop = config[i];
  16417. if (isFunction(prop)) {
  16418. this[i] = prop;
  16419. } else {
  16420. this['_' + i] = prop;
  16421. }
  16422. }
  16423. this._config = config;
  16424. // Lenient ordinal parsing accepts just a number in addition to
  16425. // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.
  16426. // TODO: Remove "ordinalParse" fallback in next major release.
  16427. this._dayOfMonthOrdinalParseLenient = new RegExp(
  16428. (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +
  16429. '|' + (/\d{1,2}/).source);
  16430. }
  16431. function mergeConfigs(parentConfig, childConfig) {
  16432. var res = extend({}, parentConfig), prop;
  16433. for (prop in childConfig) {
  16434. if (hasOwnProp(childConfig, prop)) {
  16435. if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {
  16436. res[prop] = {};
  16437. extend(res[prop], parentConfig[prop]);
  16438. extend(res[prop], childConfig[prop]);
  16439. } else if (childConfig[prop] != null) {
  16440. res[prop] = childConfig[prop];
  16441. } else {
  16442. delete res[prop];
  16443. }
  16444. }
  16445. }
  16446. for (prop in parentConfig) {
  16447. if (hasOwnProp(parentConfig, prop) &&
  16448. !hasOwnProp(childConfig, prop) &&
  16449. isObject(parentConfig[prop])) {
  16450. // make sure changes to properties don't modify parent config
  16451. res[prop] = extend({}, res[prop]);
  16452. }
  16453. }
  16454. return res;
  16455. }
  16456. function Locale(config) {
  16457. if (config != null) {
  16458. this.set(config);
  16459. }
  16460. }
  16461. var keys;
  16462. if (Object.keys) {
  16463. keys = Object.keys;
  16464. } else {
  16465. keys = function (obj) {
  16466. var i, res = [];
  16467. for (i in obj) {
  16468. if (hasOwnProp(obj, i)) {
  16469. res.push(i);
  16470. }
  16471. }
  16472. return res;
  16473. };
  16474. }
  16475. var defaultCalendar = {
  16476. sameDay : '[Today at] LT',
  16477. nextDay : '[Tomorrow at] LT',
  16478. nextWeek : 'dddd [at] LT',
  16479. lastDay : '[Yesterday at] LT',
  16480. lastWeek : '[Last] dddd [at] LT',
  16481. sameElse : 'L'
  16482. };
  16483. function calendar (key, mom, now) {
  16484. var output = this._calendar[key] || this._calendar['sameElse'];
  16485. return isFunction(output) ? output.call(mom, now) : output;
  16486. }
  16487. var defaultLongDateFormat = {
  16488. LTS : 'h:mm:ss A',
  16489. LT : 'h:mm A',
  16490. L : 'MM/DD/YYYY',
  16491. LL : 'MMMM D, YYYY',
  16492. LLL : 'MMMM D, YYYY h:mm A',
  16493. LLLL : 'dddd, MMMM D, YYYY h:mm A'
  16494. };
  16495. function longDateFormat (key) {
  16496. var format = this._longDateFormat[key],
  16497. formatUpper = this._longDateFormat[key.toUpperCase()];
  16498. if (format || !formatUpper) {
  16499. return format;
  16500. }
  16501. this._longDateFormat[key] = formatUpper.replace(/MMMM|MM|DD|dddd/g, function (val) {
  16502. return val.slice(1);
  16503. });
  16504. return this._longDateFormat[key];
  16505. }
  16506. var defaultInvalidDate = 'Invalid date';
  16507. function invalidDate () {
  16508. return this._invalidDate;
  16509. }
  16510. var defaultOrdinal = '%d';
  16511. var defaultDayOfMonthOrdinalParse = /\d{1,2}/;
  16512. function ordinal (number) {
  16513. return this._ordinal.replace('%d', number);
  16514. }
  16515. var defaultRelativeTime = {
  16516. future : 'in %s',
  16517. past : '%s ago',
  16518. s : 'a few seconds',
  16519. ss : '%d seconds',
  16520. m : 'a minute',
  16521. mm : '%d minutes',
  16522. h : 'an hour',
  16523. hh : '%d hours',
  16524. d : 'a day',
  16525. dd : '%d days',
  16526. M : 'a month',
  16527. MM : '%d months',
  16528. y : 'a year',
  16529. yy : '%d years'
  16530. };
  16531. function relativeTime (number, withoutSuffix, string, isFuture) {
  16532. var output = this._relativeTime[string];
  16533. return (isFunction(output)) ?
  16534. output(number, withoutSuffix, string, isFuture) :
  16535. output.replace(/%d/i, number);
  16536. }
  16537. function pastFuture (diff, output) {
  16538. var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
  16539. return isFunction(format) ? format(output) : format.replace(/%s/i, output);
  16540. }
  16541. var aliases = {};
  16542. function addUnitAlias (unit, shorthand) {
  16543. var lowerCase = unit.toLowerCase();
  16544. aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
  16545. }
  16546. function normalizeUnits(units) {
  16547. return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined;
  16548. }
  16549. function normalizeObjectUnits(inputObject) {
  16550. var normalizedInput = {},
  16551. normalizedProp,
  16552. prop;
  16553. for (prop in inputObject) {
  16554. if (hasOwnProp(inputObject, prop)) {
  16555. normalizedProp = normalizeUnits(prop);
  16556. if (normalizedProp) {
  16557. normalizedInput[normalizedProp] = inputObject[prop];
  16558. }
  16559. }
  16560. }
  16561. return normalizedInput;
  16562. }
  16563. var priorities = {};
  16564. function addUnitPriority(unit, priority) {
  16565. priorities[unit] = priority;
  16566. }
  16567. function getPrioritizedUnits(unitsObj) {
  16568. var units = [];
  16569. for (var u in unitsObj) {
  16570. units.push({unit: u, priority: priorities[u]});
  16571. }
  16572. units.sort(function (a, b) {
  16573. return a.priority - b.priority;
  16574. });
  16575. return units;
  16576. }
  16577. function zeroFill(number, targetLength, forceSign) {
  16578. var absNumber = '' + Math.abs(number),
  16579. zerosToFill = targetLength - absNumber.length,
  16580. sign = number >= 0;
  16581. return (sign ? (forceSign ? '+' : '') : '-') +
  16582. Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;
  16583. }
  16584. 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?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;
  16585. var localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g;
  16586. var formatFunctions = {};
  16587. var formatTokenFunctions = {};
  16588. // token: 'M'
  16589. // padded: ['MM', 2]
  16590. // ordinal: 'Mo'
  16591. // callback: function () { this.month() + 1 }
  16592. function addFormatToken (token, padded, ordinal, callback) {
  16593. var func = callback;
  16594. if (typeof callback === 'string') {
  16595. func = function () {
  16596. return this[callback]();
  16597. };
  16598. }
  16599. if (token) {
  16600. formatTokenFunctions[token] = func;
  16601. }
  16602. if (padded) {
  16603. formatTokenFunctions[padded[0]] = function () {
  16604. return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
  16605. };
  16606. }
  16607. if (ordinal) {
  16608. formatTokenFunctions[ordinal] = function () {
  16609. return this.localeData().ordinal(func.apply(this, arguments), token);
  16610. };
  16611. }
  16612. }
  16613. function removeFormattingTokens(input) {
  16614. if (input.match(/\[[\s\S]/)) {
  16615. return input.replace(/^\[|\]$/g, '');
  16616. }
  16617. return input.replace(/\\/g, '');
  16618. }
  16619. function makeFormatFunction(format) {
  16620. var array = format.match(formattingTokens), i, length;
  16621. for (i = 0, length = array.length; i < length; i++) {
  16622. if (formatTokenFunctions[array[i]]) {
  16623. array[i] = formatTokenFunctions[array[i]];
  16624. } else {
  16625. array[i] = removeFormattingTokens(array[i]);
  16626. }
  16627. }
  16628. return function (mom) {
  16629. var output = '', i;
  16630. for (i = 0; i < length; i++) {
  16631. output += isFunction(array[i]) ? array[i].call(mom, format) : array[i];
  16632. }
  16633. return output;
  16634. };
  16635. }
  16636. // format date using native date object
  16637. function formatMoment(m, format) {
  16638. if (!m.isValid()) {
  16639. return m.localeData().invalidDate();
  16640. }
  16641. format = expandFormat(format, m.localeData());
  16642. formatFunctions[format] = formatFunctions[format] || makeFormatFunction(format);
  16643. return formatFunctions[format](m);
  16644. }
  16645. function expandFormat(format, locale) {
  16646. var i = 5;
  16647. function replaceLongDateFormatTokens(input) {
  16648. return locale.longDateFormat(input) || input;
  16649. }
  16650. localFormattingTokens.lastIndex = 0;
  16651. while (i >= 0 && localFormattingTokens.test(format)) {
  16652. format = format.replace(localFormattingTokens, replaceLongDateFormatTokens);
  16653. localFormattingTokens.lastIndex = 0;
  16654. i -= 1;
  16655. }
  16656. return format;
  16657. }
  16658. var match1 = /\d/; // 0 - 9
  16659. var match2 = /\d\d/; // 00 - 99
  16660. var match3 = /\d{3}/; // 000 - 999
  16661. var match4 = /\d{4}/; // 0000 - 9999
  16662. var match6 = /[+-]?\d{6}/; // -999999 - 999999
  16663. var match1to2 = /\d\d?/; // 0 - 99
  16664. var match3to4 = /\d\d\d\d?/; // 999 - 9999
  16665. var match5to6 = /\d\d\d\d\d\d?/; // 99999 - 999999
  16666. var match1to3 = /\d{1,3}/; // 0 - 999
  16667. var match1to4 = /\d{1,4}/; // 0 - 9999
  16668. var match1to6 = /[+-]?\d{1,6}/; // -999999 - 999999
  16669. var matchUnsigned = /\d+/; // 0 - inf
  16670. var matchSigned = /[+-]?\d+/; // -inf - inf
  16671. var matchOffset = /Z|[+-]\d\d:?\d\d/gi; // +00:00 -00:00 +0000 -0000 or Z
  16672. var matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi; // +00 -00 +00:00 -00:00 +0000 -0000 or Z
  16673. var matchTimestamp = /[+-]?\d+(\.\d{1,3})?/; // 123456789 123456789.123
  16674. // any word (or two) characters or numbers including two/three word month in arabic.
  16675. // includes scottish gaelic two word and hyphenated months
  16676. var matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;
  16677. var regexes = {};
  16678. function addRegexToken (token, regex, strictRegex) {
  16679. regexes[token] = isFunction(regex) ? regex : function (isStrict, localeData) {
  16680. return (isStrict && strictRegex) ? strictRegex : regex;
  16681. };
  16682. }
  16683. function getParseRegexForToken (token, config) {
  16684. if (!hasOwnProp(regexes, token)) {
  16685. return new RegExp(unescapeFormat(token));
  16686. }
  16687. return regexes[token](config._strict, config._locale);
  16688. }
  16689. // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript
  16690. function unescapeFormat(s) {
  16691. return regexEscape(s.replace('\\', '').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) {
  16692. return p1 || p2 || p3 || p4;
  16693. }));
  16694. }
  16695. function regexEscape(s) {
  16696. return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
  16697. }
  16698. var tokens = {};
  16699. function addParseToken (token, callback) {
  16700. var i, func = callback;
  16701. if (typeof token === 'string') {
  16702. token = [token];
  16703. }
  16704. if (isNumber(callback)) {
  16705. func = function (input, array) {
  16706. array[callback] = toInt(input);
  16707. };
  16708. }
  16709. for (i = 0; i < token.length; i++) {
  16710. tokens[token[i]] = func;
  16711. }
  16712. }
  16713. function addWeekParseToken (token, callback) {
  16714. addParseToken(token, function (input, array, config, token) {
  16715. config._w = config._w || {};
  16716. callback(input, config._w, config, token);
  16717. });
  16718. }
  16719. function addTimeToArrayFromToken(token, input, config) {
  16720. if (input != null && hasOwnProp(tokens, token)) {
  16721. tokens[token](input, config._a, config, token);
  16722. }
  16723. }
  16724. var YEAR = 0;
  16725. var MONTH = 1;
  16726. var DATE = 2;
  16727. var HOUR = 3;
  16728. var MINUTE = 4;
  16729. var SECOND = 5;
  16730. var MILLISECOND = 6;
  16731. var WEEK = 7;
  16732. var WEEKDAY = 8;
  16733. // FORMATTING
  16734. addFormatToken('Y', 0, 0, function () {
  16735. var y = this.year();
  16736. return y <= 9999 ? '' + y : '+' + y;
  16737. });
  16738. addFormatToken(0, ['YY', 2], 0, function () {
  16739. return this.year() % 100;
  16740. });
  16741. addFormatToken(0, ['YYYY', 4], 0, 'year');
  16742. addFormatToken(0, ['YYYYY', 5], 0, 'year');
  16743. addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');
  16744. // ALIASES
  16745. addUnitAlias('year', 'y');
  16746. // PRIORITIES
  16747. addUnitPriority('year', 1);
  16748. // PARSING
  16749. addRegexToken('Y', matchSigned);
  16750. addRegexToken('YY', match1to2, match2);
  16751. addRegexToken('YYYY', match1to4, match4);
  16752. addRegexToken('YYYYY', match1to6, match6);
  16753. addRegexToken('YYYYYY', match1to6, match6);
  16754. addParseToken(['YYYYY', 'YYYYYY'], YEAR);
  16755. addParseToken('YYYY', function (input, array) {
  16756. array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
  16757. });
  16758. addParseToken('YY', function (input, array) {
  16759. array[YEAR] = hooks.parseTwoDigitYear(input);
  16760. });
  16761. addParseToken('Y', function (input, array) {
  16762. array[YEAR] = parseInt(input, 10);
  16763. });
  16764. // HELPERS
  16765. function daysInYear(year) {
  16766. return isLeapYear(year) ? 366 : 365;
  16767. }
  16768. function isLeapYear(year) {
  16769. return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
  16770. }
  16771. // HOOKS
  16772. hooks.parseTwoDigitYear = function (input) {
  16773. return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);
  16774. };
  16775. // MOMENTS
  16776. var getSetYear = makeGetSet('FullYear', true);
  16777. function getIsLeapYear () {
  16778. return isLeapYear(this.year());
  16779. }
  16780. function makeGetSet (unit, keepTime) {
  16781. return function (value) {
  16782. if (value != null) {
  16783. set$1(this, unit, value);
  16784. hooks.updateOffset(this, keepTime);
  16785. return this;
  16786. } else {
  16787. return get(this, unit);
  16788. }
  16789. };
  16790. }
  16791. function get (mom, unit) {
  16792. return mom.isValid() ?
  16793. mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() : NaN;
  16794. }
  16795. function set$1 (mom, unit, value) {
  16796. if (mom.isValid() && !isNaN(value)) {
  16797. if (unit === 'FullYear' && isLeapYear(mom.year()) && mom.month() === 1 && mom.date() === 29) {
  16798. mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value, mom.month(), daysInMonth(value, mom.month()));
  16799. }
  16800. else {
  16801. mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value);
  16802. }
  16803. }
  16804. }
  16805. // MOMENTS
  16806. function stringGet (units) {
  16807. units = normalizeUnits(units);
  16808. if (isFunction(this[units])) {
  16809. return this[units]();
  16810. }
  16811. return this;
  16812. }
  16813. function stringSet (units, value) {
  16814. if (typeof units === 'object') {
  16815. units = normalizeObjectUnits(units);
  16816. var prioritized = getPrioritizedUnits(units);
  16817. for (var i = 0; i < prioritized.length; i++) {
  16818. this[prioritized[i].unit](units[prioritized[i].unit]);
  16819. }
  16820. } else {
  16821. units = normalizeUnits(units);
  16822. if (isFunction(this[units])) {
  16823. return this[units](value);
  16824. }
  16825. }
  16826. return this;
  16827. }
  16828. function mod(n, x) {
  16829. return ((n % x) + x) % x;
  16830. }
  16831. var indexOf;
  16832. if (Array.prototype.indexOf) {
  16833. indexOf = Array.prototype.indexOf;
  16834. } else {
  16835. indexOf = function (o) {
  16836. // I know
  16837. var i;
  16838. for (i = 0; i < this.length; ++i) {
  16839. if (this[i] === o) {
  16840. return i;
  16841. }
  16842. }
  16843. return -1;
  16844. };
  16845. }
  16846. function daysInMonth(year, month) {
  16847. if (isNaN(year) || isNaN(month)) {
  16848. return NaN;
  16849. }
  16850. var modMonth = mod(month, 12);
  16851. year += (month - modMonth) / 12;
  16852. return modMonth === 1 ? (isLeapYear(year) ? 29 : 28) : (31 - modMonth % 7 % 2);
  16853. }
  16854. // FORMATTING
  16855. addFormatToken('M', ['MM', 2], 'Mo', function () {
  16856. return this.month() + 1;
  16857. });
  16858. addFormatToken('MMM', 0, 0, function (format) {
  16859. return this.localeData().monthsShort(this, format);
  16860. });
  16861. addFormatToken('MMMM', 0, 0, function (format) {
  16862. return this.localeData().months(this, format);
  16863. });
  16864. // ALIASES
  16865. addUnitAlias('month', 'M');
  16866. // PRIORITY
  16867. addUnitPriority('month', 8);
  16868. // PARSING
  16869. addRegexToken('M', match1to2);
  16870. addRegexToken('MM', match1to2, match2);
  16871. addRegexToken('MMM', function (isStrict, locale) {
  16872. return locale.monthsShortRegex(isStrict);
  16873. });
  16874. addRegexToken('MMMM', function (isStrict, locale) {
  16875. return locale.monthsRegex(isStrict);
  16876. });
  16877. addParseToken(['M', 'MM'], function (input, array) {
  16878. array[MONTH] = toInt(input) - 1;
  16879. });
  16880. addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {
  16881. var month = config._locale.monthsParse(input, token, config._strict);
  16882. // if we didn't find a month name, mark the date as invalid.
  16883. if (month != null) {
  16884. array[MONTH] = month;
  16885. } else {
  16886. getParsingFlags(config).invalidMonth = input;
  16887. }
  16888. });
  16889. // LOCALES
  16890. var MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;
  16891. var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_');
  16892. function localeMonths (m, format) {
  16893. if (!m) {
  16894. return isArray(this._months) ? this._months :
  16895. this._months['standalone'];
  16896. }
  16897. return isArray(this._months) ? this._months[m.month()] :
  16898. this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format) ? 'format' : 'standalone'][m.month()];
  16899. }
  16900. var defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_');
  16901. function localeMonthsShort (m, format) {
  16902. if (!m) {
  16903. return isArray(this._monthsShort) ? this._monthsShort :
  16904. this._monthsShort['standalone'];
  16905. }
  16906. return isArray(this._monthsShort) ? this._monthsShort[m.month()] :
  16907. this._monthsShort[MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'][m.month()];
  16908. }
  16909. function handleStrictParse(monthName, format, strict) {
  16910. var i, ii, mom, llc = monthName.toLocaleLowerCase();
  16911. if (!this._monthsParse) {
  16912. // this is not used
  16913. this._monthsParse = [];
  16914. this._longMonthsParse = [];
  16915. this._shortMonthsParse = [];
  16916. for (i = 0; i < 12; ++i) {
  16917. mom = createUTC([2000, i]);
  16918. this._shortMonthsParse[i] = this.monthsShort(mom, '').toLocaleLowerCase();
  16919. this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();
  16920. }
  16921. }
  16922. if (strict) {
  16923. if (format === 'MMM') {
  16924. ii = indexOf.call(this._shortMonthsParse, llc);
  16925. return ii !== -1 ? ii : null;
  16926. } else {
  16927. ii = indexOf.call(this._longMonthsParse, llc);
  16928. return ii !== -1 ? ii : null;
  16929. }
  16930. } else {
  16931. if (format === 'MMM') {
  16932. ii = indexOf.call(this._shortMonthsParse, llc);
  16933. if (ii !== -1) {
  16934. return ii;
  16935. }
  16936. ii = indexOf.call(this._longMonthsParse, llc);
  16937. return ii !== -1 ? ii : null;
  16938. } else {
  16939. ii = indexOf.call(this._longMonthsParse, llc);
  16940. if (ii !== -1) {
  16941. return ii;
  16942. }
  16943. ii = indexOf.call(this._shortMonthsParse, llc);
  16944. return ii !== -1 ? ii : null;
  16945. }
  16946. }
  16947. }
  16948. function localeMonthsParse (monthName, format, strict) {
  16949. var i, mom, regex;
  16950. if (this._monthsParseExact) {
  16951. return handleStrictParse.call(this, monthName, format, strict);
  16952. }
  16953. if (!this._monthsParse) {
  16954. this._monthsParse = [];
  16955. this._longMonthsParse = [];
  16956. this._shortMonthsParse = [];
  16957. }
  16958. // TODO: add sorting
  16959. // Sorting makes sure if one month (or abbr) is a prefix of another
  16960. // see sorting in computeMonthsParse
  16961. for (i = 0; i < 12; i++) {
  16962. // make the regex if we don't have it already
  16963. mom = createUTC([2000, i]);
  16964. if (strict && !this._longMonthsParse[i]) {
  16965. this._longMonthsParse[i] = new RegExp('^' + this.months(mom, '').replace('.', '') + '$', 'i');
  16966. this._shortMonthsParse[i] = new RegExp('^' + this.monthsShort(mom, '').replace('.', '') + '$', 'i');
  16967. }
  16968. if (!strict && !this._monthsParse[i]) {
  16969. regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');
  16970. this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');
  16971. }
  16972. // test the regex
  16973. if (strict && format === 'MMMM' && this._longMonthsParse[i].test(monthName)) {
  16974. return i;
  16975. } else if (strict && format === 'MMM' && this._shortMonthsParse[i].test(monthName)) {
  16976. return i;
  16977. } else if (!strict && this._monthsParse[i].test(monthName)) {
  16978. return i;
  16979. }
  16980. }
  16981. }
  16982. // MOMENTS
  16983. function setMonth (mom, value) {
  16984. var dayOfMonth;
  16985. if (!mom.isValid()) {
  16986. // No op
  16987. return mom;
  16988. }
  16989. if (typeof value === 'string') {
  16990. if (/^\d+$/.test(value)) {
  16991. value = toInt(value);
  16992. } else {
  16993. value = mom.localeData().monthsParse(value);
  16994. // TODO: Another silent failure?
  16995. if (!isNumber(value)) {
  16996. return mom;
  16997. }
  16998. }
  16999. }
  17000. dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
  17001. mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth);
  17002. return mom;
  17003. }
  17004. function getSetMonth (value) {
  17005. if (value != null) {
  17006. setMonth(this, value);
  17007. hooks.updateOffset(this, true);
  17008. return this;
  17009. } else {
  17010. return get(this, 'Month');
  17011. }
  17012. }
  17013. function getDaysInMonth () {
  17014. return daysInMonth(this.year(), this.month());
  17015. }
  17016. var defaultMonthsShortRegex = matchWord;
  17017. function monthsShortRegex (isStrict) {
  17018. if (this._monthsParseExact) {
  17019. if (!hasOwnProp(this, '_monthsRegex')) {
  17020. computeMonthsParse.call(this);
  17021. }
  17022. if (isStrict) {
  17023. return this._monthsShortStrictRegex;
  17024. } else {
  17025. return this._monthsShortRegex;
  17026. }
  17027. } else {
  17028. if (!hasOwnProp(this, '_monthsShortRegex')) {
  17029. this._monthsShortRegex = defaultMonthsShortRegex;
  17030. }
  17031. return this._monthsShortStrictRegex && isStrict ?
  17032. this._monthsShortStrictRegex : this._monthsShortRegex;
  17033. }
  17034. }
  17035. var defaultMonthsRegex = matchWord;
  17036. function monthsRegex (isStrict) {
  17037. if (this._monthsParseExact) {
  17038. if (!hasOwnProp(this, '_monthsRegex')) {
  17039. computeMonthsParse.call(this);
  17040. }
  17041. if (isStrict) {
  17042. return this._monthsStrictRegex;
  17043. } else {
  17044. return this._monthsRegex;
  17045. }
  17046. } else {
  17047. if (!hasOwnProp(this, '_monthsRegex')) {
  17048. this._monthsRegex = defaultMonthsRegex;
  17049. }
  17050. return this._monthsStrictRegex && isStrict ?
  17051. this._monthsStrictRegex : this._monthsRegex;
  17052. }
  17053. }
  17054. function computeMonthsParse () {
  17055. function cmpLenRev(a, b) {
  17056. return b.length - a.length;
  17057. }
  17058. var shortPieces = [], longPieces = [], mixedPieces = [],
  17059. i, mom;
  17060. for (i = 0; i < 12; i++) {
  17061. // make the regex if we don't have it already
  17062. mom = createUTC([2000, i]);
  17063. shortPieces.push(this.monthsShort(mom, ''));
  17064. longPieces.push(this.months(mom, ''));
  17065. mixedPieces.push(this.months(mom, ''));
  17066. mixedPieces.push(this.monthsShort(mom, ''));
  17067. }
  17068. // Sorting makes sure if one month (or abbr) is a prefix of another it
  17069. // will match the longer piece.
  17070. shortPieces.sort(cmpLenRev);
  17071. longPieces.sort(cmpLenRev);
  17072. mixedPieces.sort(cmpLenRev);
  17073. for (i = 0; i < 12; i++) {
  17074. shortPieces[i] = regexEscape(shortPieces[i]);
  17075. longPieces[i] = regexEscape(longPieces[i]);
  17076. }
  17077. for (i = 0; i < 24; i++) {
  17078. mixedPieces[i] = regexEscape(mixedPieces[i]);
  17079. }
  17080. this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  17081. this._monthsShortRegex = this._monthsRegex;
  17082. this._monthsStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
  17083. this._monthsShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
  17084. }
  17085. function createDate (y, m, d, h, M, s, ms) {
  17086. // can't just apply() to create a date:
  17087. // https://stackoverflow.com/q/181348
  17088. var date = new Date(y, m, d, h, M, s, ms);
  17089. // the date constructor remaps years 0-99 to 1900-1999
  17090. if (y < 100 && y >= 0 && isFinite(date.getFullYear())) {
  17091. date.setFullYear(y);
  17092. }
  17093. return date;
  17094. }
  17095. function createUTCDate (y) {
  17096. var date = new Date(Date.UTC.apply(null, arguments));
  17097. // the Date.UTC function remaps years 0-99 to 1900-1999
  17098. if (y < 100 && y >= 0 && isFinite(date.getUTCFullYear())) {
  17099. date.setUTCFullYear(y);
  17100. }
  17101. return date;
  17102. }
  17103. // start-of-first-week - start-of-year
  17104. function firstWeekOffset(year, dow, doy) {
  17105. var // first-week day -- which january is always in the first week (4 for iso, 1 for other)
  17106. fwd = 7 + dow - doy,
  17107. // first-week day local weekday -- which local weekday is fwd
  17108. fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
  17109. return -fwdlw + fwd - 1;
  17110. }
  17111. // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday
  17112. function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
  17113. var localWeekday = (7 + weekday - dow) % 7,
  17114. weekOffset = firstWeekOffset(year, dow, doy),
  17115. dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,
  17116. resYear, resDayOfYear;
  17117. if (dayOfYear <= 0) {
  17118. resYear = year - 1;
  17119. resDayOfYear = daysInYear(resYear) + dayOfYear;
  17120. } else if (dayOfYear > daysInYear(year)) {
  17121. resYear = year + 1;
  17122. resDayOfYear = dayOfYear - daysInYear(year);
  17123. } else {
  17124. resYear = year;
  17125. resDayOfYear = dayOfYear;
  17126. }
  17127. return {
  17128. year: resYear,
  17129. dayOfYear: resDayOfYear
  17130. };
  17131. }
  17132. function weekOfYear(mom, dow, doy) {
  17133. var weekOffset = firstWeekOffset(mom.year(), dow, doy),
  17134. week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1,
  17135. resWeek, resYear;
  17136. if (week < 1) {
  17137. resYear = mom.year() - 1;
  17138. resWeek = week + weeksInYear(resYear, dow, doy);
  17139. } else if (week > weeksInYear(mom.year(), dow, doy)) {
  17140. resWeek = week - weeksInYear(mom.year(), dow, doy);
  17141. resYear = mom.year() + 1;
  17142. } else {
  17143. resYear = mom.year();
  17144. resWeek = week;
  17145. }
  17146. return {
  17147. week: resWeek,
  17148. year: resYear
  17149. };
  17150. }
  17151. function weeksInYear(year, dow, doy) {
  17152. var weekOffset = firstWeekOffset(year, dow, doy),
  17153. weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
  17154. return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
  17155. }
  17156. // FORMATTING
  17157. addFormatToken('w', ['ww', 2], 'wo', 'week');
  17158. addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');
  17159. // ALIASES
  17160. addUnitAlias('week', 'w');
  17161. addUnitAlias('isoWeek', 'W');
  17162. // PRIORITIES
  17163. addUnitPriority('week', 5);
  17164. addUnitPriority('isoWeek', 5);
  17165. // PARSING
  17166. addRegexToken('w', match1to2);
  17167. addRegexToken('ww', match1to2, match2);
  17168. addRegexToken('W', match1to2);
  17169. addRegexToken('WW', match1to2, match2);
  17170. addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input, week, config, token) {
  17171. week[token.substr(0, 1)] = toInt(input);
  17172. });
  17173. // HELPERS
  17174. // LOCALES
  17175. function localeWeek (mom) {
  17176. return weekOfYear(mom, this._week.dow, this._week.doy).week;
  17177. }
  17178. var defaultLocaleWeek = {
  17179. dow : 0, // Sunday is the first day of the week.
  17180. doy : 6 // The week that contains Jan 1st is the first week of the year.
  17181. };
  17182. function localeFirstDayOfWeek () {
  17183. return this._week.dow;
  17184. }
  17185. function localeFirstDayOfYear () {
  17186. return this._week.doy;
  17187. }
  17188. // MOMENTS
  17189. function getSetWeek (input) {
  17190. var week = this.localeData().week(this);
  17191. return input == null ? week : this.add((input - week) * 7, 'd');
  17192. }
  17193. function getSetISOWeek (input) {
  17194. var week = weekOfYear(this, 1, 4).week;
  17195. return input == null ? week : this.add((input - week) * 7, 'd');
  17196. }
  17197. // FORMATTING
  17198. addFormatToken('d', 0, 'do', 'day');
  17199. addFormatToken('dd', 0, 0, function (format) {
  17200. return this.localeData().weekdaysMin(this, format);
  17201. });
  17202. addFormatToken('ddd', 0, 0, function (format) {
  17203. return this.localeData().weekdaysShort(this, format);
  17204. });
  17205. addFormatToken('dddd', 0, 0, function (format) {
  17206. return this.localeData().weekdays(this, format);
  17207. });
  17208. addFormatToken('e', 0, 0, 'weekday');
  17209. addFormatToken('E', 0, 0, 'isoWeekday');
  17210. // ALIASES
  17211. addUnitAlias('day', 'd');
  17212. addUnitAlias('weekday', 'e');
  17213. addUnitAlias('isoWeekday', 'E');
  17214. // PRIORITY
  17215. addUnitPriority('day', 11);
  17216. addUnitPriority('weekday', 11);
  17217. addUnitPriority('isoWeekday', 11);
  17218. // PARSING
  17219. addRegexToken('d', match1to2);
  17220. addRegexToken('e', match1to2);
  17221. addRegexToken('E', match1to2);
  17222. addRegexToken('dd', function (isStrict, locale) {
  17223. return locale.weekdaysMinRegex(isStrict);
  17224. });
  17225. addRegexToken('ddd', function (isStrict, locale) {
  17226. return locale.weekdaysShortRegex(isStrict);
  17227. });
  17228. addRegexToken('dddd', function (isStrict, locale) {
  17229. return locale.weekdaysRegex(isStrict);
  17230. });
  17231. addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {
  17232. var weekday = config._locale.weekdaysParse(input, token, config._strict);
  17233. // if we didn't get a weekday name, mark the date as invalid
  17234. if (weekday != null) {
  17235. week.d = weekday;
  17236. } else {
  17237. getParsingFlags(config).invalidWeekday = input;
  17238. }
  17239. });
  17240. addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {
  17241. week[token] = toInt(input);
  17242. });
  17243. // HELPERS
  17244. function parseWeekday(input, locale) {
  17245. if (typeof input !== 'string') {
  17246. return input;
  17247. }
  17248. if (!isNaN(input)) {
  17249. return parseInt(input, 10);
  17250. }
  17251. input = locale.weekdaysParse(input);
  17252. if (typeof input === 'number') {
  17253. return input;
  17254. }
  17255. return null;
  17256. }
  17257. function parseIsoWeekday(input, locale) {
  17258. if (typeof input === 'string') {
  17259. return locale.weekdaysParse(input) % 7 || 7;
  17260. }
  17261. return isNaN(input) ? null : input;
  17262. }
  17263. // LOCALES
  17264. var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_');
  17265. function localeWeekdays (m, format) {
  17266. if (!m) {
  17267. return isArray(this._weekdays) ? this._weekdays :
  17268. this._weekdays['standalone'];
  17269. }
  17270. return isArray(this._weekdays) ? this._weekdays[m.day()] :
  17271. this._weekdays[this._weekdays.isFormat.test(format) ? 'format' : 'standalone'][m.day()];
  17272. }
  17273. var defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_');
  17274. function localeWeekdaysShort (m) {
  17275. return (m) ? this._weekdaysShort[m.day()] : this._weekdaysShort;
  17276. }
  17277. var defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_');
  17278. function localeWeekdaysMin (m) {
  17279. return (m) ? this._weekdaysMin[m.day()] : this._weekdaysMin;
  17280. }
  17281. function handleStrictParse$1(weekdayName, format, strict) {
  17282. var i, ii, mom, llc = weekdayName.toLocaleLowerCase();
  17283. if (!this._weekdaysParse) {
  17284. this._weekdaysParse = [];
  17285. this._shortWeekdaysParse = [];
  17286. this._minWeekdaysParse = [];
  17287. for (i = 0; i < 7; ++i) {
  17288. mom = createUTC([2000, 1]).day(i);
  17289. this._minWeekdaysParse[i] = this.weekdaysMin(mom, '').toLocaleLowerCase();
  17290. this._shortWeekdaysParse[i] = this.weekdaysShort(mom, '').toLocaleLowerCase();
  17291. this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();
  17292. }
  17293. }
  17294. if (strict) {
  17295. if (format === 'dddd') {
  17296. ii = indexOf.call(this._weekdaysParse, llc);
  17297. return ii !== -1 ? ii : null;
  17298. } else if (format === 'ddd') {
  17299. ii = indexOf.call(this._shortWeekdaysParse, llc);
  17300. return ii !== -1 ? ii : null;
  17301. } else {
  17302. ii = indexOf.call(this._minWeekdaysParse, llc);
  17303. return ii !== -1 ? ii : null;
  17304. }
  17305. } else {
  17306. if (format === 'dddd') {
  17307. ii = indexOf.call(this._weekdaysParse, llc);
  17308. if (ii !== -1) {
  17309. return ii;
  17310. }
  17311. ii = indexOf.call(this._shortWeekdaysParse, llc);
  17312. if (ii !== -1) {
  17313. return ii;
  17314. }
  17315. ii = indexOf.call(this._minWeekdaysParse, llc);
  17316. return ii !== -1 ? ii : null;
  17317. } else if (format === 'ddd') {
  17318. ii = indexOf.call(this._shortWeekdaysParse, llc);
  17319. if (ii !== -1) {
  17320. return ii;
  17321. }
  17322. ii = indexOf.call(this._weekdaysParse, llc);
  17323. if (ii !== -1) {
  17324. return ii;
  17325. }
  17326. ii = indexOf.call(this._minWeekdaysParse, llc);
  17327. return ii !== -1 ? ii : null;
  17328. } else {
  17329. ii = indexOf.call(this._minWeekdaysParse, llc);
  17330. if (ii !== -1) {
  17331. return ii;
  17332. }
  17333. ii = indexOf.call(this._weekdaysParse, llc);
  17334. if (ii !== -1) {
  17335. return ii;
  17336. }
  17337. ii = indexOf.call(this._shortWeekdaysParse, llc);
  17338. return ii !== -1 ? ii : null;
  17339. }
  17340. }
  17341. }
  17342. function localeWeekdaysParse (weekdayName, format, strict) {
  17343. var i, mom, regex;
  17344. if (this._weekdaysParseExact) {
  17345. return handleStrictParse$1.call(this, weekdayName, format, strict);
  17346. }
  17347. if (!this._weekdaysParse) {
  17348. this._weekdaysParse = [];
  17349. this._minWeekdaysParse = [];
  17350. this._shortWeekdaysParse = [];
  17351. this._fullWeekdaysParse = [];
  17352. }
  17353. for (i = 0; i < 7; i++) {
  17354. // make the regex if we don't have it already
  17355. mom = createUTC([2000, 1]).day(i);
  17356. if (strict && !this._fullWeekdaysParse[i]) {
  17357. this._fullWeekdaysParse[i] = new RegExp('^' + this.weekdays(mom, '').replace('.', '\.?') + '$', 'i');
  17358. this._shortWeekdaysParse[i] = new RegExp('^' + this.weekdaysShort(mom, '').replace('.', '\.?') + '$', 'i');
  17359. this._minWeekdaysParse[i] = new RegExp('^' + this.weekdaysMin(mom, '').replace('.', '\.?') + '$', 'i');
  17360. }
  17361. if (!this._weekdaysParse[i]) {
  17362. regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, '');
  17363. this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');
  17364. }
  17365. // test the regex
  17366. if (strict && format === 'dddd' && this._fullWeekdaysParse[i].test(weekdayName)) {
  17367. return i;
  17368. } else if (strict && format === 'ddd' && this._shortWeekdaysParse[i].test(weekdayName)) {
  17369. return i;
  17370. } else if (strict && format === 'dd' && this._minWeekdaysParse[i].test(weekdayName)) {
  17371. return i;
  17372. } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {
  17373. return i;
  17374. }
  17375. }
  17376. }
  17377. // MOMENTS
  17378. function getSetDayOfWeek (input) {
  17379. if (!this.isValid()) {
  17380. return input != null ? this : NaN;
  17381. }
  17382. var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
  17383. if (input != null) {
  17384. input = parseWeekday(input, this.localeData());
  17385. return this.add(input - day, 'd');
  17386. } else {
  17387. return day;
  17388. }
  17389. }
  17390. function getSetLocaleDayOfWeek (input) {
  17391. if (!this.isValid()) {
  17392. return input != null ? this : NaN;
  17393. }
  17394. var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
  17395. return input == null ? weekday : this.add(input - weekday, 'd');
  17396. }
  17397. function getSetISODayOfWeek (input) {
  17398. if (!this.isValid()) {
  17399. return input != null ? this : NaN;
  17400. }
  17401. // behaves the same as moment#day except
  17402. // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)
  17403. // as a setter, sunday should belong to the previous week.
  17404. if (input != null) {
  17405. var weekday = parseIsoWeekday(input, this.localeData());
  17406. return this.day(this.day() % 7 ? weekday : weekday - 7);
  17407. } else {
  17408. return this.day() || 7;
  17409. }
  17410. }
  17411. var defaultWeekdaysRegex = matchWord;
  17412. function weekdaysRegex (isStrict) {
  17413. if (this._weekdaysParseExact) {
  17414. if (!hasOwnProp(this, '_weekdaysRegex')) {
  17415. computeWeekdaysParse.call(this);
  17416. }
  17417. if (isStrict) {
  17418. return this._weekdaysStrictRegex;
  17419. } else {
  17420. return this._weekdaysRegex;
  17421. }
  17422. } else {
  17423. if (!hasOwnProp(this, '_weekdaysRegex')) {
  17424. this._weekdaysRegex = defaultWeekdaysRegex;
  17425. }
  17426. return this._weekdaysStrictRegex && isStrict ?
  17427. this._weekdaysStrictRegex : this._weekdaysRegex;
  17428. }
  17429. }
  17430. var defaultWeekdaysShortRegex = matchWord;
  17431. function weekdaysShortRegex (isStrict) {
  17432. if (this._weekdaysParseExact) {
  17433. if (!hasOwnProp(this, '_weekdaysRegex')) {
  17434. computeWeekdaysParse.call(this);
  17435. }
  17436. if (isStrict) {
  17437. return this._weekdaysShortStrictRegex;
  17438. } else {
  17439. return this._weekdaysShortRegex;
  17440. }
  17441. } else {
  17442. if (!hasOwnProp(this, '_weekdaysShortRegex')) {
  17443. this._weekdaysShortRegex = defaultWeekdaysShortRegex;
  17444. }
  17445. return this._weekdaysShortStrictRegex && isStrict ?
  17446. this._weekdaysShortStrictRegex : this._weekdaysShortRegex;
  17447. }
  17448. }
  17449. var defaultWeekdaysMinRegex = matchWord;
  17450. function weekdaysMinRegex (isStrict) {
  17451. if (this._weekdaysParseExact) {
  17452. if (!hasOwnProp(this, '_weekdaysRegex')) {
  17453. computeWeekdaysParse.call(this);
  17454. }
  17455. if (isStrict) {
  17456. return this._weekdaysMinStrictRegex;
  17457. } else {
  17458. return this._weekdaysMinRegex;
  17459. }
  17460. } else {
  17461. if (!hasOwnProp(this, '_weekdaysMinRegex')) {
  17462. this._weekdaysMinRegex = defaultWeekdaysMinRegex;
  17463. }
  17464. return this._weekdaysMinStrictRegex && isStrict ?
  17465. this._weekdaysMinStrictRegex : this._weekdaysMinRegex;
  17466. }
  17467. }
  17468. function computeWeekdaysParse () {
  17469. function cmpLenRev(a, b) {
  17470. return b.length - a.length;
  17471. }
  17472. var minPieces = [], shortPieces = [], longPieces = [], mixedPieces = [],
  17473. i, mom, minp, shortp, longp;
  17474. for (i = 0; i < 7; i++) {
  17475. // make the regex if we don't have it already
  17476. mom = createUTC([2000, 1]).day(i);
  17477. minp = this.weekdaysMin(mom, '');
  17478. shortp = this.weekdaysShort(mom, '');
  17479. longp = this.weekdays(mom, '');
  17480. minPieces.push(minp);
  17481. shortPieces.push(shortp);
  17482. longPieces.push(longp);
  17483. mixedPieces.push(minp);
  17484. mixedPieces.push(shortp);
  17485. mixedPieces.push(longp);
  17486. }
  17487. // Sorting makes sure if one weekday (or abbr) is a prefix of another it
  17488. // will match the longer piece.
  17489. minPieces.sort(cmpLenRev);
  17490. shortPieces.sort(cmpLenRev);
  17491. longPieces.sort(cmpLenRev);
  17492. mixedPieces.sort(cmpLenRev);
  17493. for (i = 0; i < 7; i++) {
  17494. shortPieces[i] = regexEscape(shortPieces[i]);
  17495. longPieces[i] = regexEscape(longPieces[i]);
  17496. mixedPieces[i] = regexEscape(mixedPieces[i]);
  17497. }
  17498. this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');
  17499. this._weekdaysShortRegex = this._weekdaysRegex;
  17500. this._weekdaysMinRegex = this._weekdaysRegex;
  17501. this._weekdaysStrictRegex = new RegExp('^(' + longPieces.join('|') + ')', 'i');
  17502. this._weekdaysShortStrictRegex = new RegExp('^(' + shortPieces.join('|') + ')', 'i');
  17503. this._weekdaysMinStrictRegex = new RegExp('^(' + minPieces.join('|') + ')', 'i');
  17504. }
  17505. // FORMATTING
  17506. function hFormat() {
  17507. return this.hours() % 12 || 12;
  17508. }
  17509. function kFormat() {
  17510. return this.hours() || 24;
  17511. }
  17512. addFormatToken('H', ['HH', 2], 0, 'hour');
  17513. addFormatToken('h', ['hh', 2], 0, hFormat);
  17514. addFormatToken('k', ['kk', 2], 0, kFormat);
  17515. addFormatToken('hmm', 0, 0, function () {
  17516. return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);
  17517. });
  17518. addFormatToken('hmmss', 0, 0, function () {
  17519. return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2) +
  17520. zeroFill(this.seconds(), 2);
  17521. });
  17522. addFormatToken('Hmm', 0, 0, function () {
  17523. return '' + this.hours() + zeroFill(this.minutes(), 2);
  17524. });
  17525. addFormatToken('Hmmss', 0, 0, function () {
  17526. return '' + this.hours() + zeroFill(this.minutes(), 2) +
  17527. zeroFill(this.seconds(), 2);
  17528. });
  17529. function meridiem (token, lowercase) {
  17530. addFormatToken(token, 0, 0, function () {
  17531. return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);
  17532. });
  17533. }
  17534. meridiem('a', true);
  17535. meridiem('A', false);
  17536. // ALIASES
  17537. addUnitAlias('hour', 'h');
  17538. // PRIORITY
  17539. addUnitPriority('hour', 13);
  17540. // PARSING
  17541. function matchMeridiem (isStrict, locale) {
  17542. return locale._meridiemParse;
  17543. }
  17544. addRegexToken('a', matchMeridiem);
  17545. addRegexToken('A', matchMeridiem);
  17546. addRegexToken('H', match1to2);
  17547. addRegexToken('h', match1to2);
  17548. addRegexToken('k', match1to2);
  17549. addRegexToken('HH', match1to2, match2);
  17550. addRegexToken('hh', match1to2, match2);
  17551. addRegexToken('kk', match1to2, match2);
  17552. addRegexToken('hmm', match3to4);
  17553. addRegexToken('hmmss', match5to6);
  17554. addRegexToken('Hmm', match3to4);
  17555. addRegexToken('Hmmss', match5to6);
  17556. addParseToken(['H', 'HH'], HOUR);
  17557. addParseToken(['k', 'kk'], function (input, array, config) {
  17558. var kInput = toInt(input);
  17559. array[HOUR] = kInput === 24 ? 0 : kInput;
  17560. });
  17561. addParseToken(['a', 'A'], function (input, array, config) {
  17562. config._isPm = config._locale.isPM(input);
  17563. config._meridiem = input;
  17564. });
  17565. addParseToken(['h', 'hh'], function (input, array, config) {
  17566. array[HOUR] = toInt(input);
  17567. getParsingFlags(config).bigHour = true;
  17568. });
  17569. addParseToken('hmm', function (input, array, config) {
  17570. var pos = input.length - 2;
  17571. array[HOUR] = toInt(input.substr(0, pos));
  17572. array[MINUTE] = toInt(input.substr(pos));
  17573. getParsingFlags(config).bigHour = true;
  17574. });
  17575. addParseToken('hmmss', function (input, array, config) {
  17576. var pos1 = input.length - 4;
  17577. var pos2 = input.length - 2;
  17578. array[HOUR] = toInt(input.substr(0, pos1));
  17579. array[MINUTE] = toInt(input.substr(pos1, 2));
  17580. array[SECOND] = toInt(input.substr(pos2));
  17581. getParsingFlags(config).bigHour = true;
  17582. });
  17583. addParseToken('Hmm', function (input, array, config) {
  17584. var pos = input.length - 2;
  17585. array[HOUR] = toInt(input.substr(0, pos));
  17586. array[MINUTE] = toInt(input.substr(pos));
  17587. });
  17588. addParseToken('Hmmss', function (input, array, config) {
  17589. var pos1 = input.length - 4;
  17590. var pos2 = input.length - 2;
  17591. array[HOUR] = toInt(input.substr(0, pos1));
  17592. array[MINUTE] = toInt(input.substr(pos1, 2));
  17593. array[SECOND] = toInt(input.substr(pos2));
  17594. });
  17595. // LOCALES
  17596. function localeIsPM (input) {
  17597. // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays
  17598. // Using charAt should be more compatible.
  17599. return ((input + '').toLowerCase().charAt(0) === 'p');
  17600. }
  17601. var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i;
  17602. function localeMeridiem (hours, minutes, isLower) {
  17603. if (hours > 11) {
  17604. return isLower ? 'pm' : 'PM';
  17605. } else {
  17606. return isLower ? 'am' : 'AM';
  17607. }
  17608. }
  17609. // MOMENTS
  17610. // Setting the hour should keep the time, because the user explicitly
  17611. // specified which hour he wants. So trying to maintain the same hour (in
  17612. // a new timezone) makes sense. Adding/subtracting hours does not follow
  17613. // this rule.
  17614. var getSetHour = makeGetSet('Hours', true);
  17615. // months
  17616. // week
  17617. // weekdays
  17618. // meridiem
  17619. var baseConfig = {
  17620. calendar: defaultCalendar,
  17621. longDateFormat: defaultLongDateFormat,
  17622. invalidDate: defaultInvalidDate,
  17623. ordinal: defaultOrdinal,
  17624. dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,
  17625. relativeTime: defaultRelativeTime,
  17626. months: defaultLocaleMonths,
  17627. monthsShort: defaultLocaleMonthsShort,
  17628. week: defaultLocaleWeek,
  17629. weekdays: defaultLocaleWeekdays,
  17630. weekdaysMin: defaultLocaleWeekdaysMin,
  17631. weekdaysShort: defaultLocaleWeekdaysShort,
  17632. meridiemParse: defaultLocaleMeridiemParse
  17633. };
  17634. // internal storage for locale config files
  17635. var locales = {};
  17636. var localeFamilies = {};
  17637. var globalLocale;
  17638. function normalizeLocale(key) {
  17639. return key ? key.toLowerCase().replace('_', '-') : key;
  17640. }
  17641. // pick the locale from the array
  17642. // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each
  17643. // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root
  17644. function chooseLocale(names) {
  17645. var i = 0, j, next, locale, split;
  17646. while (i < names.length) {
  17647. split = normalizeLocale(names[i]).split('-');
  17648. j = split.length;
  17649. next = normalizeLocale(names[i + 1]);
  17650. next = next ? next.split('-') : null;
  17651. while (j > 0) {
  17652. locale = loadLocale(split.slice(0, j).join('-'));
  17653. if (locale) {
  17654. return locale;
  17655. }
  17656. if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) {
  17657. //the next array item is better than a shallower substring of this one
  17658. break;
  17659. }
  17660. j--;
  17661. }
  17662. i++;
  17663. }
  17664. return null;
  17665. }
  17666. function loadLocale(name) {
  17667. var oldLocale = null;
  17668. // TODO: Find a better way to register and load all the locales in Node
  17669. if (!locales[name] && (typeof module !== 'undefined') &&
  17670. module && module.exports) {
  17671. try {
  17672. oldLocale = globalLocale._abbr;
  17673. var aliasedRequire = require;
  17674. __webpack_require__("./node_modules/moment/locale sync recursive ^\\.\\/.*$")("./" + name);
  17675. getSetGlobalLocale(oldLocale);
  17676. } catch (e) {}
  17677. }
  17678. return locales[name];
  17679. }
  17680. // This function will load locale and then set the global locale. If
  17681. // no arguments are passed in, it will simply return the current global
  17682. // locale key.
  17683. function getSetGlobalLocale (key, values) {
  17684. var data;
  17685. if (key) {
  17686. if (isUndefined(values)) {
  17687. data = getLocale(key);
  17688. }
  17689. else {
  17690. data = defineLocale(key, values);
  17691. }
  17692. if (data) {
  17693. // moment.duration._locale = moment._locale = data;
  17694. globalLocale = data;
  17695. }
  17696. }
  17697. return globalLocale._abbr;
  17698. }
  17699. function defineLocale (name, config) {
  17700. if (config !== null) {
  17701. var parentConfig = baseConfig;
  17702. config.abbr = name;
  17703. if (locales[name] != null) {
  17704. deprecateSimple('defineLocaleOverride',
  17705. 'use moment.updateLocale(localeName, config) to change ' +
  17706. 'an existing locale. moment.defineLocale(localeName, ' +
  17707. 'config) should only be used for creating a new locale ' +
  17708. 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.');
  17709. parentConfig = locales[name]._config;
  17710. } else if (config.parentLocale != null) {
  17711. if (locales[config.parentLocale] != null) {
  17712. parentConfig = locales[config.parentLocale]._config;
  17713. } else {
  17714. if (!localeFamilies[config.parentLocale]) {
  17715. localeFamilies[config.parentLocale] = [];
  17716. }
  17717. localeFamilies[config.parentLocale].push({
  17718. name: name,
  17719. config: config
  17720. });
  17721. return null;
  17722. }
  17723. }
  17724. locales[name] = new Locale(mergeConfigs(parentConfig, config));
  17725. if (localeFamilies[name]) {
  17726. localeFamilies[name].forEach(function (x) {
  17727. defineLocale(x.name, x.config);
  17728. });
  17729. }
  17730. // backwards compat for now: also set the locale
  17731. // make sure we set the locale AFTER all child locales have been
  17732. // created, so we won't end up with the child locale set.
  17733. getSetGlobalLocale(name);
  17734. return locales[name];
  17735. } else {
  17736. // useful for testing
  17737. delete locales[name];
  17738. return null;
  17739. }
  17740. }
  17741. function updateLocale(name, config) {
  17742. if (config != null) {
  17743. var locale, tmpLocale, parentConfig = baseConfig;
  17744. // MERGE
  17745. tmpLocale = loadLocale(name);
  17746. if (tmpLocale != null) {
  17747. parentConfig = tmpLocale._config;
  17748. }
  17749. config = mergeConfigs(parentConfig, config);
  17750. locale = new Locale(config);
  17751. locale.parentLocale = locales[name];
  17752. locales[name] = locale;
  17753. // backwards compat for now: also set the locale
  17754. getSetGlobalLocale(name);
  17755. } else {
  17756. // pass null for config to unupdate, useful for tests
  17757. if (locales[name] != null) {
  17758. if (locales[name].parentLocale != null) {
  17759. locales[name] = locales[name].parentLocale;
  17760. } else if (locales[name] != null) {
  17761. delete locales[name];
  17762. }
  17763. }
  17764. }
  17765. return locales[name];
  17766. }
  17767. // returns locale data
  17768. function getLocale (key) {
  17769. var locale;
  17770. if (key && key._locale && key._locale._abbr) {
  17771. key = key._locale._abbr;
  17772. }
  17773. if (!key) {
  17774. return globalLocale;
  17775. }
  17776. if (!isArray(key)) {
  17777. //short-circuit everything else
  17778. locale = loadLocale(key);
  17779. if (locale) {
  17780. return locale;
  17781. }
  17782. key = [key];
  17783. }
  17784. return chooseLocale(key);
  17785. }
  17786. function listLocales() {
  17787. return keys(locales);
  17788. }
  17789. function checkOverflow (m) {
  17790. var overflow;
  17791. var a = m._a;
  17792. if (a && getParsingFlags(m).overflow === -2) {
  17793. overflow =
  17794. a[MONTH] < 0 || a[MONTH] > 11 ? MONTH :
  17795. a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE :
  17796. a[HOUR] < 0 || a[HOUR] > 24 || (a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0)) ? HOUR :
  17797. a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE :
  17798. a[SECOND] < 0 || a[SECOND] > 59 ? SECOND :
  17799. a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND :
  17800. -1;
  17801. if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) {
  17802. overflow = DATE;
  17803. }
  17804. if (getParsingFlags(m)._overflowWeeks && overflow === -1) {
  17805. overflow = WEEK;
  17806. }
  17807. if (getParsingFlags(m)._overflowWeekday && overflow === -1) {
  17808. overflow = WEEKDAY;
  17809. }
  17810. getParsingFlags(m).overflow = overflow;
  17811. }
  17812. return m;
  17813. }
  17814. // Pick the first defined of two or three arguments.
  17815. function defaults(a, b, c) {
  17816. if (a != null) {
  17817. return a;
  17818. }
  17819. if (b != null) {
  17820. return b;
  17821. }
  17822. return c;
  17823. }
  17824. function currentDateArray(config) {
  17825. // hooks is actually the exported moment object
  17826. var nowValue = new Date(hooks.now());
  17827. if (config._useUTC) {
  17828. return [nowValue.getUTCFullYear(), nowValue.getUTCMonth(), nowValue.getUTCDate()];
  17829. }
  17830. return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
  17831. }
  17832. // convert an array to a date.
  17833. // the array should mirror the parameters below
  17834. // note: all values past the year are optional and will default to the lowest possible value.
  17835. // [year, month, day , hour, minute, second, millisecond]
  17836. function configFromArray (config) {
  17837. var i, date, input = [], currentDate, expectedWeekday, yearToUse;
  17838. if (config._d) {
  17839. return;
  17840. }
  17841. currentDate = currentDateArray(config);
  17842. //compute day of the year from weeks and weekdays
  17843. if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
  17844. dayOfYearFromWeekInfo(config);
  17845. }
  17846. //if the day of the year is set, figure out what it is
  17847. if (config._dayOfYear != null) {
  17848. yearToUse = defaults(config._a[YEAR], currentDate[YEAR]);
  17849. if (config._dayOfYear > daysInYear(yearToUse) || config._dayOfYear === 0) {
  17850. getParsingFlags(config)._overflowDayOfYear = true;
  17851. }
  17852. date = createUTCDate(yearToUse, 0, config._dayOfYear);
  17853. config._a[MONTH] = date.getUTCMonth();
  17854. config._a[DATE] = date.getUTCDate();
  17855. }
  17856. // Default to current date.
  17857. // * if no year, month, day of month are given, default to today
  17858. // * if day of month is given, default month and year
  17859. // * if month is given, default only year
  17860. // * if year is given, don't default anything
  17861. for (i = 0; i < 3 && config._a[i] == null; ++i) {
  17862. config._a[i] = input[i] = currentDate[i];
  17863. }
  17864. // Zero out whatever was not defaulted, including time
  17865. for (; i < 7; i++) {
  17866. config._a[i] = input[i] = (config._a[i] == null) ? (i === 2 ? 1 : 0) : config._a[i];
  17867. }
  17868. // Check for 24:00:00.000
  17869. if (config._a[HOUR] === 24 &&
  17870. config._a[MINUTE] === 0 &&
  17871. config._a[SECOND] === 0 &&
  17872. config._a[MILLISECOND] === 0) {
  17873. config._nextDay = true;
  17874. config._a[HOUR] = 0;
  17875. }
  17876. config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input);
  17877. expectedWeekday = config._useUTC ? config._d.getUTCDay() : config._d.getDay();
  17878. // Apply timezone offset from input. The actual utcOffset can be changed
  17879. // with parseZone.
  17880. if (config._tzm != null) {
  17881. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  17882. }
  17883. if (config._nextDay) {
  17884. config._a[HOUR] = 24;
  17885. }
  17886. // check for mismatching day of week
  17887. if (config._w && typeof config._w.d !== 'undefined' && config._w.d !== expectedWeekday) {
  17888. getParsingFlags(config).weekdayMismatch = true;
  17889. }
  17890. }
  17891. function dayOfYearFromWeekInfo(config) {
  17892. var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow;
  17893. w = config._w;
  17894. if (w.GG != null || w.W != null || w.E != null) {
  17895. dow = 1;
  17896. doy = 4;
  17897. // TODO: We need to take the current isoWeekYear, but that depends on
  17898. // how we interpret now (local, utc, fixed offset). So create
  17899. // a now version of current config (take local/utc/offset flags, and
  17900. // create now).
  17901. weekYear = defaults(w.GG, config._a[YEAR], weekOfYear(createLocal(), 1, 4).year);
  17902. week = defaults(w.W, 1);
  17903. weekday = defaults(w.E, 1);
  17904. if (weekday < 1 || weekday > 7) {
  17905. weekdayOverflow = true;
  17906. }
  17907. } else {
  17908. dow = config._locale._week.dow;
  17909. doy = config._locale._week.doy;
  17910. var curWeek = weekOfYear(createLocal(), dow, doy);
  17911. weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);
  17912. // Default to current week.
  17913. week = defaults(w.w, curWeek.week);
  17914. if (w.d != null) {
  17915. // weekday -- low day numbers are considered next week
  17916. weekday = w.d;
  17917. if (weekday < 0 || weekday > 6) {
  17918. weekdayOverflow = true;
  17919. }
  17920. } else if (w.e != null) {
  17921. // local weekday -- counting starts from begining of week
  17922. weekday = w.e + dow;
  17923. if (w.e < 0 || w.e > 6) {
  17924. weekdayOverflow = true;
  17925. }
  17926. } else {
  17927. // default to begining of week
  17928. weekday = dow;
  17929. }
  17930. }
  17931. if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {
  17932. getParsingFlags(config)._overflowWeeks = true;
  17933. } else if (weekdayOverflow != null) {
  17934. getParsingFlags(config)._overflowWeekday = true;
  17935. } else {
  17936. temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);
  17937. config._a[YEAR] = temp.year;
  17938. config._dayOfYear = temp.dayOfYear;
  17939. }
  17940. }
  17941. // iso 8601 regex
  17942. // 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)
  17943. 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)?)?$/;
  17944. 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)?)?$/;
  17945. var tzRegex = /Z|[+-]\d\d(?::?\d\d)?/;
  17946. var isoDates = [
  17947. ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
  17948. ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/],
  17949. ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/],
  17950. ['GGGG-[W]WW', /\d{4}-W\d\d/, false],
  17951. ['YYYY-DDD', /\d{4}-\d{3}/],
  17952. ['YYYY-MM', /\d{4}-\d\d/, false],
  17953. ['YYYYYYMMDD', /[+-]\d{10}/],
  17954. ['YYYYMMDD', /\d{8}/],
  17955. // YYYYMM is NOT allowed by the standard
  17956. ['GGGG[W]WWE', /\d{4}W\d{3}/],
  17957. ['GGGG[W]WW', /\d{4}W\d{2}/, false],
  17958. ['YYYYDDD', /\d{7}/]
  17959. ];
  17960. // iso time formats and regexes
  17961. var isoTimes = [
  17962. ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/],
  17963. ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/],
  17964. ['HH:mm:ss', /\d\d:\d\d:\d\d/],
  17965. ['HH:mm', /\d\d:\d\d/],
  17966. ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/],
  17967. ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/],
  17968. ['HHmmss', /\d\d\d\d\d\d/],
  17969. ['HHmm', /\d\d\d\d/],
  17970. ['HH', /\d\d/]
  17971. ];
  17972. var aspNetJsonRegex = /^\/?Date\((\-?\d+)/i;
  17973. // date from iso format
  17974. function configFromISO(config) {
  17975. var i, l,
  17976. string = config._i,
  17977. match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),
  17978. allowTime, dateFormat, timeFormat, tzFormat;
  17979. if (match) {
  17980. getParsingFlags(config).iso = true;
  17981. for (i = 0, l = isoDates.length; i < l; i++) {
  17982. if (isoDates[i][1].exec(match[1])) {
  17983. dateFormat = isoDates[i][0];
  17984. allowTime = isoDates[i][2] !== false;
  17985. break;
  17986. }
  17987. }
  17988. if (dateFormat == null) {
  17989. config._isValid = false;
  17990. return;
  17991. }
  17992. if (match[3]) {
  17993. for (i = 0, l = isoTimes.length; i < l; i++) {
  17994. if (isoTimes[i][1].exec(match[3])) {
  17995. // match[2] should be 'T' or space
  17996. timeFormat = (match[2] || ' ') + isoTimes[i][0];
  17997. break;
  17998. }
  17999. }
  18000. if (timeFormat == null) {
  18001. config._isValid = false;
  18002. return;
  18003. }
  18004. }
  18005. if (!allowTime && timeFormat != null) {
  18006. config._isValid = false;
  18007. return;
  18008. }
  18009. if (match[4]) {
  18010. if (tzRegex.exec(match[4])) {
  18011. tzFormat = 'Z';
  18012. } else {
  18013. config._isValid = false;
  18014. return;
  18015. }
  18016. }
  18017. config._f = dateFormat + (timeFormat || '') + (tzFormat || '');
  18018. configFromStringAndFormat(config);
  18019. } else {
  18020. config._isValid = false;
  18021. }
  18022. }
  18023. // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
  18024. var rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;
  18025. function extractFromRFC2822Strings(yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) {
  18026. var result = [
  18027. untruncateYear(yearStr),
  18028. defaultLocaleMonthsShort.indexOf(monthStr),
  18029. parseInt(dayStr, 10),
  18030. parseInt(hourStr, 10),
  18031. parseInt(minuteStr, 10)
  18032. ];
  18033. if (secondStr) {
  18034. result.push(parseInt(secondStr, 10));
  18035. }
  18036. return result;
  18037. }
  18038. function untruncateYear(yearStr) {
  18039. var year = parseInt(yearStr, 10);
  18040. if (year <= 49) {
  18041. return 2000 + year;
  18042. } else if (year <= 999) {
  18043. return 1900 + year;
  18044. }
  18045. return year;
  18046. }
  18047. function preprocessRFC2822(s) {
  18048. // Remove comments and folding whitespace and replace multiple-spaces with a single space
  18049. return s.replace(/\([^)]*\)|[\n\t]/g, ' ').replace(/(\s\s+)/g, ' ').trim();
  18050. }
  18051. function checkWeekday(weekdayStr, parsedInput, config) {
  18052. if (weekdayStr) {
  18053. // TODO: Replace the vanilla JS Date object with an indepentent day-of-week check.
  18054. var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),
  18055. weekdayActual = new Date(parsedInput[0], parsedInput[1], parsedInput[2]).getDay();
  18056. if (weekdayProvided !== weekdayActual) {
  18057. getParsingFlags(config).weekdayMismatch = true;
  18058. config._isValid = false;
  18059. return false;
  18060. }
  18061. }
  18062. return true;
  18063. }
  18064. var obsOffsets = {
  18065. UT: 0,
  18066. GMT: 0,
  18067. EDT: -4 * 60,
  18068. EST: -5 * 60,
  18069. CDT: -5 * 60,
  18070. CST: -6 * 60,
  18071. MDT: -6 * 60,
  18072. MST: -7 * 60,
  18073. PDT: -7 * 60,
  18074. PST: -8 * 60
  18075. };
  18076. function calculateOffset(obsOffset, militaryOffset, numOffset) {
  18077. if (obsOffset) {
  18078. return obsOffsets[obsOffset];
  18079. } else if (militaryOffset) {
  18080. // the only allowed military tz is Z
  18081. return 0;
  18082. } else {
  18083. var hm = parseInt(numOffset, 10);
  18084. var m = hm % 100, h = (hm - m) / 100;
  18085. return h * 60 + m;
  18086. }
  18087. }
  18088. // date and time from ref 2822 format
  18089. function configFromRFC2822(config) {
  18090. var match = rfc2822.exec(preprocessRFC2822(config._i));
  18091. if (match) {
  18092. var parsedArray = extractFromRFC2822Strings(match[4], match[3], match[2], match[5], match[6], match[7]);
  18093. if (!checkWeekday(match[1], parsedArray, config)) {
  18094. return;
  18095. }
  18096. config._a = parsedArray;
  18097. config._tzm = calculateOffset(match[8], match[9], match[10]);
  18098. config._d = createUTCDate.apply(null, config._a);
  18099. config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
  18100. getParsingFlags(config).rfc2822 = true;
  18101. } else {
  18102. config._isValid = false;
  18103. }
  18104. }
  18105. // date from iso format or fallback
  18106. function configFromString(config) {
  18107. var matched = aspNetJsonRegex.exec(config._i);
  18108. if (matched !== null) {
  18109. config._d = new Date(+matched[1]);
  18110. return;
  18111. }
  18112. configFromISO(config);
  18113. if (config._isValid === false) {
  18114. delete config._isValid;
  18115. } else {
  18116. return;
  18117. }
  18118. configFromRFC2822(config);
  18119. if (config._isValid === false) {
  18120. delete config._isValid;
  18121. } else {
  18122. return;
  18123. }
  18124. // Final attempt, use Input Fallback
  18125. hooks.createFromInputFallback(config);
  18126. }
  18127. hooks.createFromInputFallback = deprecate(
  18128. 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +
  18129. 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +
  18130. 'discouraged and will be removed in an upcoming major release. Please refer to ' +
  18131. 'http://momentjs.com/guides/#/warnings/js-date/ for more info.',
  18132. function (config) {
  18133. config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
  18134. }
  18135. );
  18136. // constant that refers to the ISO standard
  18137. hooks.ISO_8601 = function () {};
  18138. // constant that refers to the RFC 2822 form
  18139. hooks.RFC_2822 = function () {};
  18140. // date from string and format string
  18141. function configFromStringAndFormat(config) {
  18142. // TODO: Move this to another part of the creation flow to prevent circular deps
  18143. if (config._f === hooks.ISO_8601) {
  18144. configFromISO(config);
  18145. return;
  18146. }
  18147. if (config._f === hooks.RFC_2822) {
  18148. configFromRFC2822(config);
  18149. return;
  18150. }
  18151. config._a = [];
  18152. getParsingFlags(config).empty = true;
  18153. // This array is used to make a Date, either with `new Date` or `Date.UTC`
  18154. var string = '' + config._i,
  18155. i, parsedInput, tokens, token, skipped,
  18156. stringLength = string.length,
  18157. totalParsedInputLength = 0;
  18158. tokens = expandFormat(config._f, config._locale).match(formattingTokens) || [];
  18159. for (i = 0; i < tokens.length; i++) {
  18160. token = tokens[i];
  18161. parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0];
  18162. // console.log('token', token, 'parsedInput', parsedInput,
  18163. // 'regex', getParseRegexForToken(token, config));
  18164. if (parsedInput) {
  18165. skipped = string.substr(0, string.indexOf(parsedInput));
  18166. if (skipped.length > 0) {
  18167. getParsingFlags(config).unusedInput.push(skipped);
  18168. }
  18169. string = string.slice(string.indexOf(parsedInput) + parsedInput.length);
  18170. totalParsedInputLength += parsedInput.length;
  18171. }
  18172. // don't parse if it's not a known token
  18173. if (formatTokenFunctions[token]) {
  18174. if (parsedInput) {
  18175. getParsingFlags(config).empty = false;
  18176. }
  18177. else {
  18178. getParsingFlags(config).unusedTokens.push(token);
  18179. }
  18180. addTimeToArrayFromToken(token, parsedInput, config);
  18181. }
  18182. else if (config._strict && !parsedInput) {
  18183. getParsingFlags(config).unusedTokens.push(token);
  18184. }
  18185. }
  18186. // add remaining unparsed input length to the string
  18187. getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength;
  18188. if (string.length > 0) {
  18189. getParsingFlags(config).unusedInput.push(string);
  18190. }
  18191. // clear _12h flag if hour is <= 12
  18192. if (config._a[HOUR] <= 12 &&
  18193. getParsingFlags(config).bigHour === true &&
  18194. config._a[HOUR] > 0) {
  18195. getParsingFlags(config).bigHour = undefined;
  18196. }
  18197. getParsingFlags(config).parsedDateParts = config._a.slice(0);
  18198. getParsingFlags(config).meridiem = config._meridiem;
  18199. // handle meridiem
  18200. config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem);
  18201. configFromArray(config);
  18202. checkOverflow(config);
  18203. }
  18204. function meridiemFixWrap (locale, hour, meridiem) {
  18205. var isPm;
  18206. if (meridiem == null) {
  18207. // nothing to do
  18208. return hour;
  18209. }
  18210. if (locale.meridiemHour != null) {
  18211. return locale.meridiemHour(hour, meridiem);
  18212. } else if (locale.isPM != null) {
  18213. // Fallback
  18214. isPm = locale.isPM(meridiem);
  18215. if (isPm && hour < 12) {
  18216. hour += 12;
  18217. }
  18218. if (!isPm && hour === 12) {
  18219. hour = 0;
  18220. }
  18221. return hour;
  18222. } else {
  18223. // this is not supposed to happen
  18224. return hour;
  18225. }
  18226. }
  18227. // date from string and array of format strings
  18228. function configFromStringAndArray(config) {
  18229. var tempConfig,
  18230. bestMoment,
  18231. scoreToBeat,
  18232. i,
  18233. currentScore;
  18234. if (config._f.length === 0) {
  18235. getParsingFlags(config).invalidFormat = true;
  18236. config._d = new Date(NaN);
  18237. return;
  18238. }
  18239. for (i = 0; i < config._f.length; i++) {
  18240. currentScore = 0;
  18241. tempConfig = copyConfig({}, config);
  18242. if (config._useUTC != null) {
  18243. tempConfig._useUTC = config._useUTC;
  18244. }
  18245. tempConfig._f = config._f[i];
  18246. configFromStringAndFormat(tempConfig);
  18247. if (!isValid(tempConfig)) {
  18248. continue;
  18249. }
  18250. // if there is any input that was not parsed add a penalty for that format
  18251. currentScore += getParsingFlags(tempConfig).charsLeftOver;
  18252. //or tokens
  18253. currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;
  18254. getParsingFlags(tempConfig).score = currentScore;
  18255. if (scoreToBeat == null || currentScore < scoreToBeat) {
  18256. scoreToBeat = currentScore;
  18257. bestMoment = tempConfig;
  18258. }
  18259. }
  18260. extend(config, bestMoment || tempConfig);
  18261. }
  18262. function configFromObject(config) {
  18263. if (config._d) {
  18264. return;
  18265. }
  18266. var i = normalizeObjectUnits(config._i);
  18267. config._a = map([i.year, i.month, i.day || i.date, i.hour, i.minute, i.second, i.millisecond], function (obj) {
  18268. return obj && parseInt(obj, 10);
  18269. });
  18270. configFromArray(config);
  18271. }
  18272. function createFromConfig (config) {
  18273. var res = new Moment(checkOverflow(prepareConfig(config)));
  18274. if (res._nextDay) {
  18275. // Adding is smart enough around DST
  18276. res.add(1, 'd');
  18277. res._nextDay = undefined;
  18278. }
  18279. return res;
  18280. }
  18281. function prepareConfig (config) {
  18282. var input = config._i,
  18283. format = config._f;
  18284. config._locale = config._locale || getLocale(config._l);
  18285. if (input === null || (format === undefined && input === '')) {
  18286. return createInvalid({nullInput: true});
  18287. }
  18288. if (typeof input === 'string') {
  18289. config._i = input = config._locale.preparse(input);
  18290. }
  18291. if (isMoment(input)) {
  18292. return new Moment(checkOverflow(input));
  18293. } else if (isDate(input)) {
  18294. config._d = input;
  18295. } else if (isArray(format)) {
  18296. configFromStringAndArray(config);
  18297. } else if (format) {
  18298. configFromStringAndFormat(config);
  18299. } else {
  18300. configFromInput(config);
  18301. }
  18302. if (!isValid(config)) {
  18303. config._d = null;
  18304. }
  18305. return config;
  18306. }
  18307. function configFromInput(config) {
  18308. var input = config._i;
  18309. if (isUndefined(input)) {
  18310. config._d = new Date(hooks.now());
  18311. } else if (isDate(input)) {
  18312. config._d = new Date(input.valueOf());
  18313. } else if (typeof input === 'string') {
  18314. configFromString(config);
  18315. } else if (isArray(input)) {
  18316. config._a = map(input.slice(0), function (obj) {
  18317. return parseInt(obj, 10);
  18318. });
  18319. configFromArray(config);
  18320. } else if (isObject(input)) {
  18321. configFromObject(config);
  18322. } else if (isNumber(input)) {
  18323. // from milliseconds
  18324. config._d = new Date(input);
  18325. } else {
  18326. hooks.createFromInputFallback(config);
  18327. }
  18328. }
  18329. function createLocalOrUTC (input, format, locale, strict, isUTC) {
  18330. var c = {};
  18331. if (locale === true || locale === false) {
  18332. strict = locale;
  18333. locale = undefined;
  18334. }
  18335. if ((isObject(input) && isObjectEmpty(input)) ||
  18336. (isArray(input) && input.length === 0)) {
  18337. input = undefined;
  18338. }
  18339. // object construction must be done this way.
  18340. // https://github.com/moment/moment/issues/1423
  18341. c._isAMomentObject = true;
  18342. c._useUTC = c._isUTC = isUTC;
  18343. c._l = locale;
  18344. c._i = input;
  18345. c._f = format;
  18346. c._strict = strict;
  18347. return createFromConfig(c);
  18348. }
  18349. function createLocal (input, format, locale, strict) {
  18350. return createLocalOrUTC(input, format, locale, strict, false);
  18351. }
  18352. var prototypeMin = deprecate(
  18353. 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',
  18354. function () {
  18355. var other = createLocal.apply(null, arguments);
  18356. if (this.isValid() && other.isValid()) {
  18357. return other < this ? this : other;
  18358. } else {
  18359. return createInvalid();
  18360. }
  18361. }
  18362. );
  18363. var prototypeMax = deprecate(
  18364. 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',
  18365. function () {
  18366. var other = createLocal.apply(null, arguments);
  18367. if (this.isValid() && other.isValid()) {
  18368. return other > this ? this : other;
  18369. } else {
  18370. return createInvalid();
  18371. }
  18372. }
  18373. );
  18374. // Pick a moment m from moments so that m[fn](other) is true for all
  18375. // other. This relies on the function fn to be transitive.
  18376. //
  18377. // moments should either be an array of moment objects or an array, whose
  18378. // first element is an array of moment objects.
  18379. function pickBy(fn, moments) {
  18380. var res, i;
  18381. if (moments.length === 1 && isArray(moments[0])) {
  18382. moments = moments[0];
  18383. }
  18384. if (!moments.length) {
  18385. return createLocal();
  18386. }
  18387. res = moments[0];
  18388. for (i = 1; i < moments.length; ++i) {
  18389. if (!moments[i].isValid() || moments[i][fn](res)) {
  18390. res = moments[i];
  18391. }
  18392. }
  18393. return res;
  18394. }
  18395. // TODO: Use [].sort instead?
  18396. function min () {
  18397. var args = [].slice.call(arguments, 0);
  18398. return pickBy('isBefore', args);
  18399. }
  18400. function max () {
  18401. var args = [].slice.call(arguments, 0);
  18402. return pickBy('isAfter', args);
  18403. }
  18404. var now = function () {
  18405. return Date.now ? Date.now() : +(new Date());
  18406. };
  18407. var ordering = ['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', 'millisecond'];
  18408. function isDurationValid(m) {
  18409. for (var key in m) {
  18410. if (!(indexOf.call(ordering, key) !== -1 && (m[key] == null || !isNaN(m[key])))) {
  18411. return false;
  18412. }
  18413. }
  18414. var unitHasDecimal = false;
  18415. for (var i = 0; i < ordering.length; ++i) {
  18416. if (m[ordering[i]]) {
  18417. if (unitHasDecimal) {
  18418. return false; // only allow non-integers for smallest unit
  18419. }
  18420. if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {
  18421. unitHasDecimal = true;
  18422. }
  18423. }
  18424. }
  18425. return true;
  18426. }
  18427. function isValid$1() {
  18428. return this._isValid;
  18429. }
  18430. function createInvalid$1() {
  18431. return createDuration(NaN);
  18432. }
  18433. function Duration (duration) {
  18434. var normalizedInput = normalizeObjectUnits(duration),
  18435. years = normalizedInput.year || 0,
  18436. quarters = normalizedInput.quarter || 0,
  18437. months = normalizedInput.month || 0,
  18438. weeks = normalizedInput.week || 0,
  18439. days = normalizedInput.day || 0,
  18440. hours = normalizedInput.hour || 0,
  18441. minutes = normalizedInput.minute || 0,
  18442. seconds = normalizedInput.second || 0,
  18443. milliseconds = normalizedInput.millisecond || 0;
  18444. this._isValid = isDurationValid(normalizedInput);
  18445. // representation for dateAddRemove
  18446. this._milliseconds = +milliseconds +
  18447. seconds * 1e3 + // 1000
  18448. minutes * 6e4 + // 1000 * 60
  18449. hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978
  18450. // Because of dateAddRemove treats 24 hours as different from a
  18451. // day when working around DST, we need to store them separately
  18452. this._days = +days +
  18453. weeks * 7;
  18454. // It is impossible to translate months into days without knowing
  18455. // which months you are are talking about, so we have to store
  18456. // it separately.
  18457. this._months = +months +
  18458. quarters * 3 +
  18459. years * 12;
  18460. this._data = {};
  18461. this._locale = getLocale();
  18462. this._bubble();
  18463. }
  18464. function isDuration (obj) {
  18465. return obj instanceof Duration;
  18466. }
  18467. function absRound (number) {
  18468. if (number < 0) {
  18469. return Math.round(-1 * number) * -1;
  18470. } else {
  18471. return Math.round(number);
  18472. }
  18473. }
  18474. // FORMATTING
  18475. function offset (token, separator) {
  18476. addFormatToken(token, 0, 0, function () {
  18477. var offset = this.utcOffset();
  18478. var sign = '+';
  18479. if (offset < 0) {
  18480. offset = -offset;
  18481. sign = '-';
  18482. }
  18483. return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~(offset) % 60, 2);
  18484. });
  18485. }
  18486. offset('Z', ':');
  18487. offset('ZZ', '');
  18488. // PARSING
  18489. addRegexToken('Z', matchShortOffset);
  18490. addRegexToken('ZZ', matchShortOffset);
  18491. addParseToken(['Z', 'ZZ'], function (input, array, config) {
  18492. config._useUTC = true;
  18493. config._tzm = offsetFromString(matchShortOffset, input);
  18494. });
  18495. // HELPERS
  18496. // timezone chunker
  18497. // '+10:00' > ['10', '00']
  18498. // '-1530' > ['-15', '30']
  18499. var chunkOffset = /([\+\-]|\d\d)/gi;
  18500. function offsetFromString(matcher, string) {
  18501. var matches = (string || '').match(matcher);
  18502. if (matches === null) {
  18503. return null;
  18504. }
  18505. var chunk = matches[matches.length - 1] || [];
  18506. var parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];
  18507. var minutes = +(parts[1] * 60) + toInt(parts[2]);
  18508. return minutes === 0 ?
  18509. 0 :
  18510. parts[0] === '+' ? minutes : -minutes;
  18511. }
  18512. // Return a moment from input, that is local/utc/zone equivalent to model.
  18513. function cloneWithOffset(input, model) {
  18514. var res, diff;
  18515. if (model._isUTC) {
  18516. res = model.clone();
  18517. diff = (isMoment(input) || isDate(input) ? input.valueOf() : createLocal(input).valueOf()) - res.valueOf();
  18518. // Use low-level api, because this fn is low-level api.
  18519. res._d.setTime(res._d.valueOf() + diff);
  18520. hooks.updateOffset(res, false);
  18521. return res;
  18522. } else {
  18523. return createLocal(input).local();
  18524. }
  18525. }
  18526. function getDateOffset (m) {
  18527. // On Firefox.24 Date#getTimezoneOffset returns a floating point.
  18528. // https://github.com/moment/moment/pull/1871
  18529. return -Math.round(m._d.getTimezoneOffset() / 15) * 15;
  18530. }
  18531. // HOOKS
  18532. // This function will be called whenever a moment is mutated.
  18533. // It is intended to keep the offset in sync with the timezone.
  18534. hooks.updateOffset = function () {};
  18535. // MOMENTS
  18536. // keepLocalTime = true means only change the timezone, without
  18537. // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->
  18538. // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset
  18539. // +0200, so we adjust the time as needed, to be valid.
  18540. //
  18541. // Keeping the time actually adds/subtracts (one hour)
  18542. // from the actual represented time. That is why we call updateOffset
  18543. // a second time. In case it wants us to change the offset again
  18544. // _changeInProgress == true case, then we have to adjust, because
  18545. // there is no such time in the given timezone.
  18546. function getSetOffset (input, keepLocalTime, keepMinutes) {
  18547. var offset = this._offset || 0,
  18548. localAdjust;
  18549. if (!this.isValid()) {
  18550. return input != null ? this : NaN;
  18551. }
  18552. if (input != null) {
  18553. if (typeof input === 'string') {
  18554. input = offsetFromString(matchShortOffset, input);
  18555. if (input === null) {
  18556. return this;
  18557. }
  18558. } else if (Math.abs(input) < 16 && !keepMinutes) {
  18559. input = input * 60;
  18560. }
  18561. if (!this._isUTC && keepLocalTime) {
  18562. localAdjust = getDateOffset(this);
  18563. }
  18564. this._offset = input;
  18565. this._isUTC = true;
  18566. if (localAdjust != null) {
  18567. this.add(localAdjust, 'm');
  18568. }
  18569. if (offset !== input) {
  18570. if (!keepLocalTime || this._changeInProgress) {
  18571. addSubtract(this, createDuration(input - offset, 'm'), 1, false);
  18572. } else if (!this._changeInProgress) {
  18573. this._changeInProgress = true;
  18574. hooks.updateOffset(this, true);
  18575. this._changeInProgress = null;
  18576. }
  18577. }
  18578. return this;
  18579. } else {
  18580. return this._isUTC ? offset : getDateOffset(this);
  18581. }
  18582. }
  18583. function getSetZone (input, keepLocalTime) {
  18584. if (input != null) {
  18585. if (typeof input !== 'string') {
  18586. input = -input;
  18587. }
  18588. this.utcOffset(input, keepLocalTime);
  18589. return this;
  18590. } else {
  18591. return -this.utcOffset();
  18592. }
  18593. }
  18594. function setOffsetToUTC (keepLocalTime) {
  18595. return this.utcOffset(0, keepLocalTime);
  18596. }
  18597. function setOffsetToLocal (keepLocalTime) {
  18598. if (this._isUTC) {
  18599. this.utcOffset(0, keepLocalTime);
  18600. this._isUTC = false;
  18601. if (keepLocalTime) {
  18602. this.subtract(getDateOffset(this), 'm');
  18603. }
  18604. }
  18605. return this;
  18606. }
  18607. function setOffsetToParsedOffset () {
  18608. if (this._tzm != null) {
  18609. this.utcOffset(this._tzm, false, true);
  18610. } else if (typeof this._i === 'string') {
  18611. var tZone = offsetFromString(matchOffset, this._i);
  18612. if (tZone != null) {
  18613. this.utcOffset(tZone);
  18614. }
  18615. else {
  18616. this.utcOffset(0, true);
  18617. }
  18618. }
  18619. return this;
  18620. }
  18621. function hasAlignedHourOffset (input) {
  18622. if (!this.isValid()) {
  18623. return false;
  18624. }
  18625. input = input ? createLocal(input).utcOffset() : 0;
  18626. return (this.utcOffset() - input) % 60 === 0;
  18627. }
  18628. function isDaylightSavingTime () {
  18629. return (
  18630. this.utcOffset() > this.clone().month(0).utcOffset() ||
  18631. this.utcOffset() > this.clone().month(5).utcOffset()
  18632. );
  18633. }
  18634. function isDaylightSavingTimeShifted () {
  18635. if (!isUndefined(this._isDSTShifted)) {
  18636. return this._isDSTShifted;
  18637. }
  18638. var c = {};
  18639. copyConfig(c, this);
  18640. c = prepareConfig(c);
  18641. if (c._a) {
  18642. var other = c._isUTC ? createUTC(c._a) : createLocal(c._a);
  18643. this._isDSTShifted = this.isValid() &&
  18644. compareArrays(c._a, other.toArray()) > 0;
  18645. } else {
  18646. this._isDSTShifted = false;
  18647. }
  18648. return this._isDSTShifted;
  18649. }
  18650. function isLocal () {
  18651. return this.isValid() ? !this._isUTC : false;
  18652. }
  18653. function isUtcOffset () {
  18654. return this.isValid() ? this._isUTC : false;
  18655. }
  18656. function isUtc () {
  18657. return this.isValid() ? this._isUTC && this._offset === 0 : false;
  18658. }
  18659. // ASP.NET json date format regex
  18660. var aspNetRegex = /^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/;
  18661. // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
  18662. // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
  18663. // and further modified to allow for strings containing both week and day
  18664. var isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
  18665. function createDuration (input, key) {
  18666. var duration = input,
  18667. // matching against regexp is expensive, do it on demand
  18668. match = null,
  18669. sign,
  18670. ret,
  18671. diffRes;
  18672. if (isDuration(input)) {
  18673. duration = {
  18674. ms : input._milliseconds,
  18675. d : input._days,
  18676. M : input._months
  18677. };
  18678. } else if (isNumber(input)) {
  18679. duration = {};
  18680. if (key) {
  18681. duration[key] = input;
  18682. } else {
  18683. duration.milliseconds = input;
  18684. }
  18685. } else if (!!(match = aspNetRegex.exec(input))) {
  18686. sign = (match[1] === '-') ? -1 : 1;
  18687. duration = {
  18688. y : 0,
  18689. d : toInt(match[DATE]) * sign,
  18690. h : toInt(match[HOUR]) * sign,
  18691. m : toInt(match[MINUTE]) * sign,
  18692. s : toInt(match[SECOND]) * sign,
  18693. ms : toInt(absRound(match[MILLISECOND] * 1000)) * sign // the millisecond decimal point is included in the match
  18694. };
  18695. } else if (!!(match = isoRegex.exec(input))) {
  18696. sign = (match[1] === '-') ? -1 : (match[1] === '+') ? 1 : 1;
  18697. duration = {
  18698. y : parseIso(match[2], sign),
  18699. M : parseIso(match[3], sign),
  18700. w : parseIso(match[4], sign),
  18701. d : parseIso(match[5], sign),
  18702. h : parseIso(match[6], sign),
  18703. m : parseIso(match[7], sign),
  18704. s : parseIso(match[8], sign)
  18705. };
  18706. } else if (duration == null) {// checks for null or undefined
  18707. duration = {};
  18708. } else if (typeof duration === 'object' && ('from' in duration || 'to' in duration)) {
  18709. diffRes = momentsDifference(createLocal(duration.from), createLocal(duration.to));
  18710. duration = {};
  18711. duration.ms = diffRes.milliseconds;
  18712. duration.M = diffRes.months;
  18713. }
  18714. ret = new Duration(duration);
  18715. if (isDuration(input) && hasOwnProp(input, '_locale')) {
  18716. ret._locale = input._locale;
  18717. }
  18718. return ret;
  18719. }
  18720. createDuration.fn = Duration.prototype;
  18721. createDuration.invalid = createInvalid$1;
  18722. function parseIso (inp, sign) {
  18723. // We'd normally use ~~inp for this, but unfortunately it also
  18724. // converts floats to ints.
  18725. // inp may be undefined, so careful calling replace on it.
  18726. var res = inp && parseFloat(inp.replace(',', '.'));
  18727. // apply sign while we're at it
  18728. return (isNaN(res) ? 0 : res) * sign;
  18729. }
  18730. function positiveMomentsDifference(base, other) {
  18731. var res = {milliseconds: 0, months: 0};
  18732. res.months = other.month() - base.month() +
  18733. (other.year() - base.year()) * 12;
  18734. if (base.clone().add(res.months, 'M').isAfter(other)) {
  18735. --res.months;
  18736. }
  18737. res.milliseconds = +other - +(base.clone().add(res.months, 'M'));
  18738. return res;
  18739. }
  18740. function momentsDifference(base, other) {
  18741. var res;
  18742. if (!(base.isValid() && other.isValid())) {
  18743. return {milliseconds: 0, months: 0};
  18744. }
  18745. other = cloneWithOffset(other, base);
  18746. if (base.isBefore(other)) {
  18747. res = positiveMomentsDifference(base, other);
  18748. } else {
  18749. res = positiveMomentsDifference(other, base);
  18750. res.milliseconds = -res.milliseconds;
  18751. res.months = -res.months;
  18752. }
  18753. return res;
  18754. }
  18755. // TODO: remove 'name' arg after deprecation is removed
  18756. function createAdder(direction, name) {
  18757. return function (val, period) {
  18758. var dur, tmp;
  18759. //invert the arguments, but complain about it
  18760. if (period !== null && !isNaN(+period)) {
  18761. deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period). ' +
  18762. 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.');
  18763. tmp = val; val = period; period = tmp;
  18764. }
  18765. val = typeof val === 'string' ? +val : val;
  18766. dur = createDuration(val, period);
  18767. addSubtract(this, dur, direction);
  18768. return this;
  18769. };
  18770. }
  18771. function addSubtract (mom, duration, isAdding, updateOffset) {
  18772. var milliseconds = duration._milliseconds,
  18773. days = absRound(duration._days),
  18774. months = absRound(duration._months);
  18775. if (!mom.isValid()) {
  18776. // No op
  18777. return;
  18778. }
  18779. updateOffset = updateOffset == null ? true : updateOffset;
  18780. if (months) {
  18781. setMonth(mom, get(mom, 'Month') + months * isAdding);
  18782. }
  18783. if (days) {
  18784. set$1(mom, 'Date', get(mom, 'Date') + days * isAdding);
  18785. }
  18786. if (milliseconds) {
  18787. mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);
  18788. }
  18789. if (updateOffset) {
  18790. hooks.updateOffset(mom, days || months);
  18791. }
  18792. }
  18793. var add = createAdder(1, 'add');
  18794. var subtract = createAdder(-1, 'subtract');
  18795. function getCalendarFormat(myMoment, now) {
  18796. var diff = myMoment.diff(now, 'days', true);
  18797. return diff < -6 ? 'sameElse' :
  18798. diff < -1 ? 'lastWeek' :
  18799. diff < 0 ? 'lastDay' :
  18800. diff < 1 ? 'sameDay' :
  18801. diff < 2 ? 'nextDay' :
  18802. diff < 7 ? 'nextWeek' : 'sameElse';
  18803. }
  18804. function calendar$1 (time, formats) {
  18805. // We want to compare the start of today, vs this.
  18806. // Getting start-of-today depends on whether we're local/utc/offset or not.
  18807. var now = time || createLocal(),
  18808. sod = cloneWithOffset(now, this).startOf('day'),
  18809. format = hooks.calendarFormat(this, sod) || 'sameElse';
  18810. var output = formats && (isFunction(formats[format]) ? formats[format].call(this, now) : formats[format]);
  18811. return this.format(output || this.localeData().calendar(format, this, createLocal(now)));
  18812. }
  18813. function clone () {
  18814. return new Moment(this);
  18815. }
  18816. function isAfter (input, units) {
  18817. var localInput = isMoment(input) ? input : createLocal(input);
  18818. if (!(this.isValid() && localInput.isValid())) {
  18819. return false;
  18820. }
  18821. units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');
  18822. if (units === 'millisecond') {
  18823. return this.valueOf() > localInput.valueOf();
  18824. } else {
  18825. return localInput.valueOf() < this.clone().startOf(units).valueOf();
  18826. }
  18827. }
  18828. function isBefore (input, units) {
  18829. var localInput = isMoment(input) ? input : createLocal(input);
  18830. if (!(this.isValid() && localInput.isValid())) {
  18831. return false;
  18832. }
  18833. units = normalizeUnits(!isUndefined(units) ? units : 'millisecond');
  18834. if (units === 'millisecond') {
  18835. return this.valueOf() < localInput.valueOf();
  18836. } else {
  18837. return this.clone().endOf(units).valueOf() < localInput.valueOf();
  18838. }
  18839. }
  18840. function isBetween (from, to, units, inclusivity) {
  18841. inclusivity = inclusivity || '()';
  18842. return (inclusivity[0] === '(' ? this.isAfter(from, units) : !this.isBefore(from, units)) &&
  18843. (inclusivity[1] === ')' ? this.isBefore(to, units) : !this.isAfter(to, units));
  18844. }
  18845. function isSame (input, units) {
  18846. var localInput = isMoment(input) ? input : createLocal(input),
  18847. inputMs;
  18848. if (!(this.isValid() && localInput.isValid())) {
  18849. return false;
  18850. }
  18851. units = normalizeUnits(units || 'millisecond');
  18852. if (units === 'millisecond') {
  18853. return this.valueOf() === localInput.valueOf();
  18854. } else {
  18855. inputMs = localInput.valueOf();
  18856. return this.clone().startOf(units).valueOf() <= inputMs && inputMs <= this.clone().endOf(units).valueOf();
  18857. }
  18858. }
  18859. function isSameOrAfter (input, units) {
  18860. return this.isSame(input, units) || this.isAfter(input,units);
  18861. }
  18862. function isSameOrBefore (input, units) {
  18863. return this.isSame(input, units) || this.isBefore(input,units);
  18864. }
  18865. function diff (input, units, asFloat) {
  18866. var that,
  18867. zoneDelta,
  18868. delta, output;
  18869. if (!this.isValid()) {
  18870. return NaN;
  18871. }
  18872. that = cloneWithOffset(input, this);
  18873. if (!that.isValid()) {
  18874. return NaN;
  18875. }
  18876. zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;
  18877. units = normalizeUnits(units);
  18878. switch (units) {
  18879. case 'year': output = monthDiff(this, that) / 12; break;
  18880. case 'month': output = monthDiff(this, that); break;
  18881. case 'quarter': output = monthDiff(this, that) / 3; break;
  18882. case 'second': output = (this - that) / 1e3; break; // 1000
  18883. case 'minute': output = (this - that) / 6e4; break; // 1000 * 60
  18884. case 'hour': output = (this - that) / 36e5; break; // 1000 * 60 * 60
  18885. case 'day': output = (this - that - zoneDelta) / 864e5; break; // 1000 * 60 * 60 * 24, negate dst
  18886. case 'week': output = (this - that - zoneDelta) / 6048e5; break; // 1000 * 60 * 60 * 24 * 7, negate dst
  18887. default: output = this - that;
  18888. }
  18889. return asFloat ? output : absFloor(output);
  18890. }
  18891. function monthDiff (a, b) {
  18892. // difference in months
  18893. var wholeMonthDiff = ((b.year() - a.year()) * 12) + (b.month() - a.month()),
  18894. // b is in (anchor - 1 month, anchor + 1 month)
  18895. anchor = a.clone().add(wholeMonthDiff, 'months'),
  18896. anchor2, adjust;
  18897. if (b - anchor < 0) {
  18898. anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');
  18899. // linear across the month
  18900. adjust = (b - anchor) / (anchor - anchor2);
  18901. } else {
  18902. anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');
  18903. // linear across the month
  18904. adjust = (b - anchor) / (anchor2 - anchor);
  18905. }
  18906. //check for negative zero, return zero if negative zero
  18907. return -(wholeMonthDiff + adjust) || 0;
  18908. }
  18909. hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';
  18910. hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';
  18911. function toString () {
  18912. return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
  18913. }
  18914. function toISOString() {
  18915. if (!this.isValid()) {
  18916. return null;
  18917. }
  18918. var m = this.clone().utc();
  18919. if (m.year() < 0 || m.year() > 9999) {
  18920. return formatMoment(m, 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]');
  18921. }
  18922. if (isFunction(Date.prototype.toISOString)) {
  18923. // native implementation is ~50x faster, use it when we can
  18924. return this.toDate().toISOString();
  18925. }
  18926. return formatMoment(m, 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]');
  18927. }
  18928. /**
  18929. * Return a human readable representation of a moment that can
  18930. * also be evaluated to get a new moment which is the same
  18931. *
  18932. * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects
  18933. */
  18934. function inspect () {
  18935. if (!this.isValid()) {
  18936. return 'moment.invalid(/* ' + this._i + ' */)';
  18937. }
  18938. var func = 'moment';
  18939. var zone = '';
  18940. if (!this.isLocal()) {
  18941. func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';
  18942. zone = 'Z';
  18943. }
  18944. var prefix = '[' + func + '("]';
  18945. var year = (0 <= this.year() && this.year() <= 9999) ? 'YYYY' : 'YYYYYY';
  18946. var datetime = '-MM-DD[T]HH:mm:ss.SSS';
  18947. var suffix = zone + '[")]';
  18948. return this.format(prefix + year + datetime + suffix);
  18949. }
  18950. function format (inputString) {
  18951. if (!inputString) {
  18952. inputString = this.isUtc() ? hooks.defaultFormatUtc : hooks.defaultFormat;
  18953. }
  18954. var output = formatMoment(this, inputString);
  18955. return this.localeData().postformat(output);
  18956. }
  18957. function from (time, withoutSuffix) {
  18958. if (this.isValid() &&
  18959. ((isMoment(time) && time.isValid()) ||
  18960. createLocal(time).isValid())) {
  18961. return createDuration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix);
  18962. } else {
  18963. return this.localeData().invalidDate();
  18964. }
  18965. }
  18966. function fromNow (withoutSuffix) {
  18967. return this.from(createLocal(), withoutSuffix);
  18968. }
  18969. function to (time, withoutSuffix) {
  18970. if (this.isValid() &&
  18971. ((isMoment(time) && time.isValid()) ||
  18972. createLocal(time).isValid())) {
  18973. return createDuration({from: this, to: time}).locale(this.locale()).humanize(!withoutSuffix);
  18974. } else {
  18975. return this.localeData().invalidDate();
  18976. }
  18977. }
  18978. function toNow (withoutSuffix) {
  18979. return this.to(createLocal(), withoutSuffix);
  18980. }
  18981. // If passed a locale key, it will set the locale for this
  18982. // instance. Otherwise, it will return the locale configuration
  18983. // variables for this instance.
  18984. function locale (key) {
  18985. var newLocaleData;
  18986. if (key === undefined) {
  18987. return this._locale._abbr;
  18988. } else {
  18989. newLocaleData = getLocale(key);
  18990. if (newLocaleData != null) {
  18991. this._locale = newLocaleData;
  18992. }
  18993. return this;
  18994. }
  18995. }
  18996. var lang = deprecate(
  18997. 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',
  18998. function (key) {
  18999. if (key === undefined) {
  19000. return this.localeData();
  19001. } else {
  19002. return this.locale(key);
  19003. }
  19004. }
  19005. );
  19006. function localeData () {
  19007. return this._locale;
  19008. }
  19009. function startOf (units) {
  19010. units = normalizeUnits(units);
  19011. // the following switch intentionally omits break keywords
  19012. // to utilize falling through the cases.
  19013. switch (units) {
  19014. case 'year':
  19015. this.month(0);
  19016. /* falls through */
  19017. case 'quarter':
  19018. case 'month':
  19019. this.date(1);
  19020. /* falls through */
  19021. case 'week':
  19022. case 'isoWeek':
  19023. case 'day':
  19024. case 'date':
  19025. this.hours(0);
  19026. /* falls through */
  19027. case 'hour':
  19028. this.minutes(0);
  19029. /* falls through */
  19030. case 'minute':
  19031. this.seconds(0);
  19032. /* falls through */
  19033. case 'second':
  19034. this.milliseconds(0);
  19035. }
  19036. // weeks are a special case
  19037. if (units === 'week') {
  19038. this.weekday(0);
  19039. }
  19040. if (units === 'isoWeek') {
  19041. this.isoWeekday(1);
  19042. }
  19043. // quarters are also special
  19044. if (units === 'quarter') {
  19045. this.month(Math.floor(this.month() / 3) * 3);
  19046. }
  19047. return this;
  19048. }
  19049. function endOf (units) {
  19050. units = normalizeUnits(units);
  19051. if (units === undefined || units === 'millisecond') {
  19052. return this;
  19053. }
  19054. // 'date' is an alias for 'day', so it should be considered as such.
  19055. if (units === 'date') {
  19056. units = 'day';
  19057. }
  19058. return this.startOf(units).add(1, (units === 'isoWeek' ? 'week' : units)).subtract(1, 'ms');
  19059. }
  19060. function valueOf () {
  19061. return this._d.valueOf() - ((this._offset || 0) * 60000);
  19062. }
  19063. function unix () {
  19064. return Math.floor(this.valueOf() / 1000);
  19065. }
  19066. function toDate () {
  19067. return new Date(this.valueOf());
  19068. }
  19069. function toArray () {
  19070. var m = this;
  19071. return [m.year(), m.month(), m.date(), m.hour(), m.minute(), m.second(), m.millisecond()];
  19072. }
  19073. function toObject () {
  19074. var m = this;
  19075. return {
  19076. years: m.year(),
  19077. months: m.month(),
  19078. date: m.date(),
  19079. hours: m.hours(),
  19080. minutes: m.minutes(),
  19081. seconds: m.seconds(),
  19082. milliseconds: m.milliseconds()
  19083. };
  19084. }
  19085. function toJSON () {
  19086. // new Date(NaN).toJSON() === null
  19087. return this.isValid() ? this.toISOString() : null;
  19088. }
  19089. function isValid$2 () {
  19090. return isValid(this);
  19091. }
  19092. function parsingFlags () {
  19093. return extend({}, getParsingFlags(this));
  19094. }
  19095. function invalidAt () {
  19096. return getParsingFlags(this).overflow;
  19097. }
  19098. function creationData() {
  19099. return {
  19100. input: this._i,
  19101. format: this._f,
  19102. locale: this._locale,
  19103. isUTC: this._isUTC,
  19104. strict: this._strict
  19105. };
  19106. }
  19107. // FORMATTING
  19108. addFormatToken(0, ['gg', 2], 0, function () {
  19109. return this.weekYear() % 100;
  19110. });
  19111. addFormatToken(0, ['GG', 2], 0, function () {
  19112. return this.isoWeekYear() % 100;
  19113. });
  19114. function addWeekYearFormatToken (token, getter) {
  19115. addFormatToken(0, [token, token.length], 0, getter);
  19116. }
  19117. addWeekYearFormatToken('gggg', 'weekYear');
  19118. addWeekYearFormatToken('ggggg', 'weekYear');
  19119. addWeekYearFormatToken('GGGG', 'isoWeekYear');
  19120. addWeekYearFormatToken('GGGGG', 'isoWeekYear');
  19121. // ALIASES
  19122. addUnitAlias('weekYear', 'gg');
  19123. addUnitAlias('isoWeekYear', 'GG');
  19124. // PRIORITY
  19125. addUnitPriority('weekYear', 1);
  19126. addUnitPriority('isoWeekYear', 1);
  19127. // PARSING
  19128. addRegexToken('G', matchSigned);
  19129. addRegexToken('g', matchSigned);
  19130. addRegexToken('GG', match1to2, match2);
  19131. addRegexToken('gg', match1to2, match2);
  19132. addRegexToken('GGGG', match1to4, match4);
  19133. addRegexToken('gggg', match1to4, match4);
  19134. addRegexToken('GGGGG', match1to6, match6);
  19135. addRegexToken('ggggg', match1to6, match6);
  19136. addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input, week, config, token) {
  19137. week[token.substr(0, 2)] = toInt(input);
  19138. });
  19139. addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
  19140. week[token] = hooks.parseTwoDigitYear(input);
  19141. });
  19142. // MOMENTS
  19143. function getSetWeekYear (input) {
  19144. return getSetWeekYearHelper.call(this,
  19145. input,
  19146. this.week(),
  19147. this.weekday(),
  19148. this.localeData()._week.dow,
  19149. this.localeData()._week.doy);
  19150. }
  19151. function getSetISOWeekYear (input) {
  19152. return getSetWeekYearHelper.call(this,
  19153. input, this.isoWeek(), this.isoWeekday(), 1, 4);
  19154. }
  19155. function getISOWeeksInYear () {
  19156. return weeksInYear(this.year(), 1, 4);
  19157. }
  19158. function getWeeksInYear () {
  19159. var weekInfo = this.localeData()._week;
  19160. return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
  19161. }
  19162. function getSetWeekYearHelper(input, week, weekday, dow, doy) {
  19163. var weeksTarget;
  19164. if (input == null) {
  19165. return weekOfYear(this, dow, doy).year;
  19166. } else {
  19167. weeksTarget = weeksInYear(input, dow, doy);
  19168. if (week > weeksTarget) {
  19169. week = weeksTarget;
  19170. }
  19171. return setWeekAll.call(this, input, week, weekday, dow, doy);
  19172. }
  19173. }
  19174. function setWeekAll(weekYear, week, weekday, dow, doy) {
  19175. var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),
  19176. date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);
  19177. this.year(date.getUTCFullYear());
  19178. this.month(date.getUTCMonth());
  19179. this.date(date.getUTCDate());
  19180. return this;
  19181. }
  19182. // FORMATTING
  19183. addFormatToken('Q', 0, 'Qo', 'quarter');
  19184. // ALIASES
  19185. addUnitAlias('quarter', 'Q');
  19186. // PRIORITY
  19187. addUnitPriority('quarter', 7);
  19188. // PARSING
  19189. addRegexToken('Q', match1);
  19190. addParseToken('Q', function (input, array) {
  19191. array[MONTH] = (toInt(input) - 1) * 3;
  19192. });
  19193. // MOMENTS
  19194. function getSetQuarter (input) {
  19195. return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);
  19196. }
  19197. // FORMATTING
  19198. addFormatToken('D', ['DD', 2], 'Do', 'date');
  19199. // ALIASES
  19200. addUnitAlias('date', 'D');
  19201. // PRIOROITY
  19202. addUnitPriority('date', 9);
  19203. // PARSING
  19204. addRegexToken('D', match1to2);
  19205. addRegexToken('DD', match1to2, match2);
  19206. addRegexToken('Do', function (isStrict, locale) {
  19207. // TODO: Remove "ordinalParse" fallback in next major release.
  19208. return isStrict ?
  19209. (locale._dayOfMonthOrdinalParse || locale._ordinalParse) :
  19210. locale._dayOfMonthOrdinalParseLenient;
  19211. });
  19212. addParseToken(['D', 'DD'], DATE);
  19213. addParseToken('Do', function (input, array) {
  19214. array[DATE] = toInt(input.match(match1to2)[0]);
  19215. });
  19216. // MOMENTS
  19217. var getSetDayOfMonth = makeGetSet('Date', true);
  19218. // FORMATTING
  19219. addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');
  19220. // ALIASES
  19221. addUnitAlias('dayOfYear', 'DDD');
  19222. // PRIORITY
  19223. addUnitPriority('dayOfYear', 4);
  19224. // PARSING
  19225. addRegexToken('DDD', match1to3);
  19226. addRegexToken('DDDD', match3);
  19227. addParseToken(['DDD', 'DDDD'], function (input, array, config) {
  19228. config._dayOfYear = toInt(input);
  19229. });
  19230. // HELPERS
  19231. // MOMENTS
  19232. function getSetDayOfYear (input) {
  19233. var dayOfYear = Math.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5) + 1;
  19234. return input == null ? dayOfYear : this.add((input - dayOfYear), 'd');
  19235. }
  19236. // FORMATTING
  19237. addFormatToken('m', ['mm', 2], 0, 'minute');
  19238. // ALIASES
  19239. addUnitAlias('minute', 'm');
  19240. // PRIORITY
  19241. addUnitPriority('minute', 14);
  19242. // PARSING
  19243. addRegexToken('m', match1to2);
  19244. addRegexToken('mm', match1to2, match2);
  19245. addParseToken(['m', 'mm'], MINUTE);
  19246. // MOMENTS
  19247. var getSetMinute = makeGetSet('Minutes', false);
  19248. // FORMATTING
  19249. addFormatToken('s', ['ss', 2], 0, 'second');
  19250. // ALIASES
  19251. addUnitAlias('second', 's');
  19252. // PRIORITY
  19253. addUnitPriority('second', 15);
  19254. // PARSING
  19255. addRegexToken('s', match1to2);
  19256. addRegexToken('ss', match1to2, match2);
  19257. addParseToken(['s', 'ss'], SECOND);
  19258. // MOMENTS
  19259. var getSetSecond = makeGetSet('Seconds', false);
  19260. // FORMATTING
  19261. addFormatToken('S', 0, 0, function () {
  19262. return ~~(this.millisecond() / 100);
  19263. });
  19264. addFormatToken(0, ['SS', 2], 0, function () {
  19265. return ~~(this.millisecond() / 10);
  19266. });
  19267. addFormatToken(0, ['SSS', 3], 0, 'millisecond');
  19268. addFormatToken(0, ['SSSS', 4], 0, function () {
  19269. return this.millisecond() * 10;
  19270. });
  19271. addFormatToken(0, ['SSSSS', 5], 0, function () {
  19272. return this.millisecond() * 100;
  19273. });
  19274. addFormatToken(0, ['SSSSSS', 6], 0, function () {
  19275. return this.millisecond() * 1000;
  19276. });
  19277. addFormatToken(0, ['SSSSSSS', 7], 0, function () {
  19278. return this.millisecond() * 10000;
  19279. });
  19280. addFormatToken(0, ['SSSSSSSS', 8], 0, function () {
  19281. return this.millisecond() * 100000;
  19282. });
  19283. addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {
  19284. return this.millisecond() * 1000000;
  19285. });
  19286. // ALIASES
  19287. addUnitAlias('millisecond', 'ms');
  19288. // PRIORITY
  19289. addUnitPriority('millisecond', 16);
  19290. // PARSING
  19291. addRegexToken('S', match1to3, match1);
  19292. addRegexToken('SS', match1to3, match2);
  19293. addRegexToken('SSS', match1to3, match3);
  19294. var token;
  19295. for (token = 'SSSS'; token.length <= 9; token += 'S') {
  19296. addRegexToken(token, matchUnsigned);
  19297. }
  19298. function parseMs(input, array) {
  19299. array[MILLISECOND] = toInt(('0.' + input) * 1000);
  19300. }
  19301. for (token = 'S'; token.length <= 9; token += 'S') {
  19302. addParseToken(token, parseMs);
  19303. }
  19304. // MOMENTS
  19305. var getSetMillisecond = makeGetSet('Milliseconds', false);
  19306. // FORMATTING
  19307. addFormatToken('z', 0, 0, 'zoneAbbr');
  19308. addFormatToken('zz', 0, 0, 'zoneName');
  19309. // MOMENTS
  19310. function getZoneAbbr () {
  19311. return this._isUTC ? 'UTC' : '';
  19312. }
  19313. function getZoneName () {
  19314. return this._isUTC ? 'Coordinated Universal Time' : '';
  19315. }
  19316. var proto = Moment.prototype;
  19317. proto.add = add;
  19318. proto.calendar = calendar$1;
  19319. proto.clone = clone;
  19320. proto.diff = diff;
  19321. proto.endOf = endOf;
  19322. proto.format = format;
  19323. proto.from = from;
  19324. proto.fromNow = fromNow;
  19325. proto.to = to;
  19326. proto.toNow = toNow;
  19327. proto.get = stringGet;
  19328. proto.invalidAt = invalidAt;
  19329. proto.isAfter = isAfter;
  19330. proto.isBefore = isBefore;
  19331. proto.isBetween = isBetween;
  19332. proto.isSame = isSame;
  19333. proto.isSameOrAfter = isSameOrAfter;
  19334. proto.isSameOrBefore = isSameOrBefore;
  19335. proto.isValid = isValid$2;
  19336. proto.lang = lang;
  19337. proto.locale = locale;
  19338. proto.localeData = localeData;
  19339. proto.max = prototypeMax;
  19340. proto.min = prototypeMin;
  19341. proto.parsingFlags = parsingFlags;
  19342. proto.set = stringSet;
  19343. proto.startOf = startOf;
  19344. proto.subtract = subtract;
  19345. proto.toArray = toArray;
  19346. proto.toObject = toObject;
  19347. proto.toDate = toDate;
  19348. proto.toISOString = toISOString;
  19349. proto.inspect = inspect;
  19350. proto.toJSON = toJSON;
  19351. proto.toString = toString;
  19352. proto.unix = unix;
  19353. proto.valueOf = valueOf;
  19354. proto.creationData = creationData;
  19355. // Year
  19356. proto.year = getSetYear;
  19357. proto.isLeapYear = getIsLeapYear;
  19358. // Week Year
  19359. proto.weekYear = getSetWeekYear;
  19360. proto.isoWeekYear = getSetISOWeekYear;
  19361. // Quarter
  19362. proto.quarter = proto.quarters = getSetQuarter;
  19363. // Month
  19364. proto.month = getSetMonth;
  19365. proto.daysInMonth = getDaysInMonth;
  19366. // Week
  19367. proto.week = proto.weeks = getSetWeek;
  19368. proto.isoWeek = proto.isoWeeks = getSetISOWeek;
  19369. proto.weeksInYear = getWeeksInYear;
  19370. proto.isoWeeksInYear = getISOWeeksInYear;
  19371. // Day
  19372. proto.date = getSetDayOfMonth;
  19373. proto.day = proto.days = getSetDayOfWeek;
  19374. proto.weekday = getSetLocaleDayOfWeek;
  19375. proto.isoWeekday = getSetISODayOfWeek;
  19376. proto.dayOfYear = getSetDayOfYear;
  19377. // Hour
  19378. proto.hour = proto.hours = getSetHour;
  19379. // Minute
  19380. proto.minute = proto.minutes = getSetMinute;
  19381. // Second
  19382. proto.second = proto.seconds = getSetSecond;
  19383. // Millisecond
  19384. proto.millisecond = proto.milliseconds = getSetMillisecond;
  19385. // Offset
  19386. proto.utcOffset = getSetOffset;
  19387. proto.utc = setOffsetToUTC;
  19388. proto.local = setOffsetToLocal;
  19389. proto.parseZone = setOffsetToParsedOffset;
  19390. proto.hasAlignedHourOffset = hasAlignedHourOffset;
  19391. proto.isDST = isDaylightSavingTime;
  19392. proto.isLocal = isLocal;
  19393. proto.isUtcOffset = isUtcOffset;
  19394. proto.isUtc = isUtc;
  19395. proto.isUTC = isUtc;
  19396. // Timezone
  19397. proto.zoneAbbr = getZoneAbbr;
  19398. proto.zoneName = getZoneName;
  19399. // Deprecations
  19400. proto.dates = deprecate('dates accessor is deprecated. Use date instead.', getSetDayOfMonth);
  19401. proto.months = deprecate('months accessor is deprecated. Use month instead', getSetMonth);
  19402. proto.years = deprecate('years accessor is deprecated. Use year instead', getSetYear);
  19403. proto.zone = deprecate('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', getSetZone);
  19404. proto.isDSTShifted = deprecate('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', isDaylightSavingTimeShifted);
  19405. function createUnix (input) {
  19406. return createLocal(input * 1000);
  19407. }
  19408. function createInZone () {
  19409. return createLocal.apply(null, arguments).parseZone();
  19410. }
  19411. function preParsePostFormat (string) {
  19412. return string;
  19413. }
  19414. var proto$1 = Locale.prototype;
  19415. proto$1.calendar = calendar;
  19416. proto$1.longDateFormat = longDateFormat;
  19417. proto$1.invalidDate = invalidDate;
  19418. proto$1.ordinal = ordinal;
  19419. proto$1.preparse = preParsePostFormat;
  19420. proto$1.postformat = preParsePostFormat;
  19421. proto$1.relativeTime = relativeTime;
  19422. proto$1.pastFuture = pastFuture;
  19423. proto$1.set = set;
  19424. // Month
  19425. proto$1.months = localeMonths;
  19426. proto$1.monthsShort = localeMonthsShort;
  19427. proto$1.monthsParse = localeMonthsParse;
  19428. proto$1.monthsRegex = monthsRegex;
  19429. proto$1.monthsShortRegex = monthsShortRegex;
  19430. // Week
  19431. proto$1.week = localeWeek;
  19432. proto$1.firstDayOfYear = localeFirstDayOfYear;
  19433. proto$1.firstDayOfWeek = localeFirstDayOfWeek;
  19434. // Day of Week
  19435. proto$1.weekdays = localeWeekdays;
  19436. proto$1.weekdaysMin = localeWeekdaysMin;
  19437. proto$1.weekdaysShort = localeWeekdaysShort;
  19438. proto$1.weekdaysParse = localeWeekdaysParse;
  19439. proto$1.weekdaysRegex = weekdaysRegex;
  19440. proto$1.weekdaysShortRegex = weekdaysShortRegex;
  19441. proto$1.weekdaysMinRegex = weekdaysMinRegex;
  19442. // Hours
  19443. proto$1.isPM = localeIsPM;
  19444. proto$1.meridiem = localeMeridiem;
  19445. function get$1 (format, index, field, setter) {
  19446. var locale = getLocale();
  19447. var utc = createUTC().set(setter, index);
  19448. return locale[field](utc, format);
  19449. }
  19450. function listMonthsImpl (format, index, field) {
  19451. if (isNumber(format)) {
  19452. index = format;
  19453. format = undefined;
  19454. }
  19455. format = format || '';
  19456. if (index != null) {
  19457. return get$1(format, index, field, 'month');
  19458. }
  19459. var i;
  19460. var out = [];
  19461. for (i = 0; i < 12; i++) {
  19462. out[i] = get$1(format, i, field, 'month');
  19463. }
  19464. return out;
  19465. }
  19466. // ()
  19467. // (5)
  19468. // (fmt, 5)
  19469. // (fmt)
  19470. // (true)
  19471. // (true, 5)
  19472. // (true, fmt, 5)
  19473. // (true, fmt)
  19474. function listWeekdaysImpl (localeSorted, format, index, field) {
  19475. if (typeof localeSorted === 'boolean') {
  19476. if (isNumber(format)) {
  19477. index = format;
  19478. format = undefined;
  19479. }
  19480. format = format || '';
  19481. } else {
  19482. format = localeSorted;
  19483. index = format;
  19484. localeSorted = false;
  19485. if (isNumber(format)) {
  19486. index = format;
  19487. format = undefined;
  19488. }
  19489. format = format || '';
  19490. }
  19491. var locale = getLocale(),
  19492. shift = localeSorted ? locale._week.dow : 0;
  19493. if (index != null) {
  19494. return get$1(format, (index + shift) % 7, field, 'day');
  19495. }
  19496. var i;
  19497. var out = [];
  19498. for (i = 0; i < 7; i++) {
  19499. out[i] = get$1(format, (i + shift) % 7, field, 'day');
  19500. }
  19501. return out;
  19502. }
  19503. function listMonths (format, index) {
  19504. return listMonthsImpl(format, index, 'months');
  19505. }
  19506. function listMonthsShort (format, index) {
  19507. return listMonthsImpl(format, index, 'monthsShort');
  19508. }
  19509. function listWeekdays (localeSorted, format, index) {
  19510. return listWeekdaysImpl(localeSorted, format, index, 'weekdays');
  19511. }
  19512. function listWeekdaysShort (localeSorted, format, index) {
  19513. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');
  19514. }
  19515. function listWeekdaysMin (localeSorted, format, index) {
  19516. return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');
  19517. }
  19518. getSetGlobalLocale('en', {
  19519. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  19520. ordinal : function (number) {
  19521. var b = number % 10,
  19522. output = (toInt(number % 100 / 10) === 1) ? 'th' :
  19523. (b === 1) ? 'st' :
  19524. (b === 2) ? 'nd' :
  19525. (b === 3) ? 'rd' : 'th';
  19526. return number + output;
  19527. }
  19528. });
  19529. // Side effect imports
  19530. hooks.lang = deprecate('moment.lang is deprecated. Use moment.locale instead.', getSetGlobalLocale);
  19531. hooks.langData = deprecate('moment.langData is deprecated. Use moment.localeData instead.', getLocale);
  19532. var mathAbs = Math.abs;
  19533. function abs () {
  19534. var data = this._data;
  19535. this._milliseconds = mathAbs(this._milliseconds);
  19536. this._days = mathAbs(this._days);
  19537. this._months = mathAbs(this._months);
  19538. data.milliseconds = mathAbs(data.milliseconds);
  19539. data.seconds = mathAbs(data.seconds);
  19540. data.minutes = mathAbs(data.minutes);
  19541. data.hours = mathAbs(data.hours);
  19542. data.months = mathAbs(data.months);
  19543. data.years = mathAbs(data.years);
  19544. return this;
  19545. }
  19546. function addSubtract$1 (duration, input, value, direction) {
  19547. var other = createDuration(input, value);
  19548. duration._milliseconds += direction * other._milliseconds;
  19549. duration._days += direction * other._days;
  19550. duration._months += direction * other._months;
  19551. return duration._bubble();
  19552. }
  19553. // supports only 2.0-style add(1, 's') or add(duration)
  19554. function add$1 (input, value) {
  19555. return addSubtract$1(this, input, value, 1);
  19556. }
  19557. // supports only 2.0-style subtract(1, 's') or subtract(duration)
  19558. function subtract$1 (input, value) {
  19559. return addSubtract$1(this, input, value, -1);
  19560. }
  19561. function absCeil (number) {
  19562. if (number < 0) {
  19563. return Math.floor(number);
  19564. } else {
  19565. return Math.ceil(number);
  19566. }
  19567. }
  19568. function bubble () {
  19569. var milliseconds = this._milliseconds;
  19570. var days = this._days;
  19571. var months = this._months;
  19572. var data = this._data;
  19573. var seconds, minutes, hours, years, monthsFromDays;
  19574. // if we have a mix of positive and negative values, bubble down first
  19575. // check: https://github.com/moment/moment/issues/2166
  19576. if (!((milliseconds >= 0 && days >= 0 && months >= 0) ||
  19577. (milliseconds <= 0 && days <= 0 && months <= 0))) {
  19578. milliseconds += absCeil(monthsToDays(months) + days) * 864e5;
  19579. days = 0;
  19580. months = 0;
  19581. }
  19582. // The following code bubbles up values, see the tests for
  19583. // examples of what that means.
  19584. data.milliseconds = milliseconds % 1000;
  19585. seconds = absFloor(milliseconds / 1000);
  19586. data.seconds = seconds % 60;
  19587. minutes = absFloor(seconds / 60);
  19588. data.minutes = minutes % 60;
  19589. hours = absFloor(minutes / 60);
  19590. data.hours = hours % 24;
  19591. days += absFloor(hours / 24);
  19592. // convert days to months
  19593. monthsFromDays = absFloor(daysToMonths(days));
  19594. months += monthsFromDays;
  19595. days -= absCeil(monthsToDays(monthsFromDays));
  19596. // 12 months -> 1 year
  19597. years = absFloor(months / 12);
  19598. months %= 12;
  19599. data.days = days;
  19600. data.months = months;
  19601. data.years = years;
  19602. return this;
  19603. }
  19604. function daysToMonths (days) {
  19605. // 400 years have 146097 days (taking into account leap year rules)
  19606. // 400 years have 12 months === 4800
  19607. return days * 4800 / 146097;
  19608. }
  19609. function monthsToDays (months) {
  19610. // the reverse of daysToMonths
  19611. return months * 146097 / 4800;
  19612. }
  19613. function as (units) {
  19614. if (!this.isValid()) {
  19615. return NaN;
  19616. }
  19617. var days;
  19618. var months;
  19619. var milliseconds = this._milliseconds;
  19620. units = normalizeUnits(units);
  19621. if (units === 'month' || units === 'year') {
  19622. days = this._days + milliseconds / 864e5;
  19623. months = this._months + daysToMonths(days);
  19624. return units === 'month' ? months : months / 12;
  19625. } else {
  19626. // handle milliseconds separately because of floating point math errors (issue #1867)
  19627. days = this._days + Math.round(monthsToDays(this._months));
  19628. switch (units) {
  19629. case 'week' : return days / 7 + milliseconds / 6048e5;
  19630. case 'day' : return days + milliseconds / 864e5;
  19631. case 'hour' : return days * 24 + milliseconds / 36e5;
  19632. case 'minute' : return days * 1440 + milliseconds / 6e4;
  19633. case 'second' : return days * 86400 + milliseconds / 1000;
  19634. // Math.floor prevents floating point math errors here
  19635. case 'millisecond': return Math.floor(days * 864e5) + milliseconds;
  19636. default: throw new Error('Unknown unit ' + units);
  19637. }
  19638. }
  19639. }
  19640. // TODO: Use this.as('ms')?
  19641. function valueOf$1 () {
  19642. if (!this.isValid()) {
  19643. return NaN;
  19644. }
  19645. return (
  19646. this._milliseconds +
  19647. this._days * 864e5 +
  19648. (this._months % 12) * 2592e6 +
  19649. toInt(this._months / 12) * 31536e6
  19650. );
  19651. }
  19652. function makeAs (alias) {
  19653. return function () {
  19654. return this.as(alias);
  19655. };
  19656. }
  19657. var asMilliseconds = makeAs('ms');
  19658. var asSeconds = makeAs('s');
  19659. var asMinutes = makeAs('m');
  19660. var asHours = makeAs('h');
  19661. var asDays = makeAs('d');
  19662. var asWeeks = makeAs('w');
  19663. var asMonths = makeAs('M');
  19664. var asYears = makeAs('y');
  19665. function clone$1 () {
  19666. return createDuration(this);
  19667. }
  19668. function get$2 (units) {
  19669. units = normalizeUnits(units);
  19670. return this.isValid() ? this[units + 's']() : NaN;
  19671. }
  19672. function makeGetter(name) {
  19673. return function () {
  19674. return this.isValid() ? this._data[name] : NaN;
  19675. };
  19676. }
  19677. var milliseconds = makeGetter('milliseconds');
  19678. var seconds = makeGetter('seconds');
  19679. var minutes = makeGetter('minutes');
  19680. var hours = makeGetter('hours');
  19681. var days = makeGetter('days');
  19682. var months = makeGetter('months');
  19683. var years = makeGetter('years');
  19684. function weeks () {
  19685. return absFloor(this.days() / 7);
  19686. }
  19687. var round = Math.round;
  19688. var thresholds = {
  19689. ss: 44, // a few seconds to seconds
  19690. s : 45, // seconds to minute
  19691. m : 45, // minutes to hour
  19692. h : 22, // hours to day
  19693. d : 26, // days to month
  19694. M : 11 // months to year
  19695. };
  19696. // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize
  19697. function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
  19698. return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
  19699. }
  19700. function relativeTime$1 (posNegDuration, withoutSuffix, locale) {
  19701. var duration = createDuration(posNegDuration).abs();
  19702. var seconds = round(duration.as('s'));
  19703. var minutes = round(duration.as('m'));
  19704. var hours = round(duration.as('h'));
  19705. var days = round(duration.as('d'));
  19706. var months = round(duration.as('M'));
  19707. var years = round(duration.as('y'));
  19708. var a = seconds <= thresholds.ss && ['s', seconds] ||
  19709. seconds < thresholds.s && ['ss', seconds] ||
  19710. minutes <= 1 && ['m'] ||
  19711. minutes < thresholds.m && ['mm', minutes] ||
  19712. hours <= 1 && ['h'] ||
  19713. hours < thresholds.h && ['hh', hours] ||
  19714. days <= 1 && ['d'] ||
  19715. days < thresholds.d && ['dd', days] ||
  19716. months <= 1 && ['M'] ||
  19717. months < thresholds.M && ['MM', months] ||
  19718. years <= 1 && ['y'] || ['yy', years];
  19719. a[2] = withoutSuffix;
  19720. a[3] = +posNegDuration > 0;
  19721. a[4] = locale;
  19722. return substituteTimeAgo.apply(null, a);
  19723. }
  19724. // This function allows you to set the rounding function for relative time strings
  19725. function getSetRelativeTimeRounding (roundingFunction) {
  19726. if (roundingFunction === undefined) {
  19727. return round;
  19728. }
  19729. if (typeof(roundingFunction) === 'function') {
  19730. round = roundingFunction;
  19731. return true;
  19732. }
  19733. return false;
  19734. }
  19735. // This function allows you to set a threshold for relative time strings
  19736. function getSetRelativeTimeThreshold (threshold, limit) {
  19737. if (thresholds[threshold] === undefined) {
  19738. return false;
  19739. }
  19740. if (limit === undefined) {
  19741. return thresholds[threshold];
  19742. }
  19743. thresholds[threshold] = limit;
  19744. if (threshold === 's') {
  19745. thresholds.ss = limit - 1;
  19746. }
  19747. return true;
  19748. }
  19749. function humanize (withSuffix) {
  19750. if (!this.isValid()) {
  19751. return this.localeData().invalidDate();
  19752. }
  19753. var locale = this.localeData();
  19754. var output = relativeTime$1(this, !withSuffix, locale);
  19755. if (withSuffix) {
  19756. output = locale.pastFuture(+this, output);
  19757. }
  19758. return locale.postformat(output);
  19759. }
  19760. var abs$1 = Math.abs;
  19761. function sign(x) {
  19762. return ((x > 0) - (x < 0)) || +x;
  19763. }
  19764. function toISOString$1() {
  19765. // for ISO strings we do not use the normal bubbling rules:
  19766. // * milliseconds bubble up until they become hours
  19767. // * days do not bubble at all
  19768. // * months bubble up until they become years
  19769. // This is because there is no context-free conversion between hours and days
  19770. // (think of clock changes)
  19771. // and also not between days and months (28-31 days per month)
  19772. if (!this.isValid()) {
  19773. return this.localeData().invalidDate();
  19774. }
  19775. var seconds = abs$1(this._milliseconds) / 1000;
  19776. var days = abs$1(this._days);
  19777. var months = abs$1(this._months);
  19778. var minutes, hours, years;
  19779. // 3600 seconds -> 60 minutes -> 1 hour
  19780. minutes = absFloor(seconds / 60);
  19781. hours = absFloor(minutes / 60);
  19782. seconds %= 60;
  19783. minutes %= 60;
  19784. // 12 months -> 1 year
  19785. years = absFloor(months / 12);
  19786. months %= 12;
  19787. // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js
  19788. var Y = years;
  19789. var M = months;
  19790. var D = days;
  19791. var h = hours;
  19792. var m = minutes;
  19793. var s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : '';
  19794. var total = this.asSeconds();
  19795. if (!total) {
  19796. // this is the same as C#'s (Noda) and python (isodate)...
  19797. // but not other JS (goog.date)
  19798. return 'P0D';
  19799. }
  19800. var totalSign = total < 0 ? '-' : '';
  19801. var ymSign = sign(this._months) !== sign(total) ? '-' : '';
  19802. var daysSign = sign(this._days) !== sign(total) ? '-' : '';
  19803. var hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';
  19804. return totalSign + 'P' +
  19805. (Y ? ymSign + Y + 'Y' : '') +
  19806. (M ? ymSign + M + 'M' : '') +
  19807. (D ? daysSign + D + 'D' : '') +
  19808. ((h || m || s) ? 'T' : '') +
  19809. (h ? hmsSign + h + 'H' : '') +
  19810. (m ? hmsSign + m + 'M' : '') +
  19811. (s ? hmsSign + s + 'S' : '');
  19812. }
  19813. var proto$2 = Duration.prototype;
  19814. proto$2.isValid = isValid$1;
  19815. proto$2.abs = abs;
  19816. proto$2.add = add$1;
  19817. proto$2.subtract = subtract$1;
  19818. proto$2.as = as;
  19819. proto$2.asMilliseconds = asMilliseconds;
  19820. proto$2.asSeconds = asSeconds;
  19821. proto$2.asMinutes = asMinutes;
  19822. proto$2.asHours = asHours;
  19823. proto$2.asDays = asDays;
  19824. proto$2.asWeeks = asWeeks;
  19825. proto$2.asMonths = asMonths;
  19826. proto$2.asYears = asYears;
  19827. proto$2.valueOf = valueOf$1;
  19828. proto$2._bubble = bubble;
  19829. proto$2.clone = clone$1;
  19830. proto$2.get = get$2;
  19831. proto$2.milliseconds = milliseconds;
  19832. proto$2.seconds = seconds;
  19833. proto$2.minutes = minutes;
  19834. proto$2.hours = hours;
  19835. proto$2.days = days;
  19836. proto$2.weeks = weeks;
  19837. proto$2.months = months;
  19838. proto$2.years = years;
  19839. proto$2.humanize = humanize;
  19840. proto$2.toISOString = toISOString$1;
  19841. proto$2.toString = toISOString$1;
  19842. proto$2.toJSON = toISOString$1;
  19843. proto$2.locale = locale;
  19844. proto$2.localeData = localeData;
  19845. // Deprecations
  19846. proto$2.toIsoString = deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', toISOString$1);
  19847. proto$2.lang = lang;
  19848. // Side effect imports
  19849. // FORMATTING
  19850. addFormatToken('X', 0, 0, 'unix');
  19851. addFormatToken('x', 0, 0, 'valueOf');
  19852. // PARSING
  19853. addRegexToken('x', matchSigned);
  19854. addRegexToken('X', matchTimestamp);
  19855. addParseToken('X', function (input, array, config) {
  19856. config._d = new Date(parseFloat(input, 10) * 1000);
  19857. });
  19858. addParseToken('x', function (input, array, config) {
  19859. config._d = new Date(toInt(input));
  19860. });
  19861. // Side effect imports
  19862. hooks.version = '2.19.4';
  19863. setHookCallback(createLocal);
  19864. hooks.fn = proto;
  19865. hooks.min = min;
  19866. hooks.max = max;
  19867. hooks.now = now;
  19868. hooks.utc = createUTC;
  19869. hooks.unix = createUnix;
  19870. hooks.months = listMonths;
  19871. hooks.isDate = isDate;
  19872. hooks.locale = getSetGlobalLocale;
  19873. hooks.invalid = createInvalid;
  19874. hooks.duration = createDuration;
  19875. hooks.isMoment = isMoment;
  19876. hooks.weekdays = listWeekdays;
  19877. hooks.parseZone = createInZone;
  19878. hooks.localeData = getLocale;
  19879. hooks.isDuration = isDuration;
  19880. hooks.monthsShort = listMonthsShort;
  19881. hooks.weekdaysMin = listWeekdaysMin;
  19882. hooks.defineLocale = defineLocale;
  19883. hooks.updateLocale = updateLocale;
  19884. hooks.locales = listLocales;
  19885. hooks.weekdaysShort = listWeekdaysShort;
  19886. hooks.normalizeUnits = normalizeUnits;
  19887. hooks.relativeTimeRounding = getSetRelativeTimeRounding;
  19888. hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
  19889. hooks.calendarFormat = getCalendarFormat;
  19890. hooks.prototype = proto;
  19891. return hooks;
  19892. })));
  19893. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module)))
  19894. /***/ }),
  19895. /***/ "./node_modules/pluggable.js/dist/pluggable.js":
  19896. /*!*****************************************************!*\
  19897. !*** ./node_modules/pluggable.js/dist/pluggable.js ***!
  19898. \*****************************************************/
  19899. /*! no static exports found */
  19900. /***/ (function(module, exports, __webpack_require__) {
  19901. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (global, factory) {
  19902. if (true) {
  19903. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [exports, __webpack_require__(/*! lodash */ "lodash")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  19904. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  19905. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  19906. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  19907. } else { var mod; }
  19908. })(this, function (exports, _lodash) {
  19909. 'use strict';
  19910. Object.defineProperty(exports, "__esModule", {
  19911. value: true
  19912. });
  19913. exports.enable = undefined;
  19914. var _ = _interopRequireWildcard(_lodash);
  19915. function _interopRequireWildcard(obj) {
  19916. if (obj && obj.__esModule) {
  19917. return obj;
  19918. } else {
  19919. var newObj = {};
  19920. if (obj != null) {
  19921. for (var key in obj) {
  19922. if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];
  19923. }
  19924. }
  19925. newObj.default = obj;
  19926. return newObj;
  19927. }
  19928. }
  19929. var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
  19930. return typeof obj;
  19931. } : function (obj) {
  19932. return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  19933. };
  19934. // The `PluginSocket` class contains the plugin architecture, and gets
  19935. // created whenever `pluggable.enable(obj);` is called on the object
  19936. // that you want to make pluggable.
  19937. // You can also see it as the thing into which the plugins are plugged.
  19938. // It takes two parameters, first, the object being made pluggable, and
  19939. // then the name by which the pluggable object may be referenced on the
  19940. // __super__ object (inside overrides).
  19941. function PluginSocket(plugged, name) {
  19942. this.name = name;
  19943. this.plugged = plugged;
  19944. if (typeof this.plugged.__super__ === 'undefined') {
  19945. this.plugged.__super__ = {};
  19946. } else if (typeof this.plugged.__super__ === 'string') {
  19947. this.plugged.__super__ = { '__string__': this.plugged.__super__ };
  19948. }
  19949. this.plugged.__super__[name] = this.plugged;
  19950. this.plugins = {};
  19951. this.initialized_plugins = [];
  19952. }
  19953. // Now we add methods to the PluginSocket by adding them to its
  19954. // prototype.
  19955. _.extend(PluginSocket.prototype, {
  19956. // `wrappedOverride` creates a partially applied wrapper function
  19957. // that makes sure to set the proper super method when the
  19958. // overriding method is called. This is done to enable
  19959. // chaining of plugin methods, all the way up to the
  19960. // original method.
  19961. wrappedOverride: function wrappedOverride(key, value, super_method, default_super) {
  19962. if (typeof super_method === "function") {
  19963. if (typeof this.__super__ === "undefined") {
  19964. /* We're not on the context of the plugged object.
  19965. * This can happen when the overridden method is called via
  19966. * an event handler or when it's a constructor.
  19967. *
  19968. * In this case, we simply tack on the __super__ obj.
  19969. */
  19970. this.__super__ = default_super;
  19971. }
  19972. this.__super__[key] = super_method.bind(this);
  19973. }
  19974. return value.apply(this, _.drop(arguments, 4));
  19975. },
  19976. // `_overrideAttribute` overrides an attribute on the original object
  19977. // (the thing being plugged into).
  19978. //
  19979. // If the attribute being overridden is a function, then the original
  19980. // function will still be available via the `__super__` attribute.
  19981. //
  19982. // If the same function is being overridden multiple times, then
  19983. // the original function will be available at the end of a chain of
  19984. // functions, starting from the most recent override, all the way
  19985. // back to the original function, each being referenced by the
  19986. // previous' __super__ attribute.
  19987. //
  19988. // For example:
  19989. //
  19990. // `plugin2.MyFunc.__super__.myFunc => plugin1.MyFunc.__super__.myFunc => original.myFunc`
  19991. _overrideAttribute: function _overrideAttribute(key, plugin) {
  19992. var value = plugin.overrides[key];
  19993. if (typeof value === "function") {
  19994. var default_super = {};
  19995. default_super[this.name] = this.plugged;
  19996. var wrapped_function = _.partial(this.wrappedOverride, key, value, this.plugged[key], default_super);
  19997. this.plugged[key] = wrapped_function;
  19998. } else {
  19999. this.plugged[key] = value;
  20000. }
  20001. },
  20002. _extendObject: function _extendObject(obj, attributes) {
  20003. if (!obj.prototype.__super__) {
  20004. obj.prototype.__super__ = {};
  20005. obj.prototype.__super__[this.name] = this.plugged;
  20006. }
  20007. var that = this;
  20008. _.each(attributes, function (value, key) {
  20009. if (key === 'events') {
  20010. obj.prototype[key] = _.extend(value, obj.prototype[key]);
  20011. } else if (typeof value === 'function') {
  20012. // We create a partially applied wrapper function, that
  20013. // makes sure to set the proper super method when the
  20014. // overriding method is called. This is done to enable
  20015. // chaining of plugin methods, all the way up to the
  20016. // original method.
  20017. var default_super = {};
  20018. default_super[that.name] = that.plugged;
  20019. var wrapped_function = _.partial(that.wrappedOverride, key, value, obj.prototype[key], default_super);
  20020. obj.prototype[key] = wrapped_function;
  20021. } else {
  20022. obj.prototype[key] = value;
  20023. }
  20024. });
  20025. },
  20026. // Plugins can specify dependencies (by means of the
  20027. // `dependencies` list attribute) which refers to dependencies
  20028. // which will be initialized first, before the plugin itself gets initialized.
  20029. //
  20030. // If `strict_plugin_dependencies` is set to `false` (on the object being
  20031. // made pluggable), then no error will be thrown if any of these plugins aren't
  20032. // available.
  20033. loadPluginDependencies: function loadPluginDependencies(plugin) {
  20034. var _this = this;
  20035. _.each(plugin.dependencies, function (name) {
  20036. var dep = _this.plugins[name];
  20037. if (dep) {
  20038. if (_.includes(dep.dependencies, plugin.__name__)) {
  20039. /* FIXME: circular dependency checking is only one level deep. */
  20040. throw "Found a circular dependency between the plugins \"" + plugin.__name__ + "\" and \"" + name + "\"";
  20041. }
  20042. _this.initializePlugin(dep);
  20043. } else {
  20044. _this.throwUndefinedDependencyError("Could not find dependency \"" + name + "\" " + "for the plugin \"" + plugin.__name__ + "\". " + "If it's needed, make sure it's loaded by require.js");
  20045. }
  20046. });
  20047. },
  20048. throwUndefinedDependencyError: function throwUndefinedDependencyError(msg) {
  20049. if (this.plugged.strict_plugin_dependencies) {
  20050. throw msg;
  20051. } else {
  20052. console.log(msg);
  20053. return;
  20054. }
  20055. },
  20056. // `applyOverrides` is called by initializePlugin. It applies any
  20057. // and all overrides of methods or Backbone views and models that
  20058. // are defined on any of the plugins.
  20059. applyOverrides: function applyOverrides(plugin) {
  20060. var _this2 = this;
  20061. _.each(Object.keys(plugin.overrides || {}), function (key) {
  20062. var override = plugin.overrides[key];
  20063. if ((typeof override === 'undefined' ? 'undefined' : _typeof(override)) === "object") {
  20064. if (typeof _this2.plugged[key] === 'undefined') {
  20065. _this2.throwUndefinedDependencyError("Error: Plugin \"" + plugin.__name__ + "\" tried to override " + key + " but it's not found.");
  20066. } else {
  20067. _this2._extendObject(_this2.plugged[key], override);
  20068. }
  20069. } else {
  20070. _this2._overrideAttribute(key, plugin);
  20071. }
  20072. });
  20073. },
  20074. // `initializePlugin` applies the overrides (if any) defined on all
  20075. // the registered plugins and then calls the initialize method of the plugin
  20076. initializePlugin: function initializePlugin(plugin) {
  20077. if (!_.includes(_.keys(this.allowed_plugins), plugin.__name__)) {
  20078. /* Don't initialize disallowed plugins. */
  20079. return;
  20080. }
  20081. if (_.includes(this.initialized_plugins, plugin.__name__)) {
  20082. /* Don't initialize plugins twice, otherwise we get
  20083. * infinite recursion in overridden methods.
  20084. */
  20085. return;
  20086. }
  20087. if (_.isBoolean(plugin.enabled) && plugin.enabled || _.isFunction(plugin.enabled) && plugin.enabled(this.plugged) || _.isNil(plugin.enabled)) {
  20088. _.extend(plugin, this.properties);
  20089. if (plugin.dependencies) {
  20090. this.loadPluginDependencies(plugin);
  20091. }
  20092. this.applyOverrides(plugin);
  20093. if (typeof plugin.initialize === "function") {
  20094. plugin.initialize.bind(plugin)(this);
  20095. }
  20096. this.initialized_plugins.push(plugin.__name__);
  20097. }
  20098. },
  20099. // `registerPlugin` registers (or inserts, if you'd like) a plugin,
  20100. // by adding it to the `plugins` map on the PluginSocket instance.
  20101. registerPlugin: function registerPlugin(name, plugin) {
  20102. if (name in this.plugins) {
  20103. throw new Error('Error: Plugin name ' + name + ' is already taken');
  20104. }
  20105. plugin.__name__ = name;
  20106. this.plugins[name] = plugin;
  20107. },
  20108. // `initializePlugins` should get called once all plugins have been
  20109. // registered. It will then iterate through all the plugins, calling
  20110. // `initializePlugin` for each.
  20111. // The passed in properties variable is an object with attributes and methods
  20112. // which will be attached to the plugins.
  20113. initializePlugins: function initializePlugins() {
  20114. var properties = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  20115. var whitelist = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  20116. var blacklist = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
  20117. if (!_.size(this.plugins)) {
  20118. return;
  20119. }
  20120. this.properties = properties;
  20121. this.allowed_plugins = _.pickBy(this.plugins, function (plugin, key) {
  20122. return (!whitelist.length || whitelist.length && _.includes(whitelist, key)) && !_.includes(blacklist, key);
  20123. });
  20124. _.each(_.values(this.allowed_plugins), this.initializePlugin.bind(this));
  20125. }
  20126. });
  20127. function enable(object, name, attrname) {
  20128. // Call the `enable` method to make an object pluggable
  20129. //
  20130. // It takes three parameters:
  20131. // - `object`: The object that gets made pluggable.
  20132. // - `name`: The string name by which the now pluggable object
  20133. // may be referenced on the __super__ obj (in overrides).
  20134. // The default value is "plugged".
  20135. // - `attrname`: The string name of the attribute on the now
  20136. // pluggable object, which refers to the PluginSocket instance
  20137. // that gets created.
  20138. if (typeof attrname === "undefined") {
  20139. attrname = "pluginSocket";
  20140. }
  20141. if (typeof name === 'undefined') {
  20142. name = 'plugged';
  20143. }
  20144. var ref = {};
  20145. ref[attrname] = new PluginSocket(object, name);
  20146. return _.extend(object, ref);
  20147. }
  20148. exports.enable = enable;
  20149. exports.default = {
  20150. enable: enable
  20151. };
  20152. });
  20153. //# sourceMappingURL=pluggable.js.map
  20154. /***/ }),
  20155. /***/ "./node_modules/sizzle/dist/sizzle.js":
  20156. /*!********************************************!*\
  20157. !*** ./node_modules/sizzle/dist/sizzle.js ***!
  20158. \********************************************/
  20159. /*! no static exports found */
  20160. /***/ (function(module, exports, __webpack_require__) {
  20161. var __WEBPACK_AMD_DEFINE_RESULT__;/*!
  20162. * Sizzle CSS Selector Engine v2.3.3
  20163. * https://sizzlejs.com/
  20164. *
  20165. * Copyright jQuery Foundation and other contributors
  20166. * Released under the MIT license
  20167. * http://jquery.org/license
  20168. *
  20169. * Date: 2016-08-08
  20170. */
  20171. (function( window ) {
  20172. var i,
  20173. support,
  20174. Expr,
  20175. getText,
  20176. isXML,
  20177. tokenize,
  20178. compile,
  20179. select,
  20180. outermostContext,
  20181. sortInput,
  20182. hasDuplicate,
  20183. // Local document vars
  20184. setDocument,
  20185. document,
  20186. docElem,
  20187. documentIsHTML,
  20188. rbuggyQSA,
  20189. rbuggyMatches,
  20190. matches,
  20191. contains,
  20192. // Instance-specific data
  20193. expando = "sizzle" + 1 * new Date(),
  20194. preferredDoc = window.document,
  20195. dirruns = 0,
  20196. done = 0,
  20197. classCache = createCache(),
  20198. tokenCache = createCache(),
  20199. compilerCache = createCache(),
  20200. sortOrder = function( a, b ) {
  20201. if ( a === b ) {
  20202. hasDuplicate = true;
  20203. }
  20204. return 0;
  20205. },
  20206. // Instance methods
  20207. hasOwn = ({}).hasOwnProperty,
  20208. arr = [],
  20209. pop = arr.pop,
  20210. push_native = arr.push,
  20211. push = arr.push,
  20212. slice = arr.slice,
  20213. // Use a stripped-down indexOf as it's faster than native
  20214. // https://jsperf.com/thor-indexof-vs-for/5
  20215. indexOf = function( list, elem ) {
  20216. var i = 0,
  20217. len = list.length;
  20218. for ( ; i < len; i++ ) {
  20219. if ( list[i] === elem ) {
  20220. return i;
  20221. }
  20222. }
  20223. return -1;
  20224. },
  20225. booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
  20226. // Regular expressions
  20227. // http://www.w3.org/TR/css3-selectors/#whitespace
  20228. whitespace = "[\\x20\\t\\r\\n\\f]",
  20229. // http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
  20230. identifier = "(?:\\\\.|[\\w-]|[^\0-\\xa0])+",
  20231. // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors
  20232. attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace +
  20233. // Operator (capture 2)
  20234. "*([*^$|!~]?=)" + whitespace +
  20235. // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]"
  20236. "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace +
  20237. "*\\]",
  20238. pseudos = ":(" + identifier + ")(?:\\((" +
  20239. // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:
  20240. // 1. quoted (capture 3; capture 4 or capture 5)
  20241. "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" +
  20242. // 2. simple (capture 6)
  20243. "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" +
  20244. // 3. anything else (capture 2)
  20245. ".*" +
  20246. ")\\)|)",
  20247. // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
  20248. rwhitespace = new RegExp( whitespace + "+", "g" ),
  20249. rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ),
  20250. rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
  20251. rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ),
  20252. rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ),
  20253. rpseudo = new RegExp( pseudos ),
  20254. ridentifier = new RegExp( "^" + identifier + "$" ),
  20255. matchExpr = {
  20256. "ID": new RegExp( "^#(" + identifier + ")" ),
  20257. "CLASS": new RegExp( "^\\.(" + identifier + ")" ),
  20258. "TAG": new RegExp( "^(" + identifier + "|[*])" ),
  20259. "ATTR": new RegExp( "^" + attributes ),
  20260. "PSEUDO": new RegExp( "^" + pseudos ),
  20261. "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace +
  20262. "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace +
  20263. "*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
  20264. "bool": new RegExp( "^(?:" + booleans + ")$", "i" ),
  20265. // For use in libraries implementing .is()
  20266. // We use this for POS matching in `select`
  20267. "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" +
  20268. whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )
  20269. },
  20270. rinputs = /^(?:input|select|textarea|button)$/i,
  20271. rheader = /^h\d$/i,
  20272. rnative = /^[^{]+\{\s*\[native \w/,
  20273. // Easily-parseable/retrievable ID or TAG or CLASS selectors
  20274. rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
  20275. rsibling = /[+~]/,
  20276. // CSS escapes
  20277. // http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
  20278. runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ),
  20279. funescape = function( _, escaped, escapedWhitespace ) {
  20280. var high = "0x" + escaped - 0x10000;
  20281. // NaN means non-codepoint
  20282. // Support: Firefox<24
  20283. // Workaround erroneous numeric interpretation of +"0x"
  20284. return high !== high || escapedWhitespace ?
  20285. escaped :
  20286. high < 0 ?
  20287. // BMP codepoint
  20288. String.fromCharCode( high + 0x10000 ) :
  20289. // Supplemental Plane codepoint (surrogate pair)
  20290. String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );
  20291. },
  20292. // CSS string/identifier serialization
  20293. // https://drafts.csswg.org/cssom/#common-serializing-idioms
  20294. rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,
  20295. fcssescape = function( ch, asCodePoint ) {
  20296. if ( asCodePoint ) {
  20297. // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER
  20298. if ( ch === "\0" ) {
  20299. return "\uFFFD";
  20300. }
  20301. // Control characters and (dependent upon position) numbers get escaped as code points
  20302. return ch.slice( 0, -1 ) + "\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " ";
  20303. }
  20304. // Other potentially-special ASCII characters get backslash-escaped
  20305. return "\\" + ch;
  20306. },
  20307. // Used for iframes
  20308. // See setDocument()
  20309. // Removing the function wrapper causes a "Permission Denied"
  20310. // error in IE
  20311. unloadHandler = function() {
  20312. setDocument();
  20313. },
  20314. disabledAncestor = addCombinator(
  20315. function( elem ) {
  20316. return elem.disabled === true && ("form" in elem || "label" in elem);
  20317. },
  20318. { dir: "parentNode", next: "legend" }
  20319. );
  20320. // Optimize for push.apply( _, NodeList )
  20321. try {
  20322. push.apply(
  20323. (arr = slice.call( preferredDoc.childNodes )),
  20324. preferredDoc.childNodes
  20325. );
  20326. // Support: Android<4.0
  20327. // Detect silently failing push.apply
  20328. arr[ preferredDoc.childNodes.length ].nodeType;
  20329. } catch ( e ) {
  20330. push = { apply: arr.length ?
  20331. // Leverage slice if possible
  20332. function( target, els ) {
  20333. push_native.apply( target, slice.call(els) );
  20334. } :
  20335. // Support: IE<9
  20336. // Otherwise append directly
  20337. function( target, els ) {
  20338. var j = target.length,
  20339. i = 0;
  20340. // Can't trust NodeList.length
  20341. while ( (target[j++] = els[i++]) ) {}
  20342. target.length = j - 1;
  20343. }
  20344. };
  20345. }
  20346. function Sizzle( selector, context, results, seed ) {
  20347. var m, i, elem, nid, match, groups, newSelector,
  20348. newContext = context && context.ownerDocument,
  20349. // nodeType defaults to 9, since context defaults to document
  20350. nodeType = context ? context.nodeType : 9;
  20351. results = results || [];
  20352. // Return early from calls with invalid selector or context
  20353. if ( typeof selector !== "string" || !selector ||
  20354. nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {
  20355. return results;
  20356. }
  20357. // Try to shortcut find operations (as opposed to filters) in HTML documents
  20358. if ( !seed ) {
  20359. if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) {
  20360. setDocument( context );
  20361. }
  20362. context = context || document;
  20363. if ( documentIsHTML ) {
  20364. // If the selector is sufficiently simple, try using a "get*By*" DOM method
  20365. // (excepting DocumentFragment context, where the methods don't exist)
  20366. if ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) {
  20367. // ID selector
  20368. if ( (m = match[1]) ) {
  20369. // Document context
  20370. if ( nodeType === 9 ) {
  20371. if ( (elem = context.getElementById( m )) ) {
  20372. // Support: IE, Opera, Webkit
  20373. // TODO: identify versions
  20374. // getElementById can match elements by name instead of ID
  20375. if ( elem.id === m ) {
  20376. results.push( elem );
  20377. return results;
  20378. }
  20379. } else {
  20380. return results;
  20381. }
  20382. // Element context
  20383. } else {
  20384. // Support: IE, Opera, Webkit
  20385. // TODO: identify versions
  20386. // getElementById can match elements by name instead of ID
  20387. if ( newContext && (elem = newContext.getElementById( m )) &&
  20388. contains( context, elem ) &&
  20389. elem.id === m ) {
  20390. results.push( elem );
  20391. return results;
  20392. }
  20393. }
  20394. // Type selector
  20395. } else if ( match[2] ) {
  20396. push.apply( results, context.getElementsByTagName( selector ) );
  20397. return results;
  20398. // Class selector
  20399. } else if ( (m = match[3]) && support.getElementsByClassName &&
  20400. context.getElementsByClassName ) {
  20401. push.apply( results, context.getElementsByClassName( m ) );
  20402. return results;
  20403. }
  20404. }
  20405. // Take advantage of querySelectorAll
  20406. if ( support.qsa &&
  20407. !compilerCache[ selector + " " ] &&
  20408. (!rbuggyQSA || !rbuggyQSA.test( selector )) ) {
  20409. if ( nodeType !== 1 ) {
  20410. newContext = context;
  20411. newSelector = selector;
  20412. // qSA looks outside Element context, which is not what we want
  20413. // Thanks to Andrew Dupont for this workaround technique
  20414. // Support: IE <=8
  20415. // Exclude object elements
  20416. } else if ( context.nodeName.toLowerCase() !== "object" ) {
  20417. // Capture the context ID, setting it first if necessary
  20418. if ( (nid = context.getAttribute( "id" )) ) {
  20419. nid = nid.replace( rcssescape, fcssescape );
  20420. } else {
  20421. context.setAttribute( "id", (nid = expando) );
  20422. }
  20423. // Prefix every selector in the list
  20424. groups = tokenize( selector );
  20425. i = groups.length;
  20426. while ( i-- ) {
  20427. groups[i] = "#" + nid + " " + toSelector( groups[i] );
  20428. }
  20429. newSelector = groups.join( "," );
  20430. // Expand context for sibling selectors
  20431. newContext = rsibling.test( selector ) && testContext( context.parentNode ) ||
  20432. context;
  20433. }
  20434. if ( newSelector ) {
  20435. try {
  20436. push.apply( results,
  20437. newContext.querySelectorAll( newSelector )
  20438. );
  20439. return results;
  20440. } catch ( qsaError ) {
  20441. } finally {
  20442. if ( nid === expando ) {
  20443. context.removeAttribute( "id" );
  20444. }
  20445. }
  20446. }
  20447. }
  20448. }
  20449. }
  20450. // All others
  20451. return select( selector.replace( rtrim, "$1" ), context, results, seed );
  20452. }
  20453. /**
  20454. * Create key-value caches of limited size
  20455. * @returns {function(string, object)} Returns the Object data after storing it on itself with
  20456. * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)
  20457. * deleting the oldest entry
  20458. */
  20459. function createCache() {
  20460. var keys = [];
  20461. function cache( key, value ) {
  20462. // Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
  20463. if ( keys.push( key + " " ) > Expr.cacheLength ) {
  20464. // Only keep the most recent entries
  20465. delete cache[ keys.shift() ];
  20466. }
  20467. return (cache[ key + " " ] = value);
  20468. }
  20469. return cache;
  20470. }
  20471. /**
  20472. * Mark a function for special use by Sizzle
  20473. * @param {Function} fn The function to mark
  20474. */
  20475. function markFunction( fn ) {
  20476. fn[ expando ] = true;
  20477. return fn;
  20478. }
  20479. /**
  20480. * Support testing using an element
  20481. * @param {Function} fn Passed the created element and returns a boolean result
  20482. */
  20483. function assert( fn ) {
  20484. var el = document.createElement("fieldset");
  20485. try {
  20486. return !!fn( el );
  20487. } catch (e) {
  20488. return false;
  20489. } finally {
  20490. // Remove from its parent by default
  20491. if ( el.parentNode ) {
  20492. el.parentNode.removeChild( el );
  20493. }
  20494. // release memory in IE
  20495. el = null;
  20496. }
  20497. }
  20498. /**
  20499. * Adds the same handler for all of the specified attrs
  20500. * @param {String} attrs Pipe-separated list of attributes
  20501. * @param {Function} handler The method that will be applied
  20502. */
  20503. function addHandle( attrs, handler ) {
  20504. var arr = attrs.split("|"),
  20505. i = arr.length;
  20506. while ( i-- ) {
  20507. Expr.attrHandle[ arr[i] ] = handler;
  20508. }
  20509. }
  20510. /**
  20511. * Checks document order of two siblings
  20512. * @param {Element} a
  20513. * @param {Element} b
  20514. * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b
  20515. */
  20516. function siblingCheck( a, b ) {
  20517. var cur = b && a,
  20518. diff = cur && a.nodeType === 1 && b.nodeType === 1 &&
  20519. a.sourceIndex - b.sourceIndex;
  20520. // Use IE sourceIndex if available on both nodes
  20521. if ( diff ) {
  20522. return diff;
  20523. }
  20524. // Check if b follows a
  20525. if ( cur ) {
  20526. while ( (cur = cur.nextSibling) ) {
  20527. if ( cur === b ) {
  20528. return -1;
  20529. }
  20530. }
  20531. }
  20532. return a ? 1 : -1;
  20533. }
  20534. /**
  20535. * Returns a function to use in pseudos for input types
  20536. * @param {String} type
  20537. */
  20538. function createInputPseudo( type ) {
  20539. return function( elem ) {
  20540. var name = elem.nodeName.toLowerCase();
  20541. return name === "input" && elem.type === type;
  20542. };
  20543. }
  20544. /**
  20545. * Returns a function to use in pseudos for buttons
  20546. * @param {String} type
  20547. */
  20548. function createButtonPseudo( type ) {
  20549. return function( elem ) {
  20550. var name = elem.nodeName.toLowerCase();
  20551. return (name === "input" || name === "button") && elem.type === type;
  20552. };
  20553. }
  20554. /**
  20555. * Returns a function to use in pseudos for :enabled/:disabled
  20556. * @param {Boolean} disabled true for :disabled; false for :enabled
  20557. */
  20558. function createDisabledPseudo( disabled ) {
  20559. // Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable
  20560. return function( elem ) {
  20561. // Only certain elements can match :enabled or :disabled
  20562. // https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled
  20563. // https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled
  20564. if ( "form" in elem ) {
  20565. // Check for inherited disabledness on relevant non-disabled elements:
  20566. // * listed form-associated elements in a disabled fieldset
  20567. // https://html.spec.whatwg.org/multipage/forms.html#category-listed
  20568. // https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled
  20569. // * option elements in a disabled optgroup
  20570. // https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled
  20571. // All such elements have a "form" property.
  20572. if ( elem.parentNode && elem.disabled === false ) {
  20573. // Option elements defer to a parent optgroup if present
  20574. if ( "label" in elem ) {
  20575. if ( "label" in elem.parentNode ) {
  20576. return elem.parentNode.disabled === disabled;
  20577. } else {
  20578. return elem.disabled === disabled;
  20579. }
  20580. }
  20581. // Support: IE 6 - 11
  20582. // Use the isDisabled shortcut property to check for disabled fieldset ancestors
  20583. return elem.isDisabled === disabled ||
  20584. // Where there is no isDisabled, check manually
  20585. /* jshint -W018 */
  20586. elem.isDisabled !== !disabled &&
  20587. disabledAncestor( elem ) === disabled;
  20588. }
  20589. return elem.disabled === disabled;
  20590. // Try to winnow out elements that can't be disabled before trusting the disabled property.
  20591. // Some victims get caught in our net (label, legend, menu, track), but it shouldn't
  20592. // even exist on them, let alone have a boolean value.
  20593. } else if ( "label" in elem ) {
  20594. return elem.disabled === disabled;
  20595. }
  20596. // Remaining elements are neither :enabled nor :disabled
  20597. return false;
  20598. };
  20599. }
  20600. /**
  20601. * Returns a function to use in pseudos for positionals
  20602. * @param {Function} fn
  20603. */
  20604. function createPositionalPseudo( fn ) {
  20605. return markFunction(function( argument ) {
  20606. argument = +argument;
  20607. return markFunction(function( seed, matches ) {
  20608. var j,
  20609. matchIndexes = fn( [], seed.length, argument ),
  20610. i = matchIndexes.length;
  20611. // Match elements found at the specified indexes
  20612. while ( i-- ) {
  20613. if ( seed[ (j = matchIndexes[i]) ] ) {
  20614. seed[j] = !(matches[j] = seed[j]);
  20615. }
  20616. }
  20617. });
  20618. });
  20619. }
  20620. /**
  20621. * Checks a node for validity as a Sizzle context
  20622. * @param {Element|Object=} context
  20623. * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
  20624. */
  20625. function testContext( context ) {
  20626. return context && typeof context.getElementsByTagName !== "undefined" && context;
  20627. }
  20628. // Expose support vars for convenience
  20629. support = Sizzle.support = {};
  20630. /**
  20631. * Detects XML nodes
  20632. * @param {Element|Object} elem An element or a document
  20633. * @returns {Boolean} True iff elem is a non-HTML XML node
  20634. */
  20635. isXML = Sizzle.isXML = function( elem ) {
  20636. // documentElement is verified for cases where it doesn't yet exist
  20637. // (such as loading iframes in IE - #4833)
  20638. var documentElement = elem && (elem.ownerDocument || elem).documentElement;
  20639. return documentElement ? documentElement.nodeName !== "HTML" : false;
  20640. };
  20641. /**
  20642. * Sets document-related variables once based on the current document
  20643. * @param {Element|Object} [doc] An element or document object to use to set the document
  20644. * @returns {Object} Returns the current document
  20645. */
  20646. setDocument = Sizzle.setDocument = function( node ) {
  20647. var hasCompare, subWindow,
  20648. doc = node ? node.ownerDocument || node : preferredDoc;
  20649. // Return early if doc is invalid or already selected
  20650. if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {
  20651. return document;
  20652. }
  20653. // Update global variables
  20654. document = doc;
  20655. docElem = document.documentElement;
  20656. documentIsHTML = !isXML( document );
  20657. // Support: IE 9-11, Edge
  20658. // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936)
  20659. if ( preferredDoc !== document &&
  20660. (subWindow = document.defaultView) && subWindow.top !== subWindow ) {
  20661. // Support: IE 11, Edge
  20662. if ( subWindow.addEventListener ) {
  20663. subWindow.addEventListener( "unload", unloadHandler, false );
  20664. // Support: IE 9 - 10 only
  20665. } else if ( subWindow.attachEvent ) {
  20666. subWindow.attachEvent( "onunload", unloadHandler );
  20667. }
  20668. }
  20669. /* Attributes
  20670. ---------------------------------------------------------------------- */
  20671. // Support: IE<8
  20672. // Verify that getAttribute really returns attributes and not properties
  20673. // (excepting IE8 booleans)
  20674. support.attributes = assert(function( el ) {
  20675. el.className = "i";
  20676. return !el.getAttribute("className");
  20677. });
  20678. /* getElement(s)By*
  20679. ---------------------------------------------------------------------- */
  20680. // Check if getElementsByTagName("*") returns only elements
  20681. support.getElementsByTagName = assert(function( el ) {
  20682. el.appendChild( document.createComment("") );
  20683. return !el.getElementsByTagName("*").length;
  20684. });
  20685. // Support: IE<9
  20686. support.getElementsByClassName = rnative.test( document.getElementsByClassName );
  20687. // Support: IE<10
  20688. // Check if getElementById returns elements by name
  20689. // The broken getElementById methods don't pick up programmatically-set names,
  20690. // so use a roundabout getElementsByName test
  20691. support.getById = assert(function( el ) {
  20692. docElem.appendChild( el ).id = expando;
  20693. return !document.getElementsByName || !document.getElementsByName( expando ).length;
  20694. });
  20695. // ID filter and find
  20696. if ( support.getById ) {
  20697. Expr.filter["ID"] = function( id ) {
  20698. var attrId = id.replace( runescape, funescape );
  20699. return function( elem ) {
  20700. return elem.getAttribute("id") === attrId;
  20701. };
  20702. };
  20703. Expr.find["ID"] = function( id, context ) {
  20704. if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
  20705. var elem = context.getElementById( id );
  20706. return elem ? [ elem ] : [];
  20707. }
  20708. };
  20709. } else {
  20710. Expr.filter["ID"] = function( id ) {
  20711. var attrId = id.replace( runescape, funescape );
  20712. return function( elem ) {
  20713. var node = typeof elem.getAttributeNode !== "undefined" &&
  20714. elem.getAttributeNode("id");
  20715. return node && node.value === attrId;
  20716. };
  20717. };
  20718. // Support: IE 6 - 7 only
  20719. // getElementById is not reliable as a find shortcut
  20720. Expr.find["ID"] = function( id, context ) {
  20721. if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
  20722. var node, i, elems,
  20723. elem = context.getElementById( id );
  20724. if ( elem ) {
  20725. // Verify the id attribute
  20726. node = elem.getAttributeNode("id");
  20727. if ( node && node.value === id ) {
  20728. return [ elem ];
  20729. }
  20730. // Fall back on getElementsByName
  20731. elems = context.getElementsByName( id );
  20732. i = 0;
  20733. while ( (elem = elems[i++]) ) {
  20734. node = elem.getAttributeNode("id");
  20735. if ( node && node.value === id ) {
  20736. return [ elem ];
  20737. }
  20738. }
  20739. }
  20740. return [];
  20741. }
  20742. };
  20743. }
  20744. // Tag
  20745. Expr.find["TAG"] = support.getElementsByTagName ?
  20746. function( tag, context ) {
  20747. if ( typeof context.getElementsByTagName !== "undefined" ) {
  20748. return context.getElementsByTagName( tag );
  20749. // DocumentFragment nodes don't have gEBTN
  20750. } else if ( support.qsa ) {
  20751. return context.querySelectorAll( tag );
  20752. }
  20753. } :
  20754. function( tag, context ) {
  20755. var elem,
  20756. tmp = [],
  20757. i = 0,
  20758. // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too
  20759. results = context.getElementsByTagName( tag );
  20760. // Filter out possible comments
  20761. if ( tag === "*" ) {
  20762. while ( (elem = results[i++]) ) {
  20763. if ( elem.nodeType === 1 ) {
  20764. tmp.push( elem );
  20765. }
  20766. }
  20767. return tmp;
  20768. }
  20769. return results;
  20770. };
  20771. // Class
  20772. Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) {
  20773. if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) {
  20774. return context.getElementsByClassName( className );
  20775. }
  20776. };
  20777. /* QSA/matchesSelector
  20778. ---------------------------------------------------------------------- */
  20779. // QSA and matchesSelector support
  20780. // matchesSelector(:active) reports false when true (IE9/Opera 11.5)
  20781. rbuggyMatches = [];
  20782. // qSa(:focus) reports false when true (Chrome 21)
  20783. // We allow this because of a bug in IE8/9 that throws an error
  20784. // whenever `document.activeElement` is accessed on an iframe
  20785. // So, we allow :focus to pass through QSA all the time to avoid the IE error
  20786. // See https://bugs.jquery.com/ticket/13378
  20787. rbuggyQSA = [];
  20788. if ( (support.qsa = rnative.test( document.querySelectorAll )) ) {
  20789. // Build QSA regex
  20790. // Regex strategy adopted from Diego Perini
  20791. assert(function( el ) {
  20792. // Select is set to empty string on purpose
  20793. // This is to test IE's treatment of not explicitly
  20794. // setting a boolean content attribute,
  20795. // since its presence should be enough
  20796. // https://bugs.jquery.com/ticket/12359
  20797. docElem.appendChild( el ).innerHTML = "<a id='" + expando + "'></a>" +
  20798. "<select id='" + expando + "-\r\\' msallowcapture=''>" +
  20799. "<option selected=''></option></select>";
  20800. // Support: IE8, Opera 11-12.16
  20801. // Nothing should be selected when empty strings follow ^= or $= or *=
  20802. // The test attribute must be unknown in Opera but "safe" for WinRT
  20803. // https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section
  20804. if ( el.querySelectorAll("[msallowcapture^='']").length ) {
  20805. rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" );
  20806. }
  20807. // Support: IE8
  20808. // Boolean attributes and "value" are not treated correctly
  20809. if ( !el.querySelectorAll("[selected]").length ) {
  20810. rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" );
  20811. }
  20812. // Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+
  20813. if ( !el.querySelectorAll( "[id~=" + expando + "-]" ).length ) {
  20814. rbuggyQSA.push("~=");
  20815. }
  20816. // Webkit/Opera - :checked should return selected option elements
  20817. // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
  20818. // IE8 throws error here and will not see later tests
  20819. if ( !el.querySelectorAll(":checked").length ) {
  20820. rbuggyQSA.push(":checked");
  20821. }
  20822. // Support: Safari 8+, iOS 8+
  20823. // https://bugs.webkit.org/show_bug.cgi?id=136851
  20824. // In-page `selector#id sibling-combinator selector` fails
  20825. if ( !el.querySelectorAll( "a#" + expando + "+*" ).length ) {
  20826. rbuggyQSA.push(".#.+[+~]");
  20827. }
  20828. });
  20829. assert(function( el ) {
  20830. el.innerHTML = "<a href='' disabled='disabled'></a>" +
  20831. "<select disabled='disabled'><option/></select>";
  20832. // Support: Windows 8 Native Apps
  20833. // The type and name attributes are restricted during .innerHTML assignment
  20834. var input = document.createElement("input");
  20835. input.setAttribute( "type", "hidden" );
  20836. el.appendChild( input ).setAttribute( "name", "D" );
  20837. // Support: IE8
  20838. // Enforce case-sensitivity of name attribute
  20839. if ( el.querySelectorAll("[name=d]").length ) {
  20840. rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" );
  20841. }
  20842. // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
  20843. // IE8 throws error here and will not see later tests
  20844. if ( el.querySelectorAll(":enabled").length !== 2 ) {
  20845. rbuggyQSA.push( ":enabled", ":disabled" );
  20846. }
  20847. // Support: IE9-11+
  20848. // IE's :disabled selector does not pick up the children of disabled fieldsets
  20849. docElem.appendChild( el ).disabled = true;
  20850. if ( el.querySelectorAll(":disabled").length !== 2 ) {
  20851. rbuggyQSA.push( ":enabled", ":disabled" );
  20852. }
  20853. // Opera 10-11 does not throw on post-comma invalid pseudos
  20854. el.querySelectorAll("*,:x");
  20855. rbuggyQSA.push(",.*:");
  20856. });
  20857. }
  20858. if ( (support.matchesSelector = rnative.test( (matches = docElem.matches ||
  20859. docElem.webkitMatchesSelector ||
  20860. docElem.mozMatchesSelector ||
  20861. docElem.oMatchesSelector ||
  20862. docElem.msMatchesSelector) )) ) {
  20863. assert(function( el ) {
  20864. // Check to see if it's possible to do matchesSelector
  20865. // on a disconnected node (IE 9)
  20866. support.disconnectedMatch = matches.call( el, "*" );
  20867. // This should fail with an exception
  20868. // Gecko does not error, returns false instead
  20869. matches.call( el, "[s!='']:x" );
  20870. rbuggyMatches.push( "!=", pseudos );
  20871. });
  20872. }
  20873. rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") );
  20874. rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") );
  20875. /* Contains
  20876. ---------------------------------------------------------------------- */
  20877. hasCompare = rnative.test( docElem.compareDocumentPosition );
  20878. // Element contains another
  20879. // Purposefully self-exclusive
  20880. // As in, an element does not contain itself
  20881. contains = hasCompare || rnative.test( docElem.contains ) ?
  20882. function( a, b ) {
  20883. var adown = a.nodeType === 9 ? a.documentElement : a,
  20884. bup = b && b.parentNode;
  20885. return a === bup || !!( bup && bup.nodeType === 1 && (
  20886. adown.contains ?
  20887. adown.contains( bup ) :
  20888. a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16
  20889. ));
  20890. } :
  20891. function( a, b ) {
  20892. if ( b ) {
  20893. while ( (b = b.parentNode) ) {
  20894. if ( b === a ) {
  20895. return true;
  20896. }
  20897. }
  20898. }
  20899. return false;
  20900. };
  20901. /* Sorting
  20902. ---------------------------------------------------------------------- */
  20903. // Document order sorting
  20904. sortOrder = hasCompare ?
  20905. function( a, b ) {
  20906. // Flag for duplicate removal
  20907. if ( a === b ) {
  20908. hasDuplicate = true;
  20909. return 0;
  20910. }
  20911. // Sort on method existence if only one input has compareDocumentPosition
  20912. var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
  20913. if ( compare ) {
  20914. return compare;
  20915. }
  20916. // Calculate position if both inputs belong to the same document
  20917. compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?
  20918. a.compareDocumentPosition( b ) :
  20919. // Otherwise we know they are disconnected
  20920. 1;
  20921. // Disconnected nodes
  20922. if ( compare & 1 ||
  20923. (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) {
  20924. // Choose the first element that is related to our preferred document
  20925. if ( a === document || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) {
  20926. return -1;
  20927. }
  20928. if ( b === document || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) {
  20929. return 1;
  20930. }
  20931. // Maintain original order
  20932. return sortInput ?
  20933. ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
  20934. 0;
  20935. }
  20936. return compare & 4 ? -1 : 1;
  20937. } :
  20938. function( a, b ) {
  20939. // Exit early if the nodes are identical
  20940. if ( a === b ) {
  20941. hasDuplicate = true;
  20942. return 0;
  20943. }
  20944. var cur,
  20945. i = 0,
  20946. aup = a.parentNode,
  20947. bup = b.parentNode,
  20948. ap = [ a ],
  20949. bp = [ b ];
  20950. // Parentless nodes are either documents or disconnected
  20951. if ( !aup || !bup ) {
  20952. return a === document ? -1 :
  20953. b === document ? 1 :
  20954. aup ? -1 :
  20955. bup ? 1 :
  20956. sortInput ?
  20957. ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
  20958. 0;
  20959. // If the nodes are siblings, we can do a quick check
  20960. } else if ( aup === bup ) {
  20961. return siblingCheck( a, b );
  20962. }
  20963. // Otherwise we need full lists of their ancestors for comparison
  20964. cur = a;
  20965. while ( (cur = cur.parentNode) ) {
  20966. ap.unshift( cur );
  20967. }
  20968. cur = b;
  20969. while ( (cur = cur.parentNode) ) {
  20970. bp.unshift( cur );
  20971. }
  20972. // Walk down the tree looking for a discrepancy
  20973. while ( ap[i] === bp[i] ) {
  20974. i++;
  20975. }
  20976. return i ?
  20977. // Do a sibling check if the nodes have a common ancestor
  20978. siblingCheck( ap[i], bp[i] ) :
  20979. // Otherwise nodes in our document sort first
  20980. ap[i] === preferredDoc ? -1 :
  20981. bp[i] === preferredDoc ? 1 :
  20982. 0;
  20983. };
  20984. return document;
  20985. };
  20986. Sizzle.matches = function( expr, elements ) {
  20987. return Sizzle( expr, null, null, elements );
  20988. };
  20989. Sizzle.matchesSelector = function( elem, expr ) {
  20990. // Set document vars if needed
  20991. if ( ( elem.ownerDocument || elem ) !== document ) {
  20992. setDocument( elem );
  20993. }
  20994. // Make sure that attribute selectors are quoted
  20995. expr = expr.replace( rattributeQuotes, "='$1']" );
  20996. if ( support.matchesSelector && documentIsHTML &&
  20997. !compilerCache[ expr + " " ] &&
  20998. ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
  20999. ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) {
  21000. try {
  21001. var ret = matches.call( elem, expr );
  21002. // IE 9's matchesSelector returns false on disconnected nodes
  21003. if ( ret || support.disconnectedMatch ||
  21004. // As well, disconnected nodes are said to be in a document
  21005. // fragment in IE 9
  21006. elem.document && elem.document.nodeType !== 11 ) {
  21007. return ret;
  21008. }
  21009. } catch (e) {}
  21010. }
  21011. return Sizzle( expr, document, null, [ elem ] ).length > 0;
  21012. };
  21013. Sizzle.contains = function( context, elem ) {
  21014. // Set document vars if needed
  21015. if ( ( context.ownerDocument || context ) !== document ) {
  21016. setDocument( context );
  21017. }
  21018. return contains( context, elem );
  21019. };
  21020. Sizzle.attr = function( elem, name ) {
  21021. // Set document vars if needed
  21022. if ( ( elem.ownerDocument || elem ) !== document ) {
  21023. setDocument( elem );
  21024. }
  21025. var fn = Expr.attrHandle[ name.toLowerCase() ],
  21026. // Don't get fooled by Object.prototype properties (jQuery #13807)
  21027. val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?
  21028. fn( elem, name, !documentIsHTML ) :
  21029. undefined;
  21030. return val !== undefined ?
  21031. val :
  21032. support.attributes || !documentIsHTML ?
  21033. elem.getAttribute( name ) :
  21034. (val = elem.getAttributeNode(name)) && val.specified ?
  21035. val.value :
  21036. null;
  21037. };
  21038. Sizzle.escape = function( sel ) {
  21039. return (sel + "").replace( rcssescape, fcssescape );
  21040. };
  21041. Sizzle.error = function( msg ) {
  21042. throw new Error( "Syntax error, unrecognized expression: " + msg );
  21043. };
  21044. /**
  21045. * Document sorting and removing duplicates
  21046. * @param {ArrayLike} results
  21047. */
  21048. Sizzle.uniqueSort = function( results ) {
  21049. var elem,
  21050. duplicates = [],
  21051. j = 0,
  21052. i = 0;
  21053. // Unless we *know* we can detect duplicates, assume their presence
  21054. hasDuplicate = !support.detectDuplicates;
  21055. sortInput = !support.sortStable && results.slice( 0 );
  21056. results.sort( sortOrder );
  21057. if ( hasDuplicate ) {
  21058. while ( (elem = results[i++]) ) {
  21059. if ( elem === results[ i ] ) {
  21060. j = duplicates.push( i );
  21061. }
  21062. }
  21063. while ( j-- ) {
  21064. results.splice( duplicates[ j ], 1 );
  21065. }
  21066. }
  21067. // Clear input after sorting to release objects
  21068. // See https://github.com/jquery/sizzle/pull/225
  21069. sortInput = null;
  21070. return results;
  21071. };
  21072. /**
  21073. * Utility function for retrieving the text value of an array of DOM nodes
  21074. * @param {Array|Element} elem
  21075. */
  21076. getText = Sizzle.getText = function( elem ) {
  21077. var node,
  21078. ret = "",
  21079. i = 0,
  21080. nodeType = elem.nodeType;
  21081. if ( !nodeType ) {
  21082. // If no nodeType, this is expected to be an array
  21083. while ( (node = elem[i++]) ) {
  21084. // Do not traverse comment nodes
  21085. ret += getText( node );
  21086. }
  21087. } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
  21088. // Use textContent for elements
  21089. // innerText usage removed for consistency of new lines (jQuery #11153)
  21090. if ( typeof elem.textContent === "string" ) {
  21091. return elem.textContent;
  21092. } else {
  21093. // Traverse its children
  21094. for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
  21095. ret += getText( elem );
  21096. }
  21097. }
  21098. } else if ( nodeType === 3 || nodeType === 4 ) {
  21099. return elem.nodeValue;
  21100. }
  21101. // Do not include comment or processing instruction nodes
  21102. return ret;
  21103. };
  21104. Expr = Sizzle.selectors = {
  21105. // Can be adjusted by the user
  21106. cacheLength: 50,
  21107. createPseudo: markFunction,
  21108. match: matchExpr,
  21109. attrHandle: {},
  21110. find: {},
  21111. relative: {
  21112. ">": { dir: "parentNode", first: true },
  21113. " ": { dir: "parentNode" },
  21114. "+": { dir: "previousSibling", first: true },
  21115. "~": { dir: "previousSibling" }
  21116. },
  21117. preFilter: {
  21118. "ATTR": function( match ) {
  21119. match[1] = match[1].replace( runescape, funescape );
  21120. // Move the given value to match[3] whether quoted or unquoted
  21121. match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape );
  21122. if ( match[2] === "~=" ) {
  21123. match[3] = " " + match[3] + " ";
  21124. }
  21125. return match.slice( 0, 4 );
  21126. },
  21127. "CHILD": function( match ) {
  21128. /* matches from matchExpr["CHILD"]
  21129. 1 type (only|nth|...)
  21130. 2 what (child|of-type)
  21131. 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
  21132. 4 xn-component of xn+y argument ([+-]?\d*n|)
  21133. 5 sign of xn-component
  21134. 6 x of xn-component
  21135. 7 sign of y-component
  21136. 8 y of y-component
  21137. */
  21138. match[1] = match[1].toLowerCase();
  21139. if ( match[1].slice( 0, 3 ) === "nth" ) {
  21140. // nth-* requires argument
  21141. if ( !match[3] ) {
  21142. Sizzle.error( match[0] );
  21143. }
  21144. // numeric x and y parameters for Expr.filter.CHILD
  21145. // remember that false/true cast respectively to 0/1
  21146. match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) );
  21147. match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" );
  21148. // other types prohibit arguments
  21149. } else if ( match[3] ) {
  21150. Sizzle.error( match[0] );
  21151. }
  21152. return match;
  21153. },
  21154. "PSEUDO": function( match ) {
  21155. var excess,
  21156. unquoted = !match[6] && match[2];
  21157. if ( matchExpr["CHILD"].test( match[0] ) ) {
  21158. return null;
  21159. }
  21160. // Accept quoted arguments as-is
  21161. if ( match[3] ) {
  21162. match[2] = match[4] || match[5] || "";
  21163. // Strip excess characters from unquoted arguments
  21164. } else if ( unquoted && rpseudo.test( unquoted ) &&
  21165. // Get excess from tokenize (recursively)
  21166. (excess = tokenize( unquoted, true )) &&
  21167. // advance to the next closing parenthesis
  21168. (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) {
  21169. // excess is a negative index
  21170. match[0] = match[0].slice( 0, excess );
  21171. match[2] = unquoted.slice( 0, excess );
  21172. }
  21173. // Return only captures needed by the pseudo filter method (type and argument)
  21174. return match.slice( 0, 3 );
  21175. }
  21176. },
  21177. filter: {
  21178. "TAG": function( nodeNameSelector ) {
  21179. var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();
  21180. return nodeNameSelector === "*" ?
  21181. function() { return true; } :
  21182. function( elem ) {
  21183. return elem.nodeName && elem.nodeName.toLowerCase() === nodeName;
  21184. };
  21185. },
  21186. "CLASS": function( className ) {
  21187. var pattern = classCache[ className + " " ];
  21188. return pattern ||
  21189. (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) &&
  21190. classCache( className, function( elem ) {
  21191. return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "" );
  21192. });
  21193. },
  21194. "ATTR": function( name, operator, check ) {
  21195. return function( elem ) {
  21196. var result = Sizzle.attr( elem, name );
  21197. if ( result == null ) {
  21198. return operator === "!=";
  21199. }
  21200. if ( !operator ) {
  21201. return true;
  21202. }
  21203. result += "";
  21204. return operator === "=" ? result === check :
  21205. operator === "!=" ? result !== check :
  21206. operator === "^=" ? check && result.indexOf( check ) === 0 :
  21207. operator === "*=" ? check && result.indexOf( check ) > -1 :
  21208. operator === "$=" ? check && result.slice( -check.length ) === check :
  21209. operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 :
  21210. operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" :
  21211. false;
  21212. };
  21213. },
  21214. "CHILD": function( type, what, argument, first, last ) {
  21215. var simple = type.slice( 0, 3 ) !== "nth",
  21216. forward = type.slice( -4 ) !== "last",
  21217. ofType = what === "of-type";
  21218. return first === 1 && last === 0 ?
  21219. // Shortcut for :nth-*(n)
  21220. function( elem ) {
  21221. return !!elem.parentNode;
  21222. } :
  21223. function( elem, context, xml ) {
  21224. var cache, uniqueCache, outerCache, node, nodeIndex, start,
  21225. dir = simple !== forward ? "nextSibling" : "previousSibling",
  21226. parent = elem.parentNode,
  21227. name = ofType && elem.nodeName.toLowerCase(),
  21228. useCache = !xml && !ofType,
  21229. diff = false;
  21230. if ( parent ) {
  21231. // :(first|last|only)-(child|of-type)
  21232. if ( simple ) {
  21233. while ( dir ) {
  21234. node = elem;
  21235. while ( (node = node[ dir ]) ) {
  21236. if ( ofType ?
  21237. node.nodeName.toLowerCase() === name :
  21238. node.nodeType === 1 ) {
  21239. return false;
  21240. }
  21241. }
  21242. // Reverse direction for :only-* (if we haven't yet done so)
  21243. start = dir = type === "only" && !start && "nextSibling";
  21244. }
  21245. return true;
  21246. }
  21247. start = [ forward ? parent.firstChild : parent.lastChild ];
  21248. // non-xml :nth-child(...) stores cache data on `parent`
  21249. if ( forward && useCache ) {
  21250. // Seek `elem` from a previously-cached index
  21251. // ...in a gzip-friendly way
  21252. node = parent;
  21253. outerCache = node[ expando ] || (node[ expando ] = {});
  21254. // Support: IE <9 only
  21255. // Defend against cloned attroperties (jQuery gh-1709)
  21256. uniqueCache = outerCache[ node.uniqueID ] ||
  21257. (outerCache[ node.uniqueID ] = {});
  21258. cache = uniqueCache[ type ] || [];
  21259. nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
  21260. diff = nodeIndex && cache[ 2 ];
  21261. node = nodeIndex && parent.childNodes[ nodeIndex ];
  21262. while ( (node = ++nodeIndex && node && node[ dir ] ||
  21263. // Fallback to seeking `elem` from the start
  21264. (diff = nodeIndex = 0) || start.pop()) ) {
  21265. // When found, cache indexes on `parent` and break
  21266. if ( node.nodeType === 1 && ++diff && node === elem ) {
  21267. uniqueCache[ type ] = [ dirruns, nodeIndex, diff ];
  21268. break;
  21269. }
  21270. }
  21271. } else {
  21272. // Use previously-cached element index if available
  21273. if ( useCache ) {
  21274. // ...in a gzip-friendly way
  21275. node = elem;
  21276. outerCache = node[ expando ] || (node[ expando ] = {});
  21277. // Support: IE <9 only
  21278. // Defend against cloned attroperties (jQuery gh-1709)
  21279. uniqueCache = outerCache[ node.uniqueID ] ||
  21280. (outerCache[ node.uniqueID ] = {});
  21281. cache = uniqueCache[ type ] || [];
  21282. nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
  21283. diff = nodeIndex;
  21284. }
  21285. // xml :nth-child(...)
  21286. // or :nth-last-child(...) or :nth(-last)?-of-type(...)
  21287. if ( diff === false ) {
  21288. // Use the same loop as above to seek `elem` from the start
  21289. while ( (node = ++nodeIndex && node && node[ dir ] ||
  21290. (diff = nodeIndex = 0) || start.pop()) ) {
  21291. if ( ( ofType ?
  21292. node.nodeName.toLowerCase() === name :
  21293. node.nodeType === 1 ) &&
  21294. ++diff ) {
  21295. // Cache the index of each encountered element
  21296. if ( useCache ) {
  21297. outerCache = node[ expando ] || (node[ expando ] = {});
  21298. // Support: IE <9 only
  21299. // Defend against cloned attroperties (jQuery gh-1709)
  21300. uniqueCache = outerCache[ node.uniqueID ] ||
  21301. (outerCache[ node.uniqueID ] = {});
  21302. uniqueCache[ type ] = [ dirruns, diff ];
  21303. }
  21304. if ( node === elem ) {
  21305. break;
  21306. }
  21307. }
  21308. }
  21309. }
  21310. }
  21311. // Incorporate the offset, then check against cycle size
  21312. diff -= last;
  21313. return diff === first || ( diff % first === 0 && diff / first >= 0 );
  21314. }
  21315. };
  21316. },
  21317. "PSEUDO": function( pseudo, argument ) {
  21318. // pseudo-class names are case-insensitive
  21319. // http://www.w3.org/TR/selectors/#pseudo-classes
  21320. // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters
  21321. // Remember that setFilters inherits from pseudos
  21322. var args,
  21323. fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||
  21324. Sizzle.error( "unsupported pseudo: " + pseudo );
  21325. // The user may use createPseudo to indicate that
  21326. // arguments are needed to create the filter function
  21327. // just as Sizzle does
  21328. if ( fn[ expando ] ) {
  21329. return fn( argument );
  21330. }
  21331. // But maintain support for old signatures
  21332. if ( fn.length > 1 ) {
  21333. args = [ pseudo, pseudo, "", argument ];
  21334. return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?
  21335. markFunction(function( seed, matches ) {
  21336. var idx,
  21337. matched = fn( seed, argument ),
  21338. i = matched.length;
  21339. while ( i-- ) {
  21340. idx = indexOf( seed, matched[i] );
  21341. seed[ idx ] = !( matches[ idx ] = matched[i] );
  21342. }
  21343. }) :
  21344. function( elem ) {
  21345. return fn( elem, 0, args );
  21346. };
  21347. }
  21348. return fn;
  21349. }
  21350. },
  21351. pseudos: {
  21352. // Potentially complex pseudos
  21353. "not": markFunction(function( selector ) {
  21354. // Trim the selector passed to compile
  21355. // to avoid treating leading and trailing
  21356. // spaces as combinators
  21357. var input = [],
  21358. results = [],
  21359. matcher = compile( selector.replace( rtrim, "$1" ) );
  21360. return matcher[ expando ] ?
  21361. markFunction(function( seed, matches, context, xml ) {
  21362. var elem,
  21363. unmatched = matcher( seed, null, xml, [] ),
  21364. i = seed.length;
  21365. // Match elements unmatched by `matcher`
  21366. while ( i-- ) {
  21367. if ( (elem = unmatched[i]) ) {
  21368. seed[i] = !(matches[i] = elem);
  21369. }
  21370. }
  21371. }) :
  21372. function( elem, context, xml ) {
  21373. input[0] = elem;
  21374. matcher( input, null, xml, results );
  21375. // Don't keep the element (issue #299)
  21376. input[0] = null;
  21377. return !results.pop();
  21378. };
  21379. }),
  21380. "has": markFunction(function( selector ) {
  21381. return function( elem ) {
  21382. return Sizzle( selector, elem ).length > 0;
  21383. };
  21384. }),
  21385. "contains": markFunction(function( text ) {
  21386. text = text.replace( runescape, funescape );
  21387. return function( elem ) {
  21388. return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;
  21389. };
  21390. }),
  21391. // "Whether an element is represented by a :lang() selector
  21392. // is based solely on the element's language value
  21393. // being equal to the identifier C,
  21394. // or beginning with the identifier C immediately followed by "-".
  21395. // The matching of C against the element's language value is performed case-insensitively.
  21396. // The identifier C does not have to be a valid language name."
  21397. // http://www.w3.org/TR/selectors/#lang-pseudo
  21398. "lang": markFunction( function( lang ) {
  21399. // lang value must be a valid identifier
  21400. if ( !ridentifier.test(lang || "") ) {
  21401. Sizzle.error( "unsupported lang: " + lang );
  21402. }
  21403. lang = lang.replace( runescape, funescape ).toLowerCase();
  21404. return function( elem ) {
  21405. var elemLang;
  21406. do {
  21407. if ( (elemLang = documentIsHTML ?
  21408. elem.lang :
  21409. elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) {
  21410. elemLang = elemLang.toLowerCase();
  21411. return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0;
  21412. }
  21413. } while ( (elem = elem.parentNode) && elem.nodeType === 1 );
  21414. return false;
  21415. };
  21416. }),
  21417. // Miscellaneous
  21418. "target": function( elem ) {
  21419. var hash = window.location && window.location.hash;
  21420. return hash && hash.slice( 1 ) === elem.id;
  21421. },
  21422. "root": function( elem ) {
  21423. return elem === docElem;
  21424. },
  21425. "focus": function( elem ) {
  21426. return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);
  21427. },
  21428. // Boolean properties
  21429. "enabled": createDisabledPseudo( false ),
  21430. "disabled": createDisabledPseudo( true ),
  21431. "checked": function( elem ) {
  21432. // In CSS3, :checked should return both checked and selected elements
  21433. // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
  21434. var nodeName = elem.nodeName.toLowerCase();
  21435. return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected);
  21436. },
  21437. "selected": function( elem ) {
  21438. // Accessing this property makes selected-by-default
  21439. // options in Safari work properly
  21440. if ( elem.parentNode ) {
  21441. elem.parentNode.selectedIndex;
  21442. }
  21443. return elem.selected === true;
  21444. },
  21445. // Contents
  21446. "empty": function( elem ) {
  21447. // http://www.w3.org/TR/selectors/#empty-pseudo
  21448. // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),
  21449. // but not by others (comment: 8; processing instruction: 7; etc.)
  21450. // nodeType < 6 works because attributes (2) do not appear as children
  21451. for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
  21452. if ( elem.nodeType < 6 ) {
  21453. return false;
  21454. }
  21455. }
  21456. return true;
  21457. },
  21458. "parent": function( elem ) {
  21459. return !Expr.pseudos["empty"]( elem );
  21460. },
  21461. // Element/input types
  21462. "header": function( elem ) {
  21463. return rheader.test( elem.nodeName );
  21464. },
  21465. "input": function( elem ) {
  21466. return rinputs.test( elem.nodeName );
  21467. },
  21468. "button": function( elem ) {
  21469. var name = elem.nodeName.toLowerCase();
  21470. return name === "input" && elem.type === "button" || name === "button";
  21471. },
  21472. "text": function( elem ) {
  21473. var attr;
  21474. return elem.nodeName.toLowerCase() === "input" &&
  21475. elem.type === "text" &&
  21476. // Support: IE<8
  21477. // New HTML5 attribute values (e.g., "search") appear with elem.type === "text"
  21478. ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" );
  21479. },
  21480. // Position-in-collection
  21481. "first": createPositionalPseudo(function() {
  21482. return [ 0 ];
  21483. }),
  21484. "last": createPositionalPseudo(function( matchIndexes, length ) {
  21485. return [ length - 1 ];
  21486. }),
  21487. "eq": createPositionalPseudo(function( matchIndexes, length, argument ) {
  21488. return [ argument < 0 ? argument + length : argument ];
  21489. }),
  21490. "even": createPositionalPseudo(function( matchIndexes, length ) {
  21491. var i = 0;
  21492. for ( ; i < length; i += 2 ) {
  21493. matchIndexes.push( i );
  21494. }
  21495. return matchIndexes;
  21496. }),
  21497. "odd": createPositionalPseudo(function( matchIndexes, length ) {
  21498. var i = 1;
  21499. for ( ; i < length; i += 2 ) {
  21500. matchIndexes.push( i );
  21501. }
  21502. return matchIndexes;
  21503. }),
  21504. "lt": createPositionalPseudo(function( matchIndexes, length, argument ) {
  21505. var i = argument < 0 ? argument + length : argument;
  21506. for ( ; --i >= 0; ) {
  21507. matchIndexes.push( i );
  21508. }
  21509. return matchIndexes;
  21510. }),
  21511. "gt": createPositionalPseudo(function( matchIndexes, length, argument ) {
  21512. var i = argument < 0 ? argument + length : argument;
  21513. for ( ; ++i < length; ) {
  21514. matchIndexes.push( i );
  21515. }
  21516. return matchIndexes;
  21517. })
  21518. }
  21519. };
  21520. Expr.pseudos["nth"] = Expr.pseudos["eq"];
  21521. // Add button/input type pseudos
  21522. for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {
  21523. Expr.pseudos[ i ] = createInputPseudo( i );
  21524. }
  21525. for ( i in { submit: true, reset: true } ) {
  21526. Expr.pseudos[ i ] = createButtonPseudo( i );
  21527. }
  21528. // Easy API for creating new setFilters
  21529. function setFilters() {}
  21530. setFilters.prototype = Expr.filters = Expr.pseudos;
  21531. Expr.setFilters = new setFilters();
  21532. tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
  21533. var matched, match, tokens, type,
  21534. soFar, groups, preFilters,
  21535. cached = tokenCache[ selector + " " ];
  21536. if ( cached ) {
  21537. return parseOnly ? 0 : cached.slice( 0 );
  21538. }
  21539. soFar = selector;
  21540. groups = [];
  21541. preFilters = Expr.preFilter;
  21542. while ( soFar ) {
  21543. // Comma and first run
  21544. if ( !matched || (match = rcomma.exec( soFar )) ) {
  21545. if ( match ) {
  21546. // Don't consume trailing commas as valid
  21547. soFar = soFar.slice( match[0].length ) || soFar;
  21548. }
  21549. groups.push( (tokens = []) );
  21550. }
  21551. matched = false;
  21552. // Combinators
  21553. if ( (match = rcombinators.exec( soFar )) ) {
  21554. matched = match.shift();
  21555. tokens.push({
  21556. value: matched,
  21557. // Cast descendant combinators to space
  21558. type: match[0].replace( rtrim, " " )
  21559. });
  21560. soFar = soFar.slice( matched.length );
  21561. }
  21562. // Filters
  21563. for ( type in Expr.filter ) {
  21564. if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||
  21565. (match = preFilters[ type ]( match ))) ) {
  21566. matched = match.shift();
  21567. tokens.push({
  21568. value: matched,
  21569. type: type,
  21570. matches: match
  21571. });
  21572. soFar = soFar.slice( matched.length );
  21573. }
  21574. }
  21575. if ( !matched ) {
  21576. break;
  21577. }
  21578. }
  21579. // Return the length of the invalid excess
  21580. // if we're just parsing
  21581. // Otherwise, throw an error or return tokens
  21582. return parseOnly ?
  21583. soFar.length :
  21584. soFar ?
  21585. Sizzle.error( selector ) :
  21586. // Cache the tokens
  21587. tokenCache( selector, groups ).slice( 0 );
  21588. };
  21589. function toSelector( tokens ) {
  21590. var i = 0,
  21591. len = tokens.length,
  21592. selector = "";
  21593. for ( ; i < len; i++ ) {
  21594. selector += tokens[i].value;
  21595. }
  21596. return selector;
  21597. }
  21598. function addCombinator( matcher, combinator, base ) {
  21599. var dir = combinator.dir,
  21600. skip = combinator.next,
  21601. key = skip || dir,
  21602. checkNonElements = base && key === "parentNode",
  21603. doneName = done++;
  21604. return combinator.first ?
  21605. // Check against closest ancestor/preceding element
  21606. function( elem, context, xml ) {
  21607. while ( (elem = elem[ dir ]) ) {
  21608. if ( elem.nodeType === 1 || checkNonElements ) {
  21609. return matcher( elem, context, xml );
  21610. }
  21611. }
  21612. return false;
  21613. } :
  21614. // Check against all ancestor/preceding elements
  21615. function( elem, context, xml ) {
  21616. var oldCache, uniqueCache, outerCache,
  21617. newCache = [ dirruns, doneName ];
  21618. // We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching
  21619. if ( xml ) {
  21620. while ( (elem = elem[ dir ]) ) {
  21621. if ( elem.nodeType === 1 || checkNonElements ) {
  21622. if ( matcher( elem, context, xml ) ) {
  21623. return true;
  21624. }
  21625. }
  21626. }
  21627. } else {
  21628. while ( (elem = elem[ dir ]) ) {
  21629. if ( elem.nodeType === 1 || checkNonElements ) {
  21630. outerCache = elem[ expando ] || (elem[ expando ] = {});
  21631. // Support: IE <9 only
  21632. // Defend against cloned attroperties (jQuery gh-1709)
  21633. uniqueCache = outerCache[ elem.uniqueID ] || (outerCache[ elem.uniqueID ] = {});
  21634. if ( skip && skip === elem.nodeName.toLowerCase() ) {
  21635. elem = elem[ dir ] || elem;
  21636. } else if ( (oldCache = uniqueCache[ key ]) &&
  21637. oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {
  21638. // Assign to newCache so results back-propagate to previous elements
  21639. return (newCache[ 2 ] = oldCache[ 2 ]);
  21640. } else {
  21641. // Reuse newcache so results back-propagate to previous elements
  21642. uniqueCache[ key ] = newCache;
  21643. // A match means we're done; a fail means we have to keep checking
  21644. if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) {
  21645. return true;
  21646. }
  21647. }
  21648. }
  21649. }
  21650. }
  21651. return false;
  21652. };
  21653. }
  21654. function elementMatcher( matchers ) {
  21655. return matchers.length > 1 ?
  21656. function( elem, context, xml ) {
  21657. var i = matchers.length;
  21658. while ( i-- ) {
  21659. if ( !matchers[i]( elem, context, xml ) ) {
  21660. return false;
  21661. }
  21662. }
  21663. return true;
  21664. } :
  21665. matchers[0];
  21666. }
  21667. function multipleContexts( selector, contexts, results ) {
  21668. var i = 0,
  21669. len = contexts.length;
  21670. for ( ; i < len; i++ ) {
  21671. Sizzle( selector, contexts[i], results );
  21672. }
  21673. return results;
  21674. }
  21675. function condense( unmatched, map, filter, context, xml ) {
  21676. var elem,
  21677. newUnmatched = [],
  21678. i = 0,
  21679. len = unmatched.length,
  21680. mapped = map != null;
  21681. for ( ; i < len; i++ ) {
  21682. if ( (elem = unmatched[i]) ) {
  21683. if ( !filter || filter( elem, context, xml ) ) {
  21684. newUnmatched.push( elem );
  21685. if ( mapped ) {
  21686. map.push( i );
  21687. }
  21688. }
  21689. }
  21690. }
  21691. return newUnmatched;
  21692. }
  21693. function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
  21694. if ( postFilter && !postFilter[ expando ] ) {
  21695. postFilter = setMatcher( postFilter );
  21696. }
  21697. if ( postFinder && !postFinder[ expando ] ) {
  21698. postFinder = setMatcher( postFinder, postSelector );
  21699. }
  21700. return markFunction(function( seed, results, context, xml ) {
  21701. var temp, i, elem,
  21702. preMap = [],
  21703. postMap = [],
  21704. preexisting = results.length,
  21705. // Get initial elements from seed or context
  21706. elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ),
  21707. // Prefilter to get matcher input, preserving a map for seed-results synchronization
  21708. matcherIn = preFilter && ( seed || !selector ) ?
  21709. condense( elems, preMap, preFilter, context, xml ) :
  21710. elems,
  21711. matcherOut = matcher ?
  21712. // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,
  21713. postFinder || ( seed ? preFilter : preexisting || postFilter ) ?
  21714. // ...intermediate processing is necessary
  21715. [] :
  21716. // ...otherwise use results directly
  21717. results :
  21718. matcherIn;
  21719. // Find primary matches
  21720. if ( matcher ) {
  21721. matcher( matcherIn, matcherOut, context, xml );
  21722. }
  21723. // Apply postFilter
  21724. if ( postFilter ) {
  21725. temp = condense( matcherOut, postMap );
  21726. postFilter( temp, [], context, xml );
  21727. // Un-match failing elements by moving them back to matcherIn
  21728. i = temp.length;
  21729. while ( i-- ) {
  21730. if ( (elem = temp[i]) ) {
  21731. matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem);
  21732. }
  21733. }
  21734. }
  21735. if ( seed ) {
  21736. if ( postFinder || preFilter ) {
  21737. if ( postFinder ) {
  21738. // Get the final matcherOut by condensing this intermediate into postFinder contexts
  21739. temp = [];
  21740. i = matcherOut.length;
  21741. while ( i-- ) {
  21742. if ( (elem = matcherOut[i]) ) {
  21743. // Restore matcherIn since elem is not yet a final match
  21744. temp.push( (matcherIn[i] = elem) );
  21745. }
  21746. }
  21747. postFinder( null, (matcherOut = []), temp, xml );
  21748. }
  21749. // Move matched elements from seed to results to keep them synchronized
  21750. i = matcherOut.length;
  21751. while ( i-- ) {
  21752. if ( (elem = matcherOut[i]) &&
  21753. (temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) {
  21754. seed[temp] = !(results[temp] = elem);
  21755. }
  21756. }
  21757. }
  21758. // Add elements to results, through postFinder if defined
  21759. } else {
  21760. matcherOut = condense(
  21761. matcherOut === results ?
  21762. matcherOut.splice( preexisting, matcherOut.length ) :
  21763. matcherOut
  21764. );
  21765. if ( postFinder ) {
  21766. postFinder( null, results, matcherOut, xml );
  21767. } else {
  21768. push.apply( results, matcherOut );
  21769. }
  21770. }
  21771. });
  21772. }
  21773. function matcherFromTokens( tokens ) {
  21774. var checkContext, matcher, j,
  21775. len = tokens.length,
  21776. leadingRelative = Expr.relative[ tokens[0].type ],
  21777. implicitRelative = leadingRelative || Expr.relative[" "],
  21778. i = leadingRelative ? 1 : 0,
  21779. // The foundational matcher ensures that elements are reachable from top-level context(s)
  21780. matchContext = addCombinator( function( elem ) {
  21781. return elem === checkContext;
  21782. }, implicitRelative, true ),
  21783. matchAnyContext = addCombinator( function( elem ) {
  21784. return indexOf( checkContext, elem ) > -1;
  21785. }, implicitRelative, true ),
  21786. matchers = [ function( elem, context, xml ) {
  21787. var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || (
  21788. (checkContext = context).nodeType ?
  21789. matchContext( elem, context, xml ) :
  21790. matchAnyContext( elem, context, xml ) );
  21791. // Avoid hanging onto element (issue #299)
  21792. checkContext = null;
  21793. return ret;
  21794. } ];
  21795. for ( ; i < len; i++ ) {
  21796. if ( (matcher = Expr.relative[ tokens[i].type ]) ) {
  21797. matchers = [ addCombinator(elementMatcher( matchers ), matcher) ];
  21798. } else {
  21799. matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches );
  21800. // Return special upon seeing a positional matcher
  21801. if ( matcher[ expando ] ) {
  21802. // Find the next relative operator (if any) for proper handling
  21803. j = ++i;
  21804. for ( ; j < len; j++ ) {
  21805. if ( Expr.relative[ tokens[j].type ] ) {
  21806. break;
  21807. }
  21808. }
  21809. return setMatcher(
  21810. i > 1 && elementMatcher( matchers ),
  21811. i > 1 && toSelector(
  21812. // If the preceding token was a descendant combinator, insert an implicit any-element `*`
  21813. tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" })
  21814. ).replace( rtrim, "$1" ),
  21815. matcher,
  21816. i < j && matcherFromTokens( tokens.slice( i, j ) ),
  21817. j < len && matcherFromTokens( (tokens = tokens.slice( j )) ),
  21818. j < len && toSelector( tokens )
  21819. );
  21820. }
  21821. matchers.push( matcher );
  21822. }
  21823. }
  21824. return elementMatcher( matchers );
  21825. }
  21826. function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
  21827. var bySet = setMatchers.length > 0,
  21828. byElement = elementMatchers.length > 0,
  21829. superMatcher = function( seed, context, xml, results, outermost ) {
  21830. var elem, j, matcher,
  21831. matchedCount = 0,
  21832. i = "0",
  21833. unmatched = seed && [],
  21834. setMatched = [],
  21835. contextBackup = outermostContext,
  21836. // We must always have either seed elements or outermost context
  21837. elems = seed || byElement && Expr.find["TAG"]( "*", outermost ),
  21838. // Use integer dirruns iff this is the outermost matcher
  21839. dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1),
  21840. len = elems.length;
  21841. if ( outermost ) {
  21842. outermostContext = context === document || context || outermost;
  21843. }
  21844. // Add elements passing elementMatchers directly to results
  21845. // Support: IE<9, Safari
  21846. // Tolerate NodeList properties (IE: "length"; Safari: <number>) matching elements by id
  21847. for ( ; i !== len && (elem = elems[i]) != null; i++ ) {
  21848. if ( byElement && elem ) {
  21849. j = 0;
  21850. if ( !context && elem.ownerDocument !== document ) {
  21851. setDocument( elem );
  21852. xml = !documentIsHTML;
  21853. }
  21854. while ( (matcher = elementMatchers[j++]) ) {
  21855. if ( matcher( elem, context || document, xml) ) {
  21856. results.push( elem );
  21857. break;
  21858. }
  21859. }
  21860. if ( outermost ) {
  21861. dirruns = dirrunsUnique;
  21862. }
  21863. }
  21864. // Track unmatched elements for set filters
  21865. if ( bySet ) {
  21866. // They will have gone through all possible matchers
  21867. if ( (elem = !matcher && elem) ) {
  21868. matchedCount--;
  21869. }
  21870. // Lengthen the array for every element, matched or not
  21871. if ( seed ) {
  21872. unmatched.push( elem );
  21873. }
  21874. }
  21875. }
  21876. // `i` is now the count of elements visited above, and adding it to `matchedCount`
  21877. // makes the latter nonnegative.
  21878. matchedCount += i;
  21879. // Apply set filters to unmatched elements
  21880. // NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount`
  21881. // equals `i`), unless we didn't visit _any_ elements in the above loop because we have
  21882. // no element matchers and no seed.
  21883. // Incrementing an initially-string "0" `i` allows `i` to remain a string only in that
  21884. // case, which will result in a "00" `matchedCount` that differs from `i` but is also
  21885. // numerically zero.
  21886. if ( bySet && i !== matchedCount ) {
  21887. j = 0;
  21888. while ( (matcher = setMatchers[j++]) ) {
  21889. matcher( unmatched, setMatched, context, xml );
  21890. }
  21891. if ( seed ) {
  21892. // Reintegrate element matches to eliminate the need for sorting
  21893. if ( matchedCount > 0 ) {
  21894. while ( i-- ) {
  21895. if ( !(unmatched[i] || setMatched[i]) ) {
  21896. setMatched[i] = pop.call( results );
  21897. }
  21898. }
  21899. }
  21900. // Discard index placeholder values to get only actual matches
  21901. setMatched = condense( setMatched );
  21902. }
  21903. // Add matches to results
  21904. push.apply( results, setMatched );
  21905. // Seedless set matches succeeding multiple successful matchers stipulate sorting
  21906. if ( outermost && !seed && setMatched.length > 0 &&
  21907. ( matchedCount + setMatchers.length ) > 1 ) {
  21908. Sizzle.uniqueSort( results );
  21909. }
  21910. }
  21911. // Override manipulation of globals by nested matchers
  21912. if ( outermost ) {
  21913. dirruns = dirrunsUnique;
  21914. outermostContext = contextBackup;
  21915. }
  21916. return unmatched;
  21917. };
  21918. return bySet ?
  21919. markFunction( superMatcher ) :
  21920. superMatcher;
  21921. }
  21922. compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) {
  21923. var i,
  21924. setMatchers = [],
  21925. elementMatchers = [],
  21926. cached = compilerCache[ selector + " " ];
  21927. if ( !cached ) {
  21928. // Generate a function of recursive functions that can be used to check each element
  21929. if ( !match ) {
  21930. match = tokenize( selector );
  21931. }
  21932. i = match.length;
  21933. while ( i-- ) {
  21934. cached = matcherFromTokens( match[i] );
  21935. if ( cached[ expando ] ) {
  21936. setMatchers.push( cached );
  21937. } else {
  21938. elementMatchers.push( cached );
  21939. }
  21940. }
  21941. // Cache the compiled function
  21942. cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );
  21943. // Save selector and tokenization
  21944. cached.selector = selector;
  21945. }
  21946. return cached;
  21947. };
  21948. /**
  21949. * A low-level selection function that works with Sizzle's compiled
  21950. * selector functions
  21951. * @param {String|Function} selector A selector or a pre-compiled
  21952. * selector function built with Sizzle.compile
  21953. * @param {Element} context
  21954. * @param {Array} [results]
  21955. * @param {Array} [seed] A set of elements to match against
  21956. */
  21957. select = Sizzle.select = function( selector, context, results, seed ) {
  21958. var i, tokens, token, type, find,
  21959. compiled = typeof selector === "function" && selector,
  21960. match = !seed && tokenize( (selector = compiled.selector || selector) );
  21961. results = results || [];
  21962. // Try to minimize operations if there is only one selector in the list and no seed
  21963. // (the latter of which guarantees us context)
  21964. if ( match.length === 1 ) {
  21965. // Reduce context if the leading compound selector is an ID
  21966. tokens = match[0] = match[0].slice( 0 );
  21967. if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
  21968. context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[1].type ] ) {
  21969. context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
  21970. if ( !context ) {
  21971. return results;
  21972. // Precompiled matchers will still verify ancestry, so step up a level
  21973. } else if ( compiled ) {
  21974. context = context.parentNode;
  21975. }
  21976. selector = selector.slice( tokens.shift().value.length );
  21977. }
  21978. // Fetch a seed set for right-to-left matching
  21979. i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length;
  21980. while ( i-- ) {
  21981. token = tokens[i];
  21982. // Abort if we hit a combinator
  21983. if ( Expr.relative[ (type = token.type) ] ) {
  21984. break;
  21985. }
  21986. if ( (find = Expr.find[ type ]) ) {
  21987. // Search, expanding context for leading sibling combinators
  21988. if ( (seed = find(
  21989. token.matches[0].replace( runescape, funescape ),
  21990. rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context
  21991. )) ) {
  21992. // If seed is empty or no tokens remain, we can return early
  21993. tokens.splice( i, 1 );
  21994. selector = seed.length && toSelector( tokens );
  21995. if ( !selector ) {
  21996. push.apply( results, seed );
  21997. return results;
  21998. }
  21999. break;
  22000. }
  22001. }
  22002. }
  22003. }
  22004. // Compile and execute a filtering function if one is not provided
  22005. // Provide `match` to avoid retokenization if we modified the selector above
  22006. ( compiled || compile( selector, match ) )(
  22007. seed,
  22008. context,
  22009. !documentIsHTML,
  22010. results,
  22011. !context || rsibling.test( selector ) && testContext( context.parentNode ) || context
  22012. );
  22013. return results;
  22014. };
  22015. // One-time assignments
  22016. // Sort stability
  22017. support.sortStable = expando.split("").sort( sortOrder ).join("") === expando;
  22018. // Support: Chrome 14-35+
  22019. // Always assume duplicates if they aren't passed to the comparison function
  22020. support.detectDuplicates = !!hasDuplicate;
  22021. // Initialize against the default document
  22022. setDocument();
  22023. // Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)
  22024. // Detached nodes confoundingly follow *each other*
  22025. support.sortDetached = assert(function( el ) {
  22026. // Should return 1, but returns 4 (following)
  22027. return el.compareDocumentPosition( document.createElement("fieldset") ) & 1;
  22028. });
  22029. // Support: IE<8
  22030. // Prevent attribute/property "interpolation"
  22031. // https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
  22032. if ( !assert(function( el ) {
  22033. el.innerHTML = "<a href='#'></a>";
  22034. return el.firstChild.getAttribute("href") === "#" ;
  22035. }) ) {
  22036. addHandle( "type|href|height|width", function( elem, name, isXML ) {
  22037. if ( !isXML ) {
  22038. return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 );
  22039. }
  22040. });
  22041. }
  22042. // Support: IE<9
  22043. // Use defaultValue in place of getAttribute("value")
  22044. if ( !support.attributes || !assert(function( el ) {
  22045. el.innerHTML = "<input/>";
  22046. el.firstChild.setAttribute( "value", "" );
  22047. return el.firstChild.getAttribute( "value" ) === "";
  22048. }) ) {
  22049. addHandle( "value", function( elem, name, isXML ) {
  22050. if ( !isXML && elem.nodeName.toLowerCase() === "input" ) {
  22051. return elem.defaultValue;
  22052. }
  22053. });
  22054. }
  22055. // Support: IE<9
  22056. // Use getAttributeNode to fetch booleans when getAttribute lies
  22057. if ( !assert(function( el ) {
  22058. return el.getAttribute("disabled") == null;
  22059. }) ) {
  22060. addHandle( booleans, function( elem, name, isXML ) {
  22061. var val;
  22062. if ( !isXML ) {
  22063. return elem[ name ] === true ? name.toLowerCase() :
  22064. (val = elem.getAttributeNode( name )) && val.specified ?
  22065. val.value :
  22066. null;
  22067. }
  22068. });
  22069. }
  22070. // EXPOSE
  22071. var _sizzle = window.Sizzle;
  22072. Sizzle.noConflict = function() {
  22073. if ( window.Sizzle === Sizzle ) {
  22074. window.Sizzle = _sizzle;
  22075. }
  22076. return Sizzle;
  22077. };
  22078. if ( true ) {
  22079. !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() { return Sizzle; }).call(exports, __webpack_require__, exports, module),
  22080. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  22081. // Sizzle requires that there be a global window in Common-JS like environments
  22082. } else {}
  22083. // EXPOSE
  22084. })( window );
  22085. /***/ }),
  22086. /***/ "./node_modules/snabbdom/dist/snabbdom-attributes.js":
  22087. /*!***********************************************************!*\
  22088. !*** ./node_modules/snabbdom/dist/snabbdom-attributes.js ***!
  22089. \***********************************************************/
  22090. /*! no static exports found */
  22091. /***/ (function(module, exports, __webpack_require__) {
  22092. var require;var require;(function(f){if(true){module.exports=f()}else { var g; }})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return require(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
  22093. "use strict";
  22094. Object.defineProperty(exports, "__esModule", { value: true });
  22095. var booleanAttrs = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "compact", "controls", "declare",
  22096. "default", "defaultchecked", "defaultmuted", "defaultselected", "defer", "disabled", "draggable",
  22097. "enabled", "formnovalidate", "hidden", "indeterminate", "inert", "ismap", "itemscope", "loop", "multiple",
  22098. "muted", "nohref", "noresize", "noshade", "novalidate", "nowrap", "open", "pauseonexit", "readonly",
  22099. "required", "reversed", "scoped", "seamless", "selected", "sortable", "spellcheck", "translate",
  22100. "truespeed", "typemustmatch", "visible"];
  22101. var xlinkNS = 'http://www.w3.org/1999/xlink';
  22102. var xmlNS = 'http://www.w3.org/XML/1998/namespace';
  22103. var colonChar = 58;
  22104. var xChar = 120;
  22105. var booleanAttrsDict = Object.create(null);
  22106. for (var i = 0, len = booleanAttrs.length; i < len; i++) {
  22107. booleanAttrsDict[booleanAttrs[i]] = true;
  22108. }
  22109. function updateAttrs(oldVnode, vnode) {
  22110. var key, elm = vnode.elm, oldAttrs = oldVnode.data.attrs, attrs = vnode.data.attrs;
  22111. if (!oldAttrs && !attrs)
  22112. return;
  22113. if (oldAttrs === attrs)
  22114. return;
  22115. oldAttrs = oldAttrs || {};
  22116. attrs = attrs || {};
  22117. // update modified attributes, add new attributes
  22118. for (key in attrs) {
  22119. var cur = attrs[key];
  22120. var old = oldAttrs[key];
  22121. if (old !== cur) {
  22122. if (booleanAttrsDict[key]) {
  22123. if (cur) {
  22124. elm.setAttribute(key, "");
  22125. }
  22126. else {
  22127. elm.removeAttribute(key);
  22128. }
  22129. }
  22130. else {
  22131. if (key.charCodeAt(0) !== xChar) {
  22132. elm.setAttribute(key, cur);
  22133. }
  22134. else if (key.charCodeAt(3) === colonChar) {
  22135. // Assume xml namespace
  22136. elm.setAttributeNS(xmlNS, key, cur);
  22137. }
  22138. else if (key.charCodeAt(5) === colonChar) {
  22139. // Assume xlink namespace
  22140. elm.setAttributeNS(xlinkNS, key, cur);
  22141. }
  22142. else {
  22143. elm.setAttribute(key, cur);
  22144. }
  22145. }
  22146. }
  22147. }
  22148. // remove removed attributes
  22149. // use `in` operator since the previous `for` iteration uses it (.i.e. add even attributes with undefined value)
  22150. // the other option is to remove all attributes with value == undefined
  22151. for (key in oldAttrs) {
  22152. if (!(key in attrs)) {
  22153. elm.removeAttribute(key);
  22154. }
  22155. }
  22156. }
  22157. exports.attributesModule = { create: updateAttrs, update: updateAttrs };
  22158. exports.default = exports.attributesModule;
  22159. },{}]},{},[1])(1)
  22160. });
  22161. //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy8ucmVnaXN0cnkubnBtanMub3JnL2Jyb3dzZXItcGFjay82LjAuMi9ub2RlX21vZHVsZXMvYnJvd3Nlci1wYWNrL19wcmVsdWRlLmpzIiwibW9kdWxlcy9hdHRyaWJ1dGVzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FDQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJmaWxlIjoiZ2VuZXJhdGVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXNDb250ZW50IjpbIihmdW5jdGlvbiBlKHQsbixyKXtmdW5jdGlvbiBzKG8sdSl7aWYoIW5bb10pe2lmKCF0W29dKXt2YXIgYT10eXBlb2YgcmVxdWlyZT09XCJmdW5jdGlvblwiJiZyZXF1aXJlO2lmKCF1JiZhKXJldHVybiBhKG8sITApO2lmKGkpcmV0dXJuIGkobywhMCk7dmFyIGY9bmV3IEVycm9yKFwiQ2Fubm90IGZpbmQgbW9kdWxlICdcIitvK1wiJ1wiKTt0aHJvdyBmLmNvZGU9XCJNT0RVTEVfTk9UX0ZPVU5EXCIsZn12YXIgbD1uW29dPXtleHBvcnRzOnt9fTt0W29dWzBdLmNhbGwobC5leHBvcnRzLGZ1bmN0aW9uKGUpe3ZhciBuPXRbb11bMV1bZV07cmV0dXJuIHMobj9uOmUpfSxsLGwuZXhwb3J0cyxlLHQsbixyKX1yZXR1cm4gbltvXS5leHBvcnRzfXZhciBpPXR5cGVvZiByZXF1aXJlPT1cImZ1bmN0aW9uXCImJnJlcXVpcmU7Zm9yKHZhciBvPTA7bzxyLmxlbmd0aDtvKyspcyhyW29dKTtyZXR1cm4gc30pIiwiXCJ1c2Ugc3RyaWN0XCI7XG5PYmplY3QuZGVmaW5lUHJvcGVydHkoZXhwb3J0cywgXCJfX2VzTW9kdWxlXCIsIHsgdmFsdWU6IHRydWUgfSk7XG52YXIgYm9vbGVhbkF0dHJzID0gW1wiYWxsb3dmdWxsc2NyZWVuXCIsIFwiYXN5bmNcIiwgXCJhdXRvZm9jdXNcIiwgXCJhdXRvcGxheVwiLCBcImNoZWNrZWRcIiwgXCJjb21wYWN0XCIsIFwiY29udHJvbHNcIiwgXCJkZWNsYXJlXCIsXG4gICAgXCJkZWZhdWx0XCIsIFwiZGVmYXVsdGNoZWNrZWRcIiwgXCJkZWZhdWx0bXV0ZWRcIiwgXCJkZWZhdWx0c2VsZWN0ZWRcIiwgXCJkZWZlclwiLCBcImRpc2FibGVkXCIsIFwiZHJhZ2dhYmxlXCIsXG4gICAgXCJlbmFibGVkXCIsIFwiZm9ybW5vdmFsaWRhdGVcIiwgXCJoaWRkZW5cIiwgXCJpbmRldGVybWluYXRlXCIsIFwiaW5lcnRcIiwgXCJpc21hcFwiLCBcIml0ZW1zY29wZVwiLCBcImxvb3BcIiwgXCJtdWx0aXBsZVwiLFxuICAgIFwibXV0ZWRcIiwgXCJub2hyZWZcIiwgXCJub3Jlc2l6ZVwiLCBcIm5vc2hhZGVcIiwgXCJub3ZhbGlkYXRlXCIsIFwibm93cmFwXCIsIFwib3BlblwiLCBcInBhdXNlb25leGl0XCIsIFwicmVhZG9ubHlcIixcbiAgICBcInJlcXVpcmVkXCIsIFwicmV2ZXJzZWRcIiwgXCJzY29wZWRcIiwgXCJzZWFtbGVzc1wiLCBcInNlbGVjdGVkXCIsIFwic29ydGFibGVcIiwgXCJzcGVsbGNoZWNrXCIsIFwidHJhbnNsYXRlXCIsXG4gICAgXCJ0cnVlc3BlZWRcIiwgXCJ0eXBlbXVzdG1hdGNoXCIsIFwidmlzaWJsZVwiXTtcbnZhciB4bGlua05TID0gJ2h0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsnO1xudmFyIHhtbE5TID0gJ2h0dHA6Ly93d3cudzMub3JnL1hNTC8xOTk4L25hbWVzcGFjZSc7XG52YXIgY29sb25DaGFyID0gNTg7XG52YXIgeENoYXIgPSAxMjA7XG52YXIgYm9vbGVhbkF0dHJzRGljdCA9IE9iamVjdC5jcmVhdGUobnVsbCk7XG5mb3IgKHZhciBpID0gMCwgbGVuID0gYm9vbGVhbkF0dHJzLmxlbmd0aDsgaSA8IGxlbjsgaSsrKSB7XG4gICAgYm9vbGVhbkF0dHJzRGljdFtib29sZWFuQXR0cnNbaV1dID0gdHJ1ZTtcbn1cbmZ1bmN0aW9uIHVwZGF0ZUF0dHJzKG9sZFZub2RlLCB2bm9kZSkge1xuICAgIHZhciBrZXksIGVsbSA9IHZub2RlLmVsbSwgb2xkQXR0cnMgPSBvbGRWbm9kZS5kYXRhLmF0dHJzLCBhdHRycyA9IHZub2RlLmRhdGEuYXR0cnM7XG4gICAgaWYgKCFvbGRBdHRycyAmJiAhYXR0cnMpXG4gICAgICAgIHJldHVybjtcbiAgICBpZiAob2xkQXR0cnMgPT09IGF0dHJzKVxuICAgICAgICByZXR1cm47XG4gICAgb2xkQXR0cnMgPSBvbGRBdHRycyB8fCB7fTtcbiAgICBhdHRycyA9IGF0dHJzIHx8IHt9O1xuICAgIC8vIHVwZGF0ZSBtb2RpZmllZCBhdHRyaWJ1dGVzLCBhZGQgbmV3IGF0dHJpYnV0ZXNcbiAgICBmb3IgKGtleSBpbiBhdHRycykge1xuICAgICAgICB2YXIgY3VyID0gYXR0cnNba2V5XTtcbiAgICAgICAgdmFyIG9sZCA9IG9sZEF0dHJzW2tleV07XG4gICAgICAgIGlmIChvbGQgIT09IGN1cikge1xuICAgICAgICAgICAgaWYgKGJvb2xlYW5BdHRyc0RpY3Rba2V5XSkge1xuICAgICAgICAgICAgICAgIGlmIChjdXIpIHtcbiAgICAgICAgICAgICAgICAgICAgZWxtLnNldEF0dHJpYnV0ZShrZXksIFwiXCIpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgZWxtLnJlbW92ZUF0dHJpYnV0ZShrZXkpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgIGlmIChrZXkuY2hhckNvZGVBdCgwKSAhPT0geENoYXIpIHtcbiAgICAgICAgICAgICAgICAgICAgZWxtLnNldEF0dHJpYnV0ZShrZXksIGN1cik7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGVsc2UgaWYgKGtleS5jaGFyQ29kZUF0KDMpID09PSBjb2xvbkNoYXIpIHtcbiAgICAgICAgICAgICAgICAgICAgLy8gQXNzdW1lIHhtbCBuYW1lc3BhY2VcbiAgICAgICAgICAgICAgICAgICAgZWxtLnNldEF0dHJpYnV0ZU5TKHhtbE5TLCBrZXksIGN1cik7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGVsc2UgaWYgKGtleS5jaGFyQ29kZUF0KDUpID09PSBjb2xvbkNoYXIpIHtcbiAgICAgICAgICAgICAgICAgICAgLy8gQXNzdW1lIHhsaW5rIG5hbWVzcGFjZVxuICAgICAgICAgICAgICAgICAgICBlbG0uc2V0QXR0cmlidXRlTlMoeGxpbmtOUywga2V5LCBjdXIpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgZWxtLnNldEF0dHJpYnV0ZShrZXksIGN1cik7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuICAgIC8vIHJlbW92ZSByZW1vdmVkIGF0dHJpYnV0ZXNcbiAgICAvLyB1c2UgYGluYCBvcGVyYXRvciBzaW5jZSB0aGUgcHJldmlvdXMgYGZvcmAgaXRlcmF0aW9uIHVzZXMgaXQgKC5pLmUuIGFkZCBldmVuIGF0dHJpYnV0ZXMgd2l0aCB1bmRlZmluZWQgdmFsdWUpXG4gICAgLy8gdGhlIG90aGVyIG9wdGlvbiBpcyB0byByZW1vdmUgYWxsIGF0dHJpYnV0ZXMgd2l0aCB2YWx1ZSA9PSB1bmRlZmluZWRcbiAgICBmb3IgKGtleSBpbiBvbGRBdHRycykge1xuICAgICAgICBpZiAoIShrZXkgaW4gYXR0cnMpKSB7XG4gICAgICAgICAgICBlbG0ucmVtb3ZlQXR0cmlidXRlKGtleSk7XG4gICAgICAgIH1cbiAgICB9XG59XG5leHBvcnRzLmF0dHJpYnV0ZXNNb2R1bGUgPSB7IGNyZWF0ZTogdXBkYXRlQXR0cnMsIHVwZGF0ZTogdXBkYXRlQXR0cnMgfTtcbmV4cG9ydHMuZGVmYXVsdCA9IGV4cG9ydHMuYXR0cmlidXRlc01vZHVsZTtcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPWF0dHJpYnV0ZXMuanMubWFwIl19
  22162. /***/ }),
  22163. /***/ "./node_modules/snabbdom/dist/snabbdom-class.js":
  22164. /*!******************************************************!*\
  22165. !*** ./node_modules/snabbdom/dist/snabbdom-class.js ***!
  22166. \******************************************************/
  22167. /*! no static exports found */
  22168. /***/ (function(module, exports, __webpack_require__) {
  22169. var require;var require;(function(f){if(true){module.exports=f()}else { var g; }})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return require(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
  22170. "use strict";
  22171. Object.defineProperty(exports, "__esModule", { value: true });
  22172. function updateClass(oldVnode, vnode) {
  22173. var cur, name, elm = vnode.elm, oldClass = oldVnode.data.class, klass = vnode.data.class;
  22174. if (!oldClass && !klass)
  22175. return;
  22176. if (oldClass === klass)
  22177. return;
  22178. oldClass = oldClass || {};
  22179. klass = klass || {};
  22180. for (name in oldClass) {
  22181. if (!klass[name]) {
  22182. elm.classList.remove(name);
  22183. }
  22184. }
  22185. for (name in klass) {
  22186. cur = klass[name];
  22187. if (cur !== oldClass[name]) {
  22188. elm.classList[cur ? 'add' : 'remove'](name);
  22189. }
  22190. }
  22191. }
  22192. exports.classModule = { create: updateClass, update: updateClass };
  22193. exports.default = exports.classModule;
  22194. },{}]},{},[1])(1)
  22195. });
  22196. //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy8ucmVnaXN0cnkubnBtanMub3JnL2Jyb3dzZXItcGFjay82LjAuMi9ub2RlX21vZHVsZXMvYnJvd3Nlci1wYWNrL19wcmVsdWRlLmpzIiwibW9kdWxlcy9jbGFzcy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQ0FBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwiZmlsZSI6ImdlbmVyYXRlZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzQ29udGVudCI6WyIoZnVuY3Rpb24gZSh0LG4scil7ZnVuY3Rpb24gcyhvLHUpe2lmKCFuW29dKXtpZighdFtvXSl7dmFyIGE9dHlwZW9mIHJlcXVpcmU9PVwiZnVuY3Rpb25cIiYmcmVxdWlyZTtpZighdSYmYSlyZXR1cm4gYShvLCEwKTtpZihpKXJldHVybiBpKG8sITApO3ZhciBmPW5ldyBFcnJvcihcIkNhbm5vdCBmaW5kIG1vZHVsZSAnXCIrbytcIidcIik7dGhyb3cgZi5jb2RlPVwiTU9EVUxFX05PVF9GT1VORFwiLGZ9dmFyIGw9bltvXT17ZXhwb3J0czp7fX07dFtvXVswXS5jYWxsKGwuZXhwb3J0cyxmdW5jdGlvbihlKXt2YXIgbj10W29dWzFdW2VdO3JldHVybiBzKG4/bjplKX0sbCxsLmV4cG9ydHMsZSx0LG4scil9cmV0dXJuIG5bb10uZXhwb3J0c312YXIgaT10eXBlb2YgcmVxdWlyZT09XCJmdW5jdGlvblwiJiZyZXF1aXJlO2Zvcih2YXIgbz0wO288ci5sZW5ndGg7bysrKXMocltvXSk7cmV0dXJuIHN9KSIsIlwidXNlIHN0cmljdFwiO1xuT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsIFwiX19lc01vZHVsZVwiLCB7IHZhbHVlOiB0cnVlIH0pO1xuZnVuY3Rpb24gdXBkYXRlQ2xhc3Mob2xkVm5vZGUsIHZub2RlKSB7XG4gICAgdmFyIGN1ciwgbmFtZSwgZWxtID0gdm5vZGUuZWxtLCBvbGRDbGFzcyA9IG9sZFZub2RlLmRhdGEuY2xhc3MsIGtsYXNzID0gdm5vZGUuZGF0YS5jbGFzcztcbiAgICBpZiAoIW9sZENsYXNzICYmICFrbGFzcylcbiAgICAgICAgcmV0dXJuO1xuICAgIGlmIChvbGRDbGFzcyA9PT0ga2xhc3MpXG4gICAgICAgIHJldHVybjtcbiAgICBvbGRDbGFzcyA9IG9sZENsYXNzIHx8IHt9O1xuICAgIGtsYXNzID0ga2xhc3MgfHwge307XG4gICAgZm9yIChuYW1lIGluIG9sZENsYXNzKSB7XG4gICAgICAgIGlmICgha2xhc3NbbmFtZV0pIHtcbiAgICAgICAgICAgIGVsbS5jbGFzc0xpc3QucmVtb3ZlKG5hbWUpO1xuICAgICAgICB9XG4gICAgfVxuICAgIGZvciAobmFtZSBpbiBrbGFzcykge1xuICAgICAgICBjdXIgPSBrbGFzc1tuYW1lXTtcbiAgICAgICAgaWYgKGN1ciAhPT0gb2xkQ2xhc3NbbmFtZV0pIHtcbiAgICAgICAgICAgIGVsbS5jbGFzc0xpc3RbY3VyID8gJ2FkZCcgOiAncmVtb3ZlJ10obmFtZSk7XG4gICAgICAgIH1cbiAgICB9XG59XG5leHBvcnRzLmNsYXNzTW9kdWxlID0geyBjcmVhdGU6IHVwZGF0ZUNsYXNzLCB1cGRhdGU6IHVwZGF0ZUNsYXNzIH07XG5leHBvcnRzLmRlZmF1bHQgPSBleHBvcnRzLmNsYXNzTW9kdWxlO1xuLy8jIHNvdXJjZU1hcHBpbmdVUkw9Y2xhc3MuanMubWFwIl19
  22197. /***/ }),
  22198. /***/ "./node_modules/snabbdom/dist/snabbdom-dataset.js":
  22199. /*!********************************************************!*\
  22200. !*** ./node_modules/snabbdom/dist/snabbdom-dataset.js ***!
  22201. \********************************************************/
  22202. /*! no static exports found */
  22203. /***/ (function(module, exports, __webpack_require__) {
  22204. var require;var require;(function(f){if(true){module.exports=f()}else { var g; }})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return require(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
  22205. "use strict";
  22206. Object.defineProperty(exports, "__esModule", { value: true });
  22207. var CAPS_REGEX = /[A-Z]/g;
  22208. function updateDataset(oldVnode, vnode) {
  22209. var elm = vnode.elm, oldDataset = oldVnode.data.dataset, dataset = vnode.data.dataset, key;
  22210. if (!oldDataset && !dataset)
  22211. return;
  22212. if (oldDataset === dataset)
  22213. return;
  22214. oldDataset = oldDataset || {};
  22215. dataset = dataset || {};
  22216. var d = elm.dataset;
  22217. for (key in oldDataset) {
  22218. if (!dataset[key]) {
  22219. if (d) {
  22220. if (key in d) {
  22221. delete d[key];
  22222. }
  22223. }
  22224. else {
  22225. elm.removeAttribute('data-' + key.replace(CAPS_REGEX, '-$&').toLowerCase());
  22226. }
  22227. }
  22228. }
  22229. for (key in dataset) {
  22230. if (oldDataset[key] !== dataset[key]) {
  22231. if (d) {
  22232. d[key] = dataset[key];
  22233. }
  22234. else {
  22235. elm.setAttribute('data-' + key.replace(CAPS_REGEX, '-$&').toLowerCase(), dataset[key]);
  22236. }
  22237. }
  22238. }
  22239. }
  22240. exports.datasetModule = { create: updateDataset, update: updateDataset };
  22241. exports.default = exports.datasetModule;
  22242. },{}]},{},[1])(1)
  22243. });
  22244. //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9icm93c2VyLXBhY2svX3ByZWx1ZGUuanMiLCJtb2R1bGVzL2RhdGFzZXQuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7QUNBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwiZmlsZSI6ImdlbmVyYXRlZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzQ29udGVudCI6WyIoZnVuY3Rpb24gZSh0LG4scil7ZnVuY3Rpb24gcyhvLHUpe2lmKCFuW29dKXtpZighdFtvXSl7dmFyIGE9dHlwZW9mIHJlcXVpcmU9PVwiZnVuY3Rpb25cIiYmcmVxdWlyZTtpZighdSYmYSlyZXR1cm4gYShvLCEwKTtpZihpKXJldHVybiBpKG8sITApO3ZhciBmPW5ldyBFcnJvcihcIkNhbm5vdCBmaW5kIG1vZHVsZSAnXCIrbytcIidcIik7dGhyb3cgZi5jb2RlPVwiTU9EVUxFX05PVF9GT1VORFwiLGZ9dmFyIGw9bltvXT17ZXhwb3J0czp7fX07dFtvXVswXS5jYWxsKGwuZXhwb3J0cyxmdW5jdGlvbihlKXt2YXIgbj10W29dWzFdW2VdO3JldHVybiBzKG4/bjplKX0sbCxsLmV4cG9ydHMsZSx0LG4scil9cmV0dXJuIG5bb10uZXhwb3J0c312YXIgaT10eXBlb2YgcmVxdWlyZT09XCJmdW5jdGlvblwiJiZyZXF1aXJlO2Zvcih2YXIgbz0wO288ci5sZW5ndGg7bysrKXMocltvXSk7cmV0dXJuIHN9KSIsIlwidXNlIHN0cmljdFwiO1xuT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsIFwiX19lc01vZHVsZVwiLCB7IHZhbHVlOiB0cnVlIH0pO1xudmFyIENBUFNfUkVHRVggPSAvW0EtWl0vZztcbmZ1bmN0aW9uIHVwZGF0ZURhdGFzZXQob2xkVm5vZGUsIHZub2RlKSB7XG4gICAgdmFyIGVsbSA9IHZub2RlLmVsbSwgb2xkRGF0YXNldCA9IG9sZFZub2RlLmRhdGEuZGF0YXNldCwgZGF0YXNldCA9IHZub2RlLmRhdGEuZGF0YXNldCwga2V5O1xuICAgIGlmICghb2xkRGF0YXNldCAmJiAhZGF0YXNldClcbiAgICAgICAgcmV0dXJuO1xuICAgIGlmIChvbGREYXRhc2V0ID09PSBkYXRhc2V0KVxuICAgICAgICByZXR1cm47XG4gICAgb2xkRGF0YXNldCA9IG9sZERhdGFzZXQgfHwge307XG4gICAgZGF0YXNldCA9IGRhdGFzZXQgfHwge307XG4gICAgdmFyIGQgPSBlbG0uZGF0YXNldDtcbiAgICBmb3IgKGtleSBpbiBvbGREYXRhc2V0KSB7XG4gICAgICAgIGlmICghZGF0YXNldFtrZXldKSB7XG4gICAgICAgICAgICBpZiAoZCkge1xuICAgICAgICAgICAgICAgIGlmIChrZXkgaW4gZCkge1xuICAgICAgICAgICAgICAgICAgICBkZWxldGUgZFtrZXldO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgIGVsbS5yZW1vdmVBdHRyaWJ1dGUoJ2RhdGEtJyArIGtleS5yZXBsYWNlKENBUFNfUkVHRVgsICctJCYnKS50b0xvd2VyQ2FzZSgpKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cbiAgICBmb3IgKGtleSBpbiBkYXRhc2V0KSB7XG4gICAgICAgIGlmIChvbGREYXRhc2V0W2tleV0gIT09IGRhdGFzZXRba2V5XSkge1xuICAgICAgICAgICAgaWYgKGQpIHtcbiAgICAgICAgICAgICAgICBkW2tleV0gPSBkYXRhc2V0W2tleV07XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICBlbG0uc2V0QXR0cmlidXRlKCdkYXRhLScgKyBrZXkucmVwbGFjZShDQVBTX1JFR0VYLCAnLSQmJykudG9Mb3dlckNhc2UoKSwgZGF0YXNldFtrZXldKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cbn1cbmV4cG9ydHMuZGF0YXNldE1vZHVsZSA9IHsgY3JlYXRlOiB1cGRhdGVEYXRhc2V0LCB1cGRhdGU6IHVwZGF0ZURhdGFzZXQgfTtcbmV4cG9ydHMuZGVmYXVsdCA9IGV4cG9ydHMuZGF0YXNldE1vZHVsZTtcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPWRhdGFzZXQuanMubWFwIl19
  22245. /***/ }),
  22246. /***/ "./node_modules/snabbdom/dist/snabbdom-props.js":
  22247. /*!******************************************************!*\
  22248. !*** ./node_modules/snabbdom/dist/snabbdom-props.js ***!
  22249. \******************************************************/
  22250. /*! no static exports found */
  22251. /***/ (function(module, exports, __webpack_require__) {
  22252. var require;var require;(function(f){if(true){module.exports=f()}else { var g; }})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return require(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
  22253. "use strict";
  22254. Object.defineProperty(exports, "__esModule", { value: true });
  22255. function updateProps(oldVnode, vnode) {
  22256. var key, cur, old, elm = vnode.elm, oldProps = oldVnode.data.props, props = vnode.data.props;
  22257. if (!oldProps && !props)
  22258. return;
  22259. if (oldProps === props)
  22260. return;
  22261. oldProps = oldProps || {};
  22262. props = props || {};
  22263. for (key in oldProps) {
  22264. if (!props[key]) {
  22265. delete elm[key];
  22266. }
  22267. }
  22268. for (key in props) {
  22269. cur = props[key];
  22270. old = oldProps[key];
  22271. if (old !== cur && (key !== 'value' || elm[key] !== cur)) {
  22272. elm[key] = cur;
  22273. }
  22274. }
  22275. }
  22276. exports.propsModule = { create: updateProps, update: updateProps };
  22277. exports.default = exports.propsModule;
  22278. },{}]},{},[1])(1)
  22279. });
  22280. //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy8ucmVnaXN0cnkubnBtanMub3JnL2Jyb3dzZXItcGFjay82LjAuMi9ub2RlX21vZHVsZXMvYnJvd3Nlci1wYWNrL19wcmVsdWRlLmpzIiwibW9kdWxlcy9wcm9wcy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQ0FBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJmaWxlIjoiZ2VuZXJhdGVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXNDb250ZW50IjpbIihmdW5jdGlvbiBlKHQsbixyKXtmdW5jdGlvbiBzKG8sdSl7aWYoIW5bb10pe2lmKCF0W29dKXt2YXIgYT10eXBlb2YgcmVxdWlyZT09XCJmdW5jdGlvblwiJiZyZXF1aXJlO2lmKCF1JiZhKXJldHVybiBhKG8sITApO2lmKGkpcmV0dXJuIGkobywhMCk7dmFyIGY9bmV3IEVycm9yKFwiQ2Fubm90IGZpbmQgbW9kdWxlICdcIitvK1wiJ1wiKTt0aHJvdyBmLmNvZGU9XCJNT0RVTEVfTk9UX0ZPVU5EXCIsZn12YXIgbD1uW29dPXtleHBvcnRzOnt9fTt0W29dWzBdLmNhbGwobC5leHBvcnRzLGZ1bmN0aW9uKGUpe3ZhciBuPXRbb11bMV1bZV07cmV0dXJuIHMobj9uOmUpfSxsLGwuZXhwb3J0cyxlLHQsbixyKX1yZXR1cm4gbltvXS5leHBvcnRzfXZhciBpPXR5cGVvZiByZXF1aXJlPT1cImZ1bmN0aW9uXCImJnJlcXVpcmU7Zm9yKHZhciBvPTA7bzxyLmxlbmd0aDtvKyspcyhyW29dKTtyZXR1cm4gc30pIiwiXCJ1c2Ugc3RyaWN0XCI7XG5PYmplY3QuZGVmaW5lUHJvcGVydHkoZXhwb3J0cywgXCJfX2VzTW9kdWxlXCIsIHsgdmFsdWU6IHRydWUgfSk7XG5mdW5jdGlvbiB1cGRhdGVQcm9wcyhvbGRWbm9kZSwgdm5vZGUpIHtcbiAgICB2YXIga2V5LCBjdXIsIG9sZCwgZWxtID0gdm5vZGUuZWxtLCBvbGRQcm9wcyA9IG9sZFZub2RlLmRhdGEucHJvcHMsIHByb3BzID0gdm5vZGUuZGF0YS5wcm9wcztcbiAgICBpZiAoIW9sZFByb3BzICYmICFwcm9wcylcbiAgICAgICAgcmV0dXJuO1xuICAgIGlmIChvbGRQcm9wcyA9PT0gcHJvcHMpXG4gICAgICAgIHJldHVybjtcbiAgICBvbGRQcm9wcyA9IG9sZFByb3BzIHx8IHt9O1xuICAgIHByb3BzID0gcHJvcHMgfHwge307XG4gICAgZm9yIChrZXkgaW4gb2xkUHJvcHMpIHtcbiAgICAgICAgaWYgKCFwcm9wc1trZXldKSB7XG4gICAgICAgICAgICBkZWxldGUgZWxtW2tleV07XG4gICAgICAgIH1cbiAgICB9XG4gICAgZm9yIChrZXkgaW4gcHJvcHMpIHtcbiAgICAgICAgY3VyID0gcHJvcHNba2V5XTtcbiAgICAgICAgb2xkID0gb2xkUHJvcHNba2V5XTtcbiAgICAgICAgaWYgKG9sZCAhPT0gY3VyICYmIChrZXkgIT09ICd2YWx1ZScgfHwgZWxtW2tleV0gIT09IGN1cikpIHtcbiAgICAgICAgICAgIGVsbVtrZXldID0gY3VyO1xuICAgICAgICB9XG4gICAgfVxufVxuZXhwb3J0cy5wcm9wc01vZHVsZSA9IHsgY3JlYXRlOiB1cGRhdGVQcm9wcywgdXBkYXRlOiB1cGRhdGVQcm9wcyB9O1xuZXhwb3J0cy5kZWZhdWx0ID0gZXhwb3J0cy5wcm9wc01vZHVsZTtcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPXByb3BzLmpzLm1hcCJdfQ==
  22281. /***/ }),
  22282. /***/ "./node_modules/snabbdom/dist/snabbdom-style.js":
  22283. /*!******************************************************!*\
  22284. !*** ./node_modules/snabbdom/dist/snabbdom-style.js ***!
  22285. \******************************************************/
  22286. /*! no static exports found */
  22287. /***/ (function(module, exports, __webpack_require__) {
  22288. var require;var require;(function(f){if(true){module.exports=f()}else { var g; }})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return require(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
  22289. "use strict";
  22290. Object.defineProperty(exports, "__esModule", { value: true });
  22291. var raf = (typeof window !== 'undefined' && window.requestAnimationFrame) || setTimeout;
  22292. var nextFrame = function (fn) { raf(function () { raf(fn); }); };
  22293. function setNextFrame(obj, prop, val) {
  22294. nextFrame(function () { obj[prop] = val; });
  22295. }
  22296. function updateStyle(oldVnode, vnode) {
  22297. var cur, name, elm = vnode.elm, oldStyle = oldVnode.data.style, style = vnode.data.style;
  22298. if (!oldStyle && !style)
  22299. return;
  22300. if (oldStyle === style)
  22301. return;
  22302. oldStyle = oldStyle || {};
  22303. style = style || {};
  22304. var oldHasDel = 'delayed' in oldStyle;
  22305. for (name in oldStyle) {
  22306. if (!style[name]) {
  22307. if (name[0] === '-' && name[1] === '-') {
  22308. elm.style.removeProperty(name);
  22309. }
  22310. else {
  22311. elm.style[name] = '';
  22312. }
  22313. }
  22314. }
  22315. for (name in style) {
  22316. cur = style[name];
  22317. if (name === 'delayed' && style.delayed) {
  22318. for (var name2 in style.delayed) {
  22319. cur = style.delayed[name2];
  22320. if (!oldHasDel || cur !== oldStyle.delayed[name2]) {
  22321. setNextFrame(elm.style, name2, cur);
  22322. }
  22323. }
  22324. }
  22325. else if (name !== 'remove' && cur !== oldStyle[name]) {
  22326. if (name[0] === '-' && name[1] === '-') {
  22327. elm.style.setProperty(name, cur);
  22328. }
  22329. else {
  22330. elm.style[name] = cur;
  22331. }
  22332. }
  22333. }
  22334. }
  22335. function applyDestroyStyle(vnode) {
  22336. var style, name, elm = vnode.elm, s = vnode.data.style;
  22337. if (!s || !(style = s.destroy))
  22338. return;
  22339. for (name in style) {
  22340. elm.style[name] = style[name];
  22341. }
  22342. }
  22343. function applyRemoveStyle(vnode, rm) {
  22344. var s = vnode.data.style;
  22345. if (!s || !s.remove) {
  22346. rm();
  22347. return;
  22348. }
  22349. var name, elm = vnode.elm, i = 0, compStyle, style = s.remove, amount = 0, applied = [];
  22350. for (name in style) {
  22351. applied.push(name);
  22352. elm.style[name] = style[name];
  22353. }
  22354. compStyle = getComputedStyle(elm);
  22355. var props = compStyle['transition-property'].split(', ');
  22356. for (; i < props.length; ++i) {
  22357. if (applied.indexOf(props[i]) !== -1)
  22358. amount++;
  22359. }
  22360. elm.addEventListener('transitionend', function (ev) {
  22361. if (ev.target === elm)
  22362. --amount;
  22363. if (amount === 0)
  22364. rm();
  22365. });
  22366. }
  22367. exports.styleModule = {
  22368. create: updateStyle,
  22369. update: updateStyle,
  22370. destroy: applyDestroyStyle,
  22371. remove: applyRemoveStyle
  22372. };
  22373. exports.default = exports.styleModule;
  22374. },{}]},{},[1])(1)
  22375. });
  22376. //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy8ucmVnaXN0cnkubnBtanMub3JnL2Jyb3dzZXItcGFjay82LjAuMi9ub2RlX21vZHVsZXMvYnJvd3Nlci1wYWNrL19wcmVsdWRlLmpzIiwibW9kdWxlcy9zdHlsZS5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQ0FBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJmaWxlIjoiZ2VuZXJhdGVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXNDb250ZW50IjpbIihmdW5jdGlvbiBlKHQsbixyKXtmdW5jdGlvbiBzKG8sdSl7aWYoIW5bb10pe2lmKCF0W29dKXt2YXIgYT10eXBlb2YgcmVxdWlyZT09XCJmdW5jdGlvblwiJiZyZXF1aXJlO2lmKCF1JiZhKXJldHVybiBhKG8sITApO2lmKGkpcmV0dXJuIGkobywhMCk7dmFyIGY9bmV3IEVycm9yKFwiQ2Fubm90IGZpbmQgbW9kdWxlICdcIitvK1wiJ1wiKTt0aHJvdyBmLmNvZGU9XCJNT0RVTEVfTk9UX0ZPVU5EXCIsZn12YXIgbD1uW29dPXtleHBvcnRzOnt9fTt0W29dWzBdLmNhbGwobC5leHBvcnRzLGZ1bmN0aW9uKGUpe3ZhciBuPXRbb11bMV1bZV07cmV0dXJuIHMobj9uOmUpfSxsLGwuZXhwb3J0cyxlLHQsbixyKX1yZXR1cm4gbltvXS5leHBvcnRzfXZhciBpPXR5cGVvZiByZXF1aXJlPT1cImZ1bmN0aW9uXCImJnJlcXVpcmU7Zm9yKHZhciBvPTA7bzxyLmxlbmd0aDtvKyspcyhyW29dKTtyZXR1cm4gc30pIiwiXCJ1c2Ugc3RyaWN0XCI7XG5PYmplY3QuZGVmaW5lUHJvcGVydHkoZXhwb3J0cywgXCJfX2VzTW9kdWxlXCIsIHsgdmFsdWU6IHRydWUgfSk7XG52YXIgcmFmID0gKHR5cGVvZiB3aW5kb3cgIT09ICd1bmRlZmluZWQnICYmIHdpbmRvdy5yZXF1ZXN0QW5pbWF0aW9uRnJhbWUpIHx8IHNldFRpbWVvdXQ7XG52YXIgbmV4dEZyYW1lID0gZnVuY3Rpb24gKGZuKSB7IHJhZihmdW5jdGlvbiAoKSB7IHJhZihmbik7IH0pOyB9O1xuZnVuY3Rpb24gc2V0TmV4dEZyYW1lKG9iaiwgcHJvcCwgdmFsKSB7XG4gICAgbmV4dEZyYW1lKGZ1bmN0aW9uICgpIHsgb2JqW3Byb3BdID0gdmFsOyB9KTtcbn1cbmZ1bmN0aW9uIHVwZGF0ZVN0eWxlKG9sZFZub2RlLCB2bm9kZSkge1xuICAgIHZhciBjdXIsIG5hbWUsIGVsbSA9IHZub2RlLmVsbSwgb2xkU3R5bGUgPSBvbGRWbm9kZS5kYXRhLnN0eWxlLCBzdHlsZSA9IHZub2RlLmRhdGEuc3R5bGU7XG4gICAgaWYgKCFvbGRTdHlsZSAmJiAhc3R5bGUpXG4gICAgICAgIHJldHVybjtcbiAgICBpZiAob2xkU3R5bGUgPT09IHN0eWxlKVxuICAgICAgICByZXR1cm47XG4gICAgb2xkU3R5bGUgPSBvbGRTdHlsZSB8fCB7fTtcbiAgICBzdHlsZSA9IHN0eWxlIHx8IHt9O1xuICAgIHZhciBvbGRIYXNEZWwgPSAnZGVsYXllZCcgaW4gb2xkU3R5bGU7XG4gICAgZm9yIChuYW1lIGluIG9sZFN0eWxlKSB7XG4gICAgICAgIGlmICghc3R5bGVbbmFtZV0pIHtcbiAgICAgICAgICAgIGlmIChuYW1lWzBdID09PSAnLScgJiYgbmFtZVsxXSA9PT0gJy0nKSB7XG4gICAgICAgICAgICAgICAgZWxtLnN0eWxlLnJlbW92ZVByb3BlcnR5KG5hbWUpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgZWxtLnN0eWxlW25hbWVdID0gJyc7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG4gICAgZm9yIChuYW1lIGluIHN0eWxlKSB7XG4gICAgICAgIGN1ciA9IHN0eWxlW25hbWVdO1xuICAgICAgICBpZiAobmFtZSA9PT0gJ2RlbGF5ZWQnICYmIHN0eWxlLmRlbGF5ZWQpIHtcbiAgICAgICAgICAgIGZvciAodmFyIG5hbWUyIGluIHN0eWxlLmRlbGF5ZWQpIHtcbiAgICAgICAgICAgICAgICBjdXIgPSBzdHlsZS5kZWxheWVkW25hbWUyXTtcbiAgICAgICAgICAgICAgICBpZiAoIW9sZEhhc0RlbCB8fCBjdXIgIT09IG9sZFN0eWxlLmRlbGF5ZWRbbmFtZTJdKSB7XG4gICAgICAgICAgICAgICAgICAgIHNldE5leHRGcmFtZShlbG0uc3R5bGUsIG5hbWUyLCBjdXIpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBlbHNlIGlmIChuYW1lICE9PSAncmVtb3ZlJyAmJiBjdXIgIT09IG9sZFN0eWxlW25hbWVdKSB7XG4gICAgICAgICAgICBpZiAobmFtZVswXSA9PT0gJy0nICYmIG5hbWVbMV0gPT09ICctJykge1xuICAgICAgICAgICAgICAgIGVsbS5zdHlsZS5zZXRQcm9wZXJ0eShuYW1lLCBjdXIpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgZWxtLnN0eWxlW25hbWVdID0gY3VyO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxufVxuZnVuY3Rpb24gYXBwbHlEZXN0cm95U3R5bGUodm5vZGUpIHtcbiAgICB2YXIgc3R5bGUsIG5hbWUsIGVsbSA9IHZub2RlLmVsbSwgcyA9IHZub2RlLmRhdGEuc3R5bGU7XG4gICAgaWYgKCFzIHx8ICEoc3R5bGUgPSBzLmRlc3Ryb3kpKVxuICAgICAgICByZXR1cm47XG4gICAgZm9yIChuYW1lIGluIHN0eWxlKSB7XG4gICAgICAgIGVsbS5zdHlsZVtuYW1lXSA9IHN0eWxlW25hbWVdO1xuICAgIH1cbn1cbmZ1bmN0aW9uIGFwcGx5UmVtb3ZlU3R5bGUodm5vZGUsIHJtKSB7XG4gICAgdmFyIHMgPSB2bm9kZS5kYXRhLnN0eWxlO1xuICAgIGlmICghcyB8fCAhcy5yZW1vdmUpIHtcbiAgICAgICAgcm0oKTtcbiAgICAgICAgcmV0dXJuO1xuICAgIH1cbiAgICB2YXIgbmFtZSwgZWxtID0gdm5vZGUuZWxtLCBpID0gMCwgY29tcFN0eWxlLCBzdHlsZSA9IHMucmVtb3ZlLCBhbW91bnQgPSAwLCBhcHBsaWVkID0gW107XG4gICAgZm9yIChuYW1lIGluIHN0eWxlKSB7XG4gICAgICAgIGFwcGxpZWQucHVzaChuYW1lKTtcbiAgICAgICAgZWxtLnN0eWxlW25hbWVdID0gc3R5bGVbbmFtZV07XG4gICAgfVxuICAgIGNvbXBTdHlsZSA9IGdldENvbXB1dGVkU3R5bGUoZWxtKTtcbiAgICB2YXIgcHJvcHMgPSBjb21wU3R5bGVbJ3RyYW5zaXRpb24tcHJvcGVydHknXS5zcGxpdCgnLCAnKTtcbiAgICBmb3IgKDsgaSA8IHByb3BzLmxlbmd0aDsgKytpKSB7XG4gICAgICAgIGlmIChhcHBsaWVkLmluZGV4T2YocHJvcHNbaV0pICE9PSAtMSlcbiAgICAgICAgICAgIGFtb3VudCsrO1xuICAgIH1cbiAgICBlbG0uYWRkRXZlbnRMaXN0ZW5lcigndHJhbnNpdGlvbmVuZCcsIGZ1bmN0aW9uIChldikge1xuICAgICAgICBpZiAoZXYudGFyZ2V0ID09PSBlbG0pXG4gICAgICAgICAgICAtLWFtb3VudDtcbiAgICAgICAgaWYgKGFtb3VudCA9PT0gMClcbiAgICAgICAgICAgIHJtKCk7XG4gICAgfSk7XG59XG5leHBvcnRzLnN0eWxlTW9kdWxlID0ge1xuICAgIGNyZWF0ZTogdXBkYXRlU3R5bGUsXG4gICAgdXBkYXRlOiB1cGRhdGVTdHlsZSxcbiAgICBkZXN0cm95OiBhcHBseURlc3Ryb3lTdHlsZSxcbiAgICByZW1vdmU6IGFwcGx5UmVtb3ZlU3R5bGVcbn07XG5leHBvcnRzLmRlZmF1bHQgPSBleHBvcnRzLnN0eWxlTW9kdWxlO1xuLy8jIHNvdXJjZU1hcHBpbmdVUkw9c3R5bGUuanMubWFwIl19
  22377. /***/ }),
  22378. /***/ "./node_modules/snabbdom/dist/snabbdom.js":
  22379. /*!************************************************!*\
  22380. !*** ./node_modules/snabbdom/dist/snabbdom.js ***!
  22381. \************************************************/
  22382. /*! no static exports found */
  22383. /***/ (function(module, exports, __webpack_require__) {
  22384. var require;var require;(function(f){if(true){module.exports=f()}else { var g; }})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return require(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
  22385. "use strict";
  22386. Object.defineProperty(exports, "__esModule", { value: true });
  22387. var vnode_1 = require("./vnode");
  22388. var is = require("./is");
  22389. function addNS(data, children, sel) {
  22390. data.ns = 'http://www.w3.org/2000/svg';
  22391. if (sel !== 'foreignObject' && children !== undefined) {
  22392. for (var i = 0; i < children.length; ++i) {
  22393. var childData = children[i].data;
  22394. if (childData !== undefined) {
  22395. addNS(childData, children[i].children, children[i].sel);
  22396. }
  22397. }
  22398. }
  22399. }
  22400. function h(sel, b, c) {
  22401. var data = {}, children, text, i;
  22402. if (c !== undefined) {
  22403. data = b;
  22404. if (is.array(c)) {
  22405. children = c;
  22406. }
  22407. else if (is.primitive(c)) {
  22408. text = c;
  22409. }
  22410. else if (c && c.sel) {
  22411. children = [c];
  22412. }
  22413. }
  22414. else if (b !== undefined) {
  22415. if (is.array(b)) {
  22416. children = b;
  22417. }
  22418. else if (is.primitive(b)) {
  22419. text = b;
  22420. }
  22421. else if (b && b.sel) {
  22422. children = [b];
  22423. }
  22424. else {
  22425. data = b;
  22426. }
  22427. }
  22428. if (is.array(children)) {
  22429. for (i = 0; i < children.length; ++i) {
  22430. if (is.primitive(children[i]))
  22431. children[i] = vnode_1.vnode(undefined, undefined, undefined, children[i]);
  22432. }
  22433. }
  22434. if (sel[0] === 's' && sel[1] === 'v' && sel[2] === 'g' &&
  22435. (sel.length === 3 || sel[3] === '.' || sel[3] === '#')) {
  22436. addNS(data, children, sel);
  22437. }
  22438. return vnode_1.vnode(sel, data, children, text, undefined);
  22439. }
  22440. exports.h = h;
  22441. ;
  22442. exports.default = h;
  22443. },{"./is":3,"./vnode":6}],2:[function(require,module,exports){
  22444. "use strict";
  22445. Object.defineProperty(exports, "__esModule", { value: true });
  22446. function createElement(tagName) {
  22447. return document.createElement(tagName);
  22448. }
  22449. function createElementNS(namespaceURI, qualifiedName) {
  22450. return document.createElementNS(namespaceURI, qualifiedName);
  22451. }
  22452. function createTextNode(text) {
  22453. return document.createTextNode(text);
  22454. }
  22455. function createComment(text) {
  22456. return document.createComment(text);
  22457. }
  22458. function insertBefore(parentNode, newNode, referenceNode) {
  22459. parentNode.insertBefore(newNode, referenceNode);
  22460. }
  22461. function removeChild(node, child) {
  22462. node.removeChild(child);
  22463. }
  22464. function appendChild(node, child) {
  22465. node.appendChild(child);
  22466. }
  22467. function parentNode(node) {
  22468. return node.parentNode;
  22469. }
  22470. function nextSibling(node) {
  22471. return node.nextSibling;
  22472. }
  22473. function tagName(elm) {
  22474. return elm.tagName;
  22475. }
  22476. function setTextContent(node, text) {
  22477. node.textContent = text;
  22478. }
  22479. function getTextContent(node) {
  22480. return node.textContent;
  22481. }
  22482. function isElement(node) {
  22483. return node.nodeType === 1;
  22484. }
  22485. function isText(node) {
  22486. return node.nodeType === 3;
  22487. }
  22488. function isComment(node) {
  22489. return node.nodeType === 8;
  22490. }
  22491. exports.htmlDomApi = {
  22492. createElement: createElement,
  22493. createElementNS: createElementNS,
  22494. createTextNode: createTextNode,
  22495. createComment: createComment,
  22496. insertBefore: insertBefore,
  22497. removeChild: removeChild,
  22498. appendChild: appendChild,
  22499. parentNode: parentNode,
  22500. nextSibling: nextSibling,
  22501. tagName: tagName,
  22502. setTextContent: setTextContent,
  22503. getTextContent: getTextContent,
  22504. isElement: isElement,
  22505. isText: isText,
  22506. isComment: isComment,
  22507. };
  22508. exports.default = exports.htmlDomApi;
  22509. },{}],3:[function(require,module,exports){
  22510. "use strict";
  22511. Object.defineProperty(exports, "__esModule", { value: true });
  22512. exports.array = Array.isArray;
  22513. function primitive(s) {
  22514. return typeof s === 'string' || typeof s === 'number';
  22515. }
  22516. exports.primitive = primitive;
  22517. },{}],4:[function(require,module,exports){
  22518. "use strict";
  22519. Object.defineProperty(exports, "__esModule", { value: true });
  22520. var vnode_1 = require("./vnode");
  22521. var is = require("./is");
  22522. var htmldomapi_1 = require("./htmldomapi");
  22523. function isUndef(s) { return s === undefined; }
  22524. function isDef(s) { return s !== undefined; }
  22525. var emptyNode = vnode_1.default('', {}, [], undefined, undefined);
  22526. function sameVnode(vnode1, vnode2) {
  22527. return vnode1.key === vnode2.key && vnode1.sel === vnode2.sel;
  22528. }
  22529. function isVnode(vnode) {
  22530. return vnode.sel !== undefined;
  22531. }
  22532. function createKeyToOldIdx(children, beginIdx, endIdx) {
  22533. var i, map = {}, key, ch;
  22534. for (i = beginIdx; i <= endIdx; ++i) {
  22535. ch = children[i];
  22536. if (ch != null) {
  22537. key = ch.key;
  22538. if (key !== undefined)
  22539. map[key] = i;
  22540. }
  22541. }
  22542. return map;
  22543. }
  22544. var hooks = ['create', 'update', 'remove', 'destroy', 'pre', 'post'];
  22545. var h_1 = require("./h");
  22546. exports.h = h_1.h;
  22547. var thunk_1 = require("./thunk");
  22548. exports.thunk = thunk_1.thunk;
  22549. function init(modules, domApi) {
  22550. var i, j, cbs = {};
  22551. var api = domApi !== undefined ? domApi : htmldomapi_1.default;
  22552. for (i = 0; i < hooks.length; ++i) {
  22553. cbs[hooks[i]] = [];
  22554. for (j = 0; j < modules.length; ++j) {
  22555. var hook = modules[j][hooks[i]];
  22556. if (hook !== undefined) {
  22557. cbs[hooks[i]].push(hook);
  22558. }
  22559. }
  22560. }
  22561. function emptyNodeAt(elm) {
  22562. var id = elm.id ? '#' + elm.id : '';
  22563. var c = elm.className ? '.' + elm.className.split(' ').join('.') : '';
  22564. return vnode_1.default(api.tagName(elm).toLowerCase() + id + c, {}, [], undefined, elm);
  22565. }
  22566. function createRmCb(childElm, listeners) {
  22567. return function rmCb() {
  22568. if (--listeners === 0) {
  22569. var parent_1 = api.parentNode(childElm);
  22570. api.removeChild(parent_1, childElm);
  22571. }
  22572. };
  22573. }
  22574. function createElm(vnode, insertedVnodeQueue) {
  22575. var i, data = vnode.data;
  22576. if (data !== undefined) {
  22577. if (isDef(i = data.hook) && isDef(i = i.init)) {
  22578. i(vnode);
  22579. data = vnode.data;
  22580. }
  22581. }
  22582. var children = vnode.children, sel = vnode.sel;
  22583. if (sel === '!') {
  22584. if (isUndef(vnode.text)) {
  22585. vnode.text = '';
  22586. }
  22587. vnode.elm = api.createComment(vnode.text);
  22588. }
  22589. else if (sel !== undefined) {
  22590. // Parse selector
  22591. var hashIdx = sel.indexOf('#');
  22592. var dotIdx = sel.indexOf('.', hashIdx);
  22593. var hash = hashIdx > 0 ? hashIdx : sel.length;
  22594. var dot = dotIdx > 0 ? dotIdx : sel.length;
  22595. var tag = hashIdx !== -1 || dotIdx !== -1 ? sel.slice(0, Math.min(hash, dot)) : sel;
  22596. var elm = vnode.elm = isDef(data) && isDef(i = data.ns) ? api.createElementNS(i, tag)
  22597. : api.createElement(tag);
  22598. if (hash < dot)
  22599. elm.setAttribute('id', sel.slice(hash + 1, dot));
  22600. if (dotIdx > 0)
  22601. elm.setAttribute('class', sel.slice(dot + 1).replace(/\./g, ' '));
  22602. for (i = 0; i < cbs.create.length; ++i)
  22603. cbs.create[i](emptyNode, vnode);
  22604. if (is.array(children)) {
  22605. for (i = 0; i < children.length; ++i) {
  22606. var ch = children[i];
  22607. if (ch != null) {
  22608. api.appendChild(elm, createElm(ch, insertedVnodeQueue));
  22609. }
  22610. }
  22611. }
  22612. else if (is.primitive(vnode.text)) {
  22613. api.appendChild(elm, api.createTextNode(vnode.text));
  22614. }
  22615. i = vnode.data.hook; // Reuse variable
  22616. if (isDef(i)) {
  22617. if (i.create)
  22618. i.create(emptyNode, vnode);
  22619. if (i.insert)
  22620. insertedVnodeQueue.push(vnode);
  22621. }
  22622. }
  22623. else {
  22624. vnode.elm = api.createTextNode(vnode.text);
  22625. }
  22626. return vnode.elm;
  22627. }
  22628. function addVnodes(parentElm, before, vnodes, startIdx, endIdx, insertedVnodeQueue) {
  22629. for (; startIdx <= endIdx; ++startIdx) {
  22630. var ch = vnodes[startIdx];
  22631. if (ch != null) {
  22632. api.insertBefore(parentElm, createElm(ch, insertedVnodeQueue), before);
  22633. }
  22634. }
  22635. }
  22636. function invokeDestroyHook(vnode) {
  22637. var i, j, data = vnode.data;
  22638. if (data !== undefined) {
  22639. if (isDef(i = data.hook) && isDef(i = i.destroy))
  22640. i(vnode);
  22641. for (i = 0; i < cbs.destroy.length; ++i)
  22642. cbs.destroy[i](vnode);
  22643. if (vnode.children !== undefined) {
  22644. for (j = 0; j < vnode.children.length; ++j) {
  22645. i = vnode.children[j];
  22646. if (i != null && typeof i !== "string") {
  22647. invokeDestroyHook(i);
  22648. }
  22649. }
  22650. }
  22651. }
  22652. }
  22653. function removeVnodes(parentElm, vnodes, startIdx, endIdx) {
  22654. for (; startIdx <= endIdx; ++startIdx) {
  22655. var i_1 = void 0, listeners = void 0, rm = void 0, ch = vnodes[startIdx];
  22656. if (ch != null) {
  22657. if (isDef(ch.sel)) {
  22658. invokeDestroyHook(ch);
  22659. listeners = cbs.remove.length + 1;
  22660. rm = createRmCb(ch.elm, listeners);
  22661. for (i_1 = 0; i_1 < cbs.remove.length; ++i_1)
  22662. cbs.remove[i_1](ch, rm);
  22663. if (isDef(i_1 = ch.data) && isDef(i_1 = i_1.hook) && isDef(i_1 = i_1.remove)) {
  22664. i_1(ch, rm);
  22665. }
  22666. else {
  22667. rm();
  22668. }
  22669. }
  22670. else {
  22671. api.removeChild(parentElm, ch.elm);
  22672. }
  22673. }
  22674. }
  22675. }
  22676. function updateChildren(parentElm, oldCh, newCh, insertedVnodeQueue) {
  22677. var oldStartIdx = 0, newStartIdx = 0;
  22678. var oldEndIdx = oldCh.length - 1;
  22679. var oldStartVnode = oldCh[0];
  22680. var oldEndVnode = oldCh[oldEndIdx];
  22681. var newEndIdx = newCh.length - 1;
  22682. var newStartVnode = newCh[0];
  22683. var newEndVnode = newCh[newEndIdx];
  22684. var oldKeyToIdx;
  22685. var idxInOld;
  22686. var elmToMove;
  22687. var before;
  22688. while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
  22689. if (oldStartVnode == null) {
  22690. oldStartVnode = oldCh[++oldStartIdx]; // Vnode might have been moved left
  22691. }
  22692. else if (oldEndVnode == null) {
  22693. oldEndVnode = oldCh[--oldEndIdx];
  22694. }
  22695. else if (newStartVnode == null) {
  22696. newStartVnode = newCh[++newStartIdx];
  22697. }
  22698. else if (newEndVnode == null) {
  22699. newEndVnode = newCh[--newEndIdx];
  22700. }
  22701. else if (sameVnode(oldStartVnode, newStartVnode)) {
  22702. patchVnode(oldStartVnode, newStartVnode, insertedVnodeQueue);
  22703. oldStartVnode = oldCh[++oldStartIdx];
  22704. newStartVnode = newCh[++newStartIdx];
  22705. }
  22706. else if (sameVnode(oldEndVnode, newEndVnode)) {
  22707. patchVnode(oldEndVnode, newEndVnode, insertedVnodeQueue);
  22708. oldEndVnode = oldCh[--oldEndIdx];
  22709. newEndVnode = newCh[--newEndIdx];
  22710. }
  22711. else if (sameVnode(oldStartVnode, newEndVnode)) {
  22712. patchVnode(oldStartVnode, newEndVnode, insertedVnodeQueue);
  22713. api.insertBefore(parentElm, oldStartVnode.elm, api.nextSibling(oldEndVnode.elm));
  22714. oldStartVnode = oldCh[++oldStartIdx];
  22715. newEndVnode = newCh[--newEndIdx];
  22716. }
  22717. else if (sameVnode(oldEndVnode, newStartVnode)) {
  22718. patchVnode(oldEndVnode, newStartVnode, insertedVnodeQueue);
  22719. api.insertBefore(parentElm, oldEndVnode.elm, oldStartVnode.elm);
  22720. oldEndVnode = oldCh[--oldEndIdx];
  22721. newStartVnode = newCh[++newStartIdx];
  22722. }
  22723. else {
  22724. if (oldKeyToIdx === undefined) {
  22725. oldKeyToIdx = createKeyToOldIdx(oldCh, oldStartIdx, oldEndIdx);
  22726. }
  22727. idxInOld = oldKeyToIdx[newStartVnode.key];
  22728. if (isUndef(idxInOld)) {
  22729. api.insertBefore(parentElm, createElm(newStartVnode, insertedVnodeQueue), oldStartVnode.elm);
  22730. newStartVnode = newCh[++newStartIdx];
  22731. }
  22732. else {
  22733. elmToMove = oldCh[idxInOld];
  22734. if (elmToMove.sel !== newStartVnode.sel) {
  22735. api.insertBefore(parentElm, createElm(newStartVnode, insertedVnodeQueue), oldStartVnode.elm);
  22736. }
  22737. else {
  22738. patchVnode(elmToMove, newStartVnode, insertedVnodeQueue);
  22739. oldCh[idxInOld] = undefined;
  22740. api.insertBefore(parentElm, elmToMove.elm, oldStartVnode.elm);
  22741. }
  22742. newStartVnode = newCh[++newStartIdx];
  22743. }
  22744. }
  22745. }
  22746. if (oldStartIdx > oldEndIdx) {
  22747. before = newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].elm;
  22748. addVnodes(parentElm, before, newCh, newStartIdx, newEndIdx, insertedVnodeQueue);
  22749. }
  22750. else if (newStartIdx > newEndIdx) {
  22751. removeVnodes(parentElm, oldCh, oldStartIdx, oldEndIdx);
  22752. }
  22753. }
  22754. function patchVnode(oldVnode, vnode, insertedVnodeQueue) {
  22755. var i, hook;
  22756. if (isDef(i = vnode.data) && isDef(hook = i.hook) && isDef(i = hook.prepatch)) {
  22757. i(oldVnode, vnode);
  22758. }
  22759. var elm = vnode.elm = oldVnode.elm;
  22760. var oldCh = oldVnode.children;
  22761. var ch = vnode.children;
  22762. if (oldVnode === vnode)
  22763. return;
  22764. if (vnode.data !== undefined) {
  22765. for (i = 0; i < cbs.update.length; ++i)
  22766. cbs.update[i](oldVnode, vnode);
  22767. i = vnode.data.hook;
  22768. if (isDef(i) && isDef(i = i.update))
  22769. i(oldVnode, vnode);
  22770. }
  22771. if (isUndef(vnode.text)) {
  22772. if (isDef(oldCh) && isDef(ch)) {
  22773. if (oldCh !== ch)
  22774. updateChildren(elm, oldCh, ch, insertedVnodeQueue);
  22775. }
  22776. else if (isDef(ch)) {
  22777. if (isDef(oldVnode.text))
  22778. api.setTextContent(elm, '');
  22779. addVnodes(elm, null, ch, 0, ch.length - 1, insertedVnodeQueue);
  22780. }
  22781. else if (isDef(oldCh)) {
  22782. removeVnodes(elm, oldCh, 0, oldCh.length - 1);
  22783. }
  22784. else if (isDef(oldVnode.text)) {
  22785. api.setTextContent(elm, '');
  22786. }
  22787. }
  22788. else if (oldVnode.text !== vnode.text) {
  22789. api.setTextContent(elm, vnode.text);
  22790. }
  22791. if (isDef(hook) && isDef(i = hook.postpatch)) {
  22792. i(oldVnode, vnode);
  22793. }
  22794. }
  22795. return function patch(oldVnode, vnode) {
  22796. var i, elm, parent;
  22797. var insertedVnodeQueue = [];
  22798. for (i = 0; i < cbs.pre.length; ++i)
  22799. cbs.pre[i]();
  22800. if (!isVnode(oldVnode)) {
  22801. oldVnode = emptyNodeAt(oldVnode);
  22802. }
  22803. if (sameVnode(oldVnode, vnode)) {
  22804. patchVnode(oldVnode, vnode, insertedVnodeQueue);
  22805. }
  22806. else {
  22807. elm = oldVnode.elm;
  22808. parent = api.parentNode(elm);
  22809. createElm(vnode, insertedVnodeQueue);
  22810. if (parent !== null) {
  22811. api.insertBefore(parent, vnode.elm, api.nextSibling(elm));
  22812. removeVnodes(parent, [oldVnode], 0, 0);
  22813. }
  22814. }
  22815. for (i = 0; i < insertedVnodeQueue.length; ++i) {
  22816. insertedVnodeQueue[i].data.hook.insert(insertedVnodeQueue[i]);
  22817. }
  22818. for (i = 0; i < cbs.post.length; ++i)
  22819. cbs.post[i]();
  22820. return vnode;
  22821. };
  22822. }
  22823. exports.init = init;
  22824. },{"./h":1,"./htmldomapi":2,"./is":3,"./thunk":5,"./vnode":6}],5:[function(require,module,exports){
  22825. "use strict";
  22826. Object.defineProperty(exports, "__esModule", { value: true });
  22827. var h_1 = require("./h");
  22828. function copyToThunk(vnode, thunk) {
  22829. thunk.elm = vnode.elm;
  22830. vnode.data.fn = thunk.data.fn;
  22831. vnode.data.args = thunk.data.args;
  22832. thunk.data = vnode.data;
  22833. thunk.children = vnode.children;
  22834. thunk.text = vnode.text;
  22835. thunk.elm = vnode.elm;
  22836. }
  22837. function init(thunk) {
  22838. var cur = thunk.data;
  22839. var vnode = cur.fn.apply(undefined, cur.args);
  22840. copyToThunk(vnode, thunk);
  22841. }
  22842. function prepatch(oldVnode, thunk) {
  22843. var i, old = oldVnode.data, cur = thunk.data;
  22844. var oldArgs = old.args, args = cur.args;
  22845. if (old.fn !== cur.fn || oldArgs.length !== args.length) {
  22846. copyToThunk(cur.fn.apply(undefined, args), thunk);
  22847. return;
  22848. }
  22849. for (i = 0; i < args.length; ++i) {
  22850. if (oldArgs[i] !== args[i]) {
  22851. copyToThunk(cur.fn.apply(undefined, args), thunk);
  22852. return;
  22853. }
  22854. }
  22855. copyToThunk(oldVnode, thunk);
  22856. }
  22857. exports.thunk = function thunk(sel, key, fn, args) {
  22858. if (args === undefined) {
  22859. args = fn;
  22860. fn = key;
  22861. key = undefined;
  22862. }
  22863. return h_1.h(sel, {
  22864. key: key,
  22865. hook: { init: init, prepatch: prepatch },
  22866. fn: fn,
  22867. args: args
  22868. });
  22869. };
  22870. exports.default = exports.thunk;
  22871. },{"./h":1}],6:[function(require,module,exports){
  22872. "use strict";
  22873. Object.defineProperty(exports, "__esModule", { value: true });
  22874. function vnode(sel, data, children, text, elm) {
  22875. var key = data === undefined ? undefined : data.key;
  22876. return { sel: sel, data: data, children: children,
  22877. text: text, elm: elm, key: key };
  22878. }
  22879. exports.vnode = vnode;
  22880. exports.default = vnode;
  22881. },{}]},{},[4])(4)
  22882. });
  22883. //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy8ucmVnaXN0cnkubnBtanMub3JnL2Jyb3dzZXItcGFjay82LjAuMi9ub2RlX21vZHVsZXMvYnJvd3Nlci1wYWNrL19wcmVsdWRlLmpzIiwiaC5qcyIsImh0bWxkb21hcGkuanMiLCJpcy5qcyIsInNuYWJiZG9tLmpzIiwidGh1bmsuanMiLCJ2bm9kZS5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQ0FBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FDMURBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUNqRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUNQQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUNsVEE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUM5Q0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJmaWxlIjoiZ2VuZXJhdGVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXNDb250ZW50IjpbIihmdW5jdGlvbiBlKHQsbixyKXtmdW5jdGlvbiBzKG8sdSl7aWYoIW5bb10pe2lmKCF0W29dKXt2YXIgYT10eXBlb2YgcmVxdWlyZT09XCJmdW5jdGlvblwiJiZyZXF1aXJlO2lmKCF1JiZhKXJldHVybiBhKG8sITApO2lmKGkpcmV0dXJuIGkobywhMCk7dmFyIGY9bmV3IEVycm9yKFwiQ2Fubm90IGZpbmQgbW9kdWxlICdcIitvK1wiJ1wiKTt0aHJvdyBmLmNvZGU9XCJNT0RVTEVfTk9UX0ZPVU5EXCIsZn12YXIgbD1uW29dPXtleHBvcnRzOnt9fTt0W29dWzBdLmNhbGwobC5leHBvcnRzLGZ1bmN0aW9uKGUpe3ZhciBuPXRbb11bMV1bZV07cmV0dXJuIHMobj9uOmUpfSxsLGwuZXhwb3J0cyxlLHQsbixyKX1yZXR1cm4gbltvXS5leHBvcnRzfXZhciBpPXR5cGVvZiByZXF1aXJlPT1cImZ1bmN0aW9uXCImJnJlcXVpcmU7Zm9yKHZhciBvPTA7bzxyLmxlbmd0aDtvKyspcyhyW29dKTtyZXR1cm4gc30pIiwiXCJ1c2Ugc3RyaWN0XCI7XG5PYmplY3QuZGVmaW5lUHJvcGVydHkoZXhwb3J0cywgXCJfX2VzTW9kdWxlXCIsIHsgdmFsdWU6IHRydWUgfSk7XG52YXIgdm5vZGVfMSA9IHJlcXVpcmUoXCIuL3Zub2RlXCIpO1xudmFyIGlzID0gcmVxdWlyZShcIi4vaXNcIik7XG5mdW5jdGlvbiBhZGROUyhkYXRhLCBjaGlsZHJlbiwgc2VsKSB7XG4gICAgZGF0YS5ucyA9ICdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc7XG4gICAgaWYgKHNlbCAhPT0gJ2ZvcmVpZ25PYmplY3QnICYmIGNoaWxkcmVuICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgZm9yICh2YXIgaSA9IDA7IGkgPCBjaGlsZHJlbi5sZW5ndGg7ICsraSkge1xuICAgICAgICAgICAgdmFyIGNoaWxkRGF0YSA9IGNoaWxkcmVuW2ldLmRhdGE7XG4gICAgICAgICAgICBpZiAoY2hpbGREYXRhICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgICAgICBhZGROUyhjaGlsZERhdGEsIGNoaWxkcmVuW2ldLmNoaWxkcmVuLCBjaGlsZHJlbltpXS5zZWwpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxufVxuZnVuY3Rpb24gaChzZWwsIGIsIGMpIHtcbiAgICB2YXIgZGF0YSA9IHt9LCBjaGlsZHJlbiwgdGV4dCwgaTtcbiAgICBpZiAoYyAhPT0gdW5kZWZpbmVkKSB7XG4gICAgICAgIGRhdGEgPSBiO1xuICAgICAgICBpZiAoaXMuYXJyYXkoYykpIHtcbiAgICAgICAgICAgIGNoaWxkcmVuID0gYztcbiAgICAgICAgfVxuICAgICAgICBlbHNlIGlmIChpcy5wcmltaXRpdmUoYykpIHtcbiAgICAgICAgICAgIHRleHQgPSBjO1xuICAgICAgICB9XG4gICAgICAgIGVsc2UgaWYgKGMgJiYgYy5zZWwpIHtcbiAgICAgICAgICAgIGNoaWxkcmVuID0gW2NdO1xuICAgICAgICB9XG4gICAgfVxuICAgIGVsc2UgaWYgKGIgIT09IHVuZGVmaW5lZCkge1xuICAgICAgICBpZiAoaXMuYXJyYXkoYikpIHtcbiAgICAgICAgICAgIGNoaWxkcmVuID0gYjtcbiAgICAgICAgfVxuICAgICAgICBlbHNlIGlmIChpcy5wcmltaXRpdmUoYikpIHtcbiAgICAgICAgICAgIHRleHQgPSBiO1xuICAgICAgICB9XG4gICAgICAgIGVsc2UgaWYgKGIgJiYgYi5zZWwpIHtcbiAgICAgICAgICAgIGNoaWxkcmVuID0gW2JdO1xuICAgICAgICB9XG4gICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgZGF0YSA9IGI7XG4gICAgICAgIH1cbiAgICB9XG4gICAgaWYgKGlzLmFycmF5KGNoaWxkcmVuKSkge1xuICAgICAgICBmb3IgKGkgPSAwOyBpIDwgY2hpbGRyZW4ubGVuZ3RoOyArK2kpIHtcbiAgICAgICAgICAgIGlmIChpcy5wcmltaXRpdmUoY2hpbGRyZW5baV0pKVxuICAgICAgICAgICAgICAgIGNoaWxkcmVuW2ldID0gdm5vZGVfMS52bm9kZSh1bmRlZmluZWQsIHVuZGVmaW5lZCwgdW5kZWZpbmVkLCBjaGlsZHJlbltpXSk7XG4gICAgICAgIH1cbiAgICB9XG4gICAgaWYgKHNlbFswXSA9PT0gJ3MnICYmIHNlbFsxXSA9PT0gJ3YnICYmIHNlbFsyXSA9PT0gJ2cnICYmXG4gICAgICAgIChzZWwubGVuZ3RoID09PSAzIHx8IHNlbFszXSA9PT0gJy4nIHx8IHNlbFszXSA9PT0gJyMnKSkge1xuICAgICAgICBhZGROUyhkYXRhLCBjaGlsZHJlbiwgc2VsKTtcbiAgICB9XG4gICAgcmV0dXJuIHZub2RlXzEudm5vZGUoc2VsLCBkYXRhLCBjaGlsZHJlbiwgdGV4dCwgdW5kZWZpbmVkKTtcbn1cbmV4cG9ydHMuaCA9IGg7XG47XG5leHBvcnRzLmRlZmF1bHQgPSBoO1xuLy8jIHNvdXJjZU1hcHBpbmdVUkw9aC5qcy5tYXAiLCJcInVzZSBzdHJpY3RcIjtcbk9iamVjdC5kZWZpbmVQcm9wZXJ0eShleHBvcnRzLCBcIl9fZXNNb2R1bGVcIiwgeyB2YWx1ZTogdHJ1ZSB9KTtcbmZ1bmN0aW9uIGNyZWF0ZUVsZW1lbnQodGFnTmFtZSkge1xuICAgIHJldHVybiBkb2N1bWVudC5jcmVhdGVFbGVtZW50KHRhZ05hbWUpO1xufVxuZnVuY3Rpb24gY3JlYXRlRWxlbWVudE5TKG5hbWVzcGFjZVVSSSwgcXVhbGlmaWVkTmFtZSkge1xuICAgIHJldHVybiBkb2N1bWVudC5jcmVhdGVFbGVtZW50TlMobmFtZXNwYWNlVVJJLCBxdWFsaWZpZWROYW1lKTtcbn1cbmZ1bmN0aW9uIGNyZWF0ZVRleHROb2RlKHRleHQpIHtcbiAgICByZXR1cm4gZG9jdW1lbnQuY3JlYXRlVGV4dE5vZGUodGV4dCk7XG59XG5mdW5jdGlvbiBjcmVhdGVDb21tZW50KHRleHQpIHtcbiAgICByZXR1cm4gZG9jdW1lbnQuY3JlYXRlQ29tbWVudCh0ZXh0KTtcbn1cbmZ1bmN0aW9uIGluc2VydEJlZm9yZShwYXJlbnROb2RlLCBuZXdOb2RlLCByZWZlcmVuY2VOb2RlKSB7XG4gICAgcGFyZW50Tm9kZS5pbnNlcnRCZWZvcmUobmV3Tm9kZSwgcmVmZXJlbmNlTm9kZSk7XG59XG5mdW5jdGlvbiByZW1vdmVDaGlsZChub2RlLCBjaGlsZCkge1xuICAgIG5vZGUucmVtb3ZlQ2hpbGQoY2hpbGQpO1xufVxuZnVuY3Rpb24gYXBwZW5kQ2hpbGQobm9kZSwgY2hpbGQpIHtcbiAgICBub2RlLmFwcGVuZENoaWxkKGNoaWxkKTtcbn1cbmZ1bmN0aW9uIHBhcmVudE5vZGUobm9kZSkge1xuICAgIHJldHVybiBub2RlLnBhcmVudE5vZGU7XG59XG5mdW5jdGlvbiBuZXh0U2libGluZyhub2RlKSB7XG4gICAgcmV0dXJuIG5vZGUubmV4dFNpYmxpbmc7XG59XG5mdW5jdGlvbiB0YWdOYW1lKGVsbSkge1xuICAgIHJldHVybiBlbG0udGFnTmFtZTtcbn1cbmZ1bmN0aW9uIHNldFRleHRDb250ZW50KG5vZGUsIHRleHQpIHtcbiAgICBub2RlLnRleHRDb250ZW50ID0gdGV4dDtcbn1cbmZ1bmN0aW9uIGdldFRleHRDb250ZW50KG5vZGUpIHtcbiAgICByZXR1cm4gbm9kZS50ZXh0Q29udGVudDtcbn1cbmZ1bmN0aW9uIGlzRWxlbWVudChub2RlKSB7XG4gICAgcmV0dXJuIG5vZGUubm9kZVR5cGUgPT09IDE7XG59XG5mdW5jdGlvbiBpc1RleHQobm9kZSkge1xuICAgIHJldHVybiBub2RlLm5vZGVUeXBlID09PSAzO1xufVxuZnVuY3Rpb24gaXNDb21tZW50KG5vZGUpIHtcbiAgICByZXR1cm4gbm9kZS5ub2RlVHlwZSA9PT0gODtcbn1cbmV4cG9ydHMuaHRtbERvbUFwaSA9IHtcbiAgICBjcmVhdGVFbGVtZW50OiBjcmVhdGVFbGVtZW50LFxuICAgIGNyZWF0ZUVsZW1lbnROUzogY3JlYXRlRWxlbWVudE5TLFxuICAgIGNyZWF0ZVRleHROb2RlOiBjcmVhdGVUZXh0Tm9kZSxcbiAgICBjcmVhdGVDb21tZW50OiBjcmVhdGVDb21tZW50LFxuICAgIGluc2VydEJlZm9yZTogaW5zZXJ0QmVmb3JlLFxuICAgIHJlbW92ZUNoaWxkOiByZW1vdmVDaGlsZCxcbiAgICBhcHBlbmRDaGlsZDogYXBwZW5kQ2hpbGQsXG4gICAgcGFyZW50Tm9kZTogcGFyZW50Tm9kZSxcbiAgICBuZXh0U2libGluZzogbmV4dFNpYmxpbmcsXG4gICAgdGFnTmFtZTogdGFnTmFtZSxcbiAgICBzZXRUZXh0Q29udGVudDogc2V0VGV4dENvbnRlbnQsXG4gICAgZ2V0VGV4dENvbnRlbnQ6IGdldFRleHRDb250ZW50LFxuICAgIGlzRWxlbWVudDogaXNFbGVtZW50LFxuICAgIGlzVGV4dDogaXNUZXh0LFxuICAgIGlzQ29tbWVudDogaXNDb21tZW50LFxufTtcbmV4cG9ydHMuZGVmYXVsdCA9IGV4cG9ydHMuaHRtbERvbUFwaTtcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPWh0bWxkb21hcGkuanMubWFwIiwiXCJ1c2Ugc3RyaWN0XCI7XG5PYmplY3QuZGVmaW5lUHJvcGVydHkoZXhwb3J0cywgXCJfX2VzTW9kdWxlXCIsIHsgdmFsdWU6IHRydWUgfSk7XG5leHBvcnRzLmFycmF5ID0gQXJyYXkuaXNBcnJheTtcbmZ1bmN0aW9uIHByaW1pdGl2ZShzKSB7XG4gICAgcmV0dXJuIHR5cGVvZiBzID09PSAnc3RyaW5nJyB8fCB0eXBlb2YgcyA9PT0gJ251bWJlcic7XG59XG5leHBvcnRzLnByaW1pdGl2ZSA9IHByaW1pdGl2ZTtcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPWlzLmpzLm1hcCIsIlwidXNlIHN0cmljdFwiO1xuT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsIFwiX19lc01vZHVsZVwiLCB7IHZhbHVlOiB0cnVlIH0pO1xudmFyIHZub2RlXzEgPSByZXF1aXJlKFwiLi92bm9kZVwiKTtcbnZhciBpcyA9IHJlcXVpcmUoXCIuL2lzXCIpO1xudmFyIGh0bWxkb21hcGlfMSA9IHJlcXVpcmUoXCIuL2h0bWxkb21hcGlcIik7XG5mdW5jdGlvbiBpc1VuZGVmKHMpIHsgcmV0dXJuIHMgPT09IHVuZGVmaW5lZDsgfVxuZnVuY3Rpb24gaXNEZWYocykgeyByZXR1cm4gcyAhPT0gdW5kZWZpbmVkOyB9XG52YXIgZW1wdHlOb2RlID0gdm5vZGVfMS5kZWZhdWx0KCcnLCB7fSwgW10sIHVuZGVmaW5lZCwgdW5kZWZpbmVkKTtcbmZ1bmN0aW9uIHNhbWVWbm9kZSh2bm9kZTEsIHZub2RlMikge1xuICAgIHJldHVybiB2bm9kZTEua2V5ID09PSB2bm9kZTIua2V5ICYmIHZub2RlMS5zZWwgPT09IHZub2RlMi5zZWw7XG59XG5mdW5jdGlvbiBpc1Zub2RlKHZub2RlKSB7XG4gICAgcmV0dXJuIHZub2RlLnNlbCAhPT0gdW5kZWZpbmVkO1xufVxuZnVuY3Rpb24gY3JlYXRlS2V5VG9PbGRJZHgoY2hpbGRyZW4sIGJlZ2luSWR4LCBlbmRJZHgpIHtcbiAgICB2YXIgaSwgbWFwID0ge30sIGtleSwgY2g7XG4gICAgZm9yIChpID0gYmVnaW5JZHg7IGkgPD0gZW5kSWR4OyArK2kpIHtcbiAgICAgICAgY2ggPSBjaGlsZHJlbltpXTtcbiAgICAgICAgaWYgKGNoICE9IG51bGwpIHtcbiAgICAgICAgICAgIGtleSA9IGNoLmtleTtcbiAgICAgICAgICAgIGlmIChrZXkgIT09IHVuZGVmaW5lZClcbiAgICAgICAgICAgICAgICBtYXBba2V5XSA9IGk7XG4gICAgICAgIH1cbiAgICB9XG4gICAgcmV0dXJuIG1hcDtcbn1cbnZhciBob29rcyA9IFsnY3JlYXRlJywgJ3VwZGF0ZScsICdyZW1vdmUnLCAnZGVzdHJveScsICdwcmUnLCAncG9zdCddO1xudmFyIGhfMSA9IHJlcXVpcmUoXCIuL2hcIik7XG5leHBvcnRzLmggPSBoXzEuaDtcbnZhciB0aHVua18xID0gcmVxdWlyZShcIi4vdGh1bmtcIik7XG5leHBvcnRzLnRodW5rID0gdGh1bmtfMS50aHVuaztcbmZ1bmN0aW9uIGluaXQobW9kdWxlcywgZG9tQXBpKSB7XG4gICAgdmFyIGksIGosIGNicyA9IHt9O1xuICAgIHZhciBhcGkgPSBkb21BcGkgIT09IHVuZGVmaW5lZCA/IGRvbUFwaSA6IGh0bWxkb21hcGlfMS5kZWZhdWx0O1xuICAgIGZvciAoaSA9IDA7IGkgPCBob29rcy5sZW5ndGg7ICsraSkge1xuICAgICAgICBjYnNbaG9va3NbaV1dID0gW107XG4gICAgICAgIGZvciAoaiA9IDA7IGogPCBtb2R1bGVzLmxlbmd0aDsgKytqKSB7XG4gICAgICAgICAgICB2YXIgaG9vayA9IG1vZHVsZXNbal1baG9va3NbaV1dO1xuICAgICAgICAgICAgaWYgKGhvb2sgIT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgICAgIGNic1tob29rc1tpXV0ucHVzaChob29rKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cbiAgICBmdW5jdGlvbiBlbXB0eU5vZGVBdChlbG0pIHtcbiAgICAgICAgdmFyIGlkID0gZWxtLmlkID8gJyMnICsgZWxtLmlkIDogJyc7XG4gICAgICAgIHZhciBjID0gZWxtLmNsYXNzTmFtZSA/ICcuJyArIGVsbS5jbGFzc05hbWUuc3BsaXQoJyAnKS5qb2luKCcuJykgOiAnJztcbiAgICAgICAgcmV0dXJuIHZub2RlXzEuZGVmYXVsdChhcGkudGFnTmFtZShlbG0pLnRvTG93ZXJDYXNlKCkgKyBpZCArIGMsIHt9LCBbXSwgdW5kZWZpbmVkLCBlbG0pO1xuICAgIH1cbiAgICBmdW5jdGlvbiBjcmVhdGVSbUNiKGNoaWxkRWxtLCBsaXN0ZW5lcnMpIHtcbiAgICAgICAgcmV0dXJuIGZ1bmN0aW9uIHJtQ2IoKSB7XG4gICAgICAgICAgICBpZiAoLS1saXN0ZW5lcnMgPT09IDApIHtcbiAgICAgICAgICAgICAgICB2YXIgcGFyZW50XzEgPSBhcGkucGFyZW50Tm9kZShjaGlsZEVsbSk7XG4gICAgICAgICAgICAgICAgYXBpLnJlbW92ZUNoaWxkKHBhcmVudF8xLCBjaGlsZEVsbSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH07XG4gICAgfVxuICAgIGZ1bmN0aW9uIGNyZWF0ZUVsbSh2bm9kZSwgaW5zZXJ0ZWRWbm9kZVF1ZXVlKSB7XG4gICAgICAgIHZhciBpLCBkYXRhID0gdm5vZGUuZGF0YTtcbiAgICAgICAgaWYgKGRhdGEgIT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgaWYgKGlzRGVmKGkgPSBkYXRhLmhvb2spICYmIGlzRGVmKGkgPSBpLmluaXQpKSB7XG4gICAgICAgICAgICAgICAgaSh2bm9kZSk7XG4gICAgICAgICAgICAgICAgZGF0YSA9IHZub2RlLmRhdGE7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgdmFyIGNoaWxkcmVuID0gdm5vZGUuY2hpbGRyZW4sIHNlbCA9IHZub2RlLnNlbDtcbiAgICAgICAgaWYgKHNlbCA9PT0gJyEnKSB7XG4gICAgICAgICAgICBpZiAoaXNVbmRlZih2bm9kZS50ZXh0KSkge1xuICAgICAgICAgICAgICAgIHZub2RlLnRleHQgPSAnJztcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHZub2RlLmVsbSA9IGFwaS5jcmVhdGVDb21tZW50KHZub2RlLnRleHQpO1xuICAgICAgICB9XG4gICAgICAgIGVsc2UgaWYgKHNlbCAhPT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgICAvLyBQYXJzZSBzZWxlY3RvclxuICAgICAgICAgICAgdmFyIGhhc2hJZHggPSBzZWwuaW5kZXhPZignIycpO1xuICAgICAgICAgICAgdmFyIGRvdElkeCA9IHNlbC5pbmRleE9mKCcuJywgaGFzaElkeCk7XG4gICAgICAgICAgICB2YXIgaGFzaCA9IGhhc2hJZHggPiAwID8gaGFzaElkeCA6IHNlbC5sZW5ndGg7XG4gICAgICAgICAgICB2YXIgZG90ID0gZG90SWR4ID4gMCA/IGRvdElkeCA6IHNlbC5sZW5ndGg7XG4gICAgICAgICAgICB2YXIgdGFnID0gaGFzaElkeCAhPT0gLTEgfHwgZG90SWR4ICE9PSAtMSA/IHNlbC5zbGljZSgwLCBNYXRoLm1pbihoYXNoLCBkb3QpKSA6IHNlbDtcbiAgICAgICAgICAgIHZhciBlbG0gPSB2bm9kZS5lbG0gPSBpc0RlZihkYXRhKSAmJiBpc0RlZihpID0gZGF0YS5ucykgPyBhcGkuY3JlYXRlRWxlbWVudE5TKGksIHRhZylcbiAgICAgICAgICAgICAgICA6IGFwaS5jcmVhdGVFbGVtZW50KHRhZyk7XG4gICAgICAgICAgICBpZiAoaGFzaCA8IGRvdClcbiAgICAgICAgICAgICAgICBlbG0uc2V0QXR0cmlidXRlKCdpZCcsIHNlbC5zbGljZShoYXNoICsgMSwgZG90KSk7XG4gICAgICAgICAgICBpZiAoZG90SWR4ID4gMClcbiAgICAgICAgICAgICAgICBlbG0uc2V0QXR0cmlidXRlKCdjbGFzcycsIHNlbC5zbGljZShkb3QgKyAxKS5yZXBsYWNlKC9cXC4vZywgJyAnKSk7XG4gICAgICAgICAgICBmb3IgKGkgPSAwOyBpIDwgY2JzLmNyZWF0ZS5sZW5ndGg7ICsraSlcbiAgICAgICAgICAgICAgICBjYnMuY3JlYXRlW2ldKGVtcHR5Tm9kZSwgdm5vZGUpO1xuICAgICAgICAgICAgaWYgKGlzLmFycmF5KGNoaWxkcmVuKSkge1xuICAgICAgICAgICAgICAgIGZvciAoaSA9IDA7IGkgPCBjaGlsZHJlbi5sZW5ndGg7ICsraSkge1xuICAgICAgICAgICAgICAgICAgICB2YXIgY2ggPSBjaGlsZHJlbltpXTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKGNoICE9IG51bGwpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGFwaS5hcHBlbmRDaGlsZChlbG0sIGNyZWF0ZUVsbShjaCwgaW5zZXJ0ZWRWbm9kZVF1ZXVlKSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBlbHNlIGlmIChpcy5wcmltaXRpdmUodm5vZGUudGV4dCkpIHtcbiAgICAgICAgICAgICAgICBhcGkuYXBwZW5kQ2hpbGQoZWxtLCBhcGkuY3JlYXRlVGV4dE5vZGUodm5vZGUudGV4dCkpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaSA9IHZub2RlLmRhdGEuaG9vazsgLy8gUmV1c2UgdmFyaWFibGVcbiAgICAgICAgICAgIGlmIChpc0RlZihpKSkge1xuICAgICAgICAgICAgICAgIGlmIChpLmNyZWF0ZSlcbiAgICAgICAgICAgICAgICAgICAgaS5jcmVhdGUoZW1wdHlOb2RlLCB2bm9kZSk7XG4gICAgICAgICAgICAgICAgaWYgKGkuaW5zZXJ0KVxuICAgICAgICAgICAgICAgICAgICBpbnNlcnRlZFZub2RlUXVldWUucHVzaCh2bm9kZSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICB2bm9kZS5lbG0gPSBhcGkuY3JlYXRlVGV4dE5vZGUodm5vZGUudGV4dCk7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIHZub2RlLmVsbTtcbiAgICB9XG4gICAgZnVuY3Rpb24gYWRkVm5vZGVzKHBhcmVudEVsbSwgYmVmb3JlLCB2bm9kZXMsIHN0YXJ0SWR4LCBlbmRJZHgsIGluc2VydGVkVm5vZGVRdWV1ZSkge1xuICAgICAgICBmb3IgKDsgc3RhcnRJZHggPD0gZW5kSWR4OyArK3N0YXJ0SWR4KSB7XG4gICAgICAgICAgICB2YXIgY2ggPSB2bm9kZXNbc3RhcnRJZHhdO1xuICAgICAgICAgICAgaWYgKGNoICE9IG51bGwpIHtcbiAgICAgICAgICAgICAgICBhcGkuaW5zZXJ0QmVmb3JlKHBhcmVudEVsbSwgY3JlYXRlRWxtKGNoLCBpbnNlcnRlZFZub2RlUXVldWUpLCBiZWZvcmUpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuICAgIGZ1bmN0aW9uIGludm9rZURlc3Ryb3lIb29rKHZub2RlKSB7XG4gICAgICAgIHZhciBpLCBqLCBkYXRhID0gdm5vZGUuZGF0YTtcbiAgICAgICAgaWYgKGRhdGEgIT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgaWYgKGlzRGVmKGkgPSBkYXRhLmhvb2spICYmIGlzRGVmKGkgPSBpLmRlc3Ryb3kpKVxuICAgICAgICAgICAgICAgIGkodm5vZGUpO1xuICAgICAgICAgICAgZm9yIChpID0gMDsgaSA8IGNicy5kZXN0cm95Lmxlbmd0aDsgKytpKVxuICAgICAgICAgICAgICAgIGNicy5kZXN0cm95W2ldKHZub2RlKTtcbiAgICAgICAgICAgIGlmICh2bm9kZS5jaGlsZHJlbiAhPT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgICAgICAgZm9yIChqID0gMDsgaiA8IHZub2RlLmNoaWxkcmVuLmxlbmd0aDsgKytqKSB7XG4gICAgICAgICAgICAgICAgICAgIGkgPSB2bm9kZS5jaGlsZHJlbltqXTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKGkgIT0gbnVsbCAmJiB0eXBlb2YgaSAhPT0gXCJzdHJpbmdcIikge1xuICAgICAgICAgICAgICAgICAgICAgICAgaW52b2tlRGVzdHJveUhvb2soaSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG4gICAgZnVuY3Rpb24gcmVtb3ZlVm5vZGVzKHBhcmVudEVsbSwgdm5vZGVzLCBzdGFydElkeCwgZW5kSWR4KSB7XG4gICAgICAgIGZvciAoOyBzdGFydElkeCA8PSBlbmRJZHg7ICsrc3RhcnRJZHgpIHtcbiAgICAgICAgICAgIHZhciBpXzEgPSB2b2lkIDAsIGxpc3RlbmVycyA9IHZvaWQgMCwgcm0gPSB2b2lkIDAsIGNoID0gdm5vZGVzW3N0YXJ0SWR4XTtcbiAgICAgICAgICAgIGlmIChjaCAhPSBudWxsKSB7XG4gICAgICAgICAgICAgICAgaWYgKGlzRGVmKGNoLnNlbCkpIHtcbiAgICAgICAgICAgICAgICAgICAgaW52b2tlRGVzdHJveUhvb2soY2gpO1xuICAgICAgICAgICAgICAgICAgICBsaXN0ZW5lcnMgPSBjYnMucmVtb3ZlLmxlbmd0aCArIDE7XG4gICAgICAgICAgICAgICAgICAgIHJtID0gY3JlYXRlUm1DYihjaC5lbG0sIGxpc3RlbmVycyk7XG4gICAgICAgICAgICAgICAgICAgIGZvciAoaV8xID0gMDsgaV8xIDwgY2JzLnJlbW92ZS5sZW5ndGg7ICsraV8xKVxuICAgICAgICAgICAgICAgICAgICAgICAgY2JzLnJlbW92ZVtpXzFdKGNoLCBybSk7XG4gICAgICAgICAgICAgICAgICAgIGlmIChpc0RlZihpXzEgPSBjaC5kYXRhKSAmJiBpc0RlZihpXzEgPSBpXzEuaG9vaykgJiYgaXNEZWYoaV8xID0gaV8xLnJlbW92ZSkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlfMShjaCwgcm0pO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgcm0oKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgYXBpLnJlbW92ZUNoaWxkKHBhcmVudEVsbSwgY2guZWxtKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG4gICAgZnVuY3Rpb24gdXBkYXRlQ2hpbGRyZW4ocGFyZW50RWxtLCBvbGRDaCwgbmV3Q2gsIGluc2VydGVkVm5vZGVRdWV1ZSkge1xuICAgICAgICB2YXIgb2xkU3RhcnRJZHggPSAwLCBuZXdTdGFydElkeCA9IDA7XG4gICAgICAgIHZhciBvbGRFbmRJZHggPSBvbGRDaC5sZW5ndGggLSAxO1xuICAgICAgICB2YXIgb2xkU3RhcnRWbm9kZSA9IG9sZENoWzBdO1xuICAgICAgICB2YXIgb2xkRW5kVm5vZGUgPSBvbGRDaFtvbGRFbmRJZHhdO1xuICAgICAgICB2YXIgbmV3RW5kSWR4ID0gbmV3Q2gubGVuZ3RoIC0gMTtcbiAgICAgICAgdmFyIG5ld1N0YXJ0Vm5vZGUgPSBuZXdDaFswXTtcbiAgICAgICAgdmFyIG5ld0VuZFZub2RlID0gbmV3Q2hbbmV3RW5kSWR4XTtcbiAgICAgICAgdmFyIG9sZEtleVRvSWR4O1xuICAgICAgICB2YXIgaWR4SW5PbGQ7XG4gICAgICAgIHZhciBlbG1Ub01vdmU7XG4gICAgICAgIHZhciBiZWZvcmU7XG4gICAgICAgIHdoaWxlIChvbGRTdGFydElkeCA8PSBvbGRFbmRJZHggJiYgbmV3U3RhcnRJZHggPD0gbmV3RW5kSWR4KSB7XG4gICAgICAgICAgICBpZiAob2xkU3RhcnRWbm9kZSA9PSBudWxsKSB7XG4gICAgICAgICAgICAgICAgb2xkU3RhcnRWbm9kZSA9IG9sZENoWysrb2xkU3RhcnRJZHhdOyAvLyBWbm9kZSBtaWdodCBoYXZlIGJlZW4gbW92ZWQgbGVmdFxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSBpZiAob2xkRW5kVm5vZGUgPT0gbnVsbCkge1xuICAgICAgICAgICAgICAgIG9sZEVuZFZub2RlID0gb2xkQ2hbLS1vbGRFbmRJZHhdO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSBpZiAobmV3U3RhcnRWbm9kZSA9PSBudWxsKSB7XG4gICAgICAgICAgICAgICAgbmV3U3RhcnRWbm9kZSA9IG5ld0NoWysrbmV3U3RhcnRJZHhdO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSBpZiAobmV3RW5kVm5vZGUgPT0gbnVsbCkge1xuICAgICAgICAgICAgICAgIG5ld0VuZFZub2RlID0gbmV3Q2hbLS1uZXdFbmRJZHhdO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSBpZiAoc2FtZVZub2RlKG9sZFN0YXJ0Vm5vZGUsIG5ld1N0YXJ0Vm5vZGUpKSB7XG4gICAgICAgICAgICAgICAgcGF0Y2hWbm9kZShvbGRTdGFydFZub2RlLCBuZXdTdGFydFZub2RlLCBpbnNlcnRlZFZub2RlUXVldWUpO1xuICAgICAgICAgICAgICAgIG9sZFN0YXJ0Vm5vZGUgPSBvbGRDaFsrK29sZFN0YXJ0SWR4XTtcbiAgICAgICAgICAgICAgICBuZXdTdGFydFZub2RlID0gbmV3Q2hbKytuZXdTdGFydElkeF07XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBlbHNlIGlmIChzYW1lVm5vZGUob2xkRW5kVm5vZGUsIG5ld0VuZFZub2RlKSkge1xuICAgICAgICAgICAgICAgIHBhdGNoVm5vZGUob2xkRW5kVm5vZGUsIG5ld0VuZFZub2RlLCBpbnNlcnRlZFZub2RlUXVldWUpO1xuICAgICAgICAgICAgICAgIG9sZEVuZFZub2RlID0gb2xkQ2hbLS1vbGRFbmRJZHhdO1xuICAgICAgICAgICAgICAgIG5ld0VuZFZub2RlID0gbmV3Q2hbLS1uZXdFbmRJZHhdO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSBpZiAoc2FtZVZub2RlKG9sZFN0YXJ0Vm5vZGUsIG5ld0VuZFZub2RlKSkge1xuICAgICAgICAgICAgICAgIHBhdGNoVm5vZGUob2xkU3RhcnRWbm9kZSwgbmV3RW5kVm5vZGUsIGluc2VydGVkVm5vZGVRdWV1ZSk7XG4gICAgICAgICAgICAgICAgYXBpLmluc2VydEJlZm9yZShwYXJlbnRFbG0sIG9sZFN0YXJ0Vm5vZGUuZWxtLCBhcGkubmV4dFNpYmxpbmcob2xkRW5kVm5vZGUuZWxtKSk7XG4gICAgICAgICAgICAgICAgb2xkU3RhcnRWbm9kZSA9IG9sZENoWysrb2xkU3RhcnRJZHhdO1xuICAgICAgICAgICAgICAgIG5ld0VuZFZub2RlID0gbmV3Q2hbLS1uZXdFbmRJZHhdO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgZWxzZSBpZiAoc2FtZVZub2RlKG9sZEVuZFZub2RlLCBuZXdTdGFydFZub2RlKSkge1xuICAgICAgICAgICAgICAgIHBhdGNoVm5vZGUob2xkRW5kVm5vZGUsIG5ld1N0YXJ0Vm5vZGUsIGluc2VydGVkVm5vZGVRdWV1ZSk7XG4gICAgICAgICAgICAgICAgYXBpLmluc2VydEJlZm9yZShwYXJlbnRFbG0sIG9sZEVuZFZub2RlLmVsbSwgb2xkU3RhcnRWbm9kZS5lbG0pO1xuICAgICAgICAgICAgICAgIG9sZEVuZFZub2RlID0gb2xkQ2hbLS1vbGRFbmRJZHhdO1xuICAgICAgICAgICAgICAgIG5ld1N0YXJ0Vm5vZGUgPSBuZXdDaFsrK25ld1N0YXJ0SWR4XTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgIGlmIChvbGRLZXlUb0lkeCA9PT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgICAgICAgICAgIG9sZEtleVRvSWR4ID0gY3JlYXRlS2V5VG9PbGRJZHgob2xkQ2gsIG9sZFN0YXJ0SWR4LCBvbGRFbmRJZHgpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBpZHhJbk9sZCA9IG9sZEtleVRvSWR4W25ld1N0YXJ0Vm5vZGUua2V5XTtcbiAgICAgICAgICAgICAgICBpZiAoaXNVbmRlZihpZHhJbk9sZCkpIHtcbiAgICAgICAgICAgICAgICAgICAgYXBpLmluc2VydEJlZm9yZShwYXJlbnRFbG0sIGNyZWF0ZUVsbShuZXdTdGFydFZub2RlLCBpbnNlcnRlZFZub2RlUXVldWUpLCBvbGRTdGFydFZub2RlLmVsbSk7XG4gICAgICAgICAgICAgICAgICAgIG5ld1N0YXJ0Vm5vZGUgPSBuZXdDaFsrK25ld1N0YXJ0SWR4XTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIGVsbVRvTW92ZSA9IG9sZENoW2lkeEluT2xkXTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKGVsbVRvTW92ZS5zZWwgIT09IG5ld1N0YXJ0Vm5vZGUuc2VsKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBhcGkuaW5zZXJ0QmVmb3JlKHBhcmVudEVsbSwgY3JlYXRlRWxtKG5ld1N0YXJ0Vm5vZGUsIGluc2VydGVkVm5vZGVRdWV1ZSksIG9sZFN0YXJ0Vm5vZGUuZWxtKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHBhdGNoVm5vZGUoZWxtVG9Nb3ZlLCBuZXdTdGFydFZub2RlLCBpbnNlcnRlZFZub2RlUXVldWUpO1xuICAgICAgICAgICAgICAgICAgICAgICAgb2xkQ2hbaWR4SW5PbGRdID0gdW5kZWZpbmVkO1xuICAgICAgICAgICAgICAgICAgICAgICAgYXBpLmluc2VydEJlZm9yZShwYXJlbnRFbG0sIGVsbVRvTW92ZS5lbG0sIG9sZFN0YXJ0Vm5vZGUuZWxtKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICBuZXdTdGFydFZub2RlID0gbmV3Q2hbKytuZXdTdGFydElkeF07XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGlmIChvbGRTdGFydElkeCA+IG9sZEVuZElkeCkge1xuICAgICAgICAgICAgYmVmb3JlID0gbmV3Q2hbbmV3RW5kSWR4ICsgMV0gPT0gbnVsbCA/IG51bGwgOiBuZXdDaFtuZXdFbmRJZHggKyAxXS5lbG07XG4gICAgICAgICAgICBhZGRWbm9kZXMocGFyZW50RWxtLCBiZWZvcmUsIG5ld0NoLCBuZXdTdGFydElkeCwgbmV3RW5kSWR4LCBpbnNlcnRlZFZub2RlUXVldWUpO1xuICAgICAgICB9XG4gICAgICAgIGVsc2UgaWYgKG5ld1N0YXJ0SWR4ID4gbmV3RW5kSWR4KSB7XG4gICAgICAgICAgICByZW1vdmVWbm9kZXMocGFyZW50RWxtLCBvbGRDaCwgb2xkU3RhcnRJZHgsIG9sZEVuZElkeCk7XG4gICAgICAgIH1cbiAgICB9XG4gICAgZnVuY3Rpb24gcGF0Y2hWbm9kZShvbGRWbm9kZSwgdm5vZGUsIGluc2VydGVkVm5vZGVRdWV1ZSkge1xuICAgICAgICB2YXIgaSwgaG9vaztcbiAgICAgICAgaWYgKGlzRGVmKGkgPSB2bm9kZS5kYXRhKSAmJiBpc0RlZihob29rID0gaS5ob29rKSAmJiBpc0RlZihpID0gaG9vay5wcmVwYXRjaCkpIHtcbiAgICAgICAgICAgIGkob2xkVm5vZGUsIHZub2RlKTtcbiAgICAgICAgfVxuICAgICAgICB2YXIgZWxtID0gdm5vZGUuZWxtID0gb2xkVm5vZGUuZWxtO1xuICAgICAgICB2YXIgb2xkQ2ggPSBvbGRWbm9kZS5jaGlsZHJlbjtcbiAgICAgICAgdmFyIGNoID0gdm5vZGUuY2hpbGRyZW47XG4gICAgICAgIGlmIChvbGRWbm9kZSA9PT0gdm5vZGUpXG4gICAgICAgICAgICByZXR1cm47XG4gICAgICAgIGlmICh2bm9kZS5kYXRhICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgIGZvciAoaSA9IDA7IGkgPCBjYnMudXBkYXRlLmxlbmd0aDsgKytpKVxuICAgICAgICAgICAgICAgIGNicy51cGRhdGVbaV0ob2xkVm5vZGUsIHZub2RlKTtcbiAgICAgICAgICAgIGkgPSB2bm9kZS5kYXRhLmhvb2s7XG4gICAgICAgICAgICBpZiAoaXNEZWYoaSkgJiYgaXNEZWYoaSA9IGkudXBkYXRlKSlcbiAgICAgICAgICAgICAgICBpKG9sZFZub2RlLCB2bm9kZSk7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKGlzVW5kZWYodm5vZGUudGV4dCkpIHtcbiAgICAgICAgICAgIGlmIChpc0RlZihvbGRDaCkgJiYgaXNEZWYoY2gpKSB7XG4gICAgICAgICAgICAgICAgaWYgKG9sZENoICE9PSBjaClcbiAgICAgICAgICAgICAgICAgICAgdXBkYXRlQ2hpbGRyZW4oZWxtLCBvbGRDaCwgY2gsIGluc2VydGVkVm5vZGVRdWV1ZSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBlbHNlIGlmIChpc0RlZihjaCkpIHtcbiAgICAgICAgICAgICAgICBpZiAoaXNEZWYob2xkVm5vZGUudGV4dCkpXG4gICAgICAgICAgICAgICAgICAgIGFwaS5zZXRUZXh0Q29udGVudChlbG0sICcnKTtcbiAgICAgICAgICAgICAgICBhZGRWbm9kZXMoZWxtLCBudWxsLCBjaCwgMCwgY2gubGVuZ3RoIC0gMSwgaW5zZXJ0ZWRWbm9kZVF1ZXVlKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGVsc2UgaWYgKGlzRGVmKG9sZENoKSkge1xuICAgICAgICAgICAgICAgIHJlbW92ZVZub2RlcyhlbG0sIG9sZENoLCAwLCBvbGRDaC5sZW5ndGggLSAxKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGVsc2UgaWYgKGlzRGVmKG9sZFZub2RlLnRleHQpKSB7XG4gICAgICAgICAgICAgICAgYXBpLnNldFRleHRDb250ZW50KGVsbSwgJycpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGVsc2UgaWYgKG9sZFZub2RlLnRleHQgIT09IHZub2RlLnRleHQpIHtcbiAgICAgICAgICAgIGFwaS5zZXRUZXh0Q29udGVudChlbG0sIHZub2RlLnRleHQpO1xuICAgICAgICB9XG4gICAgICAgIGlmIChpc0RlZihob29rKSAmJiBpc0RlZihpID0gaG9vay5wb3N0cGF0Y2gpKSB7XG4gICAgICAgICAgICBpKG9sZFZub2RlLCB2bm9kZSk7XG4gICAgICAgIH1cbiAgICB9XG4gICAgcmV0dXJuIGZ1bmN0aW9uIHBhdGNoKG9sZFZub2RlLCB2bm9kZSkge1xuICAgICAgICB2YXIgaSwgZWxtLCBwYXJlbnQ7XG4gICAgICAgIHZhciBpbnNlcnRlZFZub2RlUXVldWUgPSBbXTtcbiAgICAgICAgZm9yIChpID0gMDsgaSA8IGNicy5wcmUubGVuZ3RoOyArK2kpXG4gICAgICAgICAgICBjYnMucHJlW2ldKCk7XG4gICAgICAgIGlmICghaXNWbm9kZShvbGRWbm9kZSkpIHtcbiAgICAgICAgICAgIG9sZFZub2RlID0gZW1wdHlOb2RlQXQob2xkVm5vZGUpO1xuICAgICAgICB9XG4gICAgICAgIGlmIChzYW1lVm5vZGUob2xkVm5vZGUsIHZub2RlKSkge1xuICAgICAgICAgICAgcGF0Y2hWbm9kZShvbGRWbm9kZSwgdm5vZGUsIGluc2VydGVkVm5vZGVRdWV1ZSk7XG4gICAgICAgIH1cbiAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICBlbG0gPSBvbGRWbm9kZS5lbG07XG4gICAgICAgICAgICBwYXJlbnQgPSBhcGkucGFyZW50Tm9kZShlbG0pO1xuICAgICAgICAgICAgY3JlYXRlRWxtKHZub2RlLCBpbnNlcnRlZFZub2RlUXVldWUpO1xuICAgICAgICAgICAgaWYgKHBhcmVudCAhPT0gbnVsbCkge1xuICAgICAgICAgICAgICAgIGFwaS5pbnNlcnRCZWZvcmUocGFyZW50LCB2bm9kZS5lbG0sIGFwaS5uZXh0U2libGluZyhlbG0pKTtcbiAgICAgICAgICAgICAgICByZW1vdmVWbm9kZXMocGFyZW50LCBbb2xkVm5vZGVdLCAwLCAwKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBmb3IgKGkgPSAwOyBpIDwgaW5zZXJ0ZWRWbm9kZVF1ZXVlLmxlbmd0aDsgKytpKSB7XG4gICAgICAgICAgICBpbnNlcnRlZFZub2RlUXVldWVbaV0uZGF0YS5ob29rLmluc2VydChpbnNlcnRlZFZub2RlUXVldWVbaV0pO1xuICAgICAgICB9XG4gICAgICAgIGZvciAoaSA9IDA7IGkgPCBjYnMucG9zdC5sZW5ndGg7ICsraSlcbiAgICAgICAgICAgIGNicy5wb3N0W2ldKCk7XG4gICAgICAgIHJldHVybiB2bm9kZTtcbiAgICB9O1xufVxuZXhwb3J0cy5pbml0ID0gaW5pdDtcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPXNuYWJiZG9tLmpzLm1hcCIsIlwidXNlIHN0cmljdFwiO1xuT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsIFwiX19lc01vZHVsZVwiLCB7IHZhbHVlOiB0cnVlIH0pO1xudmFyIGhfMSA9IHJlcXVpcmUoXCIuL2hcIik7XG5mdW5jdGlvbiBjb3B5VG9UaHVuayh2bm9kZSwgdGh1bmspIHtcbiAgICB0aHVuay5lbG0gPSB2bm9kZS5lbG07XG4gICAgdm5vZGUuZGF0YS5mbiA9IHRodW5rLmRhdGEuZm47XG4gICAgdm5vZGUuZGF0YS5hcmdzID0gdGh1bmsuZGF0YS5hcmdzO1xuICAgIHRodW5rLmRhdGEgPSB2bm9kZS5kYXRhO1xuICAgIHRodW5rLmNoaWxkcmVuID0gdm5vZGUuY2hpbGRyZW47XG4gICAgdGh1bmsudGV4dCA9IHZub2RlLnRleHQ7XG4gICAgdGh1bmsuZWxtID0gdm5vZGUuZWxtO1xufVxuZnVuY3Rpb24gaW5pdCh0aHVuaykge1xuICAgIHZhciBjdXIgPSB0aHVuay5kYXRhO1xuICAgIHZhciB2bm9kZSA9IGN1ci5mbi5hcHBseSh1bmRlZmluZWQsIGN1ci5hcmdzKTtcbiAgICBjb3B5VG9UaHVuayh2bm9kZSwgdGh1bmspO1xufVxuZnVuY3Rpb24gcHJlcGF0Y2gob2xkVm5vZGUsIHRodW5rKSB7XG4gICAgdmFyIGksIG9sZCA9IG9sZFZub2RlLmRhdGEsIGN1ciA9IHRodW5rLmRhdGE7XG4gICAgdmFyIG9sZEFyZ3MgPSBvbGQuYXJncywgYXJncyA9IGN1ci5hcmdzO1xuICAgIGlmIChvbGQuZm4gIT09IGN1ci5mbiB8fCBvbGRBcmdzLmxlbmd0aCAhPT0gYXJncy5sZW5ndGgpIHtcbiAgICAgICAgY29weVRvVGh1bmsoY3VyLmZuLmFwcGx5KHVuZGVmaW5lZCwgYXJncyksIHRodW5rKTtcbiAgICAgICAgcmV0dXJuO1xuICAgIH1cbiAgICBmb3IgKGkgPSAwOyBpIDwgYXJncy5sZW5ndGg7ICsraSkge1xuICAgICAgICBpZiAob2xkQXJnc1tpXSAhPT0gYXJnc1tpXSkge1xuICAgICAgICAgICAgY29weVRvVGh1bmsoY3VyLmZuLmFwcGx5KHVuZGVmaW5lZCwgYXJncyksIHRodW5rKTtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuICAgIH1cbiAgICBjb3B5VG9UaHVuayhvbGRWbm9kZSwgdGh1bmspO1xufVxuZXhwb3J0cy50aHVuayA9IGZ1bmN0aW9uIHRodW5rKHNlbCwga2V5LCBmbiwgYXJncykge1xuICAgIGlmIChhcmdzID09PSB1bmRlZmluZWQpIHtcbiAgICAgICAgYXJncyA9IGZuO1xuICAgICAgICBmbiA9IGtleTtcbiAgICAgICAga2V5ID0gdW5kZWZpbmVkO1xuICAgIH1cbiAgICByZXR1cm4gaF8xLmgoc2VsLCB7XG4gICAgICAgIGtleToga2V5LFxuICAgICAgICBob29rOiB7IGluaXQ6IGluaXQsIHByZXBhdGNoOiBwcmVwYXRjaCB9LFxuICAgICAgICBmbjogZm4sXG4gICAgICAgIGFyZ3M6IGFyZ3NcbiAgICB9KTtcbn07XG5leHBvcnRzLmRlZmF1bHQgPSBleHBvcnRzLnRodW5rO1xuLy8jIHNvdXJjZU1hcHBpbmdVUkw9dGh1bmsuanMubWFwIiwiXCJ1c2Ugc3RyaWN0XCI7XG5PYmplY3QuZGVmaW5lUHJvcGVydHkoZXhwb3J0cywgXCJfX2VzTW9kdWxlXCIsIHsgdmFsdWU6IHRydWUgfSk7XG5mdW5jdGlvbiB2bm9kZShzZWwsIGRhdGEsIGNoaWxkcmVuLCB0ZXh0LCBlbG0pIHtcbiAgICB2YXIga2V5ID0gZGF0YSA9PT0gdW5kZWZpbmVkID8gdW5kZWZpbmVkIDogZGF0YS5rZXk7XG4gICAgcmV0dXJuIHsgc2VsOiBzZWwsIGRhdGE6IGRhdGEsIGNoaWxkcmVuOiBjaGlsZHJlbixcbiAgICAgICAgdGV4dDogdGV4dCwgZWxtOiBlbG0sIGtleToga2V5IH07XG59XG5leHBvcnRzLnZub2RlID0gdm5vZGU7XG5leHBvcnRzLmRlZmF1bHQgPSB2bm9kZTtcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPXZub2RlLmpzLm1hcCJdfQ==
  22884. /***/ }),
  22885. /***/ "./node_modules/snabbdom/dist/tovnode.js":
  22886. /*!***********************************************!*\
  22887. !*** ./node_modules/snabbdom/dist/tovnode.js ***!
  22888. \***********************************************/
  22889. /*! no static exports found */
  22890. /***/ (function(module, exports, __webpack_require__) {
  22891. var require;var require;(function(f){if(true){module.exports=f()}else { var g; }})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return require(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
  22892. "use strict";
  22893. Object.defineProperty(exports, "__esModule", { value: true });
  22894. function createElement(tagName) {
  22895. return document.createElement(tagName);
  22896. }
  22897. function createElementNS(namespaceURI, qualifiedName) {
  22898. return document.createElementNS(namespaceURI, qualifiedName);
  22899. }
  22900. function createTextNode(text) {
  22901. return document.createTextNode(text);
  22902. }
  22903. function createComment(text) {
  22904. return document.createComment(text);
  22905. }
  22906. function insertBefore(parentNode, newNode, referenceNode) {
  22907. parentNode.insertBefore(newNode, referenceNode);
  22908. }
  22909. function removeChild(node, child) {
  22910. node.removeChild(child);
  22911. }
  22912. function appendChild(node, child) {
  22913. node.appendChild(child);
  22914. }
  22915. function parentNode(node) {
  22916. return node.parentNode;
  22917. }
  22918. function nextSibling(node) {
  22919. return node.nextSibling;
  22920. }
  22921. function tagName(elm) {
  22922. return elm.tagName;
  22923. }
  22924. function setTextContent(node, text) {
  22925. node.textContent = text;
  22926. }
  22927. function getTextContent(node) {
  22928. return node.textContent;
  22929. }
  22930. function isElement(node) {
  22931. return node.nodeType === 1;
  22932. }
  22933. function isText(node) {
  22934. return node.nodeType === 3;
  22935. }
  22936. function isComment(node) {
  22937. return node.nodeType === 8;
  22938. }
  22939. exports.htmlDomApi = {
  22940. createElement: createElement,
  22941. createElementNS: createElementNS,
  22942. createTextNode: createTextNode,
  22943. createComment: createComment,
  22944. insertBefore: insertBefore,
  22945. removeChild: removeChild,
  22946. appendChild: appendChild,
  22947. parentNode: parentNode,
  22948. nextSibling: nextSibling,
  22949. tagName: tagName,
  22950. setTextContent: setTextContent,
  22951. getTextContent: getTextContent,
  22952. isElement: isElement,
  22953. isText: isText,
  22954. isComment: isComment,
  22955. };
  22956. exports.default = exports.htmlDomApi;
  22957. },{}],2:[function(require,module,exports){
  22958. "use strict";
  22959. Object.defineProperty(exports, "__esModule", { value: true });
  22960. var vnode_1 = require("./vnode");
  22961. var htmldomapi_1 = require("./htmldomapi");
  22962. function toVNode(node, domApi) {
  22963. var api = domApi !== undefined ? domApi : htmldomapi_1.default;
  22964. var text;
  22965. if (api.isElement(node)) {
  22966. var id = node.id ? '#' + node.id : '';
  22967. var cn = node.getAttribute('class');
  22968. var c = cn ? '.' + cn.split(' ').join('.') : '';
  22969. var sel = api.tagName(node).toLowerCase() + id + c;
  22970. var attrs = {};
  22971. var children = [];
  22972. var name_1;
  22973. var i = void 0, n = void 0;
  22974. var elmAttrs = node.attributes;
  22975. var elmChildren = node.childNodes;
  22976. for (i = 0, n = elmAttrs.length; i < n; i++) {
  22977. name_1 = elmAttrs[i].nodeName;
  22978. if (name_1 !== 'id' && name_1 !== 'class') {
  22979. attrs[name_1] = elmAttrs[i].nodeValue;
  22980. }
  22981. }
  22982. for (i = 0, n = elmChildren.length; i < n; i++) {
  22983. children.push(toVNode(elmChildren[i]));
  22984. }
  22985. return vnode_1.default(sel, { attrs: attrs }, children, undefined, node);
  22986. }
  22987. else if (api.isText(node)) {
  22988. text = api.getTextContent(node);
  22989. return vnode_1.default(undefined, undefined, undefined, text, node);
  22990. }
  22991. else if (api.isComment(node)) {
  22992. text = api.getTextContent(node);
  22993. return vnode_1.default('!', {}, [], text, node);
  22994. }
  22995. else {
  22996. return vnode_1.default('', {}, [], undefined, undefined);
  22997. }
  22998. }
  22999. exports.toVNode = toVNode;
  23000. exports.default = toVNode;
  23001. },{"./htmldomapi":1,"./vnode":3}],3:[function(require,module,exports){
  23002. "use strict";
  23003. Object.defineProperty(exports, "__esModule", { value: true });
  23004. function vnode(sel, data, children, text, elm) {
  23005. var key = data === undefined ? undefined : data.key;
  23006. return { sel: sel, data: data, children: children,
  23007. text: text, elm: elm, key: key };
  23008. }
  23009. exports.vnode = vnode;
  23010. exports.default = vnode;
  23011. },{}]},{},[2])(2)
  23012. });
  23013. //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy8ucmVnaXN0cnkubnBtanMub3JnL2Jyb3dzZXItcGFjay82LjAuMi9ub2RlX21vZHVsZXMvYnJvd3Nlci1wYWNrL19wcmVsdWRlLmpzIiwiaHRtbGRvbWFwaS5qcyIsInRvdm5vZGUuanMiLCJ2bm9kZS5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQ0FBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUNqRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUMzQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJmaWxlIjoiZ2VuZXJhdGVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXNDb250ZW50IjpbIihmdW5jdGlvbiBlKHQsbixyKXtmdW5jdGlvbiBzKG8sdSl7aWYoIW5bb10pe2lmKCF0W29dKXt2YXIgYT10eXBlb2YgcmVxdWlyZT09XCJmdW5jdGlvblwiJiZyZXF1aXJlO2lmKCF1JiZhKXJldHVybiBhKG8sITApO2lmKGkpcmV0dXJuIGkobywhMCk7dmFyIGY9bmV3IEVycm9yKFwiQ2Fubm90IGZpbmQgbW9kdWxlICdcIitvK1wiJ1wiKTt0aHJvdyBmLmNvZGU9XCJNT0RVTEVfTk9UX0ZPVU5EXCIsZn12YXIgbD1uW29dPXtleHBvcnRzOnt9fTt0W29dWzBdLmNhbGwobC5leHBvcnRzLGZ1bmN0aW9uKGUpe3ZhciBuPXRbb11bMV1bZV07cmV0dXJuIHMobj9uOmUpfSxsLGwuZXhwb3J0cyxlLHQsbixyKX1yZXR1cm4gbltvXS5leHBvcnRzfXZhciBpPXR5cGVvZiByZXF1aXJlPT1cImZ1bmN0aW9uXCImJnJlcXVpcmU7Zm9yKHZhciBvPTA7bzxyLmxlbmd0aDtvKyspcyhyW29dKTtyZXR1cm4gc30pIiwiXCJ1c2Ugc3RyaWN0XCI7XG5PYmplY3QuZGVmaW5lUHJvcGVydHkoZXhwb3J0cywgXCJfX2VzTW9kdWxlXCIsIHsgdmFsdWU6IHRydWUgfSk7XG5mdW5jdGlvbiBjcmVhdGVFbGVtZW50KHRhZ05hbWUpIHtcbiAgICByZXR1cm4gZG9jdW1lbnQuY3JlYXRlRWxlbWVudCh0YWdOYW1lKTtcbn1cbmZ1bmN0aW9uIGNyZWF0ZUVsZW1lbnROUyhuYW1lc3BhY2VVUkksIHF1YWxpZmllZE5hbWUpIHtcbiAgICByZXR1cm4gZG9jdW1lbnQuY3JlYXRlRWxlbWVudE5TKG5hbWVzcGFjZVVSSSwgcXVhbGlmaWVkTmFtZSk7XG59XG5mdW5jdGlvbiBjcmVhdGVUZXh0Tm9kZSh0ZXh0KSB7XG4gICAgcmV0dXJuIGRvY3VtZW50LmNyZWF0ZVRleHROb2RlKHRleHQpO1xufVxuZnVuY3Rpb24gY3JlYXRlQ29tbWVudCh0ZXh0KSB7XG4gICAgcmV0dXJuIGRvY3VtZW50LmNyZWF0ZUNvbW1lbnQodGV4dCk7XG59XG5mdW5jdGlvbiBpbnNlcnRCZWZvcmUocGFyZW50Tm9kZSwgbmV3Tm9kZSwgcmVmZXJlbmNlTm9kZSkge1xuICAgIHBhcmVudE5vZGUuaW5zZXJ0QmVmb3JlKG5ld05vZGUsIHJlZmVyZW5jZU5vZGUpO1xufVxuZnVuY3Rpb24gcmVtb3ZlQ2hpbGQobm9kZSwgY2hpbGQpIHtcbiAgICBub2RlLnJlbW92ZUNoaWxkKGNoaWxkKTtcbn1cbmZ1bmN0aW9uIGFwcGVuZENoaWxkKG5vZGUsIGNoaWxkKSB7XG4gICAgbm9kZS5hcHBlbmRDaGlsZChjaGlsZCk7XG59XG5mdW5jdGlvbiBwYXJlbnROb2RlKG5vZGUpIHtcbiAgICByZXR1cm4gbm9kZS5wYXJlbnROb2RlO1xufVxuZnVuY3Rpb24gbmV4dFNpYmxpbmcobm9kZSkge1xuICAgIHJldHVybiBub2RlLm5leHRTaWJsaW5nO1xufVxuZnVuY3Rpb24gdGFnTmFtZShlbG0pIHtcbiAgICByZXR1cm4gZWxtLnRhZ05hbWU7XG59XG5mdW5jdGlvbiBzZXRUZXh0Q29udGVudChub2RlLCB0ZXh0KSB7XG4gICAgbm9kZS50ZXh0Q29udGVudCA9IHRleHQ7XG59XG5mdW5jdGlvbiBnZXRUZXh0Q29udGVudChub2RlKSB7XG4gICAgcmV0dXJuIG5vZGUudGV4dENvbnRlbnQ7XG59XG5mdW5jdGlvbiBpc0VsZW1lbnQobm9kZSkge1xuICAgIHJldHVybiBub2RlLm5vZGVUeXBlID09PSAxO1xufVxuZnVuY3Rpb24gaXNUZXh0KG5vZGUpIHtcbiAgICByZXR1cm4gbm9kZS5ub2RlVHlwZSA9PT0gMztcbn1cbmZ1bmN0aW9uIGlzQ29tbWVudChub2RlKSB7XG4gICAgcmV0dXJuIG5vZGUubm9kZVR5cGUgPT09IDg7XG59XG5leHBvcnRzLmh0bWxEb21BcGkgPSB7XG4gICAgY3JlYXRlRWxlbWVudDogY3JlYXRlRWxlbWVudCxcbiAgICBjcmVhdGVFbGVtZW50TlM6IGNyZWF0ZUVsZW1lbnROUyxcbiAgICBjcmVhdGVUZXh0Tm9kZTogY3JlYXRlVGV4dE5vZGUsXG4gICAgY3JlYXRlQ29tbWVudDogY3JlYXRlQ29tbWVudCxcbiAgICBpbnNlcnRCZWZvcmU6IGluc2VydEJlZm9yZSxcbiAgICByZW1vdmVDaGlsZDogcmVtb3ZlQ2hpbGQsXG4gICAgYXBwZW5kQ2hpbGQ6IGFwcGVuZENoaWxkLFxuICAgIHBhcmVudE5vZGU6IHBhcmVudE5vZGUsXG4gICAgbmV4dFNpYmxpbmc6IG5leHRTaWJsaW5nLFxuICAgIHRhZ05hbWU6IHRhZ05hbWUsXG4gICAgc2V0VGV4dENvbnRlbnQ6IHNldFRleHRDb250ZW50LFxuICAgIGdldFRleHRDb250ZW50OiBnZXRUZXh0Q29udGVudCxcbiAgICBpc0VsZW1lbnQ6IGlzRWxlbWVudCxcbiAgICBpc1RleHQ6IGlzVGV4dCxcbiAgICBpc0NvbW1lbnQ6IGlzQ29tbWVudCxcbn07XG5leHBvcnRzLmRlZmF1bHQgPSBleHBvcnRzLmh0bWxEb21BcGk7XG4vLyMgc291cmNlTWFwcGluZ1VSTD1odG1sZG9tYXBpLmpzLm1hcCIsIlwidXNlIHN0cmljdFwiO1xuT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsIFwiX19lc01vZHVsZVwiLCB7IHZhbHVlOiB0cnVlIH0pO1xudmFyIHZub2RlXzEgPSByZXF1aXJlKFwiLi92bm9kZVwiKTtcbnZhciBodG1sZG9tYXBpXzEgPSByZXF1aXJlKFwiLi9odG1sZG9tYXBpXCIpO1xuZnVuY3Rpb24gdG9WTm9kZShub2RlLCBkb21BcGkpIHtcbiAgICB2YXIgYXBpID0gZG9tQXBpICE9PSB1bmRlZmluZWQgPyBkb21BcGkgOiBodG1sZG9tYXBpXzEuZGVmYXVsdDtcbiAgICB2YXIgdGV4dDtcbiAgICBpZiAoYXBpLmlzRWxlbWVudChub2RlKSkge1xuICAgICAgICB2YXIgaWQgPSBub2RlLmlkID8gJyMnICsgbm9kZS5pZCA6ICcnO1xuICAgICAgICB2YXIgY24gPSBub2RlLmdldEF0dHJpYnV0ZSgnY2xhc3MnKTtcbiAgICAgICAgdmFyIGMgPSBjbiA/ICcuJyArIGNuLnNwbGl0KCcgJykuam9pbignLicpIDogJyc7XG4gICAgICAgIHZhciBzZWwgPSBhcGkudGFnTmFtZShub2RlKS50b0xvd2VyQ2FzZSgpICsgaWQgKyBjO1xuICAgICAgICB2YXIgYXR0cnMgPSB7fTtcbiAgICAgICAgdmFyIGNoaWxkcmVuID0gW107XG4gICAgICAgIHZhciBuYW1lXzE7XG4gICAgICAgIHZhciBpID0gdm9pZCAwLCBuID0gdm9pZCAwO1xuICAgICAgICB2YXIgZWxtQXR0cnMgPSBub2RlLmF0dHJpYnV0ZXM7XG4gICAgICAgIHZhciBlbG1DaGlsZHJlbiA9IG5vZGUuY2hpbGROb2RlcztcbiAgICAgICAgZm9yIChpID0gMCwgbiA9IGVsbUF0dHJzLmxlbmd0aDsgaSA8IG47IGkrKykge1xuICAgICAgICAgICAgbmFtZV8xID0gZWxtQXR0cnNbaV0ubm9kZU5hbWU7XG4gICAgICAgICAgICBpZiAobmFtZV8xICE9PSAnaWQnICYmIG5hbWVfMSAhPT0gJ2NsYXNzJykge1xuICAgICAgICAgICAgICAgIGF0dHJzW25hbWVfMV0gPSBlbG1BdHRyc1tpXS5ub2RlVmFsdWU7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgZm9yIChpID0gMCwgbiA9IGVsbUNoaWxkcmVuLmxlbmd0aDsgaSA8IG47IGkrKykge1xuICAgICAgICAgICAgY2hpbGRyZW4ucHVzaCh0b1ZOb2RlKGVsbUNoaWxkcmVuW2ldKSk7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIHZub2RlXzEuZGVmYXVsdChzZWwsIHsgYXR0cnM6IGF0dHJzIH0sIGNoaWxkcmVuLCB1bmRlZmluZWQsIG5vZGUpO1xuICAgIH1cbiAgICBlbHNlIGlmIChhcGkuaXNUZXh0KG5vZGUpKSB7XG4gICAgICAgIHRleHQgPSBhcGkuZ2V0VGV4dENvbnRlbnQobm9kZSk7XG4gICAgICAgIHJldHVybiB2bm9kZV8xLmRlZmF1bHQodW5kZWZpbmVkLCB1bmRlZmluZWQsIHVuZGVmaW5lZCwgdGV4dCwgbm9kZSk7XG4gICAgfVxuICAgIGVsc2UgaWYgKGFwaS5pc0NvbW1lbnQobm9kZSkpIHtcbiAgICAgICAgdGV4dCA9IGFwaS5nZXRUZXh0Q29udGVudChub2RlKTtcbiAgICAgICAgcmV0dXJuIHZub2RlXzEuZGVmYXVsdCgnIScsIHt9LCBbXSwgdGV4dCwgbm9kZSk7XG4gICAgfVxuICAgIGVsc2Uge1xuICAgICAgICByZXR1cm4gdm5vZGVfMS5kZWZhdWx0KCcnLCB7fSwgW10sIHVuZGVmaW5lZCwgdW5kZWZpbmVkKTtcbiAgICB9XG59XG5leHBvcnRzLnRvVk5vZGUgPSB0b1ZOb2RlO1xuZXhwb3J0cy5kZWZhdWx0ID0gdG9WTm9kZTtcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPXRvdm5vZGUuanMubWFwIiwiXCJ1c2Ugc3RyaWN0XCI7XG5PYmplY3QuZGVmaW5lUHJvcGVydHkoZXhwb3J0cywgXCJfX2VzTW9kdWxlXCIsIHsgdmFsdWU6IHRydWUgfSk7XG5mdW5jdGlvbiB2bm9kZShzZWwsIGRhdGEsIGNoaWxkcmVuLCB0ZXh0LCBlbG0pIHtcbiAgICB2YXIga2V5ID0gZGF0YSA9PT0gdW5kZWZpbmVkID8gdW5kZWZpbmVkIDogZGF0YS5rZXk7XG4gICAgcmV0dXJuIHsgc2VsOiBzZWwsIGRhdGE6IGRhdGEsIGNoaWxkcmVuOiBjaGlsZHJlbixcbiAgICAgICAgdGV4dDogdGV4dCwgZWxtOiBlbG0sIGtleToga2V5IH07XG59XG5leHBvcnRzLnZub2RlID0gdm5vZGU7XG5leHBvcnRzLmRlZmF1bHQgPSB2bm9kZTtcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPXZub2RlLmpzLm1hcCJdfQ==
  23014. /***/ }),
  23015. /***/ "./node_modules/twemoji/2/esm.js":
  23016. /*!***************************************!*\
  23017. !*** ./node_modules/twemoji/2/esm.js ***!
  23018. \***************************************/
  23019. /*! exports provided: default */
  23020. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23021. "use strict";
  23022. __webpack_require__.r(__webpack_exports__);
  23023. /*! Copyright Twitter Inc. and other contributors. Licensed under MIT */
  23024. var twemoji=function(){"use strict";var twemoji={base:"https://twemoji.maxcdn.com/2/",ext:".png",size:"72x72",className:"emoji",convert:{fromCodePoint:fromCodePoint,toCodePoint:toCodePoint},onerror:function onerror(){if(this.parentNode){this.parentNode.replaceChild(createText(this.alt,false),this)}},parse:parse,replace:replace,test:test},escaper={"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},re=/(?:\ud83d[\udc68\udc69])(?:\ud83c[\udffb-\udfff])?\u200d(?:\u2695\ufe0f|\u2696\ufe0f|\u2708\ufe0f|\ud83c[\udf3e\udf73\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e[\uddb0-\uddb3])|(?:\ud83c[\udfcb\udfcc]|\ud83d[\udd74\udd75]|\u26f9)((?:\ud83c[\udffb-\udfff]|\ufe0f)\u200d[\u2640\u2642]\ufe0f)|(?:\ud83c[\udfc3\udfc4\udfca]|\ud83d[\udc6e\udc71\udc73\udc77\udc81\udc82\udc86\udc87\ude45-\ude47\ude4b\ude4d\ude4e\udea3\udeb4-\udeb6]|\ud83e[\udd26\udd35\udd37-\udd39\udd3d\udd3e\uddb8\uddb9\uddd6-\udddd])(?:\ud83c[\udffb-\udfff])?\u200d[\u2640\u2642]\ufe0f|(?:\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d[\udc68\udc69]|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc68|\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d[\udc68\udc69]|\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83c\udff3\ufe0f\u200d\ud83c\udf08|\ud83c\udff4\u200d\u2620\ufe0f|\ud83d\udc41\u200d\ud83d\udde8|\ud83d\udc68\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83d\udc6f\u200d\u2640\ufe0f|\ud83d\udc6f\u200d\u2642\ufe0f|\ud83e\udd3c\u200d\u2640\ufe0f|\ud83e\udd3c\u200d\u2642\ufe0f|\ud83e\uddde\u200d\u2640\ufe0f|\ud83e\uddde\u200d\u2642\ufe0f|\ud83e\udddf\u200d\u2640\ufe0f|\ud83e\udddf\u200d\u2642\ufe0f)|[\u0023\u002a\u0030-\u0039]\ufe0f?\u20e3|(?:[\u00a9\u00ae\u2122\u265f]\ufe0f)|(?:\ud83c[\udc04\udd70\udd71\udd7e\udd7f\ude02\ude1a\ude2f\ude37\udf21\udf24-\udf2c\udf36\udf7d\udf96\udf97\udf99-\udf9b\udf9e\udf9f\udfcd\udfce\udfd4-\udfdf\udff3\udff5\udff7]|\ud83d[\udc3f\udc41\udcfd\udd49\udd4a\udd6f\udd70\udd73\udd76-\udd79\udd87\udd8a-\udd8d\udda5\udda8\uddb1\uddb2\uddbc\uddc2-\uddc4\uddd1-\uddd3\udddc-\uddde\udde1\udde3\udde8\uddef\uddf3\uddfa\udecb\udecd-\udecf\udee0-\udee5\udee9\udef0\udef3]|[\u203c\u2049\u2139\u2194-\u2199\u21a9\u21aa\u231a\u231b\u2328\u23cf\u23ed-\u23ef\u23f1\u23f2\u23f8-\u23fa\u24c2\u25aa\u25ab\u25b6\u25c0\u25fb-\u25fe\u2600-\u2604\u260e\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262a\u262e\u262f\u2638-\u263a\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267b\u267f\u2692-\u2697\u2699\u269b\u269c\u26a0\u26a1\u26aa\u26ab\u26b0\u26b1\u26bd\u26be\u26c4\u26c5\u26c8\u26cf\u26d1\u26d3\u26d4\u26e9\u26ea\u26f0-\u26f5\u26f8\u26fa\u26fd\u2702\u2708\u2709\u270f\u2712\u2714\u2716\u271d\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u2764\u27a1\u2934\u2935\u2b05-\u2b07\u2b1b\u2b1c\u2b50\u2b55\u3030\u303d\u3297\u3299])(?:\ufe0f|(?!\ufe0e))|(?:(?:\ud83c[\udfcb\udfcc]|\ud83d[\udd74\udd75\udd90]|[\u261d\u26f7\u26f9\u270c\u270d])(?:\ufe0f|(?!\ufe0e))|(?:\ud83c[\udf85\udfc2-\udfc4\udfc7\udfca]|\ud83d[\udc42\udc43\udc46-\udc50\udc66-\udc69\udc6e\udc70-\udc78\udc7c\udc81-\udc83\udc85-\udc87\udcaa\udd7a\udd95\udd96\ude45-\ude47\ude4b-\ude4f\udea3\udeb4-\udeb6\udec0\udecc]|\ud83e[\udd18-\udd1c\udd1e\udd1f\udd26\udd30-\udd39\udd3d\udd3e\uddb5\uddb6\uddb8\uddb9\uddd1-\udddd]|[\u270a\u270b]))(?:\ud83c[\udffb-\udfff])?|(?:\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc65\udb40\udc6e\udb40\udc67\udb40\udc7f|\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc73\udb40\udc63\udb40\udc74\udb40\udc7f|\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc77\udb40\udc6c\udb40\udc73\udb40\udc7f|\ud83c\udde6\ud83c[\udde8-\uddec\uddee\uddf1\uddf2\uddf4\uddf6-\uddfa\uddfc\uddfd\uddff]|\ud83c\udde7\ud83c[\udde6\udde7\udde9-\uddef\uddf1-\uddf4\uddf6-\uddf9\uddfb\uddfc\uddfe\uddff]|\ud83c\udde8\ud83c[\udde6\udde8\udde9\uddeb-\uddee\uddf0-\uddf5\uddf7\uddfa-\uddff]|\ud83c\udde9\ud83c[\uddea\uddec\uddef\uddf0\uddf2\uddf4\uddff]|\ud83c\uddea\ud83c[\udde6\udde8\uddea\uddec\udded\uddf7-\uddfa]|\ud83c\uddeb\ud83c[\uddee-\uddf0\uddf2\uddf4\uddf7]|\ud83c\uddec\ud83c[\udde6\udde7\udde9-\uddee\uddf1-\uddf3\uddf5-\uddfa\uddfc\uddfe]|\ud83c\udded\ud83c[\uddf0\uddf2\uddf3\uddf7\uddf9\uddfa]|\ud83c\uddee\ud83c[\udde8-\uddea\uddf1-\uddf4\uddf6-\uddf9]|\ud83c\uddef\ud83c[\uddea\uddf2\uddf4\uddf5]|\ud83c\uddf0\ud83c[\uddea\uddec-\uddee\uddf2\uddf3\uddf5\uddf7\uddfc\uddfe\uddff]|\ud83c\uddf1\ud83c[\udde6-\udde8\uddee\uddf0\uddf7-\uddfb\uddfe]|\ud83c\uddf2\ud83c[\udde6\udde8-\udded\uddf0-\uddff]|\ud83c\uddf3\ud83c[\udde6\udde8\uddea-\uddec\uddee\uddf1\uddf4\uddf5\uddf7\uddfa\uddff]|\ud83c\uddf4\ud83c\uddf2|\ud83c\uddf5\ud83c[\udde6\uddea-\udded\uddf0-\uddf3\uddf7-\uddf9\uddfc\uddfe]|\ud83c\uddf6\ud83c\udde6|\ud83c\uddf7\ud83c[\uddea\uddf4\uddf8\uddfa\uddfc]|\ud83c\uddf8\ud83c[\udde6-\uddea\uddec-\uddf4\uddf7-\uddf9\uddfb\uddfd-\uddff]|\ud83c\uddf9\ud83c[\udde6\udde8\udde9\uddeb-\udded\uddef-\uddf4\uddf7\uddf9\uddfb\uddfc\uddff]|\ud83c\uddfa\ud83c[\udde6\uddec\uddf2\uddf3\uddf8\uddfe\uddff]|\ud83c\uddfb\ud83c[\udde6\udde8\uddea\uddec\uddee\uddf3\uddfa]|\ud83c\uddfc\ud83c[\uddeb\uddf8]|\ud83c\uddfd\ud83c\uddf0|\ud83c\uddfe\ud83c[\uddea\uddf9]|\ud83c\uddff\ud83c[\udde6\uddf2\uddfc]|\ud83c[\udccf\udd8e\udd91-\udd9a\udde6-\uddff\ude01\ude32-\ude36\ude38-\ude3a\ude50\ude51\udf00-\udf20\udf2d-\udf35\udf37-\udf7c\udf7e-\udf84\udf86-\udf93\udfa0-\udfc1\udfc5\udfc6\udfc8\udfc9\udfcf-\udfd3\udfe0-\udff0\udff4\udff8-\udfff]|\ud83d[\udc00-\udc3e\udc40\udc44\udc45\udc51-\udc65\udc6a-\udc6d\udc6f\udc79-\udc7b\udc7d-\udc80\udc84\udc88-\udca9\udcab-\udcfc\udcff-\udd3d\udd4b-\udd4e\udd50-\udd67\udda4\uddfb-\ude44\ude48-\ude4a\ude80-\udea2\udea4-\udeb3\udeb7-\udebf\udec1-\udec5\uded0-\uded2\udeeb\udeec\udef4-\udef9]|\ud83e[\udd10-\udd17\udd1d\udd20-\udd25\udd27-\udd2f\udd3a\udd3c\udd40-\udd45\udd47-\udd70\udd73-\udd76\udd7a\udd7c-\udda2\uddb4\uddb7\uddc0-\uddc2\uddd0\uddde-\uddff]|[\u23e9-\u23ec\u23f0\u23f3\u267e\u26ce\u2705\u2728\u274c\u274e\u2753-\u2755\u2795-\u2797\u27b0\u27bf\ue50a])|\ufe0f/g,UFE0Fg=/\uFE0F/g,U200D=String.fromCharCode(8205),rescaper=/[&<>'"]/g,shouldntBeParsed=/^(?:iframe|noframes|noscript|script|select|style|textarea)$/,fromCharCode=String.fromCharCode;return twemoji;function createText(text,clean){return document.createTextNode(clean?text.replace(UFE0Fg,""):text)}function escapeHTML(s){return s.replace(rescaper,replacer)}function defaultImageSrcGenerator(icon,options){return"".concat(options.base,options.size,"/",icon,options.ext)}function grabAllTextNodes(node,allText){var childNodes=node.childNodes,length=childNodes.length,subnode,nodeType;while(length--){subnode=childNodes[length];nodeType=subnode.nodeType;if(nodeType===3){allText.push(subnode)}else if(nodeType===1&&!("ownerSVGElement"in subnode)&&!shouldntBeParsed.test(subnode.nodeName.toLowerCase())){grabAllTextNodes(subnode,allText)}}return allText}function grabTheRightIcon(rawText){return toCodePoint(rawText.indexOf(U200D)<0?rawText.replace(UFE0Fg,""):rawText)}function parseNode(node,options){var allText=grabAllTextNodes(node,[]),length=allText.length,attrib,attrname,modified,fragment,subnode,text,match,i,index,img,rawText,iconId,src;while(length--){modified=false;fragment=document.createDocumentFragment();subnode=allText[length];text=subnode.nodeValue;i=0;while(match=re.exec(text)){index=match.index;if(index!==i){fragment.appendChild(createText(text.slice(i,index),true))}rawText=match[0];iconId=grabTheRightIcon(rawText);i=index+rawText.length;src=options.callback(iconId,options);if(iconId&&src){img=new Image;img.onerror=options.onerror;img.setAttribute("draggable","false");attrib=options.attributes(rawText,iconId);for(attrname in attrib){if(attrib.hasOwnProperty(attrname)&&attrname.indexOf("on")!==0&&!img.hasAttribute(attrname)){img.setAttribute(attrname,attrib[attrname])}}img.className=options.className;img.alt=rawText;img.src=src;modified=true;fragment.appendChild(img)}if(!img)fragment.appendChild(createText(rawText,false));img=null}if(modified){if(i<text.length){fragment.appendChild(createText(text.slice(i),true))}subnode.parentNode.replaceChild(fragment,subnode)}}return node}function parseString(str,options){return replace(str,function(rawText){var ret=rawText,iconId=grabTheRightIcon(rawText),src=options.callback(iconId,options),attrib,attrname;if(iconId&&src){ret="<img ".concat('class="',options.className,'" ','draggable="false" ','alt="',rawText,'"',' src="',src,'"');attrib=options.attributes(rawText,iconId);for(attrname in attrib){if(attrib.hasOwnProperty(attrname)&&attrname.indexOf("on")!==0&&ret.indexOf(" "+attrname+"=")===-1){ret=ret.concat(" ",attrname,'="',escapeHTML(attrib[attrname]),'"')}}ret=ret.concat("/>")}return ret})}function replacer(m){return escaper[m]}function returnNull(){return null}function toSizeSquaredAsset(value){return typeof value==="number"?value+"x"+value:value}function fromCodePoint(codepoint){var code=typeof codepoint==="string"?parseInt(codepoint,16):codepoint;if(code<65536){return fromCharCode(code)}code-=65536;return fromCharCode(55296+(code>>10),56320+(code&1023))}function parse(what,how){if(!how||typeof how==="function"){how={callback:how}}return(typeof what==="string"?parseString:parseNode)(what,{callback:how.callback||defaultImageSrcGenerator,attributes:typeof how.attributes==="function"?how.attributes:returnNull,base:typeof how.base==="string"?how.base:twemoji.base,ext:how.ext||twemoji.ext,size:how.folder||toSizeSquaredAsset(how.size||twemoji.size),className:how.className||twemoji.className,onerror:how.onerror||twemoji.onerror})}function replace(text,callback){return String(text).replace(re,callback)}function test(text){re.lastIndex=0;var result=re.test(text);re.lastIndex=0;return result}function toCodePoint(unicodeSurrogates,sep){var r=[],c=0,p=0,i=0;while(i<unicodeSurrogates.length){c=unicodeSurrogates.charCodeAt(i++);if(p){r.push((65536+(p-55296<<10)+(c-56320)).toString(16));p=0}else if(55296<=c&&c<=56319){p=c}else{r.push(c.toString(16))}}return r.join(sep||"-")}}();
  23025. /* harmony default export */ __webpack_exports__["default"] = (twemoji);
  23026. /***/ }),
  23027. /***/ "./node_modules/urijs/src/IPv6.js":
  23028. /*!****************************************!*\
  23029. !*** ./node_modules/urijs/src/IPv6.js ***!
  23030. \****************************************/
  23031. /*! no static exports found */
  23032. /***/ (function(module, exports, __webpack_require__) {
  23033. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
  23034. * URI.js - Mutating URLs
  23035. * IPv6 Support
  23036. *
  23037. * Version: 1.19.1
  23038. *
  23039. * Author: Rodney Rehm
  23040. * Web: http://medialize.github.io/URI.js/
  23041. *
  23042. * Licensed under
  23043. * MIT License http://www.opensource.org/licenses/mit-license
  23044. *
  23045. */
  23046. (function (root, factory) {
  23047. 'use strict';
  23048. // https://github.com/umdjs/umd/blob/master/returnExports.js
  23049. if (typeof module === 'object' && module.exports) {
  23050. // Node
  23051. module.exports = factory();
  23052. } else if (true) {
  23053. // AMD. Register as an anonymous module.
  23054. !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23055. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23056. (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
  23057. __WEBPACK_AMD_DEFINE_FACTORY__),
  23058. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  23059. } else {}
  23060. }(this, function (root) {
  23061. 'use strict';
  23062. /*
  23063. var _in = "fe80:0000:0000:0000:0204:61ff:fe9d:f156";
  23064. var _out = IPv6.best(_in);
  23065. var _expected = "fe80::204:61ff:fe9d:f156";
  23066. console.log(_in, _out, _expected, _out === _expected);
  23067. */
  23068. // save current IPv6 variable, if any
  23069. var _IPv6 = root && root.IPv6;
  23070. function bestPresentation(address) {
  23071. // based on:
  23072. // Javascript to test an IPv6 address for proper format, and to
  23073. // present the "best text representation" according to IETF Draft RFC at
  23074. // http://tools.ietf.org/html/draft-ietf-6man-text-addr-representation-04
  23075. // 8 Feb 2010 Rich Brown, Dartware, LLC
  23076. // Please feel free to use this code as long as you provide a link to
  23077. // http://www.intermapper.com
  23078. // http://intermapper.com/support/tools/IPV6-Validator.aspx
  23079. // http://download.dartware.com/thirdparty/ipv6validator.js
  23080. var _address = address.toLowerCase();
  23081. var segments = _address.split(':');
  23082. var length = segments.length;
  23083. var total = 8;
  23084. // trim colons (:: or ::a:b:c… or …a:b:c::)
  23085. if (segments[0] === '' && segments[1] === '' && segments[2] === '') {
  23086. // must have been ::
  23087. // remove first two items
  23088. segments.shift();
  23089. segments.shift();
  23090. } else if (segments[0] === '' && segments[1] === '') {
  23091. // must have been ::xxxx
  23092. // remove the first item
  23093. segments.shift();
  23094. } else if (segments[length - 1] === '' && segments[length - 2] === '') {
  23095. // must have been xxxx::
  23096. segments.pop();
  23097. }
  23098. length = segments.length;
  23099. // adjust total segments for IPv4 trailer
  23100. if (segments[length - 1].indexOf('.') !== -1) {
  23101. // found a "." which means IPv4
  23102. total = 7;
  23103. }
  23104. // fill empty segments them with "0000"
  23105. var pos;
  23106. for (pos = 0; pos < length; pos++) {
  23107. if (segments[pos] === '') {
  23108. break;
  23109. }
  23110. }
  23111. if (pos < total) {
  23112. segments.splice(pos, 1, '0000');
  23113. while (segments.length < total) {
  23114. segments.splice(pos, 0, '0000');
  23115. }
  23116. }
  23117. // strip leading zeros
  23118. var _segments;
  23119. for (var i = 0; i < total; i++) {
  23120. _segments = segments[i].split('');
  23121. for (var j = 0; j < 3 ; j++) {
  23122. if (_segments[0] === '0' && _segments.length > 1) {
  23123. _segments.splice(0,1);
  23124. } else {
  23125. break;
  23126. }
  23127. }
  23128. segments[i] = _segments.join('');
  23129. }
  23130. // find longest sequence of zeroes and coalesce them into one segment
  23131. var best = -1;
  23132. var _best = 0;
  23133. var _current = 0;
  23134. var current = -1;
  23135. var inzeroes = false;
  23136. // i; already declared
  23137. for (i = 0; i < total; i++) {
  23138. if (inzeroes) {
  23139. if (segments[i] === '0') {
  23140. _current += 1;
  23141. } else {
  23142. inzeroes = false;
  23143. if (_current > _best) {
  23144. best = current;
  23145. _best = _current;
  23146. }
  23147. }
  23148. } else {
  23149. if (segments[i] === '0') {
  23150. inzeroes = true;
  23151. current = i;
  23152. _current = 1;
  23153. }
  23154. }
  23155. }
  23156. if (_current > _best) {
  23157. best = current;
  23158. _best = _current;
  23159. }
  23160. if (_best > 1) {
  23161. segments.splice(best, _best, '');
  23162. }
  23163. length = segments.length;
  23164. // assemble remaining segments
  23165. var result = '';
  23166. if (segments[0] === '') {
  23167. result = ':';
  23168. }
  23169. for (i = 0; i < length; i++) {
  23170. result += segments[i];
  23171. if (i === length - 1) {
  23172. break;
  23173. }
  23174. result += ':';
  23175. }
  23176. if (segments[length - 1] === '') {
  23177. result += ':';
  23178. }
  23179. return result;
  23180. }
  23181. function noConflict() {
  23182. /*jshint validthis: true */
  23183. if (root.IPv6 === this) {
  23184. root.IPv6 = _IPv6;
  23185. }
  23186. return this;
  23187. }
  23188. return {
  23189. best: bestPresentation,
  23190. noConflict: noConflict
  23191. };
  23192. }));
  23193. /***/ }),
  23194. /***/ "./node_modules/urijs/src/SecondLevelDomains.js":
  23195. /*!******************************************************!*\
  23196. !*** ./node_modules/urijs/src/SecondLevelDomains.js ***!
  23197. \******************************************************/
  23198. /*! no static exports found */
  23199. /***/ (function(module, exports, __webpack_require__) {
  23200. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
  23201. * URI.js - Mutating URLs
  23202. * Second Level Domain (SLD) Support
  23203. *
  23204. * Version: 1.19.1
  23205. *
  23206. * Author: Rodney Rehm
  23207. * Web: http://medialize.github.io/URI.js/
  23208. *
  23209. * Licensed under
  23210. * MIT License http://www.opensource.org/licenses/mit-license
  23211. *
  23212. */
  23213. (function (root, factory) {
  23214. 'use strict';
  23215. // https://github.com/umdjs/umd/blob/master/returnExports.js
  23216. if (typeof module === 'object' && module.exports) {
  23217. // Node
  23218. module.exports = factory();
  23219. } else if (true) {
  23220. // AMD. Register as an anonymous module.
  23221. !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23222. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23223. (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
  23224. __WEBPACK_AMD_DEFINE_FACTORY__),
  23225. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  23226. } else {}
  23227. }(this, function (root) {
  23228. 'use strict';
  23229. // save current SecondLevelDomains variable, if any
  23230. var _SecondLevelDomains = root && root.SecondLevelDomains;
  23231. var SLD = {
  23232. // list of known Second Level Domains
  23233. // converted list of SLDs from https://github.com/gavingmiller/second-level-domains
  23234. // ----
  23235. // publicsuffix.org is more current and actually used by a couple of browsers internally.
  23236. // downside is it also contains domains like "dyndns.org" - which is fine for the security
  23237. // issues browser have to deal with (SOP for cookies, etc) - but is way overboard for URI.js
  23238. // ----
  23239. list: {
  23240. 'ac':' com gov mil net org ',
  23241. 'ae':' ac co gov mil name net org pro sch ',
  23242. 'af':' com edu gov net org ',
  23243. 'al':' com edu gov mil net org ',
  23244. 'ao':' co ed gv it og pb ',
  23245. 'ar':' com edu gob gov int mil net org tur ',
  23246. 'at':' ac co gv or ',
  23247. 'au':' asn com csiro edu gov id net org ',
  23248. 'ba':' co com edu gov mil net org rs unbi unmo unsa untz unze ',
  23249. 'bb':' biz co com edu gov info net org store tv ',
  23250. 'bh':' biz cc com edu gov info net org ',
  23251. 'bn':' com edu gov net org ',
  23252. 'bo':' com edu gob gov int mil net org tv ',
  23253. 'br':' adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ',
  23254. 'bs':' com edu gov net org ',
  23255. 'bz':' du et om ov rg ',
  23256. 'ca':' ab bc mb nb nf nl ns nt nu on pe qc sk yk ',
  23257. 'ck':' biz co edu gen gov info net org ',
  23258. 'cn':' ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ',
  23259. 'co':' com edu gov mil net nom org ',
  23260. 'cr':' ac c co ed fi go or sa ',
  23261. 'cy':' ac biz com ekloges gov ltd name net org parliament press pro tm ',
  23262. 'do':' art com edu gob gov mil net org sld web ',
  23263. 'dz':' art asso com edu gov net org pol ',
  23264. 'ec':' com edu fin gov info med mil net org pro ',
  23265. 'eg':' com edu eun gov mil name net org sci ',
  23266. 'er':' com edu gov ind mil net org rochest w ',
  23267. 'es':' com edu gob nom org ',
  23268. 'et':' biz com edu gov info name net org ',
  23269. 'fj':' ac biz com info mil name net org pro ',
  23270. 'fk':' ac co gov net nom org ',
  23271. 'fr':' asso com f gouv nom prd presse tm ',
  23272. 'gg':' co net org ',
  23273. 'gh':' com edu gov mil org ',
  23274. 'gn':' ac com gov net org ',
  23275. 'gr':' com edu gov mil net org ',
  23276. 'gt':' com edu gob ind mil net org ',
  23277. 'gu':' com edu gov net org ',
  23278. 'hk':' com edu gov idv net org ',
  23279. 'hu':' 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ',
  23280. 'id':' ac co go mil net or sch web ',
  23281. 'il':' ac co gov idf k12 muni net org ',
  23282. 'in':' ac co edu ernet firm gen gov i ind mil net nic org res ',
  23283. 'iq':' com edu gov i mil net org ',
  23284. 'ir':' ac co dnssec gov i id net org sch ',
  23285. 'it':' edu gov ',
  23286. 'je':' co net org ',
  23287. 'jo':' com edu gov mil name net org sch ',
  23288. 'jp':' ac ad co ed go gr lg ne or ',
  23289. 'ke':' ac co go info me mobi ne or sc ',
  23290. 'kh':' com edu gov mil net org per ',
  23291. 'ki':' biz com de edu gov info mob net org tel ',
  23292. 'km':' asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ',
  23293. 'kn':' edu gov net org ',
  23294. 'kr':' ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ',
  23295. 'kw':' com edu gov net org ',
  23296. 'ky':' com edu gov net org ',
  23297. 'kz':' com edu gov mil net org ',
  23298. 'lb':' com edu gov net org ',
  23299. 'lk':' assn com edu gov grp hotel int ltd net ngo org sch soc web ',
  23300. 'lr':' com edu gov net org ',
  23301. 'lv':' asn com conf edu gov id mil net org ',
  23302. 'ly':' com edu gov id med net org plc sch ',
  23303. 'ma':' ac co gov m net org press ',
  23304. 'mc':' asso tm ',
  23305. 'me':' ac co edu gov its net org priv ',
  23306. 'mg':' com edu gov mil nom org prd tm ',
  23307. 'mk':' com edu gov inf name net org pro ',
  23308. 'ml':' com edu gov net org presse ',
  23309. 'mn':' edu gov org ',
  23310. 'mo':' com edu gov net org ',
  23311. 'mt':' com edu gov net org ',
  23312. 'mv':' aero biz com coop edu gov info int mil museum name net org pro ',
  23313. 'mw':' ac co com coop edu gov int museum net org ',
  23314. 'mx':' com edu gob net org ',
  23315. 'my':' com edu gov mil name net org sch ',
  23316. 'nf':' arts com firm info net other per rec store web ',
  23317. 'ng':' biz com edu gov mil mobi name net org sch ',
  23318. 'ni':' ac co com edu gob mil net nom org ',
  23319. 'np':' com edu gov mil net org ',
  23320. 'nr':' biz com edu gov info net org ',
  23321. 'om':' ac biz co com edu gov med mil museum net org pro sch ',
  23322. 'pe':' com edu gob mil net nom org sld ',
  23323. 'ph':' com edu gov i mil net ngo org ',
  23324. 'pk':' biz com edu fam gob gok gon gop gos gov net org web ',
  23325. 'pl':' art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ',
  23326. 'pr':' ac biz com edu est gov info isla name net org pro prof ',
  23327. 'ps':' com edu gov net org plo sec ',
  23328. 'pw':' belau co ed go ne or ',
  23329. 'ro':' arts com firm info nom nt org rec store tm www ',
  23330. 'rs':' ac co edu gov in org ',
  23331. 'sb':' com edu gov net org ',
  23332. 'sc':' com edu gov net org ',
  23333. 'sh':' co com edu gov net nom org ',
  23334. 'sl':' com edu gov net org ',
  23335. 'st':' co com consulado edu embaixada gov mil net org principe saotome store ',
  23336. 'sv':' com edu gob org red ',
  23337. 'sz':' ac co org ',
  23338. 'tr':' av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ',
  23339. 'tt':' aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ',
  23340. 'tw':' club com ebiz edu game gov idv mil net org ',
  23341. 'mu':' ac co com gov net or org ',
  23342. 'mz':' ac co edu gov org ',
  23343. 'na':' co com ',
  23344. 'nz':' ac co cri geek gen govt health iwi maori mil net org parliament school ',
  23345. 'pa':' abo ac com edu gob ing med net nom org sld ',
  23346. 'pt':' com edu gov int net nome org publ ',
  23347. 'py':' com edu gov mil net org ',
  23348. 'qa':' com edu gov mil net org ',
  23349. 're':' asso com nom ',
  23350. 'ru':' ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ',
  23351. 'rw':' ac co com edu gouv gov int mil net ',
  23352. 'sa':' com edu gov med net org pub sch ',
  23353. 'sd':' com edu gov info med net org tv ',
  23354. 'se':' a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ',
  23355. 'sg':' com edu gov idn net org per ',
  23356. 'sn':' art com edu gouv org perso univ ',
  23357. 'sy':' com edu gov mil net news org ',
  23358. 'th':' ac co go in mi net or ',
  23359. 'tj':' ac biz co com edu go gov info int mil name net nic org test web ',
  23360. 'tn':' agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ',
  23361. 'tz':' ac co go ne or ',
  23362. 'ua':' biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ',
  23363. 'ug':' ac co go ne or org sc ',
  23364. 'uk':' ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ',
  23365. 'us':' dni fed isa kids nsn ',
  23366. 'uy':' com edu gub mil net org ',
  23367. 've':' co com edu gob info mil net org web ',
  23368. 'vi':' co com k12 net org ',
  23369. 'vn':' ac biz com edu gov health info int name net org pro ',
  23370. 'ye':' co com gov ltd me net org plc ',
  23371. 'yu':' ac co edu gov org ',
  23372. 'za':' ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ',
  23373. 'zm':' ac co com edu gov net org sch ',
  23374. // https://en.wikipedia.org/wiki/CentralNic#Second-level_domains
  23375. 'com': 'ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ',
  23376. 'net': 'gb jp se uk ',
  23377. 'org': 'ae',
  23378. 'de': 'com '
  23379. },
  23380. // gorhill 2013-10-25: Using indexOf() instead Regexp(). Significant boost
  23381. // in both performance and memory footprint. No initialization required.
  23382. // http://jsperf.com/uri-js-sld-regex-vs-binary-search/4
  23383. // Following methods use lastIndexOf() rather than array.split() in order
  23384. // to avoid any memory allocations.
  23385. has: function(domain) {
  23386. var tldOffset = domain.lastIndexOf('.');
  23387. if (tldOffset <= 0 || tldOffset >= (domain.length-1)) {
  23388. return false;
  23389. }
  23390. var sldOffset = domain.lastIndexOf('.', tldOffset-1);
  23391. if (sldOffset <= 0 || sldOffset >= (tldOffset-1)) {
  23392. return false;
  23393. }
  23394. var sldList = SLD.list[domain.slice(tldOffset+1)];
  23395. if (!sldList) {
  23396. return false;
  23397. }
  23398. return sldList.indexOf(' ' + domain.slice(sldOffset+1, tldOffset) + ' ') >= 0;
  23399. },
  23400. is: function(domain) {
  23401. var tldOffset = domain.lastIndexOf('.');
  23402. if (tldOffset <= 0 || tldOffset >= (domain.length-1)) {
  23403. return false;
  23404. }
  23405. var sldOffset = domain.lastIndexOf('.', tldOffset-1);
  23406. if (sldOffset >= 0) {
  23407. return false;
  23408. }
  23409. var sldList = SLD.list[domain.slice(tldOffset+1)];
  23410. if (!sldList) {
  23411. return false;
  23412. }
  23413. return sldList.indexOf(' ' + domain.slice(0, tldOffset) + ' ') >= 0;
  23414. },
  23415. get: function(domain) {
  23416. var tldOffset = domain.lastIndexOf('.');
  23417. if (tldOffset <= 0 || tldOffset >= (domain.length-1)) {
  23418. return null;
  23419. }
  23420. var sldOffset = domain.lastIndexOf('.', tldOffset-1);
  23421. if (sldOffset <= 0 || sldOffset >= (tldOffset-1)) {
  23422. return null;
  23423. }
  23424. var sldList = SLD.list[domain.slice(tldOffset+1)];
  23425. if (!sldList) {
  23426. return null;
  23427. }
  23428. if (sldList.indexOf(' ' + domain.slice(sldOffset+1, tldOffset) + ' ') < 0) {
  23429. return null;
  23430. }
  23431. return domain.slice(sldOffset+1);
  23432. },
  23433. noConflict: function(){
  23434. if (root.SecondLevelDomains === this) {
  23435. root.SecondLevelDomains = _SecondLevelDomains;
  23436. }
  23437. return this;
  23438. }
  23439. };
  23440. return SLD;
  23441. }));
  23442. /***/ }),
  23443. /***/ "./node_modules/urijs/src/URI.js":
  23444. /*!***************************************!*\
  23445. !*** ./node_modules/urijs/src/URI.js ***!
  23446. \***************************************/
  23447. /*! no static exports found */
  23448. /***/ (function(module, exports, __webpack_require__) {
  23449. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
  23450. * URI.js - Mutating URLs
  23451. *
  23452. * Version: 1.19.1
  23453. *
  23454. * Author: Rodney Rehm
  23455. * Web: http://medialize.github.io/URI.js/
  23456. *
  23457. * Licensed under
  23458. * MIT License http://www.opensource.org/licenses/mit-license
  23459. *
  23460. */
  23461. (function (root, factory) {
  23462. 'use strict';
  23463. // https://github.com/umdjs/umd/blob/master/returnExports.js
  23464. if (typeof module === 'object' && module.exports) {
  23465. // Node
  23466. module.exports = factory(__webpack_require__(/*! ./punycode */ "./node_modules/urijs/src/punycode.js"), __webpack_require__(/*! ./IPv6 */ "./node_modules/urijs/src/IPv6.js"), __webpack_require__(/*! ./SecondLevelDomains */ "./node_modules/urijs/src/SecondLevelDomains.js"));
  23467. } else if (true) {
  23468. // AMD. Register as an anonymous module.
  23469. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./punycode */ "./node_modules/urijs/src/punycode.js"), __webpack_require__(/*! ./IPv6 */ "./node_modules/urijs/src/IPv6.js"), __webpack_require__(/*! ./SecondLevelDomains */ "./node_modules/urijs/src/SecondLevelDomains.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  23470. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  23471. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  23472. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  23473. } else {}
  23474. }(this, function (punycode, IPv6, SLD, root) {
  23475. 'use strict';
  23476. /*global location, escape, unescape */
  23477. // FIXME: v2.0.0 renamce non-camelCase properties to uppercase
  23478. /*jshint camelcase: false */
  23479. // save current URI variable, if any
  23480. var _URI = root && root.URI;
  23481. function URI(url, base) {
  23482. var _urlSupplied = arguments.length >= 1;
  23483. var _baseSupplied = arguments.length >= 2;
  23484. // Allow instantiation without the 'new' keyword
  23485. if (!(this instanceof URI)) {
  23486. if (_urlSupplied) {
  23487. if (_baseSupplied) {
  23488. return new URI(url, base);
  23489. }
  23490. return new URI(url);
  23491. }
  23492. return new URI();
  23493. }
  23494. if (url === undefined) {
  23495. if (_urlSupplied) {
  23496. throw new TypeError('undefined is not a valid argument for URI');
  23497. }
  23498. if (typeof location !== 'undefined') {
  23499. url = location.href + '';
  23500. } else {
  23501. url = '';
  23502. }
  23503. }
  23504. if (url === null) {
  23505. if (_urlSupplied) {
  23506. throw new TypeError('null is not a valid argument for URI');
  23507. }
  23508. }
  23509. this.href(url);
  23510. // resolve to base according to http://dvcs.w3.org/hg/url/raw-file/tip/Overview.html#constructor
  23511. if (base !== undefined) {
  23512. return this.absoluteTo(base);
  23513. }
  23514. return this;
  23515. }
  23516. function isInteger(value) {
  23517. return /^[0-9]+$/.test(value);
  23518. }
  23519. URI.version = '1.19.1';
  23520. var p = URI.prototype;
  23521. var hasOwn = Object.prototype.hasOwnProperty;
  23522. function escapeRegEx(string) {
  23523. // https://github.com/medialize/URI.js/commit/85ac21783c11f8ccab06106dba9735a31a86924d#commitcomment-821963
  23524. return string.replace(/([.*+?^=!:${}()|[\]\/\\])/g, '\\$1');
  23525. }
  23526. function getType(value) {
  23527. // IE8 doesn't return [Object Undefined] but [Object Object] for undefined value
  23528. if (value === undefined) {
  23529. return 'Undefined';
  23530. }
  23531. return String(Object.prototype.toString.call(value)).slice(8, -1);
  23532. }
  23533. function isArray(obj) {
  23534. return getType(obj) === 'Array';
  23535. }
  23536. function filterArrayValues(data, value) {
  23537. var lookup = {};
  23538. var i, length;
  23539. if (getType(value) === 'RegExp') {
  23540. lookup = null;
  23541. } else if (isArray(value)) {
  23542. for (i = 0, length = value.length; i < length; i++) {
  23543. lookup[value[i]] = true;
  23544. }
  23545. } else {
  23546. lookup[value] = true;
  23547. }
  23548. for (i = 0, length = data.length; i < length; i++) {
  23549. /*jshint laxbreak: true */
  23550. var _match = lookup && lookup[data[i]] !== undefined
  23551. || !lookup && value.test(data[i]);
  23552. /*jshint laxbreak: false */
  23553. if (_match) {
  23554. data.splice(i, 1);
  23555. length--;
  23556. i--;
  23557. }
  23558. }
  23559. return data;
  23560. }
  23561. function arrayContains(list, value) {
  23562. var i, length;
  23563. // value may be string, number, array, regexp
  23564. if (isArray(value)) {
  23565. // Note: this can be optimized to O(n) (instead of current O(m * n))
  23566. for (i = 0, length = value.length; i < length; i++) {
  23567. if (!arrayContains(list, value[i])) {
  23568. return false;
  23569. }
  23570. }
  23571. return true;
  23572. }
  23573. var _type = getType(value);
  23574. for (i = 0, length = list.length; i < length; i++) {
  23575. if (_type === 'RegExp') {
  23576. if (typeof list[i] === 'string' && list[i].match(value)) {
  23577. return true;
  23578. }
  23579. } else if (list[i] === value) {
  23580. return true;
  23581. }
  23582. }
  23583. return false;
  23584. }
  23585. function arraysEqual(one, two) {
  23586. if (!isArray(one) || !isArray(two)) {
  23587. return false;
  23588. }
  23589. // arrays can't be equal if they have different amount of content
  23590. if (one.length !== two.length) {
  23591. return false;
  23592. }
  23593. one.sort();
  23594. two.sort();
  23595. for (var i = 0, l = one.length; i < l; i++) {
  23596. if (one[i] !== two[i]) {
  23597. return false;
  23598. }
  23599. }
  23600. return true;
  23601. }
  23602. function trimSlashes(text) {
  23603. var trim_expression = /^\/+|\/+$/g;
  23604. return text.replace(trim_expression, '');
  23605. }
  23606. URI._parts = function() {
  23607. return {
  23608. protocol: null,
  23609. username: null,
  23610. password: null,
  23611. hostname: null,
  23612. urn: null,
  23613. port: null,
  23614. path: null,
  23615. query: null,
  23616. fragment: null,
  23617. // state
  23618. preventInvalidHostname: URI.preventInvalidHostname,
  23619. duplicateQueryParameters: URI.duplicateQueryParameters,
  23620. escapeQuerySpace: URI.escapeQuerySpace
  23621. };
  23622. };
  23623. // state: throw on invalid hostname
  23624. // see https://github.com/medialize/URI.js/pull/345
  23625. // and https://github.com/medialize/URI.js/issues/354
  23626. URI.preventInvalidHostname = false;
  23627. // state: allow duplicate query parameters (a=1&a=1)
  23628. URI.duplicateQueryParameters = false;
  23629. // state: replaces + with %20 (space in query strings)
  23630. URI.escapeQuerySpace = true;
  23631. // static properties
  23632. URI.protocol_expression = /^[a-z][a-z0-9.+-]*$/i;
  23633. URI.idn_expression = /[^a-z0-9\._-]/i;
  23634. URI.punycode_expression = /(xn--)/i;
  23635. // well, 333.444.555.666 matches, but it sure ain't no IPv4 - do we care?
  23636. URI.ip4_expression = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/;
  23637. // credits to Rich Brown
  23638. // source: http://forums.intermapper.com/viewtopic.php?p=1096#1096
  23639. // specification: http://www.ietf.org/rfc/rfc4291.txt
  23640. URI.ip6_expression = /^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;
  23641. // expression used is "gruber revised" (@gruber v2) determined to be the
  23642. // best solution in a regex-golf we did a couple of ages ago at
  23643. // * http://mathiasbynens.be/demo/url-regex
  23644. // * http://rodneyrehm.de/t/url-regex.html
  23645. URI.find_uri_expression = /\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/ig;
  23646. URI.findUri = {
  23647. // valid "scheme://" or "www."
  23648. start: /\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,
  23649. // everything up to the next whitespace
  23650. end: /[\s\r\n]|$/,
  23651. // trim trailing punctuation captured by end RegExp
  23652. trim: /[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,
  23653. // balanced parens inclusion (), [], {}, <>
  23654. parens: /(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g,
  23655. };
  23656. // http://www.iana.org/assignments/uri-schemes.html
  23657. // http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers#Well-known_ports
  23658. URI.defaultPorts = {
  23659. http: '80',
  23660. https: '443',
  23661. ftp: '21',
  23662. gopher: '70',
  23663. ws: '80',
  23664. wss: '443'
  23665. };
  23666. // list of protocols which always require a hostname
  23667. URI.hostProtocols = [
  23668. 'http',
  23669. 'https'
  23670. ];
  23671. // allowed hostname characters according to RFC 3986
  23672. // ALPHA DIGIT "-" "." "_" "~" "!" "$" "&" "'" "(" ")" "*" "+" "," ";" "=" %encoded
  23673. // I've never seen a (non-IDN) hostname other than: ALPHA DIGIT . - _
  23674. URI.invalid_hostname_characters = /[^a-zA-Z0-9\.\-:_]/;
  23675. // map DOM Elements to their URI attribute
  23676. URI.domAttributes = {
  23677. 'a': 'href',
  23678. 'blockquote': 'cite',
  23679. 'link': 'href',
  23680. 'base': 'href',
  23681. 'script': 'src',
  23682. 'form': 'action',
  23683. 'img': 'src',
  23684. 'area': 'href',
  23685. 'iframe': 'src',
  23686. 'embed': 'src',
  23687. 'source': 'src',
  23688. 'track': 'src',
  23689. 'input': 'src', // but only if type="image"
  23690. 'audio': 'src',
  23691. 'video': 'src'
  23692. };
  23693. URI.getDomAttribute = function(node) {
  23694. if (!node || !node.nodeName) {
  23695. return undefined;
  23696. }
  23697. var nodeName = node.nodeName.toLowerCase();
  23698. // <input> should only expose src for type="image"
  23699. if (nodeName === 'input' && node.type !== 'image') {
  23700. return undefined;
  23701. }
  23702. return URI.domAttributes[nodeName];
  23703. };
  23704. function escapeForDumbFirefox36(value) {
  23705. // https://github.com/medialize/URI.js/issues/91
  23706. return escape(value);
  23707. }
  23708. // encoding / decoding according to RFC3986
  23709. function strictEncodeURIComponent(string) {
  23710. // see https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/encodeURIComponent
  23711. return encodeURIComponent(string)
  23712. .replace(/[!'()*]/g, escapeForDumbFirefox36)
  23713. .replace(/\*/g, '%2A');
  23714. }
  23715. URI.encode = strictEncodeURIComponent;
  23716. URI.decode = decodeURIComponent;
  23717. URI.iso8859 = function() {
  23718. URI.encode = escape;
  23719. URI.decode = unescape;
  23720. };
  23721. URI.unicode = function() {
  23722. URI.encode = strictEncodeURIComponent;
  23723. URI.decode = decodeURIComponent;
  23724. };
  23725. URI.characters = {
  23726. pathname: {
  23727. encode: {
  23728. // RFC3986 2.1: For consistency, URI producers and normalizers should
  23729. // use uppercase hexadecimal digits for all percent-encodings.
  23730. expression: /%(24|26|2B|2C|3B|3D|3A|40)/ig,
  23731. map: {
  23732. // -._~!'()*
  23733. '%24': '$',
  23734. '%26': '&',
  23735. '%2B': '+',
  23736. '%2C': ',',
  23737. '%3B': ';',
  23738. '%3D': '=',
  23739. '%3A': ':',
  23740. '%40': '@'
  23741. }
  23742. },
  23743. decode: {
  23744. expression: /[\/\?#]/g,
  23745. map: {
  23746. '/': '%2F',
  23747. '?': '%3F',
  23748. '#': '%23'
  23749. }
  23750. }
  23751. },
  23752. reserved: {
  23753. encode: {
  23754. // RFC3986 2.1: For consistency, URI producers and normalizers should
  23755. // use uppercase hexadecimal digits for all percent-encodings.
  23756. expression: /%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/ig,
  23757. map: {
  23758. // gen-delims
  23759. '%3A': ':',
  23760. '%2F': '/',
  23761. '%3F': '?',
  23762. '%23': '#',
  23763. '%5B': '[',
  23764. '%5D': ']',
  23765. '%40': '@',
  23766. // sub-delims
  23767. '%21': '!',
  23768. '%24': '$',
  23769. '%26': '&',
  23770. '%27': '\'',
  23771. '%28': '(',
  23772. '%29': ')',
  23773. '%2A': '*',
  23774. '%2B': '+',
  23775. '%2C': ',',
  23776. '%3B': ';',
  23777. '%3D': '='
  23778. }
  23779. }
  23780. },
  23781. urnpath: {
  23782. // The characters under `encode` are the characters called out by RFC 2141 as being acceptable
  23783. // for usage in a URN. RFC2141 also calls out "-", ".", and "_" as acceptable characters, but
  23784. // these aren't encoded by encodeURIComponent, so we don't have to call them out here. Also
  23785. // note that the colon character is not featured in the encoding map; this is because URI.js
  23786. // gives the colons in URNs semantic meaning as the delimiters of path segements, and so it
  23787. // should not appear unencoded in a segment itself.
  23788. // See also the note above about RFC3986 and capitalalized hex digits.
  23789. encode: {
  23790. expression: /%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/ig,
  23791. map: {
  23792. '%21': '!',
  23793. '%24': '$',
  23794. '%27': '\'',
  23795. '%28': '(',
  23796. '%29': ')',
  23797. '%2A': '*',
  23798. '%2B': '+',
  23799. '%2C': ',',
  23800. '%3B': ';',
  23801. '%3D': '=',
  23802. '%40': '@'
  23803. }
  23804. },
  23805. // These characters are the characters called out by RFC2141 as "reserved" characters that
  23806. // should never appear in a URN, plus the colon character (see note above).
  23807. decode: {
  23808. expression: /[\/\?#:]/g,
  23809. map: {
  23810. '/': '%2F',
  23811. '?': '%3F',
  23812. '#': '%23',
  23813. ':': '%3A'
  23814. }
  23815. }
  23816. }
  23817. };
  23818. URI.encodeQuery = function(string, escapeQuerySpace) {
  23819. var escaped = URI.encode(string + '');
  23820. if (escapeQuerySpace === undefined) {
  23821. escapeQuerySpace = URI.escapeQuerySpace;
  23822. }
  23823. return escapeQuerySpace ? escaped.replace(/%20/g, '+') : escaped;
  23824. };
  23825. URI.decodeQuery = function(string, escapeQuerySpace) {
  23826. string += '';
  23827. if (escapeQuerySpace === undefined) {
  23828. escapeQuerySpace = URI.escapeQuerySpace;
  23829. }
  23830. try {
  23831. return URI.decode(escapeQuerySpace ? string.replace(/\+/g, '%20') : string);
  23832. } catch(e) {
  23833. // we're not going to mess with weird encodings,
  23834. // give up and return the undecoded original string
  23835. // see https://github.com/medialize/URI.js/issues/87
  23836. // see https://github.com/medialize/URI.js/issues/92
  23837. return string;
  23838. }
  23839. };
  23840. // generate encode/decode path functions
  23841. var _parts = {'encode':'encode', 'decode':'decode'};
  23842. var _part;
  23843. var generateAccessor = function(_group, _part) {
  23844. return function(string) {
  23845. try {
  23846. return URI[_part](string + '').replace(URI.characters[_group][_part].expression, function(c) {
  23847. return URI.characters[_group][_part].map[c];
  23848. });
  23849. } catch (e) {
  23850. // we're not going to mess with weird encodings,
  23851. // give up and return the undecoded original string
  23852. // see https://github.com/medialize/URI.js/issues/87
  23853. // see https://github.com/medialize/URI.js/issues/92
  23854. return string;
  23855. }
  23856. };
  23857. };
  23858. for (_part in _parts) {
  23859. URI[_part + 'PathSegment'] = generateAccessor('pathname', _parts[_part]);
  23860. URI[_part + 'UrnPathSegment'] = generateAccessor('urnpath', _parts[_part]);
  23861. }
  23862. var generateSegmentedPathFunction = function(_sep, _codingFuncName, _innerCodingFuncName) {
  23863. return function(string) {
  23864. // Why pass in names of functions, rather than the function objects themselves? The
  23865. // definitions of some functions (but in particular, URI.decode) will occasionally change due
  23866. // to URI.js having ISO8859 and Unicode modes. Passing in the name and getting it will ensure
  23867. // that the functions we use here are "fresh".
  23868. var actualCodingFunc;
  23869. if (!_innerCodingFuncName) {
  23870. actualCodingFunc = URI[_codingFuncName];
  23871. } else {
  23872. actualCodingFunc = function(string) {
  23873. return URI[_codingFuncName](URI[_innerCodingFuncName](string));
  23874. };
  23875. }
  23876. var segments = (string + '').split(_sep);
  23877. for (var i = 0, length = segments.length; i < length; i++) {
  23878. segments[i] = actualCodingFunc(segments[i]);
  23879. }
  23880. return segments.join(_sep);
  23881. };
  23882. };
  23883. // This takes place outside the above loop because we don't want, e.g., encodeUrnPath functions.
  23884. URI.decodePath = generateSegmentedPathFunction('/', 'decodePathSegment');
  23885. URI.decodeUrnPath = generateSegmentedPathFunction(':', 'decodeUrnPathSegment');
  23886. URI.recodePath = generateSegmentedPathFunction('/', 'encodePathSegment', 'decode');
  23887. URI.recodeUrnPath = generateSegmentedPathFunction(':', 'encodeUrnPathSegment', 'decode');
  23888. URI.encodeReserved = generateAccessor('reserved', 'encode');
  23889. URI.parse = function(string, parts) {
  23890. var pos;
  23891. if (!parts) {
  23892. parts = {
  23893. preventInvalidHostname: URI.preventInvalidHostname
  23894. };
  23895. }
  23896. // [protocol"://"[username[":"password]"@"]hostname[":"port]"/"?][path]["?"querystring]["#"fragment]
  23897. // extract fragment
  23898. pos = string.indexOf('#');
  23899. if (pos > -1) {
  23900. // escaping?
  23901. parts.fragment = string.substring(pos + 1) || null;
  23902. string = string.substring(0, pos);
  23903. }
  23904. // extract query
  23905. pos = string.indexOf('?');
  23906. if (pos > -1) {
  23907. // escaping?
  23908. parts.query = string.substring(pos + 1) || null;
  23909. string = string.substring(0, pos);
  23910. }
  23911. // extract protocol
  23912. if (string.substring(0, 2) === '//') {
  23913. // relative-scheme
  23914. parts.protocol = null;
  23915. string = string.substring(2);
  23916. // extract "user:pass@host:port"
  23917. string = URI.parseAuthority(string, parts);
  23918. } else {
  23919. pos = string.indexOf(':');
  23920. if (pos > -1) {
  23921. parts.protocol = string.substring(0, pos) || null;
  23922. if (parts.protocol && !parts.protocol.match(URI.protocol_expression)) {
  23923. // : may be within the path
  23924. parts.protocol = undefined;
  23925. } else if (string.substring(pos + 1, pos + 3) === '//') {
  23926. string = string.substring(pos + 3);
  23927. // extract "user:pass@host:port"
  23928. string = URI.parseAuthority(string, parts);
  23929. } else {
  23930. string = string.substring(pos + 1);
  23931. parts.urn = true;
  23932. }
  23933. }
  23934. }
  23935. // what's left must be the path
  23936. parts.path = string;
  23937. // and we're done
  23938. return parts;
  23939. };
  23940. URI.parseHost = function(string, parts) {
  23941. if (!string) {
  23942. string = '';
  23943. }
  23944. // Copy chrome, IE, opera backslash-handling behavior.
  23945. // Back slashes before the query string get converted to forward slashes
  23946. // See: https://github.com/joyent/node/blob/386fd24f49b0e9d1a8a076592a404168faeecc34/lib/url.js#L115-L124
  23947. // See: https://code.google.com/p/chromium/issues/detail?id=25916
  23948. // https://github.com/medialize/URI.js/pull/233
  23949. string = string.replace(/\\/g, '/');
  23950. // extract host:port
  23951. var pos = string.indexOf('/');
  23952. var bracketPos;
  23953. var t;
  23954. if (pos === -1) {
  23955. pos = string.length;
  23956. }
  23957. if (string.charAt(0) === '[') {
  23958. // IPv6 host - http://tools.ietf.org/html/draft-ietf-6man-text-addr-representation-04#section-6
  23959. // I claim most client software breaks on IPv6 anyways. To simplify things, URI only accepts
  23960. // IPv6+port in the format [2001:db8::1]:80 (for the time being)
  23961. bracketPos = string.indexOf(']');
  23962. parts.hostname = string.substring(1, bracketPos) || null;
  23963. parts.port = string.substring(bracketPos + 2, pos) || null;
  23964. if (parts.port === '/') {
  23965. parts.port = null;
  23966. }
  23967. } else {
  23968. var firstColon = string.indexOf(':');
  23969. var firstSlash = string.indexOf('/');
  23970. var nextColon = string.indexOf(':', firstColon + 1);
  23971. if (nextColon !== -1 && (firstSlash === -1 || nextColon < firstSlash)) {
  23972. // IPv6 host contains multiple colons - but no port
  23973. // this notation is actually not allowed by RFC 3986, but we're a liberal parser
  23974. parts.hostname = string.substring(0, pos) || null;
  23975. parts.port = null;
  23976. } else {
  23977. t = string.substring(0, pos).split(':');
  23978. parts.hostname = t[0] || null;
  23979. parts.port = t[1] || null;
  23980. }
  23981. }
  23982. if (parts.hostname && string.substring(pos).charAt(0) !== '/') {
  23983. pos++;
  23984. string = '/' + string;
  23985. }
  23986. if (parts.preventInvalidHostname) {
  23987. URI.ensureValidHostname(parts.hostname, parts.protocol);
  23988. }
  23989. if (parts.port) {
  23990. URI.ensureValidPort(parts.port);
  23991. }
  23992. return string.substring(pos) || '/';
  23993. };
  23994. URI.parseAuthority = function(string, parts) {
  23995. string = URI.parseUserinfo(string, parts);
  23996. return URI.parseHost(string, parts);
  23997. };
  23998. URI.parseUserinfo = function(string, parts) {
  23999. // extract username:password
  24000. var firstSlash = string.indexOf('/');
  24001. var pos = string.lastIndexOf('@', firstSlash > -1 ? firstSlash : string.length - 1);
  24002. var t;
  24003. // authority@ must come before /path
  24004. if (pos > -1 && (firstSlash === -1 || pos < firstSlash)) {
  24005. t = string.substring(0, pos).split(':');
  24006. parts.username = t[0] ? URI.decode(t[0]) : null;
  24007. t.shift();
  24008. parts.password = t[0] ? URI.decode(t.join(':')) : null;
  24009. string = string.substring(pos + 1);
  24010. } else {
  24011. parts.username = null;
  24012. parts.password = null;
  24013. }
  24014. return string;
  24015. };
  24016. URI.parseQuery = function(string, escapeQuerySpace) {
  24017. if (!string) {
  24018. return {};
  24019. }
  24020. // throw out the funky business - "?"[name"="value"&"]+
  24021. string = string.replace(/&+/g, '&').replace(/^\?*&*|&+$/g, '');
  24022. if (!string) {
  24023. return {};
  24024. }
  24025. var items = {};
  24026. var splits = string.split('&');
  24027. var length = splits.length;
  24028. var v, name, value;
  24029. for (var i = 0; i < length; i++) {
  24030. v = splits[i].split('=');
  24031. name = URI.decodeQuery(v.shift(), escapeQuerySpace);
  24032. // no "=" is null according to http://dvcs.w3.org/hg/url/raw-file/tip/Overview.html#collect-url-parameters
  24033. value = v.length ? URI.decodeQuery(v.join('='), escapeQuerySpace) : null;
  24034. if (hasOwn.call(items, name)) {
  24035. if (typeof items[name] === 'string' || items[name] === null) {
  24036. items[name] = [items[name]];
  24037. }
  24038. items[name].push(value);
  24039. } else {
  24040. items[name] = value;
  24041. }
  24042. }
  24043. return items;
  24044. };
  24045. URI.build = function(parts) {
  24046. var t = '';
  24047. if (parts.protocol) {
  24048. t += parts.protocol + ':';
  24049. }
  24050. if (!parts.urn && (t || parts.hostname)) {
  24051. t += '//';
  24052. }
  24053. t += (URI.buildAuthority(parts) || '');
  24054. if (typeof parts.path === 'string') {
  24055. if (parts.path.charAt(0) !== '/' && typeof parts.hostname === 'string') {
  24056. t += '/';
  24057. }
  24058. t += parts.path;
  24059. }
  24060. if (typeof parts.query === 'string' && parts.query) {
  24061. t += '?' + parts.query;
  24062. }
  24063. if (typeof parts.fragment === 'string' && parts.fragment) {
  24064. t += '#' + parts.fragment;
  24065. }
  24066. return t;
  24067. };
  24068. URI.buildHost = function(parts) {
  24069. var t = '';
  24070. if (!parts.hostname) {
  24071. return '';
  24072. } else if (URI.ip6_expression.test(parts.hostname)) {
  24073. t += '[' + parts.hostname + ']';
  24074. } else {
  24075. t += parts.hostname;
  24076. }
  24077. if (parts.port) {
  24078. t += ':' + parts.port;
  24079. }
  24080. return t;
  24081. };
  24082. URI.buildAuthority = function(parts) {
  24083. return URI.buildUserinfo(parts) + URI.buildHost(parts);
  24084. };
  24085. URI.buildUserinfo = function(parts) {
  24086. var t = '';
  24087. if (parts.username) {
  24088. t += URI.encode(parts.username);
  24089. }
  24090. if (parts.password) {
  24091. t += ':' + URI.encode(parts.password);
  24092. }
  24093. if (t) {
  24094. t += '@';
  24095. }
  24096. return t;
  24097. };
  24098. URI.buildQuery = function(data, duplicateQueryParameters, escapeQuerySpace) {
  24099. // according to http://tools.ietf.org/html/rfc3986 or http://labs.apache.org/webarch/uri/rfc/rfc3986.html
  24100. // being »-._~!$&'()*+,;=:@/?« %HEX and alnum are allowed
  24101. // the RFC explicitly states ?/foo being a valid use case, no mention of parameter syntax!
  24102. // URI.js treats the query string as being application/x-www-form-urlencoded
  24103. // see http://www.w3.org/TR/REC-html40/interact/forms.html#form-content-type
  24104. var t = '';
  24105. var unique, key, i, length;
  24106. for (key in data) {
  24107. if (hasOwn.call(data, key) && key) {
  24108. if (isArray(data[key])) {
  24109. unique = {};
  24110. for (i = 0, length = data[key].length; i < length; i++) {
  24111. if (data[key][i] !== undefined && unique[data[key][i] + ''] === undefined) {
  24112. t += '&' + URI.buildQueryParameter(key, data[key][i], escapeQuerySpace);
  24113. if (duplicateQueryParameters !== true) {
  24114. unique[data[key][i] + ''] = true;
  24115. }
  24116. }
  24117. }
  24118. } else if (data[key] !== undefined) {
  24119. t += '&' + URI.buildQueryParameter(key, data[key], escapeQuerySpace);
  24120. }
  24121. }
  24122. }
  24123. return t.substring(1);
  24124. };
  24125. URI.buildQueryParameter = function(name, value, escapeQuerySpace) {
  24126. // http://www.w3.org/TR/REC-html40/interact/forms.html#form-content-type -- application/x-www-form-urlencoded
  24127. // don't append "=" for null values, according to http://dvcs.w3.org/hg/url/raw-file/tip/Overview.html#url-parameter-serialization
  24128. return URI.encodeQuery(name, escapeQuerySpace) + (value !== null ? '=' + URI.encodeQuery(value, escapeQuerySpace) : '');
  24129. };
  24130. URI.addQuery = function(data, name, value) {
  24131. if (typeof name === 'object') {
  24132. for (var key in name) {
  24133. if (hasOwn.call(name, key)) {
  24134. URI.addQuery(data, key, name[key]);
  24135. }
  24136. }
  24137. } else if (typeof name === 'string') {
  24138. if (data[name] === undefined) {
  24139. data[name] = value;
  24140. return;
  24141. } else if (typeof data[name] === 'string') {
  24142. data[name] = [data[name]];
  24143. }
  24144. if (!isArray(value)) {
  24145. value = [value];
  24146. }
  24147. data[name] = (data[name] || []).concat(value);
  24148. } else {
  24149. throw new TypeError('URI.addQuery() accepts an object, string as the name parameter');
  24150. }
  24151. };
  24152. URI.setQuery = function(data, name, value) {
  24153. if (typeof name === 'object') {
  24154. for (var key in name) {
  24155. if (hasOwn.call(name, key)) {
  24156. URI.setQuery(data, key, name[key]);
  24157. }
  24158. }
  24159. } else if (typeof name === 'string') {
  24160. data[name] = value === undefined ? null : value;
  24161. } else {
  24162. throw new TypeError('URI.setQuery() accepts an object, string as the name parameter');
  24163. }
  24164. };
  24165. URI.removeQuery = function(data, name, value) {
  24166. var i, length, key;
  24167. if (isArray(name)) {
  24168. for (i = 0, length = name.length; i < length; i++) {
  24169. data[name[i]] = undefined;
  24170. }
  24171. } else if (getType(name) === 'RegExp') {
  24172. for (key in data) {
  24173. if (name.test(key)) {
  24174. data[key] = undefined;
  24175. }
  24176. }
  24177. } else if (typeof name === 'object') {
  24178. for (key in name) {
  24179. if (hasOwn.call(name, key)) {
  24180. URI.removeQuery(data, key, name[key]);
  24181. }
  24182. }
  24183. } else if (typeof name === 'string') {
  24184. if (value !== undefined) {
  24185. if (getType(value) === 'RegExp') {
  24186. if (!isArray(data[name]) && value.test(data[name])) {
  24187. data[name] = undefined;
  24188. } else {
  24189. data[name] = filterArrayValues(data[name], value);
  24190. }
  24191. } else if (data[name] === String(value) && (!isArray(value) || value.length === 1)) {
  24192. data[name] = undefined;
  24193. } else if (isArray(data[name])) {
  24194. data[name] = filterArrayValues(data[name], value);
  24195. }
  24196. } else {
  24197. data[name] = undefined;
  24198. }
  24199. } else {
  24200. throw new TypeError('URI.removeQuery() accepts an object, string, RegExp as the first parameter');
  24201. }
  24202. };
  24203. URI.hasQuery = function(data, name, value, withinArray) {
  24204. switch (getType(name)) {
  24205. case 'String':
  24206. // Nothing to do here
  24207. break;
  24208. case 'RegExp':
  24209. for (var key in data) {
  24210. if (hasOwn.call(data, key)) {
  24211. if (name.test(key) && (value === undefined || URI.hasQuery(data, key, value))) {
  24212. return true;
  24213. }
  24214. }
  24215. }
  24216. return false;
  24217. case 'Object':
  24218. for (var _key in name) {
  24219. if (hasOwn.call(name, _key)) {
  24220. if (!URI.hasQuery(data, _key, name[_key])) {
  24221. return false;
  24222. }
  24223. }
  24224. }
  24225. return true;
  24226. default:
  24227. throw new TypeError('URI.hasQuery() accepts a string, regular expression or object as the name parameter');
  24228. }
  24229. switch (getType(value)) {
  24230. case 'Undefined':
  24231. // true if exists (but may be empty)
  24232. return name in data; // data[name] !== undefined;
  24233. case 'Boolean':
  24234. // true if exists and non-empty
  24235. var _booly = Boolean(isArray(data[name]) ? data[name].length : data[name]);
  24236. return value === _booly;
  24237. case 'Function':
  24238. // allow complex comparison
  24239. return !!value(data[name], name, data);
  24240. case 'Array':
  24241. if (!isArray(data[name])) {
  24242. return false;
  24243. }
  24244. var op = withinArray ? arrayContains : arraysEqual;
  24245. return op(data[name], value);
  24246. case 'RegExp':
  24247. if (!isArray(data[name])) {
  24248. return Boolean(data[name] && data[name].match(value));
  24249. }
  24250. if (!withinArray) {
  24251. return false;
  24252. }
  24253. return arrayContains(data[name], value);
  24254. case 'Number':
  24255. value = String(value);
  24256. /* falls through */
  24257. case 'String':
  24258. if (!isArray(data[name])) {
  24259. return data[name] === value;
  24260. }
  24261. if (!withinArray) {
  24262. return false;
  24263. }
  24264. return arrayContains(data[name], value);
  24265. default:
  24266. throw new TypeError('URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter');
  24267. }
  24268. };
  24269. URI.joinPaths = function() {
  24270. var input = [];
  24271. var segments = [];
  24272. var nonEmptySegments = 0;
  24273. for (var i = 0; i < arguments.length; i++) {
  24274. var url = new URI(arguments[i]);
  24275. input.push(url);
  24276. var _segments = url.segment();
  24277. for (var s = 0; s < _segments.length; s++) {
  24278. if (typeof _segments[s] === 'string') {
  24279. segments.push(_segments[s]);
  24280. }
  24281. if (_segments[s]) {
  24282. nonEmptySegments++;
  24283. }
  24284. }
  24285. }
  24286. if (!segments.length || !nonEmptySegments) {
  24287. return new URI('');
  24288. }
  24289. var uri = new URI('').segment(segments);
  24290. if (input[0].path() === '' || input[0].path().slice(0, 1) === '/') {
  24291. uri.path('/' + uri.path());
  24292. }
  24293. return uri.normalize();
  24294. };
  24295. URI.commonPath = function(one, two) {
  24296. var length = Math.min(one.length, two.length);
  24297. var pos;
  24298. // find first non-matching character
  24299. for (pos = 0; pos < length; pos++) {
  24300. if (one.charAt(pos) !== two.charAt(pos)) {
  24301. pos--;
  24302. break;
  24303. }
  24304. }
  24305. if (pos < 1) {
  24306. return one.charAt(0) === two.charAt(0) && one.charAt(0) === '/' ? '/' : '';
  24307. }
  24308. // revert to last /
  24309. if (one.charAt(pos) !== '/' || two.charAt(pos) !== '/') {
  24310. pos = one.substring(0, pos).lastIndexOf('/');
  24311. }
  24312. return one.substring(0, pos + 1);
  24313. };
  24314. URI.withinString = function(string, callback, options) {
  24315. options || (options = {});
  24316. var _start = options.start || URI.findUri.start;
  24317. var _end = options.end || URI.findUri.end;
  24318. var _trim = options.trim || URI.findUri.trim;
  24319. var _parens = options.parens || URI.findUri.parens;
  24320. var _attributeOpen = /[a-z0-9-]=["']?$/i;
  24321. _start.lastIndex = 0;
  24322. while (true) {
  24323. var match = _start.exec(string);
  24324. if (!match) {
  24325. break;
  24326. }
  24327. var start = match.index;
  24328. if (options.ignoreHtml) {
  24329. // attribut(e=["']?$)
  24330. var attributeOpen = string.slice(Math.max(start - 3, 0), start);
  24331. if (attributeOpen && _attributeOpen.test(attributeOpen)) {
  24332. continue;
  24333. }
  24334. }
  24335. var end = start + string.slice(start).search(_end);
  24336. var slice = string.slice(start, end);
  24337. // make sure we include well balanced parens
  24338. var parensEnd = -1;
  24339. while (true) {
  24340. var parensMatch = _parens.exec(slice);
  24341. if (!parensMatch) {
  24342. break;
  24343. }
  24344. var parensMatchEnd = parensMatch.index + parensMatch[0].length;
  24345. parensEnd = Math.max(parensEnd, parensMatchEnd);
  24346. }
  24347. if (parensEnd > -1) {
  24348. slice = slice.slice(0, parensEnd) + slice.slice(parensEnd).replace(_trim, '');
  24349. } else {
  24350. slice = slice.replace(_trim, '');
  24351. }
  24352. if (slice.length <= match[0].length) {
  24353. // the extract only contains the starting marker of a URI,
  24354. // e.g. "www" or "http://"
  24355. continue;
  24356. }
  24357. if (options.ignore && options.ignore.test(slice)) {
  24358. continue;
  24359. }
  24360. end = start + slice.length;
  24361. var result = callback(slice, start, end, string);
  24362. if (result === undefined) {
  24363. _start.lastIndex = end;
  24364. continue;
  24365. }
  24366. result = String(result);
  24367. string = string.slice(0, start) + result + string.slice(end);
  24368. _start.lastIndex = start + result.length;
  24369. }
  24370. _start.lastIndex = 0;
  24371. return string;
  24372. };
  24373. URI.ensureValidHostname = function(v, protocol) {
  24374. // Theoretically URIs allow percent-encoding in Hostnames (according to RFC 3986)
  24375. // they are not part of DNS and therefore ignored by URI.js
  24376. var hasHostname = !!v; // not null and not an empty string
  24377. var hasProtocol = !!protocol;
  24378. var rejectEmptyHostname = false;
  24379. if (hasProtocol) {
  24380. rejectEmptyHostname = arrayContains(URI.hostProtocols, protocol);
  24381. }
  24382. if (rejectEmptyHostname && !hasHostname) {
  24383. throw new TypeError('Hostname cannot be empty, if protocol is ' + protocol);
  24384. } else if (v && v.match(URI.invalid_hostname_characters)) {
  24385. // test punycode
  24386. if (!punycode) {
  24387. throw new TypeError('Hostname "' + v + '" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');
  24388. }
  24389. if (punycode.toASCII(v).match(URI.invalid_hostname_characters)) {
  24390. throw new TypeError('Hostname "' + v + '" contains characters other than [A-Z0-9.-:_]');
  24391. }
  24392. }
  24393. };
  24394. URI.ensureValidPort = function (v) {
  24395. if (!v) {
  24396. return;
  24397. }
  24398. var port = Number(v);
  24399. if (isInteger(port) && (port > 0) && (port < 65536)) {
  24400. return;
  24401. }
  24402. throw new TypeError('Port "' + v + '" is not a valid port');
  24403. };
  24404. // noConflict
  24405. URI.noConflict = function(removeAll) {
  24406. if (removeAll) {
  24407. var unconflicted = {
  24408. URI: this.noConflict()
  24409. };
  24410. if (root.URITemplate && typeof root.URITemplate.noConflict === 'function') {
  24411. unconflicted.URITemplate = root.URITemplate.noConflict();
  24412. }
  24413. if (root.IPv6 && typeof root.IPv6.noConflict === 'function') {
  24414. unconflicted.IPv6 = root.IPv6.noConflict();
  24415. }
  24416. if (root.SecondLevelDomains && typeof root.SecondLevelDomains.noConflict === 'function') {
  24417. unconflicted.SecondLevelDomains = root.SecondLevelDomains.noConflict();
  24418. }
  24419. return unconflicted;
  24420. } else if (root.URI === this) {
  24421. root.URI = _URI;
  24422. }
  24423. return this;
  24424. };
  24425. p.build = function(deferBuild) {
  24426. if (deferBuild === true) {
  24427. this._deferred_build = true;
  24428. } else if (deferBuild === undefined || this._deferred_build) {
  24429. this._string = URI.build(this._parts);
  24430. this._deferred_build = false;
  24431. }
  24432. return this;
  24433. };
  24434. p.clone = function() {
  24435. return new URI(this);
  24436. };
  24437. p.valueOf = p.toString = function() {
  24438. return this.build(false)._string;
  24439. };
  24440. function generateSimpleAccessor(_part){
  24441. return function(v, build) {
  24442. if (v === undefined) {
  24443. return this._parts[_part] || '';
  24444. } else {
  24445. this._parts[_part] = v || null;
  24446. this.build(!build);
  24447. return this;
  24448. }
  24449. };
  24450. }
  24451. function generatePrefixAccessor(_part, _key){
  24452. return function(v, build) {
  24453. if (v === undefined) {
  24454. return this._parts[_part] || '';
  24455. } else {
  24456. if (v !== null) {
  24457. v = v + '';
  24458. if (v.charAt(0) === _key) {
  24459. v = v.substring(1);
  24460. }
  24461. }
  24462. this._parts[_part] = v;
  24463. this.build(!build);
  24464. return this;
  24465. }
  24466. };
  24467. }
  24468. p.protocol = generateSimpleAccessor('protocol');
  24469. p.username = generateSimpleAccessor('username');
  24470. p.password = generateSimpleAccessor('password');
  24471. p.hostname = generateSimpleAccessor('hostname');
  24472. p.port = generateSimpleAccessor('port');
  24473. p.query = generatePrefixAccessor('query', '?');
  24474. p.fragment = generatePrefixAccessor('fragment', '#');
  24475. p.search = function(v, build) {
  24476. var t = this.query(v, build);
  24477. return typeof t === 'string' && t.length ? ('?' + t) : t;
  24478. };
  24479. p.hash = function(v, build) {
  24480. var t = this.fragment(v, build);
  24481. return typeof t === 'string' && t.length ? ('#' + t) : t;
  24482. };
  24483. p.pathname = function(v, build) {
  24484. if (v === undefined || v === true) {
  24485. var res = this._parts.path || (this._parts.hostname ? '/' : '');
  24486. return v ? (this._parts.urn ? URI.decodeUrnPath : URI.decodePath)(res) : res;
  24487. } else {
  24488. if (this._parts.urn) {
  24489. this._parts.path = v ? URI.recodeUrnPath(v) : '';
  24490. } else {
  24491. this._parts.path = v ? URI.recodePath(v) : '/';
  24492. }
  24493. this.build(!build);
  24494. return this;
  24495. }
  24496. };
  24497. p.path = p.pathname;
  24498. p.href = function(href, build) {
  24499. var key;
  24500. if (href === undefined) {
  24501. return this.toString();
  24502. }
  24503. this._string = '';
  24504. this._parts = URI._parts();
  24505. var _URI = href instanceof URI;
  24506. var _object = typeof href === 'object' && (href.hostname || href.path || href.pathname);
  24507. if (href.nodeName) {
  24508. var attribute = URI.getDomAttribute(href);
  24509. href = href[attribute] || '';
  24510. _object = false;
  24511. }
  24512. // window.location is reported to be an object, but it's not the sort
  24513. // of object we're looking for:
  24514. // * location.protocol ends with a colon
  24515. // * location.query != object.search
  24516. // * location.hash != object.fragment
  24517. // simply serializing the unknown object should do the trick
  24518. // (for location, not for everything...)
  24519. if (!_URI && _object && href.pathname !== undefined) {
  24520. href = href.toString();
  24521. }
  24522. if (typeof href === 'string' || href instanceof String) {
  24523. this._parts = URI.parse(String(href), this._parts);
  24524. } else if (_URI || _object) {
  24525. var src = _URI ? href._parts : href;
  24526. for (key in src) {
  24527. if (key === 'query') { continue; }
  24528. if (hasOwn.call(this._parts, key)) {
  24529. this._parts[key] = src[key];
  24530. }
  24531. }
  24532. if (src.query) {
  24533. this.query(src.query, false);
  24534. }
  24535. } else {
  24536. throw new TypeError('invalid input');
  24537. }
  24538. this.build(!build);
  24539. return this;
  24540. };
  24541. // identification accessors
  24542. p.is = function(what) {
  24543. var ip = false;
  24544. var ip4 = false;
  24545. var ip6 = false;
  24546. var name = false;
  24547. var sld = false;
  24548. var idn = false;
  24549. var punycode = false;
  24550. var relative = !this._parts.urn;
  24551. if (this._parts.hostname) {
  24552. relative = false;
  24553. ip4 = URI.ip4_expression.test(this._parts.hostname);
  24554. ip6 = URI.ip6_expression.test(this._parts.hostname);
  24555. ip = ip4 || ip6;
  24556. name = !ip;
  24557. sld = name && SLD && SLD.has(this._parts.hostname);
  24558. idn = name && URI.idn_expression.test(this._parts.hostname);
  24559. punycode = name && URI.punycode_expression.test(this._parts.hostname);
  24560. }
  24561. switch (what.toLowerCase()) {
  24562. case 'relative':
  24563. return relative;
  24564. case 'absolute':
  24565. return !relative;
  24566. // hostname identification
  24567. case 'domain':
  24568. case 'name':
  24569. return name;
  24570. case 'sld':
  24571. return sld;
  24572. case 'ip':
  24573. return ip;
  24574. case 'ip4':
  24575. case 'ipv4':
  24576. case 'inet4':
  24577. return ip4;
  24578. case 'ip6':
  24579. case 'ipv6':
  24580. case 'inet6':
  24581. return ip6;
  24582. case 'idn':
  24583. return idn;
  24584. case 'url':
  24585. return !this._parts.urn;
  24586. case 'urn':
  24587. return !!this._parts.urn;
  24588. case 'punycode':
  24589. return punycode;
  24590. }
  24591. return null;
  24592. };
  24593. // component specific input validation
  24594. var _protocol = p.protocol;
  24595. var _port = p.port;
  24596. var _hostname = p.hostname;
  24597. p.protocol = function(v, build) {
  24598. if (v) {
  24599. // accept trailing ://
  24600. v = v.replace(/:(\/\/)?$/, '');
  24601. if (!v.match(URI.protocol_expression)) {
  24602. throw new TypeError('Protocol "' + v + '" contains characters other than [A-Z0-9.+-] or doesn\'t start with [A-Z]');
  24603. }
  24604. }
  24605. return _protocol.call(this, v, build);
  24606. };
  24607. p.scheme = p.protocol;
  24608. p.port = function(v, build) {
  24609. if (this._parts.urn) {
  24610. return v === undefined ? '' : this;
  24611. }
  24612. if (v !== undefined) {
  24613. if (v === 0) {
  24614. v = null;
  24615. }
  24616. if (v) {
  24617. v += '';
  24618. if (v.charAt(0) === ':') {
  24619. v = v.substring(1);
  24620. }
  24621. URI.ensureValidPort(v);
  24622. }
  24623. }
  24624. return _port.call(this, v, build);
  24625. };
  24626. p.hostname = function(v, build) {
  24627. if (this._parts.urn) {
  24628. return v === undefined ? '' : this;
  24629. }
  24630. if (v !== undefined) {
  24631. var x = { preventInvalidHostname: this._parts.preventInvalidHostname };
  24632. var res = URI.parseHost(v, x);
  24633. if (res !== '/') {
  24634. throw new TypeError('Hostname "' + v + '" contains characters other than [A-Z0-9.-]');
  24635. }
  24636. v = x.hostname;
  24637. if (this._parts.preventInvalidHostname) {
  24638. URI.ensureValidHostname(v, this._parts.protocol);
  24639. }
  24640. }
  24641. return _hostname.call(this, v, build);
  24642. };
  24643. // compound accessors
  24644. p.origin = function(v, build) {
  24645. if (this._parts.urn) {
  24646. return v === undefined ? '' : this;
  24647. }
  24648. if (v === undefined) {
  24649. var protocol = this.protocol();
  24650. var authority = this.authority();
  24651. if (!authority) {
  24652. return '';
  24653. }
  24654. return (protocol ? protocol + '://' : '') + this.authority();
  24655. } else {
  24656. var origin = URI(v);
  24657. this
  24658. .protocol(origin.protocol())
  24659. .authority(origin.authority())
  24660. .build(!build);
  24661. return this;
  24662. }
  24663. };
  24664. p.host = function(v, build) {
  24665. if (this._parts.urn) {
  24666. return v === undefined ? '' : this;
  24667. }
  24668. if (v === undefined) {
  24669. return this._parts.hostname ? URI.buildHost(this._parts) : '';
  24670. } else {
  24671. var res = URI.parseHost(v, this._parts);
  24672. if (res !== '/') {
  24673. throw new TypeError('Hostname "' + v + '" contains characters other than [A-Z0-9.-]');
  24674. }
  24675. this.build(!build);
  24676. return this;
  24677. }
  24678. };
  24679. p.authority = function(v, build) {
  24680. if (this._parts.urn) {
  24681. return v === undefined ? '' : this;
  24682. }
  24683. if (v === undefined) {
  24684. return this._parts.hostname ? URI.buildAuthority(this._parts) : '';
  24685. } else {
  24686. var res = URI.parseAuthority(v, this._parts);
  24687. if (res !== '/') {
  24688. throw new TypeError('Hostname "' + v + '" contains characters other than [A-Z0-9.-]');
  24689. }
  24690. this.build(!build);
  24691. return this;
  24692. }
  24693. };
  24694. p.userinfo = function(v, build) {
  24695. if (this._parts.urn) {
  24696. return v === undefined ? '' : this;
  24697. }
  24698. if (v === undefined) {
  24699. var t = URI.buildUserinfo(this._parts);
  24700. return t ? t.substring(0, t.length -1) : t;
  24701. } else {
  24702. if (v[v.length-1] !== '@') {
  24703. v += '@';
  24704. }
  24705. URI.parseUserinfo(v, this._parts);
  24706. this.build(!build);
  24707. return this;
  24708. }
  24709. };
  24710. p.resource = function(v, build) {
  24711. var parts;
  24712. if (v === undefined) {
  24713. return this.path() + this.search() + this.hash();
  24714. }
  24715. parts = URI.parse(v);
  24716. this._parts.path = parts.path;
  24717. this._parts.query = parts.query;
  24718. this._parts.fragment = parts.fragment;
  24719. this.build(!build);
  24720. return this;
  24721. };
  24722. // fraction accessors
  24723. p.subdomain = function(v, build) {
  24724. if (this._parts.urn) {
  24725. return v === undefined ? '' : this;
  24726. }
  24727. // convenience, return "www" from "www.example.org"
  24728. if (v === undefined) {
  24729. if (!this._parts.hostname || this.is('IP')) {
  24730. return '';
  24731. }
  24732. // grab domain and add another segment
  24733. var end = this._parts.hostname.length - this.domain().length - 1;
  24734. return this._parts.hostname.substring(0, end) || '';
  24735. } else {
  24736. var e = this._parts.hostname.length - this.domain().length;
  24737. var sub = this._parts.hostname.substring(0, e);
  24738. var replace = new RegExp('^' + escapeRegEx(sub));
  24739. if (v && v.charAt(v.length - 1) !== '.') {
  24740. v += '.';
  24741. }
  24742. if (v.indexOf(':') !== -1) {
  24743. throw new TypeError('Domains cannot contain colons');
  24744. }
  24745. if (v) {
  24746. URI.ensureValidHostname(v, this._parts.protocol);
  24747. }
  24748. this._parts.hostname = this._parts.hostname.replace(replace, v);
  24749. this.build(!build);
  24750. return this;
  24751. }
  24752. };
  24753. p.domain = function(v, build) {
  24754. if (this._parts.urn) {
  24755. return v === undefined ? '' : this;
  24756. }
  24757. if (typeof v === 'boolean') {
  24758. build = v;
  24759. v = undefined;
  24760. }
  24761. // convenience, return "example.org" from "www.example.org"
  24762. if (v === undefined) {
  24763. if (!this._parts.hostname || this.is('IP')) {
  24764. return '';
  24765. }
  24766. // if hostname consists of 1 or 2 segments, it must be the domain
  24767. var t = this._parts.hostname.match(/\./g);
  24768. if (t && t.length < 2) {
  24769. return this._parts.hostname;
  24770. }
  24771. // grab tld and add another segment
  24772. var end = this._parts.hostname.length - this.tld(build).length - 1;
  24773. end = this._parts.hostname.lastIndexOf('.', end -1) + 1;
  24774. return this._parts.hostname.substring(end) || '';
  24775. } else {
  24776. if (!v) {
  24777. throw new TypeError('cannot set domain empty');
  24778. }
  24779. if (v.indexOf(':') !== -1) {
  24780. throw new TypeError('Domains cannot contain colons');
  24781. }
  24782. URI.ensureValidHostname(v, this._parts.protocol);
  24783. if (!this._parts.hostname || this.is('IP')) {
  24784. this._parts.hostname = v;
  24785. } else {
  24786. var replace = new RegExp(escapeRegEx(this.domain()) + '$');
  24787. this._parts.hostname = this._parts.hostname.replace(replace, v);
  24788. }
  24789. this.build(!build);
  24790. return this;
  24791. }
  24792. };
  24793. p.tld = function(v, build) {
  24794. if (this._parts.urn) {
  24795. return v === undefined ? '' : this;
  24796. }
  24797. if (typeof v === 'boolean') {
  24798. build = v;
  24799. v = undefined;
  24800. }
  24801. // return "org" from "www.example.org"
  24802. if (v === undefined) {
  24803. if (!this._parts.hostname || this.is('IP')) {
  24804. return '';
  24805. }
  24806. var pos = this._parts.hostname.lastIndexOf('.');
  24807. var tld = this._parts.hostname.substring(pos + 1);
  24808. if (build !== true && SLD && SLD.list[tld.toLowerCase()]) {
  24809. return SLD.get(this._parts.hostname) || tld;
  24810. }
  24811. return tld;
  24812. } else {
  24813. var replace;
  24814. if (!v) {
  24815. throw new TypeError('cannot set TLD empty');
  24816. } else if (v.match(/[^a-zA-Z0-9-]/)) {
  24817. if (SLD && SLD.is(v)) {
  24818. replace = new RegExp(escapeRegEx(this.tld()) + '$');
  24819. this._parts.hostname = this._parts.hostname.replace(replace, v);
  24820. } else {
  24821. throw new TypeError('TLD "' + v + '" contains characters other than [A-Z0-9]');
  24822. }
  24823. } else if (!this._parts.hostname || this.is('IP')) {
  24824. throw new ReferenceError('cannot set TLD on non-domain host');
  24825. } else {
  24826. replace = new RegExp(escapeRegEx(this.tld()) + '$');
  24827. this._parts.hostname = this._parts.hostname.replace(replace, v);
  24828. }
  24829. this.build(!build);
  24830. return this;
  24831. }
  24832. };
  24833. p.directory = function(v, build) {
  24834. if (this._parts.urn) {
  24835. return v === undefined ? '' : this;
  24836. }
  24837. if (v === undefined || v === true) {
  24838. if (!this._parts.path && !this._parts.hostname) {
  24839. return '';
  24840. }
  24841. if (this._parts.path === '/') {
  24842. return '/';
  24843. }
  24844. var end = this._parts.path.length - this.filename().length - 1;
  24845. var res = this._parts.path.substring(0, end) || (this._parts.hostname ? '/' : '');
  24846. return v ? URI.decodePath(res) : res;
  24847. } else {
  24848. var e = this._parts.path.length - this.filename().length;
  24849. var directory = this._parts.path.substring(0, e);
  24850. var replace = new RegExp('^' + escapeRegEx(directory));
  24851. // fully qualifier directories begin with a slash
  24852. if (!this.is('relative')) {
  24853. if (!v) {
  24854. v = '/';
  24855. }
  24856. if (v.charAt(0) !== '/') {
  24857. v = '/' + v;
  24858. }
  24859. }
  24860. // directories always end with a slash
  24861. if (v && v.charAt(v.length - 1) !== '/') {
  24862. v += '/';
  24863. }
  24864. v = URI.recodePath(v);
  24865. this._parts.path = this._parts.path.replace(replace, v);
  24866. this.build(!build);
  24867. return this;
  24868. }
  24869. };
  24870. p.filename = function(v, build) {
  24871. if (this._parts.urn) {
  24872. return v === undefined ? '' : this;
  24873. }
  24874. if (typeof v !== 'string') {
  24875. if (!this._parts.path || this._parts.path === '/') {
  24876. return '';
  24877. }
  24878. var pos = this._parts.path.lastIndexOf('/');
  24879. var res = this._parts.path.substring(pos+1);
  24880. return v ? URI.decodePathSegment(res) : res;
  24881. } else {
  24882. var mutatedDirectory = false;
  24883. if (v.charAt(0) === '/') {
  24884. v = v.substring(1);
  24885. }
  24886. if (v.match(/\.?\//)) {
  24887. mutatedDirectory = true;
  24888. }
  24889. var replace = new RegExp(escapeRegEx(this.filename()) + '$');
  24890. v = URI.recodePath(v);
  24891. this._parts.path = this._parts.path.replace(replace, v);
  24892. if (mutatedDirectory) {
  24893. this.normalizePath(build);
  24894. } else {
  24895. this.build(!build);
  24896. }
  24897. return this;
  24898. }
  24899. };
  24900. p.suffix = function(v, build) {
  24901. if (this._parts.urn) {
  24902. return v === undefined ? '' : this;
  24903. }
  24904. if (v === undefined || v === true) {
  24905. if (!this._parts.path || this._parts.path === '/') {
  24906. return '';
  24907. }
  24908. var filename = this.filename();
  24909. var pos = filename.lastIndexOf('.');
  24910. var s, res;
  24911. if (pos === -1) {
  24912. return '';
  24913. }
  24914. // suffix may only contain alnum characters (yup, I made this up.)
  24915. s = filename.substring(pos+1);
  24916. res = (/^[a-z0-9%]+$/i).test(s) ? s : '';
  24917. return v ? URI.decodePathSegment(res) : res;
  24918. } else {
  24919. if (v.charAt(0) === '.') {
  24920. v = v.substring(1);
  24921. }
  24922. var suffix = this.suffix();
  24923. var replace;
  24924. if (!suffix) {
  24925. if (!v) {
  24926. return this;
  24927. }
  24928. this._parts.path += '.' + URI.recodePath(v);
  24929. } else if (!v) {
  24930. replace = new RegExp(escapeRegEx('.' + suffix) + '$');
  24931. } else {
  24932. replace = new RegExp(escapeRegEx(suffix) + '$');
  24933. }
  24934. if (replace) {
  24935. v = URI.recodePath(v);
  24936. this._parts.path = this._parts.path.replace(replace, v);
  24937. }
  24938. this.build(!build);
  24939. return this;
  24940. }
  24941. };
  24942. p.segment = function(segment, v, build) {
  24943. var separator = this._parts.urn ? ':' : '/';
  24944. var path = this.path();
  24945. var absolute = path.substring(0, 1) === '/';
  24946. var segments = path.split(separator);
  24947. if (segment !== undefined && typeof segment !== 'number') {
  24948. build = v;
  24949. v = segment;
  24950. segment = undefined;
  24951. }
  24952. if (segment !== undefined && typeof segment !== 'number') {
  24953. throw new Error('Bad segment "' + segment + '", must be 0-based integer');
  24954. }
  24955. if (absolute) {
  24956. segments.shift();
  24957. }
  24958. if (segment < 0) {
  24959. // allow negative indexes to address from the end
  24960. segment = Math.max(segments.length + segment, 0);
  24961. }
  24962. if (v === undefined) {
  24963. /*jshint laxbreak: true */
  24964. return segment === undefined
  24965. ? segments
  24966. : segments[segment];
  24967. /*jshint laxbreak: false */
  24968. } else if (segment === null || segments[segment] === undefined) {
  24969. if (isArray(v)) {
  24970. segments = [];
  24971. // collapse empty elements within array
  24972. for (var i=0, l=v.length; i < l; i++) {
  24973. if (!v[i].length && (!segments.length || !segments[segments.length -1].length)) {
  24974. continue;
  24975. }
  24976. if (segments.length && !segments[segments.length -1].length) {
  24977. segments.pop();
  24978. }
  24979. segments.push(trimSlashes(v[i]));
  24980. }
  24981. } else if (v || typeof v === 'string') {
  24982. v = trimSlashes(v);
  24983. if (segments[segments.length -1] === '') {
  24984. // empty trailing elements have to be overwritten
  24985. // to prevent results such as /foo//bar
  24986. segments[segments.length -1] = v;
  24987. } else {
  24988. segments.push(v);
  24989. }
  24990. }
  24991. } else {
  24992. if (v) {
  24993. segments[segment] = trimSlashes(v);
  24994. } else {
  24995. segments.splice(segment, 1);
  24996. }
  24997. }
  24998. if (absolute) {
  24999. segments.unshift('');
  25000. }
  25001. return this.path(segments.join(separator), build);
  25002. };
  25003. p.segmentCoded = function(segment, v, build) {
  25004. var segments, i, l;
  25005. if (typeof segment !== 'number') {
  25006. build = v;
  25007. v = segment;
  25008. segment = undefined;
  25009. }
  25010. if (v === undefined) {
  25011. segments = this.segment(segment, v, build);
  25012. if (!isArray(segments)) {
  25013. segments = segments !== undefined ? URI.decode(segments) : undefined;
  25014. } else {
  25015. for (i = 0, l = segments.length; i < l; i++) {
  25016. segments[i] = URI.decode(segments[i]);
  25017. }
  25018. }
  25019. return segments;
  25020. }
  25021. if (!isArray(v)) {
  25022. v = (typeof v === 'string' || v instanceof String) ? URI.encode(v) : v;
  25023. } else {
  25024. for (i = 0, l = v.length; i < l; i++) {
  25025. v[i] = URI.encode(v[i]);
  25026. }
  25027. }
  25028. return this.segment(segment, v, build);
  25029. };
  25030. // mutating query string
  25031. var q = p.query;
  25032. p.query = function(v, build) {
  25033. if (v === true) {
  25034. return URI.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
  25035. } else if (typeof v === 'function') {
  25036. var data = URI.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
  25037. var result = v.call(this, data);
  25038. this._parts.query = URI.buildQuery(result || data, this._parts.duplicateQueryParameters, this._parts.escapeQuerySpace);
  25039. this.build(!build);
  25040. return this;
  25041. } else if (v !== undefined && typeof v !== 'string') {
  25042. this._parts.query = URI.buildQuery(v, this._parts.duplicateQueryParameters, this._parts.escapeQuerySpace);
  25043. this.build(!build);
  25044. return this;
  25045. } else {
  25046. return q.call(this, v, build);
  25047. }
  25048. };
  25049. p.setQuery = function(name, value, build) {
  25050. var data = URI.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
  25051. if (typeof name === 'string' || name instanceof String) {
  25052. data[name] = value !== undefined ? value : null;
  25053. } else if (typeof name === 'object') {
  25054. for (var key in name) {
  25055. if (hasOwn.call(name, key)) {
  25056. data[key] = name[key];
  25057. }
  25058. }
  25059. } else {
  25060. throw new TypeError('URI.addQuery() accepts an object, string as the name parameter');
  25061. }
  25062. this._parts.query = URI.buildQuery(data, this._parts.duplicateQueryParameters, this._parts.escapeQuerySpace);
  25063. if (typeof name !== 'string') {
  25064. build = value;
  25065. }
  25066. this.build(!build);
  25067. return this;
  25068. };
  25069. p.addQuery = function(name, value, build) {
  25070. var data = URI.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
  25071. URI.addQuery(data, name, value === undefined ? null : value);
  25072. this._parts.query = URI.buildQuery(data, this._parts.duplicateQueryParameters, this._parts.escapeQuerySpace);
  25073. if (typeof name !== 'string') {
  25074. build = value;
  25075. }
  25076. this.build(!build);
  25077. return this;
  25078. };
  25079. p.removeQuery = function(name, value, build) {
  25080. var data = URI.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
  25081. URI.removeQuery(data, name, value);
  25082. this._parts.query = URI.buildQuery(data, this._parts.duplicateQueryParameters, this._parts.escapeQuerySpace);
  25083. if (typeof name !== 'string') {
  25084. build = value;
  25085. }
  25086. this.build(!build);
  25087. return this;
  25088. };
  25089. p.hasQuery = function(name, value, withinArray) {
  25090. var data = URI.parseQuery(this._parts.query, this._parts.escapeQuerySpace);
  25091. return URI.hasQuery(data, name, value, withinArray);
  25092. };
  25093. p.setSearch = p.setQuery;
  25094. p.addSearch = p.addQuery;
  25095. p.removeSearch = p.removeQuery;
  25096. p.hasSearch = p.hasQuery;
  25097. // sanitizing URLs
  25098. p.normalize = function() {
  25099. if (this._parts.urn) {
  25100. return this
  25101. .normalizeProtocol(false)
  25102. .normalizePath(false)
  25103. .normalizeQuery(false)
  25104. .normalizeFragment(false)
  25105. .build();
  25106. }
  25107. return this
  25108. .normalizeProtocol(false)
  25109. .normalizeHostname(false)
  25110. .normalizePort(false)
  25111. .normalizePath(false)
  25112. .normalizeQuery(false)
  25113. .normalizeFragment(false)
  25114. .build();
  25115. };
  25116. p.normalizeProtocol = function(build) {
  25117. if (typeof this._parts.protocol === 'string') {
  25118. this._parts.protocol = this._parts.protocol.toLowerCase();
  25119. this.build(!build);
  25120. }
  25121. return this;
  25122. };
  25123. p.normalizeHostname = function(build) {
  25124. if (this._parts.hostname) {
  25125. if (this.is('IDN') && punycode) {
  25126. this._parts.hostname = punycode.toASCII(this._parts.hostname);
  25127. } else if (this.is('IPv6') && IPv6) {
  25128. this._parts.hostname = IPv6.best(this._parts.hostname);
  25129. }
  25130. this._parts.hostname = this._parts.hostname.toLowerCase();
  25131. this.build(!build);
  25132. }
  25133. return this;
  25134. };
  25135. p.normalizePort = function(build) {
  25136. // remove port of it's the protocol's default
  25137. if (typeof this._parts.protocol === 'string' && this._parts.port === URI.defaultPorts[this._parts.protocol]) {
  25138. this._parts.port = null;
  25139. this.build(!build);
  25140. }
  25141. return this;
  25142. };
  25143. p.normalizePath = function(build) {
  25144. var _path = this._parts.path;
  25145. if (!_path) {
  25146. return this;
  25147. }
  25148. if (this._parts.urn) {
  25149. this._parts.path = URI.recodeUrnPath(this._parts.path);
  25150. this.build(!build);
  25151. return this;
  25152. }
  25153. if (this._parts.path === '/') {
  25154. return this;
  25155. }
  25156. _path = URI.recodePath(_path);
  25157. var _was_relative;
  25158. var _leadingParents = '';
  25159. var _parent, _pos;
  25160. // handle relative paths
  25161. if (_path.charAt(0) !== '/') {
  25162. _was_relative = true;
  25163. _path = '/' + _path;
  25164. }
  25165. // handle relative files (as opposed to directories)
  25166. if (_path.slice(-3) === '/..' || _path.slice(-2) === '/.') {
  25167. _path += '/';
  25168. }
  25169. // resolve simples
  25170. _path = _path
  25171. .replace(/(\/(\.\/)+)|(\/\.$)/g, '/')
  25172. .replace(/\/{2,}/g, '/');
  25173. // remember leading parents
  25174. if (_was_relative) {
  25175. _leadingParents = _path.substring(1).match(/^(\.\.\/)+/) || '';
  25176. if (_leadingParents) {
  25177. _leadingParents = _leadingParents[0];
  25178. }
  25179. }
  25180. // resolve parents
  25181. while (true) {
  25182. _parent = _path.search(/\/\.\.(\/|$)/);
  25183. if (_parent === -1) {
  25184. // no more ../ to resolve
  25185. break;
  25186. } else if (_parent === 0) {
  25187. // top level cannot be relative, skip it
  25188. _path = _path.substring(3);
  25189. continue;
  25190. }
  25191. _pos = _path.substring(0, _parent).lastIndexOf('/');
  25192. if (_pos === -1) {
  25193. _pos = _parent;
  25194. }
  25195. _path = _path.substring(0, _pos) + _path.substring(_parent + 3);
  25196. }
  25197. // revert to relative
  25198. if (_was_relative && this.is('relative')) {
  25199. _path = _leadingParents + _path.substring(1);
  25200. }
  25201. this._parts.path = _path;
  25202. this.build(!build);
  25203. return this;
  25204. };
  25205. p.normalizePathname = p.normalizePath;
  25206. p.normalizeQuery = function(build) {
  25207. if (typeof this._parts.query === 'string') {
  25208. if (!this._parts.query.length) {
  25209. this._parts.query = null;
  25210. } else {
  25211. this.query(URI.parseQuery(this._parts.query, this._parts.escapeQuerySpace));
  25212. }
  25213. this.build(!build);
  25214. }
  25215. return this;
  25216. };
  25217. p.normalizeFragment = function(build) {
  25218. if (!this._parts.fragment) {
  25219. this._parts.fragment = null;
  25220. this.build(!build);
  25221. }
  25222. return this;
  25223. };
  25224. p.normalizeSearch = p.normalizeQuery;
  25225. p.normalizeHash = p.normalizeFragment;
  25226. p.iso8859 = function() {
  25227. // expect unicode input, iso8859 output
  25228. var e = URI.encode;
  25229. var d = URI.decode;
  25230. URI.encode = escape;
  25231. URI.decode = decodeURIComponent;
  25232. try {
  25233. this.normalize();
  25234. } finally {
  25235. URI.encode = e;
  25236. URI.decode = d;
  25237. }
  25238. return this;
  25239. };
  25240. p.unicode = function() {
  25241. // expect iso8859 input, unicode output
  25242. var e = URI.encode;
  25243. var d = URI.decode;
  25244. URI.encode = strictEncodeURIComponent;
  25245. URI.decode = unescape;
  25246. try {
  25247. this.normalize();
  25248. } finally {
  25249. URI.encode = e;
  25250. URI.decode = d;
  25251. }
  25252. return this;
  25253. };
  25254. p.readable = function() {
  25255. var uri = this.clone();
  25256. // removing username, password, because they shouldn't be displayed according to RFC 3986
  25257. uri.username('').password('').normalize();
  25258. var t = '';
  25259. if (uri._parts.protocol) {
  25260. t += uri._parts.protocol + '://';
  25261. }
  25262. if (uri._parts.hostname) {
  25263. if (uri.is('punycode') && punycode) {
  25264. t += punycode.toUnicode(uri._parts.hostname);
  25265. if (uri._parts.port) {
  25266. t += ':' + uri._parts.port;
  25267. }
  25268. } else {
  25269. t += uri.host();
  25270. }
  25271. }
  25272. if (uri._parts.hostname && uri._parts.path && uri._parts.path.charAt(0) !== '/') {
  25273. t += '/';
  25274. }
  25275. t += uri.path(true);
  25276. if (uri._parts.query) {
  25277. var q = '';
  25278. for (var i = 0, qp = uri._parts.query.split('&'), l = qp.length; i < l; i++) {
  25279. var kv = (qp[i] || '').split('=');
  25280. q += '&' + URI.decodeQuery(kv[0], this._parts.escapeQuerySpace)
  25281. .replace(/&/g, '%26');
  25282. if (kv[1] !== undefined) {
  25283. q += '=' + URI.decodeQuery(kv[1], this._parts.escapeQuerySpace)
  25284. .replace(/&/g, '%26');
  25285. }
  25286. }
  25287. t += '?' + q.substring(1);
  25288. }
  25289. t += URI.decodeQuery(uri.hash(), true);
  25290. return t;
  25291. };
  25292. // resolving relative and absolute URLs
  25293. p.absoluteTo = function(base) {
  25294. var resolved = this.clone();
  25295. var properties = ['protocol', 'username', 'password', 'hostname', 'port'];
  25296. var basedir, i, p;
  25297. if (this._parts.urn) {
  25298. throw new Error('URNs do not have any generally defined hierarchical components');
  25299. }
  25300. if (!(base instanceof URI)) {
  25301. base = new URI(base);
  25302. }
  25303. if (resolved._parts.protocol) {
  25304. // Directly returns even if this._parts.hostname is empty.
  25305. return resolved;
  25306. } else {
  25307. resolved._parts.protocol = base._parts.protocol;
  25308. }
  25309. if (this._parts.hostname) {
  25310. return resolved;
  25311. }
  25312. for (i = 0; (p = properties[i]); i++) {
  25313. resolved._parts[p] = base._parts[p];
  25314. }
  25315. if (!resolved._parts.path) {
  25316. resolved._parts.path = base._parts.path;
  25317. if (!resolved._parts.query) {
  25318. resolved._parts.query = base._parts.query;
  25319. }
  25320. } else {
  25321. if (resolved._parts.path.substring(-2) === '..') {
  25322. resolved._parts.path += '/';
  25323. }
  25324. if (resolved.path().charAt(0) !== '/') {
  25325. basedir = base.directory();
  25326. basedir = basedir ? basedir : base.path().indexOf('/') === 0 ? '/' : '';
  25327. resolved._parts.path = (basedir ? (basedir + '/') : '') + resolved._parts.path;
  25328. resolved.normalizePath();
  25329. }
  25330. }
  25331. resolved.build();
  25332. return resolved;
  25333. };
  25334. p.relativeTo = function(base) {
  25335. var relative = this.clone().normalize();
  25336. var relativeParts, baseParts, common, relativePath, basePath;
  25337. if (relative._parts.urn) {
  25338. throw new Error('URNs do not have any generally defined hierarchical components');
  25339. }
  25340. base = new URI(base).normalize();
  25341. relativeParts = relative._parts;
  25342. baseParts = base._parts;
  25343. relativePath = relative.path();
  25344. basePath = base.path();
  25345. if (relativePath.charAt(0) !== '/') {
  25346. throw new Error('URI is already relative');
  25347. }
  25348. if (basePath.charAt(0) !== '/') {
  25349. throw new Error('Cannot calculate a URI relative to another relative URI');
  25350. }
  25351. if (relativeParts.protocol === baseParts.protocol) {
  25352. relativeParts.protocol = null;
  25353. }
  25354. if (relativeParts.username !== baseParts.username || relativeParts.password !== baseParts.password) {
  25355. return relative.build();
  25356. }
  25357. if (relativeParts.protocol !== null || relativeParts.username !== null || relativeParts.password !== null) {
  25358. return relative.build();
  25359. }
  25360. if (relativeParts.hostname === baseParts.hostname && relativeParts.port === baseParts.port) {
  25361. relativeParts.hostname = null;
  25362. relativeParts.port = null;
  25363. } else {
  25364. return relative.build();
  25365. }
  25366. if (relativePath === basePath) {
  25367. relativeParts.path = '';
  25368. return relative.build();
  25369. }
  25370. // determine common sub path
  25371. common = URI.commonPath(relativePath, basePath);
  25372. // If the paths have nothing in common, return a relative URL with the absolute path.
  25373. if (!common) {
  25374. return relative.build();
  25375. }
  25376. var parents = baseParts.path
  25377. .substring(common.length)
  25378. .replace(/[^\/]*$/, '')
  25379. .replace(/.*?\//g, '../');
  25380. relativeParts.path = (parents + relativeParts.path.substring(common.length)) || './';
  25381. return relative.build();
  25382. };
  25383. // comparing URIs
  25384. p.equals = function(uri) {
  25385. var one = this.clone();
  25386. var two = new URI(uri);
  25387. var one_map = {};
  25388. var two_map = {};
  25389. var checked = {};
  25390. var one_query, two_query, key;
  25391. one.normalize();
  25392. two.normalize();
  25393. // exact match
  25394. if (one.toString() === two.toString()) {
  25395. return true;
  25396. }
  25397. // extract query string
  25398. one_query = one.query();
  25399. two_query = two.query();
  25400. one.query('');
  25401. two.query('');
  25402. // definitely not equal if not even non-query parts match
  25403. if (one.toString() !== two.toString()) {
  25404. return false;
  25405. }
  25406. // query parameters have the same length, even if they're permuted
  25407. if (one_query.length !== two_query.length) {
  25408. return false;
  25409. }
  25410. one_map = URI.parseQuery(one_query, this._parts.escapeQuerySpace);
  25411. two_map = URI.parseQuery(two_query, this._parts.escapeQuerySpace);
  25412. for (key in one_map) {
  25413. if (hasOwn.call(one_map, key)) {
  25414. if (!isArray(one_map[key])) {
  25415. if (one_map[key] !== two_map[key]) {
  25416. return false;
  25417. }
  25418. } else if (!arraysEqual(one_map[key], two_map[key])) {
  25419. return false;
  25420. }
  25421. checked[key] = true;
  25422. }
  25423. }
  25424. for (key in two_map) {
  25425. if (hasOwn.call(two_map, key)) {
  25426. if (!checked[key]) {
  25427. // two contains a parameter not present in one
  25428. return false;
  25429. }
  25430. }
  25431. }
  25432. return true;
  25433. };
  25434. // state
  25435. p.preventInvalidHostname = function(v) {
  25436. this._parts.preventInvalidHostname = !!v;
  25437. return this;
  25438. };
  25439. p.duplicateQueryParameters = function(v) {
  25440. this._parts.duplicateQueryParameters = !!v;
  25441. return this;
  25442. };
  25443. p.escapeQuerySpace = function(v) {
  25444. this._parts.escapeQuerySpace = !!v;
  25445. return this;
  25446. };
  25447. return URI;
  25448. }));
  25449. /***/ }),
  25450. /***/ "./node_modules/urijs/src/punycode.js":
  25451. /*!********************************************!*\
  25452. !*** ./node_modules/urijs/src/punycode.js ***!
  25453. \********************************************/
  25454. /*! no static exports found */
  25455. /***/ (function(module, exports, __webpack_require__) {
  25456. /* WEBPACK VAR INJECTION */(function(module, global) {var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.4.0 by @mathias */
  25457. ;(function(root) {
  25458. /** Detect free variables */
  25459. var freeExports = typeof exports == 'object' && exports &&
  25460. !exports.nodeType && exports;
  25461. var freeModule = typeof module == 'object' && module &&
  25462. !module.nodeType && module;
  25463. var freeGlobal = typeof global == 'object' && global;
  25464. if (
  25465. freeGlobal.global === freeGlobal ||
  25466. freeGlobal.window === freeGlobal ||
  25467. freeGlobal.self === freeGlobal
  25468. ) {
  25469. root = freeGlobal;
  25470. }
  25471. /**
  25472. * The `punycode` object.
  25473. * @name punycode
  25474. * @type Object
  25475. */
  25476. var punycode,
  25477. /** Highest positive signed 32-bit float value */
  25478. maxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1
  25479. /** Bootstring parameters */
  25480. base = 36,
  25481. tMin = 1,
  25482. tMax = 26,
  25483. skew = 38,
  25484. damp = 700,
  25485. initialBias = 72,
  25486. initialN = 128, // 0x80
  25487. delimiter = '-', // '\x2D'
  25488. /** Regular expressions */
  25489. regexPunycode = /^xn--/,
  25490. regexNonASCII = /[^\x20-\x7E]/, // unprintable ASCII chars + non-ASCII chars
  25491. regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g, // RFC 3490 separators
  25492. /** Error messages */
  25493. errors = {
  25494. 'overflow': 'Overflow: input needs wider integers to process',
  25495. 'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
  25496. 'invalid-input': 'Invalid input'
  25497. },
  25498. /** Convenience shortcuts */
  25499. baseMinusTMin = base - tMin,
  25500. floor = Math.floor,
  25501. stringFromCharCode = String.fromCharCode,
  25502. /** Temporary variable */
  25503. key;
  25504. /*--------------------------------------------------------------------------*/
  25505. /**
  25506. * A generic error utility function.
  25507. * @private
  25508. * @param {String} type The error type.
  25509. * @returns {Error} Throws a `RangeError` with the applicable error message.
  25510. */
  25511. function error(type) {
  25512. throw new RangeError(errors[type]);
  25513. }
  25514. /**
  25515. * A generic `Array#map` utility function.
  25516. * @private
  25517. * @param {Array} array The array to iterate over.
  25518. * @param {Function} callback The function that gets called for every array
  25519. * item.
  25520. * @returns {Array} A new array of values returned by the callback function.
  25521. */
  25522. function map(array, fn) {
  25523. var length = array.length;
  25524. var result = [];
  25525. while (length--) {
  25526. result[length] = fn(array[length]);
  25527. }
  25528. return result;
  25529. }
  25530. /**
  25531. * A simple `Array#map`-like wrapper to work with domain name strings or email
  25532. * addresses.
  25533. * @private
  25534. * @param {String} domain The domain name or email address.
  25535. * @param {Function} callback The function that gets called for every
  25536. * character.
  25537. * @returns {Array} A new string of characters returned by the callback
  25538. * function.
  25539. */
  25540. function mapDomain(string, fn) {
  25541. var parts = string.split('@');
  25542. var result = '';
  25543. if (parts.length > 1) {
  25544. // In email addresses, only the domain name should be punycoded. Leave
  25545. // the local part (i.e. everything up to `@`) intact.
  25546. result = parts[0] + '@';
  25547. string = parts[1];
  25548. }
  25549. // Avoid `split(regex)` for IE8 compatibility. See #17.
  25550. string = string.replace(regexSeparators, '\x2E');
  25551. var labels = string.split('.');
  25552. var encoded = map(labels, fn).join('.');
  25553. return result + encoded;
  25554. }
  25555. /**
  25556. * Creates an array containing the numeric code points of each Unicode
  25557. * character in the string. While JavaScript uses UCS-2 internally,
  25558. * this function will convert a pair of surrogate halves (each of which
  25559. * UCS-2 exposes as separate characters) into a single code point,
  25560. * matching UTF-16.
  25561. * @see `punycode.ucs2.encode`
  25562. * @see <https://mathiasbynens.be/notes/javascript-encoding>
  25563. * @memberOf punycode.ucs2
  25564. * @name decode
  25565. * @param {String} string The Unicode input string (UCS-2).
  25566. * @returns {Array} The new array of code points.
  25567. */
  25568. function ucs2decode(string) {
  25569. var output = [],
  25570. counter = 0,
  25571. length = string.length,
  25572. value,
  25573. extra;
  25574. while (counter < length) {
  25575. value = string.charCodeAt(counter++);
  25576. if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
  25577. // high surrogate, and there is a next character
  25578. extra = string.charCodeAt(counter++);
  25579. if ((extra & 0xFC00) == 0xDC00) { // low surrogate
  25580. output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
  25581. } else {
  25582. // unmatched surrogate; only append this code unit, in case the next
  25583. // code unit is the high surrogate of a surrogate pair
  25584. output.push(value);
  25585. counter--;
  25586. }
  25587. } else {
  25588. output.push(value);
  25589. }
  25590. }
  25591. return output;
  25592. }
  25593. /**
  25594. * Creates a string based on an array of numeric code points.
  25595. * @see `punycode.ucs2.decode`
  25596. * @memberOf punycode.ucs2
  25597. * @name encode
  25598. * @param {Array} codePoints The array of numeric code points.
  25599. * @returns {String} The new Unicode string (UCS-2).
  25600. */
  25601. function ucs2encode(array) {
  25602. return map(array, function(value) {
  25603. var output = '';
  25604. if (value > 0xFFFF) {
  25605. value -= 0x10000;
  25606. output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);
  25607. value = 0xDC00 | value & 0x3FF;
  25608. }
  25609. output += stringFromCharCode(value);
  25610. return output;
  25611. }).join('');
  25612. }
  25613. /**
  25614. * Converts a basic code point into a digit/integer.
  25615. * @see `digitToBasic()`
  25616. * @private
  25617. * @param {Number} codePoint The basic numeric code point value.
  25618. * @returns {Number} The numeric value of a basic code point (for use in
  25619. * representing integers) in the range `0` to `base - 1`, or `base` if
  25620. * the code point does not represent a value.
  25621. */
  25622. function basicToDigit(codePoint) {
  25623. if (codePoint - 48 < 10) {
  25624. return codePoint - 22;
  25625. }
  25626. if (codePoint - 65 < 26) {
  25627. return codePoint - 65;
  25628. }
  25629. if (codePoint - 97 < 26) {
  25630. return codePoint - 97;
  25631. }
  25632. return base;
  25633. }
  25634. /**
  25635. * Converts a digit/integer into a basic code point.
  25636. * @see `basicToDigit()`
  25637. * @private
  25638. * @param {Number} digit The numeric value of a basic code point.
  25639. * @returns {Number} The basic code point whose value (when used for
  25640. * representing integers) is `digit`, which needs to be in the range
  25641. * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is
  25642. * used; else, the lowercase form is used. The behavior is undefined
  25643. * if `flag` is non-zero and `digit` has no uppercase form.
  25644. */
  25645. function digitToBasic(digit, flag) {
  25646. // 0..25 map to ASCII a..z or A..Z
  25647. // 26..35 map to ASCII 0..9
  25648. return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
  25649. }
  25650. /**
  25651. * Bias adaptation function as per section 3.4 of RFC 3492.
  25652. * https://tools.ietf.org/html/rfc3492#section-3.4
  25653. * @private
  25654. */
  25655. function adapt(delta, numPoints, firstTime) {
  25656. var k = 0;
  25657. delta = firstTime ? floor(delta / damp) : delta >> 1;
  25658. delta += floor(delta / numPoints);
  25659. for (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {
  25660. delta = floor(delta / baseMinusTMin);
  25661. }
  25662. return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
  25663. }
  25664. /**
  25665. * Converts a Punycode string of ASCII-only symbols to a string of Unicode
  25666. * symbols.
  25667. * @memberOf punycode
  25668. * @param {String} input The Punycode string of ASCII-only symbols.
  25669. * @returns {String} The resulting string of Unicode symbols.
  25670. */
  25671. function decode(input) {
  25672. // Don't use UCS-2
  25673. var output = [],
  25674. inputLength = input.length,
  25675. out,
  25676. i = 0,
  25677. n = initialN,
  25678. bias = initialBias,
  25679. basic,
  25680. j,
  25681. index,
  25682. oldi,
  25683. w,
  25684. k,
  25685. digit,
  25686. t,
  25687. /** Cached calculation results */
  25688. baseMinusT;
  25689. // Handle the basic code points: let `basic` be the number of input code
  25690. // points before the last delimiter, or `0` if there is none, then copy
  25691. // the first basic code points to the output.
  25692. basic = input.lastIndexOf(delimiter);
  25693. if (basic < 0) {
  25694. basic = 0;
  25695. }
  25696. for (j = 0; j < basic; ++j) {
  25697. // if it's not a basic code point
  25698. if (input.charCodeAt(j) >= 0x80) {
  25699. error('not-basic');
  25700. }
  25701. output.push(input.charCodeAt(j));
  25702. }
  25703. // Main decoding loop: start just after the last delimiter if any basic code
  25704. // points were copied; start at the beginning otherwise.
  25705. for (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {
  25706. // `index` is the index of the next character to be consumed.
  25707. // Decode a generalized variable-length integer into `delta`,
  25708. // which gets added to `i`. The overflow checking is easier
  25709. // if we increase `i` as we go, then subtract off its starting
  25710. // value at the end to obtain `delta`.
  25711. for (oldi = i, w = 1, k = base; /* no condition */; k += base) {
  25712. if (index >= inputLength) {
  25713. error('invalid-input');
  25714. }
  25715. digit = basicToDigit(input.charCodeAt(index++));
  25716. if (digit >= base || digit > floor((maxInt - i) / w)) {
  25717. error('overflow');
  25718. }
  25719. i += digit * w;
  25720. t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
  25721. if (digit < t) {
  25722. break;
  25723. }
  25724. baseMinusT = base - t;
  25725. if (w > floor(maxInt / baseMinusT)) {
  25726. error('overflow');
  25727. }
  25728. w *= baseMinusT;
  25729. }
  25730. out = output.length + 1;
  25731. bias = adapt(i - oldi, out, oldi == 0);
  25732. // `i` was supposed to wrap around from `out` to `0`,
  25733. // incrementing `n` each time, so we'll fix that now:
  25734. if (floor(i / out) > maxInt - n) {
  25735. error('overflow');
  25736. }
  25737. n += floor(i / out);
  25738. i %= out;
  25739. // Insert `n` at position `i` of the output
  25740. output.splice(i++, 0, n);
  25741. }
  25742. return ucs2encode(output);
  25743. }
  25744. /**
  25745. * Converts a string of Unicode symbols (e.g. a domain name label) to a
  25746. * Punycode string of ASCII-only symbols.
  25747. * @memberOf punycode
  25748. * @param {String} input The string of Unicode symbols.
  25749. * @returns {String} The resulting Punycode string of ASCII-only symbols.
  25750. */
  25751. function encode(input) {
  25752. var n,
  25753. delta,
  25754. handledCPCount,
  25755. basicLength,
  25756. bias,
  25757. j,
  25758. m,
  25759. q,
  25760. k,
  25761. t,
  25762. currentValue,
  25763. output = [],
  25764. /** `inputLength` will hold the number of code points in `input`. */
  25765. inputLength,
  25766. /** Cached calculation results */
  25767. handledCPCountPlusOne,
  25768. baseMinusT,
  25769. qMinusT;
  25770. // Convert the input in UCS-2 to Unicode
  25771. input = ucs2decode(input);
  25772. // Cache the length
  25773. inputLength = input.length;
  25774. // Initialize the state
  25775. n = initialN;
  25776. delta = 0;
  25777. bias = initialBias;
  25778. // Handle the basic code points
  25779. for (j = 0; j < inputLength; ++j) {
  25780. currentValue = input[j];
  25781. if (currentValue < 0x80) {
  25782. output.push(stringFromCharCode(currentValue));
  25783. }
  25784. }
  25785. handledCPCount = basicLength = output.length;
  25786. // `handledCPCount` is the number of code points that have been handled;
  25787. // `basicLength` is the number of basic code points.
  25788. // Finish the basic string - if it is not empty - with a delimiter
  25789. if (basicLength) {
  25790. output.push(delimiter);
  25791. }
  25792. // Main encoding loop:
  25793. while (handledCPCount < inputLength) {
  25794. // All non-basic code points < n have been handled already. Find the next
  25795. // larger one:
  25796. for (m = maxInt, j = 0; j < inputLength; ++j) {
  25797. currentValue = input[j];
  25798. if (currentValue >= n && currentValue < m) {
  25799. m = currentValue;
  25800. }
  25801. }
  25802. // Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,
  25803. // but guard against overflow
  25804. handledCPCountPlusOne = handledCPCount + 1;
  25805. if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
  25806. error('overflow');
  25807. }
  25808. delta += (m - n) * handledCPCountPlusOne;
  25809. n = m;
  25810. for (j = 0; j < inputLength; ++j) {
  25811. currentValue = input[j];
  25812. if (currentValue < n && ++delta > maxInt) {
  25813. error('overflow');
  25814. }
  25815. if (currentValue == n) {
  25816. // Represent delta as a generalized variable-length integer
  25817. for (q = delta, k = base; /* no condition */; k += base) {
  25818. t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
  25819. if (q < t) {
  25820. break;
  25821. }
  25822. qMinusT = q - t;
  25823. baseMinusT = base - t;
  25824. output.push(
  25825. stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))
  25826. );
  25827. q = floor(qMinusT / baseMinusT);
  25828. }
  25829. output.push(stringFromCharCode(digitToBasic(q, 0)));
  25830. bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
  25831. delta = 0;
  25832. ++handledCPCount;
  25833. }
  25834. }
  25835. ++delta;
  25836. ++n;
  25837. }
  25838. return output.join('');
  25839. }
  25840. /**
  25841. * Converts a Punycode string representing a domain name or an email address
  25842. * to Unicode. Only the Punycoded parts of the input will be converted, i.e.
  25843. * it doesn't matter if you call it on a string that has already been
  25844. * converted to Unicode.
  25845. * @memberOf punycode
  25846. * @param {String} input The Punycoded domain name or email address to
  25847. * convert to Unicode.
  25848. * @returns {String} The Unicode representation of the given Punycode
  25849. * string.
  25850. */
  25851. function toUnicode(input) {
  25852. return mapDomain(input, function(string) {
  25853. return regexPunycode.test(string)
  25854. ? decode(string.slice(4).toLowerCase())
  25855. : string;
  25856. });
  25857. }
  25858. /**
  25859. * Converts a Unicode string representing a domain name or an email address to
  25860. * Punycode. Only the non-ASCII parts of the domain name will be converted,
  25861. * i.e. it doesn't matter if you call it with a domain that's already in
  25862. * ASCII.
  25863. * @memberOf punycode
  25864. * @param {String} input The domain name or email address to convert, as a
  25865. * Unicode string.
  25866. * @returns {String} The Punycode representation of the given domain name or
  25867. * email address.
  25868. */
  25869. function toASCII(input) {
  25870. return mapDomain(input, function(string) {
  25871. return regexNonASCII.test(string)
  25872. ? 'xn--' + encode(string)
  25873. : string;
  25874. });
  25875. }
  25876. /*--------------------------------------------------------------------------*/
  25877. /** Define the public API */
  25878. punycode = {
  25879. /**
  25880. * A string representing the current Punycode.js version number.
  25881. * @memberOf punycode
  25882. * @type String
  25883. */
  25884. 'version': '1.3.2',
  25885. /**
  25886. * An object of methods to convert from JavaScript's internal character
  25887. * representation (UCS-2) to Unicode code points, and back.
  25888. * @see <https://mathiasbynens.be/notes/javascript-encoding>
  25889. * @memberOf punycode
  25890. * @type Object
  25891. */
  25892. 'ucs2': {
  25893. 'decode': ucs2decode,
  25894. 'encode': ucs2encode
  25895. },
  25896. 'decode': decode,
  25897. 'encode': encode,
  25898. 'toASCII': toASCII,
  25899. 'toUnicode': toUnicode
  25900. };
  25901. /** Expose `punycode` */
  25902. // Some AMD build optimizers, like r.js, check for specific condition patterns
  25903. // like the following:
  25904. if (
  25905. true
  25906. ) {
  25907. !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() {
  25908. return punycode;
  25909. }).call(exports, __webpack_require__, exports, module),
  25910. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  25911. } else {}
  25912. }(this));
  25913. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/module.js */ "./node_modules/webpack/buildin/module.js")(module), __webpack_require__(/*! ./../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
  25914. /***/ }),
  25915. /***/ "./node_modules/webpack/buildin/global.js":
  25916. /*!***********************************!*\
  25917. !*** (webpack)/buildin/global.js ***!
  25918. \***********************************/
  25919. /*! no static exports found */
  25920. /***/ (function(module, exports) {
  25921. var g;
  25922. // This works in non-strict mode
  25923. g = (function() {
  25924. return this;
  25925. })();
  25926. try {
  25927. // This works if eval is allowed (see CSP)
  25928. g = g || Function("return this")() || (1, eval)("this");
  25929. } catch (e) {
  25930. // This works if the window reference is available
  25931. if (typeof window === "object") g = window;
  25932. }
  25933. // g can still be undefined, but nothing to do about it...
  25934. // We return undefined, instead of nothing here, so it's
  25935. // easier to handle this case. if(!global) { ...}
  25936. module.exports = g;
  25937. /***/ }),
  25938. /***/ "./node_modules/webpack/buildin/module.js":
  25939. /*!***********************************!*\
  25940. !*** (webpack)/buildin/module.js ***!
  25941. \***********************************/
  25942. /*! no static exports found */
  25943. /***/ (function(module, exports) {
  25944. module.exports = function(module) {
  25945. if (!module.webpackPolyfill) {
  25946. module.deprecate = function() {};
  25947. module.paths = [];
  25948. // module.parent = undefined by default
  25949. if (!module.children) module.children = [];
  25950. Object.defineProperty(module, "loaded", {
  25951. enumerable: true,
  25952. get: function() {
  25953. return module.l;
  25954. }
  25955. });
  25956. Object.defineProperty(module, "id", {
  25957. enumerable: true,
  25958. get: function() {
  25959. return module.i;
  25960. }
  25961. });
  25962. module.webpackPolyfill = 1;
  25963. }
  25964. return module;
  25965. };
  25966. /***/ }),
  25967. /***/ "./node_modules/xss/dist/xss.js":
  25968. /*!**************************************!*\
  25969. !*** ./node_modules/xss/dist/xss.js ***!
  25970. \**************************************/
  25971. /*! no static exports found */
  25972. /***/ (function(module, exports, __webpack_require__) {
  25973. var require;var require;(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return require(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
  25974. /**
  25975. * default settings
  25976. *
  25977. * @author Zongmin Lei<leizongmin@gmail.com>
  25978. */
  25979. var FilterCSS = require("cssfilter").FilterCSS;
  25980. var getDefaultCSSWhiteList = require("cssfilter").getDefaultWhiteList;
  25981. var _ = require("./util");
  25982. function getDefaultWhiteList() {
  25983. return {
  25984. a: ["target", "href", "title"],
  25985. abbr: ["title"],
  25986. address: [],
  25987. area: ["shape", "coords", "href", "alt"],
  25988. article: [],
  25989. aside: [],
  25990. audio: ["autoplay", "controls", "loop", "preload", "src"],
  25991. b: [],
  25992. bdi: ["dir"],
  25993. bdo: ["dir"],
  25994. big: [],
  25995. blockquote: ["cite"],
  25996. br: [],
  25997. caption: [],
  25998. center: [],
  25999. cite: [],
  26000. code: [],
  26001. col: ["align", "valign", "span", "width"],
  26002. colgroup: ["align", "valign", "span", "width"],
  26003. dd: [],
  26004. del: ["datetime"],
  26005. details: ["open"],
  26006. div: [],
  26007. dl: [],
  26008. dt: [],
  26009. em: [],
  26010. font: ["color", "size", "face"],
  26011. footer: [],
  26012. h1: [],
  26013. h2: [],
  26014. h3: [],
  26015. h4: [],
  26016. h5: [],
  26017. h6: [],
  26018. header: [],
  26019. hr: [],
  26020. i: [],
  26021. img: ["src", "alt", "title", "width", "height"],
  26022. ins: ["datetime"],
  26023. li: [],
  26024. mark: [],
  26025. nav: [],
  26026. ol: [],
  26027. p: [],
  26028. pre: [],
  26029. s: [],
  26030. section: [],
  26031. small: [],
  26032. span: [],
  26033. sub: [],
  26034. sup: [],
  26035. strong: [],
  26036. table: ["width", "border", "align", "valign"],
  26037. tbody: ["align", "valign"],
  26038. td: ["width", "rowspan", "colspan", "align", "valign"],
  26039. tfoot: ["align", "valign"],
  26040. th: ["width", "rowspan", "colspan", "align", "valign"],
  26041. thead: ["align", "valign"],
  26042. tr: ["rowspan", "align", "valign"],
  26043. tt: [],
  26044. u: [],
  26045. ul: [],
  26046. video: ["autoplay", "controls", "loop", "preload", "src", "height", "width"]
  26047. };
  26048. }
  26049. var defaultCSSFilter = new FilterCSS();
  26050. /**
  26051. * default onTag function
  26052. *
  26053. * @param {String} tag
  26054. * @param {String} html
  26055. * @param {Object} options
  26056. * @return {String}
  26057. */
  26058. function onTag(tag, html, options) {
  26059. // do nothing
  26060. }
  26061. /**
  26062. * default onIgnoreTag function
  26063. *
  26064. * @param {String} tag
  26065. * @param {String} html
  26066. * @param {Object} options
  26067. * @return {String}
  26068. */
  26069. function onIgnoreTag(tag, html, options) {
  26070. // do nothing
  26071. }
  26072. /**
  26073. * default onTagAttr function
  26074. *
  26075. * @param {String} tag
  26076. * @param {String} name
  26077. * @param {String} value
  26078. * @return {String}
  26079. */
  26080. function onTagAttr(tag, name, value) {
  26081. // do nothing
  26082. }
  26083. /**
  26084. * default onIgnoreTagAttr function
  26085. *
  26086. * @param {String} tag
  26087. * @param {String} name
  26088. * @param {String} value
  26089. * @return {String}
  26090. */
  26091. function onIgnoreTagAttr(tag, name, value) {
  26092. // do nothing
  26093. }
  26094. /**
  26095. * default escapeHtml function
  26096. *
  26097. * @param {String} html
  26098. */
  26099. function escapeHtml(html) {
  26100. return html.replace(REGEXP_LT, "&lt;").replace(REGEXP_GT, "&gt;");
  26101. }
  26102. /**
  26103. * default safeAttrValue function
  26104. *
  26105. * @param {String} tag
  26106. * @param {String} name
  26107. * @param {String} value
  26108. * @param {Object} cssFilter
  26109. * @return {String}
  26110. */
  26111. function safeAttrValue(tag, name, value, cssFilter) {
  26112. // unescape attribute value firstly
  26113. value = friendlyAttrValue(value);
  26114. if (name === "href" || name === "src") {
  26115. // filter `href` and `src` attribute
  26116. // only allow the value that starts with `http://` | `https://` | `mailto:` | `/` | `#`
  26117. value = _.trim(value);
  26118. if (value === "#") return "#";
  26119. if (
  26120. !(
  26121. value.substr(0, 7) === "http://" ||
  26122. value.substr(0, 8) === "https://" ||
  26123. value.substr(0, 7) === "mailto:" ||
  26124. value.substr(0, 4) === "tel:" ||
  26125. value[0] === "#" ||
  26126. value[0] === "/"
  26127. )
  26128. ) {
  26129. return "";
  26130. }
  26131. } else if (name === "background") {
  26132. // filter `background` attribute (maybe no use)
  26133. // `javascript:`
  26134. REGEXP_DEFAULT_ON_TAG_ATTR_4.lastIndex = 0;
  26135. if (REGEXP_DEFAULT_ON_TAG_ATTR_4.test(value)) {
  26136. return "";
  26137. }
  26138. } else if (name === "style") {
  26139. // `expression()`
  26140. REGEXP_DEFAULT_ON_TAG_ATTR_7.lastIndex = 0;
  26141. if (REGEXP_DEFAULT_ON_TAG_ATTR_7.test(value)) {
  26142. return "";
  26143. }
  26144. // `url()`
  26145. REGEXP_DEFAULT_ON_TAG_ATTR_8.lastIndex = 0;
  26146. if (REGEXP_DEFAULT_ON_TAG_ATTR_8.test(value)) {
  26147. REGEXP_DEFAULT_ON_TAG_ATTR_4.lastIndex = 0;
  26148. if (REGEXP_DEFAULT_ON_TAG_ATTR_4.test(value)) {
  26149. return "";
  26150. }
  26151. }
  26152. if (cssFilter !== false) {
  26153. cssFilter = cssFilter || defaultCSSFilter;
  26154. value = cssFilter.process(value);
  26155. }
  26156. }
  26157. // escape `<>"` before returns
  26158. value = escapeAttrValue(value);
  26159. return value;
  26160. }
  26161. // RegExp list
  26162. var REGEXP_LT = /</g;
  26163. var REGEXP_GT = />/g;
  26164. var REGEXP_QUOTE = /"/g;
  26165. var REGEXP_QUOTE_2 = /&quot;/g;
  26166. var REGEXP_ATTR_VALUE_1 = /&#([a-zA-Z0-9]*);?/gim;
  26167. var REGEXP_ATTR_VALUE_COLON = /&colon;?/gim;
  26168. var REGEXP_ATTR_VALUE_NEWLINE = /&newline;?/gim;
  26169. var REGEXP_DEFAULT_ON_TAG_ATTR_3 = /\/\*|\*\//gm;
  26170. var REGEXP_DEFAULT_ON_TAG_ATTR_4 = /((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a)\:/gi;
  26171. var REGEXP_DEFAULT_ON_TAG_ATTR_5 = /^[\s"'`]*(d\s*a\s*t\s*a\s*)\:/gi;
  26172. var REGEXP_DEFAULT_ON_TAG_ATTR_6 = /^[\s"'`]*(d\s*a\s*t\s*a\s*)\:\s*image\//gi;
  26173. var REGEXP_DEFAULT_ON_TAG_ATTR_7 = /e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi;
  26174. var REGEXP_DEFAULT_ON_TAG_ATTR_8 = /u\s*r\s*l\s*\(.*/gi;
  26175. /**
  26176. * escape doube quote
  26177. *
  26178. * @param {String} str
  26179. * @return {String} str
  26180. */
  26181. function escapeQuote(str) {
  26182. return str.replace(REGEXP_QUOTE, "&quot;");
  26183. }
  26184. /**
  26185. * unescape double quote
  26186. *
  26187. * @param {String} str
  26188. * @return {String} str
  26189. */
  26190. function unescapeQuote(str) {
  26191. return str.replace(REGEXP_QUOTE_2, '"');
  26192. }
  26193. /**
  26194. * escape html entities
  26195. *
  26196. * @param {String} str
  26197. * @return {String}
  26198. */
  26199. function escapeHtmlEntities(str) {
  26200. return str.replace(REGEXP_ATTR_VALUE_1, function replaceUnicode(str, code) {
  26201. return code[0] === "x" || code[0] === "X"
  26202. ? String.fromCharCode(parseInt(code.substr(1), 16))
  26203. : String.fromCharCode(parseInt(code, 10));
  26204. });
  26205. }
  26206. /**
  26207. * escape html5 new danger entities
  26208. *
  26209. * @param {String} str
  26210. * @return {String}
  26211. */
  26212. function escapeDangerHtml5Entities(str) {
  26213. return str
  26214. .replace(REGEXP_ATTR_VALUE_COLON, ":")
  26215. .replace(REGEXP_ATTR_VALUE_NEWLINE, " ");
  26216. }
  26217. /**
  26218. * clear nonprintable characters
  26219. *
  26220. * @param {String} str
  26221. * @return {String}
  26222. */
  26223. function clearNonPrintableCharacter(str) {
  26224. var str2 = "";
  26225. for (var i = 0, len = str.length; i < len; i++) {
  26226. str2 += str.charCodeAt(i) < 32 ? " " : str.charAt(i);
  26227. }
  26228. return _.trim(str2);
  26229. }
  26230. /**
  26231. * get friendly attribute value
  26232. *
  26233. * @param {String} str
  26234. * @return {String}
  26235. */
  26236. function friendlyAttrValue(str) {
  26237. str = unescapeQuote(str);
  26238. str = escapeHtmlEntities(str);
  26239. str = escapeDangerHtml5Entities(str);
  26240. str = clearNonPrintableCharacter(str);
  26241. return str;
  26242. }
  26243. /**
  26244. * unescape attribute value
  26245. *
  26246. * @param {String} str
  26247. * @return {String}
  26248. */
  26249. function escapeAttrValue(str) {
  26250. str = escapeQuote(str);
  26251. str = escapeHtml(str);
  26252. return str;
  26253. }
  26254. /**
  26255. * `onIgnoreTag` function for removing all the tags that are not in whitelist
  26256. */
  26257. function onIgnoreTagStripAll() {
  26258. return "";
  26259. }
  26260. /**
  26261. * remove tag body
  26262. * specify a `tags` list, if the tag is not in the `tags` list then process by the specify function (optional)
  26263. *
  26264. * @param {array} tags
  26265. * @param {function} next
  26266. */
  26267. function StripTagBody(tags, next) {
  26268. if (typeof next !== "function") {
  26269. next = function() {};
  26270. }
  26271. var isRemoveAllTag = !Array.isArray(tags);
  26272. function isRemoveTag(tag) {
  26273. if (isRemoveAllTag) return true;
  26274. return _.indexOf(tags, tag) !== -1;
  26275. }
  26276. var removeList = [];
  26277. var posStart = false;
  26278. return {
  26279. onIgnoreTag: function(tag, html, options) {
  26280. if (isRemoveTag(tag)) {
  26281. if (options.isClosing) {
  26282. var ret = "[/removed]";
  26283. var end = options.position + ret.length;
  26284. removeList.push([
  26285. posStart !== false ? posStart : options.position,
  26286. end
  26287. ]);
  26288. posStart = false;
  26289. return ret;
  26290. } else {
  26291. if (!posStart) {
  26292. posStart = options.position;
  26293. }
  26294. return "[removed]";
  26295. }
  26296. } else {
  26297. return next(tag, html, options);
  26298. }
  26299. },
  26300. remove: function(html) {
  26301. var rethtml = "";
  26302. var lastPos = 0;
  26303. _.forEach(removeList, function(pos) {
  26304. rethtml += html.slice(lastPos, pos[0]);
  26305. lastPos = pos[1];
  26306. });
  26307. rethtml += html.slice(lastPos);
  26308. return rethtml;
  26309. }
  26310. };
  26311. }
  26312. /**
  26313. * remove html comments
  26314. *
  26315. * @param {String} html
  26316. * @return {String}
  26317. */
  26318. function stripCommentTag(html) {
  26319. return html.replace(STRIP_COMMENT_TAG_REGEXP, "");
  26320. }
  26321. var STRIP_COMMENT_TAG_REGEXP = /<!--[\s\S]*?-->/g;
  26322. /**
  26323. * remove invisible characters
  26324. *
  26325. * @param {String} html
  26326. * @return {String}
  26327. */
  26328. function stripBlankChar(html) {
  26329. var chars = html.split("");
  26330. chars = chars.filter(function(char) {
  26331. var c = char.charCodeAt(0);
  26332. if (c === 127) return false;
  26333. if (c <= 31) {
  26334. if (c === 10 || c === 13) return true;
  26335. return false;
  26336. }
  26337. return true;
  26338. });
  26339. return chars.join("");
  26340. }
  26341. exports.whiteList = getDefaultWhiteList();
  26342. exports.getDefaultWhiteList = getDefaultWhiteList;
  26343. exports.onTag = onTag;
  26344. exports.onIgnoreTag = onIgnoreTag;
  26345. exports.onTagAttr = onTagAttr;
  26346. exports.onIgnoreTagAttr = onIgnoreTagAttr;
  26347. exports.safeAttrValue = safeAttrValue;
  26348. exports.escapeHtml = escapeHtml;
  26349. exports.escapeQuote = escapeQuote;
  26350. exports.unescapeQuote = unescapeQuote;
  26351. exports.escapeHtmlEntities = escapeHtmlEntities;
  26352. exports.escapeDangerHtml5Entities = escapeDangerHtml5Entities;
  26353. exports.clearNonPrintableCharacter = clearNonPrintableCharacter;
  26354. exports.friendlyAttrValue = friendlyAttrValue;
  26355. exports.escapeAttrValue = escapeAttrValue;
  26356. exports.onIgnoreTagStripAll = onIgnoreTagStripAll;
  26357. exports.StripTagBody = StripTagBody;
  26358. exports.stripCommentTag = stripCommentTag;
  26359. exports.stripBlankChar = stripBlankChar;
  26360. exports.cssFilter = defaultCSSFilter;
  26361. exports.getDefaultCSSWhiteList = getDefaultCSSWhiteList;
  26362. },{"./util":4,"cssfilter":8}],2:[function(require,module,exports){
  26363. /**
  26364. * xss
  26365. *
  26366. * @author Zongmin Lei<leizongmin@gmail.com>
  26367. */
  26368. var DEFAULT = require("./default");
  26369. var parser = require("./parser");
  26370. var FilterXSS = require("./xss");
  26371. /**
  26372. * filter xss function
  26373. *
  26374. * @param {String} html
  26375. * @param {Object} options { whiteList, onTag, onTagAttr, onIgnoreTag, onIgnoreTagAttr, safeAttrValue, escapeHtml }
  26376. * @return {String}
  26377. */
  26378. function filterXSS(html, options) {
  26379. var xss = new FilterXSS(options);
  26380. return xss.process(html);
  26381. }
  26382. exports = module.exports = filterXSS;
  26383. exports.FilterXSS = FilterXSS;
  26384. for (var i in DEFAULT) exports[i] = DEFAULT[i];
  26385. for (var i in parser) exports[i] = parser[i];
  26386. // using `xss` on the browser, output `filterXSS` to the globals
  26387. if (typeof window !== "undefined") {
  26388. window.filterXSS = module.exports;
  26389. }
  26390. },{"./default":1,"./parser":3,"./xss":5}],3:[function(require,module,exports){
  26391. /**
  26392. * Simple HTML Parser
  26393. *
  26394. * @author Zongmin Lei<leizongmin@gmail.com>
  26395. */
  26396. var _ = require("./util");
  26397. /**
  26398. * get tag name
  26399. *
  26400. * @param {String} html e.g. '<a hef="#">'
  26401. * @return {String}
  26402. */
  26403. function getTagName(html) {
  26404. var i = _.spaceIndex(html);
  26405. if (i === -1) {
  26406. var tagName = html.slice(1, -1);
  26407. } else {
  26408. var tagName = html.slice(1, i + 1);
  26409. }
  26410. tagName = _.trim(tagName).toLowerCase();
  26411. if (tagName.slice(0, 1) === "/") tagName = tagName.slice(1);
  26412. if (tagName.slice(-1) === "/") tagName = tagName.slice(0, -1);
  26413. return tagName;
  26414. }
  26415. /**
  26416. * is close tag?
  26417. *
  26418. * @param {String} html 如:'<a hef="#">'
  26419. * @return {Boolean}
  26420. */
  26421. function isClosing(html) {
  26422. return html.slice(0, 2) === "</";
  26423. }
  26424. /**
  26425. * parse input html and returns processed html
  26426. *
  26427. * @param {String} html
  26428. * @param {Function} onTag e.g. function (sourcePosition, position, tag, html, isClosing)
  26429. * @param {Function} escapeHtml
  26430. * @return {String}
  26431. */
  26432. function parseTag(html, onTag, escapeHtml) {
  26433. "user strict";
  26434. var rethtml = "";
  26435. var lastPos = 0;
  26436. var tagStart = false;
  26437. var quoteStart = false;
  26438. var currentPos = 0;
  26439. var len = html.length;
  26440. var currentTagName = "";
  26441. var currentHtml = "";
  26442. for (currentPos = 0; currentPos < len; currentPos++) {
  26443. var c = html.charAt(currentPos);
  26444. if (tagStart === false) {
  26445. if (c === "<") {
  26446. tagStart = currentPos;
  26447. continue;
  26448. }
  26449. } else {
  26450. if (quoteStart === false) {
  26451. if (c === "<") {
  26452. rethtml += escapeHtml(html.slice(lastPos, currentPos));
  26453. tagStart = currentPos;
  26454. lastPos = currentPos;
  26455. continue;
  26456. }
  26457. if (c === ">") {
  26458. rethtml += escapeHtml(html.slice(lastPos, tagStart));
  26459. currentHtml = html.slice(tagStart, currentPos + 1);
  26460. currentTagName = getTagName(currentHtml);
  26461. rethtml += onTag(
  26462. tagStart,
  26463. rethtml.length,
  26464. currentTagName,
  26465. currentHtml,
  26466. isClosing(currentHtml)
  26467. );
  26468. lastPos = currentPos + 1;
  26469. tagStart = false;
  26470. continue;
  26471. }
  26472. if ((c === '"' || c === "'") && html.charAt(currentPos - 1) === "=") {
  26473. quoteStart = c;
  26474. continue;
  26475. }
  26476. } else {
  26477. if (c === quoteStart) {
  26478. quoteStart = false;
  26479. continue;
  26480. }
  26481. }
  26482. }
  26483. }
  26484. if (lastPos < html.length) {
  26485. rethtml += escapeHtml(html.substr(lastPos));
  26486. }
  26487. return rethtml;
  26488. }
  26489. var REGEXP_ILLEGAL_ATTR_NAME = /[^a-zA-Z0-9_:\.\-]/gim;
  26490. /**
  26491. * parse input attributes and returns processed attributes
  26492. *
  26493. * @param {String} html e.g. `href="#" target="_blank"`
  26494. * @param {Function} onAttr e.g. `function (name, value)`
  26495. * @return {String}
  26496. */
  26497. function parseAttr(html, onAttr) {
  26498. "user strict";
  26499. var lastPos = 0;
  26500. var retAttrs = [];
  26501. var tmpName = false;
  26502. var len = html.length;
  26503. function addAttr(name, value) {
  26504. name = _.trim(name);
  26505. name = name.replace(REGEXP_ILLEGAL_ATTR_NAME, "").toLowerCase();
  26506. if (name.length < 1) return;
  26507. var ret = onAttr(name, value || "");
  26508. if (ret) retAttrs.push(ret);
  26509. }
  26510. // 逐个分析字符
  26511. for (var i = 0; i < len; i++) {
  26512. var c = html.charAt(i);
  26513. var v, j;
  26514. if (tmpName === false && c === "=") {
  26515. tmpName = html.slice(lastPos, i);
  26516. lastPos = i + 1;
  26517. continue;
  26518. }
  26519. if (tmpName !== false) {
  26520. if (
  26521. i === lastPos &&
  26522. (c === '"' || c === "'") &&
  26523. html.charAt(i - 1) === "="
  26524. ) {
  26525. j = html.indexOf(c, i + 1);
  26526. if (j === -1) {
  26527. break;
  26528. } else {
  26529. v = _.trim(html.slice(lastPos + 1, j));
  26530. addAttr(tmpName, v);
  26531. tmpName = false;
  26532. i = j;
  26533. lastPos = i + 1;
  26534. continue;
  26535. }
  26536. }
  26537. }
  26538. if (/\s|\n|\t/.test(c)) {
  26539. html = html.replace(/\s|\n|\t/g, " ");
  26540. if (tmpName === false) {
  26541. j = findNextEqual(html, i);
  26542. if (j === -1) {
  26543. v = _.trim(html.slice(lastPos, i));
  26544. addAttr(v);
  26545. tmpName = false;
  26546. lastPos = i + 1;
  26547. continue;
  26548. } else {
  26549. i = j - 1;
  26550. continue;
  26551. }
  26552. } else {
  26553. j = findBeforeEqual(html, i - 1);
  26554. if (j === -1) {
  26555. v = _.trim(html.slice(lastPos, i));
  26556. v = stripQuoteWrap(v);
  26557. addAttr(tmpName, v);
  26558. tmpName = false;
  26559. lastPos = i + 1;
  26560. continue;
  26561. } else {
  26562. continue;
  26563. }
  26564. }
  26565. }
  26566. }
  26567. if (lastPos < html.length) {
  26568. if (tmpName === false) {
  26569. addAttr(html.slice(lastPos));
  26570. } else {
  26571. addAttr(tmpName, stripQuoteWrap(_.trim(html.slice(lastPos))));
  26572. }
  26573. }
  26574. return _.trim(retAttrs.join(" "));
  26575. }
  26576. function findNextEqual(str, i) {
  26577. for (; i < str.length; i++) {
  26578. var c = str[i];
  26579. if (c === " ") continue;
  26580. if (c === "=") return i;
  26581. return -1;
  26582. }
  26583. }
  26584. function findBeforeEqual(str, i) {
  26585. for (; i > 0; i--) {
  26586. var c = str[i];
  26587. if (c === " ") continue;
  26588. if (c === "=") return i;
  26589. return -1;
  26590. }
  26591. }
  26592. function isQuoteWrapString(text) {
  26593. if (
  26594. (text[0] === '"' && text[text.length - 1] === '"') ||
  26595. (text[0] === "'" && text[text.length - 1] === "'")
  26596. ) {
  26597. return true;
  26598. } else {
  26599. return false;
  26600. }
  26601. }
  26602. function stripQuoteWrap(text) {
  26603. if (isQuoteWrapString(text)) {
  26604. return text.substr(1, text.length - 2);
  26605. } else {
  26606. return text;
  26607. }
  26608. }
  26609. exports.parseTag = parseTag;
  26610. exports.parseAttr = parseAttr;
  26611. },{"./util":4}],4:[function(require,module,exports){
  26612. module.exports = {
  26613. indexOf: function(arr, item) {
  26614. var i, j;
  26615. if (Array.prototype.indexOf) {
  26616. return arr.indexOf(item);
  26617. }
  26618. for (i = 0, j = arr.length; i < j; i++) {
  26619. if (arr[i] === item) {
  26620. return i;
  26621. }
  26622. }
  26623. return -1;
  26624. },
  26625. forEach: function(arr, fn, scope) {
  26626. var i, j;
  26627. if (Array.prototype.forEach) {
  26628. return arr.forEach(fn, scope);
  26629. }
  26630. for (i = 0, j = arr.length; i < j; i++) {
  26631. fn.call(scope, arr[i], i, arr);
  26632. }
  26633. },
  26634. trim: function(str) {
  26635. if (String.prototype.trim) {
  26636. return str.trim();
  26637. }
  26638. return str.replace(/(^\s*)|(\s*$)/g, "");
  26639. },
  26640. spaceIndex: function(str) {
  26641. var reg = /\s|\n|\t/;
  26642. var match = reg.exec(str);
  26643. return match ? match.index : -1;
  26644. }
  26645. };
  26646. },{}],5:[function(require,module,exports){
  26647. /**
  26648. * filter xss
  26649. *
  26650. * @author Zongmin Lei<leizongmin@gmail.com>
  26651. */
  26652. var FilterCSS = require("cssfilter").FilterCSS;
  26653. var DEFAULT = require("./default");
  26654. var parser = require("./parser");
  26655. var parseTag = parser.parseTag;
  26656. var parseAttr = parser.parseAttr;
  26657. var _ = require("./util");
  26658. /**
  26659. * returns `true` if the input value is `undefined` or `null`
  26660. *
  26661. * @param {Object} obj
  26662. * @return {Boolean}
  26663. */
  26664. function isNull(obj) {
  26665. return obj === undefined || obj === null;
  26666. }
  26667. /**
  26668. * get attributes for a tag
  26669. *
  26670. * @param {String} html
  26671. * @return {Object}
  26672. * - {String} html
  26673. * - {Boolean} closing
  26674. */
  26675. function getAttrs(html) {
  26676. var i = _.spaceIndex(html);
  26677. if (i === -1) {
  26678. return {
  26679. html: "",
  26680. closing: html[html.length - 2] === "/"
  26681. };
  26682. }
  26683. html = _.trim(html.slice(i + 1, -1));
  26684. var isClosing = html[html.length - 1] === "/";
  26685. if (isClosing) html = _.trim(html.slice(0, -1));
  26686. return {
  26687. html: html,
  26688. closing: isClosing
  26689. };
  26690. }
  26691. /**
  26692. * shallow copy
  26693. *
  26694. * @param {Object} obj
  26695. * @return {Object}
  26696. */
  26697. function shallowCopyObject(obj) {
  26698. var ret = {};
  26699. for (var i in obj) {
  26700. ret[i] = obj[i];
  26701. }
  26702. return ret;
  26703. }
  26704. /**
  26705. * FilterXSS class
  26706. *
  26707. * @param {Object} options
  26708. * whiteList, onTag, onTagAttr, onIgnoreTag,
  26709. * onIgnoreTagAttr, safeAttrValue, escapeHtml
  26710. * stripIgnoreTagBody, allowCommentTag, stripBlankChar
  26711. * css{whiteList, onAttr, onIgnoreAttr} `css=false` means don't use `cssfilter`
  26712. */
  26713. function FilterXSS(options) {
  26714. options = shallowCopyObject(options || {});
  26715. if (options.stripIgnoreTag) {
  26716. if (options.onIgnoreTag) {
  26717. console.error(
  26718. 'Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'
  26719. );
  26720. }
  26721. options.onIgnoreTag = DEFAULT.onIgnoreTagStripAll;
  26722. }
  26723. options.whiteList = options.whiteList || DEFAULT.whiteList;
  26724. options.onTag = options.onTag || DEFAULT.onTag;
  26725. options.onTagAttr = options.onTagAttr || DEFAULT.onTagAttr;
  26726. options.onIgnoreTag = options.onIgnoreTag || DEFAULT.onIgnoreTag;
  26727. options.onIgnoreTagAttr = options.onIgnoreTagAttr || DEFAULT.onIgnoreTagAttr;
  26728. options.safeAttrValue = options.safeAttrValue || DEFAULT.safeAttrValue;
  26729. options.escapeHtml = options.escapeHtml || DEFAULT.escapeHtml;
  26730. this.options = options;
  26731. if (options.css === false) {
  26732. this.cssFilter = false;
  26733. } else {
  26734. options.css = options.css || {};
  26735. this.cssFilter = new FilterCSS(options.css);
  26736. }
  26737. }
  26738. /**
  26739. * start process and returns result
  26740. *
  26741. * @param {String} html
  26742. * @return {String}
  26743. */
  26744. FilterXSS.prototype.process = function(html) {
  26745. // compatible with the input
  26746. html = html || "";
  26747. html = html.toString();
  26748. if (!html) return "";
  26749. var me = this;
  26750. var options = me.options;
  26751. var whiteList = options.whiteList;
  26752. var onTag = options.onTag;
  26753. var onIgnoreTag = options.onIgnoreTag;
  26754. var onTagAttr = options.onTagAttr;
  26755. var onIgnoreTagAttr = options.onIgnoreTagAttr;
  26756. var safeAttrValue = options.safeAttrValue;
  26757. var escapeHtml = options.escapeHtml;
  26758. var cssFilter = me.cssFilter;
  26759. // remove invisible characters
  26760. if (options.stripBlankChar) {
  26761. html = DEFAULT.stripBlankChar(html);
  26762. }
  26763. // remove html comments
  26764. if (!options.allowCommentTag) {
  26765. html = DEFAULT.stripCommentTag(html);
  26766. }
  26767. // if enable stripIgnoreTagBody
  26768. var stripIgnoreTagBody = false;
  26769. if (options.stripIgnoreTagBody) {
  26770. var stripIgnoreTagBody = DEFAULT.StripTagBody(
  26771. options.stripIgnoreTagBody,
  26772. onIgnoreTag
  26773. );
  26774. onIgnoreTag = stripIgnoreTagBody.onIgnoreTag;
  26775. }
  26776. var retHtml = parseTag(
  26777. html,
  26778. function(sourcePosition, position, tag, html, isClosing) {
  26779. var info = {
  26780. sourcePosition: sourcePosition,
  26781. position: position,
  26782. isClosing: isClosing,
  26783. isWhite: whiteList.hasOwnProperty(tag)
  26784. };
  26785. // call `onTag()`
  26786. var ret = onTag(tag, html, info);
  26787. if (!isNull(ret)) return ret;
  26788. if (info.isWhite) {
  26789. if (info.isClosing) {
  26790. return "</" + tag + ">";
  26791. }
  26792. var attrs = getAttrs(html);
  26793. var whiteAttrList = whiteList[tag];
  26794. var attrsHtml = parseAttr(attrs.html, function(name, value) {
  26795. // call `onTagAttr()`
  26796. var isWhiteAttr = _.indexOf(whiteAttrList, name) !== -1;
  26797. var ret = onTagAttr(tag, name, value, isWhiteAttr);
  26798. if (!isNull(ret)) return ret;
  26799. if (isWhiteAttr) {
  26800. // call `safeAttrValue()`
  26801. value = safeAttrValue(tag, name, value, cssFilter);
  26802. if (value) {
  26803. return name + '="' + value + '"';
  26804. } else {
  26805. return name;
  26806. }
  26807. } else {
  26808. // call `onIgnoreTagAttr()`
  26809. var ret = onIgnoreTagAttr(tag, name, value, isWhiteAttr);
  26810. if (!isNull(ret)) return ret;
  26811. return;
  26812. }
  26813. });
  26814. // build new tag html
  26815. var html = "<" + tag;
  26816. if (attrsHtml) html += " " + attrsHtml;
  26817. if (attrs.closing) html += " /";
  26818. html += ">";
  26819. return html;
  26820. } else {
  26821. // call `onIgnoreTag()`
  26822. var ret = onIgnoreTag(tag, html, info);
  26823. if (!isNull(ret)) return ret;
  26824. return escapeHtml(html);
  26825. }
  26826. },
  26827. escapeHtml
  26828. );
  26829. // if enable stripIgnoreTagBody
  26830. if (stripIgnoreTagBody) {
  26831. retHtml = stripIgnoreTagBody.remove(retHtml);
  26832. }
  26833. return retHtml;
  26834. };
  26835. module.exports = FilterXSS;
  26836. },{"./default":1,"./parser":3,"./util":4,"cssfilter":8}],6:[function(require,module,exports){
  26837. /**
  26838. * cssfilter
  26839. *
  26840. * @author 老雷<leizongmin@gmail.com>
  26841. */
  26842. var DEFAULT = require('./default');
  26843. var parseStyle = require('./parser');
  26844. var _ = require('./util');
  26845. /**
  26846. * 返回值是否为空
  26847. *
  26848. * @param {Object} obj
  26849. * @return {Boolean}
  26850. */
  26851. function isNull (obj) {
  26852. return (obj === undefined || obj === null);
  26853. }
  26854. /**
  26855. * 浅拷贝对象
  26856. *
  26857. * @param {Object} obj
  26858. * @return {Object}
  26859. */
  26860. function shallowCopyObject (obj) {
  26861. var ret = {};
  26862. for (var i in obj) {
  26863. ret[i] = obj[i];
  26864. }
  26865. return ret;
  26866. }
  26867. /**
  26868. * 创建CSS过滤器
  26869. *
  26870. * @param {Object} options
  26871. * - {Object} whiteList
  26872. * - {Function} onAttr
  26873. * - {Function} onIgnoreAttr
  26874. * - {Function} safeAttrValue
  26875. */
  26876. function FilterCSS (options) {
  26877. options = shallowCopyObject(options || {});
  26878. options.whiteList = options.whiteList || DEFAULT.whiteList;
  26879. options.onAttr = options.onAttr || DEFAULT.onAttr;
  26880. options.onIgnoreAttr = options.onIgnoreAttr || DEFAULT.onIgnoreAttr;
  26881. options.safeAttrValue = options.safeAttrValue || DEFAULT.safeAttrValue;
  26882. this.options = options;
  26883. }
  26884. FilterCSS.prototype.process = function (css) {
  26885. // 兼容各种奇葩输入
  26886. css = css || '';
  26887. css = css.toString();
  26888. if (!css) return '';
  26889. var me = this;
  26890. var options = me.options;
  26891. var whiteList = options.whiteList;
  26892. var onAttr = options.onAttr;
  26893. var onIgnoreAttr = options.onIgnoreAttr;
  26894. var safeAttrValue = options.safeAttrValue;
  26895. var retCSS = parseStyle(css, function (sourcePosition, position, name, value, source) {
  26896. var check = whiteList[name];
  26897. var isWhite = false;
  26898. if (check === true) isWhite = check;
  26899. else if (typeof check === 'function') isWhite = check(value);
  26900. else if (check instanceof RegExp) isWhite = check.test(value);
  26901. if (isWhite !== true) isWhite = false;
  26902. // 如果过滤后 value 为空则直接忽略
  26903. value = safeAttrValue(name, value);
  26904. if (!value) return;
  26905. var opts = {
  26906. position: position,
  26907. sourcePosition: sourcePosition,
  26908. source: source,
  26909. isWhite: isWhite
  26910. };
  26911. if (isWhite) {
  26912. var ret = onAttr(name, value, opts);
  26913. if (isNull(ret)) {
  26914. return name + ':' + value;
  26915. } else {
  26916. return ret;
  26917. }
  26918. } else {
  26919. var ret = onIgnoreAttr(name, value, opts);
  26920. if (!isNull(ret)) {
  26921. return ret;
  26922. }
  26923. }
  26924. });
  26925. return retCSS;
  26926. };
  26927. module.exports = FilterCSS;
  26928. },{"./default":7,"./parser":9,"./util":10}],7:[function(require,module,exports){
  26929. /**
  26930. * cssfilter
  26931. *
  26932. * @author 老雷<leizongmin@gmail.com>
  26933. */
  26934. function getDefaultWhiteList () {
  26935. // 白名单值说明:
  26936. // true: 允许该属性
  26937. // Function: function (val) { } 返回true表示允许该属性,其他值均表示不允许
  26938. // RegExp: regexp.test(val) 返回true表示允许该属性,其他值均表示不允许
  26939. // 除上面列出的值外均表示不允许
  26940. var whiteList = {};
  26941. whiteList['align-content'] = false; // default: auto
  26942. whiteList['align-items'] = false; // default: auto
  26943. whiteList['align-self'] = false; // default: auto
  26944. whiteList['alignment-adjust'] = false; // default: auto
  26945. whiteList['alignment-baseline'] = false; // default: baseline
  26946. whiteList['all'] = false; // default: depending on individual properties
  26947. whiteList['anchor-point'] = false; // default: none
  26948. whiteList['animation'] = false; // default: depending on individual properties
  26949. whiteList['animation-delay'] = false; // default: 0
  26950. whiteList['animation-direction'] = false; // default: normal
  26951. whiteList['animation-duration'] = false; // default: 0
  26952. whiteList['animation-fill-mode'] = false; // default: none
  26953. whiteList['animation-iteration-count'] = false; // default: 1
  26954. whiteList['animation-name'] = false; // default: none
  26955. whiteList['animation-play-state'] = false; // default: running
  26956. whiteList['animation-timing-function'] = false; // default: ease
  26957. whiteList['azimuth'] = false; // default: center
  26958. whiteList['backface-visibility'] = false; // default: visible
  26959. whiteList['background'] = true; // default: depending on individual properties
  26960. whiteList['background-attachment'] = true; // default: scroll
  26961. whiteList['background-clip'] = true; // default: border-box
  26962. whiteList['background-color'] = true; // default: transparent
  26963. whiteList['background-image'] = true; // default: none
  26964. whiteList['background-origin'] = true; // default: padding-box
  26965. whiteList['background-position'] = true; // default: 0% 0%
  26966. whiteList['background-repeat'] = true; // default: repeat
  26967. whiteList['background-size'] = true; // default: auto
  26968. whiteList['baseline-shift'] = false; // default: baseline
  26969. whiteList['binding'] = false; // default: none
  26970. whiteList['bleed'] = false; // default: 6pt
  26971. whiteList['bookmark-label'] = false; // default: content()
  26972. whiteList['bookmark-level'] = false; // default: none
  26973. whiteList['bookmark-state'] = false; // default: open
  26974. whiteList['border'] = true; // default: depending on individual properties
  26975. whiteList['border-bottom'] = true; // default: depending on individual properties
  26976. whiteList['border-bottom-color'] = true; // default: current color
  26977. whiteList['border-bottom-left-radius'] = true; // default: 0
  26978. whiteList['border-bottom-right-radius'] = true; // default: 0
  26979. whiteList['border-bottom-style'] = true; // default: none
  26980. whiteList['border-bottom-width'] = true; // default: medium
  26981. whiteList['border-collapse'] = true; // default: separate
  26982. whiteList['border-color'] = true; // default: depending on individual properties
  26983. whiteList['border-image'] = true; // default: none
  26984. whiteList['border-image-outset'] = true; // default: 0
  26985. whiteList['border-image-repeat'] = true; // default: stretch
  26986. whiteList['border-image-slice'] = true; // default: 100%
  26987. whiteList['border-image-source'] = true; // default: none
  26988. whiteList['border-image-width'] = true; // default: 1
  26989. whiteList['border-left'] = true; // default: depending on individual properties
  26990. whiteList['border-left-color'] = true; // default: current color
  26991. whiteList['border-left-style'] = true; // default: none
  26992. whiteList['border-left-width'] = true; // default: medium
  26993. whiteList['border-radius'] = true; // default: 0
  26994. whiteList['border-right'] = true; // default: depending on individual properties
  26995. whiteList['border-right-color'] = true; // default: current color
  26996. whiteList['border-right-style'] = true; // default: none
  26997. whiteList['border-right-width'] = true; // default: medium
  26998. whiteList['border-spacing'] = true; // default: 0
  26999. whiteList['border-style'] = true; // default: depending on individual properties
  27000. whiteList['border-top'] = true; // default: depending on individual properties
  27001. whiteList['border-top-color'] = true; // default: current color
  27002. whiteList['border-top-left-radius'] = true; // default: 0
  27003. whiteList['border-top-right-radius'] = true; // default: 0
  27004. whiteList['border-top-style'] = true; // default: none
  27005. whiteList['border-top-width'] = true; // default: medium
  27006. whiteList['border-width'] = true; // default: depending on individual properties
  27007. whiteList['bottom'] = false; // default: auto
  27008. whiteList['box-decoration-break'] = true; // default: slice
  27009. whiteList['box-shadow'] = true; // default: none
  27010. whiteList['box-sizing'] = true; // default: content-box
  27011. whiteList['box-snap'] = true; // default: none
  27012. whiteList['box-suppress'] = true; // default: show
  27013. whiteList['break-after'] = true; // default: auto
  27014. whiteList['break-before'] = true; // default: auto
  27015. whiteList['break-inside'] = true; // default: auto
  27016. whiteList['caption-side'] = false; // default: top
  27017. whiteList['chains'] = false; // default: none
  27018. whiteList['clear'] = true; // default: none
  27019. whiteList['clip'] = false; // default: auto
  27020. whiteList['clip-path'] = false; // default: none
  27021. whiteList['clip-rule'] = false; // default: nonzero
  27022. whiteList['color'] = true; // default: implementation dependent
  27023. whiteList['color-interpolation-filters'] = true; // default: auto
  27024. whiteList['column-count'] = false; // default: auto
  27025. whiteList['column-fill'] = false; // default: balance
  27026. whiteList['column-gap'] = false; // default: normal
  27027. whiteList['column-rule'] = false; // default: depending on individual properties
  27028. whiteList['column-rule-color'] = false; // default: current color
  27029. whiteList['column-rule-style'] = false; // default: medium
  27030. whiteList['column-rule-width'] = false; // default: medium
  27031. whiteList['column-span'] = false; // default: none
  27032. whiteList['column-width'] = false; // default: auto
  27033. whiteList['columns'] = false; // default: depending on individual properties
  27034. whiteList['contain'] = false; // default: none
  27035. whiteList['content'] = false; // default: normal
  27036. whiteList['counter-increment'] = false; // default: none
  27037. whiteList['counter-reset'] = false; // default: none
  27038. whiteList['counter-set'] = false; // default: none
  27039. whiteList['crop'] = false; // default: auto
  27040. whiteList['cue'] = false; // default: depending on individual properties
  27041. whiteList['cue-after'] = false; // default: none
  27042. whiteList['cue-before'] = false; // default: none
  27043. whiteList['cursor'] = false; // default: auto
  27044. whiteList['direction'] = false; // default: ltr
  27045. whiteList['display'] = true; // default: depending on individual properties
  27046. whiteList['display-inside'] = true; // default: auto
  27047. whiteList['display-list'] = true; // default: none
  27048. whiteList['display-outside'] = true; // default: inline-level
  27049. whiteList['dominant-baseline'] = false; // default: auto
  27050. whiteList['elevation'] = false; // default: level
  27051. whiteList['empty-cells'] = false; // default: show
  27052. whiteList['filter'] = false; // default: none
  27053. whiteList['flex'] = false; // default: depending on individual properties
  27054. whiteList['flex-basis'] = false; // default: auto
  27055. whiteList['flex-direction'] = false; // default: row
  27056. whiteList['flex-flow'] = false; // default: depending on individual properties
  27057. whiteList['flex-grow'] = false; // default: 0
  27058. whiteList['flex-shrink'] = false; // default: 1
  27059. whiteList['flex-wrap'] = false; // default: nowrap
  27060. whiteList['float'] = false; // default: none
  27061. whiteList['float-offset'] = false; // default: 0 0
  27062. whiteList['flood-color'] = false; // default: black
  27063. whiteList['flood-opacity'] = false; // default: 1
  27064. whiteList['flow-from'] = false; // default: none
  27065. whiteList['flow-into'] = false; // default: none
  27066. whiteList['font'] = true; // default: depending on individual properties
  27067. whiteList['font-family'] = true; // default: implementation dependent
  27068. whiteList['font-feature-settings'] = true; // default: normal
  27069. whiteList['font-kerning'] = true; // default: auto
  27070. whiteList['font-language-override'] = true; // default: normal
  27071. whiteList['font-size'] = true; // default: medium
  27072. whiteList['font-size-adjust'] = true; // default: none
  27073. whiteList['font-stretch'] = true; // default: normal
  27074. whiteList['font-style'] = true; // default: normal
  27075. whiteList['font-synthesis'] = true; // default: weight style
  27076. whiteList['font-variant'] = true; // default: normal
  27077. whiteList['font-variant-alternates'] = true; // default: normal
  27078. whiteList['font-variant-caps'] = true; // default: normal
  27079. whiteList['font-variant-east-asian'] = true; // default: normal
  27080. whiteList['font-variant-ligatures'] = true; // default: normal
  27081. whiteList['font-variant-numeric'] = true; // default: normal
  27082. whiteList['font-variant-position'] = true; // default: normal
  27083. whiteList['font-weight'] = true; // default: normal
  27084. whiteList['grid'] = false; // default: depending on individual properties
  27085. whiteList['grid-area'] = false; // default: depending on individual properties
  27086. whiteList['grid-auto-columns'] = false; // default: auto
  27087. whiteList['grid-auto-flow'] = false; // default: none
  27088. whiteList['grid-auto-rows'] = false; // default: auto
  27089. whiteList['grid-column'] = false; // default: depending on individual properties
  27090. whiteList['grid-column-end'] = false; // default: auto
  27091. whiteList['grid-column-start'] = false; // default: auto
  27092. whiteList['grid-row'] = false; // default: depending on individual properties
  27093. whiteList['grid-row-end'] = false; // default: auto
  27094. whiteList['grid-row-start'] = false; // default: auto
  27095. whiteList['grid-template'] = false; // default: depending on individual properties
  27096. whiteList['grid-template-areas'] = false; // default: none
  27097. whiteList['grid-template-columns'] = false; // default: none
  27098. whiteList['grid-template-rows'] = false; // default: none
  27099. whiteList['hanging-punctuation'] = false; // default: none
  27100. whiteList['height'] = true; // default: auto
  27101. whiteList['hyphens'] = false; // default: manual
  27102. whiteList['icon'] = false; // default: auto
  27103. whiteList['image-orientation'] = false; // default: auto
  27104. whiteList['image-resolution'] = false; // default: normal
  27105. whiteList['ime-mode'] = false; // default: auto
  27106. whiteList['initial-letters'] = false; // default: normal
  27107. whiteList['inline-box-align'] = false; // default: last
  27108. whiteList['justify-content'] = false; // default: auto
  27109. whiteList['justify-items'] = false; // default: auto
  27110. whiteList['justify-self'] = false; // default: auto
  27111. whiteList['left'] = false; // default: auto
  27112. whiteList['letter-spacing'] = true; // default: normal
  27113. whiteList['lighting-color'] = true; // default: white
  27114. whiteList['line-box-contain'] = false; // default: block inline replaced
  27115. whiteList['line-break'] = false; // default: auto
  27116. whiteList['line-grid'] = false; // default: match-parent
  27117. whiteList['line-height'] = false; // default: normal
  27118. whiteList['line-snap'] = false; // default: none
  27119. whiteList['line-stacking'] = false; // default: depending on individual properties
  27120. whiteList['line-stacking-ruby'] = false; // default: exclude-ruby
  27121. whiteList['line-stacking-shift'] = false; // default: consider-shifts
  27122. whiteList['line-stacking-strategy'] = false; // default: inline-line-height
  27123. whiteList['list-style'] = true; // default: depending on individual properties
  27124. whiteList['list-style-image'] = true; // default: none
  27125. whiteList['list-style-position'] = true; // default: outside
  27126. whiteList['list-style-type'] = true; // default: disc
  27127. whiteList['margin'] = true; // default: depending on individual properties
  27128. whiteList['margin-bottom'] = true; // default: 0
  27129. whiteList['margin-left'] = true; // default: 0
  27130. whiteList['margin-right'] = true; // default: 0
  27131. whiteList['margin-top'] = true; // default: 0
  27132. whiteList['marker-offset'] = false; // default: auto
  27133. whiteList['marker-side'] = false; // default: list-item
  27134. whiteList['marks'] = false; // default: none
  27135. whiteList['mask'] = false; // default: border-box
  27136. whiteList['mask-box'] = false; // default: see individual properties
  27137. whiteList['mask-box-outset'] = false; // default: 0
  27138. whiteList['mask-box-repeat'] = false; // default: stretch
  27139. whiteList['mask-box-slice'] = false; // default: 0 fill
  27140. whiteList['mask-box-source'] = false; // default: none
  27141. whiteList['mask-box-width'] = false; // default: auto
  27142. whiteList['mask-clip'] = false; // default: border-box
  27143. whiteList['mask-image'] = false; // default: none
  27144. whiteList['mask-origin'] = false; // default: border-box
  27145. whiteList['mask-position'] = false; // default: center
  27146. whiteList['mask-repeat'] = false; // default: no-repeat
  27147. whiteList['mask-size'] = false; // default: border-box
  27148. whiteList['mask-source-type'] = false; // default: auto
  27149. whiteList['mask-type'] = false; // default: luminance
  27150. whiteList['max-height'] = true; // default: none
  27151. whiteList['max-lines'] = false; // default: none
  27152. whiteList['max-width'] = true; // default: none
  27153. whiteList['min-height'] = true; // default: 0
  27154. whiteList['min-width'] = true; // default: 0
  27155. whiteList['move-to'] = false; // default: normal
  27156. whiteList['nav-down'] = false; // default: auto
  27157. whiteList['nav-index'] = false; // default: auto
  27158. whiteList['nav-left'] = false; // default: auto
  27159. whiteList['nav-right'] = false; // default: auto
  27160. whiteList['nav-up'] = false; // default: auto
  27161. whiteList['object-fit'] = false; // default: fill
  27162. whiteList['object-position'] = false; // default: 50% 50%
  27163. whiteList['opacity'] = false; // default: 1
  27164. whiteList['order'] = false; // default: 0
  27165. whiteList['orphans'] = false; // default: 2
  27166. whiteList['outline'] = false; // default: depending on individual properties
  27167. whiteList['outline-color'] = false; // default: invert
  27168. whiteList['outline-offset'] = false; // default: 0
  27169. whiteList['outline-style'] = false; // default: none
  27170. whiteList['outline-width'] = false; // default: medium
  27171. whiteList['overflow'] = false; // default: depending on individual properties
  27172. whiteList['overflow-wrap'] = false; // default: normal
  27173. whiteList['overflow-x'] = false; // default: visible
  27174. whiteList['overflow-y'] = false; // default: visible
  27175. whiteList['padding'] = true; // default: depending on individual properties
  27176. whiteList['padding-bottom'] = true; // default: 0
  27177. whiteList['padding-left'] = true; // default: 0
  27178. whiteList['padding-right'] = true; // default: 0
  27179. whiteList['padding-top'] = true; // default: 0
  27180. whiteList['page'] = false; // default: auto
  27181. whiteList['page-break-after'] = false; // default: auto
  27182. whiteList['page-break-before'] = false; // default: auto
  27183. whiteList['page-break-inside'] = false; // default: auto
  27184. whiteList['page-policy'] = false; // default: start
  27185. whiteList['pause'] = false; // default: implementation dependent
  27186. whiteList['pause-after'] = false; // default: implementation dependent
  27187. whiteList['pause-before'] = false; // default: implementation dependent
  27188. whiteList['perspective'] = false; // default: none
  27189. whiteList['perspective-origin'] = false; // default: 50% 50%
  27190. whiteList['pitch'] = false; // default: medium
  27191. whiteList['pitch-range'] = false; // default: 50
  27192. whiteList['play-during'] = false; // default: auto
  27193. whiteList['position'] = false; // default: static
  27194. whiteList['presentation-level'] = false; // default: 0
  27195. whiteList['quotes'] = false; // default: text
  27196. whiteList['region-fragment'] = false; // default: auto
  27197. whiteList['resize'] = false; // default: none
  27198. whiteList['rest'] = false; // default: depending on individual properties
  27199. whiteList['rest-after'] = false; // default: none
  27200. whiteList['rest-before'] = false; // default: none
  27201. whiteList['richness'] = false; // default: 50
  27202. whiteList['right'] = false; // default: auto
  27203. whiteList['rotation'] = false; // default: 0
  27204. whiteList['rotation-point'] = false; // default: 50% 50%
  27205. whiteList['ruby-align'] = false; // default: auto
  27206. whiteList['ruby-merge'] = false; // default: separate
  27207. whiteList['ruby-position'] = false; // default: before
  27208. whiteList['shape-image-threshold'] = false; // default: 0.0
  27209. whiteList['shape-outside'] = false; // default: none
  27210. whiteList['shape-margin'] = false; // default: 0
  27211. whiteList['size'] = false; // default: auto
  27212. whiteList['speak'] = false; // default: auto
  27213. whiteList['speak-as'] = false; // default: normal
  27214. whiteList['speak-header'] = false; // default: once
  27215. whiteList['speak-numeral'] = false; // default: continuous
  27216. whiteList['speak-punctuation'] = false; // default: none
  27217. whiteList['speech-rate'] = false; // default: medium
  27218. whiteList['stress'] = false; // default: 50
  27219. whiteList['string-set'] = false; // default: none
  27220. whiteList['tab-size'] = false; // default: 8
  27221. whiteList['table-layout'] = false; // default: auto
  27222. whiteList['text-align'] = true; // default: start
  27223. whiteList['text-align-last'] = true; // default: auto
  27224. whiteList['text-combine-upright'] = true; // default: none
  27225. whiteList['text-decoration'] = true; // default: none
  27226. whiteList['text-decoration-color'] = true; // default: currentColor
  27227. whiteList['text-decoration-line'] = true; // default: none
  27228. whiteList['text-decoration-skip'] = true; // default: objects
  27229. whiteList['text-decoration-style'] = true; // default: solid
  27230. whiteList['text-emphasis'] = true; // default: depending on individual properties
  27231. whiteList['text-emphasis-color'] = true; // default: currentColor
  27232. whiteList['text-emphasis-position'] = true; // default: over right
  27233. whiteList['text-emphasis-style'] = true; // default: none
  27234. whiteList['text-height'] = true; // default: auto
  27235. whiteList['text-indent'] = true; // default: 0
  27236. whiteList['text-justify'] = true; // default: auto
  27237. whiteList['text-orientation'] = true; // default: mixed
  27238. whiteList['text-overflow'] = true; // default: clip
  27239. whiteList['text-shadow'] = true; // default: none
  27240. whiteList['text-space-collapse'] = true; // default: collapse
  27241. whiteList['text-transform'] = true; // default: none
  27242. whiteList['text-underline-position'] = true; // default: auto
  27243. whiteList['text-wrap'] = true; // default: normal
  27244. whiteList['top'] = false; // default: auto
  27245. whiteList['transform'] = false; // default: none
  27246. whiteList['transform-origin'] = false; // default: 50% 50% 0
  27247. whiteList['transform-style'] = false; // default: flat
  27248. whiteList['transition'] = false; // default: depending on individual properties
  27249. whiteList['transition-delay'] = false; // default: 0s
  27250. whiteList['transition-duration'] = false; // default: 0s
  27251. whiteList['transition-property'] = false; // default: all
  27252. whiteList['transition-timing-function'] = false; // default: ease
  27253. whiteList['unicode-bidi'] = false; // default: normal
  27254. whiteList['vertical-align'] = false; // default: baseline
  27255. whiteList['visibility'] = false; // default: visible
  27256. whiteList['voice-balance'] = false; // default: center
  27257. whiteList['voice-duration'] = false; // default: auto
  27258. whiteList['voice-family'] = false; // default: implementation dependent
  27259. whiteList['voice-pitch'] = false; // default: medium
  27260. whiteList['voice-range'] = false; // default: medium
  27261. whiteList['voice-rate'] = false; // default: normal
  27262. whiteList['voice-stress'] = false; // default: normal
  27263. whiteList['voice-volume'] = false; // default: medium
  27264. whiteList['volume'] = false; // default: medium
  27265. whiteList['white-space'] = false; // default: normal
  27266. whiteList['widows'] = false; // default: 2
  27267. whiteList['width'] = true; // default: auto
  27268. whiteList['will-change'] = false; // default: auto
  27269. whiteList['word-break'] = true; // default: normal
  27270. whiteList['word-spacing'] = true; // default: normal
  27271. whiteList['word-wrap'] = true; // default: normal
  27272. whiteList['wrap-flow'] = false; // default: auto
  27273. whiteList['wrap-through'] = false; // default: wrap
  27274. whiteList['writing-mode'] = false; // default: horizontal-tb
  27275. whiteList['z-index'] = false; // default: auto
  27276. return whiteList;
  27277. }
  27278. /**
  27279. * 匹配到白名单上的一个属性时
  27280. *
  27281. * @param {String} name
  27282. * @param {String} value
  27283. * @param {Object} options
  27284. * @return {String}
  27285. */
  27286. function onAttr (name, value, options) {
  27287. // do nothing
  27288. }
  27289. /**
  27290. * 匹配到不在白名单上的一个属性时
  27291. *
  27292. * @param {String} name
  27293. * @param {String} value
  27294. * @param {Object} options
  27295. * @return {String}
  27296. */
  27297. function onIgnoreAttr (name, value, options) {
  27298. // do nothing
  27299. }
  27300. var REGEXP_URL_JAVASCRIPT = /javascript\s*\:/img;
  27301. /**
  27302. * 过滤属性值
  27303. *
  27304. * @param {String} name
  27305. * @param {String} value
  27306. * @return {String}
  27307. */
  27308. function safeAttrValue(name, value) {
  27309. if (REGEXP_URL_JAVASCRIPT.test(value)) return '';
  27310. return value;
  27311. }
  27312. exports.whiteList = getDefaultWhiteList();
  27313. exports.getDefaultWhiteList = getDefaultWhiteList;
  27314. exports.onAttr = onAttr;
  27315. exports.onIgnoreAttr = onIgnoreAttr;
  27316. exports.safeAttrValue = safeAttrValue;
  27317. },{}],8:[function(require,module,exports){
  27318. /**
  27319. * cssfilter
  27320. *
  27321. * @author 老雷<leizongmin@gmail.com>
  27322. */
  27323. var DEFAULT = require('./default');
  27324. var FilterCSS = require('./css');
  27325. /**
  27326. * XSS过滤
  27327. *
  27328. * @param {String} css 要过滤的CSS代码
  27329. * @param {Object} options 选项:whiteList, onAttr, onIgnoreAttr
  27330. * @return {String}
  27331. */
  27332. function filterCSS (html, options) {
  27333. var xss = new FilterCSS(options);
  27334. return xss.process(html);
  27335. }
  27336. // 输出
  27337. exports = module.exports = filterCSS;
  27338. exports.FilterCSS = FilterCSS;
  27339. for (var i in DEFAULT) exports[i] = DEFAULT[i];
  27340. // 在浏览器端使用
  27341. if (typeof window !== 'undefined') {
  27342. window.filterCSS = module.exports;
  27343. }
  27344. },{"./css":6,"./default":7}],9:[function(require,module,exports){
  27345. /**
  27346. * cssfilter
  27347. *
  27348. * @author 老雷<leizongmin@gmail.com>
  27349. */
  27350. var _ = require('./util');
  27351. /**
  27352. * 解析style
  27353. *
  27354. * @param {String} css
  27355. * @param {Function} onAttr 处理属性的函数
  27356. * 参数格式: function (sourcePosition, position, name, value, source)
  27357. * @return {String}
  27358. */
  27359. function parseStyle (css, onAttr) {
  27360. css = _.trimRight(css);
  27361. if (css[css.length - 1] !== ';') css += ';';
  27362. var cssLength = css.length;
  27363. var isParenthesisOpen = false;
  27364. var lastPos = 0;
  27365. var i = 0;
  27366. var retCSS = '';
  27367. function addNewAttr () {
  27368. // 如果没有正常的闭合圆括号,则直接忽略当前属性
  27369. if (!isParenthesisOpen) {
  27370. var source = _.trim(css.slice(lastPos, i));
  27371. var j = source.indexOf(':');
  27372. if (j !== -1) {
  27373. var name = _.trim(source.slice(0, j));
  27374. var value = _.trim(source.slice(j + 1));
  27375. // 必须有属性名称
  27376. if (name) {
  27377. var ret = onAttr(lastPos, retCSS.length, name, value, source);
  27378. if (ret) retCSS += ret + '; ';
  27379. }
  27380. }
  27381. }
  27382. lastPos = i + 1;
  27383. }
  27384. for (; i < cssLength; i++) {
  27385. var c = css[i];
  27386. if (c === '/' && css[i + 1] === '*') {
  27387. // 备注开始
  27388. var j = css.indexOf('*/', i + 2);
  27389. // 如果没有正常的备注结束,则后面的部分全部跳过
  27390. if (j === -1) break;
  27391. // 直接将当前位置调到备注结尾,并且初始化状态
  27392. i = j + 1;
  27393. lastPos = i + 1;
  27394. isParenthesisOpen = false;
  27395. } else if (c === '(') {
  27396. isParenthesisOpen = true;
  27397. } else if (c === ')') {
  27398. isParenthesisOpen = false;
  27399. } else if (c === ';') {
  27400. if (isParenthesisOpen) {
  27401. // 在圆括号里面,忽略
  27402. } else {
  27403. addNewAttr();
  27404. }
  27405. } else if (c === '\n') {
  27406. addNewAttr();
  27407. }
  27408. }
  27409. return _.trim(retCSS);
  27410. }
  27411. module.exports = parseStyle;
  27412. },{"./util":10}],10:[function(require,module,exports){
  27413. module.exports = {
  27414. indexOf: function (arr, item) {
  27415. var i, j;
  27416. if (Array.prototype.indexOf) {
  27417. return arr.indexOf(item);
  27418. }
  27419. for (i = 0, j = arr.length; i < j; i++) {
  27420. if (arr[i] === item) {
  27421. return i;
  27422. }
  27423. }
  27424. return -1;
  27425. },
  27426. forEach: function (arr, fn, scope) {
  27427. var i, j;
  27428. if (Array.prototype.forEach) {
  27429. return arr.forEach(fn, scope);
  27430. }
  27431. for (i = 0, j = arr.length; i < j; i++) {
  27432. fn.call(scope, arr[i], i, arr);
  27433. }
  27434. },
  27435. trim: function (str) {
  27436. if (String.prototype.trim) {
  27437. return str.trim();
  27438. }
  27439. return str.replace(/(^\s*)|(\s*$)/g, '');
  27440. },
  27441. trimRight: function (str) {
  27442. if (String.prototype.trimRight) {
  27443. return str.trimRight();
  27444. }
  27445. return str.replace(/(\s*$)/g, '');
  27446. }
  27447. };
  27448. },{}]},{},[2]);
  27449. /*** EXPORTS FROM exports-loader ***/
  27450. exports["filterXSS"] = (filterXSS);
  27451. exports["filterCSS"] = (filterCSS);
  27452. /***/ }),
  27453. /***/ "./src/backbone.noconflict.js":
  27454. /*!************************************!*\
  27455. !*** ./src/backbone.noconflict.js ***!
  27456. \************************************/
  27457. /*! no static exports found */
  27458. /***/ (function(module, exports, __webpack_require__) {
  27459. "use strict";
  27460. var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  27461. /*global define */
  27462. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! backbone */ "./node_modules/backbone/backbone.js")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (Backbone) {
  27463. return Backbone.noConflict();
  27464. }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
  27465. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  27466. /***/ }),
  27467. /***/ "./src/converse-autocomplete.js":
  27468. /*!**************************************!*\
  27469. !*** ./src/converse-autocomplete.js ***!
  27470. \**************************************/
  27471. /*! no static exports found */
  27472. /***/ (function(module, exports, __webpack_require__) {
  27473. "use strict";
  27474. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  27475. function _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return right[Symbol.hasInstance](left); } else { return left instanceof right; } }
  27476. function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
  27477. function _classCallCheck(instance, Constructor) { if (!_instanceof(instance, Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  27478. function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
  27479. function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
  27480. // Converse.js
  27481. // http://conversejs.org
  27482. //
  27483. // Copyright (c) 2013-2018, the Converse.js developers
  27484. // Licensed under the Mozilla Public License (MPLv2)
  27485. // This plugin started as a fork of Lea Verou's Awesomplete
  27486. // https://leaverou.github.io/awesomplete/
  27487. (function (root, factory) {
  27488. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  27489. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  27490. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  27491. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  27492. })(void 0, function (converse) {
  27493. var _converse$env = converse.env,
  27494. _ = _converse$env._,
  27495. Backbone = _converse$env.Backbone,
  27496. u = converse.env.utils;
  27497. converse.plugins.add("converse-autocomplete", {
  27498. initialize: function initialize() {
  27499. var _converse = this._converse;
  27500. _converse.FILTER_CONTAINS = function (text, input) {
  27501. return RegExp(helpers.regExpEscape(input.trim()), "i").test(text);
  27502. };
  27503. _converse.FILTER_STARTSWITH = function (text, input) {
  27504. return RegExp("^" + helpers.regExpEscape(input.trim()), "i").test(text);
  27505. };
  27506. var SORT_BYLENGTH = function SORT_BYLENGTH(a, b) {
  27507. if (a.length !== b.length) {
  27508. return a.length - b.length;
  27509. }
  27510. return a < b ? -1 : 1;
  27511. };
  27512. var ITEM = function ITEM(text, input) {
  27513. input = input.trim();
  27514. var element = document.createElement("li");
  27515. element.setAttribute("aria-selected", "false");
  27516. var regex = new RegExp("(" + input + ")", "ig");
  27517. var parts = input ? text.split(regex) : [text];
  27518. parts.forEach(function (txt) {
  27519. if (input && txt.match(regex)) {
  27520. var match = document.createElement("mark");
  27521. match.textContent = txt;
  27522. element.appendChild(match);
  27523. } else {
  27524. element.appendChild(document.createTextNode(txt));
  27525. }
  27526. });
  27527. return element;
  27528. };
  27529. var AutoComplete =
  27530. /*#__PURE__*/
  27531. function () {
  27532. function AutoComplete(el) {
  27533. var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  27534. _classCallCheck(this, AutoComplete);
  27535. this.is_opened = false;
  27536. if (u.hasClass('.suggestion-box', el)) {
  27537. this.container = el;
  27538. } else {
  27539. this.container = el.querySelector('.suggestion-box');
  27540. }
  27541. this.input = this.container.querySelector('.suggestion-box__input');
  27542. this.input.setAttribute("autocomplete", "off");
  27543. this.input.setAttribute("aria-autocomplete", "list");
  27544. this.ul = this.container.querySelector('.suggestion-box__results');
  27545. this.status = this.container.querySelector('.suggestion-box__additions');
  27546. _.assignIn(this, {
  27547. 'match_current_word': false,
  27548. // Match only the current word, otherwise all input is matched
  27549. 'match_on_tab': false,
  27550. // Whether matching should only start when tab's pressed
  27551. 'trigger_on_at': false,
  27552. // Whether @ should trigger autocomplete
  27553. 'min_chars': 2,
  27554. 'max_items': 10,
  27555. 'auto_evaluate': true,
  27556. 'auto_first': false,
  27557. 'data': _.identity,
  27558. 'filter': _converse.FILTER_CONTAINS,
  27559. 'sort': config.sort === false ? false : SORT_BYLENGTH,
  27560. 'item': ITEM
  27561. }, config);
  27562. this.index = -1;
  27563. this.bindEvents();
  27564. if (this.input.hasAttribute("list")) {
  27565. this.list = "#" + this.input.getAttribute("list");
  27566. this.input.removeAttribute("list");
  27567. } else {
  27568. this.list = this.input.getAttribute("data-list") || config.list || [];
  27569. }
  27570. }
  27571. _createClass(AutoComplete, [{
  27572. key: "bindEvents",
  27573. value: function bindEvents() {
  27574. var _this = this;
  27575. // Bind events
  27576. var input = {
  27577. "blur": function blur() {
  27578. return _this.close({
  27579. 'reason': 'blur'
  27580. });
  27581. }
  27582. };
  27583. if (this.auto_evaluate) {
  27584. input["input"] = function () {
  27585. return _this.evaluate();
  27586. };
  27587. }
  27588. this._events = {
  27589. 'input': input,
  27590. 'form': {
  27591. "submit": function submit() {
  27592. return _this.close({
  27593. 'reason': 'submit'
  27594. });
  27595. }
  27596. },
  27597. 'ul': {
  27598. "mousedown": function mousedown(ev) {
  27599. return _this.onMouseDown(ev);
  27600. },
  27601. "mouseover": function mouseover(ev) {
  27602. return _this.onMouseOver(ev);
  27603. }
  27604. }
  27605. };
  27606. helpers.bind(this.input, this._events.input);
  27607. helpers.bind(this.input.form, this._events.form);
  27608. helpers.bind(this.ul, this._events.ul);
  27609. }
  27610. }, {
  27611. key: "close",
  27612. value: function close(o) {
  27613. if (!this.opened) {
  27614. return;
  27615. }
  27616. this.ul.setAttribute("hidden", "");
  27617. this.is_opened = false;
  27618. this.index = -1;
  27619. this.trigger("suggestion-box-close", o || {});
  27620. }
  27621. }, {
  27622. key: "insertValue",
  27623. value: function insertValue(suggestion) {
  27624. var value;
  27625. if (this.match_current_word) {
  27626. u.replaceCurrentWord(this.input, suggestion.value);
  27627. } else {
  27628. this.input.value = suggestion.value;
  27629. }
  27630. }
  27631. }, {
  27632. key: "open",
  27633. value: function open() {
  27634. this.ul.removeAttribute("hidden");
  27635. this.is_opened = true;
  27636. if (this.auto_first && this.index === -1) {
  27637. this.goto(0);
  27638. }
  27639. this.trigger("suggestion-box-open");
  27640. }
  27641. }, {
  27642. key: "destroy",
  27643. value: function destroy() {
  27644. //remove events from the input and its form
  27645. helpers.unbind(this.input, this._events.input);
  27646. helpers.unbind(this.input.form, this._events.form); //move the input out of the suggestion-box container and remove the container and its children
  27647. var parentNode = this.container.parentNode;
  27648. parentNode.insertBefore(this.input, this.container);
  27649. parentNode.removeChild(this.container); //remove autocomplete and aria-autocomplete attributes
  27650. this.input.removeAttribute("autocomplete");
  27651. this.input.removeAttribute("aria-autocomplete");
  27652. }
  27653. }, {
  27654. key: "next",
  27655. value: function next() {
  27656. var count = this.ul.children.length;
  27657. this.goto(this.index < count - 1 ? this.index + 1 : count ? 0 : -1);
  27658. }
  27659. }, {
  27660. key: "previous",
  27661. value: function previous() {
  27662. var count = this.ul.children.length,
  27663. pos = this.index - 1;
  27664. this.goto(this.selected && pos !== -1 ? pos : count - 1);
  27665. }
  27666. }, {
  27667. key: "goto",
  27668. value: function goto(i) {
  27669. // Should not be used directly, highlights specific item without any checks!
  27670. var list = this.ul.children;
  27671. if (this.selected) {
  27672. list[this.index].setAttribute("aria-selected", "false");
  27673. }
  27674. this.index = i;
  27675. if (i > -1 && list.length > 0) {
  27676. list[i].setAttribute("aria-selected", "true");
  27677. list[i].focus();
  27678. this.status.textContent = list[i].textContent; // scroll to highlighted element in case parent's height is fixed
  27679. this.ul.scrollTop = list[i].offsetTop - this.ul.clientHeight + list[i].clientHeight;
  27680. this.trigger("suggestion-box-highlight", {
  27681. 'text': this.suggestions[this.index]
  27682. });
  27683. }
  27684. }
  27685. }, {
  27686. key: "select",
  27687. value: function select(selected, origin) {
  27688. if (selected) {
  27689. this.index = u.siblingIndex(selected);
  27690. } else {
  27691. selected = this.ul.children[this.index];
  27692. }
  27693. if (selected) {
  27694. var suggestion = this.suggestions[this.index];
  27695. this.insertValue(suggestion);
  27696. this.close({
  27697. 'reason': 'select'
  27698. });
  27699. this.auto_completing = false;
  27700. this.trigger("suggestion-box-selectcomplete", {
  27701. 'text': suggestion
  27702. });
  27703. }
  27704. }
  27705. }, {
  27706. key: "onMouseOver",
  27707. value: function onMouseOver(ev) {
  27708. var li = u.ancestor(ev.target, 'li');
  27709. if (li) {
  27710. this.goto(Array.prototype.slice.call(this.ul.children).indexOf(li));
  27711. }
  27712. }
  27713. }, {
  27714. key: "onMouseDown",
  27715. value: function onMouseDown(ev) {
  27716. if (ev.button !== 0) {
  27717. return; // Only select on left click
  27718. }
  27719. var li = u.ancestor(ev.target, 'li');
  27720. if (li) {
  27721. ev.preventDefault();
  27722. this.select(li, ev.target);
  27723. }
  27724. }
  27725. }, {
  27726. key: "keyPressed",
  27727. value: function keyPressed(ev) {
  27728. if (this.opened) {
  27729. if (_.includes([_converse.keycodes.ENTER, _converse.keycodes.TAB], ev.keyCode) && this.selected) {
  27730. ev.preventDefault();
  27731. ev.stopPropagation();
  27732. this.select();
  27733. return true;
  27734. } else if (ev.keyCode === _converse.keycodes.ESCAPE) {
  27735. this.close({
  27736. 'reason': 'esc'
  27737. });
  27738. return true;
  27739. } else if (_.includes([_converse.keycodes.UP_ARROW, _converse.keycodes.DOWN_ARROW], ev.keyCode)) {
  27740. ev.preventDefault();
  27741. ev.stopPropagation();
  27742. this[ev.keyCode === _converse.keycodes.UP_ARROW ? "previous" : "next"]();
  27743. return true;
  27744. }
  27745. }
  27746. if (_.includes([_converse.keycodes.SHIFT, _converse.keycodes.META, _converse.keycodes.META_RIGHT, _converse.keycodes.ESCAPE, _converse.keycodes.ALT], ev.keyCode)) {
  27747. return;
  27748. }
  27749. if (this.match_on_tab && ev.keyCode === _converse.keycodes.TAB) {
  27750. ev.preventDefault();
  27751. this.auto_completing = true;
  27752. } else if (this.trigger_on_at && ev.keyCode === _converse.keycodes.AT) {
  27753. this.auto_completing = true;
  27754. }
  27755. }
  27756. }, {
  27757. key: "evaluate",
  27758. value: function evaluate(ev) {
  27759. var _this2 = this;
  27760. var arrow_pressed = ev.keyCode === _converse.keycodes.UP_ARROW || ev.keyCode === _converse.keycodes.DOWN_ARROW;
  27761. if (!this.auto_completing || this.selected && arrow_pressed) {
  27762. return;
  27763. }
  27764. var list = typeof this._list === "function" ? this._list() : this._list;
  27765. if (list.length === 0) {
  27766. return;
  27767. }
  27768. var value = this.match_current_word ? u.getCurrentWord(this.input) : this.input.value;
  27769. var ignore_min_chars = false;
  27770. if (this.trigger_on_at && value.startsWith('@')) {
  27771. ignore_min_chars = true;
  27772. value = value.slice('1');
  27773. }
  27774. if (value.length >= this.min_chars || ignore_min_chars) {
  27775. this.index = -1; // Populate list with options that match
  27776. this.ul.innerHTML = "";
  27777. this.suggestions = list.map(function (item) {
  27778. return new Suggestion(_this2.data(item, value));
  27779. }).filter(function (item) {
  27780. return _this2.filter(item, value);
  27781. });
  27782. if (this.sort !== false) {
  27783. this.suggestions = this.suggestions.sort(this.sort);
  27784. }
  27785. this.suggestions = this.suggestions.slice(0, this.max_items);
  27786. this.suggestions.forEach(function (text) {
  27787. return _this2.ul.appendChild(_this2.item(text, value));
  27788. });
  27789. if (this.ul.children.length === 0) {
  27790. this.close({
  27791. 'reason': 'nomatches'
  27792. });
  27793. } else {
  27794. this.open();
  27795. }
  27796. } else {
  27797. this.close({
  27798. 'reason': 'nomatches'
  27799. });
  27800. this.auto_completing = false;
  27801. }
  27802. }
  27803. }, {
  27804. key: "list",
  27805. set: function set(list) {
  27806. if (Array.isArray(list) || typeof list === "function") {
  27807. this._list = list;
  27808. } else if (typeof list === "string" && _.includes(list, ",")) {
  27809. this._list = list.split(/\s*,\s*/);
  27810. } else {
  27811. // Element or CSS selector
  27812. list = helpers.getElement(list);
  27813. if (list && list.children) {
  27814. var items = [];
  27815. slice.apply(list.children).forEach(function (el) {
  27816. if (!el.disabled) {
  27817. var text = el.textContent.trim(),
  27818. value = el.value || text,
  27819. label = el.label || text;
  27820. if (value !== "") {
  27821. items.push({
  27822. label: label,
  27823. value: value
  27824. });
  27825. }
  27826. }
  27827. });
  27828. this._list = items;
  27829. }
  27830. }
  27831. if (document.activeElement === this.input) {
  27832. this.evaluate();
  27833. }
  27834. }
  27835. }, {
  27836. key: "selected",
  27837. get: function get() {
  27838. return this.index > -1;
  27839. }
  27840. }, {
  27841. key: "opened",
  27842. get: function get() {
  27843. return this.is_opened;
  27844. }
  27845. }]);
  27846. return AutoComplete;
  27847. }(); // Make it an event emitter
  27848. _.extend(AutoComplete.prototype, Backbone.Events); // Private functions
  27849. function Suggestion(data) {
  27850. var o = Array.isArray(data) ? {
  27851. label: data[0],
  27852. value: data[1]
  27853. } : _typeof(data) === "object" && "label" in data && "value" in data ? data : {
  27854. label: data,
  27855. value: data
  27856. };
  27857. this.label = o.label || o.value;
  27858. this.value = o.value;
  27859. }
  27860. Object.defineProperty(Suggestion.prototype = Object.create(String.prototype), "length", {
  27861. get: function get() {
  27862. return this.label.length;
  27863. }
  27864. });
  27865. Suggestion.prototype.toString = Suggestion.prototype.valueOf = function () {
  27866. return "" + this.label;
  27867. }; // Helpers
  27868. var slice = Array.prototype.slice;
  27869. var helpers = {
  27870. getElement: function getElement(expr, el) {
  27871. return typeof expr === "string" ? (el || document).querySelector(expr) : expr || null;
  27872. },
  27873. bind: function bind(element, o) {
  27874. if (element) {
  27875. var _loop = function _loop() {
  27876. if (!Object.prototype.hasOwnProperty.call(o, event)) {
  27877. return "continue";
  27878. }
  27879. var callback = o[event];
  27880. event.split(/\s+/).forEach(function (event) {
  27881. return element.addEventListener(event, callback);
  27882. });
  27883. };
  27884. for (var event in o) {
  27885. var _ret = _loop();
  27886. if (_ret === "continue") continue;
  27887. }
  27888. }
  27889. },
  27890. unbind: function unbind(element, o) {
  27891. if (element) {
  27892. var _loop2 = function _loop2() {
  27893. if (!Object.prototype.hasOwnProperty.call(o, event)) {
  27894. return "continue";
  27895. }
  27896. var callback = o[event];
  27897. event.split(/\s+/).forEach(function (event) {
  27898. return element.removeEventListener(event, callback);
  27899. });
  27900. };
  27901. for (var event in o) {
  27902. var _ret2 = _loop2();
  27903. if (_ret2 === "continue") continue;
  27904. }
  27905. }
  27906. },
  27907. regExpEscape: function regExpEscape(s) {
  27908. return s.replace(/[-\\^$*+?.()|[\]{}]/g, "\\$&");
  27909. }
  27910. };
  27911. _converse.AutoComplete = AutoComplete;
  27912. }
  27913. });
  27914. });
  27915. /***/ }),
  27916. /***/ "./src/converse-bookmarks.js":
  27917. /*!***********************************!*\
  27918. !*** ./src/converse-bookmarks.js ***!
  27919. \***********************************/
  27920. /*! no static exports found */
  27921. /***/ (function(module, exports, __webpack_require__) {
  27922. "use strict";
  27923. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  27924. // Converse.js (A browser based XMPP chat client)
  27925. // http://conversejs.org
  27926. //
  27927. // Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
  27928. // Licensed under the Mozilla Public License (MPLv2)
  27929. //
  27930. /*global define */
  27931. /* This is a Converse.js plugin which add support for bookmarks specified
  27932. * in XEP-0048.
  27933. */
  27934. (function (root, factory) {
  27935. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! converse-muc */ "./src/converse-muc.js"), __webpack_require__(/*! templates/chatroom_bookmark_form.html */ "./src/templates/chatroom_bookmark_form.html"), __webpack_require__(/*! templates/chatroom_bookmark_toggle.html */ "./src/templates/chatroom_bookmark_toggle.html"), __webpack_require__(/*! templates/bookmark.html */ "./src/templates/bookmark.html"), __webpack_require__(/*! templates/bookmarks_list.html */ "./src/templates/bookmarks_list.html")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  27936. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  27937. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  27938. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  27939. })(void 0, function (converse, muc, tpl_chatroom_bookmark_form, tpl_chatroom_bookmark_toggle, tpl_bookmark, tpl_bookmarks_list) {
  27940. var _converse$env = converse.env,
  27941. Backbone = _converse$env.Backbone,
  27942. Promise = _converse$env.Promise,
  27943. Strophe = _converse$env.Strophe,
  27944. $iq = _converse$env.$iq,
  27945. b64_sha1 = _converse$env.b64_sha1,
  27946. sizzle = _converse$env.sizzle,
  27947. _ = _converse$env._;
  27948. var u = converse.env.utils;
  27949. converse.plugins.add('converse-bookmarks', {
  27950. /* Plugin dependencies are other plugins which might be
  27951. * overridden or relied upon, and therefore need to be loaded before
  27952. * this plugin.
  27953. *
  27954. * If the setting "strict_plugin_dependencies" is set to true,
  27955. * an error will be raised if the plugin is not found. By default it's
  27956. * false, which means these plugins are only loaded opportunistically.
  27957. *
  27958. * NB: These plugins need to have already been loaded via require.js.
  27959. */
  27960. dependencies: ["converse-chatboxes", "converse-muc", "converse-muc-views"],
  27961. overrides: {
  27962. // Overrides mentioned here will be picked up by converse.js's
  27963. // plugin architecture they will replace existing methods on the
  27964. // relevant objects or classes.
  27965. //
  27966. // New functions which don't exist yet can also be added.
  27967. ChatRoomView: {
  27968. events: {
  27969. 'click .toggle-bookmark': 'toggleBookmark'
  27970. },
  27971. initialize: function initialize() {
  27972. this.__super__.initialize.apply(this, arguments);
  27973. this.model.on('change:bookmarked', this.onBookmarked, this);
  27974. this.setBookmarkState();
  27975. },
  27976. renderBookmarkToggle: function renderBookmarkToggle() {
  27977. if (this.el.querySelector('.chat-head .toggle-bookmark')) {
  27978. return;
  27979. }
  27980. var _converse = this.__super__._converse,
  27981. __ = _converse.__;
  27982. var bookmark_button = tpl_chatroom_bookmark_toggle(_.assignIn(this.model.toJSON(), {
  27983. info_toggle_bookmark: __('Bookmark this groupchat'),
  27984. bookmarked: this.model.get('bookmarked')
  27985. }));
  27986. var close_button = this.el.querySelector('.close-chatbox-button');
  27987. close_button.insertAdjacentHTML('afterend', bookmark_button);
  27988. },
  27989. renderHeading: function renderHeading() {
  27990. var _this = this;
  27991. this.__super__.renderHeading.apply(this, arguments);
  27992. var _converse = this.__super__._converse;
  27993. if (_converse.allow_bookmarks) {
  27994. _converse.checkBookmarksSupport().then(function (supported) {
  27995. if (supported) {
  27996. _this.renderBookmarkToggle();
  27997. }
  27998. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  27999. }
  28000. },
  28001. checkForReservedNick: function checkForReservedNick() {
  28002. /* Check if the user has a bookmark with a saved nickanme
  28003. * for this groupchat, and if so use it.
  28004. * Otherwise delegate to the super method.
  28005. */
  28006. var _converse = this.__super__._converse;
  28007. if (_.isUndefined(_converse.bookmarks) || !_converse.allow_bookmarks) {
  28008. return this.__super__.checkForReservedNick.apply(this, arguments);
  28009. }
  28010. var model = _converse.bookmarks.findWhere({
  28011. 'jid': this.model.get('jid')
  28012. });
  28013. if (!_.isUndefined(model) && model.get('nick')) {
  28014. this.join(model.get('nick'));
  28015. } else {
  28016. return this.__super__.checkForReservedNick.apply(this, arguments);
  28017. }
  28018. },
  28019. onBookmarked: function onBookmarked() {
  28020. var icon = this.el.querySelector('.toggle-bookmark');
  28021. if (_.isNull(icon)) {
  28022. return;
  28023. }
  28024. if (this.model.get('bookmarked')) {
  28025. icon.classList.add('button-on');
  28026. } else {
  28027. icon.classList.remove('button-on');
  28028. }
  28029. },
  28030. setBookmarkState: function setBookmarkState() {
  28031. /* Set whether the groupchat is bookmarked or not.
  28032. */
  28033. var _converse = this.__super__._converse;
  28034. if (!_.isUndefined(_converse.bookmarks)) {
  28035. var models = _converse.bookmarks.where({
  28036. 'jid': this.model.get('jid')
  28037. });
  28038. if (!models.length) {
  28039. this.model.save('bookmarked', false);
  28040. } else {
  28041. this.model.save('bookmarked', true);
  28042. }
  28043. }
  28044. },
  28045. renderBookmarkForm: function renderBookmarkForm() {
  28046. var _converse = this.__super__._converse,
  28047. __ = _converse.__,
  28048. body = this.el.querySelector('.chatroom-body');
  28049. _.each(body.children, function (child) {
  28050. child.classList.add('hidden');
  28051. }); // Remove any existing forms
  28052. _.each(body.querySelectorAll('.chatroom-form-container'), u.removeElement);
  28053. body.insertAdjacentHTML('beforeend', tpl_chatroom_bookmark_form({
  28054. heading: __('Bookmark this groupchat'),
  28055. label_name: __('The name for this bookmark:'),
  28056. label_autojoin: __('Would you like this groupchat to be automatically joined upon startup?'),
  28057. label_nick: __('What should your nickname for this groupchat be?'),
  28058. default_nick: this.model.get('nick'),
  28059. label_submit: __('Save'),
  28060. label_cancel: __('Cancel')
  28061. }));
  28062. var form = body.querySelector('form.chatroom-form');
  28063. form.addEventListener('submit', this.onBookmarkFormSubmitted.bind(this));
  28064. form.querySelector('.button-cancel').addEventListener('click', this.closeForm.bind(this));
  28065. },
  28066. onBookmarkFormSubmitted: function onBookmarkFormSubmitted(ev) {
  28067. ev.preventDefault();
  28068. var _converse = this.__super__._converse;
  28069. _converse.bookmarks.createBookmark({
  28070. 'jid': this.model.get('jid'),
  28071. 'autojoin': _.get(ev.target.querySelector('input[name="autojoin"]'), 'checked') || false,
  28072. 'name': _.get(ev.target.querySelector('input[name=name]'), 'value'),
  28073. 'nick': _.get(ev.target.querySelector('input[name=nick]'), 'value')
  28074. });
  28075. u.removeElement(this.el.querySelector('div.chatroom-form-container'));
  28076. this.renderAfterTransition();
  28077. },
  28078. toggleBookmark: function toggleBookmark(ev) {
  28079. if (ev) {
  28080. ev.preventDefault();
  28081. ev.stopPropagation();
  28082. }
  28083. var _converse = this.__super__._converse;
  28084. var models = _converse.bookmarks.where({
  28085. 'jid': this.model.get('jid')
  28086. });
  28087. if (!models.length) {
  28088. this.renderBookmarkForm();
  28089. } else {
  28090. _.forEach(models, function (model) {
  28091. model.destroy();
  28092. });
  28093. this.el.querySelector('.toggle-bookmark').classList.remove('button-on');
  28094. }
  28095. }
  28096. }
  28097. },
  28098. initialize: function initialize() {
  28099. /* The initialize function gets called as soon as the plugin is
  28100. * loaded by converse.js's plugin machinery.
  28101. */
  28102. var _converse = this._converse,
  28103. __ = _converse.__; // Configuration values for this plugin
  28104. // ====================================
  28105. // Refer to docs/source/configuration.rst for explanations of these
  28106. // configuration settings.
  28107. _converse.api.settings.update({
  28108. allow_bookmarks: true,
  28109. allow_public_bookmarks: false,
  28110. hide_open_bookmarks: true
  28111. }); // Promises exposed by this plugin
  28112. _converse.api.promises.add('bookmarksInitialized'); // Pure functions on the _converse object
  28113. _.extend(_converse, {
  28114. removeBookmarkViaEvent: function removeBookmarkViaEvent(ev) {
  28115. /* Remove a bookmark as determined by the passed in
  28116. * event.
  28117. */
  28118. ev.preventDefault();
  28119. var name = ev.target.getAttribute('data-bookmark-name');
  28120. var jid = ev.target.getAttribute('data-room-jid');
  28121. if (confirm(__("Are you sure you want to remove the bookmark \"%1$s\"?", name))) {
  28122. _.invokeMap(_converse.bookmarks.where({
  28123. 'jid': jid
  28124. }), Backbone.Model.prototype.destroy);
  28125. }
  28126. },
  28127. addBookmarkViaEvent: function addBookmarkViaEvent(ev) {
  28128. /* Add a bookmark as determined by the passed in
  28129. * event.
  28130. */
  28131. ev.preventDefault();
  28132. var jid = ev.target.getAttribute('data-room-jid');
  28133. var chatroom = _converse.api.rooms.open(jid, {
  28134. 'bring_to_foreground': true
  28135. });
  28136. _converse.chatboxviews.get(jid).renderBookmarkForm();
  28137. }
  28138. });
  28139. _converse.Bookmark = Backbone.Model;
  28140. _converse.Bookmarks = Backbone.Collection.extend({
  28141. model: _converse.Bookmark,
  28142. comparator: function comparator(item) {
  28143. return item.get('name').toLowerCase();
  28144. },
  28145. initialize: function initialize() {
  28146. this.on('add', _.flow(this.openBookmarkedRoom, this.markRoomAsBookmarked));
  28147. this.on('remove', this.markRoomAsUnbookmarked, this);
  28148. this.on('remove', this.sendBookmarkStanza, this);
  28149. var storage = _converse.config.get('storage'),
  28150. cache_key = "converse.room-bookmarks".concat(_converse.bare_jid);
  28151. this.fetched_flag = b64_sha1(cache_key + 'fetched');
  28152. this.browserStorage = new Backbone.BrowserStorage[storage](b64_sha1(cache_key));
  28153. },
  28154. openBookmarkedRoom: function openBookmarkedRoom(bookmark) {
  28155. if (bookmark.get('autojoin')) {
  28156. var groupchat = _converse.api.rooms.create(bookmark.get('jid'), bookmark.get('nick'));
  28157. if (!groupchat.get('hidden')) {
  28158. groupchat.trigger('show');
  28159. }
  28160. }
  28161. return bookmark;
  28162. },
  28163. fetchBookmarks: function fetchBookmarks() {
  28164. var deferred = u.getResolveablePromise();
  28165. if (this.browserStorage.records.length > 0) {
  28166. this.fetch({
  28167. 'success': _.bind(this.onCachedBookmarksFetched, this, deferred),
  28168. 'error': _.bind(this.onCachedBookmarksFetched, this, deferred)
  28169. });
  28170. } else if (!window.sessionStorage.getItem(this.fetched_flag)) {
  28171. // There aren't any cached bookmarks and the
  28172. // `fetched_flag` is off, so we query the XMPP server.
  28173. // If nothing is returned from the XMPP server, we set
  28174. // the `fetched_flag` to avoid calling the server again.
  28175. this.fetchBookmarksFromServer(deferred);
  28176. } else {
  28177. deferred.resolve();
  28178. }
  28179. return deferred;
  28180. },
  28181. onCachedBookmarksFetched: function onCachedBookmarksFetched(deferred) {
  28182. return deferred.resolve();
  28183. },
  28184. createBookmark: function createBookmark(options) {
  28185. var _this2 = this;
  28186. this.create(options);
  28187. this.sendBookmarkStanza().catch(function (iq) {
  28188. return _this2.onBookmarkError(iq, options);
  28189. });
  28190. },
  28191. sendBookmarkStanza: function sendBookmarkStanza() {
  28192. var stanza = $iq({
  28193. 'type': 'set',
  28194. 'from': _converse.connection.jid
  28195. }).c('pubsub', {
  28196. 'xmlns': Strophe.NS.PUBSUB
  28197. }).c('publish', {
  28198. 'node': 'storage:bookmarks'
  28199. }).c('item', {
  28200. 'id': 'current'
  28201. }).c('storage', {
  28202. 'xmlns': 'storage:bookmarks'
  28203. });
  28204. this.each(function (model) {
  28205. stanza.c('conference', {
  28206. 'name': model.get('name'),
  28207. 'autojoin': model.get('autojoin'),
  28208. 'jid': model.get('jid')
  28209. }).c('nick').t(model.get('nick')).up().up();
  28210. });
  28211. stanza.up().up().up();
  28212. stanza.c('publish-options').c('x', {
  28213. 'xmlns': Strophe.NS.XFORM,
  28214. 'type': 'submit'
  28215. }).c('field', {
  28216. 'var': 'FORM_TYPE',
  28217. 'type': 'hidden'
  28218. }).c('value').t('http://jabber.org/protocol/pubsub#publish-options').up().up().c('field', {
  28219. 'var': 'pubsub#persist_items'
  28220. }).c('value').t('true').up().up().c('field', {
  28221. 'var': 'pubsub#access_model'
  28222. }).c('value').t('whitelist');
  28223. return _converse.api.sendIQ(stanza);
  28224. },
  28225. onBookmarkError: function onBookmarkError(iq, options) {
  28226. _converse.log("Error while trying to add bookmark", Strophe.LogLevel.ERROR);
  28227. _converse.log(iq);
  28228. _converse.api.alert.show(Strophe.LogLevel.ERROR, __('Error'), [__("Sorry, something went wrong while trying to save your bookmark.")]);
  28229. this.findWhere({
  28230. 'jid': options.jid
  28231. }).destroy();
  28232. },
  28233. fetchBookmarksFromServer: function fetchBookmarksFromServer(deferred) {
  28234. var _this3 = this;
  28235. var stanza = $iq({
  28236. 'from': _converse.connection.jid,
  28237. 'type': 'get'
  28238. }).c('pubsub', {
  28239. 'xmlns': Strophe.NS.PUBSUB
  28240. }).c('items', {
  28241. 'node': 'storage:bookmarks'
  28242. });
  28243. _converse.api.sendIQ(stanza).then(function (iq) {
  28244. return _this3.onBookmarksReceived(deferred, iq);
  28245. }).catch(function (iq) {
  28246. return _this3.onBookmarksReceivedError(deferred, iq);
  28247. });
  28248. },
  28249. markRoomAsBookmarked: function markRoomAsBookmarked(bookmark) {
  28250. var groupchat = _converse.chatboxes.get(bookmark.get('jid'));
  28251. if (!_.isUndefined(groupchat)) {
  28252. groupchat.save('bookmarked', true);
  28253. }
  28254. },
  28255. markRoomAsUnbookmarked: function markRoomAsUnbookmarked(bookmark) {
  28256. var groupchat = _converse.chatboxes.get(bookmark.get('jid'));
  28257. if (!_.isUndefined(groupchat)) {
  28258. groupchat.save('bookmarked', false);
  28259. }
  28260. },
  28261. createBookmarksFromStanza: function createBookmarksFromStanza(stanza) {
  28262. var _this4 = this;
  28263. var bookmarks = sizzle('items[node="storage:bookmarks"] ' + 'item#current ' + 'storage[xmlns="storage:bookmarks"] ' + 'conference', stanza);
  28264. _.forEach(bookmarks, function (bookmark) {
  28265. var jid = bookmark.getAttribute('jid');
  28266. _this4.create({
  28267. 'jid': jid,
  28268. 'name': bookmark.getAttribute('name') || jid,
  28269. 'autojoin': bookmark.getAttribute('autojoin') === 'true',
  28270. 'nick': _.get(bookmark.querySelector('nick'), 'textContent')
  28271. });
  28272. });
  28273. },
  28274. onBookmarksReceived: function onBookmarksReceived(deferred, iq) {
  28275. this.createBookmarksFromStanza(iq);
  28276. if (!_.isUndefined(deferred)) {
  28277. return deferred.resolve();
  28278. }
  28279. },
  28280. onBookmarksReceivedError: function onBookmarksReceivedError(deferred, iq) {
  28281. window.sessionStorage.setItem(this.fetched_flag, true);
  28282. _converse.log('Error while fetching bookmarks', Strophe.LogLevel.WARN);
  28283. _converse.log(iq.outerHTML, Strophe.LogLevel.DEBUG);
  28284. if (!_.isNil(deferred)) {
  28285. if (iq.querySelector('error[type="cancel"] item-not-found')) {
  28286. // Not an exception, the user simply doesn't have
  28287. // any bookmarks.
  28288. return deferred.resolve();
  28289. } else {
  28290. return deferred.reject(new Error("Could not fetch bookmarks"));
  28291. }
  28292. }
  28293. }
  28294. });
  28295. _converse.BookmarksList = Backbone.Model.extend({
  28296. defaults: {
  28297. "toggle-state": _converse.OPENED
  28298. }
  28299. });
  28300. _converse.BookmarkView = Backbone.VDOMView.extend({
  28301. toHTML: function toHTML() {
  28302. return tpl_bookmark({
  28303. 'hidden': _converse.hide_open_bookmarks && _converse.chatboxes.where({
  28304. 'jid': this.model.get('jid')
  28305. }).length,
  28306. 'bookmarked': true,
  28307. 'info_leave_room': __('Leave this groupchat'),
  28308. 'info_remove': __('Remove this bookmark'),
  28309. 'info_remove_bookmark': __('Unbookmark this groupchat'),
  28310. 'info_title': __('Show more information on this groupchat'),
  28311. 'jid': this.model.get('jid'),
  28312. 'name': Strophe.xmlunescape(this.model.get('name')),
  28313. 'open_title': __('Click to open this groupchat')
  28314. });
  28315. }
  28316. });
  28317. _converse.BookmarksView = Backbone.OrderedListView.extend({
  28318. tagName: 'div',
  28319. className: 'bookmarks-list list-container rooms-list-container',
  28320. events: {
  28321. 'click .add-bookmark': 'addBookmark',
  28322. 'click .bookmarks-toggle': 'toggleBookmarksList',
  28323. 'click .remove-bookmark': 'removeBookmark',
  28324. 'click .open-room': 'openRoom'
  28325. },
  28326. listSelector: '.rooms-list',
  28327. ItemView: _converse.BookmarkView,
  28328. subviewIndex: 'jid',
  28329. initialize: function initialize() {
  28330. Backbone.OrderedListView.prototype.initialize.apply(this, arguments);
  28331. this.model.on('add', this.showOrHide, this);
  28332. this.model.on('remove', this.showOrHide, this);
  28333. _converse.chatboxes.on('add', this.renderBookmarkListElement, this);
  28334. _converse.chatboxes.on('remove', this.renderBookmarkListElement, this);
  28335. var storage = _converse.config.get('storage'),
  28336. id = b64_sha1("converse.room-bookmarks".concat(_converse.bare_jid, "-list-model"));
  28337. this.list_model = new _converse.BookmarksList({
  28338. 'id': id
  28339. });
  28340. this.list_model.browserStorage = new Backbone.BrowserStorage[storage](id);
  28341. this.list_model.fetch();
  28342. this.render();
  28343. this.sortAndPositionAllItems();
  28344. },
  28345. render: function render() {
  28346. this.el.innerHTML = tpl_bookmarks_list({
  28347. 'toggle_state': this.list_model.get('toggle-state'),
  28348. 'desc_bookmarks': __('Click to toggle the bookmarks list'),
  28349. 'label_bookmarks': __('Bookmarks'),
  28350. '_converse': _converse
  28351. });
  28352. this.showOrHide();
  28353. this.insertIntoControlBox();
  28354. return this;
  28355. },
  28356. insertIntoControlBox: function insertIntoControlBox() {
  28357. var controlboxview = _converse.chatboxviews.get('controlbox');
  28358. if (!_.isUndefined(controlboxview) && !u.rootContains(_converse.root, this.el)) {
  28359. var el = controlboxview.el.querySelector('.bookmarks-list');
  28360. if (!_.isNull(el)) {
  28361. el.parentNode.replaceChild(this.el, el);
  28362. }
  28363. }
  28364. },
  28365. openRoom: function openRoom(ev) {
  28366. ev.preventDefault();
  28367. var name = ev.target.textContent;
  28368. var jid = ev.target.getAttribute('data-room-jid');
  28369. var data = {
  28370. 'name': name || Strophe.unescapeNode(Strophe.getNodeFromJid(jid)) || jid
  28371. };
  28372. _converse.api.rooms.open(jid, data);
  28373. },
  28374. removeBookmark: _converse.removeBookmarkViaEvent,
  28375. addBookmark: _converse.addBookmarkViaEvent,
  28376. renderBookmarkListElement: function renderBookmarkListElement(chatbox) {
  28377. var bookmarkview = this.get(chatbox.get('jid'));
  28378. if (_.isNil(bookmarkview)) {
  28379. // A chat box has been closed, but we don't have a
  28380. // bookmark for it, so nothing further to do here.
  28381. return;
  28382. }
  28383. bookmarkview.render();
  28384. this.showOrHide();
  28385. },
  28386. showOrHide: function showOrHide(item) {
  28387. if (_converse.hide_open_bookmarks) {
  28388. var bookmarks = this.model.filter(function (bookmark) {
  28389. return !_converse.chatboxes.get(bookmark.get('jid'));
  28390. });
  28391. if (!bookmarks.length) {
  28392. u.hideElement(this.el);
  28393. return;
  28394. }
  28395. }
  28396. if (this.model.models.length) {
  28397. u.showElement(this.el);
  28398. }
  28399. },
  28400. toggleBookmarksList: function toggleBookmarksList(ev) {
  28401. if (ev && ev.preventDefault) {
  28402. ev.preventDefault();
  28403. }
  28404. var icon_el = ev.target.querySelector('.fa');
  28405. if (u.hasClass('fa-caret-down', icon_el)) {
  28406. u.slideIn(this.el.querySelector('.bookmarks'));
  28407. this.list_model.save({
  28408. 'toggle-state': _converse.CLOSED
  28409. });
  28410. icon_el.classList.remove("fa-caret-down");
  28411. icon_el.classList.add("fa-caret-right");
  28412. } else {
  28413. icon_el.classList.remove("fa-caret-right");
  28414. icon_el.classList.add("fa-caret-down");
  28415. u.slideOut(this.el.querySelector('.bookmarks'));
  28416. this.list_model.save({
  28417. 'toggle-state': _converse.OPENED
  28418. });
  28419. }
  28420. }
  28421. });
  28422. _converse.checkBookmarksSupport = function () {
  28423. return new Promise(function (resolve, reject) {
  28424. Promise.all([_converse.api.disco.getIdentity('pubsub', 'pep', _converse.bare_jid), _converse.api.disco.supports(Strophe.NS.PUBSUB + '#publish-options', _converse.bare_jid)]).then(function (args) {
  28425. resolve(args[0] && (args[1].length || _converse.allow_public_bookmarks));
  28426. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  28427. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  28428. };
  28429. var initBookmarks = function initBookmarks() {
  28430. if (!_converse.allow_bookmarks) {
  28431. return;
  28432. }
  28433. _converse.checkBookmarksSupport().then(function (supported) {
  28434. if (supported) {
  28435. _converse.bookmarks = new _converse.Bookmarks();
  28436. _converse.bookmarksview = new _converse.BookmarksView({
  28437. 'model': _converse.bookmarks
  28438. });
  28439. _converse.bookmarks.fetchBookmarks().catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL)).then(function () {
  28440. return _converse.emit('bookmarksInitialized');
  28441. });
  28442. } else {
  28443. _converse.emit('bookmarksInitialized');
  28444. }
  28445. });
  28446. };
  28447. u.onMultipleEvents([{
  28448. 'object': _converse,
  28449. 'event': 'chatBoxesFetched'
  28450. }, {
  28451. 'object': _converse,
  28452. 'event': 'roomsPanelRendered'
  28453. }], initBookmarks);
  28454. _converse.on('clearSession', function () {
  28455. if (!_.isUndefined(_converse.bookmarks)) {
  28456. _converse.bookmarks.browserStorage._clear();
  28457. window.sessionStorage.removeItem(_converse.bookmarks.fetched_flag);
  28458. }
  28459. });
  28460. _converse.on('reconnected', initBookmarks);
  28461. _converse.on('connected', function () {
  28462. // Add a handler for bookmarks pushed from other connected clients
  28463. // (from the same user obviously)
  28464. _converse.connection.addHandler(function (message) {
  28465. if (sizzle('event[xmlns="' + Strophe.NS.PUBSUB + '#event"] items[node="storage:bookmarks"]', message).length) {
  28466. _converse.api.waitUntil('bookmarksInitialized').then(function () {
  28467. return _converse.bookmarks.createBookmarksFromStanza(message);
  28468. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  28469. }
  28470. }, null, 'message', 'headline', null, _converse.bare_jid);
  28471. });
  28472. }
  28473. });
  28474. });
  28475. /***/ }),
  28476. /***/ "./src/converse-caps.js":
  28477. /*!******************************!*\
  28478. !*** ./src/converse-caps.js ***!
  28479. \******************************/
  28480. /*! no static exports found */
  28481. /***/ (function(module, exports, __webpack_require__) {
  28482. "use strict";
  28483. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  28484. // Converse.js
  28485. // http://conversejs.org
  28486. //
  28487. // Copyright (c) 2013-2018, the Converse.js developers
  28488. // Licensed under the Mozilla Public License (MPLv2)
  28489. (function (root, factory) {
  28490. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  28491. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  28492. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  28493. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  28494. })(void 0, function (converse) {
  28495. var _converse$env = converse.env,
  28496. Strophe = _converse$env.Strophe,
  28497. $build = _converse$env.$build,
  28498. _ = _converse$env._,
  28499. b64_sha1 = _converse$env.b64_sha1;
  28500. Strophe.addNamespace('CAPS', "http://jabber.org/protocol/caps");
  28501. function propertySort(array, property) {
  28502. return array.sort(function (a, b) {
  28503. return a[property] > b[property] ? -1 : 1;
  28504. });
  28505. }
  28506. function generateVerificationString(_converse) {
  28507. var identities = _converse.api.disco.own.identities.get(),
  28508. features = _converse.api.disco.own.features.get();
  28509. if (identities.length > 1) {
  28510. propertySort(identities, "category");
  28511. propertySort(identities, "type");
  28512. propertySort(identities, "lang");
  28513. }
  28514. var S = _.reduce(identities, function (result, id) {
  28515. return "".concat(result).concat(id.category, "/").concat(id.type, "/").concat(_.get(id, 'lang', ''), "/").concat(id.name, "<");
  28516. }, "");
  28517. features.sort();
  28518. S = _.reduce(features, function (result, feature) {
  28519. return "".concat(result).concat(feature, "<");
  28520. }, S);
  28521. return b64_sha1(S);
  28522. }
  28523. function createCapsNode(_converse) {
  28524. return $build("c", {
  28525. 'xmlns': Strophe.NS.CAPS,
  28526. 'hash': "sha-1",
  28527. 'node': "https://conversejs.org",
  28528. 'ver': generateVerificationString(_converse)
  28529. }).nodeTree;
  28530. }
  28531. converse.plugins.add('converse-caps', {
  28532. overrides: {
  28533. // Overrides mentioned here will be picked up by converse.js's
  28534. // plugin architecture they will replace existing methods on the
  28535. // relevant objects or classes.
  28536. XMPPStatus: {
  28537. constructPresence: function constructPresence() {
  28538. var presence = this.__super__.constructPresence.apply(this, arguments);
  28539. presence.root().cnode(createCapsNode(this.__super__._converse));
  28540. return presence;
  28541. }
  28542. }
  28543. }
  28544. });
  28545. });
  28546. /***/ }),
  28547. /***/ "./src/converse-chatboxes.js":
  28548. /*!***********************************!*\
  28549. !*** ./src/converse-chatboxes.js ***!
  28550. \***********************************/
  28551. /*! no static exports found */
  28552. /***/ (function(module, exports, __webpack_require__) {
  28553. "use strict";
  28554. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  28555. // Converse.js
  28556. // http://conversejs.org
  28557. //
  28558. // Copyright (c) 2012-2018, the Converse.js developers
  28559. // Licensed under the Mozilla Public License (MPLv2)
  28560. (function (root, factory) {
  28561. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! filesize */ "./node_modules/filesize/lib/filesize.js"), __webpack_require__(/*! utils/form */ "./src/utils/form.js"), __webpack_require__(/*! utils/emoji */ "./src/utils/emoji.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  28562. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  28563. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  28564. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  28565. })(void 0, function (converse, filesize) {
  28566. "use strict";
  28567. var _converse$env = converse.env,
  28568. $msg = _converse$env.$msg,
  28569. Backbone = _converse$env.Backbone,
  28570. Promise = _converse$env.Promise,
  28571. Strophe = _converse$env.Strophe,
  28572. b64_sha1 = _converse$env.b64_sha1,
  28573. moment = _converse$env.moment,
  28574. sizzle = _converse$env.sizzle,
  28575. utils = _converse$env.utils,
  28576. _ = _converse$env._;
  28577. var u = converse.env.utils;
  28578. Strophe.addNamespace('MESSAGE_CORRECT', 'urn:xmpp:message-correct:0');
  28579. Strophe.addNamespace('REFERENCE', 'urn:xmpp:reference:0');
  28580. converse.plugins.add('converse-chatboxes', {
  28581. dependencies: ["converse-roster", "converse-vcard"],
  28582. initialize: function initialize() {
  28583. /* The initialize function gets called as soon as the plugin is
  28584. * loaded by converse.js's plugin machinery.
  28585. */
  28586. var _converse = this._converse,
  28587. __ = _converse.__; // Configuration values for this plugin
  28588. // ====================================
  28589. // Refer to docs/source/configuration.rst for explanations of these
  28590. // configuration settings.
  28591. _converse.api.settings.update({
  28592. 'filter_by_resource': false,
  28593. 'auto_join_private_chats': [],
  28594. 'forward_messages': false
  28595. });
  28596. _converse.api.promises.add(['chatBoxesFetched', 'chatBoxesInitialized', 'privateChatsAutoJoined']);
  28597. function openChat(jid) {
  28598. if (!utils.isValidJID(jid)) {
  28599. return _converse.log("Invalid JID \"".concat(jid, "\" provided in URL fragment"), Strophe.LogLevel.WARN);
  28600. }
  28601. _converse.api.chats.open(jid);
  28602. }
  28603. _converse.router.route('converse/chat?jid=:jid', openChat);
  28604. _converse.Message = Backbone.Model.extend({
  28605. defaults: function defaults() {
  28606. return {
  28607. 'msgid': _converse.connection.getUniqueId(),
  28608. 'time': moment().format()
  28609. };
  28610. },
  28611. initialize: function initialize() {
  28612. this.setVCard();
  28613. if (this.get('file')) {
  28614. this.on('change:put', this.uploadFile, this);
  28615. if (!_.includes([_converse.SUCCESS, _converse.FAILURE], this.get('upload'))) {
  28616. this.getRequestSlotURL();
  28617. }
  28618. }
  28619. if (this.isOnlyChatStateNotification()) {
  28620. window.setTimeout(this.destroy.bind(this), 20000);
  28621. }
  28622. },
  28623. getVCardForChatroomOccupant: function getVCardForChatroomOccupant() {
  28624. var chatbox = this.collection.chatbox,
  28625. nick = Strophe.getResourceFromJid(this.get('from'));
  28626. if (chatbox.get('nick') === nick) {
  28627. return _converse.xmppstatus.vcard;
  28628. } else {
  28629. var vcard;
  28630. if (this.get('vcard_jid')) {
  28631. vcard = _converse.vcards.findWhere({
  28632. 'jid': this.get('vcard_jid')
  28633. });
  28634. }
  28635. if (!vcard) {
  28636. var jid;
  28637. var occupant = chatbox.occupants.findWhere({
  28638. 'nick': nick
  28639. });
  28640. if (occupant && occupant.get('jid')) {
  28641. jid = occupant.get('jid');
  28642. this.save({
  28643. 'vcard_jid': jid
  28644. }, {
  28645. 'silent': true
  28646. });
  28647. } else {
  28648. jid = this.get('from');
  28649. }
  28650. vcard = _converse.vcards.findWhere({
  28651. 'jid': jid
  28652. }) || _converse.vcards.create({
  28653. 'jid': jid
  28654. });
  28655. }
  28656. return vcard;
  28657. }
  28658. },
  28659. setVCard: function setVCard() {
  28660. if (this.get('type') === 'groupchat') {
  28661. this.vcard = this.getVCardForChatroomOccupant();
  28662. } else {
  28663. var jid = this.get('from');
  28664. this.vcard = _converse.vcards.findWhere({
  28665. 'jid': jid
  28666. }) || _converse.vcards.create({
  28667. 'jid': jid
  28668. });
  28669. }
  28670. },
  28671. isOnlyChatStateNotification: function isOnlyChatStateNotification() {
  28672. return u.isOnlyChatStateNotification(this);
  28673. },
  28674. getDisplayName: function getDisplayName() {
  28675. if (this.get('type') === 'groupchat') {
  28676. return this.get('nick');
  28677. } else {
  28678. return this.vcard.get('fullname') || this.get('from');
  28679. }
  28680. },
  28681. sendSlotRequestStanza: function sendSlotRequestStanza() {
  28682. var _this = this;
  28683. /* Send out an IQ stanza to request a file upload slot.
  28684. *
  28685. * https://xmpp.org/extensions/xep-0363.html#request
  28686. */
  28687. var file = this.get('file');
  28688. return new Promise(function (resolve, reject) {
  28689. var iq = converse.env.$iq({
  28690. 'from': _converse.jid,
  28691. 'to': _this.get('slot_request_url'),
  28692. 'type': 'get'
  28693. }).c('request', {
  28694. 'xmlns': Strophe.NS.HTTPUPLOAD,
  28695. 'filename': file.name,
  28696. 'size': file.size,
  28697. 'content-type': file.type
  28698. });
  28699. _converse.connection.sendIQ(iq, resolve, reject);
  28700. });
  28701. },
  28702. getRequestSlotURL: function getRequestSlotURL() {
  28703. var _this2 = this;
  28704. this.sendSlotRequestStanza().then(function (stanza) {
  28705. var slot = stanza.querySelector('slot');
  28706. if (slot) {
  28707. _this2.save({
  28708. 'get': slot.querySelector('get').getAttribute('url'),
  28709. 'put': slot.querySelector('put').getAttribute('url')
  28710. });
  28711. } else {
  28712. return _this2.save({
  28713. 'type': 'error',
  28714. 'message': __("Sorry, could not determine file upload URL.")
  28715. });
  28716. }
  28717. }).catch(function (e) {
  28718. _converse.log(e, Strophe.LogLevel.ERROR);
  28719. return _this2.save({
  28720. 'type': 'error',
  28721. 'message': __("Sorry, could not determine upload URL.")
  28722. });
  28723. });
  28724. },
  28725. uploadFile: function uploadFile() {
  28726. var _this3 = this;
  28727. var xhr = new XMLHttpRequest();
  28728. xhr.onreadystatechange = function () {
  28729. if (xhr.readyState === XMLHttpRequest.DONE) {
  28730. _converse.log("Status: " + xhr.status, Strophe.LogLevel.INFO);
  28731. if (xhr.status === 200 || xhr.status === 201) {
  28732. _this3.save({
  28733. 'upload': _converse.SUCCESS,
  28734. 'oob_url': _this3.get('get'),
  28735. 'message': _this3.get('get')
  28736. });
  28737. } else {
  28738. xhr.onerror();
  28739. }
  28740. }
  28741. };
  28742. xhr.upload.addEventListener("progress", function (evt) {
  28743. if (evt.lengthComputable) {
  28744. _this3.set('progress', evt.loaded / evt.total);
  28745. }
  28746. }, false);
  28747. xhr.onerror = function () {
  28748. var message;
  28749. if (xhr.responseText) {
  28750. message = __('Sorry, could not succesfully upload your file. Your server’s response: "%1$s"', xhr.responseText);
  28751. } else {
  28752. message = __('Sorry, could not succesfully upload your file.');
  28753. }
  28754. _this3.save({
  28755. 'type': 'error',
  28756. 'upload': _converse.FAILURE,
  28757. 'message': message
  28758. });
  28759. };
  28760. xhr.open('PUT', this.get('put'), true);
  28761. xhr.setRequestHeader("Content-type", this.get('file').type);
  28762. xhr.send(this.get('file'));
  28763. }
  28764. });
  28765. _converse.Messages = Backbone.Collection.extend({
  28766. model: _converse.Message,
  28767. comparator: 'time'
  28768. });
  28769. _converse.ChatBox = _converse.ModelWithVCardAndPresence.extend({
  28770. defaults: function defaults() {
  28771. return {
  28772. 'bookmarked': false,
  28773. 'chat_state': undefined,
  28774. 'num_unread': 0,
  28775. 'type': _converse.PRIVATE_CHAT_TYPE,
  28776. 'message_type': 'chat',
  28777. 'url': '',
  28778. 'hidden': _.includes(['mobile', 'fullscreen'], _converse.view_mode)
  28779. };
  28780. },
  28781. initialize: function initialize() {
  28782. var _this4 = this;
  28783. _converse.ModelWithVCardAndPresence.prototype.initialize.apply(this, arguments);
  28784. _converse.api.waitUntil('rosterContactsFetched').then(function () {
  28785. _this4.addRelatedContact(_converse.roster.findWhere({
  28786. 'jid': _this4.get('jid')
  28787. }));
  28788. });
  28789. this.messages = new _converse.Messages();
  28790. var storage = _converse.config.get('storage');
  28791. this.messages.browserStorage = new Backbone.BrowserStorage[storage](b64_sha1("converse.messages".concat(this.get('jid')).concat(_converse.bare_jid)));
  28792. this.messages.chatbox = this;
  28793. this.messages.on('change:upload', function (message) {
  28794. if (message.get('upload') === _converse.SUCCESS) {
  28795. _this4.sendMessageStanza(_this4.createMessageStanza(message));
  28796. }
  28797. });
  28798. this.on('change:chat_state', this.sendChatState, this);
  28799. this.save({
  28800. // The chat_state will be set to ACTIVE once the chat box is opened
  28801. // and we listen for change:chat_state, so shouldn't set it to ACTIVE here.
  28802. 'box_id': b64_sha1(this.get('jid')),
  28803. 'time_opened': this.get('time_opened') || moment().valueOf(),
  28804. 'user_id': Strophe.getNodeFromJid(this.get('jid'))
  28805. });
  28806. },
  28807. addRelatedContact: function addRelatedContact(contact) {
  28808. if (!_.isUndefined(contact)) {
  28809. this.contact = contact;
  28810. this.trigger('contactAdded', contact);
  28811. }
  28812. },
  28813. getDisplayName: function getDisplayName() {
  28814. return this.vcard.get('fullname') || this.get('jid');
  28815. },
  28816. handleMessageCorrection: function handleMessageCorrection(stanza) {
  28817. var replace = sizzle("replace[xmlns=\"".concat(Strophe.NS.MESSAGE_CORRECT, "\"]"), stanza).pop();
  28818. if (replace) {
  28819. var msgid = replace && replace.getAttribute('id') || stanza.getAttribute('id'),
  28820. message = msgid && this.messages.findWhere({
  28821. msgid: msgid
  28822. });
  28823. if (!message) {
  28824. // XXX: Looks like we received a correction for a
  28825. // non-existing message, probably due to MAM.
  28826. // Not clear what can be done about this... we'll
  28827. // just create it as a separate message for now.
  28828. return false;
  28829. }
  28830. var older_versions = message.get('older_versions') || [];
  28831. older_versions.push(message.get('message'));
  28832. message.save({
  28833. 'message': _converse.chatboxes.getMessageBody(stanza),
  28834. 'references': this.getReferencesFromStanza(stanza),
  28835. 'older_versions': older_versions,
  28836. 'edited': true
  28837. });
  28838. return true;
  28839. }
  28840. return false;
  28841. },
  28842. createMessageStanza: function createMessageStanza(message) {
  28843. /* Given a _converse.Message Backbone.Model, return the XML
  28844. * stanza that represents it.
  28845. *
  28846. * Parameters:
  28847. * (Object) message - The Backbone.Model representing the message
  28848. */
  28849. var stanza = $msg({
  28850. 'from': _converse.connection.jid,
  28851. 'to': this.get('jid'),
  28852. 'type': this.get('message_type'),
  28853. 'id': message.get('edited') && _converse.connection.getUniqueId() || message.get('msgid')
  28854. }).c('body').t(message.get('message')).up().c(_converse.ACTIVE, {
  28855. 'xmlns': Strophe.NS.CHATSTATES
  28856. }).up();
  28857. if (message.get('is_spoiler')) {
  28858. if (message.get('spoiler_hint')) {
  28859. stanza.c('spoiler', {
  28860. 'xmlns': Strophe.NS.SPOILER
  28861. }, message.get('spoiler_hint')).up();
  28862. } else {
  28863. stanza.c('spoiler', {
  28864. 'xmlns': Strophe.NS.SPOILER
  28865. }).up();
  28866. }
  28867. }
  28868. (message.get('references') || []).forEach(function (reference) {
  28869. var attrs = {
  28870. 'xmlns': Strophe.NS.REFERENCE,
  28871. 'begin': reference.begin,
  28872. 'end': reference.end,
  28873. 'type': reference.type
  28874. };
  28875. if (reference.uri) {
  28876. attrs.uri = reference.uri;
  28877. }
  28878. stanza.c('reference', attrs).up();
  28879. });
  28880. if (message.get('file')) {
  28881. stanza.c('x', {
  28882. 'xmlns': Strophe.NS.OUTOFBAND
  28883. }).c('url').t(message.get('message')).up();
  28884. }
  28885. if (message.get('edited')) {
  28886. stanza.c('replace', {
  28887. 'xmlns': Strophe.NS.MESSAGE_CORRECT,
  28888. 'id': message.get('msgid')
  28889. }).up();
  28890. }
  28891. return stanza;
  28892. },
  28893. sendMessageStanza: function sendMessageStanza(stanza) {
  28894. _converse.connection.send(stanza);
  28895. if (_converse.forward_messages) {
  28896. // Forward the message, so that other connected resources are also aware of it.
  28897. _converse.connection.send($msg({
  28898. 'to': _converse.bare_jid,
  28899. 'type': this.get('message_type')
  28900. }).c('forwarded', {
  28901. 'xmlns': Strophe.NS.FORWARD
  28902. }).c('delay', {
  28903. 'xmns': Strophe.NS.DELAY,
  28904. 'stamp': moment().format()
  28905. }).up().cnode(stanza.tree()));
  28906. }
  28907. },
  28908. getOutgoingMessageAttributes: function getOutgoingMessageAttributes(text, spoiler_hint) {
  28909. var is_spoiler = this.get('composing_spoiler');
  28910. return _.extend(this.toJSON(), {
  28911. 'id': _converse.connection.getUniqueId(),
  28912. 'fullname': _converse.xmppstatus.get('fullname'),
  28913. 'from': _converse.bare_jid,
  28914. 'sender': 'me',
  28915. 'time': moment().format(),
  28916. 'message': text ? u.httpToGeoUri(u.shortnameToUnicode(text), _converse) : undefined,
  28917. 'is_spoiler': is_spoiler,
  28918. 'spoiler_hint': is_spoiler ? spoiler_hint : undefined,
  28919. 'type': this.get('message_type')
  28920. });
  28921. },
  28922. sendMessage: function sendMessage(attrs) {
  28923. /* Responsible for sending off a text message.
  28924. *
  28925. * Parameters:
  28926. * (Message) message - The chat message
  28927. */
  28928. var message = this.messages.findWhere('correcting');
  28929. if (message) {
  28930. var older_versions = message.get('older_versions') || [];
  28931. older_versions.push(message.get('message'));
  28932. message.save({
  28933. 'correcting': false,
  28934. 'edited': true,
  28935. 'message': attrs.message,
  28936. 'older_versions': older_versions,
  28937. 'references': attrs.references
  28938. });
  28939. } else {
  28940. message = this.messages.create(attrs);
  28941. }
  28942. return this.sendMessageStanza(this.createMessageStanza(message));
  28943. },
  28944. sendChatState: function sendChatState() {
  28945. /* Sends a message with the status of the user in this chat session
  28946. * as taken from the 'chat_state' attribute of the chat box.
  28947. * See XEP-0085 Chat State Notifications.
  28948. */
  28949. _converse.connection.send($msg({
  28950. 'to': this.get('jid'),
  28951. 'type': 'chat'
  28952. }).c(this.get('chat_state'), {
  28953. 'xmlns': Strophe.NS.CHATSTATES
  28954. }).up().c('no-store', {
  28955. 'xmlns': Strophe.NS.HINTS
  28956. }).up().c('no-permanent-store', {
  28957. 'xmlns': Strophe.NS.HINTS
  28958. }));
  28959. },
  28960. sendFiles: function sendFiles(files) {
  28961. var _this5 = this;
  28962. _converse.api.disco.supports(Strophe.NS.HTTPUPLOAD, _converse.domain).then(function (result) {
  28963. var item = result.pop(),
  28964. data = item.dataforms.where({
  28965. 'FORM_TYPE': {
  28966. 'value': Strophe.NS.HTTPUPLOAD,
  28967. 'type': "hidden"
  28968. }
  28969. }).pop(),
  28970. max_file_size = window.parseInt(_.get(data, 'attributes.max-file-size.value')),
  28971. slot_request_url = _.get(item, 'id');
  28972. if (!slot_request_url) {
  28973. _this5.messages.create({
  28974. 'message': __("Sorry, looks like file upload is not supported by your server."),
  28975. 'type': 'error'
  28976. });
  28977. return;
  28978. }
  28979. _.each(files, function (file) {
  28980. if (!window.isNaN(max_file_size) && window.parseInt(file.size) > max_file_size) {
  28981. return _this5.messages.create({
  28982. 'message': __('The size of your file, %1$s, exceeds the maximum allowed by your server, which is %2$s.', file.name, filesize(max_file_size)),
  28983. 'type': 'error'
  28984. });
  28985. } else {
  28986. _this5.messages.create(_.extend(_this5.getOutgoingMessageAttributes(), {
  28987. 'file': file,
  28988. 'progress': 0,
  28989. 'slot_request_url': slot_request_url
  28990. }));
  28991. }
  28992. });
  28993. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  28994. },
  28995. getReferencesFromStanza: function getReferencesFromStanza(stanza) {
  28996. var text = _.propertyOf(stanza.querySelector('body'))('textContent');
  28997. return sizzle("reference[xmlns=\"".concat(Strophe.NS.REFERENCE, "\"]"), stanza).map(function (ref) {
  28998. var begin = ref.getAttribute('begin'),
  28999. end = ref.getAttribute('end');
  29000. return {
  29001. 'begin': begin,
  29002. 'end': end,
  29003. 'type': ref.getAttribute('type'),
  29004. 'value': text.slice(begin, end),
  29005. 'uri': ref.getAttribute('uri')
  29006. };
  29007. });
  29008. },
  29009. getMessageAttributesFromStanza: function getMessageAttributesFromStanza(stanza, original_stanza) {
  29010. /* Parses a passed in message stanza and returns an object
  29011. * of attributes.
  29012. *
  29013. * Parameters:
  29014. * (XMLElement) stanza - The message stanza
  29015. * (XMLElement) delay - The <delay> node from the
  29016. * stanza, if there was one.
  29017. * (XMLElement) original_stanza - The original stanza,
  29018. * that contains the message stanza, if it was
  29019. * contained, otherwise it's the message stanza itself.
  29020. */
  29021. var archive = sizzle("result[xmlns=\"".concat(Strophe.NS.MAM, "\"]"), original_stanza).pop(),
  29022. spoiler = sizzle("spoiler[xmlns=\"".concat(Strophe.NS.SPOILER, "\"]"), original_stanza).pop(),
  29023. delay = sizzle("delay[xmlns=\"".concat(Strophe.NS.DELAY, "\"]"), original_stanza).pop(),
  29024. chat_state = stanza.getElementsByTagName(_converse.COMPOSING).length && _converse.COMPOSING || stanza.getElementsByTagName(_converse.PAUSED).length && _converse.PAUSED || stanza.getElementsByTagName(_converse.INACTIVE).length && _converse.INACTIVE || stanza.getElementsByTagName(_converse.ACTIVE).length && _converse.ACTIVE || stanza.getElementsByTagName(_converse.GONE).length && _converse.GONE;
  29025. var attrs = {
  29026. 'chat_state': chat_state,
  29027. 'is_archived': !_.isNil(archive),
  29028. 'is_delayed': !_.isNil(delay),
  29029. 'is_spoiler': !_.isNil(spoiler),
  29030. 'message': _converse.chatboxes.getMessageBody(stanza) || undefined,
  29031. 'references': this.getReferencesFromStanza(stanza),
  29032. 'msgid': stanza.getAttribute('id'),
  29033. 'time': delay ? delay.getAttribute('stamp') : moment().format(),
  29034. 'type': stanza.getAttribute('type')
  29035. };
  29036. if (attrs.type === 'groupchat') {
  29037. attrs.from = stanza.getAttribute('from');
  29038. attrs.nick = Strophe.unescapeNode(Strophe.getResourceFromJid(attrs.from));
  29039. attrs.sender = attrs.nick === this.get('nick') ? 'me' : 'them';
  29040. } else {
  29041. attrs.from = Strophe.getBareJidFromJid(stanza.getAttribute('from'));
  29042. if (attrs.from === _converse.bare_jid) {
  29043. attrs.sender = 'me';
  29044. attrs.fullname = _converse.xmppstatus.get('fullname');
  29045. } else {
  29046. attrs.sender = 'them';
  29047. attrs.fullname = this.get('fullname');
  29048. }
  29049. }
  29050. _.each(sizzle("x[xmlns=\"".concat(Strophe.NS.OUTOFBAND, "\"]"), stanza), function (xform) {
  29051. attrs['oob_url'] = xform.querySelector('url').textContent;
  29052. attrs['oob_desc'] = xform.querySelector('url').textContent;
  29053. });
  29054. if (spoiler) {
  29055. attrs.spoiler_hint = spoiler.textContent.length > 0 ? spoiler.textContent : '';
  29056. }
  29057. return attrs;
  29058. },
  29059. createMessage: function createMessage(message, original_stanza) {
  29060. /* Create a Backbone.Message object inside this chat box
  29061. * based on the identified message stanza.
  29062. */
  29063. var that = this;
  29064. function _create(attrs) {
  29065. var is_csn = u.isOnlyChatStateNotification(attrs);
  29066. if (is_csn && (attrs.is_delayed || attrs.type === 'groupchat' && Strophe.getResourceFromJid(attrs.from) == that.get('nick'))) {
  29067. // XXX: MUC leakage
  29068. // No need showing delayed or our own CSN messages
  29069. return;
  29070. } else if (!is_csn && !attrs.file && !attrs.message && !attrs.oob_url && attrs.type !== 'error') {
  29071. // TODO: handle <subject> messages (currently being done by ChatRoom)
  29072. return;
  29073. } else {
  29074. return that.messages.create(attrs);
  29075. }
  29076. }
  29077. var result = this.getMessageAttributesFromStanza(message, original_stanza);
  29078. if (typeof result.then === "function") {
  29079. return new Promise(function (resolve, reject) {
  29080. return result.then(function (attrs) {
  29081. return resolve(_create(attrs));
  29082. });
  29083. });
  29084. } else {
  29085. var _message = _create(result);
  29086. return Promise.resolve(_message);
  29087. }
  29088. },
  29089. isHidden: function isHidden() {
  29090. /* Returns a boolean to indicate whether a newly received
  29091. * message will be visible to the user or not.
  29092. */
  29093. return this.get('hidden') || this.get('minimized') || this.isScrolledUp() || _converse.windowState === 'hidden';
  29094. },
  29095. incrementUnreadMsgCounter: function incrementUnreadMsgCounter(message) {
  29096. /* Given a newly received message, update the unread counter if
  29097. * necessary.
  29098. */
  29099. if (!message) {
  29100. return;
  29101. }
  29102. if (_.isNil(message.get('message'))) {
  29103. return;
  29104. }
  29105. if (utils.isNewMessage(message) && this.isHidden()) {
  29106. this.save({
  29107. 'num_unread': this.get('num_unread') + 1
  29108. });
  29109. _converse.incrementMsgCounter();
  29110. }
  29111. },
  29112. clearUnreadMsgCounter: function clearUnreadMsgCounter() {
  29113. u.safeSave(this, {
  29114. 'num_unread': 0
  29115. });
  29116. },
  29117. isScrolledUp: function isScrolledUp() {
  29118. return this.get('scrolled', true);
  29119. }
  29120. });
  29121. _converse.ChatBoxes = Backbone.Collection.extend({
  29122. comparator: 'time_opened',
  29123. model: function model(attrs, options) {
  29124. return new _converse.ChatBox(attrs, options);
  29125. },
  29126. registerMessageHandler: function registerMessageHandler() {
  29127. var _this6 = this;
  29128. _converse.connection.addHandler(function (stanza) {
  29129. _this6.onMessage(stanza);
  29130. return true;
  29131. }, null, 'message', 'chat');
  29132. _converse.connection.addHandler(function (stanza) {
  29133. _this6.onErrorMessage(stanza);
  29134. return true;
  29135. }, null, 'message', 'error');
  29136. },
  29137. chatBoxMayBeShown: function chatBoxMayBeShown(chatbox) {
  29138. return true;
  29139. },
  29140. onChatBoxesFetched: function onChatBoxesFetched(collection) {
  29141. var _this7 = this;
  29142. /* Show chat boxes upon receiving them from sessionStorage */
  29143. collection.each(function (chatbox) {
  29144. if (_this7.chatBoxMayBeShown(chatbox)) {
  29145. chatbox.trigger('show');
  29146. }
  29147. });
  29148. _converse.emit('chatBoxesFetched');
  29149. },
  29150. onConnected: function onConnected() {
  29151. this.browserStorage = new Backbone.BrowserStorage.session("converse.chatboxes-".concat(_converse.bare_jid));
  29152. this.registerMessageHandler();
  29153. this.fetch({
  29154. 'add': true,
  29155. 'success': this.onChatBoxesFetched.bind(this)
  29156. });
  29157. },
  29158. onErrorMessage: function onErrorMessage(message) {
  29159. /* Handler method for all incoming error message stanzas
  29160. */
  29161. var from_jid = Strophe.getBareJidFromJid(message.getAttribute('from'));
  29162. if (utils.isSameBareJID(from_jid, _converse.bare_jid)) {
  29163. return true;
  29164. }
  29165. var chatbox = this.getChatBox(from_jid);
  29166. if (!chatbox) {
  29167. return true;
  29168. }
  29169. chatbox.createMessage(message, message);
  29170. return true;
  29171. },
  29172. getMessageBody: function getMessageBody(stanza) {
  29173. /* Given a message stanza, return the text contained in its body.
  29174. */
  29175. var type = stanza.getAttribute('type');
  29176. if (type === 'error') {
  29177. var error = stanza.querySelector('error');
  29178. return _.propertyOf(error.querySelector('text'))('textContent') || __('Sorry, an error occurred:') + ' ' + error.innerHTML;
  29179. } else {
  29180. return _.propertyOf(stanza.querySelector('body'))('textContent');
  29181. }
  29182. },
  29183. onMessage: function onMessage(stanza) {
  29184. /* Handler method for all incoming single-user chat "message"
  29185. * stanzas.
  29186. *
  29187. * Parameters:
  29188. * (XMLElement) stanza - The incoming message stanza
  29189. */
  29190. var to_jid = stanza.getAttribute('to');
  29191. var to_resource = Strophe.getResourceFromJid(to_jid);
  29192. if (_converse.filter_by_resource && to_resource && to_resource !== _converse.resource) {
  29193. _converse.log("onMessage: Ignoring incoming message intended for a different resource: ".concat(to_jid), Strophe.LogLevel.INFO);
  29194. return true;
  29195. } else if (utils.isHeadlineMessage(_converse, stanza)) {
  29196. // XXX: Ideally we wouldn't have to check for headline
  29197. // messages, but Prosody sends headline messages with the
  29198. // wrong type ('chat'), so we need to filter them out here.
  29199. _converse.log("onMessage: Ignoring incoming headline message sent with type 'chat' from JID: ".concat(stanza.getAttribute('from')), Strophe.LogLevel.INFO);
  29200. return true;
  29201. }
  29202. var from_jid = stanza.getAttribute('from');
  29203. var forwarded = stanza.querySelector('forwarded'),
  29204. original_stanza = stanza;
  29205. if (!_.isNull(forwarded)) {
  29206. var forwarded_message = forwarded.querySelector('message'),
  29207. forwarded_from = forwarded_message.getAttribute('from'),
  29208. is_carbon = !_.isNull(stanza.querySelector("received[xmlns=\"".concat(Strophe.NS.CARBONS, "\"]")));
  29209. if (is_carbon && Strophe.getBareJidFromJid(forwarded_from) !== from_jid) {
  29210. // Prevent message forging via carbons
  29211. // https://xmpp.org/extensions/xep-0280.html#security
  29212. return true;
  29213. }
  29214. stanza = forwarded_message;
  29215. from_jid = stanza.getAttribute('from');
  29216. to_jid = stanza.getAttribute('to');
  29217. }
  29218. var from_bare_jid = Strophe.getBareJidFromJid(from_jid),
  29219. from_resource = Strophe.getResourceFromJid(from_jid),
  29220. is_me = from_bare_jid === _converse.bare_jid;
  29221. var contact_jid;
  29222. if (is_me) {
  29223. // I am the sender, so this must be a forwarded message...
  29224. if (_.isNull(to_jid)) {
  29225. return _converse.log("Don't know how to handle message stanza without 'to' attribute. ".concat(stanza.outerHTML), Strophe.LogLevel.ERROR);
  29226. }
  29227. contact_jid = Strophe.getBareJidFromJid(to_jid);
  29228. } else {
  29229. contact_jid = from_bare_jid;
  29230. } // Get chat box, but only create a new one when the message has a body.
  29231. var attrs = {
  29232. 'fullname': _.get(_converse.api.contacts.get(contact_jid), 'attributes.fullname')
  29233. };
  29234. var chatbox = this.getChatBox(contact_jid, attrs, !_.isNull(stanza.querySelector('body')));
  29235. if (chatbox && !chatbox.handleMessageCorrection(stanza)) {
  29236. var msgid = stanza.getAttribute('id'),
  29237. message = msgid && chatbox.messages.findWhere({
  29238. msgid: msgid
  29239. });
  29240. if (!message) {
  29241. // Only create the message when we're sure it's not a duplicate
  29242. chatbox.createMessage(stanza, original_stanza).then(function (msg) {
  29243. return chatbox.incrementUnreadMsgCounter(msg);
  29244. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  29245. }
  29246. }
  29247. _converse.emit('message', {
  29248. 'stanza': original_stanza,
  29249. 'chatbox': chatbox
  29250. });
  29251. return true;
  29252. },
  29253. getChatBox: function getChatBox(jid) {
  29254. var attrs = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  29255. var create = arguments.length > 2 ? arguments[2] : undefined;
  29256. /* Returns a chat box or optionally return a newly
  29257. * created one if one doesn't exist.
  29258. *
  29259. * Parameters:
  29260. * (String) jid - The JID of the user whose chat box we want
  29261. * (Boolean) create - Should a new chat box be created if none exists?
  29262. * (Object) attrs - Optional chat box atributes.
  29263. */
  29264. if (_.isObject(jid)) {
  29265. create = attrs;
  29266. attrs = jid;
  29267. jid = attrs.jid;
  29268. }
  29269. jid = Strophe.getBareJidFromJid(jid.toLowerCase());
  29270. var chatbox = this.get(Strophe.getBareJidFromJid(jid));
  29271. if (!chatbox && create) {
  29272. _.extend(attrs, {
  29273. 'jid': jid,
  29274. 'id': jid
  29275. });
  29276. chatbox = this.create(attrs, {
  29277. 'error': function error(model, response) {
  29278. _converse.log(response.responseText);
  29279. }
  29280. });
  29281. }
  29282. return chatbox;
  29283. }
  29284. });
  29285. function autoJoinChats() {
  29286. /* Automatically join private chats, based on the
  29287. * "auto_join_private_chats" configuration setting.
  29288. */
  29289. _.each(_converse.auto_join_private_chats, function (jid) {
  29290. if (_converse.chatboxes.where({
  29291. 'jid': jid
  29292. }).length) {
  29293. return;
  29294. }
  29295. if (_.isString(jid)) {
  29296. _converse.api.chats.open(jid);
  29297. } else {
  29298. _converse.log('Invalid jid criteria specified for "auto_join_private_chats"', Strophe.LogLevel.ERROR);
  29299. }
  29300. });
  29301. _converse.emit('privateChatsAutoJoined');
  29302. }
  29303. /************************ BEGIN Event Handlers ************************/
  29304. _converse.on('chatBoxesFetched', autoJoinChats);
  29305. _converse.api.waitUntil('rosterContactsFetched').then(function () {
  29306. _converse.roster.on('add', function (contact) {
  29307. /* When a new contact is added, check if we already have a
  29308. * chatbox open for it, and if so attach it to the chatbox.
  29309. */
  29310. var chatbox = _converse.chatboxes.findWhere({
  29311. 'jid': contact.get('jid')
  29312. });
  29313. if (chatbox) {
  29314. chatbox.addRelatedContact(contact);
  29315. }
  29316. });
  29317. });
  29318. _converse.on('addClientFeatures', function () {
  29319. _converse.api.disco.own.features.add(Strophe.NS.MESSAGE_CORRECT);
  29320. _converse.api.disco.own.features.add(Strophe.NS.HTTPUPLOAD);
  29321. _converse.api.disco.own.features.add(Strophe.NS.OUTOFBAND);
  29322. });
  29323. _converse.api.listen.on('pluginsInitialized', function () {
  29324. _converse.chatboxes = new _converse.ChatBoxes();
  29325. _converse.emit('chatBoxesInitialized');
  29326. });
  29327. _converse.api.listen.on('presencesInitialized', function () {
  29328. return _converse.chatboxes.onConnected();
  29329. });
  29330. /************************ END Event Handlers ************************/
  29331. /************************ BEGIN API ************************/
  29332. _.extend(_converse.api, {
  29333. /**
  29334. * The "chats" namespace (used for one-on-one chats)
  29335. *
  29336. * @namespace _converse.api.chats
  29337. * @memberOf _converse.api
  29338. */
  29339. 'chats': {
  29340. /**
  29341. * @method _converse.api.chats.create
  29342. * @param {string|string[]} jid|jids An jid or array of jids
  29343. * @param {object} attrs An object containing configuration attributes.
  29344. */
  29345. 'create': function create(jids, attrs) {
  29346. if (_.isUndefined(jids)) {
  29347. _converse.log("chats.create: You need to provide at least one JID", Strophe.LogLevel.ERROR);
  29348. return null;
  29349. }
  29350. if (_.isString(jids)) {
  29351. if (attrs && !_.get(attrs, 'fullname')) {
  29352. attrs.fullname = _.get(_converse.api.contacts.get(jids), 'attributes.fullname');
  29353. }
  29354. var chatbox = _converse.chatboxes.getChatBox(jids, attrs, true);
  29355. if (_.isNil(chatbox)) {
  29356. _converse.log("Could not open chatbox for JID: " + jids, Strophe.LogLevel.ERROR);
  29357. return;
  29358. }
  29359. return chatbox;
  29360. }
  29361. return _.map(jids, function (jid) {
  29362. attrs.fullname = _.get(_converse.api.contacts.get(jid), 'attributes.fullname');
  29363. return _converse.chatboxes.getChatBox(jid, attrs, true).trigger('show');
  29364. });
  29365. },
  29366. /**
  29367. * Opens a new one-on-one chat.
  29368. *
  29369. * @method _converse.api.chats.open
  29370. * @param {String|string[]} name - e.g. 'buddy@example.com' or ['buddy1@example.com', 'buddy2@example.com']
  29371. * @returns {Promise} Promise which resolves with the Backbone.Model representing the chat.
  29372. *
  29373. * @example
  29374. * // To open a single chat, provide the JID of the contact you're chatting with in that chat:
  29375. * converse.plugins.add('myplugin', {
  29376. * initialize: function() {
  29377. * var _converse = this._converse;
  29378. * // Note, buddy@example.org must be in your contacts roster!
  29379. * _converse.api.chats.open('buddy@example.com').then((chat) => {
  29380. * // Now you can do something with the chat model
  29381. * });
  29382. * }
  29383. * });
  29384. *
  29385. * @example
  29386. * // To open an array of chats, provide an array of JIDs:
  29387. * converse.plugins.add('myplugin', {
  29388. * initialize: function () {
  29389. * var _converse = this._converse;
  29390. * // Note, these users must first be in your contacts roster!
  29391. * _converse.api.chats.open(['buddy1@example.com', 'buddy2@example.com']).then((chats) => {
  29392. * // Now you can do something with the chat models
  29393. * });
  29394. * }
  29395. * });
  29396. *
  29397. */
  29398. 'open': function open(jids, attrs) {
  29399. return new Promise(function (resolve, reject) {
  29400. Promise.all([_converse.api.waitUntil('rosterContactsFetched'), _converse.api.waitUntil('chatBoxesFetched')]).then(function () {
  29401. if (_.isUndefined(jids)) {
  29402. var err_msg = "chats.open: You need to provide at least one JID";
  29403. _converse.log(err_msg, Strophe.LogLevel.ERROR);
  29404. reject(new Error(err_msg));
  29405. } else if (_.isString(jids)) {
  29406. resolve(_converse.api.chats.create(jids, attrs).trigger('show'));
  29407. } else {
  29408. resolve(_.map(jids, function (jid) {
  29409. return _converse.api.chats.create(jid, attrs).trigger('show');
  29410. }));
  29411. }
  29412. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  29413. });
  29414. },
  29415. /**
  29416. * Returns a chat model. The chat should already be open.
  29417. *
  29418. * @method _converse.api.chats.get
  29419. * @param {String|string[]} name - e.g. 'buddy@example.com' or ['buddy1@example.com', 'buddy2@example.com']
  29420. * @returns {Backbone.Model}
  29421. *
  29422. * @example
  29423. * // To return a single chat, provide the JID of the contact you're chatting with in that chat:
  29424. * const model = _converse.api.chats.get('buddy@example.com');
  29425. *
  29426. * @example
  29427. * // To return an array of chats, provide an array of JIDs:
  29428. * const models = _converse.api.chats.get(['buddy1@example.com', 'buddy2@example.com']);
  29429. *
  29430. * @example
  29431. * // To return all open chats, call the method without any parameters::
  29432. * const models = _converse.api.chats.get();
  29433. *
  29434. */
  29435. 'get': function get(jids) {
  29436. if (_.isUndefined(jids)) {
  29437. var result = [];
  29438. _converse.chatboxes.each(function (chatbox) {
  29439. // FIXME: Leaky abstraction from MUC. We need to add a
  29440. // base type for chat boxes, and check for that.
  29441. if (chatbox.get('type') !== _converse.CHATROOMS_TYPE) {
  29442. result.push(chatbox);
  29443. }
  29444. });
  29445. return result;
  29446. } else if (_.isString(jids)) {
  29447. return _converse.chatboxes.getChatBox(jids);
  29448. }
  29449. return _.map(jids, _.partial(_converse.chatboxes.getChatBox.bind(_converse.chatboxes), _, {}, true));
  29450. }
  29451. }
  29452. });
  29453. /************************ END API ************************/
  29454. }
  29455. });
  29456. return converse;
  29457. });
  29458. /***/ }),
  29459. /***/ "./src/converse-chatboxviews.js":
  29460. /*!**************************************!*\
  29461. !*** ./src/converse-chatboxviews.js ***!
  29462. \**************************************/
  29463. /*! no static exports found */
  29464. /***/ (function(module, exports, __webpack_require__) {
  29465. "use strict";
  29466. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  29467. // Converse.js
  29468. // http://conversejs.org
  29469. //
  29470. // Copyright (c) 2012-2018, the Converse.js developers
  29471. // Licensed under the Mozilla Public License (MPLv2)
  29472. (function (root, factory) {
  29473. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! templates/chatboxes.html */ "./src/templates/chatboxes.html"), __webpack_require__(/*! converse-chatboxes */ "./src/converse-chatboxes.js"), __webpack_require__(/*! backbone.overview */ "backbone.overview")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  29474. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  29475. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  29476. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  29477. })(void 0, function (converse, tpl_chatboxes) {
  29478. "use strict";
  29479. var _converse$env = converse.env,
  29480. Backbone = _converse$env.Backbone,
  29481. _ = _converse$env._;
  29482. var AvatarMixin = {
  29483. renderAvatar: function renderAvatar() {
  29484. var canvas_el = this.el.querySelector('canvas');
  29485. if (_.isNull(canvas_el)) {
  29486. return;
  29487. }
  29488. var image_type = this.model.vcard.get('image_type'),
  29489. image = this.model.vcard.get('image'),
  29490. img_src = "data:" + image_type + ";base64," + image,
  29491. img = new Image();
  29492. img.onload = function () {
  29493. var ctx = canvas_el.getContext('2d'),
  29494. ratio = img.width / img.height;
  29495. ctx.clearRect(0, 0, canvas_el.width, canvas_el.height);
  29496. if (ratio < 1) {
  29497. var scaled_img_with = canvas_el.width * ratio,
  29498. x = Math.floor((canvas_el.width - scaled_img_with) / 2);
  29499. ctx.drawImage(img, x, 0, scaled_img_with, canvas_el.height);
  29500. } else {
  29501. ctx.drawImage(img, 0, 0, canvas_el.width, canvas_el.height * ratio);
  29502. }
  29503. };
  29504. img.src = img_src;
  29505. }
  29506. };
  29507. converse.plugins.add('converse-chatboxviews', {
  29508. dependencies: ["converse-chatboxes"],
  29509. overrides: {
  29510. // Overrides mentioned here will be picked up by converse.js's
  29511. // plugin architecture they will replace existing methods on the
  29512. // relevant objects or classes.
  29513. initStatus: function initStatus(reconnecting) {
  29514. var _converse = this.__super__._converse;
  29515. if (!reconnecting) {
  29516. _converse.chatboxviews.closeAllChatBoxes();
  29517. }
  29518. return this.__super__.initStatus.apply(this, arguments);
  29519. }
  29520. },
  29521. initialize: function initialize() {
  29522. /* The initialize function gets called as soon as the plugin is
  29523. * loaded by converse.js's plugin machinery.
  29524. */
  29525. var _converse = this._converse,
  29526. __ = _converse.__;
  29527. _converse.api.promises.add(['chatBoxViewsInitialized']);
  29528. _converse.ViewWithAvatar = Backbone.NativeView.extend(AvatarMixin);
  29529. _converse.VDOMViewWithAvatar = Backbone.VDOMView.extend(AvatarMixin);
  29530. _converse.ChatBoxViews = Backbone.Overview.extend({
  29531. _ensureElement: function _ensureElement() {
  29532. /* Override method from backbone.js
  29533. * If the #conversejs element doesn't exist, create it.
  29534. */
  29535. if (!this.el) {
  29536. var el = _converse.root.querySelector('#conversejs');
  29537. if (_.isNull(el)) {
  29538. el = document.createElement('div');
  29539. el.setAttribute('id', 'conversejs');
  29540. var body = _converse.root.querySelector('body');
  29541. if (body) {
  29542. body.appendChild(el);
  29543. } else {
  29544. // Perhaps inside a web component?
  29545. _converse.root.appendChild(el);
  29546. }
  29547. }
  29548. el.innerHTML = '';
  29549. this.setElement(el, false);
  29550. } else {
  29551. this.setElement(_.result(this, 'el'), false);
  29552. }
  29553. },
  29554. initialize: function initialize() {
  29555. this.model.on("destroy", this.removeChat, this);
  29556. this.el.classList.add("converse-".concat(_converse.view_mode));
  29557. this.render();
  29558. },
  29559. render: function render() {
  29560. try {
  29561. this.el.innerHTML = tpl_chatboxes();
  29562. } catch (e) {
  29563. this._ensureElement();
  29564. this.el.innerHTML = tpl_chatboxes();
  29565. }
  29566. this.row_el = this.el.querySelector('.row');
  29567. },
  29568. insertRowColumn: function insertRowColumn(el) {
  29569. /* Add a new DOM element (likely a chat box) into the
  29570. * the row managed by this overview.
  29571. */
  29572. this.row_el.insertAdjacentElement('afterBegin', el);
  29573. },
  29574. removeChat: function removeChat(item) {
  29575. this.remove(item.get('id'));
  29576. },
  29577. closeAllChatBoxes: function closeAllChatBoxes() {
  29578. /* This method gets overridden in src/converse-controlbox.js if
  29579. * the controlbox plugin is active.
  29580. */
  29581. this.each(function (view) {
  29582. view.close();
  29583. });
  29584. return this;
  29585. },
  29586. chatBoxMayBeShown: function chatBoxMayBeShown(chatbox) {
  29587. return this.model.chatBoxMayBeShown(chatbox);
  29588. }
  29589. });
  29590. /************************ BEGIN Event Handlers ************************/
  29591. _converse.api.waitUntil('rosterContactsFetched').then(function () {
  29592. _converse.roster.on('add', function (contact) {
  29593. /* When a new contact is added, check if we already have a
  29594. * chatbox open for it, and if so attach it to the chatbox.
  29595. */
  29596. var chatbox = _converse.chatboxes.findWhere({
  29597. 'jid': contact.get('jid')
  29598. });
  29599. if (chatbox) {
  29600. chatbox.addRelatedContact(contact);
  29601. }
  29602. });
  29603. });
  29604. _converse.api.listen.on('chatBoxesInitialized', function () {
  29605. _converse.chatboxviews = new _converse.ChatBoxViews({
  29606. 'model': _converse.chatboxes
  29607. });
  29608. _converse.emit('chatBoxViewsInitialized');
  29609. });
  29610. _converse.api.listen.on('clearSession', function () {
  29611. return _converse.chatboxviews.closeAllChatBoxes();
  29612. });
  29613. /************************ END Event Handlers ************************/
  29614. }
  29615. });
  29616. return converse;
  29617. });
  29618. /***/ }),
  29619. /***/ "./src/converse-chatview.js":
  29620. /*!**********************************!*\
  29621. !*** ./src/converse-chatview.js ***!
  29622. \**********************************/
  29623. /*! no static exports found */
  29624. /***/ (function(module, exports, __webpack_require__) {
  29625. "use strict";
  29626. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  29627. // Converse.js
  29628. // http://conversejs.org
  29629. //
  29630. // Copyright (c) 2012-2018, the Converse.js developers
  29631. // Licensed under the Mozilla Public License (MPLv2)
  29632. (function (root, factory) {
  29633. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! utils/emoji */ "./src/utils/emoji.js"), __webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! bootstrap */ "./node_modules/bootstrap.native/dist/bootstrap-native-v4.js"), __webpack_require__(/*! twemoji */ "./node_modules/twemoji/2/esm.js"), __webpack_require__(/*! xss */ "./node_modules/xss/dist/xss.js"), __webpack_require__(/*! templates/chatbox.html */ "./src/templates/chatbox.html"), __webpack_require__(/*! templates/chatbox_head.html */ "./src/templates/chatbox_head.html"), __webpack_require__(/*! templates/chatbox_message_form.html */ "./src/templates/chatbox_message_form.html"), __webpack_require__(/*! templates/emojis.html */ "./src/templates/emojis.html"), __webpack_require__(/*! templates/error_message.html */ "./src/templates/error_message.html"), __webpack_require__(/*! templates/help_message.html */ "./src/templates/help_message.html"), __webpack_require__(/*! templates/info.html */ "./src/templates/info.html"), __webpack_require__(/*! templates/new_day.html */ "./src/templates/new_day.html"), __webpack_require__(/*! templates/user_details_modal.html */ "./src/templates/user_details_modal.html"), __webpack_require__(/*! templates/toolbar_fileupload.html */ "./src/templates/toolbar_fileupload.html"), __webpack_require__(/*! templates/spinner.html */ "./src/templates/spinner.html"), __webpack_require__(/*! templates/spoiler_button.html */ "./src/templates/spoiler_button.html"), __webpack_require__(/*! templates/status_message.html */ "./src/templates/status_message.html"), __webpack_require__(/*! templates/toolbar.html */ "./src/templates/toolbar.html"), __webpack_require__(/*! converse-modal */ "./src/converse-modal.js"), __webpack_require__(/*! converse-chatboxviews */ "./src/converse-chatboxviews.js"), __webpack_require__(/*! converse-message-view */ "./src/converse-message-view.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  29634. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  29635. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  29636. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  29637. })(void 0, function (u, converse, bootstrap, twemoji, xss, tpl_chatbox, tpl_chatbox_head, tpl_chatbox_message_form, tpl_emojis, tpl_error_message, tpl_help_message, tpl_info, tpl_new_day, tpl_user_details_modal, tpl_toolbar_fileupload, tpl_spinner, tpl_spoiler_button, tpl_status_message, tpl_toolbar) {
  29638. "use strict";
  29639. var _converse$env = converse.env,
  29640. $msg = _converse$env.$msg,
  29641. Backbone = _converse$env.Backbone,
  29642. Promise = _converse$env.Promise,
  29643. Strophe = _converse$env.Strophe,
  29644. _ = _converse$env._,
  29645. b64_sha1 = _converse$env.b64_sha1,
  29646. f = _converse$env.f,
  29647. sizzle = _converse$env.sizzle,
  29648. moment = _converse$env.moment;
  29649. converse.plugins.add('converse-chatview', {
  29650. /* Plugin dependencies are other plugins which might be
  29651. * overridden or relied upon, and therefore need to be loaded before
  29652. * this plugin.
  29653. *
  29654. * If the setting "strict_plugin_dependencies" is set to true,
  29655. * an error will be raised if the plugin is not found. By default it's
  29656. * false, which means these plugins are only loaded opportunistically.
  29657. *
  29658. * NB: These plugins need to have already been loaded via require.js.
  29659. */
  29660. dependencies: ["converse-chatboxviews", "converse-disco", "converse-message-view", "converse-modal"],
  29661. initialize: function initialize() {
  29662. /* The initialize function gets called as soon as the plugin is
  29663. * loaded by converse.js's plugin machinery.
  29664. */
  29665. var _converse = this._converse,
  29666. __ = _converse.__;
  29667. _converse.api.settings.update({
  29668. 'emoji_image_path': twemoji.default.base,
  29669. 'show_send_button': false,
  29670. 'show_toolbar': true,
  29671. 'time_format': 'HH:mm',
  29672. 'use_system_emojis': true,
  29673. 'visible_toolbar_buttons': {
  29674. 'call': false,
  29675. 'clear': true,
  29676. 'emoji': true,
  29677. 'spoiler': true
  29678. }
  29679. });
  29680. twemoji.default.base = _converse.emoji_image_path;
  29681. function onWindowStateChanged(data) {
  29682. if (_converse.chatboxviews) {
  29683. _converse.chatboxviews.each(function (view) {
  29684. return view.onWindowStateChanged(data.state);
  29685. });
  29686. }
  29687. }
  29688. _converse.api.listen.on('windowStateChanged', onWindowStateChanged);
  29689. _converse.EmojiPicker = Backbone.Model.extend({
  29690. defaults: {
  29691. 'current_category': 'people',
  29692. 'current_skintone': '',
  29693. 'scroll_position': 0
  29694. }
  29695. });
  29696. _converse.EmojiPickerView = Backbone.VDOMView.extend({
  29697. className: 'emoji-picker-container',
  29698. events: {
  29699. 'click .emoji-category-picker li.emoji-category': 'chooseCategory',
  29700. 'click .emoji-skintone-picker li.emoji-skintone': 'chooseSkinTone'
  29701. },
  29702. initialize: function initialize() {
  29703. this.model.on('change:current_skintone', this.render, this);
  29704. this.model.on('change:current_category', this.render, this);
  29705. },
  29706. toHTML: function toHTML() {
  29707. return tpl_emojis(_.extend(this.model.toJSON(), {
  29708. '_': _,
  29709. 'transform': u.getEmojiRenderer(_converse),
  29710. 'emojis_by_category': u.getEmojisByCategory(_converse),
  29711. 'toned_emojis': u.getTonedEmojis(_converse),
  29712. 'skintones': ['tone1', 'tone2', 'tone3', 'tone4', 'tone5'],
  29713. 'shouldBeHidden': this.shouldBeHidden
  29714. }));
  29715. },
  29716. shouldBeHidden: function shouldBeHidden(shortname, current_skintone, toned_emojis) {
  29717. /* Helper method for the template which decides whether an
  29718. * emoji should be hidden, based on which skin tone is
  29719. * currently being applied.
  29720. */
  29721. if (_.includes(shortname, '_tone')) {
  29722. if (!current_skintone || !_.includes(shortname, current_skintone)) {
  29723. return true;
  29724. }
  29725. } else {
  29726. if (current_skintone && _.includes(toned_emojis, shortname)) {
  29727. return true;
  29728. }
  29729. }
  29730. return false;
  29731. },
  29732. chooseSkinTone: function chooseSkinTone(ev) {
  29733. ev.preventDefault();
  29734. ev.stopPropagation();
  29735. var target = ev.target.nodeName === 'IMG' ? ev.target.parentElement : ev.target;
  29736. var skintone = target.getAttribute("data-skintone").trim();
  29737. if (this.model.get('current_skintone') === skintone) {
  29738. this.model.save({
  29739. 'current_skintone': ''
  29740. });
  29741. } else {
  29742. this.model.save({
  29743. 'current_skintone': skintone
  29744. });
  29745. }
  29746. },
  29747. chooseCategory: function chooseCategory(ev) {
  29748. ev.preventDefault();
  29749. ev.stopPropagation();
  29750. var target = ev.target.nodeName === 'IMG' ? ev.target.parentElement : ev.target;
  29751. var category = target.getAttribute("data-category").trim();
  29752. this.model.save({
  29753. 'current_category': category,
  29754. 'scroll_position': 0
  29755. });
  29756. }
  29757. });
  29758. _converse.ChatBoxHeading = _converse.ViewWithAvatar.extend({
  29759. initialize: function initialize() {
  29760. this.model.on('change:status', this.onStatusMessageChanged, this);
  29761. this.model.vcard.on('change', this.render, this);
  29762. },
  29763. render: function render() {
  29764. this.el.innerHTML = tpl_chatbox_head(_.extend(this.model.vcard.toJSON(), this.model.toJSON(), {
  29765. '_converse': _converse,
  29766. 'info_close': __('Close this chat box')
  29767. }));
  29768. this.renderAvatar();
  29769. return this;
  29770. },
  29771. onStatusMessageChanged: function onStatusMessageChanged(item) {
  29772. this.render();
  29773. _converse.emit('contactStatusMessageChanged', {
  29774. 'contact': item.attributes,
  29775. 'message': item.get('status')
  29776. });
  29777. }
  29778. });
  29779. _converse.UserDetailsModal = _converse.BootstrapModal.extend({
  29780. events: {
  29781. 'click button.remove-contact': 'removeContact',
  29782. 'click button.refresh-contact': 'refreshContact',
  29783. 'click .fingerprint-trust .btn input': 'toggleDeviceTrust'
  29784. },
  29785. initialize: function initialize() {
  29786. _converse.BootstrapModal.prototype.initialize.apply(this, arguments);
  29787. this.model.on('contactAdded', this.registerContactEventHandlers, this);
  29788. this.model.on('change', this.render, this);
  29789. this.registerContactEventHandlers();
  29790. _converse.emit('userDetailsModalInitialized', this.model);
  29791. },
  29792. toHTML: function toHTML() {
  29793. return tpl_user_details_modal(_.extend(this.model.toJSON(), this.model.vcard.toJSON(), {
  29794. '_': _,
  29795. '__': __,
  29796. 'view': this,
  29797. '_converse': _converse,
  29798. 'allow_contact_removal': _converse.allow_contact_removal,
  29799. 'display_name': this.model.getDisplayName(),
  29800. 'is_roster_contact': !_.isUndefined(this.model.contact),
  29801. 'utils': u
  29802. }));
  29803. },
  29804. registerContactEventHandlers: function registerContactEventHandlers() {
  29805. var _this = this;
  29806. if (!_.isUndefined(this.model.contact)) {
  29807. this.model.contact.on('change', this.render, this);
  29808. this.model.contact.vcard.on('change', this.render, this);
  29809. this.model.contact.on('destroy', function () {
  29810. delete _this.model.contact;
  29811. _this.render();
  29812. });
  29813. }
  29814. },
  29815. refreshContact: function refreshContact(ev) {
  29816. if (ev && ev.preventDefault) {
  29817. ev.preventDefault();
  29818. }
  29819. var refresh_icon = this.el.querySelector('.fa-refresh');
  29820. u.addClass('fa-spin', refresh_icon);
  29821. _converse.api.vcard.update(this.model.contact.vcard, true).then(function () {
  29822. return u.removeClass('fa-spin', refresh_icon);
  29823. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  29824. },
  29825. removeContact: function removeContact(ev) {
  29826. var _this2 = this;
  29827. if (ev && ev.preventDefault) {
  29828. ev.preventDefault();
  29829. }
  29830. if (!_converse.allow_contact_removal) {
  29831. return;
  29832. }
  29833. var result = confirm(__("Are you sure you want to remove this contact?"));
  29834. if (result === true) {
  29835. this.modal.hide();
  29836. this.model.contact.removeFromRoster(function (iq) {
  29837. _this2.model.contact.destroy();
  29838. }, function (err) {
  29839. _converse.log(err, Strophe.LogLevel.ERROR);
  29840. _converse.api.alert.show(Strophe.LogLevel.ERROR, __('Error'), [__('Sorry, there was an error while trying to remove %1$s as a contact.', _this2.model.contact.getDisplayName())]);
  29841. });
  29842. }
  29843. }
  29844. });
  29845. _converse.ChatBoxView = Backbone.NativeView.extend({
  29846. length: 200,
  29847. className: 'chatbox hidden',
  29848. is_chatroom: false,
  29849. // Leaky abstraction from MUC
  29850. events: {
  29851. 'change input.fileupload': 'onFileSelection',
  29852. 'click .chat-msg__action-edit': 'onMessageEditButtonClicked',
  29853. 'click .chatbox-navback': 'showControlBox',
  29854. 'click .close-chatbox-button': 'close',
  29855. 'click .new-msgs-indicator': 'viewUnreadMessages',
  29856. 'click .send-button': 'onFormSubmitted',
  29857. 'click .show-user-details-modal': 'showUserDetailsModal',
  29858. 'click .spoiler-toggle': 'toggleSpoilerMessage',
  29859. 'click .toggle-call': 'toggleCall',
  29860. 'click .toggle-clear': 'clearMessages',
  29861. 'click .toggle-compose-spoiler': 'toggleComposeSpoilerMessage',
  29862. 'click .toggle-smiley ul.emoji-picker li': 'insertEmoji',
  29863. 'click .toggle-smiley': 'toggleEmojiMenu',
  29864. 'click .upload-file': 'toggleFileUpload',
  29865. 'input .chat-textarea': 'inputChanged',
  29866. 'keydown .chat-textarea': 'keyPressed'
  29867. },
  29868. initialize: function initialize() {
  29869. this.initDebounced();
  29870. this.model.messages.on('add', this.onMessageAdded, this);
  29871. this.model.messages.on('rendered', this.scrollDown, this);
  29872. this.model.on('show', this.show, this);
  29873. this.model.on('destroy', this.remove, this);
  29874. this.model.presence.on('change:show', this.onPresenceChanged, this);
  29875. this.model.on('showHelpMessages', this.showHelpMessages, this);
  29876. this.render();
  29877. this.fetchMessages();
  29878. _converse.emit('chatBoxOpened', this);
  29879. _converse.emit('chatBoxInitialized', this);
  29880. },
  29881. initDebounced: function initDebounced() {
  29882. this.scrollDown = _.debounce(this._scrollDown, 250);
  29883. this.markScrolled = _.debounce(this._markScrolled, 100);
  29884. this.show = _.debounce(this._show, 250, {
  29885. 'leading': true
  29886. });
  29887. },
  29888. render: function render() {
  29889. // XXX: Is this still needed?
  29890. this.el.setAttribute('id', this.model.get('box_id'));
  29891. this.el.innerHTML = tpl_chatbox(_.extend(this.model.toJSON(), {
  29892. unread_msgs: __('You have unread messages')
  29893. }));
  29894. this.content = this.el.querySelector('.chat-content');
  29895. this.renderMessageForm();
  29896. this.insertHeading();
  29897. return this;
  29898. },
  29899. renderToolbar: function renderToolbar(toolbar, options) {
  29900. if (!_converse.show_toolbar) {
  29901. return this;
  29902. }
  29903. toolbar = toolbar || tpl_toolbar;
  29904. options = _.assign(this.model.toJSON(), this.getToolbarOptions(options || {}));
  29905. this.el.querySelector('.chat-toolbar').innerHTML = toolbar(options);
  29906. this.addSpoilerButton(options);
  29907. this.addFileUploadButton();
  29908. _converse.emit('renderToolbar', this);
  29909. return this;
  29910. },
  29911. renderMessageForm: function renderMessageForm() {
  29912. var placeholder;
  29913. if (this.model.get('composing_spoiler')) {
  29914. placeholder = __('Hidden message');
  29915. } else {
  29916. placeholder = __('Message');
  29917. }
  29918. var form_container = this.el.querySelector('.message-form-container');
  29919. form_container.innerHTML = tpl_chatbox_message_form(_.extend(this.model.toJSON(), {
  29920. 'hint_value': _.get(this.el.querySelector('.spoiler-hint'), 'value'),
  29921. 'label_message': placeholder,
  29922. 'label_send': __('Send'),
  29923. 'label_spoiler_hint': __('Optional hint'),
  29924. 'message_value': _.get(this.el.querySelector('.chat-textarea'), 'value'),
  29925. 'show_send_button': _converse.show_send_button,
  29926. 'show_toolbar': _converse.show_toolbar,
  29927. 'unread_msgs': __('You have unread messages')
  29928. }));
  29929. this.renderToolbar();
  29930. },
  29931. showControlBox: function showControlBox() {
  29932. // Used in mobile view, to navigate back to the controlbox
  29933. var view = _converse.chatboxviews.get('controlbox');
  29934. view.show();
  29935. this.hide();
  29936. },
  29937. showUserDetailsModal: function showUserDetailsModal(ev) {
  29938. ev.preventDefault();
  29939. if (_.isUndefined(this.user_details_modal)) {
  29940. this.user_details_modal = new _converse.UserDetailsModal({
  29941. model: this.model
  29942. });
  29943. }
  29944. this.user_details_modal.show(ev);
  29945. },
  29946. toggleFileUpload: function toggleFileUpload(ev) {
  29947. this.el.querySelector('input.fileupload').click();
  29948. },
  29949. onFileSelection: function onFileSelection(evt) {
  29950. this.model.sendFiles(evt.target.files);
  29951. },
  29952. addFileUploadButton: function addFileUploadButton(options) {
  29953. var _this3 = this;
  29954. _converse.api.disco.supports(Strophe.NS.HTTPUPLOAD, _converse.domain).then(function (result) {
  29955. if (result.length) {
  29956. _this3.el.querySelector('.chat-toolbar').insertAdjacentHTML('beforeend', tpl_toolbar_fileupload({
  29957. 'tooltip_upload_file': __('Choose a file to send')
  29958. }));
  29959. }
  29960. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  29961. },
  29962. addSpoilerButton: function addSpoilerButton(options) {
  29963. var _this4 = this;
  29964. /* Asynchronously adds a button for writing spoiler
  29965. * messages, based on whether the contact's client supports
  29966. * it.
  29967. */
  29968. if (!options.show_spoiler_button || this.model.get('type') === 'chatroom') {
  29969. return;
  29970. }
  29971. var contact_jid = this.model.get('jid');
  29972. var resources = this.model.presence.get('resources');
  29973. if (_.isEmpty(resources)) {
  29974. return;
  29975. }
  29976. Promise.all(_.map(_.keys(resources), function (resource) {
  29977. return _converse.api.disco.supports(Strophe.NS.SPOILER, "".concat(contact_jid, "/").concat(resource));
  29978. })).then(function (results) {
  29979. if (_.filter(results, 'length').length) {
  29980. var html = tpl_spoiler_button(_this4.model.toJSON());
  29981. if (_converse.visible_toolbar_buttons.emoji) {
  29982. _this4.el.querySelector('.toggle-smiley').insertAdjacentHTML('afterEnd', html);
  29983. } else {
  29984. _this4.el.querySelector('.chat-toolbar').insertAdjacentHTML('afterBegin', html);
  29985. }
  29986. }
  29987. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  29988. },
  29989. insertHeading: function insertHeading() {
  29990. this.heading = new _converse.ChatBoxHeading({
  29991. 'model': this.model
  29992. });
  29993. this.heading.render();
  29994. this.heading.chatview = this;
  29995. if (!_.isUndefined(this.model.contact)) {
  29996. this.model.contact.on('destroy', this.heading.render, this);
  29997. }
  29998. var flyout = this.el.querySelector('.flyout');
  29999. flyout.insertBefore(this.heading.el, flyout.querySelector('.chat-body'));
  30000. return this;
  30001. },
  30002. getToolbarOptions: function getToolbarOptions(options) {
  30003. var label_toggle_spoiler;
  30004. if (this.model.get('composing_spoiler')) {
  30005. label_toggle_spoiler = __('Click to write as a normal (non-spoiler) message');
  30006. } else {
  30007. label_toggle_spoiler = __('Click to write your message as a spoiler');
  30008. }
  30009. return _.extend(options || {}, {
  30010. 'label_clear': __('Clear all messages'),
  30011. 'tooltip_insert_smiley': __('Insert emojis'),
  30012. 'tooltip_start_call': __('Start a call'),
  30013. 'label_toggle_spoiler': label_toggle_spoiler,
  30014. 'show_call_button': _converse.visible_toolbar_buttons.call,
  30015. 'show_spoiler_button': _converse.visible_toolbar_buttons.spoiler,
  30016. 'use_emoji': _converse.visible_toolbar_buttons.emoji
  30017. });
  30018. },
  30019. afterMessagesFetched: function afterMessagesFetched() {
  30020. this.insertIntoDOM();
  30021. this.scrollDown();
  30022. this.content.addEventListener('scroll', this.markScrolled.bind(this));
  30023. _converse.emit('afterMessagesFetched', this);
  30024. },
  30025. fetchMessages: function fetchMessages() {
  30026. this.model.messages.fetch({
  30027. 'add': true,
  30028. 'success': this.afterMessagesFetched.bind(this),
  30029. 'error': this.afterMessagesFetched.bind(this)
  30030. });
  30031. return this;
  30032. },
  30033. insertIntoDOM: function insertIntoDOM() {
  30034. /* This method gets overridden in src/converse-controlbox.js
  30035. * as well as src/converse-muc.js (if those plugins are
  30036. * enabled).
  30037. */
  30038. _converse.chatboxviews.insertRowColumn(this.el);
  30039. return this;
  30040. },
  30041. showChatEvent: function showChatEvent(message) {
  30042. var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
  30043. var isodate = moment().format();
  30044. this.content.insertAdjacentHTML('beforeend', tpl_info({
  30045. 'extra_classes': 'chat-event',
  30046. 'message': message,
  30047. 'isodate': isodate,
  30048. 'data': data
  30049. }));
  30050. this.insertDayIndicator(this.content.lastElementChild);
  30051. this.scrollDown();
  30052. return isodate;
  30053. },
  30054. showErrorMessage: function showErrorMessage(message) {
  30055. this.content.insertAdjacentHTML('beforeend', tpl_error_message({
  30056. 'message': message,
  30057. 'isodate': moment().format()
  30058. }));
  30059. this.scrollDown();
  30060. },
  30061. addSpinner: function addSpinner() {
  30062. var append = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
  30063. if (_.isNull(this.el.querySelector('.spinner'))) {
  30064. if (append) {
  30065. this.content.insertAdjacentHTML('beforeend', tpl_spinner());
  30066. this.scrollDown();
  30067. } else {
  30068. this.content.insertAdjacentHTML('afterbegin', tpl_spinner());
  30069. }
  30070. }
  30071. },
  30072. clearSpinner: function clearSpinner() {
  30073. _.each(this.content.querySelectorAll('span.spinner'), function (el) {
  30074. return el.parentNode.removeChild(el);
  30075. });
  30076. },
  30077. insertDayIndicator: function insertDayIndicator(next_msg_el) {
  30078. /* Inserts an indicator into the chat area, showing the
  30079. * day as given by the passed in date.
  30080. *
  30081. * The indicator is only inserted if necessary.
  30082. *
  30083. * Parameters:
  30084. * (HTMLElement) next_msg_el - The message element before
  30085. * which the day indicator element must be inserted.
  30086. * This element must have a "data-isodate" attribute
  30087. * which specifies its creation date.
  30088. */
  30089. var prev_msg_el = u.getPreviousElement(next_msg_el, ".message:not(.chat-state-notification)"),
  30090. prev_msg_date = _.isNull(prev_msg_el) ? null : prev_msg_el.getAttribute('data-isodate'),
  30091. next_msg_date = next_msg_el.getAttribute('data-isodate');
  30092. if (_.isNull(prev_msg_date) || moment(next_msg_date).isAfter(prev_msg_date, 'day')) {
  30093. var day_date = moment(next_msg_date).startOf('day');
  30094. next_msg_el.insertAdjacentHTML('beforeBegin', tpl_new_day({
  30095. 'isodate': day_date.format(),
  30096. 'datestring': day_date.format("dddd MMM Do YYYY")
  30097. }));
  30098. }
  30099. },
  30100. getLastMessageDate: function getLastMessageDate(cutoff) {
  30101. /* Return the ISO8601 format date of the latest message.
  30102. *
  30103. * Parameters:
  30104. * (Object) cutoff: Moment Date cutoff date. The last
  30105. * message received cutoff this date will be returned.
  30106. */
  30107. var first_msg = u.getFirstChildElement(this.content, '.message:not(.chat-state-notification)'),
  30108. oldest_date = first_msg ? first_msg.getAttribute('data-isodate') : null;
  30109. if (!_.isNull(oldest_date) && moment(oldest_date).isAfter(cutoff)) {
  30110. return null;
  30111. }
  30112. var last_msg = u.getLastChildElement(this.content, '.message:not(.chat-state-notification)'),
  30113. most_recent_date = last_msg ? last_msg.getAttribute('data-isodate') : null;
  30114. if (_.isNull(most_recent_date) || moment(most_recent_date).isBefore(cutoff)) {
  30115. return most_recent_date;
  30116. }
  30117. /* XXX: We avoid .chat-state-notification messages, since they are
  30118. * temporary and get removed once a new element is
  30119. * inserted into the chat area, so we don't query for
  30120. * them here, otherwise we get a null reference later
  30121. * upon element insertion.
  30122. */
  30123. var msg_dates = _.invokeMap(sizzle('.message:not(.chat-state-notification)', this.content), Element.prototype.getAttribute, 'data-isodate');
  30124. if (_.isObject(cutoff)) {
  30125. cutoff = cutoff.format();
  30126. }
  30127. msg_dates.push(cutoff);
  30128. msg_dates.sort();
  30129. var idx = msg_dates.lastIndexOf(cutoff);
  30130. if (idx === 0) {
  30131. return null;
  30132. } else {
  30133. return msg_dates[idx - 1];
  30134. }
  30135. },
  30136. setScrollPosition: function setScrollPosition(message_el) {
  30137. /* Given a newly inserted message, determine whether we
  30138. * should keep the scrollbar in place (so as to not scroll
  30139. * up when using infinite scroll).
  30140. */
  30141. if (this.model.get('scrolled')) {
  30142. var next_msg_el = u.getNextElement(message_el, ".chat-msg");
  30143. if (next_msg_el) {
  30144. // The currently received message is not new, there
  30145. // are newer messages after it. So let's see if we
  30146. // should maintain our current scroll position.
  30147. if (this.content.scrollTop === 0 || this.model.get('top_visible_message')) {
  30148. var top_visible_message = this.model.get('top_visible_message') || next_msg_el;
  30149. this.model.set('top_visible_message', top_visible_message);
  30150. this.content.scrollTop = top_visible_message.offsetTop - 30;
  30151. }
  30152. }
  30153. } else {
  30154. this.scrollDown();
  30155. }
  30156. },
  30157. showHelpMessages: function showHelpMessages(msgs, type, spinner) {
  30158. var _this5 = this;
  30159. _.each(msgs, function (msg) {
  30160. _this5.content.insertAdjacentHTML('beforeend', tpl_help_message({
  30161. 'isodate': moment().format(),
  30162. 'type': type,
  30163. 'message': xss.filterXSS(msg, {
  30164. 'whiteList': {
  30165. 'strong': []
  30166. }
  30167. })
  30168. }));
  30169. });
  30170. if (spinner === true) {
  30171. this.addSpinner();
  30172. } else if (spinner === false) {
  30173. this.clearSpinner();
  30174. }
  30175. return this.scrollDown();
  30176. },
  30177. clearChatStateNotification: function clearChatStateNotification(message, isodate) {
  30178. if (isodate) {
  30179. _.each(sizzle(".chat-state-notification[data-csn=\"".concat(message.get('from'), "\"][data-isodate=\"").concat(isodate, "\"]"), this.content), u.removeElement);
  30180. } else {
  30181. _.each(sizzle(".chat-state-notification[data-csn=\"".concat(message.get('from'), "\"]"), this.content), u.removeElement);
  30182. }
  30183. },
  30184. shouldShowOnTextMessage: function shouldShowOnTextMessage() {
  30185. return !u.isVisible(this.el);
  30186. },
  30187. insertMessage: function insertMessage(view) {
  30188. /* Given a view representing a message, insert it into the
  30189. * content area of the chat box.
  30190. *
  30191. * Parameters:
  30192. * (Backbone.View) message: The message Backbone.View
  30193. */
  30194. if (view.model.get('type') === 'error') {
  30195. var previous_msg_el = this.content.querySelector("[data-msgid=\"".concat(view.model.get('msgid'), "\"]"));
  30196. if (previous_msg_el) {
  30197. return previous_msg_el.insertAdjacentElement('afterend', view.el);
  30198. }
  30199. }
  30200. var current_msg_date = moment(view.model.get('time')) || moment,
  30201. previous_msg_date = this.getLastMessageDate(current_msg_date);
  30202. if (_.isNull(previous_msg_date)) {
  30203. this.content.insertAdjacentElement('afterbegin', view.el);
  30204. } else {
  30205. var _previous_msg_el = sizzle("[data-isodate=\"".concat(previous_msg_date, "\"]:last"), this.content).pop();
  30206. if (view.model.get('type') === 'error' && u.hasClass('chat-error', _previous_msg_el) && _previous_msg_el.textContent === view.model.get('message')) {
  30207. // We don't show a duplicate error message
  30208. return;
  30209. }
  30210. _previous_msg_el.insertAdjacentElement('afterend', view.el);
  30211. this.markFollowups(view.el);
  30212. }
  30213. },
  30214. markFollowups: function markFollowups(el) {
  30215. /* Given a message element, determine wether it should be
  30216. * marked as a followup message to the previous element.
  30217. *
  30218. * Also determine whether the element following it is a
  30219. * followup message or not.
  30220. *
  30221. * Followup messages are subsequent ones written by the same
  30222. * author with no other conversation elements inbetween and
  30223. * posted within 10 minutes of one another.
  30224. *
  30225. * Parameters:
  30226. * (HTMLElement) el - The message element.
  30227. */
  30228. var from = el.getAttribute('data-from'),
  30229. previous_el = el.previousElementSibling,
  30230. date = moment(el.getAttribute('data-isodate')),
  30231. next_el = el.nextElementSibling;
  30232. if (!u.hasClass('chat-msg--action', el) && !u.hasClass('chat-msg--action', previous_el) && previous_el.getAttribute('data-from') === from && date.isBefore(moment(previous_el.getAttribute('data-isodate')).add(10, 'minutes')) && el.getAttribute('data-encrypted') === previous_el.getAttribute('data-encrypted')) {
  30233. u.addClass('chat-msg--followup', el);
  30234. }
  30235. if (!next_el) {
  30236. return;
  30237. }
  30238. if (!u.hasClass('chat-msg--action', 'el') && next_el.getAttribute('data-from') === from && moment(next_el.getAttribute('data-isodate')).isBefore(date.add(10, 'minutes')) && el.getAttribute('data-encrypted') === next_el.getAttribute('data-encrypted')) {
  30239. u.addClass('chat-msg--followup', next_el);
  30240. } else {
  30241. u.removeClass('chat-msg--followup', next_el);
  30242. }
  30243. },
  30244. showMessage: function showMessage(message) {
  30245. /* Inserts a chat message into the content area of the chat box.
  30246. *
  30247. * Will also insert a new day indicator if the message is on a
  30248. * different day.
  30249. *
  30250. * Parameters:
  30251. * (Backbone.Model) message: The message object
  30252. */
  30253. var view = new _converse.MessageView({
  30254. 'model': message
  30255. });
  30256. this.clearChatStateNotification(message);
  30257. this.insertMessage(view);
  30258. this.insertDayIndicator(view.el);
  30259. this.setScrollPosition(view.el);
  30260. if (u.isNewMessage(message)) {
  30261. if (message.get('sender') === 'me') {
  30262. // We remove the "scrolled" flag so that the chat area
  30263. // gets scrolled down. We always want to scroll down
  30264. // when the user writes a message as opposed to when a
  30265. // message is received.
  30266. this.model.set('scrolled', false);
  30267. } else if (this.model.get('scrolled', true)) {
  30268. this.showNewMessagesIndicator();
  30269. }
  30270. }
  30271. if (this.shouldShowOnTextMessage()) {
  30272. this.show();
  30273. } else {
  30274. this.scrollDown();
  30275. }
  30276. },
  30277. onMessageAdded: function onMessageAdded(message) {
  30278. /* Handler that gets called when a new message object is created.
  30279. *
  30280. * Parameters:
  30281. * (Object) message - The message Backbone object that was added.
  30282. */
  30283. this.showMessage(message);
  30284. if (message.get('correcting')) {
  30285. this.insertIntoTextArea(message.get('message'), true, true);
  30286. }
  30287. _converse.emit('messageAdded', {
  30288. 'message': message,
  30289. 'chatbox': this.model
  30290. });
  30291. },
  30292. parseMessageForCommands: function parseMessageForCommands(text) {
  30293. var match = text.replace(/^\s*/, "").match(/^\/(.*)\s*$/);
  30294. if (match) {
  30295. if (match[1] === "clear") {
  30296. this.clearMessages();
  30297. return true;
  30298. } else if (match[1] === "help") {
  30299. var msgs = ["<strong>/clear</strong>: ".concat(__('Remove messages')), "<strong>/me</strong>: ".concat(__('Write in the third person')), "<strong>/help</strong>: ".concat(__('Show this menu'))];
  30300. this.showHelpMessages(msgs);
  30301. return true;
  30302. }
  30303. }
  30304. },
  30305. onMessageSubmitted: function onMessageSubmitted(text, spoiler_hint) {
  30306. /* This method gets called once the user has typed a message
  30307. * and then pressed enter in a chat box.
  30308. *
  30309. * Parameters:
  30310. * (String) text - The chat message text.
  30311. * (String) spoiler_hint - A hint in case the message
  30312. * text is a hidden/spoiler message. See XEP-0382
  30313. */
  30314. if (!_converse.connection.authenticated) {
  30315. return this.showHelpMessages(['Sorry, the connection has been lost, ' + 'and your message could not be sent'], 'error');
  30316. }
  30317. if (this.parseMessageForCommands(text)) {
  30318. return;
  30319. }
  30320. var attrs = this.model.getOutgoingMessageAttributes(text, spoiler_hint);
  30321. this.model.sendMessage(attrs);
  30322. },
  30323. setChatState: function setChatState(state, options) {
  30324. /* Mutator for setting the chat state of this chat session.
  30325. * Handles clearing of any chat state notification timeouts and
  30326. * setting new ones if necessary.
  30327. * Timeouts are set when the state being set is COMPOSING or PAUSED.
  30328. * After the timeout, COMPOSING will become PAUSED and PAUSED will become INACTIVE.
  30329. * See XEP-0085 Chat State Notifications.
  30330. *
  30331. * Parameters:
  30332. * (string) state - The chat state (consts ACTIVE, COMPOSING, PAUSED, INACTIVE, GONE)
  30333. */
  30334. if (!_.isUndefined(this.chat_state_timeout)) {
  30335. window.clearTimeout(this.chat_state_timeout);
  30336. delete this.chat_state_timeout;
  30337. }
  30338. if (state === _converse.COMPOSING) {
  30339. this.chat_state_timeout = window.setTimeout(this.setChatState.bind(this), _converse.TIMEOUTS.PAUSED, _converse.PAUSED);
  30340. } else if (state === _converse.PAUSED) {
  30341. this.chat_state_timeout = window.setTimeout(this.setChatState.bind(this), _converse.TIMEOUTS.INACTIVE, _converse.INACTIVE);
  30342. }
  30343. this.model.set('chat_state', state, options);
  30344. return this;
  30345. },
  30346. onFormSubmitted: function onFormSubmitted(ev) {
  30347. ev.preventDefault();
  30348. var textarea = this.el.querySelector('.chat-textarea'),
  30349. message = textarea.value;
  30350. if (!message.replace(/\s/g, '').length) {
  30351. return;
  30352. }
  30353. var spoiler_hint;
  30354. if (this.model.get('composing_spoiler')) {
  30355. var hint_el = this.el.querySelector('form.sendXMPPMessage input.spoiler-hint');
  30356. spoiler_hint = hint_el.value;
  30357. hint_el.value = '';
  30358. }
  30359. textarea.value = '';
  30360. u.removeClass('correcting', textarea);
  30361. textarea.focus(); // Trigger input event, so that the textarea resizes
  30362. var event = document.createEvent('Event');
  30363. event.initEvent('input', true, true);
  30364. textarea.dispatchEvent(event);
  30365. this.onMessageSubmitted(message, spoiler_hint);
  30366. _converse.emit('messageSend', message); // Suppress events, otherwise superfluous CSN gets set
  30367. // immediately after the message, causing rate-limiting issues.
  30368. this.setChatState(_converse.ACTIVE, {
  30369. 'silent': true
  30370. });
  30371. },
  30372. keyPressed: function keyPressed(ev) {
  30373. /* Event handler for when a key is pressed in a chat box textarea.
  30374. */
  30375. if (ev.ctrlKey) {
  30376. // When ctrl is pressed, no chars are entered into the textarea.
  30377. return;
  30378. }
  30379. if (!ev.shiftKey && !ev.altKey) {
  30380. if (ev.keyCode === _converse.keycodes.FORWARD_SLASH) {
  30381. // Forward slash is used to run commands. Nothing to do here.
  30382. return;
  30383. } else if (ev.keyCode === _converse.keycodes.ESCAPE) {
  30384. return this.onEscapePressed(ev);
  30385. } else if (ev.keyCode === _converse.keycodes.ENTER) {
  30386. _.invoke(this.emoji_dropdown, 'toggle');
  30387. return this.onFormSubmitted(ev);
  30388. } else if (ev.keyCode === _converse.keycodes.UP_ARROW && !ev.target.selectionEnd) {
  30389. return this.editEarlierMessage();
  30390. } else if (ev.keyCode === _converse.keycodes.DOWN_ARROW && ev.target.selectionEnd === ev.target.value.length) {
  30391. return this.editLaterMessage();
  30392. }
  30393. }
  30394. if (_.includes([_converse.keycodes.SHIFT, _converse.keycodes.META, _converse.keycodes.META_RIGHT, _converse.keycodes.ESCAPE, _converse.keycodes.ALT], ev.keyCode)) {
  30395. return;
  30396. }
  30397. if (this.model.get('chat_state') !== _converse.COMPOSING) {
  30398. // Set chat state to composing if keyCode is not a forward-slash
  30399. // (which would imply an internal command and not a message).
  30400. this.setChatState(_converse.COMPOSING);
  30401. }
  30402. },
  30403. getOwnMessages: function getOwnMessages() {
  30404. return f(this.model.messages.filter({
  30405. 'sender': 'me'
  30406. }));
  30407. },
  30408. onEscapePressed: function onEscapePressed(ev) {
  30409. ev.preventDefault();
  30410. var idx = this.model.messages.findLastIndex('correcting'),
  30411. message = idx >= 0 ? this.model.messages.at(idx) : null;
  30412. if (message) {
  30413. message.save('correcting', false);
  30414. }
  30415. this.insertIntoTextArea('', true, false);
  30416. },
  30417. onMessageEditButtonClicked: function onMessageEditButtonClicked(ev) {
  30418. ev.preventDefault();
  30419. var idx = this.model.messages.findLastIndex('correcting'),
  30420. currently_correcting = idx >= 0 ? this.model.messages.at(idx) : null,
  30421. message_el = u.ancestor(ev.target, '.chat-msg'),
  30422. message = this.model.messages.findWhere({
  30423. 'msgid': message_el.getAttribute('data-msgid')
  30424. });
  30425. if (currently_correcting !== message) {
  30426. if (!_.isNil(currently_correcting)) {
  30427. currently_correcting.save('correcting', false);
  30428. }
  30429. message.save('correcting', true);
  30430. this.insertIntoTextArea(u.prefixMentions(message), true, true);
  30431. } else {
  30432. message.save('correcting', false);
  30433. this.insertIntoTextArea('', true, false);
  30434. }
  30435. },
  30436. editLaterMessage: function editLaterMessage() {
  30437. var message;
  30438. var idx = this.model.messages.findLastIndex('correcting');
  30439. if (idx >= 0) {
  30440. this.model.messages.at(idx).save('correcting', false);
  30441. while (idx < this.model.messages.length - 1) {
  30442. idx += 1;
  30443. var candidate = this.model.messages.at(idx);
  30444. if (candidate.get('sender') === 'me' && candidate.get('message')) {
  30445. message = candidate;
  30446. break;
  30447. }
  30448. }
  30449. }
  30450. if (message) {
  30451. this.insertIntoTextArea(message.get('message'), true, true);
  30452. message.save('correcting', true);
  30453. } else {
  30454. this.insertIntoTextArea('', true, false);
  30455. }
  30456. },
  30457. editEarlierMessage: function editEarlierMessage() {
  30458. var message;
  30459. var idx = this.model.messages.findLastIndex('correcting');
  30460. if (idx >= 0) {
  30461. this.model.messages.at(idx).save('correcting', false);
  30462. while (idx > 0) {
  30463. idx -= 1;
  30464. var candidate = this.model.messages.at(idx);
  30465. if (candidate.get('sender') === 'me' && candidate.get('message')) {
  30466. message = candidate;
  30467. break;
  30468. }
  30469. }
  30470. }
  30471. message = message || this.getOwnMessages().findLast(function (msg) {
  30472. return msg.get('message');
  30473. });
  30474. if (message) {
  30475. this.insertIntoTextArea(message.get('message'), true, true);
  30476. message.save('correcting', true);
  30477. }
  30478. },
  30479. inputChanged: function inputChanged(ev) {
  30480. ev.target.style.height = 'auto'; // Fixes weirdness
  30481. ev.target.style.height = ev.target.scrollHeight + 'px';
  30482. },
  30483. clearMessages: function clearMessages(ev) {
  30484. if (ev && ev.preventDefault) {
  30485. ev.preventDefault();
  30486. }
  30487. var result = confirm(__("Are you sure you want to clear the messages from this conversation?"));
  30488. if (result === true) {
  30489. this.content.innerHTML = '';
  30490. this.model.messages.reset();
  30491. this.model.messages.browserStorage._clear();
  30492. }
  30493. return this;
  30494. },
  30495. insertIntoTextArea: function insertIntoTextArea(value) {
  30496. var replace = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  30497. var correcting = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  30498. var textarea = this.el.querySelector('.chat-textarea');
  30499. if (correcting) {
  30500. u.addClass('correcting', textarea);
  30501. } else {
  30502. u.removeClass('correcting', textarea);
  30503. }
  30504. if (replace) {
  30505. textarea.value = '';
  30506. textarea.value = value;
  30507. } else {
  30508. var existing = textarea.value;
  30509. if (existing && existing[existing.length - 1] !== ' ') {
  30510. existing = existing + ' ';
  30511. }
  30512. textarea.value = '';
  30513. textarea.value = existing + value + ' ';
  30514. }
  30515. u.putCurserAtEnd(textarea);
  30516. },
  30517. createEmojiPicker: function createEmojiPicker() {
  30518. if (_.isUndefined(_converse.emojipicker)) {
  30519. var storage = _converse.config.get('storage'),
  30520. id = "converse.emoji-".concat(_converse.bare_jid);
  30521. _converse.emojipicker = new _converse.EmojiPicker({
  30522. 'id': id
  30523. });
  30524. _converse.emojipicker.browserStorage = new Backbone.BrowserStorage[storage](id);
  30525. _converse.emojipicker.fetch();
  30526. }
  30527. this.emoji_picker_view = new _converse.EmojiPickerView({
  30528. 'model': _converse.emojipicker
  30529. });
  30530. },
  30531. insertEmoji: function insertEmoji(ev) {
  30532. ev.preventDefault();
  30533. ev.stopPropagation();
  30534. var target = ev.target.nodeName === 'IMG' ? ev.target.parentElement : ev.target;
  30535. this.insertIntoTextArea(target.getAttribute('data-emoji'));
  30536. },
  30537. toggleEmojiMenu: function toggleEmojiMenu(ev) {
  30538. if (_.isUndefined(this.emoji_dropdown)) {
  30539. ev.stopPropagation();
  30540. this.createEmojiPicker();
  30541. this.insertEmojiPicker();
  30542. this.renderEmojiPicker();
  30543. var dropdown_el = this.el.querySelector('.toggle-smiley.dropup');
  30544. this.emoji_dropdown = new bootstrap.Dropdown(dropdown_el, true);
  30545. this.emoji_dropdown.toggle();
  30546. }
  30547. },
  30548. toggleCall: function toggleCall(ev) {
  30549. ev.stopPropagation();
  30550. _converse.emit('callButtonClicked', {
  30551. connection: _converse.connection,
  30552. model: this.model
  30553. });
  30554. },
  30555. toggleComposeSpoilerMessage: function toggleComposeSpoilerMessage() {
  30556. this.model.set('composing_spoiler', !this.model.get('composing_spoiler'));
  30557. this.renderMessageForm();
  30558. this.focus();
  30559. },
  30560. toggleSpoilerMessage: function toggleSpoilerMessage(ev) {
  30561. if (ev && ev.preventDefault) {
  30562. ev.preventDefault();
  30563. }
  30564. var toggle_el = ev.target,
  30565. icon_el = toggle_el.firstElementChild;
  30566. u.slideToggleElement(toggle_el.parentElement.parentElement.querySelector('.spoiler'));
  30567. if (toggle_el.getAttribute("data-toggle-state") == "closed") {
  30568. toggle_el.textContent = 'Show less';
  30569. icon_el.classList.remove("fa-eye");
  30570. icon_el.classList.add("fa-eye-slash");
  30571. toggle_el.insertAdjacentElement('afterBegin', icon_el);
  30572. toggle_el.setAttribute("data-toggle-state", "open");
  30573. } else {
  30574. toggle_el.textContent = 'Show more';
  30575. icon_el.classList.remove("fa-eye-slash");
  30576. icon_el.classList.add("fa-eye");
  30577. toggle_el.insertAdjacentElement('afterBegin', icon_el);
  30578. toggle_el.setAttribute("data-toggle-state", "closed");
  30579. }
  30580. },
  30581. onPresenceChanged: function onPresenceChanged(item) {
  30582. var show = item.get('show'),
  30583. fullname = this.model.getDisplayName();
  30584. var text;
  30585. if (u.isVisible(this.el)) {
  30586. if (show === 'offline') {
  30587. text = __('%1$s has gone offline', fullname);
  30588. } else if (show === 'away') {
  30589. text = __('%1$s has gone away', fullname);
  30590. } else if (show === 'dnd') {
  30591. text = __('%1$s is busy', fullname);
  30592. } else if (show === 'online') {
  30593. text = __('%1$s is online', fullname);
  30594. }
  30595. if (text) {
  30596. this.content.insertAdjacentHTML('beforeend', tpl_status_message({
  30597. 'message': text,
  30598. 'isodate': moment().format()
  30599. }));
  30600. this.scrollDown();
  30601. }
  30602. }
  30603. },
  30604. close: function close(ev) {
  30605. if (ev && ev.preventDefault) {
  30606. ev.preventDefault();
  30607. }
  30608. if (Backbone.history.getFragment() === "converse/chat?jid=" + this.model.get('jid')) {
  30609. _converse.router.navigate('');
  30610. }
  30611. if (_converse.connection.connected) {
  30612. // Immediately sending the chat state, because the
  30613. // model is going to be destroyed afterwards.
  30614. this.setChatState(_converse.INACTIVE);
  30615. this.model.sendChatState();
  30616. }
  30617. try {
  30618. this.model.destroy();
  30619. } catch (e) {
  30620. _converse.log(e, Strophe.LogLevel.ERROR);
  30621. }
  30622. this.remove();
  30623. _converse.emit('chatBoxClosed', this);
  30624. return this;
  30625. },
  30626. renderEmojiPicker: function renderEmojiPicker() {
  30627. this.emoji_picker_view.render();
  30628. },
  30629. insertEmojiPicker: function insertEmojiPicker() {
  30630. var picker_el = this.el.querySelector('.emoji-picker');
  30631. if (!_.isNull(picker_el)) {
  30632. picker_el.innerHTML = '';
  30633. picker_el.appendChild(this.emoji_picker_view.el);
  30634. }
  30635. },
  30636. focus: function focus() {
  30637. var textarea_el = this.el.querySelector('.chat-textarea');
  30638. if (!_.isNull(textarea_el)) {
  30639. textarea_el.focus();
  30640. _converse.emit('chatBoxFocused', this);
  30641. }
  30642. return this;
  30643. },
  30644. hide: function hide() {
  30645. this.el.classList.add('hidden');
  30646. return this;
  30647. },
  30648. afterShown: function afterShown() {
  30649. this.model.clearUnreadMsgCounter();
  30650. this.setChatState(_converse.ACTIVE);
  30651. this.scrollDown();
  30652. this.focus();
  30653. },
  30654. _show: function _show(f) {
  30655. /* Inner show method that gets debounced */
  30656. if (u.isVisible(this.el)) {
  30657. this.focus();
  30658. return;
  30659. }
  30660. u.fadeIn(this.el, _.bind(this.afterShown, this));
  30661. },
  30662. showNewMessagesIndicator: function showNewMessagesIndicator() {
  30663. u.showElement(this.el.querySelector('.new-msgs-indicator'));
  30664. },
  30665. hideNewMessagesIndicator: function hideNewMessagesIndicator() {
  30666. var new_msgs_indicator = this.el.querySelector('.new-msgs-indicator');
  30667. if (!_.isNull(new_msgs_indicator)) {
  30668. new_msgs_indicator.classList.add('hidden');
  30669. }
  30670. },
  30671. _markScrolled: function _markScrolled(ev) {
  30672. /* Called when the chat content is scrolled up or down.
  30673. * We want to record when the user has scrolled away from
  30674. * the bottom, so that we don't automatically scroll away
  30675. * from what the user is reading when new messages are
  30676. * received.
  30677. */
  30678. if (ev && ev.preventDefault) {
  30679. ev.preventDefault();
  30680. }
  30681. var scrolled = true;
  30682. var is_at_bottom = this.content.scrollTop + this.content.clientHeight >= this.content.scrollHeight - 62; // sigh...
  30683. if (is_at_bottom) {
  30684. scrolled = false;
  30685. this.onScrolledDown();
  30686. }
  30687. u.safeSave(this.model, {
  30688. 'scrolled': scrolled,
  30689. 'top_visible_message': null
  30690. });
  30691. },
  30692. viewUnreadMessages: function viewUnreadMessages() {
  30693. this.model.save({
  30694. 'scrolled': false,
  30695. 'top_visible_message': null
  30696. });
  30697. this.scrollDown();
  30698. },
  30699. _scrollDown: function _scrollDown() {
  30700. /* Inner method that gets debounced */
  30701. if (_.isUndefined(this.content)) {
  30702. return;
  30703. }
  30704. if (u.isVisible(this.content) && !this.model.get('scrolled')) {
  30705. this.content.scrollTop = this.content.scrollHeight;
  30706. }
  30707. },
  30708. onScrolledDown: function onScrolledDown() {
  30709. this.hideNewMessagesIndicator();
  30710. if (_converse.windowState !== 'hidden') {
  30711. this.model.clearUnreadMsgCounter();
  30712. }
  30713. _converse.emit('chatBoxScrolledDown', {
  30714. 'chatbox': this.model
  30715. });
  30716. },
  30717. onWindowStateChanged: function onWindowStateChanged(state) {
  30718. if (this.model.get('num_unread', 0) && !this.model.isHidden()) {
  30719. this.model.clearUnreadMsgCounter();
  30720. }
  30721. }
  30722. });
  30723. _converse.on('chatBoxViewsInitialized', function () {
  30724. var that = _converse.chatboxviews;
  30725. _converse.chatboxes.on('add', function (item) {
  30726. if (!that.get(item.get('id')) && item.get('type') === _converse.PRIVATE_CHAT_TYPE) {
  30727. that.add(item.get('id'), new _converse.ChatBoxView({
  30728. model: item
  30729. }));
  30730. }
  30731. });
  30732. });
  30733. _converse.on('connected', function () {
  30734. // Advertise that we support XEP-0382 Message Spoilers
  30735. _converse.api.disco.own.features.add(Strophe.NS.SPOILER);
  30736. });
  30737. /************************ BEGIN API ************************/
  30738. _.extend(_converse.api, {
  30739. /**
  30740. * The "chatview" namespace groups methods pertaining to views
  30741. * for one-on-one chats.
  30742. *
  30743. * @namespace _converse.api.chatviews
  30744. * @memberOf _converse.api
  30745. */
  30746. 'chatviews': {
  30747. /**
  30748. * Get the view of an already open chat.
  30749. *
  30750. * @method _converse.api.chatviews.get
  30751. * @returns {ChatBoxView} A [Backbone.View](http://backbonejs.org/#View) instance.
  30752. * The chat should already be open, otherwise `undefined` will be returned.
  30753. *
  30754. * @example
  30755. * // To return a single view, provide the JID of the contact:
  30756. * _converse.api.chatviews.get('buddy@example.com')
  30757. *
  30758. * @example
  30759. * // To return an array of views, provide an array of JIDs:
  30760. * _converse.api.chatviews.get(['buddy1@example.com', 'buddy2@example.com'])
  30761. */
  30762. 'get': function get(jids) {
  30763. if (_.isUndefined(jids)) {
  30764. _converse.log("chats.create: You need to provide at least one JID", Strophe.LogLevel.ERROR);
  30765. return null;
  30766. }
  30767. if (_.isString(jids)) {
  30768. return _converse.chatboxviews.get(jids);
  30769. }
  30770. return _.map(jids, function (jid) {
  30771. return _converse.chatboxviews.get(jids);
  30772. });
  30773. }
  30774. }
  30775. });
  30776. /************************ END API ************************/
  30777. }
  30778. });
  30779. return converse;
  30780. });
  30781. /***/ }),
  30782. /***/ "./src/converse-controlbox.js":
  30783. /*!************************************!*\
  30784. !*** ./src/converse-controlbox.js ***!
  30785. \************************************/
  30786. /*! no static exports found */
  30787. /***/ (function(module, exports, __webpack_require__) {
  30788. "use strict";
  30789. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  30790. // Converse.js (A browser based XMPP chat client)
  30791. // http://conversejs.org
  30792. //
  30793. // Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
  30794. // Licensed under the Mozilla Public License (MPLv2)
  30795. //
  30796. /*global define */
  30797. (function (root, factory) {
  30798. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! bootstrap */ "./node_modules/bootstrap.native/dist/bootstrap-native-v4.js"), __webpack_require__(/*! lodash.fp */ "./src/lodash.fp.js"), __webpack_require__(/*! templates/converse_brand_heading.html */ "./src/templates/converse_brand_heading.html"), __webpack_require__(/*! templates/controlbox.html */ "./src/templates/controlbox.html"), __webpack_require__(/*! templates/controlbox_toggle.html */ "./src/templates/controlbox_toggle.html"), __webpack_require__(/*! templates/login_panel.html */ "./src/templates/login_panel.html"), __webpack_require__(/*! converse-chatview */ "./src/converse-chatview.js"), __webpack_require__(/*! converse-rosterview */ "./src/converse-rosterview.js"), __webpack_require__(/*! converse-profile */ "./src/converse-profile.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  30799. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  30800. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  30801. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  30802. })(void 0, function (converse, bootstrap, fp, tpl_brand_heading, tpl_controlbox, tpl_controlbox_toggle, tpl_login_panel) {
  30803. "use strict";
  30804. var CHATBOX_TYPE = 'chatbox';
  30805. var _converse$env = converse.env,
  30806. Strophe = _converse$env.Strophe,
  30807. Backbone = _converse$env.Backbone,
  30808. Promise = _converse$env.Promise,
  30809. _ = _converse$env._,
  30810. moment = _converse$env.moment;
  30811. var u = converse.env.utils;
  30812. var CONNECTION_STATUS_CSS_CLASS = {
  30813. 'Error': 'error',
  30814. 'Connecting': 'info',
  30815. 'Connection failure': 'error',
  30816. 'Authenticating': 'info',
  30817. 'Authentication failure': 'error',
  30818. 'Connected': 'info',
  30819. 'Disconnected': 'error',
  30820. 'Disconnecting': 'warn',
  30821. 'Attached': 'info',
  30822. 'Redirect': 'info',
  30823. 'Reconnecting': 'warn'
  30824. };
  30825. var PRETTY_CONNECTION_STATUS = {
  30826. 0: 'Error',
  30827. 1: 'Connecting',
  30828. 2: 'Connection failure',
  30829. 3: 'Authenticating',
  30830. 4: 'Authentication failure',
  30831. 5: 'Connected',
  30832. 6: 'Disconnected',
  30833. 7: 'Disconnecting',
  30834. 8: 'Attached',
  30835. 9: 'Redirect',
  30836. 10: 'Reconnecting'
  30837. };
  30838. var REPORTABLE_STATUSES = [0, // ERROR'
  30839. 1, // CONNECTING
  30840. 2, // CONNFAIL
  30841. 3, // AUTHENTICATING
  30842. 4, // AUTHFAIL
  30843. 7, // DISCONNECTING
  30844. 10 // RECONNECTING
  30845. ];
  30846. converse.plugins.add('converse-controlbox', {
  30847. /* Plugin dependencies are other plugins which might be
  30848. * overridden or relied upon, and therefore need to be loaded before
  30849. * this plugin.
  30850. *
  30851. * If the setting "strict_plugin_dependencies" is set to true,
  30852. * an error will be raised if the plugin is not found. By default it's
  30853. * false, which means these plugins are only loaded opportunistically.
  30854. *
  30855. * NB: These plugins need to have already been loaded via require.js.
  30856. */
  30857. dependencies: ["converse-modal", "converse-chatboxes", "converse-rosterview", "converse-chatview"],
  30858. overrides: {
  30859. // Overrides mentioned here will be picked up by converse.js's
  30860. // plugin architecture they will replace existing methods on the
  30861. // relevant objects or classes.
  30862. //
  30863. // New functions which don't exist yet can also be added.
  30864. tearDown: function tearDown() {
  30865. this.__super__.tearDown.apply(this, arguments);
  30866. if (this.rosterview) {
  30867. // Removes roster groups
  30868. this.rosterview.model.off().reset();
  30869. this.rosterview.each(function (groupview) {
  30870. groupview.removeAll();
  30871. groupview.remove();
  30872. });
  30873. this.rosterview.removeAll().remove();
  30874. }
  30875. },
  30876. ChatBoxes: {
  30877. chatBoxMayBeShown: function chatBoxMayBeShown(chatbox) {
  30878. return this.__super__.chatBoxMayBeShown.apply(this, arguments) && chatbox.get('id') !== 'controlbox';
  30879. }
  30880. },
  30881. ChatBoxViews: {
  30882. closeAllChatBoxes: function closeAllChatBoxes() {
  30883. var _converse = this.__super__._converse;
  30884. this.each(function (view) {
  30885. if (view.model.get('id') === 'controlbox' && (_converse.disconnection_cause !== _converse.LOGOUT || _converse.show_controlbox_by_default)) {
  30886. return;
  30887. }
  30888. view.close();
  30889. });
  30890. return this;
  30891. },
  30892. getChatBoxWidth: function getChatBoxWidth(view) {
  30893. var _converse = this.__super__._converse;
  30894. var controlbox = this.get('controlbox');
  30895. if (view.model.get('id') === 'controlbox') {
  30896. /* We return the width of the controlbox or its toggle,
  30897. * depending on which is visible.
  30898. */
  30899. if (!controlbox || !u.isVisible(controlbox.el)) {
  30900. return u.getOuterWidth(_converse.controlboxtoggle.el, true);
  30901. } else {
  30902. return u.getOuterWidth(controlbox.el, true);
  30903. }
  30904. } else {
  30905. return this.__super__.getChatBoxWidth.apply(this, arguments);
  30906. }
  30907. }
  30908. },
  30909. ChatBox: {
  30910. initialize: function initialize() {
  30911. if (this.get('id') === 'controlbox') {
  30912. this.set({
  30913. 'time_opened': moment(0).valueOf()
  30914. });
  30915. } else {
  30916. this.__super__.initialize.apply(this, arguments);
  30917. }
  30918. }
  30919. },
  30920. ChatBoxView: {
  30921. insertIntoDOM: function insertIntoDOM() {
  30922. var view = this.__super__._converse.chatboxviews.get("controlbox");
  30923. if (view) {
  30924. view.el.insertAdjacentElement('afterend', this.el);
  30925. } else {
  30926. this.__super__.insertIntoDOM.apply(this, arguments);
  30927. }
  30928. return this;
  30929. }
  30930. }
  30931. },
  30932. initialize: function initialize() {
  30933. /* The initialize function gets called as soon as the plugin is
  30934. * loaded by converse.js's plugin machinery.
  30935. */
  30936. var _converse = this._converse,
  30937. __ = _converse.__;
  30938. _converse.api.settings.update({
  30939. allow_logout: true,
  30940. default_domain: undefined,
  30941. locked_domain: undefined,
  30942. show_controlbox_by_default: false,
  30943. sticky_controlbox: false
  30944. });
  30945. _converse.api.promises.add('controlboxInitialized');
  30946. _converse.addControlBox = function () {
  30947. return _converse.chatboxes.add({
  30948. 'id': 'controlbox',
  30949. 'box_id': 'controlbox',
  30950. 'type': _converse.CONTROLBOX_TYPE,
  30951. 'closed': !_converse.show_controlbox_by_default
  30952. });
  30953. };
  30954. _converse.ControlBoxView = _converse.ChatBoxView.extend({
  30955. tagName: 'div',
  30956. className: 'chatbox',
  30957. id: 'controlbox',
  30958. events: {
  30959. 'click a.close-chatbox-button': 'close'
  30960. },
  30961. initialize: function initialize() {
  30962. if (_.isUndefined(_converse.controlboxtoggle)) {
  30963. _converse.controlboxtoggle = new _converse.ControlBoxToggle();
  30964. }
  30965. _converse.controlboxtoggle.el.insertAdjacentElement('afterend', this.el);
  30966. this.model.on('change:connected', this.onConnected, this);
  30967. this.model.on('destroy', this.hide, this);
  30968. this.model.on('hide', this.hide, this);
  30969. this.model.on('show', this.show, this);
  30970. this.model.on('change:closed', this.ensureClosedState, this);
  30971. this.render();
  30972. if (this.model.get('connected')) {
  30973. this.insertRoster();
  30974. }
  30975. _converse.emit('controlboxInitialized', this);
  30976. },
  30977. render: function render() {
  30978. if (this.model.get('connected')) {
  30979. if (_.isUndefined(this.model.get('closed'))) {
  30980. this.model.set('closed', !_converse.show_controlbox_by_default);
  30981. }
  30982. }
  30983. this.el.innerHTML = tpl_controlbox(_.extend(this.model.toJSON()));
  30984. if (!this.model.get('closed')) {
  30985. this.show();
  30986. } else {
  30987. this.hide();
  30988. }
  30989. if (!_converse.connection.connected || !_converse.connection.authenticated || _converse.connection.disconnecting) {
  30990. this.renderLoginPanel();
  30991. } else if (this.model.get('connected') && (!this.controlbox_pane || !u.isVisible(this.controlbox_pane.el))) {
  30992. this.renderControlBoxPane();
  30993. }
  30994. return this;
  30995. },
  30996. onConnected: function onConnected() {
  30997. if (this.model.get('connected')) {
  30998. this.render();
  30999. this.insertRoster();
  31000. }
  31001. },
  31002. insertRoster: function insertRoster() {
  31003. var _this = this;
  31004. if (_converse.authentication === _converse.ANONYMOUS) {
  31005. return;
  31006. }
  31007. /* Place the rosterview inside the "Contacts" panel. */
  31008. _converse.api.waitUntil('rosterViewInitialized').then(function () {
  31009. return _this.controlbox_pane.el.insertAdjacentElement('beforeEnd', _converse.rosterview.el);
  31010. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  31011. },
  31012. createBrandHeadingHTML: function createBrandHeadingHTML() {
  31013. return tpl_brand_heading({
  31014. 'sticky_controlbox': _converse.sticky_controlbox
  31015. });
  31016. },
  31017. insertBrandHeading: function insertBrandHeading() {
  31018. var heading_el = this.el.querySelector('.brand-heading-container');
  31019. if (_.isNull(heading_el)) {
  31020. var el = this.el.querySelector('.controlbox-head');
  31021. el.insertAdjacentHTML('beforeend', this.createBrandHeadingHTML());
  31022. } else {
  31023. heading_el.outerHTML = this.createBrandHeadingHTML();
  31024. }
  31025. },
  31026. renderLoginPanel: function renderLoginPanel() {
  31027. this.el.classList.add("logged-out");
  31028. if (_.isNil(this.loginpanel)) {
  31029. this.loginpanel = new _converse.LoginPanel({
  31030. 'model': new _converse.LoginPanelModel()
  31031. });
  31032. var panes = this.el.querySelector('.controlbox-panes');
  31033. panes.innerHTML = '';
  31034. panes.appendChild(this.loginpanel.render().el);
  31035. this.insertBrandHeading();
  31036. } else {
  31037. this.loginpanel.render();
  31038. }
  31039. return this;
  31040. },
  31041. renderControlBoxPane: function renderControlBoxPane() {
  31042. /* Renders the "Contacts" panel of the controlbox.
  31043. *
  31044. * This will only be called after the user has already been
  31045. * logged in.
  31046. */
  31047. if (this.loginpanel) {
  31048. this.loginpanel.remove();
  31049. delete this.loginpanel;
  31050. }
  31051. this.el.classList.remove("logged-out");
  31052. this.controlbox_pane = new _converse.ControlBoxPane();
  31053. this.el.querySelector('.controlbox-panes').insertAdjacentElement('afterBegin', this.controlbox_pane.el);
  31054. },
  31055. close: function close(ev) {
  31056. if (ev && ev.preventDefault) {
  31057. ev.preventDefault();
  31058. }
  31059. if (_converse.sticky_controlbox) {
  31060. return;
  31061. }
  31062. if (_converse.connection.connected && !_converse.connection.disconnecting) {
  31063. this.model.save({
  31064. 'closed': true
  31065. });
  31066. } else {
  31067. this.model.trigger('hide');
  31068. }
  31069. _converse.emit('controlBoxClosed', this);
  31070. return this;
  31071. },
  31072. ensureClosedState: function ensureClosedState() {
  31073. if (this.model.get('closed')) {
  31074. this.hide();
  31075. } else {
  31076. this.show();
  31077. }
  31078. },
  31079. hide: function hide(callback) {
  31080. if (_converse.sticky_controlbox) {
  31081. return;
  31082. }
  31083. u.addClass('hidden', this.el);
  31084. _converse.emit('chatBoxClosed', this);
  31085. if (!_converse.connection.connected) {
  31086. _converse.controlboxtoggle.render();
  31087. }
  31088. _converse.controlboxtoggle.show(callback);
  31089. return this;
  31090. },
  31091. onControlBoxToggleHidden: function onControlBoxToggleHidden() {
  31092. this.model.set('closed', false);
  31093. this.el.classList.remove('hidden');
  31094. _converse.emit('controlBoxOpened', this);
  31095. },
  31096. show: function show() {
  31097. _converse.controlboxtoggle.hide(this.onControlBoxToggleHidden.bind(this));
  31098. return this;
  31099. },
  31100. showHelpMessages: function showHelpMessages() {
  31101. /* Override showHelpMessages in ChatBoxView, for now do nothing.
  31102. *
  31103. * Parameters:
  31104. * (Array) msgs: Array of messages
  31105. */
  31106. return;
  31107. }
  31108. });
  31109. _converse.LoginPanelModel = Backbone.Model.extend({
  31110. defaults: {
  31111. // Passed-by-reference. Fine in this case because there's
  31112. // only one such model.
  31113. 'errors': []
  31114. }
  31115. });
  31116. _converse.LoginPanel = Backbone.VDOMView.extend({
  31117. tagName: 'div',
  31118. id: "converse-login-panel",
  31119. className: 'controlbox-pane fade-in',
  31120. events: {
  31121. 'submit form#converse-login': 'authenticate',
  31122. 'change input': 'validate'
  31123. },
  31124. initialize: function initialize(cfg) {
  31125. this.model.on('change', this.render, this);
  31126. this.listenTo(_converse.connfeedback, 'change', this.render);
  31127. this.render();
  31128. _.forEach(this.el.querySelectorAll('[data-title]'), function (el) {
  31129. var popover = new bootstrap.Popover(el, {
  31130. 'trigger': _converse.view_mode === 'mobile' && 'click' || 'hover',
  31131. 'dismissible': _converse.view_mode === 'mobile' && true || false,
  31132. 'container': _converse.chatboxviews.el
  31133. });
  31134. });
  31135. },
  31136. toHTML: function toHTML() {
  31137. var connection_status = _converse.connfeedback.get('connection_status');
  31138. var feedback_class, pretty_status;
  31139. if (_.includes(REPORTABLE_STATUSES, connection_status)) {
  31140. pretty_status = PRETTY_CONNECTION_STATUS[connection_status];
  31141. feedback_class = CONNECTION_STATUS_CSS_CLASS[pretty_status];
  31142. }
  31143. return tpl_login_panel(_.extend(this.model.toJSON(), {
  31144. '__': __,
  31145. '_converse': _converse,
  31146. 'ANONYMOUS': _converse.ANONYMOUS,
  31147. 'EXTERNAL': _converse.EXTERNAL,
  31148. 'LOGIN': _converse.LOGIN,
  31149. 'PREBIND': _converse.PREBIND,
  31150. 'auto_login': _converse.auto_login,
  31151. 'authentication': _converse.authentication,
  31152. 'connection_status': connection_status,
  31153. 'conn_feedback_class': feedback_class,
  31154. 'conn_feedback_subject': pretty_status,
  31155. 'conn_feedback_message': _converse.connfeedback.get('message'),
  31156. 'placeholder_username': (_converse.locked_domain || _converse.default_domain) && __('Username') || __('user@domain')
  31157. }));
  31158. },
  31159. validate: function validate() {
  31160. var form = this.el.querySelector('form');
  31161. var jid_element = form.querySelector('input[name=jid]');
  31162. if (jid_element.value && !_converse.locked_domain && !_converse.default_domain && !u.isValidJID(jid_element.value)) {
  31163. jid_element.setCustomValidity(__('Please enter a valid XMPP address'));
  31164. return false;
  31165. }
  31166. jid_element.setCustomValidity('');
  31167. return true;
  31168. },
  31169. authenticate: function authenticate(ev) {
  31170. /* Authenticate the user based on a form submission event.
  31171. */
  31172. if (ev && ev.preventDefault) {
  31173. ev.preventDefault();
  31174. }
  31175. if (_converse.authentication === _converse.ANONYMOUS) {
  31176. this.connect(_converse.jid, null);
  31177. return;
  31178. }
  31179. if (!this.validate()) {
  31180. return;
  31181. }
  31182. var form_data = new FormData(ev.target);
  31183. _converse.config.save({
  31184. 'trusted': form_data.get('trusted') && true || false,
  31185. 'storage': form_data.get('trusted') ? 'local' : 'session'
  31186. });
  31187. var jid = form_data.get('jid');
  31188. if (_converse.locked_domain) {
  31189. var last_part = '@' + _converse.locked_domain;
  31190. if (jid.endsWith(last_part)) {
  31191. jid = jid.substr(0, jid.length - last_part.length);
  31192. }
  31193. jid = Strophe.escapeNode(jid) + last_part;
  31194. } else if (_converse.default_domain && !_.includes(jid, '@')) {
  31195. jid = jid + '@' + _converse.default_domain;
  31196. }
  31197. this.connect(jid, form_data.get('password'));
  31198. },
  31199. connect: function connect(jid, password) {
  31200. if (jid) {
  31201. var resource = Strophe.getResourceFromJid(jid);
  31202. if (!resource) {
  31203. jid = jid.toLowerCase() + _converse.generateResource();
  31204. } else {
  31205. jid = Strophe.getBareJidFromJid(jid).toLowerCase() + '/' + resource;
  31206. }
  31207. }
  31208. if (_.includes(["converse/login", "converse/register"], Backbone.history.getFragment())) {
  31209. _converse.router.navigate('', {
  31210. 'replace': true
  31211. });
  31212. }
  31213. _converse.connection.reset();
  31214. _converse.connection.connect(jid, password, _converse.onConnectStatusChanged);
  31215. }
  31216. });
  31217. _converse.ControlBoxPane = Backbone.NativeView.extend({
  31218. tagName: 'div',
  31219. className: 'controlbox-pane',
  31220. initialize: function initialize() {
  31221. _converse.xmppstatusview = new _converse.XMPPStatusView({
  31222. 'model': _converse.xmppstatus
  31223. });
  31224. this.el.insertAdjacentElement('afterBegin', _converse.xmppstatusview.render().el);
  31225. }
  31226. });
  31227. _converse.ControlBoxToggle = Backbone.NativeView.extend({
  31228. tagName: 'a',
  31229. className: 'toggle-controlbox hidden',
  31230. id: 'toggle-controlbox',
  31231. events: {
  31232. 'click': 'onClick'
  31233. },
  31234. attributes: {
  31235. 'href': "#"
  31236. },
  31237. initialize: function initialize() {
  31238. _converse.chatboxviews.insertRowColumn(this.render().el);
  31239. _converse.api.waitUntil('initialized').then(this.render.bind(this)).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  31240. },
  31241. render: function render() {
  31242. // We let the render method of ControlBoxView decide whether
  31243. // the ControlBox or the Toggle must be shown. This prevents
  31244. // artifacts (i.e. on page load the toggle is shown only to then
  31245. // seconds later be hidden in favor of the control box).
  31246. this.el.innerHTML = tpl_controlbox_toggle({
  31247. 'label_toggle': _converse.connection.connected ? __('Chat Contacts') : __('Toggle chat')
  31248. });
  31249. return this;
  31250. },
  31251. hide: function hide(callback) {
  31252. u.hideElement(this.el);
  31253. callback();
  31254. },
  31255. show: function show(callback) {
  31256. u.fadeIn(this.el, callback);
  31257. },
  31258. showControlBox: function showControlBox() {
  31259. var controlbox = _converse.chatboxes.get('controlbox');
  31260. if (!controlbox) {
  31261. controlbox = _converse.addControlBox();
  31262. }
  31263. if (_converse.connection.connected) {
  31264. controlbox.save({
  31265. closed: false
  31266. });
  31267. } else {
  31268. controlbox.trigger('show');
  31269. }
  31270. },
  31271. onClick: function onClick(e) {
  31272. e.preventDefault();
  31273. if (u.isVisible(_converse.root.querySelector("#controlbox"))) {
  31274. var controlbox = _converse.chatboxes.get('controlbox');
  31275. if (_converse.connection.connected) {
  31276. controlbox.save({
  31277. closed: true
  31278. });
  31279. } else {
  31280. controlbox.trigger('hide');
  31281. }
  31282. } else {
  31283. this.showControlBox();
  31284. }
  31285. }
  31286. });
  31287. _converse.on('chatBoxViewsInitialized', function () {
  31288. var that = _converse.chatboxviews;
  31289. _converse.chatboxes.on('add', function (item) {
  31290. if (item.get('type') === _converse.CONTROLBOX_TYPE) {
  31291. var view = that.get(item.get('id'));
  31292. if (view) {
  31293. view.model = item;
  31294. view.initialize();
  31295. } else {
  31296. that.add(item.get('id'), new _converse.ControlBoxView({
  31297. model: item
  31298. }));
  31299. }
  31300. }
  31301. });
  31302. });
  31303. _converse.on('clearSession', function () {
  31304. if (_converse.config.get('trusted')) {
  31305. var chatboxes = _.get(_converse, 'chatboxes', null);
  31306. if (!_.isNil(chatboxes)) {
  31307. var controlbox = chatboxes.get('controlbox');
  31308. if (controlbox && controlbox.collection && controlbox.collection.browserStorage) {
  31309. controlbox.save({
  31310. 'connected': false
  31311. });
  31312. }
  31313. }
  31314. }
  31315. });
  31316. Promise.all([_converse.api.waitUntil('connectionInitialized'), _converse.api.waitUntil('chatBoxViewsInitialized')]).then(_converse.addControlBox).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  31317. _converse.on('chatBoxesFetched', function () {
  31318. var controlbox = _converse.chatboxes.get('controlbox') || _converse.addControlBox();
  31319. controlbox.save({
  31320. connected: true
  31321. });
  31322. });
  31323. var disconnect = function disconnect() {
  31324. /* Upon disconnection, set connected to `false`, so that if
  31325. * we reconnect, "onConnected" will be called,
  31326. * to fetch the roster again and to send out a presence stanza.
  31327. */
  31328. var view = _converse.chatboxviews.get('controlbox');
  31329. view.model.set({
  31330. 'connected': false
  31331. });
  31332. return view;
  31333. };
  31334. _converse.on('disconnected', function () {
  31335. return disconnect().renderLoginPanel();
  31336. });
  31337. _converse.on('will-reconnect', disconnect);
  31338. }
  31339. });
  31340. });
  31341. /***/ }),
  31342. /***/ "./src/converse-core.js":
  31343. /*!******************************!*\
  31344. !*** ./src/converse-core.js ***!
  31345. \******************************/
  31346. /*! no static exports found */
  31347. /***/ (function(module, exports, __webpack_require__) {
  31348. "use strict";
  31349. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  31350. function _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return right[Symbol.hasInstance](left); } else { return left instanceof right; } }
  31351. // Converse.js
  31352. // https://conversejs.org
  31353. //
  31354. // Copyright (c) 2013-2018, the Converse.js developers
  31355. // Licensed under the Mozilla Public License (MPLv2)
  31356. (function (root, factory) {
  31357. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! sizzle */ "./node_modules/sizzle/dist/sizzle.js"), __webpack_require__(/*! es6-promise */ "es6-promise"), __webpack_require__(/*! lodash.noconflict */ "lodash.noconflict"), __webpack_require__(/*! lodash.fp */ "./src/lodash.fp.js"), __webpack_require__(/*! polyfill */ "./src/polyfill.js"), __webpack_require__(/*! i18n */ "./src/i18n.js"), __webpack_require__(/*! utils/core */ "./src/utils/core.js"), __webpack_require__(/*! moment */ "moment"), __webpack_require__(/*! strophe */ "strophe"), __webpack_require__(/*! pluggable */ "./node_modules/pluggable.js/dist/pluggable.js"), __webpack_require__(/*! backbone.noconflict */ "./src/backbone.noconflict.js"), __webpack_require__(/*! backbone.nativeview */ "./node_modules/backbone.nativeview/backbone.nativeview.js"), __webpack_require__(/*! backbone.browserStorage */ "backbone.browserStorage")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  31358. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  31359. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  31360. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  31361. })(void 0, function (sizzle, Promise, _, f, polyfill, i18n, u, moment, Strophe, pluggable, Backbone) {
  31362. "use strict"; // Strophe globals
  31363. var _Strophe = Strophe,
  31364. $build = _Strophe.$build,
  31365. $iq = _Strophe.$iq,
  31366. $msg = _Strophe.$msg,
  31367. $pres = _Strophe.$pres;
  31368. var b64_sha1 = Strophe.SHA1.b64_sha1;
  31369. Strophe = Strophe.Strophe; // Add Strophe Namespaces
  31370. Strophe.addNamespace('CARBONS', 'urn:xmpp:carbons:2');
  31371. Strophe.addNamespace('CHATSTATES', 'http://jabber.org/protocol/chatstates');
  31372. Strophe.addNamespace('CSI', 'urn:xmpp:csi:0');
  31373. Strophe.addNamespace('DELAY', 'urn:xmpp:delay');
  31374. Strophe.addNamespace('FORWARD', 'urn:xmpp:forward:0');
  31375. Strophe.addNamespace('HINTS', 'urn:xmpp:hints');
  31376. Strophe.addNamespace('HTTPUPLOAD', 'urn:xmpp:http:upload:0');
  31377. Strophe.addNamespace('MAM', 'urn:xmpp:mam:2');
  31378. Strophe.addNamespace('NICK', 'http://jabber.org/protocol/nick');
  31379. Strophe.addNamespace('OUTOFBAND', 'jabber:x:oob');
  31380. Strophe.addNamespace('PUBSUB', 'http://jabber.org/protocol/pubsub');
  31381. Strophe.addNamespace('ROSTERX', 'http://jabber.org/protocol/rosterx');
  31382. Strophe.addNamespace('RSM', 'http://jabber.org/protocol/rsm');
  31383. Strophe.addNamespace('SID', 'urn:xmpp:sid:0');
  31384. Strophe.addNamespace('SPOILER', 'urn:xmpp:spoiler:0');
  31385. Strophe.addNamespace('VCARD', 'vcard-temp');
  31386. Strophe.addNamespace('VCARDUPDATE', 'vcard-temp:x:update');
  31387. Strophe.addNamespace('XFORM', 'jabber:x:data'); // Use Mustache style syntax for variable interpolation
  31388. /* Configuration of Lodash templates (this config is distinct to the
  31389. * config of requirejs-tpl in main.js). This one is for normal inline templates.
  31390. */
  31391. _.templateSettings = {
  31392. 'escape': /\{\{\{([\s\S]+?)\}\}\}/g,
  31393. 'evaluate': /\{\[([\s\S]+?)\]\}/g,
  31394. 'interpolate': /\{\{([\s\S]+?)\}\}/g,
  31395. 'imports': {
  31396. '_': _
  31397. }
  31398. };
  31399. /**
  31400. * A private, closured object containing the private api (via `_converse.api`)
  31401. * as well as private methods and internal data-structures.
  31402. *
  31403. * @namespace _converse
  31404. */
  31405. var _converse = {
  31406. 'templates': {},
  31407. 'promises': {}
  31408. };
  31409. _.extend(_converse, Backbone.Events); // Core plugins are whitelisted automatically
  31410. _converse.core_plugins = ['converse-autocomplete', 'converse-bookmarks', 'converse-caps', 'converse-chatboxes', 'converse-chatboxviews', 'converse-chatview', 'converse-controlbox', 'converse-core', 'converse-disco', 'converse-dragresize', 'converse-embedded', 'converse-fullscreen', 'converse-headline', 'converse-mam', 'converse-message-view', 'converse-minimize', 'converse-modal', 'converse-muc', 'converse-muc-views', 'converse-notification', 'converse-omemo', 'converse-ping', 'converse-profile', 'converse-push', 'converse-register', 'converse-roomslist', 'converse-roster', 'converse-rosterview', 'converse-singleton', 'converse-spoilers', 'converse-vcard']; // Setting wait to 59 instead of 60 to avoid timing conflicts with the
  31411. // webserver, which is often also set to 60 and might therefore sometimes
  31412. // return a 504 error page instead of passing through to the BOSH proxy.
  31413. var BOSH_WAIT = 59; // Make converse pluggable
  31414. pluggable.enable(_converse, '_converse', 'pluggable');
  31415. _converse.keycodes = {
  31416. TAB: 9,
  31417. ENTER: 13,
  31418. SHIFT: 16,
  31419. CTRL: 17,
  31420. ALT: 18,
  31421. ESCAPE: 27,
  31422. UP_ARROW: 38,
  31423. DOWN_ARROW: 40,
  31424. FORWARD_SLASH: 47,
  31425. AT: 50,
  31426. META: 91,
  31427. META_RIGHT: 93
  31428. }; // Module-level constants
  31429. _converse.STATUS_WEIGHTS = {
  31430. 'offline': 6,
  31431. 'unavailable': 5,
  31432. 'xa': 4,
  31433. 'away': 3,
  31434. 'dnd': 2,
  31435. 'chat': 1,
  31436. // We currently don't differentiate between "chat" and "online"
  31437. 'online': 1
  31438. };
  31439. _converse.PRETTY_CHAT_STATUS = {
  31440. 'offline': 'Offline',
  31441. 'unavailable': 'Unavailable',
  31442. 'xa': 'Extended Away',
  31443. 'away': 'Away',
  31444. 'dnd': 'Do not disturb',
  31445. 'chat': 'Chattty',
  31446. 'online': 'Online'
  31447. };
  31448. _converse.ANONYMOUS = "anonymous";
  31449. _converse.CLOSED = 'closed';
  31450. _converse.EXTERNAL = "external";
  31451. _converse.LOGIN = "login";
  31452. _converse.LOGOUT = "logout";
  31453. _converse.OPENED = 'opened';
  31454. _converse.PREBIND = "prebind";
  31455. _converse.IQ_TIMEOUT = 20000;
  31456. _converse.CONNECTION_STATUS = {
  31457. 0: 'ERROR',
  31458. 1: 'CONNECTING',
  31459. 2: 'CONNFAIL',
  31460. 3: 'AUTHENTICATING',
  31461. 4: 'AUTHFAIL',
  31462. 5: 'CONNECTED',
  31463. 6: 'DISCONNECTED',
  31464. 7: 'DISCONNECTING',
  31465. 8: 'ATTACHED',
  31466. 9: 'REDIRECT',
  31467. 10: 'RECONNECTING'
  31468. };
  31469. _converse.SUCCESS = 'success';
  31470. _converse.FAILURE = 'failure';
  31471. _converse.DEFAULT_IMAGE_TYPE = 'image/png';
  31472. _converse.DEFAULT_IMAGE = "iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAIAAABt+uBvAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gwHCy455JBsggAABkJJREFUeNrtnM1PE1sUwHvvTD8otWLHST/Gimi1CEgr6M6FEWuIBo2pujDVsNDEP8GN/4MbN7oxrlipG2OCgZgYlxAbkRYw1KqkIDRCSkM7nXvvW8x7vjyNeQ9m7p1p3z1LQk/v/Dhz7vkEXL161cHl9wI5Ag6IA+KAOCAOiAPigDggLhwQB2S+iNZ+PcYY/SWEEP2HAAAIoSAIoihCCP+ngDDGtVotGAz29/cfOXJEUZSOjg6n06lp2sbGRqlUWlhYyGazS0tLbrdbEASrzgksyeYJId3d3el0uqenRxRFAAAA4KdfIIRgjD9+/Pj8+fOpqSndslofEIQwHA6Pjo4mEon//qmFhYXHjx8vLi4ihBgDEnp7e9l8E0Jo165dQ0NDd+/eDYVC2/qsJElDQ0OEkKWlpa2tLZamxAhQo9EIBoOjo6MXL17csZLe3l5FUT59+lQul5l5JRaAVFWNRqN37tw5ceKEQVWRSOTw4cOFQuHbt2+iKLYCIISQLMu3b99OJpOmKAwEAgcPHszn8+vr6wzsiG6UQQhxuVyXLl0aGBgwUW0sFstkMl6v90fo1KyAMMYDAwPnzp0zXfPg4GAqlWo0Gk0MiBAiy/L58+edTqf5Aa4onj59OhaLYYybFRCEMBaL0fNxBw4cSCQStN0QRUBut3t4eJjq6U+dOiVJElVPRBFQIBDo6+ujCqirqyscDlONGykC2lYyYSR6pBoQQapHZwAoHo/TuARYAOrs7GQASFEUqn6aIiBJkhgA6ujooFpUo6iaTa7koFwnaoWadLNe81tbWwzoaJrWrICWl5cZAFpbW6OabVAEtLi4yABQsVjUNK0pAWWzWQaAcrlcswKanZ1VVZUqHYRQEwOq1Wpv3ryhCmh6erpcLjdrNl+v1ycnJ+l5UELI27dvv3//3qxxEADgy5cvExMT9Mznw4cPtFtAdAPFarU6Pj5eKpVM17yxsfHy5cvV1VXazXu62gVBKBQKT58+rdVqJqrFGL948eLdu3dU8/g/H4FBUaJYLAqC0NPTY9brMD4+PjY25mDSracOCABACJmZmXE6nUePHjWu8NWrV48ePSKEsGlAs7Agfd5nenq6Wq0mk0kjDzY2NvbkyRMIIbP2PLvhBUEQ8vl8NpuNx+M+n29bzhVjvLKycv/+/YmJCcazQuwA6YzW1tYmJyf1SY+2trZ/rRk1Go1SqfT69esHDx4UCgVmNaa/zZ/9ABUhRFXVYDB48uTJeDweiUQkSfL7/T9MA2NcqVTK5fLy8vL8/PzU1FSxWHS5XJaM4wGr9sUwxqqqer3eUCgkSZJuUBBCfTRvc3OzXC6vrKxUKhWn02nhCJ5lM4oQQo/HgxD6+vXr58+fHf8sDOp+HQDg8XgclorFU676dKLlo6yWRdItIBwQB8QBcUCtfosRQjRNQwhhjPUC4w46WXryBSHU1zgEQWBz99EFhDGu1+t+v//48ePxeFxRlD179ng8nh0Efgiher2+vr6ur3HMzMysrq7uTJVdACGEurq6Ll++nEgkPB7Pj9jPoDHqOxyqqubz+WfPnuVyuV9XPeyeagAAAoHArVu3BgcHab8CuVzu4cOHpVKJUnfA5GweY+xyuc6cOXPv3r1IJMLAR8iyPDw8XK/Xi8Wiqqqmm5KZgBBC7e3tN27cuHbtGuPVpf7+/lAoNDs7W61WzfVKpgHSSzw3b95MpVKW3MfRaDQSiczNzVUqFRMZmQOIEOL1eq9fv3727FlL1t50URRFluX5+flqtWpWEGAOIFEUU6nUlStXLKSjy759+xwOx9zcnKZpphzGHMzhcDiTydgk9r1w4YIp7RPTAAmCkMlk2FeLf/tIEKbTab/fbwtAhJBoNGrutpNx6e7uPnTokC1eMU3T0um0DZPMkZER6wERQnw+n/FFSxpy7Nix3bt3WwwIIcRgIWnHkkwmjecfRgGx7DtuV/r6+iwGhDHev3+/bQF1dnYaH6E2CkiWZdsC2rt3r8WAHA5HW1ubbQGZcjajgOwTH/4qNko1Wlg4IA6IA+KAOKBWBUQIsfNojyliKIoRRfH9+/dut9umf3wzpoUNNQ4BAJubmwz+ic+OxefzWWlBhJD29nbug7iT5sIBcUAcEAfEAXFAHBAHxOVn+QMrmWpuPZx12gAAAABJRU5ErkJggg==";
  31473. _converse.TIMEOUTS = {
  31474. // Set as module attr so that we can override in tests.
  31475. 'PAUSED': 10000,
  31476. 'INACTIVE': 90000
  31477. }; // XEP-0085 Chat states
  31478. // http://xmpp.org/extensions/xep-0085.html
  31479. _converse.INACTIVE = 'inactive';
  31480. _converse.ACTIVE = 'active';
  31481. _converse.COMPOSING = 'composing';
  31482. _converse.PAUSED = 'paused';
  31483. _converse.GONE = 'gone'; // Chat types
  31484. _converse.PRIVATE_CHAT_TYPE = 'chatbox';
  31485. _converse.CHATROOMS_TYPE = 'chatroom';
  31486. _converse.HEADLINES_TYPE = 'headline';
  31487. _converse.CONTROLBOX_TYPE = 'controlbox'; // Default configuration values
  31488. // ----------------------------
  31489. _converse.default_settings = {
  31490. allow_non_roster_messaging: false,
  31491. animate: true,
  31492. authentication: 'login',
  31493. // Available values are "login", "prebind", "anonymous" and "external".
  31494. auto_away: 0,
  31495. // Seconds after which user status is set to 'away'
  31496. auto_login: false,
  31497. // Currently only used in connection with anonymous login
  31498. auto_reconnect: true,
  31499. auto_xa: 0,
  31500. // Seconds after which user status is set to 'xa'
  31501. blacklisted_plugins: [],
  31502. bosh_service_url: undefined,
  31503. connection_options: {},
  31504. credentials_url: null,
  31505. // URL from where login credentials can be fetched
  31506. csi_waiting_time: 0,
  31507. // Support for XEP-0352. Seconds before client is considered idle and CSI is sent out.
  31508. debug: false,
  31509. default_state: 'online',
  31510. expose_rid_and_sid: false,
  31511. geouri_regex: /https:\/\/www.openstreetmap.org\/.*#map=[0-9]+\/([\-0-9.]+)\/([\-0-9.]+)\S*/g,
  31512. geouri_replacement: 'https://www.openstreetmap.org/?mlat=$1&mlon=$2#map=18/$1/$2',
  31513. jid: undefined,
  31514. keepalive: true,
  31515. locales_url: 'locale/{{{locale}}}/LC_MESSAGES/converse.json',
  31516. locales: ['af', 'ar', 'bg', 'ca', 'cs', 'de', 'es', 'eu', 'en', 'fr', 'he', 'hu', 'id', 'it', 'ja', 'nb', 'nl', 'pl', 'pt_BR', 'ru', 'tr', 'uk', 'zh_CN', 'zh_TW'],
  31517. message_carbons: true,
  31518. nickname: undefined,
  31519. password: undefined,
  31520. prebind_url: null,
  31521. priority: 0,
  31522. rid: undefined,
  31523. root: window.document,
  31524. sid: undefined,
  31525. strict_plugin_dependencies: false,
  31526. trusted: true,
  31527. view_mode: 'overlayed',
  31528. // Choices are 'overlayed', 'fullscreen', 'mobile'
  31529. websocket_url: undefined,
  31530. whitelisted_plugins: []
  31531. };
  31532. _converse.log = function (message, level) {
  31533. var style = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
  31534. /* Logs messages to the browser's developer console.
  31535. *
  31536. * Parameters:
  31537. * (String) message - The message to be logged.
  31538. * (Integer) level - The loglevel which allows for filtering of log
  31539. * messages.
  31540. *
  31541. * Available loglevels are 0 for 'debug', 1 for 'info', 2 for 'warn',
  31542. * 3 for 'error' and 4 for 'fatal'.
  31543. *
  31544. * When using the 'error' or 'warn' loglevels, a full stacktrace will be
  31545. * logged as well.
  31546. */
  31547. if (level === Strophe.LogLevel.ERROR || level === Strophe.LogLevel.FATAL) {
  31548. style = style || 'color: maroon';
  31549. }
  31550. if (_instanceof(message, Error)) {
  31551. message = message.stack;
  31552. } else if (_.isElement(message)) {
  31553. message = message.outerHTML;
  31554. }
  31555. var prefix = style ? '%c' : '';
  31556. var logger = _.assign({
  31557. 'debug': _.get(console, 'log') ? console.log.bind(console) : _.noop,
  31558. 'error': _.get(console, 'log') ? console.log.bind(console) : _.noop,
  31559. 'info': _.get(console, 'log') ? console.log.bind(console) : _.noop,
  31560. 'warn': _.get(console, 'log') ? console.log.bind(console) : _.noop
  31561. }, console);
  31562. if (level === Strophe.LogLevel.ERROR) {
  31563. logger.error("".concat(prefix, " ERROR: ").concat(message), style);
  31564. } else if (level === Strophe.LogLevel.WARN) {
  31565. if (_converse.debug) {
  31566. logger.warn("".concat(prefix, " ").concat(moment().format(), " WARNING: ").concat(message), style);
  31567. }
  31568. } else if (level === Strophe.LogLevel.FATAL) {
  31569. logger.error("".concat(prefix, " FATAL: ").concat(message), style);
  31570. } else if (_converse.debug) {
  31571. if (level === Strophe.LogLevel.DEBUG) {
  31572. logger.debug("".concat(prefix, " ").concat(moment().format(), " DEBUG: ").concat(message), style);
  31573. } else {
  31574. logger.info("".concat(prefix, " ").concat(moment().format(), " INFO: ").concat(message), style);
  31575. }
  31576. }
  31577. };
  31578. Strophe.log = function (level, msg) {
  31579. _converse.log(level + ' ' + msg, level);
  31580. };
  31581. Strophe.error = function (msg) {
  31582. _converse.log(msg, Strophe.LogLevel.ERROR);
  31583. };
  31584. _converse.__ = function (str) {
  31585. /* Translate the given string based on the current locale.
  31586. *
  31587. * Parameters:
  31588. * (String) str - The string to translate.
  31589. */
  31590. if (_.isUndefined(i18n)) {
  31591. return str;
  31592. }
  31593. return i18n.translate.apply(i18n, arguments);
  31594. };
  31595. var __ = _converse.__;
  31596. var PROMISES = ['initialized', 'connectionInitialized', 'pluginsInitialized', 'statusInitialized'];
  31597. function addPromise(promise) {
  31598. /* Private function, used to add a new promise to the ones already
  31599. * available via the `waitUntil` api method.
  31600. */
  31601. _converse.promises[promise] = u.getResolveablePromise();
  31602. }
  31603. _converse.emit = function (name) {
  31604. /* Event emitter and promise resolver */
  31605. _converse.trigger.apply(this, arguments);
  31606. var promise = _converse.promises[name];
  31607. if (!_.isUndefined(promise)) {
  31608. promise.resolve();
  31609. }
  31610. };
  31611. _converse.isSingleton = function () {
  31612. return _.includes(['mobile', 'fullscreen', 'embedded'], _converse.view_mode);
  31613. };
  31614. _converse.router = new Backbone.Router();
  31615. _converse.initialize = function (settings, callback) {
  31616. var _this = this;
  31617. settings = !_.isUndefined(settings) ? settings : {};
  31618. var init_promise = u.getResolveablePromise();
  31619. _.each(PROMISES, addPromise);
  31620. if (!_.isUndefined(_converse.connection)) {
  31621. // Looks like _converse.initialized was called again without logging
  31622. // out or disconnecting in the previous session.
  31623. // This happens in tests. We therefore first clean up.
  31624. Backbone.history.stop();
  31625. _converse.chatboxviews.closeAllChatBoxes();
  31626. if (_converse.bookmarks) {
  31627. _converse.bookmarks.reset();
  31628. }
  31629. delete _converse.controlboxtoggle;
  31630. delete _converse.chatboxviews;
  31631. _converse.connection.reset();
  31632. _converse.stopListening();
  31633. _converse.tearDown();
  31634. delete _converse.config;
  31635. _converse.initClientConfig();
  31636. _converse.off();
  31637. }
  31638. if ('onpagehide' in window) {
  31639. // Pagehide gets thrown in more cases than unload. Specifically it
  31640. // gets thrown when the page is cached and not just
  31641. // closed/destroyed. It's the only viable event on mobile Safari.
  31642. // https://www.webkit.org/blog/516/webkit-page-cache-ii-the-unload-event/
  31643. _converse.unloadevent = 'pagehide';
  31644. } else if ('onbeforeunload' in window) {
  31645. _converse.unloadevent = 'beforeunload';
  31646. } else if ('onunload' in window) {
  31647. _converse.unloadevent = 'unload';
  31648. }
  31649. _.assignIn(this, this.default_settings); // Allow only whitelisted configuration attributes to be overwritten
  31650. _.assignIn(this, _.pick(settings, _.keys(this.default_settings)));
  31651. if (this.authentication === _converse.ANONYMOUS) {
  31652. if (this.auto_login && !this.jid) {
  31653. throw new Error("Config Error: you need to provide the server's " + "domain via the 'jid' option when using anonymous " + "authentication with auto_login.");
  31654. }
  31655. }
  31656. /* Localisation */
  31657. if (!_.isUndefined(i18n)) {
  31658. i18n.setLocales(settings.i18n, _converse);
  31659. } else {
  31660. _converse.locale = 'en';
  31661. } // Module-level variables
  31662. // ----------------------
  31663. this.callback = callback || _.noop;
  31664. /* When reloading the page:
  31665. * For new sessions, we need to send out a presence stanza to notify
  31666. * the server/network that we're online.
  31667. * When re-attaching to an existing session (e.g. via the keepalive
  31668. * option), we don't need to again send out a presence stanza, because
  31669. * it's as if "we never left" (see onConnectStatusChanged).
  31670. * https://github.com/jcbrand/converse.js/issues/521
  31671. */
  31672. this.send_initial_presence = true;
  31673. this.msg_counter = 0;
  31674. this.user_settings = settings; // Save the user settings so that they can be used by plugins
  31675. // Module-level functions
  31676. // ----------------------
  31677. this.generateResource = function () {
  31678. return "/converse.js-".concat(Math.floor(Math.random() * 139749528).toString());
  31679. };
  31680. this.sendCSI = function (stat) {
  31681. /* Send out a Chat Status Notification (XEP-0352)
  31682. *
  31683. * Parameters:
  31684. * (String) stat: The user's chat status
  31685. */
  31686. /* Send out a Chat Status Notification (XEP-0352) */
  31687. // XXX if (converse.features[Strophe.NS.CSI] || true) {
  31688. _converse.connection.send($build(stat, {
  31689. xmlns: Strophe.NS.CSI
  31690. }));
  31691. _converse.inactive = stat === _converse.INACTIVE ? true : false;
  31692. };
  31693. this.onUserActivity = function () {
  31694. /* Resets counters and flags relating to CSI and auto_away/auto_xa */
  31695. if (_converse.idle_seconds > 0) {
  31696. _converse.idle_seconds = 0;
  31697. }
  31698. if (!_converse.connection.authenticated) {
  31699. // We can't send out any stanzas when there's no authenticated connection.
  31700. // converse can happen when the connection reconnects.
  31701. return;
  31702. }
  31703. if (_converse.inactive) {
  31704. _converse.sendCSI(_converse.ACTIVE);
  31705. }
  31706. if (_converse.auto_changed_status === true) {
  31707. _converse.auto_changed_status = false; // XXX: we should really remember the original state here, and
  31708. // then set it back to that...
  31709. _converse.xmppstatus.set('status', _converse.default_state);
  31710. }
  31711. };
  31712. this.onEverySecond = function () {
  31713. /* An interval handler running every second.
  31714. * Used for CSI and the auto_away and auto_xa features.
  31715. */
  31716. if (!_converse.connection.authenticated) {
  31717. // We can't send out any stanzas when there's no authenticated connection.
  31718. // This can happen when the connection reconnects.
  31719. return;
  31720. }
  31721. var stat = _converse.xmppstatus.get('status');
  31722. _converse.idle_seconds++;
  31723. if (_converse.csi_waiting_time > 0 && _converse.idle_seconds > _converse.csi_waiting_time && !_converse.inactive) {
  31724. _converse.sendCSI(_converse.INACTIVE);
  31725. }
  31726. if (_converse.auto_away > 0 && _converse.idle_seconds > _converse.auto_away && stat !== 'away' && stat !== 'xa' && stat !== 'dnd') {
  31727. _converse.auto_changed_status = true;
  31728. _converse.xmppstatus.set('status', 'away');
  31729. } else if (_converse.auto_xa > 0 && _converse.idle_seconds > _converse.auto_xa && stat !== 'xa' && stat !== 'dnd') {
  31730. _converse.auto_changed_status = true;
  31731. _converse.xmppstatus.set('status', 'xa');
  31732. }
  31733. };
  31734. this.registerIntervalHandler = function () {
  31735. /* Set an interval of one second and register a handler for it.
  31736. * Required for the auto_away, auto_xa and csi_waiting_time features.
  31737. */
  31738. if (_converse.auto_away < 1 && _converse.auto_xa < 1 && _converse.csi_waiting_time < 1) {
  31739. // Waiting time of less then one second means features aren't used.
  31740. return;
  31741. }
  31742. _converse.idle_seconds = 0;
  31743. _converse.auto_changed_status = false; // Was the user's status changed by _converse.js?
  31744. window.addEventListener('click', _converse.onUserActivity);
  31745. window.addEventListener('focus', _converse.onUserActivity);
  31746. window.addEventListener('keypress', _converse.onUserActivity);
  31747. window.addEventListener('mousemove', _converse.onUserActivity);
  31748. var options = {
  31749. 'once': true,
  31750. 'passive': true
  31751. };
  31752. window.addEventListener(_converse.unloadevent, _converse.onUserActivity, options);
  31753. _converse.everySecondTrigger = window.setInterval(_converse.onEverySecond, 1000);
  31754. };
  31755. this.setConnectionStatus = function (connection_status, message) {
  31756. _converse.connfeedback.set({
  31757. 'connection_status': connection_status,
  31758. 'message': message
  31759. });
  31760. };
  31761. this.rejectPresenceSubscription = function (jid, message) {
  31762. /* Reject or cancel another user's subscription to our presence updates.
  31763. *
  31764. * Parameters:
  31765. * (String) jid - The Jabber ID of the user whose subscription
  31766. * is being canceled.
  31767. * (String) message - An optional message to the user
  31768. */
  31769. var pres = $pres({
  31770. to: jid,
  31771. type: "unsubscribed"
  31772. });
  31773. if (message && message !== "") {
  31774. pres.c("status").t(message);
  31775. }
  31776. _converse.connection.send(pres);
  31777. };
  31778. this.reconnect = _.debounce(function () {
  31779. _converse.log('RECONNECTING');
  31780. _converse.log('The connection has dropped, attempting to reconnect.');
  31781. _converse.setConnectionStatus(Strophe.Status.RECONNECTING, __('The connection has dropped, attempting to reconnect.'));
  31782. _converse.connection.reconnecting = true;
  31783. _converse.tearDown();
  31784. _converse.logIn(null, true);
  31785. }, 3000, {
  31786. 'leading': true
  31787. });
  31788. this.disconnect = function () {
  31789. _converse.log('DISCONNECTED');
  31790. delete _converse.connection.reconnecting;
  31791. _converse.connection.reset();
  31792. _converse.tearDown();
  31793. _converse.clearSession();
  31794. _converse.emit('disconnected');
  31795. };
  31796. this.onDisconnected = function () {
  31797. /* Gets called once strophe's status reaches Strophe.Status.DISCONNECTED.
  31798. * Will either start a teardown process for converse.js or attempt
  31799. * to reconnect.
  31800. */
  31801. var reason = _converse.disconnection_reason;
  31802. if (_converse.disconnection_cause === Strophe.Status.AUTHFAIL) {
  31803. if (_converse.credentials_url && _converse.auto_reconnect) {
  31804. /* In this case, we reconnect, because we might be receiving
  31805. * expirable tokens from the credentials_url.
  31806. */
  31807. _converse.emit('will-reconnect');
  31808. return _converse.reconnect();
  31809. } else {
  31810. return _converse.disconnect();
  31811. }
  31812. } else if (_converse.disconnection_cause === _converse.LOGOUT || !_.isUndefined(reason) && reason === _.get(Strophe, 'ErrorCondition.NO_AUTH_MECH') || reason === "host-unknown" || reason === "remote-connection-failed" || !_converse.auto_reconnect) {
  31813. return _converse.disconnect();
  31814. }
  31815. _converse.emit('will-reconnect');
  31816. _converse.reconnect();
  31817. };
  31818. this.setDisconnectionCause = function (cause, reason, override) {
  31819. /* Used to keep track of why we got disconnected, so that we can
  31820. * decide on what the next appropriate action is (in onDisconnected)
  31821. */
  31822. if (_.isUndefined(cause)) {
  31823. delete _converse.disconnection_cause;
  31824. delete _converse.disconnection_reason;
  31825. } else if (_.isUndefined(_converse.disconnection_cause) || override) {
  31826. _converse.disconnection_cause = cause;
  31827. _converse.disconnection_reason = reason;
  31828. }
  31829. };
  31830. this.onConnectStatusChanged = function (status, message) {
  31831. /* Callback method called by Strophe as the Strophe.Connection goes
  31832. * through various states while establishing or tearing down a
  31833. * connection.
  31834. */
  31835. _converse.log("Status changed to: ".concat(_converse.CONNECTION_STATUS[status]));
  31836. if (status === Strophe.Status.CONNECTED || status === Strophe.Status.ATTACHED) {
  31837. _converse.setConnectionStatus(status); // By default we always want to send out an initial presence stanza.
  31838. _converse.send_initial_presence = true;
  31839. _converse.setDisconnectionCause();
  31840. if (_converse.connection.reconnecting) {
  31841. _converse.log(status === Strophe.Status.CONNECTED ? 'Reconnected' : 'Reattached');
  31842. _converse.onConnected(true);
  31843. } else {
  31844. _converse.log(status === Strophe.Status.CONNECTED ? 'Connected' : 'Attached');
  31845. if (_converse.connection.restored) {
  31846. // No need to send an initial presence stanza when
  31847. // we're restoring an existing session.
  31848. _converse.send_initial_presence = false;
  31849. }
  31850. _converse.onConnected();
  31851. }
  31852. } else if (status === Strophe.Status.DISCONNECTED) {
  31853. _converse.setDisconnectionCause(status, message);
  31854. _converse.onDisconnected();
  31855. } else if (status === Strophe.Status.ERROR) {
  31856. _converse.setConnectionStatus(status, __('An error occurred while connecting to the chat server.'));
  31857. } else if (status === Strophe.Status.CONNECTING) {
  31858. _converse.setConnectionStatus(status);
  31859. } else if (status === Strophe.Status.AUTHENTICATING) {
  31860. _converse.setConnectionStatus(status);
  31861. } else if (status === Strophe.Status.AUTHFAIL) {
  31862. if (!message) {
  31863. message = __('Your Jabber ID and/or password is incorrect. Please try again.');
  31864. }
  31865. _converse.setConnectionStatus(status, message);
  31866. _converse.setDisconnectionCause(status, message, true);
  31867. _converse.onDisconnected();
  31868. } else if (status === Strophe.Status.CONNFAIL) {
  31869. var feedback = message;
  31870. if (message === "host-unknown" || message == "remote-connection-failed") {
  31871. feedback = __("Sorry, we could not connect to the XMPP host with domain: %1$s", "\"".concat(Strophe.getDomainFromJid(_converse.connection.jid), "\""));
  31872. } else if (!_.isUndefined(message) && message === _.get(Strophe, 'ErrorCondition.NO_AUTH_MECH')) {
  31873. feedback = __("The XMPP server did not offer a supported authentication mechanism");
  31874. }
  31875. _converse.setConnectionStatus(status, feedback);
  31876. _converse.setDisconnectionCause(status, message);
  31877. } else if (status === Strophe.Status.DISCONNECTING) {
  31878. _converse.setDisconnectionCause(status, message);
  31879. }
  31880. };
  31881. this.incrementMsgCounter = function () {
  31882. this.msg_counter += 1;
  31883. var unreadMsgCount = this.msg_counter;
  31884. var title = document.title;
  31885. if (_.isNil(title)) {
  31886. return;
  31887. }
  31888. if (title.search(/^Messages \(\d+\) /) === -1) {
  31889. title = "Messages (".concat(unreadMsgCount, ") ").concat(title);
  31890. } else {
  31891. title = title.replace(/^Messages \(\d+\) /, "Messages (".concat(unreadMsgCount, ")"));
  31892. }
  31893. };
  31894. this.clearMsgCounter = function () {
  31895. this.msg_counter = 0;
  31896. var title = document.title;
  31897. if (_.isNil(title)) {
  31898. return;
  31899. }
  31900. if (title.search(/^Messages \(\d+\) /) !== -1) {
  31901. title = title.replace(/^Messages \(\d+\) /, "");
  31902. }
  31903. };
  31904. this.initStatus = function (reconnecting) {
  31905. // If there's no xmppstatus obj, then we were never connected to
  31906. // begin with, so we set reconnecting to false.
  31907. reconnecting = _.isUndefined(_converse.xmppstatus) ? false : reconnecting;
  31908. if (reconnecting) {
  31909. _converse.onStatusInitialized(reconnecting);
  31910. } else {
  31911. var id = "converse.xmppstatus-".concat(_converse.bare_jid);
  31912. _this.xmppstatus = new _this.XMPPStatus({
  31913. 'id': id
  31914. });
  31915. _this.xmppstatus.browserStorage = new Backbone.BrowserStorage.session(id);
  31916. _this.xmppstatus.fetch({
  31917. 'success': _.partial(_converse.onStatusInitialized, reconnecting),
  31918. 'error': _.partial(_converse.onStatusInitialized, reconnecting)
  31919. });
  31920. }
  31921. };
  31922. this.initClientConfig = function () {
  31923. /* The client config refers to configuration of the client which is
  31924. * independent of any particular user.
  31925. * What this means is that config values need to persist across
  31926. * user sessions.
  31927. */
  31928. var id = b64_sha1('converse.client-config');
  31929. _converse.config = new Backbone.Model({
  31930. 'id': id,
  31931. 'trusted': _converse.trusted && true || false,
  31932. 'storage': _converse.trusted ? 'local' : 'session'
  31933. });
  31934. _converse.config.browserStorage = new Backbone.BrowserStorage.session(id);
  31935. _converse.config.fetch();
  31936. _converse.emit('clientConfigInitialized');
  31937. };
  31938. this.initSession = function () {
  31939. var id = b64_sha1('converse.bosh-session');
  31940. _converse.session = new Backbone.Model({
  31941. 'id': id
  31942. });
  31943. _converse.session.browserStorage = new Backbone.BrowserStorage.session(id);
  31944. _converse.session.fetch();
  31945. _converse.emit('sessionInitialized');
  31946. };
  31947. this.clearSession = function () {
  31948. if (!_converse.config.get('trusted')) {
  31949. window.localStorage.clear();
  31950. window.sessionStorage.clear();
  31951. } else if (!_.isUndefined(this.session) && this.session.browserStorage) {
  31952. this.session.browserStorage._clear();
  31953. }
  31954. _converse.emit('clearSession');
  31955. };
  31956. this.logOut = function () {
  31957. _converse.clearSession();
  31958. _converse.setDisconnectionCause(_converse.LOGOUT, undefined, true);
  31959. if (!_.isUndefined(_converse.connection)) {
  31960. _converse.connection.disconnect();
  31961. } else {
  31962. _converse.tearDown();
  31963. } // Recreate all the promises
  31964. _.each(_.keys(_converse.promises), addPromise);
  31965. _converse.emit('logout');
  31966. };
  31967. this.saveWindowState = function (ev, hidden) {
  31968. // XXX: eventually we should be able to just use
  31969. // document.visibilityState (when we drop support for older
  31970. // browsers).
  31971. var state;
  31972. var event_map = {
  31973. 'focus': "visible",
  31974. 'focusin': "visible",
  31975. 'pageshow': "visible",
  31976. 'blur': "hidden",
  31977. 'focusout': "hidden",
  31978. 'pagehide': "hidden"
  31979. };
  31980. ev = ev || document.createEvent('Events');
  31981. if (ev.type in event_map) {
  31982. state = event_map[ev.type];
  31983. } else {
  31984. state = document[hidden] ? "hidden" : "visible";
  31985. }
  31986. if (state === 'visible') {
  31987. _converse.clearMsgCounter();
  31988. }
  31989. _converse.windowState = state;
  31990. _converse.emit('windowStateChanged', {
  31991. state: state
  31992. });
  31993. };
  31994. this.registerGlobalEventHandlers = function () {
  31995. // Taken from:
  31996. // http://stackoverflow.com/questions/1060008/is-there-a-way-to-detect-if-a-browser-window-is-not-currently-active
  31997. var hidden = "hidden"; // Standards:
  31998. if (hidden in document) {
  31999. document.addEventListener("visibilitychange", _.partial(_converse.saveWindowState, _, hidden));
  32000. } else if ((hidden = "mozHidden") in document) {
  32001. document.addEventListener("mozvisibilitychange", _.partial(_converse.saveWindowState, _, hidden));
  32002. } else if ((hidden = "webkitHidden") in document) {
  32003. document.addEventListener("webkitvisibilitychange", _.partial(_converse.saveWindowState, _, hidden));
  32004. } else if ((hidden = "msHidden") in document) {
  32005. document.addEventListener("msvisibilitychange", _.partial(_converse.saveWindowState, _, hidden));
  32006. } else if ("onfocusin" in document) {
  32007. // IE 9 and lower:
  32008. document.onfocusin = document.onfocusout = _.partial(_converse.saveWindowState, _, hidden);
  32009. } else {
  32010. // All others:
  32011. window.onpageshow = window.onpagehide = window.onfocus = window.onblur = _.partial(_converse.saveWindowState, _, hidden);
  32012. } // set the initial state (but only if browser supports the Page Visibility API)
  32013. if (document[hidden] !== undefined) {
  32014. _.partial(_converse.saveWindowState, _, hidden)({
  32015. type: document[hidden] ? "blur" : "focus"
  32016. });
  32017. }
  32018. _converse.emit('registeredGlobalEventHandlers');
  32019. };
  32020. this.enableCarbons = function () {
  32021. var _this2 = this;
  32022. /* Ask the XMPP server to enable Message Carbons
  32023. * See XEP-0280 https://xmpp.org/extensions/xep-0280.html#enabling
  32024. */
  32025. if (!this.message_carbons || this.session.get('carbons_enabled')) {
  32026. return;
  32027. }
  32028. var carbons_iq = new Strophe.Builder('iq', {
  32029. 'from': this.connection.jid,
  32030. 'id': 'enablecarbons',
  32031. 'type': 'set'
  32032. }).c('enable', {
  32033. xmlns: Strophe.NS.CARBONS
  32034. });
  32035. this.connection.addHandler(function (iq) {
  32036. if (iq.querySelectorAll('error').length > 0) {
  32037. _converse.log('An error occurred while trying to enable message carbons.', Strophe.LogLevel.WARN);
  32038. } else {
  32039. _this2.session.save({
  32040. 'carbons_enabled': true
  32041. });
  32042. _converse.log('Message carbons have been enabled.');
  32043. }
  32044. }, null, "iq", null, "enablecarbons");
  32045. this.connection.send(carbons_iq);
  32046. };
  32047. this.sendInitialPresence = function () {
  32048. if (_converse.send_initial_presence) {
  32049. _converse.xmppstatus.sendPresence();
  32050. }
  32051. };
  32052. this.onStatusInitialized = function (reconnecting) {
  32053. _converse.emit('statusInitialized', reconnecting);
  32054. if (reconnecting) {
  32055. _converse.emit('reconnected');
  32056. } else {
  32057. init_promise.resolve();
  32058. _converse.emit('initialized');
  32059. _converse.emit('connected');
  32060. }
  32061. };
  32062. this.setUserJID = function () {
  32063. _converse.jid = _converse.connection.jid;
  32064. _converse.bare_jid = Strophe.getBareJidFromJid(_converse.connection.jid);
  32065. _converse.resource = Strophe.getResourceFromJid(_converse.connection.jid);
  32066. _converse.domain = Strophe.getDomainFromJid(_converse.connection.jid);
  32067. _converse.emit('setUserJID');
  32068. };
  32069. this.onConnected = function (reconnecting) {
  32070. /* Called as soon as a new connection has been established, either
  32071. * by logging in or by attaching to an existing BOSH session.
  32072. */
  32073. _converse.connection.flush(); // Solves problem of returned PubSub BOSH response not received by browser
  32074. _converse.setUserJID();
  32075. _converse.initSession();
  32076. _converse.enableCarbons();
  32077. _converse.initStatus(reconnecting);
  32078. };
  32079. this.ConnectionFeedback = Backbone.Model.extend({
  32080. defaults: {
  32081. 'connection_status': Strophe.Status.DISCONNECTED,
  32082. 'message': ''
  32083. },
  32084. initialize: function initialize() {
  32085. this.on('change', function () {
  32086. _converse.emit('connfeedback', _converse.connfeedback);
  32087. });
  32088. }
  32089. });
  32090. this.connfeedback = new this.ConnectionFeedback();
  32091. this.XMPPStatus = Backbone.Model.extend({
  32092. defaults: function defaults() {
  32093. return {
  32094. "jid": _converse.bare_jid,
  32095. "status": _converse.default_state
  32096. };
  32097. },
  32098. initialize: function initialize() {
  32099. var _this3 = this;
  32100. this.vcard = _converse.vcards.findWhere({
  32101. 'jid': this.get('jid')
  32102. });
  32103. if (_.isNil(this.vcard)) {
  32104. this.vcard = _converse.vcards.create({
  32105. 'jid': this.get('jid')
  32106. });
  32107. }
  32108. this.on('change:status', function (item) {
  32109. var status = _this3.get('status');
  32110. _this3.sendPresence(status);
  32111. _converse.emit('statusChanged', status);
  32112. });
  32113. this.on('change:status_message', function () {
  32114. var status_message = _this3.get('status_message');
  32115. _this3.sendPresence(_this3.get('status'), status_message);
  32116. _converse.emit('statusMessageChanged', status_message);
  32117. });
  32118. },
  32119. constructPresence: function constructPresence(type, status_message) {
  32120. var presence;
  32121. type = _.isString(type) ? type : this.get('status') || _converse.default_state;
  32122. status_message = _.isString(status_message) ? status_message : this.get('status_message'); // Most of these presence types are actually not explicitly sent,
  32123. // but I add all of them here for reference and future proofing.
  32124. if (type === 'unavailable' || type === 'probe' || type === 'error' || type === 'unsubscribe' || type === 'unsubscribed' || type === 'subscribe' || type === 'subscribed') {
  32125. presence = $pres({
  32126. 'type': type
  32127. });
  32128. } else if (type === 'offline') {
  32129. presence = $pres({
  32130. 'type': 'unavailable'
  32131. });
  32132. } else if (type === 'online') {
  32133. presence = $pres();
  32134. } else {
  32135. presence = $pres().c('show').t(type).up();
  32136. }
  32137. if (status_message) {
  32138. presence.c('status').t(status_message).up();
  32139. }
  32140. presence.c('priority').t(_.isNaN(Number(_converse.priority)) ? 0 : _converse.priority);
  32141. return presence;
  32142. },
  32143. sendPresence: function sendPresence(type, status_message) {
  32144. _converse.connection.send(this.constructPresence(type, status_message));
  32145. }
  32146. });
  32147. this.setUpXMLLogging = function () {
  32148. Strophe.log = function (level, msg) {
  32149. _converse.log(msg, level);
  32150. };
  32151. if (this.debug) {
  32152. this.connection.xmlInput = function (body) {
  32153. _converse.log(body.outerHTML, Strophe.LogLevel.DEBUG, 'color: darkgoldenrod');
  32154. };
  32155. this.connection.xmlOutput = function (body) {
  32156. _converse.log(body.outerHTML, Strophe.LogLevel.DEBUG, 'color: darkcyan');
  32157. };
  32158. }
  32159. };
  32160. this.fetchLoginCredentials = function () {
  32161. return new Promise(function (resolve, reject) {
  32162. var xhr = new XMLHttpRequest();
  32163. xhr.open('GET', _converse.credentials_url, true);
  32164. xhr.setRequestHeader('Accept', "application/json, text/javascript");
  32165. xhr.onload = function () {
  32166. if (xhr.status >= 200 && xhr.status < 400) {
  32167. var data = JSON.parse(xhr.responseText);
  32168. resolve({
  32169. 'jid': data.jid,
  32170. 'password': data.password
  32171. });
  32172. } else {
  32173. xhr.onerror();
  32174. }
  32175. };
  32176. xhr.onerror = function () {
  32177. delete _converse.connection;
  32178. _converse.emit('noResumeableSession', this);
  32179. reject(xhr.responseText);
  32180. };
  32181. xhr.send();
  32182. });
  32183. };
  32184. this.startNewBOSHSession = function () {
  32185. var xhr = new XMLHttpRequest();
  32186. xhr.open('GET', _converse.prebind_url, true);
  32187. xhr.setRequestHeader('Accept', "application/json, text/javascript");
  32188. xhr.onload = function () {
  32189. if (xhr.status >= 200 && xhr.status < 400) {
  32190. var data = JSON.parse(xhr.responseText);
  32191. _converse.connection.attach(data.jid, data.sid, data.rid, _converse.onConnectStatusChanged);
  32192. } else {
  32193. xhr.onerror();
  32194. }
  32195. };
  32196. xhr.onerror = function () {
  32197. delete _converse.connection;
  32198. _converse.emit('noResumeableSession', this);
  32199. };
  32200. xhr.send();
  32201. };
  32202. this.restoreBOSHSession = function (jid_is_required) {
  32203. /* Tries to restore a cached BOSH session. */
  32204. if (!this.jid) {
  32205. var msg = "restoreBOSHSession: tried to restore a \"keepalive\" session " + "but we don't have the JID for the user!";
  32206. if (jid_is_required) {
  32207. throw new Error(msg);
  32208. } else {
  32209. _converse.log(msg);
  32210. }
  32211. }
  32212. try {
  32213. this.connection.restore(this.jid, this.onConnectStatusChanged);
  32214. return true;
  32215. } catch (e) {
  32216. _converse.log("Could not restore session for jid: " + this.jid + " Error message: " + e.message, Strophe.LogLevel.WARN);
  32217. this.clearSession(); // We want to clear presences (see #555)
  32218. return false;
  32219. }
  32220. };
  32221. this.attemptPreboundSession = function (reconnecting) {
  32222. /* Handle session resumption or initialization when prebind is
  32223. * being used.
  32224. */
  32225. if (!reconnecting) {
  32226. if (this.keepalive && this.restoreBOSHSession(true)) {
  32227. return;
  32228. } // No keepalive, or session resumption has failed.
  32229. if (this.jid && this.sid && this.rid) {
  32230. return this.connection.attach(this.jid, this.sid, this.rid, this.onConnectStatusChanged);
  32231. }
  32232. }
  32233. if (this.prebind_url) {
  32234. return this.startNewBOSHSession();
  32235. } else {
  32236. throw new Error("attemptPreboundSession: If you use prebind and not keepalive, " + "then you MUST supply JID, RID and SID values or a prebind_url.");
  32237. }
  32238. };
  32239. this.attemptNonPreboundSession = function (credentials, reconnecting) {
  32240. /* Handle session resumption or initialization when prebind is not being used.
  32241. *
  32242. * Two potential options exist and are handled in this method:
  32243. * 1. keepalive
  32244. * 2. auto_login
  32245. */
  32246. if (!reconnecting && this.keepalive && this.restoreBOSHSession()) {
  32247. return;
  32248. }
  32249. if (credentials) {
  32250. // When credentials are passed in, they override prebinding
  32251. // or credentials fetching via HTTP
  32252. this.autoLogin(credentials);
  32253. } else if (this.auto_login) {
  32254. if (this.credentials_url) {
  32255. this.fetchLoginCredentials().then(this.autoLogin.bind(this), this.autoLogin.bind(this));
  32256. } else if (!this.jid) {
  32257. throw new Error("attemptNonPreboundSession: If you use auto_login, " + "you also need to give either a jid value (and if " + "applicable a password) or you need to pass in a URL " + "from where the username and password can be fetched " + "(via credentials_url).");
  32258. } else {
  32259. this.autoLogin(); // Could be ANONYMOUS or EXTERNAL
  32260. }
  32261. } else if (reconnecting) {
  32262. this.autoLogin();
  32263. }
  32264. };
  32265. this.autoLogin = function (credentials) {
  32266. if (credentials) {
  32267. // If passed in, the credentials come from credentials_url,
  32268. // so we set them on the converse object.
  32269. this.jid = credentials.jid;
  32270. }
  32271. if (this.authentication === _converse.ANONYMOUS || this.authentication === _converse.EXTERNAL) {
  32272. if (!this.jid) {
  32273. throw new Error("Config Error: when using anonymous login " + "you need to provide the server's domain via the 'jid' option. " + "Either when calling converse.initialize, or when calling " + "_converse.api.user.login.");
  32274. }
  32275. if (!this.connection.reconnecting) {
  32276. this.connection.reset();
  32277. }
  32278. this.connection.connect(this.jid.toLowerCase(), null, this.onConnectStatusChanged, BOSH_WAIT);
  32279. } else if (this.authentication === _converse.LOGIN) {
  32280. var password = _.isNil(credentials) ? _converse.connection.pass || this.password : credentials.password;
  32281. if (!password) {
  32282. if (this.auto_login) {
  32283. throw new Error("initConnection: If you use auto_login and " + "authentication='login' then you also need to provide a password.");
  32284. }
  32285. _converse.setDisconnectionCause(Strophe.Status.AUTHFAIL, undefined, true);
  32286. _converse.disconnect();
  32287. return;
  32288. }
  32289. var resource = Strophe.getResourceFromJid(this.jid);
  32290. if (!resource) {
  32291. this.jid = this.jid.toLowerCase() + _converse.generateResource();
  32292. } else {
  32293. this.jid = Strophe.getBareJidFromJid(this.jid).toLowerCase() + '/' + resource;
  32294. }
  32295. if (!this.connection.reconnecting) {
  32296. this.connection.reset();
  32297. }
  32298. this.connection.connect(this.jid, password, this.onConnectStatusChanged, BOSH_WAIT);
  32299. }
  32300. };
  32301. this.logIn = function (credentials, reconnecting) {
  32302. // We now try to resume or automatically set up a new session.
  32303. // Otherwise the user will be shown a login form.
  32304. if (this.authentication === _converse.PREBIND) {
  32305. this.attemptPreboundSession(reconnecting);
  32306. } else {
  32307. this.attemptNonPreboundSession(credentials, reconnecting);
  32308. }
  32309. };
  32310. this.initConnection = function () {
  32311. /* Creates a new Strophe.Connection instance if we don't already have one.
  32312. */
  32313. if (!this.connection) {
  32314. if (!this.bosh_service_url && !this.websocket_url) {
  32315. throw new Error("initConnection: you must supply a value for either the bosh_service_url or websocket_url or both.");
  32316. }
  32317. if (('WebSocket' in window || 'MozWebSocket' in window) && this.websocket_url) {
  32318. this.connection = new Strophe.Connection(this.websocket_url, this.connection_options);
  32319. } else if (this.bosh_service_url) {
  32320. this.connection = new Strophe.Connection(this.bosh_service_url, _.assignIn(this.connection_options, {
  32321. 'keepalive': this.keepalive
  32322. }));
  32323. } else {
  32324. throw new Error("initConnection: this browser does not support websockets and bosh_service_url wasn't specified.");
  32325. }
  32326. }
  32327. _converse.emit('connectionInitialized');
  32328. };
  32329. this.tearDown = function () {
  32330. /* Remove those views which are only allowed with a valid
  32331. * connection.
  32332. */
  32333. _converse.emit('beforeTearDown');
  32334. if (!_.isUndefined(_converse.session)) {
  32335. _converse.session.destroy();
  32336. }
  32337. window.removeEventListener('click', _converse.onUserActivity);
  32338. window.removeEventListener('focus', _converse.onUserActivity);
  32339. window.removeEventListener('keypress', _converse.onUserActivity);
  32340. window.removeEventListener('mousemove', _converse.onUserActivity);
  32341. window.removeEventListener(_converse.unloadevent, _converse.onUserActivity);
  32342. window.clearInterval(_converse.everySecondTrigger);
  32343. _converse.emit('afterTearDown');
  32344. return _converse;
  32345. };
  32346. this.initPlugins = function () {
  32347. // If initialize gets called a second time (e.g. during tests), then we
  32348. // need to re-apply all plugins (for a new converse instance), and we
  32349. // therefore need to clear this array that prevents plugins from being
  32350. // initialized twice.
  32351. // If initialize is called for the first time, then this array is empty
  32352. // in any case.
  32353. _converse.pluggable.initialized_plugins = [];
  32354. var whitelist = _converse.core_plugins.concat(_converse.whitelisted_plugins);
  32355. if (_converse.view_mode === 'embedded') {
  32356. _.forEach([// eslint-disable-line lodash/prefer-map
  32357. "converse-bookmarks", "converse-controlbox", "converse-headline", "converse-register"], function (name) {
  32358. _converse.blacklisted_plugins.push(name);
  32359. });
  32360. }
  32361. _converse.pluggable.initializePlugins({
  32362. 'updateSettings': function updateSettings() {
  32363. _converse.log("(DEPRECATION) " + "The `updateSettings` method has been deprecated. " + "Please use `_converse.api.settings.update` instead.", Strophe.LogLevel.WARN);
  32364. _converse.api.settings.update.apply(_converse, arguments);
  32365. },
  32366. '_converse': _converse
  32367. }, whitelist, _converse.blacklisted_plugins);
  32368. _converse.emit('pluginsInitialized');
  32369. }; // Initialization
  32370. // --------------
  32371. // This is the end of the initialize method.
  32372. if (settings.connection) {
  32373. this.connection = settings.connection;
  32374. }
  32375. function finishInitialization() {
  32376. _converse.initPlugins();
  32377. _converse.initClientConfig();
  32378. _converse.initConnection();
  32379. _converse.setUpXMLLogging();
  32380. _converse.logIn();
  32381. _converse.registerGlobalEventHandlers();
  32382. if (!Backbone.history.started) {
  32383. Backbone.history.start();
  32384. }
  32385. }
  32386. if (!_.isUndefined(_converse.connection) && _converse.connection.service === 'jasmine tests') {
  32387. finishInitialization();
  32388. return _converse;
  32389. } else if (_.isUndefined(i18n)) {
  32390. finishInitialization();
  32391. } else {
  32392. i18n.fetchTranslations(_converse.locale, _converse.locales, u.interpolate(_converse.locales_url, {
  32393. 'locale': _converse.locale
  32394. })).catch(function (e) {
  32395. return _converse.log(e.message, Strophe.LogLevel.FATAL);
  32396. }).then(finishInitialization).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  32397. }
  32398. return init_promise;
  32399. };
  32400. /**
  32401. * ### The private API
  32402. *
  32403. * The private API methods are only accessible via the closured {@link _converse}
  32404. * object, which is only available to plugins.
  32405. *
  32406. * These methods are kept private (i.e. not global) because they may return
  32407. * sensitive data which should be kept off-limits to other 3rd-party scripts
  32408. * that might be running in the page.
  32409. *
  32410. * @namespace _converse.api
  32411. * @memberOf _converse
  32412. */
  32413. _converse.api = {
  32414. /**
  32415. * This grouping collects API functions related to the XMPP connection.
  32416. *
  32417. * @namespace _converse.api.connection
  32418. * @memberOf _converse.api
  32419. */
  32420. 'connection': {
  32421. /**
  32422. * @method _converse.api.connection.connected
  32423. * @memberOf _converse.api.connection
  32424. * @returns {boolean} Whether there is an established connection or not.
  32425. */
  32426. 'connected': function connected() {
  32427. return _converse.connection && _converse.connection.connected || false;
  32428. },
  32429. /**
  32430. * Terminates the connection.
  32431. *
  32432. * @method _converse.api.connection.disconnect
  32433. * @memberOf _converse.api.connection
  32434. */
  32435. 'disconnect': function disconnect() {
  32436. _converse.connection.disconnect();
  32437. }
  32438. },
  32439. /**
  32440. * Lets you emit (i.e. trigger) events, which can be listened to via
  32441. * {@link _converse.api.listen.on} or {@link _converse.api.listen.once}
  32442. * (see [_converse.api.listen](http://localhost:8000/docs/html/api/-_converse.api.listen.html)).
  32443. *
  32444. * @method _converse.api.emit
  32445. */
  32446. 'emit': function emit() {
  32447. _converse.emit.apply(_converse, arguments);
  32448. },
  32449. /**
  32450. * This grouping collects API functions related to the current logged in user.
  32451. *
  32452. * @namespace _converse.api.user
  32453. * @memberOf _converse.api
  32454. */
  32455. 'user': {
  32456. /**
  32457. * @method _converse.api.user.jid
  32458. * @returns {string} The current user's full JID (Jabber ID)
  32459. * @example _converse.api.user.jid())
  32460. */
  32461. 'jid': function jid() {
  32462. return _converse.connection.jid;
  32463. },
  32464. /**
  32465. * Logs the user in.
  32466. *
  32467. * If called without any parameters, Converse will try
  32468. * to log the user in by calling the `prebind_url` or `credentials_url` depending
  32469. * on whether prebinding is used or not.
  32470. *
  32471. * @method _converse.api.user.login
  32472. * @param {object} [credentials] An object with the credentials.
  32473. * @example
  32474. * converse.plugins.add('myplugin', {
  32475. * initialize: function () {
  32476. *
  32477. * this._converse.api.user.login({
  32478. * 'jid': 'dummy@example.com',
  32479. * 'password': 'secret'
  32480. * });
  32481. *
  32482. * }
  32483. * });
  32484. */
  32485. 'login': function login(credentials) {
  32486. _converse.logIn(credentials);
  32487. },
  32488. /**
  32489. * Logs the user out of the current XMPP session.
  32490. *
  32491. * @method _converse.api.user.logout
  32492. * @example _converse.api.user.logout();
  32493. */
  32494. 'logout': function logout() {
  32495. _converse.logOut();
  32496. },
  32497. /**
  32498. * Set and get the user's chat status, also called their *availability*.
  32499. *
  32500. * @namespace _converse.api.user.status
  32501. * @memberOf _converse.api.user
  32502. */
  32503. 'status': {
  32504. /** Return the current user's availability status.
  32505. *
  32506. * @method _converse.api.user.status.get
  32507. * @example _converse.api.user.status.get();
  32508. */
  32509. 'get': function get() {
  32510. return _converse.xmppstatus.get('status');
  32511. },
  32512. /**
  32513. * The user's status can be set to one of the following values:
  32514. *
  32515. * @method _converse.api.user.status.set
  32516. * @param {string} value The user's chat status (e.g. 'away', 'dnd', 'offline', 'online', 'unavailable' or 'xa')
  32517. * @param {string} [message] A custom status message
  32518. *
  32519. * @example this._converse.api.user.status.set('dnd');
  32520. * @example this._converse.api.user.status.set('dnd', 'In a meeting');
  32521. */
  32522. 'set': function set(value, message) {
  32523. var data = {
  32524. 'status': value
  32525. };
  32526. if (!_.includes(_.keys(_converse.STATUS_WEIGHTS), value)) {
  32527. throw new Error('Invalid availability value. See https://xmpp.org/rfcs/rfc3921.html#rfc.section.2.2.2.1');
  32528. }
  32529. if (_.isString(message)) {
  32530. data.status_message = message;
  32531. }
  32532. _converse.xmppstatus.sendPresence(value);
  32533. _converse.xmppstatus.save(data);
  32534. },
  32535. /**
  32536. * Set and retrieve the user's custom status message.
  32537. *
  32538. * @namespace _converse.api.user.status.message
  32539. * @memberOf _converse.api.user.status
  32540. */
  32541. 'message': {
  32542. /**
  32543. * @method _converse.api.user.status.message.get
  32544. * @returns {string} The status message
  32545. * @example const message = _converse.api.user.status.message.get()
  32546. */
  32547. 'get': function get() {
  32548. return _converse.xmppstatus.get('status_message');
  32549. },
  32550. /**
  32551. * @method _converse.api.user.status.message.set
  32552. * @param {string} status The status message
  32553. * @example _converse.api.user.status.message.set('In a meeting');
  32554. */
  32555. 'set': function set(status) {
  32556. _converse.xmppstatus.save({
  32557. 'status_message': status
  32558. });
  32559. }
  32560. }
  32561. }
  32562. },
  32563. /**
  32564. * This grouping allows access to the
  32565. * [configuration settings](/docs/html/configuration.html#configuration-settings)
  32566. * of Converse.
  32567. *
  32568. * @namespace _converse.api.settings
  32569. * @memberOf _converse.api
  32570. */
  32571. 'settings': {
  32572. /**
  32573. * Allows new configuration settings to be specified, or new default values for
  32574. * existing configuration settings to be specified.
  32575. *
  32576. * @method _converse.api.settings.update
  32577. * @param {object} settings The configuration settings
  32578. * @example
  32579. * _converse.api.settings.update({
  32580. * 'enable_foo': true
  32581. * });
  32582. *
  32583. * // The user can then override the default value of the configuration setting when
  32584. * // calling `converse.initialize`.
  32585. * converse.initialize({
  32586. * 'enable_foo': false
  32587. * });
  32588. */
  32589. 'update': function update(settings) {
  32590. u.merge(_converse.default_settings, settings);
  32591. u.merge(_converse, settings);
  32592. u.applyUserSettings(_converse, settings, _converse.user_settings);
  32593. },
  32594. /**
  32595. * @method _converse.api.settings.get
  32596. * @returns {*} Value of the particular configuration setting.
  32597. * @example _converse.api.settings.get("play_sounds");
  32598. */
  32599. 'get': function get(key) {
  32600. if (_.includes(_.keys(_converse.default_settings), key)) {
  32601. return _converse[key];
  32602. }
  32603. },
  32604. /**
  32605. * Set one or many configuration settings.
  32606. *
  32607. * Note, this is not an alternative to calling {@link converse.initialize}, which still needs
  32608. * to be called. Generally, you'd use this method after Converse is already
  32609. * running and you want to change the configuration on-the-fly.
  32610. *
  32611. * @method _converse.api.settings.set
  32612. * @param {Object} [settings] An object containing configuration settings.
  32613. * @param {string} [key] Alternatively to passing in an object, you can pass in a key and a value.
  32614. * @param {string} [value]
  32615. * @example _converse.api.settings.set("play_sounds", true);
  32616. * @example
  32617. * _converse.api.settings.set({
  32618. * "play_sounds", true,
  32619. * "hide_offline_users" true
  32620. * });
  32621. */
  32622. 'set': function set(key, val) {
  32623. var o = {};
  32624. if (_.isObject(key)) {
  32625. _.assignIn(_converse, _.pick(key, _.keys(_converse.default_settings)));
  32626. } else if (_.isString("string")) {
  32627. o[key] = val;
  32628. _.assignIn(_converse, _.pick(o, _.keys(_converse.default_settings)));
  32629. }
  32630. }
  32631. },
  32632. /**
  32633. * Converse and its plugins emit various events which you can listen to via the
  32634. * {@link _converse.api.listen} namespace.
  32635. *
  32636. * Some of these events are also available as [ES2015 Promises](http://es6-features.org/#PromiseUsage)
  32637. * although not all of them could logically act as promises, since some events
  32638. * might be fired multpile times whereas promises are to be resolved (or
  32639. * rejected) only once.
  32640. *
  32641. * Events which are also promises include:
  32642. *
  32643. * * [cachedRoster](/docs/html/events.html#cachedroster)
  32644. * * [chatBoxesFetched](/docs/html/events.html#chatBoxesFetched)
  32645. * * [pluginsInitialized](/docs/html/events.html#pluginsInitialized)
  32646. * * [roster](/docs/html/events.html#roster)
  32647. * * [rosterContactsFetched](/docs/html/events.html#rosterContactsFetched)
  32648. * * [rosterGroupsFetched](/docs/html/events.html#rosterGroupsFetched)
  32649. * * [rosterInitialized](/docs/html/events.html#rosterInitialized)
  32650. * * [statusInitialized](/docs/html/events.html#statusInitialized)
  32651. * * [roomsPanelRendered](/docs/html/events.html#roomsPanelRendered)
  32652. *
  32653. * The various plugins might also provide promises, and they do this by using the
  32654. * `promises.add` api method.
  32655. *
  32656. * @namespace _converse.api.promises
  32657. * @memberOf _converse.api
  32658. */
  32659. 'promises': {
  32660. /**
  32661. * By calling `promises.add`, a new [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)
  32662. * is made available for other code or plugins to depend on via the
  32663. * {@link _converse.api.waitUntil} method.
  32664. *
  32665. * Generally, it's the responsibility of the plugin which adds the promise to
  32666. * also resolve it.
  32667. *
  32668. * This is done by calling {@link _converse.api.emit}, which not only resolves the
  32669. * promise, but also emits an event with the same name (which can be listened to
  32670. * via {@link _converse.api.listen}).
  32671. *
  32672. * @method _converse.api.promises.add
  32673. * @param {string|array} [name|names] The name or an array of names for the promise(s) to be added
  32674. * @example _converse.api.promises.add('foo-completed');
  32675. */
  32676. 'add': function add(promises) {
  32677. promises = _.isArray(promises) ? promises : [promises];
  32678. _.each(promises, addPromise);
  32679. }
  32680. },
  32681. /**
  32682. * This namespace lets you access the BOSH tokens
  32683. *
  32684. * @namespace _converse.api.tokens
  32685. * @memberOf _converse.api
  32686. */
  32687. 'tokens': {
  32688. /**
  32689. * @method _converse.api.tokens.get
  32690. * @param {string} [id] The type of token to return ('rid' or 'sid').
  32691. * @returns 'string' A token, either the RID or SID token depending on what's asked for.
  32692. * @example _converse.api.tokens.get('rid');
  32693. */
  32694. 'get': function get(id) {
  32695. if (!_converse.expose_rid_and_sid || _.isUndefined(_converse.connection)) {
  32696. return null;
  32697. }
  32698. if (id.toLowerCase() === 'rid') {
  32699. return _converse.connection.rid || _converse.connection._proto.rid;
  32700. } else if (id.toLowerCase() === 'sid') {
  32701. return _converse.connection.sid || _converse.connection._proto.sid;
  32702. }
  32703. }
  32704. },
  32705. /**
  32706. * Converse emits events to which you can subscribe to.
  32707. *
  32708. * The `listen` namespace exposes methods for creating event listeners
  32709. * (aka handlers) for these events.
  32710. *
  32711. * @namespace _converse.api.listen
  32712. * @memberOf _converse
  32713. */
  32714. 'listen': {
  32715. /**
  32716. * Lets you listen to an event exactly once.
  32717. *
  32718. * @method _converse.api.listen.once
  32719. * @param {string} name The event's name
  32720. * @param {function} callback The callback method to be called when the event is emitted.
  32721. * @param {object} [context] The value of the `this` parameter for the callback.
  32722. * @example _converse.api.listen.once('message', function (messageXML) { ... });
  32723. */
  32724. 'once': _converse.once.bind(_converse),
  32725. /**
  32726. * Lets you subscribe to an event.
  32727. *
  32728. * Every time the event fires, the callback method specified by `callback` will be called.
  32729. *
  32730. * @method _converse.api.listen.on
  32731. * @param {string} name The event's name
  32732. * @param {function} callback The callback method to be called when the event is emitted.
  32733. * @param {object} [context] The value of the `this` parameter for the callback.
  32734. * @example _converse.api.listen.on('message', function (messageXML) { ... });
  32735. */
  32736. 'on': _converse.on.bind(_converse),
  32737. /**
  32738. * To stop listening to an event, you can use the `not` method.
  32739. *
  32740. * Every time the event fires, the callback method specified by `callback` will be called.
  32741. *
  32742. * @method _converse.api.listen.not
  32743. * @param {string} name The event's name
  32744. * @param {function} callback The callback method that is to no longer be called when the event fires
  32745. * @example _converse.api.listen.not('message', function (messageXML);
  32746. */
  32747. 'not': _converse.off.bind(_converse),
  32748. /**
  32749. * Subscribe to an incoming stanza
  32750. *
  32751. * Every a matched stanza is received, the callback method specified by `callback` will be called.
  32752. *
  32753. * @method _converse.api.listen.stanza
  32754. * @param {string} name The stanza's name
  32755. * @param {object} options Matching options
  32756. * (e.g. 'ns' for namespace, 'type' for stanza type, also 'id' and 'from');
  32757. * @param {function} handler The callback method to be called when the stanza appears
  32758. */
  32759. 'stanza': function stanza(name, options, handler) {
  32760. if (_.isFunction(options)) {
  32761. handler = options;
  32762. options = {};
  32763. } else {
  32764. options = options || {};
  32765. }
  32766. _converse.connection.addHandler(handler, options.ns, name, options.type, options.id, options.from, options);
  32767. }
  32768. },
  32769. /**
  32770. * Wait until a promise is resolved
  32771. *
  32772. * @method _converse.api.waitUntil
  32773. * @param {string} name The name of the promise
  32774. * @returns {Promise}
  32775. */
  32776. 'waitUntil': function waitUntil(name) {
  32777. var promise = _converse.promises[name];
  32778. if (_.isUndefined(promise)) {
  32779. return null;
  32780. }
  32781. return promise;
  32782. },
  32783. /**
  32784. * Allows you to send XML stanzas.
  32785. *
  32786. * @method _converse.api.send
  32787. * @example
  32788. * const msg = converse.env.$msg({
  32789. * 'from': 'juliet@example.com/balcony',
  32790. * 'to': 'romeo@example.net',
  32791. * 'type':'chat'
  32792. * });
  32793. * _converse.api.send(msg);
  32794. */
  32795. 'send': function send(stanza) {
  32796. _converse.connection.send(stanza);
  32797. },
  32798. /**
  32799. * Send an IQ stanza and receive a promise
  32800. *
  32801. * @method _converse.api.sendIQ
  32802. * @returns {Promise} A promise which resolves when we receive a `result` stanza
  32803. * or is rejected when we receive an `error` stanza.
  32804. */
  32805. 'sendIQ': function sendIQ(stanza) {
  32806. return new Promise(function (resolve, reject) {
  32807. _converse.connection.sendIQ(stanza, resolve, reject, _converse.IQ_TIMEOUT);
  32808. });
  32809. }
  32810. };
  32811. /**
  32812. * ### The Public API
  32813. *
  32814. * This namespace contains public API methods which are are
  32815. * accessible on the global `converse` object.
  32816. * They are public, because any JavaScript in the
  32817. * page can call them. Public methods therefore don’t expose any sensitive
  32818. * or closured data. To do that, you’ll need to create a plugin, which has
  32819. * access to the private API method.
  32820. *
  32821. * @namespace converse
  32822. */
  32823. var converse = {
  32824. /**
  32825. * Public API method which initializes Converse.
  32826. * This method must always be called when using Converse.
  32827. *
  32828. * @memberOf converse
  32829. * @method initialize
  32830. * @param {object} config A map of [configuration-settings](https://conversejs.org/docs/html/configuration.html#configuration-settings).
  32831. *
  32832. * @example
  32833. * converse.initialize({
  32834. * allow_otr: true,
  32835. * auto_list_rooms: false,
  32836. * auto_subscribe: false,
  32837. * bosh_service_url: 'https://bind.example.com',
  32838. * hide_muc_server: false,
  32839. * i18n: locales['en'],
  32840. * keepalive: true,
  32841. * play_sounds: true,
  32842. * prebind: false,
  32843. * show_controlbox_by_default: true,
  32844. * debug: false,
  32845. * roster_groups: true
  32846. * });
  32847. */
  32848. 'initialize': function initialize(settings, callback) {
  32849. return _converse.initialize(settings, callback);
  32850. },
  32851. /**
  32852. * Exposes methods for adding and removing plugins. You'll need to write a plugin
  32853. * if you want to have access to the private API methods defined further down below.
  32854. *
  32855. * For more information on plugins, read the documentation on [writing a plugin](/docs/html/plugin_development.html).
  32856. *
  32857. * @namespace plugins
  32858. * @memberOf converse
  32859. */
  32860. 'plugins': {
  32861. /** Registers a new plugin.
  32862. *
  32863. * @method converse.plugins.add
  32864. * @param {string} name The name of the plugin
  32865. * @param {object} plugin The plugin object
  32866. *
  32867. * @example
  32868. *
  32869. * const plugin = {
  32870. * initialize: function () {
  32871. * // Gets called as soon as the plugin has been loaded.
  32872. *
  32873. * // Inside this method, you have access to the private
  32874. * // API via `_covnerse.api`.
  32875. *
  32876. * // The private _converse object contains the core logic
  32877. * // and data-structures of Converse.
  32878. * }
  32879. * }
  32880. * converse.plugins.add('myplugin', plugin);
  32881. */
  32882. 'add': function add(name, plugin) {
  32883. plugin.__name__ = name;
  32884. if (!_.isUndefined(_converse.pluggable.plugins[name])) {
  32885. throw new TypeError("Error: plugin with name \"".concat(name, "\" has already been ") + 'registered!');
  32886. } else {
  32887. _converse.pluggable.plugins[name] = plugin;
  32888. }
  32889. }
  32890. },
  32891. /**
  32892. * Utility methods and globals from bundled 3rd party libraries.
  32893. * @memberOf converse
  32894. *
  32895. * @property {function} converse.env.$build - Creates a Strophe.Builder, for creating stanza objects.
  32896. * @property {function} converse.env.$iq - Creates a Strophe.Builder with an <iq/> element as the root.
  32897. * @property {function} converse.env.$msg - Creates a Strophe.Builder with an <message/> element as the root.
  32898. * @property {function} converse.env.$pres - Creates a Strophe.Builder with an <presence/> element as the root.
  32899. * @property {object} converse.env.Backbone - The [Backbone](http://backbonejs.org) object used by Converse to create models and views.
  32900. * @property {function} converse.env.Promise - The Promise implementation used by Converse.
  32901. * @property {function} converse.env.Strophe - The [Strophe](http://strophe.im/strophejs) XMPP library used by Converse.
  32902. * @property {object} converse.env._ - The instance of [lodash](http://lodash.com) used by Converse.
  32903. * @property {function} converse.env.f - And instance of Lodash with its methods wrapped to produce immutable auto-curried iteratee-first data-last methods.
  32904. * @property {function} converse.env.b64_sha1 - Utility method from Strophe for creating base64 encoded sha1 hashes.
  32905. * @property {object} converse.env.moment - [Moment](https://momentjs.com) date manipulation library.
  32906. * @property {function} converse.env.sizzle - [Sizzle](https://sizzlejs.com) CSS selector engine.
  32907. * @property {object} converse.env.utils - Module containing common utility methods used by Converse.
  32908. */
  32909. 'env': {
  32910. '$build': $build,
  32911. '$iq': $iq,
  32912. '$msg': $msg,
  32913. '$pres': $pres,
  32914. 'Backbone': Backbone,
  32915. 'Promise': Promise,
  32916. 'Strophe': Strophe,
  32917. '_': _,
  32918. 'f': f,
  32919. 'b64_sha1': b64_sha1,
  32920. 'moment': moment,
  32921. 'sizzle': sizzle,
  32922. 'utils': u
  32923. }
  32924. };
  32925. window.converse = converse;
  32926. window.dispatchEvent(new CustomEvent('converse-loaded'));
  32927. return converse;
  32928. });
  32929. /***/ }),
  32930. /***/ "./src/converse-disco.js":
  32931. /*!*******************************!*\
  32932. !*** ./src/converse-disco.js ***!
  32933. \*******************************/
  32934. /*! no static exports found */
  32935. /***/ (function(module, exports, __webpack_require__) {
  32936. "use strict";
  32937. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  32938. // Converse.js
  32939. // http://conversejs.org
  32940. //
  32941. // Copyright (c) 2013-2018, the Converse developers
  32942. // Licensed under the Mozilla Public License (MPLv2)
  32943. /* This is a Converse plugin which add support for XEP-0030: Service Discovery */
  32944. (function (root, factory) {
  32945. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! sizzle */ "./node_modules/sizzle/dist/sizzle.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  32946. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  32947. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  32948. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  32949. })(void 0, function (converse, sizzle) {
  32950. var _converse$env = converse.env,
  32951. Backbone = _converse$env.Backbone,
  32952. Promise = _converse$env.Promise,
  32953. Strophe = _converse$env.Strophe,
  32954. $iq = _converse$env.$iq,
  32955. b64_sha1 = _converse$env.b64_sha1,
  32956. utils = _converse$env.utils,
  32957. _ = _converse$env._,
  32958. f = _converse$env.f;
  32959. converse.plugins.add('converse-disco', {
  32960. initialize: function initialize() {
  32961. /* The initialize function gets called as soon as the plugin is
  32962. * loaded by converse.js's plugin machinery.
  32963. */
  32964. var _converse = this._converse; // Promises exposed by this plugin
  32965. _converse.api.promises.add('discoInitialized');
  32966. _converse.DiscoEntity = Backbone.Model.extend({
  32967. /* A Disco Entity is a JID addressable entity that can be queried
  32968. * for features.
  32969. *
  32970. * See XEP-0030: https://xmpp.org/extensions/xep-0030.html
  32971. */
  32972. idAttribute: 'jid',
  32973. initialize: function initialize() {
  32974. this.waitUntilFeaturesDiscovered = utils.getResolveablePromise();
  32975. this.dataforms = new Backbone.Collection();
  32976. this.dataforms.browserStorage = new Backbone.BrowserStorage.session(b64_sha1("converse.dataforms-{this.get('jid')}"));
  32977. this.features = new Backbone.Collection();
  32978. this.features.browserStorage = new Backbone.BrowserStorage.session(b64_sha1("converse.features-".concat(this.get('jid'))));
  32979. this.features.on('add', this.onFeatureAdded, this);
  32980. this.identities = new Backbone.Collection();
  32981. this.identities.browserStorage = new Backbone.BrowserStorage.session(b64_sha1("converse.identities-".concat(this.get('jid'))));
  32982. this.fetchFeatures();
  32983. this.items = new _converse.DiscoEntities();
  32984. this.items.browserStorage = new Backbone.BrowserStorage.session(b64_sha1("converse.disco-items-".concat(this.get('jid'))));
  32985. this.items.fetch();
  32986. },
  32987. getIdentity: function getIdentity(category, type) {
  32988. /* Returns a Promise which resolves with a map indicating
  32989. * whether a given identity is provided.
  32990. *
  32991. * Parameters:
  32992. * (String) category - The identity category
  32993. * (String) type - The identity type
  32994. */
  32995. var entity = this;
  32996. return new Promise(function (resolve, reject) {
  32997. function fulfillPromise() {
  32998. var model = entity.identities.findWhere({
  32999. 'category': category,
  33000. 'type': type
  33001. });
  33002. resolve(model);
  33003. }
  33004. entity.waitUntilFeaturesDiscovered.then(fulfillPromise).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  33005. });
  33006. },
  33007. hasFeature: function hasFeature(feature) {
  33008. /* Returns a Promise which resolves with a map indicating
  33009. * whether a given feature is supported.
  33010. *
  33011. * Parameters:
  33012. * (String) feature - The feature that might be supported.
  33013. */
  33014. var entity = this;
  33015. return new Promise(function (resolve, reject) {
  33016. function fulfillPromise() {
  33017. if (entity.features.findWhere({
  33018. 'var': feature
  33019. })) {
  33020. resolve(entity);
  33021. } else {
  33022. resolve();
  33023. }
  33024. }
  33025. entity.waitUntilFeaturesDiscovered.then(fulfillPromise).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  33026. });
  33027. },
  33028. onFeatureAdded: function onFeatureAdded(feature) {
  33029. feature.entity = this;
  33030. _converse.emit('serviceDiscovered', feature);
  33031. },
  33032. fetchFeatures: function fetchFeatures() {
  33033. var _this = this;
  33034. if (this.features.browserStorage.records.length === 0) {
  33035. this.queryInfo();
  33036. } else {
  33037. this.features.fetch({
  33038. add: true,
  33039. success: function success() {
  33040. _this.waitUntilFeaturesDiscovered.resolve(_this);
  33041. _this.trigger('featuresDiscovered');
  33042. }
  33043. });
  33044. this.identities.fetch({
  33045. add: true
  33046. });
  33047. }
  33048. },
  33049. queryInfo: function queryInfo() {
  33050. var _this2 = this;
  33051. _converse.api.disco.info(this.get('jid'), null).then(function (stanza) {
  33052. return _this2.onInfo(stanza);
  33053. }).catch(function (iq) {
  33054. _this2.waitUntilFeaturesDiscovered.resolve(_this2);
  33055. _converse.log(iq, Strophe.LogLevel.ERROR);
  33056. });
  33057. },
  33058. onDiscoItems: function onDiscoItems(stanza) {
  33059. var _this3 = this;
  33060. _.each(sizzle("query[xmlns=\"".concat(Strophe.NS.DISCO_ITEMS, "\"] item"), stanza), function (item) {
  33061. if (item.getAttribute("node")) {
  33062. // XXX: ignore nodes for now.
  33063. // See: https://xmpp.org/extensions/xep-0030.html#items-nodes
  33064. return;
  33065. }
  33066. var jid = item.getAttribute('jid');
  33067. if (_.isUndefined(_this3.items.get(jid))) {
  33068. var entity = _converse.disco_entities.get(jid);
  33069. if (entity) {
  33070. _this3.items.add(entity);
  33071. } else {
  33072. _this3.items.create({
  33073. 'jid': jid
  33074. });
  33075. }
  33076. }
  33077. });
  33078. },
  33079. queryForItems: function queryForItems() {
  33080. var _this4 = this;
  33081. if (_.isEmpty(this.identities.where({
  33082. 'category': 'server'
  33083. }))) {
  33084. // Don't fetch features and items if this is not a
  33085. // server or a conference component.
  33086. return;
  33087. }
  33088. _converse.api.disco.items(this.get('jid')).then(function (stanza) {
  33089. return _this4.onDiscoItems(stanza);
  33090. });
  33091. },
  33092. onInfo: function onInfo(stanza) {
  33093. var _this5 = this;
  33094. _.forEach(stanza.querySelectorAll('identity'), function (identity) {
  33095. _this5.identities.create({
  33096. 'category': identity.getAttribute('category'),
  33097. 'type': identity.getAttribute('type'),
  33098. 'name': identity.getAttribute('name')
  33099. });
  33100. });
  33101. _.each(sizzle("x[type=\"result\"][xmlns=\"".concat(Strophe.NS.XFORM, "\"]"), stanza), function (form) {
  33102. var data = {};
  33103. _.each(form.querySelectorAll('field'), function (field) {
  33104. data[field.getAttribute('var')] = {
  33105. 'value': _.get(field.querySelector('value'), 'textContent'),
  33106. 'type': field.getAttribute('type')
  33107. };
  33108. });
  33109. _this5.dataforms.create(data);
  33110. });
  33111. if (stanza.querySelector("feature[var=\"".concat(Strophe.NS.DISCO_ITEMS, "\"]"))) {
  33112. this.queryForItems();
  33113. }
  33114. _.forEach(stanza.querySelectorAll('feature'), function (feature) {
  33115. _this5.features.create({
  33116. 'var': feature.getAttribute('var'),
  33117. 'from': stanza.getAttribute('from')
  33118. });
  33119. });
  33120. this.waitUntilFeaturesDiscovered.resolve(this);
  33121. this.trigger('featuresDiscovered');
  33122. }
  33123. });
  33124. _converse.DiscoEntities = Backbone.Collection.extend({
  33125. model: _converse.DiscoEntity,
  33126. fetchEntities: function fetchEntities() {
  33127. var _this6 = this;
  33128. return new Promise(function (resolve, reject) {
  33129. _this6.fetch({
  33130. add: true,
  33131. success: resolve,
  33132. error: function error() {
  33133. reject(new Error("Could not fetch disco entities"));
  33134. }
  33135. });
  33136. });
  33137. }
  33138. });
  33139. function addClientFeatures() {
  33140. // See http://xmpp.org/registrar/disco-categories.html
  33141. _converse.api.disco.own.identities.add('client', 'web', 'Converse');
  33142. _converse.api.disco.own.features.add(Strophe.NS.BOSH);
  33143. _converse.api.disco.own.features.add(Strophe.NS.CHATSTATES);
  33144. _converse.api.disco.own.features.add(Strophe.NS.DISCO_INFO);
  33145. _converse.api.disco.own.features.add(Strophe.NS.ROSTERX); // Limited support
  33146. if (_converse.message_carbons) {
  33147. _converse.api.disco.own.features.add(Strophe.NS.CARBONS);
  33148. }
  33149. _converse.emit('addClientFeatures');
  33150. return this;
  33151. }
  33152. function initStreamFeatures() {
  33153. _converse.stream_features = new Backbone.Collection();
  33154. _converse.stream_features.browserStorage = new Backbone.BrowserStorage.session(b64_sha1("converse.stream-features-".concat(_converse.bare_jid)));
  33155. _converse.stream_features.fetch({
  33156. success: function success(collection) {
  33157. if (collection.length === 0 && _converse.connection.features) {
  33158. _.forEach(_converse.connection.features.childNodes, function (feature) {
  33159. _converse.stream_features.create({
  33160. 'name': feature.nodeName,
  33161. 'xmlns': feature.getAttribute('xmlns')
  33162. });
  33163. });
  33164. }
  33165. }
  33166. });
  33167. _converse.emit('streamFeaturesAdded');
  33168. }
  33169. function initializeDisco() {
  33170. addClientFeatures();
  33171. _converse.connection.addHandler(onDiscoInfoRequest, Strophe.NS.DISCO_INFO, 'iq', 'get', null, null);
  33172. _converse.disco_entities = new _converse.DiscoEntities();
  33173. _converse.disco_entities.browserStorage = new Backbone.BrowserStorage.session(b64_sha1("converse.disco-entities-".concat(_converse.bare_jid)));
  33174. _converse.disco_entities.fetchEntities().then(function (collection) {
  33175. if (collection.length === 0 || !collection.get(_converse.domain)) {
  33176. // If we don't have an entity for our own XMPP server,
  33177. // create one.
  33178. _converse.disco_entities.create({
  33179. 'jid': _converse.domain
  33180. });
  33181. }
  33182. _converse.emit('discoInitialized');
  33183. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  33184. }
  33185. _converse.api.listen.on('sessionInitialized', initStreamFeatures);
  33186. _converse.api.listen.on('reconnected', initializeDisco);
  33187. _converse.api.listen.on('connected', initializeDisco);
  33188. _converse.api.listen.on('beforeTearDown', function () {
  33189. if (_converse.disco_entities) {
  33190. _converse.disco_entities.each(function (entity) {
  33191. entity.features.reset();
  33192. entity.features.browserStorage._clear();
  33193. });
  33194. _converse.disco_entities.reset();
  33195. _converse.disco_entities.browserStorage._clear();
  33196. }
  33197. });
  33198. var plugin = this;
  33199. plugin._identities = [];
  33200. plugin._features = [];
  33201. function onDiscoInfoRequest(stanza) {
  33202. var node = stanza.getElementsByTagName('query')[0].getAttribute('node');
  33203. var attrs = {
  33204. xmlns: Strophe.NS.DISCO_INFO
  33205. };
  33206. if (node) {
  33207. attrs.node = node;
  33208. }
  33209. var iqresult = $iq({
  33210. 'type': 'result',
  33211. 'id': stanza.getAttribute('id')
  33212. });
  33213. var from = stanza.getAttribute('from');
  33214. if (from !== null) {
  33215. iqresult.attrs({
  33216. 'to': from
  33217. });
  33218. }
  33219. iqresult.c('query', attrs);
  33220. _.each(plugin._identities, function (identity) {
  33221. var attrs = {
  33222. 'category': identity.category,
  33223. 'type': identity.type
  33224. };
  33225. if (identity.name) {
  33226. attrs.name = identity.name;
  33227. }
  33228. if (identity.lang) {
  33229. attrs['xml:lang'] = identity.lang;
  33230. }
  33231. iqresult.c('identity', attrs).up();
  33232. });
  33233. _.each(plugin._features, function (feature) {
  33234. iqresult.c('feature', {
  33235. 'var': feature
  33236. }).up();
  33237. });
  33238. _converse.connection.send(iqresult.tree());
  33239. return true;
  33240. }
  33241. _.extend(_converse.api, {
  33242. /**
  33243. * The XEP-0030 service discovery API
  33244. *
  33245. * This API lets you discover information about entities on the
  33246. * XMPP network.
  33247. *
  33248. * @namespace _converse.api.disco
  33249. * @memberOf _converse.api
  33250. */
  33251. 'disco': {
  33252. /**
  33253. * @namespace _converse.api.disco.stream
  33254. * @memberOf _converse.api.disco
  33255. */
  33256. 'stream': {
  33257. /**
  33258. * @method _converse.api.disco.stream.getFeature
  33259. * @param {String} name The feature name
  33260. * @param {String} xmlns The XML namespace
  33261. * @example _converse.api.disco.stream.getFeature('ver', 'urn:xmpp:features:rosterver')
  33262. */
  33263. 'getFeature': function getFeature(name, xmlns) {
  33264. if (_.isNil(name) || _.isNil(xmlns)) {
  33265. throw new Error("name and xmlns need to be provided when calling disco.stream.getFeature");
  33266. }
  33267. return _converse.stream_features.findWhere({
  33268. 'name': name,
  33269. 'xmlns': xmlns
  33270. });
  33271. }
  33272. },
  33273. /**
  33274. * @namespace _converse.api.disco.own
  33275. * @memberOf _converse.api.disco
  33276. */
  33277. 'own': {
  33278. /**
  33279. * @namespace _converse.api.disco.own.identities
  33280. * @memberOf _converse.api.disco.own
  33281. */
  33282. 'identities': {
  33283. /**
  33284. * Lets you add new identities for this client (i.e. instance of Converse)
  33285. * @method _converse.api.disco.own.identities.add
  33286. *
  33287. * @param {String} category - server, client, gateway, directory, etc.
  33288. * @param {String} type - phone, pc, web, etc.
  33289. * @param {String} name - "Converse"
  33290. * @param {String} lang - en, el, de, etc.
  33291. *
  33292. * @example _converse.api.disco.own.identities.clear();
  33293. */
  33294. add: function add(category, type, name, lang) {
  33295. for (var i = 0; i < plugin._identities.length; i++) {
  33296. if (plugin._identities[i].category == category && plugin._identities[i].type == type && plugin._identities[i].name == name && plugin._identities[i].lang == lang) {
  33297. return false;
  33298. }
  33299. }
  33300. plugin._identities.push({
  33301. category: category,
  33302. type: type,
  33303. name: name,
  33304. lang: lang
  33305. });
  33306. },
  33307. /**
  33308. * Clears all previously registered identities.
  33309. * @method _converse.api.disco.own.identities.clear
  33310. * @example _converse.api.disco.own.identities.clear();
  33311. */
  33312. clear: function clear() {
  33313. plugin._identities = [];
  33314. },
  33315. /**
  33316. * Returns all of the identities registered for this client
  33317. * (i.e. instance of Converse).
  33318. * @method _converse.api.disco.identities.get
  33319. * @example const identities = _converse.api.disco.own.identities.get();
  33320. */
  33321. get: function get() {
  33322. return plugin._identities;
  33323. }
  33324. },
  33325. /**
  33326. * @namespace _converse.api.disco.own.features
  33327. * @memberOf _converse.api.disco.own
  33328. */
  33329. 'features': {
  33330. /**
  33331. * Lets you register new disco features for this client (i.e. instance of Converse)
  33332. * @method _converse.api.disco.own.features.add
  33333. * @param {String} name - e.g. http://jabber.org/protocol/caps
  33334. * @example _converse.api.disco.own.features.add("http://jabber.org/protocol/caps");
  33335. */
  33336. add: function add(name) {
  33337. for (var i = 0; i < plugin._features.length; i++) {
  33338. if (plugin._features[i] == name) {
  33339. return false;
  33340. }
  33341. }
  33342. plugin._features.push(name);
  33343. },
  33344. /**
  33345. * Clears all previously registered features.
  33346. * @method _converse.api.disco.own.features.clear
  33347. * @example _converse.api.disco.own.features.clear();
  33348. */
  33349. clear: function clear() {
  33350. plugin._features = [];
  33351. },
  33352. /**
  33353. * Returns all of the features registered for this client (i.e. instance of Converse).
  33354. * @method _converse.api.disco.own.features.get
  33355. * @example const features = _converse.api.disco.own.features.get();
  33356. */
  33357. get: function get() {
  33358. return plugin._features;
  33359. }
  33360. }
  33361. },
  33362. /**
  33363. * Query for information about an XMPP entity
  33364. *
  33365. * @method _converse.api.disco.info
  33366. * @param {string} jid The Jabber ID of the entity to query
  33367. * @param {string} [node] A specific node identifier associated with the JID
  33368. * @returns {promise} Promise which resolves once we have a result from the server.
  33369. */
  33370. 'info': function info(jid, node) {
  33371. var attrs = {
  33372. xmlns: Strophe.NS.DISCO_INFO
  33373. };
  33374. if (node) {
  33375. attrs.node = node;
  33376. }
  33377. var info = $iq({
  33378. 'from': _converse.connection.jid,
  33379. 'to': jid,
  33380. 'type': 'get'
  33381. }).c('query', attrs);
  33382. return _converse.api.sendIQ(info);
  33383. },
  33384. /**
  33385. * Query for items associated with an XMPP entity
  33386. *
  33387. * @method _converse.api.disco.items
  33388. * @param {string} jid The Jabber ID of the entity to query for items
  33389. * @param {string} [node] A specific node identifier associated with the JID
  33390. * @returns {promise} Promise which resolves once we have a result from the server.
  33391. */
  33392. 'items': function items(jid, node) {
  33393. var attrs = {
  33394. 'xmlns': Strophe.NS.DISCO_ITEMS
  33395. };
  33396. if (node) {
  33397. attrs.node = node;
  33398. }
  33399. return _converse.api.sendIQ($iq({
  33400. 'from': _converse.connection.jid,
  33401. 'to': jid,
  33402. 'type': 'get'
  33403. }).c('query', attrs));
  33404. },
  33405. /**
  33406. * Namespace for methods associated with disco entities
  33407. *
  33408. * @namespace _converse.api.disco.entities
  33409. * @memberOf _converse.api.disco
  33410. */
  33411. 'entities': {
  33412. /**
  33413. * Get the the corresponding `DiscoEntity` instance.
  33414. *
  33415. * @method _converse.api.disco.entities.get
  33416. * @param {string} jid The Jabber ID of the entity
  33417. * @param {boolean} [create] Whether the entity should be created if it doesn't exist.
  33418. * @example _converse.api.disco.entities.get(jid);
  33419. */
  33420. 'get': function get(jid) {
  33421. var create = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  33422. return _converse.api.waitUntil('discoInitialized').then(function () {
  33423. if (_.isNil(jid)) {
  33424. return _converse.disco_entities;
  33425. }
  33426. var entity = _converse.disco_entities.get(jid);
  33427. if (entity || !create) {
  33428. return entity;
  33429. }
  33430. return _converse.disco_entities.create({
  33431. 'jid': jid
  33432. });
  33433. });
  33434. }
  33435. },
  33436. /**
  33437. * Used to determine whether an entity supports a given feature.
  33438. *
  33439. * @method _converse.api.disco.supports
  33440. * @param {string} feature The feature that might be
  33441. * supported. In the XML stanza, this is the `var`
  33442. * attribute of the `<feature>` element. For
  33443. * example: `http://jabber.org/protocol/muc`
  33444. * @param {string} jid The JID of the entity
  33445. * (and its associated items) which should be queried
  33446. * @returns {promise} A promise which resolves with a list containing
  33447. * _converse.Entity instances representing the entity
  33448. * itself or those items associated with the entity if
  33449. * they support the given feature.
  33450. *
  33451. * @example
  33452. * _converse.api.disco.supports(Strophe.NS.MAM, _converse.bare_jid)
  33453. * .then(value => {
  33454. * // `value` is a map with two keys, `supported` and `feature`.
  33455. * if (value.supported) {
  33456. * // The feature is supported
  33457. * } else {
  33458. * // The feature is not supported
  33459. * }
  33460. * }).catch(() => {
  33461. * _converse.log(
  33462. * "Error or timeout while checking for feature support",
  33463. * Strophe.LogLevel.ERROR
  33464. * );
  33465. * });
  33466. */
  33467. 'supports': function supports(feature, jid) {
  33468. if (_.isNil(jid)) {
  33469. throw new TypeError('disco.supports: You need to provide an entity JID');
  33470. }
  33471. return _converse.api.waitUntil('discoInitialized').then(function () {
  33472. return _converse.api.disco.entities.get(jid, true);
  33473. }).then(function (entity) {
  33474. return entity.waitUntilFeaturesDiscovered;
  33475. }).then(function (entity) {
  33476. var promises = _.concat(entity.items.map(function (item) {
  33477. return item.hasFeature(feature);
  33478. }), entity.hasFeature(feature));
  33479. return Promise.all(promises);
  33480. }).then(function (result) {
  33481. return f.filter(f.isObject, result);
  33482. });
  33483. },
  33484. /**
  33485. * Get the identity (with the given category and type) for a given disco entity.
  33486. *
  33487. * For example, when determining support for PEP (personal eventing protocol), you
  33488. * want to know whether the user's own JID has an identity with
  33489. * `category='pubsub'` and `type='pep'` as explained in this section of
  33490. * XEP-0163: https://xmpp.org/extensions/xep-0163.html#support
  33491. *
  33492. * @method _converse.api.disco.getIdentity
  33493. * @param {string} The identity category.
  33494. * In the XML stanza, this is the `category`
  33495. * attribute of the `<identity>` element.
  33496. * For example: 'pubsub'
  33497. * @param {string} type The identity type.
  33498. * In the XML stanza, this is the `type`
  33499. * attribute of the `<identity>` element.
  33500. * For example: 'pep'
  33501. * @param {string} jid The JID of the entity which might have the identity
  33502. * @returns {promise} A promise which resolves with a map indicating
  33503. * whether an identity with a given type is provided by the entity.
  33504. * @example
  33505. * _converse.api.disco.getIdentity('pubsub', 'pep', _converse.bare_jid).then(
  33506. * function (identity) {
  33507. * if (_.isNil(identity)) {
  33508. * // The entity DOES NOT have this identity
  33509. * } else {
  33510. * // The entity DOES have this identity
  33511. * }
  33512. * }
  33513. * ).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  33514. */
  33515. 'getIdentity': function getIdentity(category, type, jid) {
  33516. return _converse.api.disco.entities.get(jid, true).then(function (e) {
  33517. return e.getIdentity(category, type);
  33518. });
  33519. }
  33520. }
  33521. });
  33522. }
  33523. });
  33524. });
  33525. /***/ }),
  33526. /***/ "./src/converse-dragresize.js":
  33527. /*!************************************!*\
  33528. !*** ./src/converse-dragresize.js ***!
  33529. \************************************/
  33530. /*! no static exports found */
  33531. /***/ (function(module, exports, __webpack_require__) {
  33532. "use strict";
  33533. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  33534. // Converse.js (A browser based XMPP chat client)
  33535. // http://conversejs.org
  33536. //
  33537. // Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
  33538. // Licensed under the Mozilla Public License (MPLv2)
  33539. //
  33540. /*global define, window, document */
  33541. (function (root, factory) {
  33542. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! templates/dragresize.html */ "./src/templates/dragresize.html"), __webpack_require__(/*! converse-chatview */ "./src/converse-chatview.js"), __webpack_require__(/*! converse-controlbox */ "./src/converse-controlbox.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  33543. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  33544. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  33545. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  33546. })(void 0, function (converse, tpl_dragresize) {
  33547. "use strict";
  33548. var _ = converse.env._;
  33549. function renderDragResizeHandles(_converse, view) {
  33550. var flyout = view.el.querySelector('.box-flyout');
  33551. var div = document.createElement('div');
  33552. div.innerHTML = tpl_dragresize();
  33553. flyout.insertBefore(div, flyout.firstChild);
  33554. }
  33555. converse.plugins.add('converse-dragresize', {
  33556. /* Plugin dependencies are other plugins which might be
  33557. * overridden or relied upon, and therefore need to be loaded before
  33558. * this plugin.
  33559. *
  33560. * If the setting "strict_plugin_dependencies" is set to true,
  33561. * an error will be raised if the plugin is not found. By default it's
  33562. * false, which means these plugins are only loaded opportunistically.
  33563. *
  33564. * NB: These plugins need to have already been loaded via require.js.
  33565. */
  33566. dependencies: ["converse-chatview", "converse-headline", "converse-muc-views"],
  33567. enabled: function enabled(_converse) {
  33568. return _converse.view_mode == 'overlayed';
  33569. },
  33570. overrides: {
  33571. // Overrides mentioned here will be picked up by converse.js's
  33572. // plugin architecture they will replace existing methods on the
  33573. // relevant objects or classes.
  33574. //
  33575. // New functions which don't exist yet can also be added.
  33576. registerGlobalEventHandlers: function registerGlobalEventHandlers() {
  33577. var that = this;
  33578. document.addEventListener('mousemove', function (ev) {
  33579. if (!that.resizing || !that.allow_dragresize) {
  33580. return true;
  33581. }
  33582. ev.preventDefault();
  33583. that.resizing.chatbox.resizeChatBox(ev);
  33584. });
  33585. document.addEventListener('mouseup', function (ev) {
  33586. if (!that.resizing || !that.allow_dragresize) {
  33587. return true;
  33588. }
  33589. ev.preventDefault();
  33590. var height = that.applyDragResistance(that.resizing.chatbox.height, that.resizing.chatbox.model.get('default_height'));
  33591. var width = that.applyDragResistance(that.resizing.chatbox.width, that.resizing.chatbox.model.get('default_width'));
  33592. if (that.connection.connected) {
  33593. that.resizing.chatbox.model.save({
  33594. 'height': height
  33595. });
  33596. that.resizing.chatbox.model.save({
  33597. 'width': width
  33598. });
  33599. } else {
  33600. that.resizing.chatbox.model.set({
  33601. 'height': height
  33602. });
  33603. that.resizing.chatbox.model.set({
  33604. 'width': width
  33605. });
  33606. }
  33607. that.resizing = null;
  33608. });
  33609. return this.__super__.registerGlobalEventHandlers.apply(this, arguments);
  33610. },
  33611. ChatBox: {
  33612. initialize: function initialize() {
  33613. var _converse = this.__super__._converse;
  33614. var result = this.__super__.initialize.apply(this, arguments),
  33615. height = this.get('height'),
  33616. width = this.get('width'),
  33617. save = this.get('id') === 'controlbox' ? this.set.bind(this) : this.save.bind(this);
  33618. save({
  33619. 'height': _converse.applyDragResistance(height, this.get('default_height')),
  33620. 'width': _converse.applyDragResistance(width, this.get('default_width'))
  33621. });
  33622. return result;
  33623. }
  33624. },
  33625. ChatBoxView: {
  33626. events: {
  33627. 'mousedown .dragresize-top': 'onStartVerticalResize',
  33628. 'mousedown .dragresize-left': 'onStartHorizontalResize',
  33629. 'mousedown .dragresize-topleft': 'onStartDiagonalResize'
  33630. },
  33631. initialize: function initialize() {
  33632. window.addEventListener('resize', _.debounce(this.setDimensions.bind(this), 100));
  33633. this.__super__.initialize.apply(this, arguments);
  33634. },
  33635. render: function render() {
  33636. var result = this.__super__.render.apply(this, arguments);
  33637. renderDragResizeHandles(this.__super__._converse, this);
  33638. this.setWidth();
  33639. return result;
  33640. },
  33641. setWidth: function setWidth() {
  33642. // If a custom width is applied (due to drag-resizing),
  33643. // then we need to set the width of the .chatbox element as well.
  33644. if (this.model.get('width')) {
  33645. this.el.style.width = this.model.get('width');
  33646. }
  33647. },
  33648. _show: function _show() {
  33649. this.initDragResize().setDimensions();
  33650. this.__super__._show.apply(this, arguments);
  33651. },
  33652. initDragResize: function initDragResize() {
  33653. /* Determine and store the default box size.
  33654. * We need this information for the drag-resizing feature.
  33655. */
  33656. var _converse = this.__super__._converse,
  33657. flyout = this.el.querySelector('.box-flyout'),
  33658. style = window.getComputedStyle(flyout);
  33659. if (_.isUndefined(this.model.get('height'))) {
  33660. var height = parseInt(style.height.replace(/px$/, ''), 10),
  33661. width = parseInt(style.width.replace(/px$/, ''), 10);
  33662. this.model.set('height', height);
  33663. this.model.set('default_height', height);
  33664. this.model.set('width', width);
  33665. this.model.set('default_width', width);
  33666. }
  33667. var min_width = style['min-width'];
  33668. var min_height = style['min-height'];
  33669. this.model.set('min_width', min_width.endsWith('px') ? Number(min_width.replace(/px$/, '')) : 0);
  33670. this.model.set('min_height', min_height.endsWith('px') ? Number(min_height.replace(/px$/, '')) : 0); // Initialize last known mouse position
  33671. this.prev_pageY = 0;
  33672. this.prev_pageX = 0;
  33673. if (_converse.connection.connected) {
  33674. this.height = this.model.get('height');
  33675. this.width = this.model.get('width');
  33676. }
  33677. return this;
  33678. },
  33679. setDimensions: function setDimensions() {
  33680. // Make sure the chat box has the right height and width.
  33681. this.adjustToViewport();
  33682. this.setChatBoxHeight(this.model.get('height'));
  33683. this.setChatBoxWidth(this.model.get('width'));
  33684. },
  33685. setChatBoxHeight: function setChatBoxHeight(height) {
  33686. var _converse = this.__super__._converse;
  33687. if (height) {
  33688. height = _converse.applyDragResistance(height, this.model.get('default_height')) + 'px';
  33689. } else {
  33690. height = "";
  33691. }
  33692. var flyout_el = this.el.querySelector('.box-flyout');
  33693. if (!_.isNull(flyout_el)) {
  33694. flyout_el.style.height = height;
  33695. }
  33696. },
  33697. setChatBoxWidth: function setChatBoxWidth(width) {
  33698. var _converse = this.__super__._converse;
  33699. if (width) {
  33700. width = _converse.applyDragResistance(width, this.model.get('default_width')) + 'px';
  33701. } else {
  33702. width = "";
  33703. }
  33704. this.el.style.width = width;
  33705. var flyout_el = this.el.querySelector('.box-flyout');
  33706. if (!_.isNull(flyout_el)) {
  33707. flyout_el.style.width = width;
  33708. }
  33709. },
  33710. adjustToViewport: function adjustToViewport() {
  33711. /* Event handler called when viewport gets resized. We remove
  33712. * custom width/height from chat boxes.
  33713. */
  33714. var viewport_width = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
  33715. var viewport_height = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
  33716. if (viewport_width <= 480) {
  33717. this.model.set('height', undefined);
  33718. this.model.set('width', undefined);
  33719. } else if (viewport_width <= this.model.get('width')) {
  33720. this.model.set('width', undefined);
  33721. } else if (viewport_height <= this.model.get('height')) {
  33722. this.model.set('height', undefined);
  33723. }
  33724. },
  33725. onStartVerticalResize: function onStartVerticalResize(ev) {
  33726. var _converse = this.__super__._converse;
  33727. if (!_converse.allow_dragresize) {
  33728. return true;
  33729. } // Record element attributes for mouseMove().
  33730. var flyout = this.el.querySelector('.box-flyout'),
  33731. style = window.getComputedStyle(flyout);
  33732. this.height = parseInt(style.height.replace(/px$/, ''), 10);
  33733. _converse.resizing = {
  33734. 'chatbox': this,
  33735. 'direction': 'top'
  33736. };
  33737. this.prev_pageY = ev.pageY;
  33738. },
  33739. onStartHorizontalResize: function onStartHorizontalResize(ev) {
  33740. var _converse = this.__super__._converse;
  33741. if (!_converse.allow_dragresize) {
  33742. return true;
  33743. }
  33744. var flyout = this.el.querySelector('.box-flyout'),
  33745. style = window.getComputedStyle(flyout);
  33746. this.width = parseInt(style.width.replace(/px$/, ''), 10);
  33747. _converse.resizing = {
  33748. 'chatbox': this,
  33749. 'direction': 'left'
  33750. };
  33751. this.prev_pageX = ev.pageX;
  33752. },
  33753. onStartDiagonalResize: function onStartDiagonalResize(ev) {
  33754. var _converse = this.__super__._converse;
  33755. this.onStartHorizontalResize(ev);
  33756. this.onStartVerticalResize(ev);
  33757. _converse.resizing.direction = 'topleft';
  33758. },
  33759. resizeChatBox: function resizeChatBox(ev) {
  33760. var diff;
  33761. var _converse = this.__super__._converse;
  33762. if (_converse.resizing.direction.indexOf('top') === 0) {
  33763. diff = ev.pageY - this.prev_pageY;
  33764. if (diff) {
  33765. this.height = this.height - diff > (this.model.get('min_height') || 0) ? this.height - diff : this.model.get('min_height');
  33766. this.prev_pageY = ev.pageY;
  33767. this.setChatBoxHeight(this.height);
  33768. }
  33769. }
  33770. if (_.includes(_converse.resizing.direction, 'left')) {
  33771. diff = this.prev_pageX - ev.pageX;
  33772. if (diff) {
  33773. this.width = this.width + diff > (this.model.get('min_width') || 0) ? this.width + diff : this.model.get('min_width');
  33774. this.prev_pageX = ev.pageX;
  33775. this.setChatBoxWidth(this.width);
  33776. }
  33777. }
  33778. }
  33779. },
  33780. HeadlinesBoxView: {
  33781. events: {
  33782. 'mousedown .dragresize-top': 'onStartVerticalResize',
  33783. 'mousedown .dragresize-left': 'onStartHorizontalResize',
  33784. 'mousedown .dragresize-topleft': 'onStartDiagonalResize'
  33785. },
  33786. initialize: function initialize() {
  33787. window.addEventListener('resize', _.debounce(this.setDimensions.bind(this), 100));
  33788. return this.__super__.initialize.apply(this, arguments);
  33789. },
  33790. render: function render() {
  33791. var result = this.__super__.render.apply(this, arguments);
  33792. renderDragResizeHandles(this.__super__._converse, this);
  33793. this.setWidth();
  33794. return result;
  33795. }
  33796. },
  33797. ControlBoxView: {
  33798. events: {
  33799. 'mousedown .dragresize-top': 'onStartVerticalResize',
  33800. 'mousedown .dragresize-left': 'onStartHorizontalResize',
  33801. 'mousedown .dragresize-topleft': 'onStartDiagonalResize'
  33802. },
  33803. initialize: function initialize() {
  33804. window.addEventListener('resize', _.debounce(this.setDimensions.bind(this), 100));
  33805. this.__super__.initialize.apply(this, arguments);
  33806. },
  33807. render: function render() {
  33808. var result = this.__super__.render.apply(this, arguments);
  33809. renderDragResizeHandles(this.__super__._converse, this);
  33810. this.setWidth();
  33811. return result;
  33812. },
  33813. renderLoginPanel: function renderLoginPanel() {
  33814. var result = this.__super__.renderLoginPanel.apply(this, arguments);
  33815. this.initDragResize().setDimensions();
  33816. return result;
  33817. },
  33818. renderControlBoxPane: function renderControlBoxPane() {
  33819. var result = this.__super__.renderControlBoxPane.apply(this, arguments);
  33820. this.initDragResize().setDimensions();
  33821. return result;
  33822. }
  33823. },
  33824. ChatRoomView: {
  33825. events: {
  33826. 'mousedown .dragresize-top': 'onStartVerticalResize',
  33827. 'mousedown .dragresize-left': 'onStartHorizontalResize',
  33828. 'mousedown .dragresize-topleft': 'onStartDiagonalResize'
  33829. },
  33830. initialize: function initialize() {
  33831. window.addEventListener('resize', _.debounce(this.setDimensions.bind(this), 100));
  33832. this.__super__.initialize.apply(this, arguments);
  33833. },
  33834. render: function render() {
  33835. var result = this.__super__.render.apply(this, arguments);
  33836. renderDragResizeHandles(this.__super__._converse, this);
  33837. this.setWidth();
  33838. return result;
  33839. }
  33840. }
  33841. },
  33842. initialize: function initialize() {
  33843. /* The initialize function gets called as soon as the plugin is
  33844. * loaded by converse.js's plugin machinery.
  33845. */
  33846. var _converse = this._converse;
  33847. _converse.api.settings.update({
  33848. allow_dragresize: true
  33849. });
  33850. _converse.applyDragResistance = function (value, default_value) {
  33851. /* This method applies some resistance around the
  33852. * default_value. If value is close enough to
  33853. * default_value, then default_value is returned instead.
  33854. */
  33855. if (_.isUndefined(value)) {
  33856. return undefined;
  33857. } else if (_.isUndefined(default_value)) {
  33858. return value;
  33859. }
  33860. var resistance = 10;
  33861. if (value !== default_value && Math.abs(value - default_value) < resistance) {
  33862. return default_value;
  33863. }
  33864. return value;
  33865. };
  33866. }
  33867. });
  33868. });
  33869. /***/ }),
  33870. /***/ "./src/converse-embedded.js":
  33871. /*!**********************************!*\
  33872. !*** ./src/converse-embedded.js ***!
  33873. \**********************************/
  33874. /*! no static exports found */
  33875. /***/ (function(module, exports, __webpack_require__) {
  33876. "use strict";
  33877. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  33878. // Converse.js
  33879. // http://conversejs.org
  33880. //
  33881. // Copyright (c) 2012-2018, the Converse.js developers
  33882. // Licensed under the Mozilla Public License (MPLv2)
  33883. (function (root, factory) {
  33884. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! converse-muc */ "./src/converse-muc.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  33885. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  33886. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  33887. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  33888. })(void 0, function (converse) {
  33889. "use strict";
  33890. var _converse$env = converse.env,
  33891. Backbone = _converse$env.Backbone,
  33892. _ = _converse$env._;
  33893. converse.plugins.add('converse-embedded', {
  33894. enabled: function enabled(_converse) {
  33895. return _converse.view_mode === 'embedded';
  33896. },
  33897. initialize: function initialize() {
  33898. /* The initialize function gets called as soon as the plugin is
  33899. * loaded by converse.js's plugin machinery.
  33900. */
  33901. this._converse.api.settings.update({
  33902. 'allow_logout': false,
  33903. // No point in logging out when we have auto_login as true.
  33904. 'allow_muc_invitations': false,
  33905. // Doesn't make sense to allow because only
  33906. // roster contacts can be invited
  33907. 'hide_muc_server': true
  33908. });
  33909. var _converse = this._converse;
  33910. if (!_.isArray(_converse.auto_join_rooms) && !_.isArray(_converse.auto_join_private_chats)) {
  33911. throw new Error("converse-embedded: auto_join_rooms must be an Array");
  33912. }
  33913. if (_converse.auto_join_rooms.length > 1 && _converse.auto_join_private_chats.length > 1) {
  33914. throw new Error("converse-embedded: It doesn't make " + "sense to have the auto_join_rooms setting more then one, " + "since only one chat room can be open at any time.");
  33915. }
  33916. }
  33917. });
  33918. });
  33919. /***/ }),
  33920. /***/ "./src/converse-fullscreen.js":
  33921. /*!************************************!*\
  33922. !*** ./src/converse-fullscreen.js ***!
  33923. \************************************/
  33924. /*! no static exports found */
  33925. /***/ (function(module, exports, __webpack_require__) {
  33926. "use strict";
  33927. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  33928. // Converse.js (A browser based XMPP chat client)
  33929. // http://conversejs.org
  33930. //
  33931. // Copyright (c) JC Brand <jc@opkode.com>
  33932. // Licensed under the Mozilla Public License (MPLv2)
  33933. //
  33934. /*global define */
  33935. (function (root, factory) {
  33936. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! templates/inverse_brand_heading.html */ "./src/templates/inverse_brand_heading.html"), __webpack_require__(/*! converse-chatview */ "./src/converse-chatview.js"), __webpack_require__(/*! converse-controlbox */ "./src/converse-controlbox.js"), __webpack_require__(/*! converse-muc */ "./src/converse-muc.js"), __webpack_require__(/*! converse-singleton */ "./src/converse-singleton.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  33937. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  33938. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  33939. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  33940. })(void 0, function (converse, tpl_brand_heading) {
  33941. "use strict";
  33942. var _converse$env = converse.env,
  33943. Strophe = _converse$env.Strophe,
  33944. _ = _converse$env._;
  33945. converse.plugins.add('converse-fullscreen', {
  33946. enabled: function enabled(_converse) {
  33947. return _.includes(['fullscreen', 'embedded'], _converse.view_mode);
  33948. },
  33949. overrides: {
  33950. // overrides mentioned here will be picked up by converse.js's
  33951. // plugin architecture they will replace existing methods on the
  33952. // relevant objects or classes.
  33953. //
  33954. // new functions which don't exist yet can also be added.
  33955. ControlBoxView: {
  33956. createBrandHeadingHTML: function createBrandHeadingHTML() {
  33957. return tpl_brand_heading();
  33958. },
  33959. insertBrandHeading: function insertBrandHeading() {
  33960. var _converse = this.__super__._converse;
  33961. var el = _converse.root.getElementById('converse-login-panel');
  33962. el.parentNode.insertAdjacentHTML('afterbegin', this.createBrandHeadingHTML());
  33963. }
  33964. }
  33965. },
  33966. initialize: function initialize() {
  33967. this._converse.api.settings.update({
  33968. chatview_avatar_height: 50,
  33969. chatview_avatar_width: 50,
  33970. hide_open_bookmarks: true,
  33971. show_controlbox_by_default: true,
  33972. sticky_controlbox: true
  33973. });
  33974. }
  33975. });
  33976. });
  33977. /***/ }),
  33978. /***/ "./src/converse-headline.js":
  33979. /*!**********************************!*\
  33980. !*** ./src/converse-headline.js ***!
  33981. \**********************************/
  33982. /*! no static exports found */
  33983. /***/ (function(module, exports, __webpack_require__) {
  33984. "use strict";
  33985. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  33986. // Converse.js (A browser based XMPP chat client)
  33987. // http://conversejs.org
  33988. //
  33989. // Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
  33990. // Licensed under the Mozilla Public License (MPLv2)
  33991. //
  33992. /*global define */
  33993. (function (root, factory) {
  33994. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! templates/chatbox.html */ "./src/templates/chatbox.html"), __webpack_require__(/*! converse-chatview */ "./src/converse-chatview.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  33995. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  33996. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  33997. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  33998. })(void 0, function (converse, tpl_chatbox) {
  33999. "use strict";
  34000. var _converse$env = converse.env,
  34001. _ = _converse$env._,
  34002. utils = _converse$env.utils;
  34003. converse.plugins.add('converse-headline', {
  34004. /* Plugin dependencies are other plugins which might be
  34005. * overridden or relied upon, and therefore need to be loaded before
  34006. * this plugin.
  34007. *
  34008. * If the setting "strict_plugin_dependencies" is set to true,
  34009. * an error will be raised if the plugin is not found. By default it's
  34010. * false, which means these plugins are only loaded opportunistically.
  34011. *
  34012. * NB: These plugins need to have already been loaded via require.js.
  34013. */
  34014. dependencies: ["converse-chatview"],
  34015. overrides: {
  34016. // Overrides mentioned here will be picked up by converse.js's
  34017. // plugin architecture they will replace existing methods on the
  34018. // relevant objects or classes.
  34019. //
  34020. // New functions which don't exist yet can also be added.
  34021. ChatBoxes: {
  34022. model: function model(attrs, options) {
  34023. var _converse = this.__super__._converse;
  34024. if (attrs.type == _converse.HEADLINES_TYPE) {
  34025. return new _converse.HeadlinesBox(attrs, options);
  34026. } else {
  34027. return this.__super__.model.apply(this, arguments);
  34028. }
  34029. }
  34030. }
  34031. },
  34032. initialize: function initialize() {
  34033. /* The initialize function gets called as soon as the plugin is
  34034. * loaded by converse.js's plugin machinery.
  34035. */
  34036. var _converse = this._converse,
  34037. __ = _converse.__;
  34038. _converse.HeadlinesBox = _converse.ChatBox.extend({
  34039. defaults: {
  34040. 'type': _converse.HEADLINES_TYPE,
  34041. 'bookmarked': false,
  34042. 'chat_state': undefined,
  34043. 'num_unread': 0,
  34044. 'url': ''
  34045. }
  34046. });
  34047. _converse.HeadlinesBoxView = _converse.ChatBoxView.extend({
  34048. className: 'chatbox headlines',
  34049. events: {
  34050. 'click .close-chatbox-button': 'close',
  34051. 'click .toggle-chatbox-button': 'minimize',
  34052. 'keypress textarea.chat-textarea': 'keyPressed'
  34053. },
  34054. initialize: function initialize() {
  34055. this.initDebounced();
  34056. this.disable_mam = true; // Don't do MAM queries for this box
  34057. this.model.messages.on('add', this.onMessageAdded, this);
  34058. this.model.on('show', this.show, this);
  34059. this.model.on('destroy', this.hide, this);
  34060. this.model.on('change:minimized', this.onMinimizedChanged, this);
  34061. this.render().insertHeading().fetchMessages().insertIntoDOM().hide();
  34062. _converse.emit('chatBoxOpened', this);
  34063. _converse.emit('chatBoxInitialized', this);
  34064. },
  34065. render: function render() {
  34066. this.el.setAttribute('id', this.model.get('box_id'));
  34067. this.el.innerHTML = tpl_chatbox(_.extend(this.model.toJSON(), {
  34068. info_close: '',
  34069. label_personal_message: '',
  34070. show_send_button: false,
  34071. show_toolbar: false,
  34072. unread_msgs: ''
  34073. }));
  34074. this.content = this.el.querySelector('.chat-content');
  34075. return this;
  34076. },
  34077. // Override to avoid the methods in converse-chatview.js
  34078. 'renderMessageForm': _.noop,
  34079. 'afterShown': _.noop
  34080. });
  34081. function onHeadlineMessage(message) {
  34082. /* Handler method for all incoming messages of type "headline". */
  34083. var from_jid = message.getAttribute('from');
  34084. if (utils.isHeadlineMessage(_converse, message)) {
  34085. if (_.includes(from_jid, '@') && !_converse.allow_non_roster_messaging) {
  34086. return;
  34087. }
  34088. var chatbox = _converse.chatboxes.create({
  34089. 'id': from_jid,
  34090. 'jid': from_jid,
  34091. 'type': _converse.HEADLINES_TYPE,
  34092. 'from': from_jid
  34093. });
  34094. chatbox.createMessage(message, message);
  34095. _converse.emit('message', {
  34096. 'chatbox': chatbox,
  34097. 'stanza': message
  34098. });
  34099. }
  34100. return true;
  34101. }
  34102. function registerHeadlineHandler() {
  34103. _converse.connection.addHandler(onHeadlineMessage, null, 'message');
  34104. }
  34105. _converse.on('connected', registerHeadlineHandler);
  34106. _converse.on('reconnected', registerHeadlineHandler);
  34107. _converse.on('chatBoxViewsInitialized', function () {
  34108. var that = _converse.chatboxviews;
  34109. _converse.chatboxes.on('add', function (item) {
  34110. if (!that.get(item.get('id')) && item.get('type') === _converse.HEADLINES_TYPE) {
  34111. that.add(item.get('id'), new _converse.HeadlinesBoxView({
  34112. model: item
  34113. }));
  34114. }
  34115. });
  34116. });
  34117. }
  34118. });
  34119. });
  34120. /***/ }),
  34121. /***/ "./src/converse-mam.js":
  34122. /*!*****************************!*\
  34123. !*** ./src/converse-mam.js ***!
  34124. \*****************************/
  34125. /*! no static exports found */
  34126. /***/ (function(module, exports, __webpack_require__) {
  34127. "use strict";
  34128. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  34129. function _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return right[Symbol.hasInstance](left); } else { return left instanceof right; } }
  34130. // Converse.js (A browser based XMPP chat client)
  34131. // http://conversejs.org
  34132. //
  34133. // Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
  34134. // Licensed under the Mozilla Public License (MPLv2)
  34135. //
  34136. /*global define */
  34137. // XEP-0059 Result Set Management
  34138. (function (root, factory) {
  34139. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! sizzle */ "./node_modules/sizzle/dist/sizzle.js"), __webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! converse-disco */ "./src/converse-disco.js"), __webpack_require__(/*! strophe.rsm */ "strophe.rsm")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  34140. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  34141. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  34142. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  34143. })(void 0, function (sizzle, converse) {
  34144. "use strict";
  34145. var CHATROOMS_TYPE = 'chatroom';
  34146. var _converse$env = converse.env,
  34147. Promise = _converse$env.Promise,
  34148. Strophe = _converse$env.Strophe,
  34149. $iq = _converse$env.$iq,
  34150. _ = _converse$env._,
  34151. moment = _converse$env.moment;
  34152. var u = converse.env.utils;
  34153. var RSM_ATTRIBUTES = ['max', 'first', 'last', 'after', 'before', 'index', 'count']; // XEP-0313 Message Archive Management
  34154. var MAM_ATTRIBUTES = ['with', 'start', 'end'];
  34155. function getMessageArchiveID(stanza) {
  34156. var result = sizzle("result[xmlns=\"".concat(Strophe.NS.MAM, "\"]"), stanza).pop();
  34157. if (!_.isUndefined(result)) {
  34158. return result.getAttribute('id');
  34159. }
  34160. var stanza_id = sizzle("stanza-id[xmlns=\"".concat(Strophe.NS.SID, "\"]"), stanza).pop();
  34161. if (!_.isUndefined(stanza_id)) {
  34162. return stanza_id.getAttribute('id');
  34163. }
  34164. }
  34165. function queryForArchivedMessages(_converse, options, callback, errback) {
  34166. /* Internal function, called by the "archive.query" API method.
  34167. */
  34168. var date;
  34169. if (_.isFunction(options)) {
  34170. callback = options;
  34171. errback = callback;
  34172. options = null;
  34173. }
  34174. var queryid = _converse.connection.getUniqueId();
  34175. var attrs = {
  34176. 'type': 'set'
  34177. };
  34178. if (options && options.groupchat) {
  34179. if (!options['with']) {
  34180. // eslint-disable-line dot-notation
  34181. throw new Error('You need to specify a "with" value containing ' + 'the chat room JID, when querying groupchat messages.');
  34182. }
  34183. attrs.to = options['with']; // eslint-disable-line dot-notation
  34184. }
  34185. var stanza = $iq(attrs).c('query', {
  34186. 'xmlns': Strophe.NS.MAM,
  34187. 'queryid': queryid
  34188. });
  34189. if (options) {
  34190. stanza.c('x', {
  34191. 'xmlns': Strophe.NS.XFORM,
  34192. 'type': 'submit'
  34193. }).c('field', {
  34194. 'var': 'FORM_TYPE',
  34195. 'type': 'hidden'
  34196. }).c('value').t(Strophe.NS.MAM).up().up();
  34197. if (options['with'] && !options.groupchat) {
  34198. // eslint-disable-line dot-notation
  34199. stanza.c('field', {
  34200. 'var': 'with'
  34201. }).c('value').t(options['with']).up().up(); // eslint-disable-line dot-notation
  34202. }
  34203. _.each(['start', 'end'], function (t) {
  34204. if (options[t]) {
  34205. date = moment(options[t]);
  34206. if (date.isValid()) {
  34207. stanza.c('field', {
  34208. 'var': t
  34209. }).c('value').t(date.format()).up().up();
  34210. } else {
  34211. throw new TypeError("archive.query: invalid date provided for: ".concat(t));
  34212. }
  34213. }
  34214. });
  34215. stanza.up();
  34216. if (_instanceof(options, Strophe.RSM)) {
  34217. stanza.cnode(options.toXML());
  34218. } else if (_.intersection(RSM_ATTRIBUTES, _.keys(options)).length) {
  34219. stanza.cnode(new Strophe.RSM(options).toXML());
  34220. }
  34221. }
  34222. var messages = [];
  34223. var message_handler = _converse.connection.addHandler(function (message) {
  34224. if (options.groupchat && message.getAttribute('from') !== options['with']) {
  34225. // eslint-disable-line dot-notation
  34226. return true;
  34227. }
  34228. var result = message.querySelector('result');
  34229. if (!_.isNull(result) && result.getAttribute('queryid') === queryid) {
  34230. messages.push(message);
  34231. }
  34232. return true;
  34233. }, Strophe.NS.MAM);
  34234. _converse.connection.sendIQ(stanza, function (iq) {
  34235. _converse.connection.deleteHandler(message_handler);
  34236. if (_.isFunction(callback)) {
  34237. var set = iq.querySelector('set');
  34238. var rsm;
  34239. if (!_.isUndefined(set)) {
  34240. rsm = new Strophe.RSM({
  34241. xml: set
  34242. });
  34243. _.extend(rsm, _.pick(options, _.concat(MAM_ATTRIBUTES, ['max'])));
  34244. }
  34245. callback(messages, rsm);
  34246. }
  34247. }, function () {
  34248. _converse.connection.deleteHandler(message_handler);
  34249. if (_.isFunction(errback)) {
  34250. errback.apply(this, arguments);
  34251. }
  34252. }, _converse.message_archiving_timeout);
  34253. }
  34254. converse.plugins.add('converse-mam', {
  34255. dependencies: ['converse-chatview', 'converse-muc', 'converse-muc-views'],
  34256. overrides: {
  34257. // Overrides mentioned here will be picked up by converse.js's
  34258. // plugin architecture they will replace existing methods on the
  34259. // relevant objects or classes.
  34260. //
  34261. // New functions which don't exist yet can also be added.
  34262. ChatBox: {
  34263. getMessageAttributesFromStanza: function getMessageAttributesFromStanza(message, original_stanza) {
  34264. function _process(attrs) {
  34265. var archive_id = getMessageArchiveID(original_stanza);
  34266. if (archive_id) {
  34267. attrs.archive_id = archive_id;
  34268. }
  34269. return attrs;
  34270. }
  34271. var result = this.__super__.getMessageAttributesFromStanza.apply(this, arguments);
  34272. if (_instanceof(result, Promise)) {
  34273. return new Promise(function (resolve, reject) {
  34274. return result.then(function (attrs) {
  34275. return resolve(_process(attrs));
  34276. }).catch(reject);
  34277. });
  34278. } else {
  34279. return _process(result);
  34280. }
  34281. }
  34282. },
  34283. ChatBoxView: {
  34284. render: function render() {
  34285. var result = this.__super__.render.apply(this, arguments);
  34286. if (!this.disable_mam) {
  34287. this.content.addEventListener('scroll', _.debounce(this.onScroll.bind(this), 100));
  34288. }
  34289. return result;
  34290. },
  34291. fetchNewestMessages: function fetchNewestMessages() {
  34292. /* Fetches messages that might have been archived *after*
  34293. * the last archived message in our local cache.
  34294. */
  34295. if (this.disable_mam) {
  34296. return;
  34297. }
  34298. var _converse = this.__super__._converse,
  34299. most_recent_msg = u.getMostRecentMessage(this.model);
  34300. if (_.isNil(most_recent_msg)) {
  34301. this.fetchArchivedMessages();
  34302. } else {
  34303. var archive_id = most_recent_msg.get('archive_id');
  34304. if (archive_id) {
  34305. this.fetchArchivedMessages({
  34306. 'after': most_recent_msg.get('archive_id')
  34307. });
  34308. } else {
  34309. this.fetchArchivedMessages({
  34310. 'start': most_recent_msg.get('time')
  34311. });
  34312. }
  34313. }
  34314. },
  34315. fetchArchivedMessagesIfNecessary: function fetchArchivedMessagesIfNecessary() {
  34316. var _this = this;
  34317. /* Check if archived messages should be fetched, and if so, do so. */
  34318. if (this.disable_mam || this.model.get('mam_initialized')) {
  34319. return;
  34320. }
  34321. var _converse = this.__super__._converse;
  34322. _converse.api.disco.supports(Strophe.NS.MAM, _converse.bare_jid).then(function (result) {
  34323. // Success
  34324. if (result.length) {
  34325. _this.fetchArchivedMessages();
  34326. }
  34327. _this.model.save({
  34328. 'mam_initialized': true
  34329. });
  34330. }, function () {
  34331. // Error
  34332. _converse.log("Error or timeout while checking for MAM support", Strophe.LogLevel.ERROR);
  34333. }).catch(function (msg) {
  34334. _this.clearSpinner();
  34335. _converse.log(msg, Strophe.LogLevel.FATAL);
  34336. });
  34337. },
  34338. fetchArchivedMessages: function fetchArchivedMessages(options) {
  34339. var _this2 = this;
  34340. var _converse = this.__super__._converse;
  34341. if (this.disable_mam) {
  34342. return;
  34343. }
  34344. var is_groupchat = this.model.get('type') === CHATROOMS_TYPE;
  34345. var mam_jid, message_handler;
  34346. if (is_groupchat) {
  34347. mam_jid = this.model.get('jid');
  34348. message_handler = this.model.onMessage.bind(this.model);
  34349. } else {
  34350. mam_jid = _converse.bare_jid;
  34351. message_handler = _converse.chatboxes.onMessage.bind(_converse.chatboxes);
  34352. }
  34353. _converse.api.disco.supports(Strophe.NS.MAM, mam_jid).then(function (results) {
  34354. // Success
  34355. if (!results.length) {
  34356. return;
  34357. }
  34358. _this2.addSpinner();
  34359. _converse.api.archive.query(_.extend({
  34360. 'groupchat': is_groupchat,
  34361. 'before': '',
  34362. // Page backwards from the most recent message
  34363. 'max': _converse.archived_messages_page_size,
  34364. 'with': _this2.model.get('jid')
  34365. }, options), function (messages) {
  34366. // Success
  34367. _this2.clearSpinner();
  34368. _.each(messages, message_handler);
  34369. }, function () {
  34370. // Error
  34371. _this2.clearSpinner();
  34372. _converse.log("Error or timeout while trying to fetch " + "archived messages", Strophe.LogLevel.ERROR);
  34373. });
  34374. }, function () {
  34375. // Error
  34376. _converse.log("Error or timeout while checking for MAM support", Strophe.LogLevel.ERROR);
  34377. }).catch(function (msg) {
  34378. _this2.clearSpinner();
  34379. _converse.log(msg, Strophe.LogLevel.FATAL);
  34380. });
  34381. },
  34382. onScroll: function onScroll(ev) {
  34383. var _converse = this.__super__._converse;
  34384. if (this.content.scrollTop === 0 && this.model.messages.length) {
  34385. var oldest_message = this.model.messages.at(0);
  34386. var archive_id = oldest_message.get('archive_id');
  34387. if (archive_id) {
  34388. this.fetchArchivedMessages({
  34389. 'before': archive_id
  34390. });
  34391. } else {
  34392. this.fetchArchivedMessages({
  34393. 'end': oldest_message.get('time')
  34394. });
  34395. }
  34396. }
  34397. }
  34398. },
  34399. ChatRoom: {
  34400. isDuplicate: function isDuplicate(message, original_stanza) {
  34401. var result = this.__super__.isDuplicate.apply(this, arguments);
  34402. if (result) {
  34403. return result;
  34404. }
  34405. var archive_id = getMessageArchiveID(original_stanza);
  34406. if (archive_id) {
  34407. return this.messages.filter({
  34408. 'archive_id': archive_id
  34409. }).length > 0;
  34410. }
  34411. }
  34412. },
  34413. ChatRoomView: {
  34414. initialize: function initialize() {
  34415. var _converse = this.__super__._converse;
  34416. this.__super__.initialize.apply(this, arguments);
  34417. this.model.on('change:mam_enabled', this.fetchArchivedMessagesIfNecessary, this);
  34418. this.model.on('change:connection_status', this.fetchArchivedMessagesIfNecessary, this);
  34419. },
  34420. renderChatArea: function renderChatArea() {
  34421. var result = this.__super__.renderChatArea.apply(this, arguments);
  34422. if (!this.disable_mam) {
  34423. this.content.addEventListener('scroll', _.debounce(this.onScroll.bind(this), 100));
  34424. }
  34425. return result;
  34426. },
  34427. fetchArchivedMessagesIfNecessary: function fetchArchivedMessagesIfNecessary() {
  34428. if (this.model.get('connection_status') !== converse.ROOMSTATUS.ENTERED || !this.model.get('mam_enabled') || this.model.get('mam_initialized')) {
  34429. return;
  34430. }
  34431. this.fetchArchivedMessages();
  34432. this.model.save({
  34433. 'mam_initialized': true
  34434. });
  34435. }
  34436. }
  34437. },
  34438. initialize: function initialize() {
  34439. /* The initialize function gets called as soon as the plugin is
  34440. * loaded by Converse.js's plugin machinery.
  34441. */
  34442. var _converse = this._converse;
  34443. _converse.api.settings.update({
  34444. archived_messages_page_size: '50',
  34445. message_archiving: undefined,
  34446. // Supported values are 'always', 'never', 'roster' (https://xmpp.org/extensions/xep-0313.html#prefs)
  34447. message_archiving_timeout: 8000 // Time (in milliseconds) to wait before aborting MAM request
  34448. });
  34449. _converse.onMAMError = function (model, iq) {
  34450. if (iq.querySelectorAll('feature-not-implemented').length) {
  34451. _converse.log("Message Archive Management (XEP-0313) not supported by this server", Strophe.LogLevel.WARN);
  34452. } else {
  34453. _converse.log("An error occured while trying to set archiving preferences.", Strophe.LogLevel.ERROR);
  34454. _converse.log(iq);
  34455. }
  34456. };
  34457. _converse.onMAMPreferences = function (feature, iq) {
  34458. /* Handle returned IQ stanza containing Message Archive
  34459. * Management (XEP-0313) preferences.
  34460. *
  34461. * XXX: For now we only handle the global default preference.
  34462. * The XEP also provides for per-JID preferences, which is
  34463. * currently not supported in converse.js.
  34464. *
  34465. * Per JID preferences will be set in chat boxes, so it'll
  34466. * probbaly be handled elsewhere in any case.
  34467. */
  34468. var preference = sizzle("prefs[xmlns=\"".concat(Strophe.NS.MAM, "\"]"), iq).pop();
  34469. var default_pref = preference.getAttribute('default');
  34470. if (default_pref !== _converse.message_archiving) {
  34471. var stanza = $iq({
  34472. 'type': 'set'
  34473. }).c('prefs', {
  34474. 'xmlns': Strophe.NS.MAM,
  34475. 'default': _converse.message_archiving
  34476. });
  34477. _.each(preference.children, function (child) {
  34478. stanza.cnode(child).up();
  34479. });
  34480. _converse.connection.sendIQ(stanza, _.partial(function (feature, iq) {
  34481. // XXX: Strictly speaking, the server should respond with the updated prefs
  34482. // (see example 18: https://xmpp.org/extensions/xep-0313.html#config)
  34483. // but Prosody doesn't do this, so we don't rely on it.
  34484. feature.save({
  34485. 'preferences': {
  34486. 'default': _converse.message_archiving
  34487. }
  34488. });
  34489. }, feature), _converse.onMAMError);
  34490. } else {
  34491. feature.save({
  34492. 'preferences': {
  34493. 'default': _converse.message_archiving
  34494. }
  34495. });
  34496. }
  34497. };
  34498. /* Event handlers */
  34499. _converse.on('serviceDiscovered', function (feature) {
  34500. var prefs = feature.get('preferences') || {};
  34501. if (feature.get('var') === Strophe.NS.MAM && prefs['default'] !== _converse.message_archiving && // eslint-disable-line dot-notation
  34502. !_.isUndefined(_converse.message_archiving)) {
  34503. // Ask the server for archiving preferences
  34504. _converse.connection.sendIQ($iq({
  34505. 'type': 'get'
  34506. }).c('prefs', {
  34507. 'xmlns': Strophe.NS.MAM
  34508. }), _.partial(_converse.onMAMPreferences, feature), _.partial(_converse.onMAMError, feature));
  34509. }
  34510. });
  34511. _converse.on('addClientFeatures', function () {
  34512. _converse.api.disco.own.features.add(Strophe.NS.MAM);
  34513. });
  34514. _converse.on('afterMessagesFetched', function (chatboxview) {
  34515. chatboxview.fetchNewestMessages();
  34516. });
  34517. _converse.on('reconnected', function () {
  34518. var private_chats = _converse.chatboxviews.filter(function (view) {
  34519. return _.at(view, 'model.attributes.type')[0] === 'chatbox';
  34520. });
  34521. _.each(private_chats, function (view) {
  34522. return view.fetchNewestMessages();
  34523. });
  34524. });
  34525. _.extend(_converse.api, {
  34526. /**
  34527. * The [XEP-0313](https://xmpp.org/extensions/xep-0313.html) Message Archive Management API
  34528. *
  34529. * Enables you to query an XMPP server for archived messages.
  34530. *
  34531. * See also the [message-archiving](/docs/html/configuration.html#message-archiving)
  34532. * option in the configuration settings section, which you'll
  34533. * usually want to use in conjunction with this API.
  34534. *
  34535. * @namespace _converse.api.archive
  34536. * @memberOf _converse.api
  34537. */
  34538. 'archive': {
  34539. /**
  34540. * Query for archived messages.
  34541. *
  34542. * The options parameter can also be an instance of
  34543. * Strophe.RSM to enable easy querying between results pages.
  34544. *
  34545. * @method _converse.api.archive.query
  34546. * @param {(Object|Strophe.RSM)} options Query parameters, either
  34547. * MAM-specific or also for Result Set Management.
  34548. * Can be either an object or an instance of Strophe.RSM.
  34549. * Valid query parameters are:
  34550. * * `with`
  34551. * * `start`
  34552. * * `end`
  34553. * * `first`
  34554. * * `last`
  34555. * * `after`
  34556. * * `before`
  34557. * * `index`
  34558. * * `count`
  34559. * @param {Function} callback A function to call whenever
  34560. * we receive query-relevant stanza.
  34561. * When the callback is called, a Strophe.RSM object is
  34562. * returned on which "next" or "previous" can be called
  34563. * before passing it in again to this method, to
  34564. * get the next or previous page in the result set.
  34565. * @param {Function} errback A function to call when an
  34566. * error stanza is received, for example when it
  34567. * doesn't support message archiving.
  34568. *
  34569. * @example
  34570. * // Requesting all archived messages
  34571. * // ================================
  34572. * //
  34573. * // The simplest query that can be made is to simply not pass in any parameters.
  34574. * // Such a query will return all archived messages for the current user.
  34575. * //
  34576. * // Generally, you'll however always want to pass in a callback method, to receive
  34577. * // the returned messages.
  34578. *
  34579. * this._converse.api.archive.query(
  34580. * (messages) => {
  34581. * // Do something with the messages, like showing them in your webpage.
  34582. * },
  34583. * (iq) => {
  34584. * // The query was not successful, perhaps inform the user?
  34585. * // The IQ stanza returned by the XMPP server is passed in, so that you
  34586. * // may inspect it and determine what the problem was.
  34587. * }
  34588. * )
  34589. * @example
  34590. * // Waiting until server support has been determined
  34591. * // ================================================
  34592. * //
  34593. * // The query method will only work if Converse has been able to determine that
  34594. * // the server supports MAM queries, otherwise the following error will be raised:
  34595. * //
  34596. * // "This server does not support XEP-0313, Message Archive Management"
  34597. * //
  34598. * // The very first time Converse loads in a browser tab, if you call the query
  34599. * // API too quickly, the above error might appear because service discovery has not
  34600. * // yet been completed.
  34601. * //
  34602. * // To work solve this problem, you can first listen for the `serviceDiscovered` event,
  34603. * // through which you can be informed once support for MAM has been determined.
  34604. *
  34605. * _converse.api.listen.on('serviceDiscovered', function (feature) {
  34606. * if (feature.get('var') === converse.env.Strophe.NS.MAM) {
  34607. * _converse.api.archive.query()
  34608. * }
  34609. * });
  34610. *
  34611. * @example
  34612. * // Requesting all archived messages for a particular contact or room
  34613. * // =================================================================
  34614. * //
  34615. * // To query for messages sent between the current user and another user or room,
  34616. * // the query options need to contain the the JID (Jabber ID) of the user or
  34617. * // room under the `with` key.
  34618. *
  34619. * // For a particular user
  34620. * this._converse.api.archive.query({'with': 'john@doe.net'}, callback, errback);)
  34621. *
  34622. * // For a particular room
  34623. * this._converse.api.archive.query({'with': 'discuss@conference.doglovers.net'}, callback, errback);)
  34624. *
  34625. * @example
  34626. * // Requesting all archived messages before or after a certain date
  34627. * // ===============================================================
  34628. * //
  34629. * // The `start` and `end` parameters are used to query for messages
  34630. * // within a certain timeframe. The passed in date values may either be ISO8601
  34631. * // formatted date strings, or JavaScript Date objects.
  34632. *
  34633. * const options = {
  34634. * 'with': 'john@doe.net',
  34635. * 'start': '2010-06-07T00:00:00Z',
  34636. * 'end': '2010-07-07T13:23:54Z'
  34637. * };
  34638. * this._converse.api.archive.query(options, callback, errback);
  34639. *
  34640. * @example
  34641. * // Limiting the amount of messages returned
  34642. * // ========================================
  34643. * //
  34644. * // The amount of returned messages may be limited with the `max` parameter.
  34645. * // By default, the messages are returned from oldest to newest.
  34646. *
  34647. * // Return maximum 10 archived messages
  34648. * this._converse.api.archive.query({'with': 'john@doe.net', 'max':10}, callback, errback);
  34649. *
  34650. * @example
  34651. * // Paging forwards through a set of archived messages
  34652. * // ==================================================
  34653. * //
  34654. * // When limiting the amount of messages returned per query, you might want to
  34655. * // repeatedly make a further query to fetch the next batch of messages.
  34656. * //
  34657. * // To simplify this usecase for you, the callback method receives not only an array
  34658. * // with the returned archived messages, but also a special RSM (*Result Set
  34659. * // Management*) object which contains the query parameters you passed in, as well
  34660. * // as two utility methods `next`, and `previous`.
  34661. * //
  34662. * // When you call one of these utility methods on the returned RSM object, and then
  34663. * // pass the result into a new query, you'll receive the next or previous batch of
  34664. * // archived messages. Please note, when calling these methods, pass in an integer
  34665. * // to limit your results.
  34666. *
  34667. * const callback = function (messages, rsm) {
  34668. * // Do something with the messages, like showing them in your webpage.
  34669. * // ...
  34670. * // You can now use the returned "rsm" object, to fetch the next batch of messages:
  34671. * _converse.api.archive.query(rsm.next(10), callback, errback))
  34672. *
  34673. * }
  34674. * _converse.api.archive.query({'with': 'john@doe.net', 'max':10}, callback, errback);
  34675. *
  34676. * @example
  34677. * // Paging backwards through a set of archived messages
  34678. * // ===================================================
  34679. * //
  34680. * // To page backwards through the archive, you need to know the UID of the message
  34681. * // which you'd like to page backwards from and then pass that as value for the
  34682. * // `before` parameter. If you simply want to page backwards from the most recent
  34683. * // message, pass in the `before` parameter with an empty string value `''`.
  34684. *
  34685. * _converse.api.archive.query({'before': '', 'max':5}, function (message, rsm) {
  34686. * // Do something with the messages, like showing them in your webpage.
  34687. * // ...
  34688. * // You can now use the returned "rsm" object, to fetch the previous batch of messages:
  34689. * rsm.previous(5); // Call previous method, to update the object's parameters,
  34690. * // passing in a limit value of 5.
  34691. * // Now we query again, to get the previous batch.
  34692. * _converse.api.archive.query(rsm, callback, errback);
  34693. * }
  34694. */
  34695. 'query': function query(options, callback, errback) {
  34696. if (!_converse.api.connection.connected()) {
  34697. throw new Error('Can\'t call `api.archive.query` before having established an XMPP session');
  34698. }
  34699. return queryForArchivedMessages(_converse, options, callback, errback);
  34700. }
  34701. }
  34702. });
  34703. }
  34704. });
  34705. });
  34706. /***/ }),
  34707. /***/ "./src/converse-message-view.js":
  34708. /*!**************************************!*\
  34709. !*** ./src/converse-message-view.js ***!
  34710. \**************************************/
  34711. /*! no static exports found */
  34712. /***/ (function(module, exports, __webpack_require__) {
  34713. "use strict";
  34714. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  34715. // Converse.js
  34716. // https://conversejs.org
  34717. //
  34718. // Copyright (c) 2013-2018, the Converse.js developers
  34719. // Licensed under the Mozilla Public License (MPLv2)
  34720. (function (root, factory) {
  34721. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! utils/emoji */ "./src/utils/emoji.js"), __webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! xss */ "./node_modules/xss/dist/xss.js"), __webpack_require__(/*! filesize */ "./node_modules/filesize/lib/filesize.js"), __webpack_require__(/*! templates/csn.html */ "./src/templates/csn.html"), __webpack_require__(/*! templates/file_progress.html */ "./src/templates/file_progress.html"), __webpack_require__(/*! templates/info.html */ "./src/templates/info.html"), __webpack_require__(/*! templates/message.html */ "./src/templates/message.html"), __webpack_require__(/*! templates/message_versions_modal.html */ "./src/templates/message_versions_modal.html")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  34722. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  34723. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  34724. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  34725. })(void 0, function (u, converse, xss, filesize, tpl_csn, tpl_file_progress, tpl_info, tpl_message, tpl_message_versions_modal) {
  34726. "use strict";
  34727. var _converse$env = converse.env,
  34728. Backbone = _converse$env.Backbone,
  34729. _ = _converse$env._,
  34730. moment = _converse$env.moment;
  34731. converse.plugins.add('converse-message-view', {
  34732. initialize: function initialize() {
  34733. /* The initialize function gets called as soon as the plugin is
  34734. * loaded by converse.js's plugin machinery.
  34735. */
  34736. var _converse = this._converse,
  34737. __ = _converse.__;
  34738. _converse.MessageVersionsModal = _converse.BootstrapModal.extend({
  34739. toHTML: function toHTML() {
  34740. return tpl_message_versions_modal(_.extend(this.model.toJSON(), {
  34741. '__': __
  34742. }));
  34743. }
  34744. });
  34745. _converse.MessageView = _converse.ViewWithAvatar.extend({
  34746. events: {
  34747. 'click .chat-msg__edit-modal': 'showMessageVersionsModal'
  34748. },
  34749. initialize: function initialize() {
  34750. this.model.vcard.on('change', this.render, this);
  34751. this.model.on('change:correcting', this.onMessageCorrection, this);
  34752. this.model.on('change:message', this.render, this);
  34753. this.model.on('change:progress', this.renderFileUploadProgresBar, this);
  34754. this.model.on('change:type', this.render, this);
  34755. this.model.on('change:upload', this.render, this);
  34756. this.model.on('destroy', this.remove, this);
  34757. this.render();
  34758. },
  34759. render: function render() {
  34760. var is_followup = u.hasClass('chat-msg--followup', this.el);
  34761. var msg;
  34762. if (this.model.isOnlyChatStateNotification()) {
  34763. this.renderChatStateNotification();
  34764. } else if (this.model.get('file') && !this.model.get('oob_url')) {
  34765. this.renderFileUploadProgresBar();
  34766. } else if (this.model.get('type') === 'error') {
  34767. this.renderErrorMessage();
  34768. } else {
  34769. this.renderChatMessage();
  34770. }
  34771. if (is_followup) {
  34772. u.addClass('chat-msg--followup', this.el);
  34773. }
  34774. return this.el;
  34775. },
  34776. onMessageCorrection: function onMessageCorrection() {
  34777. var _this = this;
  34778. this.render();
  34779. if (!this.model.get('correcting') && this.model.changed.message) {
  34780. this.el.addEventListener('animationend', function () {
  34781. return u.removeClass('onload', _this.el);
  34782. });
  34783. u.addClass('onload', this.el);
  34784. }
  34785. },
  34786. replaceElement: function replaceElement(msg) {
  34787. if (!_.isNil(this.el.parentElement)) {
  34788. this.el.parentElement.replaceChild(msg, this.el);
  34789. }
  34790. this.setElement(msg);
  34791. return this.el;
  34792. },
  34793. renderChatMessage: function renderChatMessage() {
  34794. var _this2 = this;
  34795. var is_me_message = this.isMeCommand(),
  34796. moment_time = moment(this.model.get('time')),
  34797. role = this.model.vcard.get('role'),
  34798. roles = role ? role.split(',') : [];
  34799. var msg = u.stringToElement(tpl_message(_.extend(this.model.toJSON(), {
  34800. '__': __,
  34801. 'is_me_message': is_me_message,
  34802. 'roles': roles,
  34803. 'pretty_time': moment_time.format(_converse.time_format),
  34804. 'time': moment_time.format(),
  34805. 'extra_classes': this.getExtraMessageClasses(),
  34806. 'label_show': __('Show more'),
  34807. 'username': this.model.getDisplayName()
  34808. })));
  34809. var url = this.model.get('oob_url');
  34810. if (url) {
  34811. msg.querySelector('.chat-msg__media').innerHTML = _.flow(_.partial(u.renderFileURL, _converse), _.partial(u.renderMovieURL, _converse), _.partial(u.renderAudioURL, _converse), _.partial(u.renderImageURL, _converse))(url);
  34812. }
  34813. var text = this.getMessageText();
  34814. var msg_content = msg.querySelector('.chat-msg__text');
  34815. if (text && text !== url) {
  34816. if (is_me_message) {
  34817. text = text.replace(/^\/me/, '');
  34818. }
  34819. text = xss.filterXSS(text, {
  34820. 'whiteList': {}
  34821. });
  34822. msg_content.innerHTML = _.flow(_.partial(u.geoUriToHttp, _, _converse.geouri_replacement), _.partial(u.addMentionsMarkup, _, this.model.get('references'), this.model.collection.chatbox), u.addHyperlinks, u.renderNewLines, _.partial(u.addEmoji, _converse, _))(text);
  34823. }
  34824. u.renderImageURLs(_converse, msg_content).then(function () {
  34825. _this2.model.collection.trigger('rendered');
  34826. });
  34827. this.replaceElement(msg);
  34828. if (this.model.get('type') !== 'headline') {
  34829. this.renderAvatar();
  34830. }
  34831. },
  34832. renderErrorMessage: function renderErrorMessage() {
  34833. var moment_time = moment(this.model.get('time')),
  34834. msg = u.stringToElement(tpl_info(_.extend(this.model.toJSON(), {
  34835. 'extra_classes': 'chat-error',
  34836. 'isodate': moment_time.format(),
  34837. 'data': ''
  34838. })));
  34839. return this.replaceElement(msg);
  34840. },
  34841. renderChatStateNotification: function renderChatStateNotification() {
  34842. var text;
  34843. var from = this.model.get('from'),
  34844. name = this.model.getDisplayName();
  34845. if (this.model.get('chat_state') === _converse.COMPOSING) {
  34846. if (this.model.get('sender') === 'me') {
  34847. text = __('Typing from another device');
  34848. } else {
  34849. text = __('%1$s is typing', name);
  34850. }
  34851. } else if (this.model.get('chat_state') === _converse.PAUSED) {
  34852. if (this.model.get('sender') === 'me') {
  34853. text = __('Stopped typing on the other device');
  34854. } else {
  34855. text = __('%1$s has stopped typing', name);
  34856. }
  34857. } else if (this.model.get('chat_state') === _converse.GONE) {
  34858. text = __('%1$s has gone away', name);
  34859. } else {
  34860. return;
  34861. }
  34862. var isodate = moment().format();
  34863. this.replaceElement(u.stringToElement(tpl_csn({
  34864. 'message': text,
  34865. 'from': from,
  34866. 'isodate': isodate
  34867. })));
  34868. },
  34869. renderFileUploadProgresBar: function renderFileUploadProgresBar() {
  34870. var msg = u.stringToElement(tpl_file_progress(_.extend(this.model.toJSON(), {
  34871. 'filesize': filesize(this.model.get('file').size)
  34872. })));
  34873. this.replaceElement(msg);
  34874. this.renderAvatar();
  34875. },
  34876. showMessageVersionsModal: function showMessageVersionsModal(ev) {
  34877. ev.preventDefault();
  34878. if (_.isUndefined(this.model.message_versions_modal)) {
  34879. this.model.message_versions_modal = new _converse.MessageVersionsModal({
  34880. 'model': this.model
  34881. });
  34882. }
  34883. this.model.message_versions_modal.show(ev);
  34884. },
  34885. getMessageText: function getMessageText() {
  34886. if (this.model.get('is_encrypted')) {
  34887. return this.model.get('plaintext') || (_converse.debug ? __('Unencryptable OMEMO message') : null);
  34888. }
  34889. return this.model.get('message');
  34890. },
  34891. isMeCommand: function isMeCommand() {
  34892. var text = this.getMessageText();
  34893. if (!text) {
  34894. return false;
  34895. }
  34896. var match = text.match(/^\/(.*?)(?: (.*))?$/);
  34897. return match && match[1] === 'me';
  34898. },
  34899. processMessageText: function processMessageText() {
  34900. var text = this.get('message');
  34901. text = u.geoUriToHttp(text, _converse.geouri_replacement);
  34902. },
  34903. getExtraMessageClasses: function getExtraMessageClasses() {
  34904. var extra_classes = this.model.get('is_delayed') && 'delayed' || '';
  34905. if (this.model.get('type') === 'groupchat' && this.model.get('sender') === 'them') {
  34906. if (this.model.collection.chatbox.isUserMentioned(this.model)) {
  34907. // Add special class to mark groupchat messages
  34908. // in which we are mentioned.
  34909. extra_classes += ' mentioned';
  34910. }
  34911. }
  34912. if (this.model.get('correcting')) {
  34913. extra_classes += ' correcting';
  34914. }
  34915. return extra_classes;
  34916. }
  34917. });
  34918. }
  34919. });
  34920. return converse;
  34921. });
  34922. /***/ }),
  34923. /***/ "./src/converse-minimize.js":
  34924. /*!**********************************!*\
  34925. !*** ./src/converse-minimize.js ***!
  34926. \**********************************/
  34927. /*! no static exports found */
  34928. /***/ (function(module, exports, __webpack_require__) {
  34929. "use strict";
  34930. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  34931. // Converse.js (A browser based XMPP chat client)
  34932. // http://conversejs.org
  34933. //
  34934. // Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
  34935. // Licensed under the Mozilla Public License (MPLv2)
  34936. //
  34937. /*global define, window, document */
  34938. (function (root, factory) {
  34939. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! templates/chatbox_minimize.html */ "./src/templates/chatbox_minimize.html"), __webpack_require__(/*! templates/toggle_chats.html */ "./src/templates/toggle_chats.html"), __webpack_require__(/*! templates/trimmed_chat.html */ "./src/templates/trimmed_chat.html"), __webpack_require__(/*! templates/chats_panel.html */ "./src/templates/chats_panel.html"), __webpack_require__(/*! converse-chatview */ "./src/converse-chatview.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  34940. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  34941. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  34942. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  34943. })(void 0, function (converse, tpl_chatbox_minimize, tpl_toggle_chats, tpl_trimmed_chat, tpl_chats_panel) {
  34944. "use strict";
  34945. var _converse$env = converse.env,
  34946. _ = _converse$env._,
  34947. Backbone = _converse$env.Backbone,
  34948. Promise = _converse$env.Promise,
  34949. Strophe = _converse$env.Strophe,
  34950. b64_sha1 = _converse$env.b64_sha1,
  34951. moment = _converse$env.moment;
  34952. var u = converse.env.utils;
  34953. converse.plugins.add('converse-minimize', {
  34954. /* Optional dependencies are other plugins which might be
  34955. * overridden or relied upon, and therefore need to be loaded before
  34956. * this plugin. They are called "optional" because they might not be
  34957. * available, in which case any overrides applicable to them will be
  34958. * ignored.
  34959. *
  34960. * It's possible however to make optional dependencies non-optional.
  34961. * If the setting "strict_plugin_dependencies" is set to true,
  34962. * an error will be raised if the plugin is not found.
  34963. *
  34964. * NB: These plugins need to have already been loaded via require.js.
  34965. */
  34966. dependencies: ["converse-chatview", "converse-controlbox", "converse-muc", "converse-muc-views", "converse-headline"],
  34967. enabled: function enabled(_converse) {
  34968. return _converse.view_mode == 'overlayed';
  34969. },
  34970. overrides: {
  34971. // Overrides mentioned here will be picked up by converse.js's
  34972. // plugin architecture they will replace existing methods on the
  34973. // relevant objects or classes.
  34974. //
  34975. // New functions which don't exist yet can also be added.
  34976. ChatBox: {
  34977. initialize: function initialize() {
  34978. this.__super__.initialize.apply(this, arguments);
  34979. this.on('show', this.maximize, this);
  34980. if (this.get('id') === 'controlbox') {
  34981. return;
  34982. }
  34983. this.save({
  34984. 'minimized': this.get('minimized') || false,
  34985. 'time_minimized': this.get('time_minimized') || moment()
  34986. });
  34987. },
  34988. maximize: function maximize() {
  34989. u.safeSave(this, {
  34990. 'minimized': false,
  34991. 'time_opened': moment().valueOf()
  34992. });
  34993. },
  34994. minimize: function minimize() {
  34995. u.safeSave(this, {
  34996. 'minimized': true,
  34997. 'time_minimized': moment().format()
  34998. });
  34999. }
  35000. },
  35001. ChatBoxView: {
  35002. events: {
  35003. 'click .toggle-chatbox-button': 'minimize'
  35004. },
  35005. initialize: function initialize() {
  35006. this.model.on('change:minimized', this.onMinimizedChanged, this);
  35007. return this.__super__.initialize.apply(this, arguments);
  35008. },
  35009. _show: function _show() {
  35010. var _converse = this.__super__._converse;
  35011. if (!this.model.get('minimized')) {
  35012. this.__super__._show.apply(this, arguments);
  35013. _converse.chatboxviews.trimChats(this);
  35014. } else {
  35015. this.minimize();
  35016. }
  35017. },
  35018. isNewMessageHidden: function isNewMessageHidden() {
  35019. return this.model.get('minimized') || this.__super__.isNewMessageHidden.apply(this, arguments);
  35020. },
  35021. shouldShowOnTextMessage: function shouldShowOnTextMessage() {
  35022. return !this.model.get('minimized') && this.__super__.shouldShowOnTextMessage.apply(this, arguments);
  35023. },
  35024. setChatBoxHeight: function setChatBoxHeight(height) {
  35025. if (!this.model.get('minimized')) {
  35026. return this.__super__.setChatBoxHeight.apply(this, arguments);
  35027. }
  35028. },
  35029. setChatBoxWidth: function setChatBoxWidth(width) {
  35030. if (!this.model.get('minimized')) {
  35031. return this.__super__.setChatBoxWidth.apply(this, arguments);
  35032. }
  35033. },
  35034. onMinimizedChanged: function onMinimizedChanged(item) {
  35035. if (item.get('minimized')) {
  35036. this.minimize();
  35037. } else {
  35038. this.maximize();
  35039. }
  35040. },
  35041. maximize: function maximize() {
  35042. // Restores a minimized chat box
  35043. var _converse = this.__super__._converse;
  35044. this.insertIntoDOM();
  35045. if (!this.model.isScrolledUp()) {
  35046. this.model.clearUnreadMsgCounter();
  35047. }
  35048. this.show();
  35049. this.__super__._converse.emit('chatBoxMaximized', this);
  35050. return this;
  35051. },
  35052. minimize: function minimize(ev) {
  35053. var _converse = this.__super__._converse;
  35054. if (ev && ev.preventDefault) {
  35055. ev.preventDefault();
  35056. } // save the scroll position to restore it on maximize
  35057. if (this.model.collection && this.model.collection.browserStorage) {
  35058. this.model.save({
  35059. 'scroll': this.content.scrollTop
  35060. });
  35061. } else {
  35062. this.model.set({
  35063. 'scroll': this.content.scrollTop
  35064. });
  35065. }
  35066. this.setChatState(_converse.INACTIVE).model.minimize();
  35067. this.hide();
  35068. _converse.emit('chatBoxMinimized', this);
  35069. }
  35070. },
  35071. ChatBoxHeading: {
  35072. render: function render() {
  35073. var _converse = this.__super__._converse,
  35074. __ = _converse.__;
  35075. var result = this.__super__.render.apply(this, arguments);
  35076. var new_html = tpl_chatbox_minimize({
  35077. info_minimize: __('Minimize this chat box')
  35078. });
  35079. var el = this.el.querySelector('.toggle-chatbox-button');
  35080. if (el) {
  35081. el.outerHTML = new_html;
  35082. } else {
  35083. var button = this.el.querySelector('.close-chatbox-button');
  35084. button.insertAdjacentHTML('afterEnd', new_html);
  35085. }
  35086. }
  35087. },
  35088. ChatRoomView: {
  35089. events: {
  35090. 'click .toggle-chatbox-button': 'minimize'
  35091. },
  35092. initialize: function initialize() {
  35093. this.model.on('change:minimized', function (item) {
  35094. if (item.get('minimized')) {
  35095. this.hide();
  35096. } else {
  35097. this.maximize();
  35098. }
  35099. }, this);
  35100. var result = this.__super__.initialize.apply(this, arguments);
  35101. if (this.model.get('minimized')) {
  35102. this.hide();
  35103. }
  35104. return result;
  35105. },
  35106. generateHeadingHTML: function generateHeadingHTML() {
  35107. var _converse = this.__super__._converse,
  35108. __ = _converse.__;
  35109. var html = this.__super__.generateHeadingHTML.apply(this, arguments);
  35110. var div = document.createElement('div');
  35111. div.innerHTML = html;
  35112. var button = div.querySelector('.close-chatbox-button');
  35113. button.insertAdjacentHTML('afterend', tpl_chatbox_minimize({
  35114. 'info_minimize': __('Minimize this chat box')
  35115. }));
  35116. return div.innerHTML;
  35117. }
  35118. },
  35119. ChatBoxes: {
  35120. chatBoxMayBeShown: function chatBoxMayBeShown(chatbox) {
  35121. return this.__super__.chatBoxMayBeShown.apply(this, arguments) && !chatbox.get('minimized');
  35122. }
  35123. },
  35124. ChatBoxViews: {
  35125. getChatBoxWidth: function getChatBoxWidth(view) {
  35126. if (!view.model.get('minimized') && u.isVisible(view.el)) {
  35127. return u.getOuterWidth(view.el, true);
  35128. }
  35129. return 0;
  35130. },
  35131. getShownChats: function getShownChats() {
  35132. return this.filter(function (view) {
  35133. return (// The controlbox can take a while to close,
  35134. // so we need to check its state. That's why we checked
  35135. // the 'closed' state.
  35136. !view.model.get('minimized') && !view.model.get('closed') && u.isVisible(view.el)
  35137. );
  35138. });
  35139. },
  35140. trimChats: function trimChats(newchat) {
  35141. var _this = this;
  35142. /* This method is called when a newly created chat box will
  35143. * be shown.
  35144. *
  35145. * It checks whether there is enough space on the page to show
  35146. * another chat box. Otherwise it minimizes the oldest chat box
  35147. * to create space.
  35148. */
  35149. var _converse = this.__super__._converse,
  35150. shown_chats = this.getShownChats(),
  35151. body_width = u.getOuterWidth(document.querySelector('body'), true);
  35152. if (_converse.no_trimming || shown_chats.length <= 1) {
  35153. return;
  35154. }
  35155. if (this.getChatBoxWidth(shown_chats[0]) === body_width) {
  35156. // If the chats shown are the same width as the body,
  35157. // then we're in responsive mode and the chats are
  35158. // fullscreen. In this case we don't trim.
  35159. return;
  35160. }
  35161. _converse.api.waitUntil('minimizedChatsInitialized').then(function () {
  35162. var minimized_el = _.get(_converse.minimized_chats, 'el'),
  35163. new_id = newchat ? newchat.model.get('id') : null;
  35164. if (minimized_el) {
  35165. var minimized_width = _.includes(_this.model.pluck('minimized'), true) ? u.getOuterWidth(minimized_el, true) : 0;
  35166. var boxes_width = _.reduce(_this.xget(new_id), function (memo, view) {
  35167. return memo + _this.getChatBoxWidth(view);
  35168. }, newchat ? u.getOuterWidth(newchat.el, true) : 0);
  35169. if (minimized_width + boxes_width > body_width) {
  35170. var oldest_chat = _this.getOldestMaximizedChat([new_id]);
  35171. if (oldest_chat) {
  35172. // We hide the chat immediately, because waiting
  35173. // for the event to fire (and letting the
  35174. // ChatBoxView hide it then) causes race
  35175. // conditions.
  35176. var view = _this.get(oldest_chat.get('id'));
  35177. if (view) {
  35178. view.hide();
  35179. }
  35180. oldest_chat.minimize();
  35181. }
  35182. }
  35183. }
  35184. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  35185. },
  35186. getOldestMaximizedChat: function getOldestMaximizedChat(exclude_ids) {
  35187. // Get oldest view (if its id is not excluded)
  35188. exclude_ids.push('controlbox');
  35189. var i = 0;
  35190. var model = this.model.sort().at(i);
  35191. while (_.includes(exclude_ids, model.get('id')) || model.get('minimized') === true) {
  35192. i++;
  35193. model = this.model.at(i);
  35194. if (!model) {
  35195. return null;
  35196. }
  35197. }
  35198. return model;
  35199. }
  35200. }
  35201. },
  35202. initialize: function initialize() {
  35203. /* The initialize function gets called as soon as the plugin is
  35204. * loaded by Converse.js's plugin machinery.
  35205. */
  35206. var _converse = this._converse,
  35207. __ = _converse.__; // Add new HTML templates.
  35208. _converse.templates.chatbox_minimize = tpl_chatbox_minimize;
  35209. _converse.templates.toggle_chats = tpl_toggle_chats;
  35210. _converse.templates.trimmed_chat = tpl_trimmed_chat;
  35211. _converse.templates.chats_panel = tpl_chats_panel;
  35212. _converse.api.settings.update({
  35213. no_trimming: false // Set to true for phantomjs tests (where browser apparently has no width)
  35214. });
  35215. _converse.api.promises.add('minimizedChatsInitialized');
  35216. _converse.MinimizedChatBoxView = Backbone.NativeView.extend({
  35217. tagName: 'div',
  35218. className: 'chat-head row no-gutters',
  35219. events: {
  35220. 'click .close-chatbox-button': 'close',
  35221. 'click .restore-chat': 'restore'
  35222. },
  35223. initialize: function initialize() {
  35224. this.model.on('change:num_unread', this.render, this);
  35225. },
  35226. render: function render() {
  35227. var data = _.extend(this.model.toJSON(), {
  35228. 'tooltip': __('Click to restore this chat')
  35229. });
  35230. if (this.model.get('type') === 'chatroom') {
  35231. data.title = this.model.get('name');
  35232. u.addClass('chat-head-chatroom', this.el);
  35233. } else {
  35234. data.title = this.model.get('fullname');
  35235. u.addClass('chat-head-chatbox', this.el);
  35236. }
  35237. this.el.innerHTML = tpl_trimmed_chat(data);
  35238. return this.el;
  35239. },
  35240. close: function close(ev) {
  35241. if (ev && ev.preventDefault) {
  35242. ev.preventDefault();
  35243. }
  35244. this.remove();
  35245. var view = _converse.chatboxviews.get(this.model.get('id'));
  35246. if (view) {
  35247. // This will call model.destroy(), removing it from the
  35248. // collection and will also emit 'chatBoxClosed'
  35249. view.close();
  35250. } else {
  35251. this.model.destroy();
  35252. _converse.emit('chatBoxClosed', this);
  35253. }
  35254. return this;
  35255. },
  35256. restore: _.debounce(function (ev) {
  35257. if (ev && ev.preventDefault) {
  35258. ev.preventDefault();
  35259. }
  35260. this.model.off('change:num_unread', null, this);
  35261. this.remove();
  35262. this.model.maximize();
  35263. }, 200, {
  35264. 'leading': true
  35265. })
  35266. });
  35267. _converse.MinimizedChats = Backbone.Overview.extend({
  35268. tagName: 'div',
  35269. id: "minimized-chats",
  35270. className: 'hidden',
  35271. events: {
  35272. "click #toggle-minimized-chats": "toggle"
  35273. },
  35274. initialize: function initialize() {
  35275. this.render();
  35276. this.initToggle();
  35277. this.addMultipleChats(this.model.where({
  35278. 'minimized': true
  35279. }));
  35280. this.model.on("add", this.onChanged, this);
  35281. this.model.on("destroy", this.removeChat, this);
  35282. this.model.on("change:minimized", this.onChanged, this);
  35283. this.model.on('change:num_unread', this.updateUnreadMessagesCounter, this);
  35284. },
  35285. render: function render() {
  35286. if (!this.el.parentElement) {
  35287. this.el.innerHTML = tpl_chats_panel();
  35288. _converse.chatboxviews.insertRowColumn(this.el);
  35289. }
  35290. if (this.keys().length === 0) {
  35291. this.el.classList.add('hidden');
  35292. } else if (this.keys().length > 0 && !u.isVisible(this.el)) {
  35293. this.el.classList.remove('hidden');
  35294. _converse.chatboxviews.trimChats();
  35295. }
  35296. return this.el;
  35297. },
  35298. tearDown: function tearDown() {
  35299. this.model.off("add", this.onChanged);
  35300. this.model.off("destroy", this.removeChat);
  35301. this.model.off("change:minimized", this.onChanged);
  35302. this.model.off('change:num_unread', this.updateUnreadMessagesCounter);
  35303. return this;
  35304. },
  35305. initToggle: function initToggle() {
  35306. var storage = _converse.config.get('storage'),
  35307. id = b64_sha1("converse.minchatstoggle".concat(_converse.bare_jid));
  35308. this.toggleview = new _converse.MinimizedChatsToggleView({
  35309. 'model': new _converse.MinimizedChatsToggle({
  35310. 'id': id
  35311. })
  35312. });
  35313. this.toggleview.model.browserStorage = new Backbone.BrowserStorage[storage](id);
  35314. this.toggleview.model.fetch();
  35315. },
  35316. toggle: function toggle(ev) {
  35317. if (ev && ev.preventDefault) {
  35318. ev.preventDefault();
  35319. }
  35320. this.toggleview.model.save({
  35321. 'collapsed': !this.toggleview.model.get('collapsed')
  35322. });
  35323. u.slideToggleElement(this.el.querySelector('.minimized-chats-flyout'), 200);
  35324. },
  35325. onChanged: function onChanged(item) {
  35326. if (item.get('id') === 'controlbox') {
  35327. // The ControlBox has it's own minimize toggle
  35328. return;
  35329. }
  35330. if (item.get('minimized')) {
  35331. this.addChat(item);
  35332. } else if (this.get(item.get('id'))) {
  35333. this.removeChat(item);
  35334. }
  35335. },
  35336. addChatView: function addChatView(item) {
  35337. var existing = this.get(item.get('id'));
  35338. if (existing && existing.el.parentNode) {
  35339. return;
  35340. }
  35341. var view = new _converse.MinimizedChatBoxView({
  35342. model: item
  35343. });
  35344. this.el.querySelector('.minimized-chats-flyout').insertAdjacentElement('beforeEnd', view.render());
  35345. this.add(item.get('id'), view);
  35346. },
  35347. addMultipleChats: function addMultipleChats(items) {
  35348. _.each(items, this.addChatView.bind(this));
  35349. this.toggleview.model.set({
  35350. 'num_minimized': this.keys().length
  35351. });
  35352. this.render();
  35353. },
  35354. addChat: function addChat(item) {
  35355. this.addChatView(item);
  35356. this.toggleview.model.set({
  35357. 'num_minimized': this.keys().length
  35358. });
  35359. this.render();
  35360. },
  35361. removeChat: function removeChat(item) {
  35362. this.remove(item.get('id'));
  35363. this.toggleview.model.set({
  35364. 'num_minimized': this.keys().length
  35365. });
  35366. this.render();
  35367. },
  35368. updateUnreadMessagesCounter: function updateUnreadMessagesCounter() {
  35369. var ls = this.model.pluck('num_unread');
  35370. var count = 0,
  35371. i;
  35372. for (i = 0; i < ls.length; i++) {
  35373. count += ls[i];
  35374. }
  35375. this.toggleview.model.save({
  35376. 'num_unread': count
  35377. });
  35378. this.render();
  35379. }
  35380. });
  35381. _converse.MinimizedChatsToggle = Backbone.Model.extend({
  35382. defaults: {
  35383. 'collapsed': false,
  35384. 'num_minimized': 0,
  35385. 'num_unread': 0
  35386. }
  35387. });
  35388. _converse.MinimizedChatsToggleView = Backbone.NativeView.extend({
  35389. el: '#toggle-minimized-chats',
  35390. initialize: function initialize() {
  35391. this.model.on('change:num_minimized', this.render, this);
  35392. this.model.on('change:num_unread', this.render, this);
  35393. this.flyout = this.el.parentElement.querySelector('.minimized-chats-flyout');
  35394. },
  35395. render: function render() {
  35396. this.el.innerHTML = tpl_toggle_chats(_.extend(this.model.toJSON(), {
  35397. 'Minimized': __('Minimized')
  35398. }));
  35399. if (this.model.get('collapsed')) {
  35400. u.hideElement(this.flyout);
  35401. } else {
  35402. u.showElement(this.flyout);
  35403. }
  35404. return this.el;
  35405. }
  35406. });
  35407. Promise.all([_converse.api.waitUntil('connectionInitialized'), _converse.api.waitUntil('chatBoxViewsInitialized')]).then(function () {
  35408. _converse.minimized_chats = new _converse.MinimizedChats({
  35409. model: _converse.chatboxes
  35410. });
  35411. _converse.emit('minimizedChatsInitialized');
  35412. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  35413. _converse.on('registeredGlobalEventHandlers', function () {
  35414. window.addEventListener("resize", _.debounce(function (ev) {
  35415. if (_converse.connection.connected) {
  35416. _converse.chatboxviews.trimChats();
  35417. }
  35418. }, 200));
  35419. });
  35420. _converse.on('controlBoxOpened', function (chatbox) {
  35421. // Wrapped in anon method because at scan time, chatboxviews
  35422. // attr not set yet.
  35423. if (_converse.connection.connected) {
  35424. _converse.chatboxviews.trimChats(chatbox);
  35425. }
  35426. });
  35427. }
  35428. });
  35429. });
  35430. /***/ }),
  35431. /***/ "./src/converse-modal.js":
  35432. /*!*******************************!*\
  35433. !*** ./src/converse-modal.js ***!
  35434. \*******************************/
  35435. /*! no static exports found */
  35436. /***/ (function(module, exports, __webpack_require__) {
  35437. "use strict";
  35438. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  35439. // Converse.js
  35440. // http://conversejs.org
  35441. //
  35442. // Copyright (c) 2018, the Converse.js developers
  35443. // Licensed under the Mozilla Public License (MPLv2)
  35444. (function (root, factory) {
  35445. if (true) {
  35446. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! templates/alert_modal.html */ "./src/templates/alert_modal.html"), __webpack_require__(/*! bootstrap */ "./node_modules/bootstrap.native/dist/bootstrap-native-v4.js"), __webpack_require__(/*! backbone.vdomview */ "./node_modules/backbone.vdomview/backbone.vdomview.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  35447. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  35448. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  35449. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  35450. }
  35451. })(void 0, function (converse, tpl_alert_modal, bootstrap) {
  35452. "use strict";
  35453. var _converse$env = converse.env,
  35454. Strophe = _converse$env.Strophe,
  35455. Backbone = _converse$env.Backbone,
  35456. _ = _converse$env._;
  35457. converse.plugins.add('converse-modal', {
  35458. initialize: function initialize() {
  35459. var _converse = this._converse;
  35460. _converse.BootstrapModal = Backbone.VDOMView.extend({
  35461. initialize: function initialize() {
  35462. var _this = this;
  35463. this.render().insertIntoDOM();
  35464. this.modal = new bootstrap.Modal(this.el, {
  35465. backdrop: 'static',
  35466. keyboard: true
  35467. });
  35468. this.el.addEventListener('hide.bs.modal', function (event) {
  35469. if (!_.isNil(_this.trigger_el)) {
  35470. _this.trigger_el.classList.remove('selected');
  35471. }
  35472. }, false);
  35473. },
  35474. insertIntoDOM: function insertIntoDOM() {
  35475. var container_el = _converse.chatboxviews.el.querySelector("#converse-modals");
  35476. container_el.insertAdjacentElement('beforeEnd', this.el);
  35477. },
  35478. show: function show(ev) {
  35479. if (ev) {
  35480. ev.preventDefault();
  35481. this.trigger_el = ev.target;
  35482. this.trigger_el.classList.add('selected');
  35483. }
  35484. this.modal.show();
  35485. }
  35486. });
  35487. _converse.Alert = _converse.BootstrapModal.extend({
  35488. initialize: function initialize() {
  35489. _converse.BootstrapModal.prototype.initialize.apply(this, arguments);
  35490. this.model.on('change', this.render, this);
  35491. },
  35492. toHTML: function toHTML() {
  35493. return tpl_alert_modal(this.model.toJSON());
  35494. }
  35495. });
  35496. _converse.api.listen.on('afterTearDown', function () {
  35497. if (!_converse.chatboxviews) {
  35498. return;
  35499. }
  35500. var container = _converse.chatboxviews.el.querySelector("#converse-modals");
  35501. if (container) {
  35502. container.innerHTML = '';
  35503. }
  35504. });
  35505. /************************ BEGIN API ************************/
  35506. // We extend the default converse.js API to add methods specific to MUC chat rooms.
  35507. var alert;
  35508. _.extend(_converse.api, {
  35509. 'alert': {
  35510. 'show': function show(type, title, messages) {
  35511. if (_.isString(messages)) {
  35512. messages = [messages];
  35513. }
  35514. if (type === Strophe.LogLevel.ERROR) {
  35515. type = 'alert-danger';
  35516. } else if (type === Strophe.LogLevel.INFO) {
  35517. type = 'alert-info';
  35518. } else if (type === Strophe.LogLevel.WARN) {
  35519. type = 'alert-warning';
  35520. }
  35521. if (_.isUndefined(alert)) {
  35522. var model = new Backbone.Model({
  35523. 'title': title,
  35524. 'messages': messages,
  35525. 'type': type
  35526. });
  35527. alert = new _converse.Alert({
  35528. 'model': model
  35529. });
  35530. } else {
  35531. alert.model.set({
  35532. 'title': title,
  35533. 'messages': messages,
  35534. 'type': type
  35535. });
  35536. }
  35537. alert.show();
  35538. }
  35539. }
  35540. });
  35541. }
  35542. });
  35543. });
  35544. /***/ }),
  35545. /***/ "./src/converse-muc-views.js":
  35546. /*!***********************************!*\
  35547. !*** ./src/converse-muc-views.js ***!
  35548. \***********************************/
  35549. /*! no static exports found */
  35550. /***/ (function(module, exports, __webpack_require__) {
  35551. "use strict";
  35552. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  35553. // Converse.js
  35554. // http://conversejs.org
  35555. //
  35556. // Copyright (c) 2013-2018, the Converse.js developers
  35557. // Licensed under the Mozilla Public License (MPLv2)
  35558. (function (root, factory) {
  35559. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! utils/muc */ "./src/utils/muc.js"), __webpack_require__(/*! xss */ "./node_modules/xss/dist/xss.js"), __webpack_require__(/*! templates/add_chatroom_modal.html */ "./src/templates/add_chatroom_modal.html"), __webpack_require__(/*! templates/chatarea.html */ "./src/templates/chatarea.html"), __webpack_require__(/*! templates/chatroom.html */ "./src/templates/chatroom.html"), __webpack_require__(/*! templates/chatroom_details_modal.html */ "./src/templates/chatroom_details_modal.html"), __webpack_require__(/*! templates/chatroom_disconnect.html */ "./src/templates/chatroom_disconnect.html"), __webpack_require__(/*! templates/chatroom_features.html */ "./src/templates/chatroom_features.html"), __webpack_require__(/*! templates/chatroom_form.html */ "./src/templates/chatroom_form.html"), __webpack_require__(/*! templates/chatroom_head.html */ "./src/templates/chatroom_head.html"), __webpack_require__(/*! templates/chatroom_invite.html */ "./src/templates/chatroom_invite.html"), __webpack_require__(/*! templates/chatroom_nickname_form.html */ "./src/templates/chatroom_nickname_form.html"), __webpack_require__(/*! templates/chatroom_password_form.html */ "./src/templates/chatroom_password_form.html"), __webpack_require__(/*! templates/chatroom_sidebar.html */ "./src/templates/chatroom_sidebar.html"), __webpack_require__(/*! templates/info.html */ "./src/templates/info.html"), __webpack_require__(/*! templates/list_chatrooms_modal.html */ "./src/templates/list_chatrooms_modal.html"), __webpack_require__(/*! templates/occupant.html */ "./src/templates/occupant.html"), __webpack_require__(/*! templates/room_description.html */ "./src/templates/room_description.html"), __webpack_require__(/*! templates/room_item.html */ "./src/templates/room_item.html"), __webpack_require__(/*! templates/room_panel.html */ "./src/templates/room_panel.html"), __webpack_require__(/*! templates/rooms_results.html */ "./src/templates/rooms_results.html"), __webpack_require__(/*! templates/spinner.html */ "./src/templates/spinner.html"), __webpack_require__(/*! awesomplete */ "awesomplete"), __webpack_require__(/*! converse-modal */ "./src/converse-modal.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  35560. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  35561. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  35562. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  35563. })(void 0, function (converse, muc_utils, xss, tpl_add_chatroom_modal, tpl_chatarea, tpl_chatroom, tpl_chatroom_details_modal, tpl_chatroom_disconnect, tpl_chatroom_features, tpl_chatroom_form, tpl_chatroom_head, tpl_chatroom_invite, tpl_chatroom_nickname_form, tpl_chatroom_password_form, tpl_chatroom_sidebar, tpl_info, tpl_list_chatrooms_modal, tpl_occupant, tpl_room_description, tpl_room_item, tpl_room_panel, tpl_rooms_results, tpl_spinner, Awesomplete) {
  35564. "use strict";
  35565. var _converse$env = converse.env,
  35566. Backbone = _converse$env.Backbone,
  35567. Promise = _converse$env.Promise,
  35568. Strophe = _converse$env.Strophe,
  35569. b64_sha1 = _converse$env.b64_sha1,
  35570. moment = _converse$env.moment,
  35571. f = _converse$env.f,
  35572. sizzle = _converse$env.sizzle,
  35573. _ = _converse$env._,
  35574. $build = _converse$env.$build,
  35575. $iq = _converse$env.$iq,
  35576. $msg = _converse$env.$msg,
  35577. $pres = _converse$env.$pres;
  35578. var u = converse.env.utils;
  35579. var ROOM_FEATURES_MAP = {
  35580. 'passwordprotected': 'unsecured',
  35581. 'unsecured': 'passwordprotected',
  35582. 'hidden': 'publicroom',
  35583. 'publicroom': 'hidden',
  35584. 'membersonly': 'open',
  35585. 'open': 'membersonly',
  35586. 'persistent': 'temporary',
  35587. 'temporary': 'persistent',
  35588. 'nonanonymous': 'semianonymous',
  35589. 'semianonymous': 'nonanonymous',
  35590. 'moderated': 'unmoderated',
  35591. 'unmoderated': 'moderated'
  35592. };
  35593. converse.plugins.add('converse-muc-views', {
  35594. /* Dependencies are other plugins which might be
  35595. * overridden or relied upon, and therefore need to be loaded before
  35596. * this plugin. They are "optional" because they might not be
  35597. * available, in which case any overrides applicable to them will be
  35598. * ignored.
  35599. *
  35600. * NB: These plugins need to have already been loaded via require.js.
  35601. *
  35602. * It's possible to make these dependencies "non-optional".
  35603. * If the setting "strict_plugin_dependencies" is set to true,
  35604. * an error will be raised if the plugin is not found.
  35605. */
  35606. dependencies: ["converse-autocomplete", "converse-modal", "converse-controlbox", "converse-chatview"],
  35607. overrides: {
  35608. ControlBoxView: {
  35609. renderRoomsPanel: function renderRoomsPanel() {
  35610. var _converse = this.__super__._converse;
  35611. this.roomspanel = new _converse.RoomsPanel({
  35612. 'model': new (_converse.RoomsPanelModel.extend({
  35613. 'id': b64_sha1("converse.roomspanel".concat(_converse.bare_jid)),
  35614. // Required by sessionStorage
  35615. 'browserStorage': new Backbone.BrowserStorage[_converse.config.get('storage')](b64_sha1("converse.roomspanel".concat(_converse.bare_jid)))
  35616. }))()
  35617. });
  35618. this.roomspanel.model.fetch();
  35619. this.el.querySelector('.controlbox-pane').insertAdjacentElement('beforeEnd', this.roomspanel.render().el);
  35620. if (!this.roomspanel.model.get('nick')) {
  35621. this.roomspanel.model.save({
  35622. nick: _converse.xmppstatus.vcard.get('nickname') || Strophe.getNodeFromJid(_converse.bare_jid)
  35623. });
  35624. }
  35625. _converse.emit('roomsPanelRendered');
  35626. },
  35627. renderControlBoxPane: function renderControlBoxPane() {
  35628. var _converse = this.__super__._converse;
  35629. this.__super__.renderControlBoxPane.apply(this, arguments);
  35630. if (_converse.allow_muc) {
  35631. this.renderRoomsPanel();
  35632. }
  35633. }
  35634. }
  35635. },
  35636. initialize: function initialize() {
  35637. var _converse = this._converse,
  35638. __ = _converse.__;
  35639. _converse.api.promises.add(['roomsPanelRendered']); // Configuration values for this plugin
  35640. // ====================================
  35641. // Refer to docs/source/configuration.rst for explanations of these
  35642. // configuration settings.
  35643. _converse.api.settings.update({
  35644. 'auto_list_rooms': false,
  35645. 'hide_muc_server': false,
  35646. // TODO: no longer implemented...
  35647. 'muc_disable_moderator_commands': false,
  35648. 'visible_toolbar_buttons': {
  35649. 'toggle_occupants': true
  35650. }
  35651. });
  35652. function ___(str) {
  35653. /* This is part of a hack to get gettext to scan strings to be
  35654. * translated. Strings we cannot send to the function above because
  35655. * they require variable interpolation and we don't yet have the
  35656. * variables at scan time.
  35657. *
  35658. * See actionInfoMessages further below.
  35659. */
  35660. return str;
  35661. }
  35662. /* http://xmpp.org/extensions/xep-0045.html
  35663. * ----------------------------------------
  35664. * 100 message Entering a groupchat Inform user that any occupant is allowed to see the user's full JID
  35665. * 101 message (out of band) Affiliation change Inform user that his or her affiliation changed while not in the groupchat
  35666. * 102 message Configuration change Inform occupants that groupchat now shows unavailable members
  35667. * 103 message Configuration change Inform occupants that groupchat now does not show unavailable members
  35668. * 104 message Configuration change Inform occupants that a non-privacy-related groupchat configuration change has occurred
  35669. * 110 presence Any groupchat presence Inform user that presence refers to one of its own groupchat occupants
  35670. * 170 message or initial presence Configuration change Inform occupants that groupchat logging is now enabled
  35671. * 171 message Configuration change Inform occupants that groupchat logging is now disabled
  35672. * 172 message Configuration change Inform occupants that the groupchat is now non-anonymous
  35673. * 173 message Configuration change Inform occupants that the groupchat is now semi-anonymous
  35674. * 174 message Configuration change Inform occupants that the groupchat is now fully-anonymous
  35675. * 201 presence Entering a groupchat Inform user that a new groupchat has been created
  35676. * 210 presence Entering a groupchat Inform user that the service has assigned or modified the occupant's roomnick
  35677. * 301 presence Removal from groupchat Inform user that he or she has been banned from the groupchat
  35678. * 303 presence Exiting a groupchat Inform all occupants of new groupchat nickname
  35679. * 307 presence Removal from groupchat Inform user that he or she has been kicked from the groupchat
  35680. * 321 presence Removal from groupchat Inform user that he or she is being removed from the groupchat because of an affiliation change
  35681. * 322 presence Removal from groupchat Inform user that he or she is being removed from the groupchat because the groupchat has been changed to members-only and the user is not a member
  35682. * 332 presence Removal from groupchat Inform user that he or she is being removed from the groupchat because of a system shutdown
  35683. */
  35684. _converse.muc = {
  35685. info_messages: {
  35686. 100: __('This groupchat is not anonymous'),
  35687. 102: __('This groupchat now shows unavailable members'),
  35688. 103: __('This groupchat does not show unavailable members'),
  35689. 104: __('The groupchat configuration has changed'),
  35690. 170: __('groupchat logging is now enabled'),
  35691. 171: __('groupchat logging is now disabled'),
  35692. 172: __('This groupchat is now no longer anonymous'),
  35693. 173: __('This groupchat is now semi-anonymous'),
  35694. 174: __('This groupchat is now fully-anonymous'),
  35695. 201: __('A new groupchat has been created')
  35696. },
  35697. disconnect_messages: {
  35698. 301: __('You have been banned from this groupchat'),
  35699. 307: __('You have been kicked from this groupchat'),
  35700. 321: __("You have been removed from this groupchat because of an affiliation change"),
  35701. 322: __("You have been removed from this groupchat because the groupchat has changed to members-only and you're not a member"),
  35702. 332: __("You have been removed from this groupchat because the service hosting it is being shut down")
  35703. },
  35704. action_info_messages: {
  35705. /* XXX: Note the triple underscore function and not double
  35706. * underscore.
  35707. *
  35708. * This is a hack. We can't pass the strings to __ because we
  35709. * don't yet know what the variable to interpolate is.
  35710. *
  35711. * Triple underscore will just return the string again, but we
  35712. * can then at least tell gettext to scan for it so that these
  35713. * strings are picked up by the translation machinery.
  35714. */
  35715. 301: ___("%1$s has been banned"),
  35716. 303: ___("%1$s's nickname has changed"),
  35717. 307: ___("%1$s has been kicked out"),
  35718. 321: ___("%1$s has been removed because of an affiliation change"),
  35719. 322: ___("%1$s has been removed for not being a member")
  35720. },
  35721. new_nickname_messages: {
  35722. 210: ___('Your nickname has been automatically set to %1$s'),
  35723. 303: ___('Your nickname has been changed to %1$s')
  35724. }
  35725. };
  35726. function insertRoomInfo(el, stanza) {
  35727. /* Insert groupchat info (based on returned #disco IQ stanza)
  35728. *
  35729. * Parameters:
  35730. * (HTMLElement) el: The HTML DOM element that should
  35731. * contain the info.
  35732. * (XMLElement) stanza: The IQ stanza containing the groupchat
  35733. * info.
  35734. */
  35735. // All MUC features found here: http://xmpp.org/registrar/disco-features.html
  35736. el.querySelector('span.spinner').remove();
  35737. el.querySelector('a.room-info').classList.add('selected');
  35738. el.insertAdjacentHTML('beforeEnd', tpl_room_description({
  35739. 'jid': stanza.getAttribute('from'),
  35740. 'desc': _.get(_.head(sizzle('field[var="muc#roominfo_description"] value', stanza)), 'textContent'),
  35741. 'occ': _.get(_.head(sizzle('field[var="muc#roominfo_occupants"] value', stanza)), 'textContent'),
  35742. 'hidden': sizzle('feature[var="muc_hidden"]', stanza).length,
  35743. 'membersonly': sizzle('feature[var="muc_membersonly"]', stanza).length,
  35744. 'moderated': sizzle('feature[var="muc_moderated"]', stanza).length,
  35745. 'nonanonymous': sizzle('feature[var="muc_nonanonymous"]', stanza).length,
  35746. 'open': sizzle('feature[var="muc_open"]', stanza).length,
  35747. 'passwordprotected': sizzle('feature[var="muc_passwordprotected"]', stanza).length,
  35748. 'persistent': sizzle('feature[var="muc_persistent"]', stanza).length,
  35749. 'publicroom': sizzle('feature[var="muc_publicroom"]', stanza).length,
  35750. 'semianonymous': sizzle('feature[var="muc_semianonymous"]', stanza).length,
  35751. 'temporary': sizzle('feature[var="muc_temporary"]', stanza).length,
  35752. 'unmoderated': sizzle('feature[var="muc_unmoderated"]', stanza).length,
  35753. 'label_desc': __('Description:'),
  35754. 'label_jid': __('Groupchat Address (JID):'),
  35755. 'label_occ': __('Participants:'),
  35756. 'label_features': __('Features:'),
  35757. 'label_requires_auth': __('Requires authentication'),
  35758. 'label_hidden': __('Hidden'),
  35759. 'label_requires_invite': __('Requires an invitation'),
  35760. 'label_moderated': __('Moderated'),
  35761. 'label_non_anon': __('Non-anonymous'),
  35762. 'label_open_room': __('Open'),
  35763. 'label_permanent_room': __('Permanent'),
  35764. 'label_public': __('Public'),
  35765. 'label_semi_anon': __('Semi-anonymous'),
  35766. 'label_temp_room': __('Temporary'),
  35767. 'label_unmoderated': __('Unmoderated')
  35768. }));
  35769. }
  35770. function _toggleRoomInfo(ev) {
  35771. /* Show/hide extra information about a groupchat in a listing. */
  35772. var parent_el = u.ancestor(ev.target, '.room-item'),
  35773. div_el = parent_el.querySelector('div.room-info');
  35774. if (div_el) {
  35775. u.slideIn(div_el).then(u.removeElement);
  35776. parent_el.querySelector('a.room-info').classList.remove('selected');
  35777. } else {
  35778. parent_el.insertAdjacentHTML('beforeend', tpl_spinner());
  35779. _converse.api.disco.info(ev.target.getAttribute('data-room-jid'), null).then(function (stanza) {
  35780. return insertRoomInfo(parent_el, stanza);
  35781. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.ERROR));
  35782. }
  35783. }
  35784. _converse.ListChatRoomsModal = _converse.BootstrapModal.extend({
  35785. events: {
  35786. 'submit form': 'showRooms',
  35787. 'click a.room-info': 'toggleRoomInfo',
  35788. 'change input[name=nick]': 'setNick',
  35789. 'change input[name=server]': 'setDomain',
  35790. 'click .open-room': 'openRoom'
  35791. },
  35792. initialize: function initialize() {
  35793. _converse.BootstrapModal.prototype.initialize.apply(this, arguments);
  35794. this.model.on('change:muc_domain', this.onDomainChange, this);
  35795. },
  35796. toHTML: function toHTML() {
  35797. return tpl_list_chatrooms_modal(_.extend(this.model.toJSON(), {
  35798. 'heading_list_chatrooms': __('Query for Groupchats'),
  35799. 'label_server_address': __('Server address'),
  35800. 'label_query': __('Show groupchats'),
  35801. 'server_placeholder': __('conference.example.org')
  35802. }));
  35803. },
  35804. afterRender: function afterRender() {
  35805. var _this = this;
  35806. this.el.addEventListener('shown.bs.modal', function () {
  35807. _this.el.querySelector('input[name="server"]').focus();
  35808. }, false);
  35809. },
  35810. openRoom: function openRoom(ev) {
  35811. ev.preventDefault();
  35812. var jid = ev.target.getAttribute('data-room-jid');
  35813. var name = ev.target.getAttribute('data-room-name');
  35814. this.modal.hide();
  35815. _converse.api.rooms.open(jid, {
  35816. 'name': name
  35817. });
  35818. },
  35819. toggleRoomInfo: function toggleRoomInfo(ev) {
  35820. ev.preventDefault();
  35821. _toggleRoomInfo(ev);
  35822. },
  35823. onDomainChange: function onDomainChange(model) {
  35824. if (_converse.auto_list_rooms) {
  35825. this.updateRoomsList();
  35826. }
  35827. },
  35828. roomStanzaItemToHTMLElement: function roomStanzaItemToHTMLElement(groupchat) {
  35829. var name = Strophe.unescapeNode(groupchat.getAttribute('name') || groupchat.getAttribute('jid'));
  35830. var div = document.createElement('div');
  35831. div.innerHTML = tpl_room_item({
  35832. 'name': Strophe.xmlunescape(name),
  35833. 'jid': groupchat.getAttribute('jid'),
  35834. 'open_title': __('Click to open this groupchat'),
  35835. 'info_title': __('Show more information on this groupchat')
  35836. });
  35837. return div.firstElementChild;
  35838. },
  35839. removeSpinner: function removeSpinner() {
  35840. _.each(this.el.querySelectorAll('span.spinner'), function (el) {
  35841. return el.parentNode.removeChild(el);
  35842. });
  35843. },
  35844. informNoRoomsFound: function informNoRoomsFound() {
  35845. var chatrooms_el = this.el.querySelector('.available-chatrooms');
  35846. chatrooms_el.innerHTML = tpl_rooms_results({
  35847. 'feedback_text': __('No groupchats found')
  35848. });
  35849. var input_el = this.el.querySelector('input[name="server"]');
  35850. input_el.classList.remove('hidden');
  35851. this.removeSpinner();
  35852. },
  35853. onRoomsFound: function onRoomsFound(iq) {
  35854. /* Handle the IQ stanza returned from the server, containing
  35855. * all its public groupchats.
  35856. */
  35857. var available_chatrooms = this.el.querySelector('.available-chatrooms');
  35858. this.rooms = iq.querySelectorAll('query item');
  35859. if (this.rooms.length) {
  35860. // For translators: %1$s is a variable and will be
  35861. // replaced with the XMPP server name
  35862. available_chatrooms.innerHTML = tpl_rooms_results({
  35863. 'feedback_text': __('Groupchats found:')
  35864. });
  35865. var fragment = document.createDocumentFragment();
  35866. var children = _.reject(_.map(this.rooms, this.roomStanzaItemToHTMLElement), _.isNil);
  35867. _.each(children, function (child) {
  35868. return fragment.appendChild(child);
  35869. });
  35870. available_chatrooms.appendChild(fragment);
  35871. this.removeSpinner();
  35872. } else {
  35873. this.informNoRoomsFound();
  35874. }
  35875. return true;
  35876. },
  35877. updateRoomsList: function updateRoomsList() {
  35878. /* Send an IQ stanza to the server asking for all groupchats
  35879. */
  35880. _converse.connection.sendIQ($iq({
  35881. 'to': this.model.get('muc_domain'),
  35882. 'from': _converse.connection.jid,
  35883. 'type': "get"
  35884. }).c("query", {
  35885. xmlns: Strophe.NS.DISCO_ITEMS
  35886. }), this.onRoomsFound.bind(this), this.informNoRoomsFound.bind(this), 5000);
  35887. },
  35888. showRooms: function showRooms(ev) {
  35889. ev.preventDefault();
  35890. var data = new FormData(ev.target);
  35891. this.model.save('muc_domain', data.get('server'));
  35892. this.updateRoomsList();
  35893. },
  35894. setDomain: function setDomain(ev) {
  35895. this.model.save({
  35896. 'muc_domain': ev.target.value
  35897. });
  35898. },
  35899. setNick: function setNick(ev) {
  35900. this.model.save({
  35901. nick: ev.target.value
  35902. });
  35903. }
  35904. });
  35905. _converse.AddChatRoomModal = _converse.BootstrapModal.extend({
  35906. events: {
  35907. 'submit form.add-chatroom': 'openChatRoom'
  35908. },
  35909. toHTML: function toHTML() {
  35910. return tpl_add_chatroom_modal(_.extend(this.model.toJSON(), {
  35911. 'heading_new_chatroom': __('Enter a new Groupchat'),
  35912. 'label_room_address': __('Groupchat address'),
  35913. 'label_nickname': __('Optional nickname'),
  35914. 'chatroom_placeholder': __('name@conference.example.org'),
  35915. 'label_join': __('Join')
  35916. }));
  35917. },
  35918. afterRender: function afterRender() {
  35919. var _this2 = this;
  35920. this.el.addEventListener('shown.bs.modal', function () {
  35921. _this2.el.querySelector('input[name="chatroom"]').focus();
  35922. }, false);
  35923. },
  35924. parseRoomDataFromEvent: function parseRoomDataFromEvent(form) {
  35925. var data = new FormData(form);
  35926. var jid = data.get('chatroom');
  35927. this.model.save('muc_domain', Strophe.getDomainFromJid(jid));
  35928. return {
  35929. 'jid': jid,
  35930. 'nick': data.get('nickname')
  35931. };
  35932. },
  35933. openChatRoom: function openChatRoom(ev) {
  35934. ev.preventDefault();
  35935. var data = this.parseRoomDataFromEvent(ev.target);
  35936. if (data.nick === "") {
  35937. // Make sure defaults apply if no nick is provided.
  35938. data.nick = undefined;
  35939. }
  35940. _converse.api.rooms.open(data.jid, data);
  35941. this.modal.hide();
  35942. ev.target.reset();
  35943. }
  35944. });
  35945. _converse.RoomDetailsModal = _converse.BootstrapModal.extend({
  35946. initialize: function initialize() {
  35947. _converse.BootstrapModal.prototype.initialize.apply(this, arguments);
  35948. this.model.on('change', this.render, this);
  35949. this.model.occupants.on('change', this.render, this);
  35950. },
  35951. toHTML: function toHTML() {
  35952. return tpl_chatroom_details_modal(_.extend(this.model.toJSON(), {
  35953. '_': _,
  35954. '__': __,
  35955. 'topic': u.addHyperlinks(xss.filterXSS(_.get(this.model.get('subject'), 'text'), {
  35956. 'whiteList': {}
  35957. })),
  35958. 'display_name': __('Groupchat info for %1$s', this.model.getDisplayName()),
  35959. 'num_occupants': this.model.occupants.length
  35960. }));
  35961. }
  35962. });
  35963. _converse.ChatRoomView = _converse.ChatBoxView.extend({
  35964. /* Backbone.NativeView which renders a groupchat, based upon the view
  35965. * for normal one-on-one chat boxes.
  35966. */
  35967. length: 300,
  35968. tagName: 'div',
  35969. className: 'chatbox chatroom hidden',
  35970. is_chatroom: true,
  35971. events: {
  35972. 'change input.fileupload': 'onFileSelection',
  35973. 'click .chat-msg__action-edit': 'onMessageEditButtonClicked',
  35974. 'click .chatbox-navback': 'showControlBox',
  35975. 'click .close-chatbox-button': 'close',
  35976. 'click .configure-chatroom-button': 'getAndRenderConfigurationForm',
  35977. 'click .show-room-details-modal': 'showRoomDetailsModal',
  35978. 'click .hide-occupants': 'hideOccupants',
  35979. 'click .new-msgs-indicator': 'viewUnreadMessages',
  35980. 'click .occupant-nick': 'onOccupantClicked',
  35981. 'click .send-button': 'onFormSubmitted',
  35982. 'click .toggle-call': 'toggleCall',
  35983. 'click .toggle-occupants': 'toggleOccupants',
  35984. 'click .toggle-smiley ul.emoji-picker li': 'insertEmoji',
  35985. 'click .toggle-smiley': 'toggleEmojiMenu',
  35986. 'click .upload-file': 'toggleFileUpload',
  35987. 'keydown .chat-textarea': 'keyPressed',
  35988. 'keyup .chat-textarea': 'keyUp',
  35989. 'input .chat-textarea': 'inputChanged'
  35990. },
  35991. initialize: function initialize() {
  35992. var _this3 = this;
  35993. this.initDebounced();
  35994. this.model.messages.on('add', this.onMessageAdded, this);
  35995. this.model.messages.on('rendered', this.scrollDown, this);
  35996. this.model.on('change:affiliation', this.renderHeading, this);
  35997. this.model.on('change:connection_status', this.afterConnected, this);
  35998. this.model.on('change:name', this.renderHeading, this);
  35999. this.model.on('change:subject', this.renderHeading, this);
  36000. this.model.on('change:subject', this.setChatRoomSubject, this);
  36001. this.model.on('configurationNeeded', this.getAndRenderConfigurationForm, this);
  36002. this.model.on('destroy', this.hide, this);
  36003. this.model.on('show', this.show, this);
  36004. this.model.occupants.on('add', this.showJoinNotification, this);
  36005. this.model.occupants.on('remove', this.showLeaveNotification, this);
  36006. this.model.occupants.on('change:show', this.showJoinOrLeaveNotification, this);
  36007. this.model.occupants.on('change:role', this.informOfOccupantsRoleChange, this);
  36008. this.model.occupants.on('change:affiliation', this.informOfOccupantsAffiliationChange, this);
  36009. this.createEmojiPicker();
  36010. this.createOccupantsView();
  36011. this.render().insertIntoDOM();
  36012. this.registerHandlers();
  36013. if (this.model.get('connection_status') !== converse.ROOMSTATUS.ENTERED) {
  36014. var handler = function handler() {
  36015. if (!u.isPersistableModel(_this3.model)) {
  36016. // Happens during tests, nothing to do if this
  36017. // is a hanging chatbox (i.e. not in the collection anymore).
  36018. return;
  36019. }
  36020. _this3.populateAndJoin();
  36021. _converse.emit('chatRoomOpened', _this3);
  36022. };
  36023. this.model.getRoomFeatures().then(handler, handler);
  36024. } else {
  36025. this.fetchMessages();
  36026. _converse.emit('chatRoomOpened', this);
  36027. }
  36028. },
  36029. render: function render() {
  36030. this.el.setAttribute('id', this.model.get('box_id'));
  36031. this.el.innerHTML = tpl_chatroom();
  36032. this.renderHeading();
  36033. this.renderChatArea();
  36034. this.renderMessageForm();
  36035. this.initAutoComplete();
  36036. if (this.model.get('connection_status') !== converse.ROOMSTATUS.ENTERED) {
  36037. this.showSpinner();
  36038. }
  36039. return this;
  36040. },
  36041. renderHeading: function renderHeading() {
  36042. /* Render the heading UI of the groupchat. */
  36043. this.el.querySelector('.chat-head-chatroom').innerHTML = this.generateHeadingHTML();
  36044. },
  36045. renderChatArea: function renderChatArea() {
  36046. /* Render the UI container in which groupchat messages will appear.
  36047. */
  36048. if (_.isNull(this.el.querySelector('.chat-area'))) {
  36049. var container_el = this.el.querySelector('.chatroom-body');
  36050. container_el.insertAdjacentHTML('beforeend', tpl_chatarea({
  36051. 'show_send_button': _converse.show_send_button
  36052. }));
  36053. container_el.insertAdjacentElement('beforeend', this.occupantsview.el);
  36054. this.content = this.el.querySelector('.chat-content');
  36055. this.toggleOccupants(null, true);
  36056. }
  36057. return this;
  36058. },
  36059. initAutoComplete: function initAutoComplete() {
  36060. var _this4 = this;
  36061. this.auto_complete = new _converse.AutoComplete(this.el, {
  36062. 'auto_first': true,
  36063. 'auto_evaluate': false,
  36064. 'min_chars': 1,
  36065. 'match_current_word': true,
  36066. 'match_on_tab': true,
  36067. 'list': function list() {
  36068. return _this4.model.occupants.map(function (o) {
  36069. return {
  36070. 'label': o.getDisplayName(),
  36071. 'value': "@".concat(o.getDisplayName())
  36072. };
  36073. });
  36074. },
  36075. 'filter': _converse.FILTER_STARTSWITH,
  36076. 'trigger_on_at': true
  36077. });
  36078. this.auto_complete.on('suggestion-box-selectcomplete', function () {
  36079. return _this4.auto_completing = false;
  36080. });
  36081. },
  36082. keyPressed: function keyPressed(ev) {
  36083. if (this.auto_complete.keyPressed(ev)) {
  36084. return;
  36085. }
  36086. return _converse.ChatBoxView.prototype.keyPressed.apply(this, arguments);
  36087. },
  36088. keyUp: function keyUp(ev) {
  36089. this.auto_complete.evaluate(ev);
  36090. },
  36091. showRoomDetailsModal: function showRoomDetailsModal(ev) {
  36092. ev.preventDefault();
  36093. if (_.isUndefined(this.model.room_details_modal)) {
  36094. this.model.room_details_modal = new _converse.RoomDetailsModal({
  36095. 'model': this.model
  36096. });
  36097. }
  36098. this.model.room_details_modal.show(ev);
  36099. },
  36100. showChatStateNotification: function showChatStateNotification(message) {
  36101. if (message.get('sender') === 'me') {
  36102. return;
  36103. }
  36104. return _converse.ChatBoxView.prototype.showChatStateNotification.apply(this, arguments);
  36105. },
  36106. createOccupantsView: function createOccupantsView() {
  36107. /* Create the ChatRoomOccupantsView Backbone.NativeView
  36108. */
  36109. this.model.occupants.chatroomview = this;
  36110. this.occupantsview = new _converse.ChatRoomOccupantsView({
  36111. 'model': this.model.occupants
  36112. });
  36113. return this;
  36114. },
  36115. informOfOccupantsAffiliationChange: function informOfOccupantsAffiliationChange(occupant, changed) {
  36116. var previous_affiliation = occupant._previousAttributes.affiliation,
  36117. current_affiliation = occupant.get('affiliation');
  36118. if (previous_affiliation === 'admin') {
  36119. this.showChatEvent(__("%1$s is no longer an admin of this groupchat", occupant.get('nick')));
  36120. } else if (previous_affiliation === 'owner') {
  36121. this.showChatEvent(__("%1$s is no longer an owner of this groupchat", occupant.get('nick')));
  36122. } else if (previous_affiliation === 'outcast') {
  36123. this.showChatEvent(__("%1$s is no longer banned from this groupchat", occupant.get('nick')));
  36124. }
  36125. if (current_affiliation === 'none' && previous_affiliation === 'member') {
  36126. this.showChatEvent(__("%1$s is no longer a permanent member of this groupchat", occupant.get('nick')));
  36127. }
  36128. if (current_affiliation === 'member') {
  36129. this.showChatEvent(__("%1$s is now a permanent member of this groupchat", occupant.get('nick')));
  36130. } else if (current_affiliation === 'outcast') {
  36131. this.showChatEvent(__("%1$s has been banned from this groupchat", occupant.get('nick')));
  36132. } else if (current_affiliation === 'admin' || current_affiliation == 'owner') {
  36133. this.showChatEvent(__("%1$s is now an ".concat(current_affiliation, " of this groupchat"), occupant.get('nick')));
  36134. }
  36135. },
  36136. informOfOccupantsRoleChange: function informOfOccupantsRoleChange(occupant, changed) {
  36137. var previous_role = occupant._previousAttributes.role;
  36138. if (previous_role === 'moderator') {
  36139. this.showChatEvent(__("%1$s is no longer a moderator", occupant.get('nick')));
  36140. }
  36141. if (previous_role === 'visitor') {
  36142. this.showChatEvent(__("%1$s has been given a voice again", occupant.get('nick')));
  36143. }
  36144. if (occupant.get('role') === 'visitor') {
  36145. this.showChatEvent(__("%1$s has been muted", occupant.get('nick')));
  36146. }
  36147. if (occupant.get('role') === 'moderator') {
  36148. this.showChatEvent(__("%1$s is now a moderator", occupant.get('nick')));
  36149. }
  36150. },
  36151. generateHeadingHTML: function generateHeadingHTML() {
  36152. /* Returns the heading HTML to be rendered.
  36153. */
  36154. return tpl_chatroom_head(_.extend(this.model.toJSON(), {
  36155. 'Strophe': Strophe,
  36156. 'info_close': __('Close and leave this groupchat'),
  36157. 'info_configure': __('Configure this groupchat'),
  36158. 'info_details': __('Show more details about this groupchat'),
  36159. 'description': _.get(this.model.get('subject'), 'text') || ''
  36160. }));
  36161. },
  36162. afterShown: function afterShown() {
  36163. /* Override from converse-chatview, specifically to avoid
  36164. * the 'active' chat state from being sent out prematurely.
  36165. *
  36166. * This is instead done in `afterConnected` below.
  36167. */
  36168. if (u.isPersistableModel(this.model)) {
  36169. this.model.clearUnreadMsgCounter();
  36170. this.model.save();
  36171. }
  36172. this.occupantsview.setOccupantsHeight();
  36173. this.scrollDown();
  36174. this.renderEmojiPicker();
  36175. },
  36176. show: function show() {
  36177. if (u.isVisible(this.el)) {
  36178. this.focus();
  36179. return;
  36180. } // Override from converse-chatview in order to not use
  36181. // "fadeIn", which causes flashing.
  36182. u.showElement(this.el);
  36183. this.afterShown();
  36184. },
  36185. afterConnected: function afterConnected() {
  36186. if (this.model.get('connection_status') === converse.ROOMSTATUS.ENTERED) {
  36187. this.hideSpinner();
  36188. this.setChatState(_converse.ACTIVE);
  36189. this.scrollDown();
  36190. this.focus();
  36191. }
  36192. },
  36193. getToolbarOptions: function getToolbarOptions() {
  36194. return _.extend(_converse.ChatBoxView.prototype.getToolbarOptions.apply(this, arguments), {
  36195. 'label_hide_occupants': __('Hide the list of participants'),
  36196. 'show_occupants_toggle': this.is_chatroom && _converse.visible_toolbar_buttons.toggle_occupants
  36197. });
  36198. },
  36199. close: function close(ev) {
  36200. /* Close this chat box, which implies leaving the groupchat as
  36201. * well.
  36202. */
  36203. this.hide();
  36204. if (Backbone.history.getFragment() === "converse/room?jid=" + this.model.get('jid')) {
  36205. _converse.router.navigate('');
  36206. }
  36207. this.model.leave();
  36208. _converse.ChatBoxView.prototype.close.apply(this, arguments);
  36209. },
  36210. setOccupantsVisibility: function setOccupantsVisibility() {
  36211. var icon_el = this.el.querySelector('.toggle-occupants');
  36212. if (this.model.get('hidden_occupants')) {
  36213. u.removeClass('fa-angle-double-right', icon_el);
  36214. u.addClass('fa-angle-double-left', icon_el);
  36215. u.addClass('full', this.el.querySelector('.chat-area'));
  36216. u.hideElement(this.el.querySelector('.occupants'));
  36217. } else {
  36218. u.addClass('fa-angle-double-right', icon_el);
  36219. u.removeClass('fa-angle-double-left', icon_el);
  36220. u.removeClass('full', this.el.querySelector('.chat-area'));
  36221. u.removeClass('hidden', this.el.querySelector('.occupants'));
  36222. }
  36223. this.occupantsview.setOccupantsHeight();
  36224. },
  36225. hideOccupants: function hideOccupants(ev, preserve_state) {
  36226. /* Show or hide the right sidebar containing the chat
  36227. * occupants (and the invite widget).
  36228. */
  36229. if (ev) {
  36230. ev.preventDefault();
  36231. ev.stopPropagation();
  36232. }
  36233. this.model.save({
  36234. 'hidden_occupants': true
  36235. });
  36236. this.setOccupantsVisibility();
  36237. this.scrollDown();
  36238. },
  36239. toggleOccupants: function toggleOccupants(ev, preserve_state) {
  36240. /* Show or hide the right sidebar containing the chat
  36241. * occupants (and the invite widget).
  36242. */
  36243. if (ev) {
  36244. ev.preventDefault();
  36245. ev.stopPropagation();
  36246. }
  36247. if (!preserve_state) {
  36248. this.model.set({
  36249. 'hidden_occupants': !this.model.get('hidden_occupants')
  36250. });
  36251. }
  36252. this.setOccupantsVisibility();
  36253. this.scrollDown();
  36254. },
  36255. onOccupantClicked: function onOccupantClicked(ev) {
  36256. /* When an occupant is clicked, insert their nickname into
  36257. * the chat textarea input.
  36258. */
  36259. this.insertIntoTextArea(ev.target.textContent);
  36260. },
  36261. handleChatStateNotification: function handleChatStateNotification(message) {
  36262. /* Override the method on the ChatBoxView base class to
  36263. * ignore <gone/> notifications in groupchats.
  36264. *
  36265. * As laid out in the business rules in XEP-0085
  36266. * http://xmpp.org/extensions/xep-0085.html#bizrules-groupchat
  36267. */
  36268. if (message.get('fullname') === this.model.get('nick')) {
  36269. // Don't know about other servers, but OpenFire sends
  36270. // back to you your own chat state notifications.
  36271. // We ignore them here...
  36272. return;
  36273. }
  36274. if (message.get('chat_state') !== _converse.GONE) {
  36275. _converse.ChatBoxView.prototype.handleChatStateNotification.apply(this, arguments);
  36276. }
  36277. },
  36278. modifyRole: function modifyRole(groupchat, nick, role, reason, onSuccess, onError) {
  36279. var item = $build("item", {
  36280. nick: nick,
  36281. role: role
  36282. });
  36283. var iq = $iq({
  36284. to: groupchat,
  36285. type: "set"
  36286. }).c("query", {
  36287. xmlns: Strophe.NS.MUC_ADMIN
  36288. }).cnode(item.node);
  36289. if (reason !== null) {
  36290. iq.c("reason", reason);
  36291. }
  36292. return _converse.connection.sendIQ(iq, onSuccess, onError);
  36293. },
  36294. verifyRoles: function verifyRoles(roles) {
  36295. var me = this.model.occupants.findWhere({
  36296. 'jid': _converse.bare_jid
  36297. });
  36298. if (!_.includes(roles, me.get('role'))) {
  36299. this.showErrorMessage(__("Forbidden: you do not have the necessary role in order to do that."));
  36300. return false;
  36301. }
  36302. return true;
  36303. },
  36304. verifyAffiliations: function verifyAffiliations(affiliations) {
  36305. var me = this.model.occupants.findWhere({
  36306. 'jid': _converse.bare_jid
  36307. });
  36308. if (!_.includes(affiliations, me.get('affiliation'))) {
  36309. this.showErrorMessage(__("Forbidden: you do not have the necessary affiliation in order to do that."));
  36310. return false;
  36311. }
  36312. return true;
  36313. },
  36314. validateRoleChangeCommand: function validateRoleChangeCommand(command, args) {
  36315. /* Check that a command to change a groupchat user's role or
  36316. * affiliation has anough arguments.
  36317. */
  36318. if (args.length < 1 || args.length > 2) {
  36319. this.showErrorMessage(__('Error: the "%1$s" command takes two arguments, the user\'s nickname and optionally a reason.', command));
  36320. return false;
  36321. }
  36322. if (!this.model.occupants.findWhere({
  36323. 'nick': args[0]
  36324. }) && !this.model.occupants.findWhere({
  36325. 'jid': args[0]
  36326. })) {
  36327. this.showErrorMessage(__('Error: couldn\'t find a groupchat participant "%1$s"', args[0]));
  36328. return false;
  36329. }
  36330. return true;
  36331. },
  36332. onCommandError: function onCommandError(err) {
  36333. _converse.log(err, Strophe.LogLevel.FATAL);
  36334. this.showErrorMessage(__("Sorry, an error happened while running the command. Check your browser's developer console for details."));
  36335. },
  36336. parseMessageForCommands: function parseMessageForCommands(text) {
  36337. var _this5 = this;
  36338. if (_converse.ChatBoxView.prototype.parseMessageForCommands.apply(this, arguments)) {
  36339. return true;
  36340. }
  36341. if (_converse.muc_disable_moderator_commands) {
  36342. return false;
  36343. }
  36344. var match = text.replace(/^\s*/, "").match(/^\/(.*?)(?: (.*))?$/) || [false, '', ''],
  36345. args = match[2] && match[2].splitOnce(' ') || [],
  36346. command = match[1].toLowerCase();
  36347. switch (command) {
  36348. case 'admin':
  36349. if (!this.verifyAffiliations(['owner']) || !this.validateRoleChangeCommand(command, args)) {
  36350. break;
  36351. }
  36352. this.model.setAffiliation('admin', [{
  36353. 'jid': args[0],
  36354. 'reason': args[1]
  36355. }]).then(function () {
  36356. return _this5.model.occupants.fetchMembers();
  36357. }, function (err) {
  36358. return _this5.onCommandError(err);
  36359. });
  36360. break;
  36361. case 'ban':
  36362. if (!this.verifyAffiliations(['owner', 'admin']) || !this.validateRoleChangeCommand(command, args)) {
  36363. break;
  36364. }
  36365. this.model.setAffiliation('outcast', [{
  36366. 'jid': args[0],
  36367. 'reason': args[1]
  36368. }]).then(function () {
  36369. return _this5.model.occupants.fetchMembers();
  36370. }, function (err) {
  36371. return _this5.onCommandError(err);
  36372. });
  36373. break;
  36374. case 'deop':
  36375. if (!this.verifyAffiliations(['admin', 'owner']) || !this.validateRoleChangeCommand(command, args)) {
  36376. break;
  36377. }
  36378. this.modifyRole(this.model.get('jid'), args[0], 'participant', args[1], undefined, this.onCommandError.bind(this));
  36379. break;
  36380. case 'help':
  36381. this.showHelpMessages(["<strong>/admin</strong>: ".concat(__("Change user's affiliation to admin")), "<strong>/ban</strong>: ".concat(__('Ban user from groupchat')), "<strong>/clear</strong>: ".concat(__('Remove messages')), "<strong>/deop</strong>: ".concat(__('Change user role to participant')), "<strong>/help</strong>: ".concat(__('Show this menu')), "<strong>/kick</strong>: ".concat(__('Kick user from groupchat')), "<strong>/me</strong>: ".concat(__('Write in 3rd person')), "<strong>/member</strong>: ".concat(__('Grant membership to a user')), "<strong>/mute</strong>: ".concat(__("Remove user's ability to post messages")), "<strong>/nick</strong>: ".concat(__('Change your nickname')), "<strong>/op</strong>: ".concat(__('Grant moderator role to user')), "<strong>/owner</strong>: ".concat(__('Grant ownership of this groupchat')), "<strong>/revoke</strong>: ".concat(__("Revoke user's membership")), "<strong>/subject</strong>: ".concat(__('Set groupchat subject')), "<strong>/topic</strong>: ".concat(__('Set groupchat subject (alias for /subject)')), "<strong>/voice</strong>: ".concat(__('Allow muted user to post messages'))]);
  36382. break;
  36383. case 'kick':
  36384. if (!this.verifyRoles(['moderator']) || !this.validateRoleChangeCommand(command, args)) {
  36385. break;
  36386. }
  36387. this.modifyRole(this.model.get('jid'), args[0], 'none', args[1], undefined, this.onCommandError.bind(this));
  36388. break;
  36389. case 'mute':
  36390. if (!this.verifyRoles(['moderator']) || !this.validateRoleChangeCommand(command, args)) {
  36391. break;
  36392. }
  36393. this.modifyRole(this.model.get('jid'), args[0], 'visitor', args[1], undefined, this.onCommandError.bind(this));
  36394. break;
  36395. case 'member':
  36396. {
  36397. if (!this.verifyAffiliations(['admin', 'owner']) || !this.validateRoleChangeCommand(command, args)) {
  36398. break;
  36399. }
  36400. var occupant = this.model.occupants.findWhere({
  36401. 'nick': args[0]
  36402. }) || this.model.occupants.findWhere({
  36403. 'jid': args[0]
  36404. });
  36405. this.model.setAffiliation('member', [{
  36406. 'jid': occupant.get('jid'),
  36407. 'reason': args[1]
  36408. }]).then(function () {
  36409. return _this5.model.occupants.fetchMembers();
  36410. }, function (err) {
  36411. return _this5.onCommandError(err);
  36412. });
  36413. break;
  36414. }
  36415. case 'nick':
  36416. if (!this.verifyRoles(['visitor', 'participant', 'moderator'])) {
  36417. break;
  36418. }
  36419. _converse.connection.send($pres({
  36420. from: _converse.connection.jid,
  36421. to: this.model.getRoomJIDAndNick(match[2]),
  36422. id: _converse.connection.getUniqueId()
  36423. }).tree());
  36424. break;
  36425. case 'owner':
  36426. if (!this.verifyAffiliations(['owner']) || !this.validateRoleChangeCommand(command, args)) {
  36427. break;
  36428. }
  36429. this.model.setAffiliation('owner', [{
  36430. 'jid': args[0],
  36431. 'reason': args[1]
  36432. }]).then(function () {
  36433. return _this5.model.occupants.fetchMembers();
  36434. }, function (err) {
  36435. return _this5.onCommandError(err);
  36436. });
  36437. break;
  36438. case 'op':
  36439. if (!this.verifyAffiliations(['admin', 'owner']) || !this.validateRoleChangeCommand(command, args)) {
  36440. break;
  36441. }
  36442. this.modifyRole(this.model.get('jid'), args[0], 'moderator', args[1], undefined, this.onCommandError.bind(this));
  36443. break;
  36444. case 'revoke':
  36445. if (!this.verifyAffiliations(['admin', 'owner']) || !this.validateRoleChangeCommand(command, args)) {
  36446. break;
  36447. }
  36448. this.model.setAffiliation('none', [{
  36449. 'jid': args[0],
  36450. 'reason': args[1]
  36451. }]).then(function () {
  36452. return _this5.model.occupants.fetchMembers();
  36453. }, function (err) {
  36454. return _this5.onCommandError(err);
  36455. });
  36456. break;
  36457. case 'topic':
  36458. case 'subject':
  36459. // TODO: should be done via API call to _converse.api.rooms
  36460. _converse.connection.send($msg({
  36461. to: this.model.get('jid'),
  36462. from: _converse.connection.jid,
  36463. type: "groupchat"
  36464. }).c("subject", {
  36465. xmlns: "jabber:client"
  36466. }).t(match[2] || "").tree());
  36467. break;
  36468. case 'voice':
  36469. if (!this.verifyRoles(['moderator']) || !this.validateRoleChangeCommand(command, args)) {
  36470. break;
  36471. }
  36472. this.modifyRole(this.model.get('jid'), args[0], 'participant', args[1], undefined, this.onCommandError.bind(this));
  36473. break;
  36474. default:
  36475. return false;
  36476. }
  36477. return true;
  36478. },
  36479. registerHandlers: function registerHandlers() {
  36480. /* Register presence and message handlers for this chat
  36481. * groupchat
  36482. */
  36483. // XXX: Ideally this can be refactored out so that we don't
  36484. // need to do stanza processing inside the views in this
  36485. // module. See the comment in "onPresence" for more info.
  36486. this.model.addHandler('presence', 'ChatRoomView.onPresence', this.onPresence.bind(this)); // XXX instead of having a method showStatusMessages, we could instead
  36487. // create message models in converse-muc.js and then give them views in this module.
  36488. this.model.addHandler('message', 'ChatRoomView.showStatusMessages', this.showStatusMessages.bind(this));
  36489. },
  36490. onPresence: function onPresence(pres) {
  36491. /* Handles all MUC presence stanzas.
  36492. *
  36493. * Parameters:
  36494. * (XMLElement) pres: The stanza
  36495. */
  36496. // XXX: Current thinking is that excessive stanza
  36497. // processing inside a view is a "code smell".
  36498. // Instead stanza processing should happen inside the
  36499. // models/collections.
  36500. if (pres.getAttribute('type') === 'error') {
  36501. this.showErrorMessageFromPresence(pres);
  36502. } else {
  36503. // Instead of doing it this way, we could perhaps rather
  36504. // create StatusMessage objects inside the messages
  36505. // Collection and then simply render those. Then stanza
  36506. // processing is done on the model and rendering in the
  36507. // view(s).
  36508. this.showStatusMessages(pres);
  36509. }
  36510. },
  36511. populateAndJoin: function populateAndJoin() {
  36512. this.model.occupants.fetchMembers();
  36513. this.join();
  36514. this.fetchMessages();
  36515. },
  36516. join: function join(nick, password) {
  36517. /* Join the groupchat.
  36518. *
  36519. * Parameters:
  36520. * (String) nick: The user's nickname
  36521. * (String) password: Optional password, if required by
  36522. * the groupchat.
  36523. */
  36524. if (!nick && !this.model.get('nick')) {
  36525. this.checkForReservedNick();
  36526. return this;
  36527. }
  36528. this.model.join(nick, password);
  36529. return this;
  36530. },
  36531. renderConfigurationForm: function renderConfigurationForm(stanza) {
  36532. var _this6 = this;
  36533. /* Renders a form given an IQ stanza containing the current
  36534. * groupchat configuration.
  36535. *
  36536. * Returns a promise which resolves once the user has
  36537. * either submitted the form, or canceled it.
  36538. *
  36539. * Parameters:
  36540. * (XMLElement) stanza: The IQ stanza containing the groupchat
  36541. * config.
  36542. */
  36543. var container_el = this.el.querySelector('.chatroom-body');
  36544. _.each(container_el.querySelectorAll('.chatroom-form-container'), u.removeElement);
  36545. _.each(container_el.children, u.hideElement);
  36546. container_el.insertAdjacentHTML('beforeend', tpl_chatroom_form());
  36547. var form_el = container_el.querySelector('form.chatroom-form'),
  36548. fieldset_el = form_el.querySelector('fieldset'),
  36549. fields = stanza.querySelectorAll('field'),
  36550. title = _.get(stanza.querySelector('title'), 'textContent'),
  36551. instructions = _.get(stanza.querySelector('instructions'), 'textContent');
  36552. u.removeElement(fieldset_el.querySelector('span.spinner'));
  36553. fieldset_el.insertAdjacentHTML('beforeend', "<legend>".concat(title, "</legend>"));
  36554. if (instructions && instructions !== title) {
  36555. fieldset_el.insertAdjacentHTML('beforeend', "<p class=\"form-help\">".concat(instructions, "</p>"));
  36556. }
  36557. _.each(fields, function (field) {
  36558. fieldset_el.insertAdjacentHTML('beforeend', u.xForm2webForm(field, stanza));
  36559. }); // Render save/cancel buttons
  36560. var last_fieldset_el = document.createElement('fieldset');
  36561. last_fieldset_el.insertAdjacentHTML('beforeend', "<input type=\"submit\" class=\"btn btn-primary\" value=\"".concat(__('Save'), "\"/>"));
  36562. last_fieldset_el.insertAdjacentHTML('beforeend', "<input type=\"button\" class=\"btn btn-secondary\" value=\"".concat(__('Cancel'), "\"/>"));
  36563. form_el.insertAdjacentElement('beforeend', last_fieldset_el);
  36564. last_fieldset_el.querySelector('input[type=button]').addEventListener('click', function (ev) {
  36565. ev.preventDefault();
  36566. _this6.closeForm();
  36567. });
  36568. form_el.addEventListener('submit', function (ev) {
  36569. ev.preventDefault();
  36570. _this6.model.saveConfiguration(ev.target).then(_this6.model.getRoomFeatures.bind(_this6.model));
  36571. _this6.closeForm();
  36572. }, false);
  36573. },
  36574. closeForm: function closeForm() {
  36575. /* Remove the configuration form without submitting and
  36576. * return to the chat view.
  36577. */
  36578. u.removeElement(this.el.querySelector('.chatroom-form-container'));
  36579. this.renderAfterTransition();
  36580. },
  36581. getAndRenderConfigurationForm: function getAndRenderConfigurationForm(ev) {
  36582. /* Start the process of configuring a groupchat, either by
  36583. * rendering a configuration form, or by auto-configuring
  36584. * based on the "roomconfig" data stored on the
  36585. * Backbone.Model.
  36586. *
  36587. * Stores the new configuration on the Backbone.Model once
  36588. * completed.
  36589. *
  36590. * Paremeters:
  36591. * (Event) ev: DOM event that might be passed in if this
  36592. * method is called due to a user action. In this
  36593. * case, auto-configure won't happen, regardless of
  36594. * the settings.
  36595. */
  36596. this.showSpinner();
  36597. this.model.fetchRoomConfiguration().then(this.renderConfigurationForm.bind(this)).catch(_.partial(_converse.log, _, Strophe.LogLevel.ERROR));
  36598. },
  36599. submitNickname: function submitNickname(ev) {
  36600. /* Get the nickname value from the form and then join the
  36601. * groupchat with it.
  36602. */
  36603. ev.preventDefault();
  36604. var nick_el = ev.target.nick;
  36605. var nick = nick_el.value;
  36606. if (!nick) {
  36607. nick_el.classList.add('error');
  36608. return;
  36609. } else {
  36610. nick_el.classList.remove('error');
  36611. }
  36612. this.el.querySelector('.chatroom-form-container').outerHTML = tpl_spinner();
  36613. this.join(nick);
  36614. },
  36615. checkForReservedNick: function checkForReservedNick() {
  36616. /* User service-discovery to ask the XMPP server whether
  36617. * this user has a reserved nickname for this groupchat.
  36618. * If so, we'll use that, otherwise we render the nickname form.
  36619. */
  36620. this.showSpinner();
  36621. this.model.checkForReservedNick(this.onNickNameFound.bind(this), this.onNickNameNotFound.bind(this));
  36622. },
  36623. onNickNameFound: function onNickNameFound(iq) {
  36624. /* We've received an IQ response from the server which
  36625. * might contain the user's reserved nickname.
  36626. * If no nickname is found we either render a form for
  36627. * them to specify one, or we try to join the groupchat with the
  36628. * node of the user's JID.
  36629. *
  36630. * Parameters:
  36631. * (XMLElement) iq: The received IQ stanza
  36632. */
  36633. var identity_el = iq.querySelector('query[node="x-roomuser-item"] identity'),
  36634. nick = identity_el ? identity_el.getAttribute('name') : null;
  36635. if (!nick) {
  36636. this.onNickNameNotFound();
  36637. } else {
  36638. this.join(nick);
  36639. }
  36640. },
  36641. onNickNameNotFound: function onNickNameNotFound(message) {
  36642. var nick = this.getDefaultNickName();
  36643. if (nick) {
  36644. this.join(nick);
  36645. } else {
  36646. this.renderNicknameForm(message);
  36647. }
  36648. },
  36649. getDefaultNickName: function getDefaultNickName() {
  36650. /* The default nickname (used when muc_nickname_from_jid is true)
  36651. * is the node part of the user's JID.
  36652. * We put this in a separate method so that it can be
  36653. * overridden by plugins.
  36654. */
  36655. var nick = _converse.xmppstatus.vcard.get('nickname');
  36656. if (nick) {
  36657. return nick;
  36658. } else if (_converse.muc_nickname_from_jid) {
  36659. return Strophe.unescapeNode(Strophe.getNodeFromJid(_converse.bare_jid));
  36660. }
  36661. },
  36662. onNicknameClash: function onNicknameClash(presence) {
  36663. /* When the nickname is already taken, we either render a
  36664. * form for the user to choose a new nickname, or we
  36665. * try to make the nickname unique by adding an integer to
  36666. * it. So john will become john-2, and then john-3 and so on.
  36667. *
  36668. * Which option is take depends on the value of
  36669. * muc_nickname_from_jid.
  36670. */
  36671. if (_converse.muc_nickname_from_jid) {
  36672. var nick = presence.getAttribute('from').split('/')[1];
  36673. if (nick === this.getDefaultNickName()) {
  36674. this.join(nick + '-2');
  36675. } else {
  36676. var del = nick.lastIndexOf("-");
  36677. var num = nick.substring(del + 1, nick.length);
  36678. this.join(nick.substring(0, del + 1) + String(Number(num) + 1));
  36679. }
  36680. } else {
  36681. this.renderNicknameForm(__("The nickname you chose is reserved or " + "currently in use, please choose a different one."));
  36682. }
  36683. },
  36684. hideChatRoomContents: function hideChatRoomContents() {
  36685. var container_el = this.el.querySelector('.chatroom-body');
  36686. if (!_.isNull(container_el)) {
  36687. _.each(container_el.children, function (child) {
  36688. child.classList.add('hidden');
  36689. });
  36690. }
  36691. },
  36692. renderNicknameForm: function renderNicknameForm(message) {
  36693. /* Render a form which allows the user to choose their
  36694. * nickname.
  36695. */
  36696. this.hideChatRoomContents();
  36697. _.each(this.el.querySelectorAll('span.centered.spinner'), u.removeElement);
  36698. if (!_.isString(message)) {
  36699. message = '';
  36700. }
  36701. var container_el = this.el.querySelector('.chatroom-body');
  36702. container_el.insertAdjacentHTML('beforeend', tpl_chatroom_nickname_form({
  36703. heading: __('Please choose your nickname'),
  36704. label_nickname: __('Nickname'),
  36705. label_join: __('Enter groupchat'),
  36706. validation_message: message
  36707. }));
  36708. this.model.save('connection_status', converse.ROOMSTATUS.NICKNAME_REQUIRED);
  36709. var form_el = this.el.querySelector('.chatroom-form');
  36710. form_el.addEventListener('submit', this.submitNickname.bind(this), false);
  36711. },
  36712. submitPassword: function submitPassword(ev) {
  36713. ev.preventDefault();
  36714. var password = this.el.querySelector('.chatroom-form input[type=password]').value;
  36715. this.showSpinner();
  36716. this.join(this.model.get('nick'), password);
  36717. },
  36718. renderPasswordForm: function renderPasswordForm() {
  36719. var container_el = this.el.querySelector('.chatroom-body');
  36720. _.each(container_el.children, u.hideElement);
  36721. _.each(this.el.querySelectorAll('.spinner'), u.removeElement);
  36722. container_el.insertAdjacentHTML('beforeend', tpl_chatroom_password_form({
  36723. heading: __('This groupchat requires a password'),
  36724. label_password: __('Password: '),
  36725. label_submit: __('Submit')
  36726. }));
  36727. this.model.save('connection_status', converse.ROOMSTATUS.PASSWORD_REQUIRED);
  36728. this.el.querySelector('.chatroom-form').addEventListener('submit', this.submitPassword.bind(this), false);
  36729. },
  36730. showDisconnectMessages: function showDisconnectMessages(msgs) {
  36731. if (_.isString(msgs)) {
  36732. msgs = [msgs];
  36733. }
  36734. u.hideElement(this.el.querySelector('.chat-area'));
  36735. u.hideElement(this.el.querySelector('.occupants'));
  36736. _.each(this.el.querySelectorAll('.spinner'), u.removeElement);
  36737. var container = this.el.querySelector('.disconnect-container');
  36738. container.innerHTML = tpl_chatroom_disconnect({
  36739. '_': _,
  36740. 'disconnect_messages': msgs
  36741. });
  36742. u.showElement(container);
  36743. },
  36744. getMessageFromStatus: function getMessageFromStatus(stat, stanza, is_self) {
  36745. /* Parameters:
  36746. * (XMLElement) stat: A <status> element.
  36747. * (Boolean) is_self: Whether the element refers to the
  36748. * current user.
  36749. * (XMLElement) stanza: The original stanza received.
  36750. */
  36751. var code = stat.getAttribute('code');
  36752. if (code === '110' || code === '100' && !is_self) {
  36753. return;
  36754. }
  36755. if (code in _converse.muc.info_messages) {
  36756. return _converse.muc.info_messages[code];
  36757. }
  36758. var nick;
  36759. if (!is_self) {
  36760. if (code in _converse.muc.action_info_messages) {
  36761. nick = Strophe.getResourceFromJid(stanza.getAttribute('from'));
  36762. return __(_converse.muc.action_info_messages[code], nick);
  36763. }
  36764. } else if (code in _converse.muc.new_nickname_messages) {
  36765. if (is_self && code === "210") {
  36766. nick = Strophe.getResourceFromJid(stanza.getAttribute('from'));
  36767. } else if (is_self && code === "303") {
  36768. nick = stanza.querySelector('x item').getAttribute('nick');
  36769. }
  36770. return __(_converse.muc.new_nickname_messages[code], nick);
  36771. }
  36772. return;
  36773. },
  36774. parseXUserElement: function parseXUserElement(x, stanza, is_self) {
  36775. /* Parse the passed-in <x xmlns='http://jabber.org/protocol/muc#user'>
  36776. * element and construct a map containing relevant
  36777. * information.
  36778. */
  36779. // 1. Get notification messages based on the <status> elements.
  36780. var statuses = x.querySelectorAll('status');
  36781. var mapper = _.partial(this.getMessageFromStatus, _, stanza, is_self);
  36782. var notification = {};
  36783. var messages = _.reject(_.map(statuses, mapper), _.isUndefined);
  36784. if (messages.length) {
  36785. notification.messages = messages;
  36786. } // 2. Get disconnection messages based on the <status> elements
  36787. var codes = _.invokeMap(statuses, Element.prototype.getAttribute, 'code');
  36788. var disconnection_codes = _.intersection(codes, _.keys(_converse.muc.disconnect_messages));
  36789. var disconnected = is_self && disconnection_codes.length > 0;
  36790. if (disconnected) {
  36791. notification.disconnected = true;
  36792. notification.disconnection_message = _converse.muc.disconnect_messages[disconnection_codes[0]];
  36793. } // 3. Find the reason and actor from the <item> element
  36794. var item = x.querySelector('item'); // By using querySelector above, we assume here there is
  36795. // one <item> per <x xmlns='http://jabber.org/protocol/muc#user'>
  36796. // element. This appears to be a safe assumption, since
  36797. // each <x/> element pertains to a single user.
  36798. if (!_.isNull(item)) {
  36799. var reason = item.querySelector('reason');
  36800. if (reason) {
  36801. notification.reason = reason ? reason.textContent : undefined;
  36802. }
  36803. var actor = item.querySelector('actor');
  36804. if (actor) {
  36805. notification.actor = actor ? actor.getAttribute('nick') : undefined;
  36806. }
  36807. }
  36808. return notification;
  36809. },
  36810. showNotificationsforUser: function showNotificationsforUser(notification) {
  36811. var _this7 = this;
  36812. /* Given the notification object generated by
  36813. * parseXUserElement, display any relevant messages and
  36814. * information to the user.
  36815. */
  36816. if (notification.disconnected) {
  36817. var messages = [];
  36818. messages.push(notification.disconnection_message);
  36819. if (notification.actor) {
  36820. messages.push(__('This action was done by %1$s.', notification.actor));
  36821. }
  36822. if (notification.reason) {
  36823. messages.push(__('The reason given is: "%1$s".', notification.reason));
  36824. }
  36825. this.showDisconnectMessages(messages);
  36826. this.model.save('connection_status', converse.ROOMSTATUS.DISCONNECTED);
  36827. return;
  36828. }
  36829. _.each(notification.messages, function (message) {
  36830. _this7.content.insertAdjacentHTML('beforeend', tpl_info({
  36831. 'data': '',
  36832. 'isodate': moment().format(),
  36833. 'extra_classes': 'chat-event',
  36834. 'message': message
  36835. }));
  36836. });
  36837. if (notification.reason) {
  36838. this.showChatEvent(__('The reason given is: "%1$s".', notification.reason));
  36839. }
  36840. if (_.get(notification.messages, 'length')) {
  36841. this.scrollDown();
  36842. }
  36843. },
  36844. showJoinOrLeaveNotification: function showJoinOrLeaveNotification(occupant) {
  36845. if (!occupant.isMember() || _.includes(occupant.get('states'), '303')) {
  36846. return;
  36847. }
  36848. if (occupant.get('show') === 'offline') {
  36849. this.showLeaveNotification(occupant);
  36850. } else if (occupant.get('show') === 'online') {
  36851. this.showJoinNotification(occupant);
  36852. }
  36853. },
  36854. showJoinNotification: function showJoinNotification(occupant) {
  36855. if (this.model.get('connection_status') !== converse.ROOMSTATUS.ENTERED) {
  36856. return;
  36857. }
  36858. var nick = occupant.get('nick'),
  36859. stat = occupant.get('status'),
  36860. last_el = this.content.lastElementChild;
  36861. if (_.includes(_.get(last_el, 'classList', []), 'chat-info') && _.get(last_el, 'dataset', {}).leave === "\"".concat(nick, "\"")) {
  36862. last_el.outerHTML = tpl_info({
  36863. 'data': "data-leavejoin=\"".concat(nick, "\""),
  36864. 'isodate': moment().format(),
  36865. 'extra_classes': 'chat-event',
  36866. 'message': __('%1$s has left and re-entered the groupchat', nick)
  36867. });
  36868. var el = this.content.lastElementChild;
  36869. setTimeout(function () {
  36870. return u.addClass('fade-out', el);
  36871. }, 5000);
  36872. setTimeout(function () {
  36873. return el.parentElement && el.parentElement.removeChild(el);
  36874. }, 5250);
  36875. } else {
  36876. var message;
  36877. if (_.isNil(stat)) {
  36878. message = __('%1$s has entered the groupchat', nick);
  36879. } else {
  36880. message = __('%1$s has entered the groupchat. "%2$s"', nick, stat);
  36881. }
  36882. var data = {
  36883. 'data': "data-join=\"".concat(nick, "\""),
  36884. 'isodate': moment().format(),
  36885. 'extra_classes': 'chat-event',
  36886. 'message': message
  36887. };
  36888. if (_.includes(_.get(last_el, 'classList', []), 'chat-info') && _.get(last_el, 'dataset', {}).joinleave === "\"".concat(nick, "\"")) {
  36889. last_el.outerHTML = tpl_info(data);
  36890. } else {
  36891. var _el = u.stringToElement(tpl_info(data));
  36892. this.content.insertAdjacentElement('beforeend', _el);
  36893. this.insertDayIndicator(_el);
  36894. }
  36895. }
  36896. this.scrollDown();
  36897. },
  36898. showLeaveNotification: function showLeaveNotification(occupant) {
  36899. if (_.includes(occupant.get('states'), '303') || _.includes(occupant.get('states'), '307')) {
  36900. return;
  36901. }
  36902. var nick = occupant.get('nick'),
  36903. stat = occupant.get('status'),
  36904. last_el = this.content.lastElementChild;
  36905. if (last_el && _.includes(_.get(last_el, 'classList', []), 'chat-info') && moment(last_el.getAttribute('data-isodate')).isSame(new Date(), "day") && _.get(last_el, 'dataset', {}).join === "\"".concat(nick, "\"")) {
  36906. var message;
  36907. if (_.isNil(stat)) {
  36908. message = __('%1$s has entered and left the groupchat', nick);
  36909. } else {
  36910. message = __('%1$s has entered and left the groupchat. "%2$s"', nick, stat);
  36911. }
  36912. last_el.outerHTML = tpl_info({
  36913. 'data': "data-joinleave=\"".concat(nick, "\""),
  36914. 'isodate': moment().format(),
  36915. 'extra_classes': 'chat-event',
  36916. 'message': message
  36917. });
  36918. var el = this.content.lastElementChild;
  36919. setTimeout(function () {
  36920. return u.addClass('fade-out', el);
  36921. }, 5000);
  36922. setTimeout(function () {
  36923. return el.parentElement && el.parentElement.removeChild(el);
  36924. }, 5250);
  36925. } else {
  36926. var _message;
  36927. if (_.isNil(stat)) {
  36928. _message = __('%1$s has left the groupchat', nick);
  36929. } else {
  36930. _message = __('%1$s has left the groupchat. "%2$s"', nick, stat);
  36931. }
  36932. var data = {
  36933. 'message': _message,
  36934. 'isodate': moment().format(),
  36935. 'extra_classes': 'chat-event',
  36936. 'data': "data-leave=\"".concat(nick, "\"")
  36937. };
  36938. if (last_el && _.includes(_.get(last_el, 'classList', []), 'chat-info') && _.get(last_el, 'dataset', {}).leavejoin === "\"".concat(nick, "\"")) {
  36939. last_el.outerHTML = tpl_info(data);
  36940. } else {
  36941. var _el2 = u.stringToElement(tpl_info(data));
  36942. this.content.insertAdjacentElement('beforeend', _el2);
  36943. this.insertDayIndicator(_el2);
  36944. }
  36945. }
  36946. this.scrollDown();
  36947. },
  36948. showStatusMessages: function showStatusMessages(stanza) {
  36949. /* Check for status codes and communicate their purpose to the user.
  36950. * See: http://xmpp.org/registrar/mucstatus.html
  36951. *
  36952. * Parameters:
  36953. * (XMLElement) stanza: The message or presence stanza
  36954. * containing the status codes.
  36955. */
  36956. var elements = sizzle("x[xmlns=\"".concat(Strophe.NS.MUC_USER, "\"]"), stanza);
  36957. var is_self = stanza.querySelectorAll("status[code='110']").length;
  36958. var iteratee = _.partial(this.parseXUserElement.bind(this), _, stanza, is_self);
  36959. var notifications = _.reject(_.map(elements, iteratee), _.isEmpty);
  36960. _.each(notifications, this.showNotificationsforUser.bind(this));
  36961. },
  36962. showErrorMessageFromPresence: function showErrorMessageFromPresence(presence) {
  36963. // We didn't enter the groupchat, so we must remove it from the MUC add-on
  36964. var error = presence.querySelector('error');
  36965. if (error.getAttribute('type') === 'auth') {
  36966. if (!_.isNull(error.querySelector('not-authorized'))) {
  36967. this.renderPasswordForm();
  36968. } else if (!_.isNull(error.querySelector('registration-required'))) {
  36969. this.showDisconnectMessages(__('You are not on the member list of this groupchat.'));
  36970. } else if (!_.isNull(error.querySelector('forbidden'))) {
  36971. this.showDisconnectMessages(__('You have been banned from this groupchat.'));
  36972. }
  36973. } else if (error.getAttribute('type') === 'modify') {
  36974. if (!_.isNull(error.querySelector('jid-malformed'))) {
  36975. this.showDisconnectMessages(__('No nickname was specified.'));
  36976. }
  36977. } else if (error.getAttribute('type') === 'cancel') {
  36978. if (!_.isNull(error.querySelector('not-allowed'))) {
  36979. this.showDisconnectMessages(__('You are not allowed to create new groupchats.'));
  36980. } else if (!_.isNull(error.querySelector('not-acceptable'))) {
  36981. this.showDisconnectMessages(__("Your nickname doesn't conform to this groupchat's policies."));
  36982. } else if (!_.isNull(error.querySelector('conflict'))) {
  36983. this.onNicknameClash(presence);
  36984. } else if (!_.isNull(error.querySelector('item-not-found'))) {
  36985. this.showDisconnectMessages(__("This groupchat does not (yet) exist."));
  36986. } else if (!_.isNull(error.querySelector('service-unavailable'))) {
  36987. this.showDisconnectMessages(__("This groupchat has reached its maximum number of participants."));
  36988. } else if (!_.isNull(error.querySelector('remote-server-not-found'))) {
  36989. var messages = [__("Remote server not found")];
  36990. var reason = _.get(error.querySelector('text'), 'textContent');
  36991. if (reason) {
  36992. messages.push(__('The explanation given is: "%1$s".', reason));
  36993. }
  36994. this.showDisconnectMessages(messages);
  36995. }
  36996. }
  36997. },
  36998. renderAfterTransition: function renderAfterTransition() {
  36999. /* Rerender the groupchat after some kind of transition. For
  37000. * example after the spinner has been removed or after a
  37001. * form has been submitted and removed.
  37002. */
  37003. if (this.model.get('connection_status') == converse.ROOMSTATUS.NICKNAME_REQUIRED) {
  37004. this.renderNicknameForm();
  37005. } else if (this.model.get('connection_status') == converse.ROOMSTATUS.PASSWORD_REQUIRED) {
  37006. this.renderPasswordForm();
  37007. } else {
  37008. this.el.querySelector('.chat-area').classList.remove('hidden');
  37009. this.setOccupantsVisibility();
  37010. this.scrollDown();
  37011. }
  37012. },
  37013. showSpinner: function showSpinner() {
  37014. u.removeElement(this.el.querySelector('.spinner'));
  37015. var container_el = this.el.querySelector('.chatroom-body');
  37016. var children = Array.prototype.slice.call(container_el.children, 0);
  37017. container_el.insertAdjacentHTML('afterbegin', tpl_spinner());
  37018. _.each(children, u.hideElement);
  37019. },
  37020. hideSpinner: function hideSpinner() {
  37021. /* Check if the spinner is being shown and if so, hide it.
  37022. * Also make sure then that the chat area and occupants
  37023. * list are both visible.
  37024. */
  37025. var spinner = this.el.querySelector('.spinner');
  37026. if (!_.isNull(spinner)) {
  37027. u.removeElement(spinner);
  37028. this.renderAfterTransition();
  37029. }
  37030. return this;
  37031. },
  37032. setChatRoomSubject: function setChatRoomSubject() {
  37033. // For translators: the %1$s and %2$s parts will get
  37034. // replaced by the user and topic text respectively
  37035. // Example: Topic set by JC Brand to: Hello World!
  37036. var subject = this.model.get('subject'),
  37037. message = subject.text ? __('Topic set by %1$s', subject.author) : __('Topic cleared by %1$s', subject.author),
  37038. date = moment().format();
  37039. this.content.insertAdjacentHTML('beforeend', tpl_info({
  37040. 'data': '',
  37041. 'isodate': date,
  37042. 'extra_classes': 'chat-event',
  37043. 'message': message
  37044. }));
  37045. if (subject.text) {
  37046. this.content.insertAdjacentHTML('beforeend', tpl_info({
  37047. 'data': '',
  37048. 'isodate': date,
  37049. 'extra_classes': 'chat-topic',
  37050. 'message': subject.text
  37051. }));
  37052. }
  37053. this.scrollDown();
  37054. }
  37055. });
  37056. _converse.RoomsPanel = Backbone.NativeView.extend({
  37057. /* Backbone.NativeView which renders MUC section of the control box.
  37058. */
  37059. tagName: 'div',
  37060. className: 'controlbox-section',
  37061. id: 'chatrooms',
  37062. events: {
  37063. 'click a.chatbox-btn.show-add-muc-modal': 'showAddRoomModal',
  37064. 'click a.chatbox-btn.show-list-muc-modal': 'showListRoomsModal'
  37065. },
  37066. render: function render() {
  37067. this.el.innerHTML = tpl_room_panel({
  37068. 'heading_chatrooms': __('Groupchats'),
  37069. 'title_new_room': __('Add a new groupchat'),
  37070. 'title_list_rooms': __('Query for groupchats')
  37071. });
  37072. return this;
  37073. },
  37074. showAddRoomModal: function showAddRoomModal(ev) {
  37075. if (_.isUndefined(this.add_room_modal)) {
  37076. this.add_room_modal = new _converse.AddChatRoomModal({
  37077. 'model': this.model
  37078. });
  37079. }
  37080. this.add_room_modal.show(ev);
  37081. },
  37082. showListRoomsModal: function showListRoomsModal(ev) {
  37083. if (_.isUndefined(this.list_rooms_modal)) {
  37084. this.list_rooms_modal = new _converse.ListChatRoomsModal({
  37085. 'model': this.model
  37086. });
  37087. }
  37088. this.list_rooms_modal.show(ev);
  37089. }
  37090. });
  37091. _converse.ChatRoomOccupantView = Backbone.VDOMView.extend({
  37092. tagName: 'li',
  37093. initialize: function initialize() {
  37094. this.model.on('change', this.render, this);
  37095. },
  37096. toHTML: function toHTML() {
  37097. var show = this.model.get('show');
  37098. return tpl_occupant(_.extend({
  37099. '_': _,
  37100. // XXX Normally this should already be included,
  37101. // but with the current webpack build,
  37102. // we only get a subset of the _ methods.
  37103. 'jid': '',
  37104. 'show': show,
  37105. 'hint_show': _converse.PRETTY_CHAT_STATUS[show],
  37106. 'hint_occupant': __('Click to mention %1$s in your message.', this.model.get('nick')),
  37107. 'desc_moderator': __('This user is a moderator.'),
  37108. 'desc_participant': __('This user can send messages in this groupchat.'),
  37109. 'desc_visitor': __('This user can NOT send messages in this groupchat.'),
  37110. 'label_moderator': __('Moderator'),
  37111. 'label_visitor': __('Visitor'),
  37112. 'label_owner': __('Owner'),
  37113. 'label_member': __('Member'),
  37114. 'label_admin': __('Admin')
  37115. }, this.model.toJSON()));
  37116. },
  37117. destroy: function destroy() {
  37118. this.el.parentElement.removeChild(this.el);
  37119. }
  37120. });
  37121. _converse.ChatRoomOccupantsView = Backbone.OrderedListView.extend({
  37122. tagName: 'div',
  37123. className: 'occupants col-md-3 col-4',
  37124. listItems: 'model',
  37125. sortEvent: 'change:role',
  37126. listSelector: '.occupant-list',
  37127. ItemView: _converse.ChatRoomOccupantView,
  37128. initialize: function initialize() {
  37129. Backbone.OrderedListView.prototype.initialize.apply(this, arguments);
  37130. this.chatroomview = this.model.chatroomview;
  37131. this.chatroomview.model.on('change:open', this.renderInviteWidget, this);
  37132. this.chatroomview.model.on('change:affiliation', this.renderInviteWidget, this);
  37133. this.chatroomview.model.on('change:hidden', this.onFeatureChanged, this);
  37134. this.chatroomview.model.on('change:mam_enabled', this.onFeatureChanged, this);
  37135. this.chatroomview.model.on('change:membersonly', this.onFeatureChanged, this);
  37136. this.chatroomview.model.on('change:moderated', this.onFeatureChanged, this);
  37137. this.chatroomview.model.on('change:nonanonymous', this.onFeatureChanged, this);
  37138. this.chatroomview.model.on('change:open', this.onFeatureChanged, this);
  37139. this.chatroomview.model.on('change:passwordprotected', this.onFeatureChanged, this);
  37140. this.chatroomview.model.on('change:persistent', this.onFeatureChanged, this);
  37141. this.chatroomview.model.on('change:publicroom', this.onFeatureChanged, this);
  37142. this.chatroomview.model.on('change:semianonymous', this.onFeatureChanged, this);
  37143. this.chatroomview.model.on('change:temporary', this.onFeatureChanged, this);
  37144. this.chatroomview.model.on('change:unmoderated', this.onFeatureChanged, this);
  37145. this.chatroomview.model.on('change:unsecured', this.onFeatureChanged, this);
  37146. this.render();
  37147. this.model.fetch({
  37148. 'add': true,
  37149. 'silent': true,
  37150. 'success': this.sortAndPositionAllItems.bind(this)
  37151. });
  37152. },
  37153. render: function render() {
  37154. this.el.innerHTML = tpl_chatroom_sidebar(_.extend(this.chatroomview.model.toJSON(), {
  37155. 'allow_muc_invitations': _converse.allow_muc_invitations,
  37156. 'label_occupants': __('Participants')
  37157. }));
  37158. if (_converse.allow_muc_invitations) {
  37159. _converse.api.waitUntil('rosterContactsFetched').then(this.renderInviteWidget.bind(this));
  37160. }
  37161. return this.renderRoomFeatures();
  37162. },
  37163. renderInviteWidget: function renderInviteWidget() {
  37164. var form = this.el.querySelector('form.room-invite');
  37165. if (this.shouldInviteWidgetBeShown()) {
  37166. if (_.isNull(form)) {
  37167. var heading = this.el.querySelector('.occupants-heading');
  37168. heading.insertAdjacentHTML('afterend', tpl_chatroom_invite({
  37169. 'error_message': null,
  37170. 'label_invitation': __('Invite')
  37171. }));
  37172. this.initInviteWidget();
  37173. }
  37174. } else if (!_.isNull(form)) {
  37175. form.remove();
  37176. }
  37177. return this;
  37178. },
  37179. renderRoomFeatures: function renderRoomFeatures() {
  37180. var picks = _.pick(this.chatroomview.model.attributes, converse.ROOM_FEATURES),
  37181. iteratee = function iteratee(a, v) {
  37182. return a || v;
  37183. },
  37184. el = this.el.querySelector('.chatroom-features');
  37185. el.innerHTML = tpl_chatroom_features(_.extend(this.chatroomview.model.toJSON(), {
  37186. '__': __,
  37187. 'has_features': _.reduce(_.values(picks), iteratee)
  37188. }));
  37189. this.setOccupantsHeight();
  37190. return this;
  37191. },
  37192. onFeatureChanged: function onFeatureChanged(model) {
  37193. /* When a feature has been changed, it's logical opposite
  37194. * must be set to the opposite value.
  37195. *
  37196. * So for example, if "temporary" was set to "false", then
  37197. * "persistent" will be set to "true" in this method.
  37198. *
  37199. * Additionally a debounced render method is called to make
  37200. * sure the features widget gets updated.
  37201. */
  37202. if (_.isUndefined(this.debouncedRenderRoomFeatures)) {
  37203. this.debouncedRenderRoomFeatures = _.debounce(this.renderRoomFeatures, 100, {
  37204. 'leading': false
  37205. });
  37206. }
  37207. var changed_features = {};
  37208. _.each(_.keys(model.changed), function (k) {
  37209. if (!_.isNil(ROOM_FEATURES_MAP[k])) {
  37210. changed_features[ROOM_FEATURES_MAP[k]] = !model.changed[k];
  37211. }
  37212. });
  37213. this.chatroomview.model.save(changed_features, {
  37214. 'silent': true
  37215. });
  37216. this.debouncedRenderRoomFeatures();
  37217. },
  37218. setOccupantsHeight: function setOccupantsHeight() {
  37219. var el = this.el.querySelector('.chatroom-features');
  37220. this.el.querySelector('.occupant-list').style.cssText = "height: calc(100% - ".concat(el.offsetHeight, "px - 5em);");
  37221. },
  37222. promptForInvite: function promptForInvite(suggestion) {
  37223. var reason = prompt(__('You are about to invite %1$s to the groupchat "%2$s". ' + 'You may optionally include a message, explaining the reason for the invitation.', suggestion.text.label, this.model.get('id')));
  37224. if (reason !== null) {
  37225. this.chatroomview.model.directInvite(suggestion.text.value, reason);
  37226. }
  37227. var form = suggestion.target.form,
  37228. error = form.querySelector('.pure-form-message.error');
  37229. if (!_.isNull(error)) {
  37230. error.parentNode.removeChild(error);
  37231. }
  37232. suggestion.target.value = '';
  37233. },
  37234. inviteFormSubmitted: function inviteFormSubmitted(evt) {
  37235. evt.preventDefault();
  37236. var el = evt.target.querySelector('input.invited-contact'),
  37237. jid = el.value;
  37238. if (!jid || _.compact(jid.split('@')).length < 2) {
  37239. evt.target.outerHTML = tpl_chatroom_invite({
  37240. 'error_message': __('Please enter a valid XMPP username'),
  37241. 'label_invitation': __('Invite')
  37242. });
  37243. this.initInviteWidget();
  37244. return;
  37245. }
  37246. this.promptForInvite({
  37247. 'target': el,
  37248. 'text': {
  37249. 'label': jid,
  37250. 'value': jid
  37251. }
  37252. });
  37253. },
  37254. shouldInviteWidgetBeShown: function shouldInviteWidgetBeShown() {
  37255. return _converse.allow_muc_invitations && (this.chatroomview.model.get('open') || this.chatroomview.model.get('affiliation') === "owner");
  37256. },
  37257. initInviteWidget: function initInviteWidget() {
  37258. var form = this.el.querySelector('form.room-invite');
  37259. if (_.isNull(form)) {
  37260. return;
  37261. }
  37262. form.addEventListener('submit', this.inviteFormSubmitted.bind(this), false);
  37263. var el = this.el.querySelector('input.invited-contact');
  37264. var list = _converse.roster.map(function (item) {
  37265. var label = item.get('fullname') || item.get('jid');
  37266. return {
  37267. 'label': label,
  37268. 'value': item.get('jid')
  37269. };
  37270. });
  37271. var awesomplete = new Awesomplete(el, {
  37272. 'minChars': 1,
  37273. 'list': list
  37274. });
  37275. el.addEventListener('awesomplete-selectcomplete', this.promptForInvite.bind(this));
  37276. }
  37277. });
  37278. function setMUCDomain(domain, controlboxview) {
  37279. _converse.muc_domain = domain;
  37280. controlboxview.roomspanel.model.save({
  37281. 'muc_domain': domain
  37282. });
  37283. }
  37284. function setMUCDomainFromDisco(controlboxview) {
  37285. /* Check whether service discovery for the user's domain
  37286. * returned MUC information and use that to automatically
  37287. * set the MUC domain in the "Add groupchat" modal.
  37288. */
  37289. function featureAdded(feature) {
  37290. if (!feature) {
  37291. return;
  37292. }
  37293. if (feature.get('var') === Strophe.NS.MUC) {
  37294. feature.entity.getIdentity('conference', 'text').then(function (identity) {
  37295. if (identity) {
  37296. setMUCDomain(feature.get('from'), controlboxview);
  37297. }
  37298. });
  37299. }
  37300. }
  37301. _converse.api.waitUntil('discoInitialized').then(function () {
  37302. _converse.api.listen.on('serviceDiscovered', featureAdded); // Features could have been added before the controlbox was
  37303. // initialized. We're only interested in MUC
  37304. _converse.disco_entities.each(function (entity) {
  37305. return featureAdded(entity.features.findWhere({
  37306. 'var': Strophe.NS.MUC
  37307. }));
  37308. });
  37309. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.ERROR));
  37310. }
  37311. function fetchAndSetMUCDomain(controlboxview) {
  37312. if (controlboxview.model.get('connected')) {
  37313. if (!controlboxview.roomspanel.model.get('muc_domain')) {
  37314. if (_.isUndefined(_converse.muc_domain)) {
  37315. setMUCDomainFromDisco(controlboxview);
  37316. } else {
  37317. setMUCDomain(_converse.muc_domain, controlboxview);
  37318. }
  37319. }
  37320. }
  37321. }
  37322. /************************ BEGIN Event Handlers ************************/
  37323. _converse.on('chatBoxViewsInitialized', function () {
  37324. var that = _converse.chatboxviews;
  37325. _converse.chatboxes.on('add', function (item) {
  37326. if (!that.get(item.get('id')) && item.get('type') === _converse.CHATROOMS_TYPE) {
  37327. return that.add(item.get('id'), new _converse.ChatRoomView({
  37328. 'model': item
  37329. }));
  37330. }
  37331. });
  37332. });
  37333. _converse.on('controlboxInitialized', function (view) {
  37334. if (!_converse.allow_muc) {
  37335. return;
  37336. }
  37337. fetchAndSetMUCDomain(view);
  37338. view.model.on('change:connected', _.partial(fetchAndSetMUCDomain, view));
  37339. });
  37340. function reconnectToChatRooms() {
  37341. /* Upon a reconnection event from converse, join again
  37342. * all the open groupchats.
  37343. */
  37344. _converse.chatboxviews.each(function (view) {
  37345. if (view.model.get('type') === _converse.CHATROOMS_TYPE) {
  37346. view.model.save('connection_status', converse.ROOMSTATUS.DISCONNECTED);
  37347. view.model.registerHandlers();
  37348. view.populateAndJoin();
  37349. }
  37350. });
  37351. }
  37352. _converse.on('reconnected', reconnectToChatRooms);
  37353. /************************ END Event Handlers ************************/
  37354. /************************ BEGIN API ************************/
  37355. _.extend(_converse.api, {
  37356. /**
  37357. * The "roomviews" namespace groups methods relevant to chatroom
  37358. * (aka groupchats) views.
  37359. *
  37360. * @namespace _converse.api.roomviews
  37361. * @memberOf _converse.api
  37362. */
  37363. 'roomviews': {
  37364. /**
  37365. * Lets you close open chatrooms.
  37366. *
  37367. * You can call this method without any arguments to close
  37368. * all open chatrooms, or you can specify a single JID or
  37369. * an array of JIDs.
  37370. *
  37371. * @method _converse.api.roomviews.close
  37372. * @param {(String[]|String)} jids The JID or array of JIDs of the chatroom(s)
  37373. */
  37374. 'close': function close(jids) {
  37375. if (_.isUndefined(jids)) {
  37376. _converse.chatboxviews.each(function (view) {
  37377. if (view.is_chatroom && view.model) {
  37378. view.close();
  37379. }
  37380. });
  37381. } else if (_.isString(jids)) {
  37382. var view = _converse.chatboxviews.get(jids);
  37383. if (view) {
  37384. view.close();
  37385. }
  37386. } else {
  37387. _.each(jids, function (jid) {
  37388. var view = _converse.chatboxviews.get(jid);
  37389. if (view) {
  37390. view.close();
  37391. }
  37392. });
  37393. }
  37394. }
  37395. }
  37396. });
  37397. }
  37398. });
  37399. });
  37400. /***/ }),
  37401. /***/ "./src/converse-muc.js":
  37402. /*!*****************************!*\
  37403. !*** ./src/converse-muc.js ***!
  37404. \*****************************/
  37405. /*! no static exports found */
  37406. /***/ (function(module, exports, __webpack_require__) {
  37407. "use strict";
  37408. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  37409. function _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return right[Symbol.hasInstance](left); } else { return left instanceof right; } }
  37410. function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
  37411. function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
  37412. function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
  37413. function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
  37414. // Converse.js
  37415. // http://conversejs.org
  37416. //
  37417. // Copyright (c) 2013-2018, the Converse.js developers
  37418. // Licensed under the Mozilla Public License (MPLv2)
  37419. (function (root, factory) {
  37420. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! utils/form */ "./src/utils/form.js"), __webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! converse-disco */ "./src/converse-disco.js"), __webpack_require__(/*! backbone.overview */ "backbone.overview"), __webpack_require__(/*! backbone.orderedlistview */ "./node_modules/backbone.overview/backbone.orderedlistview.js"), __webpack_require__(/*! backbone.vdomview */ "./node_modules/backbone.vdomview/backbone.vdomview.js"), __webpack_require__(/*! utils/muc */ "./src/utils/muc.js"), __webpack_require__(/*! utils/emoji */ "./src/utils/emoji.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  37421. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  37422. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  37423. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  37424. })(void 0, function (u, converse) {
  37425. "use strict";
  37426. var MUC_ROLE_WEIGHTS = {
  37427. 'moderator': 1,
  37428. 'participant': 2,
  37429. 'visitor': 3,
  37430. 'none': 2
  37431. };
  37432. var _converse$env = converse.env,
  37433. Strophe = _converse$env.Strophe,
  37434. Backbone = _converse$env.Backbone,
  37435. Promise = _converse$env.Promise,
  37436. $iq = _converse$env.$iq,
  37437. $build = _converse$env.$build,
  37438. $msg = _converse$env.$msg,
  37439. $pres = _converse$env.$pres,
  37440. b64_sha1 = _converse$env.b64_sha1,
  37441. sizzle = _converse$env.sizzle,
  37442. f = _converse$env.f,
  37443. moment = _converse$env.moment,
  37444. _ = _converse$env._; // Add Strophe Namespaces
  37445. Strophe.addNamespace('MUC_ADMIN', Strophe.NS.MUC + "#admin");
  37446. Strophe.addNamespace('MUC_OWNER', Strophe.NS.MUC + "#owner");
  37447. Strophe.addNamespace('MUC_REGISTER', "jabber:iq:register");
  37448. Strophe.addNamespace('MUC_ROOMCONF', Strophe.NS.MUC + "#roomconfig");
  37449. Strophe.addNamespace('MUC_USER', Strophe.NS.MUC + "#user");
  37450. converse.MUC_NICK_CHANGED_CODE = "303";
  37451. converse.ROOM_FEATURES = ['passwordprotected', 'unsecured', 'hidden', 'publicroom', 'membersonly', 'open', 'persistent', 'temporary', 'nonanonymous', 'semianonymous', 'moderated', 'unmoderated', 'mam_enabled'];
  37452. converse.ROOMSTATUS = {
  37453. CONNECTED: 0,
  37454. CONNECTING: 1,
  37455. NICKNAME_REQUIRED: 2,
  37456. PASSWORD_REQUIRED: 3,
  37457. DISCONNECTED: 4,
  37458. ENTERED: 5
  37459. };
  37460. converse.plugins.add('converse-muc', {
  37461. /* Optional dependencies are other plugins which might be
  37462. * overridden or relied upon, and therefore need to be loaded before
  37463. * this plugin. They are called "optional" because they might not be
  37464. * available, in which case any overrides applicable to them will be
  37465. * ignored.
  37466. *
  37467. * It's possible however to make optional dependencies non-optional.
  37468. * If the setting "strict_plugin_dependencies" is set to true,
  37469. * an error will be raised if the plugin is not found.
  37470. *
  37471. * NB: These plugins need to have already been loaded via require.js.
  37472. */
  37473. dependencies: ["converse-chatboxes", "converse-disco", "converse-controlbox"],
  37474. overrides: {
  37475. // Overrides mentioned here will be picked up by converse.js's
  37476. // plugin architecture they will replace existing methods on the
  37477. // relevant objects or classes.
  37478. //
  37479. // New functions which don't exist yet can also be added.
  37480. tearDown: function tearDown() {
  37481. var _converse = this.__super__._converse,
  37482. groupchats = this.chatboxes.where({
  37483. 'type': _converse.CHATROOMS_TYPE
  37484. });
  37485. _.each(groupchats, function (groupchat) {
  37486. u.safeSave(groupchat, {
  37487. 'connection_status': converse.ROOMSTATUS.DISCONNECTED
  37488. });
  37489. });
  37490. this.__super__.tearDown.call(this, arguments);
  37491. },
  37492. ChatBoxes: {
  37493. model: function model(attrs, options) {
  37494. var _converse = this.__super__._converse;
  37495. if (attrs.type == _converse.CHATROOMS_TYPE) {
  37496. return new _converse.ChatRoom(attrs, options);
  37497. } else {
  37498. return this.__super__.model.apply(this, arguments);
  37499. }
  37500. }
  37501. }
  37502. },
  37503. initialize: function initialize() {
  37504. /* The initialize function gets called as soon as the plugin is
  37505. * loaded by converse.js's plugin machinery.
  37506. */
  37507. var _converse = this._converse,
  37508. __ = _converse.__; // Configuration values for this plugin
  37509. // ====================================
  37510. // Refer to docs/source/configuration.rst for explanations of these
  37511. // configuration settings.
  37512. _converse.api.settings.update({
  37513. allow_muc: true,
  37514. allow_muc_invitations: true,
  37515. auto_join_on_invite: false,
  37516. auto_join_rooms: [],
  37517. muc_domain: undefined,
  37518. muc_history_max_stanzas: undefined,
  37519. muc_instant_rooms: true,
  37520. muc_nickname_from_jid: false
  37521. });
  37522. _converse.api.promises.add(['roomsAutoJoined']);
  37523. function openRoom(jid) {
  37524. if (!u.isValidMUCJID(jid)) {
  37525. return _converse.log("Invalid JID \"".concat(jid, "\" provided in URL fragment"), Strophe.LogLevel.WARN);
  37526. }
  37527. var promises = [_converse.api.waitUntil('roomsAutoJoined')];
  37528. if (_converse.allow_bookmarks) {
  37529. promises.push(_converse.api.waitUntil('bookmarksInitialized'));
  37530. }
  37531. Promise.all(promises).then(function () {
  37532. _converse.api.rooms.open(jid);
  37533. });
  37534. }
  37535. _converse.router.route('converse/room?jid=:jid', openRoom);
  37536. _converse.openChatRoom = function (jid, settings, bring_to_foreground) {
  37537. /* Opens a groupchat, making sure that certain attributes
  37538. * are correct, for example that the "type" is set to
  37539. * "chatroom".
  37540. */
  37541. settings.type = _converse.CHATROOMS_TYPE;
  37542. settings.id = jid;
  37543. settings.box_id = b64_sha1(jid);
  37544. var chatbox = _converse.chatboxes.getChatBox(jid, settings, true);
  37545. chatbox.trigger('show', true);
  37546. return chatbox;
  37547. };
  37548. _converse.ChatRoom = _converse.ChatBox.extend({
  37549. defaults: function defaults() {
  37550. return _.assign(_.clone(_converse.ChatBox.prototype.defaults), _.zipObject(converse.ROOM_FEATURES, _.map(converse.ROOM_FEATURES, _.stubFalse)), {
  37551. // For group chats, we distinguish between generally unread
  37552. // messages and those ones that specifically mention the
  37553. // user.
  37554. //
  37555. // To keep things simple, we reuse `num_unread` from
  37556. // _converse.ChatBox to indicate unread messages which
  37557. // mention the user and `num_unread_general` to indicate
  37558. // generally unread messages (which *includes* mentions!).
  37559. 'num_unread_general': 0,
  37560. 'affiliation': null,
  37561. 'connection_status': converse.ROOMSTATUS.DISCONNECTED,
  37562. 'name': '',
  37563. 'nick': _converse.xmppstatus.get('nickname') || _converse.nickname,
  37564. 'description': '',
  37565. 'features_fetched': false,
  37566. 'roomconfig': {},
  37567. 'type': _converse.CHATROOMS_TYPE,
  37568. 'message_type': 'groupchat'
  37569. });
  37570. },
  37571. initialize: function initialize() {
  37572. this.constructor.__super__.initialize.apply(this, arguments);
  37573. this.occupants = new _converse.ChatRoomOccupants();
  37574. this.occupants.browserStorage = new Backbone.BrowserStorage.session(b64_sha1("converse.occupants-".concat(_converse.bare_jid).concat(this.get('jid'))));
  37575. this.occupants.chatroom = this;
  37576. this.registerHandlers();
  37577. },
  37578. registerHandlers: function registerHandlers() {
  37579. var _this = this;
  37580. /* Register presence and message handlers for this chat
  37581. * groupchat
  37582. */
  37583. var room_jid = this.get('jid');
  37584. this.removeHandlers();
  37585. this.presence_handler = _converse.connection.addHandler(function (stanza) {
  37586. _.each(_.values(_this.handlers.presence), function (callback) {
  37587. return callback(stanza);
  37588. });
  37589. _this.onPresence(stanza);
  37590. return true;
  37591. }, null, 'presence', null, null, room_jid, {
  37592. 'ignoreNamespaceFragment': true,
  37593. 'matchBareFromJid': true
  37594. });
  37595. this.message_handler = _converse.connection.addHandler(function (stanza) {
  37596. _.each(_.values(_this.handlers.message), function (callback) {
  37597. return callback(stanza);
  37598. });
  37599. _this.onMessage(stanza);
  37600. return true;
  37601. }, null, 'message', 'groupchat', null, room_jid, {
  37602. 'matchBareFromJid': true
  37603. });
  37604. },
  37605. removeHandlers: function removeHandlers() {
  37606. /* Remove the presence and message handlers that were
  37607. * registered for this groupchat.
  37608. */
  37609. if (this.message_handler) {
  37610. _converse.connection.deleteHandler(this.message_handler);
  37611. delete this.message_handler;
  37612. }
  37613. if (this.presence_handler) {
  37614. _converse.connection.deleteHandler(this.presence_handler);
  37615. delete this.presence_handler;
  37616. }
  37617. return this;
  37618. },
  37619. addHandler: function addHandler(type, name, callback) {
  37620. /* Allows 'presence' and 'message' handlers to be
  37621. * registered. These will be executed once presence or
  37622. * message stanzas are received, and *before* this model's
  37623. * own handlers are executed.
  37624. */
  37625. if (_.isNil(this.handlers)) {
  37626. this.handlers = {};
  37627. }
  37628. if (_.isNil(this.handlers[type])) {
  37629. this.handlers[type] = {};
  37630. }
  37631. this.handlers[type][name] = callback;
  37632. },
  37633. getDisplayName: function getDisplayName() {
  37634. return this.get('name') || this.get('jid');
  37635. },
  37636. join: function join(nick, password) {
  37637. /* Join the groupchat.
  37638. *
  37639. * Parameters:
  37640. * (String) nick: The user's nickname
  37641. * (String) password: Optional password, if required by
  37642. * the groupchat.
  37643. */
  37644. nick = nick ? nick : this.get('nick');
  37645. if (!nick) {
  37646. throw new TypeError('join: You need to provide a valid nickname');
  37647. }
  37648. if (this.get('connection_status') === converse.ROOMSTATUS.ENTERED) {
  37649. // We have restored a groupchat from session storage,
  37650. // so we don't send out a presence stanza again.
  37651. return this;
  37652. }
  37653. var stanza = $pres({
  37654. 'from': _converse.connection.jid,
  37655. 'to': this.getRoomJIDAndNick(nick)
  37656. }).c("x", {
  37657. 'xmlns': Strophe.NS.MUC
  37658. }).c("history", {
  37659. 'maxstanzas': this.get('mam_enabled') ? 0 : _converse.muc_history_max_stanzas
  37660. }).up();
  37661. if (password) {
  37662. stanza.cnode(Strophe.xmlElement("password", [], password));
  37663. }
  37664. this.save('connection_status', converse.ROOMSTATUS.CONNECTING);
  37665. _converse.connection.send(stanza);
  37666. return this;
  37667. },
  37668. leave: function leave(exit_msg) {
  37669. /* Leave the groupchat.
  37670. *
  37671. * Parameters:
  37672. * (String) exit_msg: Optional message to indicate your
  37673. * reason for leaving.
  37674. */
  37675. this.occupants.browserStorage._clear();
  37676. this.occupants.reset();
  37677. if (_converse.connection.connected) {
  37678. this.sendUnavailablePresence(exit_msg);
  37679. }
  37680. u.safeSave(this, {
  37681. 'connection_status': converse.ROOMSTATUS.DISCONNECTED
  37682. });
  37683. this.removeHandlers();
  37684. },
  37685. sendUnavailablePresence: function sendUnavailablePresence(exit_msg) {
  37686. var presence = $pres({
  37687. type: "unavailable",
  37688. from: _converse.connection.jid,
  37689. to: this.getRoomJIDAndNick()
  37690. });
  37691. if (exit_msg !== null) {
  37692. presence.c("status", exit_msg);
  37693. }
  37694. _converse.connection.sendPresence(presence);
  37695. },
  37696. getReferenceForMention: function getReferenceForMention(mention, index) {
  37697. var longest_match = u.getLongestSubstring(mention, this.occupants.map(function (o) {
  37698. return o.getDisplayName();
  37699. }));
  37700. if (!longest_match) {
  37701. return null;
  37702. }
  37703. if ((mention[longest_match.length] || '').match(/[A-Za-zäëïöüâêîôûáéíóúàèìòùÄËÏÖÜÂÊÎÔÛÁÉÍÓÚÀÈÌÒÙ]/i)) {
  37704. // avoid false positives, i.e. mentions that have
  37705. // further alphabetical characters than our longest
  37706. // match.
  37707. return null;
  37708. }
  37709. var occupant = this.occupants.findOccupant({
  37710. 'nick': longest_match
  37711. }) || this.occupants.findOccupant({
  37712. 'jid': longest_match
  37713. });
  37714. if (!occupant) {
  37715. return null;
  37716. }
  37717. var obj = {
  37718. 'begin': index,
  37719. 'end': index + longest_match.length,
  37720. 'value': longest_match,
  37721. 'type': 'mention'
  37722. };
  37723. if (occupant.get('jid')) {
  37724. obj.uri = "xmpp:".concat(occupant.get('jid'));
  37725. }
  37726. return obj;
  37727. },
  37728. extractReference: function extractReference(text, index) {
  37729. for (var i = index; i < text.length; i++) {
  37730. if (text[i] !== '@') {
  37731. continue;
  37732. } else {
  37733. var match = text.slice(i + 1),
  37734. ref = this.getReferenceForMention(match, i);
  37735. if (ref) {
  37736. return [text.slice(0, i) + match, ref, i];
  37737. }
  37738. }
  37739. }
  37740. return;
  37741. },
  37742. parseTextForReferences: function parseTextForReferences(text) {
  37743. var refs = [];
  37744. var index = 0;
  37745. while (index < (text || '').length) {
  37746. var result = this.extractReference(text, index);
  37747. if (result) {
  37748. text = result[0]; // @ gets filtered out
  37749. refs.push(result[1]);
  37750. index = result[2];
  37751. } else {
  37752. break;
  37753. }
  37754. }
  37755. return [text, refs];
  37756. },
  37757. getOutgoingMessageAttributes: function getOutgoingMessageAttributes(text, spoiler_hint) {
  37758. var is_spoiler = this.get('composing_spoiler');
  37759. var references;
  37760. var _this$parseTextForRef = this.parseTextForReferences(text);
  37761. var _this$parseTextForRef2 = _slicedToArray(_this$parseTextForRef, 2);
  37762. text = _this$parseTextForRef2[0];
  37763. references = _this$parseTextForRef2[1];
  37764. return {
  37765. 'from': "".concat(this.get('jid'), "/").concat(this.get('nick')),
  37766. 'fullname': this.get('nick'),
  37767. 'is_spoiler': is_spoiler,
  37768. 'message': text ? u.httpToGeoUri(u.shortnameToUnicode(text), _converse) : undefined,
  37769. 'nick': this.get('nick'),
  37770. 'references': references,
  37771. 'sender': 'me',
  37772. 'spoiler_hint': is_spoiler ? spoiler_hint : undefined,
  37773. 'type': 'groupchat'
  37774. };
  37775. },
  37776. getRoomFeatures: function getRoomFeatures() {
  37777. var _this2 = this;
  37778. /* Fetch the groupchat disco info, parse it and then save it.
  37779. */
  37780. return new Promise(function (resolve, reject) {
  37781. _converse.api.disco.info(_this2.get('jid'), null).then(function (stanza) {
  37782. _this2.parseRoomFeatures(stanza);
  37783. resolve();
  37784. }).catch(function (err) {
  37785. _converse.log("Could not parse the groupchat features", Strophe.LogLevel.WARN);
  37786. _converse.log(err, Strophe.LogLevel.WARN);
  37787. reject(err);
  37788. });
  37789. });
  37790. },
  37791. getRoomJIDAndNick: function getRoomJIDAndNick(nick) {
  37792. /* Utility method to construct the JID for the current user
  37793. * as occupant of the groupchat.
  37794. *
  37795. * This is the groupchat JID, with the user's nick added at the
  37796. * end.
  37797. *
  37798. * For example: groupchat@conference.example.org/nickname
  37799. */
  37800. if (nick) {
  37801. this.save({
  37802. 'nick': nick
  37803. });
  37804. } else {
  37805. nick = this.get('nick');
  37806. }
  37807. var groupchat = this.get('jid');
  37808. var jid = Strophe.getBareJidFromJid(groupchat);
  37809. return jid + (nick !== null ? "/".concat(nick) : "");
  37810. },
  37811. sendChatState: function sendChatState() {
  37812. /* Sends a message with the status of the user in this chat session
  37813. * as taken from the 'chat_state' attribute of the chat box.
  37814. * See XEP-0085 Chat State Notifications.
  37815. */
  37816. if (this.get('connection_status') !== converse.ROOMSTATUS.ENTERED) {
  37817. return;
  37818. }
  37819. var chat_state = this.get('chat_state');
  37820. if (chat_state === _converse.GONE) {
  37821. // <gone/> is not applicable within MUC context
  37822. return;
  37823. }
  37824. _converse.connection.send($msg({
  37825. 'to': this.get('jid'),
  37826. 'type': 'groupchat'
  37827. }).c(chat_state, {
  37828. 'xmlns': Strophe.NS.CHATSTATES
  37829. }).up().c('no-store', {
  37830. 'xmlns': Strophe.NS.HINTS
  37831. }).up().c('no-permanent-store', {
  37832. 'xmlns': Strophe.NS.HINTS
  37833. }));
  37834. },
  37835. directInvite: function directInvite(recipient, reason) {
  37836. /* Send a direct invitation as per XEP-0249
  37837. *
  37838. * Parameters:
  37839. * (String) recipient - JID of the person being invited
  37840. * (String) reason - Optional reason for the invitation
  37841. */
  37842. if (this.get('membersonly')) {
  37843. // When inviting to a members-only groupchat, we first add
  37844. // the person to the member list by giving them an
  37845. // affiliation of 'member' (if they're not affiliated
  37846. // already), otherwise they won't be able to join.
  37847. var map = {};
  37848. map[recipient] = 'member';
  37849. var deltaFunc = _.partial(u.computeAffiliationsDelta, true, false);
  37850. this.updateMemberLists([{
  37851. 'jid': recipient,
  37852. 'affiliation': 'member',
  37853. 'reason': reason
  37854. }], ['member', 'owner', 'admin'], deltaFunc);
  37855. }
  37856. var attrs = {
  37857. 'xmlns': 'jabber:x:conference',
  37858. 'jid': this.get('jid')
  37859. };
  37860. if (reason !== null) {
  37861. attrs.reason = reason;
  37862. }
  37863. if (this.get('password')) {
  37864. attrs.password = this.get('password');
  37865. }
  37866. var invitation = $msg({
  37867. from: _converse.connection.jid,
  37868. to: recipient,
  37869. id: _converse.connection.getUniqueId()
  37870. }).c('x', attrs);
  37871. _converse.connection.send(invitation);
  37872. _converse.emit('roomInviteSent', {
  37873. 'room': this,
  37874. 'recipient': recipient,
  37875. 'reason': reason
  37876. });
  37877. },
  37878. parseRoomFeatures: function parseRoomFeatures(iq) {
  37879. /* Parses an IQ stanza containing the groupchat's features.
  37880. *
  37881. * See http://xmpp.org/extensions/xep-0045.html#disco-roominfo
  37882. *
  37883. * <identity
  37884. * category='conference'
  37885. * name='A Dark Cave'
  37886. * type='text'/>
  37887. * <feature var='http://jabber.org/protocol/muc'/>
  37888. * <feature var='muc_passwordprotected'/>
  37889. * <feature var='muc_hidden'/>
  37890. * <feature var='muc_temporary'/>
  37891. * <feature var='muc_open'/>
  37892. * <feature var='muc_unmoderated'/>
  37893. * <feature var='muc_nonanonymous'/>
  37894. * <feature var='urn:xmpp:mam:0'/>
  37895. */
  37896. var features = {
  37897. 'features_fetched': moment().format(),
  37898. 'name': iq.querySelector('identity').getAttribute('name')
  37899. };
  37900. _.each(iq.querySelectorAll('feature'), function (field) {
  37901. var fieldname = field.getAttribute('var');
  37902. if (!fieldname.startsWith('muc_')) {
  37903. if (fieldname === Strophe.NS.MAM) {
  37904. features.mam_enabled = true;
  37905. }
  37906. return;
  37907. }
  37908. features[fieldname.replace('muc_', '')] = true;
  37909. });
  37910. var desc_field = iq.querySelector('field[var="muc#roominfo_description"] value');
  37911. if (!_.isNull(desc_field)) {
  37912. features.description = desc_field.textContent;
  37913. }
  37914. this.save(features);
  37915. },
  37916. requestMemberList: function requestMemberList(affiliation) {
  37917. /* Send an IQ stanza to the server, asking it for the
  37918. * member-list of this groupchat.
  37919. *
  37920. * See: http://xmpp.org/extensions/xep-0045.html#modifymember
  37921. *
  37922. * Parameters:
  37923. * (String) affiliation: The specific member list to
  37924. * fetch. 'admin', 'owner' or 'member'.
  37925. *
  37926. * Returns:
  37927. * A promise which resolves once the list has been
  37928. * retrieved.
  37929. */
  37930. affiliation = affiliation || 'member';
  37931. var iq = $iq({
  37932. to: this.get('jid'),
  37933. type: "get"
  37934. }).c("query", {
  37935. xmlns: Strophe.NS.MUC_ADMIN
  37936. }).c("item", {
  37937. 'affiliation': affiliation
  37938. });
  37939. return _converse.api.sendIQ(iq);
  37940. },
  37941. setAffiliation: function setAffiliation(affiliation, members) {
  37942. /* Send IQ stanzas to the server to set an affiliation for
  37943. * the provided JIDs.
  37944. *
  37945. * See: http://xmpp.org/extensions/xep-0045.html#modifymember
  37946. *
  37947. * XXX: Prosody doesn't accept multiple JIDs' affiliations
  37948. * being set in one IQ stanza, so as a workaround we send
  37949. * a separate stanza for each JID.
  37950. * Related ticket: https://prosody.im/issues/issue/795
  37951. *
  37952. * Parameters:
  37953. * (String) affiliation: The affiliation
  37954. * (Object) members: A map of jids, affiliations and
  37955. * optionally reasons. Only those entries with the
  37956. * same affiliation as being currently set will be
  37957. * considered.
  37958. *
  37959. * Returns:
  37960. * A promise which resolves and fails depending on the
  37961. * XMPP server response.
  37962. */
  37963. members = _.filter(members, function (member) {
  37964. return (// We only want those members who have the right
  37965. // affiliation (or none, which implies the provided one).
  37966. _.isUndefined(member.affiliation) || member.affiliation === affiliation
  37967. );
  37968. });
  37969. var promises = _.map(members, _.bind(this.sendAffiliationIQ, this, affiliation));
  37970. return Promise.all(promises);
  37971. },
  37972. saveConfiguration: function saveConfiguration(form) {
  37973. var _this3 = this;
  37974. /* Submit the groupchat configuration form by sending an IQ
  37975. * stanza to the server.
  37976. *
  37977. * Returns a promise which resolves once the XMPP server
  37978. * has return a response IQ.
  37979. *
  37980. * Parameters:
  37981. * (HTMLElement) form: The configuration form DOM element.
  37982. * If no form is provided, the default configuration
  37983. * values will be used.
  37984. */
  37985. return new Promise(function (resolve, reject) {
  37986. var inputs = form ? sizzle(':input:not([type=button]):not([type=submit])', form) : [],
  37987. configArray = _.map(inputs, u.webForm2xForm);
  37988. _this3.sendConfiguration(configArray, resolve, reject);
  37989. });
  37990. },
  37991. autoConfigureChatRoom: function autoConfigureChatRoom() {
  37992. var _this4 = this;
  37993. /* Automatically configure groupchat based on this model's
  37994. * 'roomconfig' data.
  37995. *
  37996. * Returns a promise which resolves once a response IQ has
  37997. * been received.
  37998. */
  37999. return new Promise(function (resolve, reject) {
  38000. _this4.fetchRoomConfiguration().then(function (stanza) {
  38001. var configArray = [],
  38002. fields = stanza.querySelectorAll('field'),
  38003. config = _this4.get('roomconfig');
  38004. var count = fields.length;
  38005. _.each(fields, function (field) {
  38006. var fieldname = field.getAttribute('var').replace('muc#roomconfig_', ''),
  38007. type = field.getAttribute('type');
  38008. var value;
  38009. if (fieldname in config) {
  38010. switch (type) {
  38011. case 'boolean':
  38012. value = config[fieldname] ? 1 : 0;
  38013. break;
  38014. case 'list-multi':
  38015. // TODO: we don't yet handle "list-multi" types
  38016. value = field.innerHTML;
  38017. break;
  38018. default:
  38019. value = config[fieldname];
  38020. }
  38021. field.innerHTML = $build('value').t(value);
  38022. }
  38023. configArray.push(field);
  38024. if (! --count) {
  38025. _this4.sendConfiguration(configArray, resolve, reject);
  38026. }
  38027. });
  38028. });
  38029. });
  38030. },
  38031. fetchRoomConfiguration: function fetchRoomConfiguration() {
  38032. var _this5 = this;
  38033. /* Send an IQ stanza to fetch the groupchat configuration data.
  38034. * Returns a promise which resolves once the response IQ
  38035. * has been received.
  38036. */
  38037. return new Promise(function (resolve, reject) {
  38038. _converse.connection.sendIQ($iq({
  38039. 'to': _this5.get('jid'),
  38040. 'type': "get"
  38041. }).c("query", {
  38042. xmlns: Strophe.NS.MUC_OWNER
  38043. }), resolve, reject);
  38044. });
  38045. },
  38046. sendConfiguration: function sendConfiguration(config, callback, errback) {
  38047. /* Send an IQ stanza with the groupchat configuration.
  38048. *
  38049. * Parameters:
  38050. * (Array) config: The groupchat configuration
  38051. * (Function) callback: Callback upon succesful IQ response
  38052. * The first parameter passed in is IQ containing the
  38053. * groupchat configuration.
  38054. * The second is the response IQ from the server.
  38055. * (Function) errback: Callback upon error IQ response
  38056. * The first parameter passed in is IQ containing the
  38057. * groupchat configuration.
  38058. * The second is the response IQ from the server.
  38059. */
  38060. var iq = $iq({
  38061. to: this.get('jid'),
  38062. type: "set"
  38063. }).c("query", {
  38064. xmlns: Strophe.NS.MUC_OWNER
  38065. }).c("x", {
  38066. xmlns: Strophe.NS.XFORM,
  38067. type: "submit"
  38068. });
  38069. _.each(config || [], function (node) {
  38070. iq.cnode(node).up();
  38071. });
  38072. callback = _.isUndefined(callback) ? _.noop : _.partial(callback, iq.nodeTree);
  38073. errback = _.isUndefined(errback) ? _.noop : _.partial(errback, iq.nodeTree);
  38074. return _converse.connection.sendIQ(iq, callback, errback);
  38075. },
  38076. saveAffiliationAndRole: function saveAffiliationAndRole(pres) {
  38077. /* Parse the presence stanza for the current user's
  38078. * affiliation.
  38079. *
  38080. * Parameters:
  38081. * (XMLElement) pres: A <presence> stanza.
  38082. */
  38083. var item = sizzle("x[xmlns=\"".concat(Strophe.NS.MUC_USER, "\"] item"), pres).pop();
  38084. var is_self = pres.querySelector("status[code='110']");
  38085. if (is_self && !_.isNil(item)) {
  38086. var affiliation = item.getAttribute('affiliation');
  38087. var role = item.getAttribute('role');
  38088. if (affiliation) {
  38089. this.save({
  38090. 'affiliation': affiliation
  38091. });
  38092. }
  38093. if (role) {
  38094. this.save({
  38095. 'role': role
  38096. });
  38097. }
  38098. }
  38099. },
  38100. sendAffiliationIQ: function sendAffiliationIQ(affiliation, member) {
  38101. var _this6 = this;
  38102. /* Send an IQ stanza specifying an affiliation change.
  38103. *
  38104. * Paremeters:
  38105. * (String) affiliation: affiliation (could also be stored
  38106. * on the member object).
  38107. * (Object) member: Map containing the member's jid and
  38108. * optionally a reason and affiliation.
  38109. */
  38110. return new Promise(function (resolve, reject) {
  38111. var iq = $iq({
  38112. to: _this6.get('jid'),
  38113. type: "set"
  38114. }).c("query", {
  38115. xmlns: Strophe.NS.MUC_ADMIN
  38116. }).c("item", {
  38117. 'affiliation': member.affiliation || affiliation,
  38118. 'jid': member.jid
  38119. });
  38120. if (!_.isUndefined(member.reason)) {
  38121. iq.c("reason", member.reason);
  38122. }
  38123. _converse.connection.sendIQ(iq, resolve, reject);
  38124. });
  38125. },
  38126. setAffiliations: function setAffiliations(members) {
  38127. /* Send IQ stanzas to the server to modify the
  38128. * affiliations in this groupchat.
  38129. *
  38130. * See: http://xmpp.org/extensions/xep-0045.html#modifymember
  38131. *
  38132. * Parameters:
  38133. * (Object) members: A map of jids, affiliations and optionally reasons
  38134. * (Function) onSuccess: callback for a succesful response
  38135. * (Function) onError: callback for an error response
  38136. */
  38137. var affiliations = _.uniq(_.map(members, 'affiliation'));
  38138. return Promise.all(_.map(affiliations, _.partial(this.setAffiliation.bind(this), _, members)));
  38139. },
  38140. getJidsWithAffiliations: function getJidsWithAffiliations(affiliations) {
  38141. /* Returns a map of JIDs that have the affiliations
  38142. * as provided.
  38143. */
  38144. if (_.isString(affiliations)) {
  38145. affiliations = [affiliations];
  38146. }
  38147. var promises = _.map(affiliations, _.partial(this.requestMemberList.bind(this)));
  38148. return Promise.all(promises).then(function (iq) {
  38149. return u.marshallAffiliationIQs(iq);
  38150. }, function (iq) {
  38151. return u.marshallAffiliationIQs(iq);
  38152. });
  38153. },
  38154. updateMemberLists: function updateMemberLists(members, affiliations, deltaFunc) {
  38155. var _this7 = this;
  38156. /* Fetch the lists of users with the given affiliations.
  38157. * Then compute the delta between those users and
  38158. * the passed in members, and if it exists, send the delta
  38159. * to the XMPP server to update the member list.
  38160. *
  38161. * Parameters:
  38162. * (Object) members: Map of member jids and affiliations.
  38163. * (String|Array) affiliation: An array of affiliations or
  38164. * a string if only one affiliation.
  38165. * (Function) deltaFunc: The function to compute the delta
  38166. * between old and new member lists.
  38167. *
  38168. * Returns:
  38169. * A promise which is resolved once the list has been
  38170. * updated or once it's been established there's no need
  38171. * to update the list.
  38172. */
  38173. this.getJidsWithAffiliations(affiliations).then(function (old_members) {
  38174. return _this7.setAffiliations(deltaFunc(members, old_members));
  38175. }).then(function () {
  38176. return _this7.occupants.fetchMembers();
  38177. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.ERROR));
  38178. },
  38179. checkForReservedNick: function checkForReservedNick(callback, errback) {
  38180. /* Use service-discovery to ask the XMPP server whether
  38181. * this user has a reserved nickname for this groupchat.
  38182. * If so, we'll use that, otherwise we render the nickname form.
  38183. *
  38184. * Parameters:
  38185. * (Function) callback: Callback upon succesful IQ response
  38186. * (Function) errback: Callback upon error IQ response
  38187. */
  38188. _converse.connection.sendIQ($iq({
  38189. 'to': this.get('jid'),
  38190. 'from': _converse.connection.jid,
  38191. 'type': "get"
  38192. }).c("query", {
  38193. 'xmlns': Strophe.NS.DISCO_INFO,
  38194. 'node': 'x-roomuser-item'
  38195. }), callback, errback);
  38196. return this;
  38197. },
  38198. updateOccupantsOnPresence: function updateOccupantsOnPresence(pres) {
  38199. /* Given a presence stanza, update the occupant model
  38200. * based on its contents.
  38201. *
  38202. * Parameters:
  38203. * (XMLElement) pres: The presence stanza
  38204. */
  38205. var data = this.parsePresence(pres);
  38206. if (data.type === 'error') {
  38207. return true;
  38208. }
  38209. var occupant = this.occupants.findOccupant(data);
  38210. if (data.type === 'unavailable' && occupant) {
  38211. if (!_.includes(data.states, converse.MUC_NICK_CHANGED_CODE) && !occupant.isMember()) {
  38212. // We only destroy the occupant if this is not a nickname change operation.
  38213. // and if they're not on the member lists.
  38214. // Before destroying we set the new data, so
  38215. // that we can show the disconnection message.
  38216. occupant.set(data);
  38217. occupant.destroy();
  38218. return;
  38219. }
  38220. }
  38221. var jid = Strophe.getBareJidFromJid(data.jid);
  38222. var attributes = _.extend(data, {
  38223. 'jid': jid ? jid : undefined,
  38224. 'resource': data.jid ? Strophe.getResourceFromJid(data.jid) : undefined
  38225. });
  38226. if (occupant) {
  38227. occupant.save(attributes);
  38228. } else {
  38229. this.occupants.create(attributes);
  38230. }
  38231. },
  38232. parsePresence: function parsePresence(pres) {
  38233. var from = pres.getAttribute("from"),
  38234. type = pres.getAttribute("type"),
  38235. data = {
  38236. 'from': from,
  38237. 'nick': Strophe.getResourceFromJid(from),
  38238. 'type': type,
  38239. 'states': [],
  38240. 'show': type !== 'unavailable' ? 'online' : 'offline'
  38241. };
  38242. _.each(pres.childNodes, function (child) {
  38243. switch (child.nodeName) {
  38244. case "status":
  38245. data.status = child.textContent || null;
  38246. break;
  38247. case "show":
  38248. data.show = child.textContent || 'online';
  38249. break;
  38250. case "x":
  38251. if (child.getAttribute("xmlns") === Strophe.NS.MUC_USER) {
  38252. _.each(child.childNodes, function (item) {
  38253. switch (item.nodeName) {
  38254. case "item":
  38255. data.affiliation = item.getAttribute("affiliation");
  38256. data.role = item.getAttribute("role");
  38257. data.jid = item.getAttribute("jid");
  38258. data.nick = item.getAttribute("nick") || data.nick;
  38259. break;
  38260. case "status":
  38261. if (item.getAttribute("code")) {
  38262. data.states.push(item.getAttribute("code"));
  38263. }
  38264. }
  38265. });
  38266. } else if (child.getAttribute("xmlns") === Strophe.NS.VCARDUPDATE) {
  38267. data.image_hash = _.get(child.querySelector('photo'), 'textContent');
  38268. }
  38269. }
  38270. });
  38271. return data;
  38272. },
  38273. isDuplicate: function isDuplicate(message, original_stanza) {
  38274. var msgid = message.getAttribute('id'),
  38275. jid = message.getAttribute('from');
  38276. if (msgid) {
  38277. return this.messages.where({
  38278. 'msgid': msgid,
  38279. 'from': jid
  38280. }).length;
  38281. }
  38282. return false;
  38283. },
  38284. fetchFeaturesIfConfigurationChanged: function fetchFeaturesIfConfigurationChanged(stanza) {
  38285. var configuration_changed = stanza.querySelector("status[code='104']"),
  38286. logging_enabled = stanza.querySelector("status[code='170']"),
  38287. logging_disabled = stanza.querySelector("status[code='171']"),
  38288. room_no_longer_anon = stanza.querySelector("status[code='172']"),
  38289. room_now_semi_anon = stanza.querySelector("status[code='173']"),
  38290. room_now_fully_anon = stanza.querySelector("status[code='173']");
  38291. if (configuration_changed || logging_enabled || logging_disabled || room_no_longer_anon || room_now_semi_anon || room_now_fully_anon) {
  38292. this.getRoomFeatures();
  38293. }
  38294. },
  38295. onMessage: function onMessage(stanza) {
  38296. var _this8 = this;
  38297. /* Handler for all MUC messages sent to this groupchat.
  38298. *
  38299. * Parameters:
  38300. * (XMLElement) stanza: The message stanza.
  38301. */
  38302. this.fetchFeaturesIfConfigurationChanged(stanza);
  38303. var original_stanza = stanza,
  38304. forwarded = stanza.querySelector('forwarded');
  38305. if (!_.isNull(forwarded)) {
  38306. stanza = forwarded.querySelector('message');
  38307. }
  38308. if (this.isDuplicate(stanza, original_stanza)) {
  38309. return;
  38310. }
  38311. var jid = stanza.getAttribute('from'),
  38312. resource = Strophe.getResourceFromJid(jid),
  38313. sender = resource && Strophe.unescapeNode(resource) || '';
  38314. if (!this.handleMessageCorrection(stanza)) {
  38315. if (sender === '') {
  38316. return;
  38317. }
  38318. var subject_el = stanza.querySelector('subject');
  38319. if (subject_el) {
  38320. var subject = _.propertyOf(subject_el)('textContent') || '';
  38321. u.safeSave(this, {
  38322. 'subject': {
  38323. 'author': sender,
  38324. 'text': subject
  38325. }
  38326. });
  38327. }
  38328. this.createMessage(stanza, original_stanza).then(function (msg) {
  38329. return _this8.incrementUnreadMsgCounter(msg);
  38330. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  38331. }
  38332. if (sender !== this.get('nick')) {
  38333. // We only emit an event if it's not our own message
  38334. _converse.emit('message', {
  38335. 'stanza': original_stanza,
  38336. 'chatbox': this
  38337. });
  38338. }
  38339. },
  38340. onPresence: function onPresence(pres) {
  38341. /* Handles all MUC presence stanzas.
  38342. *
  38343. * Parameters:
  38344. * (XMLElement) pres: The stanza
  38345. */
  38346. if (pres.getAttribute('type') === 'error') {
  38347. this.save('connection_status', converse.ROOMSTATUS.DISCONNECTED);
  38348. return;
  38349. }
  38350. var is_self = pres.querySelector("status[code='110']");
  38351. if (is_self && pres.getAttribute('type') !== 'unavailable') {
  38352. this.onOwnPresence(pres);
  38353. }
  38354. this.updateOccupantsOnPresence(pres);
  38355. if (this.get('role') !== 'none' && this.get('connection_status') === converse.ROOMSTATUS.CONNECTING) {
  38356. this.save('connection_status', converse.ROOMSTATUS.CONNECTED);
  38357. }
  38358. },
  38359. onOwnPresence: function onOwnPresence(pres) {
  38360. /* Handles a received presence relating to the current
  38361. * user.
  38362. *
  38363. * For locked groupchats (which are by definition "new"), the
  38364. * groupchat will either be auto-configured or created instantly
  38365. * (with default config) or a configuration groupchat will be
  38366. * rendered.
  38367. *
  38368. * If the groupchat is not locked, then the groupchat will be
  38369. * auto-configured only if applicable and if the current
  38370. * user is the groupchat's owner.
  38371. *
  38372. * Parameters:
  38373. * (XMLElement) pres: The stanza
  38374. */
  38375. this.saveAffiliationAndRole(pres);
  38376. var locked_room = pres.querySelector("status[code='201']");
  38377. if (locked_room) {
  38378. if (this.get('auto_configure')) {
  38379. this.autoConfigureChatRoom().then(this.getRoomFeatures.bind(this));
  38380. } else if (_converse.muc_instant_rooms) {
  38381. // Accept default configuration
  38382. this.saveConfiguration().then(this.getRoomFeatures.bind(this));
  38383. } else {
  38384. this.trigger('configurationNeeded');
  38385. return; // We haven't yet entered the groupchat, so bail here.
  38386. }
  38387. } else if (!this.get('features_fetched')) {
  38388. // The features for this groupchat weren't fetched.
  38389. // That must mean it's a new groupchat without locking
  38390. // (in which case Prosody doesn't send a 201 status),
  38391. // otherwise the features would have been fetched in
  38392. // the "initialize" method already.
  38393. if (this.get('affiliation') === 'owner' && this.get('auto_configure')) {
  38394. this.autoConfigureChatRoom().then(this.getRoomFeatures.bind(this));
  38395. } else {
  38396. this.getRoomFeatures();
  38397. }
  38398. }
  38399. this.save('connection_status', converse.ROOMSTATUS.ENTERED);
  38400. },
  38401. isUserMentioned: function isUserMentioned(message) {
  38402. /* Returns a boolean to indicate whether the current user
  38403. * was mentioned in a message.
  38404. *
  38405. * Parameters:
  38406. * (String): The text message
  38407. */
  38408. var nick = this.get('nick');
  38409. if (message.get('references').length) {
  38410. var mentions = message.get('references').filter(function (ref) {
  38411. return ref.type === 'mention';
  38412. }).map(function (ref) {
  38413. return ref.value;
  38414. });
  38415. return _.includes(mentions, nick);
  38416. } else {
  38417. return new RegExp("\\b".concat(nick, "\\b")).test(message.get('message'));
  38418. }
  38419. },
  38420. incrementUnreadMsgCounter: function incrementUnreadMsgCounter(message) {
  38421. /* Given a newly received message, update the unread counter if
  38422. * necessary.
  38423. *
  38424. * Parameters:
  38425. * (XMLElement): The <messsage> stanza
  38426. */
  38427. if (!message) {
  38428. return;
  38429. }
  38430. var body = message.get('message');
  38431. if (_.isNil(body)) {
  38432. return;
  38433. }
  38434. if (u.isNewMessage(message) && this.isHidden()) {
  38435. var settings = {
  38436. 'num_unread_general': this.get('num_unread_general') + 1
  38437. };
  38438. if (this.isUserMentioned(message)) {
  38439. settings.num_unread = this.get('num_unread') + 1;
  38440. _converse.incrementMsgCounter();
  38441. }
  38442. this.save(settings);
  38443. }
  38444. },
  38445. clearUnreadMsgCounter: function clearUnreadMsgCounter() {
  38446. u.safeSave(this, {
  38447. 'num_unread': 0,
  38448. 'num_unread_general': 0
  38449. });
  38450. }
  38451. });
  38452. _converse.ChatRoomOccupant = Backbone.Model.extend({
  38453. defaults: {
  38454. 'show': 'offline'
  38455. },
  38456. initialize: function initialize(attributes) {
  38457. this.set(_.extend({
  38458. 'id': _converse.connection.getUniqueId()
  38459. }, attributes));
  38460. this.on('change:image_hash', this.onAvatarChanged, this);
  38461. },
  38462. onAvatarChanged: function onAvatarChanged() {
  38463. var hash = this.get('image_hash');
  38464. var vcards = [];
  38465. if (this.get('jid')) {
  38466. vcards.push(_converse.vcards.findWhere({
  38467. 'jid': this.get('jid')
  38468. }));
  38469. }
  38470. vcards.push(_converse.vcards.findWhere({
  38471. 'jid': this.get('from')
  38472. }));
  38473. _.forEach(_.filter(vcards, undefined), function (vcard) {
  38474. if (hash && vcard.get('image_hash') !== hash) {
  38475. _converse.api.vcard.update(vcard);
  38476. }
  38477. });
  38478. },
  38479. getDisplayName: function getDisplayName() {
  38480. return this.get('nick') || this.get('jid');
  38481. },
  38482. isMember: function isMember() {
  38483. return _.includes(['admin', 'owner', 'member'], this.get('affiliation'));
  38484. }
  38485. });
  38486. _converse.ChatRoomOccupants = Backbone.Collection.extend({
  38487. model: _converse.ChatRoomOccupant,
  38488. comparator: function comparator(occupant1, occupant2) {
  38489. var role1 = occupant1.get('role') || 'none';
  38490. var role2 = occupant2.get('role') || 'none';
  38491. if (MUC_ROLE_WEIGHTS[role1] === MUC_ROLE_WEIGHTS[role2]) {
  38492. var nick1 = occupant1.getDisplayName().toLowerCase();
  38493. var nick2 = occupant2.getDisplayName().toLowerCase();
  38494. return nick1 < nick2 ? -1 : nick1 > nick2 ? 1 : 0;
  38495. } else {
  38496. return MUC_ROLE_WEIGHTS[role1] < MUC_ROLE_WEIGHTS[role2] ? -1 : 1;
  38497. }
  38498. },
  38499. fetchMembers: function fetchMembers() {
  38500. var _this9 = this;
  38501. this.chatroom.getJidsWithAffiliations(['member', 'owner', 'admin']).then(function (new_members) {
  38502. var new_jids = new_members.map(function (m) {
  38503. return m.jid;
  38504. }).filter(function (m) {
  38505. return !_.isUndefined(m);
  38506. }),
  38507. new_nicks = new_members.map(function (m) {
  38508. return !m.jid && m.nick || undefined;
  38509. }).filter(function (m) {
  38510. return !_.isUndefined(m);
  38511. }),
  38512. removed_members = _this9.filter(function (m) {
  38513. return f.includes(m.get('affiliation'), ['admin', 'member', 'owner']) && !f.includes(m.get('nick'), new_nicks) && !f.includes(m.get('jid'), new_jids);
  38514. });
  38515. _.each(removed_members, function (occupant) {
  38516. if (occupant.get('jid') === _converse.bare_jid) {
  38517. return;
  38518. }
  38519. if (occupant.get('show') === 'offline') {
  38520. occupant.destroy();
  38521. }
  38522. });
  38523. _.each(new_members, function (attrs) {
  38524. var occupant;
  38525. if (attrs.jid) {
  38526. occupant = _this9.findOccupant({
  38527. 'jid': attrs.jid
  38528. });
  38529. } else {
  38530. occupant = _this9.findOccupant({
  38531. 'nick': attrs.nick
  38532. });
  38533. }
  38534. if (occupant) {
  38535. occupant.save(attrs);
  38536. } else {
  38537. _this9.create(attrs);
  38538. }
  38539. });
  38540. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.ERROR));
  38541. },
  38542. findOccupant: function findOccupant(data) {
  38543. /* Try to find an existing occupant based on the passed in
  38544. * data object.
  38545. *
  38546. * If we have a JID, we use that as lookup variable,
  38547. * otherwise we use the nick. We don't always have both,
  38548. * but should have at least one or the other.
  38549. */
  38550. var jid = Strophe.getBareJidFromJid(data.jid);
  38551. if (jid !== null) {
  38552. return this.where({
  38553. 'jid': jid
  38554. }).pop();
  38555. } else {
  38556. return this.where({
  38557. 'nick': data.nick
  38558. }).pop();
  38559. }
  38560. }
  38561. });
  38562. _converse.RoomsPanelModel = Backbone.Model.extend({
  38563. defaults: {
  38564. 'muc_domain': ''
  38565. }
  38566. });
  38567. _converse.onDirectMUCInvitation = function (message) {
  38568. /* A direct MUC invitation to join a groupchat has been received
  38569. * See XEP-0249: Direct MUC invitations.
  38570. *
  38571. * Parameters:
  38572. * (XMLElement) message: The message stanza containing the
  38573. * invitation.
  38574. */
  38575. var x_el = sizzle('x[xmlns="jabber:x:conference"]', message).pop(),
  38576. from = Strophe.getBareJidFromJid(message.getAttribute('from')),
  38577. room_jid = x_el.getAttribute('jid'),
  38578. reason = x_el.getAttribute('reason');
  38579. var contact = _converse.roster.get(from),
  38580. result;
  38581. if (_converse.auto_join_on_invite) {
  38582. result = true;
  38583. } else {
  38584. // Invite request might come from someone not your roster list
  38585. contact = contact ? contact.get('fullname') : Strophe.getNodeFromJid(from);
  38586. if (!reason) {
  38587. result = confirm(__("%1$s has invited you to join a groupchat: %2$s", contact, room_jid));
  38588. } else {
  38589. result = confirm(__('%1$s has invited you to join a groupchat: %2$s, and left the following reason: "%3$s"', contact, room_jid, reason));
  38590. }
  38591. }
  38592. if (result === true) {
  38593. var chatroom = _converse.openChatRoom(room_jid, {
  38594. 'password': x_el.getAttribute('password')
  38595. });
  38596. if (chatroom.get('connection_status') === converse.ROOMSTATUS.DISCONNECTED) {
  38597. _converse.chatboxviews.get(room_jid).join();
  38598. }
  38599. }
  38600. };
  38601. if (_converse.allow_muc_invitations) {
  38602. var registerDirectInvitationHandler = function registerDirectInvitationHandler() {
  38603. _converse.connection.addHandler(function (message) {
  38604. _converse.onDirectMUCInvitation(message);
  38605. return true;
  38606. }, 'jabber:x:conference', 'message');
  38607. };
  38608. _converse.on('connected', registerDirectInvitationHandler);
  38609. _converse.on('reconnected', registerDirectInvitationHandler);
  38610. }
  38611. var getChatRoom = function getChatRoom(jid, attrs, create) {
  38612. jid = jid.toLowerCase();
  38613. attrs.type = _converse.CHATROOMS_TYPE;
  38614. attrs.id = jid;
  38615. attrs.box_id = b64_sha1(jid);
  38616. return _converse.chatboxes.getChatBox(jid, attrs, create);
  38617. };
  38618. var createChatRoom = function createChatRoom(jid, attrs) {
  38619. return getChatRoom(jid, attrs, true);
  38620. };
  38621. function autoJoinRooms() {
  38622. /* Automatically join groupchats, based on the
  38623. * "auto_join_rooms" configuration setting, which is an array
  38624. * of strings (groupchat JIDs) or objects (with groupchat JID and other
  38625. * settings).
  38626. */
  38627. _.each(_converse.auto_join_rooms, function (groupchat) {
  38628. if (_converse.chatboxes.where({
  38629. 'jid': groupchat
  38630. }).length) {
  38631. return;
  38632. }
  38633. if (_.isString(groupchat)) {
  38634. _converse.api.rooms.open(groupchat);
  38635. } else if (_.isObject(groupchat)) {
  38636. _converse.api.rooms.open(groupchat.jid, groupchat.nick);
  38637. } else {
  38638. _converse.log('Invalid groupchat criteria specified for "auto_join_rooms"', Strophe.LogLevel.ERROR);
  38639. }
  38640. });
  38641. _converse.emit('roomsAutoJoined');
  38642. }
  38643. function disconnectChatRooms() {
  38644. /* When disconnecting, mark all groupchats as
  38645. * disconnected, so that they will be properly entered again
  38646. * when fetched from session storage.
  38647. */
  38648. _converse.chatboxes.each(function (model) {
  38649. if (model.get('type') === _converse.CHATROOMS_TYPE) {
  38650. model.save('connection_status', converse.ROOMSTATUS.DISCONNECTED);
  38651. }
  38652. });
  38653. }
  38654. /************************ BEGIN Event Handlers ************************/
  38655. _converse.on('addClientFeatures', function () {
  38656. if (_converse.allow_muc) {
  38657. _converse.api.disco.own.features.add(Strophe.NS.MUC);
  38658. }
  38659. if (_converse.allow_muc_invitations) {
  38660. _converse.api.disco.own.features.add('jabber:x:conference'); // Invites
  38661. }
  38662. });
  38663. _converse.api.listen.on('chatBoxesFetched', autoJoinRooms);
  38664. _converse.api.listen.on('disconnecting', disconnectChatRooms);
  38665. _converse.api.listen.on('statusInitialized', function () {
  38666. // XXX: For websocket connections, we disconnect from all
  38667. // chatrooms when the page reloads. This is a workaround for
  38668. // issue #1111 and should be removed once we support XEP-0198
  38669. var options = {
  38670. 'once': true,
  38671. 'passive': true
  38672. };
  38673. window.addEventListener(_converse.unloadevent, function () {
  38674. if (_instanceof(_converse.connection._proto, Strophe.Websocket)) {
  38675. disconnectChatRooms();
  38676. }
  38677. });
  38678. });
  38679. /************************ END Event Handlers ************************/
  38680. /************************ BEGIN API ************************/
  38681. // We extend the default converse.js API to add methods specific to MUC groupchats.
  38682. _.extend(_converse.api, {
  38683. /**
  38684. * The "rooms" namespace groups methods relevant to chatrooms
  38685. * (aka groupchats).
  38686. *
  38687. * @namespace _converse.api.rooms
  38688. * @memberOf _converse.api
  38689. */
  38690. 'rooms': {
  38691. /**
  38692. * Creates a new MUC chatroom (aka groupchat)
  38693. *
  38694. * Similar to {@link _converse.api.rooms.open}, but creates
  38695. * the chatroom in the background (i.e. doesn't cause a
  38696. * view to open).
  38697. *
  38698. * @method _converse.api.rooms.create
  38699. * @param {(string[]|string)} jid|jids The JID or array of
  38700. * JIDs of the chatroom(s) to create
  38701. * @param {object} [attrs] attrs The room attributes
  38702. */
  38703. 'create': function create(jids, attrs) {
  38704. if (_.isString(attrs)) {
  38705. attrs = {
  38706. 'nick': attrs
  38707. };
  38708. } else if (_.isUndefined(attrs)) {
  38709. attrs = {};
  38710. }
  38711. if (_.isUndefined(attrs.maximize)) {
  38712. attrs.maximize = false;
  38713. }
  38714. if (!attrs.nick && _converse.muc_nickname_from_jid) {
  38715. attrs.nick = Strophe.getNodeFromJid(_converse.bare_jid);
  38716. }
  38717. if (_.isUndefined(jids)) {
  38718. throw new TypeError('rooms.create: You need to provide at least one JID');
  38719. } else if (_.isString(jids)) {
  38720. return createChatRoom(jids, attrs);
  38721. }
  38722. return _.map(jids, _.partial(createChatRoom, _, attrs));
  38723. },
  38724. /**
  38725. * Opens a MUC chatroom (aka groupchat)
  38726. *
  38727. * Similar to {@link _converse.api.chats.open}, but for groupchats.
  38728. *
  38729. * @method _converse.api.rooms.open
  38730. * @param {string} jid The room JID or JIDs (if not specified, all
  38731. * currently open rooms will be returned).
  38732. * @param {string} attrs A map containing any extra room attributes.
  38733. * @param {string} [attrs.nick] The current user's nickname for the MUC
  38734. * @param {boolean} [attrs.auto_configure] A boolean, indicating
  38735. * whether the room should be configured automatically or not.
  38736. * If set to `true`, then it makes sense to pass in configuration settings.
  38737. * @param {object} [attrs.roomconfig] A map of configuration settings to be used when the room gets
  38738. * configured automatically. Currently it doesn't make sense to specify
  38739. * `roomconfig` values if `auto_configure` is set to `false`.
  38740. * For a list of configuration values that can be passed in, refer to these values
  38741. * in the [XEP-0045 MUC specification](http://xmpp.org/extensions/xep-0045.html#registrar-formtype-owner).
  38742. * The values should be named without the `muc#roomconfig_` prefix.
  38743. * @param {boolean} [attrs.maximize] A boolean, indicating whether minimized rooms should also be
  38744. * maximized, when opened. Set to `false` by default.
  38745. * @param {boolean} [attrs.bring_to_foreground] A boolean indicating whether the room should be
  38746. * brought to the foreground and therefore replace the currently shown chat.
  38747. * If there is no chat currently open, then this option is ineffective.
  38748. *
  38749. * @example
  38750. * this._converse.api.rooms.open('group@muc.example.com')
  38751. *
  38752. * @example
  38753. * // To return an array of rooms, provide an array of room JIDs:
  38754. * _converse.api.rooms.open(['group1@muc.example.com', 'group2@muc.example.com'])
  38755. *
  38756. * @example
  38757. * // To setup a custom nickname when joining the room, provide the optional nick argument:
  38758. * _converse.api.rooms.open('group@muc.example.com', {'nick': 'mycustomnick'})
  38759. *
  38760. * @example
  38761. * // For example, opening a room with a specific default configuration:
  38762. * _converse.api.rooms.open(
  38763. * 'myroom@conference.example.org',
  38764. * { 'nick': 'coolguy69',
  38765. * 'auto_configure': true,
  38766. * 'roomconfig': {
  38767. * 'changesubject': false,
  38768. * 'membersonly': true,
  38769. * 'persistentroom': true,
  38770. * 'publicroom': true,
  38771. * 'roomdesc': 'Comfy room for hanging out',
  38772. * 'whois': 'anyone'
  38773. * }
  38774. * },
  38775. * true
  38776. * );
  38777. */
  38778. 'open': function open(jids, attrs) {
  38779. return new Promise(function (resolve, reject) {
  38780. _converse.api.waitUntil('chatBoxesFetched').then(function () {
  38781. if (_.isUndefined(jids)) {
  38782. var err_msg = 'rooms.open: You need to provide at least one JID';
  38783. _converse.log(err_msg, Strophe.LogLevel.ERROR);
  38784. reject(new TypeError(err_msg));
  38785. } else if (_.isString(jids)) {
  38786. resolve(_converse.api.rooms.create(jids, attrs).trigger('show'));
  38787. } else {
  38788. resolve(_.map(jids, function (jid) {
  38789. return _converse.api.rooms.create(jid, attrs).trigger('show');
  38790. }));
  38791. }
  38792. });
  38793. });
  38794. },
  38795. /**
  38796. * Returns an object representing a MUC chatroom (aka groupchat)
  38797. *
  38798. * @method _converse.api.rooms.get
  38799. * @param {string} [jid] The room JID (if not specified, all rooms will be returned).
  38800. * @param {object} attrs A map containing any extra room attributes For example, if you want
  38801. * to specify the nickname, use `{'nick': 'bloodninja'}`. Previously (before
  38802. * version 1.0.7, the second parameter only accepted the nickname (as a string
  38803. * value). This is currently still accepted, but then you can't pass in any
  38804. * other room attributes. If the nickname is not specified then the node part of
  38805. * the user's JID will be used.
  38806. * @param {boolean} create A boolean indicating whether the room should be created
  38807. * if not found (default: `false`)
  38808. * @example
  38809. * _converse.api.waitUntil('roomsAutoJoined').then(() => {
  38810. * const create_if_not_found = true;
  38811. * _converse.api.rooms.get(
  38812. * 'group@muc.example.com',
  38813. * {'nick': 'dread-pirate-roberts'},
  38814. * create_if_not_found
  38815. * )
  38816. * });
  38817. */
  38818. 'get': function get(jids, attrs, create) {
  38819. if (_.isString(attrs)) {
  38820. attrs = {
  38821. 'nick': attrs
  38822. };
  38823. } else if (_.isUndefined(attrs)) {
  38824. attrs = {};
  38825. }
  38826. if (_.isUndefined(jids)) {
  38827. var result = [];
  38828. _converse.chatboxes.each(function (chatbox) {
  38829. if (chatbox.get('type') === _converse.CHATROOMS_TYPE) {
  38830. result.push(chatbox);
  38831. }
  38832. });
  38833. return result;
  38834. }
  38835. if (!attrs.nick) {
  38836. attrs.nick = Strophe.getNodeFromJid(_converse.bare_jid);
  38837. }
  38838. if (_.isString(jids)) {
  38839. return getChatRoom(jids, attrs);
  38840. }
  38841. return _.map(jids, _.partial(getChatRoom, _, attrs));
  38842. }
  38843. }
  38844. });
  38845. /************************ END API ************************/
  38846. }
  38847. });
  38848. });
  38849. /***/ }),
  38850. /***/ "./src/converse-notification.js":
  38851. /*!**************************************!*\
  38852. !*** ./src/converse-notification.js ***!
  38853. \**************************************/
  38854. /*! no static exports found */
  38855. /***/ (function(module, exports, __webpack_require__) {
  38856. "use strict";
  38857. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  38858. // Converse.js (A browser based XMPP chat client)
  38859. // http://conversejs.org
  38860. //
  38861. // Copyright (c) 2013-2018, JC Brand <jc@opkode.com>
  38862. // Licensed under the Mozilla Public License (MPLv2)
  38863. //
  38864. /*global define */
  38865. (function (root, factory) {
  38866. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  38867. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  38868. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  38869. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  38870. })(void 0, function (converse) {
  38871. "use strict";
  38872. var _converse$env = converse.env,
  38873. Strophe = _converse$env.Strophe,
  38874. _ = _converse$env._,
  38875. sizzle = _converse$env.sizzle,
  38876. u = converse.env.utils;
  38877. converse.plugins.add('converse-notification', {
  38878. dependencies: ["converse-chatboxes"],
  38879. initialize: function initialize() {
  38880. /* The initialize function gets called as soon as the plugin is
  38881. * loaded by converse.js's plugin machinery.
  38882. */
  38883. var _converse = this._converse;
  38884. var __ = _converse.__;
  38885. _converse.supports_html5_notification = "Notification" in window;
  38886. _converse.api.settings.update({
  38887. notify_all_room_messages: false,
  38888. show_desktop_notifications: true,
  38889. show_chatstate_notifications: false,
  38890. chatstate_notification_blacklist: [],
  38891. // ^ a list of JIDs to ignore concerning chat state notifications
  38892. play_sounds: true,
  38893. sounds_path: '/sounds/',
  38894. notification_icon: '/logo/conversejs-filled.svg'
  38895. });
  38896. _converse.isOnlyChatStateNotification = function (msg) {
  38897. return (// See XEP-0085 Chat State Notification
  38898. _.isNull(msg.querySelector('body')) && (_.isNull(msg.querySelector(_converse.ACTIVE)) || _.isNull(msg.querySelector(_converse.COMPOSING)) || _.isNull(msg.querySelector(_converse.INACTIVE)) || _.isNull(msg.querySelector(_converse.PAUSED)) || _.isNull(msg.querySelector(_converse.GONE)))
  38899. );
  38900. };
  38901. _converse.shouldNotifyOfGroupMessage = function (message) {
  38902. /* Is this a group message worthy of notification?
  38903. */
  38904. var notify_all = _converse.notify_all_room_messages;
  38905. var jid = message.getAttribute('from'),
  38906. resource = Strophe.getResourceFromJid(jid),
  38907. room_jid = Strophe.getBareJidFromJid(jid),
  38908. sender = resource && Strophe.unescapeNode(resource) || '';
  38909. if (sender === '' || message.querySelectorAll('delay').length > 0) {
  38910. return false;
  38911. }
  38912. var room = _converse.chatboxes.get(room_jid);
  38913. var body = message.querySelector('body');
  38914. if (_.isNull(body)) {
  38915. return false;
  38916. }
  38917. var mentioned = new RegExp("\\b".concat(room.get('nick'), "\\b")).test(body.textContent);
  38918. notify_all = notify_all === true || _.isArray(notify_all) && _.includes(notify_all, room_jid);
  38919. if (sender === room.get('nick') || !notify_all && !mentioned) {
  38920. return false;
  38921. }
  38922. return true;
  38923. };
  38924. _converse.isMessageToHiddenChat = function (message) {
  38925. if (_.includes(['mobile', 'fullscreen', 'embedded'], _converse.view_mode)) {
  38926. var jid = Strophe.getBareJidFromJid(message.getAttribute('from')),
  38927. view = _converse.chatboxviews.get(jid);
  38928. if (!_.isNil(view)) {
  38929. return view.model.get('hidden') || _converse.windowState === 'hidden' || !u.isVisible(view.el);
  38930. }
  38931. return true;
  38932. }
  38933. return _converse.windowState === 'hidden';
  38934. };
  38935. _converse.shouldNotifyOfMessage = function (message) {
  38936. var forwarded = message.querySelector('forwarded');
  38937. if (!_.isNull(forwarded)) {
  38938. return false;
  38939. } else if (message.getAttribute('type') === 'groupchat') {
  38940. return _converse.shouldNotifyOfGroupMessage(message);
  38941. } else if (u.isHeadlineMessage(_converse, message)) {
  38942. // We want to show notifications for headline messages.
  38943. return _converse.isMessageToHiddenChat(message);
  38944. }
  38945. var is_me = Strophe.getBareJidFromJid(message.getAttribute('from')) === _converse.bare_jid;
  38946. return !_converse.isOnlyChatStateNotification(message) && !is_me && _converse.isMessageToHiddenChat(message);
  38947. };
  38948. _converse.playSoundNotification = function () {
  38949. /* Plays a sound to notify that a new message was recieved.
  38950. */
  38951. // XXX Eventually this can be refactored to use Notification's sound
  38952. // feature, but no browser currently supports it.
  38953. // https://developer.mozilla.org/en-US/docs/Web/API/notification/sound
  38954. var audio;
  38955. if (_converse.play_sounds && !_.isUndefined(window.Audio)) {
  38956. audio = new Audio(_converse.sounds_path + "msg_received.ogg");
  38957. if (audio.canPlayType('audio/ogg')) {
  38958. audio.play();
  38959. } else {
  38960. audio = new Audio(_converse.sounds_path + "msg_received.mp3");
  38961. if (audio.canPlayType('audio/mp3')) {
  38962. audio.play();
  38963. }
  38964. }
  38965. }
  38966. };
  38967. _converse.areDesktopNotificationsEnabled = function () {
  38968. return _converse.supports_html5_notification && _converse.show_desktop_notifications && Notification.permission === "granted";
  38969. };
  38970. _converse.showMessageNotification = function (message) {
  38971. /* Shows an HTML5 Notification to indicate that a new chat
  38972. * message was received.
  38973. */
  38974. var title, roster_item;
  38975. var full_from_jid = message.getAttribute('from'),
  38976. from_jid = Strophe.getBareJidFromJid(full_from_jid);
  38977. if (message.getAttribute('type') === 'headline') {
  38978. if (!_.includes(from_jid, '@') || _converse.allow_non_roster_messaging) {
  38979. title = __("Notification from %1$s", from_jid);
  38980. } else {
  38981. return;
  38982. }
  38983. } else if (!_.includes(from_jid, '@')) {
  38984. // workaround for Prosody which doesn't give type "headline"
  38985. title = __("Notification from %1$s", from_jid);
  38986. } else if (message.getAttribute('type') === 'groupchat') {
  38987. title = __("%1$s says", Strophe.getResourceFromJid(full_from_jid));
  38988. } else {
  38989. if (_.isUndefined(_converse.roster)) {
  38990. _converse.log("Could not send notification, because roster is undefined", Strophe.LogLevel.ERROR);
  38991. return;
  38992. }
  38993. roster_item = _converse.roster.get(from_jid);
  38994. if (!_.isUndefined(roster_item)) {
  38995. title = __("%1$s says", roster_item.getDisplayName());
  38996. } else {
  38997. if (_converse.allow_non_roster_messaging) {
  38998. title = __("%1$s says", from_jid);
  38999. } else {
  39000. return;
  39001. }
  39002. }
  39003. } // TODO: we should suppress notifications if we cannot decrypt
  39004. // the message...
  39005. var body = sizzle("encrypted[xmlns=\"".concat(Strophe.NS.OMEMO, "\"]"), message).length ? __('OMEMO Message received') : message.querySelector('body').textContent;
  39006. var n = new Notification(title, {
  39007. body: body,
  39008. lang: _converse.locale,
  39009. icon: _converse.notification_icon
  39010. });
  39011. setTimeout(n.close.bind(n), 5000);
  39012. };
  39013. _converse.showChatStateNotification = function (contact) {
  39014. /* Creates an HTML5 Notification to inform of a change in a
  39015. * contact's chat state.
  39016. */
  39017. if (_.includes(_converse.chatstate_notification_blacklist, contact.jid)) {
  39018. // Don't notify if the user is being ignored.
  39019. return;
  39020. }
  39021. var chat_state = contact.chat_status;
  39022. var message = null;
  39023. if (chat_state === 'offline') {
  39024. message = __('has gone offline');
  39025. } else if (chat_state === 'away') {
  39026. message = __('has gone away');
  39027. } else if (chat_state === 'dnd') {
  39028. message = __('is busy');
  39029. } else if (chat_state === 'online') {
  39030. message = __('has come online');
  39031. }
  39032. if (message === null) {
  39033. return;
  39034. }
  39035. var n = new Notification(contact.getDisplayName(), {
  39036. body: message,
  39037. lang: _converse.locale,
  39038. icon: _converse.notification_icon
  39039. });
  39040. setTimeout(n.close.bind(n), 5000);
  39041. };
  39042. _converse.showContactRequestNotification = function (contact) {
  39043. var n = new Notification(contact.getDisplayName(), {
  39044. body: __('wants to be your contact'),
  39045. lang: _converse.locale,
  39046. icon: _converse.notification_icon
  39047. });
  39048. setTimeout(n.close.bind(n), 5000);
  39049. };
  39050. _converse.showFeedbackNotification = function (data) {
  39051. if (data.klass === 'error' || data.klass === 'warn') {
  39052. var n = new Notification(data.subject, {
  39053. body: data.message,
  39054. lang: _converse.locale,
  39055. icon: _converse.notification_icon
  39056. });
  39057. setTimeout(n.close.bind(n), 5000);
  39058. }
  39059. };
  39060. _converse.handleChatStateNotification = function (contact) {
  39061. /* Event handler for on('contactPresenceChanged').
  39062. * Will show an HTML5 notification to indicate that the chat
  39063. * status has changed.
  39064. */
  39065. if (_converse.areDesktopNotificationsEnabled() && _converse.show_chatstate_notifications) {
  39066. _converse.showChatStateNotification(contact);
  39067. }
  39068. };
  39069. _converse.handleMessageNotification = function (data) {
  39070. /* Event handler for the on('message') event. Will call methods
  39071. * to play sounds and show HTML5 notifications.
  39072. */
  39073. var message = data.stanza;
  39074. if (!_converse.shouldNotifyOfMessage(message)) {
  39075. return false;
  39076. }
  39077. _converse.playSoundNotification();
  39078. if (_converse.areDesktopNotificationsEnabled()) {
  39079. _converse.showMessageNotification(message);
  39080. }
  39081. };
  39082. _converse.handleContactRequestNotification = function (contact) {
  39083. if (_converse.areDesktopNotificationsEnabled(true)) {
  39084. _converse.showContactRequestNotification(contact);
  39085. }
  39086. };
  39087. _converse.handleFeedback = function (data) {
  39088. if (_converse.areDesktopNotificationsEnabled(true)) {
  39089. _converse.showFeedbackNotification(data);
  39090. }
  39091. };
  39092. _converse.requestPermission = function () {
  39093. if (_converse.supports_html5_notification && !_.includes(['denied', 'granted'], Notification.permission)) {
  39094. // Ask user to enable HTML5 notifications
  39095. Notification.requestPermission();
  39096. }
  39097. };
  39098. _converse.on('pluginsInitialized', function () {
  39099. // We only register event handlers after all plugins are
  39100. // registered, because other plugins might override some of our
  39101. // handlers.
  39102. _converse.on('contactRequest', _converse.handleContactRequestNotification);
  39103. _converse.on('contactPresenceChanged', _converse.handleChatStateNotification);
  39104. _converse.on('message', _converse.handleMessageNotification);
  39105. _converse.on('feedback', _converse.handleFeedback);
  39106. _converse.on('connected', _converse.requestPermission);
  39107. });
  39108. }
  39109. });
  39110. });
  39111. /***/ }),
  39112. /***/ "./src/converse-omemo.js":
  39113. /*!*******************************!*\
  39114. !*** ./src/converse-omemo.js ***!
  39115. \*******************************/
  39116. /*! no static exports found */
  39117. /***/ (function(module, exports, __webpack_require__) {
  39118. "use strict";
  39119. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  39120. function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
  39121. function _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return right[Symbol.hasInstance](left); } else { return left instanceof right; } }
  39122. // Converse.js
  39123. // http://conversejs.org
  39124. //
  39125. // Copyright (c) 2013-2018, the Converse.js developers
  39126. // Licensed under the Mozilla Public License (MPLv2)
  39127. /* global libsignal, ArrayBuffer, parseInt, crypto */
  39128. (function (root, factory) {
  39129. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! templates/toolbar_omemo.html */ "./src/templates/toolbar_omemo.html")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  39130. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  39131. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  39132. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  39133. })(void 0, function (converse, tpl_toolbar_omemo) {
  39134. var _converse$env = converse.env,
  39135. Backbone = _converse$env.Backbone,
  39136. Promise = _converse$env.Promise,
  39137. Strophe = _converse$env.Strophe,
  39138. moment = _converse$env.moment,
  39139. sizzle = _converse$env.sizzle,
  39140. $iq = _converse$env.$iq,
  39141. $msg = _converse$env.$msg,
  39142. _ = _converse$env._,
  39143. f = _converse$env.f,
  39144. b64_sha1 = _converse$env.b64_sha1;
  39145. var u = converse.env.utils;
  39146. Strophe.addNamespace('OMEMO', "eu.siacs.conversations.axolotl");
  39147. Strophe.addNamespace('OMEMO_DEVICELIST', Strophe.NS.OMEMO + ".devicelist");
  39148. Strophe.addNamespace('OMEMO_VERIFICATION', Strophe.NS.OMEMO + ".verification");
  39149. Strophe.addNamespace('OMEMO_WHITELISTED', Strophe.NS.OMEMO + ".whitelisted");
  39150. Strophe.addNamespace('OMEMO_BUNDLES', Strophe.NS.OMEMO + ".bundles");
  39151. var UNDECIDED = 0;
  39152. var TRUSTED = 1;
  39153. var UNTRUSTED = -1;
  39154. var TAG_LENGTH = 128;
  39155. var KEY_ALGO = {
  39156. 'name': "AES-GCM",
  39157. 'length': 128
  39158. };
  39159. function parseBundle(bundle_el) {
  39160. /* Given an XML element representing a user's OMEMO bundle, parse it
  39161. * and return a map.
  39162. */
  39163. var signed_prekey_public_el = bundle_el.querySelector('signedPreKeyPublic'),
  39164. signed_prekey_signature_el = bundle_el.querySelector('signedPreKeySignature'),
  39165. identity_key_el = bundle_el.querySelector('identityKey');
  39166. var prekeys = _.map(sizzle("prekeys > preKeyPublic", bundle_el), function (el) {
  39167. return {
  39168. 'id': parseInt(el.getAttribute('preKeyId'), 10),
  39169. 'key': el.textContent
  39170. };
  39171. });
  39172. return {
  39173. 'identity_key': bundle_el.querySelector('identityKey').textContent.trim(),
  39174. 'signed_prekey': {
  39175. 'id': parseInt(signed_prekey_public_el.getAttribute('signedPreKeyId'), 10),
  39176. 'public_key': signed_prekey_public_el.textContent,
  39177. 'signature': signed_prekey_signature_el.textContent
  39178. },
  39179. 'prekeys': prekeys
  39180. };
  39181. }
  39182. converse.plugins.add('converse-omemo', {
  39183. enabled: function enabled(_converse) {
  39184. return !_.isNil(window.libsignal) && !f.includes('converse-omemo', _converse.blacklisted_plugins);
  39185. },
  39186. dependencies: ["converse-chatview"],
  39187. overrides: {
  39188. ProfileModal: {
  39189. events: {
  39190. 'change input.select-all': 'selectAll',
  39191. 'submit .fingerprint-removal': 'removeSelectedFingerprints'
  39192. },
  39193. initialize: function initialize() {
  39194. var _converse = this.__super__._converse;
  39195. this.debouncedRender = _.debounce(this.render, 50);
  39196. this.devicelist = _converse.devicelists.get(_converse.bare_jid);
  39197. this.devicelist.devices.on('change:bundle', this.debouncedRender, this);
  39198. this.devicelist.devices.on('reset', this.debouncedRender, this);
  39199. this.devicelist.devices.on('remove', this.debouncedRender, this);
  39200. this.devicelist.devices.on('add', this.debouncedRender, this);
  39201. return this.__super__.initialize.apply(this, arguments);
  39202. },
  39203. beforeRender: function beforeRender() {
  39204. var _converse = this.__super__._converse,
  39205. device_id = _converse.omemo_store.get('device_id');
  39206. this.current_device = this.devicelist.devices.get(device_id);
  39207. this.other_devices = this.devicelist.devices.filter(function (d) {
  39208. return d.get('id') !== device_id;
  39209. });
  39210. if (this.__super__.beforeRender) {
  39211. return this.__super__.beforeRender.apply(this, arguments);
  39212. }
  39213. },
  39214. selectAll: function selectAll(ev) {
  39215. var sibling = u.ancestor(ev.target, 'li');
  39216. while (sibling) {
  39217. sibling.querySelector('input[type="checkbox"]').checked = ev.target.checked;
  39218. sibling = sibling.nextElementSibling;
  39219. }
  39220. },
  39221. removeSelectedFingerprints: function removeSelectedFingerprints(ev) {
  39222. var _this = this;
  39223. ev.preventDefault();
  39224. ev.stopPropagation();
  39225. ev.target.querySelector('.select-all').checked = false;
  39226. var checkboxes = ev.target.querySelectorAll('.fingerprint-removal-item input[type="checkbox"]:checked'),
  39227. device_ids = _.map(checkboxes, 'value');
  39228. this.devicelist.removeOwnDevices(device_ids).then(this.modal.hide).catch(function (err) {
  39229. var _converse = _this.__super__._converse,
  39230. __ = _converse.__;
  39231. _converse.log(err, Strophe.LogLevel.ERROR);
  39232. _converse.api.alert.show(Strophe.LogLevel.ERROR, __('Error'), [__('Sorry, an error occurred while trying to remove the devices.')]);
  39233. });
  39234. }
  39235. },
  39236. UserDetailsModal: {
  39237. events: {
  39238. 'click .fingerprint-trust .btn input': 'toggleDeviceTrust'
  39239. },
  39240. initialize: function initialize() {
  39241. var _converse = this.__super__._converse;
  39242. var jid = this.model.get('jid');
  39243. this.devicelist = _converse.devicelists.get(jid) || _converse.devicelists.create({
  39244. 'jid': jid
  39245. });
  39246. this.devicelist.devices.on('change:bundle', this.render, this);
  39247. this.devicelist.devices.on('change:trusted', this.render, this);
  39248. this.devicelist.devices.on('remove', this.render, this);
  39249. this.devicelist.devices.on('add', this.render, this);
  39250. this.devicelist.devices.on('reset', this.render, this);
  39251. return this.__super__.initialize.apply(this, arguments);
  39252. },
  39253. toggleDeviceTrust: function toggleDeviceTrust(ev) {
  39254. var radio = ev.target;
  39255. var device = this.devicelist.devices.get(radio.getAttribute('name'));
  39256. device.save('trusted', parseInt(radio.value, 10));
  39257. }
  39258. },
  39259. ChatBox: {
  39260. getBundlesAndBuildSessions: function getBundlesAndBuildSessions() {
  39261. var _this2 = this;
  39262. var _converse = this.__super__._converse;
  39263. var devices;
  39264. return _converse.getDevicesForContact(this.get('jid')).then(function (their_devices) {
  39265. var device_id = _converse.omemo_store.get('device_id'),
  39266. devicelist = _converse.devicelists.get(_converse.bare_jid),
  39267. own_devices = devicelist.devices.filter(function (device) {
  39268. return device.get('id') !== device_id;
  39269. });
  39270. devices = _.concat(own_devices, their_devices.models);
  39271. return Promise.all(devices.map(function (device) {
  39272. return device.getBundle();
  39273. }));
  39274. }).then(function () {
  39275. return _this2.buildSessions(devices);
  39276. });
  39277. },
  39278. buildSession: function buildSession(device) {
  39279. var _converse = this.__super__._converse,
  39280. address = new libsignal.SignalProtocolAddress(device.get('jid'), device.get('id')),
  39281. sessionBuilder = new libsignal.SessionBuilder(_converse.omemo_store, address),
  39282. prekey = device.getRandomPreKey();
  39283. return device.getBundle().then(function (bundle) {
  39284. return sessionBuilder.processPreKey({
  39285. 'registrationId': parseInt(device.get('id'), 10),
  39286. 'identityKey': u.base64ToArrayBuffer(bundle.identity_key),
  39287. 'signedPreKey': {
  39288. 'keyId': bundle.signed_prekey.id,
  39289. // <Number>
  39290. 'publicKey': u.base64ToArrayBuffer(bundle.signed_prekey.public_key),
  39291. 'signature': u.base64ToArrayBuffer(bundle.signed_prekey.signature)
  39292. },
  39293. 'preKey': {
  39294. 'keyId': prekey.id,
  39295. // <Number>
  39296. 'publicKey': u.base64ToArrayBuffer(prekey.key)
  39297. }
  39298. });
  39299. });
  39300. },
  39301. getSession: function getSession(device) {
  39302. var _this3 = this;
  39303. var _converse = this.__super__._converse,
  39304. address = new libsignal.SignalProtocolAddress(device.get('jid'), device.get('id'));
  39305. return _converse.omemo_store.loadSession(address.toString()).then(function (session) {
  39306. if (session) {
  39307. return Promise.resolve();
  39308. } else {
  39309. return _this3.buildSession(device);
  39310. }
  39311. });
  39312. },
  39313. encryptMessage: async function encryptMessage(plaintext) {
  39314. // The client MUST use fresh, randomly generated key/IV pairs
  39315. // with AES-128 in Galois/Counter Mode (GCM).
  39316. var iv = crypto.getRandomValues(new window.Uint8Array(16)),
  39317. key = await crypto.subtle.generateKey(KEY_ALGO, true, ["encrypt", "decrypt"]),
  39318. algo = {
  39319. 'name': 'AES-GCM',
  39320. 'iv': iv,
  39321. 'tagLength': TAG_LENGTH
  39322. },
  39323. encrypted = await crypto.subtle.encrypt(algo, key, u.stringToArrayBuffer(plaintext)),
  39324. length = encrypted.byteLength - (128 + 7 >> 3),
  39325. ciphertext = encrypted.slice(0, length),
  39326. tag = encrypted.slice(length),
  39327. exported_key = await crypto.subtle.exportKey("raw", key);
  39328. return Promise.resolve({
  39329. 'key': exported_key,
  39330. 'tag': tag,
  39331. 'key_and_tag': u.appendArrayBuffer(exported_key, tag),
  39332. 'payload': u.arrayBufferToBase64(ciphertext),
  39333. 'iv': u.arrayBufferToBase64(iv)
  39334. });
  39335. },
  39336. decryptMessage: async function decryptMessage(obj) {
  39337. var key_obj = await crypto.subtle.importKey('raw', obj.key, KEY_ALGO, true, ['encrypt', 'decrypt']),
  39338. cipher = u.appendArrayBuffer(u.base64ToArrayBuffer(obj.payload), obj.tag),
  39339. algo = {
  39340. 'name': "AES-GCM",
  39341. 'iv': u.base64ToArrayBuffer(obj.iv),
  39342. 'tagLength': TAG_LENGTH
  39343. };
  39344. return u.arrayBufferToString((await crypto.subtle.decrypt(algo, key_obj, cipher)));
  39345. },
  39346. reportDecryptionError: function reportDecryptionError(e) {
  39347. var _converse = this.__super__._converse;
  39348. if (_converse.debug) {
  39349. var __ = _converse.__;
  39350. this.messages.create({
  39351. 'message': __("Sorry, could not decrypt a received OMEMO message due to an error.") + " ".concat(e.name, " ").concat(e.message),
  39352. 'type': 'error'
  39353. });
  39354. }
  39355. _converse.log("".concat(e.name, " ").concat(e.message), Strophe.LogLevel.ERROR);
  39356. },
  39357. decrypt: function decrypt(attrs) {
  39358. var _this4 = this;
  39359. var _converse = this.__super__._converse,
  39360. session_cipher = this.getSessionCipher(attrs.from, parseInt(attrs.encrypted.device_id, 10)); // https://xmpp.org/extensions/xep-0384.html#usecases-receiving
  39361. if (attrs.encrypted.prekey === 'true') {
  39362. var plaintext;
  39363. return session_cipher.decryptPreKeyWhisperMessage(u.base64ToArrayBuffer(attrs.encrypted.key), 'binary').then(function (key_and_tag) {
  39364. if (attrs.encrypted.payload) {
  39365. var key = key_and_tag.slice(0, 16),
  39366. tag = key_and_tag.slice(16);
  39367. return _this4.decryptMessage(_.extend(attrs.encrypted, {
  39368. 'key': key,
  39369. 'tag': tag
  39370. }));
  39371. }
  39372. return Promise.resolve();
  39373. }).then(function (pt) {
  39374. plaintext = pt;
  39375. return _converse.omemo_store.generateMissingPreKeys();
  39376. }).then(function () {
  39377. return _converse.omemo_store.publishBundle();
  39378. }).then(function () {
  39379. if (plaintext) {
  39380. return _.extend(attrs, {
  39381. 'plaintext': plaintext
  39382. });
  39383. } else {
  39384. return _.extend(attrs, {
  39385. 'is_only_key': true
  39386. });
  39387. }
  39388. }).catch(function (e) {
  39389. _this4.reportDecryptionError(e);
  39390. return attrs;
  39391. });
  39392. } else {
  39393. return session_cipher.decryptWhisperMessage(u.base64ToArrayBuffer(attrs.encrypted.key), 'binary').then(function (key_and_tag) {
  39394. var key = key_and_tag.slice(0, 16),
  39395. tag = key_and_tag.slice(16);
  39396. return _this4.decryptMessage(_.extend(attrs.encrypted, {
  39397. 'key': key,
  39398. 'tag': tag
  39399. }));
  39400. }).then(function (plaintext) {
  39401. return _.extend(attrs, {
  39402. 'plaintext': plaintext
  39403. });
  39404. }).catch(function (e) {
  39405. _this4.reportDecryptionError(e);
  39406. return attrs;
  39407. });
  39408. }
  39409. },
  39410. getEncryptionAttributesfromStanza: function getEncryptionAttributesfromStanza(stanza, original_stanza, attrs) {
  39411. var _converse = this.__super__._converse,
  39412. encrypted = sizzle("encrypted[xmlns=\"".concat(Strophe.NS.OMEMO, "\"]"), original_stanza).pop(),
  39413. header = encrypted.querySelector('header'),
  39414. key = sizzle("key[rid=\"".concat(_converse.omemo_store.get('device_id'), "\"]"), encrypted).pop();
  39415. if (key) {
  39416. attrs['is_encrypted'] = true;
  39417. attrs['encrypted'] = {
  39418. 'device_id': header.getAttribute('sid'),
  39419. 'iv': header.querySelector('iv').textContent,
  39420. 'key': key.textContent,
  39421. 'payload': _.get(encrypted.querySelector('payload'), 'textContent', null),
  39422. 'prekey': key.getAttribute('prekey')
  39423. };
  39424. return this.decrypt(attrs);
  39425. } else {
  39426. return Promise.resolve(attrs);
  39427. }
  39428. },
  39429. getMessageAttributesFromStanza: function getMessageAttributesFromStanza(stanza, original_stanza) {
  39430. var encrypted = sizzle("encrypted[xmlns=\"".concat(Strophe.NS.OMEMO, "\"]"), original_stanza).pop();
  39431. var attrs = this.__super__.getMessageAttributesFromStanza.apply(this, arguments);
  39432. if (!encrypted) {
  39433. return attrs;
  39434. } else {
  39435. return this.getEncryptionAttributesfromStanza(stanza, original_stanza, attrs);
  39436. }
  39437. },
  39438. buildSessions: function buildSessions(devices) {
  39439. var _this5 = this;
  39440. return Promise.all(devices.map(function (device) {
  39441. return _this5.getSession(device);
  39442. })).then(function () {
  39443. return devices;
  39444. });
  39445. },
  39446. getSessionCipher: function getSessionCipher(jid, id) {
  39447. var _converse = this.__super__._converse,
  39448. address = new libsignal.SignalProtocolAddress(jid, id);
  39449. this.session_cipher = new window.libsignal.SessionCipher(_converse.omemo_store, address);
  39450. return this.session_cipher;
  39451. },
  39452. encryptKey: function encryptKey(plaintext, device) {
  39453. return this.getSessionCipher(device.get('jid'), device.get('id')).encrypt(plaintext).then(function (payload) {
  39454. return {
  39455. 'payload': payload,
  39456. 'device': device
  39457. };
  39458. });
  39459. },
  39460. addKeysToMessageStanza: function addKeysToMessageStanza(stanza, dicts, iv) {
  39461. for (var i in dicts) {
  39462. if (Object.prototype.hasOwnProperty.call(dicts, i)) {
  39463. var payload = dicts[i].payload,
  39464. device = dicts[i].device,
  39465. prekey = 3 == parseInt(payload.type, 10);
  39466. stanza.c('key', {
  39467. 'rid': device.get('id')
  39468. }).t(btoa(payload.body));
  39469. if (prekey) {
  39470. stanza.attrs({
  39471. 'prekey': prekey
  39472. });
  39473. }
  39474. stanza.up();
  39475. if (i == dicts.length - 1) {
  39476. stanza.c('iv').t(iv).up().up();
  39477. }
  39478. }
  39479. }
  39480. return Promise.resolve(stanza);
  39481. },
  39482. createOMEMOMessageStanza: function createOMEMOMessageStanza(message, devices) {
  39483. var _this6 = this;
  39484. var _converse = this.__super__._converse,
  39485. __ = _converse.__;
  39486. var body = __("This is an OMEMO encrypted message which your client doesn’t seem to support. " + "Find more information on https://conversations.im/omemo");
  39487. if (!message.get('message')) {
  39488. throw new Error("No message body to encrypt!");
  39489. }
  39490. var stanza = $msg({
  39491. 'from': _converse.connection.jid,
  39492. 'to': this.get('jid'),
  39493. 'type': this.get('message_type'),
  39494. 'id': message.get('msgid')
  39495. }).c('body').t(body).up() // An encrypted header is added to the message for
  39496. // each device that is supposed to receive it.
  39497. // These headers simply contain the key that the
  39498. // payload message is encrypted with,
  39499. // and they are separately encrypted using the
  39500. // session corresponding to the counterpart device.
  39501. .c('encrypted', {
  39502. 'xmlns': Strophe.NS.OMEMO
  39503. }).c('header', {
  39504. 'sid': _converse.omemo_store.get('device_id')
  39505. });
  39506. return this.encryptMessage(message.get('message')).then(function (obj) {
  39507. // The 16 bytes key and the GCM authentication tag (The tag
  39508. // SHOULD have at least 128 bit) are concatenated and for each
  39509. // intended recipient device, i.e. both own devices as well as
  39510. // devices associated with the contact, the result of this
  39511. // concatenation is encrypted using the corresponding
  39512. // long-standing SignalProtocol session.
  39513. var promises = devices.filter(function (device) {
  39514. return device.get('trusted') != UNTRUSTED;
  39515. }).map(function (device) {
  39516. return _this6.encryptKey(obj.key_and_tag, device);
  39517. });
  39518. return Promise.all(promises).then(function (dicts) {
  39519. return _this6.addKeysToMessageStanza(stanza, dicts, obj.iv);
  39520. }).then(function (stanza) {
  39521. stanza.c('payload').t(obj.payload).up().up();
  39522. stanza.c('store', {
  39523. 'xmlns': Strophe.NS.HINTS
  39524. });
  39525. return stanza;
  39526. });
  39527. });
  39528. },
  39529. sendMessage: function sendMessage(attrs) {
  39530. var _this7 = this;
  39531. var _converse = this.__super__._converse,
  39532. __ = _converse.__;
  39533. if (this.get('omemo_active') && attrs.message) {
  39534. attrs['is_encrypted'] = true;
  39535. attrs['plaintext'] = attrs.message;
  39536. var message = this.messages.create(attrs);
  39537. this.getBundlesAndBuildSessions().then(function (devices) {
  39538. return _this7.createOMEMOMessageStanza(message, devices);
  39539. }).then(function (stanza) {
  39540. return _this7.sendMessageStanza(stanza);
  39541. }).catch(function (e) {
  39542. _this7.messages.create({
  39543. 'message': __("Sorry, could not send the message due to an error.") + " ".concat(e.message),
  39544. 'type': 'error'
  39545. });
  39546. _converse.log(e, Strophe.LogLevel.ERROR);
  39547. });
  39548. } else {
  39549. return this.__super__.sendMessage.apply(this, arguments);
  39550. }
  39551. }
  39552. },
  39553. ChatBoxView: {
  39554. events: {
  39555. 'click .toggle-omemo': 'toggleOMEMO'
  39556. },
  39557. showMessage: function showMessage(message) {
  39558. // We don't show a message if it's only keying material
  39559. if (!message.get('is_only_key')) {
  39560. return this.__super__.showMessage.apply(this, arguments);
  39561. }
  39562. },
  39563. renderOMEMOToolbarButton: function renderOMEMOToolbarButton() {
  39564. var _this8 = this;
  39565. var _converse = this.__super__._converse,
  39566. __ = _converse.__;
  39567. _converse.contactHasOMEMOSupport(this.model.get('jid')).then(function (support) {
  39568. if (support) {
  39569. var icon = _this8.el.querySelector('.toggle-omemo'),
  39570. html = tpl_toolbar_omemo(_.extend(_this8.model.toJSON(), {
  39571. '__': __
  39572. }));
  39573. if (icon) {
  39574. icon.outerHTML = html;
  39575. } else {
  39576. _this8.el.querySelector('.chat-toolbar').insertAdjacentHTML('beforeend', html);
  39577. }
  39578. }
  39579. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.ERROR));
  39580. },
  39581. toggleOMEMO: function toggleOMEMO(ev) {
  39582. ev.preventDefault();
  39583. this.model.save({
  39584. 'omemo_active': !this.model.get('omemo_active')
  39585. });
  39586. this.renderOMEMOToolbarButton();
  39587. }
  39588. }
  39589. },
  39590. initialize: function initialize() {
  39591. /* The initialize function gets called as soon as the plugin is
  39592. * loaded by Converse.js's plugin machinery.
  39593. */
  39594. var _converse = this._converse;
  39595. _converse.api.promises.add(['OMEMOInitialized']);
  39596. _converse.NUM_PREKEYS = 100; // Set here so that tests can override
  39597. function generateFingerprint(device) {
  39598. if (_.get(device.get('bundle'), 'fingerprint')) {
  39599. return;
  39600. }
  39601. return device.getBundle().then(function (bundle) {
  39602. bundle['fingerprint'] = u.arrayBufferToHex(u.base64ToArrayBuffer(bundle['identity_key']));
  39603. device.save('bundle', bundle);
  39604. device.trigger('change:bundle'); // Doesn't get triggered automatically due to pass-by-reference
  39605. });
  39606. }
  39607. _converse.generateFingerprints = function (jid) {
  39608. return _converse.getDevicesForContact(jid).then(function (devices) {
  39609. return Promise.all(devices.map(function (d) {
  39610. return generateFingerprint(d);
  39611. }));
  39612. });
  39613. };
  39614. _converse.getDeviceForContact = function (jid, device_id) {
  39615. return _converse.getDevicesForContact(jid).then(function (devices) {
  39616. return devices.get(device_id);
  39617. });
  39618. };
  39619. _converse.getDevicesForContact = function (jid) {
  39620. var devicelist;
  39621. return _converse.api.waitUntil('OMEMOInitialized').then(function () {
  39622. devicelist = _converse.devicelists.get(jid) || _converse.devicelists.create({
  39623. 'jid': jid
  39624. });
  39625. return devicelist.fetchDevices();
  39626. }).then(function () {
  39627. return devicelist.devices;
  39628. });
  39629. };
  39630. _converse.contactHasOMEMOSupport = function (jid) {
  39631. /* Checks whether the contact advertises any OMEMO-compatible devices. */
  39632. return new Promise(function (resolve, reject) {
  39633. _converse.getDevicesForContact(jid).then(function (devices) {
  39634. return resolve(devices.length > 0);
  39635. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.ERROR));
  39636. });
  39637. };
  39638. function generateDeviceID() {
  39639. /* Generates a device ID, making sure that it's unique */
  39640. var existing_ids = _converse.devicelists.get(_converse.bare_jid).devices.pluck('id');
  39641. var device_id = libsignal.KeyHelper.generateRegistrationId();
  39642. var i = 0;
  39643. while (_.includes(existing_ids, device_id)) {
  39644. device_id = libsignal.KeyHelper.generateRegistrationId();
  39645. i++;
  39646. if (i == 10) {
  39647. throw new Error("Unable to generate a unique device ID");
  39648. }
  39649. }
  39650. return device_id.toString();
  39651. }
  39652. _converse.OMEMOStore = Backbone.Model.extend({
  39653. Direction: {
  39654. SENDING: 1,
  39655. RECEIVING: 2
  39656. },
  39657. getIdentityKeyPair: function getIdentityKeyPair() {
  39658. var keypair = this.get('identity_keypair');
  39659. return Promise.resolve({
  39660. 'privKey': u.base64ToArrayBuffer(keypair.privKey),
  39661. 'pubKey': u.base64ToArrayBuffer(keypair.pubKey)
  39662. });
  39663. },
  39664. getLocalRegistrationId: function getLocalRegistrationId() {
  39665. return Promise.resolve(parseInt(this.get('device_id'), 10));
  39666. },
  39667. isTrustedIdentity: function isTrustedIdentity(identifier, identity_key, direction) {
  39668. if (_.isNil(identifier)) {
  39669. throw new Error("Can't check identity key for invalid key");
  39670. }
  39671. if (!_instanceof(identity_key, ArrayBuffer)) {
  39672. throw new Error("Expected identity_key to be an ArrayBuffer");
  39673. }
  39674. var trusted = this.get('identity_key' + identifier);
  39675. if (trusted === undefined) {
  39676. return Promise.resolve(true);
  39677. }
  39678. return Promise.resolve(u.arrayBufferToBase64(identity_key) === trusted);
  39679. },
  39680. loadIdentityKey: function loadIdentityKey(identifier) {
  39681. if (_.isNil(identifier)) {
  39682. throw new Error("Can't load identity_key for invalid identifier");
  39683. }
  39684. return Promise.resolve(u.base64ToArrayBuffer(this.get('identity_key' + identifier)));
  39685. },
  39686. saveIdentity: function saveIdentity(identifier, identity_key) {
  39687. if (_.isNil(identifier)) {
  39688. throw new Error("Can't save identity_key for invalid identifier");
  39689. }
  39690. var address = new libsignal.SignalProtocolAddress.fromString(identifier),
  39691. existing = this.get('identity_key' + address.getName());
  39692. var b64_idkey = u.arrayBufferToBase64(identity_key);
  39693. this.save('identity_key' + address.getName(), b64_idkey);
  39694. if (existing && b64_idkey !== existing) {
  39695. return Promise.resolve(true);
  39696. } else {
  39697. return Promise.resolve(false);
  39698. }
  39699. },
  39700. getPreKeys: function getPreKeys() {
  39701. return this.get('prekeys') || {};
  39702. },
  39703. loadPreKey: function loadPreKey(key_id) {
  39704. var res = this.getPreKeys()[key_id];
  39705. if (res) {
  39706. return Promise.resolve({
  39707. 'privKey': u.base64ToArrayBuffer(res.privKey),
  39708. 'pubKey': u.base64ToArrayBuffer(res.pubKey)
  39709. });
  39710. }
  39711. return Promise.resolve();
  39712. },
  39713. storePreKey: function storePreKey(key_id, key_pair) {
  39714. var prekey = {};
  39715. prekey[key_id] = {
  39716. 'pubKey': u.arrayBufferToBase64(key_pair.pubKey),
  39717. 'privKey': u.arrayBufferToBase64(key_pair.privKey)
  39718. };
  39719. this.save('prekeys', _.extend(this.getPreKeys(), prekey));
  39720. return Promise.resolve();
  39721. },
  39722. removePreKey: function removePreKey(key_id) {
  39723. this.save('prekeys', _.omit(this.getPreKeys(), key_id));
  39724. return Promise.resolve();
  39725. },
  39726. loadSignedPreKey: function loadSignedPreKey(keyId) {
  39727. var res = this.get('signed_prekey');
  39728. if (res) {
  39729. return Promise.resolve({
  39730. 'privKey': u.base64ToArrayBuffer(res.privKey),
  39731. 'pubKey': u.base64ToArrayBuffer(res.pubKey)
  39732. });
  39733. }
  39734. return Promise.resolve();
  39735. },
  39736. storeSignedPreKey: function storeSignedPreKey(spk) {
  39737. if (_typeof(spk) !== "object") {
  39738. // XXX: We've changed the signature of this method from the
  39739. // example given in InMemorySignalProtocolStore.
  39740. // Should be fine because the libsignal code doesn't
  39741. // actually call this method.
  39742. throw new Error("storeSignedPreKey: expected an object");
  39743. }
  39744. this.save('signed_prekey', {
  39745. 'id': spk.keyId,
  39746. 'privKey': u.arrayBufferToBase64(spk.keyPair.privKey),
  39747. 'pubKey': u.arrayBufferToBase64(spk.keyPair.pubKey),
  39748. // XXX: The InMemorySignalProtocolStore does not pass
  39749. // in or store the signature, but we need it when we
  39750. // publish out bundle and this method isn't called from
  39751. // within libsignal code, so we modify it to also store
  39752. // the signature.
  39753. 'signature': u.arrayBufferToBase64(spk.signature)
  39754. });
  39755. return Promise.resolve();
  39756. },
  39757. removeSignedPreKey: function removeSignedPreKey(key_id) {
  39758. if (this.get('signed_prekey')['id'] === key_id) {
  39759. this.unset('signed_prekey');
  39760. this.save();
  39761. }
  39762. return Promise.resolve();
  39763. },
  39764. loadSession: function loadSession(identifier) {
  39765. return Promise.resolve(this.get('session' + identifier));
  39766. },
  39767. storeSession: function storeSession(identifier, record) {
  39768. return Promise.resolve(this.save('session' + identifier, record));
  39769. },
  39770. removeSession: function removeSession(identifier) {
  39771. return Promise.resolve(this.unset('session' + identifier));
  39772. },
  39773. removeAllSessions: function removeAllSessions(identifier) {
  39774. var keys = _.filter(_.keys(this.attributes), function (key) {
  39775. if (key.startsWith('session' + identifier)) {
  39776. return key;
  39777. }
  39778. });
  39779. var attrs = {};
  39780. _.forEach(keys, function (key) {
  39781. attrs[key] = undefined;
  39782. });
  39783. this.save(attrs);
  39784. return Promise.resolve();
  39785. },
  39786. publishBundle: function publishBundle() {
  39787. var signed_prekey = this.get('signed_prekey');
  39788. var stanza = $iq({
  39789. 'from': _converse.bare_jid,
  39790. 'type': 'set'
  39791. }).c('pubsub', {
  39792. 'xmlns': Strophe.NS.PUBSUB
  39793. }).c('publish', {
  39794. 'node': "".concat(Strophe.NS.OMEMO_BUNDLES, ":").concat(this.get('device_id'))
  39795. }).c('item').c('bundle', {
  39796. 'xmlns': Strophe.NS.OMEMO
  39797. }).c('signedPreKeyPublic', {
  39798. 'signedPreKeyId': signed_prekey.id
  39799. }).t(signed_prekey.pubKey).up().c('signedPreKeySignature').t(signed_prekey.signature).up().c('identityKey').t(this.get('identity_keypair').pubKey).up().c('prekeys');
  39800. _.forEach(this.get('prekeys'), function (prekey, id) {
  39801. return stanza.c('preKeyPublic', {
  39802. 'preKeyId': id
  39803. }).t(prekey.pubKey).up();
  39804. });
  39805. return _converse.api.sendIQ(stanza);
  39806. },
  39807. generateMissingPreKeys: function generateMissingPreKeys() {
  39808. var _this9 = this;
  39809. var current_keys = this.getPreKeys(),
  39810. missing_keys = _.difference(_.invokeMap(_.range(0, _converse.NUM_PREKEYS), Number.prototype.toString), _.keys(current_keys));
  39811. if (missing_keys.length < 1) {
  39812. _converse.log("No missing prekeys to generate for our own device", Strophe.LogLevel.WARN);
  39813. return Promise.resolve();
  39814. }
  39815. return Promise.all(_.map(missing_keys, function (id) {
  39816. return libsignal.KeyHelper.generatePreKey(parseInt(id, 10));
  39817. })).then(function (keys) {
  39818. _.forEach(keys, function (k) {
  39819. return _this9.storePreKey(k.keyId, k.keyPair);
  39820. });
  39821. var marshalled_keys = _.map(_this9.getPreKeys(), function (k) {
  39822. return {
  39823. 'id': k.keyId,
  39824. 'key': u.arrayBufferToBase64(k.pubKey)
  39825. };
  39826. }),
  39827. devicelist = _converse.devicelists.get(_converse.bare_jid),
  39828. device = devicelist.devices.get(_this9.get('device_id'));
  39829. return device.getBundle().then(function (bundle) {
  39830. return device.save('bundle', _.extend(bundle, {
  39831. 'prekeys': marshalled_keys
  39832. }));
  39833. });
  39834. });
  39835. },
  39836. generateBundle: function generateBundle() {
  39837. var _this10 = this;
  39838. /* The first thing that needs to happen if a client wants to
  39839. * start using OMEMO is they need to generate an IdentityKey
  39840. * and a Device ID. The IdentityKey is a Curve25519 [6]
  39841. * public/private Key pair. The Device ID is a randomly
  39842. * generated integer between 1 and 2^31 - 1.
  39843. */
  39844. var bundle = {};
  39845. return libsignal.KeyHelper.generateIdentityKeyPair().then(function (identity_keypair) {
  39846. var identity_key = u.arrayBufferToBase64(identity_keypair.pubKey),
  39847. device_id = generateDeviceID();
  39848. bundle['identity_key'] = identity_key;
  39849. bundle['device_id'] = device_id;
  39850. _this10.save({
  39851. 'device_id': device_id,
  39852. 'identity_keypair': {
  39853. 'privKey': u.arrayBufferToBase64(identity_keypair.privKey),
  39854. 'pubKey': identity_key
  39855. },
  39856. 'identity_key': identity_key
  39857. });
  39858. return libsignal.KeyHelper.generateSignedPreKey(identity_keypair, 0);
  39859. }).then(function (signed_prekey) {
  39860. _converse.omemo_store.storeSignedPreKey(signed_prekey);
  39861. bundle['signed_prekey'] = {
  39862. 'id': signed_prekey.keyId,
  39863. 'public_key': u.arrayBufferToBase64(signed_prekey.keyPair.privKey),
  39864. 'signature': u.arrayBufferToBase64(signed_prekey.signature)
  39865. };
  39866. return Promise.all(_.map(_.range(0, _converse.NUM_PREKEYS), function (id) {
  39867. return libsignal.KeyHelper.generatePreKey(id);
  39868. }));
  39869. }).then(function (keys) {
  39870. _.forEach(keys, function (k) {
  39871. return _converse.omemo_store.storePreKey(k.keyId, k.keyPair);
  39872. });
  39873. var devicelist = _converse.devicelists.get(_converse.bare_jid),
  39874. device = devicelist.devices.create({
  39875. 'id': bundle.device_id,
  39876. 'jid': _converse.bare_jid
  39877. }),
  39878. marshalled_keys = _.map(keys, function (k) {
  39879. return {
  39880. 'id': k.keyId,
  39881. 'key': u.arrayBufferToBase64(k.keyPair.pubKey)
  39882. };
  39883. });
  39884. bundle['prekeys'] = marshalled_keys;
  39885. device.save('bundle', bundle);
  39886. });
  39887. },
  39888. fetchSession: function fetchSession() {
  39889. var _this11 = this;
  39890. if (_.isUndefined(this._setup_promise)) {
  39891. this._setup_promise = new Promise(function (resolve, reject) {
  39892. _this11.fetch({
  39893. 'success': function success() {
  39894. if (!_converse.omemo_store.get('device_id')) {
  39895. _this11.generateBundle().then(resolve).catch(resolve);
  39896. } else {
  39897. resolve();
  39898. }
  39899. },
  39900. 'error': function error() {
  39901. _this11.generateBundle().then(resolve).catch(resolve);
  39902. }
  39903. });
  39904. });
  39905. }
  39906. return this._setup_promise;
  39907. }
  39908. });
  39909. _converse.Device = Backbone.Model.extend({
  39910. defaults: {
  39911. 'trusted': UNDECIDED
  39912. },
  39913. getRandomPreKey: function getRandomPreKey() {
  39914. // XXX: assumes that the bundle has already been fetched
  39915. var bundle = this.get('bundle');
  39916. return bundle.prekeys[u.getRandomInt(bundle.prekeys.length)];
  39917. },
  39918. fetchBundleFromServer: function fetchBundleFromServer() {
  39919. var _this12 = this;
  39920. var stanza = $iq({
  39921. 'type': 'get',
  39922. 'from': _converse.bare_jid,
  39923. 'to': this.get('jid')
  39924. }).c('pubsub', {
  39925. 'xmlns': Strophe.NS.PUBSUB
  39926. }).c('items', {
  39927. 'node': "".concat(Strophe.NS.OMEMO_BUNDLES, ":").concat(this.get('id'))
  39928. });
  39929. return _converse.api.sendIQ(stanza).then(function (iq) {
  39930. var publish_el = sizzle("items[node=\"".concat(Strophe.NS.OMEMO_BUNDLES, ":").concat(_this12.get('id'), "\"]"), iq).pop(),
  39931. bundle_el = sizzle("bundle[xmlns=\"".concat(Strophe.NS.OMEMO, "\"]"), publish_el).pop(),
  39932. bundle = parseBundle(bundle_el);
  39933. _this12.save('bundle', bundle);
  39934. return bundle;
  39935. }).catch(function (iq) {
  39936. _converse.log(iq.outerHTML, Strophe.LogLevel.ERROR);
  39937. });
  39938. },
  39939. getBundle: function getBundle() {
  39940. /* Fetch and save the bundle information associated with
  39941. * this device, if the information is not at hand already.
  39942. */
  39943. if (this.get('bundle')) {
  39944. return Promise.resolve(this.get('bundle'), this);
  39945. } else {
  39946. return this.fetchBundleFromServer();
  39947. }
  39948. }
  39949. });
  39950. _converse.Devices = Backbone.Collection.extend({
  39951. model: _converse.Device
  39952. });
  39953. _converse.DeviceList = Backbone.Model.extend({
  39954. idAttribute: 'jid',
  39955. initialize: function initialize() {
  39956. this.devices = new _converse.Devices();
  39957. var id = "converse.devicelist-".concat(_converse.bare_jid, "-").concat(this.get('jid'));
  39958. this.devices.browserStorage = new Backbone.BrowserStorage.session(id);
  39959. this.fetchDevices();
  39960. },
  39961. fetchDevices: function fetchDevices() {
  39962. var _this13 = this;
  39963. if (_.isUndefined(this._devices_promise)) {
  39964. this._devices_promise = new Promise(function (resolve, reject) {
  39965. _this13.devices.fetch({
  39966. 'success': function success(collection) {
  39967. if (collection.length === 0) {
  39968. _this13.fetchDevicesFromServer().then(function (ids) {
  39969. return _this13.publishCurrentDevice(ids);
  39970. }).then(resolve).catch(resolve);
  39971. } else {
  39972. resolve();
  39973. }
  39974. }
  39975. });
  39976. });
  39977. }
  39978. return this._devices_promise;
  39979. },
  39980. publishCurrentDevice: function publishCurrentDevice(device_ids) {
  39981. var _this14 = this;
  39982. if (this.get('jid') !== _converse.bare_jid) {
  39983. // We only publish for ourselves.
  39984. return Promise.resolve();
  39985. }
  39986. return restoreOMEMOSession().then(function () {
  39987. var device_id = _converse.omemo_store.get('device_id'),
  39988. own_device = _this14.devices.findWhere({
  39989. 'id': device_id
  39990. });
  39991. if (!_.includes(device_ids, device_id)) {
  39992. return _this14.publishDevices();
  39993. }
  39994. });
  39995. },
  39996. fetchDevicesFromServer: function fetchDevicesFromServer() {
  39997. var _this15 = this;
  39998. var stanza = $iq({
  39999. 'type': 'get',
  40000. 'from': _converse.bare_jid,
  40001. 'to': this.get('jid')
  40002. }).c('pubsub', {
  40003. 'xmlns': Strophe.NS.PUBSUB
  40004. }).c('items', {
  40005. 'node': Strophe.NS.OMEMO_DEVICELIST
  40006. });
  40007. return _converse.api.sendIQ(stanza).then(function (iq) {
  40008. var device_ids = _.map(sizzle("list[xmlns=\"".concat(Strophe.NS.OMEMO, "\"] device"), iq), function (dev) {
  40009. return dev.getAttribute('id');
  40010. });
  40011. _.forEach(device_ids, function (id) {
  40012. return _this15.devices.create({
  40013. 'id': id,
  40014. 'jid': _this15.get('jid')
  40015. });
  40016. });
  40017. return device_ids;
  40018. });
  40019. },
  40020. publishDevices: function publishDevices() {
  40021. var stanza = $iq({
  40022. 'from': _converse.bare_jid,
  40023. 'type': 'set'
  40024. }).c('pubsub', {
  40025. 'xmlns': Strophe.NS.PUBSUB
  40026. }).c('publish', {
  40027. 'node': Strophe.NS.OMEMO_DEVICELIST
  40028. }).c('item').c('list', {
  40029. 'xmlns': Strophe.NS.OMEMO
  40030. });
  40031. this.devices.each(function (device) {
  40032. return stanza.c('device', {
  40033. 'id': device.get('id')
  40034. }).up();
  40035. });
  40036. return _converse.api.sendIQ(stanza);
  40037. },
  40038. removeOwnDevices: function removeOwnDevices(device_ids) {
  40039. var _this16 = this;
  40040. if (this.get('jid') !== _converse.bare_jid) {
  40041. throw new Error("Cannot remove devices from someone else's device list");
  40042. }
  40043. _.forEach(device_ids, function (device_id) {
  40044. return _this16.devices.get(device_id).destroy();
  40045. });
  40046. return this.publishDevices();
  40047. }
  40048. });
  40049. _converse.DeviceLists = Backbone.Collection.extend({
  40050. model: _converse.DeviceList
  40051. });
  40052. _converse.omemo = {};
  40053. function fetchDeviceLists() {
  40054. return new Promise(function (resolve, reject) {
  40055. return _converse.devicelists.fetch({
  40056. 'success': resolve
  40057. });
  40058. });
  40059. }
  40060. function fetchOwnDevices() {
  40061. return fetchDeviceLists().then(function () {
  40062. var own_devicelist = _converse.devicelists.get(_converse.bare_jid);
  40063. if (_.isNil(own_devicelist)) {
  40064. own_devicelist = _converse.devicelists.create({
  40065. 'jid': _converse.bare_jid
  40066. });
  40067. }
  40068. return own_devicelist.fetchDevices();
  40069. });
  40070. }
  40071. function updateBundleFromStanza(stanza) {
  40072. var items_el = sizzle("items", stanza).pop();
  40073. if (!items_el || !items_el.getAttribute('node').startsWith(Strophe.NS.OMEMO_BUNDLES)) {
  40074. return;
  40075. }
  40076. var device_id = items_el.getAttribute('node').split(':')[1],
  40077. jid = stanza.getAttribute('from'),
  40078. bundle_el = sizzle("item > bundle", items_el).pop(),
  40079. devicelist = _converse.devicelists.get(jid) || _converse.devicelists.create({
  40080. 'jid': jid
  40081. }),
  40082. device = devicelist.devices.get(device_id) || devicelist.devices.create({
  40083. 'id': device_id,
  40084. 'jid': jid
  40085. });
  40086. device.save({
  40087. 'bundle': parseBundle(bundle_el)
  40088. });
  40089. }
  40090. function updateDevicesFromStanza(stanza) {
  40091. var items_el = sizzle("items[node=\"".concat(Strophe.NS.OMEMO_DEVICELIST, "\"]"), stanza).pop();
  40092. if (!items_el) {
  40093. return;
  40094. }
  40095. var device_ids = _.map(sizzle("item list[xmlns=\"".concat(Strophe.NS.OMEMO, "\"] device"), items_el), function (device) {
  40096. return device.getAttribute('id');
  40097. });
  40098. var jid = stanza.getAttribute('from'),
  40099. devicelist = _converse.devicelists.get(jid) || _converse.devicelists.create({
  40100. 'jid': jid
  40101. }),
  40102. devices = devicelist.devices,
  40103. removed_ids = _.difference(devices.pluck('id'), device_ids);
  40104. _.forEach(removed_ids, function (id) {
  40105. if (jid === _converse.bare_jid && id === _converse.omemo_store.get('device_id')) {
  40106. // We don't remove the current device
  40107. return;
  40108. }
  40109. devices.get(id).destroy();
  40110. });
  40111. _.forEach(device_ids, function (device_id) {
  40112. if (!devices.get(device_id)) {
  40113. devices.create({
  40114. 'id': device_id,
  40115. 'jid': jid
  40116. });
  40117. }
  40118. });
  40119. if (Strophe.getBareJidFromJid(jid) === _converse.bare_jid) {
  40120. // Make sure our own device is on the list (i.e. if it was
  40121. // removed, add it again.
  40122. _converse.devicelists.get(_converse.bare_jid).publishCurrentDevice(device_ids);
  40123. }
  40124. }
  40125. function registerPEPPushHandler() {
  40126. // Add a handler for devices pushed from other connected clients
  40127. _converse.connection.addHandler(function (message) {
  40128. try {
  40129. if (sizzle("event[xmlns=\"".concat(Strophe.NS.PUBSUB, "#event\"]"), message).length) {
  40130. updateDevicesFromStanza(message);
  40131. updateBundleFromStanza(message);
  40132. }
  40133. } catch (e) {
  40134. _converse.log(e.message, Strophe.LogLevel.ERROR);
  40135. }
  40136. return true;
  40137. }, null, 'message', 'headline');
  40138. }
  40139. function restoreOMEMOSession() {
  40140. if (_.isUndefined(_converse.omemo_store)) {
  40141. var storage = _converse.config.get('storage'),
  40142. id = "converse.omemosession-".concat(_converse.bare_jid);
  40143. _converse.omemo_store = new _converse.OMEMOStore({
  40144. 'id': id
  40145. });
  40146. _converse.omemo_store.browserStorage = new Backbone.BrowserStorage[storage](id);
  40147. }
  40148. return _converse.omemo_store.fetchSession();
  40149. }
  40150. function initOMEMO() {
  40151. _converse.devicelists = new _converse.DeviceLists();
  40152. var storage = _converse.config.get('storage'),
  40153. id = "converse.devicelists-".concat(_converse.bare_jid);
  40154. _converse.devicelists.browserStorage = new Backbone.BrowserStorage[storage](id);
  40155. fetchOwnDevices().then(function () {
  40156. return restoreOMEMOSession();
  40157. }).then(function () {
  40158. return _converse.omemo_store.publishBundle();
  40159. }).then(function () {
  40160. return _converse.emit('OMEMOInitialized');
  40161. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.ERROR));
  40162. }
  40163. _converse.api.listen.on('afterTearDown', function () {
  40164. if (_converse.devicelists) {
  40165. _converse.devicelists.reset();
  40166. }
  40167. delete _converse.omemo_store;
  40168. });
  40169. _converse.api.listen.on('connected', registerPEPPushHandler);
  40170. _converse.api.listen.on('renderToolbar', function (view) {
  40171. return view.renderOMEMOToolbarButton();
  40172. });
  40173. _converse.api.listen.on('statusInitialized', initOMEMO);
  40174. _converse.api.listen.on('addClientFeatures', function () {
  40175. return _converse.api.disco.own.features.add("".concat(Strophe.NS.OMEMO_DEVICELIST, "+notify"));
  40176. });
  40177. _converse.api.listen.on('userDetailsModalInitialized', function (contact) {
  40178. var jid = contact.get('jid');
  40179. _converse.generateFingerprints(jid).catch(_.partial(_converse.log, _, Strophe.LogLevel.ERROR));
  40180. });
  40181. _converse.api.listen.on('profileModalInitialized', function (contact) {
  40182. _converse.generateFingerprints(_converse.bare_jid).catch(_.partial(_converse.log, _, Strophe.LogLevel.ERROR));
  40183. });
  40184. }
  40185. });
  40186. });
  40187. /***/ }),
  40188. /***/ "./src/converse-ping.js":
  40189. /*!******************************!*\
  40190. !*** ./src/converse-ping.js ***!
  40191. \******************************/
  40192. /*! no static exports found */
  40193. /***/ (function(module, exports, __webpack_require__) {
  40194. "use strict";
  40195. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  40196. // Converse.js
  40197. // https://conversejs.org
  40198. //
  40199. // Copyright (c) 2013-2018, the Converse.js developers
  40200. // Licensed under the Mozilla Public License (MPLv2)
  40201. /* This is a Converse.js plugin which add support for application-level pings
  40202. * as specified in XEP-0199 XMPP Ping.
  40203. */
  40204. (function (root, factory) {
  40205. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! strophe.ping */ "strophe.ping")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  40206. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  40207. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  40208. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  40209. })(void 0, function (converse) {
  40210. "use strict"; // Strophe methods for building stanzas
  40211. var _converse$env = converse.env,
  40212. Strophe = _converse$env.Strophe,
  40213. _ = _converse$env._;
  40214. converse.plugins.add('converse-ping', {
  40215. initialize: function initialize() {
  40216. /* The initialize function gets called as soon as the plugin is
  40217. * loaded by converse.js's plugin machinery.
  40218. */
  40219. var _converse = this._converse;
  40220. _converse.api.settings.update({
  40221. ping_interval: 180 //in seconds
  40222. });
  40223. _converse.ping = function (jid, success, error, timeout) {
  40224. // XXX: We could first check here if the server advertised that
  40225. // it supports PING.
  40226. // However, some servers don't advertise while still keeping the
  40227. // connection option due to pings.
  40228. //
  40229. // var feature = _converse.disco_entities[_converse.domain].features.findWhere({'var': Strophe.NS.PING});
  40230. _converse.lastStanzaDate = new Date();
  40231. if (_.isNil(jid)) {
  40232. jid = Strophe.getDomainFromJid(_converse.bare_jid);
  40233. }
  40234. if (_.isUndefined(timeout)) {
  40235. timeout = null;
  40236. }
  40237. if (_.isUndefined(success)) {
  40238. success = null;
  40239. }
  40240. if (_.isUndefined(error)) {
  40241. error = null;
  40242. }
  40243. if (_converse.connection) {
  40244. _converse.connection.ping.ping(jid, success, error, timeout);
  40245. return true;
  40246. }
  40247. return false;
  40248. };
  40249. _converse.pong = function (ping) {
  40250. _converse.lastStanzaDate = new Date();
  40251. _converse.connection.ping.pong(ping);
  40252. return true;
  40253. };
  40254. _converse.registerPongHandler = function () {
  40255. if (!_.isUndefined(_converse.connection.disco)) {
  40256. _converse.api.disco.own.features.add(Strophe.NS.PING);
  40257. }
  40258. _converse.connection.ping.addPingHandler(_converse.pong);
  40259. };
  40260. _converse.registerPingHandler = function () {
  40261. _converse.registerPongHandler();
  40262. if (_converse.ping_interval > 0) {
  40263. _converse.connection.addHandler(function () {
  40264. /* Handler on each stanza, saves the received date
  40265. * in order to ping only when needed.
  40266. */
  40267. _converse.lastStanzaDate = new Date();
  40268. return true;
  40269. });
  40270. _converse.connection.addTimedHandler(1000, function () {
  40271. var now = new Date();
  40272. if (!_converse.lastStanzaDate) {
  40273. _converse.lastStanzaDate = now;
  40274. }
  40275. if ((now - _converse.lastStanzaDate) / 1000 > _converse.ping_interval) {
  40276. return _converse.ping();
  40277. }
  40278. return true;
  40279. });
  40280. }
  40281. };
  40282. var onConnected = function onConnected() {
  40283. // Wrapper so that we can spy on registerPingHandler in tests
  40284. _converse.registerPingHandler();
  40285. };
  40286. _converse.on('connected', onConnected);
  40287. _converse.on('reconnected', onConnected);
  40288. }
  40289. });
  40290. });
  40291. /***/ }),
  40292. /***/ "./src/converse-profile.js":
  40293. /*!*********************************!*\
  40294. !*** ./src/converse-profile.js ***!
  40295. \*********************************/
  40296. /*! no static exports found */
  40297. /***/ (function(module, exports, __webpack_require__) {
  40298. "use strict";
  40299. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  40300. // Converse.js (A browser based XMPP chat client)
  40301. // http://conversejs.org
  40302. //
  40303. // Copyright (c) 2013-2017, Jan-Carel Brand <jc@opkode.com>
  40304. // Licensed under the Mozilla Public License (MPLv2)
  40305. //
  40306. /*global define */
  40307. (function (root, factory) {
  40308. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! bootstrap */ "./node_modules/bootstrap.native/dist/bootstrap-native-v4.js"), __webpack_require__(/*! templates/alert.html */ "./src/templates/alert.html"), __webpack_require__(/*! templates/chat_status_modal.html */ "./src/templates/chat_status_modal.html"), __webpack_require__(/*! templates/profile_modal.html */ "./src/templates/profile_modal.html"), __webpack_require__(/*! templates/profile_view.html */ "./src/templates/profile_view.html"), __webpack_require__(/*! templates/status_option.html */ "./src/templates/status_option.html"), __webpack_require__(/*! converse-vcard */ "./src/converse-vcard.js"), __webpack_require__(/*! converse-modal */ "./src/converse-modal.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  40309. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  40310. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  40311. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  40312. })(void 0, function (converse, bootstrap, tpl_alert, tpl_chat_status_modal, tpl_profile_modal, tpl_profile_view, tpl_status_option) {
  40313. "use strict";
  40314. var _converse$env = converse.env,
  40315. Strophe = _converse$env.Strophe,
  40316. Backbone = _converse$env.Backbone,
  40317. Promise = _converse$env.Promise,
  40318. utils = _converse$env.utils,
  40319. _ = _converse$env._,
  40320. moment = _converse$env.moment;
  40321. var u = converse.env.utils;
  40322. converse.plugins.add('converse-profile', {
  40323. dependencies: ["converse-modal", "converse-vcard", "converse-chatboxviews"],
  40324. initialize: function initialize() {
  40325. /* The initialize function gets called as soon as the plugin is
  40326. * loaded by converse.js's plugin machinery.
  40327. */
  40328. var _converse = this._converse,
  40329. __ = _converse.__;
  40330. _converse.ProfileModal = _converse.BootstrapModal.extend({
  40331. events: {
  40332. 'click .change-avatar': "openFileSelection",
  40333. 'change input[type="file"': "updateFilePreview",
  40334. 'submit .profile-form': 'onFormSubmitted'
  40335. },
  40336. initialize: function initialize() {
  40337. this.model.on('change', this.render, this);
  40338. _converse.BootstrapModal.prototype.initialize.apply(this, arguments);
  40339. _converse.emit('profileModalInitialized', this.model);
  40340. },
  40341. toHTML: function toHTML() {
  40342. return tpl_profile_modal(_.extend(this.model.toJSON(), this.model.vcard.toJSON(), {
  40343. '_': _,
  40344. '__': __,
  40345. '_converse': _converse,
  40346. 'alt_avatar': __('Your avatar image'),
  40347. 'heading_profile': __('Your Profile'),
  40348. 'label_close': __('Close'),
  40349. 'label_email': __('Email'),
  40350. 'label_fullname': __('Full Name'),
  40351. 'label_jid': __('XMPP Address (JID)'),
  40352. 'label_nickname': __('Nickname'),
  40353. 'label_role': __('Role'),
  40354. 'label_role_help': __('Use commas to separate multiple roles. Your roles are shown next to your name on your chat messages.'),
  40355. 'label_url': __('URL'),
  40356. 'utils': u,
  40357. 'view': this
  40358. }));
  40359. },
  40360. afterRender: function afterRender() {
  40361. this.tabs = _.map(this.el.querySelectorAll('.nav-item'), function (tab) {
  40362. return new bootstrap.Tab(tab);
  40363. });
  40364. },
  40365. openFileSelection: function openFileSelection(ev) {
  40366. ev.preventDefault();
  40367. this.el.querySelector('input[type="file"]').click();
  40368. },
  40369. updateFilePreview: function updateFilePreview(ev) {
  40370. var _this = this;
  40371. var file = ev.target.files[0],
  40372. reader = new FileReader();
  40373. reader.onloadend = function () {
  40374. _this.el.querySelector('.avatar').setAttribute('src', reader.result);
  40375. };
  40376. reader.readAsDataURL(file);
  40377. },
  40378. setVCard: function setVCard(data) {
  40379. var _this2 = this;
  40380. _converse.api.vcard.set(_converse.bare_jid, data).then(function () {
  40381. return _converse.api.vcard.update(_this2.model.vcard, true);
  40382. }).catch(function (err) {
  40383. _converse.log(err, Strophe.LogLevel.FATAL);
  40384. _converse.api.alert.show(Strophe.LogLevel.ERROR, __('Error'), [__("Sorry, an error happened while trying to save your profile data."), __("You can check your browser's developer console for any error output.")]);
  40385. });
  40386. this.modal.hide();
  40387. },
  40388. onFormSubmitted: function onFormSubmitted(ev) {
  40389. var _this3 = this;
  40390. ev.preventDefault();
  40391. var reader = new FileReader(),
  40392. form_data = new FormData(ev.target),
  40393. image_file = form_data.get('image');
  40394. var data = {
  40395. 'fn': form_data.get('fn'),
  40396. 'nickname': form_data.get('nickname'),
  40397. 'role': form_data.get('role'),
  40398. 'email': form_data.get('email'),
  40399. 'url': form_data.get('url')
  40400. };
  40401. if (!image_file.size) {
  40402. _.extend(data, {
  40403. 'image': this.model.vcard.get('image'),
  40404. 'image_type': this.model.vcard.get('image_type')
  40405. });
  40406. this.setVCard(data);
  40407. } else {
  40408. reader.onloadend = function () {
  40409. _.extend(data, {
  40410. 'image': btoa(reader.result),
  40411. 'image_type': image_file.type
  40412. });
  40413. _this3.setVCard(data);
  40414. };
  40415. reader.readAsBinaryString(image_file);
  40416. }
  40417. }
  40418. });
  40419. _converse.ChatStatusModal = _converse.BootstrapModal.extend({
  40420. events: {
  40421. "submit form#set-xmpp-status": "onFormSubmitted",
  40422. "click .clear-input": "clearStatusMessage"
  40423. },
  40424. toHTML: function toHTML() {
  40425. return tpl_chat_status_modal(_.extend(this.model.toJSON(), this.model.vcard.toJSON(), {
  40426. 'label_away': __('Away'),
  40427. 'label_close': __('Close'),
  40428. 'label_busy': __('Busy'),
  40429. 'label_cancel': __('Cancel'),
  40430. 'label_custom_status': __('Custom status'),
  40431. 'label_offline': __('Offline'),
  40432. 'label_online': __('Online'),
  40433. 'label_save': __('Save'),
  40434. 'label_xa': __('Away for long'),
  40435. 'modal_title': __('Change chat status'),
  40436. 'placeholder_status_message': __('Personal status message')
  40437. }));
  40438. },
  40439. afterRender: function afterRender() {
  40440. var _this4 = this;
  40441. this.el.addEventListener('shown.bs.modal', function () {
  40442. _this4.el.querySelector('input[name="status_message"]').focus();
  40443. }, false);
  40444. },
  40445. clearStatusMessage: function clearStatusMessage(ev) {
  40446. if (ev && ev.preventDefault) {
  40447. ev.preventDefault();
  40448. u.hideElement(this.el.querySelector('.clear-input'));
  40449. }
  40450. var roster_filter = this.el.querySelector('input[name="status_message"]');
  40451. roster_filter.value = '';
  40452. },
  40453. onFormSubmitted: function onFormSubmitted(ev) {
  40454. ev.preventDefault();
  40455. var data = new FormData(ev.target);
  40456. this.model.save({
  40457. 'status_message': data.get('status_message'),
  40458. 'status': data.get('chat_status')
  40459. });
  40460. this.modal.hide();
  40461. }
  40462. });
  40463. _converse.XMPPStatusView = _converse.VDOMViewWithAvatar.extend({
  40464. tagName: "div",
  40465. events: {
  40466. "click a.show-profile": "showProfileModal",
  40467. "click a.change-status": "showStatusChangeModal",
  40468. "click .logout": "logOut"
  40469. },
  40470. initialize: function initialize() {
  40471. this.model.on("change", this.render, this);
  40472. this.model.vcard.on("change", this.render, this);
  40473. },
  40474. toHTML: function toHTML() {
  40475. var chat_status = this.model.get('status') || 'offline';
  40476. return tpl_profile_view(_.extend(this.model.toJSON(), this.model.vcard.toJSON(), {
  40477. '__': __,
  40478. 'fullname': this.model.vcard.get('fullname') || _converse.bare_jid,
  40479. 'status_message': this.model.get('status_message') || __("I am %1$s", this.getPrettyStatus(chat_status)),
  40480. 'chat_status': chat_status,
  40481. '_converse': _converse,
  40482. 'title_change_settings': __('Change settings'),
  40483. 'title_change_status': __('Click to change your chat status'),
  40484. 'title_log_out': __('Log out'),
  40485. 'title_your_profile': __('Your profile')
  40486. }));
  40487. },
  40488. afterRender: function afterRender() {
  40489. this.renderAvatar();
  40490. },
  40491. showProfileModal: function showProfileModal(ev) {
  40492. if (_.isUndefined(this.profile_modal)) {
  40493. this.profile_modal = new _converse.ProfileModal({
  40494. model: this.model
  40495. });
  40496. }
  40497. this.profile_modal.show(ev);
  40498. },
  40499. showStatusChangeModal: function showStatusChangeModal(ev) {
  40500. if (_.isUndefined(this.status_modal)) {
  40501. this.status_modal = new _converse.ChatStatusModal({
  40502. model: this.model
  40503. });
  40504. }
  40505. this.status_modal.show(ev);
  40506. },
  40507. logOut: function logOut(ev) {
  40508. ev.preventDefault();
  40509. var result = confirm(__("Are you sure you want to log out?"));
  40510. if (result === true) {
  40511. _converse.logOut();
  40512. }
  40513. },
  40514. getPrettyStatus: function getPrettyStatus(stat) {
  40515. if (stat === 'chat') {
  40516. return __('online');
  40517. } else if (stat === 'dnd') {
  40518. return __('busy');
  40519. } else if (stat === 'xa') {
  40520. return __('away for long');
  40521. } else if (stat === 'away') {
  40522. return __('away');
  40523. } else if (stat === 'offline') {
  40524. return __('offline');
  40525. } else {
  40526. return __(stat) || __('online');
  40527. }
  40528. }
  40529. });
  40530. }
  40531. });
  40532. });
  40533. /***/ }),
  40534. /***/ "./src/converse-push.js":
  40535. /*!******************************!*\
  40536. !*** ./src/converse-push.js ***!
  40537. \******************************/
  40538. /*! no static exports found */
  40539. /***/ (function(module, exports, __webpack_require__) {
  40540. "use strict";
  40541. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  40542. // Converse.js
  40543. // https://conversejs.org
  40544. //
  40545. // Copyright (c) 2013-2018, the Converse.js developers
  40546. // Licensed under the Mozilla Public License (MPLv2)
  40547. /* This is a Converse.js plugin which add support for registering
  40548. * an "App Server" as defined in XEP-0357
  40549. */
  40550. (function (root, factory) {
  40551. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  40552. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  40553. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  40554. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  40555. })(void 0, function (converse) {
  40556. "use strict";
  40557. var _converse$env = converse.env,
  40558. Strophe = _converse$env.Strophe,
  40559. $iq = _converse$env.$iq,
  40560. _ = _converse$env._;
  40561. Strophe.addNamespace('PUSH', 'urn:xmpp:push:0');
  40562. converse.plugins.add('converse-push', {
  40563. initialize: function initialize() {
  40564. /* The initialize function gets called as soon as the plugin is
  40565. * loaded by converse.js's plugin machinery.
  40566. */
  40567. var _converse = this._converse,
  40568. __ = _converse.__;
  40569. _converse.api.settings.update({
  40570. 'push_app_servers': []
  40571. });
  40572. function disablePushAppServer(push_app_server) {
  40573. if (!push_app_server.jid) {
  40574. return;
  40575. }
  40576. Promise.all([_converse.api.disco.supports(Strophe.NS.PUSH, _converse.bare_jid)]).then(function (result) {
  40577. if (!result[0].length && !result[1].length) {
  40578. return _converse.log("Not disabling push app server \"".concat(push_app_server.jid, "\", no disco support from your server."), Strophe.LogLevel.WARN);
  40579. }
  40580. var stanza = $iq({
  40581. 'type': 'set'
  40582. }).c('disable', {
  40583. 'xmlns': Strophe.NS.PUSH,
  40584. 'jid': push_app_server.jid
  40585. });
  40586. if (push_app_server.node) {
  40587. stanza.attrs({
  40588. 'node': push_app_server.node
  40589. });
  40590. }
  40591. _converse.api.sendIQ(stanza).then(function () {
  40592. return _converse.session.set('push_enabled', true);
  40593. }).catch(function (e) {
  40594. _converse.log("Could not enable push app server for ".concat(push_app_server.jid), Strophe.LogLevel.ERROR);
  40595. _converse.log(e, Strophe.LogLevel.ERROR);
  40596. });
  40597. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  40598. }
  40599. function enablePushAppServer(push_app_server) {
  40600. if (!push_app_server.jid || !push_app_server.node) {
  40601. return;
  40602. }
  40603. _converse.api.disco.getIdentity('pubsub', 'push', push_app_server.jid).then(function (identity) {
  40604. if (!identity) {
  40605. return _converse.log("Not enabling push the service \"".concat(push_app_server.jid, "\", it doesn't have the right disco identtiy."), Strophe.LogLevel.WARN);
  40606. }
  40607. return Promise.all([_converse.api.disco.supports(Strophe.NS.PUSH, push_app_server.jid), _converse.api.disco.supports(Strophe.NS.PUSH, _converse.bare_jid)]).then(function (result) {
  40608. if (!result[0].length && !result[1].length) {
  40609. return _converse.log("Not enabling push app server \"".concat(push_app_server.jid, "\", no disco support from your server."), Strophe.LogLevel.WARN);
  40610. }
  40611. var stanza = $iq({
  40612. 'type': 'set'
  40613. }).c('enable', {
  40614. 'xmlns': Strophe.NS.PUSH,
  40615. 'jid': push_app_server.jid,
  40616. 'node': push_app_server.node
  40617. });
  40618. if (push_app_server.secret) {
  40619. stanza.c('x', {
  40620. 'xmlns': Strophe.NS.XFORM,
  40621. 'type': 'submit'
  40622. }).c('field', {
  40623. 'var': 'FORM_TYPE'
  40624. }).c('value').t("".concat(Strophe.NS.PUBSUB, "#publish-options")).up().up().c('field', {
  40625. 'var': 'secret'
  40626. }).c('value').t(push_app_server.secret);
  40627. }
  40628. _converse.api.sendIQ(stanza).then(function () {
  40629. return _converse.session.save('push_enabled', true);
  40630. }).catch(function (e) {
  40631. _converse.log("Could not enable push app server for ".concat(push_app_server.jid), Strophe.LogLevel.ERROR);
  40632. _converse.log(e, Strophe.LogLevel.ERROR);
  40633. });
  40634. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  40635. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  40636. }
  40637. function enablePush() {
  40638. if (_converse.session.get('push_enabled')) {
  40639. // XXX: this code is still a bit naive. We set push_enabled
  40640. // to true as soon as the first push app server has been set.
  40641. //
  40642. // When enabling or disabling multiple push app servers,
  40643. // we won't wait until we have confirmation that all have been set.
  40644. return;
  40645. }
  40646. var enabled_services = _.reject(_converse.push_app_servers, 'disable');
  40647. _.each(enabled_services, enablePushAppServer);
  40648. var disabled_services = _.filter(_converse.push_app_servers, 'disable');
  40649. _.each(disabled_services, disablePushAppServer);
  40650. }
  40651. _converse.api.listen.on('statusInitialized', enablePush);
  40652. }
  40653. });
  40654. });
  40655. /***/ }),
  40656. /***/ "./src/converse-register.js":
  40657. /*!**********************************!*\
  40658. !*** ./src/converse-register.js ***!
  40659. \**********************************/
  40660. /*! no static exports found */
  40661. /***/ (function(module, exports, __webpack_require__) {
  40662. "use strict";
  40663. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  40664. // Converse.js (A browser based XMPP chat client)
  40665. // http://conversejs.org
  40666. //
  40667. // Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
  40668. // Licensed under the Mozilla Public License (MPLv2)
  40669. //
  40670. /*global define */
  40671. /* This is a Converse.js plugin which add support for in-band registration
  40672. * as specified in XEP-0077.
  40673. */
  40674. (function (root, factory) {
  40675. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! utils/form */ "./src/utils/form.js"), __webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! templates/form_username.html */ "./src/templates/form_username.html"), __webpack_require__(/*! templates/register_link.html */ "./src/templates/register_link.html"), __webpack_require__(/*! templates/register_panel.html */ "./src/templates/register_panel.html"), __webpack_require__(/*! templates/registration_form.html */ "./src/templates/registration_form.html"), __webpack_require__(/*! templates/registration_request.html */ "./src/templates/registration_request.html"), __webpack_require__(/*! templates/form_input.html */ "./src/templates/form_input.html"), __webpack_require__(/*! templates/spinner.html */ "./src/templates/spinner.html"), __webpack_require__(/*! converse-controlbox */ "./src/converse-controlbox.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  40676. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  40677. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  40678. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  40679. })(void 0, function (utils, converse, tpl_form_username, tpl_register_link, tpl_register_panel, tpl_registration_form, tpl_registration_request, tpl_form_input, tpl_spinner) {
  40680. "use strict"; // Strophe methods for building stanzas
  40681. var _converse$env = converse.env,
  40682. Strophe = _converse$env.Strophe,
  40683. Backbone = _converse$env.Backbone,
  40684. sizzle = _converse$env.sizzle,
  40685. $iq = _converse$env.$iq,
  40686. _ = _converse$env._; // Add Strophe Namespaces
  40687. Strophe.addNamespace('REGISTER', 'jabber:iq:register'); // Add Strophe Statuses
  40688. var i = 0;
  40689. _.each(_.keys(Strophe.Status), function (key) {
  40690. i = Math.max(i, Strophe.Status[key]);
  40691. });
  40692. Strophe.Status.REGIFAIL = i + 1;
  40693. Strophe.Status.REGISTERED = i + 2;
  40694. Strophe.Status.CONFLICT = i + 3;
  40695. Strophe.Status.NOTACCEPTABLE = i + 5;
  40696. converse.plugins.add('converse-register', {
  40697. 'overrides': {
  40698. // Overrides mentioned here will be picked up by converse.js's
  40699. // plugin architecture they will replace existing methods on the
  40700. // relevant objects or classes.
  40701. //
  40702. // New functions which don't exist yet can also be added.
  40703. LoginPanel: {
  40704. insertRegisterLink: function insertRegisterLink() {
  40705. var _converse = this.__super__._converse;
  40706. if (_.isUndefined(this.registerlinkview)) {
  40707. this.registerlinkview = new _converse.RegisterLinkView({
  40708. 'model': this.model
  40709. });
  40710. this.registerlinkview.render();
  40711. this.el.querySelector('.buttons').insertAdjacentElement('afterend', this.registerlinkview.el);
  40712. }
  40713. this.registerlinkview.render();
  40714. },
  40715. render: function render(cfg) {
  40716. var _converse = this.__super__._converse;
  40717. this.__super__.render.apply(this, arguments);
  40718. if (_converse.allow_registration && !_converse.auto_login) {
  40719. this.insertRegisterLink();
  40720. }
  40721. return this;
  40722. }
  40723. },
  40724. ControlBoxView: {
  40725. initialize: function initialize() {
  40726. this.__super__.initialize.apply(this, arguments);
  40727. this.model.on('change:active-form', this.showLoginOrRegisterForm.bind(this));
  40728. },
  40729. showLoginOrRegisterForm: function showLoginOrRegisterForm() {
  40730. var _converse = this.__super__._converse;
  40731. if (_.isNil(this.registerpanel)) {
  40732. return;
  40733. }
  40734. if (this.model.get('active-form') == "register") {
  40735. this.loginpanel.el.classList.add('hidden');
  40736. this.registerpanel.el.classList.remove('hidden');
  40737. } else {
  40738. this.loginpanel.el.classList.remove('hidden');
  40739. this.registerpanel.el.classList.add('hidden');
  40740. }
  40741. },
  40742. renderRegistrationPanel: function renderRegistrationPanel() {
  40743. var _converse = this.__super__._converse;
  40744. if (_converse.allow_registration) {
  40745. this.registerpanel = new _converse.RegisterPanel({
  40746. 'model': this.model
  40747. });
  40748. this.registerpanel.render();
  40749. this.registerpanel.el.classList.add('hidden');
  40750. this.el.querySelector('#converse-login-panel').insertAdjacentElement('afterend', this.registerpanel.el);
  40751. this.showLoginOrRegisterForm();
  40752. }
  40753. return this;
  40754. },
  40755. renderLoginPanel: function renderLoginPanel() {
  40756. /* Also render a registration panel, when rendering the
  40757. * login panel.
  40758. */
  40759. this.__super__.renderLoginPanel.apply(this, arguments);
  40760. this.renderRegistrationPanel();
  40761. return this;
  40762. }
  40763. }
  40764. },
  40765. initialize: function initialize() {
  40766. /* The initialize function gets called as soon as the plugin is
  40767. * loaded by converse.js's plugin machinery.
  40768. */
  40769. var _converse = this._converse,
  40770. __ = _converse.__;
  40771. _converse.CONNECTION_STATUS[Strophe.Status.REGIFAIL] = 'REGIFAIL';
  40772. _converse.CONNECTION_STATUS[Strophe.Status.REGISTERED] = 'REGISTERED';
  40773. _converse.CONNECTION_STATUS[Strophe.Status.CONFLICT] = 'CONFLICT';
  40774. _converse.CONNECTION_STATUS[Strophe.Status.NOTACCEPTABLE] = 'NOTACCEPTABLE';
  40775. _converse.api.settings.update({
  40776. 'allow_registration': true,
  40777. 'domain_placeholder': __(" e.g. conversejs.org"),
  40778. // Placeholder text shown in the domain input on the registration form
  40779. 'providers_link': 'https://xmpp.net/directory.php',
  40780. // Link to XMPP providers shown on registration page
  40781. 'registration_domain': ''
  40782. });
  40783. function setActiveForm(value) {
  40784. _converse.api.waitUntil('controlboxInitialized').then(function () {
  40785. var controlbox = _converse.chatboxes.get('controlbox');
  40786. controlbox.set({
  40787. 'active-form': value
  40788. });
  40789. }).catch(_.partial(_converse.log, _, Strophe.LogLevel.FATAL));
  40790. }
  40791. _converse.router.route('converse/login', _.partial(setActiveForm, 'login'));
  40792. _converse.router.route('converse/register', _.partial(setActiveForm, 'register'));
  40793. _converse.RegisterLinkView = Backbone.VDOMView.extend({
  40794. toHTML: function toHTML() {
  40795. return tpl_register_link(_.extend(this.model.toJSON(), {
  40796. '__': _converse.__,
  40797. '_converse': _converse,
  40798. 'connection_status': _converse.connfeedback.get('connection_status')
  40799. }));
  40800. }
  40801. });
  40802. _converse.RegisterPanel = Backbone.NativeView.extend({
  40803. tagName: 'div',
  40804. id: "converse-register-panel",
  40805. className: 'controlbox-pane fade-in',
  40806. events: {
  40807. 'submit form#converse-register': 'onFormSubmission',
  40808. 'click .button-cancel': 'renderProviderChoiceForm'
  40809. },
  40810. initialize: function initialize(cfg) {
  40811. this.reset();
  40812. this.registerHooks();
  40813. },
  40814. render: function render() {
  40815. this.model.set('registration_form_rendered', false);
  40816. this.el.innerHTML = tpl_register_panel({
  40817. '__': __,
  40818. 'default_domain': _converse.registration_domain,
  40819. 'label_register': __('Fetch registration form'),
  40820. 'help_providers': __('Tip: A list of public XMPP providers is available'),
  40821. 'help_providers_link': __('here'),
  40822. 'href_providers': _converse.providers_link,
  40823. 'domain_placeholder': _converse.domain_placeholder
  40824. });
  40825. if (_converse.registration_domain) {
  40826. this.fetchRegistrationForm(_converse.registration_domain);
  40827. }
  40828. return this;
  40829. },
  40830. registerHooks: function registerHooks() {
  40831. var _this = this;
  40832. /* Hook into Strophe's _connect_cb, so that we can send an IQ
  40833. * requesting the registration fields.
  40834. */
  40835. var conn = _converse.connection;
  40836. var connect_cb = conn._connect_cb.bind(conn);
  40837. conn._connect_cb = function (req, callback, raw) {
  40838. if (!_this._registering) {
  40839. connect_cb(req, callback, raw);
  40840. } else {
  40841. if (_this.getRegistrationFields(req, callback, raw)) {
  40842. _this._registering = false;
  40843. }
  40844. }
  40845. };
  40846. },
  40847. getRegistrationFields: function getRegistrationFields(req, _callback, raw) {
  40848. /* Send an IQ stanza to the XMPP server asking for the
  40849. * registration fields.
  40850. * Parameters:
  40851. * (Strophe.Request) req - The current request
  40852. * (Function) callback
  40853. */
  40854. var conn = _converse.connection;
  40855. conn.connected = true;
  40856. var body = conn._proto._reqToData(req);
  40857. if (!body) {
  40858. return;
  40859. }
  40860. if (conn._proto._connect_cb(body) === Strophe.Status.CONNFAIL) {
  40861. this.showValidationError(__("Sorry, we're unable to connect to your chosen provider."));
  40862. return false;
  40863. }
  40864. var register = body.getElementsByTagName("register");
  40865. var mechanisms = body.getElementsByTagName("mechanism");
  40866. if (register.length === 0 && mechanisms.length === 0) {
  40867. conn._proto._no_auth_received(_callback);
  40868. return false;
  40869. }
  40870. if (register.length === 0) {
  40871. conn._changeConnectStatus(Strophe.Status.REGIFAIL);
  40872. this.showValidationError(__("Sorry, the given provider does not support in " + "band account registration. Please try with a " + "different provider."));
  40873. return true;
  40874. } // Send an IQ stanza to get all required data fields
  40875. conn._addSysHandler(this.onRegistrationFields.bind(this), null, "iq", null, null);
  40876. var stanza = $iq({
  40877. type: "get"
  40878. }).c("query", {
  40879. xmlns: Strophe.NS.REGISTER
  40880. }).tree();
  40881. stanza.setAttribute("id", conn.getUniqueId("sendIQ"));
  40882. conn.send(stanza);
  40883. conn.connected = false;
  40884. return true;
  40885. },
  40886. onRegistrationFields: function onRegistrationFields(stanza) {
  40887. /* Handler for Registration Fields Request.
  40888. *
  40889. * Parameters:
  40890. * (XMLElement) elem - The query stanza.
  40891. */
  40892. if (stanza.getAttribute("type") === "error") {
  40893. _converse.connection._changeConnectStatus(Strophe.Status.REGIFAIL, __('Something went wrong while establishing a connection with "%1$s". ' + 'Are you sure it exists?', this.domain));
  40894. return false;
  40895. }
  40896. if (stanza.getElementsByTagName("query").length !== 1) {
  40897. _converse.connection._changeConnectStatus(Strophe.Status.REGIFAIL, "unknown");
  40898. return false;
  40899. }
  40900. this.setFields(stanza);
  40901. if (!this.model.get('registration_form_rendered')) {
  40902. this.renderRegistrationForm(stanza);
  40903. }
  40904. return false;
  40905. },
  40906. reset: function reset(settings) {
  40907. var defaults = {
  40908. fields: {},
  40909. urls: [],
  40910. title: "",
  40911. instructions: "",
  40912. registered: false,
  40913. _registering: false,
  40914. domain: null,
  40915. form_type: null
  40916. };
  40917. _.extend(this, defaults);
  40918. if (settings) {
  40919. _.extend(this, _.pick(settings, _.keys(defaults)));
  40920. }
  40921. },
  40922. onFormSubmission: function onFormSubmission(ev) {
  40923. /* Event handler when the #converse-register form is
  40924. * submitted.
  40925. *
  40926. * Depending on the available input fields, we delegate to
  40927. * other methods.
  40928. */
  40929. if (ev && ev.preventDefault) {
  40930. ev.preventDefault();
  40931. }
  40932. if (_.isNull(ev.target.querySelector('input[name=domain]'))) {
  40933. this.submitRegistrationForm(ev.target);
  40934. } else {
  40935. this.onProviderChosen(ev.target);
  40936. }
  40937. },
  40938. onProviderChosen: function onProviderChosen(form) {
  40939. /* Callback method that gets called when the user has chosen an
  40940. * XMPP provider.
  40941. *
  40942. * Parameters:
  40943. * (HTMLElement) form - The form that was submitted
  40944. */
  40945. var domain_input = form.querySelector('input[name=domain]'),
  40946. domain = _.get(domain_input, 'value');
  40947. if (!domain) {
  40948. // TODO: add validation message
  40949. domain_input.classList.add('error');
  40950. return;
  40951. }
  40952. form.querySelector('input[type=submit]').classList.add('hidden');
  40953. this.fetchRegistrationForm(domain.trim());
  40954. },
  40955. fetchRegistrationForm: function fetchRegistrationForm(domain_name) {
  40956. /* This is called with a domain name based on which, it fetches a
  40957. * registration form from the requested domain.
  40958. *
  40959. * Parameters:
  40960. * (String) domain_name - XMPP server domain
  40961. */
  40962. if (!this.model.get('registration_form_rendered')) {
  40963. this.renderRegistrationRequest();
  40964. }
  40965. this.reset({
  40966. domain: Strophe.getDomainFromJid(domain_name),
  40967. _registering: true
  40968. });
  40969. _converse.connection.connect(this.domain, "", this.onConnectStatusChanged.bind(this));
  40970. return false;
  40971. },
  40972. renderRegistrationRequest: function renderRegistrationRequest() {
  40973. /* Clear the form and inform the user that the registration
  40974. * form is being fetched.
  40975. */
  40976. this.clearRegistrationForm().insertAdjacentHTML('beforeend', tpl_registration_request({
  40977. '__': _converse.__,
  40978. 'cancel': _converse.registration_domain
  40979. }));
  40980. },
  40981. giveFeedback: function giveFeedback(message, klass) {
  40982. var feedback = this.el.querySelector('.reg-feedback');
  40983. if (!_.isNull(feedback)) {
  40984. feedback.parentNode.removeChild(feedback);
  40985. }
  40986. var form = this.el.querySelector('form');
  40987. form.insertAdjacentHTML('afterbegin', '<span class="reg-feedback"></span>');
  40988. feedback = form.querySelector('.reg-feedback');
  40989. feedback.textContent = message;
  40990. if (klass) {
  40991. feedback.classList.add(klass);
  40992. }
  40993. },
  40994. clearRegistrationForm: function clearRegistrationForm() {
  40995. var form = this.el.querySelector('form');
  40996. form.innerHTML = '';
  40997. this.model.set('registration_form_rendered', false);
  40998. return form;
  40999. },
  41000. showSpinner: function showSpinner() {
  41001. var form = this.el.querySelector('form');
  41002. form.innerHTML = tpl_spinner();
  41003. this.model.set('registration_form_rendered', false);
  41004. return this;
  41005. },
  41006. onConnectStatusChanged: function onConnectStatusChanged(status_code) {
  41007. /* Callback function called by Strophe whenever the
  41008. * connection status changes.
  41009. *
  41010. * Passed to Strophe specifically during a registration
  41011. * attempt.
  41012. *
  41013. * Parameters:
  41014. * (Integer) status_code - The Stroph.Status status code
  41015. */
  41016. _converse.log('converse-register: onConnectStatusChanged');
  41017. if (_.includes([Strophe.Status.DISCONNECTED, Strophe.Status.CONNFAIL, Strophe.Status.REGIFAIL, Strophe.Status.NOTACCEPTABLE, Strophe.Status.CONFLICT], status_code)) {
  41018. _converse.log("Problem during registration: Strophe.Status is ".concat(_converse.CONNECTION_STATUS[status_code]), Strophe.LogLevel.ERROR);
  41019. this.abortRegistration();
  41020. } else if (status_code === Strophe.Status.REGISTERED) {
  41021. _converse.log("Registered successfully.");
  41022. _converse.connection.reset();
  41023. this.showSpinner();
  41024. if (_.includes(["converse/login", "converse/register"], Backbone.history.getFragment())) {
  41025. _converse.router.navigate('', {
  41026. 'replace': true
  41027. });
  41028. }
  41029. if (this.fields.password && this.fields.username) {
  41030. // automatically log the user in
  41031. _converse.connection.connect(this.fields.username.toLowerCase() + '@' + this.domain.toLowerCase(), this.fields.password, _converse.onConnectStatusChanged);
  41032. this.giveFeedback(__('Now logging you in'), 'info');
  41033. } else {
  41034. _converse.chatboxviews.get('controlbox').renderLoginPanel();
  41035. _converse.giveFeedback(__('Registered successfully'));
  41036. }
  41037. this.reset();
  41038. }
  41039. },
  41040. renderLegacyRegistrationForm: function renderLegacyRegistrationForm(form) {
  41041. var _this2 = this;
  41042. _.each(_.keys(this.fields), function (key) {
  41043. if (key === "username") {
  41044. form.insertAdjacentHTML('beforeend', tpl_form_username({
  41045. 'domain': " @".concat(_this2.domain),
  41046. 'name': key,
  41047. 'type': "text",
  41048. 'label': key,
  41049. 'value': '',
  41050. 'required': true
  41051. }));
  41052. } else {
  41053. form.insertAdjacentHTML('beforeend', tpl_form_input({
  41054. 'label': key,
  41055. 'name': key,
  41056. 'placeholder': key,
  41057. 'required': true,
  41058. 'type': key === 'password' || key === 'email' ? key : "text",
  41059. 'value': ''
  41060. }));
  41061. }
  41062. }); // Show urls
  41063. _.each(this.urls, function (url) {
  41064. form.insertAdjacentHTML('afterend', '<a target="blank" rel="noopener" href="' + url + '">' + url + '</a>');
  41065. });
  41066. },
  41067. renderRegistrationForm: function renderRegistrationForm(stanza) {
  41068. var _this3 = this;
  41069. /* Renders the registration form based on the XForm fields
  41070. * received from the XMPP server.
  41071. *
  41072. * Parameters:
  41073. * (XMLElement) stanza - The IQ stanza received from the XMPP server.
  41074. */
  41075. var form = this.el.querySelector('form');
  41076. form.innerHTML = tpl_registration_form({
  41077. '__': _converse.__,
  41078. 'domain': this.domain,
  41079. 'title': this.title,
  41080. 'instructions': this.instructions,
  41081. 'registration_domain': _converse.registration_domain
  41082. });
  41083. var buttons = form.querySelector('fieldset.buttons');
  41084. if (this.form_type === 'xform') {
  41085. _.each(stanza.querySelectorAll('field'), function (field) {
  41086. buttons.insertAdjacentHTML('beforebegin', utils.xForm2webForm(field, stanza, _this3.domain));
  41087. });
  41088. } else {
  41089. this.renderLegacyRegistrationForm(form);
  41090. }
  41091. if (!this.fields) {
  41092. form.querySelector('.button-primary').classList.add('hidden');
  41093. }
  41094. form.classList.remove('hidden');
  41095. this.model.set('registration_form_rendered', true);
  41096. },
  41097. showValidationError: function showValidationError(message) {
  41098. var form = this.el.querySelector('form');
  41099. var flash = form.querySelector('.form-errors');
  41100. if (_.isNull(flash)) {
  41101. flash = '<div class="form-errors hidden"></div>';
  41102. var instructions = form.querySelector('p.instructions');
  41103. if (_.isNull(instructions)) {
  41104. form.insertAdjacentHTML('afterbegin', flash);
  41105. } else {
  41106. instructions.insertAdjacentHTML('afterend', flash);
  41107. }
  41108. flash = form.querySelector('.form-errors');
  41109. } else {
  41110. flash.innerHTML = '';
  41111. }
  41112. flash.insertAdjacentHTML('beforeend', '<p class="form-help error">' + message + '</p>');
  41113. flash.classList.remove('hidden');
  41114. },
  41115. reportErrors: function reportErrors(stanza) {
  41116. var _this4 = this;
  41117. /* Report back to the user any error messages received from the
  41118. * XMPP server after attempted registration.
  41119. *
  41120. * Parameters:
  41121. * (XMLElement) stanza - The IQ stanza received from the
  41122. * XMPP server.
  41123. */
  41124. var errors = stanza.querySelectorAll('error');
  41125. _.each(errors, function (error) {
  41126. _this4.showValidationError(error.textContent);
  41127. });
  41128. if (!errors.length) {
  41129. var message = __('The provider rejected your registration attempt. ' + 'Please check the values you entered for correctness.');
  41130. this.showValidationError(message);
  41131. }
  41132. },
  41133. renderProviderChoiceForm: function renderProviderChoiceForm(ev) {
  41134. if (ev && ev.preventDefault) {
  41135. ev.preventDefault();
  41136. }
  41137. _converse.connection._proto._abortAllRequests();
  41138. _converse.connection.reset();
  41139. this.render();
  41140. },
  41141. abortRegistration: function abortRegistration() {
  41142. _converse.connection._proto._abortAllRequests();
  41143. _converse.connection.reset();
  41144. if (this.model.get('registration_form_rendered')) {
  41145. if (_converse.registration_domain && this.model.get('registration_form_rendered')) {
  41146. this.fetchRegistrationForm(_converse.registration_domain);
  41147. }
  41148. } else {
  41149. this.render();
  41150. }
  41151. },
  41152. submitRegistrationForm: function submitRegistrationForm(form) {
  41153. /* Handler, when the user submits the registration form.
  41154. * Provides form error feedback or starts the registration
  41155. * process.
  41156. *
  41157. * Parameters:
  41158. * (HTMLElement) form - The HTML form that was submitted
  41159. */
  41160. var has_empty_inputs = _.reduce(this.el.querySelectorAll('input.required'), function (result, input) {
  41161. if (input.value === '') {
  41162. input.classList.add('error');
  41163. return result + 1;
  41164. }
  41165. return result;
  41166. }, 0);
  41167. if (has_empty_inputs) {
  41168. return;
  41169. }
  41170. var inputs = sizzle(':input:not([type=button]):not([type=submit])', form),
  41171. iq = $iq({
  41172. 'type': 'set',
  41173. 'id': _converse.connection.getUniqueId()
  41174. }).c("query", {
  41175. xmlns: Strophe.NS.REGISTER
  41176. });
  41177. if (this.form_type === 'xform') {
  41178. iq.c("x", {
  41179. xmlns: Strophe.NS.XFORM,
  41180. type: 'submit'
  41181. });
  41182. _.each(inputs, function (input) {
  41183. iq.cnode(utils.webForm2xForm(input)).up();
  41184. });
  41185. } else {
  41186. _.each(inputs, function (input) {
  41187. iq.c(input.getAttribute('name'), {}, input.value);
  41188. });
  41189. }
  41190. _converse.connection._addSysHandler(this._onRegisterIQ.bind(this), null, "iq", null, null);
  41191. _converse.connection.send(iq);
  41192. this.setFields(iq.tree());
  41193. },
  41194. setFields: function setFields(stanza) {
  41195. /* Stores the values that will be sent to the XMPP server
  41196. * during attempted registration.
  41197. *
  41198. * Parameters:
  41199. * (XMLElement) stanza - the IQ stanza that will be sent to the XMPP server.
  41200. */
  41201. var query = stanza.querySelector('query');
  41202. var xform = sizzle("x[xmlns=\"".concat(Strophe.NS.XFORM, "\"]"), query);
  41203. if (xform.length > 0) {
  41204. this._setFieldsFromXForm(xform.pop());
  41205. } else {
  41206. this._setFieldsFromLegacy(query);
  41207. }
  41208. },
  41209. _setFieldsFromLegacy: function _setFieldsFromLegacy(query) {
  41210. var _this5 = this;
  41211. _.each(query.children, function (field) {
  41212. if (field.tagName.toLowerCase() === 'instructions') {
  41213. _this5.instructions = Strophe.getText(field);
  41214. return;
  41215. } else if (field.tagName.toLowerCase() === 'x') {
  41216. if (field.getAttribute('xmlns') === 'jabber:x:oob') {
  41217. _this5.urls.concat(_.map(field.querySelectorAll('url'), 'textContent'));
  41218. }
  41219. return;
  41220. }
  41221. _this5.fields[field.tagName.toLowerCase()] = Strophe.getText(field);
  41222. });
  41223. this.form_type = 'legacy';
  41224. },
  41225. _setFieldsFromXForm: function _setFieldsFromXForm(xform) {
  41226. var _this6 = this;
  41227. this.title = _.get(xform.querySelector('title'), 'textContent');
  41228. this.instructions = _.get(xform.querySelector('instructions'), 'textContent');
  41229. _.each(xform.querySelectorAll('field'), function (field) {
  41230. var _var = field.getAttribute('var');
  41231. if (_var) {
  41232. _this6.fields[_var.toLowerCase()] = _.get(field.querySelector('value'), 'textContent', '');
  41233. } else {
  41234. // TODO: other option seems to be type="fixed"
  41235. _converse.log("Found field we couldn't parse", Strophe.LogLevel.WARN);
  41236. }
  41237. });
  41238. this.form_type = 'xform';
  41239. },
  41240. _onRegisterIQ: function _onRegisterIQ(stanza) {
  41241. /* Callback method that gets called when a return IQ stanza
  41242. * is received from the XMPP server, after attempting to
  41243. * register a new user.
  41244. *
  41245. * Parameters:
  41246. * (XMLElement) stanza - The IQ stanza.
  41247. */
  41248. if (stanza.getAttribute("type") === "error") {
  41249. _converse.log("Registration failed.", Strophe.LogLevel.ERROR);
  41250. this.reportErrors(stanza);
  41251. var error = stanza.getElementsByTagName("error");
  41252. if (error.length !== 1) {
  41253. _converse.connection._changeConnectStatus(Strophe.Status.REGIFAIL, "unknown");
  41254. return false;
  41255. }
  41256. error = error[0].firstChild.tagName.toLowerCase();
  41257. if (error === 'conflict') {
  41258. _converse.connection._changeConnectStatus(Strophe.Status.CONFLICT, error);
  41259. } else if (error === 'not-acceptable') {
  41260. _converse.connection._changeConnectStatus(Strophe.Status.NOTACCEPTABLE, error);
  41261. } else {
  41262. _converse.connection._changeConnectStatus(Strophe.Status.REGIFAIL, error);
  41263. }
  41264. } else {
  41265. _converse.connection._changeConnectStatus(Strophe.Status.REGISTERED, null);
  41266. }
  41267. return false;
  41268. }
  41269. });
  41270. }
  41271. });
  41272. });
  41273. /***/ }),
  41274. /***/ "./src/converse-roomslist.js":
  41275. /*!***********************************!*\
  41276. !*** ./src/converse-roomslist.js ***!
  41277. \***********************************/
  41278. /*! no static exports found */
  41279. /***/ (function(module, exports, __webpack_require__) {
  41280. "use strict";
  41281. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  41282. // Converse.js (A browser based XMPP chat client)
  41283. // http://conversejs.org
  41284. //
  41285. // Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
  41286. // Licensed under the Mozilla Public License (MPLv2)
  41287. //
  41288. /*global define */
  41289. /* This is a non-core Converse.js plugin which shows a list of currently open
  41290. * rooms in the "Rooms Panel" of the ControlBox.
  41291. */
  41292. (function (root, factory) {
  41293. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! converse-muc */ "./src/converse-muc.js"), __webpack_require__(/*! templates/rooms_list.html */ "./src/templates/rooms_list.html"), __webpack_require__(/*! templates/rooms_list_item.html */ "./src/templates/rooms_list_item.html")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  41294. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  41295. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  41296. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  41297. })(void 0, function (converse, muc, tpl_rooms_list, tpl_rooms_list_item) {
  41298. var _converse$env = converse.env,
  41299. Backbone = _converse$env.Backbone,
  41300. Promise = _converse$env.Promise,
  41301. Strophe = _converse$env.Strophe,
  41302. b64_sha1 = _converse$env.b64_sha1,
  41303. sizzle = _converse$env.sizzle,
  41304. _ = _converse$env._;
  41305. var u = converse.env.utils;
  41306. converse.plugins.add('converse-roomslist', {
  41307. /* Optional dependencies are other plugins which might be
  41308. * overridden or relied upon, and therefore need to be loaded before
  41309. * this plugin. They are called "optional" because they might not be
  41310. * available, in which case any overrides applicable to them will be
  41311. * ignored.
  41312. *
  41313. * It's possible however to make optional dependencies non-optional.
  41314. * If the setting "strict_plugin_dependencies" is set to true,
  41315. * an error will be raised if the plugin is not found.
  41316. *
  41317. * NB: These plugins need to have already been loaded via require.js.
  41318. */
  41319. dependencies: ["converse-singleton", "converse-controlbox", "converse-muc", "converse-bookmarks"],
  41320. initialize: function initialize() {
  41321. /* The initialize function gets called as soon as the plugin is
  41322. * loaded by converse.js's plugin machinery.
  41323. */
  41324. var _converse = this._converse,
  41325. __ = _converse.__;
  41326. _converse.OpenRooms = Backbone.Collection.extend({
  41327. comparator: function comparator(room) {
  41328. if (room.get('bookmarked')) {
  41329. var bookmark = _.head(_converse.bookmarksview.model.where({
  41330. 'jid': room.get('jid')
  41331. }));
  41332. return bookmark.get('name');
  41333. } else {
  41334. return room.get('name');
  41335. }
  41336. },
  41337. initialize: function initialize() {
  41338. _converse.chatboxes.on('add', this.onChatBoxAdded, this);
  41339. _converse.chatboxes.on('change:hidden', this.onChatBoxChanged, this);
  41340. _converse.chatboxes.on('change:bookmarked', this.onChatBoxChanged, this);
  41341. _converse.chatboxes.on('change:name', this.onChatBoxChanged, this);
  41342. _converse.chatboxes.on('change:num_unread', this.onChatBoxChanged, this);
  41343. _converse.chatboxes.on('change:num_unread_general', this.onChatBoxChanged, this);
  41344. _converse.chatboxes.on('remove', this.onChatBoxRemoved, this);
  41345. this.reset(_.map(_converse.chatboxes.where({
  41346. 'type': 'chatroom'
  41347. }), 'attributes'));
  41348. },
  41349. onChatBoxAdded: function onChatBoxAdded(item) {
  41350. if (item.get('type') === 'chatroom') {
  41351. this.create(item.attributes);
  41352. }
  41353. },
  41354. onChatBoxChanged: function onChatBoxChanged(item) {
  41355. if (item.get('type') === 'chatroom') {
  41356. var room = this.get(item.get('jid'));
  41357. if (!_.isNil(room)) {
  41358. room.set(item.attributes);
  41359. }
  41360. }
  41361. },
  41362. onChatBoxRemoved: function onChatBoxRemoved(item) {
  41363. if (item.get('type') === 'chatroom') {
  41364. var room = this.get(item.get('jid'));
  41365. this.remove(room);
  41366. }
  41367. }
  41368. });
  41369. _converse.RoomsList = Backbone.Model.extend({
  41370. defaults: {
  41371. "toggle-state": _converse.OPENED
  41372. }
  41373. });
  41374. _converse.RoomsListElementView = Backbone.VDOMView.extend({
  41375. events: {
  41376. 'click .room-info': 'showRoomDetailsModal'
  41377. },
  41378. initialize: function initialize() {
  41379. this.model.on('destroy', this.remove, this);
  41380. this.model.on('remove', this.remove, this);
  41381. this.model.on('change:bookmarked', this.render, this);
  41382. this.model.on('change:hidden', this.render, this);
  41383. this.model.on('change:name', this.render, this);
  41384. this.model.on('change:num_unread', this.render, this);
  41385. this.model.on('change:num_unread_general', this.render, this);
  41386. },
  41387. toHTML: function toHTML() {
  41388. return tpl_rooms_list_item(_.extend(this.model.toJSON(), {
  41389. // XXX: By the time this renders, the _converse.bookmarks
  41390. // collection should already exist if bookmarks are
  41391. // supported by the XMPP server. So we can use it
  41392. // as a check for support (other ways of checking are async).
  41393. 'allow_bookmarks': _converse.allow_bookmarks && _converse.bookmarks,
  41394. 'currently_open': _converse.isSingleton() && !this.model.get('hidden'),
  41395. 'info_leave_room': __('Leave this groupchat'),
  41396. 'info_remove_bookmark': __('Unbookmark this groupchat'),
  41397. 'info_add_bookmark': __('Bookmark this groupchat'),
  41398. 'info_title': __('Show more information on this groupchat'),
  41399. 'name': this.getRoomsListElementName(),
  41400. 'open_title': __('Click to open this groupchat')
  41401. }));
  41402. },
  41403. showRoomDetailsModal: function showRoomDetailsModal(ev) {
  41404. var room = _converse.chatboxes.get(this.model.get('jid'));
  41405. ev.preventDefault();
  41406. if (_.isUndefined(room.room_details_modal)) {
  41407. room.room_details_modal = new _converse.RoomDetailsModal({
  41408. 'model': room
  41409. });
  41410. }
  41411. room.room_details_modal.show(ev);
  41412. },
  41413. getRoomsListElementName: function getRoomsListElementName() {
  41414. if (this.model.get('bookmarked') && _converse.bookmarksview) {
  41415. var bookmark = _.head(_converse.bookmarksview.model.where({
  41416. 'jid': this.model.get('jid')
  41417. }));
  41418. return bookmark.get('name');
  41419. } else {
  41420. return this.model.get('name');
  41421. }
  41422. }
  41423. });
  41424. _converse.RoomsListView = Backbone.OrderedListView.extend({
  41425. tagName: 'div',
  41426. className: 'open-rooms-list list-container rooms-list-container',
  41427. events: {
  41428. 'click .add-bookmark': 'addBookmark',
  41429. 'click .close-room': 'closeRoom',
  41430. 'click .list-toggle': 'toggleRoomsList',
  41431. 'click .remove-bookmark': 'removeBookmark',
  41432. 'click .open-room': 'openRoom'
  41433. },
  41434. listSelector: '.rooms-list',
  41435. ItemView: _converse.RoomsListElementView,
  41436. subviewIndex: 'jid',
  41437. initialize: function initialize() {
  41438. Backbone.OrderedListView.prototype.initialize.apply(this, arguments);
  41439. this.model.on('add', this.showOrHide, this);
  41440. this.model.on('remove', this.showOrHide, this);
  41441. var storage = _converse.config.get('storage'),
  41442. id = b64_sha1("converse.roomslist".concat(_converse.bare_jid));
  41443. this.list_model = new _converse.RoomsList({
  41444. 'id': id
  41445. });
  41446. this.list_model.browserStorage = new Backbone.BrowserStorage[storage](id);
  41447. this.list_model.fetch();
  41448. this.render();
  41449. this.sortAndPositionAllItems();
  41450. },
  41451. render: function render() {
  41452. this.el.innerHTML = tpl_rooms_list({
  41453. 'toggle_state': this.list_model.get('toggle-state'),
  41454. 'desc_rooms': __('Click to toggle the list of open groupchats'),
  41455. 'label_rooms': __('Open Groupchats'),
  41456. '_converse': _converse
  41457. });
  41458. if (this.list_model.get('toggle-state') !== _converse.OPENED) {
  41459. this.el.querySelector('.open-rooms-list').classList.add('collapsed');
  41460. }
  41461. this.showOrHide();
  41462. this.insertIntoControlBox();
  41463. return this;
  41464. },
  41465. insertIntoControlBox: function insertIntoControlBox() {
  41466. var controlboxview = _converse.chatboxviews.get('controlbox');
  41467. if (!_.isUndefined(controlboxview) && !u.rootContains(_converse.root, this.el)) {
  41468. var el = controlboxview.el.querySelector('.open-rooms-list');
  41469. if (!_.isNull(el)) {
  41470. el.parentNode.replaceChild(this.el, el);
  41471. }
  41472. }
  41473. },
  41474. hide: function hide() {
  41475. u.hideElement(this.el);
  41476. },
  41477. show: function show() {
  41478. u.showElement(this.el);
  41479. },
  41480. openRoom: function openRoom(ev) {
  41481. ev.preventDefault();
  41482. var name = ev.target.textContent;
  41483. var jid = ev.target.getAttribute('data-room-jid');
  41484. var data = {
  41485. 'name': name || Strophe.unescapeNode(Strophe.getNodeFromJid(jid)) || jid
  41486. };
  41487. _converse.api.rooms.open(jid, data);
  41488. },
  41489. closeRoom: function closeRoom(ev) {
  41490. ev.preventDefault();
  41491. var name = ev.target.getAttribute('data-room-name');
  41492. var jid = ev.target.getAttribute('data-room-jid');
  41493. if (confirm(__("Are you sure you want to leave the groupchat %1$s?", name))) {
  41494. // TODO: replace with API call
  41495. _converse.chatboxviews.get(jid).close();
  41496. }
  41497. },
  41498. showOrHide: function showOrHide(item) {
  41499. if (!this.model.models.length) {
  41500. u.hideElement(this.el);
  41501. } else {
  41502. u.showElement(this.el);
  41503. }
  41504. },
  41505. removeBookmark: _converse.removeBookmarkViaEvent,
  41506. addBookmark: _converse.addBookmarkViaEvent,
  41507. toggleRoomsList: function toggleRoomsList(ev) {
  41508. var _this = this;
  41509. if (ev && ev.preventDefault) {
  41510. ev.preventDefault();
  41511. }
  41512. var icon_el = ev.target.querySelector('.fa');
  41513. if (icon_el.classList.contains("fa-caret-down")) {
  41514. u.slideIn(this.el.querySelector('.open-rooms-list')).then(function () {
  41515. _this.list_model.save({
  41516. 'toggle-state': _converse.CLOSED
  41517. });
  41518. icon_el.classList.remove("fa-caret-down");
  41519. icon_el.classList.add("fa-caret-right");
  41520. });
  41521. } else {
  41522. u.slideOut(this.el.querySelector('.open-rooms-list')).then(function () {
  41523. _this.list_model.save({
  41524. 'toggle-state': _converse.OPENED
  41525. });
  41526. icon_el.classList.remove("fa-caret-right");
  41527. icon_el.classList.add("fa-caret-down");
  41528. });
  41529. }
  41530. }
  41531. });
  41532. var initRoomsListView = function initRoomsListView() {
  41533. var storage = _converse.config.get('storage'),
  41534. id = b64_sha1("converse.open-rooms-{_converse.bare_jid}"),
  41535. model = new _converse.OpenRooms();
  41536. model.browserStorage = new Backbone.BrowserStorage[storage](id);
  41537. _converse.rooms_list_view = new _converse.RoomsListView({
  41538. 'model': model
  41539. });
  41540. };
  41541. if (_converse.allow_bookmarks) {
  41542. u.onMultipleEvents([{
  41543. 'object': _converse,
  41544. 'event': 'chatBoxesFetched'
  41545. }, {
  41546. 'object': _converse,
  41547. 'event': 'roomsPanelRendered'
  41548. }, {
  41549. 'object': _converse,
  41550. 'event': 'bookmarksInitialized'
  41551. }], initRoomsListView);
  41552. } else {
  41553. u.onMultipleEvents([{
  41554. 'object': _converse,
  41555. 'event': 'chatBoxesFetched'
  41556. }, {
  41557. 'object': _converse,
  41558. 'event': 'roomsPanelRendered'
  41559. }], initRoomsListView);
  41560. }
  41561. _converse.api.listen.on('reconnected', initRoomsListView);
  41562. }
  41563. });
  41564. });
  41565. /***/ }),
  41566. /***/ "./src/converse-roster.js":
  41567. /*!********************************!*\
  41568. !*** ./src/converse-roster.js ***!
  41569. \********************************/
  41570. /*! no static exports found */
  41571. /***/ (function(module, exports, __webpack_require__) {
  41572. "use strict";
  41573. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  41574. function _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return right[Symbol.hasInstance](left); } else { return left instanceof right; } }
  41575. // Converse.js
  41576. // http://conversejs.org
  41577. //
  41578. // Copyright (c) 2012-2018, the Converse.js developers
  41579. // Licensed under the Mozilla Public License (MPLv2)
  41580. (function (root, factory) {
  41581. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  41582. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  41583. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  41584. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  41585. })(void 0, function (converse) {
  41586. "use strict";
  41587. var _converse$env = converse.env,
  41588. Backbone = _converse$env.Backbone,
  41589. Promise = _converse$env.Promise,
  41590. Strophe = _converse$env.Strophe,
  41591. $iq = _converse$env.$iq,
  41592. $pres = _converse$env.$pres,
  41593. b64_sha1 = _converse$env.b64_sha1,
  41594. moment = _converse$env.moment,
  41595. sizzle = _converse$env.sizzle,
  41596. _ = _converse$env._;
  41597. var u = converse.env.utils;
  41598. converse.plugins.add('converse-roster', {
  41599. dependencies: ["converse-vcard"],
  41600. initialize: function initialize() {
  41601. /* The initialize function gets called as soon as the plugin is
  41602. * loaded by converse.js's plugin machinery.
  41603. */
  41604. var _converse = this._converse,
  41605. __ = _converse.__;
  41606. _converse.api.settings.update({
  41607. 'allow_contact_requests': true,
  41608. 'auto_subscribe': false,
  41609. 'synchronize_availability': true
  41610. });
  41611. _converse.api.promises.add(['cachedRoster', 'roster', 'rosterContactsFetched', 'rosterGroupsFetched', 'rosterInitialized']);
  41612. _converse.registerPresenceHandler = function () {
  41613. _converse.unregisterPresenceHandler();
  41614. _converse.presence_ref = _converse.connection.addHandler(function (presence) {
  41615. _converse.roster.presenceHandler(presence);
  41616. return true;
  41617. }, null, 'presence', null);
  41618. };
  41619. _converse.initRoster = function () {
  41620. /* Initialize the Bakcbone collections that represent the contats
  41621. * roster and the roster groups.
  41622. */
  41623. var storage = _converse.config.get('storage');
  41624. _converse.roster = new _converse.RosterContacts();
  41625. _converse.roster.browserStorage = new Backbone.BrowserStorage[storage](b64_sha1("converse.contacts-".concat(_converse.bare_jid)));
  41626. _converse.roster.data = new Backbone.Model();
  41627. var id = b64_sha1("converse-roster-model-".concat(_converse.bare_jid));
  41628. _converse.roster.data.id = id;
  41629. _converse.roster.data.browserStorage = new Backbone.BrowserStorage[storage](id);
  41630. _converse.roster.data.fetch();
  41631. _converse.rostergroups = new _converse.RosterGroups();
  41632. _converse.rostergroups.browserStorage = new Backbone.BrowserStorage[storage](b64_sha1("converse.roster.groups".concat(_converse.bare_jid)));
  41633. _converse.emit('rosterInitialized');
  41634. };
  41635. _converse.populateRoster = function () {
  41636. var ignore_cache = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
  41637. /* Fetch all the roster groups, and then the roster contacts.
  41638. * Emit an event after fetching is done in each case.
  41639. *
  41640. * Parameters:
  41641. * (Bool) ignore_cache - If set to to true, the local cache
  41642. * will be ignored it's guaranteed that the XMPP server
  41643. * will be queried for the roster.
  41644. */
  41645. if (ignore_cache) {
  41646. _converse.send_initial_presence = true;
  41647. _converse.roster.fetchFromServer().then(function () {
  41648. _converse.emit('rosterContactsFetched');
  41649. _converse.sendInitialPresence();
  41650. }).catch(function (reason) {
  41651. _converse.log(reason, Strophe.LogLevel.ERROR);
  41652. _converse.sendInitialPresence();
  41653. });
  41654. } else {
  41655. _converse.rostergroups.fetchRosterGroups().then(function () {
  41656. _converse.emit('rosterGroupsFetched');
  41657. return _converse.roster.fetchRosterContacts();
  41658. }).then(function () {
  41659. _converse.emit('rosterContactsFetched');
  41660. _converse.sendInitialPresence();
  41661. }).catch(function (reason) {
  41662. _converse.log(reason, Strophe.LogLevel.ERROR);
  41663. _converse.sendInitialPresence();
  41664. });
  41665. }
  41666. };
  41667. _converse.Presence = Backbone.Model.extend({
  41668. defaults: function defaults() {
  41669. return {
  41670. 'show': 'offline',
  41671. 'resources': {}
  41672. };
  41673. },
  41674. getHighestPriorityResource: function getHighestPriorityResource() {
  41675. /* Return the resource with the highest priority.
  41676. *
  41677. * If multiple resources have the same priority, take the
  41678. * latest one.
  41679. */
  41680. var resources = this.get('resources');
  41681. if (_.isObject(resources) && _.size(resources)) {
  41682. var val = _.flow(_.values, _.partial(_.sortBy, _, ['priority', 'timestamp']), _.reverse)(resources)[0];
  41683. if (!_.isUndefined(val)) {
  41684. return val;
  41685. }
  41686. }
  41687. },
  41688. addResource: function addResource(presence) {
  41689. /* Adds a new resource and it's associated attributes as taken
  41690. * from the passed in presence stanza.
  41691. *
  41692. * Also updates the presence if the resource has higher priority (and is newer).
  41693. */
  41694. var jid = presence.getAttribute('from'),
  41695. show = _.propertyOf(presence.querySelector('show'))('textContent') || 'online',
  41696. resource = Strophe.getResourceFromJid(jid),
  41697. delay = sizzle("delay[xmlns=\"".concat(Strophe.NS.DELAY, "\"]"), presence).pop(),
  41698. timestamp = _.isNil(delay) ? moment().format() : moment(delay.getAttribute('stamp')).format();
  41699. var priority = _.propertyOf(presence.querySelector('priority'))('textContent') || 0;
  41700. priority = _.isNaN(parseInt(priority, 10)) ? 0 : parseInt(priority, 10);
  41701. var resources = _.isObject(this.get('resources')) ? this.get('resources') : {};
  41702. resources[resource] = {
  41703. 'name': resource,
  41704. 'priority': priority,
  41705. 'show': show,
  41706. 'timestamp': timestamp
  41707. };
  41708. var changed = {
  41709. 'resources': resources
  41710. };
  41711. var hpr = this.getHighestPriorityResource();
  41712. if (priority == hpr.priority && timestamp == hpr.timestamp) {
  41713. // Only set the "global" presence if this is the newest resource
  41714. // with the highest priority
  41715. changed.show = show;
  41716. }
  41717. this.save(changed);
  41718. return resources;
  41719. },
  41720. removeResource: function removeResource(resource) {
  41721. /* Remove the passed in resource from the resources map.
  41722. *
  41723. * Also redetermines the presence given that there's one less
  41724. * resource.
  41725. */
  41726. var resources = this.get('resources');
  41727. if (!_.isObject(resources)) {
  41728. resources = {};
  41729. } else {
  41730. delete resources[resource];
  41731. }
  41732. this.save({
  41733. 'resources': resources,
  41734. 'show': _.propertyOf(this.getHighestPriorityResource())('show') || 'offline'
  41735. });
  41736. }
  41737. });
  41738. _converse.Presences = Backbone.Collection.extend({
  41739. model: _converse.Presence
  41740. });
  41741. _converse.ModelWithVCardAndPresence = Backbone.Model.extend({
  41742. initialize: function initialize() {
  41743. this.setVCard();
  41744. this.setPresence();
  41745. },
  41746. setVCard: function setVCard() {
  41747. var jid = this.get('jid');
  41748. this.vcard = _converse.vcards.findWhere({
  41749. 'jid': jid
  41750. }) || _converse.vcards.create({
  41751. 'jid': jid
  41752. });
  41753. },
  41754. setPresence: function setPresence() {
  41755. var jid = this.get('jid');
  41756. this.presence = _converse.presences.findWhere({
  41757. 'jid': jid
  41758. }) || _converse.presences.create({
  41759. 'jid': jid
  41760. });
  41761. }
  41762. });
  41763. _converse.RosterContact = _converse.ModelWithVCardAndPresence.extend({
  41764. defaults: {
  41765. 'chat_state': undefined,
  41766. 'image': _converse.DEFAULT_IMAGE,
  41767. 'image_type': _converse.DEFAULT_IMAGE_TYPE,
  41768. 'num_unread': 0,
  41769. 'status': ''
  41770. },
  41771. initialize: function initialize(attributes) {
  41772. var _this = this;
  41773. _converse.ModelWithVCardAndPresence.prototype.initialize.apply(this, arguments);
  41774. var jid = attributes.jid,
  41775. bare_jid = Strophe.getBareJidFromJid(jid).toLowerCase(),
  41776. resource = Strophe.getResourceFromJid(jid);
  41777. attributes.jid = bare_jid;
  41778. this.set(_.assignIn({
  41779. 'groups': [],
  41780. 'id': bare_jid,
  41781. 'jid': bare_jid,
  41782. 'user_id': Strophe.getNodeFromJid(jid)
  41783. }, attributes));
  41784. this.setChatBox();
  41785. this.presence.on('change:show', function () {
  41786. return _converse.emit('contactPresenceChanged', _this);
  41787. });
  41788. this.presence.on('change:show', function () {
  41789. return _this.trigger('presenceChanged');
  41790. });
  41791. },
  41792. setChatBox: function setChatBox() {
  41793. var chatbox = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  41794. chatbox = chatbox || _converse.chatboxes.get(this.get('jid'));
  41795. if (chatbox) {
  41796. this.chatbox = chatbox;
  41797. this.chatbox.on('change:hidden', this.render, this);
  41798. }
  41799. },
  41800. getDisplayName: function getDisplayName() {
  41801. return this.get('nickname') || this.vcard.get('nickname') || this.vcard.get('fullname') || this.get('jid');
  41802. },
  41803. getFullname: function getFullname() {
  41804. return this.vcard.get('fullname');
  41805. },
  41806. subscribe: function subscribe(message) {
  41807. /* Send a presence subscription request to this roster contact
  41808. *
  41809. * Parameters:
  41810. * (String) message - An optional message to explain the
  41811. * reason for the subscription request.
  41812. */
  41813. var pres = $pres({
  41814. to: this.get('jid'),
  41815. type: "subscribe"
  41816. });
  41817. if (message && message !== "") {
  41818. pres.c("status").t(message).up();
  41819. }
  41820. var nick = _converse.xmppstatus.vcard.get('nickname') || _converse.xmppstatus.vcard.get('fullname');
  41821. if (nick) {
  41822. pres.c('nick', {
  41823. 'xmlns': Strophe.NS.NICK
  41824. }).t(nick).up();
  41825. }
  41826. _converse.connection.send(pres);
  41827. this.save('ask', "subscribe"); // ask === 'subscribe' Means we have asked to subscribe to them.
  41828. return this;
  41829. },
  41830. ackSubscribe: function ackSubscribe() {
  41831. /* Upon receiving the presence stanza of type "subscribed",
  41832. * the user SHOULD acknowledge receipt of that subscription
  41833. * state notification by sending a presence stanza of type
  41834. * "subscribe" to the contact
  41835. */
  41836. _converse.connection.send($pres({
  41837. 'type': 'subscribe',
  41838. 'to': this.get('jid')
  41839. }));
  41840. },
  41841. ackUnsubscribe: function ackUnsubscribe() {
  41842. /* Upon receiving the presence stanza of type "unsubscribed",
  41843. * the user SHOULD acknowledge receipt of that subscription state
  41844. * notification by sending a presence stanza of type "unsubscribe"
  41845. * this step lets the user's server know that it MUST no longer
  41846. * send notification of the subscription state change to the user.
  41847. * Parameters:
  41848. * (String) jid - The Jabber ID of the user who is unsubscribing
  41849. */
  41850. _converse.connection.send($pres({
  41851. 'type': 'unsubscribe',
  41852. 'to': this.get('jid')
  41853. }));
  41854. this.removeFromRoster();
  41855. this.destroy();
  41856. },
  41857. unauthorize: function unauthorize(message) {
  41858. /* Unauthorize this contact's presence subscription
  41859. * Parameters:
  41860. * (String) message - Optional message to send to the person being unauthorized
  41861. */
  41862. _converse.rejectPresenceSubscription(this.get('jid'), message);
  41863. return this;
  41864. },
  41865. authorize: function authorize(message) {
  41866. /* Authorize presence subscription
  41867. * Parameters:
  41868. * (String) message - Optional message to send to the person being authorized
  41869. */
  41870. var pres = $pres({
  41871. 'to': this.get('jid'),
  41872. 'type': "subscribed"
  41873. });
  41874. if (message && message !== "") {
  41875. pres.c("status").t(message);
  41876. }
  41877. _converse.connection.send(pres);
  41878. return this;
  41879. },
  41880. removeFromRoster: function removeFromRoster(callback, errback) {
  41881. /* Instruct the XMPP server to remove this contact from our roster
  41882. * Parameters:
  41883. * (Function) callback
  41884. */
  41885. var iq = $iq({
  41886. type: 'set'
  41887. }).c('query', {
  41888. xmlns: Strophe.NS.ROSTER
  41889. }).c('item', {
  41890. jid: this.get('jid'),
  41891. subscription: "remove"
  41892. });
  41893. _converse.connection.sendIQ(iq, callback, errback);
  41894. return this;
  41895. }
  41896. });
  41897. _converse.RosterContacts = Backbone.Collection.extend({
  41898. model: _converse.RosterContact,
  41899. comparator: function comparator(contact1, contact2) {
  41900. var status1 = contact1.presence.get('show') || 'offline';
  41901. var status2 = contact2.presence.get('show') || 'offline';
  41902. if (_converse.STATUS_WEIGHTS[status1] === _converse.STATUS_WEIGHTS[status2]) {
  41903. var name1 = contact1.getDisplayName().toLowerCase();
  41904. var name2 = contact2.getDisplayName().toLowerCase();
  41905. return name1 < name2 ? -1 : name1 > name2 ? 1 : 0;
  41906. } else {
  41907. return _converse.STATUS_WEIGHTS[status1] < _converse.STATUS_WEIGHTS[status2] ? -1 : 1;
  41908. }
  41909. },
  41910. onConnected: function onConnected() {
  41911. /* Called as soon as the connection has been established
  41912. * (either after initial login, or after reconnection).
  41913. *
  41914. * Use the opportunity to register stanza handlers.
  41915. */
  41916. this.registerRosterHandler();
  41917. this.registerRosterXHandler();
  41918. },
  41919. registerRosterHandler: function registerRosterHandler() {
  41920. /* Register a handler for roster IQ "set" stanzas, which update
  41921. * roster contacts.
  41922. */
  41923. _converse.connection.addHandler(function (iq) {
  41924. _converse.roster.onRosterPush(iq);
  41925. return true;
  41926. }, Strophe.NS.ROSTER, 'iq', "set");
  41927. },
  41928. registerRosterXHandler: function registerRosterXHandler() {
  41929. /* Register a handler for RosterX message stanzas, which are
  41930. * used to suggest roster contacts to a user.
  41931. */
  41932. var t = 0;
  41933. _converse.connection.addHandler(function (msg) {
  41934. window.setTimeout(function () {
  41935. _converse.connection.flush();
  41936. _converse.roster.subscribeToSuggestedItems.bind(_converse.roster)(msg);
  41937. }, t);
  41938. t += msg.querySelectorAll('item').length * 250;
  41939. return true;
  41940. }, Strophe.NS.ROSTERX, 'message', null);
  41941. },
  41942. fetchRosterContacts: function fetchRosterContacts() {
  41943. var _this2 = this;
  41944. /* Fetches the roster contacts, first by trying the
  41945. * sessionStorage cache, and if that's empty, then by querying
  41946. * the XMPP server.
  41947. *
  41948. * Returns a promise which resolves once the contacts have been
  41949. * fetched.
  41950. */
  41951. var that = this;
  41952. return new Promise(function (resolve, reject) {
  41953. _this2.fetch({
  41954. 'add': true,
  41955. 'silent': true,
  41956. success: function success(collection) {
  41957. if (collection.length === 0 || that.rosterVersioningSupported() && !_converse.session.get('roster_fetched')) {
  41958. _converse.send_initial_presence = true;
  41959. _converse.roster.fetchFromServer().then(resolve).catch(reject);
  41960. } else {
  41961. _converse.emit('cachedRoster', collection);
  41962. resolve();
  41963. }
  41964. }
  41965. });
  41966. });
  41967. },
  41968. subscribeToSuggestedItems: function subscribeToSuggestedItems(msg) {
  41969. _.each(msg.querySelectorAll('item'), function (item) {
  41970. if (item.getAttribute('action') === 'add') {
  41971. _converse.roster.addAndSubscribe(item.getAttribute('jid'), _converse.xmppstatus.vcard.get('nickname') || _converse.xmppstatus.vcard.get('fullname'));
  41972. }
  41973. });
  41974. return true;
  41975. },
  41976. isSelf: function isSelf(jid) {
  41977. return u.isSameBareJID(jid, _converse.connection.jid);
  41978. },
  41979. addAndSubscribe: function addAndSubscribe(jid, name, groups, message, attributes) {
  41980. /* Add a roster contact and then once we have confirmation from
  41981. * the XMPP server we subscribe to that contact's presence updates.
  41982. * Parameters:
  41983. * (String) jid - The Jabber ID of the user being added and subscribed to.
  41984. * (String) name - The name of that user
  41985. * (Array of Strings) groups - Any roster groups the user might belong to
  41986. * (String) message - An optional message to explain the
  41987. * reason for the subscription request.
  41988. * (Object) attributes - Any additional attributes to be stored on the user's model.
  41989. */
  41990. var handler = function handler(contact) {
  41991. if (_instanceof(contact, _converse.RosterContact)) {
  41992. contact.subscribe(message);
  41993. }
  41994. };
  41995. this.addContactToRoster(jid, name, groups, attributes).then(handler, handler);
  41996. },
  41997. sendContactAddIQ: function sendContactAddIQ(jid, name, groups, callback, errback) {
  41998. /* Send an IQ stanza to the XMPP server to add a new roster contact.
  41999. *
  42000. * Parameters:
  42001. * (String) jid - The Jabber ID of the user being added
  42002. * (String) name - The name of that user
  42003. * (Array of Strings) groups - Any roster groups the user might belong to
  42004. * (Function) callback - A function to call once the IQ is returned
  42005. * (Function) errback - A function to call if an error occurred
  42006. */
  42007. name = _.isEmpty(name) ? jid : name;
  42008. var iq = $iq({
  42009. type: 'set'
  42010. }).c('query', {
  42011. xmlns: Strophe.NS.ROSTER
  42012. }).c('item', {
  42013. jid: jid,
  42014. name: name
  42015. });
  42016. _.each(groups, function (group) {
  42017. iq.c('group').t(group).up();
  42018. });
  42019. _converse.connection.sendIQ(iq, callback, errback);
  42020. },
  42021. addContactToRoster: function addContactToRoster(jid, name, groups, attributes) {
  42022. var _this3 = this;
  42023. /* Adds a RosterContact instance to _converse.roster and
  42024. * registers the contact on the XMPP server.
  42025. * Returns a promise which is resolved once the XMPP server has
  42026. * responded.
  42027. *
  42028. * Parameters:
  42029. * (String) jid - The Jabber ID of the user being added and subscribed to.
  42030. * (String) name - The name of that user
  42031. * (Array of Strings) groups - Any roster groups the user might belong to
  42032. * (Object) attributes - Any additional attributes to be stored on the user's model.
  42033. */
  42034. return new Promise(function (resolve, reject) {
  42035. groups = groups || [];
  42036. _this3.sendContactAddIQ(jid, name, groups, function () {
  42037. var contact = _this3.create(_.assignIn({
  42038. 'ask': undefined,
  42039. 'nickname': name,
  42040. groups: groups,
  42041. jid: jid,
  42042. 'requesting': false,
  42043. 'subscription': 'none'
  42044. }, attributes), {
  42045. sort: false
  42046. });
  42047. resolve(contact);
  42048. }, function (err) {
  42049. alert(__('Sorry, there was an error while trying to add %1$s as a contact.', name));
  42050. _converse.log(err, Strophe.LogLevel.ERROR);
  42051. resolve(err);
  42052. });
  42053. });
  42054. },
  42055. subscribeBack: function subscribeBack(bare_jid, presence) {
  42056. var contact = this.get(bare_jid);
  42057. if (_instanceof(contact, _converse.RosterContact)) {
  42058. contact.authorize().subscribe();
  42059. } else {
  42060. // Can happen when a subscription is retried or roster was deleted
  42061. var handler = function handler(contact) {
  42062. if (_instanceof(contact, _converse.RosterContact)) {
  42063. contact.authorize().subscribe();
  42064. }
  42065. };
  42066. var nickname = _.get(sizzle("nick[xmlns=\"".concat(Strophe.NS.NICK, "\"]"), presence).pop(), 'textContent', null);
  42067. this.addContactToRoster(bare_jid, nickname, [], {
  42068. 'subscription': 'from'
  42069. }).then(handler, handler);
  42070. }
  42071. },
  42072. getNumOnlineContacts: function getNumOnlineContacts() {
  42073. var ignored = ['offline', 'unavailable'];
  42074. if (_converse.show_only_online_users) {
  42075. ignored = _.union(ignored, ['dnd', 'xa', 'away']);
  42076. }
  42077. return _.sum(this.models.filter(function (model) {
  42078. return !_.includes(ignored, model.presence.get('show'));
  42079. }));
  42080. },
  42081. onRosterPush: function onRosterPush(iq) {
  42082. /* Handle roster updates from the XMPP server.
  42083. * See: https://xmpp.org/rfcs/rfc6121.html#roster-syntax-actions-push
  42084. *
  42085. * Parameters:
  42086. * (XMLElement) IQ - The IQ stanza received from the XMPP server.
  42087. */
  42088. var id = iq.getAttribute('id');
  42089. var from = iq.getAttribute('from');
  42090. if (from && from !== _converse.connection.jid) {
  42091. // https://tools.ietf.org/html/rfc6121#page-15
  42092. //
  42093. // A receiving client MUST ignore the stanza unless it has no 'from'
  42094. // attribute (i.e., implicitly from the bare JID of the user's
  42095. // account) or it has a 'from' attribute whose value matches the
  42096. // user's bare JID <user@domainpart>.
  42097. return;
  42098. }
  42099. _converse.connection.send($iq({
  42100. type: 'result',
  42101. id: id,
  42102. from: _converse.connection.jid
  42103. }));
  42104. var query = sizzle("query[xmlns=\"".concat(Strophe.NS.ROSTER, "\"]"), iq).pop();
  42105. this.data.save('version', query.getAttribute('ver'));
  42106. var items = sizzle("item", query);
  42107. if (items.length > 1) {
  42108. _converse.log(iq, Strophe.LogLevel.ERROR);
  42109. throw new Error('Roster push query may not contain more than one "item" element.');
  42110. }
  42111. if (items.length === 0) {
  42112. _converse.log(iq, Strophe.LogLevel.WARN);
  42113. _converse.log('Received a roster push stanza without an "item" element.', Strophe.LogLevel.WARN);
  42114. return;
  42115. }
  42116. this.updateContact(items.pop());
  42117. _converse.emit('rosterPush', iq);
  42118. return;
  42119. },
  42120. rosterVersioningSupported: function rosterVersioningSupported() {
  42121. return _converse.api.disco.stream.getFeature('ver', 'urn:xmpp:features:rosterver') && this.data.get('version');
  42122. },
  42123. fetchFromServer: function fetchFromServer() {
  42124. var _this4 = this;
  42125. /* Fetch the roster from the XMPP server */
  42126. return new Promise(function (resolve, reject) {
  42127. var iq = $iq({
  42128. 'type': 'get',
  42129. 'id': _converse.connection.getUniqueId('roster')
  42130. }).c('query', {
  42131. xmlns: Strophe.NS.ROSTER
  42132. });
  42133. if (_this4.rosterVersioningSupported()) {
  42134. iq.attrs({
  42135. 'ver': _this4.data.get('version')
  42136. });
  42137. }
  42138. var callback = _.flow(_this4.onReceivedFromServer.bind(_this4), resolve);
  42139. var errback = function errback(iq) {
  42140. var errmsg = "Error while trying to fetch roster from the server";
  42141. _converse.log(errmsg, Strophe.LogLevel.ERROR);
  42142. reject(new Error(errmsg));
  42143. };
  42144. return _converse.connection.sendIQ(iq, callback, errback);
  42145. });
  42146. },
  42147. onReceivedFromServer: function onReceivedFromServer(iq) {
  42148. var _this5 = this;
  42149. /* An IQ stanza containing the roster has been received from
  42150. * the XMPP server.
  42151. */
  42152. var query = sizzle("query[xmlns=\"".concat(Strophe.NS.ROSTER, "\"]"), iq).pop();
  42153. if (query) {
  42154. var items = sizzle("item", query);
  42155. _.each(items, function (item) {
  42156. return _this5.updateContact(item);
  42157. });
  42158. this.data.save('version', query.getAttribute('ver'));
  42159. _converse.session.save('roster_fetched', true);
  42160. }
  42161. _converse.emit('roster', iq);
  42162. },
  42163. updateContact: function updateContact(item) {
  42164. /* Update or create RosterContact models based on items
  42165. * received in the IQ from the server.
  42166. */
  42167. var jid = item.getAttribute('jid');
  42168. if (this.isSelf(jid)) {
  42169. return;
  42170. }
  42171. var contact = this.get(jid),
  42172. subscription = item.getAttribute("subscription"),
  42173. ask = item.getAttribute("ask"),
  42174. groups = _.map(item.getElementsByTagName('group'), Strophe.getText);
  42175. if (!contact) {
  42176. if (subscription === "none" && ask === null || subscription === "remove") {
  42177. return; // We're lazy when adding contacts.
  42178. }
  42179. this.create({
  42180. 'ask': ask,
  42181. 'nickname': item.getAttribute("name"),
  42182. 'groups': groups,
  42183. 'jid': jid,
  42184. 'subscription': subscription
  42185. }, {
  42186. sort: false
  42187. });
  42188. } else {
  42189. if (subscription === "remove") {
  42190. return contact.destroy();
  42191. } // We only find out about requesting contacts via the
  42192. // presence handler, so if we receive a contact
  42193. // here, we know they aren't requesting anymore.
  42194. // see docs/DEVELOPER.rst
  42195. contact.save({
  42196. 'subscription': subscription,
  42197. 'ask': ask,
  42198. 'requesting': null,
  42199. 'groups': groups
  42200. });
  42201. }
  42202. },
  42203. createRequestingContact: function createRequestingContact(presence) {
  42204. var bare_jid = Strophe.getBareJidFromJid(presence.getAttribute('from')),
  42205. nickname = _.get(sizzle("nick[xmlns=\"".concat(Strophe.NS.NICK, "\"]"), presence).pop(), 'textContent', null);
  42206. var user_data = {
  42207. 'jid': bare_jid,
  42208. 'subscription': 'none',
  42209. 'ask': null,
  42210. 'requesting': true,
  42211. 'nickname': nickname
  42212. };
  42213. _converse.emit('contactRequest', this.create(user_data));
  42214. },
  42215. handleIncomingSubscription: function handleIncomingSubscription(presence) {
  42216. var jid = presence.getAttribute('from'),
  42217. bare_jid = Strophe.getBareJidFromJid(jid),
  42218. contact = this.get(bare_jid);
  42219. if (!_converse.allow_contact_requests) {
  42220. _converse.rejectPresenceSubscription(jid, __("This client does not allow presence subscriptions"));
  42221. }
  42222. if (_converse.auto_subscribe) {
  42223. if (!contact || contact.get('subscription') !== 'to') {
  42224. this.subscribeBack(bare_jid, presence);
  42225. } else {
  42226. contact.authorize();
  42227. }
  42228. } else {
  42229. if (contact) {
  42230. if (contact.get('subscription') !== 'none') {
  42231. contact.authorize();
  42232. } else if (contact.get('ask') === "subscribe") {
  42233. contact.authorize();
  42234. }
  42235. } else {
  42236. this.createRequestingContact(presence);
  42237. }
  42238. }
  42239. },
  42240. handleOwnPresence: function handleOwnPresence(presence) {
  42241. var jid = presence.getAttribute('from'),
  42242. resource = Strophe.getResourceFromJid(jid),
  42243. presence_type = presence.getAttribute('type');
  42244. if (_converse.connection.jid !== jid && presence_type !== 'unavailable' && (_converse.synchronize_availability === true || _converse.synchronize_availability === resource)) {
  42245. // Another resource has changed its status and
  42246. // synchronize_availability option set to update,
  42247. // we'll update ours as well.
  42248. var show = _.propertyOf(presence.querySelector('show'))('textContent') || 'online';
  42249. _converse.xmppstatus.save({
  42250. 'status': show
  42251. });
  42252. var status_message = _.propertyOf(presence.querySelector('status'))('textContent');
  42253. if (status_message) {
  42254. _converse.xmppstatus.save({
  42255. 'status_message': status_message
  42256. });
  42257. }
  42258. }
  42259. if (_converse.jid === jid && presence_type === 'unavailable') {
  42260. // XXX: We've received an "unavailable" presence from our
  42261. // own resource. Apparently this happens due to a
  42262. // Prosody bug, whereby we send an IQ stanza to remove
  42263. // a roster contact, and Prosody then sends
  42264. // "unavailable" globally, instead of directed to the
  42265. // particular user that's removed.
  42266. //
  42267. // Here is the bug report: https://prosody.im/issues/1121
  42268. //
  42269. // I'm not sure whether this might legitimately happen
  42270. // in other cases.
  42271. //
  42272. // As a workaround for now we simply send our presence again,
  42273. // otherwise we're treated as offline.
  42274. _converse.xmppstatus.sendPresence();
  42275. }
  42276. },
  42277. presenceHandler: function presenceHandler(presence) {
  42278. var presence_type = presence.getAttribute('type');
  42279. if (presence_type === 'error') {
  42280. return true;
  42281. }
  42282. var jid = presence.getAttribute('from'),
  42283. bare_jid = Strophe.getBareJidFromJid(jid);
  42284. if (this.isSelf(bare_jid)) {
  42285. return this.handleOwnPresence(presence);
  42286. } else if (sizzle("query[xmlns=\"".concat(Strophe.NS.MUC, "\"]"), presence).length) {
  42287. return; // Ignore MUC
  42288. }
  42289. var status_message = _.propertyOf(presence.querySelector('status'))('textContent'),
  42290. contact = this.get(bare_jid);
  42291. if (contact && status_message !== contact.get('status')) {
  42292. contact.save({
  42293. 'status': status_message
  42294. });
  42295. }
  42296. if (presence_type === 'subscribed' && contact) {
  42297. contact.ackSubscribe();
  42298. } else if (presence_type === 'unsubscribed' && contact) {
  42299. contact.ackUnsubscribe();
  42300. } else if (presence_type === 'unsubscribe') {
  42301. return;
  42302. } else if (presence_type === 'subscribe') {
  42303. this.handleIncomingSubscription(presence);
  42304. } else if (presence_type === 'unavailable' && contact) {
  42305. var resource = Strophe.getResourceFromJid(jid);
  42306. contact.presence.removeResource(resource);
  42307. } else if (contact) {
  42308. // presence_type is undefined
  42309. contact.presence.addResource(presence);
  42310. }
  42311. }
  42312. });
  42313. _converse.RosterGroup = Backbone.Model.extend({
  42314. initialize: function initialize(attributes) {
  42315. this.set(_.assignIn({
  42316. description: __('Click to hide these contacts'),
  42317. state: _converse.OPENED
  42318. }, attributes)); // Collection of contacts belonging to this group.
  42319. this.contacts = new _converse.RosterContacts();
  42320. }
  42321. });
  42322. _converse.RosterGroups = Backbone.Collection.extend({
  42323. model: _converse.RosterGroup,
  42324. fetchRosterGroups: function fetchRosterGroups() {
  42325. var _this6 = this;
  42326. /* Fetches all the roster groups from sessionStorage.
  42327. *
  42328. * Returns a promise which resolves once the groups have been
  42329. * returned.
  42330. */
  42331. return new Promise(function (resolve, reject) {
  42332. _this6.fetch({
  42333. silent: true,
  42334. // We need to first have all groups before
  42335. // we can start positioning them, so we set
  42336. // 'silent' to true.
  42337. success: resolve
  42338. });
  42339. });
  42340. }
  42341. });
  42342. _converse.unregisterPresenceHandler = function () {
  42343. if (!_.isUndefined(_converse.presence_ref)) {
  42344. _converse.connection.deleteHandler(_converse.presence_ref);
  42345. delete _converse.presence_ref;
  42346. }
  42347. };
  42348. /********** Event Handlers *************/
  42349. function updateUnreadCounter(chatbox) {
  42350. var contact = _converse.roster.findWhere({
  42351. 'jid': chatbox.get('jid')
  42352. });
  42353. if (!_.isUndefined(contact)) {
  42354. contact.save({
  42355. 'num_unread': chatbox.get('num_unread')
  42356. });
  42357. }
  42358. }
  42359. _converse.api.listen.on('chatBoxesInitialized', function () {
  42360. _converse.chatboxes.on('change:num_unread', updateUnreadCounter);
  42361. });
  42362. _converse.api.listen.on('beforeTearDown', _converse.unregisterPresenceHandler());
  42363. _converse.api.listen.on('afterTearDown', function () {
  42364. if (_converse.presences) {
  42365. _converse.presences.off().reset(); // Remove presences
  42366. }
  42367. });
  42368. _converse.api.listen.on('clearSession', function () {
  42369. if (_converse.presences) {
  42370. _converse.presences.browserStorage._clear();
  42371. }
  42372. });
  42373. _converse.api.listen.on('statusInitialized', function (reconnecting) {
  42374. if (!reconnecting) {
  42375. _converse.presences = new _converse.Presences();
  42376. _converse.presences.browserStorage = new Backbone.BrowserStorage.session(b64_sha1("converse.presences-".concat(_converse.bare_jid)));
  42377. _converse.presences.fetch();
  42378. }
  42379. _converse.emit('presencesInitialized', reconnecting);
  42380. });
  42381. _converse.api.listen.on('presencesInitialized', function (reconnecting) {
  42382. if (reconnecting) {
  42383. // No need to recreate the roster, otherwise we lose our
  42384. // cached data. However we still emit an event, to give
  42385. // event handlers a chance to register views for the
  42386. // roster and its groups, before we start populating.
  42387. _converse.emit('rosterReadyAfterReconnection');
  42388. } else {
  42389. _converse.registerIntervalHandler();
  42390. _converse.initRoster();
  42391. }
  42392. _converse.roster.onConnected();
  42393. _converse.populateRoster(reconnecting);
  42394. _converse.registerPresenceHandler();
  42395. });
  42396. /************************ API ************************/
  42397. // API methods only available to plugins
  42398. _.extend(_converse.api, {
  42399. /**
  42400. * @namespace _converse.api.contacts
  42401. * @memberOf _converse.api
  42402. */
  42403. 'contacts': {
  42404. /**
  42405. * This method is used to retrieve roster contacts.
  42406. *
  42407. * @method _converse.api.contacts.get
  42408. * @params {(string[]|string)} jid|jids The JID or JIDs of
  42409. * the contacts to be returned.
  42410. * @returns {(RosterContact[]|RosterContact)} [Backbone.Model](http://backbonejs.org/#Model)
  42411. * (or an array of them) representing the contact.
  42412. *
  42413. * @example
  42414. * // Fetch a single contact
  42415. * _converse.api.listen.on('rosterContactsFetched', function () {
  42416. * const contact = _converse.api.contacts.get('buddy@example.com')
  42417. * // ...
  42418. * });
  42419. *
  42420. * @example
  42421. * // To get multiple contacts, pass in an array of JIDs:
  42422. * _converse.api.listen.on('rosterContactsFetched', function () {
  42423. * const contacts = _converse.api.contacts.get(
  42424. * ['buddy1@example.com', 'buddy2@example.com']
  42425. * )
  42426. * // ...
  42427. * });
  42428. *
  42429. * @example
  42430. * // To return all contacts, simply call ``get`` without any parameters:
  42431. * _converse.api.listen.on('rosterContactsFetched', function () {
  42432. * const contacts = _converse.api.contacts.get();
  42433. * // ...
  42434. * });
  42435. */
  42436. 'get': function get(jids) {
  42437. var _getter = function _getter(jid) {
  42438. return _converse.roster.get(Strophe.getBareJidFromJid(jid)) || null;
  42439. };
  42440. if (_.isUndefined(jids)) {
  42441. jids = _converse.roster.pluck('jid');
  42442. } else if (_.isString(jids)) {
  42443. return _getter(jids);
  42444. }
  42445. return _.map(jids, _getter);
  42446. },
  42447. /**
  42448. * Add a contact.
  42449. *
  42450. * @method _converse.api.contacts.add
  42451. * @param {string} jid The JID of the contact to be added
  42452. * @param {string} [name] A custom name to show the user by
  42453. * in the roster.
  42454. * @example
  42455. * _converse.api.contacts.add('buddy@example.com')
  42456. * @example
  42457. * _converse.api.contacts.add('buddy@example.com', 'Buddy')
  42458. */
  42459. 'add': function add(jid, name) {
  42460. if (!_.isString(jid) || !_.includes(jid, '@')) {
  42461. throw new TypeError('contacts.add: invalid jid');
  42462. }
  42463. _converse.roster.addAndSubscribe(jid, _.isEmpty(name) ? jid : name);
  42464. }
  42465. }
  42466. });
  42467. }
  42468. });
  42469. });
  42470. /***/ }),
  42471. /***/ "./src/converse-rosterview.js":
  42472. /*!************************************!*\
  42473. !*** ./src/converse-rosterview.js ***!
  42474. \************************************/
  42475. /*! no static exports found */
  42476. /***/ (function(module, exports, __webpack_require__) {
  42477. "use strict";
  42478. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  42479. // Converse.js
  42480. // http://conversejs.org
  42481. //
  42482. // Copyright (c) 2012-2018, the Converse.js developers
  42483. // Licensed under the Mozilla Public License (MPLv2)
  42484. (function (root, factory) {
  42485. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! templates/add_contact_modal.html */ "./src/templates/add_contact_modal.html"), __webpack_require__(/*! templates/group_header.html */ "./src/templates/group_header.html"), __webpack_require__(/*! templates/pending_contact.html */ "./src/templates/pending_contact.html"), __webpack_require__(/*! templates/requesting_contact.html */ "./src/templates/requesting_contact.html"), __webpack_require__(/*! templates/roster.html */ "./src/templates/roster.html"), __webpack_require__(/*! templates/roster_filter.html */ "./src/templates/roster_filter.html"), __webpack_require__(/*! templates/roster_item.html */ "./src/templates/roster_item.html"), __webpack_require__(/*! templates/search_contact.html */ "./src/templates/search_contact.html"), __webpack_require__(/*! awesomplete */ "awesomplete"), __webpack_require__(/*! converse-chatboxes */ "./src/converse-chatboxes.js"), __webpack_require__(/*! converse-modal */ "./src/converse-modal.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  42486. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  42487. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  42488. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  42489. })(void 0, function (converse, tpl_add_contact_modal, tpl_group_header, tpl_pending_contact, tpl_requesting_contact, tpl_roster, tpl_roster_filter, tpl_roster_item, tpl_search_contact, Awesomplete) {
  42490. "use strict";
  42491. var _converse$env = converse.env,
  42492. Backbone = _converse$env.Backbone,
  42493. Strophe = _converse$env.Strophe,
  42494. $iq = _converse$env.$iq,
  42495. b64_sha1 = _converse$env.b64_sha1,
  42496. sizzle = _converse$env.sizzle,
  42497. _ = _converse$env._;
  42498. var u = converse.env.utils;
  42499. converse.plugins.add('converse-rosterview', {
  42500. dependencies: ["converse-roster", "converse-modal"],
  42501. overrides: {
  42502. // Overrides mentioned here will be picked up by converse.js's
  42503. // plugin architecture they will replace existing methods on the
  42504. // relevant objects or classes.
  42505. //
  42506. // New functions which don't exist yet can also be added.
  42507. afterReconnected: function afterReconnected() {
  42508. this.__super__.afterReconnected.apply(this, arguments);
  42509. },
  42510. tearDown: function tearDown() {
  42511. /* Remove the rosterview when tearing down. It gets created
  42512. * anew when reconnecting or logging in.
  42513. */
  42514. this.__super__.tearDown.apply(this, arguments);
  42515. if (!_.isUndefined(this.rosterview)) {
  42516. this.rosterview.remove();
  42517. }
  42518. },
  42519. RosterGroups: {
  42520. comparator: function comparator() {
  42521. // RosterGroupsComparator only gets set later (once i18n is
  42522. // set up), so we need to wrap it in this nameless function.
  42523. var _converse = this.__super__._converse;
  42524. return _converse.RosterGroupsComparator.apply(this, arguments);
  42525. }
  42526. }
  42527. },
  42528. initialize: function initialize() {
  42529. /* The initialize function gets called as soon as the plugin is
  42530. * loaded by converse.js's plugin machinery.
  42531. */
  42532. var _converse = this._converse,
  42533. __ = _converse.__;
  42534. _converse.api.settings.update({
  42535. 'allow_chat_pending_contacts': true,
  42536. 'allow_contact_removal': true,
  42537. 'hide_offline_users': false,
  42538. 'roster_groups': true,
  42539. 'show_only_online_users': false,
  42540. 'show_toolbar': true,
  42541. 'xhr_user_search_url': null
  42542. });
  42543. _converse.api.promises.add('rosterViewInitialized');
  42544. var STATUSES = {
  42545. 'dnd': __('This contact is busy'),
  42546. 'online': __('This contact is online'),
  42547. 'offline': __('This contact is offline'),
  42548. 'unavailable': __('This contact is unavailable'),
  42549. 'xa': __('This contact is away for an extended period'),
  42550. 'away': __('This contact is away')
  42551. };
  42552. var LABEL_GROUPS = __('Groups');
  42553. var HEADER_CURRENT_CONTACTS = __('My contacts');
  42554. var HEADER_PENDING_CONTACTS = __('Pending contacts');
  42555. var HEADER_REQUESTING_CONTACTS = __('Contact requests');
  42556. var HEADER_UNGROUPED = __('Ungrouped');
  42557. var HEADER_WEIGHTS = {};
  42558. HEADER_WEIGHTS[HEADER_REQUESTING_CONTACTS] = 0;
  42559. HEADER_WEIGHTS[HEADER_CURRENT_CONTACTS] = 1;
  42560. HEADER_WEIGHTS[HEADER_UNGROUPED] = 2;
  42561. HEADER_WEIGHTS[HEADER_PENDING_CONTACTS] = 3;
  42562. _converse.RosterGroupsComparator = function (a, b) {
  42563. /* Groups are sorted alphabetically, ignoring case.
  42564. * However, Ungrouped, Requesting Contacts and Pending Contacts
  42565. * appear last and in that order.
  42566. */
  42567. a = a.get('name');
  42568. b = b.get('name');
  42569. var special_groups = _.keys(HEADER_WEIGHTS);
  42570. var a_is_special = _.includes(special_groups, a);
  42571. var b_is_special = _.includes(special_groups, b);
  42572. if (!a_is_special && !b_is_special) {
  42573. return a.toLowerCase() < b.toLowerCase() ? -1 : a.toLowerCase() > b.toLowerCase() ? 1 : 0;
  42574. } else if (a_is_special && b_is_special) {
  42575. return HEADER_WEIGHTS[a] < HEADER_WEIGHTS[b] ? -1 : HEADER_WEIGHTS[a] > HEADER_WEIGHTS[b] ? 1 : 0;
  42576. } else if (!a_is_special && b_is_special) {
  42577. return b === HEADER_REQUESTING_CONTACTS ? 1 : -1;
  42578. } else if (a_is_special && !b_is_special) {
  42579. return a === HEADER_REQUESTING_CONTACTS ? -1 : 1;
  42580. }
  42581. };
  42582. _converse.AddContactModal = _converse.BootstrapModal.extend({
  42583. events: {
  42584. 'submit form': 'addContactFromForm'
  42585. },
  42586. initialize: function initialize() {
  42587. _converse.BootstrapModal.prototype.initialize.apply(this, arguments);
  42588. this.model.on('change', this.render, this);
  42589. },
  42590. toHTML: function toHTML() {
  42591. var label_nickname = _converse.xhr_user_search_url ? __('Contact name') : __('Optional nickname');
  42592. return tpl_add_contact_modal(_.extend(this.model.toJSON(), {
  42593. '_converse': _converse,
  42594. 'heading_new_contact': __('Add a Contact'),
  42595. 'label_xmpp_address': __('XMPP Address'),
  42596. 'label_nickname': label_nickname,
  42597. 'contact_placeholder': __('name@example.org'),
  42598. 'label_add': __('Add'),
  42599. 'error_message': __('Please enter a valid XMPP address')
  42600. }));
  42601. },
  42602. afterRender: function afterRender() {
  42603. if (_converse.xhr_user_search_url && _.isString(_converse.xhr_user_search_url)) {
  42604. this.initXHRAutoComplete(this.el);
  42605. } else {
  42606. this.initJIDAutoComplete(this.el);
  42607. }
  42608. var jid_input = this.el.querySelector('input[name="jid"]');
  42609. this.el.addEventListener('shown.bs.modal', function () {
  42610. jid_input.focus();
  42611. }, false);
  42612. },
  42613. initJIDAutoComplete: function initJIDAutoComplete(root) {
  42614. var jid_input = root.querySelector('input[name="jid"]');
  42615. var list = _.uniq(_converse.roster.map(function (item) {
  42616. return Strophe.getDomainFromJid(item.get('jid'));
  42617. }));
  42618. new Awesomplete(jid_input, {
  42619. 'list': list,
  42620. 'data': function data(text, input) {
  42621. return input.slice(0, input.indexOf("@")) + "@" + text;
  42622. },
  42623. 'filter': Awesomplete.FILTER_STARTSWITH
  42624. });
  42625. },
  42626. initXHRAutoComplete: function initXHRAutoComplete(root) {
  42627. var name_input = this.el.querySelector('input[name="name"]');
  42628. var jid_input = this.el.querySelector('input[name="jid"]');
  42629. var awesomplete = new Awesomplete(name_input, {
  42630. 'minChars': 1,
  42631. 'list': []
  42632. });
  42633. var xhr = new window.XMLHttpRequest(); // `open` must be called after `onload` for mock/testing purposes.
  42634. xhr.onload = function () {
  42635. if (xhr.responseText) {
  42636. awesomplete.list = JSON.parse(xhr.responseText).map(function (i) {
  42637. //eslint-disable-line arrow-body-style
  42638. return {
  42639. 'label': i.fullname || i.jid,
  42640. 'value': i.jid
  42641. };
  42642. });
  42643. awesomplete.evaluate();
  42644. }
  42645. };
  42646. name_input.addEventListener('input', _.debounce(function () {
  42647. xhr.open("GET", "".concat(_converse.xhr_user_search_url, "q=").concat(name_input.value), true);
  42648. xhr.send();
  42649. }, 300));
  42650. this.el.addEventListener('awesomplete-selectcomplete', function (ev) {
  42651. jid_input.value = ev.text.value;
  42652. name_input.value = ev.text.label;
  42653. });
  42654. },
  42655. addContactFromForm: function addContactFromForm(ev) {
  42656. ev.preventDefault();
  42657. var data = new FormData(ev.target),
  42658. jid = data.get('jid'),
  42659. name = data.get('name');
  42660. if (!jid || _.compact(jid.split('@')).length < 2) {
  42661. // XXX: we have to do this manually, instead of via
  42662. // toHTML because Awesomplete messes things up and
  42663. // confuses Snabbdom
  42664. u.addClass('is-invalid', this.el.querySelector('input[name="jid"]'));
  42665. u.addClass('d-block', this.el.querySelector('.invalid-feedback'));
  42666. } else {
  42667. ev.target.reset();
  42668. _converse.roster.addAndSubscribe(jid, name);
  42669. this.model.clear();
  42670. this.modal.hide();
  42671. }
  42672. }
  42673. });
  42674. _converse.RosterFilter = Backbone.Model.extend({
  42675. initialize: function initialize() {
  42676. this.set({
  42677. 'filter_text': '',
  42678. 'filter_type': 'contacts',
  42679. 'chat_state': ''
  42680. });
  42681. }
  42682. });
  42683. _converse.RosterFilterView = Backbone.VDOMView.extend({
  42684. tagName: 'form',
  42685. className: 'roster-filter-form',
  42686. events: {
  42687. "keydown .roster-filter": "liveFilter",
  42688. "submit form.roster-filter-form": "submitFilter",
  42689. "click .clear-input": "clearFilter",
  42690. "click .filter-by span": "changeTypeFilter",
  42691. "change .state-type": "changeChatStateFilter"
  42692. },
  42693. initialize: function initialize() {
  42694. this.model.on('change:filter_type', this.render, this);
  42695. this.model.on('change:filter_text', this.render, this);
  42696. },
  42697. toHTML: function toHTML() {
  42698. return tpl_roster_filter(_.extend(this.model.toJSON(), {
  42699. visible: this.shouldBeVisible(),
  42700. placeholder: __('Filter'),
  42701. title_contact_filter: __('Filter by contact name'),
  42702. title_group_filter: __('Filter by group name'),
  42703. title_status_filter: __('Filter by status'),
  42704. label_any: __('Any'),
  42705. label_unread_messages: __('Unread'),
  42706. label_online: __('Online'),
  42707. label_chatty: __('Chatty'),
  42708. label_busy: __('Busy'),
  42709. label_away: __('Away'),
  42710. label_xa: __('Extended Away'),
  42711. label_offline: __('Offline')
  42712. }));
  42713. },
  42714. changeChatStateFilter: function changeChatStateFilter(ev) {
  42715. if (ev && ev.preventDefault) {
  42716. ev.preventDefault();
  42717. }
  42718. this.model.save({
  42719. 'chat_state': this.el.querySelector('.state-type').value
  42720. });
  42721. },
  42722. changeTypeFilter: function changeTypeFilter(ev) {
  42723. if (ev && ev.preventDefault) {
  42724. ev.preventDefault();
  42725. }
  42726. var type = ev.target.dataset.type;
  42727. if (type === 'state') {
  42728. this.model.save({
  42729. 'filter_type': type,
  42730. 'chat_state': this.el.querySelector('.state-type').value
  42731. });
  42732. } else {
  42733. this.model.save({
  42734. 'filter_type': type,
  42735. 'filter_text': this.el.querySelector('.roster-filter').value
  42736. });
  42737. }
  42738. },
  42739. liveFilter: _.debounce(function (ev) {
  42740. this.model.save({
  42741. 'filter_text': this.el.querySelector('.roster-filter').value
  42742. });
  42743. }, 250),
  42744. submitFilter: function submitFilter(ev) {
  42745. if (ev && ev.preventDefault) {
  42746. ev.preventDefault();
  42747. }
  42748. this.liveFilter();
  42749. this.render();
  42750. },
  42751. isActive: function isActive() {
  42752. /* Returns true if the filter is enabled (i.e. if the user
  42753. * has added values to the filter).
  42754. */
  42755. if (this.model.get('filter_type') === 'state' || this.model.get('filter_text')) {
  42756. return true;
  42757. }
  42758. return false;
  42759. },
  42760. shouldBeVisible: function shouldBeVisible() {
  42761. return _converse.roster.length >= 5 || this.isActive();
  42762. },
  42763. showOrHide: function showOrHide() {
  42764. if (this.shouldBeVisible()) {
  42765. this.show();
  42766. } else {
  42767. this.hide();
  42768. }
  42769. },
  42770. show: function show() {
  42771. if (u.isVisible(this.el)) {
  42772. return this;
  42773. }
  42774. this.el.classList.add('fade-in');
  42775. this.el.classList.remove('hidden');
  42776. return this;
  42777. },
  42778. hide: function hide() {
  42779. if (!u.isVisible(this.el)) {
  42780. return this;
  42781. }
  42782. this.model.save({
  42783. 'filter_text': '',
  42784. 'chat_state': ''
  42785. });
  42786. this.el.classList.add('hidden');
  42787. return this;
  42788. },
  42789. clearFilter: function clearFilter(ev) {
  42790. if (ev && ev.preventDefault) {
  42791. ev.preventDefault();
  42792. u.hideElement(this.el.querySelector('.clear-input'));
  42793. }
  42794. var roster_filter = this.el.querySelector('.roster-filter');
  42795. roster_filter.value = '';
  42796. this.model.save({
  42797. 'filter_text': ''
  42798. });
  42799. }
  42800. });
  42801. _converse.RosterContactView = Backbone.NativeView.extend({
  42802. tagName: 'li',
  42803. className: 'list-item d-flex hidden controlbox-padded',
  42804. events: {
  42805. "click .accept-xmpp-request": "acceptRequest",
  42806. "click .decline-xmpp-request": "declineRequest",
  42807. "click .open-chat": "openChat",
  42808. "click .remove-xmpp-contact": "removeContact"
  42809. },
  42810. initialize: function initialize() {
  42811. this.model.on("change", this.render, this);
  42812. this.model.on("highlight", this.highlight, this);
  42813. this.model.on("destroy", this.remove, this);
  42814. this.model.on("open", this.openChat, this);
  42815. this.model.on("remove", this.remove, this);
  42816. this.model.presence.on("change:show", this.render, this);
  42817. this.model.vcard.on('change:fullname', this.render, this);
  42818. },
  42819. render: function render() {
  42820. var that = this;
  42821. if (!this.mayBeShown()) {
  42822. u.hideElement(this.el);
  42823. return this;
  42824. }
  42825. var ask = this.model.get('ask'),
  42826. show = this.model.presence.get('show'),
  42827. requesting = this.model.get('requesting'),
  42828. subscription = this.model.get('subscription');
  42829. var classes_to_remove = ['current-xmpp-contact', 'pending-xmpp-contact', 'requesting-xmpp-contact'].concat(_.keys(STATUSES));
  42830. _.each(classes_to_remove, function (cls) {
  42831. if (_.includes(that.el.className, cls)) {
  42832. that.el.classList.remove(cls);
  42833. }
  42834. });
  42835. this.el.classList.add(show);
  42836. this.el.setAttribute('data-status', show);
  42837. this.highlight();
  42838. if (_converse.isSingleton()) {
  42839. var chatbox = _converse.chatboxes.get(this.model.get('jid'));
  42840. if (chatbox) {
  42841. if (chatbox.get('hidden')) {
  42842. this.el.classList.remove('open');
  42843. } else {
  42844. this.el.classList.add('open');
  42845. }
  42846. }
  42847. }
  42848. if (ask === 'subscribe' || subscription === 'from') {
  42849. /* ask === 'subscribe'
  42850. * Means we have asked to subscribe to them.
  42851. *
  42852. * subscription === 'from'
  42853. * They are subscribed to use, but not vice versa.
  42854. * We assume that there is a pending subscription
  42855. * from us to them (otherwise we're in a state not
  42856. * supported by converse.js).
  42857. *
  42858. * So in both cases the user is a "pending" contact.
  42859. */
  42860. var display_name = this.model.getDisplayName();
  42861. this.el.classList.add('pending-xmpp-contact');
  42862. this.el.innerHTML = tpl_pending_contact(_.extend(this.model.toJSON(), {
  42863. 'display_name': display_name,
  42864. 'desc_remove': __('Click to remove %1$s as a contact', display_name),
  42865. 'allow_chat_pending_contacts': _converse.allow_chat_pending_contacts
  42866. }));
  42867. } else if (requesting === true) {
  42868. var _display_name = this.model.getDisplayName();
  42869. this.el.classList.add('requesting-xmpp-contact');
  42870. this.el.innerHTML = tpl_requesting_contact(_.extend(this.model.toJSON(), {
  42871. 'display_name': _display_name,
  42872. 'desc_accept': __("Click to accept the contact request from %1$s", _display_name),
  42873. 'desc_decline': __("Click to decline the contact request from %1$s", _display_name),
  42874. 'allow_chat_pending_contacts': _converse.allow_chat_pending_contacts
  42875. }));
  42876. } else if (subscription === 'both' || subscription === 'to') {
  42877. this.el.classList.add('current-xmpp-contact');
  42878. this.el.classList.remove(_.without(['both', 'to'], subscription)[0]);
  42879. this.el.classList.add(subscription);
  42880. this.renderRosterItem(this.model);
  42881. }
  42882. return this;
  42883. },
  42884. highlight: function highlight() {
  42885. /* If appropriate, highlight the contact (by adding the 'open' class).
  42886. */
  42887. if (_converse.isSingleton()) {
  42888. var chatbox = _converse.chatboxes.get(this.model.get('jid'));
  42889. if (chatbox) {
  42890. if (chatbox.get('hidden')) {
  42891. this.el.classList.remove('open');
  42892. } else {
  42893. this.el.classList.add('open');
  42894. }
  42895. }
  42896. }
  42897. },
  42898. renderRosterItem: function renderRosterItem(item) {
  42899. var status_icon = 'fa fa-times-circle';
  42900. var show = item.presence.get('show') || 'offline';
  42901. if (show === 'online') {
  42902. status_icon = 'fa fa-circle';
  42903. } else if (show === 'away') {
  42904. status_icon = 'fa fa-dot-circle';
  42905. } else if (show === 'xa') {
  42906. status_icon = 'far fa-circle';
  42907. } else if (show === 'dnd') {
  42908. status_icon = 'fa fa-minus-circle';
  42909. }
  42910. var display_name = item.getDisplayName();
  42911. this.el.innerHTML = tpl_roster_item(_.extend(item.toJSON(), {
  42912. 'display_name': display_name,
  42913. 'desc_status': STATUSES[show],
  42914. 'status_icon': status_icon,
  42915. 'desc_chat': __('Click to chat with %1$s (JID: %2$s)', display_name, item.get('jid')),
  42916. 'desc_remove': __('Click to remove %1$s as a contact', display_name),
  42917. 'allow_contact_removal': _converse.allow_contact_removal,
  42918. 'num_unread': item.get('num_unread') || 0
  42919. }));
  42920. return this;
  42921. },
  42922. mayBeShown: function mayBeShown() {
  42923. /* Return a boolean indicating whether this contact should
  42924. * generally be visible in the roster.
  42925. *
  42926. * It doesn't check for the more specific case of whether
  42927. * the group it's in is collapsed.
  42928. */
  42929. var chatStatus = this.model.presence.get('show');
  42930. if (_converse.show_only_online_users && chatStatus !== 'online' || _converse.hide_offline_users && chatStatus === 'offline') {
  42931. // If pending or requesting, show
  42932. if (this.model.get('ask') === 'subscribe' || this.model.get('subscription') === 'from' || this.model.get('requesting') === true) {
  42933. return true;
  42934. }
  42935. return false;
  42936. }
  42937. return true;
  42938. },
  42939. openChat: function openChat(ev) {
  42940. if (ev && ev.preventDefault) {
  42941. ev.preventDefault();
  42942. }
  42943. var attrs = this.model.attributes;
  42944. _converse.api.chats.open(attrs.jid, attrs);
  42945. },
  42946. removeContact: function removeContact(ev) {
  42947. var _this = this;
  42948. if (ev && ev.preventDefault) {
  42949. ev.preventDefault();
  42950. }
  42951. if (!_converse.allow_contact_removal) {
  42952. return;
  42953. }
  42954. var result = confirm(__("Are you sure you want to remove this contact?"));
  42955. if (result === true) {
  42956. this.model.removeFromRoster(function (iq) {
  42957. _this.model.destroy();
  42958. _this.remove();
  42959. }, function (err) {
  42960. alert(__('Sorry, there was an error while trying to remove %1$s as a contact.', name));
  42961. _converse.log(err, Strophe.LogLevel.ERROR);
  42962. });
  42963. }
  42964. },
  42965. acceptRequest: function acceptRequest(ev) {
  42966. var _this2 = this;
  42967. if (ev && ev.preventDefault) {
  42968. ev.preventDefault();
  42969. }
  42970. _converse.roster.sendContactAddIQ(this.model.get('jid'), this.model.getFullname(), [], function () {
  42971. _this2.model.authorize().subscribe();
  42972. });
  42973. },
  42974. declineRequest: function declineRequest(ev) {
  42975. if (ev && ev.preventDefault) {
  42976. ev.preventDefault();
  42977. }
  42978. var result = confirm(__("Are you sure you want to decline this contact request?"));
  42979. if (result === true) {
  42980. this.model.unauthorize().destroy();
  42981. }
  42982. return this;
  42983. }
  42984. });
  42985. _converse.RosterGroupView = Backbone.OrderedListView.extend({
  42986. tagName: 'div',
  42987. className: 'roster-group hidden',
  42988. events: {
  42989. "click a.group-toggle": "toggle"
  42990. },
  42991. ItemView: _converse.RosterContactView,
  42992. listItems: 'model.contacts',
  42993. listSelector: '.roster-group-contacts',
  42994. sortEvent: 'presenceChanged',
  42995. initialize: function initialize() {
  42996. Backbone.OrderedListView.prototype.initialize.apply(this, arguments);
  42997. this.model.contacts.on("change:subscription", this.onContactSubscriptionChange, this);
  42998. this.model.contacts.on("change:requesting", this.onContactRequestChange, this);
  42999. this.model.contacts.on("remove", this.onRemove, this);
  43000. _converse.roster.on('change:groups', this.onContactGroupChange, this); // This event gets triggered once *all* contacts (i.e. not
  43001. // just this group's) have been fetched from browser
  43002. // storage or the XMPP server and once they've been
  43003. // assigned to their various groups.
  43004. _converse.rosterview.on('rosterContactsFetchedAndProcessed', this.sortAndPositionAllItems.bind(this));
  43005. },
  43006. render: function render() {
  43007. this.el.setAttribute('data-group', this.model.get('name'));
  43008. this.el.innerHTML = tpl_group_header({
  43009. 'label_group': this.model.get('name'),
  43010. 'desc_group_toggle': this.model.get('description'),
  43011. 'toggle_state': this.model.get('state'),
  43012. '_converse': _converse
  43013. });
  43014. this.contacts_el = this.el.querySelector('.roster-group-contacts');
  43015. return this;
  43016. },
  43017. show: function show() {
  43018. var _this3 = this;
  43019. u.showElement(this.el);
  43020. _.each(this.getAll(), function (contact_view) {
  43021. if (contact_view.mayBeShown() && _this3.model.get('state') === _converse.OPENED) {
  43022. u.showElement(contact_view.el);
  43023. }
  43024. });
  43025. return this;
  43026. },
  43027. collapse: function collapse() {
  43028. return u.slideIn(this.contacts_el);
  43029. },
  43030. filterOutContacts: function filterOutContacts() {
  43031. var _this4 = this;
  43032. var contacts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  43033. /* Given a list of contacts, make sure they're filtered out
  43034. * (aka hidden) and that all other contacts are visible.
  43035. *
  43036. * If all contacts are hidden, then also hide the group
  43037. * title.
  43038. */
  43039. var shown = 0;
  43040. var all_contact_views = this.getAll();
  43041. _.each(this.model.contacts.models, function (contact) {
  43042. var contact_view = _this4.get(contact.get('id'));
  43043. if (_.includes(contacts, contact)) {
  43044. u.hideElement(contact_view.el);
  43045. } else if (contact_view.mayBeShown()) {
  43046. u.showElement(contact_view.el);
  43047. shown += 1;
  43048. }
  43049. });
  43050. if (shown) {
  43051. u.showElement(this.el);
  43052. } else {
  43053. u.hideElement(this.el);
  43054. }
  43055. },
  43056. getFilterMatches: function getFilterMatches(q, type) {
  43057. /* Given the filter query "q" and the filter type "type",
  43058. * return a list of contacts that need to be filtered out.
  43059. */
  43060. if (q.length === 0) {
  43061. return [];
  43062. }
  43063. var matches;
  43064. q = q.toLowerCase();
  43065. if (type === 'state') {
  43066. if (this.model.get('name') === HEADER_REQUESTING_CONTACTS) {
  43067. // When filtering by chat state, we still want to
  43068. // show requesting contacts, even though they don't
  43069. // have the state in question.
  43070. matches = this.model.contacts.filter(function (contact) {
  43071. return !_.includes(contact.presence.get('show'), q) && !contact.get('requesting');
  43072. });
  43073. } else if (q === 'unread_messages') {
  43074. matches = this.model.contacts.filter({
  43075. 'num_unread': 0
  43076. });
  43077. } else {
  43078. matches = this.model.contacts.filter(function (contact) {
  43079. return !_.includes(contact.presence.get('show'), q);
  43080. });
  43081. }
  43082. } else {
  43083. matches = this.model.contacts.filter(function (contact) {
  43084. return !_.includes(contact.getDisplayName().toLowerCase(), q.toLowerCase());
  43085. });
  43086. }
  43087. return matches;
  43088. },
  43089. filter: function filter(q, type) {
  43090. /* Filter the group's contacts based on the query "q".
  43091. *
  43092. * If all contacts are filtered out (i.e. hidden), then the
  43093. * group must be filtered out as well.
  43094. */
  43095. if (_.isNil(q)) {
  43096. type = type || _converse.rosterview.filter_view.model.get('filter_type');
  43097. if (type === 'state') {
  43098. q = _converse.rosterview.filter_view.model.get('chat_state');
  43099. } else {
  43100. q = _converse.rosterview.filter_view.model.get('filter_text');
  43101. }
  43102. }
  43103. this.filterOutContacts(this.getFilterMatches(q, type));
  43104. },
  43105. toggle: function toggle(ev) {
  43106. if (ev && ev.preventDefault) {
  43107. ev.preventDefault();
  43108. }
  43109. var icon_el = ev.target.querySelector('.fa');
  43110. if (_.includes(icon_el.classList, "fa-caret-down")) {
  43111. this.model.save({
  43112. state: _converse.CLOSED
  43113. });
  43114. this.collapse().then(function () {
  43115. icon_el.classList.remove("fa-caret-down");
  43116. icon_el.classList.add("fa-caret-right");
  43117. });
  43118. } else {
  43119. icon_el.classList.remove("fa-caret-right");
  43120. icon_el.classList.add("fa-caret-down");
  43121. this.model.save({
  43122. state: _converse.OPENED
  43123. });
  43124. this.filter();
  43125. u.showElement(this.el);
  43126. u.slideOut(this.contacts_el);
  43127. }
  43128. },
  43129. onContactGroupChange: function onContactGroupChange(contact) {
  43130. var in_this_group = _.includes(contact.get('groups'), this.model.get('name'));
  43131. var cid = contact.get('id');
  43132. var in_this_overview = !this.get(cid);
  43133. if (in_this_group && !in_this_overview) {
  43134. this.items.trigger('add', contact);
  43135. } else if (!in_this_group) {
  43136. this.removeContact(contact);
  43137. }
  43138. },
  43139. onContactSubscriptionChange: function onContactSubscriptionChange(contact) {
  43140. if (this.model.get('name') === HEADER_PENDING_CONTACTS && contact.get('subscription') !== 'from') {
  43141. this.removeContact(contact);
  43142. }
  43143. },
  43144. onContactRequestChange: function onContactRequestChange(contact) {
  43145. if (this.model.get('name') === HEADER_REQUESTING_CONTACTS && !contact.get('requesting')) {
  43146. this.removeContact(contact);
  43147. }
  43148. },
  43149. removeContact: function removeContact(contact) {
  43150. // We suppress events, otherwise the remove event will
  43151. // also cause the contact's view to be removed from the
  43152. // "Pending Contacts" group.
  43153. this.model.contacts.remove(contact, {
  43154. 'silent': true
  43155. });
  43156. this.onRemove(contact);
  43157. },
  43158. onRemove: function onRemove(contact) {
  43159. this.remove(contact.get('jid'));
  43160. if (this.model.contacts.length === 0) {
  43161. this.remove();
  43162. }
  43163. }
  43164. });
  43165. _converse.RosterView = Backbone.OrderedListView.extend({
  43166. tagName: 'div',
  43167. id: 'converse-roster',
  43168. className: 'controlbox-section',
  43169. ItemView: _converse.RosterGroupView,
  43170. listItems: 'model',
  43171. listSelector: '.roster-contacts',
  43172. sortEvent: null,
  43173. // Groups are immutable, so they don't get re-sorted
  43174. subviewIndex: 'name',
  43175. events: {
  43176. 'click a.chatbox-btn.add-contact': 'showAddContactModal'
  43177. },
  43178. initialize: function initialize() {
  43179. var _this5 = this;
  43180. Backbone.OrderedListView.prototype.initialize.apply(this, arguments);
  43181. _converse.roster.on("add", this.onContactAdded, this);
  43182. _converse.roster.on('change:groups', this.onContactAdded, this);
  43183. _converse.roster.on('change', this.onContactChange, this);
  43184. _converse.roster.on("destroy", this.update, this);
  43185. _converse.roster.on("remove", this.update, this);
  43186. _converse.presences.on('change:show', function () {
  43187. _this5.update();
  43188. _this5.updateFilter();
  43189. });
  43190. this.model.on("reset", this.reset, this); // This event gets triggered once *all* contacts (i.e. not
  43191. // just this group's) have been fetched from browser
  43192. // storage or the XMPP server and once they've been
  43193. // assigned to their various groups.
  43194. _converse.on('rosterGroupsFetched', this.sortAndPositionAllItems.bind(this));
  43195. _converse.on('rosterContactsFetched', function () {
  43196. _converse.roster.each(function (contact) {
  43197. return _this5.addRosterContact(contact, {
  43198. 'silent': true
  43199. });
  43200. });
  43201. _this5.update();
  43202. _this5.updateFilter();
  43203. _this5.trigger('rosterContactsFetchedAndProcessed');
  43204. });
  43205. this.createRosterFilter();
  43206. },
  43207. render: function render() {
  43208. this.el.innerHTML = tpl_roster({
  43209. 'heading_contacts': __('Contacts'),
  43210. 'title_add_contact': __('Add a contact')
  43211. });
  43212. var form = this.el.querySelector('.roster-filter-form');
  43213. this.el.replaceChild(this.filter_view.render().el, form);
  43214. this.roster_el = this.el.querySelector('.roster-contacts');
  43215. return this;
  43216. },
  43217. showAddContactModal: function showAddContactModal(ev) {
  43218. if (_.isUndefined(this.add_contact_modal)) {
  43219. this.add_contact_modal = new _converse.AddContactModal({
  43220. 'model': new Backbone.Model()
  43221. });
  43222. }
  43223. this.add_contact_modal.show(ev);
  43224. },
  43225. createRosterFilter: function createRosterFilter() {
  43226. // Create a model on which we can store filter properties
  43227. var model = new _converse.RosterFilter();
  43228. model.id = b64_sha1("_converse.rosterfilter".concat(_converse.bare_jid));
  43229. model.browserStorage = new Backbone.BrowserStorage.local(this.filter.id);
  43230. this.filter_view = new _converse.RosterFilterView({
  43231. 'model': model
  43232. });
  43233. this.filter_view.model.on('change', this.updateFilter, this);
  43234. this.filter_view.model.fetch();
  43235. },
  43236. updateFilter: _.debounce(function () {
  43237. /* Filter the roster again.
  43238. * Called whenever the filter settings have been changed or
  43239. * when contacts have been added, removed or changed.
  43240. *
  43241. * Debounced so that it doesn't get called for every
  43242. * contact fetched from browser storage.
  43243. */
  43244. var type = this.filter_view.model.get('filter_type');
  43245. if (type === 'state') {
  43246. this.filter(this.filter_view.model.get('chat_state'), type);
  43247. } else {
  43248. this.filter(this.filter_view.model.get('filter_text'), type);
  43249. }
  43250. }, 100),
  43251. update: _.debounce(function () {
  43252. if (!u.isVisible(this.roster_el)) {
  43253. u.showElement(this.roster_el);
  43254. }
  43255. this.filter_view.showOrHide();
  43256. return this;
  43257. }, _converse.animate ? 100 : 0),
  43258. filter: function filter(query, type) {
  43259. // First we make sure the filter is restored to its
  43260. // original state
  43261. _.each(this.getAll(), function (view) {
  43262. if (view.model.contacts.length > 0) {
  43263. view.show().filter('');
  43264. }
  43265. }); // Now we can filter
  43266. query = query.toLowerCase();
  43267. if (type === 'groups') {
  43268. _.each(this.getAll(), function (view, idx) {
  43269. if (!_.includes(view.model.get('name').toLowerCase(), query.toLowerCase())) {
  43270. u.slideIn(view.el);
  43271. } else if (view.model.contacts.length > 0) {
  43272. u.slideOut(view.el);
  43273. }
  43274. });
  43275. } else {
  43276. _.each(this.getAll(), function (view) {
  43277. view.filter(query, type);
  43278. });
  43279. }
  43280. },
  43281. reset: function reset() {
  43282. _converse.roster.reset();
  43283. this.removeAll();
  43284. this.render().update();
  43285. return this;
  43286. },
  43287. onContactAdded: function onContactAdded(contact) {
  43288. this.addRosterContact(contact);
  43289. this.update();
  43290. this.updateFilter();
  43291. },
  43292. onContactChange: function onContactChange(contact) {
  43293. this.updateChatBox(contact);
  43294. this.update();
  43295. if (_.has(contact.changed, 'subscription')) {
  43296. if (contact.changed.subscription === 'from') {
  43297. this.addContactToGroup(contact, HEADER_PENDING_CONTACTS);
  43298. } else if (_.includes(['both', 'to'], contact.get('subscription'))) {
  43299. this.addExistingContact(contact);
  43300. }
  43301. }
  43302. if (_.has(contact.changed, 'ask') && contact.changed.ask === 'subscribe') {
  43303. this.addContactToGroup(contact, HEADER_PENDING_CONTACTS);
  43304. }
  43305. if (_.has(contact.changed, 'subscription') && contact.changed.requesting === 'true') {
  43306. this.addContactToGroup(contact, HEADER_REQUESTING_CONTACTS);
  43307. }
  43308. this.updateFilter();
  43309. },
  43310. updateChatBox: function updateChatBox(contact) {
  43311. if (!this.model.chatbox) {
  43312. return this;
  43313. }
  43314. var changes = {};
  43315. if (_.has(contact.changed, 'status')) {
  43316. changes.status = contact.get('status');
  43317. }
  43318. this.model.chatbox.save(changes);
  43319. return this;
  43320. },
  43321. getGroup: function getGroup(name) {
  43322. /* Returns the group as specified by name.
  43323. * Creates the group if it doesn't exist.
  43324. */
  43325. var view = this.get(name);
  43326. if (view) {
  43327. return view.model;
  43328. }
  43329. return this.model.create({
  43330. name: name,
  43331. id: b64_sha1(name)
  43332. });
  43333. },
  43334. addContactToGroup: function addContactToGroup(contact, name, options) {
  43335. this.getGroup(name).contacts.add(contact, options);
  43336. this.sortAndPositionAllItems();
  43337. },
  43338. addExistingContact: function addExistingContact(contact, options) {
  43339. var groups;
  43340. if (_converse.roster_groups) {
  43341. groups = contact.get('groups');
  43342. if (groups.length === 0) {
  43343. groups = [HEADER_UNGROUPED];
  43344. }
  43345. } else {
  43346. groups = [HEADER_CURRENT_CONTACTS];
  43347. }
  43348. _.each(groups, _.bind(this.addContactToGroup, this, contact, _, options));
  43349. },
  43350. addRosterContact: function addRosterContact(contact, options) {
  43351. if (contact.get('subscription') === 'both' || contact.get('subscription') === 'to') {
  43352. this.addExistingContact(contact, options);
  43353. } else {
  43354. if (contact.get('ask') === 'subscribe' || contact.get('subscription') === 'from') {
  43355. this.addContactToGroup(contact, HEADER_PENDING_CONTACTS, options);
  43356. } else if (contact.get('requesting') === true) {
  43357. this.addContactToGroup(contact, HEADER_REQUESTING_CONTACTS, options);
  43358. }
  43359. }
  43360. return this;
  43361. }
  43362. });
  43363. /* -------- Event Handlers ----------- */
  43364. _converse.api.listen.on('chatBoxesInitialized', function () {
  43365. _converse.chatboxes.on('change:hidden', function (chatbox) {
  43366. var contact = _converse.roster.findWhere({
  43367. 'jid': chatbox.get('jid')
  43368. });
  43369. if (!_.isUndefined(contact)) {
  43370. contact.trigger('highlight', contact);
  43371. }
  43372. });
  43373. });
  43374. function initRoster() {
  43375. /* Create an instance of RosterView once the RosterGroups
  43376. * collection has been created (in converse-core.js)
  43377. */
  43378. if (_converse.authentication === _converse.ANONYMOUS) {
  43379. return;
  43380. }
  43381. _converse.rosterview = new _converse.RosterView({
  43382. 'model': _converse.rostergroups
  43383. });
  43384. _converse.rosterview.render();
  43385. _converse.emit('rosterViewInitialized');
  43386. }
  43387. _converse.api.listen.on('rosterInitialized', initRoster);
  43388. _converse.api.listen.on('rosterReadyAfterReconnection', initRoster);
  43389. }
  43390. });
  43391. });
  43392. /***/ }),
  43393. /***/ "./src/converse-singleton.js":
  43394. /*!***********************************!*\
  43395. !*** ./src/converse-singleton.js ***!
  43396. \***********************************/
  43397. /*! no static exports found */
  43398. /***/ (function(module, exports, __webpack_require__) {
  43399. "use strict";
  43400. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  43401. // Converse.js
  43402. // http://conversejs.org
  43403. //
  43404. // Copyright (c) 2012-2018, the Converse.js developers
  43405. // Licensed under the Mozilla Public License (MPLv2)
  43406. /* converse-singleton
  43407. * ******************
  43408. *
  43409. * A plugin which ensures that only one chat (private or groupchat) is
  43410. * visible at any one time. All other ongoing chats are hidden and kept in the
  43411. * background.
  43412. *
  43413. * This plugin makes sense in mobile or fullscreen chat environments (as
  43414. * configured by the `view_mode` setting).
  43415. *
  43416. */
  43417. (function (root, factory) {
  43418. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! converse-chatview */ "./src/converse-chatview.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  43419. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  43420. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  43421. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  43422. })(void 0, function (converse) {
  43423. "use strict";
  43424. var _converse$env = converse.env,
  43425. _ = _converse$env._,
  43426. Strophe = _converse$env.Strophe;
  43427. var u = converse.env.utils;
  43428. function hideChat(view) {
  43429. if (view.model.get('id') === 'controlbox') {
  43430. return;
  43431. }
  43432. u.safeSave(view.model, {
  43433. 'hidden': true
  43434. });
  43435. view.hide();
  43436. }
  43437. converse.plugins.add('converse-singleton', {
  43438. // It's possible however to make optional dependencies non-optional.
  43439. // If the setting "strict_plugin_dependencies" is set to true,
  43440. // an error will be raised if the plugin is not found.
  43441. //
  43442. // NB: These plugins need to have already been loaded via require.js.
  43443. dependencies: ['converse-chatboxes', 'converse-muc', 'converse-muc-views', 'converse-controlbox', 'converse-rosterview'],
  43444. overrides: {
  43445. // overrides mentioned here will be picked up by converse.js's
  43446. // plugin architecture they will replace existing methods on the
  43447. // relevant objects or classes.
  43448. //
  43449. // new functions which don't exist yet can also be added.
  43450. ChatBoxes: {
  43451. chatBoxMayBeShown: function chatBoxMayBeShown(chatbox) {
  43452. var _converse = this.__super__._converse;
  43453. if (chatbox.get('id') === 'controlbox') {
  43454. return true;
  43455. }
  43456. if (_converse.isSingleton()) {
  43457. var any_chats_visible = _converse.chatboxes.filter(function (cb) {
  43458. return cb.get('id') != 'controlbox';
  43459. }).filter(function (cb) {
  43460. return !cb.get('hidden');
  43461. }).length > 0;
  43462. if (any_chats_visible) {
  43463. return !chatbox.get('hidden');
  43464. } else {
  43465. return true;
  43466. }
  43467. } else {
  43468. return this.__super__.chatBoxMayBeShown.apply(this, arguments);
  43469. }
  43470. },
  43471. createChatBox: function createChatBox(jid, attrs) {
  43472. /* Make sure new chat boxes are hidden by default. */
  43473. var _converse = this.__super__._converse;
  43474. if (_converse.isSingleton()) {
  43475. attrs = attrs || {};
  43476. attrs.hidden = true;
  43477. }
  43478. return this.__super__.createChatBox.call(this, jid, attrs);
  43479. }
  43480. },
  43481. ChatBoxView: {
  43482. shouldShowOnTextMessage: function shouldShowOnTextMessage() {
  43483. var _converse = this.__super__._converse;
  43484. if (_converse.isSingleton()) {
  43485. return false;
  43486. } else {
  43487. return this.__super__.shouldShowOnTextMessage.apply(this, arguments);
  43488. }
  43489. },
  43490. _show: function _show(focus) {
  43491. /* We only have one chat visible at any one
  43492. * time. So before opening a chat, we make sure all other
  43493. * chats are hidden.
  43494. */
  43495. var _converse = this.__super__._converse;
  43496. if (_converse.isSingleton()) {
  43497. _.each(this.__super__._converse.chatboxviews.xget(this.model.get('id')), hideChat);
  43498. u.safeSave(this.model, {
  43499. 'hidden': false
  43500. });
  43501. }
  43502. return this.__super__._show.apply(this, arguments);
  43503. }
  43504. },
  43505. ChatRoomView: {
  43506. show: function show(focus) {
  43507. var _converse = this.__super__._converse;
  43508. if (_converse.isSingleton()) {
  43509. _.each(this.__super__._converse.chatboxviews.xget(this.model.get('id')), hideChat);
  43510. u.safeSave(this.model, {
  43511. 'hidden': false
  43512. });
  43513. }
  43514. return this.__super__.show.apply(this, arguments);
  43515. }
  43516. }
  43517. }
  43518. });
  43519. });
  43520. /***/ }),
  43521. /***/ "./src/converse-vcard.js":
  43522. /*!*******************************!*\
  43523. !*** ./src/converse-vcard.js ***!
  43524. \*******************************/
  43525. /*! no static exports found */
  43526. /***/ (function(module, exports, __webpack_require__) {
  43527. "use strict";
  43528. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  43529. function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
  43530. // Converse.js
  43531. // http://conversejs.org
  43532. //
  43533. // Copyright (c) 2013-2018, the Converse.js developers
  43534. // Licensed under the Mozilla Public License (MPLv2)
  43535. (function (root, factory) {
  43536. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! templates/vcard.html */ "./src/templates/vcard.html")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  43537. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  43538. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  43539. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  43540. })(void 0, function (converse, tpl_vcard) {
  43541. "use strict";
  43542. var _converse$env = converse.env,
  43543. Backbone = _converse$env.Backbone,
  43544. Promise = _converse$env.Promise,
  43545. Strophe = _converse$env.Strophe,
  43546. _ = _converse$env._,
  43547. $iq = _converse$env.$iq,
  43548. $build = _converse$env.$build,
  43549. b64_sha1 = _converse$env.b64_sha1,
  43550. moment = _converse$env.moment,
  43551. sizzle = _converse$env.sizzle;
  43552. var u = converse.env.utils;
  43553. converse.plugins.add('converse-vcard', {
  43554. initialize: function initialize() {
  43555. /* The initialize function gets called as soon as the plugin is
  43556. * loaded by converse.js's plugin machinery.
  43557. */
  43558. var _converse = this._converse;
  43559. _converse.VCard = Backbone.Model.extend({
  43560. defaults: {
  43561. 'image': _converse.DEFAULT_IMAGE,
  43562. 'image_type': _converse.DEFAULT_IMAGE_TYPE
  43563. },
  43564. set: function set(key, val, options) {
  43565. // Override Backbone.Model.prototype.set to make sure that the
  43566. // default `image` and `image_type` values are maintained.
  43567. var attrs;
  43568. if (_typeof(key) === 'object') {
  43569. attrs = key;
  43570. options = val;
  43571. } else {
  43572. (attrs = {})[key] = val;
  43573. }
  43574. if (_.has(attrs, 'image') && !attrs['image']) {
  43575. attrs['image'] = _converse.DEFAULT_IMAGE;
  43576. attrs['image_type'] = _converse.DEFAULT_IMAGE_TYPE;
  43577. return Backbone.Model.prototype.set.call(this, attrs, options);
  43578. } else {
  43579. return Backbone.Model.prototype.set.apply(this, arguments);
  43580. }
  43581. }
  43582. });
  43583. _converse.VCards = Backbone.Collection.extend({
  43584. model: _converse.VCard,
  43585. initialize: function initialize() {
  43586. this.on('add', function (vcard) {
  43587. return _converse.api.vcard.update(vcard);
  43588. });
  43589. }
  43590. });
  43591. function onVCardData(jid, iq, callback) {
  43592. var vcard = iq.querySelector('vCard');
  43593. var result = {};
  43594. if (!_.isNull(vcard)) {
  43595. result = {
  43596. 'stanza': iq,
  43597. 'fullname': _.get(vcard.querySelector('FN'), 'textContent'),
  43598. 'nickname': _.get(vcard.querySelector('NICKNAME'), 'textContent'),
  43599. 'image': _.get(vcard.querySelector('PHOTO BINVAL'), 'textContent'),
  43600. 'image_type': _.get(vcard.querySelector('PHOTO TYPE'), 'textContent'),
  43601. 'url': _.get(vcard.querySelector('URL'), 'textContent'),
  43602. 'role': _.get(vcard.querySelector('ROLE'), 'textContent'),
  43603. 'email': _.get(vcard.querySelector('EMAIL USERID'), 'textContent'),
  43604. 'vcard_updated': moment().format(),
  43605. 'vcard_error': undefined
  43606. };
  43607. }
  43608. if (result.image) {
  43609. var buffer = u.base64ToArrayBuffer(result['image']);
  43610. crypto.subtle.digest('SHA-1', buffer).then(function (ab) {
  43611. result['image_hash'] = u.arrayBufferToHex(ab);
  43612. if (callback) callback(result);
  43613. });
  43614. } else {
  43615. if (callback) callback(result);
  43616. }
  43617. }
  43618. function onVCardError(jid, iq, errback) {
  43619. if (errback) {
  43620. errback({
  43621. 'stanza': iq,
  43622. 'jid': jid,
  43623. 'vcard_error': moment().format()
  43624. });
  43625. }
  43626. }
  43627. function createStanza(type, jid, vcard_el) {
  43628. var iq = $iq(jid ? {
  43629. 'type': type,
  43630. 'to': jid
  43631. } : {
  43632. 'type': type
  43633. });
  43634. if (!vcard_el) {
  43635. iq.c("vCard", {
  43636. 'xmlns': Strophe.NS.VCARD
  43637. });
  43638. } else {
  43639. iq.cnode(vcard_el);
  43640. }
  43641. return iq;
  43642. }
  43643. function setVCard(jid, data) {
  43644. if (!jid) {
  43645. throw Error("No jid provided for the VCard data");
  43646. }
  43647. var vcard_el = Strophe.xmlHtmlNode(tpl_vcard(data)).firstElementChild;
  43648. return _converse.api.sendIQ(createStanza("set", jid, vcard_el));
  43649. }
  43650. function getVCard(_converse, jid) {
  43651. /* Request the VCard of another user. Returns a promise.
  43652. *
  43653. * Parameters:
  43654. * (String) jid - The Jabber ID of the user whose VCard
  43655. * is being requested.
  43656. */
  43657. var to = Strophe.getBareJidFromJid(jid) === _converse.bare_jid ? null : jid;
  43658. return new Promise(function (resolve, reject) {
  43659. _converse.connection.sendIQ(createStanza("get", to), _.partial(onVCardData, jid, _, resolve), _.partial(onVCardError, jid, _, resolve), _converse.IQ_TIMEOUT);
  43660. });
  43661. }
  43662. /* Event handlers */
  43663. _converse.initVCardCollection = function () {
  43664. _converse.vcards = new _converse.VCards();
  43665. var id = b64_sha1("converse.vcards");
  43666. _converse.vcards.browserStorage = new Backbone.BrowserStorage[_converse.config.get('storage')](id);
  43667. _converse.vcards.fetch();
  43668. };
  43669. _converse.api.listen.on('sessionInitialized', _converse.initVCardCollection);
  43670. _converse.on('addClientFeatures', function () {
  43671. _converse.api.disco.own.features.add(Strophe.NS.VCARD);
  43672. });
  43673. _.extend(_converse.api, {
  43674. /**
  43675. * The XEP-0054 VCard API
  43676. *
  43677. * This API lets you access and update user VCards
  43678. *
  43679. * @namespace _converse.api.vcard
  43680. * @memberOf _converse.api
  43681. */
  43682. 'vcard': {
  43683. /**
  43684. * Enables setting new values for a VCard.
  43685. *
  43686. * @method _converse.api.vcard.set
  43687. * @param {string} jid The JID for which the VCard should be set
  43688. * @param {object} data A map of VCard keys and values
  43689. * @example
  43690. * _converse.api.vcard.set({
  43691. * 'jid': _converse.bare_jid,
  43692. * 'fn': 'John Doe',
  43693. * 'nickname': 'jdoe'
  43694. * }).then(() => {
  43695. * // Succes
  43696. * }).catch(() => {
  43697. * // Failure
  43698. * }).
  43699. */
  43700. 'set': function set(jid, data) {
  43701. return setVCard(jid, data);
  43702. },
  43703. /**
  43704. * @method _converse.api.vcard.get
  43705. * @param {Backbone.Model|string} model Either a `Backbone.Model` instance, or a string JID.
  43706. * If a `Backbone.Model` instance is passed in, then it must have either a `jid`
  43707. * attribute or a `muc_jid` attribute.
  43708. * @param {boolean} [force] A boolean indicating whether the vcard should be
  43709. * fetched even if it's been fetched before.
  43710. * @returns {promise} A Promise which resolves with the VCard data for a particular JID or for
  43711. * a `Backbone.Model` instance which represents an entity with a JID (such as a roster contact,
  43712. * chat or chatroom occupant).
  43713. *
  43714. * @example
  43715. * _converse.api.waitUntil('rosterContactsFetched').then(() => {
  43716. * _converse.api.vcard.get('someone@example.org').then(
  43717. * (vcard) => {
  43718. * // Do something with the vcard...
  43719. * }
  43720. * );
  43721. * });
  43722. */
  43723. 'get': function get(model, force) {
  43724. if (_.isString(model)) {
  43725. return getVCard(_converse, model);
  43726. } else if (force || !model.get('vcard_updated') || !moment(model.get('vcard_error')).isSame(new Date(), "day")) {
  43727. var jid = model.get('jid');
  43728. if (!jid) {
  43729. throw new Error("No JID to get vcard for!");
  43730. }
  43731. return getVCard(_converse, jid);
  43732. } else {
  43733. return Promise.resolve({});
  43734. }
  43735. },
  43736. /**
  43737. * Fetches the VCard associated with a particular `Backbone.Model` instance
  43738. * (by using its `jid` or `muc_jid` attribute) and then updates the model with the
  43739. * returned VCard data.
  43740. *
  43741. * @method _converse.api.vcard.update
  43742. * @param {Backbone.Model} model A `Backbone.Model` instance
  43743. * @param {boolean} [force] A boolean indicating whether the vcard should be
  43744. * fetched again even if it's been fetched before.
  43745. * @returns {promise} A promise which resolves once the update has completed.
  43746. * @example
  43747. * _converse.api.waitUntil('rosterContactsFetched').then(() => {
  43748. * const chatbox = _converse.chatboxes.getChatBox('someone@example.org');
  43749. * _converse.api.vcard.update(chatbox);
  43750. * });
  43751. */
  43752. 'update': function update(model, force) {
  43753. return this.get(model, force).then(function (vcard) {
  43754. delete vcard['stanza'];
  43755. model.save(vcard);
  43756. });
  43757. }
  43758. }
  43759. });
  43760. }
  43761. });
  43762. });
  43763. /***/ }),
  43764. /***/ "./src/converse.js":
  43765. /*!*************************!*\
  43766. !*** ./src/converse.js ***!
  43767. \*************************/
  43768. /*! no static exports found */
  43769. /***/ (function(module, exports, __webpack_require__) {
  43770. "use strict";
  43771. var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  43772. /*global define */
  43773. if (true) {
  43774. // The section below determines which plugins will be included in a build
  43775. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"),
  43776. /* START: Removable components
  43777. * --------------------
  43778. * Any of the following components may be removed if they're not needed.
  43779. */
  43780. __webpack_require__(/*! converse-autocomplete */ "./src/converse-autocomplete.js"), __webpack_require__(/*! converse-bookmarks */ "./src/converse-bookmarks.js"), // XEP-0048 Bookmarks
  43781. __webpack_require__(/*! converse-caps */ "./src/converse-caps.js"), // XEP-0115 Entity Capabilities
  43782. __webpack_require__(/*! converse-chatview */ "./src/converse-chatview.js"), // Renders standalone chat boxes for single user chat
  43783. __webpack_require__(/*! converse-controlbox */ "./src/converse-controlbox.js"), // The control box
  43784. __webpack_require__(/*! converse-dragresize */ "./src/converse-dragresize.js"), // Allows chat boxes to be resized by dragging them
  43785. __webpack_require__(/*! converse-embedded */ "./src/converse-embedded.js"), __webpack_require__(/*! converse-fullscreen */ "./src/converse-fullscreen.js"), __webpack_require__(/*! converse-push */ "./src/converse-push.js"), // XEP-0357 Push Notifications
  43786. __webpack_require__(/*! converse-headline */ "./src/converse-headline.js"), // Support for headline messages
  43787. __webpack_require__(/*! converse-mam */ "./src/converse-mam.js"), // XEP-0313 Message Archive Management
  43788. __webpack_require__(/*! converse-minimize */ "./src/converse-minimize.js"), // Allows chat boxes to be minimized
  43789. __webpack_require__(/*! converse-muc */ "./src/converse-muc.js"), // XEP-0045 Multi-user chat
  43790. __webpack_require__(/*! converse-muc-views */ "./src/converse-muc-views.js"), // Views related to MUC
  43791. __webpack_require__(/*! converse-notification */ "./src/converse-notification.js"), // HTML5 Notifications
  43792. __webpack_require__(/*! converse-omemo */ "./src/converse-omemo.js"), __webpack_require__(/*! converse-ping */ "./src/converse-ping.js"), // XEP-0199 XMPP Ping
  43793. __webpack_require__(/*! converse-register */ "./src/converse-register.js"), // XEP-0077 In-band registration
  43794. __webpack_require__(/*! converse-roomslist */ "./src/converse-roomslist.js"), // Show currently open chat rooms
  43795. __webpack_require__(/*! converse-roster */ "./src/converse-roster.js"), __webpack_require__(/*! converse-vcard */ "./src/converse-vcard.js")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (converse) {
  43796. return converse;
  43797. }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
  43798. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  43799. }
  43800. /***/ }),
  43801. /***/ "./src/i18n.js":
  43802. /*!*********************!*\
  43803. !*** ./src/i18n.js ***!
  43804. \*********************/
  43805. /*! no static exports found */
  43806. /***/ (function(module, exports, __webpack_require__) {
  43807. "use strict";
  43808. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  43809. // Converse.js (A browser based XMPP chat client)
  43810. // http://conversejs.org
  43811. //
  43812. // This is the internationalization module.
  43813. //
  43814. // Copyright (c) 2013-2017, Jan-Carel Brand <jc@opkode.com>
  43815. // Licensed under the Mozilla Public License (MPLv2)
  43816. //
  43817. /*global define */
  43818. (function (root, factory) {
  43819. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! es6-promise */ "es6-promise"), __webpack_require__(/*! jed */ "./node_modules/jed/jed.js"), __webpack_require__(/*! lodash.noconflict */ "lodash.noconflict"), __webpack_require__(/*! moment */ "moment"), __webpack_require__(/*! moment/locale/af */ "./node_modules/moment/locale/af.js"), __webpack_require__(/*! moment/locale/ar */ "./node_modules/moment/locale/ar.js"), __webpack_require__(/*! moment/locale/bg */ "./node_modules/moment/locale/bg.js"), __webpack_require__(/*! moment/locale/ca */ "./node_modules/moment/locale/ca.js"), __webpack_require__(/*! moment/locale/cs */ "./node_modules/moment/locale/cs.js"), __webpack_require__(/*! moment/locale/de */ "./node_modules/moment/locale/de.js"), __webpack_require__(/*! moment/locale/es */ "./node_modules/moment/locale/es.js"), __webpack_require__(/*! moment/locale/eu */ "./node_modules/moment/locale/eu.js"), __webpack_require__(/*! moment/locale/fr */ "./node_modules/moment/locale/fr.js"), __webpack_require__(/*! moment/locale/he */ "./node_modules/moment/locale/he.js"), __webpack_require__(/*! moment/locale/hu */ "./node_modules/moment/locale/hu.js"), __webpack_require__(/*! moment/locale/id */ "./node_modules/moment/locale/id.js"), __webpack_require__(/*! moment/locale/it */ "./node_modules/moment/locale/it.js"), __webpack_require__(/*! moment/locale/ja */ "./node_modules/moment/locale/ja.js"), __webpack_require__(/*! moment/locale/nb */ "./node_modules/moment/locale/nb.js"), __webpack_require__(/*! moment/locale/nl */ "./node_modules/moment/locale/nl.js"), __webpack_require__(/*! moment/locale/pl */ "./node_modules/moment/locale/pl.js"), __webpack_require__(/*! moment/locale/pt-br */ "./node_modules/moment/locale/pt-br.js"), __webpack_require__(/*! moment/locale/ru */ "./node_modules/moment/locale/ru.js"), __webpack_require__(/*! moment/locale/tr */ "./node_modules/moment/locale/tr.js"), __webpack_require__(/*! moment/locale/uk */ "./node_modules/moment/locale/uk.js"), __webpack_require__(/*! moment/locale/zh-cn */ "./node_modules/moment/locale/zh-cn.js"), __webpack_require__(/*! moment/locale/zh-tw */ "./node_modules/moment/locale/zh-tw.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  43820. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  43821. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  43822. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  43823. })(void 0, function (Promise, Jed, _, moment) {
  43824. 'use strict';
  43825. function detectLocale(library_check) {
  43826. /* Determine which locale is supported by the user's system as well
  43827. * as by the relevant library (e.g. converse.js or moment.js).
  43828. *
  43829. * Parameters:
  43830. * (Function) library_check - Returns a boolean indicating whether
  43831. * the locale is supported.
  43832. */
  43833. var locale, i;
  43834. if (window.navigator.userLanguage) {
  43835. locale = isLocaleAvailable(window.navigator.userLanguage, library_check);
  43836. }
  43837. if (window.navigator.languages && !locale) {
  43838. for (i = 0; i < window.navigator.languages.length && !locale; i++) {
  43839. locale = isLocaleAvailable(window.navigator.languages[i], library_check);
  43840. }
  43841. }
  43842. if (window.navigator.browserLanguage && !locale) {
  43843. locale = isLocaleAvailable(window.navigator.browserLanguage, library_check);
  43844. }
  43845. if (window.navigator.language && !locale) {
  43846. locale = isLocaleAvailable(window.navigator.language, library_check);
  43847. }
  43848. if (window.navigator.systemLanguage && !locale) {
  43849. locale = isLocaleAvailable(window.navigator.systemLanguage, library_check);
  43850. }
  43851. return locale || 'en';
  43852. }
  43853. function isMomentLocale(locale) {
  43854. return _.includes(moment.locales(), locale);
  43855. }
  43856. function isConverseLocale(locale, supported_locales) {
  43857. return _.isString(locale) && _.includes(supported_locales, locale);
  43858. }
  43859. function getLocale(preferred_locale, isSupportedByLibrary) {
  43860. if (_.isString(preferred_locale)) {
  43861. if (preferred_locale === 'en' || isSupportedByLibrary(preferred_locale)) {
  43862. return preferred_locale;
  43863. }
  43864. }
  43865. return detectLocale(isSupportedByLibrary) || 'en';
  43866. }
  43867. function isLocaleAvailable(locale, available) {
  43868. /* Check whether the locale or sub locale (e.g. en-US, en) is supported.
  43869. *
  43870. * Parameters:
  43871. * (String) locale - The locale to check for
  43872. * (Function) available - returns a boolean indicating whether the locale is supported
  43873. */
  43874. if (available(locale)) {
  43875. return locale;
  43876. } else {
  43877. var sublocale = locale.split("-")[0];
  43878. if (sublocale !== locale && available(sublocale)) {
  43879. return sublocale;
  43880. }
  43881. }
  43882. }
  43883. var jed_instance;
  43884. return {
  43885. setLocales: function setLocales(preferred_locale, _converse) {
  43886. _converse.locale = getLocale(preferred_locale, _.partial(isConverseLocale, _, _converse.locales));
  43887. moment.locale(getLocale(preferred_locale, isMomentLocale));
  43888. },
  43889. translate: function translate(str) {
  43890. if (_.isNil(jed_instance)) {
  43891. return Jed.sprintf.apply(Jed, arguments);
  43892. }
  43893. var t = jed_instance.translate(str);
  43894. if (arguments.length > 1) {
  43895. return t.fetch.apply(t, [].slice.call(arguments, 1));
  43896. } else {
  43897. return t.fetch();
  43898. }
  43899. },
  43900. fetchTranslations: function fetchTranslations(locale, supported_locales, locale_url) {
  43901. /* Fetch the translations for the given local at the given URL.
  43902. *
  43903. * Parameters:
  43904. * (String) locale: The given i18n locale
  43905. * (Array) supported_locales: List of locales supported
  43906. * (String) locale_url: The URL from which the translations
  43907. * should be fetched.
  43908. */
  43909. return new Promise(function (resolve, reject) {
  43910. if (!isConverseLocale(locale, supported_locales) || locale === 'en') {
  43911. return resolve();
  43912. }
  43913. var xhr = new XMLHttpRequest();
  43914. xhr.open('GET', locale_url, true);
  43915. xhr.setRequestHeader('Accept', "application/json, text/javascript");
  43916. xhr.onload = function () {
  43917. if (xhr.status >= 200 && xhr.status < 400) {
  43918. try {
  43919. var data = window.JSON.parse(xhr.responseText);
  43920. jed_instance = new Jed(data);
  43921. resolve();
  43922. } catch (e) {
  43923. xhr.onerror(e);
  43924. }
  43925. } else {
  43926. xhr.onerror();
  43927. }
  43928. };
  43929. xhr.onerror = function (e) {
  43930. var err_message = e ? " Error: ".concat(e.message) : '';
  43931. reject(new Error("Could not fetch translations. Status: ".concat(xhr.statusText, ". ").concat(err_message)));
  43932. };
  43933. xhr.send();
  43934. });
  43935. }
  43936. };
  43937. });
  43938. /***/ }),
  43939. /***/ "./src/jquery-stub.js":
  43940. /*!****************************!*\
  43941. !*** ./src/jquery-stub.js ***!
  43942. \****************************/
  43943. /*! no static exports found */
  43944. /***/ (function(module, exports, __webpack_require__) {
  43945. "use strict";
  43946. var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  43947. /*global define */
  43948. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
  43949. return Object;
  43950. }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
  43951. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  43952. /***/ }),
  43953. /***/ "./src/lodash.fp.js":
  43954. /*!**************************!*\
  43955. !*** ./src/lodash.fp.js ***!
  43956. \**************************/
  43957. /*! no static exports found */
  43958. /***/ (function(module, exports, __webpack_require__) {
  43959. "use strict";
  43960. var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  43961. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! lodash */ "lodash"), __webpack_require__(/*! lodash.converter */ "lodash.converter")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (_, lodashConverter) {
  43962. var fp = lodashConverter(_.runInContext());
  43963. return fp;
  43964. }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
  43965. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  43966. /***/ }),
  43967. /***/ "./src/polyfill.js":
  43968. /*!*************************!*\
  43969. !*** ./src/polyfill.js ***!
  43970. \*************************/
  43971. /*! no static exports found */
  43972. /***/ (function(module, exports, __webpack_require__) {
  43973. "use strict";
  43974. function CustomEvent(event, params) {
  43975. params = params || {
  43976. bubbles: false,
  43977. cancelable: false,
  43978. detail: undefined
  43979. };
  43980. var evt = document.createEvent('CustomEvent');
  43981. evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
  43982. return evt;
  43983. }
  43984. if (typeof window.CustomEvent !== "function") {
  43985. CustomEvent.prototype = window.Event.prototype;
  43986. window.CustomEvent = CustomEvent;
  43987. }
  43988. if (!String.prototype.includes) {
  43989. String.prototype.includes = function (search, start) {
  43990. 'use strict';
  43991. if (typeof start !== 'number') {
  43992. start = 0;
  43993. }
  43994. if (start + search.length > this.length) {
  43995. return false;
  43996. } else {
  43997. return this.indexOf(search, start) !== -1; // eslint-disable-line lodash/prefer-includes
  43998. }
  43999. };
  44000. }
  44001. if (!String.prototype.endsWith) {
  44002. String.prototype.endsWith = function (searchString, position) {
  44003. var subjectString = this.toString();
  44004. if (position === undefined || position > subjectString.length) {
  44005. position = subjectString.length;
  44006. }
  44007. position -= searchString.length;
  44008. var lastIndex = subjectString.indexOf(searchString, position);
  44009. return lastIndex !== -1 && lastIndex === position;
  44010. };
  44011. }
  44012. if (!String.prototype.startsWith) {
  44013. String.prototype.startsWith = function (searchString, position) {
  44014. position = position || 0;
  44015. return this.substr(position, searchString.length) === searchString;
  44016. };
  44017. }
  44018. if (!String.prototype.splitOnce) {
  44019. String.prototype.splitOnce = function (delimiter) {
  44020. var components = this.split(delimiter);
  44021. return [components.shift(), components.join(delimiter)];
  44022. };
  44023. }
  44024. if (!String.prototype.trim) {
  44025. String.prototype.trim = function () {
  44026. return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
  44027. };
  44028. }
  44029. /***/ }),
  44030. /***/ "./src/templates/add_chatroom_modal.html":
  44031. /*!***********************************************!*\
  44032. !*** ./src/templates/add_chatroom_modal.html ***!
  44033. \***********************************************/
  44034. /*! no static exports found */
  44035. /***/ (function(module, exports, __webpack_require__) {
  44036. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44037. module.exports = function(o) {
  44038. var __t, __p = '', __e = _.escape;
  44039. __p += '<!-- src/templates/add_chatroom_modal.html -->\n<div class="modal fade" id="add-chatroom-modal" tabindex="-1" role="dialog" aria-labelledby="add-chatroom-modal-label" aria-hidden="true">\n <div class="modal-dialog" role="document">\n <div class="modal-content">\n <div class="modal-header">\n <h5 class="modal-title"\n id="add-chatroom-modal-label">' +
  44040. __e(o.heading_new_chatroom) +
  44041. '</h5>\n <button type="button" class="close" data-dismiss="modal" aria-label="Close">\n <span aria-hidden="true">&times;</span>\n </button>\n </div>\n <div class="modal-body">\n <form class="converse-form add-chatroom">\n <div class="form-group">\n <label for="chatroom">' +
  44042. __e(o.label_room_address) +
  44043. ':</label>\n <input type="text" required="required" name="chatroom" class="form-control" placeholder="' +
  44044. __e(o.chatroom_placeholder) +
  44045. '">\n </div>\n <div class="form-group">\n <label for="nickname">' +
  44046. __e(o.label_nickname) +
  44047. ':</label>\n <input type="text" name="nickname" value="' +
  44048. __e(o.nick) +
  44049. '" class="form-control">\n </div>\n <input type="submit" class="btn btn-primary" name="join" value="' +
  44050. __e(o.label_join) +
  44051. '">\n </form>\n </div>\n </div>\n </div>\n</div>\n';
  44052. return __p
  44053. };
  44054. /***/ }),
  44055. /***/ "./src/templates/add_contact_modal.html":
  44056. /*!**********************************************!*\
  44057. !*** ./src/templates/add_contact_modal.html ***!
  44058. \**********************************************/
  44059. /*! no static exports found */
  44060. /***/ (function(module, exports, __webpack_require__) {
  44061. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44062. module.exports = function(o) {
  44063. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  44064. function print() { __p += __j.call(arguments, '') }
  44065. __p += '<!-- src/templates/add_contact_modal.html -->\n<!-- Add contact Modal -->\n<div class="modal fade" id="add-contact-modal" tabindex="-1" role="dialog" aria-labelledby="addContactModalLabel" aria-hidden="true">\n <div class="modal-dialog" role="document">\n <div class="modal-content">\n <div class="modal-header">\n <h5 class="modal-title" id="addContactModalLabel">' +
  44066. __e(o.heading_new_contact) +
  44067. '</h5>\n <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>\n </div>\n <form class="converse-form add-xmpp-contact">\n <div class="modal-body">\n <div class="form-group ';
  44068. if (o._converse.xhr_user_search_url) { ;
  44069. __p += ' hidden ';
  44070. } ;
  44071. __p += '">\n <label class="clearfix" for="jid">' +
  44072. __e(o.label_xmpp_address) +
  44073. ':</label>\n <input type="text" name="jid" required="required" value="' +
  44074. __e(o.jid) +
  44075. '"\n class="form-control"\n placeholder="' +
  44076. __e(o.contact_placeholder) +
  44077. '"/>\n <div class="invalid-feedback">' +
  44078. __e(o.error_message) +
  44079. '</div>\n </div>\n <div class="form-group">\n <label class="clearfix" for="name">' +
  44080. __e(o.label_nickname) +
  44081. ':</label>\n <input type="text" name="name" value="' +
  44082. __e(o.nickname) +
  44083. '"\n class="form-control"\n placeholder="' +
  44084. __e(o.nickname_placeholder) +
  44085. '"/>\n </div>\n </div>\n <div class="modal-footer">\n <button type="submit" class="btn btn-primary">' +
  44086. __e(o.label_add) +
  44087. '</button>\n </div>\n </form>\n </div>\n </div>\n</div>\n';
  44088. return __p
  44089. };
  44090. /***/ }),
  44091. /***/ "./src/templates/alert.html":
  44092. /*!**********************************!*\
  44093. !*** ./src/templates/alert.html ***!
  44094. \**********************************/
  44095. /*! no static exports found */
  44096. /***/ (function(module, exports, __webpack_require__) {
  44097. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44098. module.exports = function(o) {
  44099. var __t, __p = '', __e = _.escape;
  44100. __p += '<!-- src/templates/alert.html -->\n<div class="alert ' +
  44101. __e(o.type) +
  44102. '" role="alert">' +
  44103. __e(o.message) +
  44104. '</div>\n';
  44105. return __p
  44106. };
  44107. /***/ }),
  44108. /***/ "./src/templates/alert_modal.html":
  44109. /*!****************************************!*\
  44110. !*** ./src/templates/alert_modal.html ***!
  44111. \****************************************/
  44112. /*! no static exports found */
  44113. /***/ (function(module, exports, __webpack_require__) {
  44114. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44115. module.exports = function(o) {
  44116. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  44117. function print() { __p += __j.call(arguments, '') }
  44118. __p += '<!-- src/templates/alert_modal.html -->\n<div class="modal" tabindex="-1" role="dialog">\n <div class="modal-dialog" role="document">\n <div class="modal-content">\n <div class="modal-header ' +
  44119. __e(o.type) +
  44120. '">\n <h5 class="modal-title">' +
  44121. __e(o.title) +
  44122. '</h5>\n <button type="button" class="close" data-dismiss="modal" aria-label="Close">\n <span aria-hidden="true">&times;</span>\n </button>\n </div>\n <div class="modal-body">';
  44123. o.messages.forEach(function (message) { ;
  44124. __p += '\n <p>' +
  44125. __e(message) +
  44126. '</p>\n ';
  44127. }) ;
  44128. __p += '\n </div>\n </div>\n </div>\n</div>\n';
  44129. return __p
  44130. };
  44131. /***/ }),
  44132. /***/ "./src/templates/audio.html":
  44133. /*!**********************************!*\
  44134. !*** ./src/templates/audio.html ***!
  44135. \**********************************/
  44136. /*! no static exports found */
  44137. /***/ (function(module, exports, __webpack_require__) {
  44138. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44139. module.exports = function(o) {
  44140. var __t, __p = '', __e = _.escape;
  44141. __p += '<!-- src/templates/audio.html -->\n<audio controls><source src="' +
  44142. __e(o.url) +
  44143. '" type="audio/mpeg"></audio>\n<a target="_blank" rel="noopener" href="' +
  44144. __e(o.url) +
  44145. '">' +
  44146. __e(o.label_download) +
  44147. '</a>\n';
  44148. return __p
  44149. };
  44150. /***/ }),
  44151. /***/ "./src/templates/bookmark.html":
  44152. /*!*************************************!*\
  44153. !*** ./src/templates/bookmark.html ***!
  44154. \*************************************/
  44155. /*! no static exports found */
  44156. /***/ (function(module, exports, __webpack_require__) {
  44157. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44158. module.exports = function(o) {
  44159. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  44160. function print() { __p += __j.call(arguments, '') }
  44161. __p += '<!-- src/templates/bookmark.html -->\n<div class="list-item controlbox-padded room-item available-chatroom d-flex flex-row ';
  44162. if (o.hidden) { ;
  44163. __p += ' hidden ';
  44164. } ;
  44165. __p += '" data-room-jid="' +
  44166. __e(o.jid) +
  44167. '">\n <a class="list-item-link open-room w-100" data-room-jid="' +
  44168. __e(o.jid) +
  44169. '" title="' +
  44170. __e(o.open_title) +
  44171. '" href="#">' +
  44172. __e(o.name) +
  44173. '</a>\n <a class="list-item-action remove-bookmark fa fa-bookmark align-self-center ';
  44174. if (o.bookmarked) { ;
  44175. __p += ' button-on ';
  44176. } ;
  44177. __p += '"\n data-room-jid="' +
  44178. __e(o.jid) +
  44179. '" data-bookmark-name="' +
  44180. __e(o.name) +
  44181. '"\n title="' +
  44182. __e(o.info_remove_bookmark) +
  44183. '" href="#">&nbsp;</a>\n</div>\n';
  44184. return __p
  44185. };
  44186. /***/ }),
  44187. /***/ "./src/templates/bookmarks_list.html":
  44188. /*!*******************************************!*\
  44189. !*** ./src/templates/bookmarks_list.html ***!
  44190. \*******************************************/
  44191. /*! no static exports found */
  44192. /***/ (function(module, exports, __webpack_require__) {
  44193. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44194. module.exports = function(o) {
  44195. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  44196. function print() { __p += __j.call(arguments, '') }
  44197. __p += '<!-- src/templates/bookmarks_list.html -->\n<a href="#" class="list-toggle bookmarks-toggle controlbox-padded" title="' +
  44198. __e(o.desc_bookmarks) +
  44199. '">\n <span class="fa ';
  44200. if (o.toggle_state === o._converse.OPENED) { ;
  44201. __p += ' fa-caret-down ';
  44202. } else { ;
  44203. __p += ' fa-caret-right ';
  44204. } ;
  44205. __p += '">\n </span> ' +
  44206. __e(o.label_bookmarks) +
  44207. '</a>\n<div class="items-list bookmarks rooms-list ';
  44208. if (o.toggle_state !== o._converse.OPENED) { ;
  44209. __p += ' hidden ';
  44210. } ;
  44211. __p += '"></div>\n';
  44212. return __p
  44213. };
  44214. /***/ }),
  44215. /***/ "./src/templates/chat_status_modal.html":
  44216. /*!**********************************************!*\
  44217. !*** ./src/templates/chat_status_modal.html ***!
  44218. \**********************************************/
  44219. /*! no static exports found */
  44220. /***/ (function(module, exports, __webpack_require__) {
  44221. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44222. module.exports = function(o) {
  44223. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  44224. function print() { __p += __j.call(arguments, '') }
  44225. __p += '<!-- src/templates/chat_status_modal.html -->\n<!-- Change status Modal -->\n<div class="modal fade" id="modal-status-change" tabindex="-1" role="dialog" aria-labelledby="changeStatusModalLabel" aria-hidden="true">\n <div class="modal-dialog" role="document">\n <div class="modal-content">\n <div class="modal-header">\n <h5 class="modal-title" id="changeStatusModalLabel">' +
  44226. __e(o.modal_title) +
  44227. '</h5>\n <button type="button" class="close" data-dismiss="modal" aria-label="' +
  44228. __e(o.label_close) +
  44229. '">\n <span aria-hidden="true">&times;</span>\n </button>\n </div>\n <form class="set-xmpp-status" id="set-xmpp-status">\n <div class="modal-body">\n <div class="form-group">\n <div class="custom-control custom-radio">\n <input ';
  44230. if (o.status === 'online') { ;
  44231. __p += ' checked="checked" ';
  44232. } ;
  44233. __p += '\n type="radio" id="radio-online" value="online" name="chat_status" class="custom-control-input">\n <label class="custom-control-label" for="radio-online">\n <span class="fa fa-circle"></span>&nbsp;' +
  44234. __e(o.label_online) +
  44235. '</label>\n </div>\n <div class="custom-control custom-radio">\n <input ';
  44236. if (o.status === 'busy') { ;
  44237. __p += ' checked="checked" ';
  44238. } ;
  44239. __p += '\n type="radio" id="radio-busy" value="dnd" name="chat_status" class="custom-control-input">\n <label class="custom-control-label" for="radio-busy">\n <span class="fa fa-minus-circle"></span>&nbsp;' +
  44240. __e(o.label_busy) +
  44241. '</label>\n </div>\n <div class="custom-control custom-radio">\n <input ';
  44242. if (o.status === 'away') { ;
  44243. __p += ' checked="checked" ';
  44244. } ;
  44245. __p += '\n type="radio" id="radio-away" value="away" name="chat_status" class="custom-control-input">\n <label class="custom-control-label" for="radio-away">\n <span class="fa fa-dot-circle"></span>&nbsp;' +
  44246. __e(o.label_away) +
  44247. '</label>\n </div>\n <div class="custom-control custom-radio">\n <input ';
  44248. if (o.status === 'xa') { ;
  44249. __p += ' checked="checked" ';
  44250. } ;
  44251. __p += '\n type="radio" id="radio-xa" value="xa" name="chat_status" class="custom-control-input">\n <label class="custom-control-label" for="radio-xa">\n <span class="far fa-circle"></span>&nbsp;' +
  44252. __e(o.label_xa) +
  44253. '</label>\n </div>\n </div>\n <div class="btn-group w-100">\n <input name="status_message" type="text" class="form-control" \n value="' +
  44254. __e(o.status_message) +
  44255. '" placeholder="' +
  44256. __e(o.placeholder_status_message) +
  44257. '">\n <span class="clear-input fa fa-times ';
  44258. if (!o.status_message) { ;
  44259. __p += ' hidden ';
  44260. } ;
  44261. __p += '"></span>\n </div>\n </div>\n <div class="modal-footer">\n <button type="submit" class="btn btn-primary">' +
  44262. __e(o.label_save) +
  44263. '</button>\n </div>\n </form>\n </div>\n </div>\n</div>\n';
  44264. return __p
  44265. };
  44266. /***/ }),
  44267. /***/ "./src/templates/chatarea.html":
  44268. /*!*************************************!*\
  44269. !*** ./src/templates/chatarea.html ***!
  44270. \*************************************/
  44271. /*! no static exports found */
  44272. /***/ (function(module, exports, __webpack_require__) {
  44273. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44274. module.exports = function(o) {
  44275. var __t, __p = '', __j = Array.prototype.join;
  44276. function print() { __p += __j.call(arguments, '') }
  44277. __p += '<!-- src/templates/chatarea.html -->\n<div class="chat-area col">\n <div class="chat-content ';
  44278. if (o.show_send_button) { ;
  44279. __p += 'chat-content-sendbutton';
  44280. } ;
  44281. __p += '"></div>\n <div class="message-form-container"/>\n</div>\n';
  44282. return __p
  44283. };
  44284. /***/ }),
  44285. /***/ "./src/templates/chatbox.html":
  44286. /*!************************************!*\
  44287. !*** ./src/templates/chatbox.html ***!
  44288. \************************************/
  44289. /*! no static exports found */
  44290. /***/ (function(module, exports, __webpack_require__) {
  44291. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44292. module.exports = function(o) {
  44293. var __t, __p = '', __j = Array.prototype.join;
  44294. function print() { __p += __j.call(arguments, '') }
  44295. __p += '<!-- src/templates/chatbox.html -->\n<div class="flyout box-flyout">\n <div class="chat-body">\n <div class="chat-content ';
  44296. if (o.show_send_button) { ;
  44297. __p += 'chat-content-sendbutton';
  44298. } ;
  44299. __p += '"></div>\n <div class="message-form-container"/>\n </div>\n</div>\n';
  44300. return __p
  44301. };
  44302. /***/ }),
  44303. /***/ "./src/templates/chatbox_head.html":
  44304. /*!*****************************************!*\
  44305. !*** ./src/templates/chatbox_head.html ***!
  44306. \*****************************************/
  44307. /*! no static exports found */
  44308. /***/ (function(module, exports, __webpack_require__) {
  44309. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44310. module.exports = function(o) {
  44311. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  44312. function print() { __p += __j.call(arguments, '') }
  44313. __p += '<!-- src/templates/chatbox_head.html -->\n<div class="chat-head chat-head-chatbox row no-gutters">\n <div class="chatbox-navback"><i class="fa fa-arrow-left"></i></div>\n <div class="chatbox-title">\n <div class="row no-gutters">\n <canvas class="avatar" height="36" width="36"></canvas>\n <div class="col chat-title" title="' +
  44314. __e(o.jid) +
  44315. '">\n ';
  44316. if (o.url) { ;
  44317. __p += '\n <a href="' +
  44318. __e(o.url) +
  44319. '" target="_blank" rel="noopener" class="user">\n ';
  44320. } ;
  44321. __p += '\n ' +
  44322. __e( o.nickname || o.fullname || o.jid ) +
  44323. '\n ';
  44324. if (o.url) { ;
  44325. __p += '\n </a>\n ';
  44326. } ;
  44327. __p += '\n <p class="user-custom-message">' +
  44328. __e( o.status ) +
  44329. '</p>\n </div>\n </div>\n </div>\n <div class="chatbox-buttons row no-gutters">\n <a class="chatbox-btn close-chatbox-button fa fa-times" title=' +
  44330. __e(o.info_close) +
  44331. '></a>\n <a class="chatbox-btn show-user-details-modal fa fa-id-card" title="' +
  44332. __e(o.info_details) +
  44333. '"></a>\n </div>\n</div>\n';
  44334. return __p
  44335. };
  44336. /***/ }),
  44337. /***/ "./src/templates/chatbox_message_form.html":
  44338. /*!*************************************************!*\
  44339. !*** ./src/templates/chatbox_message_form.html ***!
  44340. \*************************************************/
  44341. /*! no static exports found */
  44342. /***/ (function(module, exports, __webpack_require__) {
  44343. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44344. module.exports = function(o) {
  44345. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  44346. function print() { __p += __j.call(arguments, '') }
  44347. __p += '<!-- src/templates/chatbox_message_form.html -->\n<div class="message-form-container">\n<div class="new-msgs-indicator hidden">▼ ' +
  44348. __e( o.unread_msgs ) +
  44349. ' ▼</div>\n<form class="sendXMPPMessage">\n ';
  44350. if (o.show_toolbar) { ;
  44351. __p += '\n <ul class="chat-toolbar no-text-select"></ul>\n ';
  44352. } ;
  44353. __p += '\n <input type="text" placeholder="' +
  44354. ((__t = (o.label_spoiler_hint)) == null ? '' : __t) +
  44355. '" value="' +
  44356. ((__t = ( o.hint_value )) == null ? '' : __t) +
  44357. '"\n class="';
  44358. if (!o.composing_spoiler) { ;
  44359. __p += ' hidden ';
  44360. } ;
  44361. __p += ' spoiler-hint"/>\n\n <div class="suggestion-box">\n <ul class="suggestion-box__results suggestion-box__results--above" hidden></ul>\n <textarea\n type="text"\n class="chat-textarea suggestion-box__input\n ';
  44362. if (o.show_send_button) { ;
  44363. __p += ' chat-textarea-send-button ';
  44364. } ;
  44365. __p += '\n ';
  44366. if (o.composing_spoiler) { ;
  44367. __p += ' spoiler ';
  44368. } ;
  44369. __p += '"\n placeholder="' +
  44370. __e(o.label_message) +
  44371. '">' +
  44372. ((__t = ( o.message_value )) == null ? '' : __t) +
  44373. '</textarea>\n <span class="suggestion-box__additions visually-hidden" role="status" aria-live="assertive" aria-relevant="additions"></span>\n\n ';
  44374. if (o.show_send_button) { ;
  44375. __p += '\n <button type="submit" class="pure-button send-button">' +
  44376. __e( o.label_send ) +
  44377. '</button>\n ';
  44378. } ;
  44379. __p += '\n </div>\n</form>\n</div>\n';
  44380. return __p
  44381. };
  44382. /***/ }),
  44383. /***/ "./src/templates/chatbox_minimize.html":
  44384. /*!*********************************************!*\
  44385. !*** ./src/templates/chatbox_minimize.html ***!
  44386. \*********************************************/
  44387. /*! no static exports found */
  44388. /***/ (function(module, exports, __webpack_require__) {
  44389. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44390. module.exports = function(o) {
  44391. var __t, __p = '', __e = _.escape;
  44392. __p += '<!-- src/templates/chatbox_minimize.html -->\n<a class="chatbox-btn toggle-chatbox-button fa fa-minus" title="' +
  44393. __e(o.info_minimize) +
  44394. '"></a>\n';
  44395. return __p
  44396. };
  44397. /***/ }),
  44398. /***/ "./src/templates/chatboxes.html":
  44399. /*!**************************************!*\
  44400. !*** ./src/templates/chatboxes.html ***!
  44401. \**************************************/
  44402. /*! no static exports found */
  44403. /***/ (function(module, exports, __webpack_require__) {
  44404. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44405. module.exports = function(o) {
  44406. var __t, __p = '';
  44407. __p += '<!-- src/templates/chatboxes.html -->\n<div class="converse-chatboxes row no-gutters"></div>\n<div id="converse-modals" class="modals"></div>\n';
  44408. return __p
  44409. };
  44410. /***/ }),
  44411. /***/ "./src/templates/chatroom.html":
  44412. /*!*************************************!*\
  44413. !*** ./src/templates/chatroom.html ***!
  44414. \*************************************/
  44415. /*! no static exports found */
  44416. /***/ (function(module, exports, __webpack_require__) {
  44417. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44418. module.exports = function(o) {
  44419. var __t, __p = '';
  44420. __p += '<!-- src/templates/chatroom.html -->\n<div class="flyout box-flyout">\n <div class="chat-head chat-head-chatroom row no-gutters"></div>\n <div class="chat-body chatroom-body row no-gutters">\n <div class="disconnect-container hidden"></div>\n </div>\n</div>\n';
  44421. return __p
  44422. };
  44423. /***/ }),
  44424. /***/ "./src/templates/chatroom_bookmark_form.html":
  44425. /*!***************************************************!*\
  44426. !*** ./src/templates/chatroom_bookmark_form.html ***!
  44427. \***************************************************/
  44428. /*! no static exports found */
  44429. /***/ (function(module, exports, __webpack_require__) {
  44430. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44431. module.exports = function(o) {
  44432. var __t, __p = '', __e = _.escape;
  44433. __p += '<!-- src/templates/chatroom_bookmark_form.html -->\n<div class="chatroom-form-container">\n <form class="converse-form chatroom-form">\n <legend>' +
  44434. __e(o.heading) +
  44435. '</legend>\n <fieldset class="form-group">\n <label for="converse_muc_bookmark_name">' +
  44436. __e(o.label_name) +
  44437. '</label>\n <input class="form-control" type="text" name="name" required="required" id="converse_muc_bookmark_name"/>\n </fieldset>\n <fieldset class="form-group">\n <label for="converse_muc_bookmark_nick">' +
  44438. __e(o.label_nick) +
  44439. '</label>\n <input class="form-control" type="text" name="nick" value="' +
  44440. __e(o.default_nick) +
  44441. '" id="converse_muc_bookmark_nick"/>\n </fieldset>\n <fieldset class="form-group form-check">\n <input class="form-check-input" id="converse_muc_bookmark_autojoin" type="checkbox" name="autojoin"/>\n <label class="form-check-label" for="converse_muc_bookmark_autojoin">' +
  44442. __e(o.label_autojoin) +
  44443. '</label>\n </fieldset>\n <fieldset class="form-group">\n <input class="btn btn-primary" type="submit" value="' +
  44444. __e(o.label_submit) +
  44445. '"/>\n <input class="btn btn-secondary button-cancel" type="button" value="' +
  44446. __e(o.label_cancel) +
  44447. '"/>\n </fieldset>\n </form>\n</div>\n';
  44448. return __p
  44449. };
  44450. /***/ }),
  44451. /***/ "./src/templates/chatroom_bookmark_toggle.html":
  44452. /*!*****************************************************!*\
  44453. !*** ./src/templates/chatroom_bookmark_toggle.html ***!
  44454. \*****************************************************/
  44455. /*! no static exports found */
  44456. /***/ (function(module, exports, __webpack_require__) {
  44457. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44458. module.exports = function(o) {
  44459. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  44460. function print() { __p += __j.call(arguments, '') }
  44461. __p += '<!-- src/templates/chatroom_bookmark_toggle.html -->\n<a class="chatbox-btn toggle-bookmark fa fa-bookmark\n ';
  44462. if (o.bookmarked) {;
  44463. __p += ' button-on ';
  44464. } ;
  44465. __p += '" title="' +
  44466. __e(o.info_toggle_bookmark) +
  44467. '"></a>\n';
  44468. return __p
  44469. };
  44470. /***/ }),
  44471. /***/ "./src/templates/chatroom_details_modal.html":
  44472. /*!***************************************************!*\
  44473. !*** ./src/templates/chatroom_details_modal.html ***!
  44474. \***************************************************/
  44475. /*! no static exports found */
  44476. /***/ (function(module, exports, __webpack_require__) {
  44477. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44478. module.exports = function(o) {
  44479. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  44480. function print() { __p += __j.call(arguments, '') }
  44481. __p += '<!-- src/templates/chatroom_details_modal.html -->\n<div class="modal fade" id="room-details-modal" tabindex="-1" role="dialog" aria-labelledby="room-details-modal-label" aria-hidden="true">\n <div class="modal-dialog" role="document">\n <div class="modal-content">\n <div class="modal-header">\n <h5 class="modal-title" id="room-details-modal-label">' +
  44482. __e(o.display_name) +
  44483. '</h5>\n <button type="button" class="close" data-dismiss="modal" aria-label="' +
  44484. __e(o.label_close) +
  44485. '"><span aria-hidden="true">&times;</span></button>\n </div>\n <div class="modal-body">\n <div class="room-info">\n <p class="room-info"><strong>' +
  44486. __e(o.__('Name')) +
  44487. '</strong>: ' +
  44488. __e(o.name) +
  44489. '</p>\n <p class="room-info"><strong>' +
  44490. __e(o.__('Groupchat address (JID)')) +
  44491. '</strong>: ' +
  44492. __e(o.jid) +
  44493. '</p>\n <p class="room-info"><strong>' +
  44494. __e(o.__('Description')) +
  44495. '</strong>: ' +
  44496. __e(o.description) +
  44497. '</p>\n ';
  44498. if (o.subject) { ;
  44499. __p += '\n <p class="room-info"><strong>' +
  44500. __e(o.__('Topic')) +
  44501. '</strong>: ' +
  44502. ((__t = (o.topic)) == null ? '' : __t) +
  44503. '</p> <!-- Sanitized in converse-muc-views. We want to render links. -->\n <p class="room-info"><strong>' +
  44504. __e(o.__('Topic author')) +
  44505. '</strong>: ' +
  44506. __e(o._.get(o.subject, 'author')) +
  44507. '</p>\n ';
  44508. } ;
  44509. __p += '\n <p class="room-info"><strong>' +
  44510. __e(o.__('Online users')) +
  44511. '</strong>: ' +
  44512. __e(o.num_occupants) +
  44513. '</p>\n <p class="room-info"><strong>' +
  44514. __e(o.__('Features')) +
  44515. '</strong>:\n <div class="chatroom-features">\n <ul class="features-list">\n ';
  44516. if (o.passwordprotected) { ;
  44517. __p += '\n <li class="feature" ><span class="fa fa-lock"></span>' +
  44518. __e( o.__('Password protected') ) +
  44519. ' - <em>' +
  44520. __e( o.__('This groupchat requires a password before entry') ) +
  44521. '</em></li>\n ';
  44522. } ;
  44523. __p += '\n ';
  44524. if (o.unsecured) { ;
  44525. __p += '\n <li class="feature" ><span class="fa fa-unlock"></span>' +
  44526. __e( o.__('No password required') ) +
  44527. ' - <em>' +
  44528. __e( o.__('This groupchat does not require a password upon entry') ) +
  44529. '</em></li>\n ';
  44530. } ;
  44531. __p += '\n ';
  44532. if (o.hidden) { ;
  44533. __p += '\n <li class="feature" ><span class="fa fa-eye-slash"></span>' +
  44534. __e( o.__('Hidden') ) +
  44535. ' - <em>' +
  44536. __e( o.__('This groupchat is not publicly searchable') ) +
  44537. '</em></li>\n ';
  44538. } ;
  44539. __p += '\n ';
  44540. if (o.public_room) { ;
  44541. __p += '\n <li class="feature" ><span class="fa fa-eye"></span>' +
  44542. __e( o.__('Public') ) +
  44543. ' - <em>' +
  44544. __e( o.__('This groupchat is publicly searchable') ) +
  44545. '</em></li>\n ';
  44546. } ;
  44547. __p += '\n ';
  44548. if (o.membersonly) { ;
  44549. __p += '\n <li class="feature" ><span class="fa fa-address-book"></span>' +
  44550. __e( o.__('Members only') ) +
  44551. ' - <em>' +
  44552. __e( o.__('This groupchat is restricted to members only') ) +
  44553. '</em></li>\n ';
  44554. } ;
  44555. __p += '\n ';
  44556. if (o.open) { ;
  44557. __p += '\n <li class="feature" ><span class="fa fa-globe"></span>' +
  44558. __e( o.__('Open') ) +
  44559. ' - <em>' +
  44560. __e( o.__('Anyone can join this groupchat') ) +
  44561. '</em></li>\n ';
  44562. } ;
  44563. __p += '\n ';
  44564. if (o.persistent) { ;
  44565. __p += '\n <li class="feature" ><span class="fa fa-save"></span>' +
  44566. __e( o.__('Persistent') ) +
  44567. ' - <em>' +
  44568. __e( o.__('This groupchat persists even if it\'s unoccupied') ) +
  44569. '</em></li>\n ';
  44570. } ;
  44571. __p += '\n ';
  44572. if (o.temporary) { ;
  44573. __p += '\n <li class="feature" ><span class="fa fa-snowflake-o"></span>' +
  44574. __e( o.__('Temporary') ) +
  44575. ' - <em>' +
  44576. __e( o.__('This groupchat will disappear once the last person leaves') ) +
  44577. '</em></li>\n ';
  44578. } ;
  44579. __p += '\n ';
  44580. if (o.nonanonymous) { ;
  44581. __p += '\n <li class="feature" ><span class="fa fa-id-card"></span>' +
  44582. __e( o.__('Not anonymous') ) +
  44583. ' - <em>' +
  44584. __e( o.__('All other groupchat participants can see your XMPP username') ) +
  44585. '</em></li>\n ';
  44586. } ;
  44587. __p += '\n ';
  44588. if (o.semianonymous) { ;
  44589. __p += '\n <li class="feature" ><span class="fa fa-user-secret"></span>' +
  44590. __e( o.__('Semi-anonymous') ) +
  44591. ' - <em>' +
  44592. __e( o.__('Only moderators can see your XMPP username') ) +
  44593. '</em></li>\n ';
  44594. } ;
  44595. __p += '\n ';
  44596. if (o.moderated) { ;
  44597. __p += '\n <li class="feature" ><span class="fa fa-gavel"></span>' +
  44598. __e( o.__('Moderated') ) +
  44599. ' - <em>' +
  44600. __e( o.__('This groupchat is being moderated') ) +
  44601. '</em></li>\n ';
  44602. } ;
  44603. __p += '\n ';
  44604. if (o.unmoderated) { ;
  44605. __p += '\n <li class="feature" ><span class="fa fa-info-circle"></span>' +
  44606. __e( o.__('Not moderated') ) +
  44607. ' - <em>' +
  44608. __e( o.__('This groupchat is not being moderated') ) +
  44609. '</em></li>\n ';
  44610. } ;
  44611. __p += '\n ';
  44612. if (o.mam_enabled) { ;
  44613. __p += '\n <li class="feature" ><span class="fa fa-database"></span>' +
  44614. __e( o.__('Message archiving') ) +
  44615. ' - <em>' +
  44616. __e( o.__('Messages are archived on the server') ) +
  44617. '</em></li>\n ';
  44618. } ;
  44619. __p += '\n </ul>\n </div>\n </p>\n </div>\n </div>\n <div class="modal-footer">\n <button type="button" class="btn btn-secondary" data-dismiss="modal">' +
  44620. __e(o.__('Close')) +
  44621. '</button>\n </div>\n </div>\n </div>\n</div>\n';
  44622. return __p
  44623. };
  44624. /***/ }),
  44625. /***/ "./src/templates/chatroom_disconnect.html":
  44626. /*!************************************************!*\
  44627. !*** ./src/templates/chatroom_disconnect.html ***!
  44628. \************************************************/
  44629. /*! no static exports found */
  44630. /***/ (function(module, exports, __webpack_require__) {
  44631. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44632. module.exports = function(o) {
  44633. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  44634. function print() { __p += __j.call(arguments, '') }
  44635. __p += '<!-- src/templates/chatroom_disconnect.html -->\n<div class="alert alert-danger">\n <h3 class="alert-heading disconnect-msg">' +
  44636. __e(o.disconnect_messages[0]) +
  44637. '</h3>\n\n ';
  44638. o._.forEach(o.disconnect_messages.slice(1), function (msg) { ;
  44639. __p += '\n <p class="disconnect-msg">' +
  44640. __e(msg) +
  44641. '</p>\n ';
  44642. }); ;
  44643. __p += '\n</div>\n';
  44644. return __p
  44645. };
  44646. /***/ }),
  44647. /***/ "./src/templates/chatroom_features.html":
  44648. /*!**********************************************!*\
  44649. !*** ./src/templates/chatroom_features.html ***!
  44650. \**********************************************/
  44651. /*! no static exports found */
  44652. /***/ (function(module, exports, __webpack_require__) {
  44653. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44654. module.exports = function(o) {
  44655. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  44656. function print() { __p += __j.call(arguments, '') }
  44657. __p += '<!-- src/templates/chatroom_features.html -->\n';
  44658. if (o.has_features) { ;
  44659. __p += '\n<p class="occupants-heading">' +
  44660. __e(o.__('Features')) +
  44661. '</p>\n';
  44662. } ;
  44663. __p += '\n<ul class="features-list">\n';
  44664. if (o.passwordprotected) { ;
  44665. __p += '\n<li class="feature" title="' +
  44666. __e( o.__('This groupchat requires a password before entry') ) +
  44667. '"><span class="fa fa-lock"></span>' +
  44668. __e( o.__('Password protected') ) +
  44669. '</li>\n';
  44670. } ;
  44671. __p += '\n';
  44672. if (o.unsecured) { ;
  44673. __p += '\n<li class="feature" title="' +
  44674. __e( o.__('This groupchat does not require a password upon entry') ) +
  44675. '"><span class="fa fa-unlock"></span>' +
  44676. __e( o.__('No password') ) +
  44677. '</li>\n';
  44678. } ;
  44679. __p += '\n';
  44680. if (o.hidden) { ;
  44681. __p += '\n<li class="feature" title="' +
  44682. __e( o.__('This groupchat is not publicly searchable') ) +
  44683. '"><span class="fa fa-eye-slash"></span>' +
  44684. __e( o.__('Hidden') ) +
  44685. '</li>\n';
  44686. } ;
  44687. __p += '\n';
  44688. if (o.public_room) { ;
  44689. __p += '\n<li class="feature" title="' +
  44690. __e( o.__('This groupchat is publicly searchable') ) +
  44691. '"><span class="fa fa-eye"></span>' +
  44692. __e( o.__('Public') ) +
  44693. '</li>\n';
  44694. } ;
  44695. __p += '\n';
  44696. if (o.membersonly) { ;
  44697. __p += '\n<li class="feature" title="' +
  44698. __e( o.__('this groupchat is restricted to members only') ) +
  44699. '"><span class="fa fa-address-book"></span>' +
  44700. __e( o.__('Members only') ) +
  44701. '</li>\n';
  44702. } ;
  44703. __p += '\n';
  44704. if (o.open) { ;
  44705. __p += '\n<li class="feature" title="' +
  44706. __e( o.__('Anyone can join this groupchat') ) +
  44707. '"><span class="fa fa-globe"></span>' +
  44708. __e( o.__('Open') ) +
  44709. '</li>\n';
  44710. } ;
  44711. __p += '\n';
  44712. if (o.persistent) { ;
  44713. __p += '\n<li class="feature" title="' +
  44714. __e( o.__('This groupchat persists even if it\'s unoccupied') ) +
  44715. '"><span class="fa fa-save"></span>' +
  44716. __e( o.__('Persistent') ) +
  44717. '</li>\n';
  44718. } ;
  44719. __p += '\n';
  44720. if (o.temporary) { ;
  44721. __p += '\n<li class="feature" title="' +
  44722. __e( o.__('This groupchat will disappear once the last person leaves') ) +
  44723. '"><span class="fa fa-snowflake-o"></span>' +
  44724. __e( o.__('Temporary') ) +
  44725. '</li>\n';
  44726. } ;
  44727. __p += '\n';
  44728. if (o.nonanonymous) { ;
  44729. __p += '\n<li class="feature" title="' +
  44730. __e( o.__('All other groupchat participants can see your XMPP username') ) +
  44731. '"><span class="fa fa-id-card"></span>' +
  44732. __e( o.__('Not anonymous') ) +
  44733. '</li>\n';
  44734. } ;
  44735. __p += '\n';
  44736. if (o.semianonymous) { ;
  44737. __p += '\n<li class="feature" title="' +
  44738. __e( o.__('Only moderators can see your XMPP username') ) +
  44739. '"><span class="fa fa-user-secret"></span>' +
  44740. __e( o.__('Semi-anonymous') ) +
  44741. '</li>\n';
  44742. } ;
  44743. __p += '\n';
  44744. if (o.moderated) { ;
  44745. __p += '\n<li class="feature" title="' +
  44746. __e( o.__('This groupchat is being moderated') ) +
  44747. '"><span class="fa fa-gavel"></span>' +
  44748. __e( o.__('Moderated') ) +
  44749. '</li>\n';
  44750. } ;
  44751. __p += '\n';
  44752. if (o.unmoderated) { ;
  44753. __p += '\n<li class="feature" title="' +
  44754. __e( o.__('This groupchat is not being moderated') ) +
  44755. '"><span class="fa fa-info-circle"></span>' +
  44756. __e( o.__('Not moderated') ) +
  44757. '</li>\n';
  44758. } ;
  44759. __p += '\n';
  44760. if (o.mam_enabled) { ;
  44761. __p += '\n<li class="feature" title="' +
  44762. __e( o.__('Messages are archived on the server') ) +
  44763. '"><span class="fa fa-database"></span>' +
  44764. __e( o.__('Message archiving') ) +
  44765. '</li>\n';
  44766. } ;
  44767. __p += '\n</ul>\n';
  44768. return __p
  44769. };
  44770. /***/ }),
  44771. /***/ "./src/templates/chatroom_form.html":
  44772. /*!******************************************!*\
  44773. !*** ./src/templates/chatroom_form.html ***!
  44774. \******************************************/
  44775. /*! no static exports found */
  44776. /***/ (function(module, exports, __webpack_require__) {
  44777. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44778. module.exports = function(o) {
  44779. var __t, __p = '';
  44780. __p += '<!-- src/templates/chatroom_form.html -->\n<div class="chatroom-form-container">\n <form class="converse-form chatroom-form">\n <fieldset class="form-group">\n <span class="spinner fa fa-spinner centered"/>\n </fieldset>\n </form>\n</div>\n';
  44781. return __p
  44782. };
  44783. /***/ }),
  44784. /***/ "./src/templates/chatroom_head.html":
  44785. /*!******************************************!*\
  44786. !*** ./src/templates/chatroom_head.html ***!
  44787. \******************************************/
  44788. /*! no static exports found */
  44789. /***/ (function(module, exports, __webpack_require__) {
  44790. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44791. module.exports = function(o) {
  44792. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  44793. function print() { __p += __j.call(arguments, '') }
  44794. __p += '<!-- src/templates/chatroom_head.html -->\n<div class="chatbox-navback"><i class="fa fa-arrow-left"></i></div>\n<div class="chatbox-title">\n <div class="chat-title" title="' +
  44795. __e(o.jid) +
  44796. '">\n ';
  44797. if (o.name && o.name !== o.Strophe.getNodeFromJid(o.jid)) { ;
  44798. __p += '\n ' +
  44799. __e( o.name ) +
  44800. '\n ';
  44801. } else { ;
  44802. __p += '\n ' +
  44803. __e( o.Strophe.getNodeFromJid(o.jid) ) +
  44804. '@' +
  44805. __e( o.Strophe.getDomainFromJid(o.jid) ) +
  44806. '\n ';
  44807. } ;
  44808. __p += '\n </div>\n <p class="chatroom-description" title="' +
  44809. __e(o.description) +
  44810. '">' +
  44811. __e(o.description) +
  44812. '<p/>\n</div>\n<div class="chatbox-buttons row no-gutters">\n <a class="chatbox-btn close-chatbox-button fa fa-sign-out-alt" title="' +
  44813. __e(o.info_close) +
  44814. '"></a>\n ';
  44815. if (o.affiliation == 'owner') { ;
  44816. __p += '\n <a class="chatbox-btn configure-chatroom-button fa fa-wrench" title="' +
  44817. __e(o.info_configure) +
  44818. ' "></a>\n ';
  44819. } ;
  44820. __p += '\n <a class="chatbox-btn show-room-details-modal fa fa-info-circle" title="' +
  44821. __e(o.info_details) +
  44822. '"></a>\n</div>\n';
  44823. return __p
  44824. };
  44825. /***/ }),
  44826. /***/ "./src/templates/chatroom_invite.html":
  44827. /*!********************************************!*\
  44828. !*** ./src/templates/chatroom_invite.html ***!
  44829. \********************************************/
  44830. /*! no static exports found */
  44831. /***/ (function(module, exports, __webpack_require__) {
  44832. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44833. module.exports = function(o) {
  44834. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  44835. function print() { __p += __j.call(arguments, '') }
  44836. __p += '<!-- src/templates/chatroom_invite.html -->\n<form class="room-invite">\n ';
  44837. if (o.error_message) { ;
  44838. __p += '\n <span class="error">' +
  44839. __e(o.error_message) +
  44840. '</span>\n ';
  44841. } ;
  44842. __p += '\n <input class="form-control invited-contact" placeholder="' +
  44843. __e(o.label_invitation) +
  44844. '" type="text"/>\n</form>\n';
  44845. return __p
  44846. };
  44847. /***/ }),
  44848. /***/ "./src/templates/chatroom_nickname_form.html":
  44849. /*!***************************************************!*\
  44850. !*** ./src/templates/chatroom_nickname_form.html ***!
  44851. \***************************************************/
  44852. /*! no static exports found */
  44853. /***/ (function(module, exports, __webpack_require__) {
  44854. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44855. module.exports = function(o) {
  44856. var __t, __p = '', __e = _.escape;
  44857. __p += '<!-- src/templates/chatroom_nickname_form.html -->\n<div class="chatroom-form-container">\n <form class="converse-form chatroom-form converse-centered-form">\n <fieldset class="form-group">\n <label>' +
  44858. __e(o.heading) +
  44859. '</label>\n <p class="validation-message">' +
  44860. __e(o.validation_message) +
  44861. '</p>\n <input type="text" required="required" name="nick" class="form-control" placeholder="' +
  44862. __e(o.label_nickname) +
  44863. '"/>\n </fieldset>\n <input type="submit" class="btn btn-primary" name="join" value="' +
  44864. __e(o.label_join) +
  44865. '"/>\n </form>\n</div>\n';
  44866. return __p
  44867. };
  44868. /***/ }),
  44869. /***/ "./src/templates/chatroom_password_form.html":
  44870. /*!***************************************************!*\
  44871. !*** ./src/templates/chatroom_password_form.html ***!
  44872. \***************************************************/
  44873. /*! no static exports found */
  44874. /***/ (function(module, exports, __webpack_require__) {
  44875. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44876. module.exports = function(o) {
  44877. var __t, __p = '', __e = _.escape;
  44878. __p += '<!-- src/templates/chatroom_password_form.html -->\n<div class="chatroom-form-container">\n <form class="pure-form converse-form chatroom-form">\n <fieldset class="form-group">\n <legend>' +
  44879. __e(o.heading) +
  44880. '</legend>\n <label>' +
  44881. __e(o.label_password) +
  44882. '</label>\n <input type="password" name="password"/>\n </fieldset>\n <input class="btn btn-primary" type="submit" value="' +
  44883. __e(o.label_submit) +
  44884. '"/>\n </form>\n</div>\n';
  44885. return __p
  44886. };
  44887. /***/ }),
  44888. /***/ "./src/templates/chatroom_sidebar.html":
  44889. /*!*********************************************!*\
  44890. !*** ./src/templates/chatroom_sidebar.html ***!
  44891. \*********************************************/
  44892. /*! no static exports found */
  44893. /***/ (function(module, exports, __webpack_require__) {
  44894. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44895. module.exports = function(o) {
  44896. var __t, __p = '', __e = _.escape;
  44897. __p += '<!-- src/templates/chatroom_sidebar.html -->\n<!-- <div class="occupants"> -->\n<div class="occupants-header">\n <i class="hide-occupants fa fa-times"></i>\n <p class="occupants-heading">' +
  44898. __e(o.label_occupants) +
  44899. '</p>\n</div>\n<ul class="occupant-list"></ul>\n<div class="chatroom-features"></div>\n<!-- </div> -->\n';
  44900. return __p
  44901. };
  44902. /***/ }),
  44903. /***/ "./src/templates/chats_panel.html":
  44904. /*!****************************************!*\
  44905. !*** ./src/templates/chats_panel.html ***!
  44906. \****************************************/
  44907. /*! no static exports found */
  44908. /***/ (function(module, exports, __webpack_require__) {
  44909. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44910. module.exports = function(o) {
  44911. var __t, __p = '';
  44912. __p += '<!-- src/templates/chats_panel.html -->\n<a id="toggle-minimized-chats" href="#" class="row no-gutters"></a>\n<div class="flyout minimized-chats-flyout row no-gutters"></div>\n';
  44913. return __p
  44914. };
  44915. /***/ }),
  44916. /***/ "./src/templates/controlbox.html":
  44917. /*!***************************************!*\
  44918. !*** ./src/templates/controlbox.html ***!
  44919. \***************************************/
  44920. /*! no static exports found */
  44921. /***/ (function(module, exports, __webpack_require__) {
  44922. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44923. module.exports = function(o) {
  44924. var __t, __p = '', __j = Array.prototype.join;
  44925. function print() { __p += __j.call(arguments, '') }
  44926. __p += '<!-- src/templates/controlbox.html -->\n<div class="flyout box-flyout">\n <div class="chat-head controlbox-head">\n ';
  44927. if (!o.sticky_controlbox) { ;
  44928. __p += '\n <a class="chatbox-btn close-chatbox-button fa fa-times"></a>\n ';
  44929. } ;
  44930. __p += '\n </div>\n <div class="controlbox-panes"></div>\n</div>\n';
  44931. return __p
  44932. };
  44933. /***/ }),
  44934. /***/ "./src/templates/controlbox_toggle.html":
  44935. /*!**********************************************!*\
  44936. !*** ./src/templates/controlbox_toggle.html ***!
  44937. \**********************************************/
  44938. /*! no static exports found */
  44939. /***/ (function(module, exports, __webpack_require__) {
  44940. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44941. module.exports = function(o) {
  44942. var __t, __p = '', __e = _.escape;
  44943. __p += '<!-- src/templates/controlbox_toggle.html -->\n<span class="toggle-feedback">' +
  44944. __e(o.label_toggle) +
  44945. '</span>\n';
  44946. return __p
  44947. };
  44948. /***/ }),
  44949. /***/ "./src/templates/converse_brand_heading.html":
  44950. /*!***************************************************!*\
  44951. !*** ./src/templates/converse_brand_heading.html ***!
  44952. \***************************************************/
  44953. /*! no static exports found */
  44954. /***/ (function(module, exports, __webpack_require__) {
  44955. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44956. module.exports = function(o) {
  44957. var __t, __p = '';
  44958. __p += '<!-- src/templates/converse_brand_heading.html -->\n<span class="brand-heading-container">\n <div class="brand-heading">\n <a href="https://conversejs.org" target="_blank" rel="noopener">\n <i class="icon-conversejs"></i><span class="brand-name">converse</span>\n </a>\n </div>\n</span>\n';
  44959. return __p
  44960. };
  44961. /***/ }),
  44962. /***/ "./src/templates/csn.html":
  44963. /*!********************************!*\
  44964. !*** ./src/templates/csn.html ***!
  44965. \********************************/
  44966. /*! no static exports found */
  44967. /***/ (function(module, exports, __webpack_require__) {
  44968. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44969. module.exports = function(o) {
  44970. var __t, __p = '', __e = _.escape;
  44971. __p += '<!-- src/templates/csn.html -->\n<div class="message chat-info chat-state-notification"\n data-isodate="' +
  44972. __e(o.isodate) +
  44973. '"\n data-csn="' +
  44974. __e(o.from) +
  44975. '">' +
  44976. __e(o.message) +
  44977. '</div>\n';
  44978. return __p
  44979. };
  44980. /***/ }),
  44981. /***/ "./src/templates/dragresize.html":
  44982. /*!***************************************!*\
  44983. !*** ./src/templates/dragresize.html ***!
  44984. \***************************************/
  44985. /*! no static exports found */
  44986. /***/ (function(module, exports, __webpack_require__) {
  44987. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  44988. module.exports = function(o) {
  44989. var __t, __p = '';
  44990. __p += '<!-- src/templates/dragresize.html -->\n<div class="dragresize dragresize-top"></div>\n<div class="dragresize dragresize-topleft"></div>\n<div class="dragresize dragresize-left"></div>\n';
  44991. return __p
  44992. };
  44993. /***/ }),
  44994. /***/ "./src/templates/emojis.html":
  44995. /*!***********************************!*\
  44996. !*** ./src/templates/emojis.html ***!
  44997. \***********************************/
  44998. /*! no static exports found */
  44999. /***/ (function(module, exports, __webpack_require__) {
  45000. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45001. module.exports = function(o) {
  45002. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  45003. function print() { __p += __j.call(arguments, '') }
  45004. __p += '<!-- src/templates/emojis.html -->\n<div class="emoji-picker-container">\n';
  45005. o._.forEach(o.emojis_by_category, function (obj, category) { ;
  45006. __p += '\n <ul class="emoji-picker emoji-picker-' +
  45007. __e(category) +
  45008. ' ';
  45009. if (o.current_category !== category) { ;
  45010. __p += ' hidden ';
  45011. } ;
  45012. __p += '">\n ';
  45013. o._.forEach(o.emojis_by_category[category], function (emoji) { ;
  45014. __p += '\n <li class="emoji insert-emoji ';
  45015. if (o.shouldBeHidden(emoji._shortname, o.current_skintone, o.toned_emojis)) { ;
  45016. __p += ' hidden ';
  45017. }; ;
  45018. __p += '"\n data-emoji="' +
  45019. __e(emoji._shortname) +
  45020. '">\n <a href="#" data-emoji="' +
  45021. __e(emoji._shortname) +
  45022. '"> ' +
  45023. ((__t = ( o.transform(emoji._shortname) )) == null ? '' : __t) +
  45024. ' </a>\n </li>\n ';
  45025. }); ;
  45026. __p += '\n </ul>\n';
  45027. }); ;
  45028. __p += '\n<ul class="emoji-toolbar">\n <li class="emoji-category-picker">\n <ul>\n ';
  45029. o._.forEach(o.emojis_by_category, function (obj, category) { ;
  45030. __p += '\n <li data-category="' +
  45031. __e(category) +
  45032. '" class="emoji-category ';
  45033. if (o.current_category === category) { ;
  45034. __p += ' picked ';
  45035. } ;
  45036. __p += '">\n <a class="pick-category" href="#" data-category="' +
  45037. __e(category) +
  45038. '"> ' +
  45039. ((__t = ( o.transform(o.emojis_by_category[category][0]._shortname) )) == null ? '' : __t) +
  45040. ' </a>\n </li>\n ';
  45041. }); ;
  45042. __p += '\n </ul>\n </li>\n <li class="emoji-skintone-picker">\n <ul>\n ';
  45043. o._.forEach(o.skintones, function (skintone) { ;
  45044. __p += '\n <li data-skintone="' +
  45045. __e(skintone) +
  45046. '" class="emoji-skintone ';
  45047. if (o.current_skintone === skintone) { ;
  45048. __p += ' picked ';
  45049. } ;
  45050. __p += '">\n <a class="pick-skintone" href="#" data-skintone="' +
  45051. __e(skintone) +
  45052. '"> ' +
  45053. ((__t = ( o.transform(':'+skintone+':') )) == null ? '' : __t) +
  45054. ' </a>\n </li>\n ';
  45055. }); ;
  45056. __p += '\n </ul>\n </li>\n</ul>\n</div>\n';
  45057. return __p
  45058. };
  45059. /***/ }),
  45060. /***/ "./src/templates/error_message.html":
  45061. /*!******************************************!*\
  45062. !*** ./src/templates/error_message.html ***!
  45063. \******************************************/
  45064. /*! no static exports found */
  45065. /***/ (function(module, exports, __webpack_require__) {
  45066. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45067. module.exports = function(o) {
  45068. var __t, __p = '', __e = _.escape;
  45069. __p += '<!-- src/templates/error_message.html -->\n<div class="message chat-info chat-error" data-isodate="' +
  45070. __e(o.isodate) +
  45071. '">' +
  45072. __e(o.message) +
  45073. '</div>\n';
  45074. return __p
  45075. };
  45076. /***/ }),
  45077. /***/ "./src/templates/field.html":
  45078. /*!**********************************!*\
  45079. !*** ./src/templates/field.html ***!
  45080. \**********************************/
  45081. /*! no static exports found */
  45082. /***/ (function(module, exports, __webpack_require__) {
  45083. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45084. module.exports = function(o) {
  45085. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  45086. function print() { __p += __j.call(arguments, '') }
  45087. __p += '<!-- src/templates/field.html -->\n<field var="' +
  45088. __e(o.name) +
  45089. '">\n';
  45090. if (o.value.constructor === Array) { ;
  45091. __p += '\n ';
  45092. o.value.forEach(function (arrayValue) { ;
  45093. __p += '<value>' +
  45094. __e(arrayValue) +
  45095. '</value>';
  45096. }); ;
  45097. __p += '\n';
  45098. } else { ;
  45099. __p += '\n <value>' +
  45100. __e(o.value) +
  45101. '</value>\n';
  45102. } ;
  45103. __p += '</field>\n';
  45104. return __p
  45105. };
  45106. /***/ }),
  45107. /***/ "./src/templates/file.html":
  45108. /*!*********************************!*\
  45109. !*** ./src/templates/file.html ***!
  45110. \*********************************/
  45111. /*! no static exports found */
  45112. /***/ (function(module, exports, __webpack_require__) {
  45113. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45114. module.exports = function(o) {
  45115. var __t, __p = '', __e = _.escape;
  45116. __p += '<!-- src/templates/file.html -->\n<a target="_blank" rel="noopener" href="' +
  45117. __e(o.url) +
  45118. '">' +
  45119. __e(o.label_download) +
  45120. '</a>\n';
  45121. return __p
  45122. };
  45123. /***/ }),
  45124. /***/ "./src/templates/file_progress.html":
  45125. /*!******************************************!*\
  45126. !*** ./src/templates/file_progress.html ***!
  45127. \******************************************/
  45128. /*! no static exports found */
  45129. /***/ (function(module, exports, __webpack_require__) {
  45130. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45131. module.exports = function(o) {
  45132. var __t, __p = '', __e = _.escape;
  45133. __p += '<!-- src/templates/file_progress.html -->\n<div class="message chat-msg" data-isodate="' +
  45134. __e(o.time) +
  45135. '" data-msgid="' +
  45136. __e(o.msgid) +
  45137. '">\n <canvas class="avatar chat-msg__avatar" height="36" width="36"></canvas>\n <div class="chat-msg__content">\n <span class="chat-msg__text">Uploading file: <strong>' +
  45138. __e(o.file.name) +
  45139. '</strong>, ' +
  45140. __e(o.filesize) +
  45141. '</span>\n <progress value="' +
  45142. __e(o.progress) +
  45143. '"/>\n </div>\n</div>\n';
  45144. return __p
  45145. };
  45146. /***/ }),
  45147. /***/ "./src/templates/form_captcha.html":
  45148. /*!*****************************************!*\
  45149. !*** ./src/templates/form_captcha.html ***!
  45150. \*****************************************/
  45151. /*! no static exports found */
  45152. /***/ (function(module, exports, __webpack_require__) {
  45153. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45154. module.exports = function(o) {
  45155. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  45156. function print() { __p += __j.call(arguments, '') }
  45157. __p += '<!-- src/templates/form_captcha.html -->\n';
  45158. if (o.label) { ;
  45159. __p += '\n<label>\n ' +
  45160. __e(o.label) +
  45161. '\n</label>\n';
  45162. } ;
  45163. __p += '\n<img src="data:' +
  45164. __e(o.type) +
  45165. ';base64,' +
  45166. __e(o.data) +
  45167. '">\n<input name="' +
  45168. __e(o.name) +
  45169. '" type="text" ';
  45170. if (o.required) { ;
  45171. __p += ' class="required" ';
  45172. } ;
  45173. __p += ' >\n\n\n';
  45174. return __p
  45175. };
  45176. /***/ }),
  45177. /***/ "./src/templates/form_checkbox.html":
  45178. /*!******************************************!*\
  45179. !*** ./src/templates/form_checkbox.html ***!
  45180. \******************************************/
  45181. /*! no static exports found */
  45182. /***/ (function(module, exports, __webpack_require__) {
  45183. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45184. module.exports = function(o) {
  45185. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  45186. function print() { __p += __j.call(arguments, '') }
  45187. __p += '<!-- src/templates/form_checkbox.html -->\n<div class="form-group">\n <input id="' +
  45188. __e(o.id) +
  45189. '" name="' +
  45190. __e(o.name) +
  45191. '" type="checkbox" ' +
  45192. __e(o.checked) +
  45193. ' ';
  45194. if (o.required) { ;
  45195. __p += ' required ';
  45196. } ;
  45197. __p += ' >\n <label class="form-check-label" for="' +
  45198. __e(o.id) +
  45199. '">' +
  45200. __e(o.label) +
  45201. '</label>\n</div>\n';
  45202. return __p
  45203. };
  45204. /***/ }),
  45205. /***/ "./src/templates/form_input.html":
  45206. /*!***************************************!*\
  45207. !*** ./src/templates/form_input.html ***!
  45208. \***************************************/
  45209. /*! no static exports found */
  45210. /***/ (function(module, exports, __webpack_require__) {
  45211. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45212. module.exports = function(o) {
  45213. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  45214. function print() { __p += __j.call(arguments, '') }
  45215. __p += '<!-- src/templates/form_input.html -->\n<div class="form-group">\n ';
  45216. if (o.type !== 'hidden') { ;
  45217. __p += '\n <label for="' +
  45218. __e(o.id) +
  45219. '">' +
  45220. __e(o.label) +
  45221. '</label>\n ';
  45222. } ;
  45223. __p += '\n <input class="form-control" name="' +
  45224. __e(o.name) +
  45225. '" type="' +
  45226. __e(o.type) +
  45227. '" id="' +
  45228. __e(o.id) +
  45229. '"\n ';
  45230. if (o.placeholder) { ;
  45231. __p += ' placeholder="' +
  45232. __e(o.placeholder) +
  45233. '" ';
  45234. } ;
  45235. __p += '\n ';
  45236. if (o.value) { ;
  45237. __p += ' value="' +
  45238. __e(o.value) +
  45239. '" ';
  45240. } ;
  45241. __p += '\n ';
  45242. if (o.required) { ;
  45243. __p += ' required ';
  45244. } ;
  45245. __p += ' >\n</div>\n';
  45246. return __p
  45247. };
  45248. /***/ }),
  45249. /***/ "./src/templates/form_select.html":
  45250. /*!****************************************!*\
  45251. !*** ./src/templates/form_select.html ***!
  45252. \****************************************/
  45253. /*! no static exports found */
  45254. /***/ (function(module, exports, __webpack_require__) {
  45255. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45256. module.exports = function(o) {
  45257. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  45258. function print() { __p += __j.call(arguments, '') }
  45259. __p += '<!-- src/templates/form_select.html -->\n<div class="form-group">\n <label for="' +
  45260. __e(o.id) +
  45261. '">' +
  45262. __e(o.label) +
  45263. '</label>\n <select class="form-control" id="' +
  45264. __e(o.id) +
  45265. '" name="' +
  45266. __e(o.name) +
  45267. '" ';
  45268. if (o.multiple) { ;
  45269. __p += ' multiple="multiple" ';
  45270. } ;
  45271. __p += '>' +
  45272. ((__t = (o.options)) == null ? '' : __t) +
  45273. '</select>\n</div>\n';
  45274. return __p
  45275. };
  45276. /***/ }),
  45277. /***/ "./src/templates/form_textarea.html":
  45278. /*!******************************************!*\
  45279. !*** ./src/templates/form_textarea.html ***!
  45280. \******************************************/
  45281. /*! no static exports found */
  45282. /***/ (function(module, exports, __webpack_require__) {
  45283. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45284. module.exports = function(o) {
  45285. var __t, __p = '', __e = _.escape;
  45286. __p += '<!-- src/templates/form_textarea.html -->\n<label class="label-ta">' +
  45287. __e(o.label) +
  45288. '</label>\n<textarea name="' +
  45289. __e(o.name) +
  45290. '">' +
  45291. __e(o.value) +
  45292. '</textarea>\n';
  45293. return __p
  45294. };
  45295. /***/ }),
  45296. /***/ "./src/templates/form_url.html":
  45297. /*!*************************************!*\
  45298. !*** ./src/templates/form_url.html ***!
  45299. \*************************************/
  45300. /*! no static exports found */
  45301. /***/ (function(module, exports, __webpack_require__) {
  45302. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45303. module.exports = function(o) {
  45304. var __t, __p = '', __e = _.escape;
  45305. __p += '<!-- src/templates/form_url.html -->\n<label>\n ' +
  45306. __e(o.label) +
  45307. '\n <a class="form-url" target="_blank" rel="noopener" href="' +
  45308. __e(o.value) +
  45309. '">' +
  45310. __e(o.value) +
  45311. '</a>\n</label>\n';
  45312. return __p
  45313. };
  45314. /***/ }),
  45315. /***/ "./src/templates/form_username.html":
  45316. /*!******************************************!*\
  45317. !*** ./src/templates/form_username.html ***!
  45318. \******************************************/
  45319. /*! no static exports found */
  45320. /***/ (function(module, exports, __webpack_require__) {
  45321. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45322. module.exports = function(o) {
  45323. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  45324. function print() { __p += __j.call(arguments, '') }
  45325. __p += '<!-- src/templates/form_username.html -->\n';
  45326. if (o.label) { ;
  45327. __p += '\n<label>\n ' +
  45328. __e(o.label) +
  45329. '\n</label>\n';
  45330. } ;
  45331. __p += '\n<div class="input-group">\n <input name="' +
  45332. __e(o.name) +
  45333. '" type="' +
  45334. __e(o.type) +
  45335. '"\n ';
  45336. if (o.value) { ;
  45337. __p += ' value="' +
  45338. __e(o.value) +
  45339. '" ';
  45340. } ;
  45341. __p += '\n ';
  45342. if (o.required) { ;
  45343. __p += ' class="required" ';
  45344. } ;
  45345. __p += ' />\n <span title="' +
  45346. __e(o.domain) +
  45347. '">' +
  45348. __e(o.domain) +
  45349. '</span>\n</div>\n';
  45350. return __p
  45351. };
  45352. /***/ }),
  45353. /***/ "./src/templates/group_header.html":
  45354. /*!*****************************************!*\
  45355. !*** ./src/templates/group_header.html ***!
  45356. \*****************************************/
  45357. /*! no static exports found */
  45358. /***/ (function(module, exports, __webpack_require__) {
  45359. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45360. module.exports = function(o) {
  45361. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  45362. function print() { __p += __j.call(arguments, '') }
  45363. __p += '<!-- src/templates/group_header.html -->\n<a href="#" class="group-toggle controlbox-padded" title="' +
  45364. __e(o.desc_group_toggle) +
  45365. '">\n <span class="fa ';
  45366. if (o.toggle_state === o._converse.OPENED) { ;
  45367. __p += ' fa-caret-down ';
  45368. } else { ;
  45369. __p += ' fa-caret-right ';
  45370. } ;
  45371. __p += '">\n </span> ' +
  45372. __e(o.label_group) +
  45373. '</a>\n<ul class="items-list roster-group-contacts ';
  45374. if (o.toggle_state === o._converse.CLOSED) { ;
  45375. __p += ' collapsed ';
  45376. } ;
  45377. __p += '"></ul>\n';
  45378. return __p
  45379. };
  45380. /***/ }),
  45381. /***/ "./src/templates/help_message.html":
  45382. /*!*****************************************!*\
  45383. !*** ./src/templates/help_message.html ***!
  45384. \*****************************************/
  45385. /*! no static exports found */
  45386. /***/ (function(module, exports, __webpack_require__) {
  45387. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45388. module.exports = function(o) {
  45389. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  45390. function print() { __p += __j.call(arguments, '') }
  45391. __p += '<!-- src/templates/help_message.html -->\n<div class="message chat-info ';
  45392. if (o.type !== 'info') { ;
  45393. __p += ' chat-' +
  45394. __e(o.type) +
  45395. ' ';
  45396. } ;
  45397. __p += '" data-isodate="' +
  45398. __e(o.isodate) +
  45399. '">' +
  45400. ((__t = (o.message)) == null ? '' : __t) +
  45401. '</div>\n';
  45402. return __p
  45403. };
  45404. /***/ }),
  45405. /***/ "./src/templates/image.html":
  45406. /*!**********************************!*\
  45407. !*** ./src/templates/image.html ***!
  45408. \**********************************/
  45409. /*! no static exports found */
  45410. /***/ (function(module, exports, __webpack_require__) {
  45411. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45412. module.exports = function(o) {
  45413. var __t, __p = '', __e = _.escape;
  45414. __p += '<!-- src/templates/image.html -->\n<a href="' +
  45415. __e(o.url) +
  45416. '" target="_blank" rel="noopener"><img class="chat-image img-thumbnail" src="' +
  45417. __e(o.url) +
  45418. '"></a>\n';
  45419. return __p
  45420. };
  45421. /***/ }),
  45422. /***/ "./src/templates/info.html":
  45423. /*!*********************************!*\
  45424. !*** ./src/templates/info.html ***!
  45425. \*********************************/
  45426. /*! no static exports found */
  45427. /***/ (function(module, exports, __webpack_require__) {
  45428. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45429. module.exports = function(o) {
  45430. var __t, __p = '', __e = _.escape;
  45431. __p += '<!-- src/templates/info.html -->\n<div class="message chat-info ' +
  45432. __e(o.extra_classes) +
  45433. '"\n data-isodate="' +
  45434. __e(o.isodate) +
  45435. '"\n ' +
  45436. __e(o.data) +
  45437. '>' +
  45438. __e(o.message) +
  45439. '</div>\n';
  45440. return __p
  45441. };
  45442. /***/ }),
  45443. /***/ "./src/templates/inverse_brand_heading.html":
  45444. /*!**************************************************!*\
  45445. !*** ./src/templates/inverse_brand_heading.html ***!
  45446. \**************************************************/
  45447. /*! no static exports found */
  45448. /***/ (function(module, exports, __webpack_require__) {
  45449. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45450. module.exports = function(o) {
  45451. var __t, __p = '';
  45452. __p += '<!-- src/templates/inverse_brand_heading.html -->\n<div class="row">\n <div class="container brand-heading-container">\n <h1 class="brand-heading"><i class="icon-conversejs"></i>Converse</h1>\n <p class="brand-subtitle"><a target="_blank" rel="nofollow" href="https://conversejs.org">Open Source</a> XMPP chat client brought to you by <a target="_blank" rel="nofollow" href="https://opkode.com">Opkode</a> </p>\n <p class="brand-subtitle"><a target="_blank" rel="nofollow" href="https://hosted.weblate.org/projects/conversejs/#languages">Translate</a> it into your own language</p>\n <div>\n</div>\n';
  45453. return __p
  45454. };
  45455. /***/ }),
  45456. /***/ "./src/templates/list_chatrooms_modal.html":
  45457. /*!*************************************************!*\
  45458. !*** ./src/templates/list_chatrooms_modal.html ***!
  45459. \*************************************************/
  45460. /*! no static exports found */
  45461. /***/ (function(module, exports, __webpack_require__) {
  45462. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45463. module.exports = function(o) {
  45464. var __t, __p = '', __e = _.escape;
  45465. __p += '<!-- src/templates/list_chatrooms_modal.html -->\n<div class="modal fade" id="list-chatrooms-modal" tabindex="-1" role="dialog" aria-labelledby="list-chatrooms-modal-label" aria-hidden="true">\n <div class="modal-dialog" role="document">\n <div class="modal-content">\n <div class="modal-header">\n <h5 class="modal-title"\n id="list-chatrooms-modal-label">' +
  45466. __e(o.heading_list_chatrooms) +
  45467. '</h5>\n <button type="button" class="close" data-dismiss="modal" aria-label="Close">\n <span aria-hidden="true">&times;</span>\n </button>\n </div>\n <div class="modal-body">\n <form class="converse-form list-chatrooms">\n <div class="form-group">\n <label for="chatroom">' +
  45468. __e(o.label_server_address) +
  45469. ':</label>\n <input type="text" value="' +
  45470. __e(o.muc_domain) +
  45471. '" required="required" name="server" class="form-control" placeholder="' +
  45472. __e(o.server_placeholder) +
  45473. '">\n </div>\n <input type="submit" class="btn btn-primary" name="join" value="' +
  45474. __e(o.label_query) +
  45475. '">\n </form>\n <ul class="available-chatrooms list-group"></ul>\n </div>\n </div>\n </div>\n</div>\n';
  45476. return __p
  45477. };
  45478. /***/ }),
  45479. /***/ "./src/templates/login_panel.html":
  45480. /*!****************************************!*\
  45481. !*** ./src/templates/login_panel.html ***!
  45482. \****************************************/
  45483. /*! no static exports found */
  45484. /***/ (function(module, exports, __webpack_require__) {
  45485. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45486. module.exports = function(o) {
  45487. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  45488. function print() { __p += __j.call(arguments, '') }
  45489. __p += '<!-- src/templates/login_panel.html -->\n<div id="converse-login-panel" class="controlbox-pane fade-in row no-gutters">\n <form id="converse-login" class="converse-form" method="post">\n <div class="conn-feedback fade-in ';
  45490. if (!o.conn_feedback_subject) { ;
  45491. __p += ' hidden ';
  45492. } ;
  45493. __p += ' ' +
  45494. __e(o.conn_feedback_class) +
  45495. '">\n <p class="feedback-subject">' +
  45496. __e( o.conn_feedback_subject ) +
  45497. '</p>\n <p class="feedback-message ';
  45498. if (!o.conn_feedback_message) { ;
  45499. __p += ' hidden ';
  45500. } ;
  45501. __p += '">' +
  45502. __e(o.conn_feedback_message) +
  45503. '</p>\n </div>\n ';
  45504. if (o.auto_login || o._converse.CONNECTION_STATUS[o.connection_status] === 'CONNECTING') { ;
  45505. __p += '\n <span class="spinner fa fa-spinner centered"/>\n ';
  45506. } else { ;
  45507. __p += '\n ';
  45508. if (o.authentication == o.LOGIN || o.authentication == o.EXTERNAL) { ;
  45509. __p += '\n <div class="form-group">\n <label for="converse-login-jid">' +
  45510. __e(o.__("XMPP Username:")) +
  45511. '</label>\n <input id="converse-login-jid" class="form-control" autofocus required="required" type="text" name="jid" placeholder="' +
  45512. __e(o.placeholder_username) +
  45513. '">\n </div>\n ';
  45514. if (o.authentication !== o.EXTERNAL) { ;
  45515. __p += '\n <div class="form-group">\n <label for="converse-login-password">' +
  45516. __e(o.__("Password:")) +
  45517. '</label>\n <input id="converse-login-password" class="form-control" required="required" type="password" name="password" placeholder="' +
  45518. __e(o.__('password')) +
  45519. '">\n </div>\n ';
  45520. } ;
  45521. __p += '\n <div class="form-group form-check">\n <input id="converse-login-trusted" type="checkbox" class="form-check-input" name="trusted" ';
  45522. if (o._converse.config.get('trusted')) { ;
  45523. __p += ' checked="checked" ';
  45524. } ;
  45525. __p += '>\n <label for="converse-login-trusted" class="form-check-label">' +
  45526. __e(o.__('This is a trusted device')) +
  45527. '</label>\n <i class="fa fa-info-circle" data-toggle="popover"\n data-title="Trusted device?"\n data-content="' +
  45528. __e(o.__('To improve performance, we cache your data in this browser. Uncheck this box if this is a public computer or if you want your data to be deleted when you log out. It\'s important that you explicitly log out, otherwise not all cached data might be deleted.')) +
  45529. '"></i>\n </div>\n\n <fieldset class="buttons">\n <input class="btn btn-primary" type="submit" value="' +
  45530. __e(o.__('Log in')) +
  45531. '">\n </fieldset>\n ';
  45532. } ;
  45533. __p += '\n ';
  45534. if (o.authentication == o.ANONYMOUS) { ;
  45535. __p += '\n <input class="btn btn-primary login-anon" type="submit" value="' +
  45536. __e(o.__('Click here to log in anonymously')) +
  45537. '"/>\n ';
  45538. } ;
  45539. __p += '\n ';
  45540. if (o.authentication == o.PREBIND) { ;
  45541. __p += '\n <p>Disconnected.</p>\n ';
  45542. } ;
  45543. __p += '\n ';
  45544. } ;
  45545. __p += '\n </form>\n</div>\n';
  45546. return __p
  45547. };
  45548. /***/ }),
  45549. /***/ "./src/templates/message.html":
  45550. /*!************************************!*\
  45551. !*** ./src/templates/message.html ***!
  45552. \************************************/
  45553. /*! no static exports found */
  45554. /***/ (function(module, exports, __webpack_require__) {
  45555. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45556. module.exports = function(o) {
  45557. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  45558. function print() { __p += __j.call(arguments, '') }
  45559. __p += '<!-- src/templates/message.html -->\n<div class="message chat-msg ' +
  45560. __e(o.type) +
  45561. ' ';
  45562. if (o.is_me_message) { ;
  45563. __p += ' chat-msg--action ';
  45564. } ;
  45565. __p += ' ' +
  45566. __e(o.extra_classes) +
  45567. '"\n data-isodate="' +
  45568. __e(o.time) +
  45569. '" data-msgid="' +
  45570. __e(o.msgid) +
  45571. '" data-from="' +
  45572. __e(o.from) +
  45573. '" data-encrypted="' +
  45574. __e(o.is_encrypted) +
  45575. '">\n ';
  45576. if (o.type !== 'headline' && !o.is_me_message) { ;
  45577. __p += '\n <canvas class="avatar chat-msg__avatar" height="36" width="36"></canvas>\n ';
  45578. } ;
  45579. __p += '\n <div class="chat-msg__content ';
  45580. if (o.is_me_message) { ;
  45581. __p += 'chat-msg__content--action';
  45582. } ;
  45583. __p += '">\n <span class="chat-msg__heading">\n ';
  45584. if (o.is_me_message) { ;
  45585. __p += '<time timestamp="' +
  45586. __e(o.isodate) +
  45587. '" class="chat-msg__time">' +
  45588. __e(o.pretty_time) +
  45589. '</time>';
  45590. } ;
  45591. __p += '\n <span class="chat-msg__author">';
  45592. if (o.is_me_message) { ;
  45593. __p += '**';
  45594. }; ;
  45595. __p +=
  45596. __e(o.username) +
  45597. '\n ';
  45598. o.roles.forEach(function (role) { ;
  45599. __p += ' <span class="badge badge-secondary">' +
  45600. __e(role) +
  45601. '</span> ';
  45602. }); ;
  45603. __p += '\n </span>\n ';
  45604. if (!o.is_me_message) { ;
  45605. __p += '<time timestamp="' +
  45606. __e(o.isodate) +
  45607. '" class="chat-msg__time">' +
  45608. __e(o.pretty_time) +
  45609. '</time>';
  45610. } ;
  45611. __p += '\n ';
  45612. if (o.is_encrypted) { ;
  45613. __p += '<span class="fa fa-lock"></span>';
  45614. } ;
  45615. __p += '\n </span>\n ';
  45616. if (!o.is_me_message) { ;
  45617. __p += '<div class="chat-msg__body">';
  45618. } ;
  45619. __p += '\n ';
  45620. if (o.edited) { ;
  45621. __p += ' <i title="' +
  45622. __e(o.__('This message has been edited')) +
  45623. '" class="fa fa-edit chat-msg__edit-modal"></i> ';
  45624. } ;
  45625. __p += '\n ';
  45626. if (!o.is_me_message) { ;
  45627. __p += '<div class="chat-msg__message">';
  45628. } ;
  45629. __p += '\n ';
  45630. if (o.is_spoiler) { ;
  45631. __p += '\n <div class="chat-msg__spoiler-hint">\n <span class="spoiler-hint">' +
  45632. __e(o.spoiler_hint) +
  45633. '</span>\n <a class="badge badge-info spoiler-toggle" data-toggle-state="closed" href="#"><i class="fa fa-eye"></i>' +
  45634. __e(o.label_show) +
  45635. '</a>\n </div>\n ';
  45636. } ;
  45637. __p += '\n <div class="chat-msg__text';
  45638. if (o.is_spoiler) { ;
  45639. __p += ' spoiler collapsed';
  45640. } ;
  45641. __p += '"><!-- message gets added here via renderMessage --></div>\n <div class="chat-msg__media"></div>\n ';
  45642. if (!o.is_me_message) { ;
  45643. __p += '</div>';
  45644. } ;
  45645. __p += '\n ';
  45646. if (o.type !== 'headline' && !o.is_me_message && o.sender === 'me') { ;
  45647. __p += '\n <div class="chat-msg__actions">\n <button class="chat-msg__action chat-msg__action-edit fa fa-pencil-alt" title="' +
  45648. __e(o.__('Edit this message')) +
  45649. '">&nbsp;</button>\n </div>\n ';
  45650. } ;
  45651. __p += '\n\n ';
  45652. if (!o.is_me_message) { ;
  45653. __p += '</div>';
  45654. } ;
  45655. __p += '\n </div>\n</div>\n';
  45656. return __p
  45657. };
  45658. /***/ }),
  45659. /***/ "./src/templates/message_versions_modal.html":
  45660. /*!***************************************************!*\
  45661. !*** ./src/templates/message_versions_modal.html ***!
  45662. \***************************************************/
  45663. /*! no static exports found */
  45664. /***/ (function(module, exports, __webpack_require__) {
  45665. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45666. module.exports = function(o) {
  45667. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  45668. function print() { __p += __j.call(arguments, '') }
  45669. __p += '<!-- src/templates/message_versions_modal.html -->\n<div class="modal fade" id="message-versions-modal" tabindex="-1" role="dialog" aria-labelledby="message-versions-modal-label" aria-hidden="true">\n <div class="modal-dialog" role="document">\n <div class="modal-content">\n <div class="modal-header">\n <h4 class="modal-title" id="message-versions-modal-label">' +
  45670. __e(o.__('Message versions')) +
  45671. '</h4>\n <button type="button" class="close" data-dismiss="modal" aria-label="' +
  45672. __e(o.label_close) +
  45673. '"><span aria-hidden="true">&times;</span></button>\n </div>\n <div class="modal-body">\n <h4>Older versions</h4>\n ';
  45674. o.older_versions.forEach(function (text) { ;
  45675. __p += ' <p class="older-msg">' +
  45676. __e(text) +
  45677. '</p> ';
  45678. }); ;
  45679. __p += '\n <hr>\n <h4>Current version</h4>\n <p>' +
  45680. __e(o.message) +
  45681. '</p>\n </div>\n <div class="modal-footer">\n <button type="button" class="btn btn-secondary" data-dismiss="modal">' +
  45682. __e(o.__('Close')) +
  45683. '</button>\n </div>\n </div>\n </div>\n</div>\n';
  45684. return __p
  45685. };
  45686. /***/ }),
  45687. /***/ "./src/templates/new_day.html":
  45688. /*!************************************!*\
  45689. !*** ./src/templates/new_day.html ***!
  45690. \************************************/
  45691. /*! no static exports found */
  45692. /***/ (function(module, exports, __webpack_require__) {
  45693. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45694. module.exports = function(o) {
  45695. var __t, __p = '', __e = _.escape;
  45696. __p += '<!-- src/templates/new_day.html -->\n<div class="message date-separator" data-isodate="' +
  45697. __e(o.isodate) +
  45698. '">\n <hr class="separator">\n <time class="separator-text" datetime="' +
  45699. __e(o.isodate) +
  45700. '"><span>' +
  45701. __e(o.datestring) +
  45702. '</span></time>\n</div>\n';
  45703. return __p
  45704. };
  45705. /***/ }),
  45706. /***/ "./src/templates/occupant.html":
  45707. /*!*************************************!*\
  45708. !*** ./src/templates/occupant.html ***!
  45709. \*************************************/
  45710. /*! no static exports found */
  45711. /***/ (function(module, exports, __webpack_require__) {
  45712. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45713. module.exports = function(o) {
  45714. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  45715. function print() { __p += __j.call(arguments, '') }
  45716. __p += '<!-- src/templates/occupant.html -->\n<li class="occupant" id="' +
  45717. __e( o.id ) +
  45718. '"\n ';
  45719. if (o.role === "moderator") { ;
  45720. __p += '\n title="' +
  45721. __e( o.jid ) +
  45722. ' ' +
  45723. __e( o.desc_moderator ) +
  45724. ' ' +
  45725. __e( o.hint_occupant ) +
  45726. '"\n ';
  45727. } ;
  45728. __p += '\n ';
  45729. if (o.role === "participant") { ;
  45730. __p += '\n title="' +
  45731. __e( o.jid ) +
  45732. ' ' +
  45733. __e( o.desc_participant ) +
  45734. ' ' +
  45735. __e( o.hint_occupant ) +
  45736. '"\n ';
  45737. } ;
  45738. __p += '\n ';
  45739. if (o.role === "visitor") { ;
  45740. __p += '\n title="' +
  45741. __e( o.jid ) +
  45742. ' ' +
  45743. __e( o.desc_visitor ) +
  45744. ' ' +
  45745. __e( o.hint_occupant ) +
  45746. '"\n ';
  45747. } ;
  45748. __p += '\n ';
  45749. if (!o._.includes(["visitor", "participant", "moderator"], o.role)) { ;
  45750. __p += '\n title="' +
  45751. __e( o.jid ) +
  45752. ' ' +
  45753. __e( o.hint_occupant ) +
  45754. '"\n ';
  45755. } ;
  45756. __p += '>\n <div class="row no-gutters">\n <div class="col-auto">\n <div class="occupant-status occupant-' +
  45757. __e(o.show) +
  45758. ' circle" title="' +
  45759. __e(o.hint_show) +
  45760. '"></div>\n </div>\n <div class="col">\n <span class="occupant-nick">' +
  45761. __e(o.nick || o.jid) +
  45762. '</span>\n ';
  45763. if (o.affiliation === "owner") { ;
  45764. __p += '\n <span class="badge badge-danger">' +
  45765. __e(o.label_owner) +
  45766. '</span>\n ';
  45767. } ;
  45768. __p += '\n ';
  45769. if (o.affiliation === "admin") { ;
  45770. __p += '\n <span class="badge badge-info">' +
  45771. __e(o.label_admin) +
  45772. '</span>\n ';
  45773. } ;
  45774. __p += '\n ';
  45775. if (o.affiliation === "member") { ;
  45776. __p += '\n <span class="badge badge-info">' +
  45777. __e(o.label_member) +
  45778. '</span>\n ';
  45779. } ;
  45780. __p += '\n\n ';
  45781. if (o.role === "moderator") { ;
  45782. __p += '\n <span class="badge badge-info">' +
  45783. __e(o.label_moderator) +
  45784. '</span>\n ';
  45785. } ;
  45786. __p += '\n ';
  45787. if (o.role === "visitor") { ;
  45788. __p += '\n <span class="badge badge-secondary">' +
  45789. __e(o.label_visitor) +
  45790. '</span>\n ';
  45791. } ;
  45792. __p += '\n </div>\n </div>\n</li>\n';
  45793. return __p
  45794. };
  45795. /***/ }),
  45796. /***/ "./src/templates/pending_contact.html":
  45797. /*!********************************************!*\
  45798. !*** ./src/templates/pending_contact.html ***!
  45799. \********************************************/
  45800. /*! no static exports found */
  45801. /***/ (function(module, exports, __webpack_require__) {
  45802. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45803. module.exports = function(o) {
  45804. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  45805. function print() { __p += __j.call(arguments, '') }
  45806. __p += '<!-- src/templates/pending_contact.html -->\n';
  45807. if (o.allow_chat_pending_contacts) { ;
  45808. __p += '\n<a class="open-chat w-100" href="#">\n';
  45809. } ;
  45810. __p += '\n<span class="pending-contact-name w-100" title="JID: ' +
  45811. __e(o.jid) +
  45812. '">' +
  45813. __e(o.display_name) +
  45814. '</span> \n';
  45815. if (o.allow_chat_pending_contacts) { ;
  45816. __p += '</a>\n';
  45817. } ;
  45818. __p += '\n<a class="remove-xmpp-contact far fa-trash-alt" title="' +
  45819. __e(o.desc_remove) +
  45820. '" href="#"></a>\n';
  45821. return __p
  45822. };
  45823. /***/ }),
  45824. /***/ "./src/templates/profile_modal.html":
  45825. /*!******************************************!*\
  45826. !*** ./src/templates/profile_modal.html ***!
  45827. \******************************************/
  45828. /*! no static exports found */
  45829. /***/ (function(module, exports, __webpack_require__) {
  45830. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45831. module.exports = function(o) {
  45832. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  45833. function print() { __p += __j.call(arguments, '') }
  45834. __p += '<!-- src/templates/profile_modal.html -->\n<div class="modal fade" id="user-profile-modal" tabindex="-1" role="dialog" aria-labelledby="user-profile-modal-label" aria-hidden="true">\n <div class="modal-dialog" role="document">\n <div class="modal-content">\n <div class="modal-header">\n <h5 class="modal-title" id="user-profile-modal-label">' +
  45835. __e(o.heading_profile) +
  45836. '</h5>\n <button type="button" class="close" data-dismiss="modal" aria-label="' +
  45837. __e(o.label_close) +
  45838. '"><span aria-hidden="true">&times;</span></button>\n </div>\n <div class="modal-body">\n ';
  45839. if (o._converse.pluggable.plugins['converse-omemo'].enabled(o._converse)) { ;
  45840. __p += '\n <ul class="nav nav-pills justify-content-center">\n <li role="presentation" class="nav-item">\n <a class="nav-link active" id="profile-tab" href="#profile-tabpanel" aria-controls="profile-tabpanel" role="tab" data-toggle="tab">Profile</a>\n </li>\n <li role="presentation" class="nav-item">\n <a class="nav-link" id="omemo-tab" href="#omemo-tabpanel" aria-controls="omemo-tabpanel" role="tab" data-toggle="tab">OMEMO</a>\n </li>\n </ul>\n ';
  45841. } ;
  45842. __p += '\n <div class="tab-content">\n <div class="tab-pane fade show active" id="profile-tabpanel" role="tabpanel" aria-labelledby="profile-tab">\n <form class="converse-form converse-form--modal profile-form" action="#">\n <div class="row">\n <div class="col-auto">\n <a class="change-avatar" href="#">\n ';
  45843. if (o.image) { ;
  45844. __p += '\n <img alt="' +
  45845. __e(o.alt_avatar) +
  45846. '" class="img-thumbnail avatar align-self-center" height="100px" width="100px" src="data:' +
  45847. __e(o.image_type) +
  45848. ';base64,' +
  45849. __e(o.image) +
  45850. '"/>\n ';
  45851. } ;
  45852. __p += '\n ';
  45853. if (!o.image) { ;
  45854. __p += '\n <canvas class="avatar" height="100px" width="100px"/>\n ';
  45855. } ;
  45856. __p += '\n </a>\n <input class="hidden" name="image" type="file">\n </div>\n <div class="col">\n <div class="form-group">\n <label class="col-form-label">' +
  45857. __e(o.label_jid) +
  45858. ':</label>\n <div>' +
  45859. __e(o.jid) +
  45860. '</div>\n </div>\n </div>\n </div>\n <div class="form-group">\n <label for="vcard-fullname" class="col-form-label">' +
  45861. __e(o.label_fullname) +
  45862. ':</label>\n <input id="vcard-fullname" type="text" class="form-control" name="fn" value="' +
  45863. __e(o.fullname) +
  45864. '">\n </div>\n <div class="form-group">\n <label for="vcard-nickname" class="col-form-label">' +
  45865. __e(o.label_nickname) +
  45866. ':</label>\n <input id="vcard-nickname" type="text" class="form-control" name="nickname" value="' +
  45867. __e(o.nickname) +
  45868. '">\n </div>\n <div class="form-group">\n <label for="vcard-url" class="col-form-label">' +
  45869. __e(o.label_url) +
  45870. ':</label>\n <input id="vcard-url" type="url" class="form-control" name="url" value="' +
  45871. __e(o.url) +
  45872. '">\n </div>\n <div class="form-group">\n <label for="vcard-email" class="col-form-label">' +
  45873. __e(o.label_email) +
  45874. ':</label>\n <input id="vcard-email" type="email" class="form-control" name="email" value="' +
  45875. __e(o.email) +
  45876. '">\n </div>\n <div class="form-group">\n <label for="vcard-role" class="col-form-label">' +
  45877. __e(o.label_role) +
  45878. ':</label>\n <input id="vcard-role" type="text" class="form-control" name="role" value="' +
  45879. __e(o.role) +
  45880. '" aria-describedby="vcard-role-help">\n <small id="vcard-role-help" class="form-text text-muted">' +
  45881. __e(o.label_role_help) +
  45882. '</small>\n </div>\n <hr/>\n <div class="form-group">\n <button type="submit" class="save-form btn btn-primary">' +
  45883. __e(o.__('Save and close')) +
  45884. '</button>\n </div>\n </form>\n </div>\n ';
  45885. if (o._converse.pluggable.plugins['converse-omemo'].enabled(o._converse)) { ;
  45886. __p += '\n <div class="tab-pane fade" id="omemo-tabpanel" role="tabpanel" aria-labelledby="omemo-tab">\n <form class="converse-form fingerprint-removal">\n <ul class="list-group fingerprints">\n <li class="list-group-item active">' +
  45887. __e(o.__("This device's OMEMO fingerprint")) +
  45888. '</li>\n <li class="list-group-item">\n ';
  45889. if (o.view.current_device.get('bundle') && o.view.current_device.get('bundle').fingerprint) { ;
  45890. __p += '\n <span class="fingerprint">' +
  45891. __e(o.utils.formatFingerprint(o.view.current_device.get('bundle').fingerprint)) +
  45892. '</span>\n ';
  45893. } else {;
  45894. __p += '\n <span class="spinner fa fa-spinner centered"/>\n ';
  45895. } ;
  45896. __p += '\n </li>\n </ul>\n ';
  45897. if (o.view.other_devices.length) { ;
  45898. __p += '\n <ul class="list-group fingerprints">\n <li class="list-group-item nopadding active">\n <label>\n <input type="checkbox" class="select-all" title="' +
  45899. __e(o.__('Select all')) +
  45900. '"\n aria-label="' +
  45901. __e(o.__('Checkbox to select fingerprints of all other OMEMO devices')) +
  45902. '">\n ' +
  45903. __e(o.__('Other OMEMO-enabled devices')) +
  45904. '\n </label>\n </li>\n ';
  45905. o._.forEach(o.view.other_devices, function (device) { ;
  45906. __p += '\n ';
  45907. if (device.get('bundle') && device.get('bundle').fingerprint) { ;
  45908. __p += '\n <li class="fingerprint-removal-item list-group-item nopadding">\n <label>\n <input type="checkbox" value="' +
  45909. __e(device.get('id')) +
  45910. '"\n aria-label="' +
  45911. __e(o.__('Checkbox for selecting the following fingerprint')) +
  45912. '">\n <span class="fingerprint">' +
  45913. __e(o.utils.formatFingerprint(device.get('bundle').fingerprint)) +
  45914. '</span>\n </label>\n </li>\n ';
  45915. } else {;
  45916. __p += '\n <li class="fingerprint-removal-item list-group-item nopadding">\n <label>\n <input type="checkbox" value="' +
  45917. __e(device.get('id')) +
  45918. '"\n aria-label="' +
  45919. __e(o.__('Checkbox for selecting the following fingerprint')) +
  45920. '">\n <span>' +
  45921. __e(o.__('Device without a fingerprint')) +
  45922. '</span>\n </label>\n </li>\n ';
  45923. } ;
  45924. __p += '\n ';
  45925. }); ;
  45926. __p += '\n </ul>\n <div class="form-group">\n <button type="submit" class="save-form btn btn-primary">' +
  45927. __e(o.__('Remove checked devices and close')) +
  45928. '</button>\n </div>\n ';
  45929. } ;
  45930. __p += '\n </form>\n </div>\n ';
  45931. } ;
  45932. __p += '\n </div>\n </div>\n </div>\n </div>\n</div>\n';
  45933. return __p
  45934. };
  45935. /***/ }),
  45936. /***/ "./src/templates/profile_view.html":
  45937. /*!*****************************************!*\
  45938. !*** ./src/templates/profile_view.html ***!
  45939. \*****************************************/
  45940. /*! no static exports found */
  45941. /***/ (function(module, exports, __webpack_require__) {
  45942. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45943. module.exports = function(o) {
  45944. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  45945. function print() { __p += __j.call(arguments, '') }
  45946. __p += '<!-- src/templates/profile_view.html -->\n<div class="userinfo controlbox-padded">\n<div class="profile d-flex">\n <a class="show-profile" href="#">\n <canvas alt="o.__(\'Your avatar\')" class="avatar align-self-center" height="40" width="40"></canvas>\n </a>\n <span class="username w-100 align-self-center">' +
  45947. __e(o.fullname) +
  45948. '</span>\n <!-- <a class="chatbox-btn fa fa-id-card align-self-center" title="' +
  45949. __e(o.title_your_profile) +
  45950. '" data-toggle="modal" data-target="#userProfileModal"></a> -->\n <!-- <a class="chatbox-btn fa fa-cog align-self-center" title="' +
  45951. __e(o.title_change_status) +
  45952. '" data-toggle="modal" data-target="#settingsModal"></a> -->\n ';
  45953. if (o._converse.allow_logout) { ;
  45954. __p += '\n <a class="chatbox-btn logout fa fa-sign-out-alt align-self-center" title="' +
  45955. __e(o.title_log_out) +
  45956. '"></a>\n ';
  45957. } ;
  45958. __p += '\n</div>\n<div class="d-flex xmpp-status">\n <span class="' +
  45959. __e(o.chat_status) +
  45960. ' w-100 align-self-center" data-value="' +
  45961. __e(o.chat_status) +
  45962. '">\n <span class="\n ';
  45963. if (o.chat_status === 'online') { ;
  45964. __p += ' fa fa-circle ';
  45965. } ;
  45966. __p += '\n ';
  45967. if (o.chat_status === 'dnd') { ;
  45968. __p += ' fa fa-minus-circle ';
  45969. } ;
  45970. __p += '\n ';
  45971. if (o.chat_status === 'away') { ;
  45972. __p += ' fa fa-dot-circle ';
  45973. } ;
  45974. __p += '\n ';
  45975. if (o.chat_status === 'xa') { ;
  45976. __p += ' far fa-circle ';
  45977. } ;
  45978. __p += '\n ';
  45979. if (o.chat_status === 'offline') { ;
  45980. __p += ' fa fa-times-circle ';
  45981. } ;
  45982. __p += '"></span> ' +
  45983. __e(o.status_message) +
  45984. '</span>\n <a class="chatbox-btn change-status fa fa-pencil-alt" title="' +
  45985. __e(o.title_change_status) +
  45986. '" data-toggle="modal" data-target="#changeStatusModal"></a>\n</div>\n</div>\n';
  45987. return __p
  45988. };
  45989. /***/ }),
  45990. /***/ "./src/templates/register_link.html":
  45991. /*!******************************************!*\
  45992. !*** ./src/templates/register_link.html ***!
  45993. \******************************************/
  45994. /*! no static exports found */
  45995. /***/ (function(module, exports, __webpack_require__) {
  45996. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  45997. module.exports = function(o) {
  45998. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  45999. function print() { __p += __j.call(arguments, '') }
  46000. __p += '<!-- src/templates/register_link.html -->\n<fieldset class="switch-form">\n ';
  46001. if (!o._converse.auto_login && o._converse.CONNECTION_STATUS[o.connection_status] !== 'CONNECTING') { ;
  46002. __p += '\n <p>' +
  46003. __e( o.__("Don't have a chat account?") ) +
  46004. '</p>\n <p><a class="register-account toggle-register-login" href="#converse/register">' +
  46005. __e(o.__("Create an account")) +
  46006. '</a></p>\n ';
  46007. } ;
  46008. __p += '\n</fieldset>\n';
  46009. return __p
  46010. };
  46011. /***/ }),
  46012. /***/ "./src/templates/register_panel.html":
  46013. /*!*******************************************!*\
  46014. !*** ./src/templates/register_panel.html ***!
  46015. \*******************************************/
  46016. /*! no static exports found */
  46017. /***/ (function(module, exports, __webpack_require__) {
  46018. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46019. module.exports = function(o) {
  46020. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  46021. function print() { __p += __j.call(arguments, '') }
  46022. __p += '<!-- src/templates/register_panel.html -->\n<div class="row">\n <form id="converse-register" class="converse-form">\n <legend>' +
  46023. __e(o.__("Create your account")) +
  46024. '</legend>\n\n <div class="form-group">\n <label>' +
  46025. __e(o.__("Please enter the XMPP provider to register with:")) +
  46026. '</label>\n <div class="form-errors hidden"></div>\n\n ';
  46027. if (o.default_domain) { ;
  46028. __p += '\n ' +
  46029. __e(o.default_domain) +
  46030. '\n </div>\n ';
  46031. } ;
  46032. __p += '\n ';
  46033. if (!o.default_domain) { ;
  46034. __p += '\n <input class="form-control" autofocus="autofocus" required="required" type="text" name="domain" placeholder="' +
  46035. __e(o.domain_placeholder) +
  46036. '">\n <p class="form-text text-muted">' +
  46037. __e(o.help_providers) +
  46038. ' <a href="' +
  46039. __e(o.href_providers) +
  46040. '" class="url" target="_blank" rel="noopener">' +
  46041. __e(o.help_providers_link) +
  46042. '</a>.</p>\n </div>\n <fieldset class="buttons">\n <input class="btn btn-primary" type="submit" value="' +
  46043. __e(o.label_register) +
  46044. '">\n <div class="switch-form">\n <p>' +
  46045. __e( o.__("Already have a chat account?") ) +
  46046. '</p>\n <p><a class="login-here toggle-register-login" href="#converse/login">' +
  46047. __e(o.__("Log in here")) +
  46048. '</a></p>\n </div>\n </fieldset>\n ';
  46049. } ;
  46050. __p += '\n </div>\n </form>\n</div>\n';
  46051. return __p
  46052. };
  46053. /***/ }),
  46054. /***/ "./src/templates/registration_form.html":
  46055. /*!**********************************************!*\
  46056. !*** ./src/templates/registration_form.html ***!
  46057. \**********************************************/
  46058. /*! no static exports found */
  46059. /***/ (function(module, exports, __webpack_require__) {
  46060. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46061. module.exports = function(o) {
  46062. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  46063. function print() { __p += __j.call(arguments, '') }
  46064. __p += '<!-- src/templates/registration_form.html -->\n<legend>' +
  46065. __e(o.__("Account Registration:")) +
  46066. ' ' +
  46067. __e(o.domain) +
  46068. '</legend>\n<p class="title">' +
  46069. __e(o.title) +
  46070. '</p>\n<p class="form-help instructions">' +
  46071. __e(o.instructions) +
  46072. '</p>\n<div class="form-errors hidden"></div>\n\n<fieldset class="buttons">\n <input type="submit" class="btn btn-primary" value="' +
  46073. __e(o.__('Register')) +
  46074. '"/>\n ';
  46075. if (!o.registration_domain) { ;
  46076. __p += '\n <input type="button" class="btn btn-secondary button-cancel" value="' +
  46077. __e(o.__('Choose a different provider')) +
  46078. '"/>\n ';
  46079. } ;
  46080. __p += '\n</fieldset>\n';
  46081. return __p
  46082. };
  46083. /***/ }),
  46084. /***/ "./src/templates/registration_request.html":
  46085. /*!*************************************************!*\
  46086. !*** ./src/templates/registration_request.html ***!
  46087. \*************************************************/
  46088. /*! no static exports found */
  46089. /***/ (function(module, exports, __webpack_require__) {
  46090. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46091. module.exports = function(o) {
  46092. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  46093. function print() { __p += __j.call(arguments, '') }
  46094. __p += '<!-- src/templates/registration_request.html -->\n<span class="spinner login-submit fa fa-spinner"></span>\n<p class="info">' +
  46095. __e(o.__("Hold tight, we're fetching the registration form…")) +
  46096. '</p>\n';
  46097. if (o.cancel) { ;
  46098. __p += '\n <button class="btn btn-secondary button-cancel hor_centered">' +
  46099. __e(o.__('Cancel')) +
  46100. '</button>\n';
  46101. } ;
  46102. __p += '\n';
  46103. return __p
  46104. };
  46105. /***/ }),
  46106. /***/ "./src/templates/requesting_contact.html":
  46107. /*!***********************************************!*\
  46108. !*** ./src/templates/requesting_contact.html ***!
  46109. \***********************************************/
  46110. /*! no static exports found */
  46111. /***/ (function(module, exports, __webpack_require__) {
  46112. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46113. module.exports = function(o) {
  46114. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  46115. function print() { __p += __j.call(arguments, '') }
  46116. __p += '<!-- src/templates/requesting_contact.html -->\n';
  46117. if (o.allow_chat_pending_contacts) { ;
  46118. __p += '\n<a class="open-chat w-100"href="#">\n';
  46119. } ;
  46120. __p += '\n<span class="req-contact-name w-100" title="JID: ' +
  46121. __e(o.jid) +
  46122. '">' +
  46123. __e(o.display_name) +
  46124. '</span>\n';
  46125. if (o.allow_chat_pending_contacts) { ;
  46126. __p += '\n</a>\n';
  46127. } ;
  46128. __p += '\n<a class="accept-xmpp-request fa fa-check"\n aria-label="' +
  46129. __e(o.desc_accept) +
  46130. '" title="' +
  46131. __e(o.desc_accept) +
  46132. '" href="#"></a>\n<a class="decline-xmpp-request fa fa-times"\n aria-label="' +
  46133. __e(o.desc_decline) +
  46134. '" title="' +
  46135. __e(o.desc_decline) +
  46136. '" href="#"></a>\n';
  46137. return __p
  46138. };
  46139. /***/ }),
  46140. /***/ "./src/templates/room_description.html":
  46141. /*!*********************************************!*\
  46142. !*** ./src/templates/room_description.html ***!
  46143. \*********************************************/
  46144. /*! no static exports found */
  46145. /***/ (function(module, exports, __webpack_require__) {
  46146. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46147. module.exports = function(o) {
  46148. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  46149. function print() { __p += __j.call(arguments, '') }
  46150. __p += '<!-- src/templates/room_description.html -->\n<!-- FIXME: check markup in mockup -->\n<div class="room-info">\n<p class="room-info"><strong>' +
  46151. __e(o.label_jid) +
  46152. '</strong> ' +
  46153. __e(o.jid) +
  46154. '</p>\n<p class="room-info"><strong>' +
  46155. __e(o.label_desc) +
  46156. '</strong> ' +
  46157. __e(o.desc) +
  46158. '</p>\n<p class="room-info"><strong>' +
  46159. __e(o.label_occ) +
  46160. '</strong> ' +
  46161. __e(o.occ) +
  46162. '</p>\n<p class="room-info"><strong>' +
  46163. __e(o.label_features) +
  46164. '</strong>\n <ul>\n ';
  46165. if (o.passwordprotected) { ;
  46166. __p += '\n <li class="room-info locked">' +
  46167. __e(o.label_requires_auth) +
  46168. '</li>\n ';
  46169. } ;
  46170. __p += '\n ';
  46171. if (o.hidden) { ;
  46172. __p += '\n <li class="room-info">' +
  46173. __e(o.label_hidden) +
  46174. '</li>\n ';
  46175. } ;
  46176. __p += '\n ';
  46177. if (o.membersonly) { ;
  46178. __p += '\n <li class="room-info">' +
  46179. __e(o.label_requires_invite) +
  46180. '</li>\n ';
  46181. } ;
  46182. __p += '\n ';
  46183. if (o.moderated) { ;
  46184. __p += '\n <li class="room-info">' +
  46185. __e(o.label_moderated) +
  46186. '</li>\n ';
  46187. } ;
  46188. __p += '\n ';
  46189. if (o.nonanonymous) { ;
  46190. __p += '\n <li class="room-info">' +
  46191. __e(o.label_non_anon) +
  46192. '</li>\n ';
  46193. } ;
  46194. __p += '\n ';
  46195. if (o.open) { ;
  46196. __p += '\n <li class="room-info">' +
  46197. __e(o.label_open_room) +
  46198. '</li>\n ';
  46199. } ;
  46200. __p += '\n ';
  46201. if (o.persistent) { ;
  46202. __p += '\n <li class="room-info">' +
  46203. __e(o.label_permanent_room) +
  46204. '</li>\n ';
  46205. } ;
  46206. __p += '\n ';
  46207. if (o.publicroom) { ;
  46208. __p += '\n <li class="room-info">' +
  46209. __e(o.label_public) +
  46210. '</li>\n ';
  46211. } ;
  46212. __p += '\n ';
  46213. if (o.semianonymous) { ;
  46214. __p += '\n <li class="room-info">' +
  46215. __e(o.label_semi_anon) +
  46216. '</li>\n ';
  46217. } ;
  46218. __p += '\n ';
  46219. if (o.temporary) { ;
  46220. __p += '\n <li class="room-info">' +
  46221. __e(o.label_temp_room) +
  46222. '</li>\n ';
  46223. } ;
  46224. __p += '\n ';
  46225. if (o.unmoderated) { ;
  46226. __p += '\n <li class="room-info">' +
  46227. __e(o.label_unmoderated) +
  46228. '</li>\n ';
  46229. } ;
  46230. __p += '\n </ul>\n</p>\n</div>\n';
  46231. return __p
  46232. };
  46233. /***/ }),
  46234. /***/ "./src/templates/room_item.html":
  46235. /*!**************************************!*\
  46236. !*** ./src/templates/room_item.html ***!
  46237. \**************************************/
  46238. /*! no static exports found */
  46239. /***/ (function(module, exports, __webpack_require__) {
  46240. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46241. module.exports = function(o) {
  46242. var __t, __p = '', __e = _.escape;
  46243. __p += '<!-- src/templates/room_item.html -->\n<li class="room-item list-group-item">\n <div class="available-chatroom d-flex flex-row">\n <a class="open-room available-room w-100"\n data-room-jid="' +
  46244. __e(o.jid) +
  46245. '"\n data-room-name="' +
  46246. __e(o.name) +
  46247. '"\n title="' +
  46248. __e(o.open_title) +
  46249. '"\n href="#">' +
  46250. __e(o.name) +
  46251. '</a>\n <a class="right room-info icon-room-info"\n data-room-jid="' +
  46252. __e(o.jid) +
  46253. '"\n title="' +
  46254. __e(o.info_title) +
  46255. '" href="#">&nbsp;</a>\n </div>\n</li>\n';
  46256. return __p
  46257. };
  46258. /***/ }),
  46259. /***/ "./src/templates/room_panel.html":
  46260. /*!***************************************!*\
  46261. !*** ./src/templates/room_panel.html ***!
  46262. \***************************************/
  46263. /*! no static exports found */
  46264. /***/ (function(module, exports, __webpack_require__) {
  46265. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46266. module.exports = function(o) {
  46267. var __t, __p = '', __e = _.escape;
  46268. __p += '<!-- src/templates/room_panel.html -->\n<!-- <div id="chatrooms"> -->\n<div class="d-flex controlbox-padded">\n <span class="w-100 controlbox-heading">' +
  46269. __e(o.heading_chatrooms) +
  46270. '</span>\n <a class="chatbox-btn show-list-muc-modal fa fa-list-ul" title="' +
  46271. __e(o.title_list_rooms) +
  46272. '" data-toggle="modal" data-target="#list-chatrooms-modal"></a>\n <a class="chatbox-btn show-add-muc-modal fa fa-plus" title="' +
  46273. __e(o.title_new_room) +
  46274. '" data-toggle="modal" data-target="#add-chatrooms-modal"></a>\n</div>\n<div class="list-container open-rooms-list rooms-list-container"></div>\n<div class="list-container bookmarks-list rooms-list-container"></div>\n<!-- </div> -->\n';
  46275. return __p
  46276. };
  46277. /***/ }),
  46278. /***/ "./src/templates/rooms_list.html":
  46279. /*!***************************************!*\
  46280. !*** ./src/templates/rooms_list.html ***!
  46281. \***************************************/
  46282. /*! no static exports found */
  46283. /***/ (function(module, exports, __webpack_require__) {
  46284. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46285. module.exports = function(o) {
  46286. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  46287. function print() { __p += __j.call(arguments, '') }
  46288. __p += '<!-- src/templates/rooms_list.html -->\n<a href="#" class="list-toggle open-rooms-toggle controlbox-padded" title="' +
  46289. __e(o.desc_rooms) +
  46290. '">\n <span class="fa ';
  46291. if (o.toggle_state === o._converse.OPENED) { ;
  46292. __p += ' fa-caret-down ';
  46293. } else { ;
  46294. __p += ' fa-caret-right ';
  46295. } ;
  46296. __p += '">\n </span> ' +
  46297. __e(o.label_rooms) +
  46298. '</a>\n<div class="items-list rooms-list open-rooms-list"></div>\n';
  46299. return __p
  46300. };
  46301. /***/ }),
  46302. /***/ "./src/templates/rooms_list_item.html":
  46303. /*!********************************************!*\
  46304. !*** ./src/templates/rooms_list_item.html ***!
  46305. \********************************************/
  46306. /*! no static exports found */
  46307. /***/ (function(module, exports, __webpack_require__) {
  46308. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46309. module.exports = function(o) {
  46310. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  46311. function print() { __p += __j.call(arguments, '') }
  46312. __p += '<!-- src/templates/rooms_list_item.html -->\n<div class="list-item controlbox-padded available-chatroom d-flex flex-row\n ';
  46313. if (o.currently_open) { ;
  46314. __p += ' open ';
  46315. } ;
  46316. __p += '\n ';
  46317. if (o.num_unread_general) { ;
  46318. __p += ' unread-msgs ';
  46319. } ;
  46320. __p += '"\n data-room-jid="' +
  46321. __e(o.jid) +
  46322. '">\n';
  46323. if (o.num_unread) { ;
  46324. __p += '\n <span class="msgs-indicator badge badge-info">' +
  46325. __e( o.num_unread ) +
  46326. '</span>\n';
  46327. } ;
  46328. __p += '\n<a class="list-item-link open-room available-room w-100"\n data-room-jid="' +
  46329. __e(o.jid) +
  46330. '"\n title="' +
  46331. __e(o.open_title) +
  46332. '" href="#">' +
  46333. __e(o.name || o.jid) +
  46334. '</a>\n\n';
  46335. if (o.allow_bookmarks) { ;
  46336. __p += '\n<a class="list-item-action fa ';
  46337. if (o.bookmarked) { ;
  46338. __p += ' fa-bookmark remove-bookmark button-on ';
  46339. } else { ;
  46340. __p += ' add-bookmark fa-bookmark-o ';
  46341. } ;
  46342. __p += '"\n data-room-jid="' +
  46343. __e(o.jid) +
  46344. '" data-bookmark-name="' +
  46345. __e(o.name) +
  46346. '"\n title="';
  46347. if (o.bookmarked) { ;
  46348. __p += ' ' +
  46349. __e(o.info_remove_bookmark) +
  46350. ' ';
  46351. } else { ;
  46352. __p += ' ' +
  46353. __e(o.info_add_bookmark) +
  46354. ' ';
  46355. } ;
  46356. __p += '"\n href="#">&nbsp;</a>\n';
  46357. } ;
  46358. __p += '\n\n<a class="list-item-action room-info fa fa-info-circle" data-room-jid="' +
  46359. __e(o.jid) +
  46360. '"\n title="' +
  46361. __e(o.info_title) +
  46362. '" href="#">&nbsp;</a>\n\n<a class="list-item-action fa fa-times close-room"\n data-room-jid="' +
  46363. __e(o.jid) +
  46364. '"\n data-room-name="' +
  46365. __e(o.name || o.jid) +
  46366. '"\n title="' +
  46367. __e(o.info_leave_room) +
  46368. '" href="#">&nbsp;</a>\n\n</div>\n';
  46369. return __p
  46370. };
  46371. /***/ }),
  46372. /***/ "./src/templates/rooms_results.html":
  46373. /*!******************************************!*\
  46374. !*** ./src/templates/rooms_results.html ***!
  46375. \******************************************/
  46376. /*! no static exports found */
  46377. /***/ (function(module, exports, __webpack_require__) {
  46378. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46379. module.exports = function(o) {
  46380. var __t, __p = '', __e = _.escape;
  46381. __p += '<!-- src/templates/rooms_results.html -->\n<li class="list-group-item active">' +
  46382. __e( o.feedback_text ) +
  46383. '</dt>\n';
  46384. return __p
  46385. };
  46386. /***/ }),
  46387. /***/ "./src/templates/roster.html":
  46388. /*!***********************************!*\
  46389. !*** ./src/templates/roster.html ***!
  46390. \***********************************/
  46391. /*! no static exports found */
  46392. /***/ (function(module, exports, __webpack_require__) {
  46393. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46394. module.exports = function(o) {
  46395. var __t, __p = '', __e = _.escape;
  46396. __p += '<!-- src/templates/roster.html -->\n<div class="d-flex controlbox-padded">\n <span class="w-100 controlbox-heading">' +
  46397. __e(o.heading_contacts) +
  46398. '</span>\n <a class="chatbox-btn add-contact fa fa-user-plus" title="' +
  46399. __e(o.title_add_contact) +
  46400. '"\n data-toggle="modal" data-target="#add-contact-modal"></a>\n</div>\n\n<form class="roster-filter-form"></form>\n\n<div class="roster-contacts"></div>\n';
  46401. return __p
  46402. };
  46403. /***/ }),
  46404. /***/ "./src/templates/roster_filter.html":
  46405. /*!******************************************!*\
  46406. !*** ./src/templates/roster_filter.html ***!
  46407. \******************************************/
  46408. /*! no static exports found */
  46409. /***/ (function(module, exports, __webpack_require__) {
  46410. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46411. module.exports = function(o) {
  46412. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  46413. function print() { __p += __j.call(arguments, '') }
  46414. __p += '<!-- src/templates/roster_filter.html -->\n<form class="controlbox-padded roster-filter-form input-button-group ';
  46415. if (!o.visible) { ;
  46416. __p += ' hidden ';
  46417. } ;
  46418. __p += '">\n <div class="form-inline flex-nowrap">\n <div class="btn-group">\n <input ';
  46419. if (o.filter_text) { ;
  46420. __p += ' value="' +
  46421. __e(o.filter_text) +
  46422. '" ';
  46423. } ;
  46424. __p += '\n class="roster-filter form-control ';
  46425. if (o.filter_type === 'state') { ;
  46426. __p += ' hidden ';
  46427. } ;
  46428. __p += '"\n placeholder="' +
  46429. __e(o.placeholder) +
  46430. '">\n <span class="clear-input fa fa-times ';
  46431. if (!o.filter_text || o.filter_type === 'state') { ;
  46432. __p += ' hidden ';
  46433. } ;
  46434. __p += '"></span>\n </div>\n\n <select class="form-control state-type ';
  46435. if (o.filter_type !== 'state') { ;
  46436. __p += ' hidden ';
  46437. } ;
  46438. __p += '">\n <option value="">' +
  46439. __e(o.label_any) +
  46440. '</option>\n <option ';
  46441. if (o.chat_state === 'unread_messages') { ;
  46442. __p += ' selected="selected" ';
  46443. } ;
  46444. __p += '\n value="unread_messages">' +
  46445. __e(o.label_unread_messages) +
  46446. '</option>\n <option ';
  46447. if (o.chat_state === 'online') { ;
  46448. __p += ' selected="selected" ';
  46449. } ;
  46450. __p += '\n value="online">' +
  46451. __e(o.label_online) +
  46452. '</option>\n <option ';
  46453. if (o.chat_state === 'chat') { ;
  46454. __p += ' selected="selected" ';
  46455. } ;
  46456. __p += '\n value="chat">' +
  46457. __e(o.label_chatty) +
  46458. '</option>\n <option ';
  46459. if (o.chat_state === 'dnd') { ;
  46460. __p += ' selected="selected" ';
  46461. } ;
  46462. __p += '\n value="dnd">' +
  46463. __e(o.label_busy) +
  46464. '</option>\n <option ';
  46465. if (o.chat_state === 'away') { ;
  46466. __p += ' selected="selected" ';
  46467. } ;
  46468. __p += '\n value="away">' +
  46469. __e(o.label_away) +
  46470. '</option>\n <option ';
  46471. if (o.chat_state === 'xa') { ;
  46472. __p += ' selected="selected" ';
  46473. } ;
  46474. __p += '\n value="xa">' +
  46475. __e(o.label_xa) +
  46476. '</option>\n <option ';
  46477. if (o.chat_state === 'offline') { ;
  46478. __p += ' selected="selected" ';
  46479. } ;
  46480. __p += '\n value="offline">' +
  46481. __e(o.label_offline) +
  46482. '</option>\n </select>\n\n <div class="filter-by d-flex flex-nowrap">\n <span class="fa fa-user ';
  46483. if (o.filter_type === 'contacts') { ;
  46484. __p += ' selected ';
  46485. } ;
  46486. __p += '" data-type="contacts" title="' +
  46487. __e(o.title_contact_filter) +
  46488. '"></span>\n <span class="fa fa-users ';
  46489. if (o.filter_type === 'groups') { ;
  46490. __p += ' selected ';
  46491. } ;
  46492. __p += '" data-type="groups" title="' +
  46493. __e(o.title_group_filter) +
  46494. '"></span>\n <span class="fa fa-circle ';
  46495. if (o.filter_type === 'state') { ;
  46496. __p += ' selected ';
  46497. } ;
  46498. __p += '" data-type="state" title="' +
  46499. __e(o.title_status_filter) +
  46500. '"></span>\n </div>\n </div>\n</form>\n';
  46501. return __p
  46502. };
  46503. /***/ }),
  46504. /***/ "./src/templates/roster_item.html":
  46505. /*!****************************************!*\
  46506. !*** ./src/templates/roster_item.html ***!
  46507. \****************************************/
  46508. /*! no static exports found */
  46509. /***/ (function(module, exports, __webpack_require__) {
  46510. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46511. module.exports = function(o) {
  46512. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  46513. function print() { __p += __j.call(arguments, '') }
  46514. __p += '<!-- src/templates/roster_item.html -->\n<a class="list-item-link cbox-list-item open-chat w-100 ';
  46515. if (o.num_unread) { ;
  46516. __p += ' unread-msgs ';
  46517. } ;
  46518. __p += '"\n title="' +
  46519. __e(o.desc_chat) +
  46520. '" href="#">\n <span class="' +
  46521. __e(o.status_icon) +
  46522. '" title="' +
  46523. __e(o.desc_status) +
  46524. '"></span>\n ';
  46525. if (o.num_unread) { ;
  46526. __p += '\n <span class="msgs-indicator">' +
  46527. __e( o.num_unread ) +
  46528. '</span>\n ';
  46529. } ;
  46530. __p += '\n <span class="contact-name ';
  46531. if (o.num_unread) { ;
  46532. __p += ' unread-msgs ';
  46533. } ;
  46534. __p += '">' +
  46535. __e(o.display_name) +
  46536. '</span></a>\n';
  46537. if (o.allow_contact_removal) { ;
  46538. __p += '\n<a class="list-item-action remove-xmpp-contact far fa-trash-alt" title="' +
  46539. __e(o.desc_remove) +
  46540. '" href="#"></a>\n';
  46541. } ;
  46542. __p += '\n';
  46543. return __p
  46544. };
  46545. /***/ }),
  46546. /***/ "./src/templates/search_contact.html":
  46547. /*!*******************************************!*\
  46548. !*** ./src/templates/search_contact.html ***!
  46549. \*******************************************/
  46550. /*! no static exports found */
  46551. /***/ (function(module, exports, __webpack_require__) {
  46552. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46553. module.exports = function(o) {
  46554. var __t, __p = '', __e = _.escape;
  46555. __p += '<!-- src/templates/search_contact.html -->\n<li>\n <form class="search-xmpp-contact">\n <input type="text"\n name="identifier"\n class="username"\n placeholder="' +
  46556. __e(o.label_contact_name) +
  46557. '"/>\n <button type="submit">' +
  46558. __e(o.label_search) +
  46559. '</button>\n </form>\n</li>\n';
  46560. return __p
  46561. };
  46562. /***/ }),
  46563. /***/ "./src/templates/select_option.html":
  46564. /*!******************************************!*\
  46565. !*** ./src/templates/select_option.html ***!
  46566. \******************************************/
  46567. /*! no static exports found */
  46568. /***/ (function(module, exports, __webpack_require__) {
  46569. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46570. module.exports = function(o) {
  46571. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  46572. function print() { __p += __j.call(arguments, '') }
  46573. __p += '<!-- src/templates/select_option.html -->\n<option value="' +
  46574. __e(o.value) +
  46575. '" ';
  46576. if (o.selected) { ;
  46577. __p += ' selected="selected" ';
  46578. } ;
  46579. __p += ' >' +
  46580. __e(o.label) +
  46581. '</option>\n';
  46582. return __p
  46583. };
  46584. /***/ }),
  46585. /***/ "./src/templates/spinner.html":
  46586. /*!************************************!*\
  46587. !*** ./src/templates/spinner.html ***!
  46588. \************************************/
  46589. /*! no static exports found */
  46590. /***/ (function(module, exports, __webpack_require__) {
  46591. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46592. module.exports = function(o) {
  46593. var __t, __p = '';
  46594. __p += '<!-- src/templates/spinner.html -->\n<span class="spinner fa fa-spinner centered"/>\n';
  46595. return __p
  46596. };
  46597. /***/ }),
  46598. /***/ "./src/templates/spoiler_button.html":
  46599. /*!*******************************************!*\
  46600. !*** ./src/templates/spoiler_button.html ***!
  46601. \*******************************************/
  46602. /*! no static exports found */
  46603. /***/ (function(module, exports, __webpack_require__) {
  46604. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46605. module.exports = function(o) {
  46606. var __t, __p = '', __j = Array.prototype.join;
  46607. function print() { __p += __j.call(arguments, '') }
  46608. __p += '<!-- src/templates/spoiler_button.html -->\n<li class="toggle-compose-spoiler fa ';
  46609. if (o.composing_spoiler) { ;
  46610. __p += ' fa-eye-slash ';
  46611. } ;
  46612. __p += ' ';
  46613. if (!o.composing_spoiler) { ;
  46614. __p += ' fa-eye ';
  46615. } ;
  46616. __p += '"\n title="' +
  46617. ((__t = ( o.label_toggle_spoiler )) == null ? '' : __t) +
  46618. '"></a>\n</li>\n';
  46619. return __p
  46620. };
  46621. /***/ }),
  46622. /***/ "./src/templates/status_message.html":
  46623. /*!*******************************************!*\
  46624. !*** ./src/templates/status_message.html ***!
  46625. \*******************************************/
  46626. /*! no static exports found */
  46627. /***/ (function(module, exports, __webpack_require__) {
  46628. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46629. module.exports = function(o) {
  46630. var __t, __p = '', __e = _.escape;
  46631. __p += '<!-- src/templates/status_message.html -->\n<div class="message chat-info chat-status"\n data-isodate="' +
  46632. __e(o.isodate) +
  46633. '"\n data-status="' +
  46634. __e(o.from) +
  46635. '">' +
  46636. __e(o.message) +
  46637. '</div>\n';
  46638. return __p
  46639. };
  46640. /***/ }),
  46641. /***/ "./src/templates/status_option.html":
  46642. /*!******************************************!*\
  46643. !*** ./src/templates/status_option.html ***!
  46644. \******************************************/
  46645. /*! no static exports found */
  46646. /***/ (function(module, exports, __webpack_require__) {
  46647. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46648. module.exports = function(o) {
  46649. var __t, __p = '', __e = _.escape;
  46650. __p += '<!-- src/templates/status_option.html -->\n<li>\n <a href="#" class="' +
  46651. __e( o.value ) +
  46652. '" data-value="' +
  46653. __e( o.value ) +
  46654. '">\n <span class="icon-' +
  46655. __e( o.value ) +
  46656. '"></span>\n ' +
  46657. __e( o.text ) +
  46658. '\n </a>\n</li>\n';
  46659. return __p
  46660. };
  46661. /***/ }),
  46662. /***/ "./src/templates/toggle_chats.html":
  46663. /*!*****************************************!*\
  46664. !*** ./src/templates/toggle_chats.html ***!
  46665. \*****************************************/
  46666. /*! no static exports found */
  46667. /***/ (function(module, exports, __webpack_require__) {
  46668. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46669. module.exports = function(o) {
  46670. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  46671. function print() { __p += __j.call(arguments, '') }
  46672. __p += '<!-- src/templates/toggle_chats.html -->\n' +
  46673. __e(o.num_minimized) +
  46674. ' ' +
  46675. __e(o.Minimized) +
  46676. '\n<span class="unread-message-count ';
  46677. if (!o.num_unread) { ;
  46678. __p += ' unread-message-count-hidden ';
  46679. } ;
  46680. __p += '" href="#">' +
  46681. __e(o.num_unread) +
  46682. '</span>\n';
  46683. return __p
  46684. };
  46685. /***/ }),
  46686. /***/ "./src/templates/toolbar.html":
  46687. /*!************************************!*\
  46688. !*** ./src/templates/toolbar.html ***!
  46689. \************************************/
  46690. /*! no static exports found */
  46691. /***/ (function(module, exports, __webpack_require__) {
  46692. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46693. module.exports = function(o) {
  46694. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  46695. function print() { __p += __j.call(arguments, '') }
  46696. __p += '<!-- src/templates/toolbar.html -->\n';
  46697. if (o.use_emoji) { ;
  46698. __p += '\n<li class="toggle-toolbar-menu toggle-smiley dropup">\n <a class="toggle-smiley far fa-smile" title="' +
  46699. __e(o.tooltip_insert_smiley) +
  46700. '" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></a> \n <div class="emoji-picker dropdown-menu toolbar-menu"></div>\n</li>\n';
  46701. } ;
  46702. __p += '\n';
  46703. if (o.show_call_button) { ;
  46704. __p += '\n<li class="toggle-call fa fa-phone" title="' +
  46705. __e(o.label_start_call) +
  46706. '"></li>\n';
  46707. } ;
  46708. __p += '\n';
  46709. if (o.show_occupants_toggle) { ;
  46710. __p += '\n<li class="toggle-occupants fa fa-angle-double-right" title="' +
  46711. __e(o.label_hide_occupants) +
  46712. '"></li>\n';
  46713. } ;
  46714. __p += '\n';
  46715. return __p
  46716. };
  46717. /***/ }),
  46718. /***/ "./src/templates/toolbar_fileupload.html":
  46719. /*!***********************************************!*\
  46720. !*** ./src/templates/toolbar_fileupload.html ***!
  46721. \***********************************************/
  46722. /*! no static exports found */
  46723. /***/ (function(module, exports, __webpack_require__) {
  46724. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46725. module.exports = function(o) {
  46726. var __t, __p = '', __e = _.escape;
  46727. __p += '<!-- src/templates/toolbar_fileupload.html -->\n<li class="upload-file">\n <a class="fa fa-paperclip" title="' +
  46728. __e(o.tooltip_upload_file) +
  46729. '"></a>\n <input type="file" class="fileupload" multiple style="display:none"/>\n</li> \n';
  46730. return __p
  46731. };
  46732. /***/ }),
  46733. /***/ "./src/templates/toolbar_omemo.html":
  46734. /*!******************************************!*\
  46735. !*** ./src/templates/toolbar_omemo.html ***!
  46736. \******************************************/
  46737. /*! no static exports found */
  46738. /***/ (function(module, exports, __webpack_require__) {
  46739. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46740. module.exports = function(o) {
  46741. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  46742. function print() { __p += __j.call(arguments, '') }
  46743. __p += '<!-- src/templates/toolbar_omemo.html -->\n<li class="toggle-omemo fa ';
  46744. if (o.omemo_active) { ;
  46745. __p += ' fa-lock ';
  46746. } else { ;
  46747. __p += ' fa-unlock ';
  46748. } ;
  46749. __p += '" title="' +
  46750. __e(o.__('Messages are being sent in plaintext')) +
  46751. '"></li>\n';
  46752. return __p
  46753. };
  46754. /***/ }),
  46755. /***/ "./src/templates/trimmed_chat.html":
  46756. /*!*****************************************!*\
  46757. !*** ./src/templates/trimmed_chat.html ***!
  46758. \*****************************************/
  46759. /*! no static exports found */
  46760. /***/ (function(module, exports, __webpack_require__) {
  46761. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46762. module.exports = function(o) {
  46763. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  46764. function print() { __p += __j.call(arguments, '') }
  46765. __p += '<!-- src/templates/trimmed_chat.html -->\n<a href="#" class="restore-chat w-100 align-self-center" title="' +
  46766. __e(o.tooltip) +
  46767. '">\n ';
  46768. if (o.num_unread) { ;
  46769. __p += ' \n <span class="message-count badge badge-light">' +
  46770. __e(o.num_unread) +
  46771. '</span>\n ';
  46772. } ;
  46773. __p += '\n ' +
  46774. __e(o.title || o.jid ) +
  46775. '\n</a>\n<a class="chatbox-btn close-chatbox-button fa fa-times"></a>\n';
  46776. return __p
  46777. };
  46778. /***/ }),
  46779. /***/ "./src/templates/user_details_modal.html":
  46780. /*!***********************************************!*\
  46781. !*** ./src/templates/user_details_modal.html ***!
  46782. \***********************************************/
  46783. /*! no static exports found */
  46784. /***/ (function(module, exports, __webpack_require__) {
  46785. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46786. module.exports = function(o) {
  46787. var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
  46788. function print() { __p += __j.call(arguments, '') }
  46789. __p += '<!-- src/templates/user_details_modal.html -->\n<div class="modal fade" id="user-details-modal" tabindex="-1" role="dialog" aria-labelledby="user-details-modal-label" aria-hidden="true">\n <div class="modal-dialog" role="document">\n <div class="modal-content">\n <div class="modal-header">\n <h5 class="modal-title" id="user-details-modal-label">' +
  46790. __e(o.display_name) +
  46791. '</h5>\n <button type="button" class="close" data-dismiss="modal" aria-label="' +
  46792. __e(o.__('Close')) +
  46793. '"><span aria-hidden="true">&times;</span></button>\n </div>\n <div class="modal-body">\n ';
  46794. if (o.image) { ;
  46795. __p += '\n <img alt="' +
  46796. __e(o.__('The User\'s Profile Image')) +
  46797. '"\n class="img-thumbnail avatar align-self-center mb-3"\n height="100" width="100" src="data:' +
  46798. __e(o.image_type) +
  46799. ';base64,' +
  46800. __e(o.image) +
  46801. '"/>\n ';
  46802. } ;
  46803. __p += '\n ';
  46804. if (o.fullname) { ;
  46805. __p += '\n <p><label>' +
  46806. __e(o.__('Full Name')) +
  46807. ':</label>&nbsp;' +
  46808. __e(o.fullname) +
  46809. '</p>\n ';
  46810. } ;
  46811. __p += '\n <p><label>' +
  46812. __e(o.__('XMPP Address')) +
  46813. ':</label>&nbsp;' +
  46814. __e(o.jid) +
  46815. '</p>\n ';
  46816. if (o.nickname) { ;
  46817. __p += '\n <p><label>' +
  46818. __e(o.__('Nickname')) +
  46819. ':</label>&nbsp;' +
  46820. __e(o.nickname) +
  46821. '</p>\n ';
  46822. } ;
  46823. __p += '\n ';
  46824. if (o.url) { ;
  46825. __p += '\n <p><label>' +
  46826. __e(o.__('URL')) +
  46827. ':</label>&nbsp;<a target="_blank" rel="noopener" href="' +
  46828. __e(o.url) +
  46829. '">' +
  46830. __e(o.url) +
  46831. '</a></p>\n ';
  46832. } ;
  46833. __p += '\n ';
  46834. if (o.email) { ;
  46835. __p += '\n <p><label>' +
  46836. __e(o.__('Email')) +
  46837. ':</label>&nbsp;<a href="mailto:' +
  46838. __e(o.email) +
  46839. '">' +
  46840. __e(o.email) +
  46841. '</a></p>\n ';
  46842. } ;
  46843. __p += '\n ';
  46844. if (o.role) { ;
  46845. __p += '\n <p><label>' +
  46846. __e(o.__('Role')) +
  46847. ':</label>&nbsp;' +
  46848. __e(o.role) +
  46849. '</p>\n ';
  46850. } ;
  46851. __p += '\n\n ';
  46852. if (o._converse.pluggable.plugins['converse-omemo'].enabled(o._converse)) { ;
  46853. __p += '\n <hr>\n <ul class="list-group fingerprints">\n <li class="list-group-item active">' +
  46854. __e(o.__('OMEMO Fingerprints')) +
  46855. '</li>\n ';
  46856. if (!o.view.devicelist.devices) { ;
  46857. __p += '\n <li class="list-group-item"><span class="spinner fa fa-spinner centered"/></li>\n ';
  46858. } ;
  46859. __p += '\n ';
  46860. if (o.view.devicelist.devices) { ;
  46861. __p += '\n ';
  46862. o.view.devicelist.devices.each(function (device) { ;
  46863. __p += '\n ';
  46864. if (device.get('bundle') && device.get('bundle').fingerprint) { ;
  46865. __p += '\n <li class="list-group-item">\n <form class="fingerprint-trust">\n <div class="btn-group btn-group-toggle">\n <label class="btn btn--small ';
  46866. if (device.get('trusted') !== -1) { ;
  46867. __p += ' btn-primary active ';
  46868. } else { ;
  46869. __p += ' btn-secondary ';
  46870. } ;
  46871. __p += '">\n <input type="radio" name="' +
  46872. __e(device.get('id')) +
  46873. '" value="1"\n ';
  46874. if (device.get('trusted') !== -1) { ;
  46875. __p += ' checked="checked" ';
  46876. } ;
  46877. __p += '>' +
  46878. __e(o.__('Trusted')) +
  46879. '\n </label>\n <label class="btn btn--small ';
  46880. if (device.get('trusted') === -1) { ;
  46881. __p += ' btn-primary active ';
  46882. } else { ;
  46883. __p += ' btn-secondary ';
  46884. } ;
  46885. __p += '">\n <input type="radio" name="' +
  46886. __e(device.get('id')) +
  46887. '" value="-1"\n ';
  46888. if (device.get('trusted') === -1) { ;
  46889. __p += ' checked="checked" ';
  46890. } ;
  46891. __p += '>' +
  46892. __e(o.__('Untrusted')) +
  46893. '\n </label>\n </div>\n <span class="fingerprint">' +
  46894. __e(o.utils.formatFingerprint(device.get('bundle').fingerprint)) +
  46895. '</span>\n </form>\n </li>\n ';
  46896. } ;
  46897. __p += '\n ';
  46898. }); ;
  46899. __p += '\n ';
  46900. } ;
  46901. __p += '\n </ul>\n ';
  46902. } ;
  46903. __p += '\n </div>\n <div class="modal-footer">\n ';
  46904. if (o.allow_contact_removal && o.is_roster_contact) { ;
  46905. __p += '\n <button type="button" class="btn btn-danger remove-contact"><i class="far fa-trash-alt"> </i>' +
  46906. __e(o.__('Remove as contact')) +
  46907. '</button>\n ';
  46908. } ;
  46909. __p += '\n <button type="button" class="btn btn-info refresh-contact"><i class="fa fa-refresh"> </i>' +
  46910. __e(o.__('Refresh')) +
  46911. '</button>\n <button type="button" class="btn btn-secondary" data-dismiss="modal">' +
  46912. __e(o.__('Close')) +
  46913. '</button>\n </div>\n </div>\n </div>\n</div>\n';
  46914. return __p
  46915. };
  46916. /***/ }),
  46917. /***/ "./src/templates/vcard.html":
  46918. /*!**********************************!*\
  46919. !*** ./src/templates/vcard.html ***!
  46920. \**********************************/
  46921. /*! no static exports found */
  46922. /***/ (function(module, exports, __webpack_require__) {
  46923. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46924. module.exports = function(o) {
  46925. var __t, __p = '', __e = _.escape;
  46926. __p += '<!-- src/templates/vcard.html -->\n<vCard xmlns="vcard-temp">\n <FN>' +
  46927. __e(o.fn) +
  46928. '</FN>\n <NICKNAME>' +
  46929. __e(o.nickname) +
  46930. '</NICKNAME>\n <URL>' +
  46931. __e(o.url) +
  46932. '</URL>\n <ROLE>' +
  46933. __e(o.role) +
  46934. '</ROLE>\n <EMAIL><INTERNET/><PREF/><USERID>' +
  46935. __e(o.email) +
  46936. '</USERID></EMAIL>\n <PHOTO>\n <TYPE>' +
  46937. __e(o.image_type) +
  46938. '</TYPE>\n <BINVAL>' +
  46939. __e(o.image) +
  46940. '</BINVAL>\n </PHOTO>\n</vCard>\n';
  46941. return __p
  46942. };
  46943. /***/ }),
  46944. /***/ "./src/templates/video.html":
  46945. /*!**********************************!*\
  46946. !*** ./src/templates/video.html ***!
  46947. \**********************************/
  46948. /*! no static exports found */
  46949. /***/ (function(module, exports, __webpack_require__) {
  46950. var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
  46951. module.exports = function(o) {
  46952. var __t, __p = '', __e = _.escape;
  46953. __p += '<!-- src/templates/video.html -->\n<video controls><source src="' +
  46954. __e(o.url) +
  46955. '" type="video/mp4"></video>\n<a target="_blank" rel="noopener" href="' +
  46956. __e(o.url) +
  46957. '">' +
  46958. __e(o.label_download) +
  46959. '</a>\n';
  46960. return __p
  46961. };
  46962. /***/ }),
  46963. /***/ "./src/underscore-shim.js":
  46964. /*!********************************!*\
  46965. !*** ./src/underscore-shim.js ***!
  46966. \********************************/
  46967. /*! no static exports found */
  46968. /***/ (function(module, exports, __webpack_require__) {
  46969. "use strict";
  46970. var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  46971. /*global define */
  46972. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! lodash */ "lodash")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (_) {
  46973. return _.noConflict();
  46974. }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
  46975. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  46976. /***/ }),
  46977. /***/ "./src/utils/core.js":
  46978. /*!***************************!*\
  46979. !*** ./src/utils/core.js ***!
  46980. \***************************/
  46981. /*! no static exports found */
  46982. /***/ (function(module, exports, __webpack_require__) {
  46983. "use strict";
  46984. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  46985. function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
  46986. function _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return right[Symbol.hasInstance](left); } else { return left instanceof right; } }
  46987. // Converse.js (A browser based XMPP chat client)
  46988. // http://conversejs.org
  46989. //
  46990. // This is the utilities module.
  46991. //
  46992. // Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
  46993. // Licensed under the Mozilla Public License (MPLv2)
  46994. //
  46995. /*global define, escape, window, Uint8Array */
  46996. (function (root, factory) {
  46997. if (true) {
  46998. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! sizzle */ "./node_modules/sizzle/dist/sizzle.js"), __webpack_require__(/*! es6-promise */ "es6-promise"), __webpack_require__(/*! lodash.noconflict */ "lodash.noconflict"), __webpack_require__(/*! backbone */ "./node_modules/backbone/backbone.js"), __webpack_require__(/*! strophe */ "strophe"), __webpack_require__(/*! uri */ "./node_modules/urijs/src/URI.js"), __webpack_require__(/*! templates/audio.html */ "./src/templates/audio.html"), __webpack_require__(/*! templates/file.html */ "./src/templates/file.html"), __webpack_require__(/*! templates/image.html */ "./src/templates/image.html"), __webpack_require__(/*! templates/video.html */ "./src/templates/video.html")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  46999. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  47000. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  47001. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  47002. } else { var Strophe; }
  47003. })(void 0, function (sizzle, Promise, _, Backbone, Strophe, URI, tpl_audio, tpl_file, tpl_image, tpl_video) {
  47004. "use strict";
  47005. Strophe = Strophe.Strophe;
  47006. var URL_REGEX = /\b(https?:\/\/|www\.|https?:\/\/www\.)[^\s<>]{2,200}\b\/?/g;
  47007. var logger = _.assign({
  47008. 'debug': _.get(console, 'log') ? console.log.bind(console) : _.noop,
  47009. 'error': _.get(console, 'log') ? console.log.bind(console) : _.noop,
  47010. 'info': _.get(console, 'log') ? console.log.bind(console) : _.noop,
  47011. 'warn': _.get(console, 'log') ? console.log.bind(console) : _.noop
  47012. }, console);
  47013. var isImage = function isImage(url) {
  47014. return new Promise(function (resolve, reject) {
  47015. var img = new Image();
  47016. var timer = window.setTimeout(function () {
  47017. reject(new Error("Could not determine whether it's an image"));
  47018. img = null;
  47019. }, 3000);
  47020. img.onerror = img.onabort = function () {
  47021. clearTimeout(timer);
  47022. reject(new Error("Could not determine whether it's an image"));
  47023. };
  47024. img.onload = function () {
  47025. clearTimeout(timer);
  47026. resolve(img);
  47027. };
  47028. img.src = url;
  47029. });
  47030. };
  47031. function slideOutWrapup(el) {
  47032. /* Wrapup function for slideOut. */
  47033. el.removeAttribute('data-slider-marker');
  47034. el.classList.remove('collapsed');
  47035. el.style.overflow = "";
  47036. el.style.height = "";
  47037. }
  47038. var u = {};
  47039. u.getLongestSubstring = function (string, candidates) {
  47040. function reducer(accumulator, current_value) {
  47041. if (string.startsWith(current_value)) {
  47042. if (current_value.length > accumulator.length) {
  47043. return current_value;
  47044. } else {
  47045. return accumulator;
  47046. }
  47047. } else {
  47048. return accumulator;
  47049. }
  47050. }
  47051. return candidates.reduce(reducer, '');
  47052. };
  47053. u.getNextElement = function (el) {
  47054. var selector = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '*';
  47055. var next_el = el.nextElementSibling;
  47056. while (!_.isNull(next_el) && !sizzle.matchesSelector(next_el, selector)) {
  47057. next_el = next_el.nextElementSibling;
  47058. }
  47059. return next_el;
  47060. };
  47061. u.getPreviousElement = function (el) {
  47062. var selector = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '*';
  47063. var prev_el = el.previousSibling;
  47064. while (!_.isNull(prev_el) && !sizzle.matchesSelector(prev_el, selector)) {
  47065. prev_el = prev_el.previousSibling;
  47066. }
  47067. return prev_el;
  47068. };
  47069. u.getFirstChildElement = function (el) {
  47070. var selector = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '*';
  47071. var first_el = el.firstElementChild;
  47072. while (!_.isNull(first_el) && !sizzle.matchesSelector(first_el, selector)) {
  47073. first_el = first_el.nextSibling;
  47074. }
  47075. return first_el;
  47076. };
  47077. u.getLastChildElement = function (el) {
  47078. var selector = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '*';
  47079. var last_el = el.lastElementChild;
  47080. while (!_.isNull(last_el) && !sizzle.matchesSelector(last_el, selector)) {
  47081. last_el = last_el.previousSibling;
  47082. }
  47083. return last_el;
  47084. };
  47085. u.calculateElementHeight = function (el) {
  47086. /* Return the height of the passed in DOM element,
  47087. * based on the heights of its children.
  47088. */
  47089. return _.reduce(el.children, function (result, child) {
  47090. return result + child.offsetHeight;
  47091. }, 0);
  47092. };
  47093. u.addClass = function (className, el) {
  47094. if (_instanceof(el, Element)) {
  47095. el.classList.add(className);
  47096. }
  47097. };
  47098. u.removeClass = function (className, el) {
  47099. if (_instanceof(el, Element)) {
  47100. el.classList.remove(className);
  47101. }
  47102. return el;
  47103. };
  47104. u.removeElement = function (el) {
  47105. if (!_.isNil(el) && !_.isNil(el.parentNode)) {
  47106. el.parentNode.removeChild(el);
  47107. }
  47108. };
  47109. u.showElement = _.flow(_.partial(u.removeClass, 'collapsed'), _.partial(u.removeClass, 'hidden'));
  47110. u.hideElement = function (el) {
  47111. if (!_.isNil(el)) {
  47112. el.classList.add('hidden');
  47113. }
  47114. return el;
  47115. };
  47116. u.ancestor = function (el, selector) {
  47117. var parent = el;
  47118. while (!_.isNil(parent) && !sizzle.matchesSelector(parent, selector)) {
  47119. parent = parent.parentElement;
  47120. }
  47121. return parent;
  47122. };
  47123. u.nextUntil = function (el, selector) {
  47124. var include_self = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  47125. /* Return the element's siblings until one matches the selector. */
  47126. var matches = [];
  47127. var sibling_el = el.nextElementSibling;
  47128. while (!_.isNil(sibling_el) && !sibling_el.matches(selector)) {
  47129. matches.push(sibling_el);
  47130. sibling_el = sibling_el.nextElementSibling;
  47131. }
  47132. return matches;
  47133. };
  47134. u.unescapeHTML = function (string) {
  47135. /* Helper method that replace HTML-escaped symbols with equivalent characters
  47136. * (e.g. transform occurrences of '&amp;' to '&')
  47137. *
  47138. * Parameters:
  47139. * (String) string: a String containing the HTML-escaped symbols.
  47140. */
  47141. var div = document.createElement('div');
  47142. div.innerHTML = string;
  47143. return div.innerText;
  47144. };
  47145. u.escapeHTML = function (string) {
  47146. return string.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
  47147. };
  47148. u.escapeURL = function (url) {
  47149. return encodeURI(decodeURI(url)).replace(/[!'()]/g, escape).replace(/\*/g, "%2A");
  47150. };
  47151. u.prefixMentions = function (message) {
  47152. /* Given a message object, return its text with @ chars
  47153. * inserted before the mentioned nicknames.
  47154. */
  47155. var text = message.get('message');
  47156. (message.get('references') || []).sort(function (a, b) {
  47157. return b.begin - a.begin;
  47158. }).forEach(function (ref) {
  47159. text = "".concat(text.slice(0, ref.begin), "@").concat(text.slice(ref.begin));
  47160. });
  47161. return text;
  47162. };
  47163. u.addMentionsMarkup = function (text, references, chatbox) {
  47164. if (chatbox.get('message_type') !== 'groupchat') {
  47165. return text;
  47166. }
  47167. var nick = chatbox.get('nick');
  47168. references.sort(function (a, b) {
  47169. return b.begin - a.begin;
  47170. }).forEach(function (ref) {
  47171. var mention = text.slice(ref.begin, ref.end);
  47172. chatbox;
  47173. if (mention === nick) {
  47174. text = text.slice(0, ref.begin) + "<span class=\"mention mention--self badge badge-info\">".concat(mention, "</span>") + text.slice(ref.end);
  47175. } else {
  47176. text = text.slice(0, ref.begin) + "<span class=\"mention\">".concat(mention, "</span>") + text.slice(ref.end);
  47177. }
  47178. });
  47179. return text;
  47180. };
  47181. u.addHyperlinks = function (text) {
  47182. return URI.withinString(text, function (url) {
  47183. var uri = new URI(url);
  47184. uri.normalize();
  47185. if (!url.startsWith('http://') && !url.startsWith('https://')) {
  47186. url = 'http://' + url;
  47187. }
  47188. url = u.escapeHTML(u.escapeURL(url));
  47189. return "<a target=\"_blank\" rel=\"noopener\" href=\"".concat(url, "\">").concat(u.escapeHTML(uri.readable()), "</a>");
  47190. });
  47191. };
  47192. u.renderNewLines = function (text) {
  47193. return text.replace(/\n\n+/g, '<br/><br/>').replace(/\n/g, '<br/>');
  47194. };
  47195. u.renderImageURLs = function (_converse, obj) {
  47196. /* Returns a Promise which resolves once all images have been loaded.
  47197. */
  47198. var __ = _converse.__;
  47199. var list = obj.textContent.match(URL_REGEX) || [];
  47200. return Promise.all(_.map(list, function (url) {
  47201. return new Promise(function (resolve, reject) {
  47202. return isImage(url).then(function (img) {
  47203. var i = new Image();
  47204. i.src = img.src;
  47205. i.addEventListener('load', resolve); // We also resolve for non-images, otherwise the
  47206. // Promise.all resolves prematurely.
  47207. i.addEventListener('error', resolve);
  47208. _.each(sizzle("a[href=\"".concat(url, "\"]"), obj), function (a) {
  47209. a.outerHTML = tpl_image({
  47210. 'url': url,
  47211. 'label_download': __('Download')
  47212. });
  47213. });
  47214. }).catch(resolve);
  47215. });
  47216. }));
  47217. };
  47218. u.renderFileURL = function (_converse, url) {
  47219. var uri = new URI(url),
  47220. __ = _converse.__,
  47221. filename = uri.filename(),
  47222. lower_filename = filename.toLowerCase();
  47223. if (!_.includes(["https", "http"], uri.protocol().toLowerCase()) || lower_filename.endsWith('mp3') || lower_filename.endsWith('mp4') || lower_filename.endsWith('jpg') || lower_filename.endsWith('jpeg') || lower_filename.endsWith('png') || lower_filename.endsWith('gif') || lower_filename.endsWith('svg')) {
  47224. return url;
  47225. }
  47226. return tpl_file({
  47227. 'url': url,
  47228. 'label_download': __('Download "%1$s"', uri.filename())
  47229. });
  47230. };
  47231. u.renderImageURL = function (_converse, url) {
  47232. var __ = _converse.__,
  47233. lurl = url.toLowerCase();
  47234. if (lurl.endsWith('jpg') || lurl.endsWith('jpeg') || lurl.endsWith('png') || lurl.endsWith('gif') || lurl.endsWith('svg')) {
  47235. return tpl_image({
  47236. 'url': url,
  47237. 'label_download': __('Download')
  47238. });
  47239. }
  47240. return url;
  47241. };
  47242. u.renderMovieURL = function (_converse, url) {
  47243. var __ = _converse.__;
  47244. if (url.endsWith('mp4')) {
  47245. return tpl_video({
  47246. 'url': url,
  47247. 'label_download': __('Download video file')
  47248. });
  47249. }
  47250. return url;
  47251. };
  47252. u.renderAudioURL = function (_converse, url) {
  47253. var __ = _converse.__;
  47254. if (url.endsWith('mp3')) {
  47255. return tpl_audio({
  47256. 'url': url,
  47257. 'label_download': __('Download audio file')
  47258. });
  47259. }
  47260. return url;
  47261. };
  47262. u.slideInAllElements = function (elements) {
  47263. var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 300;
  47264. return Promise.all(_.map(elements, _.partial(u.slideIn, _, duration)));
  47265. };
  47266. u.slideToggleElement = function (el, duration) {
  47267. if (_.includes(el.classList, 'collapsed') || _.includes(el.classList, 'hidden')) {
  47268. return u.slideOut(el, duration);
  47269. } else {
  47270. return u.slideIn(el, duration);
  47271. }
  47272. };
  47273. u.hasClass = function (className, el) {
  47274. return _.includes(el.classList, className);
  47275. };
  47276. u.slideOut = function (el) {
  47277. var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 200;
  47278. /* Shows/expands an element by sliding it out of itself
  47279. *
  47280. * Parameters:
  47281. * (HTMLElement) el - The HTML string
  47282. * (Number) duration - The duration amount in milliseconds
  47283. */
  47284. return new Promise(function (resolve, reject) {
  47285. if (_.isNil(el)) {
  47286. var err = "Undefined or null element passed into slideOut";
  47287. logger.warn(err);
  47288. reject(new Error(err));
  47289. return;
  47290. }
  47291. var marker = el.getAttribute('data-slider-marker');
  47292. if (marker) {
  47293. el.removeAttribute('data-slider-marker');
  47294. window.cancelAnimationFrame(marker);
  47295. }
  47296. var end_height = u.calculateElementHeight(el);
  47297. if (window.converse_disable_effects) {
  47298. // Effects are disabled (for tests)
  47299. el.style.height = end_height + 'px';
  47300. slideOutWrapup(el);
  47301. resolve();
  47302. return;
  47303. }
  47304. if (!u.hasClass('collapsed', el) && !u.hasClass('hidden', el)) {
  47305. resolve();
  47306. return;
  47307. }
  47308. var steps = duration / 17; // We assume 17ms per animation which is ~60FPS
  47309. var height = 0;
  47310. function draw() {
  47311. height += end_height / steps;
  47312. if (height < end_height) {
  47313. el.style.height = height + 'px';
  47314. el.setAttribute('data-slider-marker', window.requestAnimationFrame(draw));
  47315. } else {
  47316. // We recalculate the height to work around an apparent
  47317. // browser bug where browsers don't know the correct
  47318. // offsetHeight beforehand.
  47319. el.removeAttribute('data-slider-marker');
  47320. el.style.height = u.calculateElementHeight(el) + 'px';
  47321. el.style.overflow = "";
  47322. el.style.height = "";
  47323. resolve();
  47324. }
  47325. }
  47326. el.style.height = '0';
  47327. el.style.overflow = 'hidden';
  47328. el.classList.remove('hidden');
  47329. el.classList.remove('collapsed');
  47330. el.setAttribute('data-slider-marker', window.requestAnimationFrame(draw));
  47331. });
  47332. };
  47333. u.slideIn = function (el) {
  47334. var duration = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 200;
  47335. /* Hides/collapses an element by sliding it into itself. */
  47336. return new Promise(function (resolve, reject) {
  47337. if (_.isNil(el)) {
  47338. var err = "Undefined or null element passed into slideIn";
  47339. logger.warn(err);
  47340. return reject(new Error(err));
  47341. } else if (_.includes(el.classList, 'collapsed')) {
  47342. return resolve(el);
  47343. } else if (window.converse_disable_effects) {
  47344. // Effects are disabled (for tests)
  47345. el.classList.add('collapsed');
  47346. el.style.height = "";
  47347. return resolve(el);
  47348. }
  47349. var marker = el.getAttribute('data-slider-marker');
  47350. if (marker) {
  47351. el.removeAttribute('data-slider-marker');
  47352. window.cancelAnimationFrame(marker);
  47353. }
  47354. var original_height = el.offsetHeight,
  47355. steps = duration / 17; // We assume 17ms per animation which is ~60FPS
  47356. var height = original_height;
  47357. el.style.overflow = 'hidden';
  47358. function draw() {
  47359. height -= original_height / steps;
  47360. if (height > 0) {
  47361. el.style.height = height + 'px';
  47362. el.setAttribute('data-slider-marker', window.requestAnimationFrame(draw));
  47363. } else {
  47364. el.removeAttribute('data-slider-marker');
  47365. el.classList.add('collapsed');
  47366. el.style.height = "";
  47367. resolve(el);
  47368. }
  47369. }
  47370. el.setAttribute('data-slider-marker', window.requestAnimationFrame(draw));
  47371. });
  47372. };
  47373. function afterAnimationEnds(el, callback) {
  47374. el.classList.remove('visible');
  47375. if (_.isFunction(callback)) {
  47376. callback();
  47377. }
  47378. }
  47379. u.fadeIn = function (el, callback) {
  47380. if (_.isNil(el)) {
  47381. logger.warn("Undefined or null element passed into fadeIn");
  47382. }
  47383. if (window.converse_disable_effects) {
  47384. el.classList.remove('hidden');
  47385. return afterAnimationEnds(el, callback);
  47386. }
  47387. if (_.includes(el.classList, 'hidden')) {
  47388. el.classList.add('visible');
  47389. el.classList.remove('hidden');
  47390. el.addEventListener("webkitAnimationEnd", _.partial(afterAnimationEnds, el, callback));
  47391. el.addEventListener("animationend", _.partial(afterAnimationEnds, el, callback));
  47392. el.addEventListener("oanimationend", _.partial(afterAnimationEnds, el, callback));
  47393. } else {
  47394. afterAnimationEnds(el, callback);
  47395. }
  47396. };
  47397. u.isValidJID = function (jid) {
  47398. return _.compact(jid.split('@')).length === 2 && !jid.startsWith('@') && !jid.endsWith('@');
  47399. };
  47400. u.isValidMUCJID = function (jid) {
  47401. return !jid.startsWith('@') && !jid.endsWith('@');
  47402. };
  47403. u.isSameBareJID = function (jid1, jid2) {
  47404. return Strophe.getBareJidFromJid(jid1).toLowerCase() === Strophe.getBareJidFromJid(jid2).toLowerCase();
  47405. };
  47406. u.getMostRecentMessage = function (model) {
  47407. var messages = model.messages.filter('message');
  47408. return messages[messages.length - 1];
  47409. };
  47410. u.isNewMessage = function (message) {
  47411. /* Given a stanza, determine whether it's a new
  47412. * message, i.e. not a MAM archived one.
  47413. */
  47414. if (_instanceof(message, Element)) {
  47415. return !(sizzle("result[xmlns=\"".concat(Strophe.NS.MAM, "\"]"), message).length && sizzle("delay[xmlns=\"".concat(Strophe.NS.DELAY, "\"]"), message).length);
  47416. } else {
  47417. return !(message.get('is_delayed') && message.get('is_archived'));
  47418. }
  47419. };
  47420. u.isOnlyChatStateNotification = function (attrs) {
  47421. if (_instanceof(attrs, Backbone.Model)) {
  47422. attrs = attrs.attributes;
  47423. }
  47424. return attrs['chat_state'] && !attrs['oob_url'] && !attrs['file'] && !attrs['message'];
  47425. };
  47426. u.isHeadlineMessage = function (_converse, message) {
  47427. var from_jid = message.getAttribute('from');
  47428. if (message.getAttribute('type') === 'headline') {
  47429. return true;
  47430. }
  47431. var chatbox = _converse.chatboxes.get(Strophe.getBareJidFromJid(from_jid));
  47432. if (chatbox && chatbox.get('type') === 'chatroom') {
  47433. return false;
  47434. }
  47435. if (message.getAttribute('type') !== 'error' && !_.isNil(from_jid) && !_.includes(from_jid, '@')) {
  47436. // Some servers (I'm looking at you Prosody) don't set the message
  47437. // type to "headline" when sending server messages. For now we
  47438. // check if an @ signal is included, and if not, we assume it's
  47439. // a headline message.
  47440. return true;
  47441. }
  47442. return false;
  47443. };
  47444. u.merge = function merge(first, second) {
  47445. /* Merge the second object into the first one.
  47446. */
  47447. for (var k in second) {
  47448. if (_.isObject(first[k])) {
  47449. merge(first[k], second[k]);
  47450. } else {
  47451. first[k] = second[k];
  47452. }
  47453. }
  47454. };
  47455. u.applyUserSettings = function applyUserSettings(context, settings, user_settings) {
  47456. /* Configuration settings might be nested objects. We only want to
  47457. * add settings which are whitelisted.
  47458. */
  47459. for (var k in settings) {
  47460. if (_.isUndefined(user_settings[k])) {
  47461. continue;
  47462. }
  47463. if (_.isObject(settings[k]) && !_.isArray(settings[k])) {
  47464. applyUserSettings(context[k], settings[k], user_settings[k]);
  47465. } else {
  47466. context[k] = user_settings[k];
  47467. }
  47468. }
  47469. };
  47470. u.stringToNode = function (s) {
  47471. /* Converts an HTML string into a DOM Node.
  47472. * Expects that the HTML string has only one top-level element,
  47473. * i.e. not multiple ones.
  47474. *
  47475. * Parameters:
  47476. * (String) s - The HTML string
  47477. */
  47478. var div = document.createElement('div');
  47479. div.innerHTML = s;
  47480. return div.firstElementChild;
  47481. };
  47482. u.getOuterWidth = function (el) {
  47483. var include_margin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  47484. var width = el.offsetWidth;
  47485. if (!include_margin) {
  47486. return width;
  47487. }
  47488. var style = window.getComputedStyle(el);
  47489. width += parseInt(style.marginLeft, 10) + parseInt(style.marginRight, 10);
  47490. return width;
  47491. };
  47492. u.stringToElement = function (s) {
  47493. /* Converts an HTML string into a DOM element.
  47494. * Expects that the HTML string has only one top-level element,
  47495. * i.e. not multiple ones.
  47496. *
  47497. * Parameters:
  47498. * (String) s - The HTML string
  47499. */
  47500. var div = document.createElement('div');
  47501. div.innerHTML = s;
  47502. return div.firstElementChild;
  47503. };
  47504. u.matchesSelector = function (el, selector) {
  47505. /* Checks whether the DOM element matches the given selector.
  47506. *
  47507. * Parameters:
  47508. * (DOMElement) el - The DOM element
  47509. * (String) selector - The selector
  47510. */
  47511. return (el.matches || el.matchesSelector || el.msMatchesSelector || el.mozMatchesSelector || el.webkitMatchesSelector || el.oMatchesSelector).call(el, selector);
  47512. };
  47513. u.queryChildren = function (el, selector) {
  47514. /* Returns a list of children of the DOM element that match the
  47515. * selector.
  47516. *
  47517. * Parameters:
  47518. * (DOMElement) el - the DOM element
  47519. * (String) selector - the selector they should be matched
  47520. * against.
  47521. */
  47522. return _.filter(el.childNodes, _.partial(u.matchesSelector, _, selector));
  47523. };
  47524. u.contains = function (attr, query) {
  47525. return function (item) {
  47526. if (_typeof(attr) === 'object') {
  47527. var value = false;
  47528. _.forEach(attr, function (a) {
  47529. value = value || _.includes(item.get(a).toLowerCase(), query.toLowerCase());
  47530. });
  47531. return value;
  47532. } else if (typeof attr === 'string') {
  47533. return _.includes(item.get(attr).toLowerCase(), query.toLowerCase());
  47534. } else {
  47535. throw new TypeError('contains: wrong attribute type. Must be string or array.');
  47536. }
  47537. };
  47538. };
  47539. u.isOfType = function (type, item) {
  47540. return item.get('type') == type;
  47541. };
  47542. u.isInstance = function (type, item) {
  47543. return _instanceof(item, type);
  47544. };
  47545. u.getAttribute = function (key, item) {
  47546. return item.get(key);
  47547. };
  47548. u.contains.not = function (attr, query) {
  47549. return function (item) {
  47550. return !u.contains(attr, query)(item);
  47551. };
  47552. };
  47553. u.rootContains = function (root, el) {
  47554. // The document element does not have the contains method in IE.
  47555. if (root === document && !root.contains) {
  47556. return document.head.contains(el) || document.body.contains(el);
  47557. }
  47558. return root.contains ? root.contains(el) : window.HTMLElement.prototype.contains.call(root, el);
  47559. };
  47560. u.createFragmentFromText = function (markup) {
  47561. /* Returns a DocumentFragment containing DOM nodes based on the
  47562. * passed-in markup text.
  47563. */
  47564. // http://stackoverflow.com/questions/9334645/create-node-from-markup-string
  47565. var frag = document.createDocumentFragment(),
  47566. tmp = document.createElement('body'),
  47567. child;
  47568. tmp.innerHTML = markup; // Append elements in a loop to a DocumentFragment, so that the
  47569. // browser does not re-render the document for each node.
  47570. while (child = tmp.firstChild) {
  47571. // eslint-disable-line no-cond-assign
  47572. frag.appendChild(child);
  47573. }
  47574. return frag;
  47575. };
  47576. u.isPersistableModel = function (model) {
  47577. return model.collection && model.collection.browserStorage;
  47578. };
  47579. u.getResolveablePromise = function () {
  47580. /* Returns a promise object on which `resolve` or `reject` can be
  47581. * called.
  47582. */
  47583. var wrapper = {};
  47584. var promise = new Promise(function (resolve, reject) {
  47585. wrapper.resolve = resolve;
  47586. wrapper.reject = reject;
  47587. });
  47588. _.assign(promise, wrapper);
  47589. return promise;
  47590. };
  47591. u.interpolate = function (string, o) {
  47592. return string.replace(/{{{([^{}]*)}}}/g, function (a, b) {
  47593. var r = o[b];
  47594. return typeof r === 'string' || typeof r === 'number' ? r : a;
  47595. });
  47596. };
  47597. u.onMultipleEvents = function () {
  47598. var events = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  47599. var callback = arguments.length > 1 ? arguments[1] : undefined;
  47600. /* Call the callback once all the events have been triggered
  47601. *
  47602. * Parameters:
  47603. * (Array) events: An array of objects, with keys `object` and
  47604. * `event`, representing the event name and the object it's
  47605. * triggered upon.
  47606. * (Function) callback: The function to call once all events have
  47607. * been triggered.
  47608. */
  47609. var triggered = [];
  47610. function handler(result) {
  47611. triggered.push(result);
  47612. if (events.length === triggered.length) {
  47613. callback(triggered);
  47614. triggered = [];
  47615. }
  47616. }
  47617. _.each(events, function (map) {
  47618. return map.object.on(map.event, handler);
  47619. });
  47620. };
  47621. u.safeSave = function (model, attributes) {
  47622. if (u.isPersistableModel(model)) {
  47623. model.save(attributes);
  47624. } else {
  47625. model.set(attributes);
  47626. }
  47627. };
  47628. u.siblingIndex = function (el) {
  47629. /* eslint-disable no-cond-assign */
  47630. for (var i = 0; el = el.previousElementSibling; i++) {
  47631. ;
  47632. }
  47633. return i;
  47634. };
  47635. u.getCurrentWord = function (input) {
  47636. var cursor = input.selectionEnd || undefined;
  47637. return _.last(input.value.slice(0, cursor).split(' '));
  47638. };
  47639. u.replaceCurrentWord = function (input, new_value) {
  47640. var cursor = input.selectionEnd || undefined,
  47641. current_word = _.last(input.value.slice(0, cursor).split(' ')),
  47642. value = input.value;
  47643. input.value = value.slice(0, cursor - current_word.length) + "".concat(new_value, " ") + value.slice(cursor);
  47644. input.selectionEnd = cursor - current_word.length + new_value.length + 1;
  47645. };
  47646. u.isVisible = function (el) {
  47647. if (u.hasClass('hidden', el)) {
  47648. return false;
  47649. } // XXX: Taken from jQuery's "visible" implementation
  47650. return el.offsetWidth > 0 || el.offsetHeight > 0 || el.getClientRects().length > 0;
  47651. };
  47652. u.triggerEvent = function (el, name) {
  47653. var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "Event";
  47654. var bubbles = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
  47655. var cancelable = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
  47656. var evt = document.createEvent(type);
  47657. evt.initEvent(name, bubbles, cancelable);
  47658. el.dispatchEvent(evt);
  47659. };
  47660. u.geoUriToHttp = function (text, geouri_replacement) {
  47661. var regex = /geo:([\-0-9.]+),([\-0-9.]+)(?:,([\-0-9.]+))?(?:\?(.*))?/g;
  47662. return text.replace(regex, geouri_replacement);
  47663. };
  47664. u.httpToGeoUri = function (text, _converse) {
  47665. var replacement = 'geo:$1,$2';
  47666. return text.replace(_converse.geouri_regex, replacement);
  47667. };
  47668. u.getSelectValues = function (select) {
  47669. var result = [];
  47670. var options = select && select.options;
  47671. for (var i = 0, iLen = options.length; i < iLen; i++) {
  47672. var opt = options[i];
  47673. if (opt.selected) {
  47674. result.push(opt.value || opt.text);
  47675. }
  47676. }
  47677. return result;
  47678. };
  47679. u.formatFingerprint = function (fp) {
  47680. fp = fp.replace(/^05/, '');
  47681. var arr = [];
  47682. for (var i = 1; i < 8; i++) {
  47683. var idx = i * 8 + i - 1;
  47684. fp = fp.slice(0, idx) + ' ' + fp.slice(idx);
  47685. }
  47686. return fp;
  47687. };
  47688. u.appendArrayBuffer = function (buffer1, buffer2) {
  47689. var tmp = new Uint8Array(buffer1.byteLength + buffer2.byteLength);
  47690. tmp.set(new Uint8Array(buffer1), 0);
  47691. tmp.set(new Uint8Array(buffer2), buffer1.byteLength);
  47692. return tmp.buffer;
  47693. };
  47694. u.arrayBufferToHex = function (ab) {
  47695. // https://stackoverflow.com/questions/40031688/javascript-arraybuffer-to-hex#40031979
  47696. return Array.prototype.map.call(new Uint8Array(ab), function (x) {
  47697. return ('00' + x.toString(16)).slice(-2);
  47698. }).join('');
  47699. };
  47700. u.arrayBufferToString = function (ab) {
  47701. return new Uint8Array(ab).reduce(function (data, byte) {
  47702. return data + String.fromCharCode(byte);
  47703. }, '');
  47704. };
  47705. u.stringToArrayBuffer = function (string) {
  47706. var len = string.length,
  47707. bytes = new Uint8Array(len);
  47708. for (var i = 0; i < len; i++) {
  47709. bytes[i] = string.charCodeAt(i);
  47710. }
  47711. return bytes.buffer;
  47712. };
  47713. u.arrayBufferToBase64 = function (ab) {
  47714. return btoa(new Uint8Array(ab).reduce(function (data, byte) {
  47715. return data + String.fromCharCode(byte);
  47716. }, ''));
  47717. };
  47718. u.base64ToArrayBuffer = function (b64) {
  47719. var binary_string = window.atob(b64),
  47720. len = binary_string.length,
  47721. bytes = new Uint8Array(len);
  47722. for (var i = 0; i < len; i++) {
  47723. bytes[i] = binary_string.charCodeAt(i);
  47724. }
  47725. return bytes.buffer;
  47726. };
  47727. u.getRandomInt = function (max) {
  47728. return Math.floor(Math.random() * Math.floor(max));
  47729. };
  47730. u.putCurserAtEnd = function (textarea) {
  47731. if (textarea !== document.activeElement) {
  47732. textarea.focus();
  47733. } // Double the length because Opera is inconsistent about whether a carriage return is one character or two.
  47734. var len = textarea.value.length * 2; // Timeout seems to be required for Blink
  47735. setTimeout(function () {
  47736. return textarea.setSelectionRange(len, len);
  47737. }, 1); // Scroll to the bottom, in case we're in a tall textarea
  47738. // (Necessary for Firefox and Chrome)
  47739. this.scrollTop = 999999;
  47740. };
  47741. u.getUniqueId = function () {
  47742. return 'xxxxxxxx-xxxx'.replace(/[x]/g, function (c) {
  47743. var r = Math.random() * 16 | 0,
  47744. v = c === 'x' ? r : r & 0x3 | 0x8;
  47745. return v.toString(16);
  47746. });
  47747. };
  47748. return u;
  47749. });
  47750. /***/ }),
  47751. /***/ "./src/utils/emoji.js":
  47752. /*!****************************!*\
  47753. !*** ./src/utils/emoji.js ***!
  47754. \****************************/
  47755. /*! no static exports found */
  47756. /***/ (function(module, exports, __webpack_require__) {
  47757. "use strict";
  47758. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  47759. (function (root, factory) {
  47760. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! lodash.noconflict */ "lodash.noconflict"), __webpack_require__(/*! utils/core */ "./src/utils/core.js"), __webpack_require__(/*! twemoji */ "./node_modules/twemoji/2/esm.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  47761. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  47762. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  47763. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  47764. })(void 0, function (_, u, twemoji) {
  47765. "use strict";
  47766. var emoji_list = {
  47767. ":kiss_mm:": {
  47768. "uc_base": "1f468-2764-1f48b-1f468",
  47769. "uc_output": "1f468-200d-2764-fe0f-200d-1f48b-200d-1f468",
  47770. "uc_match": "1f468-2764-fe0f-1f48b-1f468",
  47771. "uc_greedy": "1f468-2764-1f48b-1f468",
  47772. "shortnames": [":couplekiss_mm:"],
  47773. "category": "people"
  47774. },
  47775. ":kiss_woman_man:": {
  47776. "uc_base": "1f469-2764-1f48b-1f468",
  47777. "uc_output": "1f469-200d-2764-fe0f-200d-1f48b-200d-1f468",
  47778. "uc_match": "1f469-2764-fe0f-1f48b-1f468",
  47779. "uc_greedy": "1f469-2764-1f48b-1f468",
  47780. "shortnames": [],
  47781. "category": "people"
  47782. },
  47783. ":kiss_ww:": {
  47784. "uc_base": "1f469-2764-1f48b-1f469",
  47785. "uc_output": "1f469-200d-2764-fe0f-200d-1f48b-200d-1f469",
  47786. "uc_match": "1f469-2764-fe0f-1f48b-1f469",
  47787. "uc_greedy": "1f469-2764-1f48b-1f469",
  47788. "shortnames": [":couplekiss_ww:"],
  47789. "category": "people"
  47790. },
  47791. ":england:": {
  47792. "uc_base": "1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",
  47793. "uc_output": "1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",
  47794. "uc_match": "1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",
  47795. "uc_greedy": "1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",
  47796. "shortnames": [],
  47797. "category": "flags"
  47798. },
  47799. ":scotland:": {
  47800. "uc_base": "1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",
  47801. "uc_output": "1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",
  47802. "uc_match": "1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",
  47803. "uc_greedy": "1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",
  47804. "shortnames": [],
  47805. "category": "flags"
  47806. },
  47807. ":wales:": {
  47808. "uc_base": "1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",
  47809. "uc_output": "1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",
  47810. "uc_match": "1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",
  47811. "uc_greedy": "1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",
  47812. "shortnames": [],
  47813. "category": "flags"
  47814. },
  47815. ":family_mmbb:": {
  47816. "uc_base": "1f468-1f468-1f466-1f466",
  47817. "uc_output": "1f468-200d-1f468-200d-1f466-200d-1f466",
  47818. "uc_match": "1f468-1f468-1f466-1f466",
  47819. "uc_greedy": "1f468-1f468-1f466-1f466",
  47820. "shortnames": [],
  47821. "category": "people"
  47822. },
  47823. ":family_mmgb:": {
  47824. "uc_base": "1f468-1f468-1f467-1f466",
  47825. "uc_output": "1f468-200d-1f468-200d-1f467-200d-1f466",
  47826. "uc_match": "1f468-1f468-1f467-1f466",
  47827. "uc_greedy": "1f468-1f468-1f467-1f466",
  47828. "shortnames": [],
  47829. "category": "people"
  47830. },
  47831. ":family_mmgg:": {
  47832. "uc_base": "1f468-1f468-1f467-1f467",
  47833. "uc_output": "1f468-200d-1f468-200d-1f467-200d-1f467",
  47834. "uc_match": "1f468-1f468-1f467-1f467",
  47835. "uc_greedy": "1f468-1f468-1f467-1f467",
  47836. "shortnames": [],
  47837. "category": "people"
  47838. },
  47839. ":family_mwbb:": {
  47840. "uc_base": "1f468-1f469-1f466-1f466",
  47841. "uc_output": "1f468-200d-1f469-200d-1f466-200d-1f466",
  47842. "uc_match": "1f468-1f469-1f466-1f466",
  47843. "uc_greedy": "1f468-1f469-1f466-1f466",
  47844. "shortnames": [],
  47845. "category": "people"
  47846. },
  47847. ":family_mwgb:": {
  47848. "uc_base": "1f468-1f469-1f467-1f466",
  47849. "uc_output": "1f468-200d-1f469-200d-1f467-200d-1f466",
  47850. "uc_match": "1f468-1f469-1f467-1f466",
  47851. "uc_greedy": "1f468-1f469-1f467-1f466",
  47852. "shortnames": [],
  47853. "category": "people"
  47854. },
  47855. ":family_mwgg:": {
  47856. "uc_base": "1f468-1f469-1f467-1f467",
  47857. "uc_output": "1f468-200d-1f469-200d-1f467-200d-1f467",
  47858. "uc_match": "1f468-1f469-1f467-1f467",
  47859. "uc_greedy": "1f468-1f469-1f467-1f467",
  47860. "shortnames": [],
  47861. "category": "people"
  47862. },
  47863. ":family_wwbb:": {
  47864. "uc_base": "1f469-1f469-1f466-1f466",
  47865. "uc_output": "1f469-200d-1f469-200d-1f466-200d-1f466",
  47866. "uc_match": "1f469-1f469-1f466-1f466",
  47867. "uc_greedy": "1f469-1f469-1f466-1f466",
  47868. "shortnames": [],
  47869. "category": "people"
  47870. },
  47871. ":family_wwgb:": {
  47872. "uc_base": "1f469-1f469-1f467-1f466",
  47873. "uc_output": "1f469-200d-1f469-200d-1f467-200d-1f466",
  47874. "uc_match": "1f469-1f469-1f467-1f466",
  47875. "uc_greedy": "1f469-1f469-1f467-1f466",
  47876. "shortnames": [],
  47877. "category": "people"
  47878. },
  47879. ":family_wwgg:": {
  47880. "uc_base": "1f469-1f469-1f467-1f467",
  47881. "uc_output": "1f469-200d-1f469-200d-1f467-200d-1f467",
  47882. "uc_match": "1f469-1f469-1f467-1f467",
  47883. "uc_greedy": "1f469-1f469-1f467-1f467",
  47884. "shortnames": [],
  47885. "category": "people"
  47886. },
  47887. ":couple_mm:": {
  47888. "uc_base": "1f468-2764-1f468",
  47889. "uc_output": "1f468-200d-2764-fe0f-200d-1f468",
  47890. "uc_match": "1f468-2764-fe0f-1f468",
  47891. "uc_greedy": "1f468-2764-1f468",
  47892. "shortnames": [":couple_with_heart_mm:"],
  47893. "category": "people"
  47894. },
  47895. ":couple_with_heart_woman_man:": {
  47896. "uc_base": "1f469-2764-1f468",
  47897. "uc_output": "1f469-200d-2764-fe0f-200d-1f468",
  47898. "uc_match": "1f469-2764-fe0f-1f468",
  47899. "uc_greedy": "1f469-2764-1f468",
  47900. "shortnames": [],
  47901. "category": "people"
  47902. },
  47903. ":couple_ww:": {
  47904. "uc_base": "1f469-2764-1f469",
  47905. "uc_output": "1f469-200d-2764-fe0f-200d-1f469",
  47906. "uc_match": "1f469-2764-fe0f-1f469",
  47907. "uc_greedy": "1f469-2764-1f469",
  47908. "shortnames": [":couple_with_heart_ww:"],
  47909. "category": "people"
  47910. },
  47911. ":family_man_boy_boy:": {
  47912. "uc_base": "1f468-1f466-1f466",
  47913. "uc_output": "1f468-200d-1f466-200d-1f466",
  47914. "uc_match": "1f468-1f466-1f466",
  47915. "uc_greedy": "1f468-1f466-1f466",
  47916. "shortnames": [],
  47917. "category": "people"
  47918. },
  47919. ":family_man_girl_boy:": {
  47920. "uc_base": "1f468-1f467-1f466",
  47921. "uc_output": "1f468-200d-1f467-200d-1f466",
  47922. "uc_match": "1f468-1f467-1f466",
  47923. "uc_greedy": "1f468-1f467-1f466",
  47924. "shortnames": [],
  47925. "category": "people"
  47926. },
  47927. ":family_man_girl_girl:": {
  47928. "uc_base": "1f468-1f467-1f467",
  47929. "uc_output": "1f468-200d-1f467-200d-1f467",
  47930. "uc_match": "1f468-1f467-1f467",
  47931. "uc_greedy": "1f468-1f467-1f467",
  47932. "shortnames": [],
  47933. "category": "people"
  47934. },
  47935. ":family_man_woman_boy:": {
  47936. "uc_base": "1f468-1f469-1f466",
  47937. "uc_output": "1f468-200d-1f469-200d-1f466",
  47938. "uc_match": "1f468-1f469-1f466",
  47939. "uc_greedy": "1f468-1f469-1f466",
  47940. "shortnames": [],
  47941. "category": "people"
  47942. },
  47943. ":family_mmb:": {
  47944. "uc_base": "1f468-1f468-1f466",
  47945. "uc_output": "1f468-200d-1f468-200d-1f466",
  47946. "uc_match": "1f468-1f468-1f466",
  47947. "uc_greedy": "1f468-1f468-1f466",
  47948. "shortnames": [],
  47949. "category": "people"
  47950. },
  47951. ":family_mmg:": {
  47952. "uc_base": "1f468-1f468-1f467",
  47953. "uc_output": "1f468-200d-1f468-200d-1f467",
  47954. "uc_match": "1f468-1f468-1f467",
  47955. "uc_greedy": "1f468-1f468-1f467",
  47956. "shortnames": [],
  47957. "category": "people"
  47958. },
  47959. ":family_mwg:": {
  47960. "uc_base": "1f468-1f469-1f467",
  47961. "uc_output": "1f468-200d-1f469-200d-1f467",
  47962. "uc_match": "1f468-1f469-1f467",
  47963. "uc_greedy": "1f468-1f469-1f467",
  47964. "shortnames": [],
  47965. "category": "people"
  47966. },
  47967. ":family_woman_boy_boy:": {
  47968. "uc_base": "1f469-1f466-1f466",
  47969. "uc_output": "1f469-200d-1f466-200d-1f466",
  47970. "uc_match": "1f469-1f466-1f466",
  47971. "uc_greedy": "1f469-1f466-1f466",
  47972. "shortnames": [],
  47973. "category": "people"
  47974. },
  47975. ":family_woman_girl_boy:": {
  47976. "uc_base": "1f469-1f467-1f466",
  47977. "uc_output": "1f469-200d-1f467-200d-1f466",
  47978. "uc_match": "1f469-1f467-1f466",
  47979. "uc_greedy": "1f469-1f467-1f466",
  47980. "shortnames": [],
  47981. "category": "people"
  47982. },
  47983. ":family_woman_girl_girl:": {
  47984. "uc_base": "1f469-1f467-1f467",
  47985. "uc_output": "1f469-200d-1f467-200d-1f467",
  47986. "uc_match": "1f469-1f467-1f467",
  47987. "uc_greedy": "1f469-1f467-1f467",
  47988. "shortnames": [],
  47989. "category": "people"
  47990. },
  47991. ":family_wwb:": {
  47992. "uc_base": "1f469-1f469-1f466",
  47993. "uc_output": "1f469-200d-1f469-200d-1f466",
  47994. "uc_match": "1f469-1f469-1f466",
  47995. "uc_greedy": "1f469-1f469-1f466",
  47996. "shortnames": [],
  47997. "category": "people"
  47998. },
  47999. ":family_wwg:": {
  48000. "uc_base": "1f469-1f469-1f467",
  48001. "uc_output": "1f469-200d-1f469-200d-1f467",
  48002. "uc_match": "1f469-1f469-1f467",
  48003. "uc_greedy": "1f469-1f469-1f467",
  48004. "shortnames": [],
  48005. "category": "people"
  48006. },
  48007. ":blond-haired_man_tone1:": {
  48008. "uc_base": "1f471-1f3fb-2642",
  48009. "uc_output": "1f471-1f3fb-200d-2642-fe0f",
  48010. "uc_match": "1f471-1f3fb-2642-fe0f",
  48011. "uc_greedy": "1f471-1f3fb-2642",
  48012. "shortnames": [":blond-haired_man_light_skin_tone:"],
  48013. "category": "people"
  48014. },
  48015. ":blond-haired_man_tone2:": {
  48016. "uc_base": "1f471-1f3fc-2642",
  48017. "uc_output": "1f471-1f3fc-200d-2642-fe0f",
  48018. "uc_match": "1f471-1f3fc-2642-fe0f",
  48019. "uc_greedy": "1f471-1f3fc-2642",
  48020. "shortnames": [":blond-haired_man_medium_light_skin_tone:"],
  48021. "category": "people"
  48022. },
  48023. ":blond-haired_man_tone3:": {
  48024. "uc_base": "1f471-1f3fd-2642",
  48025. "uc_output": "1f471-1f3fd-200d-2642-fe0f",
  48026. "uc_match": "1f471-1f3fd-2642-fe0f",
  48027. "uc_greedy": "1f471-1f3fd-2642",
  48028. "shortnames": [":blond-haired_man_medium_skin_tone:"],
  48029. "category": "people"
  48030. },
  48031. ":blond-haired_man_tone4:": {
  48032. "uc_base": "1f471-1f3fe-2642",
  48033. "uc_output": "1f471-1f3fe-200d-2642-fe0f",
  48034. "uc_match": "1f471-1f3fe-2642-fe0f",
  48035. "uc_greedy": "1f471-1f3fe-2642",
  48036. "shortnames": [":blond-haired_man_medium_dark_skin_tone:"],
  48037. "category": "people"
  48038. },
  48039. ":blond-haired_man_tone5:": {
  48040. "uc_base": "1f471-1f3ff-2642",
  48041. "uc_output": "1f471-1f3ff-200d-2642-fe0f",
  48042. "uc_match": "1f471-1f3ff-2642-fe0f",
  48043. "uc_greedy": "1f471-1f3ff-2642",
  48044. "shortnames": [":blond-haired_man_dark_skin_tone:"],
  48045. "category": "people"
  48046. },
  48047. ":blond-haired_woman_tone1:": {
  48048. "uc_base": "1f471-1f3fb-2640",
  48049. "uc_output": "1f471-1f3fb-200d-2640-fe0f",
  48050. "uc_match": "1f471-1f3fb-2640-fe0f",
  48051. "uc_greedy": "1f471-1f3fb-2640",
  48052. "shortnames": [":blond-haired_woman_light_skin_tone:"],
  48053. "category": "people"
  48054. },
  48055. ":blond-haired_woman_tone2:": {
  48056. "uc_base": "1f471-1f3fc-2640",
  48057. "uc_output": "1f471-1f3fc-200d-2640-fe0f",
  48058. "uc_match": "1f471-1f3fc-2640-fe0f",
  48059. "uc_greedy": "1f471-1f3fc-2640",
  48060. "shortnames": [":blond-haired_woman_medium_light_skin_tone:"],
  48061. "category": "people"
  48062. },
  48063. ":blond-haired_woman_tone3:": {
  48064. "uc_base": "1f471-1f3fd-2640",
  48065. "uc_output": "1f471-1f3fd-200d-2640-fe0f",
  48066. "uc_match": "1f471-1f3fd-2640-fe0f",
  48067. "uc_greedy": "1f471-1f3fd-2640",
  48068. "shortnames": [":blond-haired_woman_medium_skin_tone:"],
  48069. "category": "people"
  48070. },
  48071. ":blond-haired_woman_tone4:": {
  48072. "uc_base": "1f471-1f3fe-2640",
  48073. "uc_output": "1f471-1f3fe-200d-2640-fe0f",
  48074. "uc_match": "1f471-1f3fe-2640-fe0f",
  48075. "uc_greedy": "1f471-1f3fe-2640",
  48076. "shortnames": [":blond-haired_woman_medium_dark_skin_tone:"],
  48077. "category": "people"
  48078. },
  48079. ":blond-haired_woman_tone5:": {
  48080. "uc_base": "1f471-1f3ff-2640",
  48081. "uc_output": "1f471-1f3ff-200d-2640-fe0f",
  48082. "uc_match": "1f471-1f3ff-2640-fe0f",
  48083. "uc_greedy": "1f471-1f3ff-2640",
  48084. "shortnames": [":blond-haired_woman_dark_skin_tone:"],
  48085. "category": "people"
  48086. },
  48087. ":eye_in_speech_bubble:": {
  48088. "uc_base": "1f441-1f5e8",
  48089. "uc_output": "1f441-fe0f-200d-1f5e8-fe0f",
  48090. "uc_match": "1f441-fe0f-200d-1f5e8",
  48091. "uc_greedy": "1f441-1f5e8",
  48092. "shortnames": [],
  48093. "category": "symbols"
  48094. },
  48095. ":man_biking_tone1:": {
  48096. "uc_base": "1f6b4-1f3fb-2642",
  48097. "uc_output": "1f6b4-1f3fb-200d-2642-fe0f",
  48098. "uc_match": "1f6b4-1f3fb-2642-fe0f",
  48099. "uc_greedy": "1f6b4-1f3fb-2642",
  48100. "shortnames": [":man_biking_light_skin_tone:"],
  48101. "category": "activity"
  48102. },
  48103. ":man_biking_tone2:": {
  48104. "uc_base": "1f6b4-1f3fc-2642",
  48105. "uc_output": "1f6b4-1f3fc-200d-2642-fe0f",
  48106. "uc_match": "1f6b4-1f3fc-2642-fe0f",
  48107. "uc_greedy": "1f6b4-1f3fc-2642",
  48108. "shortnames": [":man_biking_medium_light_skin_tone:"],
  48109. "category": "activity"
  48110. },
  48111. ":man_biking_tone3:": {
  48112. "uc_base": "1f6b4-1f3fd-2642",
  48113. "uc_output": "1f6b4-1f3fd-200d-2642-fe0f",
  48114. "uc_match": "1f6b4-1f3fd-2642-fe0f",
  48115. "uc_greedy": "1f6b4-1f3fd-2642",
  48116. "shortnames": [":man_biking_medium_skin_tone:"],
  48117. "category": "activity"
  48118. },
  48119. ":man_biking_tone4:": {
  48120. "uc_base": "1f6b4-1f3fe-2642",
  48121. "uc_output": "1f6b4-1f3fe-200d-2642-fe0f",
  48122. "uc_match": "1f6b4-1f3fe-2642-fe0f",
  48123. "uc_greedy": "1f6b4-1f3fe-2642",
  48124. "shortnames": [":man_biking_medium_dark_skin_tone:"],
  48125. "category": "activity"
  48126. },
  48127. ":man_biking_tone5:": {
  48128. "uc_base": "1f6b4-1f3ff-2642",
  48129. "uc_output": "1f6b4-1f3ff-200d-2642-fe0f",
  48130. "uc_match": "1f6b4-1f3ff-2642-fe0f",
  48131. "uc_greedy": "1f6b4-1f3ff-2642",
  48132. "shortnames": [":man_biking_dark_skin_tone:"],
  48133. "category": "activity"
  48134. },
  48135. ":man_bowing_tone1:": {
  48136. "uc_base": "1f647-1f3fb-2642",
  48137. "uc_output": "1f647-1f3fb-200d-2642-fe0f",
  48138. "uc_match": "1f647-1f3fb-2642-fe0f",
  48139. "uc_greedy": "1f647-1f3fb-2642",
  48140. "shortnames": [":man_bowing_light_skin_tone:"],
  48141. "category": "people"
  48142. },
  48143. ":man_bowing_tone2:": {
  48144. "uc_base": "1f647-1f3fc-2642",
  48145. "uc_output": "1f647-1f3fc-200d-2642-fe0f",
  48146. "uc_match": "1f647-1f3fc-2642-fe0f",
  48147. "uc_greedy": "1f647-1f3fc-2642",
  48148. "shortnames": [":man_bowing_medium_light_skin_tone:"],
  48149. "category": "people"
  48150. },
  48151. ":man_bowing_tone3:": {
  48152. "uc_base": "1f647-1f3fd-2642",
  48153. "uc_output": "1f647-1f3fd-200d-2642-fe0f",
  48154. "uc_match": "1f647-1f3fd-2642-fe0f",
  48155. "uc_greedy": "1f647-1f3fd-2642",
  48156. "shortnames": [":man_bowing_medium_skin_tone:"],
  48157. "category": "people"
  48158. },
  48159. ":man_bowing_tone4:": {
  48160. "uc_base": "1f647-1f3fe-2642",
  48161. "uc_output": "1f647-1f3fe-200d-2642-fe0f",
  48162. "uc_match": "1f647-1f3fe-2642-fe0f",
  48163. "uc_greedy": "1f647-1f3fe-2642",
  48164. "shortnames": [":man_bowing_medium_dark_skin_tone:"],
  48165. "category": "people"
  48166. },
  48167. ":man_bowing_tone5:": {
  48168. "uc_base": "1f647-1f3ff-2642",
  48169. "uc_output": "1f647-1f3ff-200d-2642-fe0f",
  48170. "uc_match": "1f647-1f3ff-2642-fe0f",
  48171. "uc_greedy": "1f647-1f3ff-2642",
  48172. "shortnames": [":man_bowing_dark_skin_tone:"],
  48173. "category": "people"
  48174. },
  48175. ":man_cartwheeling_tone1:": {
  48176. "uc_base": "1f938-1f3fb-2642",
  48177. "uc_output": "1f938-1f3fb-200d-2642-fe0f",
  48178. "uc_match": "1f938-1f3fb-2642-fe0f",
  48179. "uc_greedy": "1f938-1f3fb-2642",
  48180. "shortnames": [":man_cartwheeling_light_skin_tone:"],
  48181. "category": "activity"
  48182. },
  48183. ":man_cartwheeling_tone2:": {
  48184. "uc_base": "1f938-1f3fc-2642",
  48185. "uc_output": "1f938-1f3fc-200d-2642-fe0f",
  48186. "uc_match": "1f938-1f3fc-2642-fe0f",
  48187. "uc_greedy": "1f938-1f3fc-2642",
  48188. "shortnames": [":man_cartwheeling_medium_light_skin_tone:"],
  48189. "category": "activity"
  48190. },
  48191. ":man_cartwheeling_tone3:": {
  48192. "uc_base": "1f938-1f3fd-2642",
  48193. "uc_output": "1f938-1f3fd-200d-2642-fe0f",
  48194. "uc_match": "1f938-1f3fd-2642-fe0f",
  48195. "uc_greedy": "1f938-1f3fd-2642",
  48196. "shortnames": [":man_cartwheeling_medium_skin_tone:"],
  48197. "category": "activity"
  48198. },
  48199. ":man_cartwheeling_tone4:": {
  48200. "uc_base": "1f938-1f3fe-2642",
  48201. "uc_output": "1f938-1f3fe-200d-2642-fe0f",
  48202. "uc_match": "1f938-1f3fe-2642-fe0f",
  48203. "uc_greedy": "1f938-1f3fe-2642",
  48204. "shortnames": [":man_cartwheeling_medium_dark_skin_tone:"],
  48205. "category": "activity"
  48206. },
  48207. ":man_cartwheeling_tone5:": {
  48208. "uc_base": "1f938-1f3ff-2642",
  48209. "uc_output": "1f938-1f3ff-200d-2642-fe0f",
  48210. "uc_match": "1f938-1f3ff-2642-fe0f",
  48211. "uc_greedy": "1f938-1f3ff-2642",
  48212. "shortnames": [":man_cartwheeling_dark_skin_tone:"],
  48213. "category": "activity"
  48214. },
  48215. ":man_climbing_tone1:": {
  48216. "uc_base": "1f9d7-1f3fb-2642",
  48217. "uc_output": "1f9d7-1f3fb-200d-2642-fe0f",
  48218. "uc_match": "1f9d7-1f3fb-2642-fe0f",
  48219. "uc_greedy": "1f9d7-1f3fb-2642",
  48220. "shortnames": [":man_climbing_light_skin_tone:"],
  48221. "category": "activity"
  48222. },
  48223. ":man_climbing_tone2:": {
  48224. "uc_base": "1f9d7-1f3fc-2642",
  48225. "uc_output": "1f9d7-1f3fc-200d-2642-fe0f",
  48226. "uc_match": "1f9d7-1f3fc-2642-fe0f",
  48227. "uc_greedy": "1f9d7-1f3fc-2642",
  48228. "shortnames": [":man_climbing_medium_light_skin_tone:"],
  48229. "category": "activity"
  48230. },
  48231. ":man_climbing_tone3:": {
  48232. "uc_base": "1f9d7-1f3fd-2642",
  48233. "uc_output": "1f9d7-1f3fd-200d-2642-fe0f",
  48234. "uc_match": "1f9d7-1f3fd-2642-fe0f",
  48235. "uc_greedy": "1f9d7-1f3fd-2642",
  48236. "shortnames": [":man_climbing_medium_skin_tone:"],
  48237. "category": "activity"
  48238. },
  48239. ":man_climbing_tone4:": {
  48240. "uc_base": "1f9d7-1f3fe-2642",
  48241. "uc_output": "1f9d7-1f3fe-200d-2642-fe0f",
  48242. "uc_match": "1f9d7-1f3fe-2642-fe0f",
  48243. "uc_greedy": "1f9d7-1f3fe-2642",
  48244. "shortnames": [":man_climbing_medium_dark_skin_tone:"],
  48245. "category": "activity"
  48246. },
  48247. ":man_climbing_tone5:": {
  48248. "uc_base": "1f9d7-1f3ff-2642",
  48249. "uc_output": "1f9d7-1f3ff-200d-2642-fe0f",
  48250. "uc_match": "1f9d7-1f3ff-2642-fe0f",
  48251. "uc_greedy": "1f9d7-1f3ff-2642",
  48252. "shortnames": [":man_climbing_dark_skin_tone:"],
  48253. "category": "activity"
  48254. },
  48255. ":man_construction_worker_tone1:": {
  48256. "uc_base": "1f477-1f3fb-2642",
  48257. "uc_output": "1f477-1f3fb-200d-2642-fe0f",
  48258. "uc_match": "1f477-1f3fb-2642-fe0f",
  48259. "uc_greedy": "1f477-1f3fb-2642",
  48260. "shortnames": [":man_construction_worker_light_skin_tone:"],
  48261. "category": "people"
  48262. },
  48263. ":man_construction_worker_tone2:": {
  48264. "uc_base": "1f477-1f3fc-2642",
  48265. "uc_output": "1f477-1f3fc-200d-2642-fe0f",
  48266. "uc_match": "1f477-1f3fc-2642-fe0f",
  48267. "uc_greedy": "1f477-1f3fc-2642",
  48268. "shortnames": [":man_construction_worker_medium_light_skin_tone:"],
  48269. "category": "people"
  48270. },
  48271. ":man_construction_worker_tone3:": {
  48272. "uc_base": "1f477-1f3fd-2642",
  48273. "uc_output": "1f477-1f3fd-200d-2642-fe0f",
  48274. "uc_match": "1f477-1f3fd-2642-fe0f",
  48275. "uc_greedy": "1f477-1f3fd-2642",
  48276. "shortnames": [":man_construction_worker_medium_skin_tone:"],
  48277. "category": "people"
  48278. },
  48279. ":man_construction_worker_tone4:": {
  48280. "uc_base": "1f477-1f3fe-2642",
  48281. "uc_output": "1f477-1f3fe-200d-2642-fe0f",
  48282. "uc_match": "1f477-1f3fe-2642-fe0f",
  48283. "uc_greedy": "1f477-1f3fe-2642",
  48284. "shortnames": [":man_construction_worker_medium_dark_skin_tone:"],
  48285. "category": "people"
  48286. },
  48287. ":man_construction_worker_tone5:": {
  48288. "uc_base": "1f477-1f3ff-2642",
  48289. "uc_output": "1f477-1f3ff-200d-2642-fe0f",
  48290. "uc_match": "1f477-1f3ff-2642-fe0f",
  48291. "uc_greedy": "1f477-1f3ff-2642",
  48292. "shortnames": [":man_construction_worker_dark_skin_tone:"],
  48293. "category": "people"
  48294. },
  48295. ":man_detective_tone1:": {
  48296. "uc_base": "1f575-1f3fb-2642",
  48297. "uc_output": "1f575-1f3fb-200d-2642-fe0f",
  48298. "uc_match": "1f575-fe0f-1f3fb-2642-fe0f",
  48299. "uc_greedy": "1f575-1f3fb-2642",
  48300. "shortnames": [":man_detective_light_skin_tone:"],
  48301. "category": "people"
  48302. },
  48303. ":man_detective_tone2:": {
  48304. "uc_base": "1f575-1f3fc-2642",
  48305. "uc_output": "1f575-1f3fc-200d-2642-fe0f",
  48306. "uc_match": "1f575-fe0f-1f3fc-2642-fe0f",
  48307. "uc_greedy": "1f575-1f3fc-2642",
  48308. "shortnames": [":man_detective_medium_light_skin_tone:"],
  48309. "category": "people"
  48310. },
  48311. ":man_detective_tone3:": {
  48312. "uc_base": "1f575-1f3fd-2642",
  48313. "uc_output": "1f575-1f3fd-200d-2642-fe0f",
  48314. "uc_match": "1f575-fe0f-1f3fd-2642-fe0f",
  48315. "uc_greedy": "1f575-1f3fd-2642",
  48316. "shortnames": [":man_detective_medium_skin_tone:"],
  48317. "category": "people"
  48318. },
  48319. ":man_detective_tone4:": {
  48320. "uc_base": "1f575-1f3fe-2642",
  48321. "uc_output": "1f575-1f3fe-200d-2642-fe0f",
  48322. "uc_match": "1f575-fe0f-1f3fe-2642-fe0f",
  48323. "uc_greedy": "1f575-1f3fe-2642",
  48324. "shortnames": [":man_detective_medium_dark_skin_tone:"],
  48325. "category": "people"
  48326. },
  48327. ":man_detective_tone5:": {
  48328. "uc_base": "1f575-1f3ff-2642",
  48329. "uc_output": "1f575-1f3ff-200d-2642-fe0f",
  48330. "uc_match": "1f575-fe0f-1f3ff-2642-fe0f",
  48331. "uc_greedy": "1f575-1f3ff-2642",
  48332. "shortnames": [":man_detective_dark_skin_tone:"],
  48333. "category": "people"
  48334. },
  48335. ":man_elf_tone1:": {
  48336. "uc_base": "1f9dd-1f3fb-2642",
  48337. "uc_output": "1f9dd-1f3fb-200d-2642-fe0f",
  48338. "uc_match": "1f9dd-1f3fb-2642-fe0f",
  48339. "uc_greedy": "1f9dd-1f3fb-2642",
  48340. "shortnames": [":man_elf_light_skin_tone:"],
  48341. "category": "people"
  48342. },
  48343. ":man_elf_tone2:": {
  48344. "uc_base": "1f9dd-1f3fc-2642",
  48345. "uc_output": "1f9dd-1f3fc-200d-2642-fe0f",
  48346. "uc_match": "1f9dd-1f3fc-2642-fe0f",
  48347. "uc_greedy": "1f9dd-1f3fc-2642",
  48348. "shortnames": [":man_elf_medium_light_skin_tone:"],
  48349. "category": "people"
  48350. },
  48351. ":man_elf_tone3:": {
  48352. "uc_base": "1f9dd-1f3fd-2642",
  48353. "uc_output": "1f9dd-1f3fd-200d-2642-fe0f",
  48354. "uc_match": "1f9dd-1f3fd-2642-fe0f",
  48355. "uc_greedy": "1f9dd-1f3fd-2642",
  48356. "shortnames": [":man_elf_medium_skin_tone:"],
  48357. "category": "people"
  48358. },
  48359. ":man_elf_tone4:": {
  48360. "uc_base": "1f9dd-1f3fe-2642",
  48361. "uc_output": "1f9dd-1f3fe-200d-2642-fe0f",
  48362. "uc_match": "1f9dd-1f3fe-2642-fe0f",
  48363. "uc_greedy": "1f9dd-1f3fe-2642",
  48364. "shortnames": [":man_elf_medium_dark_skin_tone:"],
  48365. "category": "people"
  48366. },
  48367. ":man_elf_tone5:": {
  48368. "uc_base": "1f9dd-1f3ff-2642",
  48369. "uc_output": "1f9dd-1f3ff-200d-2642-fe0f",
  48370. "uc_match": "1f9dd-1f3ff-2642-fe0f",
  48371. "uc_greedy": "1f9dd-1f3ff-2642",
  48372. "shortnames": [":man_elf_dark_skin_tone:"],
  48373. "category": "people"
  48374. },
  48375. ":man_facepalming_tone1:": {
  48376. "uc_base": "1f926-1f3fb-2642",
  48377. "uc_output": "1f926-1f3fb-200d-2642-fe0f",
  48378. "uc_match": "1f926-1f3fb-2642-fe0f",
  48379. "uc_greedy": "1f926-1f3fb-2642",
  48380. "shortnames": [":man_facepalming_light_skin_tone:"],
  48381. "category": "people"
  48382. },
  48383. ":man_facepalming_tone2:": {
  48384. "uc_base": "1f926-1f3fc-2642",
  48385. "uc_output": "1f926-1f3fc-200d-2642-fe0f",
  48386. "uc_match": "1f926-1f3fc-2642-fe0f",
  48387. "uc_greedy": "1f926-1f3fc-2642",
  48388. "shortnames": [":man_facepalming_medium_light_skin_tone:"],
  48389. "category": "people"
  48390. },
  48391. ":man_facepalming_tone3:": {
  48392. "uc_base": "1f926-1f3fd-2642",
  48393. "uc_output": "1f926-1f3fd-200d-2642-fe0f",
  48394. "uc_match": "1f926-1f3fd-2642-fe0f",
  48395. "uc_greedy": "1f926-1f3fd-2642",
  48396. "shortnames": [":man_facepalming_medium_skin_tone:"],
  48397. "category": "people"
  48398. },
  48399. ":man_facepalming_tone4:": {
  48400. "uc_base": "1f926-1f3fe-2642",
  48401. "uc_output": "1f926-1f3fe-200d-2642-fe0f",
  48402. "uc_match": "1f926-1f3fe-2642-fe0f",
  48403. "uc_greedy": "1f926-1f3fe-2642",
  48404. "shortnames": [":man_facepalming_medium_dark_skin_tone:"],
  48405. "category": "people"
  48406. },
  48407. ":man_facepalming_tone5:": {
  48408. "uc_base": "1f926-1f3ff-2642",
  48409. "uc_output": "1f926-1f3ff-200d-2642-fe0f",
  48410. "uc_match": "1f926-1f3ff-2642-fe0f",
  48411. "uc_greedy": "1f926-1f3ff-2642",
  48412. "shortnames": [":man_facepalming_dark_skin_tone:"],
  48413. "category": "people"
  48414. },
  48415. ":man_fairy_tone1:": {
  48416. "uc_base": "1f9da-1f3fb-2642",
  48417. "uc_output": "1f9da-1f3fb-200d-2642-fe0f",
  48418. "uc_match": "1f9da-1f3fb-2642-fe0f",
  48419. "uc_greedy": "1f9da-1f3fb-2642",
  48420. "shortnames": [":man_fairy_light_skin_tone:"],
  48421. "category": "people"
  48422. },
  48423. ":man_fairy_tone2:": {
  48424. "uc_base": "1f9da-1f3fc-2642",
  48425. "uc_output": "1f9da-1f3fc-200d-2642-fe0f",
  48426. "uc_match": "1f9da-1f3fc-2642-fe0f",
  48427. "uc_greedy": "1f9da-1f3fc-2642",
  48428. "shortnames": [":man_fairy_medium_light_skin_tone:"],
  48429. "category": "people"
  48430. },
  48431. ":man_fairy_tone3:": {
  48432. "uc_base": "1f9da-1f3fd-2642",
  48433. "uc_output": "1f9da-1f3fd-200d-2642-fe0f",
  48434. "uc_match": "1f9da-1f3fd-2642-fe0f",
  48435. "uc_greedy": "1f9da-1f3fd-2642",
  48436. "shortnames": [":man_fairy_medium_skin_tone:"],
  48437. "category": "people"
  48438. },
  48439. ":man_fairy_tone4:": {
  48440. "uc_base": "1f9da-1f3fe-2642",
  48441. "uc_output": "1f9da-1f3fe-200d-2642-fe0f",
  48442. "uc_match": "1f9da-1f3fe-2642-fe0f",
  48443. "uc_greedy": "1f9da-1f3fe-2642",
  48444. "shortnames": [":man_fairy_medium_dark_skin_tone:"],
  48445. "category": "people"
  48446. },
  48447. ":man_fairy_tone5:": {
  48448. "uc_base": "1f9da-1f3ff-2642",
  48449. "uc_output": "1f9da-1f3ff-200d-2642-fe0f",
  48450. "uc_match": "1f9da-1f3ff-2642-fe0f",
  48451. "uc_greedy": "1f9da-1f3ff-2642",
  48452. "shortnames": [":man_fairy_dark_skin_tone:"],
  48453. "category": "people"
  48454. },
  48455. ":man_frowning_tone1:": {
  48456. "uc_base": "1f64d-1f3fb-2642",
  48457. "uc_output": "1f64d-1f3fb-200d-2642-fe0f",
  48458. "uc_match": "1f64d-1f3fb-2642-fe0f",
  48459. "uc_greedy": "1f64d-1f3fb-2642",
  48460. "shortnames": [":man_frowning_light_skin_tone:"],
  48461. "category": "people"
  48462. },
  48463. ":man_frowning_tone2:": {
  48464. "uc_base": "1f64d-1f3fc-2642",
  48465. "uc_output": "1f64d-1f3fc-200d-2642-fe0f",
  48466. "uc_match": "1f64d-1f3fc-2642-fe0f",
  48467. "uc_greedy": "1f64d-1f3fc-2642",
  48468. "shortnames": [":man_frowning_medium_light_skin_tone:"],
  48469. "category": "people"
  48470. },
  48471. ":man_frowning_tone3:": {
  48472. "uc_base": "1f64d-1f3fd-2642",
  48473. "uc_output": "1f64d-1f3fd-200d-2642-fe0f",
  48474. "uc_match": "1f64d-1f3fd-2642-fe0f",
  48475. "uc_greedy": "1f64d-1f3fd-2642",
  48476. "shortnames": [":man_frowning_medium_skin_tone:"],
  48477. "category": "people"
  48478. },
  48479. ":man_frowning_tone4:": {
  48480. "uc_base": "1f64d-1f3fe-2642",
  48481. "uc_output": "1f64d-1f3fe-200d-2642-fe0f",
  48482. "uc_match": "1f64d-1f3fe-2642-fe0f",
  48483. "uc_greedy": "1f64d-1f3fe-2642",
  48484. "shortnames": [":man_frowning_medium_dark_skin_tone:"],
  48485. "category": "people"
  48486. },
  48487. ":man_frowning_tone5:": {
  48488. "uc_base": "1f64d-1f3ff-2642",
  48489. "uc_output": "1f64d-1f3ff-200d-2642-fe0f",
  48490. "uc_match": "1f64d-1f3ff-2642-fe0f",
  48491. "uc_greedy": "1f64d-1f3ff-2642",
  48492. "shortnames": [":man_frowning_dark_skin_tone:"],
  48493. "category": "people"
  48494. },
  48495. ":man_gesturing_no_tone1:": {
  48496. "uc_base": "1f645-1f3fb-2642",
  48497. "uc_output": "1f645-1f3fb-200d-2642-fe0f",
  48498. "uc_match": "1f645-1f3fb-2642-fe0f",
  48499. "uc_greedy": "1f645-1f3fb-2642",
  48500. "shortnames": [":man_gesturing_no_light_skin_tone:"],
  48501. "category": "people"
  48502. },
  48503. ":man_gesturing_no_tone2:": {
  48504. "uc_base": "1f645-1f3fc-2642",
  48505. "uc_output": "1f645-1f3fc-200d-2642-fe0f",
  48506. "uc_match": "1f645-1f3fc-2642-fe0f",
  48507. "uc_greedy": "1f645-1f3fc-2642",
  48508. "shortnames": [":man_gesturing_no_medium_light_skin_tone:"],
  48509. "category": "people"
  48510. },
  48511. ":man_gesturing_no_tone3:": {
  48512. "uc_base": "1f645-1f3fd-2642",
  48513. "uc_output": "1f645-1f3fd-200d-2642-fe0f",
  48514. "uc_match": "1f645-1f3fd-2642-fe0f",
  48515. "uc_greedy": "1f645-1f3fd-2642",
  48516. "shortnames": [":man_gesturing_no_medium_skin_tone:"],
  48517. "category": "people"
  48518. },
  48519. ":man_gesturing_no_tone4:": {
  48520. "uc_base": "1f645-1f3fe-2642",
  48521. "uc_output": "1f645-1f3fe-200d-2642-fe0f",
  48522. "uc_match": "1f645-1f3fe-2642-fe0f",
  48523. "uc_greedy": "1f645-1f3fe-2642",
  48524. "shortnames": [":man_gesturing_no_medium_dark_skin_tone:"],
  48525. "category": "people"
  48526. },
  48527. ":man_gesturing_no_tone5:": {
  48528. "uc_base": "1f645-1f3ff-2642",
  48529. "uc_output": "1f645-1f3ff-200d-2642-fe0f",
  48530. "uc_match": "1f645-1f3ff-2642-fe0f",
  48531. "uc_greedy": "1f645-1f3ff-2642",
  48532. "shortnames": [":man_gesturing_no_dark_skin_tone:"],
  48533. "category": "people"
  48534. },
  48535. ":man_gesturing_ok_tone1:": {
  48536. "uc_base": "1f646-1f3fb-2642",
  48537. "uc_output": "1f646-1f3fb-200d-2642-fe0f",
  48538. "uc_match": "1f646-1f3fb-2642-fe0f",
  48539. "uc_greedy": "1f646-1f3fb-2642",
  48540. "shortnames": [":man_gesturing_ok_light_skin_tone:"],
  48541. "category": "people"
  48542. },
  48543. ":man_gesturing_ok_tone2:": {
  48544. "uc_base": "1f646-1f3fc-2642",
  48545. "uc_output": "1f646-1f3fc-200d-2642-fe0f",
  48546. "uc_match": "1f646-1f3fc-2642-fe0f",
  48547. "uc_greedy": "1f646-1f3fc-2642",
  48548. "shortnames": [":man_gesturing_ok_medium_light_skin_tone:"],
  48549. "category": "people"
  48550. },
  48551. ":man_gesturing_ok_tone3:": {
  48552. "uc_base": "1f646-1f3fd-2642",
  48553. "uc_output": "1f646-1f3fd-200d-2642-fe0f",
  48554. "uc_match": "1f646-1f3fd-2642-fe0f",
  48555. "uc_greedy": "1f646-1f3fd-2642",
  48556. "shortnames": [":man_gesturing_ok_medium_skin_tone:"],
  48557. "category": "people"
  48558. },
  48559. ":man_gesturing_ok_tone4:": {
  48560. "uc_base": "1f646-1f3fe-2642",
  48561. "uc_output": "1f646-1f3fe-200d-2642-fe0f",
  48562. "uc_match": "1f646-1f3fe-2642-fe0f",
  48563. "uc_greedy": "1f646-1f3fe-2642",
  48564. "shortnames": [":man_gesturing_ok_medium_dark_skin_tone:"],
  48565. "category": "people"
  48566. },
  48567. ":man_gesturing_ok_tone5:": {
  48568. "uc_base": "1f646-1f3ff-2642",
  48569. "uc_output": "1f646-1f3ff-200d-2642-fe0f",
  48570. "uc_match": "1f646-1f3ff-2642-fe0f",
  48571. "uc_greedy": "1f646-1f3ff-2642",
  48572. "shortnames": [":man_gesturing_ok_dark_skin_tone:"],
  48573. "category": "people"
  48574. },
  48575. ":man_getting_face_massage_tone1:": {
  48576. "uc_base": "1f486-1f3fb-2642",
  48577. "uc_output": "1f486-1f3fb-200d-2642-fe0f",
  48578. "uc_match": "1f486-1f3fb-2642-fe0f",
  48579. "uc_greedy": "1f486-1f3fb-2642",
  48580. "shortnames": [":man_getting_face_massage_light_skin_tone:"],
  48581. "category": "people"
  48582. },
  48583. ":man_getting_face_massage_tone2:": {
  48584. "uc_base": "1f486-1f3fc-2642",
  48585. "uc_output": "1f486-1f3fc-200d-2642-fe0f",
  48586. "uc_match": "1f486-1f3fc-2642-fe0f",
  48587. "uc_greedy": "1f486-1f3fc-2642",
  48588. "shortnames": [":man_getting_face_massage_medium_light_skin_tone:"],
  48589. "category": "people"
  48590. },
  48591. ":man_getting_face_massage_tone3:": {
  48592. "uc_base": "1f486-1f3fd-2642",
  48593. "uc_output": "1f486-1f3fd-200d-2642-fe0f",
  48594. "uc_match": "1f486-1f3fd-2642-fe0f",
  48595. "uc_greedy": "1f486-1f3fd-2642",
  48596. "shortnames": [":man_getting_face_massage_medium_skin_tone:"],
  48597. "category": "people"
  48598. },
  48599. ":man_getting_face_massage_tone4:": {
  48600. "uc_base": "1f486-1f3fe-2642",
  48601. "uc_output": "1f486-1f3fe-200d-2642-fe0f",
  48602. "uc_match": "1f486-1f3fe-2642-fe0f",
  48603. "uc_greedy": "1f486-1f3fe-2642",
  48604. "shortnames": [":man_getting_face_massage_medium_dark_skin_tone:"],
  48605. "category": "people"
  48606. },
  48607. ":man_getting_face_massage_tone5:": {
  48608. "uc_base": "1f486-1f3ff-2642",
  48609. "uc_output": "1f486-1f3ff-200d-2642-fe0f",
  48610. "uc_match": "1f486-1f3ff-2642-fe0f",
  48611. "uc_greedy": "1f486-1f3ff-2642",
  48612. "shortnames": [":man_getting_face_massage_dark_skin_tone:"],
  48613. "category": "people"
  48614. },
  48615. ":man_getting_haircut_tone1:": {
  48616. "uc_base": "1f487-1f3fb-2642",
  48617. "uc_output": "1f487-1f3fb-200d-2642-fe0f",
  48618. "uc_match": "1f487-1f3fb-2642-fe0f",
  48619. "uc_greedy": "1f487-1f3fb-2642",
  48620. "shortnames": [":man_getting_haircut_light_skin_tone:"],
  48621. "category": "people"
  48622. },
  48623. ":man_getting_haircut_tone2:": {
  48624. "uc_base": "1f487-1f3fc-2642",
  48625. "uc_output": "1f487-1f3fc-200d-2642-fe0f",
  48626. "uc_match": "1f487-1f3fc-2642-fe0f",
  48627. "uc_greedy": "1f487-1f3fc-2642",
  48628. "shortnames": [":man_getting_haircut_medium_light_skin_tone:"],
  48629. "category": "people"
  48630. },
  48631. ":man_getting_haircut_tone3:": {
  48632. "uc_base": "1f487-1f3fd-2642",
  48633. "uc_output": "1f487-1f3fd-200d-2642-fe0f",
  48634. "uc_match": "1f487-1f3fd-2642-fe0f",
  48635. "uc_greedy": "1f487-1f3fd-2642",
  48636. "shortnames": [":man_getting_haircut_medium_skin_tone:"],
  48637. "category": "people"
  48638. },
  48639. ":man_getting_haircut_tone4:": {
  48640. "uc_base": "1f487-1f3fe-2642",
  48641. "uc_output": "1f487-1f3fe-200d-2642-fe0f",
  48642. "uc_match": "1f487-1f3fe-2642-fe0f",
  48643. "uc_greedy": "1f487-1f3fe-2642",
  48644. "shortnames": [":man_getting_haircut_medium_dark_skin_tone:"],
  48645. "category": "people"
  48646. },
  48647. ":man_getting_haircut_tone5:": {
  48648. "uc_base": "1f487-1f3ff-2642",
  48649. "uc_output": "1f487-1f3ff-200d-2642-fe0f",
  48650. "uc_match": "1f487-1f3ff-2642-fe0f",
  48651. "uc_greedy": "1f487-1f3ff-2642",
  48652. "shortnames": [":man_getting_haircut_dark_skin_tone:"],
  48653. "category": "people"
  48654. },
  48655. ":man_golfing_tone1:": {
  48656. "uc_base": "1f3cc-1f3fb-2642",
  48657. "uc_output": "1f3cc-1f3fb-200d-2642-fe0f",
  48658. "uc_match": "1f3cc-fe0f-1f3fb-2642-fe0f",
  48659. "uc_greedy": "1f3cc-1f3fb-2642",
  48660. "shortnames": [":man_golfing_light_skin_tone:"],
  48661. "category": "activity"
  48662. },
  48663. ":man_golfing_tone2:": {
  48664. "uc_base": "1f3cc-1f3fc-2642",
  48665. "uc_output": "1f3cc-1f3fc-200d-2642-fe0f",
  48666. "uc_match": "1f3cc-fe0f-1f3fc-2642-fe0f",
  48667. "uc_greedy": "1f3cc-1f3fc-2642",
  48668. "shortnames": [":man_golfing_medium_light_skin_tone:"],
  48669. "category": "activity"
  48670. },
  48671. ":man_golfing_tone3:": {
  48672. "uc_base": "1f3cc-1f3fd-2642",
  48673. "uc_output": "1f3cc-1f3fd-200d-2642-fe0f",
  48674. "uc_match": "1f3cc-fe0f-1f3fd-2642-fe0f",
  48675. "uc_greedy": "1f3cc-1f3fd-2642",
  48676. "shortnames": [":man_golfing_medium_skin_tone:"],
  48677. "category": "activity"
  48678. },
  48679. ":man_golfing_tone4:": {
  48680. "uc_base": "1f3cc-1f3fe-2642",
  48681. "uc_output": "1f3cc-1f3fe-200d-2642-fe0f",
  48682. "uc_match": "1f3cc-fe0f-1f3fe-2642-fe0f",
  48683. "uc_greedy": "1f3cc-1f3fe-2642",
  48684. "shortnames": [":man_golfing_medium_dark_skin_tone:"],
  48685. "category": "activity"
  48686. },
  48687. ":man_golfing_tone5:": {
  48688. "uc_base": "1f3cc-1f3ff-2642",
  48689. "uc_output": "1f3cc-1f3ff-200d-2642-fe0f",
  48690. "uc_match": "1f3cc-fe0f-1f3ff-2642-fe0f",
  48691. "uc_greedy": "1f3cc-1f3ff-2642",
  48692. "shortnames": [":man_golfing_dark_skin_tone:"],
  48693. "category": "activity"
  48694. },
  48695. ":man_guard_tone1:": {
  48696. "uc_base": "1f482-1f3fb-2642",
  48697. "uc_output": "1f482-1f3fb-200d-2642-fe0f",
  48698. "uc_match": "1f482-1f3fb-2642-fe0f",
  48699. "uc_greedy": "1f482-1f3fb-2642",
  48700. "shortnames": [":man_guard_light_skin_tone:"],
  48701. "category": "people"
  48702. },
  48703. ":man_guard_tone2:": {
  48704. "uc_base": "1f482-1f3fc-2642",
  48705. "uc_output": "1f482-1f3fc-200d-2642-fe0f",
  48706. "uc_match": "1f482-1f3fc-2642-fe0f",
  48707. "uc_greedy": "1f482-1f3fc-2642",
  48708. "shortnames": [":man_guard_medium_light_skin_tone:"],
  48709. "category": "people"
  48710. },
  48711. ":man_guard_tone3:": {
  48712. "uc_base": "1f482-1f3fd-2642",
  48713. "uc_output": "1f482-1f3fd-200d-2642-fe0f",
  48714. "uc_match": "1f482-1f3fd-2642-fe0f",
  48715. "uc_greedy": "1f482-1f3fd-2642",
  48716. "shortnames": [":man_guard_medium_skin_tone:"],
  48717. "category": "people"
  48718. },
  48719. ":man_guard_tone4:": {
  48720. "uc_base": "1f482-1f3fe-2642",
  48721. "uc_output": "1f482-1f3fe-200d-2642-fe0f",
  48722. "uc_match": "1f482-1f3fe-2642-fe0f",
  48723. "uc_greedy": "1f482-1f3fe-2642",
  48724. "shortnames": [":man_guard_medium_dark_skin_tone:"],
  48725. "category": "people"
  48726. },
  48727. ":man_guard_tone5:": {
  48728. "uc_base": "1f482-1f3ff-2642",
  48729. "uc_output": "1f482-1f3ff-200d-2642-fe0f",
  48730. "uc_match": "1f482-1f3ff-2642-fe0f",
  48731. "uc_greedy": "1f482-1f3ff-2642",
  48732. "shortnames": [":man_guard_dark_skin_tone:"],
  48733. "category": "people"
  48734. },
  48735. ":man_health_worker_tone1:": {
  48736. "uc_base": "1f468-1f3fb-2695",
  48737. "uc_output": "1f468-1f3fb-200d-2695-fe0f",
  48738. "uc_match": "1f468-1f3fb-2695-fe0f",
  48739. "uc_greedy": "1f468-1f3fb-2695",
  48740. "shortnames": [":man_health_worker_light_skin_tone:"],
  48741. "category": "people"
  48742. },
  48743. ":man_health_worker_tone2:": {
  48744. "uc_base": "1f468-1f3fc-2695",
  48745. "uc_output": "1f468-1f3fc-200d-2695-fe0f",
  48746. "uc_match": "1f468-1f3fc-2695-fe0f",
  48747. "uc_greedy": "1f468-1f3fc-2695",
  48748. "shortnames": [":man_health_worker_medium_light_skin_tone:"],
  48749. "category": "people"
  48750. },
  48751. ":man_health_worker_tone3:": {
  48752. "uc_base": "1f468-1f3fd-2695",
  48753. "uc_output": "1f468-1f3fd-200d-2695-fe0f",
  48754. "uc_match": "1f468-1f3fd-2695-fe0f",
  48755. "uc_greedy": "1f468-1f3fd-2695",
  48756. "shortnames": [":man_health_worker_medium_skin_tone:"],
  48757. "category": "people"
  48758. },
  48759. ":man_health_worker_tone4:": {
  48760. "uc_base": "1f468-1f3fe-2695",
  48761. "uc_output": "1f468-1f3fe-200d-2695-fe0f",
  48762. "uc_match": "1f468-1f3fe-2695-fe0f",
  48763. "uc_greedy": "1f468-1f3fe-2695",
  48764. "shortnames": [":man_health_worker_medium_dark_skin_tone:"],
  48765. "category": "people"
  48766. },
  48767. ":man_health_worker_tone5:": {
  48768. "uc_base": "1f468-1f3ff-2695",
  48769. "uc_output": "1f468-1f3ff-200d-2695-fe0f",
  48770. "uc_match": "1f468-1f3ff-2695-fe0f",
  48771. "uc_greedy": "1f468-1f3ff-2695",
  48772. "shortnames": [":man_health_worker_dark_skin_tone:"],
  48773. "category": "people"
  48774. },
  48775. ":man_in_lotus_position_tone1:": {
  48776. "uc_base": "1f9d8-1f3fb-2642",
  48777. "uc_output": "1f9d8-1f3fb-200d-2642-fe0f",
  48778. "uc_match": "1f9d8-1f3fb-2642-fe0f",
  48779. "uc_greedy": "1f9d8-1f3fb-2642",
  48780. "shortnames": [":man_in_lotus_position_light_skin_tone:"],
  48781. "category": "activity"
  48782. },
  48783. ":man_in_lotus_position_tone2:": {
  48784. "uc_base": "1f9d8-1f3fc-2642",
  48785. "uc_output": "1f9d8-1f3fc-200d-2642-fe0f",
  48786. "uc_match": "1f9d8-1f3fc-2642-fe0f",
  48787. "uc_greedy": "1f9d8-1f3fc-2642",
  48788. "shortnames": [":man_in_lotus_position_medium_light_skin_tone:"],
  48789. "category": "activity"
  48790. },
  48791. ":man_in_lotus_position_tone3:": {
  48792. "uc_base": "1f9d8-1f3fd-2642",
  48793. "uc_output": "1f9d8-1f3fd-200d-2642-fe0f",
  48794. "uc_match": "1f9d8-1f3fd-2642-fe0f",
  48795. "uc_greedy": "1f9d8-1f3fd-2642",
  48796. "shortnames": [":man_in_lotus_position_medium_skin_tone:"],
  48797. "category": "activity"
  48798. },
  48799. ":man_in_lotus_position_tone4:": {
  48800. "uc_base": "1f9d8-1f3fe-2642",
  48801. "uc_output": "1f9d8-1f3fe-200d-2642-fe0f",
  48802. "uc_match": "1f9d8-1f3fe-2642-fe0f",
  48803. "uc_greedy": "1f9d8-1f3fe-2642",
  48804. "shortnames": [":man_in_lotus_position_medium_dark_skin_tone:"],
  48805. "category": "activity"
  48806. },
  48807. ":man_in_lotus_position_tone5:": {
  48808. "uc_base": "1f9d8-1f3ff-2642",
  48809. "uc_output": "1f9d8-1f3ff-200d-2642-fe0f",
  48810. "uc_match": "1f9d8-1f3ff-2642-fe0f",
  48811. "uc_greedy": "1f9d8-1f3ff-2642",
  48812. "shortnames": [":man_in_lotus_position_dark_skin_tone:"],
  48813. "category": "activity"
  48814. },
  48815. ":man_in_steamy_room_tone1:": {
  48816. "uc_base": "1f9d6-1f3fb-2642",
  48817. "uc_output": "1f9d6-1f3fb-200d-2642-fe0f",
  48818. "uc_match": "1f9d6-1f3fb-2642-fe0f",
  48819. "uc_greedy": "1f9d6-1f3fb-2642",
  48820. "shortnames": [":man_in_steamy_room_light_skin_tone:"],
  48821. "category": "people"
  48822. },
  48823. ":man_in_steamy_room_tone2:": {
  48824. "uc_base": "1f9d6-1f3fc-2642",
  48825. "uc_output": "1f9d6-1f3fc-200d-2642-fe0f",
  48826. "uc_match": "1f9d6-1f3fc-2642-fe0f",
  48827. "uc_greedy": "1f9d6-1f3fc-2642",
  48828. "shortnames": [":man_in_steamy_room_medium_light_skin_tone:"],
  48829. "category": "people"
  48830. },
  48831. ":man_in_steamy_room_tone3:": {
  48832. "uc_base": "1f9d6-1f3fd-2642",
  48833. "uc_output": "1f9d6-1f3fd-200d-2642-fe0f",
  48834. "uc_match": "1f9d6-1f3fd-2642-fe0f",
  48835. "uc_greedy": "1f9d6-1f3fd-2642",
  48836. "shortnames": [":man_in_steamy_room_medium_skin_tone:"],
  48837. "category": "people"
  48838. },
  48839. ":man_in_steamy_room_tone4:": {
  48840. "uc_base": "1f9d6-1f3fe-2642",
  48841. "uc_output": "1f9d6-1f3fe-200d-2642-fe0f",
  48842. "uc_match": "1f9d6-1f3fe-2642-fe0f",
  48843. "uc_greedy": "1f9d6-1f3fe-2642",
  48844. "shortnames": [":man_in_steamy_room_medium_dark_skin_tone:"],
  48845. "category": "people"
  48846. },
  48847. ":man_in_steamy_room_tone5:": {
  48848. "uc_base": "1f9d6-1f3ff-2642",
  48849. "uc_output": "1f9d6-1f3ff-200d-2642-fe0f",
  48850. "uc_match": "1f9d6-1f3ff-2642-fe0f",
  48851. "uc_greedy": "1f9d6-1f3ff-2642",
  48852. "shortnames": [":man_in_steamy_room_dark_skin_tone:"],
  48853. "category": "people"
  48854. },
  48855. ":man_judge_tone1:": {
  48856. "uc_base": "1f468-1f3fb-2696",
  48857. "uc_output": "1f468-1f3fb-200d-2696-fe0f",
  48858. "uc_match": "1f468-1f3fb-2696-fe0f",
  48859. "uc_greedy": "1f468-1f3fb-2696",
  48860. "shortnames": [":man_judge_light_skin_tone:"],
  48861. "category": "people"
  48862. },
  48863. ":man_judge_tone2:": {
  48864. "uc_base": "1f468-1f3fc-2696",
  48865. "uc_output": "1f468-1f3fc-200d-2696-fe0f",
  48866. "uc_match": "1f468-1f3fc-2696-fe0f",
  48867. "uc_greedy": "1f468-1f3fc-2696",
  48868. "shortnames": [":man_judge_medium_light_skin_tone:"],
  48869. "category": "people"
  48870. },
  48871. ":man_judge_tone3:": {
  48872. "uc_base": "1f468-1f3fd-2696",
  48873. "uc_output": "1f468-1f3fd-200d-2696-fe0f",
  48874. "uc_match": "1f468-1f3fd-2696-fe0f",
  48875. "uc_greedy": "1f468-1f3fd-2696",
  48876. "shortnames": [":man_judge_medium_skin_tone:"],
  48877. "category": "people"
  48878. },
  48879. ":man_judge_tone4:": {
  48880. "uc_base": "1f468-1f3fe-2696",
  48881. "uc_output": "1f468-1f3fe-200d-2696-fe0f",
  48882. "uc_match": "1f468-1f3fe-2696-fe0f",
  48883. "uc_greedy": "1f468-1f3fe-2696",
  48884. "shortnames": [":man_judge_medium_dark_skin_tone:"],
  48885. "category": "people"
  48886. },
  48887. ":man_judge_tone5:": {
  48888. "uc_base": "1f468-1f3ff-2696",
  48889. "uc_output": "1f468-1f3ff-200d-2696-fe0f",
  48890. "uc_match": "1f468-1f3ff-2696-fe0f",
  48891. "uc_greedy": "1f468-1f3ff-2696",
  48892. "shortnames": [":man_judge_dark_skin_tone:"],
  48893. "category": "people"
  48894. },
  48895. ":man_juggling_tone1:": {
  48896. "uc_base": "1f939-1f3fb-2642",
  48897. "uc_output": "1f939-1f3fb-200d-2642-fe0f",
  48898. "uc_match": "1f939-1f3fb-2642-fe0f",
  48899. "uc_greedy": "1f939-1f3fb-2642",
  48900. "shortnames": [":man_juggling_light_skin_tone:"],
  48901. "category": "activity"
  48902. },
  48903. ":man_juggling_tone2:": {
  48904. "uc_base": "1f939-1f3fc-2642",
  48905. "uc_output": "1f939-1f3fc-200d-2642-fe0f",
  48906. "uc_match": "1f939-1f3fc-2642-fe0f",
  48907. "uc_greedy": "1f939-1f3fc-2642",
  48908. "shortnames": [":man_juggling_medium_light_skin_tone:"],
  48909. "category": "activity"
  48910. },
  48911. ":man_juggling_tone3:": {
  48912. "uc_base": "1f939-1f3fd-2642",
  48913. "uc_output": "1f939-1f3fd-200d-2642-fe0f",
  48914. "uc_match": "1f939-1f3fd-2642-fe0f",
  48915. "uc_greedy": "1f939-1f3fd-2642",
  48916. "shortnames": [":man_juggling_medium_skin_tone:"],
  48917. "category": "activity"
  48918. },
  48919. ":man_juggling_tone4:": {
  48920. "uc_base": "1f939-1f3fe-2642",
  48921. "uc_output": "1f939-1f3fe-200d-2642-fe0f",
  48922. "uc_match": "1f939-1f3fe-2642-fe0f",
  48923. "uc_greedy": "1f939-1f3fe-2642",
  48924. "shortnames": [":man_juggling_medium_dark_skin_tone:"],
  48925. "category": "activity"
  48926. },
  48927. ":man_juggling_tone5:": {
  48928. "uc_base": "1f939-1f3ff-2642",
  48929. "uc_output": "1f939-1f3ff-200d-2642-fe0f",
  48930. "uc_match": "1f939-1f3ff-2642-fe0f",
  48931. "uc_greedy": "1f939-1f3ff-2642",
  48932. "shortnames": [":man_juggling_dark_skin_tone:"],
  48933. "category": "activity"
  48934. },
  48935. ":man_lifting_weights_tone1:": {
  48936. "uc_base": "1f3cb-1f3fb-2642",
  48937. "uc_output": "1f3cb-1f3fb-200d-2642-fe0f",
  48938. "uc_match": "1f3cb-fe0f-1f3fb-2642-fe0f",
  48939. "uc_greedy": "1f3cb-1f3fb-2642",
  48940. "shortnames": [":man_lifting_weights_light_skin_tone:"],
  48941. "category": "activity"
  48942. },
  48943. ":man_lifting_weights_tone2:": {
  48944. "uc_base": "1f3cb-1f3fc-2642",
  48945. "uc_output": "1f3cb-1f3fc-200d-2642-fe0f",
  48946. "uc_match": "1f3cb-fe0f-1f3fc-2642-fe0f",
  48947. "uc_greedy": "1f3cb-1f3fc-2642",
  48948. "shortnames": [":man_lifting_weights_medium_light_skin_tone:"],
  48949. "category": "activity"
  48950. },
  48951. ":man_lifting_weights_tone3:": {
  48952. "uc_base": "1f3cb-1f3fd-2642",
  48953. "uc_output": "1f3cb-1f3fd-200d-2642-fe0f",
  48954. "uc_match": "1f3cb-fe0f-1f3fd-2642-fe0f",
  48955. "uc_greedy": "1f3cb-1f3fd-2642",
  48956. "shortnames": [":man_lifting_weights_medium_skin_tone:"],
  48957. "category": "activity"
  48958. },
  48959. ":man_lifting_weights_tone4:": {
  48960. "uc_base": "1f3cb-1f3fe-2642",
  48961. "uc_output": "1f3cb-1f3fe-200d-2642-fe0f",
  48962. "uc_match": "1f3cb-fe0f-1f3fe-2642-fe0f",
  48963. "uc_greedy": "1f3cb-1f3fe-2642",
  48964. "shortnames": [":man_lifting_weights_medium_dark_skin_tone:"],
  48965. "category": "activity"
  48966. },
  48967. ":man_lifting_weights_tone5:": {
  48968. "uc_base": "1f3cb-1f3ff-2642",
  48969. "uc_output": "1f3cb-1f3ff-200d-2642-fe0f",
  48970. "uc_match": "1f3cb-fe0f-1f3ff-2642-fe0f",
  48971. "uc_greedy": "1f3cb-1f3ff-2642",
  48972. "shortnames": [":man_lifting_weights_dark_skin_tone:"],
  48973. "category": "activity"
  48974. },
  48975. ":man_mage_tone1:": {
  48976. "uc_base": "1f9d9-1f3fb-2642",
  48977. "uc_output": "1f9d9-1f3fb-200d-2642-fe0f",
  48978. "uc_match": "1f9d9-1f3fb-2642-fe0f",
  48979. "uc_greedy": "1f9d9-1f3fb-2642",
  48980. "shortnames": [":man_mage_light_skin_tone:"],
  48981. "category": "people"
  48982. },
  48983. ":man_mage_tone2:": {
  48984. "uc_base": "1f9d9-1f3fc-2642",
  48985. "uc_output": "1f9d9-1f3fc-200d-2642-fe0f",
  48986. "uc_match": "1f9d9-1f3fc-2642-fe0f",
  48987. "uc_greedy": "1f9d9-1f3fc-2642",
  48988. "shortnames": [":man_mage_medium_light_skin_tone:"],
  48989. "category": "people"
  48990. },
  48991. ":man_mage_tone3:": {
  48992. "uc_base": "1f9d9-1f3fd-2642",
  48993. "uc_output": "1f9d9-1f3fd-200d-2642-fe0f",
  48994. "uc_match": "1f9d9-1f3fd-2642-fe0f",
  48995. "uc_greedy": "1f9d9-1f3fd-2642",
  48996. "shortnames": [":man_mage_medium_skin_tone:"],
  48997. "category": "people"
  48998. },
  48999. ":man_mage_tone4:": {
  49000. "uc_base": "1f9d9-1f3fe-2642",
  49001. "uc_output": "1f9d9-1f3fe-200d-2642-fe0f",
  49002. "uc_match": "1f9d9-1f3fe-2642-fe0f",
  49003. "uc_greedy": "1f9d9-1f3fe-2642",
  49004. "shortnames": [":man_mage_medium_dark_skin_tone:"],
  49005. "category": "people"
  49006. },
  49007. ":man_mage_tone5:": {
  49008. "uc_base": "1f9d9-1f3ff-2642",
  49009. "uc_output": "1f9d9-1f3ff-200d-2642-fe0f",
  49010. "uc_match": "1f9d9-1f3ff-2642-fe0f",
  49011. "uc_greedy": "1f9d9-1f3ff-2642",
  49012. "shortnames": [":man_mage_dark_skin_tone:"],
  49013. "category": "people"
  49014. },
  49015. ":man_mountain_biking_tone1:": {
  49016. "uc_base": "1f6b5-1f3fb-2642",
  49017. "uc_output": "1f6b5-1f3fb-200d-2642-fe0f",
  49018. "uc_match": "1f6b5-1f3fb-2642-fe0f",
  49019. "uc_greedy": "1f6b5-1f3fb-2642",
  49020. "shortnames": [":man_mountain_biking_light_skin_tone:"],
  49021. "category": "activity"
  49022. },
  49023. ":man_mountain_biking_tone2:": {
  49024. "uc_base": "1f6b5-1f3fc-2642",
  49025. "uc_output": "1f6b5-1f3fc-200d-2642-fe0f",
  49026. "uc_match": "1f6b5-1f3fc-2642-fe0f",
  49027. "uc_greedy": "1f6b5-1f3fc-2642",
  49028. "shortnames": [":man_mountain_biking_medium_light_skin_tone:"],
  49029. "category": "activity"
  49030. },
  49031. ":man_mountain_biking_tone3:": {
  49032. "uc_base": "1f6b5-1f3fd-2642",
  49033. "uc_output": "1f6b5-1f3fd-200d-2642-fe0f",
  49034. "uc_match": "1f6b5-1f3fd-2642-fe0f",
  49035. "uc_greedy": "1f6b5-1f3fd-2642",
  49036. "shortnames": [":man_mountain_biking_medium_skin_tone:"],
  49037. "category": "activity"
  49038. },
  49039. ":man_mountain_biking_tone4:": {
  49040. "uc_base": "1f6b5-1f3fe-2642",
  49041. "uc_output": "1f6b5-1f3fe-200d-2642-fe0f",
  49042. "uc_match": "1f6b5-1f3fe-2642-fe0f",
  49043. "uc_greedy": "1f6b5-1f3fe-2642",
  49044. "shortnames": [":man_mountain_biking_medium_dark_skin_tone:"],
  49045. "category": "activity"
  49046. },
  49047. ":man_mountain_biking_tone5:": {
  49048. "uc_base": "1f6b5-1f3ff-2642",
  49049. "uc_output": "1f6b5-1f3ff-200d-2642-fe0f",
  49050. "uc_match": "1f6b5-1f3ff-2642-fe0f",
  49051. "uc_greedy": "1f6b5-1f3ff-2642",
  49052. "shortnames": [":man_mountain_biking_dark_skin_tone:"],
  49053. "category": "activity"
  49054. },
  49055. ":man_pilot_tone1:": {
  49056. "uc_base": "1f468-1f3fb-2708",
  49057. "uc_output": "1f468-1f3fb-200d-2708-fe0f",
  49058. "uc_match": "1f468-1f3fb-2708-fe0f",
  49059. "uc_greedy": "1f468-1f3fb-2708",
  49060. "shortnames": [":man_pilot_light_skin_tone:"],
  49061. "category": "people"
  49062. },
  49063. ":man_pilot_tone2:": {
  49064. "uc_base": "1f468-1f3fc-2708",
  49065. "uc_output": "1f468-1f3fc-200d-2708-fe0f",
  49066. "uc_match": "1f468-1f3fc-2708-fe0f",
  49067. "uc_greedy": "1f468-1f3fc-2708",
  49068. "shortnames": [":man_pilot_medium_light_skin_tone:"],
  49069. "category": "people"
  49070. },
  49071. ":man_pilot_tone3:": {
  49072. "uc_base": "1f468-1f3fd-2708",
  49073. "uc_output": "1f468-1f3fd-200d-2708-fe0f",
  49074. "uc_match": "1f468-1f3fd-2708-fe0f",
  49075. "uc_greedy": "1f468-1f3fd-2708",
  49076. "shortnames": [":man_pilot_medium_skin_tone:"],
  49077. "category": "people"
  49078. },
  49079. ":man_pilot_tone4:": {
  49080. "uc_base": "1f468-1f3fe-2708",
  49081. "uc_output": "1f468-1f3fe-200d-2708-fe0f",
  49082. "uc_match": "1f468-1f3fe-2708-fe0f",
  49083. "uc_greedy": "1f468-1f3fe-2708",
  49084. "shortnames": [":man_pilot_medium_dark_skin_tone:"],
  49085. "category": "people"
  49086. },
  49087. ":man_pilot_tone5:": {
  49088. "uc_base": "1f468-1f3ff-2708",
  49089. "uc_output": "1f468-1f3ff-200d-2708-fe0f",
  49090. "uc_match": "1f468-1f3ff-2708-fe0f",
  49091. "uc_greedy": "1f468-1f3ff-2708",
  49092. "shortnames": [":man_pilot_dark_skin_tone:"],
  49093. "category": "people"
  49094. },
  49095. ":man_playing_handball_tone1:": {
  49096. "uc_base": "1f93e-1f3fb-2642",
  49097. "uc_output": "1f93e-1f3fb-200d-2642-fe0f",
  49098. "uc_match": "1f93e-1f3fb-2642-fe0f",
  49099. "uc_greedy": "1f93e-1f3fb-2642",
  49100. "shortnames": [":man_playing_handball_light_skin_tone:"],
  49101. "category": "activity"
  49102. },
  49103. ":man_playing_handball_tone2:": {
  49104. "uc_base": "1f93e-1f3fc-2642",
  49105. "uc_output": "1f93e-1f3fc-200d-2642-fe0f",
  49106. "uc_match": "1f93e-1f3fc-2642-fe0f",
  49107. "uc_greedy": "1f93e-1f3fc-2642",
  49108. "shortnames": [":man_playing_handball_medium_light_skin_tone:"],
  49109. "category": "activity"
  49110. },
  49111. ":man_playing_handball_tone3:": {
  49112. "uc_base": "1f93e-1f3fd-2642",
  49113. "uc_output": "1f93e-1f3fd-200d-2642-fe0f",
  49114. "uc_match": "1f93e-1f3fd-2642-fe0f",
  49115. "uc_greedy": "1f93e-1f3fd-2642",
  49116. "shortnames": [":man_playing_handball_medium_skin_tone:"],
  49117. "category": "activity"
  49118. },
  49119. ":man_playing_handball_tone4:": {
  49120. "uc_base": "1f93e-1f3fe-2642",
  49121. "uc_output": "1f93e-1f3fe-200d-2642-fe0f",
  49122. "uc_match": "1f93e-1f3fe-2642-fe0f",
  49123. "uc_greedy": "1f93e-1f3fe-2642",
  49124. "shortnames": [":man_playing_handball_medium_dark_skin_tone:"],
  49125. "category": "activity"
  49126. },
  49127. ":man_playing_handball_tone5:": {
  49128. "uc_base": "1f93e-1f3ff-2642",
  49129. "uc_output": "1f93e-1f3ff-200d-2642-fe0f",
  49130. "uc_match": "1f93e-1f3ff-2642-fe0f",
  49131. "uc_greedy": "1f93e-1f3ff-2642",
  49132. "shortnames": [":man_playing_handball_dark_skin_tone:"],
  49133. "category": "activity"
  49134. },
  49135. ":man_playing_water_polo_tone1:": {
  49136. "uc_base": "1f93d-1f3fb-2642",
  49137. "uc_output": "1f93d-1f3fb-200d-2642-fe0f",
  49138. "uc_match": "1f93d-1f3fb-2642-fe0f",
  49139. "uc_greedy": "1f93d-1f3fb-2642",
  49140. "shortnames": [":man_playing_water_polo_light_skin_tone:"],
  49141. "category": "activity"
  49142. },
  49143. ":man_playing_water_polo_tone2:": {
  49144. "uc_base": "1f93d-1f3fc-2642",
  49145. "uc_output": "1f93d-1f3fc-200d-2642-fe0f",
  49146. "uc_match": "1f93d-1f3fc-2642-fe0f",
  49147. "uc_greedy": "1f93d-1f3fc-2642",
  49148. "shortnames": [":man_playing_water_polo_medium_light_skin_tone:"],
  49149. "category": "activity"
  49150. },
  49151. ":man_playing_water_polo_tone3:": {
  49152. "uc_base": "1f93d-1f3fd-2642",
  49153. "uc_output": "1f93d-1f3fd-200d-2642-fe0f",
  49154. "uc_match": "1f93d-1f3fd-2642-fe0f",
  49155. "uc_greedy": "1f93d-1f3fd-2642",
  49156. "shortnames": [":man_playing_water_polo_medium_skin_tone:"],
  49157. "category": "activity"
  49158. },
  49159. ":man_playing_water_polo_tone4:": {
  49160. "uc_base": "1f93d-1f3fe-2642",
  49161. "uc_output": "1f93d-1f3fe-200d-2642-fe0f",
  49162. "uc_match": "1f93d-1f3fe-2642-fe0f",
  49163. "uc_greedy": "1f93d-1f3fe-2642",
  49164. "shortnames": [":man_playing_water_polo_medium_dark_skin_tone:"],
  49165. "category": "activity"
  49166. },
  49167. ":man_playing_water_polo_tone5:": {
  49168. "uc_base": "1f93d-1f3ff-2642",
  49169. "uc_output": "1f93d-1f3ff-200d-2642-fe0f",
  49170. "uc_match": "1f93d-1f3ff-2642-fe0f",
  49171. "uc_greedy": "1f93d-1f3ff-2642",
  49172. "shortnames": [":man_playing_water_polo_dark_skin_tone:"],
  49173. "category": "activity"
  49174. },
  49175. ":man_police_officer_tone1:": {
  49176. "uc_base": "1f46e-1f3fb-2642",
  49177. "uc_output": "1f46e-1f3fb-200d-2642-fe0f",
  49178. "uc_match": "1f46e-1f3fb-2642-fe0f",
  49179. "uc_greedy": "1f46e-1f3fb-2642",
  49180. "shortnames": [":man_police_officer_light_skin_tone:"],
  49181. "category": "people"
  49182. },
  49183. ":man_police_officer_tone2:": {
  49184. "uc_base": "1f46e-1f3fc-2642",
  49185. "uc_output": "1f46e-1f3fc-200d-2642-fe0f",
  49186. "uc_match": "1f46e-1f3fc-2642-fe0f",
  49187. "uc_greedy": "1f46e-1f3fc-2642",
  49188. "shortnames": [":man_police_officer_medium_light_skin_tone:"],
  49189. "category": "people"
  49190. },
  49191. ":man_police_officer_tone3:": {
  49192. "uc_base": "1f46e-1f3fd-2642",
  49193. "uc_output": "1f46e-1f3fd-200d-2642-fe0f",
  49194. "uc_match": "1f46e-1f3fd-2642-fe0f",
  49195. "uc_greedy": "1f46e-1f3fd-2642",
  49196. "shortnames": [":man_police_officer_medium_skin_tone:"],
  49197. "category": "people"
  49198. },
  49199. ":man_police_officer_tone4:": {
  49200. "uc_base": "1f46e-1f3fe-2642",
  49201. "uc_output": "1f46e-1f3fe-200d-2642-fe0f",
  49202. "uc_match": "1f46e-1f3fe-2642-fe0f",
  49203. "uc_greedy": "1f46e-1f3fe-2642",
  49204. "shortnames": [":man_police_officer_medium_dark_skin_tone:"],
  49205. "category": "people"
  49206. },
  49207. ":man_police_officer_tone5:": {
  49208. "uc_base": "1f46e-1f3ff-2642",
  49209. "uc_output": "1f46e-1f3ff-200d-2642-fe0f",
  49210. "uc_match": "1f46e-1f3ff-2642-fe0f",
  49211. "uc_greedy": "1f46e-1f3ff-2642",
  49212. "shortnames": [":man_police_officer_dark_skin_tone:"],
  49213. "category": "people"
  49214. },
  49215. ":man_pouting_tone1:": {
  49216. "uc_base": "1f64e-1f3fb-2642",
  49217. "uc_output": "1f64e-1f3fb-200d-2642-fe0f",
  49218. "uc_match": "1f64e-1f3fb-2642-fe0f",
  49219. "uc_greedy": "1f64e-1f3fb-2642",
  49220. "shortnames": [":man_pouting_light_skin_tone:"],
  49221. "category": "people"
  49222. },
  49223. ":man_pouting_tone2:": {
  49224. "uc_base": "1f64e-1f3fc-2642",
  49225. "uc_output": "1f64e-1f3fc-200d-2642-fe0f",
  49226. "uc_match": "1f64e-1f3fc-2642-fe0f",
  49227. "uc_greedy": "1f64e-1f3fc-2642",
  49228. "shortnames": [":man_pouting_medium_light_skin_tone:"],
  49229. "category": "people"
  49230. },
  49231. ":man_pouting_tone3:": {
  49232. "uc_base": "1f64e-1f3fd-2642",
  49233. "uc_output": "1f64e-1f3fd-200d-2642-fe0f",
  49234. "uc_match": "1f64e-1f3fd-2642-fe0f",
  49235. "uc_greedy": "1f64e-1f3fd-2642",
  49236. "shortnames": [":man_pouting_medium_skin_tone:"],
  49237. "category": "people"
  49238. },
  49239. ":man_pouting_tone4:": {
  49240. "uc_base": "1f64e-1f3fe-2642",
  49241. "uc_output": "1f64e-1f3fe-200d-2642-fe0f",
  49242. "uc_match": "1f64e-1f3fe-2642-fe0f",
  49243. "uc_greedy": "1f64e-1f3fe-2642",
  49244. "shortnames": [":man_pouting_medium_dark_skin_tone:"],
  49245. "category": "people"
  49246. },
  49247. ":man_pouting_tone5:": {
  49248. "uc_base": "1f64e-1f3ff-2642",
  49249. "uc_output": "1f64e-1f3ff-200d-2642-fe0f",
  49250. "uc_match": "1f64e-1f3ff-2642-fe0f",
  49251. "uc_greedy": "1f64e-1f3ff-2642",
  49252. "shortnames": [":man_pouting_dark_skin_tone:"],
  49253. "category": "people"
  49254. },
  49255. ":man_raising_hand_tone1:": {
  49256. "uc_base": "1f64b-1f3fb-2642",
  49257. "uc_output": "1f64b-1f3fb-200d-2642-fe0f",
  49258. "uc_match": "1f64b-1f3fb-2642-fe0f",
  49259. "uc_greedy": "1f64b-1f3fb-2642",
  49260. "shortnames": [":man_raising_hand_light_skin_tone:"],
  49261. "category": "people"
  49262. },
  49263. ":man_raising_hand_tone2:": {
  49264. "uc_base": "1f64b-1f3fc-2642",
  49265. "uc_output": "1f64b-1f3fc-200d-2642-fe0f",
  49266. "uc_match": "1f64b-1f3fc-2642-fe0f",
  49267. "uc_greedy": "1f64b-1f3fc-2642",
  49268. "shortnames": [":man_raising_hand_medium_light_skin_tone:"],
  49269. "category": "people"
  49270. },
  49271. ":man_raising_hand_tone3:": {
  49272. "uc_base": "1f64b-1f3fd-2642",
  49273. "uc_output": "1f64b-1f3fd-200d-2642-fe0f",
  49274. "uc_match": "1f64b-1f3fd-2642-fe0f",
  49275. "uc_greedy": "1f64b-1f3fd-2642",
  49276. "shortnames": [":man_raising_hand_medium_skin_tone:"],
  49277. "category": "people"
  49278. },
  49279. ":man_raising_hand_tone4:": {
  49280. "uc_base": "1f64b-1f3fe-2642",
  49281. "uc_output": "1f64b-1f3fe-200d-2642-fe0f",
  49282. "uc_match": "1f64b-1f3fe-2642-fe0f",
  49283. "uc_greedy": "1f64b-1f3fe-2642",
  49284. "shortnames": [":man_raising_hand_medium_dark_skin_tone:"],
  49285. "category": "people"
  49286. },
  49287. ":man_raising_hand_tone5:": {
  49288. "uc_base": "1f64b-1f3ff-2642",
  49289. "uc_output": "1f64b-1f3ff-200d-2642-fe0f",
  49290. "uc_match": "1f64b-1f3ff-2642-fe0f",
  49291. "uc_greedy": "1f64b-1f3ff-2642",
  49292. "shortnames": [":man_raising_hand_dark_skin_tone:"],
  49293. "category": "people"
  49294. },
  49295. ":man_rowing_boat_tone1:": {
  49296. "uc_base": "1f6a3-1f3fb-2642",
  49297. "uc_output": "1f6a3-1f3fb-200d-2642-fe0f",
  49298. "uc_match": "1f6a3-1f3fb-2642-fe0f",
  49299. "uc_greedy": "1f6a3-1f3fb-2642",
  49300. "shortnames": [":man_rowing_boat_light_skin_tone:"],
  49301. "category": "activity"
  49302. },
  49303. ":man_rowing_boat_tone2:": {
  49304. "uc_base": "1f6a3-1f3fc-2642",
  49305. "uc_output": "1f6a3-1f3fc-200d-2642-fe0f",
  49306. "uc_match": "1f6a3-1f3fc-2642-fe0f",
  49307. "uc_greedy": "1f6a3-1f3fc-2642",
  49308. "shortnames": [":man_rowing_boat_medium_light_skin_tone:"],
  49309. "category": "activity"
  49310. },
  49311. ":man_rowing_boat_tone3:": {
  49312. "uc_base": "1f6a3-1f3fd-2642",
  49313. "uc_output": "1f6a3-1f3fd-200d-2642-fe0f",
  49314. "uc_match": "1f6a3-1f3fd-2642-fe0f",
  49315. "uc_greedy": "1f6a3-1f3fd-2642",
  49316. "shortnames": [":man_rowing_boat_medium_skin_tone:"],
  49317. "category": "activity"
  49318. },
  49319. ":man_rowing_boat_tone4:": {
  49320. "uc_base": "1f6a3-1f3fe-2642",
  49321. "uc_output": "1f6a3-1f3fe-200d-2642-fe0f",
  49322. "uc_match": "1f6a3-1f3fe-2642-fe0f",
  49323. "uc_greedy": "1f6a3-1f3fe-2642",
  49324. "shortnames": [":man_rowing_boat_medium_dark_skin_tone:"],
  49325. "category": "activity"
  49326. },
  49327. ":man_rowing_boat_tone5:": {
  49328. "uc_base": "1f6a3-1f3ff-2642",
  49329. "uc_output": "1f6a3-1f3ff-200d-2642-fe0f",
  49330. "uc_match": "1f6a3-1f3ff-2642-fe0f",
  49331. "uc_greedy": "1f6a3-1f3ff-2642",
  49332. "shortnames": [":man_rowing_boat_dark_skin_tone:"],
  49333. "category": "activity"
  49334. },
  49335. ":man_running_tone1:": {
  49336. "uc_base": "1f3c3-1f3fb-2642",
  49337. "uc_output": "1f3c3-1f3fb-200d-2642-fe0f",
  49338. "uc_match": "1f3c3-1f3fb-2642-fe0f",
  49339. "uc_greedy": "1f3c3-1f3fb-2642",
  49340. "shortnames": [":man_running_light_skin_tone:"],
  49341. "category": "people"
  49342. },
  49343. ":man_running_tone2:": {
  49344. "uc_base": "1f3c3-1f3fc-2642",
  49345. "uc_output": "1f3c3-1f3fc-200d-2642-fe0f",
  49346. "uc_match": "1f3c3-1f3fc-2642-fe0f",
  49347. "uc_greedy": "1f3c3-1f3fc-2642",
  49348. "shortnames": [":man_running_medium_light_skin_tone:"],
  49349. "category": "people"
  49350. },
  49351. ":man_running_tone3:": {
  49352. "uc_base": "1f3c3-1f3fd-2642",
  49353. "uc_output": "1f3c3-1f3fd-200d-2642-fe0f",
  49354. "uc_match": "1f3c3-1f3fd-2642-fe0f",
  49355. "uc_greedy": "1f3c3-1f3fd-2642",
  49356. "shortnames": [":man_running_medium_skin_tone:"],
  49357. "category": "people"
  49358. },
  49359. ":man_running_tone4:": {
  49360. "uc_base": "1f3c3-1f3fe-2642",
  49361. "uc_output": "1f3c3-1f3fe-200d-2642-fe0f",
  49362. "uc_match": "1f3c3-1f3fe-2642-fe0f",
  49363. "uc_greedy": "1f3c3-1f3fe-2642",
  49364. "shortnames": [":man_running_medium_dark_skin_tone:"],
  49365. "category": "people"
  49366. },
  49367. ":man_running_tone5:": {
  49368. "uc_base": "1f3c3-1f3ff-2642",
  49369. "uc_output": "1f3c3-1f3ff-200d-2642-fe0f",
  49370. "uc_match": "1f3c3-1f3ff-2642-fe0f",
  49371. "uc_greedy": "1f3c3-1f3ff-2642",
  49372. "shortnames": [":man_running_dark_skin_tone:"],
  49373. "category": "people"
  49374. },
  49375. ":man_shrugging_tone1:": {
  49376. "uc_base": "1f937-1f3fb-2642",
  49377. "uc_output": "1f937-1f3fb-200d-2642-fe0f",
  49378. "uc_match": "1f937-1f3fb-2642-fe0f",
  49379. "uc_greedy": "1f937-1f3fb-2642",
  49380. "shortnames": [":man_shrugging_light_skin_tone:"],
  49381. "category": "people"
  49382. },
  49383. ":man_shrugging_tone2:": {
  49384. "uc_base": "1f937-1f3fc-2642",
  49385. "uc_output": "1f937-1f3fc-200d-2642-fe0f",
  49386. "uc_match": "1f937-1f3fc-2642-fe0f",
  49387. "uc_greedy": "1f937-1f3fc-2642",
  49388. "shortnames": [":man_shrugging_medium_light_skin_tone:"],
  49389. "category": "people"
  49390. },
  49391. ":man_shrugging_tone3:": {
  49392. "uc_base": "1f937-1f3fd-2642",
  49393. "uc_output": "1f937-1f3fd-200d-2642-fe0f",
  49394. "uc_match": "1f937-1f3fd-2642-fe0f",
  49395. "uc_greedy": "1f937-1f3fd-2642",
  49396. "shortnames": [":man_shrugging_medium_skin_tone:"],
  49397. "category": "people"
  49398. },
  49399. ":man_shrugging_tone4:": {
  49400. "uc_base": "1f937-1f3fe-2642",
  49401. "uc_output": "1f937-1f3fe-200d-2642-fe0f",
  49402. "uc_match": "1f937-1f3fe-2642-fe0f",
  49403. "uc_greedy": "1f937-1f3fe-2642",
  49404. "shortnames": [":man_shrugging_medium_dark_skin_tone:"],
  49405. "category": "people"
  49406. },
  49407. ":man_shrugging_tone5:": {
  49408. "uc_base": "1f937-1f3ff-2642",
  49409. "uc_output": "1f937-1f3ff-200d-2642-fe0f",
  49410. "uc_match": "1f937-1f3ff-2642-fe0f",
  49411. "uc_greedy": "1f937-1f3ff-2642",
  49412. "shortnames": [":man_shrugging_dark_skin_tone:"],
  49413. "category": "people"
  49414. },
  49415. ":man_surfing_tone1:": {
  49416. "uc_base": "1f3c4-1f3fb-2642",
  49417. "uc_output": "1f3c4-1f3fb-200d-2642-fe0f",
  49418. "uc_match": "1f3c4-1f3fb-2642-fe0f",
  49419. "uc_greedy": "1f3c4-1f3fb-2642",
  49420. "shortnames": [":man_surfing_light_skin_tone:"],
  49421. "category": "activity"
  49422. },
  49423. ":man_surfing_tone2:": {
  49424. "uc_base": "1f3c4-1f3fc-2642",
  49425. "uc_output": "1f3c4-1f3fc-200d-2642-fe0f",
  49426. "uc_match": "1f3c4-1f3fc-2642-fe0f",
  49427. "uc_greedy": "1f3c4-1f3fc-2642",
  49428. "shortnames": [":man_surfing_medium_light_skin_tone:"],
  49429. "category": "activity"
  49430. },
  49431. ":man_surfing_tone3:": {
  49432. "uc_base": "1f3c4-1f3fd-2642",
  49433. "uc_output": "1f3c4-1f3fd-200d-2642-fe0f",
  49434. "uc_match": "1f3c4-1f3fd-2642-fe0f",
  49435. "uc_greedy": "1f3c4-1f3fd-2642",
  49436. "shortnames": [":man_surfing_medium_skin_tone:"],
  49437. "category": "activity"
  49438. },
  49439. ":man_surfing_tone4:": {
  49440. "uc_base": "1f3c4-1f3fe-2642",
  49441. "uc_output": "1f3c4-1f3fe-200d-2642-fe0f",
  49442. "uc_match": "1f3c4-1f3fe-2642-fe0f",
  49443. "uc_greedy": "1f3c4-1f3fe-2642",
  49444. "shortnames": [":man_surfing_medium_dark_skin_tone:"],
  49445. "category": "activity"
  49446. },
  49447. ":man_surfing_tone5:": {
  49448. "uc_base": "1f3c4-1f3ff-2642",
  49449. "uc_output": "1f3c4-1f3ff-200d-2642-fe0f",
  49450. "uc_match": "1f3c4-1f3ff-2642-fe0f",
  49451. "uc_greedy": "1f3c4-1f3ff-2642",
  49452. "shortnames": [":man_surfing_dark_skin_tone:"],
  49453. "category": "activity"
  49454. },
  49455. ":man_swimming_tone1:": {
  49456. "uc_base": "1f3ca-1f3fb-2642",
  49457. "uc_output": "1f3ca-1f3fb-200d-2642-fe0f",
  49458. "uc_match": "1f3ca-1f3fb-2642-fe0f",
  49459. "uc_greedy": "1f3ca-1f3fb-2642",
  49460. "shortnames": [":man_swimming_light_skin_tone:"],
  49461. "category": "activity"
  49462. },
  49463. ":man_swimming_tone2:": {
  49464. "uc_base": "1f3ca-1f3fc-2642",
  49465. "uc_output": "1f3ca-1f3fc-200d-2642-fe0f",
  49466. "uc_match": "1f3ca-1f3fc-2642-fe0f",
  49467. "uc_greedy": "1f3ca-1f3fc-2642",
  49468. "shortnames": [":man_swimming_medium_light_skin_tone:"],
  49469. "category": "activity"
  49470. },
  49471. ":man_swimming_tone3:": {
  49472. "uc_base": "1f3ca-1f3fd-2642",
  49473. "uc_output": "1f3ca-1f3fd-200d-2642-fe0f",
  49474. "uc_match": "1f3ca-1f3fd-2642-fe0f",
  49475. "uc_greedy": "1f3ca-1f3fd-2642",
  49476. "shortnames": [":man_swimming_medium_skin_tone:"],
  49477. "category": "activity"
  49478. },
  49479. ":man_swimming_tone4:": {
  49480. "uc_base": "1f3ca-1f3fe-2642",
  49481. "uc_output": "1f3ca-1f3fe-200d-2642-fe0f",
  49482. "uc_match": "1f3ca-1f3fe-2642-fe0f",
  49483. "uc_greedy": "1f3ca-1f3fe-2642",
  49484. "shortnames": [":man_swimming_medium_dark_skin_tone:"],
  49485. "category": "activity"
  49486. },
  49487. ":man_swimming_tone5:": {
  49488. "uc_base": "1f3ca-1f3ff-2642",
  49489. "uc_output": "1f3ca-1f3ff-200d-2642-fe0f",
  49490. "uc_match": "1f3ca-1f3ff-2642-fe0f",
  49491. "uc_greedy": "1f3ca-1f3ff-2642",
  49492. "shortnames": [":man_swimming_dark_skin_tone:"],
  49493. "category": "activity"
  49494. },
  49495. ":man_tipping_hand_tone1:": {
  49496. "uc_base": "1f481-1f3fb-2642",
  49497. "uc_output": "1f481-1f3fb-200d-2642-fe0f",
  49498. "uc_match": "1f481-1f3fb-2642-fe0f",
  49499. "uc_greedy": "1f481-1f3fb-2642",
  49500. "shortnames": [":man_tipping_hand_light_skin_tone:"],
  49501. "category": "people"
  49502. },
  49503. ":man_tipping_hand_tone2:": {
  49504. "uc_base": "1f481-1f3fc-2642",
  49505. "uc_output": "1f481-1f3fc-200d-2642-fe0f",
  49506. "uc_match": "1f481-1f3fc-2642-fe0f",
  49507. "uc_greedy": "1f481-1f3fc-2642",
  49508. "shortnames": [":man_tipping_hand_medium_light_skin_tone:"],
  49509. "category": "people"
  49510. },
  49511. ":man_tipping_hand_tone3:": {
  49512. "uc_base": "1f481-1f3fd-2642",
  49513. "uc_output": "1f481-1f3fd-200d-2642-fe0f",
  49514. "uc_match": "1f481-1f3fd-2642-fe0f",
  49515. "uc_greedy": "1f481-1f3fd-2642",
  49516. "shortnames": [":man_tipping_hand_medium_skin_tone:"],
  49517. "category": "people"
  49518. },
  49519. ":man_tipping_hand_tone4:": {
  49520. "uc_base": "1f481-1f3fe-2642",
  49521. "uc_output": "1f481-1f3fe-200d-2642-fe0f",
  49522. "uc_match": "1f481-1f3fe-2642-fe0f",
  49523. "uc_greedy": "1f481-1f3fe-2642",
  49524. "shortnames": [":man_tipping_hand_medium_dark_skin_tone:"],
  49525. "category": "people"
  49526. },
  49527. ":man_tipping_hand_tone5:": {
  49528. "uc_base": "1f481-1f3ff-2642",
  49529. "uc_output": "1f481-1f3ff-200d-2642-fe0f",
  49530. "uc_match": "1f481-1f3ff-2642-fe0f",
  49531. "uc_greedy": "1f481-1f3ff-2642",
  49532. "shortnames": [":man_tipping_hand_dark_skin_tone:"],
  49533. "category": "people"
  49534. },
  49535. ":man_vampire_tone1:": {
  49536. "uc_base": "1f9db-1f3fb-2642",
  49537. "uc_output": "1f9db-1f3fb-200d-2642-fe0f",
  49538. "uc_match": "1f9db-1f3fb-2642-fe0f",
  49539. "uc_greedy": "1f9db-1f3fb-2642",
  49540. "shortnames": [":man_vampire_light_skin_tone:"],
  49541. "category": "people"
  49542. },
  49543. ":man_vampire_tone2:": {
  49544. "uc_base": "1f9db-1f3fc-2642",
  49545. "uc_output": "1f9db-1f3fc-200d-2642-fe0f",
  49546. "uc_match": "1f9db-1f3fc-2642-fe0f",
  49547. "uc_greedy": "1f9db-1f3fc-2642",
  49548. "shortnames": [":man_vampire_medium_light_skin_tone:"],
  49549. "category": "people"
  49550. },
  49551. ":man_vampire_tone3:": {
  49552. "uc_base": "1f9db-1f3fd-2642",
  49553. "uc_output": "1f9db-1f3fd-200d-2642-fe0f",
  49554. "uc_match": "1f9db-1f3fd-2642-fe0f",
  49555. "uc_greedy": "1f9db-1f3fd-2642",
  49556. "shortnames": [":man_vampire_medium_skin_tone:"],
  49557. "category": "people"
  49558. },
  49559. ":man_vampire_tone4:": {
  49560. "uc_base": "1f9db-1f3fe-2642",
  49561. "uc_output": "1f9db-1f3fe-200d-2642-fe0f",
  49562. "uc_match": "1f9db-1f3fe-2642-fe0f",
  49563. "uc_greedy": "1f9db-1f3fe-2642",
  49564. "shortnames": [":man_vampire_medium_dark_skin_tone:"],
  49565. "category": "people"
  49566. },
  49567. ":man_vampire_tone5:": {
  49568. "uc_base": "1f9db-1f3ff-2642",
  49569. "uc_output": "1f9db-1f3ff-200d-2642-fe0f",
  49570. "uc_match": "1f9db-1f3ff-2642-fe0f",
  49571. "uc_greedy": "1f9db-1f3ff-2642",
  49572. "shortnames": [":man_vampire_dark_skin_tone:"],
  49573. "category": "people"
  49574. },
  49575. ":man_walking_tone1:": {
  49576. "uc_base": "1f6b6-1f3fb-2642",
  49577. "uc_output": "1f6b6-1f3fb-200d-2642-fe0f",
  49578. "uc_match": "1f6b6-1f3fb-2642-fe0f",
  49579. "uc_greedy": "1f6b6-1f3fb-2642",
  49580. "shortnames": [":man_walking_light_skin_tone:"],
  49581. "category": "people"
  49582. },
  49583. ":man_walking_tone2:": {
  49584. "uc_base": "1f6b6-1f3fc-2642",
  49585. "uc_output": "1f6b6-1f3fc-200d-2642-fe0f",
  49586. "uc_match": "1f6b6-1f3fc-2642-fe0f",
  49587. "uc_greedy": "1f6b6-1f3fc-2642",
  49588. "shortnames": [":man_walking_medium_light_skin_tone:"],
  49589. "category": "people"
  49590. },
  49591. ":man_walking_tone3:": {
  49592. "uc_base": "1f6b6-1f3fd-2642",
  49593. "uc_output": "1f6b6-1f3fd-200d-2642-fe0f",
  49594. "uc_match": "1f6b6-1f3fd-2642-fe0f",
  49595. "uc_greedy": "1f6b6-1f3fd-2642",
  49596. "shortnames": [":man_walking_medium_skin_tone:"],
  49597. "category": "people"
  49598. },
  49599. ":man_walking_tone4:": {
  49600. "uc_base": "1f6b6-1f3fe-2642",
  49601. "uc_output": "1f6b6-1f3fe-200d-2642-fe0f",
  49602. "uc_match": "1f6b6-1f3fe-2642-fe0f",
  49603. "uc_greedy": "1f6b6-1f3fe-2642",
  49604. "shortnames": [":man_walking_medium_dark_skin_tone:"],
  49605. "category": "people"
  49606. },
  49607. ":man_walking_tone5:": {
  49608. "uc_base": "1f6b6-1f3ff-2642",
  49609. "uc_output": "1f6b6-1f3ff-200d-2642-fe0f",
  49610. "uc_match": "1f6b6-1f3ff-2642-fe0f",
  49611. "uc_greedy": "1f6b6-1f3ff-2642",
  49612. "shortnames": [":man_walking_dark_skin_tone:"],
  49613. "category": "people"
  49614. },
  49615. ":man_wearing_turban_tone1:": {
  49616. "uc_base": "1f473-1f3fb-2642",
  49617. "uc_output": "1f473-1f3fb-200d-2642-fe0f",
  49618. "uc_match": "1f473-1f3fb-2642-fe0f",
  49619. "uc_greedy": "1f473-1f3fb-2642",
  49620. "shortnames": [":man_wearing_turban_light_skin_tone:"],
  49621. "category": "people"
  49622. },
  49623. ":man_wearing_turban_tone2:": {
  49624. "uc_base": "1f473-1f3fc-2642",
  49625. "uc_output": "1f473-1f3fc-200d-2642-fe0f",
  49626. "uc_match": "1f473-1f3fc-2642-fe0f",
  49627. "uc_greedy": "1f473-1f3fc-2642",
  49628. "shortnames": [":man_wearing_turban_medium_light_skin_tone:"],
  49629. "category": "people"
  49630. },
  49631. ":man_wearing_turban_tone3:": {
  49632. "uc_base": "1f473-1f3fd-2642",
  49633. "uc_output": "1f473-1f3fd-200d-2642-fe0f",
  49634. "uc_match": "1f473-1f3fd-2642-fe0f",
  49635. "uc_greedy": "1f473-1f3fd-2642",
  49636. "shortnames": [":man_wearing_turban_medium_skin_tone:"],
  49637. "category": "people"
  49638. },
  49639. ":man_wearing_turban_tone4:": {
  49640. "uc_base": "1f473-1f3fe-2642",
  49641. "uc_output": "1f473-1f3fe-200d-2642-fe0f",
  49642. "uc_match": "1f473-1f3fe-2642-fe0f",
  49643. "uc_greedy": "1f473-1f3fe-2642",
  49644. "shortnames": [":man_wearing_turban_medium_dark_skin_tone:"],
  49645. "category": "people"
  49646. },
  49647. ":man_wearing_turban_tone5:": {
  49648. "uc_base": "1f473-1f3ff-2642",
  49649. "uc_output": "1f473-1f3ff-200d-2642-fe0f",
  49650. "uc_match": "1f473-1f3ff-2642-fe0f",
  49651. "uc_greedy": "1f473-1f3ff-2642",
  49652. "shortnames": [":man_wearing_turban_dark_skin_tone:"],
  49653. "category": "people"
  49654. },
  49655. ":mermaid_tone1:": {
  49656. "uc_base": "1f9dc-1f3fb-2640",
  49657. "uc_output": "1f9dc-1f3fb-200d-2640-fe0f",
  49658. "uc_match": "1f9dc-1f3fb-2640-fe0f",
  49659. "uc_greedy": "1f9dc-1f3fb-2640",
  49660. "shortnames": [":mermaid_light_skin_tone:"],
  49661. "category": "people"
  49662. },
  49663. ":mermaid_tone2:": {
  49664. "uc_base": "1f9dc-1f3fc-2640",
  49665. "uc_output": "1f9dc-1f3fc-200d-2640-fe0f",
  49666. "uc_match": "1f9dc-1f3fc-2640-fe0f",
  49667. "uc_greedy": "1f9dc-1f3fc-2640",
  49668. "shortnames": [":mermaid_medium_light_skin_tone:"],
  49669. "category": "people"
  49670. },
  49671. ":mermaid_tone3:": {
  49672. "uc_base": "1f9dc-1f3fd-2640",
  49673. "uc_output": "1f9dc-1f3fd-200d-2640-fe0f",
  49674. "uc_match": "1f9dc-1f3fd-2640-fe0f",
  49675. "uc_greedy": "1f9dc-1f3fd-2640",
  49676. "shortnames": [":mermaid_medium_skin_tone:"],
  49677. "category": "people"
  49678. },
  49679. ":mermaid_tone4:": {
  49680. "uc_base": "1f9dc-1f3fe-2640",
  49681. "uc_output": "1f9dc-1f3fe-200d-2640-fe0f",
  49682. "uc_match": "1f9dc-1f3fe-2640-fe0f",
  49683. "uc_greedy": "1f9dc-1f3fe-2640",
  49684. "shortnames": [":mermaid_medium_dark_skin_tone:"],
  49685. "category": "people"
  49686. },
  49687. ":mermaid_tone5:": {
  49688. "uc_base": "1f9dc-1f3ff-2640",
  49689. "uc_output": "1f9dc-1f3ff-200d-2640-fe0f",
  49690. "uc_match": "1f9dc-1f3ff-2640-fe0f",
  49691. "uc_greedy": "1f9dc-1f3ff-2640",
  49692. "shortnames": [":mermaid_dark_skin_tone:"],
  49693. "category": "people"
  49694. },
  49695. ":merman_tone1:": {
  49696. "uc_base": "1f9dc-1f3fb-2642",
  49697. "uc_output": "1f9dc-1f3fb-200d-2642-fe0f",
  49698. "uc_match": "1f9dc-1f3fb-2642-fe0f",
  49699. "uc_greedy": "1f9dc-1f3fb-2642",
  49700. "shortnames": [":merman_light_skin_tone:"],
  49701. "category": "people"
  49702. },
  49703. ":merman_tone2:": {
  49704. "uc_base": "1f9dc-1f3fc-2642",
  49705. "uc_output": "1f9dc-1f3fc-200d-2642-fe0f",
  49706. "uc_match": "1f9dc-1f3fc-2642-fe0f",
  49707. "uc_greedy": "1f9dc-1f3fc-2642",
  49708. "shortnames": [":merman_medium_light_skin_tone:"],
  49709. "category": "people"
  49710. },
  49711. ":merman_tone3:": {
  49712. "uc_base": "1f9dc-1f3fd-2642",
  49713. "uc_output": "1f9dc-1f3fd-200d-2642-fe0f",
  49714. "uc_match": "1f9dc-1f3fd-2642-fe0f",
  49715. "uc_greedy": "1f9dc-1f3fd-2642",
  49716. "shortnames": [":merman_medium_skin_tone:"],
  49717. "category": "people"
  49718. },
  49719. ":merman_tone4:": {
  49720. "uc_base": "1f9dc-1f3fe-2642",
  49721. "uc_output": "1f9dc-1f3fe-200d-2642-fe0f",
  49722. "uc_match": "1f9dc-1f3fe-2642-fe0f",
  49723. "uc_greedy": "1f9dc-1f3fe-2642",
  49724. "shortnames": [":merman_medium_dark_skin_tone:"],
  49725. "category": "people"
  49726. },
  49727. ":merman_tone5:": {
  49728. "uc_base": "1f9dc-1f3ff-2642",
  49729. "uc_output": "1f9dc-1f3ff-200d-2642-fe0f",
  49730. "uc_match": "1f9dc-1f3ff-2642-fe0f",
  49731. "uc_greedy": "1f9dc-1f3ff-2642",
  49732. "shortnames": [":merman_dark_skin_tone:"],
  49733. "category": "people"
  49734. },
  49735. ":woman_biking_tone1:": {
  49736. "uc_base": "1f6b4-1f3fb-2640",
  49737. "uc_output": "1f6b4-1f3fb-200d-2640-fe0f",
  49738. "uc_match": "1f6b4-1f3fb-2640-fe0f",
  49739. "uc_greedy": "1f6b4-1f3fb-2640",
  49740. "shortnames": [":woman_biking_light_skin_tone:"],
  49741. "category": "activity"
  49742. },
  49743. ":woman_biking_tone2:": {
  49744. "uc_base": "1f6b4-1f3fc-2640",
  49745. "uc_output": "1f6b4-1f3fc-200d-2640-fe0f",
  49746. "uc_match": "1f6b4-1f3fc-2640-fe0f",
  49747. "uc_greedy": "1f6b4-1f3fc-2640",
  49748. "shortnames": [":woman_biking_medium_light_skin_tone:"],
  49749. "category": "activity"
  49750. },
  49751. ":woman_biking_tone3:": {
  49752. "uc_base": "1f6b4-1f3fd-2640",
  49753. "uc_output": "1f6b4-1f3fd-200d-2640-fe0f",
  49754. "uc_match": "1f6b4-1f3fd-2640-fe0f",
  49755. "uc_greedy": "1f6b4-1f3fd-2640",
  49756. "shortnames": [":woman_biking_medium_skin_tone:"],
  49757. "category": "activity"
  49758. },
  49759. ":woman_biking_tone4:": {
  49760. "uc_base": "1f6b4-1f3fe-2640",
  49761. "uc_output": "1f6b4-1f3fe-200d-2640-fe0f",
  49762. "uc_match": "1f6b4-1f3fe-2640-fe0f",
  49763. "uc_greedy": "1f6b4-1f3fe-2640",
  49764. "shortnames": [":woman_biking_medium_dark_skin_tone:"],
  49765. "category": "activity"
  49766. },
  49767. ":woman_biking_tone5:": {
  49768. "uc_base": "1f6b4-1f3ff-2640",
  49769. "uc_output": "1f6b4-1f3ff-200d-2640-fe0f",
  49770. "uc_match": "1f6b4-1f3ff-2640-fe0f",
  49771. "uc_greedy": "1f6b4-1f3ff-2640",
  49772. "shortnames": [":woman_biking_dark_skin_tone:"],
  49773. "category": "activity"
  49774. },
  49775. ":woman_bowing_tone1:": {
  49776. "uc_base": "1f647-1f3fb-2640",
  49777. "uc_output": "1f647-1f3fb-200d-2640-fe0f",
  49778. "uc_match": "1f647-1f3fb-2640-fe0f",
  49779. "uc_greedy": "1f647-1f3fb-2640",
  49780. "shortnames": [":woman_bowing_light_skin_tone:"],
  49781. "category": "people"
  49782. },
  49783. ":woman_bowing_tone2:": {
  49784. "uc_base": "1f647-1f3fc-2640",
  49785. "uc_output": "1f647-1f3fc-200d-2640-fe0f",
  49786. "uc_match": "1f647-1f3fc-2640-fe0f",
  49787. "uc_greedy": "1f647-1f3fc-2640",
  49788. "shortnames": [":woman_bowing_medium_light_skin_tone:"],
  49789. "category": "people"
  49790. },
  49791. ":woman_bowing_tone3:": {
  49792. "uc_base": "1f647-1f3fd-2640",
  49793. "uc_output": "1f647-1f3fd-200d-2640-fe0f",
  49794. "uc_match": "1f647-1f3fd-2640-fe0f",
  49795. "uc_greedy": "1f647-1f3fd-2640",
  49796. "shortnames": [":woman_bowing_medium_skin_tone:"],
  49797. "category": "people"
  49798. },
  49799. ":woman_bowing_tone4:": {
  49800. "uc_base": "1f647-1f3fe-2640",
  49801. "uc_output": "1f647-1f3fe-200d-2640-fe0f",
  49802. "uc_match": "1f647-1f3fe-2640-fe0f",
  49803. "uc_greedy": "1f647-1f3fe-2640",
  49804. "shortnames": [":woman_bowing_medium_dark_skin_tone:"],
  49805. "category": "people"
  49806. },
  49807. ":woman_bowing_tone5:": {
  49808. "uc_base": "1f647-1f3ff-2640",
  49809. "uc_output": "1f647-1f3ff-200d-2640-fe0f",
  49810. "uc_match": "1f647-1f3ff-2640-fe0f",
  49811. "uc_greedy": "1f647-1f3ff-2640",
  49812. "shortnames": [":woman_bowing_dark_skin_tone:"],
  49813. "category": "people"
  49814. },
  49815. ":woman_cartwheeling_tone1:": {
  49816. "uc_base": "1f938-1f3fb-2640",
  49817. "uc_output": "1f938-1f3fb-200d-2640-fe0f",
  49818. "uc_match": "1f938-1f3fb-2640-fe0f",
  49819. "uc_greedy": "1f938-1f3fb-2640",
  49820. "shortnames": [":woman_cartwheeling_light_skin_tone:"],
  49821. "category": "activity"
  49822. },
  49823. ":woman_cartwheeling_tone2:": {
  49824. "uc_base": "1f938-1f3fc-2640",
  49825. "uc_output": "1f938-1f3fc-200d-2640-fe0f",
  49826. "uc_match": "1f938-1f3fc-2640-fe0f",
  49827. "uc_greedy": "1f938-1f3fc-2640",
  49828. "shortnames": [":woman_cartwheeling_medium_light_skin_tone:"],
  49829. "category": "activity"
  49830. },
  49831. ":woman_cartwheeling_tone3:": {
  49832. "uc_base": "1f938-1f3fd-2640",
  49833. "uc_output": "1f938-1f3fd-200d-2640-fe0f",
  49834. "uc_match": "1f938-1f3fd-2640-fe0f",
  49835. "uc_greedy": "1f938-1f3fd-2640",
  49836. "shortnames": [":woman_cartwheeling_medium_skin_tone:"],
  49837. "category": "activity"
  49838. },
  49839. ":woman_cartwheeling_tone4:": {
  49840. "uc_base": "1f938-1f3fe-2640",
  49841. "uc_output": "1f938-1f3fe-200d-2640-fe0f",
  49842. "uc_match": "1f938-1f3fe-2640-fe0f",
  49843. "uc_greedy": "1f938-1f3fe-2640",
  49844. "shortnames": [":woman_cartwheeling_medium_dark_skin_tone:"],
  49845. "category": "activity"
  49846. },
  49847. ":woman_cartwheeling_tone5:": {
  49848. "uc_base": "1f938-1f3ff-2640",
  49849. "uc_output": "1f938-1f3ff-200d-2640-fe0f",
  49850. "uc_match": "1f938-1f3ff-2640-fe0f",
  49851. "uc_greedy": "1f938-1f3ff-2640",
  49852. "shortnames": [":woman_cartwheeling_dark_skin_tone:"],
  49853. "category": "activity"
  49854. },
  49855. ":woman_climbing_tone1:": {
  49856. "uc_base": "1f9d7-1f3fb-2640",
  49857. "uc_output": "1f9d7-1f3fb-200d-2640-fe0f",
  49858. "uc_match": "1f9d7-1f3fb-2640-fe0f",
  49859. "uc_greedy": "1f9d7-1f3fb-2640",
  49860. "shortnames": [":woman_climbing_light_skin_tone:"],
  49861. "category": "activity"
  49862. },
  49863. ":woman_climbing_tone2:": {
  49864. "uc_base": "1f9d7-1f3fc-2640",
  49865. "uc_output": "1f9d7-1f3fc-200d-2640-fe0f",
  49866. "uc_match": "1f9d7-1f3fc-2640-fe0f",
  49867. "uc_greedy": "1f9d7-1f3fc-2640",
  49868. "shortnames": [":woman_climbing_medium_light_skin_tone:"],
  49869. "category": "activity"
  49870. },
  49871. ":woman_climbing_tone3:": {
  49872. "uc_base": "1f9d7-1f3fd-2640",
  49873. "uc_output": "1f9d7-1f3fd-200d-2640-fe0f",
  49874. "uc_match": "1f9d7-1f3fd-2640-fe0f",
  49875. "uc_greedy": "1f9d7-1f3fd-2640",
  49876. "shortnames": [":woman_climbing_medium_skin_tone:"],
  49877. "category": "activity"
  49878. },
  49879. ":woman_climbing_tone4:": {
  49880. "uc_base": "1f9d7-1f3fe-2640",
  49881. "uc_output": "1f9d7-1f3fe-200d-2640-fe0f",
  49882. "uc_match": "1f9d7-1f3fe-2640-fe0f",
  49883. "uc_greedy": "1f9d7-1f3fe-2640",
  49884. "shortnames": [":woman_climbing_medium_dark_skin_tone:"],
  49885. "category": "activity"
  49886. },
  49887. ":woman_climbing_tone5:": {
  49888. "uc_base": "1f9d7-1f3ff-2640",
  49889. "uc_output": "1f9d7-1f3ff-200d-2640-fe0f",
  49890. "uc_match": "1f9d7-1f3ff-2640-fe0f",
  49891. "uc_greedy": "1f9d7-1f3ff-2640",
  49892. "shortnames": [":woman_climbing_dark_skin_tone:"],
  49893. "category": "activity"
  49894. },
  49895. ":woman_construction_worker_tone1:": {
  49896. "uc_base": "1f477-1f3fb-2640",
  49897. "uc_output": "1f477-1f3fb-200d-2640-fe0f",
  49898. "uc_match": "1f477-1f3fb-2640-fe0f",
  49899. "uc_greedy": "1f477-1f3fb-2640",
  49900. "shortnames": [":woman_construction_worker_light_skin_tone:"],
  49901. "category": "people"
  49902. },
  49903. ":woman_construction_worker_tone2:": {
  49904. "uc_base": "1f477-1f3fc-2640",
  49905. "uc_output": "1f477-1f3fc-200d-2640-fe0f",
  49906. "uc_match": "1f477-1f3fc-2640-fe0f",
  49907. "uc_greedy": "1f477-1f3fc-2640",
  49908. "shortnames": [":woman_construction_worker_medium_light_skin_tone:"],
  49909. "category": "people"
  49910. },
  49911. ":woman_construction_worker_tone3:": {
  49912. "uc_base": "1f477-1f3fd-2640",
  49913. "uc_output": "1f477-1f3fd-200d-2640-fe0f",
  49914. "uc_match": "1f477-1f3fd-2640-fe0f",
  49915. "uc_greedy": "1f477-1f3fd-2640",
  49916. "shortnames": [":woman_construction_worker_medium_skin_tone:"],
  49917. "category": "people"
  49918. },
  49919. ":woman_construction_worker_tone4:": {
  49920. "uc_base": "1f477-1f3fe-2640",
  49921. "uc_output": "1f477-1f3fe-200d-2640-fe0f",
  49922. "uc_match": "1f477-1f3fe-2640-fe0f",
  49923. "uc_greedy": "1f477-1f3fe-2640",
  49924. "shortnames": [":woman_construction_worker_medium_dark_skin_tone:"],
  49925. "category": "people"
  49926. },
  49927. ":woman_construction_worker_tone5:": {
  49928. "uc_base": "1f477-1f3ff-2640",
  49929. "uc_output": "1f477-1f3ff-200d-2640-fe0f",
  49930. "uc_match": "1f477-1f3ff-2640-fe0f",
  49931. "uc_greedy": "1f477-1f3ff-2640",
  49932. "shortnames": [":woman_construction_worker_dark_skin_tone:"],
  49933. "category": "people"
  49934. },
  49935. ":woman_detective_tone1:": {
  49936. "uc_base": "1f575-1f3fb-2640",
  49937. "uc_output": "1f575-1f3fb-200d-2640-fe0f",
  49938. "uc_match": "1f575-fe0f-1f3fb-2640-fe0f",
  49939. "uc_greedy": "1f575-1f3fb-2640",
  49940. "shortnames": [":woman_detective_light_skin_tone:"],
  49941. "category": "people"
  49942. },
  49943. ":woman_detective_tone2:": {
  49944. "uc_base": "1f575-1f3fc-2640",
  49945. "uc_output": "1f575-1f3fc-200d-2640-fe0f",
  49946. "uc_match": "1f575-fe0f-1f3fc-2640-fe0f",
  49947. "uc_greedy": "1f575-1f3fc-2640",
  49948. "shortnames": [":woman_detective_medium_light_skin_tone:"],
  49949. "category": "people"
  49950. },
  49951. ":woman_detective_tone3:": {
  49952. "uc_base": "1f575-1f3fd-2640",
  49953. "uc_output": "1f575-1f3fd-200d-2640-fe0f",
  49954. "uc_match": "1f575-fe0f-1f3fd-2640-fe0f",
  49955. "uc_greedy": "1f575-1f3fd-2640",
  49956. "shortnames": [":woman_detective_medium_skin_tone:"],
  49957. "category": "people"
  49958. },
  49959. ":woman_detective_tone4:": {
  49960. "uc_base": "1f575-1f3fe-2640",
  49961. "uc_output": "1f575-1f3fe-200d-2640-fe0f",
  49962. "uc_match": "1f575-fe0f-1f3fe-2640-fe0f",
  49963. "uc_greedy": "1f575-1f3fe-2640",
  49964. "shortnames": [":woman_detective_medium_dark_skin_tone:"],
  49965. "category": "people"
  49966. },
  49967. ":woman_detective_tone5:": {
  49968. "uc_base": "1f575-1f3ff-2640",
  49969. "uc_output": "1f575-1f3ff-200d-2640-fe0f",
  49970. "uc_match": "1f575-fe0f-1f3ff-2640-fe0f",
  49971. "uc_greedy": "1f575-1f3ff-2640",
  49972. "shortnames": [":woman_detective_dark_skin_tone:"],
  49973. "category": "people"
  49974. },
  49975. ":woman_elf_tone1:": {
  49976. "uc_base": "1f9dd-1f3fb-2640",
  49977. "uc_output": "1f9dd-1f3fb-200d-2640-fe0f",
  49978. "uc_match": "1f9dd-1f3fb-2640-fe0f",
  49979. "uc_greedy": "1f9dd-1f3fb-2640",
  49980. "shortnames": [":woman_elf_light_skin_tone:"],
  49981. "category": "people"
  49982. },
  49983. ":woman_elf_tone2:": {
  49984. "uc_base": "1f9dd-1f3fc-2640",
  49985. "uc_output": "1f9dd-1f3fc-200d-2640-fe0f",
  49986. "uc_match": "1f9dd-1f3fc-2640-fe0f",
  49987. "uc_greedy": "1f9dd-1f3fc-2640",
  49988. "shortnames": [":woman_elf_medium_light_skin_tone:"],
  49989. "category": "people"
  49990. },
  49991. ":woman_elf_tone3:": {
  49992. "uc_base": "1f9dd-1f3fd-2640",
  49993. "uc_output": "1f9dd-1f3fd-200d-2640-fe0f",
  49994. "uc_match": "1f9dd-1f3fd-2640-fe0f",
  49995. "uc_greedy": "1f9dd-1f3fd-2640",
  49996. "shortnames": [":woman_elf_medium_skin_tone:"],
  49997. "category": "people"
  49998. },
  49999. ":woman_elf_tone4:": {
  50000. "uc_base": "1f9dd-1f3fe-2640",
  50001. "uc_output": "1f9dd-1f3fe-200d-2640-fe0f",
  50002. "uc_match": "1f9dd-1f3fe-2640-fe0f",
  50003. "uc_greedy": "1f9dd-1f3fe-2640",
  50004. "shortnames": [":woman_elf_medium_dark_skin_tone:"],
  50005. "category": "people"
  50006. },
  50007. ":woman_elf_tone5:": {
  50008. "uc_base": "1f9dd-1f3ff-2640",
  50009. "uc_output": "1f9dd-1f3ff-200d-2640-fe0f",
  50010. "uc_match": "1f9dd-1f3ff-2640-fe0f",
  50011. "uc_greedy": "1f9dd-1f3ff-2640",
  50012. "shortnames": [":woman_elf_dark_skin_tone:"],
  50013. "category": "people"
  50014. },
  50015. ":woman_facepalming_tone1:": {
  50016. "uc_base": "1f926-1f3fb-2640",
  50017. "uc_output": "1f926-1f3fb-200d-2640-fe0f",
  50018. "uc_match": "1f926-1f3fb-2640-fe0f",
  50019. "uc_greedy": "1f926-1f3fb-2640",
  50020. "shortnames": [":woman_facepalming_light_skin_tone:"],
  50021. "category": "people"
  50022. },
  50023. ":woman_facepalming_tone2:": {
  50024. "uc_base": "1f926-1f3fc-2640",
  50025. "uc_output": "1f926-1f3fc-200d-2640-fe0f",
  50026. "uc_match": "1f926-1f3fc-2640-fe0f",
  50027. "uc_greedy": "1f926-1f3fc-2640",
  50028. "shortnames": [":woman_facepalming_medium_light_skin_tone:"],
  50029. "category": "people"
  50030. },
  50031. ":woman_facepalming_tone3:": {
  50032. "uc_base": "1f926-1f3fd-2640",
  50033. "uc_output": "1f926-1f3fd-200d-2640-fe0f",
  50034. "uc_match": "1f926-1f3fd-2640-fe0f",
  50035. "uc_greedy": "1f926-1f3fd-2640",
  50036. "shortnames": [":woman_facepalming_medium_skin_tone:"],
  50037. "category": "people"
  50038. },
  50039. ":woman_facepalming_tone4:": {
  50040. "uc_base": "1f926-1f3fe-2640",
  50041. "uc_output": "1f926-1f3fe-200d-2640-fe0f",
  50042. "uc_match": "1f926-1f3fe-2640-fe0f",
  50043. "uc_greedy": "1f926-1f3fe-2640",
  50044. "shortnames": [":woman_facepalming_medium_dark_skin_tone:"],
  50045. "category": "people"
  50046. },
  50047. ":woman_facepalming_tone5:": {
  50048. "uc_base": "1f926-1f3ff-2640",
  50049. "uc_output": "1f926-1f3ff-200d-2640-fe0f",
  50050. "uc_match": "1f926-1f3ff-2640-fe0f",
  50051. "uc_greedy": "1f926-1f3ff-2640",
  50052. "shortnames": [":woman_facepalming_dark_skin_tone:"],
  50053. "category": "people"
  50054. },
  50055. ":woman_fairy_tone1:": {
  50056. "uc_base": "1f9da-1f3fb-2640",
  50057. "uc_output": "1f9da-1f3fb-200d-2640-fe0f",
  50058. "uc_match": "1f9da-1f3fb-2640-fe0f",
  50059. "uc_greedy": "1f9da-1f3fb-2640",
  50060. "shortnames": [":woman_fairy_light_skin_tone:"],
  50061. "category": "people"
  50062. },
  50063. ":woman_fairy_tone2:": {
  50064. "uc_base": "1f9da-1f3fc-2640",
  50065. "uc_output": "1f9da-1f3fc-200d-2640-fe0f",
  50066. "uc_match": "1f9da-1f3fc-2640-fe0f",
  50067. "uc_greedy": "1f9da-1f3fc-2640",
  50068. "shortnames": [":woman_fairy_medium_light_skin_tone:"],
  50069. "category": "people"
  50070. },
  50071. ":woman_fairy_tone3:": {
  50072. "uc_base": "1f9da-1f3fd-2640",
  50073. "uc_output": "1f9da-1f3fd-200d-2640-fe0f",
  50074. "uc_match": "1f9da-1f3fd-2640-fe0f",
  50075. "uc_greedy": "1f9da-1f3fd-2640",
  50076. "shortnames": [":woman_fairy_medium_skin_tone:"],
  50077. "category": "people"
  50078. },
  50079. ":woman_fairy_tone4:": {
  50080. "uc_base": "1f9da-1f3fe-2640",
  50081. "uc_output": "1f9da-1f3fe-200d-2640-fe0f",
  50082. "uc_match": "1f9da-1f3fe-2640-fe0f",
  50083. "uc_greedy": "1f9da-1f3fe-2640",
  50084. "shortnames": [":woman_fairy_medium_dark_skin_tone:"],
  50085. "category": "people"
  50086. },
  50087. ":woman_fairy_tone5:": {
  50088. "uc_base": "1f9da-1f3ff-2640",
  50089. "uc_output": "1f9da-1f3ff-200d-2640-fe0f",
  50090. "uc_match": "1f9da-1f3ff-2640-fe0f",
  50091. "uc_greedy": "1f9da-1f3ff-2640",
  50092. "shortnames": [":woman_fairy_dark_skin_tone:"],
  50093. "category": "people"
  50094. },
  50095. ":woman_frowning_tone1:": {
  50096. "uc_base": "1f64d-1f3fb-2640",
  50097. "uc_output": "1f64d-1f3fb-200d-2640-fe0f",
  50098. "uc_match": "1f64d-1f3fb-2640-fe0f",
  50099. "uc_greedy": "1f64d-1f3fb-2640",
  50100. "shortnames": [":woman_frowning_light_skin_tone:"],
  50101. "category": "people"
  50102. },
  50103. ":woman_frowning_tone2:": {
  50104. "uc_base": "1f64d-1f3fc-2640",
  50105. "uc_output": "1f64d-1f3fc-200d-2640-fe0f",
  50106. "uc_match": "1f64d-1f3fc-2640-fe0f",
  50107. "uc_greedy": "1f64d-1f3fc-2640",
  50108. "shortnames": [":woman_frowning_medium_light_skin_tone:"],
  50109. "category": "people"
  50110. },
  50111. ":woman_frowning_tone3:": {
  50112. "uc_base": "1f64d-1f3fd-2640",
  50113. "uc_output": "1f64d-1f3fd-200d-2640-fe0f",
  50114. "uc_match": "1f64d-1f3fd-2640-fe0f",
  50115. "uc_greedy": "1f64d-1f3fd-2640",
  50116. "shortnames": [":woman_frowning_medium_skin_tone:"],
  50117. "category": "people"
  50118. },
  50119. ":woman_frowning_tone4:": {
  50120. "uc_base": "1f64d-1f3fe-2640",
  50121. "uc_output": "1f64d-1f3fe-200d-2640-fe0f",
  50122. "uc_match": "1f64d-1f3fe-2640-fe0f",
  50123. "uc_greedy": "1f64d-1f3fe-2640",
  50124. "shortnames": [":woman_frowning_medium_dark_skin_tone:"],
  50125. "category": "people"
  50126. },
  50127. ":woman_frowning_tone5:": {
  50128. "uc_base": "1f64d-1f3ff-2640",
  50129. "uc_output": "1f64d-1f3ff-200d-2640-fe0f",
  50130. "uc_match": "1f64d-1f3ff-2640-fe0f",
  50131. "uc_greedy": "1f64d-1f3ff-2640",
  50132. "shortnames": [":woman_frowning_dark_skin_tone:"],
  50133. "category": "people"
  50134. },
  50135. ":woman_gesturing_no_tone1:": {
  50136. "uc_base": "1f645-1f3fb-2640",
  50137. "uc_output": "1f645-1f3fb-200d-2640-fe0f",
  50138. "uc_match": "1f645-1f3fb-2640-fe0f",
  50139. "uc_greedy": "1f645-1f3fb-2640",
  50140. "shortnames": [":woman_gesturing_no_light_skin_tone:"],
  50141. "category": "people"
  50142. },
  50143. ":woman_gesturing_no_tone2:": {
  50144. "uc_base": "1f645-1f3fc-2640",
  50145. "uc_output": "1f645-1f3fc-200d-2640-fe0f",
  50146. "uc_match": "1f645-1f3fc-2640-fe0f",
  50147. "uc_greedy": "1f645-1f3fc-2640",
  50148. "shortnames": [":woman_gesturing_no_medium_light_skin_tone:"],
  50149. "category": "people"
  50150. },
  50151. ":woman_gesturing_no_tone3:": {
  50152. "uc_base": "1f645-1f3fd-2640",
  50153. "uc_output": "1f645-1f3fd-200d-2640-fe0f",
  50154. "uc_match": "1f645-1f3fd-2640-fe0f",
  50155. "uc_greedy": "1f645-1f3fd-2640",
  50156. "shortnames": [":woman_gesturing_no_medium_skin_tone:"],
  50157. "category": "people"
  50158. },
  50159. ":woman_gesturing_no_tone4:": {
  50160. "uc_base": "1f645-1f3fe-2640",
  50161. "uc_output": "1f645-1f3fe-200d-2640-fe0f",
  50162. "uc_match": "1f645-1f3fe-2640-fe0f",
  50163. "uc_greedy": "1f645-1f3fe-2640",
  50164. "shortnames": [":woman_gesturing_no_medium_dark_skin_tone:"],
  50165. "category": "people"
  50166. },
  50167. ":woman_gesturing_no_tone5:": {
  50168. "uc_base": "1f645-1f3ff-2640",
  50169. "uc_output": "1f645-1f3ff-200d-2640-fe0f",
  50170. "uc_match": "1f645-1f3ff-2640-fe0f",
  50171. "uc_greedy": "1f645-1f3ff-2640",
  50172. "shortnames": [":woman_gesturing_no_dark_skin_tone:"],
  50173. "category": "people"
  50174. },
  50175. ":woman_gesturing_ok_tone1:": {
  50176. "uc_base": "1f646-1f3fb-2640",
  50177. "uc_output": "1f646-1f3fb-200d-2640-fe0f",
  50178. "uc_match": "1f646-1f3fb-2640-fe0f",
  50179. "uc_greedy": "1f646-1f3fb-2640",
  50180. "shortnames": [":woman_gesturing_ok_light_skin_tone:"],
  50181. "category": "people"
  50182. },
  50183. ":woman_gesturing_ok_tone2:": {
  50184. "uc_base": "1f646-1f3fc-2640",
  50185. "uc_output": "1f646-1f3fc-200d-2640-fe0f",
  50186. "uc_match": "1f646-1f3fc-2640-fe0f",
  50187. "uc_greedy": "1f646-1f3fc-2640",
  50188. "shortnames": [":woman_gesturing_ok_medium_light_skin_tone:"],
  50189. "category": "people"
  50190. },
  50191. ":woman_gesturing_ok_tone3:": {
  50192. "uc_base": "1f646-1f3fd-2640",
  50193. "uc_output": "1f646-1f3fd-200d-2640-fe0f",
  50194. "uc_match": "1f646-1f3fd-2640-fe0f",
  50195. "uc_greedy": "1f646-1f3fd-2640",
  50196. "shortnames": [":woman_gesturing_ok_medium_skin_tone:"],
  50197. "category": "people"
  50198. },
  50199. ":woman_gesturing_ok_tone4:": {
  50200. "uc_base": "1f646-1f3fe-2640",
  50201. "uc_output": "1f646-1f3fe-200d-2640-fe0f",
  50202. "uc_match": "1f646-1f3fe-2640-fe0f",
  50203. "uc_greedy": "1f646-1f3fe-2640",
  50204. "shortnames": [":woman_gesturing_ok_medium_dark_skin_tone:"],
  50205. "category": "people"
  50206. },
  50207. ":woman_gesturing_ok_tone5:": {
  50208. "uc_base": "1f646-1f3ff-2640",
  50209. "uc_output": "1f646-1f3ff-200d-2640-fe0f",
  50210. "uc_match": "1f646-1f3ff-2640-fe0f",
  50211. "uc_greedy": "1f646-1f3ff-2640",
  50212. "shortnames": [":woman_gesturing_ok_dark_skin_tone:"],
  50213. "category": "people"
  50214. },
  50215. ":woman_getting_face_massage_tone1:": {
  50216. "uc_base": "1f486-1f3fb-2640",
  50217. "uc_output": "1f486-1f3fb-200d-2640-fe0f",
  50218. "uc_match": "1f486-1f3fb-2640-fe0f",
  50219. "uc_greedy": "1f486-1f3fb-2640",
  50220. "shortnames": [":woman_getting_face_massage_light_skin_tone:"],
  50221. "category": "people"
  50222. },
  50223. ":woman_getting_face_massage_tone2:": {
  50224. "uc_base": "1f486-1f3fc-2640",
  50225. "uc_output": "1f486-1f3fc-200d-2640-fe0f",
  50226. "uc_match": "1f486-1f3fc-2640-fe0f",
  50227. "uc_greedy": "1f486-1f3fc-2640",
  50228. "shortnames": [":woman_getting_face_massage_medium_light_skin_tone:"],
  50229. "category": "people"
  50230. },
  50231. ":woman_getting_face_massage_tone3:": {
  50232. "uc_base": "1f486-1f3fd-2640",
  50233. "uc_output": "1f486-1f3fd-200d-2640-fe0f",
  50234. "uc_match": "1f486-1f3fd-2640-fe0f",
  50235. "uc_greedy": "1f486-1f3fd-2640",
  50236. "shortnames": [":woman_getting_face_massage_medium_skin_tone:"],
  50237. "category": "people"
  50238. },
  50239. ":woman_getting_face_massage_tone4:": {
  50240. "uc_base": "1f486-1f3fe-2640",
  50241. "uc_output": "1f486-1f3fe-200d-2640-fe0f",
  50242. "uc_match": "1f486-1f3fe-2640-fe0f",
  50243. "uc_greedy": "1f486-1f3fe-2640",
  50244. "shortnames": [":woman_getting_face_massage_medium_dark_skin_tone:"],
  50245. "category": "people"
  50246. },
  50247. ":woman_getting_face_massage_tone5:": {
  50248. "uc_base": "1f486-1f3ff-2640",
  50249. "uc_output": "1f486-1f3ff-200d-2640-fe0f",
  50250. "uc_match": "1f486-1f3ff-2640-fe0f",
  50251. "uc_greedy": "1f486-1f3ff-2640",
  50252. "shortnames": [":woman_getting_face_massage_dark_skin_tone:"],
  50253. "category": "people"
  50254. },
  50255. ":woman_getting_haircut_tone1:": {
  50256. "uc_base": "1f487-1f3fb-2640",
  50257. "uc_output": "1f487-1f3fb-200d-2640-fe0f",
  50258. "uc_match": "1f487-1f3fb-2640-fe0f",
  50259. "uc_greedy": "1f487-1f3fb-2640",
  50260. "shortnames": [":woman_getting_haircut_light_skin_tone:"],
  50261. "category": "people"
  50262. },
  50263. ":woman_getting_haircut_tone2:": {
  50264. "uc_base": "1f487-1f3fc-2640",
  50265. "uc_output": "1f487-1f3fc-200d-2640-fe0f",
  50266. "uc_match": "1f487-1f3fc-2640-fe0f",
  50267. "uc_greedy": "1f487-1f3fc-2640",
  50268. "shortnames": [":woman_getting_haircut_medium_light_skin_tone:"],
  50269. "category": "people"
  50270. },
  50271. ":woman_getting_haircut_tone3:": {
  50272. "uc_base": "1f487-1f3fd-2640",
  50273. "uc_output": "1f487-1f3fd-200d-2640-fe0f",
  50274. "uc_match": "1f487-1f3fd-2640-fe0f",
  50275. "uc_greedy": "1f487-1f3fd-2640",
  50276. "shortnames": [":woman_getting_haircut_medium_skin_tone:"],
  50277. "category": "people"
  50278. },
  50279. ":woman_getting_haircut_tone4:": {
  50280. "uc_base": "1f487-1f3fe-2640",
  50281. "uc_output": "1f487-1f3fe-200d-2640-fe0f",
  50282. "uc_match": "1f487-1f3fe-2640-fe0f",
  50283. "uc_greedy": "1f487-1f3fe-2640",
  50284. "shortnames": [":woman_getting_haircut_medium_dark_skin_tone:"],
  50285. "category": "people"
  50286. },
  50287. ":woman_getting_haircut_tone5:": {
  50288. "uc_base": "1f487-1f3ff-2640",
  50289. "uc_output": "1f487-1f3ff-200d-2640-fe0f",
  50290. "uc_match": "1f487-1f3ff-2640-fe0f",
  50291. "uc_greedy": "1f487-1f3ff-2640",
  50292. "shortnames": [":woman_getting_haircut_dark_skin_tone:"],
  50293. "category": "people"
  50294. },
  50295. ":woman_golfing_tone1:": {
  50296. "uc_base": "1f3cc-1f3fb-2640",
  50297. "uc_output": "1f3cc-1f3fb-200d-2640-fe0f",
  50298. "uc_match": "1f3cc-fe0f-1f3fb-2640-fe0f",
  50299. "uc_greedy": "1f3cc-1f3fb-2640",
  50300. "shortnames": [":woman_golfing_light_skin_tone:"],
  50301. "category": "activity"
  50302. },
  50303. ":woman_golfing_tone2:": {
  50304. "uc_base": "1f3cc-1f3fc-2640",
  50305. "uc_output": "1f3cc-1f3fc-200d-2640-fe0f",
  50306. "uc_match": "1f3cc-fe0f-1f3fc-2640-fe0f",
  50307. "uc_greedy": "1f3cc-1f3fc-2640",
  50308. "shortnames": [":woman_golfing_medium_light_skin_tone:"],
  50309. "category": "activity"
  50310. },
  50311. ":woman_golfing_tone3:": {
  50312. "uc_base": "1f3cc-1f3fd-2640",
  50313. "uc_output": "1f3cc-1f3fd-200d-2640-fe0f",
  50314. "uc_match": "1f3cc-fe0f-1f3fd-2640-fe0f",
  50315. "uc_greedy": "1f3cc-1f3fd-2640",
  50316. "shortnames": [":woman_golfing_medium_skin_tone:"],
  50317. "category": "activity"
  50318. },
  50319. ":woman_golfing_tone4:": {
  50320. "uc_base": "1f3cc-1f3fe-2640",
  50321. "uc_output": "1f3cc-1f3fe-200d-2640-fe0f",
  50322. "uc_match": "1f3cc-fe0f-1f3fe-2640-fe0f",
  50323. "uc_greedy": "1f3cc-1f3fe-2640",
  50324. "shortnames": [":woman_golfing_medium_dark_skin_tone:"],
  50325. "category": "activity"
  50326. },
  50327. ":woman_golfing_tone5:": {
  50328. "uc_base": "1f3cc-1f3ff-2640",
  50329. "uc_output": "1f3cc-1f3ff-200d-2640-fe0f",
  50330. "uc_match": "1f3cc-fe0f-1f3ff-2640-fe0f",
  50331. "uc_greedy": "1f3cc-1f3ff-2640",
  50332. "shortnames": [":woman_golfing_dark_skin_tone:"],
  50333. "category": "activity"
  50334. },
  50335. ":woman_guard_tone1:": {
  50336. "uc_base": "1f482-1f3fb-2640",
  50337. "uc_output": "1f482-1f3fb-200d-2640-fe0f",
  50338. "uc_match": "1f482-1f3fb-2640-fe0f",
  50339. "uc_greedy": "1f482-1f3fb-2640",
  50340. "shortnames": [":woman_guard_light_skin_tone:"],
  50341. "category": "people"
  50342. },
  50343. ":woman_guard_tone2:": {
  50344. "uc_base": "1f482-1f3fc-2640",
  50345. "uc_output": "1f482-1f3fc-200d-2640-fe0f",
  50346. "uc_match": "1f482-1f3fc-2640-fe0f",
  50347. "uc_greedy": "1f482-1f3fc-2640",
  50348. "shortnames": [":woman_guard_medium_light_skin_tone:"],
  50349. "category": "people"
  50350. },
  50351. ":woman_guard_tone3:": {
  50352. "uc_base": "1f482-1f3fd-2640",
  50353. "uc_output": "1f482-1f3fd-200d-2640-fe0f",
  50354. "uc_match": "1f482-1f3fd-2640-fe0f",
  50355. "uc_greedy": "1f482-1f3fd-2640",
  50356. "shortnames": [":woman_guard_medium_skin_tone:"],
  50357. "category": "people"
  50358. },
  50359. ":woman_guard_tone4:": {
  50360. "uc_base": "1f482-1f3fe-2640",
  50361. "uc_output": "1f482-1f3fe-200d-2640-fe0f",
  50362. "uc_match": "1f482-1f3fe-2640-fe0f",
  50363. "uc_greedy": "1f482-1f3fe-2640",
  50364. "shortnames": [":woman_guard_medium_dark_skin_tone:"],
  50365. "category": "people"
  50366. },
  50367. ":woman_guard_tone5:": {
  50368. "uc_base": "1f482-1f3ff-2640",
  50369. "uc_output": "1f482-1f3ff-200d-2640-fe0f",
  50370. "uc_match": "1f482-1f3ff-2640-fe0f",
  50371. "uc_greedy": "1f482-1f3ff-2640",
  50372. "shortnames": [":woman_guard_dark_skin_tone:"],
  50373. "category": "people"
  50374. },
  50375. ":woman_health_worker_tone1:": {
  50376. "uc_base": "1f469-1f3fb-2695",
  50377. "uc_output": "1f469-1f3fb-200d-2695-fe0f",
  50378. "uc_match": "1f469-1f3fb-2695-fe0f",
  50379. "uc_greedy": "1f469-1f3fb-2695",
  50380. "shortnames": [":woman_health_worker_light_skin_tone:"],
  50381. "category": "people"
  50382. },
  50383. ":woman_health_worker_tone2:": {
  50384. "uc_base": "1f469-1f3fc-2695",
  50385. "uc_output": "1f469-1f3fc-200d-2695-fe0f",
  50386. "uc_match": "1f469-1f3fc-2695-fe0f",
  50387. "uc_greedy": "1f469-1f3fc-2695",
  50388. "shortnames": [":woman_health_worker_medium_light_skin_tone:"],
  50389. "category": "people"
  50390. },
  50391. ":woman_health_worker_tone3:": {
  50392. "uc_base": "1f469-1f3fd-2695",
  50393. "uc_output": "1f469-1f3fd-200d-2695-fe0f",
  50394. "uc_match": "1f469-1f3fd-2695-fe0f",
  50395. "uc_greedy": "1f469-1f3fd-2695",
  50396. "shortnames": [":woman_health_worker_medium_skin_tone:"],
  50397. "category": "people"
  50398. },
  50399. ":woman_health_worker_tone4:": {
  50400. "uc_base": "1f469-1f3fe-2695",
  50401. "uc_output": "1f469-1f3fe-200d-2695-fe0f",
  50402. "uc_match": "1f469-1f3fe-2695-fe0f",
  50403. "uc_greedy": "1f469-1f3fe-2695",
  50404. "shortnames": [":woman_health_worker_medium_dark_skin_tone:"],
  50405. "category": "people"
  50406. },
  50407. ":woman_health_worker_tone5:": {
  50408. "uc_base": "1f469-1f3ff-2695",
  50409. "uc_output": "1f469-1f3ff-200d-2695-fe0f",
  50410. "uc_match": "1f469-1f3ff-2695-fe0f",
  50411. "uc_greedy": "1f469-1f3ff-2695",
  50412. "shortnames": [":woman_health_worker_dark_skin_tone:"],
  50413. "category": "people"
  50414. },
  50415. ":woman_in_lotus_position_tone1:": {
  50416. "uc_base": "1f9d8-1f3fb-2640",
  50417. "uc_output": "1f9d8-1f3fb-200d-2640-fe0f",
  50418. "uc_match": "1f9d8-1f3fb-2640-fe0f",
  50419. "uc_greedy": "1f9d8-1f3fb-2640",
  50420. "shortnames": [":woman_in_lotus_position_light_skin_tone:"],
  50421. "category": "activity"
  50422. },
  50423. ":woman_in_lotus_position_tone2:": {
  50424. "uc_base": "1f9d8-1f3fc-2640",
  50425. "uc_output": "1f9d8-1f3fc-200d-2640-fe0f",
  50426. "uc_match": "1f9d8-1f3fc-2640-fe0f",
  50427. "uc_greedy": "1f9d8-1f3fc-2640",
  50428. "shortnames": [":woman_in_lotus_position_medium_light_skin_tone:"],
  50429. "category": "activity"
  50430. },
  50431. ":woman_in_lotus_position_tone3:": {
  50432. "uc_base": "1f9d8-1f3fd-2640",
  50433. "uc_output": "1f9d8-1f3fd-200d-2640-fe0f",
  50434. "uc_match": "1f9d8-1f3fd-2640-fe0f",
  50435. "uc_greedy": "1f9d8-1f3fd-2640",
  50436. "shortnames": [":woman_in_lotus_position_medium_skin_tone:"],
  50437. "category": "activity"
  50438. },
  50439. ":woman_in_lotus_position_tone4:": {
  50440. "uc_base": "1f9d8-1f3fe-2640",
  50441. "uc_output": "1f9d8-1f3fe-200d-2640-fe0f",
  50442. "uc_match": "1f9d8-1f3fe-2640-fe0f",
  50443. "uc_greedy": "1f9d8-1f3fe-2640",
  50444. "shortnames": [":woman_in_lotus_position_medium_dark_skin_tone:"],
  50445. "category": "activity"
  50446. },
  50447. ":woman_in_lotus_position_tone5:": {
  50448. "uc_base": "1f9d8-1f3ff-2640",
  50449. "uc_output": "1f9d8-1f3ff-200d-2640-fe0f",
  50450. "uc_match": "1f9d8-1f3ff-2640-fe0f",
  50451. "uc_greedy": "1f9d8-1f3ff-2640",
  50452. "shortnames": [":woman_in_lotus_position_dark_skin_tone:"],
  50453. "category": "activity"
  50454. },
  50455. ":woman_in_steamy_room_tone1:": {
  50456. "uc_base": "1f9d6-1f3fb-2640",
  50457. "uc_output": "1f9d6-1f3fb-200d-2640-fe0f",
  50458. "uc_match": "1f9d6-1f3fb-2640-fe0f",
  50459. "uc_greedy": "1f9d6-1f3fb-2640",
  50460. "shortnames": [":woman_in_steamy_room_light_skin_tone:"],
  50461. "category": "people"
  50462. },
  50463. ":woman_in_steamy_room_tone2:": {
  50464. "uc_base": "1f9d6-1f3fc-2640",
  50465. "uc_output": "1f9d6-1f3fc-200d-2640-fe0f",
  50466. "uc_match": "1f9d6-1f3fc-2640-fe0f",
  50467. "uc_greedy": "1f9d6-1f3fc-2640",
  50468. "shortnames": [":woman_in_steamy_room_medium_light_skin_tone:"],
  50469. "category": "people"
  50470. },
  50471. ":woman_in_steamy_room_tone3:": {
  50472. "uc_base": "1f9d6-1f3fd-2640",
  50473. "uc_output": "1f9d6-1f3fd-200d-2640-fe0f",
  50474. "uc_match": "1f9d6-1f3fd-2640-fe0f",
  50475. "uc_greedy": "1f9d6-1f3fd-2640",
  50476. "shortnames": [":woman_in_steamy_room_medium_skin_tone:"],
  50477. "category": "people"
  50478. },
  50479. ":woman_in_steamy_room_tone4:": {
  50480. "uc_base": "1f9d6-1f3fe-2640",
  50481. "uc_output": "1f9d6-1f3fe-200d-2640-fe0f",
  50482. "uc_match": "1f9d6-1f3fe-2640-fe0f",
  50483. "uc_greedy": "1f9d6-1f3fe-2640",
  50484. "shortnames": [":woman_in_steamy_room_medium_dark_skin_tone:"],
  50485. "category": "people"
  50486. },
  50487. ":woman_in_steamy_room_tone5:": {
  50488. "uc_base": "1f9d6-1f3ff-2640",
  50489. "uc_output": "1f9d6-1f3ff-200d-2640-fe0f",
  50490. "uc_match": "1f9d6-1f3ff-2640-fe0f",
  50491. "uc_greedy": "1f9d6-1f3ff-2640",
  50492. "shortnames": [":woman_in_steamy_room_dark_skin_tone:"],
  50493. "category": "people"
  50494. },
  50495. ":woman_judge_tone1:": {
  50496. "uc_base": "1f469-1f3fb-2696",
  50497. "uc_output": "1f469-1f3fb-200d-2696-fe0f",
  50498. "uc_match": "1f469-1f3fb-2696-fe0f",
  50499. "uc_greedy": "1f469-1f3fb-2696",
  50500. "shortnames": [":woman_judge_light_skin_tone:"],
  50501. "category": "people"
  50502. },
  50503. ":woman_judge_tone2:": {
  50504. "uc_base": "1f469-1f3fc-2696",
  50505. "uc_output": "1f469-1f3fc-200d-2696-fe0f",
  50506. "uc_match": "1f469-1f3fc-2696-fe0f",
  50507. "uc_greedy": "1f469-1f3fc-2696",
  50508. "shortnames": [":woman_judge_medium_light_skin_tone:"],
  50509. "category": "people"
  50510. },
  50511. ":woman_judge_tone3:": {
  50512. "uc_base": "1f469-1f3fd-2696",
  50513. "uc_output": "1f469-1f3fd-200d-2696-fe0f",
  50514. "uc_match": "1f469-1f3fd-2696-fe0f",
  50515. "uc_greedy": "1f469-1f3fd-2696",
  50516. "shortnames": [":woman_judge_medium_skin_tone:"],
  50517. "category": "people"
  50518. },
  50519. ":woman_judge_tone4:": {
  50520. "uc_base": "1f469-1f3fe-2696",
  50521. "uc_output": "1f469-1f3fe-200d-2696-fe0f",
  50522. "uc_match": "1f469-1f3fe-2696-fe0f",
  50523. "uc_greedy": "1f469-1f3fe-2696",
  50524. "shortnames": [":woman_judge_medium_dark_skin_tone:"],
  50525. "category": "people"
  50526. },
  50527. ":woman_judge_tone5:": {
  50528. "uc_base": "1f469-1f3ff-2696",
  50529. "uc_output": "1f469-1f3ff-200d-2696-fe0f",
  50530. "uc_match": "1f469-1f3ff-2696-fe0f",
  50531. "uc_greedy": "1f469-1f3ff-2696",
  50532. "shortnames": [":woman_judge_dark_skin_tone:"],
  50533. "category": "people"
  50534. },
  50535. ":woman_juggling_tone1:": {
  50536. "uc_base": "1f939-1f3fb-2640",
  50537. "uc_output": "1f939-1f3fb-200d-2640-fe0f",
  50538. "uc_match": "1f939-1f3fb-2640-fe0f",
  50539. "uc_greedy": "1f939-1f3fb-2640",
  50540. "shortnames": [":woman_juggling_light_skin_tone:"],
  50541. "category": "activity"
  50542. },
  50543. ":woman_juggling_tone2:": {
  50544. "uc_base": "1f939-1f3fc-2640",
  50545. "uc_output": "1f939-1f3fc-200d-2640-fe0f",
  50546. "uc_match": "1f939-1f3fc-2640-fe0f",
  50547. "uc_greedy": "1f939-1f3fc-2640",
  50548. "shortnames": [":woman_juggling_medium_light_skin_tone:"],
  50549. "category": "activity"
  50550. },
  50551. ":woman_juggling_tone3:": {
  50552. "uc_base": "1f939-1f3fd-2640",
  50553. "uc_output": "1f939-1f3fd-200d-2640-fe0f",
  50554. "uc_match": "1f939-1f3fd-2640-fe0f",
  50555. "uc_greedy": "1f939-1f3fd-2640",
  50556. "shortnames": [":woman_juggling_medium_skin_tone:"],
  50557. "category": "activity"
  50558. },
  50559. ":woman_juggling_tone4:": {
  50560. "uc_base": "1f939-1f3fe-2640",
  50561. "uc_output": "1f939-1f3fe-200d-2640-fe0f",
  50562. "uc_match": "1f939-1f3fe-2640-fe0f",
  50563. "uc_greedy": "1f939-1f3fe-2640",
  50564. "shortnames": [":woman_juggling_medium_dark_skin_tone:"],
  50565. "category": "activity"
  50566. },
  50567. ":woman_juggling_tone5:": {
  50568. "uc_base": "1f939-1f3ff-2640",
  50569. "uc_output": "1f939-1f3ff-200d-2640-fe0f",
  50570. "uc_match": "1f939-1f3ff-2640-fe0f",
  50571. "uc_greedy": "1f939-1f3ff-2640",
  50572. "shortnames": [":woman_juggling_dark_skin_tone:"],
  50573. "category": "activity"
  50574. },
  50575. ":woman_lifting_weights_tone1:": {
  50576. "uc_base": "1f3cb-1f3fb-2640",
  50577. "uc_output": "1f3cb-1f3fb-200d-2640-fe0f",
  50578. "uc_match": "1f3cb-fe0f-1f3fb-2640-fe0f",
  50579. "uc_greedy": "1f3cb-1f3fb-2640",
  50580. "shortnames": [":woman_lifting_weights_light_skin_tone:"],
  50581. "category": "activity"
  50582. },
  50583. ":woman_lifting_weights_tone2:": {
  50584. "uc_base": "1f3cb-1f3fc-2640",
  50585. "uc_output": "1f3cb-1f3fc-200d-2640-fe0f",
  50586. "uc_match": "1f3cb-fe0f-1f3fc-2640-fe0f",
  50587. "uc_greedy": "1f3cb-1f3fc-2640",
  50588. "shortnames": [":woman_lifting_weights_medium_light_skin_tone:"],
  50589. "category": "activity"
  50590. },
  50591. ":woman_lifting_weights_tone3:": {
  50592. "uc_base": "1f3cb-1f3fd-2640",
  50593. "uc_output": "1f3cb-1f3fd-200d-2640-fe0f",
  50594. "uc_match": "1f3cb-fe0f-1f3fd-2640-fe0f",
  50595. "uc_greedy": "1f3cb-1f3fd-2640",
  50596. "shortnames": [":woman_lifting_weights_medium_skin_tone:"],
  50597. "category": "activity"
  50598. },
  50599. ":woman_lifting_weights_tone4:": {
  50600. "uc_base": "1f3cb-1f3fe-2640",
  50601. "uc_output": "1f3cb-1f3fe-200d-2640-fe0f",
  50602. "uc_match": "1f3cb-fe0f-1f3fe-2640-fe0f",
  50603. "uc_greedy": "1f3cb-1f3fe-2640",
  50604. "shortnames": [":woman_lifting_weights_medium_dark_skin_tone:"],
  50605. "category": "activity"
  50606. },
  50607. ":woman_lifting_weights_tone5:": {
  50608. "uc_base": "1f3cb-1f3ff-2640",
  50609. "uc_output": "1f3cb-1f3ff-200d-2640-fe0f",
  50610. "uc_match": "1f3cb-fe0f-1f3ff-2640-fe0f",
  50611. "uc_greedy": "1f3cb-1f3ff-2640",
  50612. "shortnames": [":woman_lifting_weights_dark_skin_tone:"],
  50613. "category": "activity"
  50614. },
  50615. ":woman_mage_tone1:": {
  50616. "uc_base": "1f9d9-1f3fb-2640",
  50617. "uc_output": "1f9d9-1f3fb-200d-2640-fe0f",
  50618. "uc_match": "1f9d9-1f3fb-2640-fe0f",
  50619. "uc_greedy": "1f9d9-1f3fb-2640",
  50620. "shortnames": [":woman_mage_light_skin_tone:"],
  50621. "category": "people"
  50622. },
  50623. ":woman_mage_tone2:": {
  50624. "uc_base": "1f9d9-1f3fc-2640",
  50625. "uc_output": "1f9d9-1f3fc-200d-2640-fe0f",
  50626. "uc_match": "1f9d9-1f3fc-2640-fe0f",
  50627. "uc_greedy": "1f9d9-1f3fc-2640",
  50628. "shortnames": [":woman_mage_medium_light_skin_tone:"],
  50629. "category": "people"
  50630. },
  50631. ":woman_mage_tone3:": {
  50632. "uc_base": "1f9d9-1f3fd-2640",
  50633. "uc_output": "1f9d9-1f3fd-200d-2640-fe0f",
  50634. "uc_match": "1f9d9-1f3fd-2640-fe0f",
  50635. "uc_greedy": "1f9d9-1f3fd-2640",
  50636. "shortnames": [":woman_mage_medium_skin_tone:"],
  50637. "category": "people"
  50638. },
  50639. ":woman_mage_tone4:": {
  50640. "uc_base": "1f9d9-1f3fe-2640",
  50641. "uc_output": "1f9d9-1f3fe-200d-2640-fe0f",
  50642. "uc_match": "1f9d9-1f3fe-2640-fe0f",
  50643. "uc_greedy": "1f9d9-1f3fe-2640",
  50644. "shortnames": [":woman_mage_medium_dark_skin_tone:"],
  50645. "category": "people"
  50646. },
  50647. ":woman_mage_tone5:": {
  50648. "uc_base": "1f9d9-1f3ff-2640",
  50649. "uc_output": "1f9d9-1f3ff-200d-2640-fe0f",
  50650. "uc_match": "1f9d9-1f3ff-2640-fe0f",
  50651. "uc_greedy": "1f9d9-1f3ff-2640",
  50652. "shortnames": [":woman_mage_dark_skin_tone:"],
  50653. "category": "people"
  50654. },
  50655. ":woman_mountain_biking_tone1:": {
  50656. "uc_base": "1f6b5-1f3fb-2640",
  50657. "uc_output": "1f6b5-1f3fb-200d-2640-fe0f",
  50658. "uc_match": "1f6b5-1f3fb-2640-fe0f",
  50659. "uc_greedy": "1f6b5-1f3fb-2640",
  50660. "shortnames": [":woman_mountain_biking_light_skin_tone:"],
  50661. "category": "activity"
  50662. },
  50663. ":woman_mountain_biking_tone2:": {
  50664. "uc_base": "1f6b5-1f3fc-2640",
  50665. "uc_output": "1f6b5-1f3fc-200d-2640-fe0f",
  50666. "uc_match": "1f6b5-1f3fc-2640-fe0f",
  50667. "uc_greedy": "1f6b5-1f3fc-2640",
  50668. "shortnames": [":woman_mountain_biking_medium_light_skin_tone:"],
  50669. "category": "activity"
  50670. },
  50671. ":woman_mountain_biking_tone3:": {
  50672. "uc_base": "1f6b5-1f3fd-2640",
  50673. "uc_output": "1f6b5-1f3fd-200d-2640-fe0f",
  50674. "uc_match": "1f6b5-1f3fd-2640-fe0f",
  50675. "uc_greedy": "1f6b5-1f3fd-2640",
  50676. "shortnames": [":woman_mountain_biking_medium_skin_tone:"],
  50677. "category": "activity"
  50678. },
  50679. ":woman_mountain_biking_tone4:": {
  50680. "uc_base": "1f6b5-1f3fe-2640",
  50681. "uc_output": "1f6b5-1f3fe-200d-2640-fe0f",
  50682. "uc_match": "1f6b5-1f3fe-2640-fe0f",
  50683. "uc_greedy": "1f6b5-1f3fe-2640",
  50684. "shortnames": [":woman_mountain_biking_medium_dark_skin_tone:"],
  50685. "category": "activity"
  50686. },
  50687. ":woman_mountain_biking_tone5:": {
  50688. "uc_base": "1f6b5-1f3ff-2640",
  50689. "uc_output": "1f6b5-1f3ff-200d-2640-fe0f",
  50690. "uc_match": "1f6b5-1f3ff-2640-fe0f",
  50691. "uc_greedy": "1f6b5-1f3ff-2640",
  50692. "shortnames": [":woman_mountain_biking_dark_skin_tone:"],
  50693. "category": "activity"
  50694. },
  50695. ":woman_pilot_tone1:": {
  50696. "uc_base": "1f469-1f3fb-2708",
  50697. "uc_output": "1f469-1f3fb-200d-2708-fe0f",
  50698. "uc_match": "1f469-1f3fb-2708-fe0f",
  50699. "uc_greedy": "1f469-1f3fb-2708",
  50700. "shortnames": [":woman_pilot_light_skin_tone:"],
  50701. "category": "people"
  50702. },
  50703. ":woman_pilot_tone2:": {
  50704. "uc_base": "1f469-1f3fc-2708",
  50705. "uc_output": "1f469-1f3fc-200d-2708-fe0f",
  50706. "uc_match": "1f469-1f3fc-2708-fe0f",
  50707. "uc_greedy": "1f469-1f3fc-2708",
  50708. "shortnames": [":woman_pilot_medium_light_skin_tone:"],
  50709. "category": "people"
  50710. },
  50711. ":woman_pilot_tone3:": {
  50712. "uc_base": "1f469-1f3fd-2708",
  50713. "uc_output": "1f469-1f3fd-200d-2708-fe0f",
  50714. "uc_match": "1f469-1f3fd-2708-fe0f",
  50715. "uc_greedy": "1f469-1f3fd-2708",
  50716. "shortnames": [":woman_pilot_medium_skin_tone:"],
  50717. "category": "people"
  50718. },
  50719. ":woman_pilot_tone4:": {
  50720. "uc_base": "1f469-1f3fe-2708",
  50721. "uc_output": "1f469-1f3fe-200d-2708-fe0f",
  50722. "uc_match": "1f469-1f3fe-2708-fe0f",
  50723. "uc_greedy": "1f469-1f3fe-2708",
  50724. "shortnames": [":woman_pilot_medium_dark_skin_tone:"],
  50725. "category": "people"
  50726. },
  50727. ":woman_pilot_tone5:": {
  50728. "uc_base": "1f469-1f3ff-2708",
  50729. "uc_output": "1f469-1f3ff-200d-2708-fe0f",
  50730. "uc_match": "1f469-1f3ff-2708-fe0f",
  50731. "uc_greedy": "1f469-1f3ff-2708",
  50732. "shortnames": [":woman_pilot_dark_skin_tone:"],
  50733. "category": "people"
  50734. },
  50735. ":woman_playing_handball_tone1:": {
  50736. "uc_base": "1f93e-1f3fb-2640",
  50737. "uc_output": "1f93e-1f3fb-200d-2640-fe0f",
  50738. "uc_match": "1f93e-1f3fb-2640-fe0f",
  50739. "uc_greedy": "1f93e-1f3fb-2640",
  50740. "shortnames": [":woman_playing_handball_light_skin_tone:"],
  50741. "category": "activity"
  50742. },
  50743. ":woman_playing_handball_tone2:": {
  50744. "uc_base": "1f93e-1f3fc-2640",
  50745. "uc_output": "1f93e-1f3fc-200d-2640-fe0f",
  50746. "uc_match": "1f93e-1f3fc-2640-fe0f",
  50747. "uc_greedy": "1f93e-1f3fc-2640",
  50748. "shortnames": [":woman_playing_handball_medium_light_skin_tone:"],
  50749. "category": "activity"
  50750. },
  50751. ":woman_playing_handball_tone3:": {
  50752. "uc_base": "1f93e-1f3fd-2640",
  50753. "uc_output": "1f93e-1f3fd-200d-2640-fe0f",
  50754. "uc_match": "1f93e-1f3fd-2640-fe0f",
  50755. "uc_greedy": "1f93e-1f3fd-2640",
  50756. "shortnames": [":woman_playing_handball_medium_skin_tone:"],
  50757. "category": "activity"
  50758. },
  50759. ":woman_playing_handball_tone4:": {
  50760. "uc_base": "1f93e-1f3fe-2640",
  50761. "uc_output": "1f93e-1f3fe-200d-2640-fe0f",
  50762. "uc_match": "1f93e-1f3fe-2640-fe0f",
  50763. "uc_greedy": "1f93e-1f3fe-2640",
  50764. "shortnames": [":woman_playing_handball_medium_dark_skin_tone:"],
  50765. "category": "activity"
  50766. },
  50767. ":woman_playing_handball_tone5:": {
  50768. "uc_base": "1f93e-1f3ff-2640",
  50769. "uc_output": "1f93e-1f3ff-200d-2640-fe0f",
  50770. "uc_match": "1f93e-1f3ff-2640-fe0f",
  50771. "uc_greedy": "1f93e-1f3ff-2640",
  50772. "shortnames": [":woman_playing_handball_dark_skin_tone:"],
  50773. "category": "activity"
  50774. },
  50775. ":woman_playing_water_polo_tone1:": {
  50776. "uc_base": "1f93d-1f3fb-2640",
  50777. "uc_output": "1f93d-1f3fb-200d-2640-fe0f",
  50778. "uc_match": "1f93d-1f3fb-2640-fe0f",
  50779. "uc_greedy": "1f93d-1f3fb-2640",
  50780. "shortnames": [":woman_playing_water_polo_light_skin_tone:"],
  50781. "category": "activity"
  50782. },
  50783. ":woman_playing_water_polo_tone2:": {
  50784. "uc_base": "1f93d-1f3fc-2640",
  50785. "uc_output": "1f93d-1f3fc-200d-2640-fe0f",
  50786. "uc_match": "1f93d-1f3fc-2640-fe0f",
  50787. "uc_greedy": "1f93d-1f3fc-2640",
  50788. "shortnames": [":woman_playing_water_polo_medium_light_skin_tone:"],
  50789. "category": "activity"
  50790. },
  50791. ":woman_playing_water_polo_tone3:": {
  50792. "uc_base": "1f93d-1f3fd-2640",
  50793. "uc_output": "1f93d-1f3fd-200d-2640-fe0f",
  50794. "uc_match": "1f93d-1f3fd-2640-fe0f",
  50795. "uc_greedy": "1f93d-1f3fd-2640",
  50796. "shortnames": [":woman_playing_water_polo_medium_skin_tone:"],
  50797. "category": "activity"
  50798. },
  50799. ":woman_playing_water_polo_tone4:": {
  50800. "uc_base": "1f93d-1f3fe-2640",
  50801. "uc_output": "1f93d-1f3fe-200d-2640-fe0f",
  50802. "uc_match": "1f93d-1f3fe-2640-fe0f",
  50803. "uc_greedy": "1f93d-1f3fe-2640",
  50804. "shortnames": [":woman_playing_water_polo_medium_dark_skin_tone:"],
  50805. "category": "activity"
  50806. },
  50807. ":woman_playing_water_polo_tone5:": {
  50808. "uc_base": "1f93d-1f3ff-2640",
  50809. "uc_output": "1f93d-1f3ff-200d-2640-fe0f",
  50810. "uc_match": "1f93d-1f3ff-2640-fe0f",
  50811. "uc_greedy": "1f93d-1f3ff-2640",
  50812. "shortnames": [":woman_playing_water_polo_dark_skin_tone:"],
  50813. "category": "activity"
  50814. },
  50815. ":woman_police_officer_tone1:": {
  50816. "uc_base": "1f46e-1f3fb-2640",
  50817. "uc_output": "1f46e-1f3fb-200d-2640-fe0f",
  50818. "uc_match": "1f46e-1f3fb-2640-fe0f",
  50819. "uc_greedy": "1f46e-1f3fb-2640",
  50820. "shortnames": [":woman_police_officer_light_skin_tone:"],
  50821. "category": "people"
  50822. },
  50823. ":woman_police_officer_tone2:": {
  50824. "uc_base": "1f46e-1f3fc-2640",
  50825. "uc_output": "1f46e-1f3fc-200d-2640-fe0f",
  50826. "uc_match": "1f46e-1f3fc-2640-fe0f",
  50827. "uc_greedy": "1f46e-1f3fc-2640",
  50828. "shortnames": [":woman_police_officer_medium_light_skin_tone:"],
  50829. "category": "people"
  50830. },
  50831. ":woman_police_officer_tone3:": {
  50832. "uc_base": "1f46e-1f3fd-2640",
  50833. "uc_output": "1f46e-1f3fd-200d-2640-fe0f",
  50834. "uc_match": "1f46e-1f3fd-2640-fe0f",
  50835. "uc_greedy": "1f46e-1f3fd-2640",
  50836. "shortnames": [":woman_police_officer_medium_skin_tone:"],
  50837. "category": "people"
  50838. },
  50839. ":woman_police_officer_tone4:": {
  50840. "uc_base": "1f46e-1f3fe-2640",
  50841. "uc_output": "1f46e-1f3fe-200d-2640-fe0f",
  50842. "uc_match": "1f46e-1f3fe-2640-fe0f",
  50843. "uc_greedy": "1f46e-1f3fe-2640",
  50844. "shortnames": [":woman_police_officer_medium_dark_skin_tone:"],
  50845. "category": "people"
  50846. },
  50847. ":woman_police_officer_tone5:": {
  50848. "uc_base": "1f46e-1f3ff-2640",
  50849. "uc_output": "1f46e-1f3ff-200d-2640-fe0f",
  50850. "uc_match": "1f46e-1f3ff-2640-fe0f",
  50851. "uc_greedy": "1f46e-1f3ff-2640",
  50852. "shortnames": [":woman_police_officer_dark_skin_tone:"],
  50853. "category": "people"
  50854. },
  50855. ":woman_pouting_tone1:": {
  50856. "uc_base": "1f64e-1f3fb-2640",
  50857. "uc_output": "1f64e-1f3fb-200d-2640-fe0f",
  50858. "uc_match": "1f64e-1f3fb-2640-fe0f",
  50859. "uc_greedy": "1f64e-1f3fb-2640",
  50860. "shortnames": [":woman_pouting_light_skin_tone:"],
  50861. "category": "people"
  50862. },
  50863. ":woman_pouting_tone2:": {
  50864. "uc_base": "1f64e-1f3fc-2640",
  50865. "uc_output": "1f64e-1f3fc-200d-2640-fe0f",
  50866. "uc_match": "1f64e-1f3fc-2640-fe0f",
  50867. "uc_greedy": "1f64e-1f3fc-2640",
  50868. "shortnames": [":woman_pouting_medium_light_skin_tone:"],
  50869. "category": "people"
  50870. },
  50871. ":woman_pouting_tone3:": {
  50872. "uc_base": "1f64e-1f3fd-2640",
  50873. "uc_output": "1f64e-1f3fd-200d-2640-fe0f",
  50874. "uc_match": "1f64e-1f3fd-2640-fe0f",
  50875. "uc_greedy": "1f64e-1f3fd-2640",
  50876. "shortnames": [":woman_pouting_medium_skin_tone:"],
  50877. "category": "people"
  50878. },
  50879. ":woman_pouting_tone4:": {
  50880. "uc_base": "1f64e-1f3fe-2640",
  50881. "uc_output": "1f64e-1f3fe-200d-2640-fe0f",
  50882. "uc_match": "1f64e-1f3fe-2640-fe0f",
  50883. "uc_greedy": "1f64e-1f3fe-2640",
  50884. "shortnames": [":woman_pouting_medium_dark_skin_tone:"],
  50885. "category": "people"
  50886. },
  50887. ":woman_pouting_tone5:": {
  50888. "uc_base": "1f64e-1f3ff-2640",
  50889. "uc_output": "1f64e-1f3ff-200d-2640-fe0f",
  50890. "uc_match": "1f64e-1f3ff-2640-fe0f",
  50891. "uc_greedy": "1f64e-1f3ff-2640",
  50892. "shortnames": [":woman_pouting_dark_skin_tone:"],
  50893. "category": "people"
  50894. },
  50895. ":woman_raising_hand_tone1:": {
  50896. "uc_base": "1f64b-1f3fb-2640",
  50897. "uc_output": "1f64b-1f3fb-200d-2640-fe0f",
  50898. "uc_match": "1f64b-1f3fb-2640-fe0f",
  50899. "uc_greedy": "1f64b-1f3fb-2640",
  50900. "shortnames": [":woman_raising_hand_light_skin_tone:"],
  50901. "category": "people"
  50902. },
  50903. ":woman_raising_hand_tone2:": {
  50904. "uc_base": "1f64b-1f3fc-2640",
  50905. "uc_output": "1f64b-1f3fc-200d-2640-fe0f",
  50906. "uc_match": "1f64b-1f3fc-2640-fe0f",
  50907. "uc_greedy": "1f64b-1f3fc-2640",
  50908. "shortnames": [":woman_raising_hand_medium_light_skin_tone:"],
  50909. "category": "people"
  50910. },
  50911. ":woman_raising_hand_tone3:": {
  50912. "uc_base": "1f64b-1f3fd-2640",
  50913. "uc_output": "1f64b-1f3fd-200d-2640-fe0f",
  50914. "uc_match": "1f64b-1f3fd-2640-fe0f",
  50915. "uc_greedy": "1f64b-1f3fd-2640",
  50916. "shortnames": [":woman_raising_hand_medium_skin_tone:"],
  50917. "category": "people"
  50918. },
  50919. ":woman_raising_hand_tone4:": {
  50920. "uc_base": "1f64b-1f3fe-2640",
  50921. "uc_output": "1f64b-1f3fe-200d-2640-fe0f",
  50922. "uc_match": "1f64b-1f3fe-2640-fe0f",
  50923. "uc_greedy": "1f64b-1f3fe-2640",
  50924. "shortnames": [":woman_raising_hand_medium_dark_skin_tone:"],
  50925. "category": "people"
  50926. },
  50927. ":woman_raising_hand_tone5:": {
  50928. "uc_base": "1f64b-1f3ff-2640",
  50929. "uc_output": "1f64b-1f3ff-200d-2640-fe0f",
  50930. "uc_match": "1f64b-1f3ff-2640-fe0f",
  50931. "uc_greedy": "1f64b-1f3ff-2640",
  50932. "shortnames": [":woman_raising_hand_dark_skin_tone:"],
  50933. "category": "people"
  50934. },
  50935. ":woman_rowing_boat_tone1:": {
  50936. "uc_base": "1f6a3-1f3fb-2640",
  50937. "uc_output": "1f6a3-1f3fb-200d-2640-fe0f",
  50938. "uc_match": "1f6a3-1f3fb-2640-fe0f",
  50939. "uc_greedy": "1f6a3-1f3fb-2640",
  50940. "shortnames": [":woman_rowing_boat_light_skin_tone:"],
  50941. "category": "activity"
  50942. },
  50943. ":woman_rowing_boat_tone2:": {
  50944. "uc_base": "1f6a3-1f3fc-2640",
  50945. "uc_output": "1f6a3-1f3fc-200d-2640-fe0f",
  50946. "uc_match": "1f6a3-1f3fc-2640-fe0f",
  50947. "uc_greedy": "1f6a3-1f3fc-2640",
  50948. "shortnames": [":woman_rowing_boat_medium_light_skin_tone:"],
  50949. "category": "activity"
  50950. },
  50951. ":woman_rowing_boat_tone3:": {
  50952. "uc_base": "1f6a3-1f3fd-2640",
  50953. "uc_output": "1f6a3-1f3fd-200d-2640-fe0f",
  50954. "uc_match": "1f6a3-1f3fd-2640-fe0f",
  50955. "uc_greedy": "1f6a3-1f3fd-2640",
  50956. "shortnames": [":woman_rowing_boat_medium_skin_tone:"],
  50957. "category": "activity"
  50958. },
  50959. ":woman_rowing_boat_tone4:": {
  50960. "uc_base": "1f6a3-1f3fe-2640",
  50961. "uc_output": "1f6a3-1f3fe-200d-2640-fe0f",
  50962. "uc_match": "1f6a3-1f3fe-2640-fe0f",
  50963. "uc_greedy": "1f6a3-1f3fe-2640",
  50964. "shortnames": [":woman_rowing_boat_medium_dark_skin_tone:"],
  50965. "category": "activity"
  50966. },
  50967. ":woman_rowing_boat_tone5:": {
  50968. "uc_base": "1f6a3-1f3ff-2640",
  50969. "uc_output": "1f6a3-1f3ff-200d-2640-fe0f",
  50970. "uc_match": "1f6a3-1f3ff-2640-fe0f",
  50971. "uc_greedy": "1f6a3-1f3ff-2640",
  50972. "shortnames": [":woman_rowing_boat_dark_skin_tone:"],
  50973. "category": "activity"
  50974. },
  50975. ":woman_running_tone1:": {
  50976. "uc_base": "1f3c3-1f3fb-2640",
  50977. "uc_output": "1f3c3-1f3fb-200d-2640-fe0f",
  50978. "uc_match": "1f3c3-1f3fb-2640-fe0f",
  50979. "uc_greedy": "1f3c3-1f3fb-2640",
  50980. "shortnames": [":woman_running_light_skin_tone:"],
  50981. "category": "people"
  50982. },
  50983. ":woman_running_tone2:": {
  50984. "uc_base": "1f3c3-1f3fc-2640",
  50985. "uc_output": "1f3c3-1f3fc-200d-2640-fe0f",
  50986. "uc_match": "1f3c3-1f3fc-2640-fe0f",
  50987. "uc_greedy": "1f3c3-1f3fc-2640",
  50988. "shortnames": [":woman_running_medium_light_skin_tone:"],
  50989. "category": "people"
  50990. },
  50991. ":woman_running_tone3:": {
  50992. "uc_base": "1f3c3-1f3fd-2640",
  50993. "uc_output": "1f3c3-1f3fd-200d-2640-fe0f",
  50994. "uc_match": "1f3c3-1f3fd-2640-fe0f",
  50995. "uc_greedy": "1f3c3-1f3fd-2640",
  50996. "shortnames": [":woman_running_medium_skin_tone:"],
  50997. "category": "people"
  50998. },
  50999. ":woman_running_tone4:": {
  51000. "uc_base": "1f3c3-1f3fe-2640",
  51001. "uc_output": "1f3c3-1f3fe-200d-2640-fe0f",
  51002. "uc_match": "1f3c3-1f3fe-2640-fe0f",
  51003. "uc_greedy": "1f3c3-1f3fe-2640",
  51004. "shortnames": [":woman_running_medium_dark_skin_tone:"],
  51005. "category": "people"
  51006. },
  51007. ":woman_running_tone5:": {
  51008. "uc_base": "1f3c3-1f3ff-2640",
  51009. "uc_output": "1f3c3-1f3ff-200d-2640-fe0f",
  51010. "uc_match": "1f3c3-1f3ff-2640-fe0f",
  51011. "uc_greedy": "1f3c3-1f3ff-2640",
  51012. "shortnames": [":woman_running_dark_skin_tone:"],
  51013. "category": "people"
  51014. },
  51015. ":woman_shrugging_tone1:": {
  51016. "uc_base": "1f937-1f3fb-2640",
  51017. "uc_output": "1f937-1f3fb-200d-2640-fe0f",
  51018. "uc_match": "1f937-1f3fb-2640-fe0f",
  51019. "uc_greedy": "1f937-1f3fb-2640",
  51020. "shortnames": [":woman_shrugging_light_skin_tone:"],
  51021. "category": "people"
  51022. },
  51023. ":woman_shrugging_tone2:": {
  51024. "uc_base": "1f937-1f3fc-2640",
  51025. "uc_output": "1f937-1f3fc-200d-2640-fe0f",
  51026. "uc_match": "1f937-1f3fc-2640-fe0f",
  51027. "uc_greedy": "1f937-1f3fc-2640",
  51028. "shortnames": [":woman_shrugging_medium_light_skin_tone:"],
  51029. "category": "people"
  51030. },
  51031. ":woman_shrugging_tone3:": {
  51032. "uc_base": "1f937-1f3fd-2640",
  51033. "uc_output": "1f937-1f3fd-200d-2640-fe0f",
  51034. "uc_match": "1f937-1f3fd-2640-fe0f",
  51035. "uc_greedy": "1f937-1f3fd-2640",
  51036. "shortnames": [":woman_shrugging_medium_skin_tone:"],
  51037. "category": "people"
  51038. },
  51039. ":woman_shrugging_tone4:": {
  51040. "uc_base": "1f937-1f3fe-2640",
  51041. "uc_output": "1f937-1f3fe-200d-2640-fe0f",
  51042. "uc_match": "1f937-1f3fe-2640-fe0f",
  51043. "uc_greedy": "1f937-1f3fe-2640",
  51044. "shortnames": [":woman_shrugging_medium_dark_skin_tone:"],
  51045. "category": "people"
  51046. },
  51047. ":woman_shrugging_tone5:": {
  51048. "uc_base": "1f937-1f3ff-2640",
  51049. "uc_output": "1f937-1f3ff-200d-2640-fe0f",
  51050. "uc_match": "1f937-1f3ff-2640-fe0f",
  51051. "uc_greedy": "1f937-1f3ff-2640",
  51052. "shortnames": [":woman_shrugging_dark_skin_tone:"],
  51053. "category": "people"
  51054. },
  51055. ":woman_surfing_tone1:": {
  51056. "uc_base": "1f3c4-1f3fb-2640",
  51057. "uc_output": "1f3c4-1f3fb-200d-2640-fe0f",
  51058. "uc_match": "1f3c4-1f3fb-2640-fe0f",
  51059. "uc_greedy": "1f3c4-1f3fb-2640",
  51060. "shortnames": [":woman_surfing_light_skin_tone:"],
  51061. "category": "activity"
  51062. },
  51063. ":woman_surfing_tone2:": {
  51064. "uc_base": "1f3c4-1f3fc-2640",
  51065. "uc_output": "1f3c4-1f3fc-200d-2640-fe0f",
  51066. "uc_match": "1f3c4-1f3fc-2640-fe0f",
  51067. "uc_greedy": "1f3c4-1f3fc-2640",
  51068. "shortnames": [":woman_surfing_medium_light_skin_tone:"],
  51069. "category": "activity"
  51070. },
  51071. ":woman_surfing_tone3:": {
  51072. "uc_base": "1f3c4-1f3fd-2640",
  51073. "uc_output": "1f3c4-1f3fd-200d-2640-fe0f",
  51074. "uc_match": "1f3c4-1f3fd-2640-fe0f",
  51075. "uc_greedy": "1f3c4-1f3fd-2640",
  51076. "shortnames": [":woman_surfing_medium_skin_tone:"],
  51077. "category": "activity"
  51078. },
  51079. ":woman_surfing_tone4:": {
  51080. "uc_base": "1f3c4-1f3fe-2640",
  51081. "uc_output": "1f3c4-1f3fe-200d-2640-fe0f",
  51082. "uc_match": "1f3c4-1f3fe-2640-fe0f",
  51083. "uc_greedy": "1f3c4-1f3fe-2640",
  51084. "shortnames": [":woman_surfing_medium_dark_skin_tone:"],
  51085. "category": "activity"
  51086. },
  51087. ":woman_surfing_tone5:": {
  51088. "uc_base": "1f3c4-1f3ff-2640",
  51089. "uc_output": "1f3c4-1f3ff-200d-2640-fe0f",
  51090. "uc_match": "1f3c4-1f3ff-2640-fe0f",
  51091. "uc_greedy": "1f3c4-1f3ff-2640",
  51092. "shortnames": [":woman_surfing_dark_skin_tone:"],
  51093. "category": "activity"
  51094. },
  51095. ":woman_swimming_tone1:": {
  51096. "uc_base": "1f3ca-1f3fb-2640",
  51097. "uc_output": "1f3ca-1f3fb-200d-2640-fe0f",
  51098. "uc_match": "1f3ca-1f3fb-2640-fe0f",
  51099. "uc_greedy": "1f3ca-1f3fb-2640",
  51100. "shortnames": [":woman_swimming_light_skin_tone:"],
  51101. "category": "activity"
  51102. },
  51103. ":woman_swimming_tone2:": {
  51104. "uc_base": "1f3ca-1f3fc-2640",
  51105. "uc_output": "1f3ca-1f3fc-200d-2640-fe0f",
  51106. "uc_match": "1f3ca-1f3fc-2640-fe0f",
  51107. "uc_greedy": "1f3ca-1f3fc-2640",
  51108. "shortnames": [":woman_swimming_medium_light_skin_tone:"],
  51109. "category": "activity"
  51110. },
  51111. ":woman_swimming_tone3:": {
  51112. "uc_base": "1f3ca-1f3fd-2640",
  51113. "uc_output": "1f3ca-1f3fd-200d-2640-fe0f",
  51114. "uc_match": "1f3ca-1f3fd-2640-fe0f",
  51115. "uc_greedy": "1f3ca-1f3fd-2640",
  51116. "shortnames": [":woman_swimming_medium_skin_tone:"],
  51117. "category": "activity"
  51118. },
  51119. ":woman_swimming_tone4:": {
  51120. "uc_base": "1f3ca-1f3fe-2640",
  51121. "uc_output": "1f3ca-1f3fe-200d-2640-fe0f",
  51122. "uc_match": "1f3ca-1f3fe-2640-fe0f",
  51123. "uc_greedy": "1f3ca-1f3fe-2640",
  51124. "shortnames": [":woman_swimming_medium_dark_skin_tone:"],
  51125. "category": "activity"
  51126. },
  51127. ":woman_swimming_tone5:": {
  51128. "uc_base": "1f3ca-1f3ff-2640",
  51129. "uc_output": "1f3ca-1f3ff-200d-2640-fe0f",
  51130. "uc_match": "1f3ca-1f3ff-2640-fe0f",
  51131. "uc_greedy": "1f3ca-1f3ff-2640",
  51132. "shortnames": [":woman_swimming_dark_skin_tone:"],
  51133. "category": "activity"
  51134. },
  51135. ":woman_tipping_hand_tone1:": {
  51136. "uc_base": "1f481-1f3fb-2640",
  51137. "uc_output": "1f481-1f3fb-200d-2640-fe0f",
  51138. "uc_match": "1f481-1f3fb-2640-fe0f",
  51139. "uc_greedy": "1f481-1f3fb-2640",
  51140. "shortnames": [":woman_tipping_hand_light_skin_tone:"],
  51141. "category": "people"
  51142. },
  51143. ":woman_tipping_hand_tone2:": {
  51144. "uc_base": "1f481-1f3fc-2640",
  51145. "uc_output": "1f481-1f3fc-200d-2640-fe0f",
  51146. "uc_match": "1f481-1f3fc-2640-fe0f",
  51147. "uc_greedy": "1f481-1f3fc-2640",
  51148. "shortnames": [":woman_tipping_hand_medium_light_skin_tone:"],
  51149. "category": "people"
  51150. },
  51151. ":woman_tipping_hand_tone3:": {
  51152. "uc_base": "1f481-1f3fd-2640",
  51153. "uc_output": "1f481-1f3fd-200d-2640-fe0f",
  51154. "uc_match": "1f481-1f3fd-2640-fe0f",
  51155. "uc_greedy": "1f481-1f3fd-2640",
  51156. "shortnames": [":woman_tipping_hand_medium_skin_tone:"],
  51157. "category": "people"
  51158. },
  51159. ":woman_tipping_hand_tone4:": {
  51160. "uc_base": "1f481-1f3fe-2640",
  51161. "uc_output": "1f481-1f3fe-200d-2640-fe0f",
  51162. "uc_match": "1f481-1f3fe-2640-fe0f",
  51163. "uc_greedy": "1f481-1f3fe-2640",
  51164. "shortnames": [":woman_tipping_hand_medium_dark_skin_tone:"],
  51165. "category": "people"
  51166. },
  51167. ":woman_tipping_hand_tone5:": {
  51168. "uc_base": "1f481-1f3ff-2640",
  51169. "uc_output": "1f481-1f3ff-200d-2640-fe0f",
  51170. "uc_match": "1f481-1f3ff-2640-fe0f",
  51171. "uc_greedy": "1f481-1f3ff-2640",
  51172. "shortnames": [":woman_tipping_hand_dark_skin_tone:"],
  51173. "category": "people"
  51174. },
  51175. ":woman_vampire_tone1:": {
  51176. "uc_base": "1f9db-1f3fb-2640",
  51177. "uc_output": "1f9db-1f3fb-200d-2640-fe0f",
  51178. "uc_match": "1f9db-1f3fb-2640-fe0f",
  51179. "uc_greedy": "1f9db-1f3fb-2640",
  51180. "shortnames": [":woman_vampire_light_skin_tone:"],
  51181. "category": "people"
  51182. },
  51183. ":woman_vampire_tone2:": {
  51184. "uc_base": "1f9db-1f3fc-2640",
  51185. "uc_output": "1f9db-1f3fc-200d-2640-fe0f",
  51186. "uc_match": "1f9db-1f3fc-2640-fe0f",
  51187. "uc_greedy": "1f9db-1f3fc-2640",
  51188. "shortnames": [":woman_vampire_medium_light_skin_tone:"],
  51189. "category": "people"
  51190. },
  51191. ":woman_vampire_tone3:": {
  51192. "uc_base": "1f9db-1f3fd-2640",
  51193. "uc_output": "1f9db-1f3fd-200d-2640-fe0f",
  51194. "uc_match": "1f9db-1f3fd-2640-fe0f",
  51195. "uc_greedy": "1f9db-1f3fd-2640",
  51196. "shortnames": [":woman_vampire_medium_skin_tone:"],
  51197. "category": "people"
  51198. },
  51199. ":woman_vampire_tone4:": {
  51200. "uc_base": "1f9db-1f3fe-2640",
  51201. "uc_output": "1f9db-1f3fe-200d-2640-fe0f",
  51202. "uc_match": "1f9db-1f3fe-2640-fe0f",
  51203. "uc_greedy": "1f9db-1f3fe-2640",
  51204. "shortnames": [":woman_vampire_medium_dark_skin_tone:"],
  51205. "category": "people"
  51206. },
  51207. ":woman_vampire_tone5:": {
  51208. "uc_base": "1f9db-1f3ff-2640",
  51209. "uc_output": "1f9db-1f3ff-200d-2640-fe0f",
  51210. "uc_match": "1f9db-1f3ff-2640-fe0f",
  51211. "uc_greedy": "1f9db-1f3ff-2640",
  51212. "shortnames": [":woman_vampire_dark_skin_tone:"],
  51213. "category": "people"
  51214. },
  51215. ":woman_walking_tone1:": {
  51216. "uc_base": "1f6b6-1f3fb-2640",
  51217. "uc_output": "1f6b6-1f3fb-200d-2640-fe0f",
  51218. "uc_match": "1f6b6-1f3fb-2640-fe0f",
  51219. "uc_greedy": "1f6b6-1f3fb-2640",
  51220. "shortnames": [":woman_walking_light_skin_tone:"],
  51221. "category": "people"
  51222. },
  51223. ":woman_walking_tone2:": {
  51224. "uc_base": "1f6b6-1f3fc-2640",
  51225. "uc_output": "1f6b6-1f3fc-200d-2640-fe0f",
  51226. "uc_match": "1f6b6-1f3fc-2640-fe0f",
  51227. "uc_greedy": "1f6b6-1f3fc-2640",
  51228. "shortnames": [":woman_walking_medium_light_skin_tone:"],
  51229. "category": "people"
  51230. },
  51231. ":woman_walking_tone3:": {
  51232. "uc_base": "1f6b6-1f3fd-2640",
  51233. "uc_output": "1f6b6-1f3fd-200d-2640-fe0f",
  51234. "uc_match": "1f6b6-1f3fd-2640-fe0f",
  51235. "uc_greedy": "1f6b6-1f3fd-2640",
  51236. "shortnames": [":woman_walking_medium_skin_tone:"],
  51237. "category": "people"
  51238. },
  51239. ":woman_walking_tone4:": {
  51240. "uc_base": "1f6b6-1f3fe-2640",
  51241. "uc_output": "1f6b6-1f3fe-200d-2640-fe0f",
  51242. "uc_match": "1f6b6-1f3fe-2640-fe0f",
  51243. "uc_greedy": "1f6b6-1f3fe-2640",
  51244. "shortnames": [":woman_walking_medium_dark_skin_tone:"],
  51245. "category": "people"
  51246. },
  51247. ":woman_walking_tone5:": {
  51248. "uc_base": "1f6b6-1f3ff-2640",
  51249. "uc_output": "1f6b6-1f3ff-200d-2640-fe0f",
  51250. "uc_match": "1f6b6-1f3ff-2640-fe0f",
  51251. "uc_greedy": "1f6b6-1f3ff-2640",
  51252. "shortnames": [":woman_walking_dark_skin_tone:"],
  51253. "category": "people"
  51254. },
  51255. ":woman_wearing_turban_tone1:": {
  51256. "uc_base": "1f473-1f3fb-2640",
  51257. "uc_output": "1f473-1f3fb-200d-2640-fe0f",
  51258. "uc_match": "1f473-1f3fb-2640-fe0f",
  51259. "uc_greedy": "1f473-1f3fb-2640",
  51260. "shortnames": [":woman_wearing_turban_light_skin_tone:"],
  51261. "category": "people"
  51262. },
  51263. ":woman_wearing_turban_tone2:": {
  51264. "uc_base": "1f473-1f3fc-2640",
  51265. "uc_output": "1f473-1f3fc-200d-2640-fe0f",
  51266. "uc_match": "1f473-1f3fc-2640-fe0f",
  51267. "uc_greedy": "1f473-1f3fc-2640",
  51268. "shortnames": [":woman_wearing_turban_medium_light_skin_tone:"],
  51269. "category": "people"
  51270. },
  51271. ":woman_wearing_turban_tone3:": {
  51272. "uc_base": "1f473-1f3fd-2640",
  51273. "uc_output": "1f473-1f3fd-200d-2640-fe0f",
  51274. "uc_match": "1f473-1f3fd-2640-fe0f",
  51275. "uc_greedy": "1f473-1f3fd-2640",
  51276. "shortnames": [":woman_wearing_turban_medium_skin_tone:"],
  51277. "category": "people"
  51278. },
  51279. ":woman_wearing_turban_tone4:": {
  51280. "uc_base": "1f473-1f3fe-2640",
  51281. "uc_output": "1f473-1f3fe-200d-2640-fe0f",
  51282. "uc_match": "1f473-1f3fe-2640-fe0f",
  51283. "uc_greedy": "1f473-1f3fe-2640",
  51284. "shortnames": [":woman_wearing_turban_medium_dark_skin_tone:"],
  51285. "category": "people"
  51286. },
  51287. ":woman_wearing_turban_tone5:": {
  51288. "uc_base": "1f473-1f3ff-2640",
  51289. "uc_output": "1f473-1f3ff-200d-2640-fe0f",
  51290. "uc_match": "1f473-1f3ff-2640-fe0f",
  51291. "uc_greedy": "1f473-1f3ff-2640",
  51292. "shortnames": [":woman_wearing_turban_dark_skin_tone:"],
  51293. "category": "people"
  51294. },
  51295. ":man_bouncing_ball_tone1:": {
  51296. "uc_base": "26f9-1f3fb-2642",
  51297. "uc_output": "26f9-1f3fb-200d-2642-fe0f",
  51298. "uc_match": "26f9-fe0f-1f3fb-2642-fe0f",
  51299. "uc_greedy": "26f9-1f3fb-2642",
  51300. "shortnames": [":man_bouncing_ball_light_skin_tone:"],
  51301. "category": "activity"
  51302. },
  51303. ":man_bouncing_ball_tone2:": {
  51304. "uc_base": "26f9-1f3fc-2642",
  51305. "uc_output": "26f9-1f3fc-200d-2642-fe0f",
  51306. "uc_match": "26f9-fe0f-1f3fc-2642-fe0f",
  51307. "uc_greedy": "26f9-1f3fc-2642",
  51308. "shortnames": [":man_bouncing_ball_medium_light_skin_tone:"],
  51309. "category": "activity"
  51310. },
  51311. ":man_bouncing_ball_tone3:": {
  51312. "uc_base": "26f9-1f3fd-2642",
  51313. "uc_output": "26f9-1f3fd-200d-2642-fe0f",
  51314. "uc_match": "26f9-fe0f-1f3fd-2642-fe0f",
  51315. "uc_greedy": "26f9-1f3fd-2642",
  51316. "shortnames": [":man_bouncing_ball_medium_skin_tone:"],
  51317. "category": "activity"
  51318. },
  51319. ":man_bouncing_ball_tone4:": {
  51320. "uc_base": "26f9-1f3fe-2642",
  51321. "uc_output": "26f9-1f3fe-200d-2642-fe0f",
  51322. "uc_match": "26f9-fe0f-1f3fe-2642-fe0f",
  51323. "uc_greedy": "26f9-1f3fe-2642",
  51324. "shortnames": [":man_bouncing_ball_medium_dark_skin_tone:"],
  51325. "category": "activity"
  51326. },
  51327. ":man_bouncing_ball_tone5:": {
  51328. "uc_base": "26f9-1f3ff-2642",
  51329. "uc_output": "26f9-1f3ff-200d-2642-fe0f",
  51330. "uc_match": "26f9-fe0f-1f3ff-2642-fe0f",
  51331. "uc_greedy": "26f9-1f3ff-2642",
  51332. "shortnames": [":man_bouncing_ball_dark_skin_tone:"],
  51333. "category": "activity"
  51334. },
  51335. ":man_detective:": {
  51336. "uc_base": "1f575-2642",
  51337. "uc_output": "1f575-fe0f-200d-2642-fe0f",
  51338. "uc_match": "1f575-fe0f-200d-2642",
  51339. "uc_greedy": "1f575-2642",
  51340. "shortnames": [],
  51341. "category": "people"
  51342. },
  51343. ":man_golfing:": {
  51344. "uc_base": "1f3cc-2642",
  51345. "uc_output": "1f3cc-fe0f-200d-2642-fe0f",
  51346. "uc_match": "1f3cc-fe0f-200d-2642",
  51347. "uc_greedy": "1f3cc-2642",
  51348. "shortnames": [],
  51349. "category": "activity"
  51350. },
  51351. ":man_lifting_weights:": {
  51352. "uc_base": "1f3cb-2642",
  51353. "uc_output": "1f3cb-fe0f-200d-2642-fe0f",
  51354. "uc_match": "1f3cb-fe0f-200d-2642",
  51355. "uc_greedy": "1f3cb-2642",
  51356. "shortnames": [],
  51357. "category": "activity"
  51358. },
  51359. ":woman_bouncing_ball_tone1:": {
  51360. "uc_base": "26f9-1f3fb-2640",
  51361. "uc_output": "26f9-1f3fb-200d-2640-fe0f",
  51362. "uc_match": "26f9-fe0f-1f3fb-2640-fe0f",
  51363. "uc_greedy": "26f9-1f3fb-2640",
  51364. "shortnames": [":woman_bouncing_ball_light_skin_tone:"],
  51365. "category": "activity"
  51366. },
  51367. ":woman_bouncing_ball_tone2:": {
  51368. "uc_base": "26f9-1f3fc-2640",
  51369. "uc_output": "26f9-1f3fc-200d-2640-fe0f",
  51370. "uc_match": "26f9-fe0f-1f3fc-2640-fe0f",
  51371. "uc_greedy": "26f9-1f3fc-2640",
  51372. "shortnames": [":woman_bouncing_ball_medium_light_skin_tone:"],
  51373. "category": "activity"
  51374. },
  51375. ":woman_bouncing_ball_tone3:": {
  51376. "uc_base": "26f9-1f3fd-2640",
  51377. "uc_output": "26f9-1f3fd-200d-2640-fe0f",
  51378. "uc_match": "26f9-fe0f-1f3fd-2640-fe0f",
  51379. "uc_greedy": "26f9-1f3fd-2640",
  51380. "shortnames": [":woman_bouncing_ball_medium_skin_tone:"],
  51381. "category": "activity"
  51382. },
  51383. ":woman_bouncing_ball_tone4:": {
  51384. "uc_base": "26f9-1f3fe-2640",
  51385. "uc_output": "26f9-1f3fe-200d-2640-fe0f",
  51386. "uc_match": "26f9-fe0f-1f3fe-2640-fe0f",
  51387. "uc_greedy": "26f9-1f3fe-2640",
  51388. "shortnames": [":woman_bouncing_ball_medium_dark_skin_tone:"],
  51389. "category": "activity"
  51390. },
  51391. ":woman_bouncing_ball_tone5:": {
  51392. "uc_base": "26f9-1f3ff-2640",
  51393. "uc_output": "26f9-1f3ff-200d-2640-fe0f",
  51394. "uc_match": "26f9-fe0f-1f3ff-2640-fe0f",
  51395. "uc_greedy": "26f9-1f3ff-2640",
  51396. "shortnames": [":woman_bouncing_ball_dark_skin_tone:"],
  51397. "category": "activity"
  51398. },
  51399. ":woman_detective:": {
  51400. "uc_base": "1f575-2640",
  51401. "uc_output": "1f575-fe0f-200d-2640-fe0f",
  51402. "uc_match": "1f575-fe0f-200d-2640",
  51403. "uc_greedy": "1f575-2640",
  51404. "shortnames": [],
  51405. "category": "people"
  51406. },
  51407. ":woman_golfing:": {
  51408. "uc_base": "1f3cc-2640",
  51409. "uc_output": "1f3cc-fe0f-200d-2640-fe0f",
  51410. "uc_match": "1f3cc-fe0f-200d-2640",
  51411. "uc_greedy": "1f3cc-2640",
  51412. "shortnames": [],
  51413. "category": "activity"
  51414. },
  51415. ":woman_lifting_weights:": {
  51416. "uc_base": "1f3cb-2640",
  51417. "uc_output": "1f3cb-fe0f-200d-2640-fe0f",
  51418. "uc_match": "1f3cb-fe0f-200d-2640",
  51419. "uc_greedy": "1f3cb-2640",
  51420. "shortnames": [],
  51421. "category": "activity"
  51422. },
  51423. ":man_bouncing_ball:": {
  51424. "uc_base": "26f9-2642",
  51425. "uc_output": "26f9-fe0f-200d-2642-fe0f",
  51426. "uc_match": "26f9-fe0f-200d-2642",
  51427. "uc_greedy": "26f9-2642",
  51428. "shortnames": [],
  51429. "category": "activity"
  51430. },
  51431. ":woman_bouncing_ball:": {
  51432. "uc_base": "26f9-2640",
  51433. "uc_output": "26f9-fe0f-200d-2640-fe0f",
  51434. "uc_match": "26f9-fe0f-200d-2640",
  51435. "uc_greedy": "26f9-2640",
  51436. "shortnames": [],
  51437. "category": "activity"
  51438. },
  51439. ":man_artist_tone1:": {
  51440. "uc_base": "1f468-1f3fb-1f3a8",
  51441. "uc_output": "1f468-1f3fb-200d-1f3a8",
  51442. "uc_match": "1f468-1f3fb-1f3a8",
  51443. "uc_greedy": "1f468-1f3fb-1f3a8",
  51444. "shortnames": [":man_artist_light_skin_tone:"],
  51445. "category": "people"
  51446. },
  51447. ":man_artist_tone2:": {
  51448. "uc_base": "1f468-1f3fc-1f3a8",
  51449. "uc_output": "1f468-1f3fc-200d-1f3a8",
  51450. "uc_match": "1f468-1f3fc-1f3a8",
  51451. "uc_greedy": "1f468-1f3fc-1f3a8",
  51452. "shortnames": [":man_artist_medium_light_skin_tone:"],
  51453. "category": "people"
  51454. },
  51455. ":man_artist_tone3:": {
  51456. "uc_base": "1f468-1f3fd-1f3a8",
  51457. "uc_output": "1f468-1f3fd-200d-1f3a8",
  51458. "uc_match": "1f468-1f3fd-1f3a8",
  51459. "uc_greedy": "1f468-1f3fd-1f3a8",
  51460. "shortnames": [":man_artist_medium_skin_tone:"],
  51461. "category": "people"
  51462. },
  51463. ":man_artist_tone4:": {
  51464. "uc_base": "1f468-1f3fe-1f3a8",
  51465. "uc_output": "1f468-1f3fe-200d-1f3a8",
  51466. "uc_match": "1f468-1f3fe-1f3a8",
  51467. "uc_greedy": "1f468-1f3fe-1f3a8",
  51468. "shortnames": [":man_artist_medium_dark_skin_tone:"],
  51469. "category": "people"
  51470. },
  51471. ":man_artist_tone5:": {
  51472. "uc_base": "1f468-1f3ff-1f3a8",
  51473. "uc_output": "1f468-1f3ff-200d-1f3a8",
  51474. "uc_match": "1f468-1f3ff-1f3a8",
  51475. "uc_greedy": "1f468-1f3ff-1f3a8",
  51476. "shortnames": [":man_artist_dark_skin_tone:"],
  51477. "category": "people"
  51478. },
  51479. ":man_astronaut_tone1:": {
  51480. "uc_base": "1f468-1f3fb-1f680",
  51481. "uc_output": "1f468-1f3fb-200d-1f680",
  51482. "uc_match": "1f468-1f3fb-1f680",
  51483. "uc_greedy": "1f468-1f3fb-1f680",
  51484. "shortnames": [":man_astronaut_light_skin_tone:"],
  51485. "category": "people"
  51486. },
  51487. ":man_astronaut_tone2:": {
  51488. "uc_base": "1f468-1f3fc-1f680",
  51489. "uc_output": "1f468-1f3fc-200d-1f680",
  51490. "uc_match": "1f468-1f3fc-1f680",
  51491. "uc_greedy": "1f468-1f3fc-1f680",
  51492. "shortnames": [":man_astronaut_medium_light_skin_tone:"],
  51493. "category": "people"
  51494. },
  51495. ":man_astronaut_tone3:": {
  51496. "uc_base": "1f468-1f3fd-1f680",
  51497. "uc_output": "1f468-1f3fd-200d-1f680",
  51498. "uc_match": "1f468-1f3fd-1f680",
  51499. "uc_greedy": "1f468-1f3fd-1f680",
  51500. "shortnames": [":man_astronaut_medium_skin_tone:"],
  51501. "category": "people"
  51502. },
  51503. ":man_astronaut_tone4:": {
  51504. "uc_base": "1f468-1f3fe-1f680",
  51505. "uc_output": "1f468-1f3fe-200d-1f680",
  51506. "uc_match": "1f468-1f3fe-1f680",
  51507. "uc_greedy": "1f468-1f3fe-1f680",
  51508. "shortnames": [":man_astronaut_medium_dark_skin_tone:"],
  51509. "category": "people"
  51510. },
  51511. ":man_astronaut_tone5:": {
  51512. "uc_base": "1f468-1f3ff-1f680",
  51513. "uc_output": "1f468-1f3ff-200d-1f680",
  51514. "uc_match": "1f468-1f3ff-1f680",
  51515. "uc_greedy": "1f468-1f3ff-1f680",
  51516. "shortnames": [":man_astronaut_dark_skin_tone:"],
  51517. "category": "people"
  51518. },
  51519. ":man_cook_tone1:": {
  51520. "uc_base": "1f468-1f3fb-1f373",
  51521. "uc_output": "1f468-1f3fb-200d-1f373",
  51522. "uc_match": "1f468-1f3fb-1f373",
  51523. "uc_greedy": "1f468-1f3fb-1f373",
  51524. "shortnames": [":man_cook_light_skin_tone:"],
  51525. "category": "people"
  51526. },
  51527. ":man_cook_tone2:": {
  51528. "uc_base": "1f468-1f3fc-1f373",
  51529. "uc_output": "1f468-1f3fc-200d-1f373",
  51530. "uc_match": "1f468-1f3fc-1f373",
  51531. "uc_greedy": "1f468-1f3fc-1f373",
  51532. "shortnames": [":man_cook_medium_light_skin_tone:"],
  51533. "category": "people"
  51534. },
  51535. ":man_cook_tone3:": {
  51536. "uc_base": "1f468-1f3fd-1f373",
  51537. "uc_output": "1f468-1f3fd-200d-1f373",
  51538. "uc_match": "1f468-1f3fd-1f373",
  51539. "uc_greedy": "1f468-1f3fd-1f373",
  51540. "shortnames": [":man_cook_medium_skin_tone:"],
  51541. "category": "people"
  51542. },
  51543. ":man_cook_tone4:": {
  51544. "uc_base": "1f468-1f3fe-1f373",
  51545. "uc_output": "1f468-1f3fe-200d-1f373",
  51546. "uc_match": "1f468-1f3fe-1f373",
  51547. "uc_greedy": "1f468-1f3fe-1f373",
  51548. "shortnames": [":man_cook_medium_dark_skin_tone:"],
  51549. "category": "people"
  51550. },
  51551. ":man_cook_tone5:": {
  51552. "uc_base": "1f468-1f3ff-1f373",
  51553. "uc_output": "1f468-1f3ff-200d-1f373",
  51554. "uc_match": "1f468-1f3ff-1f373",
  51555. "uc_greedy": "1f468-1f3ff-1f373",
  51556. "shortnames": [":man_cook_dark_skin_tone:"],
  51557. "category": "people"
  51558. },
  51559. ":man_factory_worker_tone1:": {
  51560. "uc_base": "1f468-1f3fb-1f3ed",
  51561. "uc_output": "1f468-1f3fb-200d-1f3ed",
  51562. "uc_match": "1f468-1f3fb-1f3ed",
  51563. "uc_greedy": "1f468-1f3fb-1f3ed",
  51564. "shortnames": [":man_factory_worker_light_skin_tone:"],
  51565. "category": "people"
  51566. },
  51567. ":man_factory_worker_tone2:": {
  51568. "uc_base": "1f468-1f3fc-1f3ed",
  51569. "uc_output": "1f468-1f3fc-200d-1f3ed",
  51570. "uc_match": "1f468-1f3fc-1f3ed",
  51571. "uc_greedy": "1f468-1f3fc-1f3ed",
  51572. "shortnames": [":man_factory_worker_medium_light_skin_tone:"],
  51573. "category": "people"
  51574. },
  51575. ":man_factory_worker_tone3:": {
  51576. "uc_base": "1f468-1f3fd-1f3ed",
  51577. "uc_output": "1f468-1f3fd-200d-1f3ed",
  51578. "uc_match": "1f468-1f3fd-1f3ed",
  51579. "uc_greedy": "1f468-1f3fd-1f3ed",
  51580. "shortnames": [":man_factory_worker_medium_skin_tone:"],
  51581. "category": "people"
  51582. },
  51583. ":man_factory_worker_tone4:": {
  51584. "uc_base": "1f468-1f3fe-1f3ed",
  51585. "uc_output": "1f468-1f3fe-200d-1f3ed",
  51586. "uc_match": "1f468-1f3fe-1f3ed",
  51587. "uc_greedy": "1f468-1f3fe-1f3ed",
  51588. "shortnames": [":man_factory_worker_medium_dark_skin_tone:"],
  51589. "category": "people"
  51590. },
  51591. ":man_factory_worker_tone5:": {
  51592. "uc_base": "1f468-1f3ff-1f3ed",
  51593. "uc_output": "1f468-1f3ff-200d-1f3ed",
  51594. "uc_match": "1f468-1f3ff-1f3ed",
  51595. "uc_greedy": "1f468-1f3ff-1f3ed",
  51596. "shortnames": [":man_factory_worker_dark_skin_tone:"],
  51597. "category": "people"
  51598. },
  51599. ":man_farmer_tone1:": {
  51600. "uc_base": "1f468-1f3fb-1f33e",
  51601. "uc_output": "1f468-1f3fb-200d-1f33e",
  51602. "uc_match": "1f468-1f3fb-1f33e",
  51603. "uc_greedy": "1f468-1f3fb-1f33e",
  51604. "shortnames": [":man_farmer_light_skin_tone:"],
  51605. "category": "people"
  51606. },
  51607. ":man_farmer_tone2:": {
  51608. "uc_base": "1f468-1f3fc-1f33e",
  51609. "uc_output": "1f468-1f3fc-200d-1f33e",
  51610. "uc_match": "1f468-1f3fc-1f33e",
  51611. "uc_greedy": "1f468-1f3fc-1f33e",
  51612. "shortnames": [":man_farmer_medium_light_skin_tone:"],
  51613. "category": "people"
  51614. },
  51615. ":man_farmer_tone3:": {
  51616. "uc_base": "1f468-1f3fd-1f33e",
  51617. "uc_output": "1f468-1f3fd-200d-1f33e",
  51618. "uc_match": "1f468-1f3fd-1f33e",
  51619. "uc_greedy": "1f468-1f3fd-1f33e",
  51620. "shortnames": [":man_farmer_medium_skin_tone:"],
  51621. "category": "people"
  51622. },
  51623. ":man_farmer_tone4:": {
  51624. "uc_base": "1f468-1f3fe-1f33e",
  51625. "uc_output": "1f468-1f3fe-200d-1f33e",
  51626. "uc_match": "1f468-1f3fe-1f33e",
  51627. "uc_greedy": "1f468-1f3fe-1f33e",
  51628. "shortnames": [":man_farmer_medium_dark_skin_tone:"],
  51629. "category": "people"
  51630. },
  51631. ":man_farmer_tone5:": {
  51632. "uc_base": "1f468-1f3ff-1f33e",
  51633. "uc_output": "1f468-1f3ff-200d-1f33e",
  51634. "uc_match": "1f468-1f3ff-1f33e",
  51635. "uc_greedy": "1f468-1f3ff-1f33e",
  51636. "shortnames": [":man_farmer_dark_skin_tone:"],
  51637. "category": "people"
  51638. },
  51639. ":man_firefighter_tone1:": {
  51640. "uc_base": "1f468-1f3fb-1f692",
  51641. "uc_output": "1f468-1f3fb-200d-1f692",
  51642. "uc_match": "1f468-1f3fb-1f692",
  51643. "uc_greedy": "1f468-1f3fb-1f692",
  51644. "shortnames": [":man_firefighter_light_skin_tone:"],
  51645. "category": "people"
  51646. },
  51647. ":man_firefighter_tone2:": {
  51648. "uc_base": "1f468-1f3fc-1f692",
  51649. "uc_output": "1f468-1f3fc-200d-1f692",
  51650. "uc_match": "1f468-1f3fc-1f692",
  51651. "uc_greedy": "1f468-1f3fc-1f692",
  51652. "shortnames": [":man_firefighter_medium_light_skin_tone:"],
  51653. "category": "people"
  51654. },
  51655. ":man_firefighter_tone3:": {
  51656. "uc_base": "1f468-1f3fd-1f692",
  51657. "uc_output": "1f468-1f3fd-200d-1f692",
  51658. "uc_match": "1f468-1f3fd-1f692",
  51659. "uc_greedy": "1f468-1f3fd-1f692",
  51660. "shortnames": [":man_firefighter_medium_skin_tone:"],
  51661. "category": "people"
  51662. },
  51663. ":man_firefighter_tone4:": {
  51664. "uc_base": "1f468-1f3fe-1f692",
  51665. "uc_output": "1f468-1f3fe-200d-1f692",
  51666. "uc_match": "1f468-1f3fe-1f692",
  51667. "uc_greedy": "1f468-1f3fe-1f692",
  51668. "shortnames": [":man_firefighter_medium_dark_skin_tone:"],
  51669. "category": "people"
  51670. },
  51671. ":man_firefighter_tone5:": {
  51672. "uc_base": "1f468-1f3ff-1f692",
  51673. "uc_output": "1f468-1f3ff-200d-1f692",
  51674. "uc_match": "1f468-1f3ff-1f692",
  51675. "uc_greedy": "1f468-1f3ff-1f692",
  51676. "shortnames": [":man_firefighter_dark_skin_tone:"],
  51677. "category": "people"
  51678. },
  51679. ":man_mechanic_tone1:": {
  51680. "uc_base": "1f468-1f3fb-1f527",
  51681. "uc_output": "1f468-1f3fb-200d-1f527",
  51682. "uc_match": "1f468-1f3fb-1f527",
  51683. "uc_greedy": "1f468-1f3fb-1f527",
  51684. "shortnames": [":man_mechanic_light_skin_tone:"],
  51685. "category": "people"
  51686. },
  51687. ":man_mechanic_tone2:": {
  51688. "uc_base": "1f468-1f3fc-1f527",
  51689. "uc_output": "1f468-1f3fc-200d-1f527",
  51690. "uc_match": "1f468-1f3fc-1f527",
  51691. "uc_greedy": "1f468-1f3fc-1f527",
  51692. "shortnames": [":man_mechanic_medium_light_skin_tone:"],
  51693. "category": "people"
  51694. },
  51695. ":man_mechanic_tone3:": {
  51696. "uc_base": "1f468-1f3fd-1f527",
  51697. "uc_output": "1f468-1f3fd-200d-1f527",
  51698. "uc_match": "1f468-1f3fd-1f527",
  51699. "uc_greedy": "1f468-1f3fd-1f527",
  51700. "shortnames": [":man_mechanic_medium_skin_tone:"],
  51701. "category": "people"
  51702. },
  51703. ":man_mechanic_tone4:": {
  51704. "uc_base": "1f468-1f3fe-1f527",
  51705. "uc_output": "1f468-1f3fe-200d-1f527",
  51706. "uc_match": "1f468-1f3fe-1f527",
  51707. "uc_greedy": "1f468-1f3fe-1f527",
  51708. "shortnames": [":man_mechanic_medium_dark_skin_tone:"],
  51709. "category": "people"
  51710. },
  51711. ":man_mechanic_tone5:": {
  51712. "uc_base": "1f468-1f3ff-1f527",
  51713. "uc_output": "1f468-1f3ff-200d-1f527",
  51714. "uc_match": "1f468-1f3ff-1f527",
  51715. "uc_greedy": "1f468-1f3ff-1f527",
  51716. "shortnames": [":man_mechanic_dark_skin_tone:"],
  51717. "category": "people"
  51718. },
  51719. ":man_office_worker_tone1:": {
  51720. "uc_base": "1f468-1f3fb-1f4bc",
  51721. "uc_output": "1f468-1f3fb-200d-1f4bc",
  51722. "uc_match": "1f468-1f3fb-1f4bc",
  51723. "uc_greedy": "1f468-1f3fb-1f4bc",
  51724. "shortnames": [":man_office_worker_light_skin_tone:"],
  51725. "category": "people"
  51726. },
  51727. ":man_office_worker_tone2:": {
  51728. "uc_base": "1f468-1f3fc-1f4bc",
  51729. "uc_output": "1f468-1f3fc-200d-1f4bc",
  51730. "uc_match": "1f468-1f3fc-1f4bc",
  51731. "uc_greedy": "1f468-1f3fc-1f4bc",
  51732. "shortnames": [":man_office_worker_medium_light_skin_tone:"],
  51733. "category": "people"
  51734. },
  51735. ":man_office_worker_tone3:": {
  51736. "uc_base": "1f468-1f3fd-1f4bc",
  51737. "uc_output": "1f468-1f3fd-200d-1f4bc",
  51738. "uc_match": "1f468-1f3fd-1f4bc",
  51739. "uc_greedy": "1f468-1f3fd-1f4bc",
  51740. "shortnames": [":man_office_worker_medium_skin_tone:"],
  51741. "category": "people"
  51742. },
  51743. ":man_office_worker_tone4:": {
  51744. "uc_base": "1f468-1f3fe-1f4bc",
  51745. "uc_output": "1f468-1f3fe-200d-1f4bc",
  51746. "uc_match": "1f468-1f3fe-1f4bc",
  51747. "uc_greedy": "1f468-1f3fe-1f4bc",
  51748. "shortnames": [":man_office_worker_medium_dark_skin_tone:"],
  51749. "category": "people"
  51750. },
  51751. ":man_office_worker_tone5:": {
  51752. "uc_base": "1f468-1f3ff-1f4bc",
  51753. "uc_output": "1f468-1f3ff-200d-1f4bc",
  51754. "uc_match": "1f468-1f3ff-1f4bc",
  51755. "uc_greedy": "1f468-1f3ff-1f4bc",
  51756. "shortnames": [":man_office_worker_dark_skin_tone:"],
  51757. "category": "people"
  51758. },
  51759. ":man_scientist_tone1:": {
  51760. "uc_base": "1f468-1f3fb-1f52c",
  51761. "uc_output": "1f468-1f3fb-200d-1f52c",
  51762. "uc_match": "1f468-1f3fb-1f52c",
  51763. "uc_greedy": "1f468-1f3fb-1f52c",
  51764. "shortnames": [":man_scientist_light_skin_tone:"],
  51765. "category": "people"
  51766. },
  51767. ":man_scientist_tone2:": {
  51768. "uc_base": "1f468-1f3fc-1f52c",
  51769. "uc_output": "1f468-1f3fc-200d-1f52c",
  51770. "uc_match": "1f468-1f3fc-1f52c",
  51771. "uc_greedy": "1f468-1f3fc-1f52c",
  51772. "shortnames": [":man_scientist_medium_light_skin_tone:"],
  51773. "category": "people"
  51774. },
  51775. ":man_scientist_tone3:": {
  51776. "uc_base": "1f468-1f3fd-1f52c",
  51777. "uc_output": "1f468-1f3fd-200d-1f52c",
  51778. "uc_match": "1f468-1f3fd-1f52c",
  51779. "uc_greedy": "1f468-1f3fd-1f52c",
  51780. "shortnames": [":man_scientist_medium_skin_tone:"],
  51781. "category": "people"
  51782. },
  51783. ":man_scientist_tone4:": {
  51784. "uc_base": "1f468-1f3fe-1f52c",
  51785. "uc_output": "1f468-1f3fe-200d-1f52c",
  51786. "uc_match": "1f468-1f3fe-1f52c",
  51787. "uc_greedy": "1f468-1f3fe-1f52c",
  51788. "shortnames": [":man_scientist_medium_dark_skin_tone:"],
  51789. "category": "people"
  51790. },
  51791. ":man_scientist_tone5:": {
  51792. "uc_base": "1f468-1f3ff-1f52c",
  51793. "uc_output": "1f468-1f3ff-200d-1f52c",
  51794. "uc_match": "1f468-1f3ff-1f52c",
  51795. "uc_greedy": "1f468-1f3ff-1f52c",
  51796. "shortnames": [":man_scientist_dark_skin_tone:"],
  51797. "category": "people"
  51798. },
  51799. ":man_singer_tone1:": {
  51800. "uc_base": "1f468-1f3fb-1f3a4",
  51801. "uc_output": "1f468-1f3fb-200d-1f3a4",
  51802. "uc_match": "1f468-1f3fb-1f3a4",
  51803. "uc_greedy": "1f468-1f3fb-1f3a4",
  51804. "shortnames": [":man_singer_light_skin_tone:"],
  51805. "category": "people"
  51806. },
  51807. ":man_singer_tone2:": {
  51808. "uc_base": "1f468-1f3fc-1f3a4",
  51809. "uc_output": "1f468-1f3fc-200d-1f3a4",
  51810. "uc_match": "1f468-1f3fc-1f3a4",
  51811. "uc_greedy": "1f468-1f3fc-1f3a4",
  51812. "shortnames": [":man_singer_medium_light_skin_tone:"],
  51813. "category": "people"
  51814. },
  51815. ":man_singer_tone3:": {
  51816. "uc_base": "1f468-1f3fd-1f3a4",
  51817. "uc_output": "1f468-1f3fd-200d-1f3a4",
  51818. "uc_match": "1f468-1f3fd-1f3a4",
  51819. "uc_greedy": "1f468-1f3fd-1f3a4",
  51820. "shortnames": [":man_singer_medium_skin_tone:"],
  51821. "category": "people"
  51822. },
  51823. ":man_singer_tone4:": {
  51824. "uc_base": "1f468-1f3fe-1f3a4",
  51825. "uc_output": "1f468-1f3fe-200d-1f3a4",
  51826. "uc_match": "1f468-1f3fe-1f3a4",
  51827. "uc_greedy": "1f468-1f3fe-1f3a4",
  51828. "shortnames": [":man_singer_medium_dark_skin_tone:"],
  51829. "category": "people"
  51830. },
  51831. ":man_singer_tone5:": {
  51832. "uc_base": "1f468-1f3ff-1f3a4",
  51833. "uc_output": "1f468-1f3ff-200d-1f3a4",
  51834. "uc_match": "1f468-1f3ff-1f3a4",
  51835. "uc_greedy": "1f468-1f3ff-1f3a4",
  51836. "shortnames": [":man_singer_dark_skin_tone:"],
  51837. "category": "people"
  51838. },
  51839. ":man_student_tone1:": {
  51840. "uc_base": "1f468-1f3fb-1f393",
  51841. "uc_output": "1f468-1f3fb-200d-1f393",
  51842. "uc_match": "1f468-1f3fb-1f393",
  51843. "uc_greedy": "1f468-1f3fb-1f393",
  51844. "shortnames": [":man_student_light_skin_tone:"],
  51845. "category": "people"
  51846. },
  51847. ":man_student_tone2:": {
  51848. "uc_base": "1f468-1f3fc-1f393",
  51849. "uc_output": "1f468-1f3fc-200d-1f393",
  51850. "uc_match": "1f468-1f3fc-1f393",
  51851. "uc_greedy": "1f468-1f3fc-1f393",
  51852. "shortnames": [":man_student_medium_light_skin_tone:"],
  51853. "category": "people"
  51854. },
  51855. ":man_student_tone3:": {
  51856. "uc_base": "1f468-1f3fd-1f393",
  51857. "uc_output": "1f468-1f3fd-200d-1f393",
  51858. "uc_match": "1f468-1f3fd-1f393",
  51859. "uc_greedy": "1f468-1f3fd-1f393",
  51860. "shortnames": [":man_student_medium_skin_tone:"],
  51861. "category": "people"
  51862. },
  51863. ":man_student_tone4:": {
  51864. "uc_base": "1f468-1f3fe-1f393",
  51865. "uc_output": "1f468-1f3fe-200d-1f393",
  51866. "uc_match": "1f468-1f3fe-1f393",
  51867. "uc_greedy": "1f468-1f3fe-1f393",
  51868. "shortnames": [":man_student_medium_dark_skin_tone:"],
  51869. "category": "people"
  51870. },
  51871. ":man_student_tone5:": {
  51872. "uc_base": "1f468-1f3ff-1f393",
  51873. "uc_output": "1f468-1f3ff-200d-1f393",
  51874. "uc_match": "1f468-1f3ff-1f393",
  51875. "uc_greedy": "1f468-1f3ff-1f393",
  51876. "shortnames": [":man_student_dark_skin_tone:"],
  51877. "category": "people"
  51878. },
  51879. ":man_teacher_tone1:": {
  51880. "uc_base": "1f468-1f3fb-1f3eb",
  51881. "uc_output": "1f468-1f3fb-200d-1f3eb",
  51882. "uc_match": "1f468-1f3fb-1f3eb",
  51883. "uc_greedy": "1f468-1f3fb-1f3eb",
  51884. "shortnames": [":man_teacher_light_skin_tone:"],
  51885. "category": "people"
  51886. },
  51887. ":man_teacher_tone2:": {
  51888. "uc_base": "1f468-1f3fc-1f3eb",
  51889. "uc_output": "1f468-1f3fc-200d-1f3eb",
  51890. "uc_match": "1f468-1f3fc-1f3eb",
  51891. "uc_greedy": "1f468-1f3fc-1f3eb",
  51892. "shortnames": [":man_teacher_medium_light_skin_tone:"],
  51893. "category": "people"
  51894. },
  51895. ":man_teacher_tone3:": {
  51896. "uc_base": "1f468-1f3fd-1f3eb",
  51897. "uc_output": "1f468-1f3fd-200d-1f3eb",
  51898. "uc_match": "1f468-1f3fd-1f3eb",
  51899. "uc_greedy": "1f468-1f3fd-1f3eb",
  51900. "shortnames": [":man_teacher_medium_skin_tone:"],
  51901. "category": "people"
  51902. },
  51903. ":man_teacher_tone4:": {
  51904. "uc_base": "1f468-1f3fe-1f3eb",
  51905. "uc_output": "1f468-1f3fe-200d-1f3eb",
  51906. "uc_match": "1f468-1f3fe-1f3eb",
  51907. "uc_greedy": "1f468-1f3fe-1f3eb",
  51908. "shortnames": [":man_teacher_medium_dark_skin_tone:"],
  51909. "category": "people"
  51910. },
  51911. ":man_teacher_tone5:": {
  51912. "uc_base": "1f468-1f3ff-1f3eb",
  51913. "uc_output": "1f468-1f3ff-200d-1f3eb",
  51914. "uc_match": "1f468-1f3ff-1f3eb",
  51915. "uc_greedy": "1f468-1f3ff-1f3eb",
  51916. "shortnames": [":man_teacher_dark_skin_tone:"],
  51917. "category": "people"
  51918. },
  51919. ":man_technologist_tone1:": {
  51920. "uc_base": "1f468-1f3fb-1f4bb",
  51921. "uc_output": "1f468-1f3fb-200d-1f4bb",
  51922. "uc_match": "1f468-1f3fb-1f4bb",
  51923. "uc_greedy": "1f468-1f3fb-1f4bb",
  51924. "shortnames": [":man_technologist_light_skin_tone:"],
  51925. "category": "people"
  51926. },
  51927. ":man_technologist_tone2:": {
  51928. "uc_base": "1f468-1f3fc-1f4bb",
  51929. "uc_output": "1f468-1f3fc-200d-1f4bb",
  51930. "uc_match": "1f468-1f3fc-1f4bb",
  51931. "uc_greedy": "1f468-1f3fc-1f4bb",
  51932. "shortnames": [":man_technologist_medium_light_skin_tone:"],
  51933. "category": "people"
  51934. },
  51935. ":man_technologist_tone3:": {
  51936. "uc_base": "1f468-1f3fd-1f4bb",
  51937. "uc_output": "1f468-1f3fd-200d-1f4bb",
  51938. "uc_match": "1f468-1f3fd-1f4bb",
  51939. "uc_greedy": "1f468-1f3fd-1f4bb",
  51940. "shortnames": [":man_technologist_medium_skin_tone:"],
  51941. "category": "people"
  51942. },
  51943. ":man_technologist_tone4:": {
  51944. "uc_base": "1f468-1f3fe-1f4bb",
  51945. "uc_output": "1f468-1f3fe-200d-1f4bb",
  51946. "uc_match": "1f468-1f3fe-1f4bb",
  51947. "uc_greedy": "1f468-1f3fe-1f4bb",
  51948. "shortnames": [":man_technologist_medium_dark_skin_tone:"],
  51949. "category": "people"
  51950. },
  51951. ":man_technologist_tone5:": {
  51952. "uc_base": "1f468-1f3ff-1f4bb",
  51953. "uc_output": "1f468-1f3ff-200d-1f4bb",
  51954. "uc_match": "1f468-1f3ff-1f4bb",
  51955. "uc_greedy": "1f468-1f3ff-1f4bb",
  51956. "shortnames": [":man_technologist_dark_skin_tone:"],
  51957. "category": "people"
  51958. },
  51959. ":woman_artist_tone1:": {
  51960. "uc_base": "1f469-1f3fb-1f3a8",
  51961. "uc_output": "1f469-1f3fb-200d-1f3a8",
  51962. "uc_match": "1f469-1f3fb-1f3a8",
  51963. "uc_greedy": "1f469-1f3fb-1f3a8",
  51964. "shortnames": [":woman_artist_light_skin_tone:"],
  51965. "category": "people"
  51966. },
  51967. ":woman_artist_tone2:": {
  51968. "uc_base": "1f469-1f3fc-1f3a8",
  51969. "uc_output": "1f469-1f3fc-200d-1f3a8",
  51970. "uc_match": "1f469-1f3fc-1f3a8",
  51971. "uc_greedy": "1f469-1f3fc-1f3a8",
  51972. "shortnames": [":woman_artist_medium_light_skin_tone:"],
  51973. "category": "people"
  51974. },
  51975. ":woman_artist_tone3:": {
  51976. "uc_base": "1f469-1f3fd-1f3a8",
  51977. "uc_output": "1f469-1f3fd-200d-1f3a8",
  51978. "uc_match": "1f469-1f3fd-1f3a8",
  51979. "uc_greedy": "1f469-1f3fd-1f3a8",
  51980. "shortnames": [":woman_artist_medium_skin_tone:"],
  51981. "category": "people"
  51982. },
  51983. ":woman_artist_tone4:": {
  51984. "uc_base": "1f469-1f3fe-1f3a8",
  51985. "uc_output": "1f469-1f3fe-200d-1f3a8",
  51986. "uc_match": "1f469-1f3fe-1f3a8",
  51987. "uc_greedy": "1f469-1f3fe-1f3a8",
  51988. "shortnames": [":woman_artist_medium_dark_skin_tone:"],
  51989. "category": "people"
  51990. },
  51991. ":woman_artist_tone5:": {
  51992. "uc_base": "1f469-1f3ff-1f3a8",
  51993. "uc_output": "1f469-1f3ff-200d-1f3a8",
  51994. "uc_match": "1f469-1f3ff-1f3a8",
  51995. "uc_greedy": "1f469-1f3ff-1f3a8",
  51996. "shortnames": [":woman_artist_dark_skin_tone:"],
  51997. "category": "people"
  51998. },
  51999. ":woman_astronaut_tone1:": {
  52000. "uc_base": "1f469-1f3fb-1f680",
  52001. "uc_output": "1f469-1f3fb-200d-1f680",
  52002. "uc_match": "1f469-1f3fb-1f680",
  52003. "uc_greedy": "1f469-1f3fb-1f680",
  52004. "shortnames": [":woman_astronaut_light_skin_tone:"],
  52005. "category": "people"
  52006. },
  52007. ":woman_astronaut_tone2:": {
  52008. "uc_base": "1f469-1f3fc-1f680",
  52009. "uc_output": "1f469-1f3fc-200d-1f680",
  52010. "uc_match": "1f469-1f3fc-1f680",
  52011. "uc_greedy": "1f469-1f3fc-1f680",
  52012. "shortnames": [":woman_astronaut_medium_light_skin_tone:"],
  52013. "category": "people"
  52014. },
  52015. ":woman_astronaut_tone3:": {
  52016. "uc_base": "1f469-1f3fd-1f680",
  52017. "uc_output": "1f469-1f3fd-200d-1f680",
  52018. "uc_match": "1f469-1f3fd-1f680",
  52019. "uc_greedy": "1f469-1f3fd-1f680",
  52020. "shortnames": [":woman_astronaut_medium_skin_tone:"],
  52021. "category": "people"
  52022. },
  52023. ":woman_astronaut_tone4:": {
  52024. "uc_base": "1f469-1f3fe-1f680",
  52025. "uc_output": "1f469-1f3fe-200d-1f680",
  52026. "uc_match": "1f469-1f3fe-1f680",
  52027. "uc_greedy": "1f469-1f3fe-1f680",
  52028. "shortnames": [":woman_astronaut_medium_dark_skin_tone:"],
  52029. "category": "people"
  52030. },
  52031. ":woman_astronaut_tone5:": {
  52032. "uc_base": "1f469-1f3ff-1f680",
  52033. "uc_output": "1f469-1f3ff-200d-1f680",
  52034. "uc_match": "1f469-1f3ff-1f680",
  52035. "uc_greedy": "1f469-1f3ff-1f680",
  52036. "shortnames": [":woman_astronaut_dark_skin_tone:"],
  52037. "category": "people"
  52038. },
  52039. ":woman_cook_tone1:": {
  52040. "uc_base": "1f469-1f3fb-1f373",
  52041. "uc_output": "1f469-1f3fb-200d-1f373",
  52042. "uc_match": "1f469-1f3fb-1f373",
  52043. "uc_greedy": "1f469-1f3fb-1f373",
  52044. "shortnames": [":woman_cook_light_skin_tone:"],
  52045. "category": "people"
  52046. },
  52047. ":woman_cook_tone2:": {
  52048. "uc_base": "1f469-1f3fc-1f373",
  52049. "uc_output": "1f469-1f3fc-200d-1f373",
  52050. "uc_match": "1f469-1f3fc-1f373",
  52051. "uc_greedy": "1f469-1f3fc-1f373",
  52052. "shortnames": [":woman_cook_medium_light_skin_tone:"],
  52053. "category": "people"
  52054. },
  52055. ":woman_cook_tone3:": {
  52056. "uc_base": "1f469-1f3fd-1f373",
  52057. "uc_output": "1f469-1f3fd-200d-1f373",
  52058. "uc_match": "1f469-1f3fd-1f373",
  52059. "uc_greedy": "1f469-1f3fd-1f373",
  52060. "shortnames": [":woman_cook_medium_skin_tone:"],
  52061. "category": "people"
  52062. },
  52063. ":woman_cook_tone4:": {
  52064. "uc_base": "1f469-1f3fe-1f373",
  52065. "uc_output": "1f469-1f3fe-200d-1f373",
  52066. "uc_match": "1f469-1f3fe-1f373",
  52067. "uc_greedy": "1f469-1f3fe-1f373",
  52068. "shortnames": [":woman_cook_medium_dark_skin_tone:"],
  52069. "category": "people"
  52070. },
  52071. ":woman_cook_tone5:": {
  52072. "uc_base": "1f469-1f3ff-1f373",
  52073. "uc_output": "1f469-1f3ff-200d-1f373",
  52074. "uc_match": "1f469-1f3ff-1f373",
  52075. "uc_greedy": "1f469-1f3ff-1f373",
  52076. "shortnames": [":woman_cook_dark_skin_tone:"],
  52077. "category": "people"
  52078. },
  52079. ":woman_factory_worker_tone1:": {
  52080. "uc_base": "1f469-1f3fb-1f3ed",
  52081. "uc_output": "1f469-1f3fb-200d-1f3ed",
  52082. "uc_match": "1f469-1f3fb-1f3ed",
  52083. "uc_greedy": "1f469-1f3fb-1f3ed",
  52084. "shortnames": [":woman_factory_worker_light_skin_tone:"],
  52085. "category": "people"
  52086. },
  52087. ":woman_factory_worker_tone2:": {
  52088. "uc_base": "1f469-1f3fc-1f3ed",
  52089. "uc_output": "1f469-1f3fc-200d-1f3ed",
  52090. "uc_match": "1f469-1f3fc-1f3ed",
  52091. "uc_greedy": "1f469-1f3fc-1f3ed",
  52092. "shortnames": [":woman_factory_worker_medium_light_skin_tone:"],
  52093. "category": "people"
  52094. },
  52095. ":woman_factory_worker_tone3:": {
  52096. "uc_base": "1f469-1f3fd-1f3ed",
  52097. "uc_output": "1f469-1f3fd-200d-1f3ed",
  52098. "uc_match": "1f469-1f3fd-1f3ed",
  52099. "uc_greedy": "1f469-1f3fd-1f3ed",
  52100. "shortnames": [":woman_factory_worker_medium_skin_tone:"],
  52101. "category": "people"
  52102. },
  52103. ":woman_factory_worker_tone4:": {
  52104. "uc_base": "1f469-1f3fe-1f3ed",
  52105. "uc_output": "1f469-1f3fe-200d-1f3ed",
  52106. "uc_match": "1f469-1f3fe-1f3ed",
  52107. "uc_greedy": "1f469-1f3fe-1f3ed",
  52108. "shortnames": [":woman_factory_worker_medium_dark_skin_tone:"],
  52109. "category": "people"
  52110. },
  52111. ":woman_factory_worker_tone5:": {
  52112. "uc_base": "1f469-1f3ff-1f3ed",
  52113. "uc_output": "1f469-1f3ff-200d-1f3ed",
  52114. "uc_match": "1f469-1f3ff-1f3ed",
  52115. "uc_greedy": "1f469-1f3ff-1f3ed",
  52116. "shortnames": [":woman_factory_worker_dark_skin_tone:"],
  52117. "category": "people"
  52118. },
  52119. ":woman_farmer_tone1:": {
  52120. "uc_base": "1f469-1f3fb-1f33e",
  52121. "uc_output": "1f469-1f3fb-200d-1f33e",
  52122. "uc_match": "1f469-1f3fb-1f33e",
  52123. "uc_greedy": "1f469-1f3fb-1f33e",
  52124. "shortnames": [":woman_farmer_light_skin_tone:"],
  52125. "category": "people"
  52126. },
  52127. ":woman_farmer_tone2:": {
  52128. "uc_base": "1f469-1f3fc-1f33e",
  52129. "uc_output": "1f469-1f3fc-200d-1f33e",
  52130. "uc_match": "1f469-1f3fc-1f33e",
  52131. "uc_greedy": "1f469-1f3fc-1f33e",
  52132. "shortnames": [":woman_farmer_medium_light_skin_tone:"],
  52133. "category": "people"
  52134. },
  52135. ":woman_farmer_tone3:": {
  52136. "uc_base": "1f469-1f3fd-1f33e",
  52137. "uc_output": "1f469-1f3fd-200d-1f33e",
  52138. "uc_match": "1f469-1f3fd-1f33e",
  52139. "uc_greedy": "1f469-1f3fd-1f33e",
  52140. "shortnames": [":woman_farmer_medium_skin_tone:"],
  52141. "category": "people"
  52142. },
  52143. ":woman_farmer_tone4:": {
  52144. "uc_base": "1f469-1f3fe-1f33e",
  52145. "uc_output": "1f469-1f3fe-200d-1f33e",
  52146. "uc_match": "1f469-1f3fe-1f33e",
  52147. "uc_greedy": "1f469-1f3fe-1f33e",
  52148. "shortnames": [":woman_farmer_medium_dark_skin_tone:"],
  52149. "category": "people"
  52150. },
  52151. ":woman_farmer_tone5:": {
  52152. "uc_base": "1f469-1f3ff-1f33e",
  52153. "uc_output": "1f469-1f3ff-200d-1f33e",
  52154. "uc_match": "1f469-1f3ff-1f33e",
  52155. "uc_greedy": "1f469-1f3ff-1f33e",
  52156. "shortnames": [":woman_farmer_dark_skin_tone:"],
  52157. "category": "people"
  52158. },
  52159. ":woman_firefighter_tone1:": {
  52160. "uc_base": "1f469-1f3fb-1f692",
  52161. "uc_output": "1f469-1f3fb-200d-1f692",
  52162. "uc_match": "1f469-1f3fb-1f692",
  52163. "uc_greedy": "1f469-1f3fb-1f692",
  52164. "shortnames": [":woman_firefighter_light_skin_tone:"],
  52165. "category": "people"
  52166. },
  52167. ":woman_firefighter_tone2:": {
  52168. "uc_base": "1f469-1f3fc-1f692",
  52169. "uc_output": "1f469-1f3fc-200d-1f692",
  52170. "uc_match": "1f469-1f3fc-1f692",
  52171. "uc_greedy": "1f469-1f3fc-1f692",
  52172. "shortnames": [":woman_firefighter_medium_light_skin_tone:"],
  52173. "category": "people"
  52174. },
  52175. ":woman_firefighter_tone3:": {
  52176. "uc_base": "1f469-1f3fd-1f692",
  52177. "uc_output": "1f469-1f3fd-200d-1f692",
  52178. "uc_match": "1f469-1f3fd-1f692",
  52179. "uc_greedy": "1f469-1f3fd-1f692",
  52180. "shortnames": [":woman_firefighter_medium_skin_tone:"],
  52181. "category": "people"
  52182. },
  52183. ":woman_firefighter_tone4:": {
  52184. "uc_base": "1f469-1f3fe-1f692",
  52185. "uc_output": "1f469-1f3fe-200d-1f692",
  52186. "uc_match": "1f469-1f3fe-1f692",
  52187. "uc_greedy": "1f469-1f3fe-1f692",
  52188. "shortnames": [":woman_firefighter_medium_dark_skin_tone:"],
  52189. "category": "people"
  52190. },
  52191. ":woman_firefighter_tone5:": {
  52192. "uc_base": "1f469-1f3ff-1f692",
  52193. "uc_output": "1f469-1f3ff-200d-1f692",
  52194. "uc_match": "1f469-1f3ff-1f692",
  52195. "uc_greedy": "1f469-1f3ff-1f692",
  52196. "shortnames": [":woman_firefighter_dark_skin_tone:"],
  52197. "category": "people"
  52198. },
  52199. ":woman_mechanic_tone1:": {
  52200. "uc_base": "1f469-1f3fb-1f527",
  52201. "uc_output": "1f469-1f3fb-200d-1f527",
  52202. "uc_match": "1f469-1f3fb-1f527",
  52203. "uc_greedy": "1f469-1f3fb-1f527",
  52204. "shortnames": [":woman_mechanic_light_skin_tone:"],
  52205. "category": "people"
  52206. },
  52207. ":woman_mechanic_tone2:": {
  52208. "uc_base": "1f469-1f3fc-1f527",
  52209. "uc_output": "1f469-1f3fc-200d-1f527",
  52210. "uc_match": "1f469-1f3fc-1f527",
  52211. "uc_greedy": "1f469-1f3fc-1f527",
  52212. "shortnames": [":woman_mechanic_medium_light_skin_tone:"],
  52213. "category": "people"
  52214. },
  52215. ":woman_mechanic_tone3:": {
  52216. "uc_base": "1f469-1f3fd-1f527",
  52217. "uc_output": "1f469-1f3fd-200d-1f527",
  52218. "uc_match": "1f469-1f3fd-1f527",
  52219. "uc_greedy": "1f469-1f3fd-1f527",
  52220. "shortnames": [":woman_mechanic_medium_skin_tone:"],
  52221. "category": "people"
  52222. },
  52223. ":woman_mechanic_tone4:": {
  52224. "uc_base": "1f469-1f3fe-1f527",
  52225. "uc_output": "1f469-1f3fe-200d-1f527",
  52226. "uc_match": "1f469-1f3fe-1f527",
  52227. "uc_greedy": "1f469-1f3fe-1f527",
  52228. "shortnames": [":woman_mechanic_medium_dark_skin_tone:"],
  52229. "category": "people"
  52230. },
  52231. ":woman_mechanic_tone5:": {
  52232. "uc_base": "1f469-1f3ff-1f527",
  52233. "uc_output": "1f469-1f3ff-200d-1f527",
  52234. "uc_match": "1f469-1f3ff-1f527",
  52235. "uc_greedy": "1f469-1f3ff-1f527",
  52236. "shortnames": [":woman_mechanic_dark_skin_tone:"],
  52237. "category": "people"
  52238. },
  52239. ":woman_office_worker_tone1:": {
  52240. "uc_base": "1f469-1f3fb-1f4bc",
  52241. "uc_output": "1f469-1f3fb-200d-1f4bc",
  52242. "uc_match": "1f469-1f3fb-1f4bc",
  52243. "uc_greedy": "1f469-1f3fb-1f4bc",
  52244. "shortnames": [":woman_office_worker_light_skin_tone:"],
  52245. "category": "people"
  52246. },
  52247. ":woman_office_worker_tone2:": {
  52248. "uc_base": "1f469-1f3fc-1f4bc",
  52249. "uc_output": "1f469-1f3fc-200d-1f4bc",
  52250. "uc_match": "1f469-1f3fc-1f4bc",
  52251. "uc_greedy": "1f469-1f3fc-1f4bc",
  52252. "shortnames": [":woman_office_worker_medium_light_skin_tone:"],
  52253. "category": "people"
  52254. },
  52255. ":woman_office_worker_tone3:": {
  52256. "uc_base": "1f469-1f3fd-1f4bc",
  52257. "uc_output": "1f469-1f3fd-200d-1f4bc",
  52258. "uc_match": "1f469-1f3fd-1f4bc",
  52259. "uc_greedy": "1f469-1f3fd-1f4bc",
  52260. "shortnames": [":woman_office_worker_medium_skin_tone:"],
  52261. "category": "people"
  52262. },
  52263. ":woman_office_worker_tone4:": {
  52264. "uc_base": "1f469-1f3fe-1f4bc",
  52265. "uc_output": "1f469-1f3fe-200d-1f4bc",
  52266. "uc_match": "1f469-1f3fe-1f4bc",
  52267. "uc_greedy": "1f469-1f3fe-1f4bc",
  52268. "shortnames": [":woman_office_worker_medium_dark_skin_tone:"],
  52269. "category": "people"
  52270. },
  52271. ":woman_office_worker_tone5:": {
  52272. "uc_base": "1f469-1f3ff-1f4bc",
  52273. "uc_output": "1f469-1f3ff-200d-1f4bc",
  52274. "uc_match": "1f469-1f3ff-1f4bc",
  52275. "uc_greedy": "1f469-1f3ff-1f4bc",
  52276. "shortnames": [":woman_office_worker_dark_skin_tone:"],
  52277. "category": "people"
  52278. },
  52279. ":woman_scientist_tone1:": {
  52280. "uc_base": "1f469-1f3fb-1f52c",
  52281. "uc_output": "1f469-1f3fb-200d-1f52c",
  52282. "uc_match": "1f469-1f3fb-1f52c",
  52283. "uc_greedy": "1f469-1f3fb-1f52c",
  52284. "shortnames": [":woman_scientist_light_skin_tone:"],
  52285. "category": "people"
  52286. },
  52287. ":woman_scientist_tone2:": {
  52288. "uc_base": "1f469-1f3fc-1f52c",
  52289. "uc_output": "1f469-1f3fc-200d-1f52c",
  52290. "uc_match": "1f469-1f3fc-1f52c",
  52291. "uc_greedy": "1f469-1f3fc-1f52c",
  52292. "shortnames": [":woman_scientist_medium_light_skin_tone:"],
  52293. "category": "people"
  52294. },
  52295. ":woman_scientist_tone3:": {
  52296. "uc_base": "1f469-1f3fd-1f52c",
  52297. "uc_output": "1f469-1f3fd-200d-1f52c",
  52298. "uc_match": "1f469-1f3fd-1f52c",
  52299. "uc_greedy": "1f469-1f3fd-1f52c",
  52300. "shortnames": [":woman_scientist_medium_skin_tone:"],
  52301. "category": "people"
  52302. },
  52303. ":woman_scientist_tone4:": {
  52304. "uc_base": "1f469-1f3fe-1f52c",
  52305. "uc_output": "1f469-1f3fe-200d-1f52c",
  52306. "uc_match": "1f469-1f3fe-1f52c",
  52307. "uc_greedy": "1f469-1f3fe-1f52c",
  52308. "shortnames": [":woman_scientist_medium_dark_skin_tone:"],
  52309. "category": "people"
  52310. },
  52311. ":woman_scientist_tone5:": {
  52312. "uc_base": "1f469-1f3ff-1f52c",
  52313. "uc_output": "1f469-1f3ff-200d-1f52c",
  52314. "uc_match": "1f469-1f3ff-1f52c",
  52315. "uc_greedy": "1f469-1f3ff-1f52c",
  52316. "shortnames": [":woman_scientist_dark_skin_tone:"],
  52317. "category": "people"
  52318. },
  52319. ":woman_singer_tone1:": {
  52320. "uc_base": "1f469-1f3fb-1f3a4",
  52321. "uc_output": "1f469-1f3fb-200d-1f3a4",
  52322. "uc_match": "1f469-1f3fb-1f3a4",
  52323. "uc_greedy": "1f469-1f3fb-1f3a4",
  52324. "shortnames": [":woman_singer_light_skin_tone:"],
  52325. "category": "people"
  52326. },
  52327. ":woman_singer_tone2:": {
  52328. "uc_base": "1f469-1f3fc-1f3a4",
  52329. "uc_output": "1f469-1f3fc-200d-1f3a4",
  52330. "uc_match": "1f469-1f3fc-1f3a4",
  52331. "uc_greedy": "1f469-1f3fc-1f3a4",
  52332. "shortnames": [":woman_singer_medium_light_skin_tone:"],
  52333. "category": "people"
  52334. },
  52335. ":woman_singer_tone3:": {
  52336. "uc_base": "1f469-1f3fd-1f3a4",
  52337. "uc_output": "1f469-1f3fd-200d-1f3a4",
  52338. "uc_match": "1f469-1f3fd-1f3a4",
  52339. "uc_greedy": "1f469-1f3fd-1f3a4",
  52340. "shortnames": [":woman_singer_medium_skin_tone:"],
  52341. "category": "people"
  52342. },
  52343. ":woman_singer_tone4:": {
  52344. "uc_base": "1f469-1f3fe-1f3a4",
  52345. "uc_output": "1f469-1f3fe-200d-1f3a4",
  52346. "uc_match": "1f469-1f3fe-1f3a4",
  52347. "uc_greedy": "1f469-1f3fe-1f3a4",
  52348. "shortnames": [":woman_singer_medium_dark_skin_tone:"],
  52349. "category": "people"
  52350. },
  52351. ":woman_singer_tone5:": {
  52352. "uc_base": "1f469-1f3ff-1f3a4",
  52353. "uc_output": "1f469-1f3ff-200d-1f3a4",
  52354. "uc_match": "1f469-1f3ff-1f3a4",
  52355. "uc_greedy": "1f469-1f3ff-1f3a4",
  52356. "shortnames": [":woman_singer_dark_skin_tone:"],
  52357. "category": "people"
  52358. },
  52359. ":woman_student_tone1:": {
  52360. "uc_base": "1f469-1f3fb-1f393",
  52361. "uc_output": "1f469-1f3fb-200d-1f393",
  52362. "uc_match": "1f469-1f3fb-1f393",
  52363. "uc_greedy": "1f469-1f3fb-1f393",
  52364. "shortnames": [":woman_student_light_skin_tone:"],
  52365. "category": "people"
  52366. },
  52367. ":woman_student_tone2:": {
  52368. "uc_base": "1f469-1f3fc-1f393",
  52369. "uc_output": "1f469-1f3fc-200d-1f393",
  52370. "uc_match": "1f469-1f3fc-1f393",
  52371. "uc_greedy": "1f469-1f3fc-1f393",
  52372. "shortnames": [":woman_student_medium_light_skin_tone:"],
  52373. "category": "people"
  52374. },
  52375. ":woman_student_tone3:": {
  52376. "uc_base": "1f469-1f3fd-1f393",
  52377. "uc_output": "1f469-1f3fd-200d-1f393",
  52378. "uc_match": "1f469-1f3fd-1f393",
  52379. "uc_greedy": "1f469-1f3fd-1f393",
  52380. "shortnames": [":woman_student_medium_skin_tone:"],
  52381. "category": "people"
  52382. },
  52383. ":woman_student_tone4:": {
  52384. "uc_base": "1f469-1f3fe-1f393",
  52385. "uc_output": "1f469-1f3fe-200d-1f393",
  52386. "uc_match": "1f469-1f3fe-1f393",
  52387. "uc_greedy": "1f469-1f3fe-1f393",
  52388. "shortnames": [":woman_student_medium_dark_skin_tone:"],
  52389. "category": "people"
  52390. },
  52391. ":woman_student_tone5:": {
  52392. "uc_base": "1f469-1f3ff-1f393",
  52393. "uc_output": "1f469-1f3ff-200d-1f393",
  52394. "uc_match": "1f469-1f3ff-1f393",
  52395. "uc_greedy": "1f469-1f3ff-1f393",
  52396. "shortnames": [":woman_student_dark_skin_tone:"],
  52397. "category": "people"
  52398. },
  52399. ":woman_teacher_tone1:": {
  52400. "uc_base": "1f469-1f3fb-1f3eb",
  52401. "uc_output": "1f469-1f3fb-200d-1f3eb",
  52402. "uc_match": "1f469-1f3fb-1f3eb",
  52403. "uc_greedy": "1f469-1f3fb-1f3eb",
  52404. "shortnames": [":woman_teacher_light_skin_tone:"],
  52405. "category": "people"
  52406. },
  52407. ":woman_teacher_tone2:": {
  52408. "uc_base": "1f469-1f3fc-1f3eb",
  52409. "uc_output": "1f469-1f3fc-200d-1f3eb",
  52410. "uc_match": "1f469-1f3fc-1f3eb",
  52411. "uc_greedy": "1f469-1f3fc-1f3eb",
  52412. "shortnames": [":woman_teacher_medium_light_skin_tone:"],
  52413. "category": "people"
  52414. },
  52415. ":woman_teacher_tone3:": {
  52416. "uc_base": "1f469-1f3fd-1f3eb",
  52417. "uc_output": "1f469-1f3fd-200d-1f3eb",
  52418. "uc_match": "1f469-1f3fd-1f3eb",
  52419. "uc_greedy": "1f469-1f3fd-1f3eb",
  52420. "shortnames": [":woman_teacher_medium_skin_tone:"],
  52421. "category": "people"
  52422. },
  52423. ":woman_teacher_tone4:": {
  52424. "uc_base": "1f469-1f3fe-1f3eb",
  52425. "uc_output": "1f469-1f3fe-200d-1f3eb",
  52426. "uc_match": "1f469-1f3fe-1f3eb",
  52427. "uc_greedy": "1f469-1f3fe-1f3eb",
  52428. "shortnames": [":woman_teacher_medium_dark_skin_tone:"],
  52429. "category": "people"
  52430. },
  52431. ":woman_teacher_tone5:": {
  52432. "uc_base": "1f469-1f3ff-1f3eb",
  52433. "uc_output": "1f469-1f3ff-200d-1f3eb",
  52434. "uc_match": "1f469-1f3ff-1f3eb",
  52435. "uc_greedy": "1f469-1f3ff-1f3eb",
  52436. "shortnames": [":woman_teacher_dark_skin_tone:"],
  52437. "category": "people"
  52438. },
  52439. ":woman_technologist_tone1:": {
  52440. "uc_base": "1f469-1f3fb-1f4bb",
  52441. "uc_output": "1f469-1f3fb-200d-1f4bb",
  52442. "uc_match": "1f469-1f3fb-1f4bb",
  52443. "uc_greedy": "1f469-1f3fb-1f4bb",
  52444. "shortnames": [":woman_technologist_light_skin_tone:"],
  52445. "category": "people"
  52446. },
  52447. ":woman_technologist_tone2:": {
  52448. "uc_base": "1f469-1f3fc-1f4bb",
  52449. "uc_output": "1f469-1f3fc-200d-1f4bb",
  52450. "uc_match": "1f469-1f3fc-1f4bb",
  52451. "uc_greedy": "1f469-1f3fc-1f4bb",
  52452. "shortnames": [":woman_technologist_medium_light_skin_tone:"],
  52453. "category": "people"
  52454. },
  52455. ":woman_technologist_tone3:": {
  52456. "uc_base": "1f469-1f3fd-1f4bb",
  52457. "uc_output": "1f469-1f3fd-200d-1f4bb",
  52458. "uc_match": "1f469-1f3fd-1f4bb",
  52459. "uc_greedy": "1f469-1f3fd-1f4bb",
  52460. "shortnames": [":woman_technologist_medium_skin_tone:"],
  52461. "category": "people"
  52462. },
  52463. ":woman_technologist_tone4:": {
  52464. "uc_base": "1f469-1f3fe-1f4bb",
  52465. "uc_output": "1f469-1f3fe-200d-1f4bb",
  52466. "uc_match": "1f469-1f3fe-1f4bb",
  52467. "uc_greedy": "1f469-1f3fe-1f4bb",
  52468. "shortnames": [":woman_technologist_medium_dark_skin_tone:"],
  52469. "category": "people"
  52470. },
  52471. ":woman_technologist_tone5:": {
  52472. "uc_base": "1f469-1f3ff-1f4bb",
  52473. "uc_output": "1f469-1f3ff-200d-1f4bb",
  52474. "uc_match": "1f469-1f3ff-1f4bb",
  52475. "uc_greedy": "1f469-1f3ff-1f4bb",
  52476. "shortnames": [":woman_technologist_dark_skin_tone:"],
  52477. "category": "people"
  52478. },
  52479. ":rainbow_flag:": {
  52480. "uc_base": "1f3f3-1f308",
  52481. "uc_output": "1f3f3-fe0f-200d-1f308",
  52482. "uc_match": "1f3f3-fe0f-1f308",
  52483. "uc_greedy": "1f3f3-1f308",
  52484. "shortnames": [":gay_pride_flag:"],
  52485. "category": "flags"
  52486. },
  52487. ":blond-haired_man:": {
  52488. "uc_base": "1f471-2642",
  52489. "uc_output": "1f471-200d-2642-fe0f",
  52490. "uc_match": "1f471-2642-fe0f",
  52491. "uc_greedy": "1f471-2642",
  52492. "shortnames": [],
  52493. "category": "people"
  52494. },
  52495. ":blond-haired_woman:": {
  52496. "uc_base": "1f471-2640",
  52497. "uc_output": "1f471-200d-2640-fe0f",
  52498. "uc_match": "1f471-2640-fe0f",
  52499. "uc_greedy": "1f471-2640",
  52500. "shortnames": [],
  52501. "category": "people"
  52502. },
  52503. ":man_biking:": {
  52504. "uc_base": "1f6b4-2642",
  52505. "uc_output": "1f6b4-200d-2642-fe0f",
  52506. "uc_match": "1f6b4-2642-fe0f",
  52507. "uc_greedy": "1f6b4-2642",
  52508. "shortnames": [],
  52509. "category": "activity"
  52510. },
  52511. ":man_bowing:": {
  52512. "uc_base": "1f647-2642",
  52513. "uc_output": "1f647-200d-2642-fe0f",
  52514. "uc_match": "1f647-2642-fe0f",
  52515. "uc_greedy": "1f647-2642",
  52516. "shortnames": [],
  52517. "category": "people"
  52518. },
  52519. ":man_cartwheeling:": {
  52520. "uc_base": "1f938-2642",
  52521. "uc_output": "1f938-200d-2642-fe0f",
  52522. "uc_match": "1f938-2642-fe0f",
  52523. "uc_greedy": "1f938-2642",
  52524. "shortnames": [],
  52525. "category": "activity"
  52526. },
  52527. ":man_climbing:": {
  52528. "uc_base": "1f9d7-2642",
  52529. "uc_output": "1f9d7-200d-2642-fe0f",
  52530. "uc_match": "1f9d7-2642-fe0f",
  52531. "uc_greedy": "1f9d7-2642",
  52532. "shortnames": [],
  52533. "category": "activity"
  52534. },
  52535. ":man_construction_worker:": {
  52536. "uc_base": "1f477-2642",
  52537. "uc_output": "1f477-200d-2642-fe0f",
  52538. "uc_match": "1f477-2642-fe0f",
  52539. "uc_greedy": "1f477-2642",
  52540. "shortnames": [],
  52541. "category": "people"
  52542. },
  52543. ":man_elf:": {
  52544. "uc_base": "1f9dd-2642",
  52545. "uc_output": "1f9dd-200d-2642-fe0f",
  52546. "uc_match": "1f9dd-2642-fe0f",
  52547. "uc_greedy": "1f9dd-2642",
  52548. "shortnames": [],
  52549. "category": "people"
  52550. },
  52551. ":man_facepalming:": {
  52552. "uc_base": "1f926-2642",
  52553. "uc_output": "1f926-200d-2642-fe0f",
  52554. "uc_match": "1f926-2642-fe0f",
  52555. "uc_greedy": "1f926-2642",
  52556. "shortnames": [],
  52557. "category": "people"
  52558. },
  52559. ":man_fairy:": {
  52560. "uc_base": "1f9da-2642",
  52561. "uc_output": "1f9da-200d-2642-fe0f",
  52562. "uc_match": "1f9da-2642-fe0f",
  52563. "uc_greedy": "1f9da-2642",
  52564. "shortnames": [],
  52565. "category": "people"
  52566. },
  52567. ":man_frowning:": {
  52568. "uc_base": "1f64d-2642",
  52569. "uc_output": "1f64d-200d-2642-fe0f",
  52570. "uc_match": "1f64d-2642-fe0f",
  52571. "uc_greedy": "1f64d-2642",
  52572. "shortnames": [],
  52573. "category": "people"
  52574. },
  52575. ":man_genie:": {
  52576. "uc_base": "1f9de-2642",
  52577. "uc_output": "1f9de-200d-2642-fe0f",
  52578. "uc_match": "1f9de-2642-fe0f",
  52579. "uc_greedy": "1f9de-2642",
  52580. "shortnames": [],
  52581. "category": "people"
  52582. },
  52583. ":man_gesturing_no:": {
  52584. "uc_base": "1f645-2642",
  52585. "uc_output": "1f645-200d-2642-fe0f",
  52586. "uc_match": "1f645-2642-fe0f",
  52587. "uc_greedy": "1f645-2642",
  52588. "shortnames": [],
  52589. "category": "people"
  52590. },
  52591. ":man_gesturing_ok:": {
  52592. "uc_base": "1f646-2642",
  52593. "uc_output": "1f646-200d-2642-fe0f",
  52594. "uc_match": "1f646-2642-fe0f",
  52595. "uc_greedy": "1f646-2642",
  52596. "shortnames": [],
  52597. "category": "people"
  52598. },
  52599. ":man_getting_face_massage:": {
  52600. "uc_base": "1f486-2642",
  52601. "uc_output": "1f486-200d-2642-fe0f",
  52602. "uc_match": "1f486-2642-fe0f",
  52603. "uc_greedy": "1f486-2642",
  52604. "shortnames": [],
  52605. "category": "people"
  52606. },
  52607. ":man_getting_haircut:": {
  52608. "uc_base": "1f487-2642",
  52609. "uc_output": "1f487-200d-2642-fe0f",
  52610. "uc_match": "1f487-2642-fe0f",
  52611. "uc_greedy": "1f487-2642",
  52612. "shortnames": [],
  52613. "category": "people"
  52614. },
  52615. ":man_guard:": {
  52616. "uc_base": "1f482-2642",
  52617. "uc_output": "1f482-200d-2642-fe0f",
  52618. "uc_match": "1f482-2642-fe0f",
  52619. "uc_greedy": "1f482-2642",
  52620. "shortnames": [],
  52621. "category": "people"
  52622. },
  52623. ":man_health_worker:": {
  52624. "uc_base": "1f468-2695",
  52625. "uc_output": "1f468-200d-2695-fe0f",
  52626. "uc_match": "1f468-2695-fe0f",
  52627. "uc_greedy": "1f468-2695",
  52628. "shortnames": [],
  52629. "category": "people"
  52630. },
  52631. ":man_in_lotus_position:": {
  52632. "uc_base": "1f9d8-2642",
  52633. "uc_output": "1f9d8-200d-2642-fe0f",
  52634. "uc_match": "1f9d8-2642-fe0f",
  52635. "uc_greedy": "1f9d8-2642",
  52636. "shortnames": [],
  52637. "category": "activity"
  52638. },
  52639. ":man_in_steamy_room:": {
  52640. "uc_base": "1f9d6-2642",
  52641. "uc_output": "1f9d6-200d-2642-fe0f",
  52642. "uc_match": "1f9d6-2642-fe0f",
  52643. "uc_greedy": "1f9d6-2642",
  52644. "shortnames": [],
  52645. "category": "people"
  52646. },
  52647. ":man_judge:": {
  52648. "uc_base": "1f468-2696",
  52649. "uc_output": "1f468-200d-2696-fe0f",
  52650. "uc_match": "1f468-2696-fe0f",
  52651. "uc_greedy": "1f468-2696",
  52652. "shortnames": [],
  52653. "category": "people"
  52654. },
  52655. ":man_juggling:": {
  52656. "uc_base": "1f939-2642",
  52657. "uc_output": "1f939-200d-2642-fe0f",
  52658. "uc_match": "1f939-2642-fe0f",
  52659. "uc_greedy": "1f939-2642",
  52660. "shortnames": [],
  52661. "category": "activity"
  52662. },
  52663. ":man_mage:": {
  52664. "uc_base": "1f9d9-2642",
  52665. "uc_output": "1f9d9-200d-2642-fe0f",
  52666. "uc_match": "1f9d9-2642-fe0f",
  52667. "uc_greedy": "1f9d9-2642",
  52668. "shortnames": [],
  52669. "category": "people"
  52670. },
  52671. ":man_mountain_biking:": {
  52672. "uc_base": "1f6b5-2642",
  52673. "uc_output": "1f6b5-200d-2642-fe0f",
  52674. "uc_match": "1f6b5-2642-fe0f",
  52675. "uc_greedy": "1f6b5-2642",
  52676. "shortnames": [],
  52677. "category": "activity"
  52678. },
  52679. ":man_pilot:": {
  52680. "uc_base": "1f468-2708",
  52681. "uc_output": "1f468-200d-2708-fe0f",
  52682. "uc_match": "1f468-2708-fe0f",
  52683. "uc_greedy": "1f468-2708",
  52684. "shortnames": [],
  52685. "category": "people"
  52686. },
  52687. ":man_playing_handball:": {
  52688. "uc_base": "1f93e-2642",
  52689. "uc_output": "1f93e-200d-2642-fe0f",
  52690. "uc_match": "1f93e-2642-fe0f",
  52691. "uc_greedy": "1f93e-2642",
  52692. "shortnames": [],
  52693. "category": "activity"
  52694. },
  52695. ":man_playing_water_polo:": {
  52696. "uc_base": "1f93d-2642",
  52697. "uc_output": "1f93d-200d-2642-fe0f",
  52698. "uc_match": "1f93d-2642-fe0f",
  52699. "uc_greedy": "1f93d-2642",
  52700. "shortnames": [],
  52701. "category": "activity"
  52702. },
  52703. ":man_police_officer:": {
  52704. "uc_base": "1f46e-2642",
  52705. "uc_output": "1f46e-200d-2642-fe0f",
  52706. "uc_match": "1f46e-2642-fe0f",
  52707. "uc_greedy": "1f46e-2642",
  52708. "shortnames": [],
  52709. "category": "people"
  52710. },
  52711. ":man_pouting:": {
  52712. "uc_base": "1f64e-2642",
  52713. "uc_output": "1f64e-200d-2642-fe0f",
  52714. "uc_match": "1f64e-2642-fe0f",
  52715. "uc_greedy": "1f64e-2642",
  52716. "shortnames": [],
  52717. "category": "people"
  52718. },
  52719. ":man_raising_hand:": {
  52720. "uc_base": "1f64b-2642",
  52721. "uc_output": "1f64b-200d-2642-fe0f",
  52722. "uc_match": "1f64b-2642-fe0f",
  52723. "uc_greedy": "1f64b-2642",
  52724. "shortnames": [],
  52725. "category": "people"
  52726. },
  52727. ":man_rowing_boat:": {
  52728. "uc_base": "1f6a3-2642",
  52729. "uc_output": "1f6a3-200d-2642-fe0f",
  52730. "uc_match": "1f6a3-2642-fe0f",
  52731. "uc_greedy": "1f6a3-2642",
  52732. "shortnames": [],
  52733. "category": "activity"
  52734. },
  52735. ":man_running:": {
  52736. "uc_base": "1f3c3-2642",
  52737. "uc_output": "1f3c3-200d-2642-fe0f",
  52738. "uc_match": "1f3c3-2642-fe0f",
  52739. "uc_greedy": "1f3c3-2642",
  52740. "shortnames": [],
  52741. "category": "people"
  52742. },
  52743. ":man_shrugging:": {
  52744. "uc_base": "1f937-2642",
  52745. "uc_output": "1f937-200d-2642-fe0f",
  52746. "uc_match": "1f937-2642-fe0f",
  52747. "uc_greedy": "1f937-2642",
  52748. "shortnames": [],
  52749. "category": "people"
  52750. },
  52751. ":man_surfing:": {
  52752. "uc_base": "1f3c4-2642",
  52753. "uc_output": "1f3c4-200d-2642-fe0f",
  52754. "uc_match": "1f3c4-2642-fe0f",
  52755. "uc_greedy": "1f3c4-2642",
  52756. "shortnames": [],
  52757. "category": "activity"
  52758. },
  52759. ":man_swimming:": {
  52760. "uc_base": "1f3ca-2642",
  52761. "uc_output": "1f3ca-200d-2642-fe0f",
  52762. "uc_match": "1f3ca-2642-fe0f",
  52763. "uc_greedy": "1f3ca-2642",
  52764. "shortnames": [],
  52765. "category": "activity"
  52766. },
  52767. ":man_tipping_hand:": {
  52768. "uc_base": "1f481-2642",
  52769. "uc_output": "1f481-200d-2642-fe0f",
  52770. "uc_match": "1f481-2642-fe0f",
  52771. "uc_greedy": "1f481-2642",
  52772. "shortnames": [],
  52773. "category": "people"
  52774. },
  52775. ":man_vampire:": {
  52776. "uc_base": "1f9db-2642",
  52777. "uc_output": "1f9db-200d-2642-fe0f",
  52778. "uc_match": "1f9db-2642-fe0f",
  52779. "uc_greedy": "1f9db-2642",
  52780. "shortnames": [],
  52781. "category": "people"
  52782. },
  52783. ":man_walking:": {
  52784. "uc_base": "1f6b6-2642",
  52785. "uc_output": "1f6b6-200d-2642-fe0f",
  52786. "uc_match": "1f6b6-2642-fe0f",
  52787. "uc_greedy": "1f6b6-2642",
  52788. "shortnames": [],
  52789. "category": "people"
  52790. },
  52791. ":man_wearing_turban:": {
  52792. "uc_base": "1f473-2642",
  52793. "uc_output": "1f473-200d-2642-fe0f",
  52794. "uc_match": "1f473-2642-fe0f",
  52795. "uc_greedy": "1f473-2642",
  52796. "shortnames": [],
  52797. "category": "people"
  52798. },
  52799. ":man_zombie:": {
  52800. "uc_base": "1f9df-2642",
  52801. "uc_output": "1f9df-200d-2642-fe0f",
  52802. "uc_match": "1f9df-2642-fe0f",
  52803. "uc_greedy": "1f9df-2642",
  52804. "shortnames": [],
  52805. "category": "people"
  52806. },
  52807. ":men_with_bunny_ears_partying:": {
  52808. "uc_base": "1f46f-2642",
  52809. "uc_output": "1f46f-200d-2642-fe0f",
  52810. "uc_match": "1f46f-2642-fe0f",
  52811. "uc_greedy": "1f46f-2642",
  52812. "shortnames": [],
  52813. "category": "people"
  52814. },
  52815. ":men_wrestling:": {
  52816. "uc_base": "1f93c-2642",
  52817. "uc_output": "1f93c-200d-2642-fe0f",
  52818. "uc_match": "1f93c-2642-fe0f",
  52819. "uc_greedy": "1f93c-2642",
  52820. "shortnames": [],
  52821. "category": "activity"
  52822. },
  52823. ":mermaid:": {
  52824. "uc_base": "1f9dc-2640",
  52825. "uc_output": "1f9dc-200d-2640-fe0f",
  52826. "uc_match": "1f9dc-2640-fe0f",
  52827. "uc_greedy": "1f9dc-2640",
  52828. "shortnames": [],
  52829. "category": "people"
  52830. },
  52831. ":merman:": {
  52832. "uc_base": "1f9dc-2642",
  52833. "uc_output": "1f9dc-200d-2642-fe0f",
  52834. "uc_match": "1f9dc-2642-fe0f",
  52835. "uc_greedy": "1f9dc-2642",
  52836. "shortnames": [],
  52837. "category": "people"
  52838. },
  52839. ":woman_biking:": {
  52840. "uc_base": "1f6b4-2640",
  52841. "uc_output": "1f6b4-200d-2640-fe0f",
  52842. "uc_match": "1f6b4-2640-fe0f",
  52843. "uc_greedy": "1f6b4-2640",
  52844. "shortnames": [],
  52845. "category": "activity"
  52846. },
  52847. ":woman_bowing:": {
  52848. "uc_base": "1f647-2640",
  52849. "uc_output": "1f647-200d-2640-fe0f",
  52850. "uc_match": "1f647-2640-fe0f",
  52851. "uc_greedy": "1f647-2640",
  52852. "shortnames": [],
  52853. "category": "people"
  52854. },
  52855. ":woman_cartwheeling:": {
  52856. "uc_base": "1f938-2640",
  52857. "uc_output": "1f938-200d-2640-fe0f",
  52858. "uc_match": "1f938-2640-fe0f",
  52859. "uc_greedy": "1f938-2640",
  52860. "shortnames": [],
  52861. "category": "activity"
  52862. },
  52863. ":woman_climbing:": {
  52864. "uc_base": "1f9d7-2640",
  52865. "uc_output": "1f9d7-200d-2640-fe0f",
  52866. "uc_match": "1f9d7-2640-fe0f",
  52867. "uc_greedy": "1f9d7-2640",
  52868. "shortnames": [],
  52869. "category": "activity"
  52870. },
  52871. ":woman_construction_worker:": {
  52872. "uc_base": "1f477-2640",
  52873. "uc_output": "1f477-200d-2640-fe0f",
  52874. "uc_match": "1f477-2640-fe0f",
  52875. "uc_greedy": "1f477-2640",
  52876. "shortnames": [],
  52877. "category": "people"
  52878. },
  52879. ":woman_elf:": {
  52880. "uc_base": "1f9dd-2640",
  52881. "uc_output": "1f9dd-200d-2640-fe0f",
  52882. "uc_match": "1f9dd-2640-fe0f",
  52883. "uc_greedy": "1f9dd-2640",
  52884. "shortnames": [],
  52885. "category": "people"
  52886. },
  52887. ":woman_facepalming:": {
  52888. "uc_base": "1f926-2640",
  52889. "uc_output": "1f926-200d-2640-fe0f",
  52890. "uc_match": "1f926-2640-fe0f",
  52891. "uc_greedy": "1f926-2640",
  52892. "shortnames": [],
  52893. "category": "people"
  52894. },
  52895. ":woman_fairy:": {
  52896. "uc_base": "1f9da-2640",
  52897. "uc_output": "1f9da-200d-2640-fe0f",
  52898. "uc_match": "1f9da-2640-fe0f",
  52899. "uc_greedy": "1f9da-2640",
  52900. "shortnames": [],
  52901. "category": "people"
  52902. },
  52903. ":woman_frowning:": {
  52904. "uc_base": "1f64d-2640",
  52905. "uc_output": "1f64d-200d-2640-fe0f",
  52906. "uc_match": "1f64d-2640-fe0f",
  52907. "uc_greedy": "1f64d-2640",
  52908. "shortnames": [],
  52909. "category": "people"
  52910. },
  52911. ":woman_genie:": {
  52912. "uc_base": "1f9de-2640",
  52913. "uc_output": "1f9de-200d-2640-fe0f",
  52914. "uc_match": "1f9de-2640-fe0f",
  52915. "uc_greedy": "1f9de-2640",
  52916. "shortnames": [],
  52917. "category": "people"
  52918. },
  52919. ":woman_gesturing_no:": {
  52920. "uc_base": "1f645-2640",
  52921. "uc_output": "1f645-200d-2640-fe0f",
  52922. "uc_match": "1f645-2640-fe0f",
  52923. "uc_greedy": "1f645-2640",
  52924. "shortnames": [],
  52925. "category": "people"
  52926. },
  52927. ":woman_gesturing_ok:": {
  52928. "uc_base": "1f646-2640",
  52929. "uc_output": "1f646-200d-2640-fe0f",
  52930. "uc_match": "1f646-2640-fe0f",
  52931. "uc_greedy": "1f646-2640",
  52932. "shortnames": [],
  52933. "category": "people"
  52934. },
  52935. ":woman_getting_face_massage:": {
  52936. "uc_base": "1f486-2640",
  52937. "uc_output": "1f486-200d-2640-fe0f",
  52938. "uc_match": "1f486-2640-fe0f",
  52939. "uc_greedy": "1f486-2640",
  52940. "shortnames": [],
  52941. "category": "people"
  52942. },
  52943. ":woman_getting_haircut:": {
  52944. "uc_base": "1f487-2640",
  52945. "uc_output": "1f487-200d-2640-fe0f",
  52946. "uc_match": "1f487-2640-fe0f",
  52947. "uc_greedy": "1f487-2640",
  52948. "shortnames": [],
  52949. "category": "people"
  52950. },
  52951. ":woman_guard:": {
  52952. "uc_base": "1f482-2640",
  52953. "uc_output": "1f482-200d-2640-fe0f",
  52954. "uc_match": "1f482-2640-fe0f",
  52955. "uc_greedy": "1f482-2640",
  52956. "shortnames": [],
  52957. "category": "people"
  52958. },
  52959. ":woman_health_worker:": {
  52960. "uc_base": "1f469-2695",
  52961. "uc_output": "1f469-200d-2695-fe0f",
  52962. "uc_match": "1f469-2695-fe0f",
  52963. "uc_greedy": "1f469-2695",
  52964. "shortnames": [],
  52965. "category": "people"
  52966. },
  52967. ":woman_in_lotus_position:": {
  52968. "uc_base": "1f9d8-2640",
  52969. "uc_output": "1f9d8-200d-2640-fe0f",
  52970. "uc_match": "1f9d8-2640-fe0f",
  52971. "uc_greedy": "1f9d8-2640",
  52972. "shortnames": [],
  52973. "category": "activity"
  52974. },
  52975. ":woman_in_steamy_room:": {
  52976. "uc_base": "1f9d6-2640",
  52977. "uc_output": "1f9d6-200d-2640-fe0f",
  52978. "uc_match": "1f9d6-2640-fe0f",
  52979. "uc_greedy": "1f9d6-2640",
  52980. "shortnames": [],
  52981. "category": "people"
  52982. },
  52983. ":woman_judge:": {
  52984. "uc_base": "1f469-2696",
  52985. "uc_output": "1f469-200d-2696-fe0f",
  52986. "uc_match": "1f469-2696-fe0f",
  52987. "uc_greedy": "1f469-2696",
  52988. "shortnames": [],
  52989. "category": "people"
  52990. },
  52991. ":woman_juggling:": {
  52992. "uc_base": "1f939-2640",
  52993. "uc_output": "1f939-200d-2640-fe0f",
  52994. "uc_match": "1f939-2640-fe0f",
  52995. "uc_greedy": "1f939-2640",
  52996. "shortnames": [],
  52997. "category": "activity"
  52998. },
  52999. ":woman_mage:": {
  53000. "uc_base": "1f9d9-2640",
  53001. "uc_output": "1f9d9-200d-2640-fe0f",
  53002. "uc_match": "1f9d9-2640-fe0f",
  53003. "uc_greedy": "1f9d9-2640",
  53004. "shortnames": [],
  53005. "category": "people"
  53006. },
  53007. ":woman_mountain_biking:": {
  53008. "uc_base": "1f6b5-2640",
  53009. "uc_output": "1f6b5-200d-2640-fe0f",
  53010. "uc_match": "1f6b5-2640-fe0f",
  53011. "uc_greedy": "1f6b5-2640",
  53012. "shortnames": [],
  53013. "category": "activity"
  53014. },
  53015. ":woman_pilot:": {
  53016. "uc_base": "1f469-2708",
  53017. "uc_output": "1f469-200d-2708-fe0f",
  53018. "uc_match": "1f469-2708-fe0f",
  53019. "uc_greedy": "1f469-2708",
  53020. "shortnames": [],
  53021. "category": "people"
  53022. },
  53023. ":woman_playing_handball:": {
  53024. "uc_base": "1f93e-2640",
  53025. "uc_output": "1f93e-200d-2640-fe0f",
  53026. "uc_match": "1f93e-2640-fe0f",
  53027. "uc_greedy": "1f93e-2640",
  53028. "shortnames": [],
  53029. "category": "activity"
  53030. },
  53031. ":woman_playing_water_polo:": {
  53032. "uc_base": "1f93d-2640",
  53033. "uc_output": "1f93d-200d-2640-fe0f",
  53034. "uc_match": "1f93d-2640-fe0f",
  53035. "uc_greedy": "1f93d-2640",
  53036. "shortnames": [],
  53037. "category": "activity"
  53038. },
  53039. ":woman_police_officer:": {
  53040. "uc_base": "1f46e-2640",
  53041. "uc_output": "1f46e-200d-2640-fe0f",
  53042. "uc_match": "1f46e-2640-fe0f",
  53043. "uc_greedy": "1f46e-2640",
  53044. "shortnames": [],
  53045. "category": "people"
  53046. },
  53047. ":woman_pouting:": {
  53048. "uc_base": "1f64e-2640",
  53049. "uc_output": "1f64e-200d-2640-fe0f",
  53050. "uc_match": "1f64e-2640-fe0f",
  53051. "uc_greedy": "1f64e-2640",
  53052. "shortnames": [],
  53053. "category": "people"
  53054. },
  53055. ":woman_raising_hand:": {
  53056. "uc_base": "1f64b-2640",
  53057. "uc_output": "1f64b-200d-2640-fe0f",
  53058. "uc_match": "1f64b-2640-fe0f",
  53059. "uc_greedy": "1f64b-2640",
  53060. "shortnames": [],
  53061. "category": "people"
  53062. },
  53063. ":woman_rowing_boat:": {
  53064. "uc_base": "1f6a3-2640",
  53065. "uc_output": "1f6a3-200d-2640-fe0f",
  53066. "uc_match": "1f6a3-2640-fe0f",
  53067. "uc_greedy": "1f6a3-2640",
  53068. "shortnames": [],
  53069. "category": "activity"
  53070. },
  53071. ":woman_running:": {
  53072. "uc_base": "1f3c3-2640",
  53073. "uc_output": "1f3c3-200d-2640-fe0f",
  53074. "uc_match": "1f3c3-2640-fe0f",
  53075. "uc_greedy": "1f3c3-2640",
  53076. "shortnames": [],
  53077. "category": "people"
  53078. },
  53079. ":woman_shrugging:": {
  53080. "uc_base": "1f937-2640",
  53081. "uc_output": "1f937-200d-2640-fe0f",
  53082. "uc_match": "1f937-2640-fe0f",
  53083. "uc_greedy": "1f937-2640",
  53084. "shortnames": [],
  53085. "category": "people"
  53086. },
  53087. ":woman_surfing:": {
  53088. "uc_base": "1f3c4-2640",
  53089. "uc_output": "1f3c4-200d-2640-fe0f",
  53090. "uc_match": "1f3c4-2640-fe0f",
  53091. "uc_greedy": "1f3c4-2640",
  53092. "shortnames": [],
  53093. "category": "activity"
  53094. },
  53095. ":woman_swimming:": {
  53096. "uc_base": "1f3ca-2640",
  53097. "uc_output": "1f3ca-200d-2640-fe0f",
  53098. "uc_match": "1f3ca-2640-fe0f",
  53099. "uc_greedy": "1f3ca-2640",
  53100. "shortnames": [],
  53101. "category": "activity"
  53102. },
  53103. ":woman_tipping_hand:": {
  53104. "uc_base": "1f481-2640",
  53105. "uc_output": "1f481-200d-2640-fe0f",
  53106. "uc_match": "1f481-2640-fe0f",
  53107. "uc_greedy": "1f481-2640",
  53108. "shortnames": [],
  53109. "category": "people"
  53110. },
  53111. ":woman_vampire:": {
  53112. "uc_base": "1f9db-2640",
  53113. "uc_output": "1f9db-200d-2640-fe0f",
  53114. "uc_match": "1f9db-2640-fe0f",
  53115. "uc_greedy": "1f9db-2640",
  53116. "shortnames": [],
  53117. "category": "people"
  53118. },
  53119. ":woman_walking:": {
  53120. "uc_base": "1f6b6-2640",
  53121. "uc_output": "1f6b6-200d-2640-fe0f",
  53122. "uc_match": "1f6b6-2640-fe0f",
  53123. "uc_greedy": "1f6b6-2640",
  53124. "shortnames": [],
  53125. "category": "people"
  53126. },
  53127. ":woman_wearing_turban:": {
  53128. "uc_base": "1f473-2640",
  53129. "uc_output": "1f473-200d-2640-fe0f",
  53130. "uc_match": "1f473-2640-fe0f",
  53131. "uc_greedy": "1f473-2640",
  53132. "shortnames": [],
  53133. "category": "people"
  53134. },
  53135. ":woman_zombie:": {
  53136. "uc_base": "1f9df-2640",
  53137. "uc_output": "1f9df-200d-2640-fe0f",
  53138. "uc_match": "1f9df-2640-fe0f",
  53139. "uc_greedy": "1f9df-2640",
  53140. "shortnames": [],
  53141. "category": "people"
  53142. },
  53143. ":women_with_bunny_ears_partying:": {
  53144. "uc_base": "1f46f-2640",
  53145. "uc_output": "1f46f-200d-2640-fe0f",
  53146. "uc_match": "1f46f-2640-fe0f",
  53147. "uc_greedy": "1f46f-2640",
  53148. "shortnames": [],
  53149. "category": "people"
  53150. },
  53151. ":women_wrestling:": {
  53152. "uc_base": "1f93c-2640",
  53153. "uc_output": "1f93c-200d-2640-fe0f",
  53154. "uc_match": "1f93c-2640-fe0f",
  53155. "uc_greedy": "1f93c-2640",
  53156. "shortnames": [],
  53157. "category": "activity"
  53158. },
  53159. ":family_man_boy:": {
  53160. "uc_base": "1f468-1f466",
  53161. "uc_output": "1f468-200d-1f466",
  53162. "uc_match": "1f468-1f466",
  53163. "uc_greedy": "1f468-1f466",
  53164. "shortnames": [],
  53165. "category": "people"
  53166. },
  53167. ":family_man_girl:": {
  53168. "uc_base": "1f468-1f467",
  53169. "uc_output": "1f468-200d-1f467",
  53170. "uc_match": "1f468-1f467",
  53171. "uc_greedy": "1f468-1f467",
  53172. "shortnames": [],
  53173. "category": "people"
  53174. },
  53175. ":family_woman_boy:": {
  53176. "uc_base": "1f469-1f466",
  53177. "uc_output": "1f469-200d-1f466",
  53178. "uc_match": "1f469-1f466",
  53179. "uc_greedy": "1f469-1f466",
  53180. "shortnames": [],
  53181. "category": "people"
  53182. },
  53183. ":family_woman_girl:": {
  53184. "uc_base": "1f469-1f467",
  53185. "uc_output": "1f469-200d-1f467",
  53186. "uc_match": "1f469-1f467",
  53187. "uc_greedy": "1f469-1f467",
  53188. "shortnames": [],
  53189. "category": "people"
  53190. },
  53191. ":man_artist:": {
  53192. "uc_base": "1f468-1f3a8",
  53193. "uc_output": "1f468-200d-1f3a8",
  53194. "uc_match": "1f468-1f3a8",
  53195. "uc_greedy": "1f468-1f3a8",
  53196. "shortnames": [],
  53197. "category": "people"
  53198. },
  53199. ":man_astronaut:": {
  53200. "uc_base": "1f468-1f680",
  53201. "uc_output": "1f468-200d-1f680",
  53202. "uc_match": "1f468-1f680",
  53203. "uc_greedy": "1f468-1f680",
  53204. "shortnames": [],
  53205. "category": "people"
  53206. },
  53207. ":man_cook:": {
  53208. "uc_base": "1f468-1f373",
  53209. "uc_output": "1f468-200d-1f373",
  53210. "uc_match": "1f468-1f373",
  53211. "uc_greedy": "1f468-1f373",
  53212. "shortnames": [],
  53213. "category": "people"
  53214. },
  53215. ":man_factory_worker:": {
  53216. "uc_base": "1f468-1f3ed",
  53217. "uc_output": "1f468-200d-1f3ed",
  53218. "uc_match": "1f468-1f3ed",
  53219. "uc_greedy": "1f468-1f3ed",
  53220. "shortnames": [],
  53221. "category": "people"
  53222. },
  53223. ":man_farmer:": {
  53224. "uc_base": "1f468-1f33e",
  53225. "uc_output": "1f468-200d-1f33e",
  53226. "uc_match": "1f468-1f33e",
  53227. "uc_greedy": "1f468-1f33e",
  53228. "shortnames": [],
  53229. "category": "people"
  53230. },
  53231. ":man_firefighter:": {
  53232. "uc_base": "1f468-1f692",
  53233. "uc_output": "1f468-200d-1f692",
  53234. "uc_match": "1f468-1f692",
  53235. "uc_greedy": "1f468-1f692",
  53236. "shortnames": [],
  53237. "category": "people"
  53238. },
  53239. ":man_mechanic:": {
  53240. "uc_base": "1f468-1f527",
  53241. "uc_output": "1f468-200d-1f527",
  53242. "uc_match": "1f468-1f527",
  53243. "uc_greedy": "1f468-1f527",
  53244. "shortnames": [],
  53245. "category": "people"
  53246. },
  53247. ":man_office_worker:": {
  53248. "uc_base": "1f468-1f4bc",
  53249. "uc_output": "1f468-200d-1f4bc",
  53250. "uc_match": "1f468-1f4bc",
  53251. "uc_greedy": "1f468-1f4bc",
  53252. "shortnames": [],
  53253. "category": "people"
  53254. },
  53255. ":man_scientist:": {
  53256. "uc_base": "1f468-1f52c",
  53257. "uc_output": "1f468-200d-1f52c",
  53258. "uc_match": "1f468-1f52c",
  53259. "uc_greedy": "1f468-1f52c",
  53260. "shortnames": [],
  53261. "category": "people"
  53262. },
  53263. ":man_singer:": {
  53264. "uc_base": "1f468-1f3a4",
  53265. "uc_output": "1f468-200d-1f3a4",
  53266. "uc_match": "1f468-1f3a4",
  53267. "uc_greedy": "1f468-1f3a4",
  53268. "shortnames": [],
  53269. "category": "people"
  53270. },
  53271. ":man_student:": {
  53272. "uc_base": "1f468-1f393",
  53273. "uc_output": "1f468-200d-1f393",
  53274. "uc_match": "1f468-1f393",
  53275. "uc_greedy": "1f468-1f393",
  53276. "shortnames": [],
  53277. "category": "people"
  53278. },
  53279. ":man_teacher:": {
  53280. "uc_base": "1f468-1f3eb",
  53281. "uc_output": "1f468-200d-1f3eb",
  53282. "uc_match": "1f468-1f3eb",
  53283. "uc_greedy": "1f468-1f3eb",
  53284. "shortnames": [],
  53285. "category": "people"
  53286. },
  53287. ":man_technologist:": {
  53288. "uc_base": "1f468-1f4bb",
  53289. "uc_output": "1f468-200d-1f4bb",
  53290. "uc_match": "1f468-1f4bb",
  53291. "uc_greedy": "1f468-1f4bb",
  53292. "shortnames": [],
  53293. "category": "people"
  53294. },
  53295. ":woman_artist:": {
  53296. "uc_base": "1f469-1f3a8",
  53297. "uc_output": "1f469-200d-1f3a8",
  53298. "uc_match": "1f469-1f3a8",
  53299. "uc_greedy": "1f469-1f3a8",
  53300. "shortnames": [],
  53301. "category": "people"
  53302. },
  53303. ":woman_astronaut:": {
  53304. "uc_base": "1f469-1f680",
  53305. "uc_output": "1f469-200d-1f680",
  53306. "uc_match": "1f469-1f680",
  53307. "uc_greedy": "1f469-1f680",
  53308. "shortnames": [],
  53309. "category": "people"
  53310. },
  53311. ":woman_cook:": {
  53312. "uc_base": "1f469-1f373",
  53313. "uc_output": "1f469-200d-1f373",
  53314. "uc_match": "1f469-1f373",
  53315. "uc_greedy": "1f469-1f373",
  53316. "shortnames": [],
  53317. "category": "people"
  53318. },
  53319. ":woman_factory_worker:": {
  53320. "uc_base": "1f469-1f3ed",
  53321. "uc_output": "1f469-200d-1f3ed",
  53322. "uc_match": "1f469-1f3ed",
  53323. "uc_greedy": "1f469-1f3ed",
  53324. "shortnames": [],
  53325. "category": "people"
  53326. },
  53327. ":woman_farmer:": {
  53328. "uc_base": "1f469-1f33e",
  53329. "uc_output": "1f469-200d-1f33e",
  53330. "uc_match": "1f469-1f33e",
  53331. "uc_greedy": "1f469-1f33e",
  53332. "shortnames": [],
  53333. "category": "people"
  53334. },
  53335. ":woman_firefighter:": {
  53336. "uc_base": "1f469-1f692",
  53337. "uc_output": "1f469-200d-1f692",
  53338. "uc_match": "1f469-1f692",
  53339. "uc_greedy": "1f469-1f692",
  53340. "shortnames": [],
  53341. "category": "people"
  53342. },
  53343. ":woman_mechanic:": {
  53344. "uc_base": "1f469-1f527",
  53345. "uc_output": "1f469-200d-1f527",
  53346. "uc_match": "1f469-1f527",
  53347. "uc_greedy": "1f469-1f527",
  53348. "shortnames": [],
  53349. "category": "people"
  53350. },
  53351. ":woman_office_worker:": {
  53352. "uc_base": "1f469-1f4bc",
  53353. "uc_output": "1f469-200d-1f4bc",
  53354. "uc_match": "1f469-1f4bc",
  53355. "uc_greedy": "1f469-1f4bc",
  53356. "shortnames": [],
  53357. "category": "people"
  53358. },
  53359. ":woman_scientist:": {
  53360. "uc_base": "1f469-1f52c",
  53361. "uc_output": "1f469-200d-1f52c",
  53362. "uc_match": "1f469-1f52c",
  53363. "uc_greedy": "1f469-1f52c",
  53364. "shortnames": [],
  53365. "category": "people"
  53366. },
  53367. ":woman_singer:": {
  53368. "uc_base": "1f469-1f3a4",
  53369. "uc_output": "1f469-200d-1f3a4",
  53370. "uc_match": "1f469-1f3a4",
  53371. "uc_greedy": "1f469-1f3a4",
  53372. "shortnames": [],
  53373. "category": "people"
  53374. },
  53375. ":woman_student:": {
  53376. "uc_base": "1f469-1f393",
  53377. "uc_output": "1f469-200d-1f393",
  53378. "uc_match": "1f469-1f393",
  53379. "uc_greedy": "1f469-1f393",
  53380. "shortnames": [],
  53381. "category": "people"
  53382. },
  53383. ":woman_teacher:": {
  53384. "uc_base": "1f469-1f3eb",
  53385. "uc_output": "1f469-200d-1f3eb",
  53386. "uc_match": "1f469-1f3eb",
  53387. "uc_greedy": "1f469-1f3eb",
  53388. "shortnames": [],
  53389. "category": "people"
  53390. },
  53391. ":woman_technologist:": {
  53392. "uc_base": "1f469-1f4bb",
  53393. "uc_output": "1f469-200d-1f4bb",
  53394. "uc_match": "1f469-1f4bb",
  53395. "uc_greedy": "1f469-1f4bb",
  53396. "shortnames": [],
  53397. "category": "people"
  53398. },
  53399. ":asterisk:": {
  53400. "uc_base": "002a-20e3",
  53401. "uc_output": "002a-fe0f-20e3",
  53402. "uc_match": "002a-20e3",
  53403. "uc_greedy": "002a-20e3",
  53404. "shortnames": [":keycap_asterisk:"],
  53405. "category": "symbols"
  53406. },
  53407. ":eight:": {
  53408. "uc_base": "0038-20e3",
  53409. "uc_output": "0038-fe0f-20e3",
  53410. "uc_match": "0038-20e3",
  53411. "uc_greedy": "0038-20e3",
  53412. "shortnames": [],
  53413. "category": "symbols"
  53414. },
  53415. ":five:": {
  53416. "uc_base": "0035-20e3",
  53417. "uc_output": "0035-fe0f-20e3",
  53418. "uc_match": "0035-20e3",
  53419. "uc_greedy": "0035-20e3",
  53420. "shortnames": [],
  53421. "category": "symbols"
  53422. },
  53423. ":four:": {
  53424. "uc_base": "0034-20e3",
  53425. "uc_output": "0034-fe0f-20e3",
  53426. "uc_match": "0034-20e3",
  53427. "uc_greedy": "0034-20e3",
  53428. "shortnames": [],
  53429. "category": "symbols"
  53430. },
  53431. ":hash:": {
  53432. "uc_base": "0023-20e3",
  53433. "uc_output": "0023-fe0f-20e3",
  53434. "uc_match": "0023-20e3",
  53435. "uc_greedy": "0023-20e3",
  53436. "shortnames": [],
  53437. "category": "symbols"
  53438. },
  53439. ":nine:": {
  53440. "uc_base": "0039-20e3",
  53441. "uc_output": "0039-fe0f-20e3",
  53442. "uc_match": "0039-20e3",
  53443. "uc_greedy": "0039-20e3",
  53444. "shortnames": [],
  53445. "category": "symbols"
  53446. },
  53447. ":one:": {
  53448. "uc_base": "0031-20e3",
  53449. "uc_output": "0031-fe0f-20e3",
  53450. "uc_match": "0031-20e3",
  53451. "uc_greedy": "0031-20e3",
  53452. "shortnames": [],
  53453. "category": "symbols"
  53454. },
  53455. ":seven:": {
  53456. "uc_base": "0037-20e3",
  53457. "uc_output": "0037-fe0f-20e3",
  53458. "uc_match": "0037-20e3",
  53459. "uc_greedy": "0037-20e3",
  53460. "shortnames": [],
  53461. "category": "symbols"
  53462. },
  53463. ":six:": {
  53464. "uc_base": "0036-20e3",
  53465. "uc_output": "0036-fe0f-20e3",
  53466. "uc_match": "0036-20e3",
  53467. "uc_greedy": "0036-20e3",
  53468. "shortnames": [],
  53469. "category": "symbols"
  53470. },
  53471. ":three:": {
  53472. "uc_base": "0033-20e3",
  53473. "uc_output": "0033-fe0f-20e3",
  53474. "uc_match": "0033-20e3",
  53475. "uc_greedy": "0033-20e3",
  53476. "shortnames": [],
  53477. "category": "symbols"
  53478. },
  53479. ":two:": {
  53480. "uc_base": "0032-20e3",
  53481. "uc_output": "0032-fe0f-20e3",
  53482. "uc_match": "0032-20e3",
  53483. "uc_greedy": "0032-20e3",
  53484. "shortnames": [],
  53485. "category": "symbols"
  53486. },
  53487. ":zero:": {
  53488. "uc_base": "0030-20e3",
  53489. "uc_output": "0030-fe0f-20e3",
  53490. "uc_match": "0030-20e3",
  53491. "uc_greedy": "0030-20e3",
  53492. "shortnames": [],
  53493. "category": "symbols"
  53494. },
  53495. ":adult_tone1:": {
  53496. "uc_base": "1f9d1-1f3fb",
  53497. "uc_output": "1f9d1-1f3fb",
  53498. "uc_match": "1f9d1-1f3fb",
  53499. "uc_greedy": "1f9d1-1f3fb",
  53500. "shortnames": [":adult_light_skin_tone:"],
  53501. "category": "people"
  53502. },
  53503. ":adult_tone2:": {
  53504. "uc_base": "1f9d1-1f3fc",
  53505. "uc_output": "1f9d1-1f3fc",
  53506. "uc_match": "1f9d1-1f3fc",
  53507. "uc_greedy": "1f9d1-1f3fc",
  53508. "shortnames": [":adult_medium_light_skin_tone:"],
  53509. "category": "people"
  53510. },
  53511. ":adult_tone3:": {
  53512. "uc_base": "1f9d1-1f3fd",
  53513. "uc_output": "1f9d1-1f3fd",
  53514. "uc_match": "1f9d1-1f3fd",
  53515. "uc_greedy": "1f9d1-1f3fd",
  53516. "shortnames": [":adult_medium_skin_tone:"],
  53517. "category": "people"
  53518. },
  53519. ":adult_tone4:": {
  53520. "uc_base": "1f9d1-1f3fe",
  53521. "uc_output": "1f9d1-1f3fe",
  53522. "uc_match": "1f9d1-1f3fe",
  53523. "uc_greedy": "1f9d1-1f3fe",
  53524. "shortnames": [":adult_medium_dark_skin_tone:"],
  53525. "category": "people"
  53526. },
  53527. ":adult_tone5:": {
  53528. "uc_base": "1f9d1-1f3ff",
  53529. "uc_output": "1f9d1-1f3ff",
  53530. "uc_match": "1f9d1-1f3ff",
  53531. "uc_greedy": "1f9d1-1f3ff",
  53532. "shortnames": [":adult_dark_skin_tone:"],
  53533. "category": "people"
  53534. },
  53535. ":angel_tone1:": {
  53536. "uc_base": "1f47c-1f3fb",
  53537. "uc_output": "1f47c-1f3fb",
  53538. "uc_match": "1f47c-1f3fb",
  53539. "uc_greedy": "1f47c-1f3fb",
  53540. "shortnames": [],
  53541. "category": "people"
  53542. },
  53543. ":angel_tone2:": {
  53544. "uc_base": "1f47c-1f3fc",
  53545. "uc_output": "1f47c-1f3fc",
  53546. "uc_match": "1f47c-1f3fc",
  53547. "uc_greedy": "1f47c-1f3fc",
  53548. "shortnames": [],
  53549. "category": "people"
  53550. },
  53551. ":angel_tone3:": {
  53552. "uc_base": "1f47c-1f3fd",
  53553. "uc_output": "1f47c-1f3fd",
  53554. "uc_match": "1f47c-1f3fd",
  53555. "uc_greedy": "1f47c-1f3fd",
  53556. "shortnames": [],
  53557. "category": "people"
  53558. },
  53559. ":angel_tone4:": {
  53560. "uc_base": "1f47c-1f3fe",
  53561. "uc_output": "1f47c-1f3fe",
  53562. "uc_match": "1f47c-1f3fe",
  53563. "uc_greedy": "1f47c-1f3fe",
  53564. "shortnames": [],
  53565. "category": "people"
  53566. },
  53567. ":angel_tone5:": {
  53568. "uc_base": "1f47c-1f3ff",
  53569. "uc_output": "1f47c-1f3ff",
  53570. "uc_match": "1f47c-1f3ff",
  53571. "uc_greedy": "1f47c-1f3ff",
  53572. "shortnames": [],
  53573. "category": "people"
  53574. },
  53575. ":baby_tone1:": {
  53576. "uc_base": "1f476-1f3fb",
  53577. "uc_output": "1f476-1f3fb",
  53578. "uc_match": "1f476-1f3fb",
  53579. "uc_greedy": "1f476-1f3fb",
  53580. "shortnames": [],
  53581. "category": "people"
  53582. },
  53583. ":baby_tone2:": {
  53584. "uc_base": "1f476-1f3fc",
  53585. "uc_output": "1f476-1f3fc",
  53586. "uc_match": "1f476-1f3fc",
  53587. "uc_greedy": "1f476-1f3fc",
  53588. "shortnames": [],
  53589. "category": "people"
  53590. },
  53591. ":baby_tone3:": {
  53592. "uc_base": "1f476-1f3fd",
  53593. "uc_output": "1f476-1f3fd",
  53594. "uc_match": "1f476-1f3fd",
  53595. "uc_greedy": "1f476-1f3fd",
  53596. "shortnames": [],
  53597. "category": "people"
  53598. },
  53599. ":baby_tone4:": {
  53600. "uc_base": "1f476-1f3fe",
  53601. "uc_output": "1f476-1f3fe",
  53602. "uc_match": "1f476-1f3fe",
  53603. "uc_greedy": "1f476-1f3fe",
  53604. "shortnames": [],
  53605. "category": "people"
  53606. },
  53607. ":baby_tone5:": {
  53608. "uc_base": "1f476-1f3ff",
  53609. "uc_output": "1f476-1f3ff",
  53610. "uc_match": "1f476-1f3ff",
  53611. "uc_greedy": "1f476-1f3ff",
  53612. "shortnames": [],
  53613. "category": "people"
  53614. },
  53615. ":bath_tone1:": {
  53616. "uc_base": "1f6c0-1f3fb",
  53617. "uc_output": "1f6c0-1f3fb",
  53618. "uc_match": "1f6c0-1f3fb",
  53619. "uc_greedy": "1f6c0-1f3fb",
  53620. "shortnames": [],
  53621. "category": "objects"
  53622. },
  53623. ":bath_tone2:": {
  53624. "uc_base": "1f6c0-1f3fc",
  53625. "uc_output": "1f6c0-1f3fc",
  53626. "uc_match": "1f6c0-1f3fc",
  53627. "uc_greedy": "1f6c0-1f3fc",
  53628. "shortnames": [],
  53629. "category": "objects"
  53630. },
  53631. ":bath_tone3:": {
  53632. "uc_base": "1f6c0-1f3fd",
  53633. "uc_output": "1f6c0-1f3fd",
  53634. "uc_match": "1f6c0-1f3fd",
  53635. "uc_greedy": "1f6c0-1f3fd",
  53636. "shortnames": [],
  53637. "category": "objects"
  53638. },
  53639. ":bath_tone4:": {
  53640. "uc_base": "1f6c0-1f3fe",
  53641. "uc_output": "1f6c0-1f3fe",
  53642. "uc_match": "1f6c0-1f3fe",
  53643. "uc_greedy": "1f6c0-1f3fe",
  53644. "shortnames": [],
  53645. "category": "objects"
  53646. },
  53647. ":bath_tone5:": {
  53648. "uc_base": "1f6c0-1f3ff",
  53649. "uc_output": "1f6c0-1f3ff",
  53650. "uc_match": "1f6c0-1f3ff",
  53651. "uc_greedy": "1f6c0-1f3ff",
  53652. "shortnames": [],
  53653. "category": "objects"
  53654. },
  53655. ":bearded_person_tone1:": {
  53656. "uc_base": "1f9d4-1f3fb",
  53657. "uc_output": "1f9d4-1f3fb",
  53658. "uc_match": "1f9d4-1f3fb",
  53659. "uc_greedy": "1f9d4-1f3fb",
  53660. "shortnames": [":bearded_person_light_skin_tone:"],
  53661. "category": "people"
  53662. },
  53663. ":bearded_person_tone2:": {
  53664. "uc_base": "1f9d4-1f3fc",
  53665. "uc_output": "1f9d4-1f3fc",
  53666. "uc_match": "1f9d4-1f3fc",
  53667. "uc_greedy": "1f9d4-1f3fc",
  53668. "shortnames": [":bearded_person_medium_light_skin_tone:"],
  53669. "category": "people"
  53670. },
  53671. ":bearded_person_tone3:": {
  53672. "uc_base": "1f9d4-1f3fd",
  53673. "uc_output": "1f9d4-1f3fd",
  53674. "uc_match": "1f9d4-1f3fd",
  53675. "uc_greedy": "1f9d4-1f3fd",
  53676. "shortnames": [":bearded_person_medium_skin_tone:"],
  53677. "category": "people"
  53678. },
  53679. ":bearded_person_tone4:": {
  53680. "uc_base": "1f9d4-1f3fe",
  53681. "uc_output": "1f9d4-1f3fe",
  53682. "uc_match": "1f9d4-1f3fe",
  53683. "uc_greedy": "1f9d4-1f3fe",
  53684. "shortnames": [":bearded_person_medium_dark_skin_tone:"],
  53685. "category": "people"
  53686. },
  53687. ":bearded_person_tone5:": {
  53688. "uc_base": "1f9d4-1f3ff",
  53689. "uc_output": "1f9d4-1f3ff",
  53690. "uc_match": "1f9d4-1f3ff",
  53691. "uc_greedy": "1f9d4-1f3ff",
  53692. "shortnames": [":bearded_person_dark_skin_tone:"],
  53693. "category": "people"
  53694. },
  53695. ":blond_haired_person_tone1:": {
  53696. "uc_base": "1f471-1f3fb",
  53697. "uc_output": "1f471-1f3fb",
  53698. "uc_match": "1f471-1f3fb",
  53699. "uc_greedy": "1f471-1f3fb",
  53700. "shortnames": [":person_with_blond_hair_tone1:"],
  53701. "category": "people"
  53702. },
  53703. ":blond_haired_person_tone2:": {
  53704. "uc_base": "1f471-1f3fc",
  53705. "uc_output": "1f471-1f3fc",
  53706. "uc_match": "1f471-1f3fc",
  53707. "uc_greedy": "1f471-1f3fc",
  53708. "shortnames": [":person_with_blond_hair_tone2:"],
  53709. "category": "people"
  53710. },
  53711. ":blond_haired_person_tone3:": {
  53712. "uc_base": "1f471-1f3fd",
  53713. "uc_output": "1f471-1f3fd",
  53714. "uc_match": "1f471-1f3fd",
  53715. "uc_greedy": "1f471-1f3fd",
  53716. "shortnames": [":person_with_blond_hair_tone3:"],
  53717. "category": "people"
  53718. },
  53719. ":blond_haired_person_tone4:": {
  53720. "uc_base": "1f471-1f3fe",
  53721. "uc_output": "1f471-1f3fe",
  53722. "uc_match": "1f471-1f3fe",
  53723. "uc_greedy": "1f471-1f3fe",
  53724. "shortnames": [":person_with_blond_hair_tone4:"],
  53725. "category": "people"
  53726. },
  53727. ":blond_haired_person_tone5:": {
  53728. "uc_base": "1f471-1f3ff",
  53729. "uc_output": "1f471-1f3ff",
  53730. "uc_match": "1f471-1f3ff",
  53731. "uc_greedy": "1f471-1f3ff",
  53732. "shortnames": [":person_with_blond_hair_tone5:"],
  53733. "category": "people"
  53734. },
  53735. ":boy_tone1:": {
  53736. "uc_base": "1f466-1f3fb",
  53737. "uc_output": "1f466-1f3fb",
  53738. "uc_match": "1f466-1f3fb",
  53739. "uc_greedy": "1f466-1f3fb",
  53740. "shortnames": [],
  53741. "category": "people"
  53742. },
  53743. ":boy_tone2:": {
  53744. "uc_base": "1f466-1f3fc",
  53745. "uc_output": "1f466-1f3fc",
  53746. "uc_match": "1f466-1f3fc",
  53747. "uc_greedy": "1f466-1f3fc",
  53748. "shortnames": [],
  53749. "category": "people"
  53750. },
  53751. ":boy_tone3:": {
  53752. "uc_base": "1f466-1f3fd",
  53753. "uc_output": "1f466-1f3fd",
  53754. "uc_match": "1f466-1f3fd",
  53755. "uc_greedy": "1f466-1f3fd",
  53756. "shortnames": [],
  53757. "category": "people"
  53758. },
  53759. ":boy_tone4:": {
  53760. "uc_base": "1f466-1f3fe",
  53761. "uc_output": "1f466-1f3fe",
  53762. "uc_match": "1f466-1f3fe",
  53763. "uc_greedy": "1f466-1f3fe",
  53764. "shortnames": [],
  53765. "category": "people"
  53766. },
  53767. ":boy_tone5:": {
  53768. "uc_base": "1f466-1f3ff",
  53769. "uc_output": "1f466-1f3ff",
  53770. "uc_match": "1f466-1f3ff",
  53771. "uc_greedy": "1f466-1f3ff",
  53772. "shortnames": [],
  53773. "category": "people"
  53774. },
  53775. ":breast_feeding_tone1:": {
  53776. "uc_base": "1f931-1f3fb",
  53777. "uc_output": "1f931-1f3fb",
  53778. "uc_match": "1f931-1f3fb",
  53779. "uc_greedy": "1f931-1f3fb",
  53780. "shortnames": [":breast_feeding_light_skin_tone:"],
  53781. "category": "people"
  53782. },
  53783. ":breast_feeding_tone2:": {
  53784. "uc_base": "1f931-1f3fc",
  53785. "uc_output": "1f931-1f3fc",
  53786. "uc_match": "1f931-1f3fc",
  53787. "uc_greedy": "1f931-1f3fc",
  53788. "shortnames": [":breast_feeding_medium_light_skin_tone:"],
  53789. "category": "people"
  53790. },
  53791. ":breast_feeding_tone3:": {
  53792. "uc_base": "1f931-1f3fd",
  53793. "uc_output": "1f931-1f3fd",
  53794. "uc_match": "1f931-1f3fd",
  53795. "uc_greedy": "1f931-1f3fd",
  53796. "shortnames": [":breast_feeding_medium_skin_tone:"],
  53797. "category": "people"
  53798. },
  53799. ":breast_feeding_tone4:": {
  53800. "uc_base": "1f931-1f3fe",
  53801. "uc_output": "1f931-1f3fe",
  53802. "uc_match": "1f931-1f3fe",
  53803. "uc_greedy": "1f931-1f3fe",
  53804. "shortnames": [":breast_feeding_medium_dark_skin_tone:"],
  53805. "category": "people"
  53806. },
  53807. ":breast_feeding_tone5:": {
  53808. "uc_base": "1f931-1f3ff",
  53809. "uc_output": "1f931-1f3ff",
  53810. "uc_match": "1f931-1f3ff",
  53811. "uc_greedy": "1f931-1f3ff",
  53812. "shortnames": [":breast_feeding_dark_skin_tone:"],
  53813. "category": "people"
  53814. },
  53815. ":bride_with_veil_tone1:": {
  53816. "uc_base": "1f470-1f3fb",
  53817. "uc_output": "1f470-1f3fb",
  53818. "uc_match": "1f470-1f3fb",
  53819. "uc_greedy": "1f470-1f3fb",
  53820. "shortnames": [],
  53821. "category": "people"
  53822. },
  53823. ":bride_with_veil_tone2:": {
  53824. "uc_base": "1f470-1f3fc",
  53825. "uc_output": "1f470-1f3fc",
  53826. "uc_match": "1f470-1f3fc",
  53827. "uc_greedy": "1f470-1f3fc",
  53828. "shortnames": [],
  53829. "category": "people"
  53830. },
  53831. ":bride_with_veil_tone3:": {
  53832. "uc_base": "1f470-1f3fd",
  53833. "uc_output": "1f470-1f3fd",
  53834. "uc_match": "1f470-1f3fd",
  53835. "uc_greedy": "1f470-1f3fd",
  53836. "shortnames": [],
  53837. "category": "people"
  53838. },
  53839. ":bride_with_veil_tone4:": {
  53840. "uc_base": "1f470-1f3fe",
  53841. "uc_output": "1f470-1f3fe",
  53842. "uc_match": "1f470-1f3fe",
  53843. "uc_greedy": "1f470-1f3fe",
  53844. "shortnames": [],
  53845. "category": "people"
  53846. },
  53847. ":bride_with_veil_tone5:": {
  53848. "uc_base": "1f470-1f3ff",
  53849. "uc_output": "1f470-1f3ff",
  53850. "uc_match": "1f470-1f3ff",
  53851. "uc_greedy": "1f470-1f3ff",
  53852. "shortnames": [],
  53853. "category": "people"
  53854. },
  53855. ":call_me_tone1:": {
  53856. "uc_base": "1f919-1f3fb",
  53857. "uc_output": "1f919-1f3fb",
  53858. "uc_match": "1f919-1f3fb",
  53859. "uc_greedy": "1f919-1f3fb",
  53860. "shortnames": [":call_me_hand_tone1:"],
  53861. "category": "people"
  53862. },
  53863. ":call_me_tone2:": {
  53864. "uc_base": "1f919-1f3fc",
  53865. "uc_output": "1f919-1f3fc",
  53866. "uc_match": "1f919-1f3fc",
  53867. "uc_greedy": "1f919-1f3fc",
  53868. "shortnames": [":call_me_hand_tone2:"],
  53869. "category": "people"
  53870. },
  53871. ":call_me_tone3:": {
  53872. "uc_base": "1f919-1f3fd",
  53873. "uc_output": "1f919-1f3fd",
  53874. "uc_match": "1f919-1f3fd",
  53875. "uc_greedy": "1f919-1f3fd",
  53876. "shortnames": [":call_me_hand_tone3:"],
  53877. "category": "people"
  53878. },
  53879. ":call_me_tone4:": {
  53880. "uc_base": "1f919-1f3fe",
  53881. "uc_output": "1f919-1f3fe",
  53882. "uc_match": "1f919-1f3fe",
  53883. "uc_greedy": "1f919-1f3fe",
  53884. "shortnames": [":call_me_hand_tone4:"],
  53885. "category": "people"
  53886. },
  53887. ":call_me_tone5:": {
  53888. "uc_base": "1f919-1f3ff",
  53889. "uc_output": "1f919-1f3ff",
  53890. "uc_match": "1f919-1f3ff",
  53891. "uc_greedy": "1f919-1f3ff",
  53892. "shortnames": [":call_me_hand_tone5:"],
  53893. "category": "people"
  53894. },
  53895. ":child_tone1:": {
  53896. "uc_base": "1f9d2-1f3fb",
  53897. "uc_output": "1f9d2-1f3fb",
  53898. "uc_match": "1f9d2-1f3fb",
  53899. "uc_greedy": "1f9d2-1f3fb",
  53900. "shortnames": [":child_light_skin_tone:"],
  53901. "category": "people"
  53902. },
  53903. ":child_tone2:": {
  53904. "uc_base": "1f9d2-1f3fc",
  53905. "uc_output": "1f9d2-1f3fc",
  53906. "uc_match": "1f9d2-1f3fc",
  53907. "uc_greedy": "1f9d2-1f3fc",
  53908. "shortnames": [":child_medium_light_skin_tone:"],
  53909. "category": "people"
  53910. },
  53911. ":child_tone3:": {
  53912. "uc_base": "1f9d2-1f3fd",
  53913. "uc_output": "1f9d2-1f3fd",
  53914. "uc_match": "1f9d2-1f3fd",
  53915. "uc_greedy": "1f9d2-1f3fd",
  53916. "shortnames": [":child_medium_skin_tone:"],
  53917. "category": "people"
  53918. },
  53919. ":child_tone4:": {
  53920. "uc_base": "1f9d2-1f3fe",
  53921. "uc_output": "1f9d2-1f3fe",
  53922. "uc_match": "1f9d2-1f3fe",
  53923. "uc_greedy": "1f9d2-1f3fe",
  53924. "shortnames": [":child_medium_dark_skin_tone:"],
  53925. "category": "people"
  53926. },
  53927. ":child_tone5:": {
  53928. "uc_base": "1f9d2-1f3ff",
  53929. "uc_output": "1f9d2-1f3ff",
  53930. "uc_match": "1f9d2-1f3ff",
  53931. "uc_greedy": "1f9d2-1f3ff",
  53932. "shortnames": [":child_dark_skin_tone:"],
  53933. "category": "people"
  53934. },
  53935. ":clap_tone1:": {
  53936. "uc_base": "1f44f-1f3fb",
  53937. "uc_output": "1f44f-1f3fb",
  53938. "uc_match": "1f44f-1f3fb",
  53939. "uc_greedy": "1f44f-1f3fb",
  53940. "shortnames": [],
  53941. "category": "people"
  53942. },
  53943. ":clap_tone2:": {
  53944. "uc_base": "1f44f-1f3fc",
  53945. "uc_output": "1f44f-1f3fc",
  53946. "uc_match": "1f44f-1f3fc",
  53947. "uc_greedy": "1f44f-1f3fc",
  53948. "shortnames": [],
  53949. "category": "people"
  53950. },
  53951. ":clap_tone3:": {
  53952. "uc_base": "1f44f-1f3fd",
  53953. "uc_output": "1f44f-1f3fd",
  53954. "uc_match": "1f44f-1f3fd",
  53955. "uc_greedy": "1f44f-1f3fd",
  53956. "shortnames": [],
  53957. "category": "people"
  53958. },
  53959. ":clap_tone4:": {
  53960. "uc_base": "1f44f-1f3fe",
  53961. "uc_output": "1f44f-1f3fe",
  53962. "uc_match": "1f44f-1f3fe",
  53963. "uc_greedy": "1f44f-1f3fe",
  53964. "shortnames": [],
  53965. "category": "people"
  53966. },
  53967. ":clap_tone5:": {
  53968. "uc_base": "1f44f-1f3ff",
  53969. "uc_output": "1f44f-1f3ff",
  53970. "uc_match": "1f44f-1f3ff",
  53971. "uc_greedy": "1f44f-1f3ff",
  53972. "shortnames": [],
  53973. "category": "people"
  53974. },
  53975. ":construction_worker_tone1:": {
  53976. "uc_base": "1f477-1f3fb",
  53977. "uc_output": "1f477-1f3fb",
  53978. "uc_match": "1f477-1f3fb",
  53979. "uc_greedy": "1f477-1f3fb",
  53980. "shortnames": [],
  53981. "category": "people"
  53982. },
  53983. ":construction_worker_tone2:": {
  53984. "uc_base": "1f477-1f3fc",
  53985. "uc_output": "1f477-1f3fc",
  53986. "uc_match": "1f477-1f3fc",
  53987. "uc_greedy": "1f477-1f3fc",
  53988. "shortnames": [],
  53989. "category": "people"
  53990. },
  53991. ":construction_worker_tone3:": {
  53992. "uc_base": "1f477-1f3fd",
  53993. "uc_output": "1f477-1f3fd",
  53994. "uc_match": "1f477-1f3fd",
  53995. "uc_greedy": "1f477-1f3fd",
  53996. "shortnames": [],
  53997. "category": "people"
  53998. },
  53999. ":construction_worker_tone4:": {
  54000. "uc_base": "1f477-1f3fe",
  54001. "uc_output": "1f477-1f3fe",
  54002. "uc_match": "1f477-1f3fe",
  54003. "uc_greedy": "1f477-1f3fe",
  54004. "shortnames": [],
  54005. "category": "people"
  54006. },
  54007. ":construction_worker_tone5:": {
  54008. "uc_base": "1f477-1f3ff",
  54009. "uc_output": "1f477-1f3ff",
  54010. "uc_match": "1f477-1f3ff",
  54011. "uc_greedy": "1f477-1f3ff",
  54012. "shortnames": [],
  54013. "category": "people"
  54014. },
  54015. ":dancer_tone1:": {
  54016. "uc_base": "1f483-1f3fb",
  54017. "uc_output": "1f483-1f3fb",
  54018. "uc_match": "1f483-1f3fb",
  54019. "uc_greedy": "1f483-1f3fb",
  54020. "shortnames": [],
  54021. "category": "people"
  54022. },
  54023. ":dancer_tone2:": {
  54024. "uc_base": "1f483-1f3fc",
  54025. "uc_output": "1f483-1f3fc",
  54026. "uc_match": "1f483-1f3fc",
  54027. "uc_greedy": "1f483-1f3fc",
  54028. "shortnames": [],
  54029. "category": "people"
  54030. },
  54031. ":dancer_tone3:": {
  54032. "uc_base": "1f483-1f3fd",
  54033. "uc_output": "1f483-1f3fd",
  54034. "uc_match": "1f483-1f3fd",
  54035. "uc_greedy": "1f483-1f3fd",
  54036. "shortnames": [],
  54037. "category": "people"
  54038. },
  54039. ":dancer_tone4:": {
  54040. "uc_base": "1f483-1f3fe",
  54041. "uc_output": "1f483-1f3fe",
  54042. "uc_match": "1f483-1f3fe",
  54043. "uc_greedy": "1f483-1f3fe",
  54044. "shortnames": [],
  54045. "category": "people"
  54046. },
  54047. ":dancer_tone5:": {
  54048. "uc_base": "1f483-1f3ff",
  54049. "uc_output": "1f483-1f3ff",
  54050. "uc_match": "1f483-1f3ff",
  54051. "uc_greedy": "1f483-1f3ff",
  54052. "shortnames": [],
  54053. "category": "people"
  54054. },
  54055. ":detective_tone1:": {
  54056. "uc_base": "1f575-1f3fb",
  54057. "uc_output": "1f575-1f3fb",
  54058. "uc_match": "1f575-fe0f-1f3fb",
  54059. "uc_greedy": "1f575-fe0f-1f3fb",
  54060. "shortnames": [":spy_tone1:", ":sleuth_or_spy_tone1:"],
  54061. "category": "people"
  54062. },
  54063. ":detective_tone2:": {
  54064. "uc_base": "1f575-1f3fc",
  54065. "uc_output": "1f575-1f3fc",
  54066. "uc_match": "1f575-fe0f-1f3fc",
  54067. "uc_greedy": "1f575-fe0f-1f3fc",
  54068. "shortnames": [":spy_tone2:", ":sleuth_or_spy_tone2:"],
  54069. "category": "people"
  54070. },
  54071. ":detective_tone3:": {
  54072. "uc_base": "1f575-1f3fd",
  54073. "uc_output": "1f575-1f3fd",
  54074. "uc_match": "1f575-fe0f-1f3fd",
  54075. "uc_greedy": "1f575-fe0f-1f3fd",
  54076. "shortnames": [":spy_tone3:", ":sleuth_or_spy_tone3:"],
  54077. "category": "people"
  54078. },
  54079. ":detective_tone4:": {
  54080. "uc_base": "1f575-1f3fe",
  54081. "uc_output": "1f575-1f3fe",
  54082. "uc_match": "1f575-fe0f-1f3fe",
  54083. "uc_greedy": "1f575-fe0f-1f3fe",
  54084. "shortnames": [":spy_tone4:", ":sleuth_or_spy_tone4:"],
  54085. "category": "people"
  54086. },
  54087. ":detective_tone5:": {
  54088. "uc_base": "1f575-1f3ff",
  54089. "uc_output": "1f575-1f3ff",
  54090. "uc_match": "1f575-fe0f-1f3ff",
  54091. "uc_greedy": "1f575-fe0f-1f3ff",
  54092. "shortnames": [":spy_tone5:", ":sleuth_or_spy_tone5:"],
  54093. "category": "people"
  54094. },
  54095. ":ear_tone1:": {
  54096. "uc_base": "1f442-1f3fb",
  54097. "uc_output": "1f442-1f3fb",
  54098. "uc_match": "1f442-1f3fb",
  54099. "uc_greedy": "1f442-1f3fb",
  54100. "shortnames": [],
  54101. "category": "people"
  54102. },
  54103. ":ear_tone2:": {
  54104. "uc_base": "1f442-1f3fc",
  54105. "uc_output": "1f442-1f3fc",
  54106. "uc_match": "1f442-1f3fc",
  54107. "uc_greedy": "1f442-1f3fc",
  54108. "shortnames": [],
  54109. "category": "people"
  54110. },
  54111. ":ear_tone3:": {
  54112. "uc_base": "1f442-1f3fd",
  54113. "uc_output": "1f442-1f3fd",
  54114. "uc_match": "1f442-1f3fd",
  54115. "uc_greedy": "1f442-1f3fd",
  54116. "shortnames": [],
  54117. "category": "people"
  54118. },
  54119. ":ear_tone4:": {
  54120. "uc_base": "1f442-1f3fe",
  54121. "uc_output": "1f442-1f3fe",
  54122. "uc_match": "1f442-1f3fe",
  54123. "uc_greedy": "1f442-1f3fe",
  54124. "shortnames": [],
  54125. "category": "people"
  54126. },
  54127. ":ear_tone5:": {
  54128. "uc_base": "1f442-1f3ff",
  54129. "uc_output": "1f442-1f3ff",
  54130. "uc_match": "1f442-1f3ff",
  54131. "uc_greedy": "1f442-1f3ff",
  54132. "shortnames": [],
  54133. "category": "people"
  54134. },
  54135. ":elf_tone1:": {
  54136. "uc_base": "1f9dd-1f3fb",
  54137. "uc_output": "1f9dd-1f3fb",
  54138. "uc_match": "1f9dd-1f3fb",
  54139. "uc_greedy": "1f9dd-1f3fb",
  54140. "shortnames": [":elf_light_skin_tone:"],
  54141. "category": "people"
  54142. },
  54143. ":elf_tone2:": {
  54144. "uc_base": "1f9dd-1f3fc",
  54145. "uc_output": "1f9dd-1f3fc",
  54146. "uc_match": "1f9dd-1f3fc",
  54147. "uc_greedy": "1f9dd-1f3fc",
  54148. "shortnames": [":elf_medium_light_skin_tone:"],
  54149. "category": "people"
  54150. },
  54151. ":elf_tone3:": {
  54152. "uc_base": "1f9dd-1f3fd",
  54153. "uc_output": "1f9dd-1f3fd",
  54154. "uc_match": "1f9dd-1f3fd",
  54155. "uc_greedy": "1f9dd-1f3fd",
  54156. "shortnames": [":elf_medium_skin_tone:"],
  54157. "category": "people"
  54158. },
  54159. ":elf_tone4:": {
  54160. "uc_base": "1f9dd-1f3fe",
  54161. "uc_output": "1f9dd-1f3fe",
  54162. "uc_match": "1f9dd-1f3fe",
  54163. "uc_greedy": "1f9dd-1f3fe",
  54164. "shortnames": [":elf_medium_dark_skin_tone:"],
  54165. "category": "people"
  54166. },
  54167. ":elf_tone5:": {
  54168. "uc_base": "1f9dd-1f3ff",
  54169. "uc_output": "1f9dd-1f3ff",
  54170. "uc_match": "1f9dd-1f3ff",
  54171. "uc_greedy": "1f9dd-1f3ff",
  54172. "shortnames": [":elf_dark_skin_tone:"],
  54173. "category": "people"
  54174. },
  54175. ":fairy_tone1:": {
  54176. "uc_base": "1f9da-1f3fb",
  54177. "uc_output": "1f9da-1f3fb",
  54178. "uc_match": "1f9da-1f3fb",
  54179. "uc_greedy": "1f9da-1f3fb",
  54180. "shortnames": [":fairy_light_skin_tone:"],
  54181. "category": "people"
  54182. },
  54183. ":fairy_tone2:": {
  54184. "uc_base": "1f9da-1f3fc",
  54185. "uc_output": "1f9da-1f3fc",
  54186. "uc_match": "1f9da-1f3fc",
  54187. "uc_greedy": "1f9da-1f3fc",
  54188. "shortnames": [":fairy_medium_light_skin_tone:"],
  54189. "category": "people"
  54190. },
  54191. ":fairy_tone3:": {
  54192. "uc_base": "1f9da-1f3fd",
  54193. "uc_output": "1f9da-1f3fd",
  54194. "uc_match": "1f9da-1f3fd",
  54195. "uc_greedy": "1f9da-1f3fd",
  54196. "shortnames": [":fairy_medium_skin_tone:"],
  54197. "category": "people"
  54198. },
  54199. ":fairy_tone4:": {
  54200. "uc_base": "1f9da-1f3fe",
  54201. "uc_output": "1f9da-1f3fe",
  54202. "uc_match": "1f9da-1f3fe",
  54203. "uc_greedy": "1f9da-1f3fe",
  54204. "shortnames": [":fairy_medium_dark_skin_tone:"],
  54205. "category": "people"
  54206. },
  54207. ":fairy_tone5:": {
  54208. "uc_base": "1f9da-1f3ff",
  54209. "uc_output": "1f9da-1f3ff",
  54210. "uc_match": "1f9da-1f3ff",
  54211. "uc_greedy": "1f9da-1f3ff",
  54212. "shortnames": [":fairy_dark_skin_tone:"],
  54213. "category": "people"
  54214. },
  54215. ":fingers_crossed_tone1:": {
  54216. "uc_base": "1f91e-1f3fb",
  54217. "uc_output": "1f91e-1f3fb",
  54218. "uc_match": "1f91e-1f3fb",
  54219. "uc_greedy": "1f91e-1f3fb",
  54220. "shortnames": [":hand_with_index_and_middle_fingers_crossed_tone1:"],
  54221. "category": "people"
  54222. },
  54223. ":fingers_crossed_tone2:": {
  54224. "uc_base": "1f91e-1f3fc",
  54225. "uc_output": "1f91e-1f3fc",
  54226. "uc_match": "1f91e-1f3fc",
  54227. "uc_greedy": "1f91e-1f3fc",
  54228. "shortnames": [":hand_with_index_and_middle_fingers_crossed_tone2:"],
  54229. "category": "people"
  54230. },
  54231. ":fingers_crossed_tone3:": {
  54232. "uc_base": "1f91e-1f3fd",
  54233. "uc_output": "1f91e-1f3fd",
  54234. "uc_match": "1f91e-1f3fd",
  54235. "uc_greedy": "1f91e-1f3fd",
  54236. "shortnames": [":hand_with_index_and_middle_fingers_crossed_tone3:"],
  54237. "category": "people"
  54238. },
  54239. ":fingers_crossed_tone4:": {
  54240. "uc_base": "1f91e-1f3fe",
  54241. "uc_output": "1f91e-1f3fe",
  54242. "uc_match": "1f91e-1f3fe",
  54243. "uc_greedy": "1f91e-1f3fe",
  54244. "shortnames": [":hand_with_index_and_middle_fingers_crossed_tone4:"],
  54245. "category": "people"
  54246. },
  54247. ":fingers_crossed_tone5:": {
  54248. "uc_base": "1f91e-1f3ff",
  54249. "uc_output": "1f91e-1f3ff",
  54250. "uc_match": "1f91e-1f3ff",
  54251. "uc_greedy": "1f91e-1f3ff",
  54252. "shortnames": [":hand_with_index_and_middle_fingers_crossed_tone5:"],
  54253. "category": "people"
  54254. },
  54255. ":flag_ac:": {
  54256. "uc_base": "1f1e6-1f1e8",
  54257. "uc_output": "1f1e6-1f1e8",
  54258. "uc_match": "1f1e6-1f1e8",
  54259. "uc_greedy": "1f1e6-1f1e8",
  54260. "shortnames": [":ac:"],
  54261. "category": "flags"
  54262. },
  54263. ":flag_ad:": {
  54264. "uc_base": "1f1e6-1f1e9",
  54265. "uc_output": "1f1e6-1f1e9",
  54266. "uc_match": "1f1e6-1f1e9",
  54267. "uc_greedy": "1f1e6-1f1e9",
  54268. "shortnames": [":ad:"],
  54269. "category": "flags"
  54270. },
  54271. ":flag_ae:": {
  54272. "uc_base": "1f1e6-1f1ea",
  54273. "uc_output": "1f1e6-1f1ea",
  54274. "uc_match": "1f1e6-1f1ea",
  54275. "uc_greedy": "1f1e6-1f1ea",
  54276. "shortnames": [":ae:"],
  54277. "category": "flags"
  54278. },
  54279. ":flag_af:": {
  54280. "uc_base": "1f1e6-1f1eb",
  54281. "uc_output": "1f1e6-1f1eb",
  54282. "uc_match": "1f1e6-1f1eb",
  54283. "uc_greedy": "1f1e6-1f1eb",
  54284. "shortnames": [":af:"],
  54285. "category": "flags"
  54286. },
  54287. ":flag_ag:": {
  54288. "uc_base": "1f1e6-1f1ec",
  54289. "uc_output": "1f1e6-1f1ec",
  54290. "uc_match": "1f1e6-1f1ec",
  54291. "uc_greedy": "1f1e6-1f1ec",
  54292. "shortnames": [":ag:"],
  54293. "category": "flags"
  54294. },
  54295. ":flag_ai:": {
  54296. "uc_base": "1f1e6-1f1ee",
  54297. "uc_output": "1f1e6-1f1ee",
  54298. "uc_match": "1f1e6-1f1ee",
  54299. "uc_greedy": "1f1e6-1f1ee",
  54300. "shortnames": [":ai:"],
  54301. "category": "flags"
  54302. },
  54303. ":flag_al:": {
  54304. "uc_base": "1f1e6-1f1f1",
  54305. "uc_output": "1f1e6-1f1f1",
  54306. "uc_match": "1f1e6-1f1f1",
  54307. "uc_greedy": "1f1e6-1f1f1",
  54308. "shortnames": [":al:"],
  54309. "category": "flags"
  54310. },
  54311. ":flag_am:": {
  54312. "uc_base": "1f1e6-1f1f2",
  54313. "uc_output": "1f1e6-1f1f2",
  54314. "uc_match": "1f1e6-1f1f2",
  54315. "uc_greedy": "1f1e6-1f1f2",
  54316. "shortnames": [":am:"],
  54317. "category": "flags"
  54318. },
  54319. ":flag_ao:": {
  54320. "uc_base": "1f1e6-1f1f4",
  54321. "uc_output": "1f1e6-1f1f4",
  54322. "uc_match": "1f1e6-1f1f4",
  54323. "uc_greedy": "1f1e6-1f1f4",
  54324. "shortnames": [":ao:"],
  54325. "category": "flags"
  54326. },
  54327. ":flag_aq:": {
  54328. "uc_base": "1f1e6-1f1f6",
  54329. "uc_output": "1f1e6-1f1f6",
  54330. "uc_match": "1f1e6-1f1f6",
  54331. "uc_greedy": "1f1e6-1f1f6",
  54332. "shortnames": [":aq:"],
  54333. "category": "flags"
  54334. },
  54335. ":flag_ar:": {
  54336. "uc_base": "1f1e6-1f1f7",
  54337. "uc_output": "1f1e6-1f1f7",
  54338. "uc_match": "1f1e6-1f1f7",
  54339. "uc_greedy": "1f1e6-1f1f7",
  54340. "shortnames": [":ar:"],
  54341. "category": "flags"
  54342. },
  54343. ":flag_as:": {
  54344. "uc_base": "1f1e6-1f1f8",
  54345. "uc_output": "1f1e6-1f1f8",
  54346. "uc_match": "1f1e6-1f1f8",
  54347. "uc_greedy": "1f1e6-1f1f8",
  54348. "shortnames": [":as:"],
  54349. "category": "flags"
  54350. },
  54351. ":flag_at:": {
  54352. "uc_base": "1f1e6-1f1f9",
  54353. "uc_output": "1f1e6-1f1f9",
  54354. "uc_match": "1f1e6-1f1f9",
  54355. "uc_greedy": "1f1e6-1f1f9",
  54356. "shortnames": [":at:"],
  54357. "category": "flags"
  54358. },
  54359. ":flag_au:": {
  54360. "uc_base": "1f1e6-1f1fa",
  54361. "uc_output": "1f1e6-1f1fa",
  54362. "uc_match": "1f1e6-1f1fa",
  54363. "uc_greedy": "1f1e6-1f1fa",
  54364. "shortnames": [":au:"],
  54365. "category": "flags"
  54366. },
  54367. ":flag_aw:": {
  54368. "uc_base": "1f1e6-1f1fc",
  54369. "uc_output": "1f1e6-1f1fc",
  54370. "uc_match": "1f1e6-1f1fc",
  54371. "uc_greedy": "1f1e6-1f1fc",
  54372. "shortnames": [":aw:"],
  54373. "category": "flags"
  54374. },
  54375. ":flag_ax:": {
  54376. "uc_base": "1f1e6-1f1fd",
  54377. "uc_output": "1f1e6-1f1fd",
  54378. "uc_match": "1f1e6-1f1fd",
  54379. "uc_greedy": "1f1e6-1f1fd",
  54380. "shortnames": [":ax:"],
  54381. "category": "flags"
  54382. },
  54383. ":flag_az:": {
  54384. "uc_base": "1f1e6-1f1ff",
  54385. "uc_output": "1f1e6-1f1ff",
  54386. "uc_match": "1f1e6-1f1ff",
  54387. "uc_greedy": "1f1e6-1f1ff",
  54388. "shortnames": [":az:"],
  54389. "category": "flags"
  54390. },
  54391. ":flag_ba:": {
  54392. "uc_base": "1f1e7-1f1e6",
  54393. "uc_output": "1f1e7-1f1e6",
  54394. "uc_match": "1f1e7-1f1e6",
  54395. "uc_greedy": "1f1e7-1f1e6",
  54396. "shortnames": [":ba:"],
  54397. "category": "flags"
  54398. },
  54399. ":flag_bb:": {
  54400. "uc_base": "1f1e7-1f1e7",
  54401. "uc_output": "1f1e7-1f1e7",
  54402. "uc_match": "1f1e7-1f1e7",
  54403. "uc_greedy": "1f1e7-1f1e7",
  54404. "shortnames": [":bb:"],
  54405. "category": "flags"
  54406. },
  54407. ":flag_bd:": {
  54408. "uc_base": "1f1e7-1f1e9",
  54409. "uc_output": "1f1e7-1f1e9",
  54410. "uc_match": "1f1e7-1f1e9",
  54411. "uc_greedy": "1f1e7-1f1e9",
  54412. "shortnames": [":bd:"],
  54413. "category": "flags"
  54414. },
  54415. ":flag_be:": {
  54416. "uc_base": "1f1e7-1f1ea",
  54417. "uc_output": "1f1e7-1f1ea",
  54418. "uc_match": "1f1e7-1f1ea",
  54419. "uc_greedy": "1f1e7-1f1ea",
  54420. "shortnames": [":be:"],
  54421. "category": "flags"
  54422. },
  54423. ":flag_bf:": {
  54424. "uc_base": "1f1e7-1f1eb",
  54425. "uc_output": "1f1e7-1f1eb",
  54426. "uc_match": "1f1e7-1f1eb",
  54427. "uc_greedy": "1f1e7-1f1eb",
  54428. "shortnames": [":bf:"],
  54429. "category": "flags"
  54430. },
  54431. ":flag_bg:": {
  54432. "uc_base": "1f1e7-1f1ec",
  54433. "uc_output": "1f1e7-1f1ec",
  54434. "uc_match": "1f1e7-1f1ec",
  54435. "uc_greedy": "1f1e7-1f1ec",
  54436. "shortnames": [":bg:"],
  54437. "category": "flags"
  54438. },
  54439. ":flag_bh:": {
  54440. "uc_base": "1f1e7-1f1ed",
  54441. "uc_output": "1f1e7-1f1ed",
  54442. "uc_match": "1f1e7-1f1ed",
  54443. "uc_greedy": "1f1e7-1f1ed",
  54444. "shortnames": [":bh:"],
  54445. "category": "flags"
  54446. },
  54447. ":flag_bi:": {
  54448. "uc_base": "1f1e7-1f1ee",
  54449. "uc_output": "1f1e7-1f1ee",
  54450. "uc_match": "1f1e7-1f1ee",
  54451. "uc_greedy": "1f1e7-1f1ee",
  54452. "shortnames": [":bi:"],
  54453. "category": "flags"
  54454. },
  54455. ":flag_bj:": {
  54456. "uc_base": "1f1e7-1f1ef",
  54457. "uc_output": "1f1e7-1f1ef",
  54458. "uc_match": "1f1e7-1f1ef",
  54459. "uc_greedy": "1f1e7-1f1ef",
  54460. "shortnames": [":bj:"],
  54461. "category": "flags"
  54462. },
  54463. ":flag_bl:": {
  54464. "uc_base": "1f1e7-1f1f1",
  54465. "uc_output": "1f1e7-1f1f1",
  54466. "uc_match": "1f1e7-1f1f1",
  54467. "uc_greedy": "1f1e7-1f1f1",
  54468. "shortnames": [":bl:"],
  54469. "category": "flags"
  54470. },
  54471. ":flag_bm:": {
  54472. "uc_base": "1f1e7-1f1f2",
  54473. "uc_output": "1f1e7-1f1f2",
  54474. "uc_match": "1f1e7-1f1f2",
  54475. "uc_greedy": "1f1e7-1f1f2",
  54476. "shortnames": [":bm:"],
  54477. "category": "flags"
  54478. },
  54479. ":flag_bn:": {
  54480. "uc_base": "1f1e7-1f1f3",
  54481. "uc_output": "1f1e7-1f1f3",
  54482. "uc_match": "1f1e7-1f1f3",
  54483. "uc_greedy": "1f1e7-1f1f3",
  54484. "shortnames": [":bn:"],
  54485. "category": "flags"
  54486. },
  54487. ":flag_bo:": {
  54488. "uc_base": "1f1e7-1f1f4",
  54489. "uc_output": "1f1e7-1f1f4",
  54490. "uc_match": "1f1e7-1f1f4",
  54491. "uc_greedy": "1f1e7-1f1f4",
  54492. "shortnames": [":bo:"],
  54493. "category": "flags"
  54494. },
  54495. ":flag_bq:": {
  54496. "uc_base": "1f1e7-1f1f6",
  54497. "uc_output": "1f1e7-1f1f6",
  54498. "uc_match": "1f1e7-1f1f6",
  54499. "uc_greedy": "1f1e7-1f1f6",
  54500. "shortnames": [":bq:"],
  54501. "category": "flags"
  54502. },
  54503. ":flag_br:": {
  54504. "uc_base": "1f1e7-1f1f7",
  54505. "uc_output": "1f1e7-1f1f7",
  54506. "uc_match": "1f1e7-1f1f7",
  54507. "uc_greedy": "1f1e7-1f1f7",
  54508. "shortnames": [":br:"],
  54509. "category": "flags"
  54510. },
  54511. ":flag_bs:": {
  54512. "uc_base": "1f1e7-1f1f8",
  54513. "uc_output": "1f1e7-1f1f8",
  54514. "uc_match": "1f1e7-1f1f8",
  54515. "uc_greedy": "1f1e7-1f1f8",
  54516. "shortnames": [":bs:"],
  54517. "category": "flags"
  54518. },
  54519. ":flag_bt:": {
  54520. "uc_base": "1f1e7-1f1f9",
  54521. "uc_output": "1f1e7-1f1f9",
  54522. "uc_match": "1f1e7-1f1f9",
  54523. "uc_greedy": "1f1e7-1f1f9",
  54524. "shortnames": [":bt:"],
  54525. "category": "flags"
  54526. },
  54527. ":flag_bv:": {
  54528. "uc_base": "1f1e7-1f1fb",
  54529. "uc_output": "1f1e7-1f1fb",
  54530. "uc_match": "1f1e7-1f1fb",
  54531. "uc_greedy": "1f1e7-1f1fb",
  54532. "shortnames": [":bv:"],
  54533. "category": "flags"
  54534. },
  54535. ":flag_bw:": {
  54536. "uc_base": "1f1e7-1f1fc",
  54537. "uc_output": "1f1e7-1f1fc",
  54538. "uc_match": "1f1e7-1f1fc",
  54539. "uc_greedy": "1f1e7-1f1fc",
  54540. "shortnames": [":bw:"],
  54541. "category": "flags"
  54542. },
  54543. ":flag_by:": {
  54544. "uc_base": "1f1e7-1f1fe",
  54545. "uc_output": "1f1e7-1f1fe",
  54546. "uc_match": "1f1e7-1f1fe",
  54547. "uc_greedy": "1f1e7-1f1fe",
  54548. "shortnames": [":by:"],
  54549. "category": "flags"
  54550. },
  54551. ":flag_bz:": {
  54552. "uc_base": "1f1e7-1f1ff",
  54553. "uc_output": "1f1e7-1f1ff",
  54554. "uc_match": "1f1e7-1f1ff",
  54555. "uc_greedy": "1f1e7-1f1ff",
  54556. "shortnames": [":bz:"],
  54557. "category": "flags"
  54558. },
  54559. ":flag_ca:": {
  54560. "uc_base": "1f1e8-1f1e6",
  54561. "uc_output": "1f1e8-1f1e6",
  54562. "uc_match": "1f1e8-1f1e6",
  54563. "uc_greedy": "1f1e8-1f1e6",
  54564. "shortnames": [":ca:"],
  54565. "category": "flags"
  54566. },
  54567. ":flag_cc:": {
  54568. "uc_base": "1f1e8-1f1e8",
  54569. "uc_output": "1f1e8-1f1e8",
  54570. "uc_match": "1f1e8-1f1e8",
  54571. "uc_greedy": "1f1e8-1f1e8",
  54572. "shortnames": [":cc:"],
  54573. "category": "flags"
  54574. },
  54575. ":flag_cd:": {
  54576. "uc_base": "1f1e8-1f1e9",
  54577. "uc_output": "1f1e8-1f1e9",
  54578. "uc_match": "1f1e8-1f1e9",
  54579. "uc_greedy": "1f1e8-1f1e9",
  54580. "shortnames": [":congo:"],
  54581. "category": "flags"
  54582. },
  54583. ":flag_cf:": {
  54584. "uc_base": "1f1e8-1f1eb",
  54585. "uc_output": "1f1e8-1f1eb",
  54586. "uc_match": "1f1e8-1f1eb",
  54587. "uc_greedy": "1f1e8-1f1eb",
  54588. "shortnames": [":cf:"],
  54589. "category": "flags"
  54590. },
  54591. ":flag_cg:": {
  54592. "uc_base": "1f1e8-1f1ec",
  54593. "uc_output": "1f1e8-1f1ec",
  54594. "uc_match": "1f1e8-1f1ec",
  54595. "uc_greedy": "1f1e8-1f1ec",
  54596. "shortnames": [":cg:"],
  54597. "category": "flags"
  54598. },
  54599. ":flag_ch:": {
  54600. "uc_base": "1f1e8-1f1ed",
  54601. "uc_output": "1f1e8-1f1ed",
  54602. "uc_match": "1f1e8-1f1ed",
  54603. "uc_greedy": "1f1e8-1f1ed",
  54604. "shortnames": [":ch:"],
  54605. "category": "flags"
  54606. },
  54607. ":flag_ci:": {
  54608. "uc_base": "1f1e8-1f1ee",
  54609. "uc_output": "1f1e8-1f1ee",
  54610. "uc_match": "1f1e8-1f1ee",
  54611. "uc_greedy": "1f1e8-1f1ee",
  54612. "shortnames": [":ci:"],
  54613. "category": "flags"
  54614. },
  54615. ":flag_ck:": {
  54616. "uc_base": "1f1e8-1f1f0",
  54617. "uc_output": "1f1e8-1f1f0",
  54618. "uc_match": "1f1e8-1f1f0",
  54619. "uc_greedy": "1f1e8-1f1f0",
  54620. "shortnames": [":ck:"],
  54621. "category": "flags"
  54622. },
  54623. ":flag_cl:": {
  54624. "uc_base": "1f1e8-1f1f1",
  54625. "uc_output": "1f1e8-1f1f1",
  54626. "uc_match": "1f1e8-1f1f1",
  54627. "uc_greedy": "1f1e8-1f1f1",
  54628. "shortnames": [":chile:"],
  54629. "category": "flags"
  54630. },
  54631. ":flag_cm:": {
  54632. "uc_base": "1f1e8-1f1f2",
  54633. "uc_output": "1f1e8-1f1f2",
  54634. "uc_match": "1f1e8-1f1f2",
  54635. "uc_greedy": "1f1e8-1f1f2",
  54636. "shortnames": [":cm:"],
  54637. "category": "flags"
  54638. },
  54639. ":flag_cn:": {
  54640. "uc_base": "1f1e8-1f1f3",
  54641. "uc_output": "1f1e8-1f1f3",
  54642. "uc_match": "1f1e8-1f1f3",
  54643. "uc_greedy": "1f1e8-1f1f3",
  54644. "shortnames": [":cn:"],
  54645. "category": "flags"
  54646. },
  54647. ":flag_co:": {
  54648. "uc_base": "1f1e8-1f1f4",
  54649. "uc_output": "1f1e8-1f1f4",
  54650. "uc_match": "1f1e8-1f1f4",
  54651. "uc_greedy": "1f1e8-1f1f4",
  54652. "shortnames": [":co:"],
  54653. "category": "flags"
  54654. },
  54655. ":flag_cp:": {
  54656. "uc_base": "1f1e8-1f1f5",
  54657. "uc_output": "1f1e8-1f1f5",
  54658. "uc_match": "1f1e8-1f1f5",
  54659. "uc_greedy": "1f1e8-1f1f5",
  54660. "shortnames": [":cp:"],
  54661. "category": "flags"
  54662. },
  54663. ":flag_cr:": {
  54664. "uc_base": "1f1e8-1f1f7",
  54665. "uc_output": "1f1e8-1f1f7",
  54666. "uc_match": "1f1e8-1f1f7",
  54667. "uc_greedy": "1f1e8-1f1f7",
  54668. "shortnames": [":cr:"],
  54669. "category": "flags"
  54670. },
  54671. ":flag_cu:": {
  54672. "uc_base": "1f1e8-1f1fa",
  54673. "uc_output": "1f1e8-1f1fa",
  54674. "uc_match": "1f1e8-1f1fa",
  54675. "uc_greedy": "1f1e8-1f1fa",
  54676. "shortnames": [":cu:"],
  54677. "category": "flags"
  54678. },
  54679. ":flag_cv:": {
  54680. "uc_base": "1f1e8-1f1fb",
  54681. "uc_output": "1f1e8-1f1fb",
  54682. "uc_match": "1f1e8-1f1fb",
  54683. "uc_greedy": "1f1e8-1f1fb",
  54684. "shortnames": [":cv:"],
  54685. "category": "flags"
  54686. },
  54687. ":flag_cw:": {
  54688. "uc_base": "1f1e8-1f1fc",
  54689. "uc_output": "1f1e8-1f1fc",
  54690. "uc_match": "1f1e8-1f1fc",
  54691. "uc_greedy": "1f1e8-1f1fc",
  54692. "shortnames": [":cw:"],
  54693. "category": "flags"
  54694. },
  54695. ":flag_cx:": {
  54696. "uc_base": "1f1e8-1f1fd",
  54697. "uc_output": "1f1e8-1f1fd",
  54698. "uc_match": "1f1e8-1f1fd",
  54699. "uc_greedy": "1f1e8-1f1fd",
  54700. "shortnames": [":cx:"],
  54701. "category": "flags"
  54702. },
  54703. ":flag_cy:": {
  54704. "uc_base": "1f1e8-1f1fe",
  54705. "uc_output": "1f1e8-1f1fe",
  54706. "uc_match": "1f1e8-1f1fe",
  54707. "uc_greedy": "1f1e8-1f1fe",
  54708. "shortnames": [":cy:"],
  54709. "category": "flags"
  54710. },
  54711. ":flag_cz:": {
  54712. "uc_base": "1f1e8-1f1ff",
  54713. "uc_output": "1f1e8-1f1ff",
  54714. "uc_match": "1f1e8-1f1ff",
  54715. "uc_greedy": "1f1e8-1f1ff",
  54716. "shortnames": [":cz:"],
  54717. "category": "flags"
  54718. },
  54719. ":flag_de:": {
  54720. "uc_base": "1f1e9-1f1ea",
  54721. "uc_output": "1f1e9-1f1ea",
  54722. "uc_match": "1f1e9-1f1ea",
  54723. "uc_greedy": "1f1e9-1f1ea",
  54724. "shortnames": [":de:"],
  54725. "category": "flags"
  54726. },
  54727. ":flag_dg:": {
  54728. "uc_base": "1f1e9-1f1ec",
  54729. "uc_output": "1f1e9-1f1ec",
  54730. "uc_match": "1f1e9-1f1ec",
  54731. "uc_greedy": "1f1e9-1f1ec",
  54732. "shortnames": [":dg:"],
  54733. "category": "flags"
  54734. },
  54735. ":flag_dj:": {
  54736. "uc_base": "1f1e9-1f1ef",
  54737. "uc_output": "1f1e9-1f1ef",
  54738. "uc_match": "1f1e9-1f1ef",
  54739. "uc_greedy": "1f1e9-1f1ef",
  54740. "shortnames": [":dj:"],
  54741. "category": "flags"
  54742. },
  54743. ":flag_dk:": {
  54744. "uc_base": "1f1e9-1f1f0",
  54745. "uc_output": "1f1e9-1f1f0",
  54746. "uc_match": "1f1e9-1f1f0",
  54747. "uc_greedy": "1f1e9-1f1f0",
  54748. "shortnames": [":dk:"],
  54749. "category": "flags"
  54750. },
  54751. ":flag_dm:": {
  54752. "uc_base": "1f1e9-1f1f2",
  54753. "uc_output": "1f1e9-1f1f2",
  54754. "uc_match": "1f1e9-1f1f2",
  54755. "uc_greedy": "1f1e9-1f1f2",
  54756. "shortnames": [":dm:"],
  54757. "category": "flags"
  54758. },
  54759. ":flag_do:": {
  54760. "uc_base": "1f1e9-1f1f4",
  54761. "uc_output": "1f1e9-1f1f4",
  54762. "uc_match": "1f1e9-1f1f4",
  54763. "uc_greedy": "1f1e9-1f1f4",
  54764. "shortnames": [":do:"],
  54765. "category": "flags"
  54766. },
  54767. ":flag_dz:": {
  54768. "uc_base": "1f1e9-1f1ff",
  54769. "uc_output": "1f1e9-1f1ff",
  54770. "uc_match": "1f1e9-1f1ff",
  54771. "uc_greedy": "1f1e9-1f1ff",
  54772. "shortnames": [":dz:"],
  54773. "category": "flags"
  54774. },
  54775. ":flag_ea:": {
  54776. "uc_base": "1f1ea-1f1e6",
  54777. "uc_output": "1f1ea-1f1e6",
  54778. "uc_match": "1f1ea-1f1e6",
  54779. "uc_greedy": "1f1ea-1f1e6",
  54780. "shortnames": [":ea:"],
  54781. "category": "flags"
  54782. },
  54783. ":flag_ec:": {
  54784. "uc_base": "1f1ea-1f1e8",
  54785. "uc_output": "1f1ea-1f1e8",
  54786. "uc_match": "1f1ea-1f1e8",
  54787. "uc_greedy": "1f1ea-1f1e8",
  54788. "shortnames": [":ec:"],
  54789. "category": "flags"
  54790. },
  54791. ":flag_ee:": {
  54792. "uc_base": "1f1ea-1f1ea",
  54793. "uc_output": "1f1ea-1f1ea",
  54794. "uc_match": "1f1ea-1f1ea",
  54795. "uc_greedy": "1f1ea-1f1ea",
  54796. "shortnames": [":ee:"],
  54797. "category": "flags"
  54798. },
  54799. ":flag_eg:": {
  54800. "uc_base": "1f1ea-1f1ec",
  54801. "uc_output": "1f1ea-1f1ec",
  54802. "uc_match": "1f1ea-1f1ec",
  54803. "uc_greedy": "1f1ea-1f1ec",
  54804. "shortnames": [":eg:"],
  54805. "category": "flags"
  54806. },
  54807. ":flag_eh:": {
  54808. "uc_base": "1f1ea-1f1ed",
  54809. "uc_output": "1f1ea-1f1ed",
  54810. "uc_match": "1f1ea-1f1ed",
  54811. "uc_greedy": "1f1ea-1f1ed",
  54812. "shortnames": [":eh:"],
  54813. "category": "flags"
  54814. },
  54815. ":flag_er:": {
  54816. "uc_base": "1f1ea-1f1f7",
  54817. "uc_output": "1f1ea-1f1f7",
  54818. "uc_match": "1f1ea-1f1f7",
  54819. "uc_greedy": "1f1ea-1f1f7",
  54820. "shortnames": [":er:"],
  54821. "category": "flags"
  54822. },
  54823. ":flag_es:": {
  54824. "uc_base": "1f1ea-1f1f8",
  54825. "uc_output": "1f1ea-1f1f8",
  54826. "uc_match": "1f1ea-1f1f8",
  54827. "uc_greedy": "1f1ea-1f1f8",
  54828. "shortnames": [":es:"],
  54829. "category": "flags"
  54830. },
  54831. ":flag_et:": {
  54832. "uc_base": "1f1ea-1f1f9",
  54833. "uc_output": "1f1ea-1f1f9",
  54834. "uc_match": "1f1ea-1f1f9",
  54835. "uc_greedy": "1f1ea-1f1f9",
  54836. "shortnames": [":et:"],
  54837. "category": "flags"
  54838. },
  54839. ":flag_eu:": {
  54840. "uc_base": "1f1ea-1f1fa",
  54841. "uc_output": "1f1ea-1f1fa",
  54842. "uc_match": "1f1ea-1f1fa",
  54843. "uc_greedy": "1f1ea-1f1fa",
  54844. "shortnames": [":eu:"],
  54845. "category": "flags"
  54846. },
  54847. ":flag_fi:": {
  54848. "uc_base": "1f1eb-1f1ee",
  54849. "uc_output": "1f1eb-1f1ee",
  54850. "uc_match": "1f1eb-1f1ee",
  54851. "uc_greedy": "1f1eb-1f1ee",
  54852. "shortnames": [":fi:"],
  54853. "category": "flags"
  54854. },
  54855. ":flag_fj:": {
  54856. "uc_base": "1f1eb-1f1ef",
  54857. "uc_output": "1f1eb-1f1ef",
  54858. "uc_match": "1f1eb-1f1ef",
  54859. "uc_greedy": "1f1eb-1f1ef",
  54860. "shortnames": [":fj:"],
  54861. "category": "flags"
  54862. },
  54863. ":flag_fk:": {
  54864. "uc_base": "1f1eb-1f1f0",
  54865. "uc_output": "1f1eb-1f1f0",
  54866. "uc_match": "1f1eb-1f1f0",
  54867. "uc_greedy": "1f1eb-1f1f0",
  54868. "shortnames": [":fk:"],
  54869. "category": "flags"
  54870. },
  54871. ":flag_fm:": {
  54872. "uc_base": "1f1eb-1f1f2",
  54873. "uc_output": "1f1eb-1f1f2",
  54874. "uc_match": "1f1eb-1f1f2",
  54875. "uc_greedy": "1f1eb-1f1f2",
  54876. "shortnames": [":fm:"],
  54877. "category": "flags"
  54878. },
  54879. ":flag_fo:": {
  54880. "uc_base": "1f1eb-1f1f4",
  54881. "uc_output": "1f1eb-1f1f4",
  54882. "uc_match": "1f1eb-1f1f4",
  54883. "uc_greedy": "1f1eb-1f1f4",
  54884. "shortnames": [":fo:"],
  54885. "category": "flags"
  54886. },
  54887. ":flag_fr:": {
  54888. "uc_base": "1f1eb-1f1f7",
  54889. "uc_output": "1f1eb-1f1f7",
  54890. "uc_match": "1f1eb-1f1f7",
  54891. "uc_greedy": "1f1eb-1f1f7",
  54892. "shortnames": [":fr:"],
  54893. "category": "flags"
  54894. },
  54895. ":flag_ga:": {
  54896. "uc_base": "1f1ec-1f1e6",
  54897. "uc_output": "1f1ec-1f1e6",
  54898. "uc_match": "1f1ec-1f1e6",
  54899. "uc_greedy": "1f1ec-1f1e6",
  54900. "shortnames": [":ga:"],
  54901. "category": "flags"
  54902. },
  54903. ":flag_gb:": {
  54904. "uc_base": "1f1ec-1f1e7",
  54905. "uc_output": "1f1ec-1f1e7",
  54906. "uc_match": "1f1ec-1f1e7",
  54907. "uc_greedy": "1f1ec-1f1e7",
  54908. "shortnames": [":gb:"],
  54909. "category": "flags"
  54910. },
  54911. ":flag_gd:": {
  54912. "uc_base": "1f1ec-1f1e9",
  54913. "uc_output": "1f1ec-1f1e9",
  54914. "uc_match": "1f1ec-1f1e9",
  54915. "uc_greedy": "1f1ec-1f1e9",
  54916. "shortnames": [":gd:"],
  54917. "category": "flags"
  54918. },
  54919. ":flag_ge:": {
  54920. "uc_base": "1f1ec-1f1ea",
  54921. "uc_output": "1f1ec-1f1ea",
  54922. "uc_match": "1f1ec-1f1ea",
  54923. "uc_greedy": "1f1ec-1f1ea",
  54924. "shortnames": [":ge:"],
  54925. "category": "flags"
  54926. },
  54927. ":flag_gf:": {
  54928. "uc_base": "1f1ec-1f1eb",
  54929. "uc_output": "1f1ec-1f1eb",
  54930. "uc_match": "1f1ec-1f1eb",
  54931. "uc_greedy": "1f1ec-1f1eb",
  54932. "shortnames": [":gf:"],
  54933. "category": "flags"
  54934. },
  54935. ":flag_gg:": {
  54936. "uc_base": "1f1ec-1f1ec",
  54937. "uc_output": "1f1ec-1f1ec",
  54938. "uc_match": "1f1ec-1f1ec",
  54939. "uc_greedy": "1f1ec-1f1ec",
  54940. "shortnames": [":gg:"],
  54941. "category": "flags"
  54942. },
  54943. ":flag_gh:": {
  54944. "uc_base": "1f1ec-1f1ed",
  54945. "uc_output": "1f1ec-1f1ed",
  54946. "uc_match": "1f1ec-1f1ed",
  54947. "uc_greedy": "1f1ec-1f1ed",
  54948. "shortnames": [":gh:"],
  54949. "category": "flags"
  54950. },
  54951. ":flag_gi:": {
  54952. "uc_base": "1f1ec-1f1ee",
  54953. "uc_output": "1f1ec-1f1ee",
  54954. "uc_match": "1f1ec-1f1ee",
  54955. "uc_greedy": "1f1ec-1f1ee",
  54956. "shortnames": [":gi:"],
  54957. "category": "flags"
  54958. },
  54959. ":flag_gl:": {
  54960. "uc_base": "1f1ec-1f1f1",
  54961. "uc_output": "1f1ec-1f1f1",
  54962. "uc_match": "1f1ec-1f1f1",
  54963. "uc_greedy": "1f1ec-1f1f1",
  54964. "shortnames": [":gl:"],
  54965. "category": "flags"
  54966. },
  54967. ":flag_gm:": {
  54968. "uc_base": "1f1ec-1f1f2",
  54969. "uc_output": "1f1ec-1f1f2",
  54970. "uc_match": "1f1ec-1f1f2",
  54971. "uc_greedy": "1f1ec-1f1f2",
  54972. "shortnames": [":gm:"],
  54973. "category": "flags"
  54974. },
  54975. ":flag_gn:": {
  54976. "uc_base": "1f1ec-1f1f3",
  54977. "uc_output": "1f1ec-1f1f3",
  54978. "uc_match": "1f1ec-1f1f3",
  54979. "uc_greedy": "1f1ec-1f1f3",
  54980. "shortnames": [":gn:"],
  54981. "category": "flags"
  54982. },
  54983. ":flag_gp:": {
  54984. "uc_base": "1f1ec-1f1f5",
  54985. "uc_output": "1f1ec-1f1f5",
  54986. "uc_match": "1f1ec-1f1f5",
  54987. "uc_greedy": "1f1ec-1f1f5",
  54988. "shortnames": [":gp:"],
  54989. "category": "flags"
  54990. },
  54991. ":flag_gq:": {
  54992. "uc_base": "1f1ec-1f1f6",
  54993. "uc_output": "1f1ec-1f1f6",
  54994. "uc_match": "1f1ec-1f1f6",
  54995. "uc_greedy": "1f1ec-1f1f6",
  54996. "shortnames": [":gq:"],
  54997. "category": "flags"
  54998. },
  54999. ":flag_gr:": {
  55000. "uc_base": "1f1ec-1f1f7",
  55001. "uc_output": "1f1ec-1f1f7",
  55002. "uc_match": "1f1ec-1f1f7",
  55003. "uc_greedy": "1f1ec-1f1f7",
  55004. "shortnames": [":gr:"],
  55005. "category": "flags"
  55006. },
  55007. ":flag_gs:": {
  55008. "uc_base": "1f1ec-1f1f8",
  55009. "uc_output": "1f1ec-1f1f8",
  55010. "uc_match": "1f1ec-1f1f8",
  55011. "uc_greedy": "1f1ec-1f1f8",
  55012. "shortnames": [":gs:"],
  55013. "category": "flags"
  55014. },
  55015. ":flag_gt:": {
  55016. "uc_base": "1f1ec-1f1f9",
  55017. "uc_output": "1f1ec-1f1f9",
  55018. "uc_match": "1f1ec-1f1f9",
  55019. "uc_greedy": "1f1ec-1f1f9",
  55020. "shortnames": [":gt:"],
  55021. "category": "flags"
  55022. },
  55023. ":flag_gu:": {
  55024. "uc_base": "1f1ec-1f1fa",
  55025. "uc_output": "1f1ec-1f1fa",
  55026. "uc_match": "1f1ec-1f1fa",
  55027. "uc_greedy": "1f1ec-1f1fa",
  55028. "shortnames": [":gu:"],
  55029. "category": "flags"
  55030. },
  55031. ":flag_gw:": {
  55032. "uc_base": "1f1ec-1f1fc",
  55033. "uc_output": "1f1ec-1f1fc",
  55034. "uc_match": "1f1ec-1f1fc",
  55035. "uc_greedy": "1f1ec-1f1fc",
  55036. "shortnames": [":gw:"],
  55037. "category": "flags"
  55038. },
  55039. ":flag_gy:": {
  55040. "uc_base": "1f1ec-1f1fe",
  55041. "uc_output": "1f1ec-1f1fe",
  55042. "uc_match": "1f1ec-1f1fe",
  55043. "uc_greedy": "1f1ec-1f1fe",
  55044. "shortnames": [":gy:"],
  55045. "category": "flags"
  55046. },
  55047. ":flag_hk:": {
  55048. "uc_base": "1f1ed-1f1f0",
  55049. "uc_output": "1f1ed-1f1f0",
  55050. "uc_match": "1f1ed-1f1f0",
  55051. "uc_greedy": "1f1ed-1f1f0",
  55052. "shortnames": [":hk:"],
  55053. "category": "flags"
  55054. },
  55055. ":flag_hm:": {
  55056. "uc_base": "1f1ed-1f1f2",
  55057. "uc_output": "1f1ed-1f1f2",
  55058. "uc_match": "1f1ed-1f1f2",
  55059. "uc_greedy": "1f1ed-1f1f2",
  55060. "shortnames": [":hm:"],
  55061. "category": "flags"
  55062. },
  55063. ":flag_hn:": {
  55064. "uc_base": "1f1ed-1f1f3",
  55065. "uc_output": "1f1ed-1f1f3",
  55066. "uc_match": "1f1ed-1f1f3",
  55067. "uc_greedy": "1f1ed-1f1f3",
  55068. "shortnames": [":hn:"],
  55069. "category": "flags"
  55070. },
  55071. ":flag_hr:": {
  55072. "uc_base": "1f1ed-1f1f7",
  55073. "uc_output": "1f1ed-1f1f7",
  55074. "uc_match": "1f1ed-1f1f7",
  55075. "uc_greedy": "1f1ed-1f1f7",
  55076. "shortnames": [":hr:"],
  55077. "category": "flags"
  55078. },
  55079. ":flag_ht:": {
  55080. "uc_base": "1f1ed-1f1f9",
  55081. "uc_output": "1f1ed-1f1f9",
  55082. "uc_match": "1f1ed-1f1f9",
  55083. "uc_greedy": "1f1ed-1f1f9",
  55084. "shortnames": [":ht:"],
  55085. "category": "flags"
  55086. },
  55087. ":flag_hu:": {
  55088. "uc_base": "1f1ed-1f1fa",
  55089. "uc_output": "1f1ed-1f1fa",
  55090. "uc_match": "1f1ed-1f1fa",
  55091. "uc_greedy": "1f1ed-1f1fa",
  55092. "shortnames": [":hu:"],
  55093. "category": "flags"
  55094. },
  55095. ":flag_ic:": {
  55096. "uc_base": "1f1ee-1f1e8",
  55097. "uc_output": "1f1ee-1f1e8",
  55098. "uc_match": "1f1ee-1f1e8",
  55099. "uc_greedy": "1f1ee-1f1e8",
  55100. "shortnames": [":ic:"],
  55101. "category": "flags"
  55102. },
  55103. ":flag_id:": {
  55104. "uc_base": "1f1ee-1f1e9",
  55105. "uc_output": "1f1ee-1f1e9",
  55106. "uc_match": "1f1ee-1f1e9",
  55107. "uc_greedy": "1f1ee-1f1e9",
  55108. "shortnames": [":indonesia:"],
  55109. "category": "flags"
  55110. },
  55111. ":flag_ie:": {
  55112. "uc_base": "1f1ee-1f1ea",
  55113. "uc_output": "1f1ee-1f1ea",
  55114. "uc_match": "1f1ee-1f1ea",
  55115. "uc_greedy": "1f1ee-1f1ea",
  55116. "shortnames": [":ie:"],
  55117. "category": "flags"
  55118. },
  55119. ":flag_il:": {
  55120. "uc_base": "1f1ee-1f1f1",
  55121. "uc_output": "1f1ee-1f1f1",
  55122. "uc_match": "1f1ee-1f1f1",
  55123. "uc_greedy": "1f1ee-1f1f1",
  55124. "shortnames": [":il:"],
  55125. "category": "flags"
  55126. },
  55127. ":flag_im:": {
  55128. "uc_base": "1f1ee-1f1f2",
  55129. "uc_output": "1f1ee-1f1f2",
  55130. "uc_match": "1f1ee-1f1f2",
  55131. "uc_greedy": "1f1ee-1f1f2",
  55132. "shortnames": [":im:"],
  55133. "category": "flags"
  55134. },
  55135. ":flag_in:": {
  55136. "uc_base": "1f1ee-1f1f3",
  55137. "uc_output": "1f1ee-1f1f3",
  55138. "uc_match": "1f1ee-1f1f3",
  55139. "uc_greedy": "1f1ee-1f1f3",
  55140. "shortnames": [":in:"],
  55141. "category": "flags"
  55142. },
  55143. ":flag_io:": {
  55144. "uc_base": "1f1ee-1f1f4",
  55145. "uc_output": "1f1ee-1f1f4",
  55146. "uc_match": "1f1ee-1f1f4",
  55147. "uc_greedy": "1f1ee-1f1f4",
  55148. "shortnames": [":io:"],
  55149. "category": "flags"
  55150. },
  55151. ":flag_iq:": {
  55152. "uc_base": "1f1ee-1f1f6",
  55153. "uc_output": "1f1ee-1f1f6",
  55154. "uc_match": "1f1ee-1f1f6",
  55155. "uc_greedy": "1f1ee-1f1f6",
  55156. "shortnames": [":iq:"],
  55157. "category": "flags"
  55158. },
  55159. ":flag_ir:": {
  55160. "uc_base": "1f1ee-1f1f7",
  55161. "uc_output": "1f1ee-1f1f7",
  55162. "uc_match": "1f1ee-1f1f7",
  55163. "uc_greedy": "1f1ee-1f1f7",
  55164. "shortnames": [":ir:"],
  55165. "category": "flags"
  55166. },
  55167. ":flag_is:": {
  55168. "uc_base": "1f1ee-1f1f8",
  55169. "uc_output": "1f1ee-1f1f8",
  55170. "uc_match": "1f1ee-1f1f8",
  55171. "uc_greedy": "1f1ee-1f1f8",
  55172. "shortnames": [":is:"],
  55173. "category": "flags"
  55174. },
  55175. ":flag_it:": {
  55176. "uc_base": "1f1ee-1f1f9",
  55177. "uc_output": "1f1ee-1f1f9",
  55178. "uc_match": "1f1ee-1f1f9",
  55179. "uc_greedy": "1f1ee-1f1f9",
  55180. "shortnames": [":it:"],
  55181. "category": "flags"
  55182. },
  55183. ":flag_je:": {
  55184. "uc_base": "1f1ef-1f1ea",
  55185. "uc_output": "1f1ef-1f1ea",
  55186. "uc_match": "1f1ef-1f1ea",
  55187. "uc_greedy": "1f1ef-1f1ea",
  55188. "shortnames": [":je:"],
  55189. "category": "flags"
  55190. },
  55191. ":flag_jm:": {
  55192. "uc_base": "1f1ef-1f1f2",
  55193. "uc_output": "1f1ef-1f1f2",
  55194. "uc_match": "1f1ef-1f1f2",
  55195. "uc_greedy": "1f1ef-1f1f2",
  55196. "shortnames": [":jm:"],
  55197. "category": "flags"
  55198. },
  55199. ":flag_jo:": {
  55200. "uc_base": "1f1ef-1f1f4",
  55201. "uc_output": "1f1ef-1f1f4",
  55202. "uc_match": "1f1ef-1f1f4",
  55203. "uc_greedy": "1f1ef-1f1f4",
  55204. "shortnames": [":jo:"],
  55205. "category": "flags"
  55206. },
  55207. ":flag_jp:": {
  55208. "uc_base": "1f1ef-1f1f5",
  55209. "uc_output": "1f1ef-1f1f5",
  55210. "uc_match": "1f1ef-1f1f5",
  55211. "uc_greedy": "1f1ef-1f1f5",
  55212. "shortnames": [":jp:"],
  55213. "category": "flags"
  55214. },
  55215. ":flag_ke:": {
  55216. "uc_base": "1f1f0-1f1ea",
  55217. "uc_output": "1f1f0-1f1ea",
  55218. "uc_match": "1f1f0-1f1ea",
  55219. "uc_greedy": "1f1f0-1f1ea",
  55220. "shortnames": [":ke:"],
  55221. "category": "flags"
  55222. },
  55223. ":flag_kg:": {
  55224. "uc_base": "1f1f0-1f1ec",
  55225. "uc_output": "1f1f0-1f1ec",
  55226. "uc_match": "1f1f0-1f1ec",
  55227. "uc_greedy": "1f1f0-1f1ec",
  55228. "shortnames": [":kg:"],
  55229. "category": "flags"
  55230. },
  55231. ":flag_kh:": {
  55232. "uc_base": "1f1f0-1f1ed",
  55233. "uc_output": "1f1f0-1f1ed",
  55234. "uc_match": "1f1f0-1f1ed",
  55235. "uc_greedy": "1f1f0-1f1ed",
  55236. "shortnames": [":kh:"],
  55237. "category": "flags"
  55238. },
  55239. ":flag_ki:": {
  55240. "uc_base": "1f1f0-1f1ee",
  55241. "uc_output": "1f1f0-1f1ee",
  55242. "uc_match": "1f1f0-1f1ee",
  55243. "uc_greedy": "1f1f0-1f1ee",
  55244. "shortnames": [":ki:"],
  55245. "category": "flags"
  55246. },
  55247. ":flag_km:": {
  55248. "uc_base": "1f1f0-1f1f2",
  55249. "uc_output": "1f1f0-1f1f2",
  55250. "uc_match": "1f1f0-1f1f2",
  55251. "uc_greedy": "1f1f0-1f1f2",
  55252. "shortnames": [":km:"],
  55253. "category": "flags"
  55254. },
  55255. ":flag_kn:": {
  55256. "uc_base": "1f1f0-1f1f3",
  55257. "uc_output": "1f1f0-1f1f3",
  55258. "uc_match": "1f1f0-1f1f3",
  55259. "uc_greedy": "1f1f0-1f1f3",
  55260. "shortnames": [":kn:"],
  55261. "category": "flags"
  55262. },
  55263. ":flag_kp:": {
  55264. "uc_base": "1f1f0-1f1f5",
  55265. "uc_output": "1f1f0-1f1f5",
  55266. "uc_match": "1f1f0-1f1f5",
  55267. "uc_greedy": "1f1f0-1f1f5",
  55268. "shortnames": [":kp:"],
  55269. "category": "flags"
  55270. },
  55271. ":flag_kr:": {
  55272. "uc_base": "1f1f0-1f1f7",
  55273. "uc_output": "1f1f0-1f1f7",
  55274. "uc_match": "1f1f0-1f1f7",
  55275. "uc_greedy": "1f1f0-1f1f7",
  55276. "shortnames": [":kr:"],
  55277. "category": "flags"
  55278. },
  55279. ":flag_kw:": {
  55280. "uc_base": "1f1f0-1f1fc",
  55281. "uc_output": "1f1f0-1f1fc",
  55282. "uc_match": "1f1f0-1f1fc",
  55283. "uc_greedy": "1f1f0-1f1fc",
  55284. "shortnames": [":kw:"],
  55285. "category": "flags"
  55286. },
  55287. ":flag_ky:": {
  55288. "uc_base": "1f1f0-1f1fe",
  55289. "uc_output": "1f1f0-1f1fe",
  55290. "uc_match": "1f1f0-1f1fe",
  55291. "uc_greedy": "1f1f0-1f1fe",
  55292. "shortnames": [":ky:"],
  55293. "category": "flags"
  55294. },
  55295. ":flag_kz:": {
  55296. "uc_base": "1f1f0-1f1ff",
  55297. "uc_output": "1f1f0-1f1ff",
  55298. "uc_match": "1f1f0-1f1ff",
  55299. "uc_greedy": "1f1f0-1f1ff",
  55300. "shortnames": [":kz:"],
  55301. "category": "flags"
  55302. },
  55303. ":flag_la:": {
  55304. "uc_base": "1f1f1-1f1e6",
  55305. "uc_output": "1f1f1-1f1e6",
  55306. "uc_match": "1f1f1-1f1e6",
  55307. "uc_greedy": "1f1f1-1f1e6",
  55308. "shortnames": [":la:"],
  55309. "category": "flags"
  55310. },
  55311. ":flag_lb:": {
  55312. "uc_base": "1f1f1-1f1e7",
  55313. "uc_output": "1f1f1-1f1e7",
  55314. "uc_match": "1f1f1-1f1e7",
  55315. "uc_greedy": "1f1f1-1f1e7",
  55316. "shortnames": [":lb:"],
  55317. "category": "flags"
  55318. },
  55319. ":flag_lc:": {
  55320. "uc_base": "1f1f1-1f1e8",
  55321. "uc_output": "1f1f1-1f1e8",
  55322. "uc_match": "1f1f1-1f1e8",
  55323. "uc_greedy": "1f1f1-1f1e8",
  55324. "shortnames": [":lc:"],
  55325. "category": "flags"
  55326. },
  55327. ":flag_li:": {
  55328. "uc_base": "1f1f1-1f1ee",
  55329. "uc_output": "1f1f1-1f1ee",
  55330. "uc_match": "1f1f1-1f1ee",
  55331. "uc_greedy": "1f1f1-1f1ee",
  55332. "shortnames": [":li:"],
  55333. "category": "flags"
  55334. },
  55335. ":flag_lk:": {
  55336. "uc_base": "1f1f1-1f1f0",
  55337. "uc_output": "1f1f1-1f1f0",
  55338. "uc_match": "1f1f1-1f1f0",
  55339. "uc_greedy": "1f1f1-1f1f0",
  55340. "shortnames": [":lk:"],
  55341. "category": "flags"
  55342. },
  55343. ":flag_lr:": {
  55344. "uc_base": "1f1f1-1f1f7",
  55345. "uc_output": "1f1f1-1f1f7",
  55346. "uc_match": "1f1f1-1f1f7",
  55347. "uc_greedy": "1f1f1-1f1f7",
  55348. "shortnames": [":lr:"],
  55349. "category": "flags"
  55350. },
  55351. ":flag_ls:": {
  55352. "uc_base": "1f1f1-1f1f8",
  55353. "uc_output": "1f1f1-1f1f8",
  55354. "uc_match": "1f1f1-1f1f8",
  55355. "uc_greedy": "1f1f1-1f1f8",
  55356. "shortnames": [":ls:"],
  55357. "category": "flags"
  55358. },
  55359. ":flag_lt:": {
  55360. "uc_base": "1f1f1-1f1f9",
  55361. "uc_output": "1f1f1-1f1f9",
  55362. "uc_match": "1f1f1-1f1f9",
  55363. "uc_greedy": "1f1f1-1f1f9",
  55364. "shortnames": [":lt:"],
  55365. "category": "flags"
  55366. },
  55367. ":flag_lu:": {
  55368. "uc_base": "1f1f1-1f1fa",
  55369. "uc_output": "1f1f1-1f1fa",
  55370. "uc_match": "1f1f1-1f1fa",
  55371. "uc_greedy": "1f1f1-1f1fa",
  55372. "shortnames": [":lu:"],
  55373. "category": "flags"
  55374. },
  55375. ":flag_lv:": {
  55376. "uc_base": "1f1f1-1f1fb",
  55377. "uc_output": "1f1f1-1f1fb",
  55378. "uc_match": "1f1f1-1f1fb",
  55379. "uc_greedy": "1f1f1-1f1fb",
  55380. "shortnames": [":lv:"],
  55381. "category": "flags"
  55382. },
  55383. ":flag_ly:": {
  55384. "uc_base": "1f1f1-1f1fe",
  55385. "uc_output": "1f1f1-1f1fe",
  55386. "uc_match": "1f1f1-1f1fe",
  55387. "uc_greedy": "1f1f1-1f1fe",
  55388. "shortnames": [":ly:"],
  55389. "category": "flags"
  55390. },
  55391. ":flag_ma:": {
  55392. "uc_base": "1f1f2-1f1e6",
  55393. "uc_output": "1f1f2-1f1e6",
  55394. "uc_match": "1f1f2-1f1e6",
  55395. "uc_greedy": "1f1f2-1f1e6",
  55396. "shortnames": [":ma:"],
  55397. "category": "flags"
  55398. },
  55399. ":flag_mc:": {
  55400. "uc_base": "1f1f2-1f1e8",
  55401. "uc_output": "1f1f2-1f1e8",
  55402. "uc_match": "1f1f2-1f1e8",
  55403. "uc_greedy": "1f1f2-1f1e8",
  55404. "shortnames": [":mc:"],
  55405. "category": "flags"
  55406. },
  55407. ":flag_md:": {
  55408. "uc_base": "1f1f2-1f1e9",
  55409. "uc_output": "1f1f2-1f1e9",
  55410. "uc_match": "1f1f2-1f1e9",
  55411. "uc_greedy": "1f1f2-1f1e9",
  55412. "shortnames": [":md:"],
  55413. "category": "flags"
  55414. },
  55415. ":flag_me:": {
  55416. "uc_base": "1f1f2-1f1ea",
  55417. "uc_output": "1f1f2-1f1ea",
  55418. "uc_match": "1f1f2-1f1ea",
  55419. "uc_greedy": "1f1f2-1f1ea",
  55420. "shortnames": [":me:"],
  55421. "category": "flags"
  55422. },
  55423. ":flag_mf:": {
  55424. "uc_base": "1f1f2-1f1eb",
  55425. "uc_output": "1f1f2-1f1eb",
  55426. "uc_match": "1f1f2-1f1eb",
  55427. "uc_greedy": "1f1f2-1f1eb",
  55428. "shortnames": [":mf:"],
  55429. "category": "flags"
  55430. },
  55431. ":flag_mg:": {
  55432. "uc_base": "1f1f2-1f1ec",
  55433. "uc_output": "1f1f2-1f1ec",
  55434. "uc_match": "1f1f2-1f1ec",
  55435. "uc_greedy": "1f1f2-1f1ec",
  55436. "shortnames": [":mg:"],
  55437. "category": "flags"
  55438. },
  55439. ":flag_mh:": {
  55440. "uc_base": "1f1f2-1f1ed",
  55441. "uc_output": "1f1f2-1f1ed",
  55442. "uc_match": "1f1f2-1f1ed",
  55443. "uc_greedy": "1f1f2-1f1ed",
  55444. "shortnames": [":mh:"],
  55445. "category": "flags"
  55446. },
  55447. ":flag_mk:": {
  55448. "uc_base": "1f1f2-1f1f0",
  55449. "uc_output": "1f1f2-1f1f0",
  55450. "uc_match": "1f1f2-1f1f0",
  55451. "uc_greedy": "1f1f2-1f1f0",
  55452. "shortnames": [":mk:"],
  55453. "category": "flags"
  55454. },
  55455. ":flag_ml:": {
  55456. "uc_base": "1f1f2-1f1f1",
  55457. "uc_output": "1f1f2-1f1f1",
  55458. "uc_match": "1f1f2-1f1f1",
  55459. "uc_greedy": "1f1f2-1f1f1",
  55460. "shortnames": [":ml:"],
  55461. "category": "flags"
  55462. },
  55463. ":flag_mm:": {
  55464. "uc_base": "1f1f2-1f1f2",
  55465. "uc_output": "1f1f2-1f1f2",
  55466. "uc_match": "1f1f2-1f1f2",
  55467. "uc_greedy": "1f1f2-1f1f2",
  55468. "shortnames": [":mm:"],
  55469. "category": "flags"
  55470. },
  55471. ":flag_mn:": {
  55472. "uc_base": "1f1f2-1f1f3",
  55473. "uc_output": "1f1f2-1f1f3",
  55474. "uc_match": "1f1f2-1f1f3",
  55475. "uc_greedy": "1f1f2-1f1f3",
  55476. "shortnames": [":mn:"],
  55477. "category": "flags"
  55478. },
  55479. ":flag_mo:": {
  55480. "uc_base": "1f1f2-1f1f4",
  55481. "uc_output": "1f1f2-1f1f4",
  55482. "uc_match": "1f1f2-1f1f4",
  55483. "uc_greedy": "1f1f2-1f1f4",
  55484. "shortnames": [":mo:"],
  55485. "category": "flags"
  55486. },
  55487. ":flag_mp:": {
  55488. "uc_base": "1f1f2-1f1f5",
  55489. "uc_output": "1f1f2-1f1f5",
  55490. "uc_match": "1f1f2-1f1f5",
  55491. "uc_greedy": "1f1f2-1f1f5",
  55492. "shortnames": [":mp:"],
  55493. "category": "flags"
  55494. },
  55495. ":flag_mq:": {
  55496. "uc_base": "1f1f2-1f1f6",
  55497. "uc_output": "1f1f2-1f1f6",
  55498. "uc_match": "1f1f2-1f1f6",
  55499. "uc_greedy": "1f1f2-1f1f6",
  55500. "shortnames": [":mq:"],
  55501. "category": "flags"
  55502. },
  55503. ":flag_mr:": {
  55504. "uc_base": "1f1f2-1f1f7",
  55505. "uc_output": "1f1f2-1f1f7",
  55506. "uc_match": "1f1f2-1f1f7",
  55507. "uc_greedy": "1f1f2-1f1f7",
  55508. "shortnames": [":mr:"],
  55509. "category": "flags"
  55510. },
  55511. ":flag_ms:": {
  55512. "uc_base": "1f1f2-1f1f8",
  55513. "uc_output": "1f1f2-1f1f8",
  55514. "uc_match": "1f1f2-1f1f8",
  55515. "uc_greedy": "1f1f2-1f1f8",
  55516. "shortnames": [":ms:"],
  55517. "category": "flags"
  55518. },
  55519. ":flag_mt:": {
  55520. "uc_base": "1f1f2-1f1f9",
  55521. "uc_output": "1f1f2-1f1f9",
  55522. "uc_match": "1f1f2-1f1f9",
  55523. "uc_greedy": "1f1f2-1f1f9",
  55524. "shortnames": [":mt:"],
  55525. "category": "flags"
  55526. },
  55527. ":flag_mu:": {
  55528. "uc_base": "1f1f2-1f1fa",
  55529. "uc_output": "1f1f2-1f1fa",
  55530. "uc_match": "1f1f2-1f1fa",
  55531. "uc_greedy": "1f1f2-1f1fa",
  55532. "shortnames": [":mu:"],
  55533. "category": "flags"
  55534. },
  55535. ":flag_mv:": {
  55536. "uc_base": "1f1f2-1f1fb",
  55537. "uc_output": "1f1f2-1f1fb",
  55538. "uc_match": "1f1f2-1f1fb",
  55539. "uc_greedy": "1f1f2-1f1fb",
  55540. "shortnames": [":mv:"],
  55541. "category": "flags"
  55542. },
  55543. ":flag_mw:": {
  55544. "uc_base": "1f1f2-1f1fc",
  55545. "uc_output": "1f1f2-1f1fc",
  55546. "uc_match": "1f1f2-1f1fc",
  55547. "uc_greedy": "1f1f2-1f1fc",
  55548. "shortnames": [":mw:"],
  55549. "category": "flags"
  55550. },
  55551. ":flag_mx:": {
  55552. "uc_base": "1f1f2-1f1fd",
  55553. "uc_output": "1f1f2-1f1fd",
  55554. "uc_match": "1f1f2-1f1fd",
  55555. "uc_greedy": "1f1f2-1f1fd",
  55556. "shortnames": [":mx:"],
  55557. "category": "flags"
  55558. },
  55559. ":flag_my:": {
  55560. "uc_base": "1f1f2-1f1fe",
  55561. "uc_output": "1f1f2-1f1fe",
  55562. "uc_match": "1f1f2-1f1fe",
  55563. "uc_greedy": "1f1f2-1f1fe",
  55564. "shortnames": [":my:"],
  55565. "category": "flags"
  55566. },
  55567. ":flag_mz:": {
  55568. "uc_base": "1f1f2-1f1ff",
  55569. "uc_output": "1f1f2-1f1ff",
  55570. "uc_match": "1f1f2-1f1ff",
  55571. "uc_greedy": "1f1f2-1f1ff",
  55572. "shortnames": [":mz:"],
  55573. "category": "flags"
  55574. },
  55575. ":flag_na:": {
  55576. "uc_base": "1f1f3-1f1e6",
  55577. "uc_output": "1f1f3-1f1e6",
  55578. "uc_match": "1f1f3-1f1e6",
  55579. "uc_greedy": "1f1f3-1f1e6",
  55580. "shortnames": [":na:"],
  55581. "category": "flags"
  55582. },
  55583. ":flag_nc:": {
  55584. "uc_base": "1f1f3-1f1e8",
  55585. "uc_output": "1f1f3-1f1e8",
  55586. "uc_match": "1f1f3-1f1e8",
  55587. "uc_greedy": "1f1f3-1f1e8",
  55588. "shortnames": [":nc:"],
  55589. "category": "flags"
  55590. },
  55591. ":flag_ne:": {
  55592. "uc_base": "1f1f3-1f1ea",
  55593. "uc_output": "1f1f3-1f1ea",
  55594. "uc_match": "1f1f3-1f1ea",
  55595. "uc_greedy": "1f1f3-1f1ea",
  55596. "shortnames": [":ne:"],
  55597. "category": "flags"
  55598. },
  55599. ":flag_nf:": {
  55600. "uc_base": "1f1f3-1f1eb",
  55601. "uc_output": "1f1f3-1f1eb",
  55602. "uc_match": "1f1f3-1f1eb",
  55603. "uc_greedy": "1f1f3-1f1eb",
  55604. "shortnames": [":nf:"],
  55605. "category": "flags"
  55606. },
  55607. ":flag_ng:": {
  55608. "uc_base": "1f1f3-1f1ec",
  55609. "uc_output": "1f1f3-1f1ec",
  55610. "uc_match": "1f1f3-1f1ec",
  55611. "uc_greedy": "1f1f3-1f1ec",
  55612. "shortnames": [":nigeria:"],
  55613. "category": "flags"
  55614. },
  55615. ":flag_ni:": {
  55616. "uc_base": "1f1f3-1f1ee",
  55617. "uc_output": "1f1f3-1f1ee",
  55618. "uc_match": "1f1f3-1f1ee",
  55619. "uc_greedy": "1f1f3-1f1ee",
  55620. "shortnames": [":ni:"],
  55621. "category": "flags"
  55622. },
  55623. ":flag_nl:": {
  55624. "uc_base": "1f1f3-1f1f1",
  55625. "uc_output": "1f1f3-1f1f1",
  55626. "uc_match": "1f1f3-1f1f1",
  55627. "uc_greedy": "1f1f3-1f1f1",
  55628. "shortnames": [":nl:"],
  55629. "category": "flags"
  55630. },
  55631. ":flag_no:": {
  55632. "uc_base": "1f1f3-1f1f4",
  55633. "uc_output": "1f1f3-1f1f4",
  55634. "uc_match": "1f1f3-1f1f4",
  55635. "uc_greedy": "1f1f3-1f1f4",
  55636. "shortnames": [":no:"],
  55637. "category": "flags"
  55638. },
  55639. ":flag_np:": {
  55640. "uc_base": "1f1f3-1f1f5",
  55641. "uc_output": "1f1f3-1f1f5",
  55642. "uc_match": "1f1f3-1f1f5",
  55643. "uc_greedy": "1f1f3-1f1f5",
  55644. "shortnames": [":np:"],
  55645. "category": "flags"
  55646. },
  55647. ":flag_nr:": {
  55648. "uc_base": "1f1f3-1f1f7",
  55649. "uc_output": "1f1f3-1f1f7",
  55650. "uc_match": "1f1f3-1f1f7",
  55651. "uc_greedy": "1f1f3-1f1f7",
  55652. "shortnames": [":nr:"],
  55653. "category": "flags"
  55654. },
  55655. ":flag_nu:": {
  55656. "uc_base": "1f1f3-1f1fa",
  55657. "uc_output": "1f1f3-1f1fa",
  55658. "uc_match": "1f1f3-1f1fa",
  55659. "uc_greedy": "1f1f3-1f1fa",
  55660. "shortnames": [":nu:"],
  55661. "category": "flags"
  55662. },
  55663. ":flag_nz:": {
  55664. "uc_base": "1f1f3-1f1ff",
  55665. "uc_output": "1f1f3-1f1ff",
  55666. "uc_match": "1f1f3-1f1ff",
  55667. "uc_greedy": "1f1f3-1f1ff",
  55668. "shortnames": [":nz:"],
  55669. "category": "flags"
  55670. },
  55671. ":flag_om:": {
  55672. "uc_base": "1f1f4-1f1f2",
  55673. "uc_output": "1f1f4-1f1f2",
  55674. "uc_match": "1f1f4-1f1f2",
  55675. "uc_greedy": "1f1f4-1f1f2",
  55676. "shortnames": [":om:"],
  55677. "category": "flags"
  55678. },
  55679. ":flag_pa:": {
  55680. "uc_base": "1f1f5-1f1e6",
  55681. "uc_output": "1f1f5-1f1e6",
  55682. "uc_match": "1f1f5-1f1e6",
  55683. "uc_greedy": "1f1f5-1f1e6",
  55684. "shortnames": [":pa:"],
  55685. "category": "flags"
  55686. },
  55687. ":flag_pe:": {
  55688. "uc_base": "1f1f5-1f1ea",
  55689. "uc_output": "1f1f5-1f1ea",
  55690. "uc_match": "1f1f5-1f1ea",
  55691. "uc_greedy": "1f1f5-1f1ea",
  55692. "shortnames": [":pe:"],
  55693. "category": "flags"
  55694. },
  55695. ":flag_pf:": {
  55696. "uc_base": "1f1f5-1f1eb",
  55697. "uc_output": "1f1f5-1f1eb",
  55698. "uc_match": "1f1f5-1f1eb",
  55699. "uc_greedy": "1f1f5-1f1eb",
  55700. "shortnames": [":pf:"],
  55701. "category": "flags"
  55702. },
  55703. ":flag_pg:": {
  55704. "uc_base": "1f1f5-1f1ec",
  55705. "uc_output": "1f1f5-1f1ec",
  55706. "uc_match": "1f1f5-1f1ec",
  55707. "uc_greedy": "1f1f5-1f1ec",
  55708. "shortnames": [":pg:"],
  55709. "category": "flags"
  55710. },
  55711. ":flag_ph:": {
  55712. "uc_base": "1f1f5-1f1ed",
  55713. "uc_output": "1f1f5-1f1ed",
  55714. "uc_match": "1f1f5-1f1ed",
  55715. "uc_greedy": "1f1f5-1f1ed",
  55716. "shortnames": [":ph:"],
  55717. "category": "flags"
  55718. },
  55719. ":flag_pk:": {
  55720. "uc_base": "1f1f5-1f1f0",
  55721. "uc_output": "1f1f5-1f1f0",
  55722. "uc_match": "1f1f5-1f1f0",
  55723. "uc_greedy": "1f1f5-1f1f0",
  55724. "shortnames": [":pk:"],
  55725. "category": "flags"
  55726. },
  55727. ":flag_pl:": {
  55728. "uc_base": "1f1f5-1f1f1",
  55729. "uc_output": "1f1f5-1f1f1",
  55730. "uc_match": "1f1f5-1f1f1",
  55731. "uc_greedy": "1f1f5-1f1f1",
  55732. "shortnames": [":pl:"],
  55733. "category": "flags"
  55734. },
  55735. ":flag_pm:": {
  55736. "uc_base": "1f1f5-1f1f2",
  55737. "uc_output": "1f1f5-1f1f2",
  55738. "uc_match": "1f1f5-1f1f2",
  55739. "uc_greedy": "1f1f5-1f1f2",
  55740. "shortnames": [":pm:"],
  55741. "category": "flags"
  55742. },
  55743. ":flag_pn:": {
  55744. "uc_base": "1f1f5-1f1f3",
  55745. "uc_output": "1f1f5-1f1f3",
  55746. "uc_match": "1f1f5-1f1f3",
  55747. "uc_greedy": "1f1f5-1f1f3",
  55748. "shortnames": [":pn:"],
  55749. "category": "flags"
  55750. },
  55751. ":flag_pr:": {
  55752. "uc_base": "1f1f5-1f1f7",
  55753. "uc_output": "1f1f5-1f1f7",
  55754. "uc_match": "1f1f5-1f1f7",
  55755. "uc_greedy": "1f1f5-1f1f7",
  55756. "shortnames": [":pr:"],
  55757. "category": "flags"
  55758. },
  55759. ":flag_ps:": {
  55760. "uc_base": "1f1f5-1f1f8",
  55761. "uc_output": "1f1f5-1f1f8",
  55762. "uc_match": "1f1f5-1f1f8",
  55763. "uc_greedy": "1f1f5-1f1f8",
  55764. "shortnames": [":ps:"],
  55765. "category": "flags"
  55766. },
  55767. ":flag_pt:": {
  55768. "uc_base": "1f1f5-1f1f9",
  55769. "uc_output": "1f1f5-1f1f9",
  55770. "uc_match": "1f1f5-1f1f9",
  55771. "uc_greedy": "1f1f5-1f1f9",
  55772. "shortnames": [":pt:"],
  55773. "category": "flags"
  55774. },
  55775. ":flag_pw:": {
  55776. "uc_base": "1f1f5-1f1fc",
  55777. "uc_output": "1f1f5-1f1fc",
  55778. "uc_match": "1f1f5-1f1fc",
  55779. "uc_greedy": "1f1f5-1f1fc",
  55780. "shortnames": [":pw:"],
  55781. "category": "flags"
  55782. },
  55783. ":flag_py:": {
  55784. "uc_base": "1f1f5-1f1fe",
  55785. "uc_output": "1f1f5-1f1fe",
  55786. "uc_match": "1f1f5-1f1fe",
  55787. "uc_greedy": "1f1f5-1f1fe",
  55788. "shortnames": [":py:"],
  55789. "category": "flags"
  55790. },
  55791. ":flag_qa:": {
  55792. "uc_base": "1f1f6-1f1e6",
  55793. "uc_output": "1f1f6-1f1e6",
  55794. "uc_match": "1f1f6-1f1e6",
  55795. "uc_greedy": "1f1f6-1f1e6",
  55796. "shortnames": [":qa:"],
  55797. "category": "flags"
  55798. },
  55799. ":flag_re:": {
  55800. "uc_base": "1f1f7-1f1ea",
  55801. "uc_output": "1f1f7-1f1ea",
  55802. "uc_match": "1f1f7-1f1ea",
  55803. "uc_greedy": "1f1f7-1f1ea",
  55804. "shortnames": [":re:"],
  55805. "category": "flags"
  55806. },
  55807. ":flag_ro:": {
  55808. "uc_base": "1f1f7-1f1f4",
  55809. "uc_output": "1f1f7-1f1f4",
  55810. "uc_match": "1f1f7-1f1f4",
  55811. "uc_greedy": "1f1f7-1f1f4",
  55812. "shortnames": [":ro:"],
  55813. "category": "flags"
  55814. },
  55815. ":flag_rs:": {
  55816. "uc_base": "1f1f7-1f1f8",
  55817. "uc_output": "1f1f7-1f1f8",
  55818. "uc_match": "1f1f7-1f1f8",
  55819. "uc_greedy": "1f1f7-1f1f8",
  55820. "shortnames": [":rs:"],
  55821. "category": "flags"
  55822. },
  55823. ":flag_ru:": {
  55824. "uc_base": "1f1f7-1f1fa",
  55825. "uc_output": "1f1f7-1f1fa",
  55826. "uc_match": "1f1f7-1f1fa",
  55827. "uc_greedy": "1f1f7-1f1fa",
  55828. "shortnames": [":ru:"],
  55829. "category": "flags"
  55830. },
  55831. ":flag_rw:": {
  55832. "uc_base": "1f1f7-1f1fc",
  55833. "uc_output": "1f1f7-1f1fc",
  55834. "uc_match": "1f1f7-1f1fc",
  55835. "uc_greedy": "1f1f7-1f1fc",
  55836. "shortnames": [":rw:"],
  55837. "category": "flags"
  55838. },
  55839. ":flag_sa:": {
  55840. "uc_base": "1f1f8-1f1e6",
  55841. "uc_output": "1f1f8-1f1e6",
  55842. "uc_match": "1f1f8-1f1e6",
  55843. "uc_greedy": "1f1f8-1f1e6",
  55844. "shortnames": [":saudiarabia:", ":saudi:"],
  55845. "category": "flags"
  55846. },
  55847. ":flag_sb:": {
  55848. "uc_base": "1f1f8-1f1e7",
  55849. "uc_output": "1f1f8-1f1e7",
  55850. "uc_match": "1f1f8-1f1e7",
  55851. "uc_greedy": "1f1f8-1f1e7",
  55852. "shortnames": [":sb:"],
  55853. "category": "flags"
  55854. },
  55855. ":flag_sc:": {
  55856. "uc_base": "1f1f8-1f1e8",
  55857. "uc_output": "1f1f8-1f1e8",
  55858. "uc_match": "1f1f8-1f1e8",
  55859. "uc_greedy": "1f1f8-1f1e8",
  55860. "shortnames": [":sc:"],
  55861. "category": "flags"
  55862. },
  55863. ":flag_sd:": {
  55864. "uc_base": "1f1f8-1f1e9",
  55865. "uc_output": "1f1f8-1f1e9",
  55866. "uc_match": "1f1f8-1f1e9",
  55867. "uc_greedy": "1f1f8-1f1e9",
  55868. "shortnames": [":sd:"],
  55869. "category": "flags"
  55870. },
  55871. ":flag_se:": {
  55872. "uc_base": "1f1f8-1f1ea",
  55873. "uc_output": "1f1f8-1f1ea",
  55874. "uc_match": "1f1f8-1f1ea",
  55875. "uc_greedy": "1f1f8-1f1ea",
  55876. "shortnames": [":se:"],
  55877. "category": "flags"
  55878. },
  55879. ":flag_sg:": {
  55880. "uc_base": "1f1f8-1f1ec",
  55881. "uc_output": "1f1f8-1f1ec",
  55882. "uc_match": "1f1f8-1f1ec",
  55883. "uc_greedy": "1f1f8-1f1ec",
  55884. "shortnames": [":sg:"],
  55885. "category": "flags"
  55886. },
  55887. ":flag_sh:": {
  55888. "uc_base": "1f1f8-1f1ed",
  55889. "uc_output": "1f1f8-1f1ed",
  55890. "uc_match": "1f1f8-1f1ed",
  55891. "uc_greedy": "1f1f8-1f1ed",
  55892. "shortnames": [":sh:"],
  55893. "category": "flags"
  55894. },
  55895. ":flag_si:": {
  55896. "uc_base": "1f1f8-1f1ee",
  55897. "uc_output": "1f1f8-1f1ee",
  55898. "uc_match": "1f1f8-1f1ee",
  55899. "uc_greedy": "1f1f8-1f1ee",
  55900. "shortnames": [":si:"],
  55901. "category": "flags"
  55902. },
  55903. ":flag_sj:": {
  55904. "uc_base": "1f1f8-1f1ef",
  55905. "uc_output": "1f1f8-1f1ef",
  55906. "uc_match": "1f1f8-1f1ef",
  55907. "uc_greedy": "1f1f8-1f1ef",
  55908. "shortnames": [":sj:"],
  55909. "category": "flags"
  55910. },
  55911. ":flag_sk:": {
  55912. "uc_base": "1f1f8-1f1f0",
  55913. "uc_output": "1f1f8-1f1f0",
  55914. "uc_match": "1f1f8-1f1f0",
  55915. "uc_greedy": "1f1f8-1f1f0",
  55916. "shortnames": [":sk:"],
  55917. "category": "flags"
  55918. },
  55919. ":flag_sl:": {
  55920. "uc_base": "1f1f8-1f1f1",
  55921. "uc_output": "1f1f8-1f1f1",
  55922. "uc_match": "1f1f8-1f1f1",
  55923. "uc_greedy": "1f1f8-1f1f1",
  55924. "shortnames": [":sl:"],
  55925. "category": "flags"
  55926. },
  55927. ":flag_sm:": {
  55928. "uc_base": "1f1f8-1f1f2",
  55929. "uc_output": "1f1f8-1f1f2",
  55930. "uc_match": "1f1f8-1f1f2",
  55931. "uc_greedy": "1f1f8-1f1f2",
  55932. "shortnames": [":sm:"],
  55933. "category": "flags"
  55934. },
  55935. ":flag_sn:": {
  55936. "uc_base": "1f1f8-1f1f3",
  55937. "uc_output": "1f1f8-1f1f3",
  55938. "uc_match": "1f1f8-1f1f3",
  55939. "uc_greedy": "1f1f8-1f1f3",
  55940. "shortnames": [":sn:"],
  55941. "category": "flags"
  55942. },
  55943. ":flag_so:": {
  55944. "uc_base": "1f1f8-1f1f4",
  55945. "uc_output": "1f1f8-1f1f4",
  55946. "uc_match": "1f1f8-1f1f4",
  55947. "uc_greedy": "1f1f8-1f1f4",
  55948. "shortnames": [":so:"],
  55949. "category": "flags"
  55950. },
  55951. ":flag_sr:": {
  55952. "uc_base": "1f1f8-1f1f7",
  55953. "uc_output": "1f1f8-1f1f7",
  55954. "uc_match": "1f1f8-1f1f7",
  55955. "uc_greedy": "1f1f8-1f1f7",
  55956. "shortnames": [":sr:"],
  55957. "category": "flags"
  55958. },
  55959. ":flag_ss:": {
  55960. "uc_base": "1f1f8-1f1f8",
  55961. "uc_output": "1f1f8-1f1f8",
  55962. "uc_match": "1f1f8-1f1f8",
  55963. "uc_greedy": "1f1f8-1f1f8",
  55964. "shortnames": [":ss:"],
  55965. "category": "flags"
  55966. },
  55967. ":flag_st:": {
  55968. "uc_base": "1f1f8-1f1f9",
  55969. "uc_output": "1f1f8-1f1f9",
  55970. "uc_match": "1f1f8-1f1f9",
  55971. "uc_greedy": "1f1f8-1f1f9",
  55972. "shortnames": [":st:"],
  55973. "category": "flags"
  55974. },
  55975. ":flag_sv:": {
  55976. "uc_base": "1f1f8-1f1fb",
  55977. "uc_output": "1f1f8-1f1fb",
  55978. "uc_match": "1f1f8-1f1fb",
  55979. "uc_greedy": "1f1f8-1f1fb",
  55980. "shortnames": [":sv:"],
  55981. "category": "flags"
  55982. },
  55983. ":flag_sx:": {
  55984. "uc_base": "1f1f8-1f1fd",
  55985. "uc_output": "1f1f8-1f1fd",
  55986. "uc_match": "1f1f8-1f1fd",
  55987. "uc_greedy": "1f1f8-1f1fd",
  55988. "shortnames": [":sx:"],
  55989. "category": "flags"
  55990. },
  55991. ":flag_sy:": {
  55992. "uc_base": "1f1f8-1f1fe",
  55993. "uc_output": "1f1f8-1f1fe",
  55994. "uc_match": "1f1f8-1f1fe",
  55995. "uc_greedy": "1f1f8-1f1fe",
  55996. "shortnames": [":sy:"],
  55997. "category": "flags"
  55998. },
  55999. ":flag_sz:": {
  56000. "uc_base": "1f1f8-1f1ff",
  56001. "uc_output": "1f1f8-1f1ff",
  56002. "uc_match": "1f1f8-1f1ff",
  56003. "uc_greedy": "1f1f8-1f1ff",
  56004. "shortnames": [":sz:"],
  56005. "category": "flags"
  56006. },
  56007. ":flag_ta:": {
  56008. "uc_base": "1f1f9-1f1e6",
  56009. "uc_output": "1f1f9-1f1e6",
  56010. "uc_match": "1f1f9-1f1e6",
  56011. "uc_greedy": "1f1f9-1f1e6",
  56012. "shortnames": [":ta:"],
  56013. "category": "flags"
  56014. },
  56015. ":flag_tc:": {
  56016. "uc_base": "1f1f9-1f1e8",
  56017. "uc_output": "1f1f9-1f1e8",
  56018. "uc_match": "1f1f9-1f1e8",
  56019. "uc_greedy": "1f1f9-1f1e8",
  56020. "shortnames": [":tc:"],
  56021. "category": "flags"
  56022. },
  56023. ":flag_td:": {
  56024. "uc_base": "1f1f9-1f1e9",
  56025. "uc_output": "1f1f9-1f1e9",
  56026. "uc_match": "1f1f9-1f1e9",
  56027. "uc_greedy": "1f1f9-1f1e9",
  56028. "shortnames": [":td:"],
  56029. "category": "flags"
  56030. },
  56031. ":flag_tf:": {
  56032. "uc_base": "1f1f9-1f1eb",
  56033. "uc_output": "1f1f9-1f1eb",
  56034. "uc_match": "1f1f9-1f1eb",
  56035. "uc_greedy": "1f1f9-1f1eb",
  56036. "shortnames": [":tf:"],
  56037. "category": "flags"
  56038. },
  56039. ":flag_tg:": {
  56040. "uc_base": "1f1f9-1f1ec",
  56041. "uc_output": "1f1f9-1f1ec",
  56042. "uc_match": "1f1f9-1f1ec",
  56043. "uc_greedy": "1f1f9-1f1ec",
  56044. "shortnames": [":tg:"],
  56045. "category": "flags"
  56046. },
  56047. ":flag_th:": {
  56048. "uc_base": "1f1f9-1f1ed",
  56049. "uc_output": "1f1f9-1f1ed",
  56050. "uc_match": "1f1f9-1f1ed",
  56051. "uc_greedy": "1f1f9-1f1ed",
  56052. "shortnames": [":th:"],
  56053. "category": "flags"
  56054. },
  56055. ":flag_tj:": {
  56056. "uc_base": "1f1f9-1f1ef",
  56057. "uc_output": "1f1f9-1f1ef",
  56058. "uc_match": "1f1f9-1f1ef",
  56059. "uc_greedy": "1f1f9-1f1ef",
  56060. "shortnames": [":tj:"],
  56061. "category": "flags"
  56062. },
  56063. ":flag_tk:": {
  56064. "uc_base": "1f1f9-1f1f0",
  56065. "uc_output": "1f1f9-1f1f0",
  56066. "uc_match": "1f1f9-1f1f0",
  56067. "uc_greedy": "1f1f9-1f1f0",
  56068. "shortnames": [":tk:"],
  56069. "category": "flags"
  56070. },
  56071. ":flag_tl:": {
  56072. "uc_base": "1f1f9-1f1f1",
  56073. "uc_output": "1f1f9-1f1f1",
  56074. "uc_match": "1f1f9-1f1f1",
  56075. "uc_greedy": "1f1f9-1f1f1",
  56076. "shortnames": [":tl:"],
  56077. "category": "flags"
  56078. },
  56079. ":flag_tm:": {
  56080. "uc_base": "1f1f9-1f1f2",
  56081. "uc_output": "1f1f9-1f1f2",
  56082. "uc_match": "1f1f9-1f1f2",
  56083. "uc_greedy": "1f1f9-1f1f2",
  56084. "shortnames": [":turkmenistan:"],
  56085. "category": "flags"
  56086. },
  56087. ":flag_tn:": {
  56088. "uc_base": "1f1f9-1f1f3",
  56089. "uc_output": "1f1f9-1f1f3",
  56090. "uc_match": "1f1f9-1f1f3",
  56091. "uc_greedy": "1f1f9-1f1f3",
  56092. "shortnames": [":tn:"],
  56093. "category": "flags"
  56094. },
  56095. ":flag_to:": {
  56096. "uc_base": "1f1f9-1f1f4",
  56097. "uc_output": "1f1f9-1f1f4",
  56098. "uc_match": "1f1f9-1f1f4",
  56099. "uc_greedy": "1f1f9-1f1f4",
  56100. "shortnames": [":to:"],
  56101. "category": "flags"
  56102. },
  56103. ":flag_tr:": {
  56104. "uc_base": "1f1f9-1f1f7",
  56105. "uc_output": "1f1f9-1f1f7",
  56106. "uc_match": "1f1f9-1f1f7",
  56107. "uc_greedy": "1f1f9-1f1f7",
  56108. "shortnames": [":tr:"],
  56109. "category": "flags"
  56110. },
  56111. ":flag_tt:": {
  56112. "uc_base": "1f1f9-1f1f9",
  56113. "uc_output": "1f1f9-1f1f9",
  56114. "uc_match": "1f1f9-1f1f9",
  56115. "uc_greedy": "1f1f9-1f1f9",
  56116. "shortnames": [":tt:"],
  56117. "category": "flags"
  56118. },
  56119. ":flag_tv:": {
  56120. "uc_base": "1f1f9-1f1fb",
  56121. "uc_output": "1f1f9-1f1fb",
  56122. "uc_match": "1f1f9-1f1fb",
  56123. "uc_greedy": "1f1f9-1f1fb",
  56124. "shortnames": [":tuvalu:"],
  56125. "category": "flags"
  56126. },
  56127. ":flag_tw:": {
  56128. "uc_base": "1f1f9-1f1fc",
  56129. "uc_output": "1f1f9-1f1fc",
  56130. "uc_match": "1f1f9-1f1fc",
  56131. "uc_greedy": "1f1f9-1f1fc",
  56132. "shortnames": [":tw:"],
  56133. "category": "flags"
  56134. },
  56135. ":flag_tz:": {
  56136. "uc_base": "1f1f9-1f1ff",
  56137. "uc_output": "1f1f9-1f1ff",
  56138. "uc_match": "1f1f9-1f1ff",
  56139. "uc_greedy": "1f1f9-1f1ff",
  56140. "shortnames": [":tz:"],
  56141. "category": "flags"
  56142. },
  56143. ":flag_ua:": {
  56144. "uc_base": "1f1fa-1f1e6",
  56145. "uc_output": "1f1fa-1f1e6",
  56146. "uc_match": "1f1fa-1f1e6",
  56147. "uc_greedy": "1f1fa-1f1e6",
  56148. "shortnames": [":ua:"],
  56149. "category": "flags"
  56150. },
  56151. ":flag_ug:": {
  56152. "uc_base": "1f1fa-1f1ec",
  56153. "uc_output": "1f1fa-1f1ec",
  56154. "uc_match": "1f1fa-1f1ec",
  56155. "uc_greedy": "1f1fa-1f1ec",
  56156. "shortnames": [":ug:"],
  56157. "category": "flags"
  56158. },
  56159. ":flag_um:": {
  56160. "uc_base": "1f1fa-1f1f2",
  56161. "uc_output": "1f1fa-1f1f2",
  56162. "uc_match": "1f1fa-1f1f2",
  56163. "uc_greedy": "1f1fa-1f1f2",
  56164. "shortnames": [":um:"],
  56165. "category": "flags"
  56166. },
  56167. ":flag_us:": {
  56168. "uc_base": "1f1fa-1f1f8",
  56169. "uc_output": "1f1fa-1f1f8",
  56170. "uc_match": "1f1fa-1f1f8",
  56171. "uc_greedy": "1f1fa-1f1f8",
  56172. "shortnames": [":us:"],
  56173. "category": "flags"
  56174. },
  56175. ":flag_uy:": {
  56176. "uc_base": "1f1fa-1f1fe",
  56177. "uc_output": "1f1fa-1f1fe",
  56178. "uc_match": "1f1fa-1f1fe",
  56179. "uc_greedy": "1f1fa-1f1fe",
  56180. "shortnames": [":uy:"],
  56181. "category": "flags"
  56182. },
  56183. ":flag_uz:": {
  56184. "uc_base": "1f1fa-1f1ff",
  56185. "uc_output": "1f1fa-1f1ff",
  56186. "uc_match": "1f1fa-1f1ff",
  56187. "uc_greedy": "1f1fa-1f1ff",
  56188. "shortnames": [":uz:"],
  56189. "category": "flags"
  56190. },
  56191. ":flag_va:": {
  56192. "uc_base": "1f1fb-1f1e6",
  56193. "uc_output": "1f1fb-1f1e6",
  56194. "uc_match": "1f1fb-1f1e6",
  56195. "uc_greedy": "1f1fb-1f1e6",
  56196. "shortnames": [":va:"],
  56197. "category": "flags"
  56198. },
  56199. ":flag_vc:": {
  56200. "uc_base": "1f1fb-1f1e8",
  56201. "uc_output": "1f1fb-1f1e8",
  56202. "uc_match": "1f1fb-1f1e8",
  56203. "uc_greedy": "1f1fb-1f1e8",
  56204. "shortnames": [":vc:"],
  56205. "category": "flags"
  56206. },
  56207. ":flag_ve:": {
  56208. "uc_base": "1f1fb-1f1ea",
  56209. "uc_output": "1f1fb-1f1ea",
  56210. "uc_match": "1f1fb-1f1ea",
  56211. "uc_greedy": "1f1fb-1f1ea",
  56212. "shortnames": [":ve:"],
  56213. "category": "flags"
  56214. },
  56215. ":flag_vg:": {
  56216. "uc_base": "1f1fb-1f1ec",
  56217. "uc_output": "1f1fb-1f1ec",
  56218. "uc_match": "1f1fb-1f1ec",
  56219. "uc_greedy": "1f1fb-1f1ec",
  56220. "shortnames": [":vg:"],
  56221. "category": "flags"
  56222. },
  56223. ":flag_vi:": {
  56224. "uc_base": "1f1fb-1f1ee",
  56225. "uc_output": "1f1fb-1f1ee",
  56226. "uc_match": "1f1fb-1f1ee",
  56227. "uc_greedy": "1f1fb-1f1ee",
  56228. "shortnames": [":vi:"],
  56229. "category": "flags"
  56230. },
  56231. ":flag_vn:": {
  56232. "uc_base": "1f1fb-1f1f3",
  56233. "uc_output": "1f1fb-1f1f3",
  56234. "uc_match": "1f1fb-1f1f3",
  56235. "uc_greedy": "1f1fb-1f1f3",
  56236. "shortnames": [":vn:"],
  56237. "category": "flags"
  56238. },
  56239. ":flag_vu:": {
  56240. "uc_base": "1f1fb-1f1fa",
  56241. "uc_output": "1f1fb-1f1fa",
  56242. "uc_match": "1f1fb-1f1fa",
  56243. "uc_greedy": "1f1fb-1f1fa",
  56244. "shortnames": [":vu:"],
  56245. "category": "flags"
  56246. },
  56247. ":flag_wf:": {
  56248. "uc_base": "1f1fc-1f1eb",
  56249. "uc_output": "1f1fc-1f1eb",
  56250. "uc_match": "1f1fc-1f1eb",
  56251. "uc_greedy": "1f1fc-1f1eb",
  56252. "shortnames": [":wf:"],
  56253. "category": "flags"
  56254. },
  56255. ":flag_ws:": {
  56256. "uc_base": "1f1fc-1f1f8",
  56257. "uc_output": "1f1fc-1f1f8",
  56258. "uc_match": "1f1fc-1f1f8",
  56259. "uc_greedy": "1f1fc-1f1f8",
  56260. "shortnames": [":ws:"],
  56261. "category": "flags"
  56262. },
  56263. ":flag_xk:": {
  56264. "uc_base": "1f1fd-1f1f0",
  56265. "uc_output": "1f1fd-1f1f0",
  56266. "uc_match": "1f1fd-1f1f0",
  56267. "uc_greedy": "1f1fd-1f1f0",
  56268. "shortnames": [":xk:"],
  56269. "category": "flags"
  56270. },
  56271. ":flag_ye:": {
  56272. "uc_base": "1f1fe-1f1ea",
  56273. "uc_output": "1f1fe-1f1ea",
  56274. "uc_match": "1f1fe-1f1ea",
  56275. "uc_greedy": "1f1fe-1f1ea",
  56276. "shortnames": [":ye:"],
  56277. "category": "flags"
  56278. },
  56279. ":flag_yt:": {
  56280. "uc_base": "1f1fe-1f1f9",
  56281. "uc_output": "1f1fe-1f1f9",
  56282. "uc_match": "1f1fe-1f1f9",
  56283. "uc_greedy": "1f1fe-1f1f9",
  56284. "shortnames": [":yt:"],
  56285. "category": "flags"
  56286. },
  56287. ":flag_za:": {
  56288. "uc_base": "1f1ff-1f1e6",
  56289. "uc_output": "1f1ff-1f1e6",
  56290. "uc_match": "1f1ff-1f1e6",
  56291. "uc_greedy": "1f1ff-1f1e6",
  56292. "shortnames": [":za:"],
  56293. "category": "flags"
  56294. },
  56295. ":flag_zm:": {
  56296. "uc_base": "1f1ff-1f1f2",
  56297. "uc_output": "1f1ff-1f1f2",
  56298. "uc_match": "1f1ff-1f1f2",
  56299. "uc_greedy": "1f1ff-1f1f2",
  56300. "shortnames": [":zm:"],
  56301. "category": "flags"
  56302. },
  56303. ":flag_zw:": {
  56304. "uc_base": "1f1ff-1f1fc",
  56305. "uc_output": "1f1ff-1f1fc",
  56306. "uc_match": "1f1ff-1f1fc",
  56307. "uc_greedy": "1f1ff-1f1fc",
  56308. "shortnames": [":zw:"],
  56309. "category": "flags"
  56310. },
  56311. ":girl_tone1:": {
  56312. "uc_base": "1f467-1f3fb",
  56313. "uc_output": "1f467-1f3fb",
  56314. "uc_match": "1f467-1f3fb",
  56315. "uc_greedy": "1f467-1f3fb",
  56316. "shortnames": [],
  56317. "category": "people"
  56318. },
  56319. ":girl_tone2:": {
  56320. "uc_base": "1f467-1f3fc",
  56321. "uc_output": "1f467-1f3fc",
  56322. "uc_match": "1f467-1f3fc",
  56323. "uc_greedy": "1f467-1f3fc",
  56324. "shortnames": [],
  56325. "category": "people"
  56326. },
  56327. ":girl_tone3:": {
  56328. "uc_base": "1f467-1f3fd",
  56329. "uc_output": "1f467-1f3fd",
  56330. "uc_match": "1f467-1f3fd",
  56331. "uc_greedy": "1f467-1f3fd",
  56332. "shortnames": [],
  56333. "category": "people"
  56334. },
  56335. ":girl_tone4:": {
  56336. "uc_base": "1f467-1f3fe",
  56337. "uc_output": "1f467-1f3fe",
  56338. "uc_match": "1f467-1f3fe",
  56339. "uc_greedy": "1f467-1f3fe",
  56340. "shortnames": [],
  56341. "category": "people"
  56342. },
  56343. ":girl_tone5:": {
  56344. "uc_base": "1f467-1f3ff",
  56345. "uc_output": "1f467-1f3ff",
  56346. "uc_match": "1f467-1f3ff",
  56347. "uc_greedy": "1f467-1f3ff",
  56348. "shortnames": [],
  56349. "category": "people"
  56350. },
  56351. ":guard_tone1:": {
  56352. "uc_base": "1f482-1f3fb",
  56353. "uc_output": "1f482-1f3fb",
  56354. "uc_match": "1f482-1f3fb",
  56355. "uc_greedy": "1f482-1f3fb",
  56356. "shortnames": [":guardsman_tone1:"],
  56357. "category": "people"
  56358. },
  56359. ":guard_tone2:": {
  56360. "uc_base": "1f482-1f3fc",
  56361. "uc_output": "1f482-1f3fc",
  56362. "uc_match": "1f482-1f3fc",
  56363. "uc_greedy": "1f482-1f3fc",
  56364. "shortnames": [":guardsman_tone2:"],
  56365. "category": "people"
  56366. },
  56367. ":guard_tone3:": {
  56368. "uc_base": "1f482-1f3fd",
  56369. "uc_output": "1f482-1f3fd",
  56370. "uc_match": "1f482-1f3fd",
  56371. "uc_greedy": "1f482-1f3fd",
  56372. "shortnames": [":guardsman_tone3:"],
  56373. "category": "people"
  56374. },
  56375. ":guard_tone4:": {
  56376. "uc_base": "1f482-1f3fe",
  56377. "uc_output": "1f482-1f3fe",
  56378. "uc_match": "1f482-1f3fe",
  56379. "uc_greedy": "1f482-1f3fe",
  56380. "shortnames": [":guardsman_tone4:"],
  56381. "category": "people"
  56382. },
  56383. ":guard_tone5:": {
  56384. "uc_base": "1f482-1f3ff",
  56385. "uc_output": "1f482-1f3ff",
  56386. "uc_match": "1f482-1f3ff",
  56387. "uc_greedy": "1f482-1f3ff",
  56388. "shortnames": [":guardsman_tone5:"],
  56389. "category": "people"
  56390. },
  56391. ":hand_splayed_tone1:": {
  56392. "uc_base": "1f590-1f3fb",
  56393. "uc_output": "1f590-1f3fb",
  56394. "uc_match": "1f590-fe0f-1f3fb",
  56395. "uc_greedy": "1f590-fe0f-1f3fb",
  56396. "shortnames": [":raised_hand_with_fingers_splayed_tone1:"],
  56397. "category": "people"
  56398. },
  56399. ":hand_splayed_tone2:": {
  56400. "uc_base": "1f590-1f3fc",
  56401. "uc_output": "1f590-1f3fc",
  56402. "uc_match": "1f590-fe0f-1f3fc",
  56403. "uc_greedy": "1f590-fe0f-1f3fc",
  56404. "shortnames": [":raised_hand_with_fingers_splayed_tone2:"],
  56405. "category": "people"
  56406. },
  56407. ":hand_splayed_tone3:": {
  56408. "uc_base": "1f590-1f3fd",
  56409. "uc_output": "1f590-1f3fd",
  56410. "uc_match": "1f590-fe0f-1f3fd",
  56411. "uc_greedy": "1f590-fe0f-1f3fd",
  56412. "shortnames": [":raised_hand_with_fingers_splayed_tone3:"],
  56413. "category": "people"
  56414. },
  56415. ":hand_splayed_tone4:": {
  56416. "uc_base": "1f590-1f3fe",
  56417. "uc_output": "1f590-1f3fe",
  56418. "uc_match": "1f590-fe0f-1f3fe",
  56419. "uc_greedy": "1f590-fe0f-1f3fe",
  56420. "shortnames": [":raised_hand_with_fingers_splayed_tone4:"],
  56421. "category": "people"
  56422. },
  56423. ":hand_splayed_tone5:": {
  56424. "uc_base": "1f590-1f3ff",
  56425. "uc_output": "1f590-1f3ff",
  56426. "uc_match": "1f590-fe0f-1f3ff",
  56427. "uc_greedy": "1f590-fe0f-1f3ff",
  56428. "shortnames": [":raised_hand_with_fingers_splayed_tone5:"],
  56429. "category": "people"
  56430. },
  56431. ":horse_racing_tone1:": {
  56432. "uc_base": "1f3c7-1f3fb",
  56433. "uc_output": "1f3c7-1f3fb",
  56434. "uc_match": "1f3c7-1f3fb",
  56435. "uc_greedy": "1f3c7-1f3fb",
  56436. "shortnames": [],
  56437. "category": "activity"
  56438. },
  56439. ":horse_racing_tone2:": {
  56440. "uc_base": "1f3c7-1f3fc",
  56441. "uc_output": "1f3c7-1f3fc",
  56442. "uc_match": "1f3c7-1f3fc",
  56443. "uc_greedy": "1f3c7-1f3fc",
  56444. "shortnames": [],
  56445. "category": "activity"
  56446. },
  56447. ":horse_racing_tone3:": {
  56448. "uc_base": "1f3c7-1f3fd",
  56449. "uc_output": "1f3c7-1f3fd",
  56450. "uc_match": "1f3c7-1f3fd",
  56451. "uc_greedy": "1f3c7-1f3fd",
  56452. "shortnames": [],
  56453. "category": "activity"
  56454. },
  56455. ":horse_racing_tone4:": {
  56456. "uc_base": "1f3c7-1f3fe",
  56457. "uc_output": "1f3c7-1f3fe",
  56458. "uc_match": "1f3c7-1f3fe",
  56459. "uc_greedy": "1f3c7-1f3fe",
  56460. "shortnames": [],
  56461. "category": "activity"
  56462. },
  56463. ":horse_racing_tone5:": {
  56464. "uc_base": "1f3c7-1f3ff",
  56465. "uc_output": "1f3c7-1f3ff",
  56466. "uc_match": "1f3c7-1f3ff",
  56467. "uc_greedy": "1f3c7-1f3ff",
  56468. "shortnames": [],
  56469. "category": "activity"
  56470. },
  56471. ":left_facing_fist_tone1:": {
  56472. "uc_base": "1f91b-1f3fb",
  56473. "uc_output": "1f91b-1f3fb",
  56474. "uc_match": "1f91b-1f3fb",
  56475. "uc_greedy": "1f91b-1f3fb",
  56476. "shortnames": [":left_fist_tone1:"],
  56477. "category": "people"
  56478. },
  56479. ":left_facing_fist_tone2:": {
  56480. "uc_base": "1f91b-1f3fc",
  56481. "uc_output": "1f91b-1f3fc",
  56482. "uc_match": "1f91b-1f3fc",
  56483. "uc_greedy": "1f91b-1f3fc",
  56484. "shortnames": [":left_fist_tone2:"],
  56485. "category": "people"
  56486. },
  56487. ":left_facing_fist_tone3:": {
  56488. "uc_base": "1f91b-1f3fd",
  56489. "uc_output": "1f91b-1f3fd",
  56490. "uc_match": "1f91b-1f3fd",
  56491. "uc_greedy": "1f91b-1f3fd",
  56492. "shortnames": [":left_fist_tone3:"],
  56493. "category": "people"
  56494. },
  56495. ":left_facing_fist_tone4:": {
  56496. "uc_base": "1f91b-1f3fe",
  56497. "uc_output": "1f91b-1f3fe",
  56498. "uc_match": "1f91b-1f3fe",
  56499. "uc_greedy": "1f91b-1f3fe",
  56500. "shortnames": [":left_fist_tone4:"],
  56501. "category": "people"
  56502. },
  56503. ":left_facing_fist_tone5:": {
  56504. "uc_base": "1f91b-1f3ff",
  56505. "uc_output": "1f91b-1f3ff",
  56506. "uc_match": "1f91b-1f3ff",
  56507. "uc_greedy": "1f91b-1f3ff",
  56508. "shortnames": [":left_fist_tone5:"],
  56509. "category": "people"
  56510. },
  56511. ":levitate_tone1:": {
  56512. "uc_base": "1f574-1f3fb",
  56513. "uc_output": "1f574-1f3fb",
  56514. "uc_match": "1f574-fe0f-1f3fb",
  56515. "uc_greedy": "1f574-fe0f-1f3fb",
  56516. "shortnames": [":man_in_business_suit_levitating_tone1:", ":man_in_business_suit_levitating_light_skin_tone:"],
  56517. "category": "people"
  56518. },
  56519. ":levitate_tone2:": {
  56520. "uc_base": "1f574-1f3fc",
  56521. "uc_output": "1f574-1f3fc",
  56522. "uc_match": "1f574-fe0f-1f3fc",
  56523. "uc_greedy": "1f574-fe0f-1f3fc",
  56524. "shortnames": [":man_in_business_suit_levitating_tone2:", ":man_in_business_suit_levitating_medium_light_skin_tone:"],
  56525. "category": "people"
  56526. },
  56527. ":levitate_tone3:": {
  56528. "uc_base": "1f574-1f3fd",
  56529. "uc_output": "1f574-1f3fd",
  56530. "uc_match": "1f574-fe0f-1f3fd",
  56531. "uc_greedy": "1f574-fe0f-1f3fd",
  56532. "shortnames": [":man_in_business_suit_levitating_tone3:", ":man_in_business_suit_levitating_medium_skin_tone:"],
  56533. "category": "people"
  56534. },
  56535. ":levitate_tone4:": {
  56536. "uc_base": "1f574-1f3fe",
  56537. "uc_output": "1f574-1f3fe",
  56538. "uc_match": "1f574-fe0f-1f3fe",
  56539. "uc_greedy": "1f574-fe0f-1f3fe",
  56540. "shortnames": [":man_in_business_suit_levitating_tone4:", ":man_in_business_suit_levitating_medium_dark_skin_tone:"],
  56541. "category": "people"
  56542. },
  56543. ":levitate_tone5:": {
  56544. "uc_base": "1f574-1f3ff",
  56545. "uc_output": "1f574-1f3ff",
  56546. "uc_match": "1f574-fe0f-1f3ff",
  56547. "uc_greedy": "1f574-fe0f-1f3ff",
  56548. "shortnames": [":man_in_business_suit_levitating_tone5:", ":man_in_business_suit_levitating_dark_skin_tone:"],
  56549. "category": "people"
  56550. },
  56551. ":love_you_gesture_tone1:": {
  56552. "uc_base": "1f91f-1f3fb",
  56553. "uc_output": "1f91f-1f3fb",
  56554. "uc_match": "1f91f-1f3fb",
  56555. "uc_greedy": "1f91f-1f3fb",
  56556. "shortnames": [":love_you_gesture_light_skin_tone:"],
  56557. "category": "people"
  56558. },
  56559. ":love_you_gesture_tone2:": {
  56560. "uc_base": "1f91f-1f3fc",
  56561. "uc_output": "1f91f-1f3fc",
  56562. "uc_match": "1f91f-1f3fc",
  56563. "uc_greedy": "1f91f-1f3fc",
  56564. "shortnames": [":love_you_gesture_medium_light_skin_tone:"],
  56565. "category": "people"
  56566. },
  56567. ":love_you_gesture_tone3:": {
  56568. "uc_base": "1f91f-1f3fd",
  56569. "uc_output": "1f91f-1f3fd",
  56570. "uc_match": "1f91f-1f3fd",
  56571. "uc_greedy": "1f91f-1f3fd",
  56572. "shortnames": [":love_you_gesture_medium_skin_tone:"],
  56573. "category": "people"
  56574. },
  56575. ":love_you_gesture_tone4:": {
  56576. "uc_base": "1f91f-1f3fe",
  56577. "uc_output": "1f91f-1f3fe",
  56578. "uc_match": "1f91f-1f3fe",
  56579. "uc_greedy": "1f91f-1f3fe",
  56580. "shortnames": [":love_you_gesture_medium_dark_skin_tone:"],
  56581. "category": "people"
  56582. },
  56583. ":love_you_gesture_tone5:": {
  56584. "uc_base": "1f91f-1f3ff",
  56585. "uc_output": "1f91f-1f3ff",
  56586. "uc_match": "1f91f-1f3ff",
  56587. "uc_greedy": "1f91f-1f3ff",
  56588. "shortnames": [":love_you_gesture_dark_skin_tone:"],
  56589. "category": "people"
  56590. },
  56591. ":mage_tone1:": {
  56592. "uc_base": "1f9d9-1f3fb",
  56593. "uc_output": "1f9d9-1f3fb",
  56594. "uc_match": "1f9d9-1f3fb",
  56595. "uc_greedy": "1f9d9-1f3fb",
  56596. "shortnames": [":mage_light_skin_tone:"],
  56597. "category": "people"
  56598. },
  56599. ":mage_tone2:": {
  56600. "uc_base": "1f9d9-1f3fc",
  56601. "uc_output": "1f9d9-1f3fc",
  56602. "uc_match": "1f9d9-1f3fc",
  56603. "uc_greedy": "1f9d9-1f3fc",
  56604. "shortnames": [":mage_medium_light_skin_tone:"],
  56605. "category": "people"
  56606. },
  56607. ":mage_tone3:": {
  56608. "uc_base": "1f9d9-1f3fd",
  56609. "uc_output": "1f9d9-1f3fd",
  56610. "uc_match": "1f9d9-1f3fd",
  56611. "uc_greedy": "1f9d9-1f3fd",
  56612. "shortnames": [":mage_medium_skin_tone:"],
  56613. "category": "people"
  56614. },
  56615. ":mage_tone4:": {
  56616. "uc_base": "1f9d9-1f3fe",
  56617. "uc_output": "1f9d9-1f3fe",
  56618. "uc_match": "1f9d9-1f3fe",
  56619. "uc_greedy": "1f9d9-1f3fe",
  56620. "shortnames": [":mage_medium_dark_skin_tone:"],
  56621. "category": "people"
  56622. },
  56623. ":mage_tone5:": {
  56624. "uc_base": "1f9d9-1f3ff",
  56625. "uc_output": "1f9d9-1f3ff",
  56626. "uc_match": "1f9d9-1f3ff",
  56627. "uc_greedy": "1f9d9-1f3ff",
  56628. "shortnames": [":mage_dark_skin_tone:"],
  56629. "category": "people"
  56630. },
  56631. ":man_dancing_tone1:": {
  56632. "uc_base": "1f57a-1f3fb",
  56633. "uc_output": "1f57a-1f3fb",
  56634. "uc_match": "1f57a-1f3fb",
  56635. "uc_greedy": "1f57a-1f3fb",
  56636. "shortnames": [":male_dancer_tone1:"],
  56637. "category": "people"
  56638. },
  56639. ":man_dancing_tone2:": {
  56640. "uc_base": "1f57a-1f3fc",
  56641. "uc_output": "1f57a-1f3fc",
  56642. "uc_match": "1f57a-1f3fc",
  56643. "uc_greedy": "1f57a-1f3fc",
  56644. "shortnames": [":male_dancer_tone2:"],
  56645. "category": "people"
  56646. },
  56647. ":man_dancing_tone3:": {
  56648. "uc_base": "1f57a-1f3fd",
  56649. "uc_output": "1f57a-1f3fd",
  56650. "uc_match": "1f57a-1f3fd",
  56651. "uc_greedy": "1f57a-1f3fd",
  56652. "shortnames": [":male_dancer_tone3:"],
  56653. "category": "people"
  56654. },
  56655. ":man_dancing_tone4:": {
  56656. "uc_base": "1f57a-1f3fe",
  56657. "uc_output": "1f57a-1f3fe",
  56658. "uc_match": "1f57a-1f3fe",
  56659. "uc_greedy": "1f57a-1f3fe",
  56660. "shortnames": [":male_dancer_tone4:"],
  56661. "category": "people"
  56662. },
  56663. ":man_dancing_tone5:": {
  56664. "uc_base": "1f57a-1f3ff",
  56665. "uc_output": "1f57a-1f3ff",
  56666. "uc_match": "1f57a-1f3ff",
  56667. "uc_greedy": "1f57a-1f3ff",
  56668. "shortnames": [":male_dancer_tone5:"],
  56669. "category": "people"
  56670. },
  56671. ":man_in_tuxedo_tone1:": {
  56672. "uc_base": "1f935-1f3fb",
  56673. "uc_output": "1f935-1f3fb",
  56674. "uc_match": "1f935-1f3fb",
  56675. "uc_greedy": "1f935-1f3fb",
  56676. "shortnames": [":tuxedo_tone1:"],
  56677. "category": "people"
  56678. },
  56679. ":man_in_tuxedo_tone2:": {
  56680. "uc_base": "1f935-1f3fc",
  56681. "uc_output": "1f935-1f3fc",
  56682. "uc_match": "1f935-1f3fc",
  56683. "uc_greedy": "1f935-1f3fc",
  56684. "shortnames": [":tuxedo_tone2:"],
  56685. "category": "people"
  56686. },
  56687. ":man_in_tuxedo_tone3:": {
  56688. "uc_base": "1f935-1f3fd",
  56689. "uc_output": "1f935-1f3fd",
  56690. "uc_match": "1f935-1f3fd",
  56691. "uc_greedy": "1f935-1f3fd",
  56692. "shortnames": [":tuxedo_tone3:"],
  56693. "category": "people"
  56694. },
  56695. ":man_in_tuxedo_tone4:": {
  56696. "uc_base": "1f935-1f3fe",
  56697. "uc_output": "1f935-1f3fe",
  56698. "uc_match": "1f935-1f3fe",
  56699. "uc_greedy": "1f935-1f3fe",
  56700. "shortnames": [":tuxedo_tone4:"],
  56701. "category": "people"
  56702. },
  56703. ":man_in_tuxedo_tone5:": {
  56704. "uc_base": "1f935-1f3ff",
  56705. "uc_output": "1f935-1f3ff",
  56706. "uc_match": "1f935-1f3ff",
  56707. "uc_greedy": "1f935-1f3ff",
  56708. "shortnames": [":tuxedo_tone5:"],
  56709. "category": "people"
  56710. },
  56711. ":man_tone1:": {
  56712. "uc_base": "1f468-1f3fb",
  56713. "uc_output": "1f468-1f3fb",
  56714. "uc_match": "1f468-1f3fb",
  56715. "uc_greedy": "1f468-1f3fb",
  56716. "shortnames": [],
  56717. "category": "people"
  56718. },
  56719. ":man_tone2:": {
  56720. "uc_base": "1f468-1f3fc",
  56721. "uc_output": "1f468-1f3fc",
  56722. "uc_match": "1f468-1f3fc",
  56723. "uc_greedy": "1f468-1f3fc",
  56724. "shortnames": [],
  56725. "category": "people"
  56726. },
  56727. ":man_tone3:": {
  56728. "uc_base": "1f468-1f3fd",
  56729. "uc_output": "1f468-1f3fd",
  56730. "uc_match": "1f468-1f3fd",
  56731. "uc_greedy": "1f468-1f3fd",
  56732. "shortnames": [],
  56733. "category": "people"
  56734. },
  56735. ":man_tone4:": {
  56736. "uc_base": "1f468-1f3fe",
  56737. "uc_output": "1f468-1f3fe",
  56738. "uc_match": "1f468-1f3fe",
  56739. "uc_greedy": "1f468-1f3fe",
  56740. "shortnames": [],
  56741. "category": "people"
  56742. },
  56743. ":man_tone5:": {
  56744. "uc_base": "1f468-1f3ff",
  56745. "uc_output": "1f468-1f3ff",
  56746. "uc_match": "1f468-1f3ff",
  56747. "uc_greedy": "1f468-1f3ff",
  56748. "shortnames": [],
  56749. "category": "people"
  56750. },
  56751. ":man_with_chinese_cap_tone1:": {
  56752. "uc_base": "1f472-1f3fb",
  56753. "uc_output": "1f472-1f3fb",
  56754. "uc_match": "1f472-1f3fb",
  56755. "uc_greedy": "1f472-1f3fb",
  56756. "shortnames": [":man_with_gua_pi_mao_tone1:"],
  56757. "category": "people"
  56758. },
  56759. ":man_with_chinese_cap_tone2:": {
  56760. "uc_base": "1f472-1f3fc",
  56761. "uc_output": "1f472-1f3fc",
  56762. "uc_match": "1f472-1f3fc",
  56763. "uc_greedy": "1f472-1f3fc",
  56764. "shortnames": [":man_with_gua_pi_mao_tone2:"],
  56765. "category": "people"
  56766. },
  56767. ":man_with_chinese_cap_tone3:": {
  56768. "uc_base": "1f472-1f3fd",
  56769. "uc_output": "1f472-1f3fd",
  56770. "uc_match": "1f472-1f3fd",
  56771. "uc_greedy": "1f472-1f3fd",
  56772. "shortnames": [":man_with_gua_pi_mao_tone3:"],
  56773. "category": "people"
  56774. },
  56775. ":man_with_chinese_cap_tone4:": {
  56776. "uc_base": "1f472-1f3fe",
  56777. "uc_output": "1f472-1f3fe",
  56778. "uc_match": "1f472-1f3fe",
  56779. "uc_greedy": "1f472-1f3fe",
  56780. "shortnames": [":man_with_gua_pi_mao_tone4:"],
  56781. "category": "people"
  56782. },
  56783. ":man_with_chinese_cap_tone5:": {
  56784. "uc_base": "1f472-1f3ff",
  56785. "uc_output": "1f472-1f3ff",
  56786. "uc_match": "1f472-1f3ff",
  56787. "uc_greedy": "1f472-1f3ff",
  56788. "shortnames": [":man_with_gua_pi_mao_tone5:"],
  56789. "category": "people"
  56790. },
  56791. ":merperson_tone1:": {
  56792. "uc_base": "1f9dc-1f3fb",
  56793. "uc_output": "1f9dc-1f3fb",
  56794. "uc_match": "1f9dc-1f3fb",
  56795. "uc_greedy": "1f9dc-1f3fb",
  56796. "shortnames": [":merperson_light_skin_tone:"],
  56797. "category": "people"
  56798. },
  56799. ":merperson_tone2:": {
  56800. "uc_base": "1f9dc-1f3fc",
  56801. "uc_output": "1f9dc-1f3fc",
  56802. "uc_match": "1f9dc-1f3fc",
  56803. "uc_greedy": "1f9dc-1f3fc",
  56804. "shortnames": [":merperson_medium_light_skin_tone:"],
  56805. "category": "people"
  56806. },
  56807. ":merperson_tone3:": {
  56808. "uc_base": "1f9dc-1f3fd",
  56809. "uc_output": "1f9dc-1f3fd",
  56810. "uc_match": "1f9dc-1f3fd",
  56811. "uc_greedy": "1f9dc-1f3fd",
  56812. "shortnames": [":merperson_medium_skin_tone:"],
  56813. "category": "people"
  56814. },
  56815. ":merperson_tone4:": {
  56816. "uc_base": "1f9dc-1f3fe",
  56817. "uc_output": "1f9dc-1f3fe",
  56818. "uc_match": "1f9dc-1f3fe",
  56819. "uc_greedy": "1f9dc-1f3fe",
  56820. "shortnames": [":merperson_medium_dark_skin_tone:"],
  56821. "category": "people"
  56822. },
  56823. ":merperson_tone5:": {
  56824. "uc_base": "1f9dc-1f3ff",
  56825. "uc_output": "1f9dc-1f3ff",
  56826. "uc_match": "1f9dc-1f3ff",
  56827. "uc_greedy": "1f9dc-1f3ff",
  56828. "shortnames": [":merperson_dark_skin_tone:"],
  56829. "category": "people"
  56830. },
  56831. ":metal_tone1:": {
  56832. "uc_base": "1f918-1f3fb",
  56833. "uc_output": "1f918-1f3fb",
  56834. "uc_match": "1f918-1f3fb",
  56835. "uc_greedy": "1f918-1f3fb",
  56836. "shortnames": [":sign_of_the_horns_tone1:"],
  56837. "category": "people"
  56838. },
  56839. ":metal_tone2:": {
  56840. "uc_base": "1f918-1f3fc",
  56841. "uc_output": "1f918-1f3fc",
  56842. "uc_match": "1f918-1f3fc",
  56843. "uc_greedy": "1f918-1f3fc",
  56844. "shortnames": [":sign_of_the_horns_tone2:"],
  56845. "category": "people"
  56846. },
  56847. ":metal_tone3:": {
  56848. "uc_base": "1f918-1f3fd",
  56849. "uc_output": "1f918-1f3fd",
  56850. "uc_match": "1f918-1f3fd",
  56851. "uc_greedy": "1f918-1f3fd",
  56852. "shortnames": [":sign_of_the_horns_tone3:"],
  56853. "category": "people"
  56854. },
  56855. ":metal_tone4:": {
  56856. "uc_base": "1f918-1f3fe",
  56857. "uc_output": "1f918-1f3fe",
  56858. "uc_match": "1f918-1f3fe",
  56859. "uc_greedy": "1f918-1f3fe",
  56860. "shortnames": [":sign_of_the_horns_tone4:"],
  56861. "category": "people"
  56862. },
  56863. ":metal_tone5:": {
  56864. "uc_base": "1f918-1f3ff",
  56865. "uc_output": "1f918-1f3ff",
  56866. "uc_match": "1f918-1f3ff",
  56867. "uc_greedy": "1f918-1f3ff",
  56868. "shortnames": [":sign_of_the_horns_tone5:"],
  56869. "category": "people"
  56870. },
  56871. ":middle_finger_tone1:": {
  56872. "uc_base": "1f595-1f3fb",
  56873. "uc_output": "1f595-1f3fb",
  56874. "uc_match": "1f595-1f3fb",
  56875. "uc_greedy": "1f595-1f3fb",
  56876. "shortnames": [":reversed_hand_with_middle_finger_extended_tone1:"],
  56877. "category": "people"
  56878. },
  56879. ":middle_finger_tone2:": {
  56880. "uc_base": "1f595-1f3fc",
  56881. "uc_output": "1f595-1f3fc",
  56882. "uc_match": "1f595-1f3fc",
  56883. "uc_greedy": "1f595-1f3fc",
  56884. "shortnames": [":reversed_hand_with_middle_finger_extended_tone2:"],
  56885. "category": "people"
  56886. },
  56887. ":middle_finger_tone3:": {
  56888. "uc_base": "1f595-1f3fd",
  56889. "uc_output": "1f595-1f3fd",
  56890. "uc_match": "1f595-1f3fd",
  56891. "uc_greedy": "1f595-1f3fd",
  56892. "shortnames": [":reversed_hand_with_middle_finger_extended_tone3:"],
  56893. "category": "people"
  56894. },
  56895. ":middle_finger_tone4:": {
  56896. "uc_base": "1f595-1f3fe",
  56897. "uc_output": "1f595-1f3fe",
  56898. "uc_match": "1f595-1f3fe",
  56899. "uc_greedy": "1f595-1f3fe",
  56900. "shortnames": [":reversed_hand_with_middle_finger_extended_tone4:"],
  56901. "category": "people"
  56902. },
  56903. ":middle_finger_tone5:": {
  56904. "uc_base": "1f595-1f3ff",
  56905. "uc_output": "1f595-1f3ff",
  56906. "uc_match": "1f595-1f3ff",
  56907. "uc_greedy": "1f595-1f3ff",
  56908. "shortnames": [":reversed_hand_with_middle_finger_extended_tone5:"],
  56909. "category": "people"
  56910. },
  56911. ":mrs_claus_tone1:": {
  56912. "uc_base": "1f936-1f3fb",
  56913. "uc_output": "1f936-1f3fb",
  56914. "uc_match": "1f936-1f3fb",
  56915. "uc_greedy": "1f936-1f3fb",
  56916. "shortnames": [":mother_christmas_tone1:"],
  56917. "category": "people"
  56918. },
  56919. ":mrs_claus_tone2:": {
  56920. "uc_base": "1f936-1f3fc",
  56921. "uc_output": "1f936-1f3fc",
  56922. "uc_match": "1f936-1f3fc",
  56923. "uc_greedy": "1f936-1f3fc",
  56924. "shortnames": [":mother_christmas_tone2:"],
  56925. "category": "people"
  56926. },
  56927. ":mrs_claus_tone3:": {
  56928. "uc_base": "1f936-1f3fd",
  56929. "uc_output": "1f936-1f3fd",
  56930. "uc_match": "1f936-1f3fd",
  56931. "uc_greedy": "1f936-1f3fd",
  56932. "shortnames": [":mother_christmas_tone3:"],
  56933. "category": "people"
  56934. },
  56935. ":mrs_claus_tone4:": {
  56936. "uc_base": "1f936-1f3fe",
  56937. "uc_output": "1f936-1f3fe",
  56938. "uc_match": "1f936-1f3fe",
  56939. "uc_greedy": "1f936-1f3fe",
  56940. "shortnames": [":mother_christmas_tone4:"],
  56941. "category": "people"
  56942. },
  56943. ":mrs_claus_tone5:": {
  56944. "uc_base": "1f936-1f3ff",
  56945. "uc_output": "1f936-1f3ff",
  56946. "uc_match": "1f936-1f3ff",
  56947. "uc_greedy": "1f936-1f3ff",
  56948. "shortnames": [":mother_christmas_tone5:"],
  56949. "category": "people"
  56950. },
  56951. ":muscle_tone1:": {
  56952. "uc_base": "1f4aa-1f3fb",
  56953. "uc_output": "1f4aa-1f3fb",
  56954. "uc_match": "1f4aa-1f3fb",
  56955. "uc_greedy": "1f4aa-1f3fb",
  56956. "shortnames": [],
  56957. "category": "people"
  56958. },
  56959. ":muscle_tone2:": {
  56960. "uc_base": "1f4aa-1f3fc",
  56961. "uc_output": "1f4aa-1f3fc",
  56962. "uc_match": "1f4aa-1f3fc",
  56963. "uc_greedy": "1f4aa-1f3fc",
  56964. "shortnames": [],
  56965. "category": "people"
  56966. },
  56967. ":muscle_tone3:": {
  56968. "uc_base": "1f4aa-1f3fd",
  56969. "uc_output": "1f4aa-1f3fd",
  56970. "uc_match": "1f4aa-1f3fd",
  56971. "uc_greedy": "1f4aa-1f3fd",
  56972. "shortnames": [],
  56973. "category": "people"
  56974. },
  56975. ":muscle_tone4:": {
  56976. "uc_base": "1f4aa-1f3fe",
  56977. "uc_output": "1f4aa-1f3fe",
  56978. "uc_match": "1f4aa-1f3fe",
  56979. "uc_greedy": "1f4aa-1f3fe",
  56980. "shortnames": [],
  56981. "category": "people"
  56982. },
  56983. ":muscle_tone5:": {
  56984. "uc_base": "1f4aa-1f3ff",
  56985. "uc_output": "1f4aa-1f3ff",
  56986. "uc_match": "1f4aa-1f3ff",
  56987. "uc_greedy": "1f4aa-1f3ff",
  56988. "shortnames": [],
  56989. "category": "people"
  56990. },
  56991. ":nail_care_tone1:": {
  56992. "uc_base": "1f485-1f3fb",
  56993. "uc_output": "1f485-1f3fb",
  56994. "uc_match": "1f485-1f3fb",
  56995. "uc_greedy": "1f485-1f3fb",
  56996. "shortnames": [],
  56997. "category": "people"
  56998. },
  56999. ":nail_care_tone2:": {
  57000. "uc_base": "1f485-1f3fc",
  57001. "uc_output": "1f485-1f3fc",
  57002. "uc_match": "1f485-1f3fc",
  57003. "uc_greedy": "1f485-1f3fc",
  57004. "shortnames": [],
  57005. "category": "people"
  57006. },
  57007. ":nail_care_tone3:": {
  57008. "uc_base": "1f485-1f3fd",
  57009. "uc_output": "1f485-1f3fd",
  57010. "uc_match": "1f485-1f3fd",
  57011. "uc_greedy": "1f485-1f3fd",
  57012. "shortnames": [],
  57013. "category": "people"
  57014. },
  57015. ":nail_care_tone4:": {
  57016. "uc_base": "1f485-1f3fe",
  57017. "uc_output": "1f485-1f3fe",
  57018. "uc_match": "1f485-1f3fe",
  57019. "uc_greedy": "1f485-1f3fe",
  57020. "shortnames": [],
  57021. "category": "people"
  57022. },
  57023. ":nail_care_tone5:": {
  57024. "uc_base": "1f485-1f3ff",
  57025. "uc_output": "1f485-1f3ff",
  57026. "uc_match": "1f485-1f3ff",
  57027. "uc_greedy": "1f485-1f3ff",
  57028. "shortnames": [],
  57029. "category": "people"
  57030. },
  57031. ":nose_tone1:": {
  57032. "uc_base": "1f443-1f3fb",
  57033. "uc_output": "1f443-1f3fb",
  57034. "uc_match": "1f443-1f3fb",
  57035. "uc_greedy": "1f443-1f3fb",
  57036. "shortnames": [],
  57037. "category": "people"
  57038. },
  57039. ":nose_tone2:": {
  57040. "uc_base": "1f443-1f3fc",
  57041. "uc_output": "1f443-1f3fc",
  57042. "uc_match": "1f443-1f3fc",
  57043. "uc_greedy": "1f443-1f3fc",
  57044. "shortnames": [],
  57045. "category": "people"
  57046. },
  57047. ":nose_tone3:": {
  57048. "uc_base": "1f443-1f3fd",
  57049. "uc_output": "1f443-1f3fd",
  57050. "uc_match": "1f443-1f3fd",
  57051. "uc_greedy": "1f443-1f3fd",
  57052. "shortnames": [],
  57053. "category": "people"
  57054. },
  57055. ":nose_tone4:": {
  57056. "uc_base": "1f443-1f3fe",
  57057. "uc_output": "1f443-1f3fe",
  57058. "uc_match": "1f443-1f3fe",
  57059. "uc_greedy": "1f443-1f3fe",
  57060. "shortnames": [],
  57061. "category": "people"
  57062. },
  57063. ":nose_tone5:": {
  57064. "uc_base": "1f443-1f3ff",
  57065. "uc_output": "1f443-1f3ff",
  57066. "uc_match": "1f443-1f3ff",
  57067. "uc_greedy": "1f443-1f3ff",
  57068. "shortnames": [],
  57069. "category": "people"
  57070. },
  57071. ":ok_hand_tone1:": {
  57072. "uc_base": "1f44c-1f3fb",
  57073. "uc_output": "1f44c-1f3fb",
  57074. "uc_match": "1f44c-1f3fb",
  57075. "uc_greedy": "1f44c-1f3fb",
  57076. "shortnames": [],
  57077. "category": "people"
  57078. },
  57079. ":ok_hand_tone2:": {
  57080. "uc_base": "1f44c-1f3fc",
  57081. "uc_output": "1f44c-1f3fc",
  57082. "uc_match": "1f44c-1f3fc",
  57083. "uc_greedy": "1f44c-1f3fc",
  57084. "shortnames": [],
  57085. "category": "people"
  57086. },
  57087. ":ok_hand_tone3:": {
  57088. "uc_base": "1f44c-1f3fd",
  57089. "uc_output": "1f44c-1f3fd",
  57090. "uc_match": "1f44c-1f3fd",
  57091. "uc_greedy": "1f44c-1f3fd",
  57092. "shortnames": [],
  57093. "category": "people"
  57094. },
  57095. ":ok_hand_tone4:": {
  57096. "uc_base": "1f44c-1f3fe",
  57097. "uc_output": "1f44c-1f3fe",
  57098. "uc_match": "1f44c-1f3fe",
  57099. "uc_greedy": "1f44c-1f3fe",
  57100. "shortnames": [],
  57101. "category": "people"
  57102. },
  57103. ":ok_hand_tone5:": {
  57104. "uc_base": "1f44c-1f3ff",
  57105. "uc_output": "1f44c-1f3ff",
  57106. "uc_match": "1f44c-1f3ff",
  57107. "uc_greedy": "1f44c-1f3ff",
  57108. "shortnames": [],
  57109. "category": "people"
  57110. },
  57111. ":older_adult_tone1:": {
  57112. "uc_base": "1f9d3-1f3fb",
  57113. "uc_output": "1f9d3-1f3fb",
  57114. "uc_match": "1f9d3-1f3fb",
  57115. "uc_greedy": "1f9d3-1f3fb",
  57116. "shortnames": [":older_adult_light_skin_tone:"],
  57117. "category": "people"
  57118. },
  57119. ":older_adult_tone2:": {
  57120. "uc_base": "1f9d3-1f3fc",
  57121. "uc_output": "1f9d3-1f3fc",
  57122. "uc_match": "1f9d3-1f3fc",
  57123. "uc_greedy": "1f9d3-1f3fc",
  57124. "shortnames": [":older_adult_medium_light_skin_tone:"],
  57125. "category": "people"
  57126. },
  57127. ":older_adult_tone3:": {
  57128. "uc_base": "1f9d3-1f3fd",
  57129. "uc_output": "1f9d3-1f3fd",
  57130. "uc_match": "1f9d3-1f3fd",
  57131. "uc_greedy": "1f9d3-1f3fd",
  57132. "shortnames": [":older_adult_medium_skin_tone:"],
  57133. "category": "people"
  57134. },
  57135. ":older_adult_tone4:": {
  57136. "uc_base": "1f9d3-1f3fe",
  57137. "uc_output": "1f9d3-1f3fe",
  57138. "uc_match": "1f9d3-1f3fe",
  57139. "uc_greedy": "1f9d3-1f3fe",
  57140. "shortnames": [":older_adult_medium_dark_skin_tone:"],
  57141. "category": "people"
  57142. },
  57143. ":older_adult_tone5:": {
  57144. "uc_base": "1f9d3-1f3ff",
  57145. "uc_output": "1f9d3-1f3ff",
  57146. "uc_match": "1f9d3-1f3ff",
  57147. "uc_greedy": "1f9d3-1f3ff",
  57148. "shortnames": [":older_adult_dark_skin_tone:"],
  57149. "category": "people"
  57150. },
  57151. ":older_man_tone1:": {
  57152. "uc_base": "1f474-1f3fb",
  57153. "uc_output": "1f474-1f3fb",
  57154. "uc_match": "1f474-1f3fb",
  57155. "uc_greedy": "1f474-1f3fb",
  57156. "shortnames": [],
  57157. "category": "people"
  57158. },
  57159. ":older_man_tone2:": {
  57160. "uc_base": "1f474-1f3fc",
  57161. "uc_output": "1f474-1f3fc",
  57162. "uc_match": "1f474-1f3fc",
  57163. "uc_greedy": "1f474-1f3fc",
  57164. "shortnames": [],
  57165. "category": "people"
  57166. },
  57167. ":older_man_tone3:": {
  57168. "uc_base": "1f474-1f3fd",
  57169. "uc_output": "1f474-1f3fd",
  57170. "uc_match": "1f474-1f3fd",
  57171. "uc_greedy": "1f474-1f3fd",
  57172. "shortnames": [],
  57173. "category": "people"
  57174. },
  57175. ":older_man_tone4:": {
  57176. "uc_base": "1f474-1f3fe",
  57177. "uc_output": "1f474-1f3fe",
  57178. "uc_match": "1f474-1f3fe",
  57179. "uc_greedy": "1f474-1f3fe",
  57180. "shortnames": [],
  57181. "category": "people"
  57182. },
  57183. ":older_man_tone5:": {
  57184. "uc_base": "1f474-1f3ff",
  57185. "uc_output": "1f474-1f3ff",
  57186. "uc_match": "1f474-1f3ff",
  57187. "uc_greedy": "1f474-1f3ff",
  57188. "shortnames": [],
  57189. "category": "people"
  57190. },
  57191. ":older_woman_tone1:": {
  57192. "uc_base": "1f475-1f3fb",
  57193. "uc_output": "1f475-1f3fb",
  57194. "uc_match": "1f475-1f3fb",
  57195. "uc_greedy": "1f475-1f3fb",
  57196. "shortnames": [":grandma_tone1:"],
  57197. "category": "people"
  57198. },
  57199. ":older_woman_tone2:": {
  57200. "uc_base": "1f475-1f3fc",
  57201. "uc_output": "1f475-1f3fc",
  57202. "uc_match": "1f475-1f3fc",
  57203. "uc_greedy": "1f475-1f3fc",
  57204. "shortnames": [":grandma_tone2:"],
  57205. "category": "people"
  57206. },
  57207. ":older_woman_tone3:": {
  57208. "uc_base": "1f475-1f3fd",
  57209. "uc_output": "1f475-1f3fd",
  57210. "uc_match": "1f475-1f3fd",
  57211. "uc_greedy": "1f475-1f3fd",
  57212. "shortnames": [":grandma_tone3:"],
  57213. "category": "people"
  57214. },
  57215. ":older_woman_tone4:": {
  57216. "uc_base": "1f475-1f3fe",
  57217. "uc_output": "1f475-1f3fe",
  57218. "uc_match": "1f475-1f3fe",
  57219. "uc_greedy": "1f475-1f3fe",
  57220. "shortnames": [":grandma_tone4:"],
  57221. "category": "people"
  57222. },
  57223. ":older_woman_tone5:": {
  57224. "uc_base": "1f475-1f3ff",
  57225. "uc_output": "1f475-1f3ff",
  57226. "uc_match": "1f475-1f3ff",
  57227. "uc_greedy": "1f475-1f3ff",
  57228. "shortnames": [":grandma_tone5:"],
  57229. "category": "people"
  57230. },
  57231. ":open_hands_tone1:": {
  57232. "uc_base": "1f450-1f3fb",
  57233. "uc_output": "1f450-1f3fb",
  57234. "uc_match": "1f450-1f3fb",
  57235. "uc_greedy": "1f450-1f3fb",
  57236. "shortnames": [],
  57237. "category": "people"
  57238. },
  57239. ":open_hands_tone2:": {
  57240. "uc_base": "1f450-1f3fc",
  57241. "uc_output": "1f450-1f3fc",
  57242. "uc_match": "1f450-1f3fc",
  57243. "uc_greedy": "1f450-1f3fc",
  57244. "shortnames": [],
  57245. "category": "people"
  57246. },
  57247. ":open_hands_tone3:": {
  57248. "uc_base": "1f450-1f3fd",
  57249. "uc_output": "1f450-1f3fd",
  57250. "uc_match": "1f450-1f3fd",
  57251. "uc_greedy": "1f450-1f3fd",
  57252. "shortnames": [],
  57253. "category": "people"
  57254. },
  57255. ":open_hands_tone4:": {
  57256. "uc_base": "1f450-1f3fe",
  57257. "uc_output": "1f450-1f3fe",
  57258. "uc_match": "1f450-1f3fe",
  57259. "uc_greedy": "1f450-1f3fe",
  57260. "shortnames": [],
  57261. "category": "people"
  57262. },
  57263. ":open_hands_tone5:": {
  57264. "uc_base": "1f450-1f3ff",
  57265. "uc_output": "1f450-1f3ff",
  57266. "uc_match": "1f450-1f3ff",
  57267. "uc_greedy": "1f450-1f3ff",
  57268. "shortnames": [],
  57269. "category": "people"
  57270. },
  57271. ":palms_up_together_tone1:": {
  57272. "uc_base": "1f932-1f3fb",
  57273. "uc_output": "1f932-1f3fb",
  57274. "uc_match": "1f932-1f3fb",
  57275. "uc_greedy": "1f932-1f3fb",
  57276. "shortnames": [":palms_up_together_light_skin_tone:"],
  57277. "category": "people"
  57278. },
  57279. ":palms_up_together_tone2:": {
  57280. "uc_base": "1f932-1f3fc",
  57281. "uc_output": "1f932-1f3fc",
  57282. "uc_match": "1f932-1f3fc",
  57283. "uc_greedy": "1f932-1f3fc",
  57284. "shortnames": [":palms_up_together_medium_light_skin_tone:"],
  57285. "category": "people"
  57286. },
  57287. ":palms_up_together_tone3:": {
  57288. "uc_base": "1f932-1f3fd",
  57289. "uc_output": "1f932-1f3fd",
  57290. "uc_match": "1f932-1f3fd",
  57291. "uc_greedy": "1f932-1f3fd",
  57292. "shortnames": [":palms_up_together_medium_skin_tone:"],
  57293. "category": "people"
  57294. },
  57295. ":palms_up_together_tone4:": {
  57296. "uc_base": "1f932-1f3fe",
  57297. "uc_output": "1f932-1f3fe",
  57298. "uc_match": "1f932-1f3fe",
  57299. "uc_greedy": "1f932-1f3fe",
  57300. "shortnames": [":palms_up_together_medium_dark_skin_tone:"],
  57301. "category": "people"
  57302. },
  57303. ":palms_up_together_tone5:": {
  57304. "uc_base": "1f932-1f3ff",
  57305. "uc_output": "1f932-1f3ff",
  57306. "uc_match": "1f932-1f3ff",
  57307. "uc_greedy": "1f932-1f3ff",
  57308. "shortnames": [":palms_up_together_dark_skin_tone:"],
  57309. "category": "people"
  57310. },
  57311. ":person_biking_tone1:": {
  57312. "uc_base": "1f6b4-1f3fb",
  57313. "uc_output": "1f6b4-1f3fb",
  57314. "uc_match": "1f6b4-1f3fb",
  57315. "uc_greedy": "1f6b4-1f3fb",
  57316. "shortnames": [":bicyclist_tone1:"],
  57317. "category": "activity"
  57318. },
  57319. ":person_biking_tone2:": {
  57320. "uc_base": "1f6b4-1f3fc",
  57321. "uc_output": "1f6b4-1f3fc",
  57322. "uc_match": "1f6b4-1f3fc",
  57323. "uc_greedy": "1f6b4-1f3fc",
  57324. "shortnames": [":bicyclist_tone2:"],
  57325. "category": "activity"
  57326. },
  57327. ":person_biking_tone3:": {
  57328. "uc_base": "1f6b4-1f3fd",
  57329. "uc_output": "1f6b4-1f3fd",
  57330. "uc_match": "1f6b4-1f3fd",
  57331. "uc_greedy": "1f6b4-1f3fd",
  57332. "shortnames": [":bicyclist_tone3:"],
  57333. "category": "activity"
  57334. },
  57335. ":person_biking_tone4:": {
  57336. "uc_base": "1f6b4-1f3fe",
  57337. "uc_output": "1f6b4-1f3fe",
  57338. "uc_match": "1f6b4-1f3fe",
  57339. "uc_greedy": "1f6b4-1f3fe",
  57340. "shortnames": [":bicyclist_tone4:"],
  57341. "category": "activity"
  57342. },
  57343. ":person_biking_tone5:": {
  57344. "uc_base": "1f6b4-1f3ff",
  57345. "uc_output": "1f6b4-1f3ff",
  57346. "uc_match": "1f6b4-1f3ff",
  57347. "uc_greedy": "1f6b4-1f3ff",
  57348. "shortnames": [":bicyclist_tone5:"],
  57349. "category": "activity"
  57350. },
  57351. ":person_bowing_tone1:": {
  57352. "uc_base": "1f647-1f3fb",
  57353. "uc_output": "1f647-1f3fb",
  57354. "uc_match": "1f647-1f3fb",
  57355. "uc_greedy": "1f647-1f3fb",
  57356. "shortnames": [":bow_tone1:"],
  57357. "category": "people"
  57358. },
  57359. ":person_bowing_tone2:": {
  57360. "uc_base": "1f647-1f3fc",
  57361. "uc_output": "1f647-1f3fc",
  57362. "uc_match": "1f647-1f3fc",
  57363. "uc_greedy": "1f647-1f3fc",
  57364. "shortnames": [":bow_tone2:"],
  57365. "category": "people"
  57366. },
  57367. ":person_bowing_tone3:": {
  57368. "uc_base": "1f647-1f3fd",
  57369. "uc_output": "1f647-1f3fd",
  57370. "uc_match": "1f647-1f3fd",
  57371. "uc_greedy": "1f647-1f3fd",
  57372. "shortnames": [":bow_tone3:"],
  57373. "category": "people"
  57374. },
  57375. ":person_bowing_tone4:": {
  57376. "uc_base": "1f647-1f3fe",
  57377. "uc_output": "1f647-1f3fe",
  57378. "uc_match": "1f647-1f3fe",
  57379. "uc_greedy": "1f647-1f3fe",
  57380. "shortnames": [":bow_tone4:"],
  57381. "category": "people"
  57382. },
  57383. ":person_bowing_tone5:": {
  57384. "uc_base": "1f647-1f3ff",
  57385. "uc_output": "1f647-1f3ff",
  57386. "uc_match": "1f647-1f3ff",
  57387. "uc_greedy": "1f647-1f3ff",
  57388. "shortnames": [":bow_tone5:"],
  57389. "category": "people"
  57390. },
  57391. ":person_climbing_tone1:": {
  57392. "uc_base": "1f9d7-1f3fb",
  57393. "uc_output": "1f9d7-1f3fb",
  57394. "uc_match": "1f9d7-1f3fb",
  57395. "uc_greedy": "1f9d7-1f3fb",
  57396. "shortnames": [":person_climbing_light_skin_tone:"],
  57397. "category": "activity"
  57398. },
  57399. ":person_climbing_tone2:": {
  57400. "uc_base": "1f9d7-1f3fc",
  57401. "uc_output": "1f9d7-1f3fc",
  57402. "uc_match": "1f9d7-1f3fc",
  57403. "uc_greedy": "1f9d7-1f3fc",
  57404. "shortnames": [":person_climbing_medium_light_skin_tone:"],
  57405. "category": "activity"
  57406. },
  57407. ":person_climbing_tone3:": {
  57408. "uc_base": "1f9d7-1f3fd",
  57409. "uc_output": "1f9d7-1f3fd",
  57410. "uc_match": "1f9d7-1f3fd",
  57411. "uc_greedy": "1f9d7-1f3fd",
  57412. "shortnames": [":person_climbing_medium_skin_tone:"],
  57413. "category": "activity"
  57414. },
  57415. ":person_climbing_tone4:": {
  57416. "uc_base": "1f9d7-1f3fe",
  57417. "uc_output": "1f9d7-1f3fe",
  57418. "uc_match": "1f9d7-1f3fe",
  57419. "uc_greedy": "1f9d7-1f3fe",
  57420. "shortnames": [":person_climbing_medium_dark_skin_tone:"],
  57421. "category": "activity"
  57422. },
  57423. ":person_climbing_tone5:": {
  57424. "uc_base": "1f9d7-1f3ff",
  57425. "uc_output": "1f9d7-1f3ff",
  57426. "uc_match": "1f9d7-1f3ff",
  57427. "uc_greedy": "1f9d7-1f3ff",
  57428. "shortnames": [":person_climbing_dark_skin_tone:"],
  57429. "category": "activity"
  57430. },
  57431. ":person_doing_cartwheel_tone1:": {
  57432. "uc_base": "1f938-1f3fb",
  57433. "uc_output": "1f938-1f3fb",
  57434. "uc_match": "1f938-1f3fb",
  57435. "uc_greedy": "1f938-1f3fb",
  57436. "shortnames": [":cartwheel_tone1:"],
  57437. "category": "activity"
  57438. },
  57439. ":person_doing_cartwheel_tone2:": {
  57440. "uc_base": "1f938-1f3fc",
  57441. "uc_output": "1f938-1f3fc",
  57442. "uc_match": "1f938-1f3fc",
  57443. "uc_greedy": "1f938-1f3fc",
  57444. "shortnames": [":cartwheel_tone2:"],
  57445. "category": "activity"
  57446. },
  57447. ":person_doing_cartwheel_tone3:": {
  57448. "uc_base": "1f938-1f3fd",
  57449. "uc_output": "1f938-1f3fd",
  57450. "uc_match": "1f938-1f3fd",
  57451. "uc_greedy": "1f938-1f3fd",
  57452. "shortnames": [":cartwheel_tone3:"],
  57453. "category": "activity"
  57454. },
  57455. ":person_doing_cartwheel_tone4:": {
  57456. "uc_base": "1f938-1f3fe",
  57457. "uc_output": "1f938-1f3fe",
  57458. "uc_match": "1f938-1f3fe",
  57459. "uc_greedy": "1f938-1f3fe",
  57460. "shortnames": [":cartwheel_tone4:"],
  57461. "category": "activity"
  57462. },
  57463. ":person_doing_cartwheel_tone5:": {
  57464. "uc_base": "1f938-1f3ff",
  57465. "uc_output": "1f938-1f3ff",
  57466. "uc_match": "1f938-1f3ff",
  57467. "uc_greedy": "1f938-1f3ff",
  57468. "shortnames": [":cartwheel_tone5:"],
  57469. "category": "activity"
  57470. },
  57471. ":person_facepalming_tone1:": {
  57472. "uc_base": "1f926-1f3fb",
  57473. "uc_output": "1f926-1f3fb",
  57474. "uc_match": "1f926-1f3fb",
  57475. "uc_greedy": "1f926-1f3fb",
  57476. "shortnames": [":face_palm_tone1:", ":facepalm_tone1:"],
  57477. "category": "people"
  57478. },
  57479. ":person_facepalming_tone2:": {
  57480. "uc_base": "1f926-1f3fc",
  57481. "uc_output": "1f926-1f3fc",
  57482. "uc_match": "1f926-1f3fc",
  57483. "uc_greedy": "1f926-1f3fc",
  57484. "shortnames": [":face_palm_tone2:", ":facepalm_tone2:"],
  57485. "category": "people"
  57486. },
  57487. ":person_facepalming_tone3:": {
  57488. "uc_base": "1f926-1f3fd",
  57489. "uc_output": "1f926-1f3fd",
  57490. "uc_match": "1f926-1f3fd",
  57491. "uc_greedy": "1f926-1f3fd",
  57492. "shortnames": [":face_palm_tone3:", ":facepalm_tone3:"],
  57493. "category": "people"
  57494. },
  57495. ":person_facepalming_tone4:": {
  57496. "uc_base": "1f926-1f3fe",
  57497. "uc_output": "1f926-1f3fe",
  57498. "uc_match": "1f926-1f3fe",
  57499. "uc_greedy": "1f926-1f3fe",
  57500. "shortnames": [":face_palm_tone4:", ":facepalm_tone4:"],
  57501. "category": "people"
  57502. },
  57503. ":person_facepalming_tone5:": {
  57504. "uc_base": "1f926-1f3ff",
  57505. "uc_output": "1f926-1f3ff",
  57506. "uc_match": "1f926-1f3ff",
  57507. "uc_greedy": "1f926-1f3ff",
  57508. "shortnames": [":face_palm_tone5:", ":facepalm_tone5:"],
  57509. "category": "people"
  57510. },
  57511. ":person_frowning_tone1:": {
  57512. "uc_base": "1f64d-1f3fb",
  57513. "uc_output": "1f64d-1f3fb",
  57514. "uc_match": "1f64d-1f3fb",
  57515. "uc_greedy": "1f64d-1f3fb",
  57516. "shortnames": [],
  57517. "category": "people"
  57518. },
  57519. ":person_frowning_tone2:": {
  57520. "uc_base": "1f64d-1f3fc",
  57521. "uc_output": "1f64d-1f3fc",
  57522. "uc_match": "1f64d-1f3fc",
  57523. "uc_greedy": "1f64d-1f3fc",
  57524. "shortnames": [],
  57525. "category": "people"
  57526. },
  57527. ":person_frowning_tone3:": {
  57528. "uc_base": "1f64d-1f3fd",
  57529. "uc_output": "1f64d-1f3fd",
  57530. "uc_match": "1f64d-1f3fd",
  57531. "uc_greedy": "1f64d-1f3fd",
  57532. "shortnames": [],
  57533. "category": "people"
  57534. },
  57535. ":person_frowning_tone4:": {
  57536. "uc_base": "1f64d-1f3fe",
  57537. "uc_output": "1f64d-1f3fe",
  57538. "uc_match": "1f64d-1f3fe",
  57539. "uc_greedy": "1f64d-1f3fe",
  57540. "shortnames": [],
  57541. "category": "people"
  57542. },
  57543. ":person_frowning_tone5:": {
  57544. "uc_base": "1f64d-1f3ff",
  57545. "uc_output": "1f64d-1f3ff",
  57546. "uc_match": "1f64d-1f3ff",
  57547. "uc_greedy": "1f64d-1f3ff",
  57548. "shortnames": [],
  57549. "category": "people"
  57550. },
  57551. ":person_gesturing_no_tone1:": {
  57552. "uc_base": "1f645-1f3fb",
  57553. "uc_output": "1f645-1f3fb",
  57554. "uc_match": "1f645-1f3fb",
  57555. "uc_greedy": "1f645-1f3fb",
  57556. "shortnames": [":no_good_tone1:"],
  57557. "category": "people"
  57558. },
  57559. ":person_gesturing_no_tone2:": {
  57560. "uc_base": "1f645-1f3fc",
  57561. "uc_output": "1f645-1f3fc",
  57562. "uc_match": "1f645-1f3fc",
  57563. "uc_greedy": "1f645-1f3fc",
  57564. "shortnames": [":no_good_tone2:"],
  57565. "category": "people"
  57566. },
  57567. ":person_gesturing_no_tone3:": {
  57568. "uc_base": "1f645-1f3fd",
  57569. "uc_output": "1f645-1f3fd",
  57570. "uc_match": "1f645-1f3fd",
  57571. "uc_greedy": "1f645-1f3fd",
  57572. "shortnames": [":no_good_tone3:"],
  57573. "category": "people"
  57574. },
  57575. ":person_gesturing_no_tone4:": {
  57576. "uc_base": "1f645-1f3fe",
  57577. "uc_output": "1f645-1f3fe",
  57578. "uc_match": "1f645-1f3fe",
  57579. "uc_greedy": "1f645-1f3fe",
  57580. "shortnames": [":no_good_tone4:"],
  57581. "category": "people"
  57582. },
  57583. ":person_gesturing_no_tone5:": {
  57584. "uc_base": "1f645-1f3ff",
  57585. "uc_output": "1f645-1f3ff",
  57586. "uc_match": "1f645-1f3ff",
  57587. "uc_greedy": "1f645-1f3ff",
  57588. "shortnames": [":no_good_tone5:"],
  57589. "category": "people"
  57590. },
  57591. ":person_gesturing_ok_tone1:": {
  57592. "uc_base": "1f646-1f3fb",
  57593. "uc_output": "1f646-1f3fb",
  57594. "uc_match": "1f646-1f3fb",
  57595. "uc_greedy": "1f646-1f3fb",
  57596. "shortnames": [":ok_woman_tone1:"],
  57597. "category": "people"
  57598. },
  57599. ":person_gesturing_ok_tone2:": {
  57600. "uc_base": "1f646-1f3fc",
  57601. "uc_output": "1f646-1f3fc",
  57602. "uc_match": "1f646-1f3fc",
  57603. "uc_greedy": "1f646-1f3fc",
  57604. "shortnames": [":ok_woman_tone2:"],
  57605. "category": "people"
  57606. },
  57607. ":person_gesturing_ok_tone3:": {
  57608. "uc_base": "1f646-1f3fd",
  57609. "uc_output": "1f646-1f3fd",
  57610. "uc_match": "1f646-1f3fd",
  57611. "uc_greedy": "1f646-1f3fd",
  57612. "shortnames": [":ok_woman_tone3:"],
  57613. "category": "people"
  57614. },
  57615. ":person_gesturing_ok_tone4:": {
  57616. "uc_base": "1f646-1f3fe",
  57617. "uc_output": "1f646-1f3fe",
  57618. "uc_match": "1f646-1f3fe",
  57619. "uc_greedy": "1f646-1f3fe",
  57620. "shortnames": [":ok_woman_tone4:"],
  57621. "category": "people"
  57622. },
  57623. ":person_gesturing_ok_tone5:": {
  57624. "uc_base": "1f646-1f3ff",
  57625. "uc_output": "1f646-1f3ff",
  57626. "uc_match": "1f646-1f3ff",
  57627. "uc_greedy": "1f646-1f3ff",
  57628. "shortnames": [":ok_woman_tone5:"],
  57629. "category": "people"
  57630. },
  57631. ":person_getting_haircut_tone1:": {
  57632. "uc_base": "1f487-1f3fb",
  57633. "uc_output": "1f487-1f3fb",
  57634. "uc_match": "1f487-1f3fb",
  57635. "uc_greedy": "1f487-1f3fb",
  57636. "shortnames": [":haircut_tone1:"],
  57637. "category": "people"
  57638. },
  57639. ":person_getting_haircut_tone2:": {
  57640. "uc_base": "1f487-1f3fc",
  57641. "uc_output": "1f487-1f3fc",
  57642. "uc_match": "1f487-1f3fc",
  57643. "uc_greedy": "1f487-1f3fc",
  57644. "shortnames": [":haircut_tone2:"],
  57645. "category": "people"
  57646. },
  57647. ":person_getting_haircut_tone3:": {
  57648. "uc_base": "1f487-1f3fd",
  57649. "uc_output": "1f487-1f3fd",
  57650. "uc_match": "1f487-1f3fd",
  57651. "uc_greedy": "1f487-1f3fd",
  57652. "shortnames": [":haircut_tone3:"],
  57653. "category": "people"
  57654. },
  57655. ":person_getting_haircut_tone4:": {
  57656. "uc_base": "1f487-1f3fe",
  57657. "uc_output": "1f487-1f3fe",
  57658. "uc_match": "1f487-1f3fe",
  57659. "uc_greedy": "1f487-1f3fe",
  57660. "shortnames": [":haircut_tone4:"],
  57661. "category": "people"
  57662. },
  57663. ":person_getting_haircut_tone5:": {
  57664. "uc_base": "1f487-1f3ff",
  57665. "uc_output": "1f487-1f3ff",
  57666. "uc_match": "1f487-1f3ff",
  57667. "uc_greedy": "1f487-1f3ff",
  57668. "shortnames": [":haircut_tone5:"],
  57669. "category": "people"
  57670. },
  57671. ":person_getting_massage_tone1:": {
  57672. "uc_base": "1f486-1f3fb",
  57673. "uc_output": "1f486-1f3fb",
  57674. "uc_match": "1f486-1f3fb",
  57675. "uc_greedy": "1f486-1f3fb",
  57676. "shortnames": [":massage_tone1:"],
  57677. "category": "people"
  57678. },
  57679. ":person_getting_massage_tone2:": {
  57680. "uc_base": "1f486-1f3fc",
  57681. "uc_output": "1f486-1f3fc",
  57682. "uc_match": "1f486-1f3fc",
  57683. "uc_greedy": "1f486-1f3fc",
  57684. "shortnames": [":massage_tone2:"],
  57685. "category": "people"
  57686. },
  57687. ":person_getting_massage_tone3:": {
  57688. "uc_base": "1f486-1f3fd",
  57689. "uc_output": "1f486-1f3fd",
  57690. "uc_match": "1f486-1f3fd",
  57691. "uc_greedy": "1f486-1f3fd",
  57692. "shortnames": [":massage_tone3:"],
  57693. "category": "people"
  57694. },
  57695. ":person_getting_massage_tone4:": {
  57696. "uc_base": "1f486-1f3fe",
  57697. "uc_output": "1f486-1f3fe",
  57698. "uc_match": "1f486-1f3fe",
  57699. "uc_greedy": "1f486-1f3fe",
  57700. "shortnames": [":massage_tone4:"],
  57701. "category": "people"
  57702. },
  57703. ":person_getting_massage_tone5:": {
  57704. "uc_base": "1f486-1f3ff",
  57705. "uc_output": "1f486-1f3ff",
  57706. "uc_match": "1f486-1f3ff",
  57707. "uc_greedy": "1f486-1f3ff",
  57708. "shortnames": [":massage_tone5:"],
  57709. "category": "people"
  57710. },
  57711. ":person_golfing_tone1:": {
  57712. "uc_base": "1f3cc-1f3fb",
  57713. "uc_output": "1f3cc-1f3fb",
  57714. "uc_match": "1f3cc-fe0f-1f3fb",
  57715. "uc_greedy": "1f3cc-fe0f-1f3fb",
  57716. "shortnames": [":person_golfing_light_skin_tone:"],
  57717. "category": "activity"
  57718. },
  57719. ":person_golfing_tone2:": {
  57720. "uc_base": "1f3cc-1f3fc",
  57721. "uc_output": "1f3cc-1f3fc",
  57722. "uc_match": "1f3cc-fe0f-1f3fc",
  57723. "uc_greedy": "1f3cc-fe0f-1f3fc",
  57724. "shortnames": [":person_golfing_medium_light_skin_tone:"],
  57725. "category": "activity"
  57726. },
  57727. ":person_golfing_tone3:": {
  57728. "uc_base": "1f3cc-1f3fd",
  57729. "uc_output": "1f3cc-1f3fd",
  57730. "uc_match": "1f3cc-fe0f-1f3fd",
  57731. "uc_greedy": "1f3cc-fe0f-1f3fd",
  57732. "shortnames": [":person_golfing_medium_skin_tone:"],
  57733. "category": "activity"
  57734. },
  57735. ":person_golfing_tone4:": {
  57736. "uc_base": "1f3cc-1f3fe",
  57737. "uc_output": "1f3cc-1f3fe",
  57738. "uc_match": "1f3cc-fe0f-1f3fe",
  57739. "uc_greedy": "1f3cc-fe0f-1f3fe",
  57740. "shortnames": [":person_golfing_medium_dark_skin_tone:"],
  57741. "category": "activity"
  57742. },
  57743. ":person_golfing_tone5:": {
  57744. "uc_base": "1f3cc-1f3ff",
  57745. "uc_output": "1f3cc-1f3ff",
  57746. "uc_match": "1f3cc-fe0f-1f3ff",
  57747. "uc_greedy": "1f3cc-fe0f-1f3ff",
  57748. "shortnames": [":person_golfing_dark_skin_tone:"],
  57749. "category": "activity"
  57750. },
  57751. ":person_in_bed_tone1:": {
  57752. "uc_base": "1f6cc-1f3fb",
  57753. "uc_output": "1f6cc-1f3fb",
  57754. "uc_match": "1f6cc-1f3fb",
  57755. "uc_greedy": "1f6cc-1f3fb",
  57756. "shortnames": [":person_in_bed_light_skin_tone:"],
  57757. "category": "objects"
  57758. },
  57759. ":person_in_bed_tone2:": {
  57760. "uc_base": "1f6cc-1f3fc",
  57761. "uc_output": "1f6cc-1f3fc",
  57762. "uc_match": "1f6cc-1f3fc",
  57763. "uc_greedy": "1f6cc-1f3fc",
  57764. "shortnames": [":person_in_bed_medium_light_skin_tone:"],
  57765. "category": "objects"
  57766. },
  57767. ":person_in_bed_tone3:": {
  57768. "uc_base": "1f6cc-1f3fd",
  57769. "uc_output": "1f6cc-1f3fd",
  57770. "uc_match": "1f6cc-1f3fd",
  57771. "uc_greedy": "1f6cc-1f3fd",
  57772. "shortnames": [":person_in_bed_medium_skin_tone:"],
  57773. "category": "objects"
  57774. },
  57775. ":person_in_bed_tone4:": {
  57776. "uc_base": "1f6cc-1f3fe",
  57777. "uc_output": "1f6cc-1f3fe",
  57778. "uc_match": "1f6cc-1f3fe",
  57779. "uc_greedy": "1f6cc-1f3fe",
  57780. "shortnames": [":person_in_bed_medium_dark_skin_tone:"],
  57781. "category": "objects"
  57782. },
  57783. ":person_in_bed_tone5:": {
  57784. "uc_base": "1f6cc-1f3ff",
  57785. "uc_output": "1f6cc-1f3ff",
  57786. "uc_match": "1f6cc-1f3ff",
  57787. "uc_greedy": "1f6cc-1f3ff",
  57788. "shortnames": [":person_in_bed_dark_skin_tone:"],
  57789. "category": "objects"
  57790. },
  57791. ":person_in_lotus_position_tone1:": {
  57792. "uc_base": "1f9d8-1f3fb",
  57793. "uc_output": "1f9d8-1f3fb",
  57794. "uc_match": "1f9d8-1f3fb",
  57795. "uc_greedy": "1f9d8-1f3fb",
  57796. "shortnames": [":person_in_lotus_position_light_skin_tone:"],
  57797. "category": "activity"
  57798. },
  57799. ":person_in_lotus_position_tone2:": {
  57800. "uc_base": "1f9d8-1f3fc",
  57801. "uc_output": "1f9d8-1f3fc",
  57802. "uc_match": "1f9d8-1f3fc",
  57803. "uc_greedy": "1f9d8-1f3fc",
  57804. "shortnames": [":person_in_lotus_position_medium_light_skin_tone:"],
  57805. "category": "activity"
  57806. },
  57807. ":person_in_lotus_position_tone3:": {
  57808. "uc_base": "1f9d8-1f3fd",
  57809. "uc_output": "1f9d8-1f3fd",
  57810. "uc_match": "1f9d8-1f3fd",
  57811. "uc_greedy": "1f9d8-1f3fd",
  57812. "shortnames": [":person_in_lotus_position_medium_skin_tone:"],
  57813. "category": "activity"
  57814. },
  57815. ":person_in_lotus_position_tone4:": {
  57816. "uc_base": "1f9d8-1f3fe",
  57817. "uc_output": "1f9d8-1f3fe",
  57818. "uc_match": "1f9d8-1f3fe",
  57819. "uc_greedy": "1f9d8-1f3fe",
  57820. "shortnames": [":person_in_lotus_position_medium_dark_skin_tone:"],
  57821. "category": "activity"
  57822. },
  57823. ":person_in_lotus_position_tone5:": {
  57824. "uc_base": "1f9d8-1f3ff",
  57825. "uc_output": "1f9d8-1f3ff",
  57826. "uc_match": "1f9d8-1f3ff",
  57827. "uc_greedy": "1f9d8-1f3ff",
  57828. "shortnames": [":person_in_lotus_position_dark_skin_tone:"],
  57829. "category": "activity"
  57830. },
  57831. ":person_in_steamy_room_tone1:": {
  57832. "uc_base": "1f9d6-1f3fb",
  57833. "uc_output": "1f9d6-1f3fb",
  57834. "uc_match": "1f9d6-1f3fb",
  57835. "uc_greedy": "1f9d6-1f3fb",
  57836. "shortnames": [":person_in_steamy_room_light_skin_tone:"],
  57837. "category": "people"
  57838. },
  57839. ":person_in_steamy_room_tone2:": {
  57840. "uc_base": "1f9d6-1f3fc",
  57841. "uc_output": "1f9d6-1f3fc",
  57842. "uc_match": "1f9d6-1f3fc",
  57843. "uc_greedy": "1f9d6-1f3fc",
  57844. "shortnames": [":person_in_steamy_room_medium_light_skin_tone:"],
  57845. "category": "people"
  57846. },
  57847. ":person_in_steamy_room_tone3:": {
  57848. "uc_base": "1f9d6-1f3fd",
  57849. "uc_output": "1f9d6-1f3fd",
  57850. "uc_match": "1f9d6-1f3fd",
  57851. "uc_greedy": "1f9d6-1f3fd",
  57852. "shortnames": [":person_in_steamy_room_medium_skin_tone:"],
  57853. "category": "people"
  57854. },
  57855. ":person_in_steamy_room_tone4:": {
  57856. "uc_base": "1f9d6-1f3fe",
  57857. "uc_output": "1f9d6-1f3fe",
  57858. "uc_match": "1f9d6-1f3fe",
  57859. "uc_greedy": "1f9d6-1f3fe",
  57860. "shortnames": [":person_in_steamy_room_medium_dark_skin_tone:"],
  57861. "category": "people"
  57862. },
  57863. ":person_in_steamy_room_tone5:": {
  57864. "uc_base": "1f9d6-1f3ff",
  57865. "uc_output": "1f9d6-1f3ff",
  57866. "uc_match": "1f9d6-1f3ff",
  57867. "uc_greedy": "1f9d6-1f3ff",
  57868. "shortnames": [":person_in_steamy_room_dark_skin_tone:"],
  57869. "category": "people"
  57870. },
  57871. ":person_juggling_tone1:": {
  57872. "uc_base": "1f939-1f3fb",
  57873. "uc_output": "1f939-1f3fb",
  57874. "uc_match": "1f939-1f3fb",
  57875. "uc_greedy": "1f939-1f3fb",
  57876. "shortnames": [":juggling_tone1:", ":juggler_tone1:"],
  57877. "category": "activity"
  57878. },
  57879. ":person_juggling_tone2:": {
  57880. "uc_base": "1f939-1f3fc",
  57881. "uc_output": "1f939-1f3fc",
  57882. "uc_match": "1f939-1f3fc",
  57883. "uc_greedy": "1f939-1f3fc",
  57884. "shortnames": [":juggling_tone2:", ":juggler_tone2:"],
  57885. "category": "activity"
  57886. },
  57887. ":person_juggling_tone3:": {
  57888. "uc_base": "1f939-1f3fd",
  57889. "uc_output": "1f939-1f3fd",
  57890. "uc_match": "1f939-1f3fd",
  57891. "uc_greedy": "1f939-1f3fd",
  57892. "shortnames": [":juggling_tone3:", ":juggler_tone3:"],
  57893. "category": "activity"
  57894. },
  57895. ":person_juggling_tone4:": {
  57896. "uc_base": "1f939-1f3fe",
  57897. "uc_output": "1f939-1f3fe",
  57898. "uc_match": "1f939-1f3fe",
  57899. "uc_greedy": "1f939-1f3fe",
  57900. "shortnames": [":juggling_tone4:", ":juggler_tone4:"],
  57901. "category": "activity"
  57902. },
  57903. ":person_juggling_tone5:": {
  57904. "uc_base": "1f939-1f3ff",
  57905. "uc_output": "1f939-1f3ff",
  57906. "uc_match": "1f939-1f3ff",
  57907. "uc_greedy": "1f939-1f3ff",
  57908. "shortnames": [":juggling_tone5:", ":juggler_tone5:"],
  57909. "category": "activity"
  57910. },
  57911. ":person_lifting_weights_tone1:": {
  57912. "uc_base": "1f3cb-1f3fb",
  57913. "uc_output": "1f3cb-1f3fb",
  57914. "uc_match": "1f3cb-fe0f-1f3fb",
  57915. "uc_greedy": "1f3cb-fe0f-1f3fb",
  57916. "shortnames": [":lifter_tone1:", ":weight_lifter_tone1:"],
  57917. "category": "activity"
  57918. },
  57919. ":person_lifting_weights_tone2:": {
  57920. "uc_base": "1f3cb-1f3fc",
  57921. "uc_output": "1f3cb-1f3fc",
  57922. "uc_match": "1f3cb-fe0f-1f3fc",
  57923. "uc_greedy": "1f3cb-fe0f-1f3fc",
  57924. "shortnames": [":lifter_tone2:", ":weight_lifter_tone2:"],
  57925. "category": "activity"
  57926. },
  57927. ":person_lifting_weights_tone3:": {
  57928. "uc_base": "1f3cb-1f3fd",
  57929. "uc_output": "1f3cb-1f3fd",
  57930. "uc_match": "1f3cb-fe0f-1f3fd",
  57931. "uc_greedy": "1f3cb-fe0f-1f3fd",
  57932. "shortnames": [":lifter_tone3:", ":weight_lifter_tone3:"],
  57933. "category": "activity"
  57934. },
  57935. ":person_lifting_weights_tone4:": {
  57936. "uc_base": "1f3cb-1f3fe",
  57937. "uc_output": "1f3cb-1f3fe",
  57938. "uc_match": "1f3cb-fe0f-1f3fe",
  57939. "uc_greedy": "1f3cb-fe0f-1f3fe",
  57940. "shortnames": [":lifter_tone4:", ":weight_lifter_tone4:"],
  57941. "category": "activity"
  57942. },
  57943. ":person_lifting_weights_tone5:": {
  57944. "uc_base": "1f3cb-1f3ff",
  57945. "uc_output": "1f3cb-1f3ff",
  57946. "uc_match": "1f3cb-fe0f-1f3ff",
  57947. "uc_greedy": "1f3cb-fe0f-1f3ff",
  57948. "shortnames": [":lifter_tone5:", ":weight_lifter_tone5:"],
  57949. "category": "activity"
  57950. },
  57951. ":person_mountain_biking_tone1:": {
  57952. "uc_base": "1f6b5-1f3fb",
  57953. "uc_output": "1f6b5-1f3fb",
  57954. "uc_match": "1f6b5-1f3fb",
  57955. "uc_greedy": "1f6b5-1f3fb",
  57956. "shortnames": [":mountain_bicyclist_tone1:"],
  57957. "category": "activity"
  57958. },
  57959. ":person_mountain_biking_tone2:": {
  57960. "uc_base": "1f6b5-1f3fc",
  57961. "uc_output": "1f6b5-1f3fc",
  57962. "uc_match": "1f6b5-1f3fc",
  57963. "uc_greedy": "1f6b5-1f3fc",
  57964. "shortnames": [":mountain_bicyclist_tone2:"],
  57965. "category": "activity"
  57966. },
  57967. ":person_mountain_biking_tone3:": {
  57968. "uc_base": "1f6b5-1f3fd",
  57969. "uc_output": "1f6b5-1f3fd",
  57970. "uc_match": "1f6b5-1f3fd",
  57971. "uc_greedy": "1f6b5-1f3fd",
  57972. "shortnames": [":mountain_bicyclist_tone3:"],
  57973. "category": "activity"
  57974. },
  57975. ":person_mountain_biking_tone4:": {
  57976. "uc_base": "1f6b5-1f3fe",
  57977. "uc_output": "1f6b5-1f3fe",
  57978. "uc_match": "1f6b5-1f3fe",
  57979. "uc_greedy": "1f6b5-1f3fe",
  57980. "shortnames": [":mountain_bicyclist_tone4:"],
  57981. "category": "activity"
  57982. },
  57983. ":person_mountain_biking_tone5:": {
  57984. "uc_base": "1f6b5-1f3ff",
  57985. "uc_output": "1f6b5-1f3ff",
  57986. "uc_match": "1f6b5-1f3ff",
  57987. "uc_greedy": "1f6b5-1f3ff",
  57988. "shortnames": [":mountain_bicyclist_tone5:"],
  57989. "category": "activity"
  57990. },
  57991. ":person_playing_handball_tone1:": {
  57992. "uc_base": "1f93e-1f3fb",
  57993. "uc_output": "1f93e-1f3fb",
  57994. "uc_match": "1f93e-1f3fb",
  57995. "uc_greedy": "1f93e-1f3fb",
  57996. "shortnames": [":handball_tone1:"],
  57997. "category": "activity"
  57998. },
  57999. ":person_playing_handball_tone2:": {
  58000. "uc_base": "1f93e-1f3fc",
  58001. "uc_output": "1f93e-1f3fc",
  58002. "uc_match": "1f93e-1f3fc",
  58003. "uc_greedy": "1f93e-1f3fc",
  58004. "shortnames": [":handball_tone2:"],
  58005. "category": "activity"
  58006. },
  58007. ":person_playing_handball_tone3:": {
  58008. "uc_base": "1f93e-1f3fd",
  58009. "uc_output": "1f93e-1f3fd",
  58010. "uc_match": "1f93e-1f3fd",
  58011. "uc_greedy": "1f93e-1f3fd",
  58012. "shortnames": [":handball_tone3:"],
  58013. "category": "activity"
  58014. },
  58015. ":person_playing_handball_tone4:": {
  58016. "uc_base": "1f93e-1f3fe",
  58017. "uc_output": "1f93e-1f3fe",
  58018. "uc_match": "1f93e-1f3fe",
  58019. "uc_greedy": "1f93e-1f3fe",
  58020. "shortnames": [":handball_tone4:"],
  58021. "category": "activity"
  58022. },
  58023. ":person_playing_handball_tone5:": {
  58024. "uc_base": "1f93e-1f3ff",
  58025. "uc_output": "1f93e-1f3ff",
  58026. "uc_match": "1f93e-1f3ff",
  58027. "uc_greedy": "1f93e-1f3ff",
  58028. "shortnames": [":handball_tone5:"],
  58029. "category": "activity"
  58030. },
  58031. ":person_playing_water_polo_tone1:": {
  58032. "uc_base": "1f93d-1f3fb",
  58033. "uc_output": "1f93d-1f3fb",
  58034. "uc_match": "1f93d-1f3fb",
  58035. "uc_greedy": "1f93d-1f3fb",
  58036. "shortnames": [":water_polo_tone1:"],
  58037. "category": "activity"
  58038. },
  58039. ":person_playing_water_polo_tone2:": {
  58040. "uc_base": "1f93d-1f3fc",
  58041. "uc_output": "1f93d-1f3fc",
  58042. "uc_match": "1f93d-1f3fc",
  58043. "uc_greedy": "1f93d-1f3fc",
  58044. "shortnames": [":water_polo_tone2:"],
  58045. "category": "activity"
  58046. },
  58047. ":person_playing_water_polo_tone3:": {
  58048. "uc_base": "1f93d-1f3fd",
  58049. "uc_output": "1f93d-1f3fd",
  58050. "uc_match": "1f93d-1f3fd",
  58051. "uc_greedy": "1f93d-1f3fd",
  58052. "shortnames": [":water_polo_tone3:"],
  58053. "category": "activity"
  58054. },
  58055. ":person_playing_water_polo_tone4:": {
  58056. "uc_base": "1f93d-1f3fe",
  58057. "uc_output": "1f93d-1f3fe",
  58058. "uc_match": "1f93d-1f3fe",
  58059. "uc_greedy": "1f93d-1f3fe",
  58060. "shortnames": [":water_polo_tone4:"],
  58061. "category": "activity"
  58062. },
  58063. ":person_playing_water_polo_tone5:": {
  58064. "uc_base": "1f93d-1f3ff",
  58065. "uc_output": "1f93d-1f3ff",
  58066. "uc_match": "1f93d-1f3ff",
  58067. "uc_greedy": "1f93d-1f3ff",
  58068. "shortnames": [":water_polo_tone5:"],
  58069. "category": "activity"
  58070. },
  58071. ":person_pouting_tone1:": {
  58072. "uc_base": "1f64e-1f3fb",
  58073. "uc_output": "1f64e-1f3fb",
  58074. "uc_match": "1f64e-1f3fb",
  58075. "uc_greedy": "1f64e-1f3fb",
  58076. "shortnames": [":person_with_pouting_face_tone1:"],
  58077. "category": "people"
  58078. },
  58079. ":person_pouting_tone2:": {
  58080. "uc_base": "1f64e-1f3fc",
  58081. "uc_output": "1f64e-1f3fc",
  58082. "uc_match": "1f64e-1f3fc",
  58083. "uc_greedy": "1f64e-1f3fc",
  58084. "shortnames": [":person_with_pouting_face_tone2:"],
  58085. "category": "people"
  58086. },
  58087. ":person_pouting_tone3:": {
  58088. "uc_base": "1f64e-1f3fd",
  58089. "uc_output": "1f64e-1f3fd",
  58090. "uc_match": "1f64e-1f3fd",
  58091. "uc_greedy": "1f64e-1f3fd",
  58092. "shortnames": [":person_with_pouting_face_tone3:"],
  58093. "category": "people"
  58094. },
  58095. ":person_pouting_tone4:": {
  58096. "uc_base": "1f64e-1f3fe",
  58097. "uc_output": "1f64e-1f3fe",
  58098. "uc_match": "1f64e-1f3fe",
  58099. "uc_greedy": "1f64e-1f3fe",
  58100. "shortnames": [":person_with_pouting_face_tone4:"],
  58101. "category": "people"
  58102. },
  58103. ":person_pouting_tone5:": {
  58104. "uc_base": "1f64e-1f3ff",
  58105. "uc_output": "1f64e-1f3ff",
  58106. "uc_match": "1f64e-1f3ff",
  58107. "uc_greedy": "1f64e-1f3ff",
  58108. "shortnames": [":person_with_pouting_face_tone5:"],
  58109. "category": "people"
  58110. },
  58111. ":person_raising_hand_tone1:": {
  58112. "uc_base": "1f64b-1f3fb",
  58113. "uc_output": "1f64b-1f3fb",
  58114. "uc_match": "1f64b-1f3fb",
  58115. "uc_greedy": "1f64b-1f3fb",
  58116. "shortnames": [":raising_hand_tone1:"],
  58117. "category": "people"
  58118. },
  58119. ":person_raising_hand_tone2:": {
  58120. "uc_base": "1f64b-1f3fc",
  58121. "uc_output": "1f64b-1f3fc",
  58122. "uc_match": "1f64b-1f3fc",
  58123. "uc_greedy": "1f64b-1f3fc",
  58124. "shortnames": [":raising_hand_tone2:"],
  58125. "category": "people"
  58126. },
  58127. ":person_raising_hand_tone3:": {
  58128. "uc_base": "1f64b-1f3fd",
  58129. "uc_output": "1f64b-1f3fd",
  58130. "uc_match": "1f64b-1f3fd",
  58131. "uc_greedy": "1f64b-1f3fd",
  58132. "shortnames": [":raising_hand_tone3:"],
  58133. "category": "people"
  58134. },
  58135. ":person_raising_hand_tone4:": {
  58136. "uc_base": "1f64b-1f3fe",
  58137. "uc_output": "1f64b-1f3fe",
  58138. "uc_match": "1f64b-1f3fe",
  58139. "uc_greedy": "1f64b-1f3fe",
  58140. "shortnames": [":raising_hand_tone4:"],
  58141. "category": "people"
  58142. },
  58143. ":person_raising_hand_tone5:": {
  58144. "uc_base": "1f64b-1f3ff",
  58145. "uc_output": "1f64b-1f3ff",
  58146. "uc_match": "1f64b-1f3ff",
  58147. "uc_greedy": "1f64b-1f3ff",
  58148. "shortnames": [":raising_hand_tone5:"],
  58149. "category": "people"
  58150. },
  58151. ":person_rowing_boat_tone1:": {
  58152. "uc_base": "1f6a3-1f3fb",
  58153. "uc_output": "1f6a3-1f3fb",
  58154. "uc_match": "1f6a3-1f3fb",
  58155. "uc_greedy": "1f6a3-1f3fb",
  58156. "shortnames": [":rowboat_tone1:"],
  58157. "category": "activity"
  58158. },
  58159. ":person_rowing_boat_tone2:": {
  58160. "uc_base": "1f6a3-1f3fc",
  58161. "uc_output": "1f6a3-1f3fc",
  58162. "uc_match": "1f6a3-1f3fc",
  58163. "uc_greedy": "1f6a3-1f3fc",
  58164. "shortnames": [":rowboat_tone2:"],
  58165. "category": "activity"
  58166. },
  58167. ":person_rowing_boat_tone3:": {
  58168. "uc_base": "1f6a3-1f3fd",
  58169. "uc_output": "1f6a3-1f3fd",
  58170. "uc_match": "1f6a3-1f3fd",
  58171. "uc_greedy": "1f6a3-1f3fd",
  58172. "shortnames": [":rowboat_tone3:"],
  58173. "category": "activity"
  58174. },
  58175. ":person_rowing_boat_tone4:": {
  58176. "uc_base": "1f6a3-1f3fe",
  58177. "uc_output": "1f6a3-1f3fe",
  58178. "uc_match": "1f6a3-1f3fe",
  58179. "uc_greedy": "1f6a3-1f3fe",
  58180. "shortnames": [":rowboat_tone4:"],
  58181. "category": "activity"
  58182. },
  58183. ":person_rowing_boat_tone5:": {
  58184. "uc_base": "1f6a3-1f3ff",
  58185. "uc_output": "1f6a3-1f3ff",
  58186. "uc_match": "1f6a3-1f3ff",
  58187. "uc_greedy": "1f6a3-1f3ff",
  58188. "shortnames": [":rowboat_tone5:"],
  58189. "category": "activity"
  58190. },
  58191. ":person_running_tone1:": {
  58192. "uc_base": "1f3c3-1f3fb",
  58193. "uc_output": "1f3c3-1f3fb",
  58194. "uc_match": "1f3c3-1f3fb",
  58195. "uc_greedy": "1f3c3-1f3fb",
  58196. "shortnames": [":runner_tone1:"],
  58197. "category": "people"
  58198. },
  58199. ":person_running_tone2:": {
  58200. "uc_base": "1f3c3-1f3fc",
  58201. "uc_output": "1f3c3-1f3fc",
  58202. "uc_match": "1f3c3-1f3fc",
  58203. "uc_greedy": "1f3c3-1f3fc",
  58204. "shortnames": [":runner_tone2:"],
  58205. "category": "people"
  58206. },
  58207. ":person_running_tone3:": {
  58208. "uc_base": "1f3c3-1f3fd",
  58209. "uc_output": "1f3c3-1f3fd",
  58210. "uc_match": "1f3c3-1f3fd",
  58211. "uc_greedy": "1f3c3-1f3fd",
  58212. "shortnames": [":runner_tone3:"],
  58213. "category": "people"
  58214. },
  58215. ":person_running_tone4:": {
  58216. "uc_base": "1f3c3-1f3fe",
  58217. "uc_output": "1f3c3-1f3fe",
  58218. "uc_match": "1f3c3-1f3fe",
  58219. "uc_greedy": "1f3c3-1f3fe",
  58220. "shortnames": [":runner_tone4:"],
  58221. "category": "people"
  58222. },
  58223. ":person_running_tone5:": {
  58224. "uc_base": "1f3c3-1f3ff",
  58225. "uc_output": "1f3c3-1f3ff",
  58226. "uc_match": "1f3c3-1f3ff",
  58227. "uc_greedy": "1f3c3-1f3ff",
  58228. "shortnames": [":runner_tone5:"],
  58229. "category": "people"
  58230. },
  58231. ":person_shrugging_tone1:": {
  58232. "uc_base": "1f937-1f3fb",
  58233. "uc_output": "1f937-1f3fb",
  58234. "uc_match": "1f937-1f3fb",
  58235. "uc_greedy": "1f937-1f3fb",
  58236. "shortnames": [":shrug_tone1:"],
  58237. "category": "people"
  58238. },
  58239. ":person_shrugging_tone2:": {
  58240. "uc_base": "1f937-1f3fc",
  58241. "uc_output": "1f937-1f3fc",
  58242. "uc_match": "1f937-1f3fc",
  58243. "uc_greedy": "1f937-1f3fc",
  58244. "shortnames": [":shrug_tone2:"],
  58245. "category": "people"
  58246. },
  58247. ":person_shrugging_tone3:": {
  58248. "uc_base": "1f937-1f3fd",
  58249. "uc_output": "1f937-1f3fd",
  58250. "uc_match": "1f937-1f3fd",
  58251. "uc_greedy": "1f937-1f3fd",
  58252. "shortnames": [":shrug_tone3:"],
  58253. "category": "people"
  58254. },
  58255. ":person_shrugging_tone4:": {
  58256. "uc_base": "1f937-1f3fe",
  58257. "uc_output": "1f937-1f3fe",
  58258. "uc_match": "1f937-1f3fe",
  58259. "uc_greedy": "1f937-1f3fe",
  58260. "shortnames": [":shrug_tone4:"],
  58261. "category": "people"
  58262. },
  58263. ":person_shrugging_tone5:": {
  58264. "uc_base": "1f937-1f3ff",
  58265. "uc_output": "1f937-1f3ff",
  58266. "uc_match": "1f937-1f3ff",
  58267. "uc_greedy": "1f937-1f3ff",
  58268. "shortnames": [":shrug_tone5:"],
  58269. "category": "people"
  58270. },
  58271. ":person_surfing_tone1:": {
  58272. "uc_base": "1f3c4-1f3fb",
  58273. "uc_output": "1f3c4-1f3fb",
  58274. "uc_match": "1f3c4-1f3fb",
  58275. "uc_greedy": "1f3c4-1f3fb",
  58276. "shortnames": [":surfer_tone1:"],
  58277. "category": "activity"
  58278. },
  58279. ":person_surfing_tone2:": {
  58280. "uc_base": "1f3c4-1f3fc",
  58281. "uc_output": "1f3c4-1f3fc",
  58282. "uc_match": "1f3c4-1f3fc",
  58283. "uc_greedy": "1f3c4-1f3fc",
  58284. "shortnames": [":surfer_tone2:"],
  58285. "category": "activity"
  58286. },
  58287. ":person_surfing_tone3:": {
  58288. "uc_base": "1f3c4-1f3fd",
  58289. "uc_output": "1f3c4-1f3fd",
  58290. "uc_match": "1f3c4-1f3fd",
  58291. "uc_greedy": "1f3c4-1f3fd",
  58292. "shortnames": [":surfer_tone3:"],
  58293. "category": "activity"
  58294. },
  58295. ":person_surfing_tone4:": {
  58296. "uc_base": "1f3c4-1f3fe",
  58297. "uc_output": "1f3c4-1f3fe",
  58298. "uc_match": "1f3c4-1f3fe",
  58299. "uc_greedy": "1f3c4-1f3fe",
  58300. "shortnames": [":surfer_tone4:"],
  58301. "category": "activity"
  58302. },
  58303. ":person_surfing_tone5:": {
  58304. "uc_base": "1f3c4-1f3ff",
  58305. "uc_output": "1f3c4-1f3ff",
  58306. "uc_match": "1f3c4-1f3ff",
  58307. "uc_greedy": "1f3c4-1f3ff",
  58308. "shortnames": [":surfer_tone5:"],
  58309. "category": "activity"
  58310. },
  58311. ":person_swimming_tone1:": {
  58312. "uc_base": "1f3ca-1f3fb",
  58313. "uc_output": "1f3ca-1f3fb",
  58314. "uc_match": "1f3ca-1f3fb",
  58315. "uc_greedy": "1f3ca-1f3fb",
  58316. "shortnames": [":swimmer_tone1:"],
  58317. "category": "activity"
  58318. },
  58319. ":person_swimming_tone2:": {
  58320. "uc_base": "1f3ca-1f3fc",
  58321. "uc_output": "1f3ca-1f3fc",
  58322. "uc_match": "1f3ca-1f3fc",
  58323. "uc_greedy": "1f3ca-1f3fc",
  58324. "shortnames": [":swimmer_tone2:"],
  58325. "category": "activity"
  58326. },
  58327. ":person_swimming_tone3:": {
  58328. "uc_base": "1f3ca-1f3fd",
  58329. "uc_output": "1f3ca-1f3fd",
  58330. "uc_match": "1f3ca-1f3fd",
  58331. "uc_greedy": "1f3ca-1f3fd",
  58332. "shortnames": [":swimmer_tone3:"],
  58333. "category": "activity"
  58334. },
  58335. ":person_swimming_tone4:": {
  58336. "uc_base": "1f3ca-1f3fe",
  58337. "uc_output": "1f3ca-1f3fe",
  58338. "uc_match": "1f3ca-1f3fe",
  58339. "uc_greedy": "1f3ca-1f3fe",
  58340. "shortnames": [":swimmer_tone4:"],
  58341. "category": "activity"
  58342. },
  58343. ":person_swimming_tone5:": {
  58344. "uc_base": "1f3ca-1f3ff",
  58345. "uc_output": "1f3ca-1f3ff",
  58346. "uc_match": "1f3ca-1f3ff",
  58347. "uc_greedy": "1f3ca-1f3ff",
  58348. "shortnames": [":swimmer_tone5:"],
  58349. "category": "activity"
  58350. },
  58351. ":person_tipping_hand_tone1:": {
  58352. "uc_base": "1f481-1f3fb",
  58353. "uc_output": "1f481-1f3fb",
  58354. "uc_match": "1f481-1f3fb",
  58355. "uc_greedy": "1f481-1f3fb",
  58356. "shortnames": [":information_desk_person_tone1:"],
  58357. "category": "people"
  58358. },
  58359. ":person_tipping_hand_tone2:": {
  58360. "uc_base": "1f481-1f3fc",
  58361. "uc_output": "1f481-1f3fc",
  58362. "uc_match": "1f481-1f3fc",
  58363. "uc_greedy": "1f481-1f3fc",
  58364. "shortnames": [":information_desk_person_tone2:"],
  58365. "category": "people"
  58366. },
  58367. ":person_tipping_hand_tone3:": {
  58368. "uc_base": "1f481-1f3fd",
  58369. "uc_output": "1f481-1f3fd",
  58370. "uc_match": "1f481-1f3fd",
  58371. "uc_greedy": "1f481-1f3fd",
  58372. "shortnames": [":information_desk_person_tone3:"],
  58373. "category": "people"
  58374. },
  58375. ":person_tipping_hand_tone4:": {
  58376. "uc_base": "1f481-1f3fe",
  58377. "uc_output": "1f481-1f3fe",
  58378. "uc_match": "1f481-1f3fe",
  58379. "uc_greedy": "1f481-1f3fe",
  58380. "shortnames": [":information_desk_person_tone4:"],
  58381. "category": "people"
  58382. },
  58383. ":person_tipping_hand_tone5:": {
  58384. "uc_base": "1f481-1f3ff",
  58385. "uc_output": "1f481-1f3ff",
  58386. "uc_match": "1f481-1f3ff",
  58387. "uc_greedy": "1f481-1f3ff",
  58388. "shortnames": [":information_desk_person_tone5:"],
  58389. "category": "people"
  58390. },
  58391. ":person_walking_tone1:": {
  58392. "uc_base": "1f6b6-1f3fb",
  58393. "uc_output": "1f6b6-1f3fb",
  58394. "uc_match": "1f6b6-1f3fb",
  58395. "uc_greedy": "1f6b6-1f3fb",
  58396. "shortnames": [":walking_tone1:"],
  58397. "category": "people"
  58398. },
  58399. ":person_walking_tone2:": {
  58400. "uc_base": "1f6b6-1f3fc",
  58401. "uc_output": "1f6b6-1f3fc",
  58402. "uc_match": "1f6b6-1f3fc",
  58403. "uc_greedy": "1f6b6-1f3fc",
  58404. "shortnames": [":walking_tone2:"],
  58405. "category": "people"
  58406. },
  58407. ":person_walking_tone3:": {
  58408. "uc_base": "1f6b6-1f3fd",
  58409. "uc_output": "1f6b6-1f3fd",
  58410. "uc_match": "1f6b6-1f3fd",
  58411. "uc_greedy": "1f6b6-1f3fd",
  58412. "shortnames": [":walking_tone3:"],
  58413. "category": "people"
  58414. },
  58415. ":person_walking_tone4:": {
  58416. "uc_base": "1f6b6-1f3fe",
  58417. "uc_output": "1f6b6-1f3fe",
  58418. "uc_match": "1f6b6-1f3fe",
  58419. "uc_greedy": "1f6b6-1f3fe",
  58420. "shortnames": [":walking_tone4:"],
  58421. "category": "people"
  58422. },
  58423. ":person_walking_tone5:": {
  58424. "uc_base": "1f6b6-1f3ff",
  58425. "uc_output": "1f6b6-1f3ff",
  58426. "uc_match": "1f6b6-1f3ff",
  58427. "uc_greedy": "1f6b6-1f3ff",
  58428. "shortnames": [":walking_tone5:"],
  58429. "category": "people"
  58430. },
  58431. ":person_wearing_turban_tone1:": {
  58432. "uc_base": "1f473-1f3fb",
  58433. "uc_output": "1f473-1f3fb",
  58434. "uc_match": "1f473-1f3fb",
  58435. "uc_greedy": "1f473-1f3fb",
  58436. "shortnames": [":man_with_turban_tone1:"],
  58437. "category": "people"
  58438. },
  58439. ":person_wearing_turban_tone2:": {
  58440. "uc_base": "1f473-1f3fc",
  58441. "uc_output": "1f473-1f3fc",
  58442. "uc_match": "1f473-1f3fc",
  58443. "uc_greedy": "1f473-1f3fc",
  58444. "shortnames": [":man_with_turban_tone2:"],
  58445. "category": "people"
  58446. },
  58447. ":person_wearing_turban_tone3:": {
  58448. "uc_base": "1f473-1f3fd",
  58449. "uc_output": "1f473-1f3fd",
  58450. "uc_match": "1f473-1f3fd",
  58451. "uc_greedy": "1f473-1f3fd",
  58452. "shortnames": [":man_with_turban_tone3:"],
  58453. "category": "people"
  58454. },
  58455. ":person_wearing_turban_tone4:": {
  58456. "uc_base": "1f473-1f3fe",
  58457. "uc_output": "1f473-1f3fe",
  58458. "uc_match": "1f473-1f3fe",
  58459. "uc_greedy": "1f473-1f3fe",
  58460. "shortnames": [":man_with_turban_tone4:"],
  58461. "category": "people"
  58462. },
  58463. ":person_wearing_turban_tone5:": {
  58464. "uc_base": "1f473-1f3ff",
  58465. "uc_output": "1f473-1f3ff",
  58466. "uc_match": "1f473-1f3ff",
  58467. "uc_greedy": "1f473-1f3ff",
  58468. "shortnames": [":man_with_turban_tone5:"],
  58469. "category": "people"
  58470. },
  58471. ":point_down_tone1:": {
  58472. "uc_base": "1f447-1f3fb",
  58473. "uc_output": "1f447-1f3fb",
  58474. "uc_match": "1f447-1f3fb",
  58475. "uc_greedy": "1f447-1f3fb",
  58476. "shortnames": [],
  58477. "category": "people"
  58478. },
  58479. ":point_down_tone2:": {
  58480. "uc_base": "1f447-1f3fc",
  58481. "uc_output": "1f447-1f3fc",
  58482. "uc_match": "1f447-1f3fc",
  58483. "uc_greedy": "1f447-1f3fc",
  58484. "shortnames": [],
  58485. "category": "people"
  58486. },
  58487. ":point_down_tone3:": {
  58488. "uc_base": "1f447-1f3fd",
  58489. "uc_output": "1f447-1f3fd",
  58490. "uc_match": "1f447-1f3fd",
  58491. "uc_greedy": "1f447-1f3fd",
  58492. "shortnames": [],
  58493. "category": "people"
  58494. },
  58495. ":point_down_tone4:": {
  58496. "uc_base": "1f447-1f3fe",
  58497. "uc_output": "1f447-1f3fe",
  58498. "uc_match": "1f447-1f3fe",
  58499. "uc_greedy": "1f447-1f3fe",
  58500. "shortnames": [],
  58501. "category": "people"
  58502. },
  58503. ":point_down_tone5:": {
  58504. "uc_base": "1f447-1f3ff",
  58505. "uc_output": "1f447-1f3ff",
  58506. "uc_match": "1f447-1f3ff",
  58507. "uc_greedy": "1f447-1f3ff",
  58508. "shortnames": [],
  58509. "category": "people"
  58510. },
  58511. ":point_left_tone1:": {
  58512. "uc_base": "1f448-1f3fb",
  58513. "uc_output": "1f448-1f3fb",
  58514. "uc_match": "1f448-1f3fb",
  58515. "uc_greedy": "1f448-1f3fb",
  58516. "shortnames": [],
  58517. "category": "people"
  58518. },
  58519. ":point_left_tone2:": {
  58520. "uc_base": "1f448-1f3fc",
  58521. "uc_output": "1f448-1f3fc",
  58522. "uc_match": "1f448-1f3fc",
  58523. "uc_greedy": "1f448-1f3fc",
  58524. "shortnames": [],
  58525. "category": "people"
  58526. },
  58527. ":point_left_tone3:": {
  58528. "uc_base": "1f448-1f3fd",
  58529. "uc_output": "1f448-1f3fd",
  58530. "uc_match": "1f448-1f3fd",
  58531. "uc_greedy": "1f448-1f3fd",
  58532. "shortnames": [],
  58533. "category": "people"
  58534. },
  58535. ":point_left_tone4:": {
  58536. "uc_base": "1f448-1f3fe",
  58537. "uc_output": "1f448-1f3fe",
  58538. "uc_match": "1f448-1f3fe",
  58539. "uc_greedy": "1f448-1f3fe",
  58540. "shortnames": [],
  58541. "category": "people"
  58542. },
  58543. ":point_left_tone5:": {
  58544. "uc_base": "1f448-1f3ff",
  58545. "uc_output": "1f448-1f3ff",
  58546. "uc_match": "1f448-1f3ff",
  58547. "uc_greedy": "1f448-1f3ff",
  58548. "shortnames": [],
  58549. "category": "people"
  58550. },
  58551. ":point_right_tone1:": {
  58552. "uc_base": "1f449-1f3fb",
  58553. "uc_output": "1f449-1f3fb",
  58554. "uc_match": "1f449-1f3fb",
  58555. "uc_greedy": "1f449-1f3fb",
  58556. "shortnames": [],
  58557. "category": "people"
  58558. },
  58559. ":point_right_tone2:": {
  58560. "uc_base": "1f449-1f3fc",
  58561. "uc_output": "1f449-1f3fc",
  58562. "uc_match": "1f449-1f3fc",
  58563. "uc_greedy": "1f449-1f3fc",
  58564. "shortnames": [],
  58565. "category": "people"
  58566. },
  58567. ":point_right_tone3:": {
  58568. "uc_base": "1f449-1f3fd",
  58569. "uc_output": "1f449-1f3fd",
  58570. "uc_match": "1f449-1f3fd",
  58571. "uc_greedy": "1f449-1f3fd",
  58572. "shortnames": [],
  58573. "category": "people"
  58574. },
  58575. ":point_right_tone4:": {
  58576. "uc_base": "1f449-1f3fe",
  58577. "uc_output": "1f449-1f3fe",
  58578. "uc_match": "1f449-1f3fe",
  58579. "uc_greedy": "1f449-1f3fe",
  58580. "shortnames": [],
  58581. "category": "people"
  58582. },
  58583. ":point_right_tone5:": {
  58584. "uc_base": "1f449-1f3ff",
  58585. "uc_output": "1f449-1f3ff",
  58586. "uc_match": "1f449-1f3ff",
  58587. "uc_greedy": "1f449-1f3ff",
  58588. "shortnames": [],
  58589. "category": "people"
  58590. },
  58591. ":point_up_2_tone1:": {
  58592. "uc_base": "1f446-1f3fb",
  58593. "uc_output": "1f446-1f3fb",
  58594. "uc_match": "1f446-1f3fb",
  58595. "uc_greedy": "1f446-1f3fb",
  58596. "shortnames": [],
  58597. "category": "people"
  58598. },
  58599. ":point_up_2_tone2:": {
  58600. "uc_base": "1f446-1f3fc",
  58601. "uc_output": "1f446-1f3fc",
  58602. "uc_match": "1f446-1f3fc",
  58603. "uc_greedy": "1f446-1f3fc",
  58604. "shortnames": [],
  58605. "category": "people"
  58606. },
  58607. ":point_up_2_tone3:": {
  58608. "uc_base": "1f446-1f3fd",
  58609. "uc_output": "1f446-1f3fd",
  58610. "uc_match": "1f446-1f3fd",
  58611. "uc_greedy": "1f446-1f3fd",
  58612. "shortnames": [],
  58613. "category": "people"
  58614. },
  58615. ":point_up_2_tone4:": {
  58616. "uc_base": "1f446-1f3fe",
  58617. "uc_output": "1f446-1f3fe",
  58618. "uc_match": "1f446-1f3fe",
  58619. "uc_greedy": "1f446-1f3fe",
  58620. "shortnames": [],
  58621. "category": "people"
  58622. },
  58623. ":point_up_2_tone5:": {
  58624. "uc_base": "1f446-1f3ff",
  58625. "uc_output": "1f446-1f3ff",
  58626. "uc_match": "1f446-1f3ff",
  58627. "uc_greedy": "1f446-1f3ff",
  58628. "shortnames": [],
  58629. "category": "people"
  58630. },
  58631. ":police_officer_tone1:": {
  58632. "uc_base": "1f46e-1f3fb",
  58633. "uc_output": "1f46e-1f3fb",
  58634. "uc_match": "1f46e-1f3fb",
  58635. "uc_greedy": "1f46e-1f3fb",
  58636. "shortnames": [":cop_tone1:"],
  58637. "category": "people"
  58638. },
  58639. ":police_officer_tone2:": {
  58640. "uc_base": "1f46e-1f3fc",
  58641. "uc_output": "1f46e-1f3fc",
  58642. "uc_match": "1f46e-1f3fc",
  58643. "uc_greedy": "1f46e-1f3fc",
  58644. "shortnames": [":cop_tone2:"],
  58645. "category": "people"
  58646. },
  58647. ":police_officer_tone3:": {
  58648. "uc_base": "1f46e-1f3fd",
  58649. "uc_output": "1f46e-1f3fd",
  58650. "uc_match": "1f46e-1f3fd",
  58651. "uc_greedy": "1f46e-1f3fd",
  58652. "shortnames": [":cop_tone3:"],
  58653. "category": "people"
  58654. },
  58655. ":police_officer_tone4:": {
  58656. "uc_base": "1f46e-1f3fe",
  58657. "uc_output": "1f46e-1f3fe",
  58658. "uc_match": "1f46e-1f3fe",
  58659. "uc_greedy": "1f46e-1f3fe",
  58660. "shortnames": [":cop_tone4:"],
  58661. "category": "people"
  58662. },
  58663. ":police_officer_tone5:": {
  58664. "uc_base": "1f46e-1f3ff",
  58665. "uc_output": "1f46e-1f3ff",
  58666. "uc_match": "1f46e-1f3ff",
  58667. "uc_greedy": "1f46e-1f3ff",
  58668. "shortnames": [":cop_tone5:"],
  58669. "category": "people"
  58670. },
  58671. ":pray_tone1:": {
  58672. "uc_base": "1f64f-1f3fb",
  58673. "uc_output": "1f64f-1f3fb",
  58674. "uc_match": "1f64f-1f3fb",
  58675. "uc_greedy": "1f64f-1f3fb",
  58676. "shortnames": [],
  58677. "category": "people"
  58678. },
  58679. ":pray_tone2:": {
  58680. "uc_base": "1f64f-1f3fc",
  58681. "uc_output": "1f64f-1f3fc",
  58682. "uc_match": "1f64f-1f3fc",
  58683. "uc_greedy": "1f64f-1f3fc",
  58684. "shortnames": [],
  58685. "category": "people"
  58686. },
  58687. ":pray_tone3:": {
  58688. "uc_base": "1f64f-1f3fd",
  58689. "uc_output": "1f64f-1f3fd",
  58690. "uc_match": "1f64f-1f3fd",
  58691. "uc_greedy": "1f64f-1f3fd",
  58692. "shortnames": [],
  58693. "category": "people"
  58694. },
  58695. ":pray_tone4:": {
  58696. "uc_base": "1f64f-1f3fe",
  58697. "uc_output": "1f64f-1f3fe",
  58698. "uc_match": "1f64f-1f3fe",
  58699. "uc_greedy": "1f64f-1f3fe",
  58700. "shortnames": [],
  58701. "category": "people"
  58702. },
  58703. ":pray_tone5:": {
  58704. "uc_base": "1f64f-1f3ff",
  58705. "uc_output": "1f64f-1f3ff",
  58706. "uc_match": "1f64f-1f3ff",
  58707. "uc_greedy": "1f64f-1f3ff",
  58708. "shortnames": [],
  58709. "category": "people"
  58710. },
  58711. ":pregnant_woman_tone1:": {
  58712. "uc_base": "1f930-1f3fb",
  58713. "uc_output": "1f930-1f3fb",
  58714. "uc_match": "1f930-1f3fb",
  58715. "uc_greedy": "1f930-1f3fb",
  58716. "shortnames": [":expecting_woman_tone1:"],
  58717. "category": "people"
  58718. },
  58719. ":pregnant_woman_tone2:": {
  58720. "uc_base": "1f930-1f3fc",
  58721. "uc_output": "1f930-1f3fc",
  58722. "uc_match": "1f930-1f3fc",
  58723. "uc_greedy": "1f930-1f3fc",
  58724. "shortnames": [":expecting_woman_tone2:"],
  58725. "category": "people"
  58726. },
  58727. ":pregnant_woman_tone3:": {
  58728. "uc_base": "1f930-1f3fd",
  58729. "uc_output": "1f930-1f3fd",
  58730. "uc_match": "1f930-1f3fd",
  58731. "uc_greedy": "1f930-1f3fd",
  58732. "shortnames": [":expecting_woman_tone3:"],
  58733. "category": "people"
  58734. },
  58735. ":pregnant_woman_tone4:": {
  58736. "uc_base": "1f930-1f3fe",
  58737. "uc_output": "1f930-1f3fe",
  58738. "uc_match": "1f930-1f3fe",
  58739. "uc_greedy": "1f930-1f3fe",
  58740. "shortnames": [":expecting_woman_tone4:"],
  58741. "category": "people"
  58742. },
  58743. ":pregnant_woman_tone5:": {
  58744. "uc_base": "1f930-1f3ff",
  58745. "uc_output": "1f930-1f3ff",
  58746. "uc_match": "1f930-1f3ff",
  58747. "uc_greedy": "1f930-1f3ff",
  58748. "shortnames": [":expecting_woman_tone5:"],
  58749. "category": "people"
  58750. },
  58751. ":prince_tone1:": {
  58752. "uc_base": "1f934-1f3fb",
  58753. "uc_output": "1f934-1f3fb",
  58754. "uc_match": "1f934-1f3fb",
  58755. "uc_greedy": "1f934-1f3fb",
  58756. "shortnames": [],
  58757. "category": "people"
  58758. },
  58759. ":prince_tone2:": {
  58760. "uc_base": "1f934-1f3fc",
  58761. "uc_output": "1f934-1f3fc",
  58762. "uc_match": "1f934-1f3fc",
  58763. "uc_greedy": "1f934-1f3fc",
  58764. "shortnames": [],
  58765. "category": "people"
  58766. },
  58767. ":prince_tone3:": {
  58768. "uc_base": "1f934-1f3fd",
  58769. "uc_output": "1f934-1f3fd",
  58770. "uc_match": "1f934-1f3fd",
  58771. "uc_greedy": "1f934-1f3fd",
  58772. "shortnames": [],
  58773. "category": "people"
  58774. },
  58775. ":prince_tone4:": {
  58776. "uc_base": "1f934-1f3fe",
  58777. "uc_output": "1f934-1f3fe",
  58778. "uc_match": "1f934-1f3fe",
  58779. "uc_greedy": "1f934-1f3fe",
  58780. "shortnames": [],
  58781. "category": "people"
  58782. },
  58783. ":prince_tone5:": {
  58784. "uc_base": "1f934-1f3ff",
  58785. "uc_output": "1f934-1f3ff",
  58786. "uc_match": "1f934-1f3ff",
  58787. "uc_greedy": "1f934-1f3ff",
  58788. "shortnames": [],
  58789. "category": "people"
  58790. },
  58791. ":princess_tone1:": {
  58792. "uc_base": "1f478-1f3fb",
  58793. "uc_output": "1f478-1f3fb",
  58794. "uc_match": "1f478-1f3fb",
  58795. "uc_greedy": "1f478-1f3fb",
  58796. "shortnames": [],
  58797. "category": "people"
  58798. },
  58799. ":princess_tone2:": {
  58800. "uc_base": "1f478-1f3fc",
  58801. "uc_output": "1f478-1f3fc",
  58802. "uc_match": "1f478-1f3fc",
  58803. "uc_greedy": "1f478-1f3fc",
  58804. "shortnames": [],
  58805. "category": "people"
  58806. },
  58807. ":princess_tone3:": {
  58808. "uc_base": "1f478-1f3fd",
  58809. "uc_output": "1f478-1f3fd",
  58810. "uc_match": "1f478-1f3fd",
  58811. "uc_greedy": "1f478-1f3fd",
  58812. "shortnames": [],
  58813. "category": "people"
  58814. },
  58815. ":princess_tone4:": {
  58816. "uc_base": "1f478-1f3fe",
  58817. "uc_output": "1f478-1f3fe",
  58818. "uc_match": "1f478-1f3fe",
  58819. "uc_greedy": "1f478-1f3fe",
  58820. "shortnames": [],
  58821. "category": "people"
  58822. },
  58823. ":princess_tone5:": {
  58824. "uc_base": "1f478-1f3ff",
  58825. "uc_output": "1f478-1f3ff",
  58826. "uc_match": "1f478-1f3ff",
  58827. "uc_greedy": "1f478-1f3ff",
  58828. "shortnames": [],
  58829. "category": "people"
  58830. },
  58831. ":punch_tone1:": {
  58832. "uc_base": "1f44a-1f3fb",
  58833. "uc_output": "1f44a-1f3fb",
  58834. "uc_match": "1f44a-1f3fb",
  58835. "uc_greedy": "1f44a-1f3fb",
  58836. "shortnames": [],
  58837. "category": "people"
  58838. },
  58839. ":punch_tone2:": {
  58840. "uc_base": "1f44a-1f3fc",
  58841. "uc_output": "1f44a-1f3fc",
  58842. "uc_match": "1f44a-1f3fc",
  58843. "uc_greedy": "1f44a-1f3fc",
  58844. "shortnames": [],
  58845. "category": "people"
  58846. },
  58847. ":punch_tone3:": {
  58848. "uc_base": "1f44a-1f3fd",
  58849. "uc_output": "1f44a-1f3fd",
  58850. "uc_match": "1f44a-1f3fd",
  58851. "uc_greedy": "1f44a-1f3fd",
  58852. "shortnames": [],
  58853. "category": "people"
  58854. },
  58855. ":punch_tone4:": {
  58856. "uc_base": "1f44a-1f3fe",
  58857. "uc_output": "1f44a-1f3fe",
  58858. "uc_match": "1f44a-1f3fe",
  58859. "uc_greedy": "1f44a-1f3fe",
  58860. "shortnames": [],
  58861. "category": "people"
  58862. },
  58863. ":punch_tone5:": {
  58864. "uc_base": "1f44a-1f3ff",
  58865. "uc_output": "1f44a-1f3ff",
  58866. "uc_match": "1f44a-1f3ff",
  58867. "uc_greedy": "1f44a-1f3ff",
  58868. "shortnames": [],
  58869. "category": "people"
  58870. },
  58871. ":raised_back_of_hand_tone1:": {
  58872. "uc_base": "1f91a-1f3fb",
  58873. "uc_output": "1f91a-1f3fb",
  58874. "uc_match": "1f91a-1f3fb",
  58875. "uc_greedy": "1f91a-1f3fb",
  58876. "shortnames": [":back_of_hand_tone1:"],
  58877. "category": "people"
  58878. },
  58879. ":raised_back_of_hand_tone2:": {
  58880. "uc_base": "1f91a-1f3fc",
  58881. "uc_output": "1f91a-1f3fc",
  58882. "uc_match": "1f91a-1f3fc",
  58883. "uc_greedy": "1f91a-1f3fc",
  58884. "shortnames": [":back_of_hand_tone2:"],
  58885. "category": "people"
  58886. },
  58887. ":raised_back_of_hand_tone3:": {
  58888. "uc_base": "1f91a-1f3fd",
  58889. "uc_output": "1f91a-1f3fd",
  58890. "uc_match": "1f91a-1f3fd",
  58891. "uc_greedy": "1f91a-1f3fd",
  58892. "shortnames": [":back_of_hand_tone3:"],
  58893. "category": "people"
  58894. },
  58895. ":raised_back_of_hand_tone4:": {
  58896. "uc_base": "1f91a-1f3fe",
  58897. "uc_output": "1f91a-1f3fe",
  58898. "uc_match": "1f91a-1f3fe",
  58899. "uc_greedy": "1f91a-1f3fe",
  58900. "shortnames": [":back_of_hand_tone4:"],
  58901. "category": "people"
  58902. },
  58903. ":raised_back_of_hand_tone5:": {
  58904. "uc_base": "1f91a-1f3ff",
  58905. "uc_output": "1f91a-1f3ff",
  58906. "uc_match": "1f91a-1f3ff",
  58907. "uc_greedy": "1f91a-1f3ff",
  58908. "shortnames": [":back_of_hand_tone5:"],
  58909. "category": "people"
  58910. },
  58911. ":raised_hands_tone1:": {
  58912. "uc_base": "1f64c-1f3fb",
  58913. "uc_output": "1f64c-1f3fb",
  58914. "uc_match": "1f64c-1f3fb",
  58915. "uc_greedy": "1f64c-1f3fb",
  58916. "shortnames": [],
  58917. "category": "people"
  58918. },
  58919. ":raised_hands_tone2:": {
  58920. "uc_base": "1f64c-1f3fc",
  58921. "uc_output": "1f64c-1f3fc",
  58922. "uc_match": "1f64c-1f3fc",
  58923. "uc_greedy": "1f64c-1f3fc",
  58924. "shortnames": [],
  58925. "category": "people"
  58926. },
  58927. ":raised_hands_tone3:": {
  58928. "uc_base": "1f64c-1f3fd",
  58929. "uc_output": "1f64c-1f3fd",
  58930. "uc_match": "1f64c-1f3fd",
  58931. "uc_greedy": "1f64c-1f3fd",
  58932. "shortnames": [],
  58933. "category": "people"
  58934. },
  58935. ":raised_hands_tone4:": {
  58936. "uc_base": "1f64c-1f3fe",
  58937. "uc_output": "1f64c-1f3fe",
  58938. "uc_match": "1f64c-1f3fe",
  58939. "uc_greedy": "1f64c-1f3fe",
  58940. "shortnames": [],
  58941. "category": "people"
  58942. },
  58943. ":raised_hands_tone5:": {
  58944. "uc_base": "1f64c-1f3ff",
  58945. "uc_output": "1f64c-1f3ff",
  58946. "uc_match": "1f64c-1f3ff",
  58947. "uc_greedy": "1f64c-1f3ff",
  58948. "shortnames": [],
  58949. "category": "people"
  58950. },
  58951. ":right_facing_fist_tone1:": {
  58952. "uc_base": "1f91c-1f3fb",
  58953. "uc_output": "1f91c-1f3fb",
  58954. "uc_match": "1f91c-1f3fb",
  58955. "uc_greedy": "1f91c-1f3fb",
  58956. "shortnames": [":right_fist_tone1:"],
  58957. "category": "people"
  58958. },
  58959. ":right_facing_fist_tone2:": {
  58960. "uc_base": "1f91c-1f3fc",
  58961. "uc_output": "1f91c-1f3fc",
  58962. "uc_match": "1f91c-1f3fc",
  58963. "uc_greedy": "1f91c-1f3fc",
  58964. "shortnames": [":right_fist_tone2:"],
  58965. "category": "people"
  58966. },
  58967. ":right_facing_fist_tone3:": {
  58968. "uc_base": "1f91c-1f3fd",
  58969. "uc_output": "1f91c-1f3fd",
  58970. "uc_match": "1f91c-1f3fd",
  58971. "uc_greedy": "1f91c-1f3fd",
  58972. "shortnames": [":right_fist_tone3:"],
  58973. "category": "people"
  58974. },
  58975. ":right_facing_fist_tone4:": {
  58976. "uc_base": "1f91c-1f3fe",
  58977. "uc_output": "1f91c-1f3fe",
  58978. "uc_match": "1f91c-1f3fe",
  58979. "uc_greedy": "1f91c-1f3fe",
  58980. "shortnames": [":right_fist_tone4:"],
  58981. "category": "people"
  58982. },
  58983. ":right_facing_fist_tone5:": {
  58984. "uc_base": "1f91c-1f3ff",
  58985. "uc_output": "1f91c-1f3ff",
  58986. "uc_match": "1f91c-1f3ff",
  58987. "uc_greedy": "1f91c-1f3ff",
  58988. "shortnames": [":right_fist_tone5:"],
  58989. "category": "people"
  58990. },
  58991. ":santa_tone1:": {
  58992. "uc_base": "1f385-1f3fb",
  58993. "uc_output": "1f385-1f3fb",
  58994. "uc_match": "1f385-1f3fb",
  58995. "uc_greedy": "1f385-1f3fb",
  58996. "shortnames": [],
  58997. "category": "people"
  58998. },
  58999. ":santa_tone2:": {
  59000. "uc_base": "1f385-1f3fc",
  59001. "uc_output": "1f385-1f3fc",
  59002. "uc_match": "1f385-1f3fc",
  59003. "uc_greedy": "1f385-1f3fc",
  59004. "shortnames": [],
  59005. "category": "people"
  59006. },
  59007. ":santa_tone3:": {
  59008. "uc_base": "1f385-1f3fd",
  59009. "uc_output": "1f385-1f3fd",
  59010. "uc_match": "1f385-1f3fd",
  59011. "uc_greedy": "1f385-1f3fd",
  59012. "shortnames": [],
  59013. "category": "people"
  59014. },
  59015. ":santa_tone4:": {
  59016. "uc_base": "1f385-1f3fe",
  59017. "uc_output": "1f385-1f3fe",
  59018. "uc_match": "1f385-1f3fe",
  59019. "uc_greedy": "1f385-1f3fe",
  59020. "shortnames": [],
  59021. "category": "people"
  59022. },
  59023. ":santa_tone5:": {
  59024. "uc_base": "1f385-1f3ff",
  59025. "uc_output": "1f385-1f3ff",
  59026. "uc_match": "1f385-1f3ff",
  59027. "uc_greedy": "1f385-1f3ff",
  59028. "shortnames": [],
  59029. "category": "people"
  59030. },
  59031. ":selfie_tone1:": {
  59032. "uc_base": "1f933-1f3fb",
  59033. "uc_output": "1f933-1f3fb",
  59034. "uc_match": "1f933-1f3fb",
  59035. "uc_greedy": "1f933-1f3fb",
  59036. "shortnames": [],
  59037. "category": "people"
  59038. },
  59039. ":selfie_tone2:": {
  59040. "uc_base": "1f933-1f3fc",
  59041. "uc_output": "1f933-1f3fc",
  59042. "uc_match": "1f933-1f3fc",
  59043. "uc_greedy": "1f933-1f3fc",
  59044. "shortnames": [],
  59045. "category": "people"
  59046. },
  59047. ":selfie_tone3:": {
  59048. "uc_base": "1f933-1f3fd",
  59049. "uc_output": "1f933-1f3fd",
  59050. "uc_match": "1f933-1f3fd",
  59051. "uc_greedy": "1f933-1f3fd",
  59052. "shortnames": [],
  59053. "category": "people"
  59054. },
  59055. ":selfie_tone4:": {
  59056. "uc_base": "1f933-1f3fe",
  59057. "uc_output": "1f933-1f3fe",
  59058. "uc_match": "1f933-1f3fe",
  59059. "uc_greedy": "1f933-1f3fe",
  59060. "shortnames": [],
  59061. "category": "people"
  59062. },
  59063. ":selfie_tone5:": {
  59064. "uc_base": "1f933-1f3ff",
  59065. "uc_output": "1f933-1f3ff",
  59066. "uc_match": "1f933-1f3ff",
  59067. "uc_greedy": "1f933-1f3ff",
  59068. "shortnames": [],
  59069. "category": "people"
  59070. },
  59071. ":snowboarder_tone1:": {
  59072. "uc_base": "1f3c2-1f3fb",
  59073. "uc_output": "1f3c2-1f3fb",
  59074. "uc_match": "1f3c2-1f3fb",
  59075. "uc_greedy": "1f3c2-1f3fb",
  59076. "shortnames": [":snowboarder_light_skin_tone:"],
  59077. "category": "activity"
  59078. },
  59079. ":snowboarder_tone2:": {
  59080. "uc_base": "1f3c2-1f3fc",
  59081. "uc_output": "1f3c2-1f3fc",
  59082. "uc_match": "1f3c2-1f3fc",
  59083. "uc_greedy": "1f3c2-1f3fc",
  59084. "shortnames": [":snowboarder_medium_light_skin_tone:"],
  59085. "category": "activity"
  59086. },
  59087. ":snowboarder_tone3:": {
  59088. "uc_base": "1f3c2-1f3fd",
  59089. "uc_output": "1f3c2-1f3fd",
  59090. "uc_match": "1f3c2-1f3fd",
  59091. "uc_greedy": "1f3c2-1f3fd",
  59092. "shortnames": [":snowboarder_medium_skin_tone:"],
  59093. "category": "activity"
  59094. },
  59095. ":snowboarder_tone4:": {
  59096. "uc_base": "1f3c2-1f3fe",
  59097. "uc_output": "1f3c2-1f3fe",
  59098. "uc_match": "1f3c2-1f3fe",
  59099. "uc_greedy": "1f3c2-1f3fe",
  59100. "shortnames": [":snowboarder_medium_dark_skin_tone:"],
  59101. "category": "activity"
  59102. },
  59103. ":snowboarder_tone5:": {
  59104. "uc_base": "1f3c2-1f3ff",
  59105. "uc_output": "1f3c2-1f3ff",
  59106. "uc_match": "1f3c2-1f3ff",
  59107. "uc_greedy": "1f3c2-1f3ff",
  59108. "shortnames": [":snowboarder_dark_skin_tone:"],
  59109. "category": "activity"
  59110. },
  59111. ":thumbsdown_tone1:": {
  59112. "uc_base": "1f44e-1f3fb",
  59113. "uc_output": "1f44e-1f3fb",
  59114. "uc_match": "1f44e-1f3fb",
  59115. "uc_greedy": "1f44e-1f3fb",
  59116. "shortnames": [":-1_tone1:", ":thumbdown_tone1:"],
  59117. "category": "people"
  59118. },
  59119. ":thumbsdown_tone2:": {
  59120. "uc_base": "1f44e-1f3fc",
  59121. "uc_output": "1f44e-1f3fc",
  59122. "uc_match": "1f44e-1f3fc",
  59123. "uc_greedy": "1f44e-1f3fc",
  59124. "shortnames": [":-1_tone2:", ":thumbdown_tone2:"],
  59125. "category": "people"
  59126. },
  59127. ":thumbsdown_tone3:": {
  59128. "uc_base": "1f44e-1f3fd",
  59129. "uc_output": "1f44e-1f3fd",
  59130. "uc_match": "1f44e-1f3fd",
  59131. "uc_greedy": "1f44e-1f3fd",
  59132. "shortnames": [":-1_tone3:", ":thumbdown_tone3:"],
  59133. "category": "people"
  59134. },
  59135. ":thumbsdown_tone4:": {
  59136. "uc_base": "1f44e-1f3fe",
  59137. "uc_output": "1f44e-1f3fe",
  59138. "uc_match": "1f44e-1f3fe",
  59139. "uc_greedy": "1f44e-1f3fe",
  59140. "shortnames": [":-1_tone4:", ":thumbdown_tone4:"],
  59141. "category": "people"
  59142. },
  59143. ":thumbsdown_tone5:": {
  59144. "uc_base": "1f44e-1f3ff",
  59145. "uc_output": "1f44e-1f3ff",
  59146. "uc_match": "1f44e-1f3ff",
  59147. "uc_greedy": "1f44e-1f3ff",
  59148. "shortnames": [":-1_tone5:", ":thumbdown_tone5:"],
  59149. "category": "people"
  59150. },
  59151. ":thumbsup_tone1:": {
  59152. "uc_base": "1f44d-1f3fb",
  59153. "uc_output": "1f44d-1f3fb",
  59154. "uc_match": "1f44d-1f3fb",
  59155. "uc_greedy": "1f44d-1f3fb",
  59156. "shortnames": [":+1_tone1:", ":thumbup_tone1:"],
  59157. "category": "people"
  59158. },
  59159. ":thumbsup_tone2:": {
  59160. "uc_base": "1f44d-1f3fc",
  59161. "uc_output": "1f44d-1f3fc",
  59162. "uc_match": "1f44d-1f3fc",
  59163. "uc_greedy": "1f44d-1f3fc",
  59164. "shortnames": [":+1_tone2:", ":thumbup_tone2:"],
  59165. "category": "people"
  59166. },
  59167. ":thumbsup_tone3:": {
  59168. "uc_base": "1f44d-1f3fd",
  59169. "uc_output": "1f44d-1f3fd",
  59170. "uc_match": "1f44d-1f3fd",
  59171. "uc_greedy": "1f44d-1f3fd",
  59172. "shortnames": [":+1_tone3:", ":thumbup_tone3:"],
  59173. "category": "people"
  59174. },
  59175. ":thumbsup_tone4:": {
  59176. "uc_base": "1f44d-1f3fe",
  59177. "uc_output": "1f44d-1f3fe",
  59178. "uc_match": "1f44d-1f3fe",
  59179. "uc_greedy": "1f44d-1f3fe",
  59180. "shortnames": [":+1_tone4:", ":thumbup_tone4:"],
  59181. "category": "people"
  59182. },
  59183. ":thumbsup_tone5:": {
  59184. "uc_base": "1f44d-1f3ff",
  59185. "uc_output": "1f44d-1f3ff",
  59186. "uc_match": "1f44d-1f3ff",
  59187. "uc_greedy": "1f44d-1f3ff",
  59188. "shortnames": [":+1_tone5:", ":thumbup_tone5:"],
  59189. "category": "people"
  59190. },
  59191. ":united_nations:": {
  59192. "uc_base": "1f1fa-1f1f3",
  59193. "uc_output": "1f1fa-1f1f3",
  59194. "uc_match": "1f1fa-1f1f3",
  59195. "uc_greedy": "1f1fa-1f1f3",
  59196. "shortnames": [],
  59197. "category": "flags"
  59198. },
  59199. ":vampire_tone1:": {
  59200. "uc_base": "1f9db-1f3fb",
  59201. "uc_output": "1f9db-1f3fb",
  59202. "uc_match": "1f9db-1f3fb",
  59203. "uc_greedy": "1f9db-1f3fb",
  59204. "shortnames": [":vampire_light_skin_tone:"],
  59205. "category": "people"
  59206. },
  59207. ":vampire_tone2:": {
  59208. "uc_base": "1f9db-1f3fc",
  59209. "uc_output": "1f9db-1f3fc",
  59210. "uc_match": "1f9db-1f3fc",
  59211. "uc_greedy": "1f9db-1f3fc",
  59212. "shortnames": [":vampire_medium_light_skin_tone:"],
  59213. "category": "people"
  59214. },
  59215. ":vampire_tone3:": {
  59216. "uc_base": "1f9db-1f3fd",
  59217. "uc_output": "1f9db-1f3fd",
  59218. "uc_match": "1f9db-1f3fd",
  59219. "uc_greedy": "1f9db-1f3fd",
  59220. "shortnames": [":vampire_medium_skin_tone:"],
  59221. "category": "people"
  59222. },
  59223. ":vampire_tone4:": {
  59224. "uc_base": "1f9db-1f3fe",
  59225. "uc_output": "1f9db-1f3fe",
  59226. "uc_match": "1f9db-1f3fe",
  59227. "uc_greedy": "1f9db-1f3fe",
  59228. "shortnames": [":vampire_medium_dark_skin_tone:"],
  59229. "category": "people"
  59230. },
  59231. ":vampire_tone5:": {
  59232. "uc_base": "1f9db-1f3ff",
  59233. "uc_output": "1f9db-1f3ff",
  59234. "uc_match": "1f9db-1f3ff",
  59235. "uc_greedy": "1f9db-1f3ff",
  59236. "shortnames": [":vampire_dark_skin_tone:"],
  59237. "category": "people"
  59238. },
  59239. ":vulcan_tone1:": {
  59240. "uc_base": "1f596-1f3fb",
  59241. "uc_output": "1f596-1f3fb",
  59242. "uc_match": "1f596-1f3fb",
  59243. "uc_greedy": "1f596-1f3fb",
  59244. "shortnames": [":raised_hand_with_part_between_middle_and_ring_fingers_tone1:"],
  59245. "category": "people"
  59246. },
  59247. ":vulcan_tone2:": {
  59248. "uc_base": "1f596-1f3fc",
  59249. "uc_output": "1f596-1f3fc",
  59250. "uc_match": "1f596-1f3fc",
  59251. "uc_greedy": "1f596-1f3fc",
  59252. "shortnames": [":raised_hand_with_part_between_middle_and_ring_fingers_tone2:"],
  59253. "category": "people"
  59254. },
  59255. ":vulcan_tone3:": {
  59256. "uc_base": "1f596-1f3fd",
  59257. "uc_output": "1f596-1f3fd",
  59258. "uc_match": "1f596-1f3fd",
  59259. "uc_greedy": "1f596-1f3fd",
  59260. "shortnames": [":raised_hand_with_part_between_middle_and_ring_fingers_tone3:"],
  59261. "category": "people"
  59262. },
  59263. ":vulcan_tone4:": {
  59264. "uc_base": "1f596-1f3fe",
  59265. "uc_output": "1f596-1f3fe",
  59266. "uc_match": "1f596-1f3fe",
  59267. "uc_greedy": "1f596-1f3fe",
  59268. "shortnames": [":raised_hand_with_part_between_middle_and_ring_fingers_tone4:"],
  59269. "category": "people"
  59270. },
  59271. ":vulcan_tone5:": {
  59272. "uc_base": "1f596-1f3ff",
  59273. "uc_output": "1f596-1f3ff",
  59274. "uc_match": "1f596-1f3ff",
  59275. "uc_greedy": "1f596-1f3ff",
  59276. "shortnames": [":raised_hand_with_part_between_middle_and_ring_fingers_tone5:"],
  59277. "category": "people"
  59278. },
  59279. ":wave_tone1:": {
  59280. "uc_base": "1f44b-1f3fb",
  59281. "uc_output": "1f44b-1f3fb",
  59282. "uc_match": "1f44b-1f3fb",
  59283. "uc_greedy": "1f44b-1f3fb",
  59284. "shortnames": [],
  59285. "category": "people"
  59286. },
  59287. ":wave_tone2:": {
  59288. "uc_base": "1f44b-1f3fc",
  59289. "uc_output": "1f44b-1f3fc",
  59290. "uc_match": "1f44b-1f3fc",
  59291. "uc_greedy": "1f44b-1f3fc",
  59292. "shortnames": [],
  59293. "category": "people"
  59294. },
  59295. ":wave_tone3:": {
  59296. "uc_base": "1f44b-1f3fd",
  59297. "uc_output": "1f44b-1f3fd",
  59298. "uc_match": "1f44b-1f3fd",
  59299. "uc_greedy": "1f44b-1f3fd",
  59300. "shortnames": [],
  59301. "category": "people"
  59302. },
  59303. ":wave_tone4:": {
  59304. "uc_base": "1f44b-1f3fe",
  59305. "uc_output": "1f44b-1f3fe",
  59306. "uc_match": "1f44b-1f3fe",
  59307. "uc_greedy": "1f44b-1f3fe",
  59308. "shortnames": [],
  59309. "category": "people"
  59310. },
  59311. ":wave_tone5:": {
  59312. "uc_base": "1f44b-1f3ff",
  59313. "uc_output": "1f44b-1f3ff",
  59314. "uc_match": "1f44b-1f3ff",
  59315. "uc_greedy": "1f44b-1f3ff",
  59316. "shortnames": [],
  59317. "category": "people"
  59318. },
  59319. ":woman_tone1:": {
  59320. "uc_base": "1f469-1f3fb",
  59321. "uc_output": "1f469-1f3fb",
  59322. "uc_match": "1f469-1f3fb",
  59323. "uc_greedy": "1f469-1f3fb",
  59324. "shortnames": [],
  59325. "category": "people"
  59326. },
  59327. ":woman_tone2:": {
  59328. "uc_base": "1f469-1f3fc",
  59329. "uc_output": "1f469-1f3fc",
  59330. "uc_match": "1f469-1f3fc",
  59331. "uc_greedy": "1f469-1f3fc",
  59332. "shortnames": [],
  59333. "category": "people"
  59334. },
  59335. ":woman_tone3:": {
  59336. "uc_base": "1f469-1f3fd",
  59337. "uc_output": "1f469-1f3fd",
  59338. "uc_match": "1f469-1f3fd",
  59339. "uc_greedy": "1f469-1f3fd",
  59340. "shortnames": [],
  59341. "category": "people"
  59342. },
  59343. ":woman_tone4:": {
  59344. "uc_base": "1f469-1f3fe",
  59345. "uc_output": "1f469-1f3fe",
  59346. "uc_match": "1f469-1f3fe",
  59347. "uc_greedy": "1f469-1f3fe",
  59348. "shortnames": [],
  59349. "category": "people"
  59350. },
  59351. ":woman_tone5:": {
  59352. "uc_base": "1f469-1f3ff",
  59353. "uc_output": "1f469-1f3ff",
  59354. "uc_match": "1f469-1f3ff",
  59355. "uc_greedy": "1f469-1f3ff",
  59356. "shortnames": [],
  59357. "category": "people"
  59358. },
  59359. ":woman_with_headscarf_tone1:": {
  59360. "uc_base": "1f9d5-1f3fb",
  59361. "uc_output": "1f9d5-1f3fb",
  59362. "uc_match": "1f9d5-1f3fb",
  59363. "uc_greedy": "1f9d5-1f3fb",
  59364. "shortnames": [":woman_with_headscarf_light_skin_tone:"],
  59365. "category": "people"
  59366. },
  59367. ":woman_with_headscarf_tone2:": {
  59368. "uc_base": "1f9d5-1f3fc",
  59369. "uc_output": "1f9d5-1f3fc",
  59370. "uc_match": "1f9d5-1f3fc",
  59371. "uc_greedy": "1f9d5-1f3fc",
  59372. "shortnames": [":woman_with_headscarf_medium_light_skin_tone:"],
  59373. "category": "people"
  59374. },
  59375. ":woman_with_headscarf_tone3:": {
  59376. "uc_base": "1f9d5-1f3fd",
  59377. "uc_output": "1f9d5-1f3fd",
  59378. "uc_match": "1f9d5-1f3fd",
  59379. "uc_greedy": "1f9d5-1f3fd",
  59380. "shortnames": [":woman_with_headscarf_medium_skin_tone:"],
  59381. "category": "people"
  59382. },
  59383. ":woman_with_headscarf_tone4:": {
  59384. "uc_base": "1f9d5-1f3fe",
  59385. "uc_output": "1f9d5-1f3fe",
  59386. "uc_match": "1f9d5-1f3fe",
  59387. "uc_greedy": "1f9d5-1f3fe",
  59388. "shortnames": [":woman_with_headscarf_medium_dark_skin_tone:"],
  59389. "category": "people"
  59390. },
  59391. ":woman_with_headscarf_tone5:": {
  59392. "uc_base": "1f9d5-1f3ff",
  59393. "uc_output": "1f9d5-1f3ff",
  59394. "uc_match": "1f9d5-1f3ff",
  59395. "uc_greedy": "1f9d5-1f3ff",
  59396. "shortnames": [":woman_with_headscarf_dark_skin_tone:"],
  59397. "category": "people"
  59398. },
  59399. ":fist_tone1:": {
  59400. "uc_base": "270a-1f3fb",
  59401. "uc_output": "270a-1f3fb",
  59402. "uc_match": "270a-1f3fb",
  59403. "uc_greedy": "270a-1f3fb",
  59404. "shortnames": [],
  59405. "category": "people"
  59406. },
  59407. ":fist_tone2:": {
  59408. "uc_base": "270a-1f3fc",
  59409. "uc_output": "270a-1f3fc",
  59410. "uc_match": "270a-1f3fc",
  59411. "uc_greedy": "270a-1f3fc",
  59412. "shortnames": [],
  59413. "category": "people"
  59414. },
  59415. ":fist_tone3:": {
  59416. "uc_base": "270a-1f3fd",
  59417. "uc_output": "270a-1f3fd",
  59418. "uc_match": "270a-1f3fd",
  59419. "uc_greedy": "270a-1f3fd",
  59420. "shortnames": [],
  59421. "category": "people"
  59422. },
  59423. ":fist_tone4:": {
  59424. "uc_base": "270a-1f3fe",
  59425. "uc_output": "270a-1f3fe",
  59426. "uc_match": "270a-1f3fe",
  59427. "uc_greedy": "270a-1f3fe",
  59428. "shortnames": [],
  59429. "category": "people"
  59430. },
  59431. ":fist_tone5:": {
  59432. "uc_base": "270a-1f3ff",
  59433. "uc_output": "270a-1f3ff",
  59434. "uc_match": "270a-1f3ff",
  59435. "uc_greedy": "270a-1f3ff",
  59436. "shortnames": [],
  59437. "category": "people"
  59438. },
  59439. ":person_bouncing_ball_tone1:": {
  59440. "uc_base": "26f9-1f3fb",
  59441. "uc_output": "26f9-1f3fb",
  59442. "uc_match": "26f9-fe0f-1f3fb",
  59443. "uc_greedy": "26f9-fe0f-1f3fb",
  59444. "shortnames": [":basketball_player_tone1:", ":person_with_ball_tone1:"],
  59445. "category": "activity"
  59446. },
  59447. ":person_bouncing_ball_tone2:": {
  59448. "uc_base": "26f9-1f3fc",
  59449. "uc_output": "26f9-1f3fc",
  59450. "uc_match": "26f9-fe0f-1f3fc",
  59451. "uc_greedy": "26f9-fe0f-1f3fc",
  59452. "shortnames": [":basketball_player_tone2:", ":person_with_ball_tone2:"],
  59453. "category": "activity"
  59454. },
  59455. ":person_bouncing_ball_tone3:": {
  59456. "uc_base": "26f9-1f3fd",
  59457. "uc_output": "26f9-1f3fd",
  59458. "uc_match": "26f9-fe0f-1f3fd",
  59459. "uc_greedy": "26f9-fe0f-1f3fd",
  59460. "shortnames": [":basketball_player_tone3:", ":person_with_ball_tone3:"],
  59461. "category": "activity"
  59462. },
  59463. ":person_bouncing_ball_tone4:": {
  59464. "uc_base": "26f9-1f3fe",
  59465. "uc_output": "26f9-1f3fe",
  59466. "uc_match": "26f9-fe0f-1f3fe",
  59467. "uc_greedy": "26f9-fe0f-1f3fe",
  59468. "shortnames": [":basketball_player_tone4:", ":person_with_ball_tone4:"],
  59469. "category": "activity"
  59470. },
  59471. ":person_bouncing_ball_tone5:": {
  59472. "uc_base": "26f9-1f3ff",
  59473. "uc_output": "26f9-1f3ff",
  59474. "uc_match": "26f9-fe0f-1f3ff",
  59475. "uc_greedy": "26f9-fe0f-1f3ff",
  59476. "shortnames": [":basketball_player_tone5:", ":person_with_ball_tone5:"],
  59477. "category": "activity"
  59478. },
  59479. ":point_up_tone1:": {
  59480. "uc_base": "261d-1f3fb",
  59481. "uc_output": "261d-1f3fb",
  59482. "uc_match": "261d-fe0f-1f3fb",
  59483. "uc_greedy": "261d-fe0f-1f3fb",
  59484. "shortnames": [],
  59485. "category": "people"
  59486. },
  59487. ":point_up_tone2:": {
  59488. "uc_base": "261d-1f3fc",
  59489. "uc_output": "261d-1f3fc",
  59490. "uc_match": "261d-fe0f-1f3fc",
  59491. "uc_greedy": "261d-fe0f-1f3fc",
  59492. "shortnames": [],
  59493. "category": "people"
  59494. },
  59495. ":point_up_tone3:": {
  59496. "uc_base": "261d-1f3fd",
  59497. "uc_output": "261d-1f3fd",
  59498. "uc_match": "261d-fe0f-1f3fd",
  59499. "uc_greedy": "261d-fe0f-1f3fd",
  59500. "shortnames": [],
  59501. "category": "people"
  59502. },
  59503. ":point_up_tone4:": {
  59504. "uc_base": "261d-1f3fe",
  59505. "uc_output": "261d-1f3fe",
  59506. "uc_match": "261d-fe0f-1f3fe",
  59507. "uc_greedy": "261d-fe0f-1f3fe",
  59508. "shortnames": [],
  59509. "category": "people"
  59510. },
  59511. ":point_up_tone5:": {
  59512. "uc_base": "261d-1f3ff",
  59513. "uc_output": "261d-1f3ff",
  59514. "uc_match": "261d-fe0f-1f3ff",
  59515. "uc_greedy": "261d-fe0f-1f3ff",
  59516. "shortnames": [],
  59517. "category": "people"
  59518. },
  59519. ":raised_hand_tone1:": {
  59520. "uc_base": "270b-1f3fb",
  59521. "uc_output": "270b-1f3fb",
  59522. "uc_match": "270b-1f3fb",
  59523. "uc_greedy": "270b-1f3fb",
  59524. "shortnames": [],
  59525. "category": "people"
  59526. },
  59527. ":raised_hand_tone2:": {
  59528. "uc_base": "270b-1f3fc",
  59529. "uc_output": "270b-1f3fc",
  59530. "uc_match": "270b-1f3fc",
  59531. "uc_greedy": "270b-1f3fc",
  59532. "shortnames": [],
  59533. "category": "people"
  59534. },
  59535. ":raised_hand_tone3:": {
  59536. "uc_base": "270b-1f3fd",
  59537. "uc_output": "270b-1f3fd",
  59538. "uc_match": "270b-1f3fd",
  59539. "uc_greedy": "270b-1f3fd",
  59540. "shortnames": [],
  59541. "category": "people"
  59542. },
  59543. ":raised_hand_tone4:": {
  59544. "uc_base": "270b-1f3fe",
  59545. "uc_output": "270b-1f3fe",
  59546. "uc_match": "270b-1f3fe",
  59547. "uc_greedy": "270b-1f3fe",
  59548. "shortnames": [],
  59549. "category": "people"
  59550. },
  59551. ":raised_hand_tone5:": {
  59552. "uc_base": "270b-1f3ff",
  59553. "uc_output": "270b-1f3ff",
  59554. "uc_match": "270b-1f3ff",
  59555. "uc_greedy": "270b-1f3ff",
  59556. "shortnames": [],
  59557. "category": "people"
  59558. },
  59559. ":v_tone1:": {
  59560. "uc_base": "270c-1f3fb",
  59561. "uc_output": "270c-1f3fb",
  59562. "uc_match": "270c-fe0f-1f3fb",
  59563. "uc_greedy": "270c-fe0f-1f3fb",
  59564. "shortnames": [],
  59565. "category": "people"
  59566. },
  59567. ":v_tone2:": {
  59568. "uc_base": "270c-1f3fc",
  59569. "uc_output": "270c-1f3fc",
  59570. "uc_match": "270c-fe0f-1f3fc",
  59571. "uc_greedy": "270c-fe0f-1f3fc",
  59572. "shortnames": [],
  59573. "category": "people"
  59574. },
  59575. ":v_tone3:": {
  59576. "uc_base": "270c-1f3fd",
  59577. "uc_output": "270c-1f3fd",
  59578. "uc_match": "270c-fe0f-1f3fd",
  59579. "uc_greedy": "270c-fe0f-1f3fd",
  59580. "shortnames": [],
  59581. "category": "people"
  59582. },
  59583. ":v_tone4:": {
  59584. "uc_base": "270c-1f3fe",
  59585. "uc_output": "270c-1f3fe",
  59586. "uc_match": "270c-fe0f-1f3fe",
  59587. "uc_greedy": "270c-fe0f-1f3fe",
  59588. "shortnames": [],
  59589. "category": "people"
  59590. },
  59591. ":v_tone5:": {
  59592. "uc_base": "270c-1f3ff",
  59593. "uc_output": "270c-1f3ff",
  59594. "uc_match": "270c-fe0f-1f3ff",
  59595. "uc_greedy": "270c-fe0f-1f3ff",
  59596. "shortnames": [],
  59597. "category": "people"
  59598. },
  59599. ":writing_hand_tone1:": {
  59600. "uc_base": "270d-1f3fb",
  59601. "uc_output": "270d-1f3fb",
  59602. "uc_match": "270d-fe0f-1f3fb",
  59603. "uc_greedy": "270d-fe0f-1f3fb",
  59604. "shortnames": [],
  59605. "category": "people"
  59606. },
  59607. ":writing_hand_tone2:": {
  59608. "uc_base": "270d-1f3fc",
  59609. "uc_output": "270d-1f3fc",
  59610. "uc_match": "270d-fe0f-1f3fc",
  59611. "uc_greedy": "270d-fe0f-1f3fc",
  59612. "shortnames": [],
  59613. "category": "people"
  59614. },
  59615. ":writing_hand_tone3:": {
  59616. "uc_base": "270d-1f3fd",
  59617. "uc_output": "270d-1f3fd",
  59618. "uc_match": "270d-fe0f-1f3fd",
  59619. "uc_greedy": "270d-fe0f-1f3fd",
  59620. "shortnames": [],
  59621. "category": "people"
  59622. },
  59623. ":writing_hand_tone4:": {
  59624. "uc_base": "270d-1f3fe",
  59625. "uc_output": "270d-1f3fe",
  59626. "uc_match": "270d-fe0f-1f3fe",
  59627. "uc_greedy": "270d-fe0f-1f3fe",
  59628. "shortnames": [],
  59629. "category": "people"
  59630. },
  59631. ":writing_hand_tone5:": {
  59632. "uc_base": "270d-1f3ff",
  59633. "uc_output": "270d-1f3ff",
  59634. "uc_match": "270d-fe0f-1f3ff",
  59635. "uc_greedy": "270d-fe0f-1f3ff",
  59636. "shortnames": [],
  59637. "category": "people"
  59638. },
  59639. ":100:": {
  59640. "uc_base": "1f4af",
  59641. "uc_output": "1f4af",
  59642. "uc_match": "1f4af",
  59643. "uc_greedy": "1f4af",
  59644. "shortnames": [],
  59645. "category": "symbols"
  59646. },
  59647. ":1234:": {
  59648. "uc_base": "1f522",
  59649. "uc_output": "1f522",
  59650. "uc_match": "1f522",
  59651. "uc_greedy": "1f522",
  59652. "shortnames": [],
  59653. "category": "symbols"
  59654. },
  59655. ":8ball:": {
  59656. "uc_base": "1f3b1",
  59657. "uc_output": "1f3b1",
  59658. "uc_match": "1f3b1",
  59659. "uc_greedy": "1f3b1",
  59660. "shortnames": [],
  59661. "category": "activity"
  59662. },
  59663. ":a:": {
  59664. "uc_base": "1f170",
  59665. "uc_output": "1f170",
  59666. "uc_match": "1f170-fe0f",
  59667. "uc_greedy": "1f170-fe0f",
  59668. "shortnames": [],
  59669. "category": "symbols"
  59670. },
  59671. ":ab:": {
  59672. "uc_base": "1f18e",
  59673. "uc_output": "1f18e",
  59674. "uc_match": "1f18e",
  59675. "uc_greedy": "1f18e",
  59676. "shortnames": [],
  59677. "category": "symbols"
  59678. },
  59679. ":abc:": {
  59680. "uc_base": "1f524",
  59681. "uc_output": "1f524",
  59682. "uc_match": "1f524",
  59683. "uc_greedy": "1f524",
  59684. "shortnames": [],
  59685. "category": "symbols"
  59686. },
  59687. ":abcd:": {
  59688. "uc_base": "1f521",
  59689. "uc_output": "1f521",
  59690. "uc_match": "1f521",
  59691. "uc_greedy": "1f521",
  59692. "shortnames": [],
  59693. "category": "symbols"
  59694. },
  59695. ":accept:": {
  59696. "uc_base": "1f251",
  59697. "uc_output": "1f251",
  59698. "uc_match": "1f251",
  59699. "uc_greedy": "1f251",
  59700. "shortnames": [],
  59701. "category": "symbols"
  59702. },
  59703. ":adult:": {
  59704. "uc_base": "1f9d1",
  59705. "uc_output": "1f9d1",
  59706. "uc_match": "1f9d1",
  59707. "uc_greedy": "1f9d1",
  59708. "shortnames": [],
  59709. "category": "people"
  59710. },
  59711. ":aerial_tramway:": {
  59712. "uc_base": "1f6a1",
  59713. "uc_output": "1f6a1",
  59714. "uc_match": "1f6a1",
  59715. "uc_greedy": "1f6a1",
  59716. "shortnames": [],
  59717. "category": "travel"
  59718. },
  59719. ":airplane_arriving:": {
  59720. "uc_base": "1f6ec",
  59721. "uc_output": "1f6ec",
  59722. "uc_match": "1f6ec",
  59723. "uc_greedy": "1f6ec",
  59724. "shortnames": [],
  59725. "category": "travel"
  59726. },
  59727. ":airplane_departure:": {
  59728. "uc_base": "1f6eb",
  59729. "uc_output": "1f6eb",
  59730. "uc_match": "1f6eb",
  59731. "uc_greedy": "1f6eb",
  59732. "shortnames": [],
  59733. "category": "travel"
  59734. },
  59735. ":airplane_small:": {
  59736. "uc_base": "1f6e9",
  59737. "uc_output": "1f6e9",
  59738. "uc_match": "1f6e9-fe0f",
  59739. "uc_greedy": "1f6e9-fe0f",
  59740. "shortnames": [":small_airplane:"],
  59741. "category": "travel"
  59742. },
  59743. ":alien:": {
  59744. "uc_base": "1f47d",
  59745. "uc_output": "1f47d",
  59746. "uc_match": "1f47d-fe0f",
  59747. "uc_greedy": "1f47d-fe0f",
  59748. "shortnames": [],
  59749. "category": "people"
  59750. },
  59751. ":ambulance:": {
  59752. "uc_base": "1f691",
  59753. "uc_output": "1f691",
  59754. "uc_match": "1f691-fe0f",
  59755. "uc_greedy": "1f691-fe0f",
  59756. "shortnames": [],
  59757. "category": "travel"
  59758. },
  59759. ":amphora:": {
  59760. "uc_base": "1f3fa",
  59761. "uc_output": "1f3fa",
  59762. "uc_match": "1f3fa",
  59763. "uc_greedy": "1f3fa",
  59764. "shortnames": [],
  59765. "category": "objects"
  59766. },
  59767. ":angel:": {
  59768. "uc_base": "1f47c",
  59769. "uc_output": "1f47c",
  59770. "uc_match": "1f47c",
  59771. "uc_greedy": "1f47c",
  59772. "shortnames": [],
  59773. "category": "people"
  59774. },
  59775. ":anger:": {
  59776. "uc_base": "1f4a2",
  59777. "uc_output": "1f4a2",
  59778. "uc_match": "1f4a2",
  59779. "uc_greedy": "1f4a2",
  59780. "shortnames": [],
  59781. "category": "symbols"
  59782. },
  59783. ":anger_right:": {
  59784. "uc_base": "1f5ef",
  59785. "uc_output": "1f5ef",
  59786. "uc_match": "1f5ef-fe0f",
  59787. "uc_greedy": "1f5ef-fe0f",
  59788. "shortnames": [":right_anger_bubble:"],
  59789. "category": "symbols"
  59790. },
  59791. ":angry:": {
  59792. "uc_base": "1f620",
  59793. "uc_output": "1f620",
  59794. "uc_match": "1f620",
  59795. "uc_greedy": "1f620",
  59796. "shortnames": [],
  59797. "category": "people"
  59798. },
  59799. ":anguished:": {
  59800. "uc_base": "1f627",
  59801. "uc_output": "1f627",
  59802. "uc_match": "1f627",
  59803. "uc_greedy": "1f627",
  59804. "shortnames": [],
  59805. "category": "people"
  59806. },
  59807. ":ant:": {
  59808. "uc_base": "1f41c",
  59809. "uc_output": "1f41c",
  59810. "uc_match": "1f41c",
  59811. "uc_greedy": "1f41c",
  59812. "shortnames": [],
  59813. "category": "nature"
  59814. },
  59815. ":apple:": {
  59816. "uc_base": "1f34e",
  59817. "uc_output": "1f34e",
  59818. "uc_match": "1f34e",
  59819. "uc_greedy": "1f34e",
  59820. "shortnames": [],
  59821. "category": "food"
  59822. },
  59823. ":arrow_down_small:": {
  59824. "uc_base": "1f53d",
  59825. "uc_output": "1f53d",
  59826. "uc_match": "1f53d",
  59827. "uc_greedy": "1f53d",
  59828. "shortnames": [],
  59829. "category": "symbols"
  59830. },
  59831. ":arrow_up_small:": {
  59832. "uc_base": "1f53c",
  59833. "uc_output": "1f53c",
  59834. "uc_match": "1f53c",
  59835. "uc_greedy": "1f53c",
  59836. "shortnames": [],
  59837. "category": "symbols"
  59838. },
  59839. ":arrows_clockwise:": {
  59840. "uc_base": "1f503",
  59841. "uc_output": "1f503",
  59842. "uc_match": "1f503",
  59843. "uc_greedy": "1f503",
  59844. "shortnames": [],
  59845. "category": "symbols"
  59846. },
  59847. ":arrows_counterclockwise:": {
  59848. "uc_base": "1f504",
  59849. "uc_output": "1f504",
  59850. "uc_match": "1f504",
  59851. "uc_greedy": "1f504",
  59852. "shortnames": [],
  59853. "category": "symbols"
  59854. },
  59855. ":art:": {
  59856. "uc_base": "1f3a8",
  59857. "uc_output": "1f3a8",
  59858. "uc_match": "1f3a8",
  59859. "uc_greedy": "1f3a8",
  59860. "shortnames": [],
  59861. "category": "activity"
  59862. },
  59863. ":articulated_lorry:": {
  59864. "uc_base": "1f69b",
  59865. "uc_output": "1f69b",
  59866. "uc_match": "1f69b",
  59867. "uc_greedy": "1f69b",
  59868. "shortnames": [],
  59869. "category": "travel"
  59870. },
  59871. ":astonished:": {
  59872. "uc_base": "1f632",
  59873. "uc_output": "1f632",
  59874. "uc_match": "1f632",
  59875. "uc_greedy": "1f632",
  59876. "shortnames": [],
  59877. "category": "people"
  59878. },
  59879. ":athletic_shoe:": {
  59880. "uc_base": "1f45f",
  59881. "uc_output": "1f45f",
  59882. "uc_match": "1f45f",
  59883. "uc_greedy": "1f45f",
  59884. "shortnames": [],
  59885. "category": "people"
  59886. },
  59887. ":atm:": {
  59888. "uc_base": "1f3e7",
  59889. "uc_output": "1f3e7",
  59890. "uc_match": "1f3e7",
  59891. "uc_greedy": "1f3e7",
  59892. "shortnames": [],
  59893. "category": "symbols"
  59894. },
  59895. ":avocado:": {
  59896. "uc_base": "1f951",
  59897. "uc_output": "1f951",
  59898. "uc_match": "1f951",
  59899. "uc_greedy": "1f951",
  59900. "shortnames": [],
  59901. "category": "food"
  59902. },
  59903. ":b:": {
  59904. "uc_base": "1f171",
  59905. "uc_output": "1f171",
  59906. "uc_match": "1f171-fe0f",
  59907. "uc_greedy": "1f171-fe0f",
  59908. "shortnames": [],
  59909. "category": "symbols"
  59910. },
  59911. ":baby:": {
  59912. "uc_base": "1f476",
  59913. "uc_output": "1f476",
  59914. "uc_match": "1f476",
  59915. "uc_greedy": "1f476",
  59916. "shortnames": [],
  59917. "category": "people"
  59918. },
  59919. ":baby_bottle:": {
  59920. "uc_base": "1f37c",
  59921. "uc_output": "1f37c",
  59922. "uc_match": "1f37c",
  59923. "uc_greedy": "1f37c",
  59924. "shortnames": [],
  59925. "category": "food"
  59926. },
  59927. ":baby_chick:": {
  59928. "uc_base": "1f424",
  59929. "uc_output": "1f424",
  59930. "uc_match": "1f424",
  59931. "uc_greedy": "1f424",
  59932. "shortnames": [],
  59933. "category": "nature"
  59934. },
  59935. ":baby_symbol:": {
  59936. "uc_base": "1f6bc",
  59937. "uc_output": "1f6bc",
  59938. "uc_match": "1f6bc-fe0f",
  59939. "uc_greedy": "1f6bc-fe0f",
  59940. "shortnames": [],
  59941. "category": "symbols"
  59942. },
  59943. ":back:": {
  59944. "uc_base": "1f519",
  59945. "uc_output": "1f519",
  59946. "uc_match": "1f519",
  59947. "uc_greedy": "1f519",
  59948. "shortnames": [],
  59949. "category": "symbols"
  59950. },
  59951. ":bacon:": {
  59952. "uc_base": "1f953",
  59953. "uc_output": "1f953",
  59954. "uc_match": "1f953",
  59955. "uc_greedy": "1f953",
  59956. "shortnames": [],
  59957. "category": "food"
  59958. },
  59959. ":badminton:": {
  59960. "uc_base": "1f3f8",
  59961. "uc_output": "1f3f8",
  59962. "uc_match": "1f3f8",
  59963. "uc_greedy": "1f3f8",
  59964. "shortnames": [],
  59965. "category": "activity"
  59966. },
  59967. ":baggage_claim:": {
  59968. "uc_base": "1f6c4",
  59969. "uc_output": "1f6c4",
  59970. "uc_match": "1f6c4",
  59971. "uc_greedy": "1f6c4",
  59972. "shortnames": [],
  59973. "category": "symbols"
  59974. },
  59975. ":balloon:": {
  59976. "uc_base": "1f388",
  59977. "uc_output": "1f388",
  59978. "uc_match": "1f388",
  59979. "uc_greedy": "1f388",
  59980. "shortnames": [],
  59981. "category": "objects"
  59982. },
  59983. ":ballot_box:": {
  59984. "uc_base": "1f5f3",
  59985. "uc_output": "1f5f3",
  59986. "uc_match": "1f5f3-fe0f",
  59987. "uc_greedy": "1f5f3-fe0f",
  59988. "shortnames": [":ballot_box_with_ballot:"],
  59989. "category": "objects"
  59990. },
  59991. ":bamboo:": {
  59992. "uc_base": "1f38d",
  59993. "uc_output": "1f38d",
  59994. "uc_match": "1f38d",
  59995. "uc_greedy": "1f38d",
  59996. "shortnames": [],
  59997. "category": "nature"
  59998. },
  59999. ":banana:": {
  60000. "uc_base": "1f34c",
  60001. "uc_output": "1f34c",
  60002. "uc_match": "1f34c",
  60003. "uc_greedy": "1f34c",
  60004. "shortnames": [],
  60005. "category": "food"
  60006. },
  60007. ":bank:": {
  60008. "uc_base": "1f3e6",
  60009. "uc_output": "1f3e6",
  60010. "uc_match": "1f3e6",
  60011. "uc_greedy": "1f3e6",
  60012. "shortnames": [],
  60013. "category": "travel"
  60014. },
  60015. ":bar_chart:": {
  60016. "uc_base": "1f4ca",
  60017. "uc_output": "1f4ca",
  60018. "uc_match": "1f4ca",
  60019. "uc_greedy": "1f4ca",
  60020. "shortnames": [],
  60021. "category": "objects"
  60022. },
  60023. ":barber:": {
  60024. "uc_base": "1f488",
  60025. "uc_output": "1f488",
  60026. "uc_match": "1f488",
  60027. "uc_greedy": "1f488",
  60028. "shortnames": [],
  60029. "category": "objects"
  60030. },
  60031. ":basketball:": {
  60032. "uc_base": "1f3c0",
  60033. "uc_output": "1f3c0",
  60034. "uc_match": "1f3c0",
  60035. "uc_greedy": "1f3c0",
  60036. "shortnames": [],
  60037. "category": "activity"
  60038. },
  60039. ":bat:": {
  60040. "uc_base": "1f987",
  60041. "uc_output": "1f987",
  60042. "uc_match": "1f987",
  60043. "uc_greedy": "1f987",
  60044. "shortnames": [],
  60045. "category": "nature"
  60046. },
  60047. ":bath:": {
  60048. "uc_base": "1f6c0",
  60049. "uc_output": "1f6c0",
  60050. "uc_match": "1f6c0",
  60051. "uc_greedy": "1f6c0",
  60052. "shortnames": [],
  60053. "category": "objects"
  60054. },
  60055. ":bathtub:": {
  60056. "uc_base": "1f6c1",
  60057. "uc_output": "1f6c1",
  60058. "uc_match": "1f6c1",
  60059. "uc_greedy": "1f6c1",
  60060. "shortnames": [],
  60061. "category": "objects"
  60062. },
  60063. ":battery:": {
  60064. "uc_base": "1f50b",
  60065. "uc_output": "1f50b",
  60066. "uc_match": "1f50b",
  60067. "uc_greedy": "1f50b",
  60068. "shortnames": [],
  60069. "category": "objects"
  60070. },
  60071. ":beach:": {
  60072. "uc_base": "1f3d6",
  60073. "uc_output": "1f3d6",
  60074. "uc_match": "1f3d6-fe0f",
  60075. "uc_greedy": "1f3d6-fe0f",
  60076. "shortnames": [":beach_with_umbrella:"],
  60077. "category": "travel"
  60078. },
  60079. ":bear:": {
  60080. "uc_base": "1f43b",
  60081. "uc_output": "1f43b",
  60082. "uc_match": "1f43b",
  60083. "uc_greedy": "1f43b",
  60084. "shortnames": [],
  60085. "category": "nature"
  60086. },
  60087. ":bearded_person:": {
  60088. "uc_base": "1f9d4",
  60089. "uc_output": "1f9d4",
  60090. "uc_match": "1f9d4",
  60091. "uc_greedy": "1f9d4",
  60092. "shortnames": [],
  60093. "category": "people"
  60094. },
  60095. ":bed:": {
  60096. "uc_base": "1f6cf",
  60097. "uc_output": "1f6cf",
  60098. "uc_match": "1f6cf-fe0f",
  60099. "uc_greedy": "1f6cf-fe0f",
  60100. "shortnames": [],
  60101. "category": "objects"
  60102. },
  60103. ":bee:": {
  60104. "uc_base": "1f41d",
  60105. "uc_output": "1f41d",
  60106. "uc_match": "1f41d",
  60107. "uc_greedy": "1f41d",
  60108. "shortnames": [],
  60109. "category": "nature"
  60110. },
  60111. ":beer:": {
  60112. "uc_base": "1f37a",
  60113. "uc_output": "1f37a",
  60114. "uc_match": "1f37a",
  60115. "uc_greedy": "1f37a",
  60116. "shortnames": [],
  60117. "category": "food"
  60118. },
  60119. ":beers:": {
  60120. "uc_base": "1f37b",
  60121. "uc_output": "1f37b",
  60122. "uc_match": "1f37b",
  60123. "uc_greedy": "1f37b",
  60124. "shortnames": [],
  60125. "category": "food"
  60126. },
  60127. ":beetle:": {
  60128. "uc_base": "1f41e",
  60129. "uc_output": "1f41e",
  60130. "uc_match": "1f41e",
  60131. "uc_greedy": "1f41e",
  60132. "shortnames": [],
  60133. "category": "nature"
  60134. },
  60135. ":beginner:": {
  60136. "uc_base": "1f530",
  60137. "uc_output": "1f530",
  60138. "uc_match": "1f530",
  60139. "uc_greedy": "1f530",
  60140. "shortnames": [],
  60141. "category": "symbols"
  60142. },
  60143. ":bell:": {
  60144. "uc_base": "1f514",
  60145. "uc_output": "1f514",
  60146. "uc_match": "1f514",
  60147. "uc_greedy": "1f514",
  60148. "shortnames": [],
  60149. "category": "symbols"
  60150. },
  60151. ":bellhop:": {
  60152. "uc_base": "1f6ce",
  60153. "uc_output": "1f6ce",
  60154. "uc_match": "1f6ce-fe0f",
  60155. "uc_greedy": "1f6ce-fe0f",
  60156. "shortnames": [":bellhop_bell:"],
  60157. "category": "objects"
  60158. },
  60159. ":bento:": {
  60160. "uc_base": "1f371",
  60161. "uc_output": "1f371",
  60162. "uc_match": "1f371",
  60163. "uc_greedy": "1f371",
  60164. "shortnames": [],
  60165. "category": "food"
  60166. },
  60167. ":bike:": {
  60168. "uc_base": "1f6b2",
  60169. "uc_output": "1f6b2",
  60170. "uc_match": "1f6b2-fe0f",
  60171. "uc_greedy": "1f6b2-fe0f",
  60172. "shortnames": [],
  60173. "category": "travel"
  60174. },
  60175. ":bikini:": {
  60176. "uc_base": "1f459",
  60177. "uc_output": "1f459",
  60178. "uc_match": "1f459",
  60179. "uc_greedy": "1f459",
  60180. "shortnames": [],
  60181. "category": "people"
  60182. },
  60183. ":billed_cap:": {
  60184. "uc_base": "1f9e2",
  60185. "uc_output": "1f9e2",
  60186. "uc_match": "1f9e2",
  60187. "uc_greedy": "1f9e2",
  60188. "shortnames": [],
  60189. "category": "people"
  60190. },
  60191. ":bird:": {
  60192. "uc_base": "1f426",
  60193. "uc_output": "1f426",
  60194. "uc_match": "1f426-fe0f",
  60195. "uc_greedy": "1f426-fe0f",
  60196. "shortnames": [],
  60197. "category": "nature"
  60198. },
  60199. ":birthday:": {
  60200. "uc_base": "1f382",
  60201. "uc_output": "1f382",
  60202. "uc_match": "1f382",
  60203. "uc_greedy": "1f382",
  60204. "shortnames": [],
  60205. "category": "food"
  60206. },
  60207. ":black_heart:": {
  60208. "uc_base": "1f5a4",
  60209. "uc_output": "1f5a4",
  60210. "uc_match": "1f5a4",
  60211. "uc_greedy": "1f5a4",
  60212. "shortnames": [],
  60213. "category": "symbols"
  60214. },
  60215. ":black_joker:": {
  60216. "uc_base": "1f0cf",
  60217. "uc_output": "1f0cf",
  60218. "uc_match": "1f0cf",
  60219. "uc_greedy": "1f0cf",
  60220. "shortnames": [],
  60221. "category": "symbols"
  60222. },
  60223. ":black_square_button:": {
  60224. "uc_base": "1f532",
  60225. "uc_output": "1f532",
  60226. "uc_match": "1f532",
  60227. "uc_greedy": "1f532",
  60228. "shortnames": [],
  60229. "category": "symbols"
  60230. },
  60231. ":blond_haired_person:": {
  60232. "uc_base": "1f471",
  60233. "uc_output": "1f471",
  60234. "uc_match": "1f471",
  60235. "uc_greedy": "1f471",
  60236. "shortnames": [":person_with_blond_hair:"],
  60237. "category": "people"
  60238. },
  60239. ":blossom:": {
  60240. "uc_base": "1f33c",
  60241. "uc_output": "1f33c",
  60242. "uc_match": "1f33c",
  60243. "uc_greedy": "1f33c",
  60244. "shortnames": [],
  60245. "category": "nature"
  60246. },
  60247. ":blowfish:": {
  60248. "uc_base": "1f421",
  60249. "uc_output": "1f421",
  60250. "uc_match": "1f421",
  60251. "uc_greedy": "1f421",
  60252. "shortnames": [],
  60253. "category": "nature"
  60254. },
  60255. ":blue_book:": {
  60256. "uc_base": "1f4d8",
  60257. "uc_output": "1f4d8",
  60258. "uc_match": "1f4d8",
  60259. "uc_greedy": "1f4d8",
  60260. "shortnames": [],
  60261. "category": "objects"
  60262. },
  60263. ":blue_car:": {
  60264. "uc_base": "1f699",
  60265. "uc_output": "1f699",
  60266. "uc_match": "1f699",
  60267. "uc_greedy": "1f699",
  60268. "shortnames": [],
  60269. "category": "travel"
  60270. },
  60271. ":blue_circle:": {
  60272. "uc_base": "1f535",
  60273. "uc_output": "1f535",
  60274. "uc_match": "1f535",
  60275. "uc_greedy": "1f535",
  60276. "shortnames": [],
  60277. "category": "symbols"
  60278. },
  60279. ":blue_heart:": {
  60280. "uc_base": "1f499",
  60281. "uc_output": "1f499",
  60282. "uc_match": "1f499",
  60283. "uc_greedy": "1f499",
  60284. "shortnames": [],
  60285. "category": "symbols"
  60286. },
  60287. ":blush:": {
  60288. "uc_base": "1f60a",
  60289. "uc_output": "1f60a",
  60290. "uc_match": "1f60a",
  60291. "uc_greedy": "1f60a",
  60292. "shortnames": [],
  60293. "category": "people"
  60294. },
  60295. ":boar:": {
  60296. "uc_base": "1f417",
  60297. "uc_output": "1f417",
  60298. "uc_match": "1f417",
  60299. "uc_greedy": "1f417",
  60300. "shortnames": [],
  60301. "category": "nature"
  60302. },
  60303. ":bomb:": {
  60304. "uc_base": "1f4a3",
  60305. "uc_output": "1f4a3",
  60306. "uc_match": "1f4a3-fe0f",
  60307. "uc_greedy": "1f4a3-fe0f",
  60308. "shortnames": [],
  60309. "category": "objects"
  60310. },
  60311. ":book:": {
  60312. "uc_base": "1f4d6",
  60313. "uc_output": "1f4d6",
  60314. "uc_match": "1f4d6",
  60315. "uc_greedy": "1f4d6",
  60316. "shortnames": [],
  60317. "category": "objects"
  60318. },
  60319. ":bookmark:": {
  60320. "uc_base": "1f516",
  60321. "uc_output": "1f516",
  60322. "uc_match": "1f516",
  60323. "uc_greedy": "1f516",
  60324. "shortnames": [],
  60325. "category": "objects"
  60326. },
  60327. ":bookmark_tabs:": {
  60328. "uc_base": "1f4d1",
  60329. "uc_output": "1f4d1",
  60330. "uc_match": "1f4d1",
  60331. "uc_greedy": "1f4d1",
  60332. "shortnames": [],
  60333. "category": "objects"
  60334. },
  60335. ":books:": {
  60336. "uc_base": "1f4da",
  60337. "uc_output": "1f4da",
  60338. "uc_match": "1f4da-fe0f",
  60339. "uc_greedy": "1f4da-fe0f",
  60340. "shortnames": [],
  60341. "category": "objects"
  60342. },
  60343. ":boom:": {
  60344. "uc_base": "1f4a5",
  60345. "uc_output": "1f4a5",
  60346. "uc_match": "1f4a5",
  60347. "uc_greedy": "1f4a5",
  60348. "shortnames": [],
  60349. "category": "nature"
  60350. },
  60351. ":boot:": {
  60352. "uc_base": "1f462",
  60353. "uc_output": "1f462",
  60354. "uc_match": "1f462",
  60355. "uc_greedy": "1f462",
  60356. "shortnames": [],
  60357. "category": "people"
  60358. },
  60359. ":bouquet:": {
  60360. "uc_base": "1f490",
  60361. "uc_output": "1f490",
  60362. "uc_match": "1f490",
  60363. "uc_greedy": "1f490",
  60364. "shortnames": [],
  60365. "category": "nature"
  60366. },
  60367. ":bow_and_arrow:": {
  60368. "uc_base": "1f3f9",
  60369. "uc_output": "1f3f9",
  60370. "uc_match": "1f3f9",
  60371. "uc_greedy": "1f3f9",
  60372. "shortnames": [":archery:"],
  60373. "category": "activity"
  60374. },
  60375. ":bowl_with_spoon:": {
  60376. "uc_base": "1f963",
  60377. "uc_output": "1f963",
  60378. "uc_match": "1f963",
  60379. "uc_greedy": "1f963",
  60380. "shortnames": [],
  60381. "category": "food"
  60382. },
  60383. ":bowling:": {
  60384. "uc_base": "1f3b3",
  60385. "uc_output": "1f3b3",
  60386. "uc_match": "1f3b3",
  60387. "uc_greedy": "1f3b3",
  60388. "shortnames": [],
  60389. "category": "activity"
  60390. },
  60391. ":boxing_glove:": {
  60392. "uc_base": "1f94a",
  60393. "uc_output": "1f94a",
  60394. "uc_match": "1f94a",
  60395. "uc_greedy": "1f94a",
  60396. "shortnames": [":boxing_gloves:"],
  60397. "category": "activity"
  60398. },
  60399. ":boy:": {
  60400. "uc_base": "1f466",
  60401. "uc_output": "1f466",
  60402. "uc_match": "1f466",
  60403. "uc_greedy": "1f466",
  60404. "shortnames": [],
  60405. "category": "people"
  60406. },
  60407. ":brain:": {
  60408. "uc_base": "1f9e0",
  60409. "uc_output": "1f9e0",
  60410. "uc_match": "1f9e0",
  60411. "uc_greedy": "1f9e0",
  60412. "shortnames": [],
  60413. "category": "people"
  60414. },
  60415. ":bread:": {
  60416. "uc_base": "1f35e",
  60417. "uc_output": "1f35e",
  60418. "uc_match": "1f35e",
  60419. "uc_greedy": "1f35e",
  60420. "shortnames": [],
  60421. "category": "food"
  60422. },
  60423. ":breast_feeding:": {
  60424. "uc_base": "1f931",
  60425. "uc_output": "1f931",
  60426. "uc_match": "1f931",
  60427. "uc_greedy": "1f931",
  60428. "shortnames": [],
  60429. "category": "people"
  60430. },
  60431. ":bride_with_veil:": {
  60432. "uc_base": "1f470",
  60433. "uc_output": "1f470",
  60434. "uc_match": "1f470",
  60435. "uc_greedy": "1f470",
  60436. "shortnames": [],
  60437. "category": "people"
  60438. },
  60439. ":bridge_at_night:": {
  60440. "uc_base": "1f309",
  60441. "uc_output": "1f309",
  60442. "uc_match": "1f309",
  60443. "uc_greedy": "1f309",
  60444. "shortnames": [],
  60445. "category": "travel"
  60446. },
  60447. ":briefcase:": {
  60448. "uc_base": "1f4bc",
  60449. "uc_output": "1f4bc",
  60450. "uc_match": "1f4bc",
  60451. "uc_greedy": "1f4bc",
  60452. "shortnames": [],
  60453. "category": "people"
  60454. },
  60455. ":broccoli:": {
  60456. "uc_base": "1f966",
  60457. "uc_output": "1f966",
  60458. "uc_match": "1f966",
  60459. "uc_greedy": "1f966",
  60460. "shortnames": [],
  60461. "category": "food"
  60462. },
  60463. ":broken_heart:": {
  60464. "uc_base": "1f494",
  60465. "uc_output": "1f494",
  60466. "uc_match": "1f494",
  60467. "uc_greedy": "1f494",
  60468. "shortnames": [],
  60469. "category": "symbols"
  60470. },
  60471. ":bug:": {
  60472. "uc_base": "1f41b",
  60473. "uc_output": "1f41b",
  60474. "uc_match": "1f41b",
  60475. "uc_greedy": "1f41b",
  60476. "shortnames": [],
  60477. "category": "nature"
  60478. },
  60479. ":bulb:": {
  60480. "uc_base": "1f4a1",
  60481. "uc_output": "1f4a1",
  60482. "uc_match": "1f4a1",
  60483. "uc_greedy": "1f4a1",
  60484. "shortnames": [],
  60485. "category": "objects"
  60486. },
  60487. ":bullettrain_front:": {
  60488. "uc_base": "1f685",
  60489. "uc_output": "1f685",
  60490. "uc_match": "1f685",
  60491. "uc_greedy": "1f685",
  60492. "shortnames": [],
  60493. "category": "travel"
  60494. },
  60495. ":bullettrain_side:": {
  60496. "uc_base": "1f684",
  60497. "uc_output": "1f684",
  60498. "uc_match": "1f684",
  60499. "uc_greedy": "1f684",
  60500. "shortnames": [],
  60501. "category": "travel"
  60502. },
  60503. ":burrito:": {
  60504. "uc_base": "1f32f",
  60505. "uc_output": "1f32f",
  60506. "uc_match": "1f32f",
  60507. "uc_greedy": "1f32f",
  60508. "shortnames": [],
  60509. "category": "food"
  60510. },
  60511. ":bus:": {
  60512. "uc_base": "1f68c",
  60513. "uc_output": "1f68c",
  60514. "uc_match": "1f68c",
  60515. "uc_greedy": "1f68c",
  60516. "shortnames": [],
  60517. "category": "travel"
  60518. },
  60519. ":busstop:": {
  60520. "uc_base": "1f68f",
  60521. "uc_output": "1f68f",
  60522. "uc_match": "1f68f",
  60523. "uc_greedy": "1f68f",
  60524. "shortnames": [],
  60525. "category": "travel"
  60526. },
  60527. ":bust_in_silhouette:": {
  60528. "uc_base": "1f464",
  60529. "uc_output": "1f464",
  60530. "uc_match": "1f464",
  60531. "uc_greedy": "1f464",
  60532. "shortnames": [],
  60533. "category": "people"
  60534. },
  60535. ":busts_in_silhouette:": {
  60536. "uc_base": "1f465",
  60537. "uc_output": "1f465",
  60538. "uc_match": "1f465",
  60539. "uc_greedy": "1f465",
  60540. "shortnames": [],
  60541. "category": "people"
  60542. },
  60543. ":butterfly:": {
  60544. "uc_base": "1f98b",
  60545. "uc_output": "1f98b",
  60546. "uc_match": "1f98b",
  60547. "uc_greedy": "1f98b",
  60548. "shortnames": [],
  60549. "category": "nature"
  60550. },
  60551. ":cactus:": {
  60552. "uc_base": "1f335",
  60553. "uc_output": "1f335",
  60554. "uc_match": "1f335",
  60555. "uc_greedy": "1f335",
  60556. "shortnames": [],
  60557. "category": "nature"
  60558. },
  60559. ":cake:": {
  60560. "uc_base": "1f370",
  60561. "uc_output": "1f370",
  60562. "uc_match": "1f370",
  60563. "uc_greedy": "1f370",
  60564. "shortnames": [],
  60565. "category": "food"
  60566. },
  60567. ":calendar:": {
  60568. "uc_base": "1f4c6",
  60569. "uc_output": "1f4c6",
  60570. "uc_match": "1f4c6",
  60571. "uc_greedy": "1f4c6",
  60572. "shortnames": [],
  60573. "category": "objects"
  60574. },
  60575. ":calendar_spiral:": {
  60576. "uc_base": "1f5d3",
  60577. "uc_output": "1f5d3",
  60578. "uc_match": "1f5d3-fe0f",
  60579. "uc_greedy": "1f5d3-fe0f",
  60580. "shortnames": [":spiral_calendar_pad:"],
  60581. "category": "objects"
  60582. },
  60583. ":call_me:": {
  60584. "uc_base": "1f919",
  60585. "uc_output": "1f919",
  60586. "uc_match": "1f919",
  60587. "uc_greedy": "1f919",
  60588. "shortnames": [":call_me_hand:"],
  60589. "category": "people"
  60590. },
  60591. ":calling:": {
  60592. "uc_base": "1f4f2",
  60593. "uc_output": "1f4f2",
  60594. "uc_match": "1f4f2",
  60595. "uc_greedy": "1f4f2",
  60596. "shortnames": [],
  60597. "category": "objects"
  60598. },
  60599. ":camel:": {
  60600. "uc_base": "1f42b",
  60601. "uc_output": "1f42b",
  60602. "uc_match": "1f42b",
  60603. "uc_greedy": "1f42b",
  60604. "shortnames": [],
  60605. "category": "nature"
  60606. },
  60607. ":camera:": {
  60608. "uc_base": "1f4f7",
  60609. "uc_output": "1f4f7",
  60610. "uc_match": "1f4f7-fe0f",
  60611. "uc_greedy": "1f4f7-fe0f",
  60612. "shortnames": [],
  60613. "category": "objects"
  60614. },
  60615. ":camera_with_flash:": {
  60616. "uc_base": "1f4f8",
  60617. "uc_output": "1f4f8",
  60618. "uc_match": "1f4f8",
  60619. "uc_greedy": "1f4f8",
  60620. "shortnames": [],
  60621. "category": "objects"
  60622. },
  60623. ":camping:": {
  60624. "uc_base": "1f3d5",
  60625. "uc_output": "1f3d5",
  60626. "uc_match": "1f3d5-fe0f",
  60627. "uc_greedy": "1f3d5-fe0f",
  60628. "shortnames": [],
  60629. "category": "travel"
  60630. },
  60631. ":candle:": {
  60632. "uc_base": "1f56f",
  60633. "uc_output": "1f56f",
  60634. "uc_match": "1f56f-fe0f",
  60635. "uc_greedy": "1f56f-fe0f",
  60636. "shortnames": [],
  60637. "category": "objects"
  60638. },
  60639. ":candy:": {
  60640. "uc_base": "1f36c",
  60641. "uc_output": "1f36c",
  60642. "uc_match": "1f36c",
  60643. "uc_greedy": "1f36c",
  60644. "shortnames": [],
  60645. "category": "food"
  60646. },
  60647. ":canned_food:": {
  60648. "uc_base": "1f96b",
  60649. "uc_output": "1f96b",
  60650. "uc_match": "1f96b",
  60651. "uc_greedy": "1f96b",
  60652. "shortnames": [],
  60653. "category": "food"
  60654. },
  60655. ":canoe:": {
  60656. "uc_base": "1f6f6",
  60657. "uc_output": "1f6f6",
  60658. "uc_match": "1f6f6",
  60659. "uc_greedy": "1f6f6",
  60660. "shortnames": [":kayak:"],
  60661. "category": "travel"
  60662. },
  60663. ":capital_abcd:": {
  60664. "uc_base": "1f520",
  60665. "uc_output": "1f520",
  60666. "uc_match": "1f520",
  60667. "uc_greedy": "1f520",
  60668. "shortnames": [],
  60669. "category": "symbols"
  60670. },
  60671. ":card_box:": {
  60672. "uc_base": "1f5c3",
  60673. "uc_output": "1f5c3",
  60674. "uc_match": "1f5c3-fe0f",
  60675. "uc_greedy": "1f5c3-fe0f",
  60676. "shortnames": [":card_file_box:"],
  60677. "category": "objects"
  60678. },
  60679. ":card_index:": {
  60680. "uc_base": "1f4c7",
  60681. "uc_output": "1f4c7",
  60682. "uc_match": "1f4c7",
  60683. "uc_greedy": "1f4c7",
  60684. "shortnames": [],
  60685. "category": "objects"
  60686. },
  60687. ":carousel_horse:": {
  60688. "uc_base": "1f3a0",
  60689. "uc_output": "1f3a0",
  60690. "uc_match": "1f3a0",
  60691. "uc_greedy": "1f3a0",
  60692. "shortnames": [],
  60693. "category": "travel"
  60694. },
  60695. ":carrot:": {
  60696. "uc_base": "1f955",
  60697. "uc_output": "1f955",
  60698. "uc_match": "1f955",
  60699. "uc_greedy": "1f955",
  60700. "shortnames": [],
  60701. "category": "food"
  60702. },
  60703. ":cat2:": {
  60704. "uc_base": "1f408",
  60705. "uc_output": "1f408",
  60706. "uc_match": "1f408-fe0f",
  60707. "uc_greedy": "1f408-fe0f",
  60708. "shortnames": [],
  60709. "category": "nature"
  60710. },
  60711. ":cat:": {
  60712. "uc_base": "1f431",
  60713. "uc_output": "1f431",
  60714. "uc_match": "1f431",
  60715. "uc_greedy": "1f431",
  60716. "shortnames": [],
  60717. "category": "nature"
  60718. },
  60719. ":cd:": {
  60720. "uc_base": "1f4bf",
  60721. "uc_output": "1f4bf",
  60722. "uc_match": "1f4bf-fe0f",
  60723. "uc_greedy": "1f4bf-fe0f",
  60724. "shortnames": [],
  60725. "category": "objects"
  60726. },
  60727. ":champagne:": {
  60728. "uc_base": "1f37e",
  60729. "uc_output": "1f37e",
  60730. "uc_match": "1f37e",
  60731. "uc_greedy": "1f37e",
  60732. "shortnames": [":bottle_with_popping_cork:"],
  60733. "category": "food"
  60734. },
  60735. ":champagne_glass:": {
  60736. "uc_base": "1f942",
  60737. "uc_output": "1f942",
  60738. "uc_match": "1f942",
  60739. "uc_greedy": "1f942",
  60740. "shortnames": [":clinking_glass:"],
  60741. "category": "food"
  60742. },
  60743. ":chart:": {
  60744. "uc_base": "1f4b9",
  60745. "uc_output": "1f4b9",
  60746. "uc_match": "1f4b9",
  60747. "uc_greedy": "1f4b9",
  60748. "shortnames": [],
  60749. "category": "symbols"
  60750. },
  60751. ":chart_with_downwards_trend:": {
  60752. "uc_base": "1f4c9",
  60753. "uc_output": "1f4c9",
  60754. "uc_match": "1f4c9",
  60755. "uc_greedy": "1f4c9",
  60756. "shortnames": [],
  60757. "category": "objects"
  60758. },
  60759. ":chart_with_upwards_trend:": {
  60760. "uc_base": "1f4c8",
  60761. "uc_output": "1f4c8",
  60762. "uc_match": "1f4c8",
  60763. "uc_greedy": "1f4c8",
  60764. "shortnames": [],
  60765. "category": "objects"
  60766. },
  60767. ":checkered_flag:": {
  60768. "uc_base": "1f3c1",
  60769. "uc_output": "1f3c1",
  60770. "uc_match": "1f3c1",
  60771. "uc_greedy": "1f3c1",
  60772. "shortnames": [],
  60773. "category": "flags"
  60774. },
  60775. ":cheese:": {
  60776. "uc_base": "1f9c0",
  60777. "uc_output": "1f9c0",
  60778. "uc_match": "1f9c0",
  60779. "uc_greedy": "1f9c0",
  60780. "shortnames": [":cheese_wedge:"],
  60781. "category": "food"
  60782. },
  60783. ":cherries:": {
  60784. "uc_base": "1f352",
  60785. "uc_output": "1f352",
  60786. "uc_match": "1f352",
  60787. "uc_greedy": "1f352",
  60788. "shortnames": [],
  60789. "category": "food"
  60790. },
  60791. ":cherry_blossom:": {
  60792. "uc_base": "1f338",
  60793. "uc_output": "1f338",
  60794. "uc_match": "1f338",
  60795. "uc_greedy": "1f338",
  60796. "shortnames": [],
  60797. "category": "nature"
  60798. },
  60799. ":chestnut:": {
  60800. "uc_base": "1f330",
  60801. "uc_output": "1f330",
  60802. "uc_match": "1f330",
  60803. "uc_greedy": "1f330",
  60804. "shortnames": [],
  60805. "category": "food"
  60806. },
  60807. ":chicken:": {
  60808. "uc_base": "1f414",
  60809. "uc_output": "1f414",
  60810. "uc_match": "1f414",
  60811. "uc_greedy": "1f414",
  60812. "shortnames": [],
  60813. "category": "nature"
  60814. },
  60815. ":child:": {
  60816. "uc_base": "1f9d2",
  60817. "uc_output": "1f9d2",
  60818. "uc_match": "1f9d2",
  60819. "uc_greedy": "1f9d2",
  60820. "shortnames": [],
  60821. "category": "people"
  60822. },
  60823. ":children_crossing:": {
  60824. "uc_base": "1f6b8",
  60825. "uc_output": "1f6b8",
  60826. "uc_match": "1f6b8",
  60827. "uc_greedy": "1f6b8",
  60828. "shortnames": [],
  60829. "category": "symbols"
  60830. },
  60831. ":chipmunk:": {
  60832. "uc_base": "1f43f",
  60833. "uc_output": "1f43f",
  60834. "uc_match": "1f43f-fe0f",
  60835. "uc_greedy": "1f43f-fe0f",
  60836. "shortnames": [],
  60837. "category": "nature"
  60838. },
  60839. ":chocolate_bar:": {
  60840. "uc_base": "1f36b",
  60841. "uc_output": "1f36b",
  60842. "uc_match": "1f36b",
  60843. "uc_greedy": "1f36b",
  60844. "shortnames": [],
  60845. "category": "food"
  60846. },
  60847. ":chopsticks:": {
  60848. "uc_base": "1f962",
  60849. "uc_output": "1f962",
  60850. "uc_match": "1f962",
  60851. "uc_greedy": "1f962",
  60852. "shortnames": [],
  60853. "category": "food"
  60854. },
  60855. ":christmas_tree:": {
  60856. "uc_base": "1f384",
  60857. "uc_output": "1f384",
  60858. "uc_match": "1f384",
  60859. "uc_greedy": "1f384",
  60860. "shortnames": [],
  60861. "category": "nature"
  60862. },
  60863. ":cinema:": {
  60864. "uc_base": "1f3a6",
  60865. "uc_output": "1f3a6",
  60866. "uc_match": "1f3a6",
  60867. "uc_greedy": "1f3a6",
  60868. "shortnames": [],
  60869. "category": "symbols"
  60870. },
  60871. ":circus_tent:": {
  60872. "uc_base": "1f3aa",
  60873. "uc_output": "1f3aa",
  60874. "uc_match": "1f3aa",
  60875. "uc_greedy": "1f3aa",
  60876. "shortnames": [],
  60877. "category": "activity"
  60878. },
  60879. ":city_dusk:": {
  60880. "uc_base": "1f306",
  60881. "uc_output": "1f306",
  60882. "uc_match": "1f306",
  60883. "uc_greedy": "1f306",
  60884. "shortnames": [],
  60885. "category": "travel"
  60886. },
  60887. ":city_sunset:": {
  60888. "uc_base": "1f307",
  60889. "uc_output": "1f307",
  60890. "uc_match": "1f307",
  60891. "uc_greedy": "1f307",
  60892. "shortnames": [":city_sunrise:"],
  60893. "category": "travel"
  60894. },
  60895. ":cityscape:": {
  60896. "uc_base": "1f3d9",
  60897. "uc_output": "1f3d9",
  60898. "uc_match": "1f3d9-fe0f",
  60899. "uc_greedy": "1f3d9-fe0f",
  60900. "shortnames": [],
  60901. "category": "travel"
  60902. },
  60903. ":cl:": {
  60904. "uc_base": "1f191",
  60905. "uc_output": "1f191",
  60906. "uc_match": "1f191",
  60907. "uc_greedy": "1f191",
  60908. "shortnames": [],
  60909. "category": "symbols"
  60910. },
  60911. ":clap:": {
  60912. "uc_base": "1f44f",
  60913. "uc_output": "1f44f",
  60914. "uc_match": "1f44f",
  60915. "uc_greedy": "1f44f",
  60916. "shortnames": [],
  60917. "category": "people"
  60918. },
  60919. ":clapper:": {
  60920. "uc_base": "1f3ac",
  60921. "uc_output": "1f3ac",
  60922. "uc_match": "1f3ac-fe0f",
  60923. "uc_greedy": "1f3ac-fe0f",
  60924. "shortnames": [],
  60925. "category": "activity"
  60926. },
  60927. ":classical_building:": {
  60928. "uc_base": "1f3db",
  60929. "uc_output": "1f3db",
  60930. "uc_match": "1f3db-fe0f",
  60931. "uc_greedy": "1f3db-fe0f",
  60932. "shortnames": [],
  60933. "category": "travel"
  60934. },
  60935. ":clipboard:": {
  60936. "uc_base": "1f4cb",
  60937. "uc_output": "1f4cb",
  60938. "uc_match": "1f4cb-fe0f",
  60939. "uc_greedy": "1f4cb-fe0f",
  60940. "shortnames": [],
  60941. "category": "objects"
  60942. },
  60943. ":clock1030:": {
  60944. "uc_base": "1f565",
  60945. "uc_output": "1f565",
  60946. "uc_match": "1f565-fe0f",
  60947. "uc_greedy": "1f565-fe0f",
  60948. "shortnames": [],
  60949. "category": "symbols"
  60950. },
  60951. ":clock10:": {
  60952. "uc_base": "1f559",
  60953. "uc_output": "1f559",
  60954. "uc_match": "1f559-fe0f",
  60955. "uc_greedy": "1f559-fe0f",
  60956. "shortnames": [],
  60957. "category": "symbols"
  60958. },
  60959. ":clock1130:": {
  60960. "uc_base": "1f566",
  60961. "uc_output": "1f566",
  60962. "uc_match": "1f566-fe0f",
  60963. "uc_greedy": "1f566-fe0f",
  60964. "shortnames": [],
  60965. "category": "symbols"
  60966. },
  60967. ":clock11:": {
  60968. "uc_base": "1f55a",
  60969. "uc_output": "1f55a",
  60970. "uc_match": "1f55a-fe0f",
  60971. "uc_greedy": "1f55a-fe0f",
  60972. "shortnames": [],
  60973. "category": "symbols"
  60974. },
  60975. ":clock1230:": {
  60976. "uc_base": "1f567",
  60977. "uc_output": "1f567",
  60978. "uc_match": "1f567-fe0f",
  60979. "uc_greedy": "1f567-fe0f",
  60980. "shortnames": [],
  60981. "category": "symbols"
  60982. },
  60983. ":clock12:": {
  60984. "uc_base": "1f55b",
  60985. "uc_output": "1f55b",
  60986. "uc_match": "1f55b-fe0f",
  60987. "uc_greedy": "1f55b-fe0f",
  60988. "shortnames": [],
  60989. "category": "symbols"
  60990. },
  60991. ":clock130:": {
  60992. "uc_base": "1f55c",
  60993. "uc_output": "1f55c",
  60994. "uc_match": "1f55c-fe0f",
  60995. "uc_greedy": "1f55c-fe0f",
  60996. "shortnames": [],
  60997. "category": "symbols"
  60998. },
  60999. ":clock1:": {
  61000. "uc_base": "1f550",
  61001. "uc_output": "1f550",
  61002. "uc_match": "1f550-fe0f",
  61003. "uc_greedy": "1f550-fe0f",
  61004. "shortnames": [],
  61005. "category": "symbols"
  61006. },
  61007. ":clock230:": {
  61008. "uc_base": "1f55d",
  61009. "uc_output": "1f55d",
  61010. "uc_match": "1f55d-fe0f",
  61011. "uc_greedy": "1f55d-fe0f",
  61012. "shortnames": [],
  61013. "category": "symbols"
  61014. },
  61015. ":clock2:": {
  61016. "uc_base": "1f551",
  61017. "uc_output": "1f551",
  61018. "uc_match": "1f551-fe0f",
  61019. "uc_greedy": "1f551-fe0f",
  61020. "shortnames": [],
  61021. "category": "symbols"
  61022. },
  61023. ":clock330:": {
  61024. "uc_base": "1f55e",
  61025. "uc_output": "1f55e",
  61026. "uc_match": "1f55e-fe0f",
  61027. "uc_greedy": "1f55e-fe0f",
  61028. "shortnames": [],
  61029. "category": "symbols"
  61030. },
  61031. ":clock3:": {
  61032. "uc_base": "1f552",
  61033. "uc_output": "1f552",
  61034. "uc_match": "1f552-fe0f",
  61035. "uc_greedy": "1f552-fe0f",
  61036. "shortnames": [],
  61037. "category": "symbols"
  61038. },
  61039. ":clock430:": {
  61040. "uc_base": "1f55f",
  61041. "uc_output": "1f55f",
  61042. "uc_match": "1f55f-fe0f",
  61043. "uc_greedy": "1f55f-fe0f",
  61044. "shortnames": [],
  61045. "category": "symbols"
  61046. },
  61047. ":clock4:": {
  61048. "uc_base": "1f553",
  61049. "uc_output": "1f553",
  61050. "uc_match": "1f553-fe0f",
  61051. "uc_greedy": "1f553-fe0f",
  61052. "shortnames": [],
  61053. "category": "symbols"
  61054. },
  61055. ":clock530:": {
  61056. "uc_base": "1f560",
  61057. "uc_output": "1f560",
  61058. "uc_match": "1f560-fe0f",
  61059. "uc_greedy": "1f560-fe0f",
  61060. "shortnames": [],
  61061. "category": "symbols"
  61062. },
  61063. ":clock5:": {
  61064. "uc_base": "1f554",
  61065. "uc_output": "1f554",
  61066. "uc_match": "1f554-fe0f",
  61067. "uc_greedy": "1f554-fe0f",
  61068. "shortnames": [],
  61069. "category": "symbols"
  61070. },
  61071. ":clock630:": {
  61072. "uc_base": "1f561",
  61073. "uc_output": "1f561",
  61074. "uc_match": "1f561-fe0f",
  61075. "uc_greedy": "1f561-fe0f",
  61076. "shortnames": [],
  61077. "category": "symbols"
  61078. },
  61079. ":clock6:": {
  61080. "uc_base": "1f555",
  61081. "uc_output": "1f555",
  61082. "uc_match": "1f555-fe0f",
  61083. "uc_greedy": "1f555-fe0f",
  61084. "shortnames": [],
  61085. "category": "symbols"
  61086. },
  61087. ":clock730:": {
  61088. "uc_base": "1f562",
  61089. "uc_output": "1f562",
  61090. "uc_match": "1f562-fe0f",
  61091. "uc_greedy": "1f562-fe0f",
  61092. "shortnames": [],
  61093. "category": "symbols"
  61094. },
  61095. ":clock7:": {
  61096. "uc_base": "1f556",
  61097. "uc_output": "1f556",
  61098. "uc_match": "1f556-fe0f",
  61099. "uc_greedy": "1f556-fe0f",
  61100. "shortnames": [],
  61101. "category": "symbols"
  61102. },
  61103. ":clock830:": {
  61104. "uc_base": "1f563",
  61105. "uc_output": "1f563",
  61106. "uc_match": "1f563-fe0f",
  61107. "uc_greedy": "1f563-fe0f",
  61108. "shortnames": [],
  61109. "category": "symbols"
  61110. },
  61111. ":clock8:": {
  61112. "uc_base": "1f557",
  61113. "uc_output": "1f557",
  61114. "uc_match": "1f557-fe0f",
  61115. "uc_greedy": "1f557-fe0f",
  61116. "shortnames": [],
  61117. "category": "symbols"
  61118. },
  61119. ":clock930:": {
  61120. "uc_base": "1f564",
  61121. "uc_output": "1f564",
  61122. "uc_match": "1f564-fe0f",
  61123. "uc_greedy": "1f564-fe0f",
  61124. "shortnames": [],
  61125. "category": "symbols"
  61126. },
  61127. ":clock9:": {
  61128. "uc_base": "1f558",
  61129. "uc_output": "1f558",
  61130. "uc_match": "1f558-fe0f",
  61131. "uc_greedy": "1f558-fe0f",
  61132. "shortnames": [],
  61133. "category": "symbols"
  61134. },
  61135. ":clock:": {
  61136. "uc_base": "1f570",
  61137. "uc_output": "1f570",
  61138. "uc_match": "1f570-fe0f",
  61139. "uc_greedy": "1f570-fe0f",
  61140. "shortnames": [":mantlepiece_clock:"],
  61141. "category": "objects"
  61142. },
  61143. ":closed_book:": {
  61144. "uc_base": "1f4d5",
  61145. "uc_output": "1f4d5",
  61146. "uc_match": "1f4d5",
  61147. "uc_greedy": "1f4d5",
  61148. "shortnames": [],
  61149. "category": "objects"
  61150. },
  61151. ":closed_lock_with_key:": {
  61152. "uc_base": "1f510",
  61153. "uc_output": "1f510",
  61154. "uc_match": "1f510",
  61155. "uc_greedy": "1f510",
  61156. "shortnames": [],
  61157. "category": "objects"
  61158. },
  61159. ":closed_umbrella:": {
  61160. "uc_base": "1f302",
  61161. "uc_output": "1f302",
  61162. "uc_match": "1f302",
  61163. "uc_greedy": "1f302",
  61164. "shortnames": [],
  61165. "category": "people"
  61166. },
  61167. ":cloud_lightning:": {
  61168. "uc_base": "1f329",
  61169. "uc_output": "1f329",
  61170. "uc_match": "1f329-fe0f",
  61171. "uc_greedy": "1f329-fe0f",
  61172. "shortnames": [":cloud_with_lightning:"],
  61173. "category": "nature"
  61174. },
  61175. ":cloud_rain:": {
  61176. "uc_base": "1f327",
  61177. "uc_output": "1f327",
  61178. "uc_match": "1f327-fe0f",
  61179. "uc_greedy": "1f327-fe0f",
  61180. "shortnames": [":cloud_with_rain:"],
  61181. "category": "nature"
  61182. },
  61183. ":cloud_snow:": {
  61184. "uc_base": "1f328",
  61185. "uc_output": "1f328",
  61186. "uc_match": "1f328-fe0f",
  61187. "uc_greedy": "1f328-fe0f",
  61188. "shortnames": [":cloud_with_snow:"],
  61189. "category": "nature"
  61190. },
  61191. ":cloud_tornado:": {
  61192. "uc_base": "1f32a",
  61193. "uc_output": "1f32a",
  61194. "uc_match": "1f32a-fe0f",
  61195. "uc_greedy": "1f32a-fe0f",
  61196. "shortnames": [":cloud_with_tornado:"],
  61197. "category": "nature"
  61198. },
  61199. ":clown:": {
  61200. "uc_base": "1f921",
  61201. "uc_output": "1f921",
  61202. "uc_match": "1f921",
  61203. "uc_greedy": "1f921",
  61204. "shortnames": [":clown_face:"],
  61205. "category": "people"
  61206. },
  61207. ":coat:": {
  61208. "uc_base": "1f9e5",
  61209. "uc_output": "1f9e5",
  61210. "uc_match": "1f9e5",
  61211. "uc_greedy": "1f9e5",
  61212. "shortnames": [],
  61213. "category": "people"
  61214. },
  61215. ":cocktail:": {
  61216. "uc_base": "1f378",
  61217. "uc_output": "1f378",
  61218. "uc_match": "1f378-fe0f",
  61219. "uc_greedy": "1f378-fe0f",
  61220. "shortnames": [],
  61221. "category": "food"
  61222. },
  61223. ":coconut:": {
  61224. "uc_base": "1f965",
  61225. "uc_output": "1f965",
  61226. "uc_match": "1f965",
  61227. "uc_greedy": "1f965",
  61228. "shortnames": [],
  61229. "category": "food"
  61230. },
  61231. ":cold_sweat:": {
  61232. "uc_base": "1f630",
  61233. "uc_output": "1f630",
  61234. "uc_match": "1f630",
  61235. "uc_greedy": "1f630",
  61236. "shortnames": [],
  61237. "category": "people"
  61238. },
  61239. ":compression:": {
  61240. "uc_base": "1f5dc",
  61241. "uc_output": "1f5dc",
  61242. "uc_match": "1f5dc-fe0f",
  61243. "uc_greedy": "1f5dc-fe0f",
  61244. "shortnames": [],
  61245. "category": "objects"
  61246. },
  61247. ":computer:": {
  61248. "uc_base": "1f4bb",
  61249. "uc_output": "1f4bb",
  61250. "uc_match": "1f4bb-fe0f",
  61251. "uc_greedy": "1f4bb-fe0f",
  61252. "shortnames": [],
  61253. "category": "objects"
  61254. },
  61255. ":confetti_ball:": {
  61256. "uc_base": "1f38a",
  61257. "uc_output": "1f38a",
  61258. "uc_match": "1f38a",
  61259. "uc_greedy": "1f38a",
  61260. "shortnames": [],
  61261. "category": "objects"
  61262. },
  61263. ":confounded:": {
  61264. "uc_base": "1f616",
  61265. "uc_output": "1f616",
  61266. "uc_match": "1f616",
  61267. "uc_greedy": "1f616",
  61268. "shortnames": [],
  61269. "category": "people"
  61270. },
  61271. ":confused:": {
  61272. "uc_base": "1f615",
  61273. "uc_output": "1f615",
  61274. "uc_match": "1f615",
  61275. "uc_greedy": "1f615",
  61276. "shortnames": [],
  61277. "category": "people"
  61278. },
  61279. ":construction:": {
  61280. "uc_base": "1f6a7",
  61281. "uc_output": "1f6a7",
  61282. "uc_match": "1f6a7",
  61283. "uc_greedy": "1f6a7",
  61284. "shortnames": [],
  61285. "category": "travel"
  61286. },
  61287. ":construction_site:": {
  61288. "uc_base": "1f3d7",
  61289. "uc_output": "1f3d7",
  61290. "uc_match": "1f3d7-fe0f",
  61291. "uc_greedy": "1f3d7-fe0f",
  61292. "shortnames": [":building_construction:"],
  61293. "category": "travel"
  61294. },
  61295. ":construction_worker:": {
  61296. "uc_base": "1f477",
  61297. "uc_output": "1f477",
  61298. "uc_match": "1f477",
  61299. "uc_greedy": "1f477",
  61300. "shortnames": [],
  61301. "category": "people"
  61302. },
  61303. ":control_knobs:": {
  61304. "uc_base": "1f39b",
  61305. "uc_output": "1f39b",
  61306. "uc_match": "1f39b-fe0f",
  61307. "uc_greedy": "1f39b-fe0f",
  61308. "shortnames": [],
  61309. "category": "objects"
  61310. },
  61311. ":convenience_store:": {
  61312. "uc_base": "1f3ea",
  61313. "uc_output": "1f3ea",
  61314. "uc_match": "1f3ea",
  61315. "uc_greedy": "1f3ea",
  61316. "shortnames": [],
  61317. "category": "travel"
  61318. },
  61319. ":cookie:": {
  61320. "uc_base": "1f36a",
  61321. "uc_output": "1f36a",
  61322. "uc_match": "1f36a",
  61323. "uc_greedy": "1f36a",
  61324. "shortnames": [],
  61325. "category": "food"
  61326. },
  61327. ":cooking:": {
  61328. "uc_base": "1f373",
  61329. "uc_output": "1f373",
  61330. "uc_match": "1f373",
  61331. "uc_greedy": "1f373",
  61332. "shortnames": [],
  61333. "category": "food"
  61334. },
  61335. ":cool:": {
  61336. "uc_base": "1f192",
  61337. "uc_output": "1f192",
  61338. "uc_match": "1f192",
  61339. "uc_greedy": "1f192",
  61340. "shortnames": [],
  61341. "category": "symbols"
  61342. },
  61343. ":corn:": {
  61344. "uc_base": "1f33d",
  61345. "uc_output": "1f33d",
  61346. "uc_match": "1f33d",
  61347. "uc_greedy": "1f33d",
  61348. "shortnames": [],
  61349. "category": "food"
  61350. },
  61351. ":couch:": {
  61352. "uc_base": "1f6cb",
  61353. "uc_output": "1f6cb",
  61354. "uc_match": "1f6cb-fe0f",
  61355. "uc_greedy": "1f6cb-fe0f",
  61356. "shortnames": [":couch_and_lamp:"],
  61357. "category": "objects"
  61358. },
  61359. ":couple:": {
  61360. "uc_base": "1f46b",
  61361. "uc_output": "1f46b",
  61362. "uc_match": "1f46b",
  61363. "uc_greedy": "1f46b",
  61364. "shortnames": [],
  61365. "category": "people"
  61366. },
  61367. ":couple_with_heart:": {
  61368. "uc_base": "1f491",
  61369. "uc_output": "1f491",
  61370. "uc_match": "1f491",
  61371. "uc_greedy": "1f491",
  61372. "shortnames": [],
  61373. "category": "people"
  61374. },
  61375. ":couplekiss:": {
  61376. "uc_base": "1f48f",
  61377. "uc_output": "1f48f",
  61378. "uc_match": "1f48f",
  61379. "uc_greedy": "1f48f",
  61380. "shortnames": [],
  61381. "category": "people"
  61382. },
  61383. ":cow2:": {
  61384. "uc_base": "1f404",
  61385. "uc_output": "1f404",
  61386. "uc_match": "1f404",
  61387. "uc_greedy": "1f404",
  61388. "shortnames": [],
  61389. "category": "nature"
  61390. },
  61391. ":cow:": {
  61392. "uc_base": "1f42e",
  61393. "uc_output": "1f42e",
  61394. "uc_match": "1f42e",
  61395. "uc_greedy": "1f42e",
  61396. "shortnames": [],
  61397. "category": "nature"
  61398. },
  61399. ":cowboy:": {
  61400. "uc_base": "1f920",
  61401. "uc_output": "1f920",
  61402. "uc_match": "1f920",
  61403. "uc_greedy": "1f920",
  61404. "shortnames": [":face_with_cowboy_hat:"],
  61405. "category": "people"
  61406. },
  61407. ":crab:": {
  61408. "uc_base": "1f980",
  61409. "uc_output": "1f980",
  61410. "uc_match": "1f980",
  61411. "uc_greedy": "1f980",
  61412. "shortnames": [],
  61413. "category": "nature"
  61414. },
  61415. ":crayon:": {
  61416. "uc_base": "1f58d",
  61417. "uc_output": "1f58d",
  61418. "uc_match": "1f58d-fe0f",
  61419. "uc_greedy": "1f58d-fe0f",
  61420. "shortnames": [":lower_left_crayon:"],
  61421. "category": "objects"
  61422. },
  61423. ":crazy_face:": {
  61424. "uc_base": "1f92a",
  61425. "uc_output": "1f92a",
  61426. "uc_match": "1f92a",
  61427. "uc_greedy": "1f92a",
  61428. "shortnames": [],
  61429. "category": "people"
  61430. },
  61431. ":credit_card:": {
  61432. "uc_base": "1f4b3",
  61433. "uc_output": "1f4b3",
  61434. "uc_match": "1f4b3-fe0f",
  61435. "uc_greedy": "1f4b3-fe0f",
  61436. "shortnames": [],
  61437. "category": "objects"
  61438. },
  61439. ":crescent_moon:": {
  61440. "uc_base": "1f319",
  61441. "uc_output": "1f319",
  61442. "uc_match": "1f319",
  61443. "uc_greedy": "1f319",
  61444. "shortnames": [],
  61445. "category": "nature"
  61446. },
  61447. ":cricket:": {
  61448. "uc_base": "1f997",
  61449. "uc_output": "1f997",
  61450. "uc_match": "1f997",
  61451. "uc_greedy": "1f997",
  61452. "shortnames": [],
  61453. "category": "nature"
  61454. },
  61455. ":cricket_game:": {
  61456. "uc_base": "1f3cf",
  61457. "uc_output": "1f3cf",
  61458. "uc_match": "1f3cf",
  61459. "uc_greedy": "1f3cf",
  61460. "shortnames": [":cricket_bat_ball:"],
  61461. "category": "activity"
  61462. },
  61463. ":crocodile:": {
  61464. "uc_base": "1f40a",
  61465. "uc_output": "1f40a",
  61466. "uc_match": "1f40a",
  61467. "uc_greedy": "1f40a",
  61468. "shortnames": [],
  61469. "category": "nature"
  61470. },
  61471. ":croissant:": {
  61472. "uc_base": "1f950",
  61473. "uc_output": "1f950",
  61474. "uc_match": "1f950",
  61475. "uc_greedy": "1f950",
  61476. "shortnames": [],
  61477. "category": "food"
  61478. },
  61479. ":crossed_flags:": {
  61480. "uc_base": "1f38c",
  61481. "uc_output": "1f38c",
  61482. "uc_match": "1f38c",
  61483. "uc_greedy": "1f38c",
  61484. "shortnames": [],
  61485. "category": "flags"
  61486. },
  61487. ":crown:": {
  61488. "uc_base": "1f451",
  61489. "uc_output": "1f451",
  61490. "uc_match": "1f451",
  61491. "uc_greedy": "1f451",
  61492. "shortnames": [],
  61493. "category": "people"
  61494. },
  61495. ":cruise_ship:": {
  61496. "uc_base": "1f6f3",
  61497. "uc_output": "1f6f3",
  61498. "uc_match": "1f6f3-fe0f",
  61499. "uc_greedy": "1f6f3-fe0f",
  61500. "shortnames": [":passenger_ship:"],
  61501. "category": "travel"
  61502. },
  61503. ":cry:": {
  61504. "uc_base": "1f622",
  61505. "uc_output": "1f622",
  61506. "uc_match": "1f622",
  61507. "uc_greedy": "1f622",
  61508. "shortnames": [],
  61509. "category": "people"
  61510. },
  61511. ":crying_cat_face:": {
  61512. "uc_base": "1f63f",
  61513. "uc_output": "1f63f",
  61514. "uc_match": "1f63f",
  61515. "uc_greedy": "1f63f",
  61516. "shortnames": [],
  61517. "category": "people"
  61518. },
  61519. ":crystal_ball:": {
  61520. "uc_base": "1f52e",
  61521. "uc_output": "1f52e",
  61522. "uc_match": "1f52e",
  61523. "uc_greedy": "1f52e",
  61524. "shortnames": [],
  61525. "category": "objects"
  61526. },
  61527. ":cucumber:": {
  61528. "uc_base": "1f952",
  61529. "uc_output": "1f952",
  61530. "uc_match": "1f952",
  61531. "uc_greedy": "1f952",
  61532. "shortnames": [],
  61533. "category": "food"
  61534. },
  61535. ":cup_with_straw:": {
  61536. "uc_base": "1f964",
  61537. "uc_output": "1f964",
  61538. "uc_match": "1f964",
  61539. "uc_greedy": "1f964",
  61540. "shortnames": [],
  61541. "category": "food"
  61542. },
  61543. ":cupid:": {
  61544. "uc_base": "1f498",
  61545. "uc_output": "1f498",
  61546. "uc_match": "1f498",
  61547. "uc_greedy": "1f498",
  61548. "shortnames": [],
  61549. "category": "symbols"
  61550. },
  61551. ":curling_stone:": {
  61552. "uc_base": "1f94c",
  61553. "uc_output": "1f94c",
  61554. "uc_match": "1f94c",
  61555. "uc_greedy": "1f94c",
  61556. "shortnames": [],
  61557. "category": "activity"
  61558. },
  61559. ":currency_exchange:": {
  61560. "uc_base": "1f4b1",
  61561. "uc_output": "1f4b1",
  61562. "uc_match": "1f4b1",
  61563. "uc_greedy": "1f4b1",
  61564. "shortnames": [],
  61565. "category": "symbols"
  61566. },
  61567. ":curry:": {
  61568. "uc_base": "1f35b",
  61569. "uc_output": "1f35b",
  61570. "uc_match": "1f35b",
  61571. "uc_greedy": "1f35b",
  61572. "shortnames": [],
  61573. "category": "food"
  61574. },
  61575. ":custard:": {
  61576. "uc_base": "1f36e",
  61577. "uc_output": "1f36e",
  61578. "uc_match": "1f36e",
  61579. "uc_greedy": "1f36e",
  61580. "shortnames": [":pudding:", ":flan:"],
  61581. "category": "food"
  61582. },
  61583. ":customs:": {
  61584. "uc_base": "1f6c3",
  61585. "uc_output": "1f6c3",
  61586. "uc_match": "1f6c3",
  61587. "uc_greedy": "1f6c3",
  61588. "shortnames": [],
  61589. "category": "symbols"
  61590. },
  61591. ":cut_of_meat:": {
  61592. "uc_base": "1f969",
  61593. "uc_output": "1f969",
  61594. "uc_match": "1f969",
  61595. "uc_greedy": "1f969",
  61596. "shortnames": [],
  61597. "category": "food"
  61598. },
  61599. ":cyclone:": {
  61600. "uc_base": "1f300",
  61601. "uc_output": "1f300",
  61602. "uc_match": "1f300",
  61603. "uc_greedy": "1f300",
  61604. "shortnames": [],
  61605. "category": "symbols"
  61606. },
  61607. ":dagger:": {
  61608. "uc_base": "1f5e1",
  61609. "uc_output": "1f5e1",
  61610. "uc_match": "1f5e1-fe0f",
  61611. "uc_greedy": "1f5e1-fe0f",
  61612. "shortnames": [":dagger_knife:"],
  61613. "category": "objects"
  61614. },
  61615. ":dancer:": {
  61616. "uc_base": "1f483",
  61617. "uc_output": "1f483",
  61618. "uc_match": "1f483",
  61619. "uc_greedy": "1f483",
  61620. "shortnames": [],
  61621. "category": "people"
  61622. },
  61623. ":dango:": {
  61624. "uc_base": "1f361",
  61625. "uc_output": "1f361",
  61626. "uc_match": "1f361",
  61627. "uc_greedy": "1f361",
  61628. "shortnames": [],
  61629. "category": "food"
  61630. },
  61631. ":dark_sunglasses:": {
  61632. "uc_base": "1f576",
  61633. "uc_output": "1f576",
  61634. "uc_match": "1f576-fe0f",
  61635. "uc_greedy": "1f576-fe0f",
  61636. "shortnames": [],
  61637. "category": "people"
  61638. },
  61639. ":dart:": {
  61640. "uc_base": "1f3af",
  61641. "uc_output": "1f3af",
  61642. "uc_match": "1f3af",
  61643. "uc_greedy": "1f3af",
  61644. "shortnames": [],
  61645. "category": "activity"
  61646. },
  61647. ":dash:": {
  61648. "uc_base": "1f4a8",
  61649. "uc_output": "1f4a8",
  61650. "uc_match": "1f4a8",
  61651. "uc_greedy": "1f4a8",
  61652. "shortnames": [],
  61653. "category": "nature"
  61654. },
  61655. ":date:": {
  61656. "uc_base": "1f4c5",
  61657. "uc_output": "1f4c5",
  61658. "uc_match": "1f4c5",
  61659. "uc_greedy": "1f4c5",
  61660. "shortnames": [],
  61661. "category": "objects"
  61662. },
  61663. ":deciduous_tree:": {
  61664. "uc_base": "1f333",
  61665. "uc_output": "1f333",
  61666. "uc_match": "1f333",
  61667. "uc_greedy": "1f333",
  61668. "shortnames": [],
  61669. "category": "nature"
  61670. },
  61671. ":deer:": {
  61672. "uc_base": "1f98c",
  61673. "uc_output": "1f98c",
  61674. "uc_match": "1f98c",
  61675. "uc_greedy": "1f98c",
  61676. "shortnames": [],
  61677. "category": "nature"
  61678. },
  61679. ":department_store:": {
  61680. "uc_base": "1f3ec",
  61681. "uc_output": "1f3ec",
  61682. "uc_match": "1f3ec",
  61683. "uc_greedy": "1f3ec",
  61684. "shortnames": [],
  61685. "category": "travel"
  61686. },
  61687. ":desert:": {
  61688. "uc_base": "1f3dc",
  61689. "uc_output": "1f3dc",
  61690. "uc_match": "1f3dc-fe0f",
  61691. "uc_greedy": "1f3dc-fe0f",
  61692. "shortnames": [],
  61693. "category": "travel"
  61694. },
  61695. ":desktop:": {
  61696. "uc_base": "1f5a5",
  61697. "uc_output": "1f5a5",
  61698. "uc_match": "1f5a5-fe0f",
  61699. "uc_greedy": "1f5a5-fe0f",
  61700. "shortnames": [":desktop_computer:"],
  61701. "category": "objects"
  61702. },
  61703. ":detective:": {
  61704. "uc_base": "1f575",
  61705. "uc_output": "1f575",
  61706. "uc_match": "1f575-fe0f",
  61707. "uc_greedy": "1f575-fe0f",
  61708. "shortnames": [":spy:", ":sleuth_or_spy:"],
  61709. "category": "people"
  61710. },
  61711. ":diamond_shape_with_a_dot_inside:": {
  61712. "uc_base": "1f4a0",
  61713. "uc_output": "1f4a0",
  61714. "uc_match": "1f4a0",
  61715. "uc_greedy": "1f4a0",
  61716. "shortnames": [],
  61717. "category": "symbols"
  61718. },
  61719. ":disappointed:": {
  61720. "uc_base": "1f61e",
  61721. "uc_output": "1f61e",
  61722. "uc_match": "1f61e",
  61723. "uc_greedy": "1f61e",
  61724. "shortnames": [],
  61725. "category": "people"
  61726. },
  61727. ":disappointed_relieved:": {
  61728. "uc_base": "1f625",
  61729. "uc_output": "1f625",
  61730. "uc_match": "1f625",
  61731. "uc_greedy": "1f625",
  61732. "shortnames": [],
  61733. "category": "people"
  61734. },
  61735. ":dividers:": {
  61736. "uc_base": "1f5c2",
  61737. "uc_output": "1f5c2",
  61738. "uc_match": "1f5c2-fe0f",
  61739. "uc_greedy": "1f5c2-fe0f",
  61740. "shortnames": [":card_index_dividers:"],
  61741. "category": "objects"
  61742. },
  61743. ":dizzy:": {
  61744. "uc_base": "1f4ab",
  61745. "uc_output": "1f4ab",
  61746. "uc_match": "1f4ab",
  61747. "uc_greedy": "1f4ab",
  61748. "shortnames": [],
  61749. "category": "nature"
  61750. },
  61751. ":dizzy_face:": {
  61752. "uc_base": "1f635",
  61753. "uc_output": "1f635",
  61754. "uc_match": "1f635",
  61755. "uc_greedy": "1f635",
  61756. "shortnames": [],
  61757. "category": "people"
  61758. },
  61759. ":do_not_litter:": {
  61760. "uc_base": "1f6af",
  61761. "uc_output": "1f6af",
  61762. "uc_match": "1f6af",
  61763. "uc_greedy": "1f6af",
  61764. "shortnames": [],
  61765. "category": "symbols"
  61766. },
  61767. ":dog2:": {
  61768. "uc_base": "1f415",
  61769. "uc_output": "1f415",
  61770. "uc_match": "1f415-fe0f",
  61771. "uc_greedy": "1f415-fe0f",
  61772. "shortnames": [],
  61773. "category": "nature"
  61774. },
  61775. ":dog:": {
  61776. "uc_base": "1f436",
  61777. "uc_output": "1f436",
  61778. "uc_match": "1f436",
  61779. "uc_greedy": "1f436",
  61780. "shortnames": [],
  61781. "category": "nature"
  61782. },
  61783. ":dollar:": {
  61784. "uc_base": "1f4b5",
  61785. "uc_output": "1f4b5",
  61786. "uc_match": "1f4b5",
  61787. "uc_greedy": "1f4b5",
  61788. "shortnames": [],
  61789. "category": "objects"
  61790. },
  61791. ":dolls:": {
  61792. "uc_base": "1f38e",
  61793. "uc_output": "1f38e",
  61794. "uc_match": "1f38e",
  61795. "uc_greedy": "1f38e",
  61796. "shortnames": [],
  61797. "category": "objects"
  61798. },
  61799. ":dolphin:": {
  61800. "uc_base": "1f42c",
  61801. "uc_output": "1f42c",
  61802. "uc_match": "1f42c",
  61803. "uc_greedy": "1f42c",
  61804. "shortnames": [],
  61805. "category": "nature"
  61806. },
  61807. ":door:": {
  61808. "uc_base": "1f6aa",
  61809. "uc_output": "1f6aa",
  61810. "uc_match": "1f6aa",
  61811. "uc_greedy": "1f6aa",
  61812. "shortnames": [],
  61813. "category": "objects"
  61814. },
  61815. ":doughnut:": {
  61816. "uc_base": "1f369",
  61817. "uc_output": "1f369",
  61818. "uc_match": "1f369",
  61819. "uc_greedy": "1f369",
  61820. "shortnames": [],
  61821. "category": "food"
  61822. },
  61823. ":dove:": {
  61824. "uc_base": "1f54a",
  61825. "uc_output": "1f54a",
  61826. "uc_match": "1f54a-fe0f",
  61827. "uc_greedy": "1f54a-fe0f",
  61828. "shortnames": [":dove_of_peace:"],
  61829. "category": "nature"
  61830. },
  61831. ":dragon:": {
  61832. "uc_base": "1f409",
  61833. "uc_output": "1f409",
  61834. "uc_match": "1f409",
  61835. "uc_greedy": "1f409",
  61836. "shortnames": [],
  61837. "category": "nature"
  61838. },
  61839. ":dragon_face:": {
  61840. "uc_base": "1f432",
  61841. "uc_output": "1f432",
  61842. "uc_match": "1f432",
  61843. "uc_greedy": "1f432",
  61844. "shortnames": [],
  61845. "category": "nature"
  61846. },
  61847. ":dress:": {
  61848. "uc_base": "1f457",
  61849. "uc_output": "1f457",
  61850. "uc_match": "1f457",
  61851. "uc_greedy": "1f457",
  61852. "shortnames": [],
  61853. "category": "people"
  61854. },
  61855. ":dromedary_camel:": {
  61856. "uc_base": "1f42a",
  61857. "uc_output": "1f42a",
  61858. "uc_match": "1f42a",
  61859. "uc_greedy": "1f42a",
  61860. "shortnames": [],
  61861. "category": "nature"
  61862. },
  61863. ":drooling_face:": {
  61864. "uc_base": "1f924",
  61865. "uc_output": "1f924",
  61866. "uc_match": "1f924",
  61867. "uc_greedy": "1f924",
  61868. "shortnames": [":drool:"],
  61869. "category": "people"
  61870. },
  61871. ":droplet:": {
  61872. "uc_base": "1f4a7",
  61873. "uc_output": "1f4a7",
  61874. "uc_match": "1f4a7",
  61875. "uc_greedy": "1f4a7",
  61876. "shortnames": [],
  61877. "category": "nature"
  61878. },
  61879. ":drum:": {
  61880. "uc_base": "1f941",
  61881. "uc_output": "1f941",
  61882. "uc_match": "1f941",
  61883. "uc_greedy": "1f941",
  61884. "shortnames": [":drum_with_drumsticks:"],
  61885. "category": "activity"
  61886. },
  61887. ":duck:": {
  61888. "uc_base": "1f986",
  61889. "uc_output": "1f986",
  61890. "uc_match": "1f986",
  61891. "uc_greedy": "1f986",
  61892. "shortnames": [],
  61893. "category": "nature"
  61894. },
  61895. ":dumpling:": {
  61896. "uc_base": "1f95f",
  61897. "uc_output": "1f95f",
  61898. "uc_match": "1f95f",
  61899. "uc_greedy": "1f95f",
  61900. "shortnames": [],
  61901. "category": "food"
  61902. },
  61903. ":dvd:": {
  61904. "uc_base": "1f4c0",
  61905. "uc_output": "1f4c0",
  61906. "uc_match": "1f4c0",
  61907. "uc_greedy": "1f4c0",
  61908. "shortnames": [],
  61909. "category": "objects"
  61910. },
  61911. ":e-mail:": {
  61912. "uc_base": "1f4e7",
  61913. "uc_output": "1f4e7",
  61914. "uc_match": "1f4e7",
  61915. "uc_greedy": "1f4e7",
  61916. "shortnames": [":email:"],
  61917. "category": "objects"
  61918. },
  61919. ":eagle:": {
  61920. "uc_base": "1f985",
  61921. "uc_output": "1f985",
  61922. "uc_match": "1f985",
  61923. "uc_greedy": "1f985",
  61924. "shortnames": [],
  61925. "category": "nature"
  61926. },
  61927. ":ear:": {
  61928. "uc_base": "1f442",
  61929. "uc_output": "1f442",
  61930. "uc_match": "1f442-fe0f",
  61931. "uc_greedy": "1f442-fe0f",
  61932. "shortnames": [],
  61933. "category": "people"
  61934. },
  61935. ":ear_of_rice:": {
  61936. "uc_base": "1f33e",
  61937. "uc_output": "1f33e",
  61938. "uc_match": "1f33e",
  61939. "uc_greedy": "1f33e",
  61940. "shortnames": [],
  61941. "category": "nature"
  61942. },
  61943. ":earth_africa:": {
  61944. "uc_base": "1f30d",
  61945. "uc_output": "1f30d",
  61946. "uc_match": "1f30d-fe0f",
  61947. "uc_greedy": "1f30d-fe0f",
  61948. "shortnames": [],
  61949. "category": "nature"
  61950. },
  61951. ":earth_americas:": {
  61952. "uc_base": "1f30e",
  61953. "uc_output": "1f30e",
  61954. "uc_match": "1f30e-fe0f",
  61955. "uc_greedy": "1f30e-fe0f",
  61956. "shortnames": [],
  61957. "category": "nature"
  61958. },
  61959. ":earth_asia:": {
  61960. "uc_base": "1f30f",
  61961. "uc_output": "1f30f",
  61962. "uc_match": "1f30f-fe0f",
  61963. "uc_greedy": "1f30f-fe0f",
  61964. "shortnames": [],
  61965. "category": "nature"
  61966. },
  61967. ":egg:": {
  61968. "uc_base": "1f95a",
  61969. "uc_output": "1f95a",
  61970. "uc_match": "1f95a",
  61971. "uc_greedy": "1f95a",
  61972. "shortnames": [],
  61973. "category": "food"
  61974. },
  61975. ":eggplant:": {
  61976. "uc_base": "1f346",
  61977. "uc_output": "1f346",
  61978. "uc_match": "1f346",
  61979. "uc_greedy": "1f346",
  61980. "shortnames": [],
  61981. "category": "food"
  61982. },
  61983. ":electric_plug:": {
  61984. "uc_base": "1f50c",
  61985. "uc_output": "1f50c",
  61986. "uc_match": "1f50c",
  61987. "uc_greedy": "1f50c",
  61988. "shortnames": [],
  61989. "category": "objects"
  61990. },
  61991. ":elephant:": {
  61992. "uc_base": "1f418",
  61993. "uc_output": "1f418",
  61994. "uc_match": "1f418",
  61995. "uc_greedy": "1f418",
  61996. "shortnames": [],
  61997. "category": "nature"
  61998. },
  61999. ":elf:": {
  62000. "uc_base": "1f9dd",
  62001. "uc_output": "1f9dd",
  62002. "uc_match": "1f9dd",
  62003. "uc_greedy": "1f9dd",
  62004. "shortnames": [],
  62005. "category": "people"
  62006. },
  62007. ":end:": {
  62008. "uc_base": "1f51a",
  62009. "uc_output": "1f51a",
  62010. "uc_match": "1f51a",
  62011. "uc_greedy": "1f51a",
  62012. "shortnames": [],
  62013. "category": "symbols"
  62014. },
  62015. ":envelope_with_arrow:": {
  62016. "uc_base": "1f4e9",
  62017. "uc_output": "1f4e9",
  62018. "uc_match": "1f4e9",
  62019. "uc_greedy": "1f4e9",
  62020. "shortnames": [],
  62021. "category": "objects"
  62022. },
  62023. ":euro:": {
  62024. "uc_base": "1f4b6",
  62025. "uc_output": "1f4b6",
  62026. "uc_match": "1f4b6",
  62027. "uc_greedy": "1f4b6",
  62028. "shortnames": [],
  62029. "category": "objects"
  62030. },
  62031. ":european_castle:": {
  62032. "uc_base": "1f3f0",
  62033. "uc_output": "1f3f0",
  62034. "uc_match": "1f3f0",
  62035. "uc_greedy": "1f3f0",
  62036. "shortnames": [],
  62037. "category": "travel"
  62038. },
  62039. ":european_post_office:": {
  62040. "uc_base": "1f3e4",
  62041. "uc_output": "1f3e4",
  62042. "uc_match": "1f3e4",
  62043. "uc_greedy": "1f3e4",
  62044. "shortnames": [],
  62045. "category": "travel"
  62046. },
  62047. ":evergreen_tree:": {
  62048. "uc_base": "1f332",
  62049. "uc_output": "1f332",
  62050. "uc_match": "1f332",
  62051. "uc_greedy": "1f332",
  62052. "shortnames": [],
  62053. "category": "nature"
  62054. },
  62055. ":exploding_head:": {
  62056. "uc_base": "1f92f",
  62057. "uc_output": "1f92f",
  62058. "uc_match": "1f92f",
  62059. "uc_greedy": "1f92f",
  62060. "shortnames": [],
  62061. "category": "people"
  62062. },
  62063. ":expressionless:": {
  62064. "uc_base": "1f611",
  62065. "uc_output": "1f611",
  62066. "uc_match": "1f611",
  62067. "uc_greedy": "1f611",
  62068. "shortnames": [],
  62069. "category": "people"
  62070. },
  62071. ":eye:": {
  62072. "uc_base": "1f441",
  62073. "uc_output": "1f441",
  62074. "uc_match": "1f441-fe0f",
  62075. "uc_greedy": "1f441-fe0f",
  62076. "shortnames": [],
  62077. "category": "people"
  62078. },
  62079. ":eyeglasses:": {
  62080. "uc_base": "1f453",
  62081. "uc_output": "1f453",
  62082. "uc_match": "1f453-fe0f",
  62083. "uc_greedy": "1f453-fe0f",
  62084. "shortnames": [],
  62085. "category": "people"
  62086. },
  62087. ":eyes:": {
  62088. "uc_base": "1f440",
  62089. "uc_output": "1f440",
  62090. "uc_match": "1f440",
  62091. "uc_greedy": "1f440",
  62092. "shortnames": [],
  62093. "category": "people"
  62094. },
  62095. ":face_vomiting:": {
  62096. "uc_base": "1f92e",
  62097. "uc_output": "1f92e",
  62098. "uc_match": "1f92e",
  62099. "uc_greedy": "1f92e",
  62100. "shortnames": [],
  62101. "category": "people"
  62102. },
  62103. ":face_with_hand_over_mouth:": {
  62104. "uc_base": "1f92d",
  62105. "uc_output": "1f92d",
  62106. "uc_match": "1f92d",
  62107. "uc_greedy": "1f92d",
  62108. "shortnames": [],
  62109. "category": "people"
  62110. },
  62111. ":face_with_monocle:": {
  62112. "uc_base": "1f9d0",
  62113. "uc_output": "1f9d0",
  62114. "uc_match": "1f9d0",
  62115. "uc_greedy": "1f9d0",
  62116. "shortnames": [],
  62117. "category": "people"
  62118. },
  62119. ":face_with_raised_eyebrow:": {
  62120. "uc_base": "1f928",
  62121. "uc_output": "1f928",
  62122. "uc_match": "1f928",
  62123. "uc_greedy": "1f928",
  62124. "shortnames": [],
  62125. "category": "people"
  62126. },
  62127. ":face_with_symbols_over_mouth:": {
  62128. "uc_base": "1f92c",
  62129. "uc_output": "1f92c",
  62130. "uc_match": "1f92c",
  62131. "uc_greedy": "1f92c",
  62132. "shortnames": [],
  62133. "category": "people"
  62134. },
  62135. ":factory:": {
  62136. "uc_base": "1f3ed",
  62137. "uc_output": "1f3ed",
  62138. "uc_match": "1f3ed-fe0f",
  62139. "uc_greedy": "1f3ed-fe0f",
  62140. "shortnames": [],
  62141. "category": "travel"
  62142. },
  62143. ":fairy:": {
  62144. "uc_base": "1f9da",
  62145. "uc_output": "1f9da",
  62146. "uc_match": "1f9da",
  62147. "uc_greedy": "1f9da",
  62148. "shortnames": [],
  62149. "category": "people"
  62150. },
  62151. ":fallen_leaf:": {
  62152. "uc_base": "1f342",
  62153. "uc_output": "1f342",
  62154. "uc_match": "1f342",
  62155. "uc_greedy": "1f342",
  62156. "shortnames": [],
  62157. "category": "nature"
  62158. },
  62159. ":family:": {
  62160. "uc_base": "1f46a",
  62161. "uc_output": "1f46a",
  62162. "uc_match": "1f46a-fe0f",
  62163. "uc_greedy": "1f46a-fe0f",
  62164. "shortnames": [],
  62165. "category": "people"
  62166. },
  62167. ":fax:": {
  62168. "uc_base": "1f4e0",
  62169. "uc_output": "1f4e0",
  62170. "uc_match": "1f4e0",
  62171. "uc_greedy": "1f4e0",
  62172. "shortnames": [],
  62173. "category": "objects"
  62174. },
  62175. ":fearful:": {
  62176. "uc_base": "1f628",
  62177. "uc_output": "1f628",
  62178. "uc_match": "1f628",
  62179. "uc_greedy": "1f628",
  62180. "shortnames": [],
  62181. "category": "people"
  62182. },
  62183. ":feet:": {
  62184. "uc_base": "1f43e",
  62185. "uc_output": "1f43e",
  62186. "uc_match": "1f43e",
  62187. "uc_greedy": "1f43e",
  62188. "shortnames": [":paw_prints:"],
  62189. "category": "nature"
  62190. },
  62191. ":ferris_wheel:": {
  62192. "uc_base": "1f3a1",
  62193. "uc_output": "1f3a1",
  62194. "uc_match": "1f3a1",
  62195. "uc_greedy": "1f3a1",
  62196. "shortnames": [],
  62197. "category": "travel"
  62198. },
  62199. ":field_hockey:": {
  62200. "uc_base": "1f3d1",
  62201. "uc_output": "1f3d1",
  62202. "uc_match": "1f3d1",
  62203. "uc_greedy": "1f3d1",
  62204. "shortnames": [],
  62205. "category": "activity"
  62206. },
  62207. ":file_cabinet:": {
  62208. "uc_base": "1f5c4",
  62209. "uc_output": "1f5c4",
  62210. "uc_match": "1f5c4-fe0f",
  62211. "uc_greedy": "1f5c4-fe0f",
  62212. "shortnames": [],
  62213. "category": "objects"
  62214. },
  62215. ":file_folder:": {
  62216. "uc_base": "1f4c1",
  62217. "uc_output": "1f4c1",
  62218. "uc_match": "1f4c1",
  62219. "uc_greedy": "1f4c1",
  62220. "shortnames": [],
  62221. "category": "objects"
  62222. },
  62223. ":film_frames:": {
  62224. "uc_base": "1f39e",
  62225. "uc_output": "1f39e",
  62226. "uc_match": "1f39e-fe0f",
  62227. "uc_greedy": "1f39e-fe0f",
  62228. "shortnames": [],
  62229. "category": "objects"
  62230. },
  62231. ":fingers_crossed:": {
  62232. "uc_base": "1f91e",
  62233. "uc_output": "1f91e",
  62234. "uc_match": "1f91e",
  62235. "uc_greedy": "1f91e",
  62236. "shortnames": [":hand_with_index_and_middle_finger_crossed:"],
  62237. "category": "people"
  62238. },
  62239. ":fire:": {
  62240. "uc_base": "1f525",
  62241. "uc_output": "1f525",
  62242. "uc_match": "1f525",
  62243. "uc_greedy": "1f525",
  62244. "shortnames": [":flame:"],
  62245. "category": "nature"
  62246. },
  62247. ":fire_engine:": {
  62248. "uc_base": "1f692",
  62249. "uc_output": "1f692",
  62250. "uc_match": "1f692",
  62251. "uc_greedy": "1f692",
  62252. "shortnames": [],
  62253. "category": "travel"
  62254. },
  62255. ":fireworks:": {
  62256. "uc_base": "1f386",
  62257. "uc_output": "1f386",
  62258. "uc_match": "1f386",
  62259. "uc_greedy": "1f386",
  62260. "shortnames": [],
  62261. "category": "travel"
  62262. },
  62263. ":first_place:": {
  62264. "uc_base": "1f947",
  62265. "uc_output": "1f947",
  62266. "uc_match": "1f947",
  62267. "uc_greedy": "1f947",
  62268. "shortnames": [":first_place_medal:"],
  62269. "category": "activity"
  62270. },
  62271. ":first_quarter_moon:": {
  62272. "uc_base": "1f313",
  62273. "uc_output": "1f313",
  62274. "uc_match": "1f313",
  62275. "uc_greedy": "1f313",
  62276. "shortnames": [],
  62277. "category": "nature"
  62278. },
  62279. ":first_quarter_moon_with_face:": {
  62280. "uc_base": "1f31b",
  62281. "uc_output": "1f31b",
  62282. "uc_match": "1f31b",
  62283. "uc_greedy": "1f31b",
  62284. "shortnames": [],
  62285. "category": "nature"
  62286. },
  62287. ":fish:": {
  62288. "uc_base": "1f41f",
  62289. "uc_output": "1f41f",
  62290. "uc_match": "1f41f-fe0f",
  62291. "uc_greedy": "1f41f-fe0f",
  62292. "shortnames": [],
  62293. "category": "nature"
  62294. },
  62295. ":fish_cake:": {
  62296. "uc_base": "1f365",
  62297. "uc_output": "1f365",
  62298. "uc_match": "1f365",
  62299. "uc_greedy": "1f365",
  62300. "shortnames": [],
  62301. "category": "food"
  62302. },
  62303. ":fishing_pole_and_fish:": {
  62304. "uc_base": "1f3a3",
  62305. "uc_output": "1f3a3",
  62306. "uc_match": "1f3a3",
  62307. "uc_greedy": "1f3a3",
  62308. "shortnames": [],
  62309. "category": "activity"
  62310. },
  62311. ":flag_black:": {
  62312. "uc_base": "1f3f4",
  62313. "uc_output": "1f3f4",
  62314. "uc_match": "1f3f4",
  62315. "uc_greedy": "1f3f4",
  62316. "shortnames": [":waving_black_flag:"],
  62317. "category": "flags"
  62318. },
  62319. ":flag_white:": {
  62320. "uc_base": "1f3f3",
  62321. "uc_output": "1f3f3",
  62322. "uc_match": "1f3f3-fe0f",
  62323. "uc_greedy": "1f3f3-fe0f",
  62324. "shortnames": [":waving_white_flag:"],
  62325. "category": "flags"
  62326. },
  62327. ":flags:": {
  62328. "uc_base": "1f38f",
  62329. "uc_output": "1f38f",
  62330. "uc_match": "1f38f",
  62331. "uc_greedy": "1f38f",
  62332. "shortnames": [],
  62333. "category": "objects"
  62334. },
  62335. ":flashlight:": {
  62336. "uc_base": "1f526",
  62337. "uc_output": "1f526",
  62338. "uc_match": "1f526",
  62339. "uc_greedy": "1f526",
  62340. "shortnames": [],
  62341. "category": "objects"
  62342. },
  62343. ":floppy_disk:": {
  62344. "uc_base": "1f4be",
  62345. "uc_output": "1f4be",
  62346. "uc_match": "1f4be",
  62347. "uc_greedy": "1f4be",
  62348. "shortnames": [],
  62349. "category": "objects"
  62350. },
  62351. ":flower_playing_cards:": {
  62352. "uc_base": "1f3b4",
  62353. "uc_output": "1f3b4",
  62354. "uc_match": "1f3b4",
  62355. "uc_greedy": "1f3b4",
  62356. "shortnames": [],
  62357. "category": "symbols"
  62358. },
  62359. ":flushed:": {
  62360. "uc_base": "1f633",
  62361. "uc_output": "1f633",
  62362. "uc_match": "1f633",
  62363. "uc_greedy": "1f633",
  62364. "shortnames": [],
  62365. "category": "people"
  62366. },
  62367. ":flying_saucer:": {
  62368. "uc_base": "1f6f8",
  62369. "uc_output": "1f6f8",
  62370. "uc_match": "1f6f8",
  62371. "uc_greedy": "1f6f8",
  62372. "shortnames": [],
  62373. "category": "travel"
  62374. },
  62375. ":fog:": {
  62376. "uc_base": "1f32b",
  62377. "uc_output": "1f32b",
  62378. "uc_match": "1f32b-fe0f",
  62379. "uc_greedy": "1f32b-fe0f",
  62380. "shortnames": [],
  62381. "category": "nature"
  62382. },
  62383. ":foggy:": {
  62384. "uc_base": "1f301",
  62385. "uc_output": "1f301",
  62386. "uc_match": "1f301",
  62387. "uc_greedy": "1f301",
  62388. "shortnames": [],
  62389. "category": "travel"
  62390. },
  62391. ":football:": {
  62392. "uc_base": "1f3c8",
  62393. "uc_output": "1f3c8",
  62394. "uc_match": "1f3c8",
  62395. "uc_greedy": "1f3c8",
  62396. "shortnames": [],
  62397. "category": "activity"
  62398. },
  62399. ":footprints:": {
  62400. "uc_base": "1f463",
  62401. "uc_output": "1f463",
  62402. "uc_match": "1f463",
  62403. "uc_greedy": "1f463",
  62404. "shortnames": [],
  62405. "category": "people"
  62406. },
  62407. ":fork_and_knife:": {
  62408. "uc_base": "1f374",
  62409. "uc_output": "1f374",
  62410. "uc_match": "1f374",
  62411. "uc_greedy": "1f374",
  62412. "shortnames": [],
  62413. "category": "food"
  62414. },
  62415. ":fork_knife_plate:": {
  62416. "uc_base": "1f37d",
  62417. "uc_output": "1f37d",
  62418. "uc_match": "1f37d-fe0f",
  62419. "uc_greedy": "1f37d-fe0f",
  62420. "shortnames": [":fork_and_knife_with_plate:"],
  62421. "category": "food"
  62422. },
  62423. ":fortune_cookie:": {
  62424. "uc_base": "1f960",
  62425. "uc_output": "1f960",
  62426. "uc_match": "1f960",
  62427. "uc_greedy": "1f960",
  62428. "shortnames": [],
  62429. "category": "food"
  62430. },
  62431. ":four_leaf_clover:": {
  62432. "uc_base": "1f340",
  62433. "uc_output": "1f340",
  62434. "uc_match": "1f340",
  62435. "uc_greedy": "1f340",
  62436. "shortnames": [],
  62437. "category": "nature"
  62438. },
  62439. ":fox:": {
  62440. "uc_base": "1f98a",
  62441. "uc_output": "1f98a",
  62442. "uc_match": "1f98a",
  62443. "uc_greedy": "1f98a",
  62444. "shortnames": [":fox_face:"],
  62445. "category": "nature"
  62446. },
  62447. ":frame_photo:": {
  62448. "uc_base": "1f5bc",
  62449. "uc_output": "1f5bc",
  62450. "uc_match": "1f5bc-fe0f",
  62451. "uc_greedy": "1f5bc-fe0f",
  62452. "shortnames": [":frame_with_picture:"],
  62453. "category": "objects"
  62454. },
  62455. ":free:": {
  62456. "uc_base": "1f193",
  62457. "uc_output": "1f193",
  62458. "uc_match": "1f193",
  62459. "uc_greedy": "1f193",
  62460. "shortnames": [],
  62461. "category": "symbols"
  62462. },
  62463. ":french_bread:": {
  62464. "uc_base": "1f956",
  62465. "uc_output": "1f956",
  62466. "uc_match": "1f956",
  62467. "uc_greedy": "1f956",
  62468. "shortnames": [":baguette_bread:"],
  62469. "category": "food"
  62470. },
  62471. ":fried_shrimp:": {
  62472. "uc_base": "1f364",
  62473. "uc_output": "1f364",
  62474. "uc_match": "1f364",
  62475. "uc_greedy": "1f364",
  62476. "shortnames": [],
  62477. "category": "food"
  62478. },
  62479. ":fries:": {
  62480. "uc_base": "1f35f",
  62481. "uc_output": "1f35f",
  62482. "uc_match": "1f35f",
  62483. "uc_greedy": "1f35f",
  62484. "shortnames": [],
  62485. "category": "food"
  62486. },
  62487. ":frog:": {
  62488. "uc_base": "1f438",
  62489. "uc_output": "1f438",
  62490. "uc_match": "1f438",
  62491. "uc_greedy": "1f438",
  62492. "shortnames": [],
  62493. "category": "nature"
  62494. },
  62495. ":frowning:": {
  62496. "uc_base": "1f626",
  62497. "uc_output": "1f626",
  62498. "uc_match": "1f626",
  62499. "uc_greedy": "1f626",
  62500. "shortnames": [],
  62501. "category": "people"
  62502. },
  62503. ":full_moon:": {
  62504. "uc_base": "1f315",
  62505. "uc_output": "1f315",
  62506. "uc_match": "1f315-fe0f",
  62507. "uc_greedy": "1f315-fe0f",
  62508. "shortnames": [],
  62509. "category": "nature"
  62510. },
  62511. ":full_moon_with_face:": {
  62512. "uc_base": "1f31d",
  62513. "uc_output": "1f31d",
  62514. "uc_match": "1f31d",
  62515. "uc_greedy": "1f31d",
  62516. "shortnames": [],
  62517. "category": "nature"
  62518. },
  62519. ":game_die:": {
  62520. "uc_base": "1f3b2",
  62521. "uc_output": "1f3b2",
  62522. "uc_match": "1f3b2",
  62523. "uc_greedy": "1f3b2",
  62524. "shortnames": [],
  62525. "category": "activity"
  62526. },
  62527. ":gem:": {
  62528. "uc_base": "1f48e",
  62529. "uc_output": "1f48e",
  62530. "uc_match": "1f48e",
  62531. "uc_greedy": "1f48e",
  62532. "shortnames": [],
  62533. "category": "objects"
  62534. },
  62535. ":genie:": {
  62536. "uc_base": "1f9de",
  62537. "uc_output": "1f9de",
  62538. "uc_match": "1f9de",
  62539. "uc_greedy": "1f9de",
  62540. "shortnames": [],
  62541. "category": "people"
  62542. },
  62543. ":ghost:": {
  62544. "uc_base": "1f47b",
  62545. "uc_output": "1f47b",
  62546. "uc_match": "1f47b",
  62547. "uc_greedy": "1f47b",
  62548. "shortnames": [],
  62549. "category": "people"
  62550. },
  62551. ":gift:": {
  62552. "uc_base": "1f381",
  62553. "uc_output": "1f381",
  62554. "uc_match": "1f381",
  62555. "uc_greedy": "1f381",
  62556. "shortnames": [],
  62557. "category": "objects"
  62558. },
  62559. ":gift_heart:": {
  62560. "uc_base": "1f49d",
  62561. "uc_output": "1f49d",
  62562. "uc_match": "1f49d",
  62563. "uc_greedy": "1f49d",
  62564. "shortnames": [],
  62565. "category": "symbols"
  62566. },
  62567. ":giraffe:": {
  62568. "uc_base": "1f992",
  62569. "uc_output": "1f992",
  62570. "uc_match": "1f992",
  62571. "uc_greedy": "1f992",
  62572. "shortnames": [],
  62573. "category": "nature"
  62574. },
  62575. ":girl:": {
  62576. "uc_base": "1f467",
  62577. "uc_output": "1f467",
  62578. "uc_match": "1f467",
  62579. "uc_greedy": "1f467",
  62580. "shortnames": [],
  62581. "category": "people"
  62582. },
  62583. ":globe_with_meridians:": {
  62584. "uc_base": "1f310",
  62585. "uc_output": "1f310",
  62586. "uc_match": "1f310",
  62587. "uc_greedy": "1f310",
  62588. "shortnames": [],
  62589. "category": "symbols"
  62590. },
  62591. ":gloves:": {
  62592. "uc_base": "1f9e4",
  62593. "uc_output": "1f9e4",
  62594. "uc_match": "1f9e4",
  62595. "uc_greedy": "1f9e4",
  62596. "shortnames": [],
  62597. "category": "people"
  62598. },
  62599. ":goal:": {
  62600. "uc_base": "1f945",
  62601. "uc_output": "1f945",
  62602. "uc_match": "1f945",
  62603. "uc_greedy": "1f945",
  62604. "shortnames": [":goal_net:"],
  62605. "category": "activity"
  62606. },
  62607. ":goat:": {
  62608. "uc_base": "1f410",
  62609. "uc_output": "1f410",
  62610. "uc_match": "1f410",
  62611. "uc_greedy": "1f410",
  62612. "shortnames": [],
  62613. "category": "nature"
  62614. },
  62615. ":gorilla:": {
  62616. "uc_base": "1f98d",
  62617. "uc_output": "1f98d",
  62618. "uc_match": "1f98d",
  62619. "uc_greedy": "1f98d",
  62620. "shortnames": [],
  62621. "category": "nature"
  62622. },
  62623. ":grapes:": {
  62624. "uc_base": "1f347",
  62625. "uc_output": "1f347",
  62626. "uc_match": "1f347",
  62627. "uc_greedy": "1f347",
  62628. "shortnames": [],
  62629. "category": "food"
  62630. },
  62631. ":green_apple:": {
  62632. "uc_base": "1f34f",
  62633. "uc_output": "1f34f",
  62634. "uc_match": "1f34f",
  62635. "uc_greedy": "1f34f",
  62636. "shortnames": [],
  62637. "category": "food"
  62638. },
  62639. ":green_book:": {
  62640. "uc_base": "1f4d7",
  62641. "uc_output": "1f4d7",
  62642. "uc_match": "1f4d7",
  62643. "uc_greedy": "1f4d7",
  62644. "shortnames": [],
  62645. "category": "objects"
  62646. },
  62647. ":green_heart:": {
  62648. "uc_base": "1f49a",
  62649. "uc_output": "1f49a",
  62650. "uc_match": "1f49a",
  62651. "uc_greedy": "1f49a",
  62652. "shortnames": [],
  62653. "category": "symbols"
  62654. },
  62655. ":grimacing:": {
  62656. "uc_base": "1f62c",
  62657. "uc_output": "1f62c",
  62658. "uc_match": "1f62c",
  62659. "uc_greedy": "1f62c",
  62660. "shortnames": [],
  62661. "category": "people"
  62662. },
  62663. ":grin:": {
  62664. "uc_base": "1f601",
  62665. "uc_output": "1f601",
  62666. "uc_match": "1f601",
  62667. "uc_greedy": "1f601",
  62668. "shortnames": [],
  62669. "category": "people"
  62670. },
  62671. ":grinning:": {
  62672. "uc_base": "1f600",
  62673. "uc_output": "1f600",
  62674. "uc_match": "1f600",
  62675. "uc_greedy": "1f600",
  62676. "shortnames": [],
  62677. "category": "people"
  62678. },
  62679. ":guard:": {
  62680. "uc_base": "1f482",
  62681. "uc_output": "1f482",
  62682. "uc_match": "1f482",
  62683. "uc_greedy": "1f482",
  62684. "shortnames": [":guardsman:"],
  62685. "category": "people"
  62686. },
  62687. ":guitar:": {
  62688. "uc_base": "1f3b8",
  62689. "uc_output": "1f3b8",
  62690. "uc_match": "1f3b8",
  62691. "uc_greedy": "1f3b8",
  62692. "shortnames": [],
  62693. "category": "activity"
  62694. },
  62695. ":gun:": {
  62696. "uc_base": "1f52b",
  62697. "uc_output": "1f52b",
  62698. "uc_match": "1f52b",
  62699. "uc_greedy": "1f52b",
  62700. "shortnames": [],
  62701. "category": "objects"
  62702. },
  62703. ":hamburger:": {
  62704. "uc_base": "1f354",
  62705. "uc_output": "1f354",
  62706. "uc_match": "1f354",
  62707. "uc_greedy": "1f354",
  62708. "shortnames": [],
  62709. "category": "food"
  62710. },
  62711. ":hammer:": {
  62712. "uc_base": "1f528",
  62713. "uc_output": "1f528",
  62714. "uc_match": "1f528",
  62715. "uc_greedy": "1f528",
  62716. "shortnames": [],
  62717. "category": "objects"
  62718. },
  62719. ":hamster:": {
  62720. "uc_base": "1f439",
  62721. "uc_output": "1f439",
  62722. "uc_match": "1f439",
  62723. "uc_greedy": "1f439",
  62724. "shortnames": [],
  62725. "category": "nature"
  62726. },
  62727. ":hand_splayed:": {
  62728. "uc_base": "1f590",
  62729. "uc_output": "1f590",
  62730. "uc_match": "1f590-fe0f",
  62731. "uc_greedy": "1f590-fe0f",
  62732. "shortnames": [":raised_hand_with_fingers_splayed:"],
  62733. "category": "people"
  62734. },
  62735. ":handbag:": {
  62736. "uc_base": "1f45c",
  62737. "uc_output": "1f45c",
  62738. "uc_match": "1f45c",
  62739. "uc_greedy": "1f45c",
  62740. "shortnames": [],
  62741. "category": "people"
  62742. },
  62743. ":handshake:": {
  62744. "uc_base": "1f91d",
  62745. "uc_output": "1f91d",
  62746. "uc_match": "1f91d",
  62747. "uc_greedy": "1f91d",
  62748. "shortnames": [":shaking_hands:"],
  62749. "category": "people"
  62750. },
  62751. ":hatched_chick:": {
  62752. "uc_base": "1f425",
  62753. "uc_output": "1f425",
  62754. "uc_match": "1f425",
  62755. "uc_greedy": "1f425",
  62756. "shortnames": [],
  62757. "category": "nature"
  62758. },
  62759. ":hatching_chick:": {
  62760. "uc_base": "1f423",
  62761. "uc_output": "1f423",
  62762. "uc_match": "1f423",
  62763. "uc_greedy": "1f423",
  62764. "shortnames": [],
  62765. "category": "nature"
  62766. },
  62767. ":head_bandage:": {
  62768. "uc_base": "1f915",
  62769. "uc_output": "1f915",
  62770. "uc_match": "1f915",
  62771. "uc_greedy": "1f915",
  62772. "shortnames": [":face_with_head_bandage:"],
  62773. "category": "people"
  62774. },
  62775. ":headphones:": {
  62776. "uc_base": "1f3a7",
  62777. "uc_output": "1f3a7",
  62778. "uc_match": "1f3a7-fe0f",
  62779. "uc_greedy": "1f3a7-fe0f",
  62780. "shortnames": [],
  62781. "category": "activity"
  62782. },
  62783. ":hear_no_evil:": {
  62784. "uc_base": "1f649",
  62785. "uc_output": "1f649",
  62786. "uc_match": "1f649",
  62787. "uc_greedy": "1f649",
  62788. "shortnames": [],
  62789. "category": "nature"
  62790. },
  62791. ":heart_decoration:": {
  62792. "uc_base": "1f49f",
  62793. "uc_output": "1f49f",
  62794. "uc_match": "1f49f",
  62795. "uc_greedy": "1f49f",
  62796. "shortnames": [],
  62797. "category": "symbols"
  62798. },
  62799. ":heart_eyes:": {
  62800. "uc_base": "1f60d",
  62801. "uc_output": "1f60d",
  62802. "uc_match": "1f60d",
  62803. "uc_greedy": "1f60d",
  62804. "shortnames": [],
  62805. "category": "people"
  62806. },
  62807. ":heart_eyes_cat:": {
  62808. "uc_base": "1f63b",
  62809. "uc_output": "1f63b",
  62810. "uc_match": "1f63b",
  62811. "uc_greedy": "1f63b",
  62812. "shortnames": [],
  62813. "category": "people"
  62814. },
  62815. ":heartbeat:": {
  62816. "uc_base": "1f493",
  62817. "uc_output": "1f493",
  62818. "uc_match": "1f493",
  62819. "uc_greedy": "1f493",
  62820. "shortnames": [],
  62821. "category": "symbols"
  62822. },
  62823. ":heartpulse:": {
  62824. "uc_base": "1f497",
  62825. "uc_output": "1f497",
  62826. "uc_match": "1f497",
  62827. "uc_greedy": "1f497",
  62828. "shortnames": [],
  62829. "category": "symbols"
  62830. },
  62831. ":heavy_dollar_sign:": {
  62832. "uc_base": "1f4b2",
  62833. "uc_output": "1f4b2",
  62834. "uc_match": "1f4b2",
  62835. "uc_greedy": "1f4b2",
  62836. "shortnames": [],
  62837. "category": "symbols"
  62838. },
  62839. ":hedgehog:": {
  62840. "uc_base": "1f994",
  62841. "uc_output": "1f994",
  62842. "uc_match": "1f994",
  62843. "uc_greedy": "1f994",
  62844. "shortnames": [],
  62845. "category": "nature"
  62846. },
  62847. ":helicopter:": {
  62848. "uc_base": "1f681",
  62849. "uc_output": "1f681",
  62850. "uc_match": "1f681",
  62851. "uc_greedy": "1f681",
  62852. "shortnames": [],
  62853. "category": "travel"
  62854. },
  62855. ":herb:": {
  62856. "uc_base": "1f33f",
  62857. "uc_output": "1f33f",
  62858. "uc_match": "1f33f",
  62859. "uc_greedy": "1f33f",
  62860. "shortnames": [],
  62861. "category": "nature"
  62862. },
  62863. ":hibiscus:": {
  62864. "uc_base": "1f33a",
  62865. "uc_output": "1f33a",
  62866. "uc_match": "1f33a",
  62867. "uc_greedy": "1f33a",
  62868. "shortnames": [],
  62869. "category": "nature"
  62870. },
  62871. ":high_brightness:": {
  62872. "uc_base": "1f506",
  62873. "uc_output": "1f506",
  62874. "uc_match": "1f506",
  62875. "uc_greedy": "1f506",
  62876. "shortnames": [],
  62877. "category": "symbols"
  62878. },
  62879. ":high_heel:": {
  62880. "uc_base": "1f460",
  62881. "uc_output": "1f460",
  62882. "uc_match": "1f460",
  62883. "uc_greedy": "1f460",
  62884. "shortnames": [],
  62885. "category": "people"
  62886. },
  62887. ":hockey:": {
  62888. "uc_base": "1f3d2",
  62889. "uc_output": "1f3d2",
  62890. "uc_match": "1f3d2",
  62891. "uc_greedy": "1f3d2",
  62892. "shortnames": [],
  62893. "category": "activity"
  62894. },
  62895. ":hole:": {
  62896. "uc_base": "1f573",
  62897. "uc_output": "1f573",
  62898. "uc_match": "1f573-fe0f",
  62899. "uc_greedy": "1f573-fe0f",
  62900. "shortnames": [],
  62901. "category": "objects"
  62902. },
  62903. ":homes:": {
  62904. "uc_base": "1f3d8",
  62905. "uc_output": "1f3d8",
  62906. "uc_match": "1f3d8-fe0f",
  62907. "uc_greedy": "1f3d8-fe0f",
  62908. "shortnames": [":house_buildings:"],
  62909. "category": "travel"
  62910. },
  62911. ":honey_pot:": {
  62912. "uc_base": "1f36f",
  62913. "uc_output": "1f36f",
  62914. "uc_match": "1f36f",
  62915. "uc_greedy": "1f36f",
  62916. "shortnames": [],
  62917. "category": "food"
  62918. },
  62919. ":horse:": {
  62920. "uc_base": "1f434",
  62921. "uc_output": "1f434",
  62922. "uc_match": "1f434",
  62923. "uc_greedy": "1f434",
  62924. "shortnames": [],
  62925. "category": "nature"
  62926. },
  62927. ":horse_racing:": {
  62928. "uc_base": "1f3c7",
  62929. "uc_output": "1f3c7",
  62930. "uc_match": "1f3c7",
  62931. "uc_greedy": "1f3c7",
  62932. "shortnames": [],
  62933. "category": "activity"
  62934. },
  62935. ":hospital:": {
  62936. "uc_base": "1f3e5",
  62937. "uc_output": "1f3e5",
  62938. "uc_match": "1f3e5",
  62939. "uc_greedy": "1f3e5",
  62940. "shortnames": [],
  62941. "category": "travel"
  62942. },
  62943. ":hot_pepper:": {
  62944. "uc_base": "1f336",
  62945. "uc_output": "1f336",
  62946. "uc_match": "1f336-fe0f",
  62947. "uc_greedy": "1f336-fe0f",
  62948. "shortnames": [],
  62949. "category": "food"
  62950. },
  62951. ":hotdog:": {
  62952. "uc_base": "1f32d",
  62953. "uc_output": "1f32d",
  62954. "uc_match": "1f32d",
  62955. "uc_greedy": "1f32d",
  62956. "shortnames": [":hot_dog:"],
  62957. "category": "food"
  62958. },
  62959. ":hotel:": {
  62960. "uc_base": "1f3e8",
  62961. "uc_output": "1f3e8",
  62962. "uc_match": "1f3e8",
  62963. "uc_greedy": "1f3e8",
  62964. "shortnames": [],
  62965. "category": "travel"
  62966. },
  62967. ":house:": {
  62968. "uc_base": "1f3e0",
  62969. "uc_output": "1f3e0",
  62970. "uc_match": "1f3e0-fe0f",
  62971. "uc_greedy": "1f3e0-fe0f",
  62972. "shortnames": [],
  62973. "category": "travel"
  62974. },
  62975. ":house_abandoned:": {
  62976. "uc_base": "1f3da",
  62977. "uc_output": "1f3da",
  62978. "uc_match": "1f3da-fe0f",
  62979. "uc_greedy": "1f3da-fe0f",
  62980. "shortnames": [":derelict_house_building:"],
  62981. "category": "travel"
  62982. },
  62983. ":house_with_garden:": {
  62984. "uc_base": "1f3e1",
  62985. "uc_output": "1f3e1",
  62986. "uc_match": "1f3e1",
  62987. "uc_greedy": "1f3e1",
  62988. "shortnames": [],
  62989. "category": "travel"
  62990. },
  62991. ":hugging:": {
  62992. "uc_base": "1f917",
  62993. "uc_output": "1f917",
  62994. "uc_match": "1f917",
  62995. "uc_greedy": "1f917",
  62996. "shortnames": [":hugging_face:"],
  62997. "category": "people"
  62998. },
  62999. ":hushed:": {
  63000. "uc_base": "1f62f",
  63001. "uc_output": "1f62f",
  63002. "uc_match": "1f62f",
  63003. "uc_greedy": "1f62f",
  63004. "shortnames": [],
  63005. "category": "people"
  63006. },
  63007. ":ice_cream:": {
  63008. "uc_base": "1f368",
  63009. "uc_output": "1f368",
  63010. "uc_match": "1f368",
  63011. "uc_greedy": "1f368",
  63012. "shortnames": [],
  63013. "category": "food"
  63014. },
  63015. ":icecream:": {
  63016. "uc_base": "1f366",
  63017. "uc_output": "1f366",
  63018. "uc_match": "1f366",
  63019. "uc_greedy": "1f366",
  63020. "shortnames": [],
  63021. "category": "food"
  63022. },
  63023. ":id:": {
  63024. "uc_base": "1f194",
  63025. "uc_output": "1f194",
  63026. "uc_match": "1f194",
  63027. "uc_greedy": "1f194",
  63028. "shortnames": [],
  63029. "category": "symbols"
  63030. },
  63031. ":ideograph_advantage:": {
  63032. "uc_base": "1f250",
  63033. "uc_output": "1f250",
  63034. "uc_match": "1f250",
  63035. "uc_greedy": "1f250",
  63036. "shortnames": [],
  63037. "category": "symbols"
  63038. },
  63039. ":imp:": {
  63040. "uc_base": "1f47f",
  63041. "uc_output": "1f47f",
  63042. "uc_match": "1f47f",
  63043. "uc_greedy": "1f47f",
  63044. "shortnames": [],
  63045. "category": "people"
  63046. },
  63047. ":inbox_tray:": {
  63048. "uc_base": "1f4e5",
  63049. "uc_output": "1f4e5",
  63050. "uc_match": "1f4e5-fe0f",
  63051. "uc_greedy": "1f4e5-fe0f",
  63052. "shortnames": [],
  63053. "category": "objects"
  63054. },
  63055. ":incoming_envelope:": {
  63056. "uc_base": "1f4e8",
  63057. "uc_output": "1f4e8",
  63058. "uc_match": "1f4e8",
  63059. "uc_greedy": "1f4e8",
  63060. "shortnames": [],
  63061. "category": "objects"
  63062. },
  63063. ":innocent:": {
  63064. "uc_base": "1f607",
  63065. "uc_output": "1f607",
  63066. "uc_match": "1f607",
  63067. "uc_greedy": "1f607",
  63068. "shortnames": [],
  63069. "category": "people"
  63070. },
  63071. ":iphone:": {
  63072. "uc_base": "1f4f1",
  63073. "uc_output": "1f4f1",
  63074. "uc_match": "1f4f1",
  63075. "uc_greedy": "1f4f1",
  63076. "shortnames": [],
  63077. "category": "objects"
  63078. },
  63079. ":island:": {
  63080. "uc_base": "1f3dd",
  63081. "uc_output": "1f3dd",
  63082. "uc_match": "1f3dd-fe0f",
  63083. "uc_greedy": "1f3dd-fe0f",
  63084. "shortnames": [":desert_island:"],
  63085. "category": "travel"
  63086. },
  63087. ":izakaya_lantern:": {
  63088. "uc_base": "1f3ee",
  63089. "uc_output": "1f3ee",
  63090. "uc_match": "1f3ee",
  63091. "uc_greedy": "1f3ee",
  63092. "shortnames": [],
  63093. "category": "objects"
  63094. },
  63095. ":jack_o_lantern:": {
  63096. "uc_base": "1f383",
  63097. "uc_output": "1f383",
  63098. "uc_match": "1f383",
  63099. "uc_greedy": "1f383",
  63100. "shortnames": [],
  63101. "category": "people"
  63102. },
  63103. ":japan:": {
  63104. "uc_base": "1f5fe",
  63105. "uc_output": "1f5fe",
  63106. "uc_match": "1f5fe",
  63107. "uc_greedy": "1f5fe",
  63108. "shortnames": [],
  63109. "category": "travel"
  63110. },
  63111. ":japanese_castle:": {
  63112. "uc_base": "1f3ef",
  63113. "uc_output": "1f3ef",
  63114. "uc_match": "1f3ef",
  63115. "uc_greedy": "1f3ef",
  63116. "shortnames": [],
  63117. "category": "travel"
  63118. },
  63119. ":japanese_goblin:": {
  63120. "uc_base": "1f47a",
  63121. "uc_output": "1f47a",
  63122. "uc_match": "1f47a",
  63123. "uc_greedy": "1f47a",
  63124. "shortnames": [],
  63125. "category": "people"
  63126. },
  63127. ":japanese_ogre:": {
  63128. "uc_base": "1f479",
  63129. "uc_output": "1f479",
  63130. "uc_match": "1f479",
  63131. "uc_greedy": "1f479",
  63132. "shortnames": [],
  63133. "category": "people"
  63134. },
  63135. ":jeans:": {
  63136. "uc_base": "1f456",
  63137. "uc_output": "1f456",
  63138. "uc_match": "1f456",
  63139. "uc_greedy": "1f456",
  63140. "shortnames": [],
  63141. "category": "people"
  63142. },
  63143. ":joy:": {
  63144. "uc_base": "1f602",
  63145. "uc_output": "1f602",
  63146. "uc_match": "1f602",
  63147. "uc_greedy": "1f602",
  63148. "shortnames": [],
  63149. "category": "people"
  63150. },
  63151. ":joy_cat:": {
  63152. "uc_base": "1f639",
  63153. "uc_output": "1f639",
  63154. "uc_match": "1f639",
  63155. "uc_greedy": "1f639",
  63156. "shortnames": [],
  63157. "category": "people"
  63158. },
  63159. ":joystick:": {
  63160. "uc_base": "1f579",
  63161. "uc_output": "1f579",
  63162. "uc_match": "1f579-fe0f",
  63163. "uc_greedy": "1f579-fe0f",
  63164. "shortnames": [],
  63165. "category": "objects"
  63166. },
  63167. ":kaaba:": {
  63168. "uc_base": "1f54b",
  63169. "uc_output": "1f54b",
  63170. "uc_match": "1f54b",
  63171. "uc_greedy": "1f54b",
  63172. "shortnames": [],
  63173. "category": "travel"
  63174. },
  63175. ":key2:": {
  63176. "uc_base": "1f5dd",
  63177. "uc_output": "1f5dd",
  63178. "uc_match": "1f5dd-fe0f",
  63179. "uc_greedy": "1f5dd",
  63180. "shortnames": [":old_key:"],
  63181. "category": "objects"
  63182. },
  63183. ":key:": {
  63184. "uc_base": "1f511",
  63185. "uc_output": "1f511",
  63186. "uc_match": "1f511",
  63187. "uc_greedy": "1f511",
  63188. "shortnames": [],
  63189. "category": "objects"
  63190. },
  63191. ":keycap_ten:": {
  63192. "uc_base": "1f51f",
  63193. "uc_output": "1f51f",
  63194. "uc_match": "1f51f",
  63195. "uc_greedy": "1f51f",
  63196. "shortnames": [],
  63197. "category": "symbols"
  63198. },
  63199. ":kimono:": {
  63200. "uc_base": "1f458",
  63201. "uc_output": "1f458",
  63202. "uc_match": "1f458",
  63203. "uc_greedy": "1f458",
  63204. "shortnames": [],
  63205. "category": "people"
  63206. },
  63207. ":kiss:": {
  63208. "uc_base": "1f48b",
  63209. "uc_output": "1f48b",
  63210. "uc_match": "1f48b",
  63211. "uc_greedy": "1f48b",
  63212. "shortnames": [],
  63213. "category": "people"
  63214. },
  63215. ":kissing:": {
  63216. "uc_base": "1f617",
  63217. "uc_output": "1f617",
  63218. "uc_match": "1f617",
  63219. "uc_greedy": "1f617",
  63220. "shortnames": [],
  63221. "category": "people"
  63222. },
  63223. ":kissing_cat:": {
  63224. "uc_base": "1f63d",
  63225. "uc_output": "1f63d",
  63226. "uc_match": "1f63d",
  63227. "uc_greedy": "1f63d",
  63228. "shortnames": [],
  63229. "category": "people"
  63230. },
  63231. ":kissing_closed_eyes:": {
  63232. "uc_base": "1f61a",
  63233. "uc_output": "1f61a",
  63234. "uc_match": "1f61a",
  63235. "uc_greedy": "1f61a",
  63236. "shortnames": [],
  63237. "category": "people"
  63238. },
  63239. ":kissing_heart:": {
  63240. "uc_base": "1f618",
  63241. "uc_output": "1f618",
  63242. "uc_match": "1f618",
  63243. "uc_greedy": "1f618",
  63244. "shortnames": [],
  63245. "category": "people"
  63246. },
  63247. ":kissing_smiling_eyes:": {
  63248. "uc_base": "1f619",
  63249. "uc_output": "1f619",
  63250. "uc_match": "1f619",
  63251. "uc_greedy": "1f619",
  63252. "shortnames": [],
  63253. "category": "people"
  63254. },
  63255. ":kiwi:": {
  63256. "uc_base": "1f95d",
  63257. "uc_output": "1f95d",
  63258. "uc_match": "1f95d",
  63259. "uc_greedy": "1f95d",
  63260. "shortnames": [":kiwifruit:"],
  63261. "category": "food"
  63262. },
  63263. ":knife:": {
  63264. "uc_base": "1f52a",
  63265. "uc_output": "1f52a",
  63266. "uc_match": "1f52a",
  63267. "uc_greedy": "1f52a",
  63268. "shortnames": [],
  63269. "category": "objects"
  63270. },
  63271. ":koala:": {
  63272. "uc_base": "1f428",
  63273. "uc_output": "1f428",
  63274. "uc_match": "1f428",
  63275. "uc_greedy": "1f428",
  63276. "shortnames": [],
  63277. "category": "nature"
  63278. },
  63279. ":koko:": {
  63280. "uc_base": "1f201",
  63281. "uc_output": "1f201",
  63282. "uc_match": "1f201",
  63283. "uc_greedy": "1f201",
  63284. "shortnames": [],
  63285. "category": "symbols"
  63286. },
  63287. ":label:": {
  63288. "uc_base": "1f3f7",
  63289. "uc_output": "1f3f7",
  63290. "uc_match": "1f3f7-fe0f",
  63291. "uc_greedy": "1f3f7-fe0f",
  63292. "shortnames": [],
  63293. "category": "objects"
  63294. },
  63295. ":large_blue_diamond:": {
  63296. "uc_base": "1f537",
  63297. "uc_output": "1f537",
  63298. "uc_match": "1f537",
  63299. "uc_greedy": "1f537",
  63300. "shortnames": [],
  63301. "category": "symbols"
  63302. },
  63303. ":large_orange_diamond:": {
  63304. "uc_base": "1f536",
  63305. "uc_output": "1f536",
  63306. "uc_match": "1f536",
  63307. "uc_greedy": "1f536",
  63308. "shortnames": [],
  63309. "category": "symbols"
  63310. },
  63311. ":last_quarter_moon:": {
  63312. "uc_base": "1f317",
  63313. "uc_output": "1f317",
  63314. "uc_match": "1f317",
  63315. "uc_greedy": "1f317",
  63316. "shortnames": [],
  63317. "category": "nature"
  63318. },
  63319. ":last_quarter_moon_with_face:": {
  63320. "uc_base": "1f31c",
  63321. "uc_output": "1f31c",
  63322. "uc_match": "1f31c-fe0f",
  63323. "uc_greedy": "1f31c-fe0f",
  63324. "shortnames": [],
  63325. "category": "nature"
  63326. },
  63327. ":laughing:": {
  63328. "uc_base": "1f606",
  63329. "uc_output": "1f606",
  63330. "uc_match": "1f606",
  63331. "uc_greedy": "1f606",
  63332. "shortnames": [":satisfied:"],
  63333. "category": "people"
  63334. },
  63335. ":leaves:": {
  63336. "uc_base": "1f343",
  63337. "uc_output": "1f343",
  63338. "uc_match": "1f343",
  63339. "uc_greedy": "1f343",
  63340. "shortnames": [],
  63341. "category": "nature"
  63342. },
  63343. ":ledger:": {
  63344. "uc_base": "1f4d2",
  63345. "uc_output": "1f4d2",
  63346. "uc_match": "1f4d2",
  63347. "uc_greedy": "1f4d2",
  63348. "shortnames": [],
  63349. "category": "objects"
  63350. },
  63351. ":left_facing_fist:": {
  63352. "uc_base": "1f91b",
  63353. "uc_output": "1f91b",
  63354. "uc_match": "1f91b",
  63355. "uc_greedy": "1f91b",
  63356. "shortnames": [":left_fist:"],
  63357. "category": "people"
  63358. },
  63359. ":left_luggage:": {
  63360. "uc_base": "1f6c5",
  63361. "uc_output": "1f6c5",
  63362. "uc_match": "1f6c5",
  63363. "uc_greedy": "1f6c5",
  63364. "shortnames": [],
  63365. "category": "symbols"
  63366. },
  63367. ":lemon:": {
  63368. "uc_base": "1f34b",
  63369. "uc_output": "1f34b",
  63370. "uc_match": "1f34b",
  63371. "uc_greedy": "1f34b",
  63372. "shortnames": [],
  63373. "category": "food"
  63374. },
  63375. ":leopard:": {
  63376. "uc_base": "1f406",
  63377. "uc_output": "1f406",
  63378. "uc_match": "1f406",
  63379. "uc_greedy": "1f406",
  63380. "shortnames": [],
  63381. "category": "nature"
  63382. },
  63383. ":level_slider:": {
  63384. "uc_base": "1f39a",
  63385. "uc_output": "1f39a",
  63386. "uc_match": "1f39a-fe0f",
  63387. "uc_greedy": "1f39a-fe0f",
  63388. "shortnames": [],
  63389. "category": "objects"
  63390. },
  63391. ":levitate:": {
  63392. "uc_base": "1f574",
  63393. "uc_output": "1f574",
  63394. "uc_match": "1f574-fe0f",
  63395. "uc_greedy": "1f574-fe0f",
  63396. "shortnames": [":man_in_business_suit_levitating:"],
  63397. "category": "people"
  63398. },
  63399. ":light_rail:": {
  63400. "uc_base": "1f688",
  63401. "uc_output": "1f688",
  63402. "uc_match": "1f688",
  63403. "uc_greedy": "1f688",
  63404. "shortnames": [],
  63405. "category": "travel"
  63406. },
  63407. ":link:": {
  63408. "uc_base": "1f517",
  63409. "uc_output": "1f517",
  63410. "uc_match": "1f517",
  63411. "uc_greedy": "1f517",
  63412. "shortnames": [],
  63413. "category": "objects"
  63414. },
  63415. ":lion_face:": {
  63416. "uc_base": "1f981",
  63417. "uc_output": "1f981",
  63418. "uc_match": "1f981",
  63419. "uc_greedy": "1f981",
  63420. "shortnames": [":lion:"],
  63421. "category": "nature"
  63422. },
  63423. ":lips:": {
  63424. "uc_base": "1f444",
  63425. "uc_output": "1f444",
  63426. "uc_match": "1f444",
  63427. "uc_greedy": "1f444",
  63428. "shortnames": [],
  63429. "category": "people"
  63430. },
  63431. ":lipstick:": {
  63432. "uc_base": "1f484",
  63433. "uc_output": "1f484",
  63434. "uc_match": "1f484",
  63435. "uc_greedy": "1f484",
  63436. "shortnames": [],
  63437. "category": "people"
  63438. },
  63439. ":lizard:": {
  63440. "uc_base": "1f98e",
  63441. "uc_output": "1f98e",
  63442. "uc_match": "1f98e",
  63443. "uc_greedy": "1f98e",
  63444. "shortnames": [],
  63445. "category": "nature"
  63446. },
  63447. ":lock:": {
  63448. "uc_base": "1f512",
  63449. "uc_output": "1f512",
  63450. "uc_match": "1f512-fe0f",
  63451. "uc_greedy": "1f512-fe0f",
  63452. "shortnames": [],
  63453. "category": "objects"
  63454. },
  63455. ":lock_with_ink_pen:": {
  63456. "uc_base": "1f50f",
  63457. "uc_output": "1f50f",
  63458. "uc_match": "1f50f",
  63459. "uc_greedy": "1f50f",
  63460. "shortnames": [],
  63461. "category": "objects"
  63462. },
  63463. ":lollipop:": {
  63464. "uc_base": "1f36d",
  63465. "uc_output": "1f36d",
  63466. "uc_match": "1f36d",
  63467. "uc_greedy": "1f36d",
  63468. "shortnames": [],
  63469. "category": "food"
  63470. },
  63471. ":loud_sound:": {
  63472. "uc_base": "1f50a",
  63473. "uc_output": "1f50a",
  63474. "uc_match": "1f50a",
  63475. "uc_greedy": "1f50a",
  63476. "shortnames": [],
  63477. "category": "symbols"
  63478. },
  63479. ":loudspeaker:": {
  63480. "uc_base": "1f4e2",
  63481. "uc_output": "1f4e2",
  63482. "uc_match": "1f4e2",
  63483. "uc_greedy": "1f4e2",
  63484. "shortnames": [],
  63485. "category": "symbols"
  63486. },
  63487. ":love_hotel:": {
  63488. "uc_base": "1f3e9",
  63489. "uc_output": "1f3e9",
  63490. "uc_match": "1f3e9",
  63491. "uc_greedy": "1f3e9",
  63492. "shortnames": [],
  63493. "category": "travel"
  63494. },
  63495. ":love_letter:": {
  63496. "uc_base": "1f48c",
  63497. "uc_output": "1f48c",
  63498. "uc_match": "1f48c",
  63499. "uc_greedy": "1f48c",
  63500. "shortnames": [],
  63501. "category": "objects"
  63502. },
  63503. ":love_you_gesture:": {
  63504. "uc_base": "1f91f",
  63505. "uc_output": "1f91f",
  63506. "uc_match": "1f91f",
  63507. "uc_greedy": "1f91f",
  63508. "shortnames": [],
  63509. "category": "people"
  63510. },
  63511. ":low_brightness:": {
  63512. "uc_base": "1f505",
  63513. "uc_output": "1f505",
  63514. "uc_match": "1f505",
  63515. "uc_greedy": "1f505",
  63516. "shortnames": [],
  63517. "category": "symbols"
  63518. },
  63519. ":lying_face:": {
  63520. "uc_base": "1f925",
  63521. "uc_output": "1f925",
  63522. "uc_match": "1f925",
  63523. "uc_greedy": "1f925",
  63524. "shortnames": [":liar:"],
  63525. "category": "people"
  63526. },
  63527. ":mag:": {
  63528. "uc_base": "1f50d",
  63529. "uc_output": "1f50d",
  63530. "uc_match": "1f50d-fe0f",
  63531. "uc_greedy": "1f50d-fe0f",
  63532. "shortnames": [],
  63533. "category": "objects"
  63534. },
  63535. ":mag_right:": {
  63536. "uc_base": "1f50e",
  63537. "uc_output": "1f50e",
  63538. "uc_match": "1f50e",
  63539. "uc_greedy": "1f50e",
  63540. "shortnames": [],
  63541. "category": "objects"
  63542. },
  63543. ":mage:": {
  63544. "uc_base": "1f9d9",
  63545. "uc_output": "1f9d9",
  63546. "uc_match": "1f9d9",
  63547. "uc_greedy": "1f9d9",
  63548. "shortnames": [],
  63549. "category": "people"
  63550. },
  63551. ":mahjong:": {
  63552. "uc_base": "1f004",
  63553. "uc_output": "1f004",
  63554. "uc_match": "1f004-fe0f",
  63555. "uc_greedy": "1f004-fe0f",
  63556. "shortnames": [],
  63557. "category": "symbols"
  63558. },
  63559. ":mailbox:": {
  63560. "uc_base": "1f4eb",
  63561. "uc_output": "1f4eb",
  63562. "uc_match": "1f4eb-fe0f",
  63563. "uc_greedy": "1f4eb-fe0f",
  63564. "shortnames": [],
  63565. "category": "objects"
  63566. },
  63567. ":mailbox_closed:": {
  63568. "uc_base": "1f4ea",
  63569. "uc_output": "1f4ea",
  63570. "uc_match": "1f4ea-fe0f",
  63571. "uc_greedy": "1f4ea-fe0f",
  63572. "shortnames": [],
  63573. "category": "objects"
  63574. },
  63575. ":mailbox_with_mail:": {
  63576. "uc_base": "1f4ec",
  63577. "uc_output": "1f4ec",
  63578. "uc_match": "1f4ec-fe0f",
  63579. "uc_greedy": "1f4ec-fe0f",
  63580. "shortnames": [],
  63581. "category": "objects"
  63582. },
  63583. ":mailbox_with_no_mail:": {
  63584. "uc_base": "1f4ed",
  63585. "uc_output": "1f4ed",
  63586. "uc_match": "1f4ed-fe0f",
  63587. "uc_greedy": "1f4ed-fe0f",
  63588. "shortnames": [],
  63589. "category": "objects"
  63590. },
  63591. ":man:": {
  63592. "uc_base": "1f468",
  63593. "uc_output": "1f468",
  63594. "uc_match": "1f468",
  63595. "uc_greedy": "1f468",
  63596. "shortnames": [],
  63597. "category": "people"
  63598. },
  63599. ":man_dancing:": {
  63600. "uc_base": "1f57a",
  63601. "uc_output": "1f57a",
  63602. "uc_match": "1f57a",
  63603. "uc_greedy": "1f57a",
  63604. "shortnames": [":male_dancer:"],
  63605. "category": "people"
  63606. },
  63607. ":man_in_tuxedo:": {
  63608. "uc_base": "1f935",
  63609. "uc_output": "1f935",
  63610. "uc_match": "1f935",
  63611. "uc_greedy": "1f935",
  63612. "shortnames": [],
  63613. "category": "people"
  63614. },
  63615. ":man_with_chinese_cap:": {
  63616. "uc_base": "1f472",
  63617. "uc_output": "1f472",
  63618. "uc_match": "1f472",
  63619. "uc_greedy": "1f472",
  63620. "shortnames": [":man_with_gua_pi_mao:"],
  63621. "category": "people"
  63622. },
  63623. ":mans_shoe:": {
  63624. "uc_base": "1f45e",
  63625. "uc_output": "1f45e",
  63626. "uc_match": "1f45e",
  63627. "uc_greedy": "1f45e",
  63628. "shortnames": [],
  63629. "category": "people"
  63630. },
  63631. ":map:": {
  63632. "uc_base": "1f5fa",
  63633. "uc_output": "1f5fa",
  63634. "uc_match": "1f5fa-fe0f",
  63635. "uc_greedy": "1f5fa-fe0f",
  63636. "shortnames": [":world_map:"],
  63637. "category": "travel"
  63638. },
  63639. ":maple_leaf:": {
  63640. "uc_base": "1f341",
  63641. "uc_output": "1f341",
  63642. "uc_match": "1f341",
  63643. "uc_greedy": "1f341",
  63644. "shortnames": [],
  63645. "category": "nature"
  63646. },
  63647. ":martial_arts_uniform:": {
  63648. "uc_base": "1f94b",
  63649. "uc_output": "1f94b",
  63650. "uc_match": "1f94b",
  63651. "uc_greedy": "1f94b",
  63652. "shortnames": [":karate_uniform:"],
  63653. "category": "activity"
  63654. },
  63655. ":mask:": {
  63656. "uc_base": "1f637",
  63657. "uc_output": "1f637",
  63658. "uc_match": "1f637",
  63659. "uc_greedy": "1f637",
  63660. "shortnames": [],
  63661. "category": "people"
  63662. },
  63663. ":meat_on_bone:": {
  63664. "uc_base": "1f356",
  63665. "uc_output": "1f356",
  63666. "uc_match": "1f356",
  63667. "uc_greedy": "1f356",
  63668. "shortnames": [],
  63669. "category": "food"
  63670. },
  63671. ":medal:": {
  63672. "uc_base": "1f3c5",
  63673. "uc_output": "1f3c5",
  63674. "uc_match": "1f3c5",
  63675. "uc_greedy": "1f3c5",
  63676. "shortnames": [":sports_medal:"],
  63677. "category": "activity"
  63678. },
  63679. ":mega:": {
  63680. "uc_base": "1f4e3",
  63681. "uc_output": "1f4e3",
  63682. "uc_match": "1f4e3",
  63683. "uc_greedy": "1f4e3",
  63684. "shortnames": [],
  63685. "category": "symbols"
  63686. },
  63687. ":melon:": {
  63688. "uc_base": "1f348",
  63689. "uc_output": "1f348",
  63690. "uc_match": "1f348",
  63691. "uc_greedy": "1f348",
  63692. "shortnames": [],
  63693. "category": "food"
  63694. },
  63695. ":menorah:": {
  63696. "uc_base": "1f54e",
  63697. "uc_output": "1f54e",
  63698. "uc_match": "1f54e",
  63699. "uc_greedy": "1f54e",
  63700. "shortnames": [],
  63701. "category": "symbols"
  63702. },
  63703. ":mens:": {
  63704. "uc_base": "1f6b9",
  63705. "uc_output": "1f6b9",
  63706. "uc_match": "1f6b9-fe0f",
  63707. "uc_greedy": "1f6b9-fe0f",
  63708. "shortnames": [],
  63709. "category": "symbols"
  63710. },
  63711. ":merperson:": {
  63712. "uc_base": "1f9dc",
  63713. "uc_output": "1f9dc",
  63714. "uc_match": "1f9dc",
  63715. "uc_greedy": "1f9dc",
  63716. "shortnames": [],
  63717. "category": "people"
  63718. },
  63719. ":metal:": {
  63720. "uc_base": "1f918",
  63721. "uc_output": "1f918",
  63722. "uc_match": "1f918",
  63723. "uc_greedy": "1f918",
  63724. "shortnames": [":sign_of_the_horns:"],
  63725. "category": "people"
  63726. },
  63727. ":metro:": {
  63728. "uc_base": "1f687",
  63729. "uc_output": "1f687",
  63730. "uc_match": "1f687-fe0f",
  63731. "uc_greedy": "1f687-fe0f",
  63732. "shortnames": [],
  63733. "category": "travel"
  63734. },
  63735. ":microphone2:": {
  63736. "uc_base": "1f399",
  63737. "uc_output": "1f399",
  63738. "uc_match": "1f399-fe0f",
  63739. "uc_greedy": "1f399-fe0f",
  63740. "shortnames": [":studio_microphone:"],
  63741. "category": "objects"
  63742. },
  63743. ":microphone:": {
  63744. "uc_base": "1f3a4",
  63745. "uc_output": "1f3a4",
  63746. "uc_match": "1f3a4",
  63747. "uc_greedy": "1f3a4",
  63748. "shortnames": [],
  63749. "category": "activity"
  63750. },
  63751. ":microscope:": {
  63752. "uc_base": "1f52c",
  63753. "uc_output": "1f52c",
  63754. "uc_match": "1f52c",
  63755. "uc_greedy": "1f52c",
  63756. "shortnames": [],
  63757. "category": "objects"
  63758. },
  63759. ":middle_finger:": {
  63760. "uc_base": "1f595",
  63761. "uc_output": "1f595",
  63762. "uc_match": "1f595",
  63763. "uc_greedy": "1f595",
  63764. "shortnames": [":reversed_hand_with_middle_finger_extended:"],
  63765. "category": "people"
  63766. },
  63767. ":military_medal:": {
  63768. "uc_base": "1f396",
  63769. "uc_output": "1f396",
  63770. "uc_match": "1f396-fe0f",
  63771. "uc_greedy": "1f396-fe0f",
  63772. "shortnames": [],
  63773. "category": "activity"
  63774. },
  63775. ":milk:": {
  63776. "uc_base": "1f95b",
  63777. "uc_output": "1f95b",
  63778. "uc_match": "1f95b",
  63779. "uc_greedy": "1f95b",
  63780. "shortnames": [":glass_of_milk:"],
  63781. "category": "food"
  63782. },
  63783. ":milky_way:": {
  63784. "uc_base": "1f30c",
  63785. "uc_output": "1f30c",
  63786. "uc_match": "1f30c",
  63787. "uc_greedy": "1f30c",
  63788. "shortnames": [],
  63789. "category": "travel"
  63790. },
  63791. ":minibus:": {
  63792. "uc_base": "1f690",
  63793. "uc_output": "1f690",
  63794. "uc_match": "1f690",
  63795. "uc_greedy": "1f690",
  63796. "shortnames": [],
  63797. "category": "travel"
  63798. },
  63799. ":minidisc:": {
  63800. "uc_base": "1f4bd",
  63801. "uc_output": "1f4bd",
  63802. "uc_match": "1f4bd",
  63803. "uc_greedy": "1f4bd",
  63804. "shortnames": [],
  63805. "category": "objects"
  63806. },
  63807. ":mobile_phone_off:": {
  63808. "uc_base": "1f4f4",
  63809. "uc_output": "1f4f4",
  63810. "uc_match": "1f4f4",
  63811. "uc_greedy": "1f4f4",
  63812. "shortnames": [],
  63813. "category": "symbols"
  63814. },
  63815. ":money_mouth:": {
  63816. "uc_base": "1f911",
  63817. "uc_output": "1f911",
  63818. "uc_match": "1f911",
  63819. "uc_greedy": "1f911",
  63820. "shortnames": [":money_mouth_face:"],
  63821. "category": "people"
  63822. },
  63823. ":money_with_wings:": {
  63824. "uc_base": "1f4b8",
  63825. "uc_output": "1f4b8",
  63826. "uc_match": "1f4b8",
  63827. "uc_greedy": "1f4b8",
  63828. "shortnames": [],
  63829. "category": "objects"
  63830. },
  63831. ":moneybag:": {
  63832. "uc_base": "1f4b0",
  63833. "uc_output": "1f4b0",
  63834. "uc_match": "1f4b0-fe0f",
  63835. "uc_greedy": "1f4b0-fe0f",
  63836. "shortnames": [],
  63837. "category": "objects"
  63838. },
  63839. ":monkey:": {
  63840. "uc_base": "1f412",
  63841. "uc_output": "1f412",
  63842. "uc_match": "1f412",
  63843. "uc_greedy": "1f412",
  63844. "shortnames": [],
  63845. "category": "nature"
  63846. },
  63847. ":monkey_face:": {
  63848. "uc_base": "1f435",
  63849. "uc_output": "1f435",
  63850. "uc_match": "1f435",
  63851. "uc_greedy": "1f435",
  63852. "shortnames": [],
  63853. "category": "nature"
  63854. },
  63855. ":monorail:": {
  63856. "uc_base": "1f69d",
  63857. "uc_output": "1f69d",
  63858. "uc_match": "1f69d",
  63859. "uc_greedy": "1f69d",
  63860. "shortnames": [],
  63861. "category": "travel"
  63862. },
  63863. ":mortar_board:": {
  63864. "uc_base": "1f393",
  63865. "uc_output": "1f393",
  63866. "uc_match": "1f393-fe0f",
  63867. "uc_greedy": "1f393-fe0f",
  63868. "shortnames": [],
  63869. "category": "people"
  63870. },
  63871. ":mosque:": {
  63872. "uc_base": "1f54c",
  63873. "uc_output": "1f54c",
  63874. "uc_match": "1f54c",
  63875. "uc_greedy": "1f54c",
  63876. "shortnames": [],
  63877. "category": "travel"
  63878. },
  63879. ":motor_scooter:": {
  63880. "uc_base": "1f6f5",
  63881. "uc_output": "1f6f5",
  63882. "uc_match": "1f6f5",
  63883. "uc_greedy": "1f6f5",
  63884. "shortnames": [":motorbike:"],
  63885. "category": "travel"
  63886. },
  63887. ":motorboat:": {
  63888. "uc_base": "1f6e5",
  63889. "uc_output": "1f6e5",
  63890. "uc_match": "1f6e5-fe0f",
  63891. "uc_greedy": "1f6e5-fe0f",
  63892. "shortnames": [],
  63893. "category": "travel"
  63894. },
  63895. ":motorcycle:": {
  63896. "uc_base": "1f3cd",
  63897. "uc_output": "1f3cd",
  63898. "uc_match": "1f3cd-fe0f",
  63899. "uc_greedy": "1f3cd-fe0f",
  63900. "shortnames": [":racing_motorcycle:"],
  63901. "category": "travel"
  63902. },
  63903. ":motorway:": {
  63904. "uc_base": "1f6e3",
  63905. "uc_output": "1f6e3",
  63906. "uc_match": "1f6e3-fe0f",
  63907. "uc_greedy": "1f6e3-fe0f",
  63908. "shortnames": [],
  63909. "category": "travel"
  63910. },
  63911. ":mount_fuji:": {
  63912. "uc_base": "1f5fb",
  63913. "uc_output": "1f5fb",
  63914. "uc_match": "1f5fb",
  63915. "uc_greedy": "1f5fb",
  63916. "shortnames": [],
  63917. "category": "travel"
  63918. },
  63919. ":mountain_cableway:": {
  63920. "uc_base": "1f6a0",
  63921. "uc_output": "1f6a0",
  63922. "uc_match": "1f6a0",
  63923. "uc_greedy": "1f6a0",
  63924. "shortnames": [],
  63925. "category": "travel"
  63926. },
  63927. ":mountain_railway:": {
  63928. "uc_base": "1f69e",
  63929. "uc_output": "1f69e",
  63930. "uc_match": "1f69e",
  63931. "uc_greedy": "1f69e",
  63932. "shortnames": [],
  63933. "category": "travel"
  63934. },
  63935. ":mountain_snow:": {
  63936. "uc_base": "1f3d4",
  63937. "uc_output": "1f3d4",
  63938. "uc_match": "1f3d4-fe0f",
  63939. "uc_greedy": "1f3d4-fe0f",
  63940. "shortnames": [":snow_capped_mountain:"],
  63941. "category": "travel"
  63942. },
  63943. ":mouse2:": {
  63944. "uc_base": "1f401",
  63945. "uc_output": "1f401",
  63946. "uc_match": "1f401",
  63947. "uc_greedy": "1f401",
  63948. "shortnames": [],
  63949. "category": "nature"
  63950. },
  63951. ":mouse:": {
  63952. "uc_base": "1f42d",
  63953. "uc_output": "1f42d",
  63954. "uc_match": "1f42d",
  63955. "uc_greedy": "1f42d",
  63956. "shortnames": [],
  63957. "category": "nature"
  63958. },
  63959. ":mouse_three_button:": {
  63960. "uc_base": "1f5b1",
  63961. "uc_output": "1f5b1",
  63962. "uc_match": "1f5b1-fe0f",
  63963. "uc_greedy": "1f5b1-fe0f",
  63964. "shortnames": [":three_button_mouse:"],
  63965. "category": "objects"
  63966. },
  63967. ":movie_camera:": {
  63968. "uc_base": "1f3a5",
  63969. "uc_output": "1f3a5",
  63970. "uc_match": "1f3a5",
  63971. "uc_greedy": "1f3a5",
  63972. "shortnames": [],
  63973. "category": "objects"
  63974. },
  63975. ":moyai:": {
  63976. "uc_base": "1f5ff",
  63977. "uc_output": "1f5ff",
  63978. "uc_match": "1f5ff",
  63979. "uc_greedy": "1f5ff",
  63980. "shortnames": [],
  63981. "category": "travel"
  63982. },
  63983. ":mrs_claus:": {
  63984. "uc_base": "1f936",
  63985. "uc_output": "1f936",
  63986. "uc_match": "1f936",
  63987. "uc_greedy": "1f936",
  63988. "shortnames": [":mother_christmas:"],
  63989. "category": "people"
  63990. },
  63991. ":muscle:": {
  63992. "uc_base": "1f4aa",
  63993. "uc_output": "1f4aa",
  63994. "uc_match": "1f4aa",
  63995. "uc_greedy": "1f4aa",
  63996. "shortnames": [],
  63997. "category": "people"
  63998. },
  63999. ":mushroom:": {
  64000. "uc_base": "1f344",
  64001. "uc_output": "1f344",
  64002. "uc_match": "1f344",
  64003. "uc_greedy": "1f344",
  64004. "shortnames": [],
  64005. "category": "nature"
  64006. },
  64007. ":musical_keyboard:": {
  64008. "uc_base": "1f3b9",
  64009. "uc_output": "1f3b9",
  64010. "uc_match": "1f3b9",
  64011. "uc_greedy": "1f3b9",
  64012. "shortnames": [],
  64013. "category": "activity"
  64014. },
  64015. ":musical_note:": {
  64016. "uc_base": "1f3b5",
  64017. "uc_output": "1f3b5",
  64018. "uc_match": "1f3b5",
  64019. "uc_greedy": "1f3b5",
  64020. "shortnames": [],
  64021. "category": "symbols"
  64022. },
  64023. ":musical_score:": {
  64024. "uc_base": "1f3bc",
  64025. "uc_output": "1f3bc",
  64026. "uc_match": "1f3bc",
  64027. "uc_greedy": "1f3bc",
  64028. "shortnames": [],
  64029. "category": "activity"
  64030. },
  64031. ":mute:": {
  64032. "uc_base": "1f507",
  64033. "uc_output": "1f507",
  64034. "uc_match": "1f507",
  64035. "uc_greedy": "1f507",
  64036. "shortnames": [],
  64037. "category": "symbols"
  64038. },
  64039. ":nail_care:": {
  64040. "uc_base": "1f485",
  64041. "uc_output": "1f485",
  64042. "uc_match": "1f485",
  64043. "uc_greedy": "1f485",
  64044. "shortnames": [],
  64045. "category": "people"
  64046. },
  64047. ":name_badge:": {
  64048. "uc_base": "1f4db",
  64049. "uc_output": "1f4db",
  64050. "uc_match": "1f4db",
  64051. "uc_greedy": "1f4db",
  64052. "shortnames": [],
  64053. "category": "symbols"
  64054. },
  64055. ":nauseated_face:": {
  64056. "uc_base": "1f922",
  64057. "uc_output": "1f922",
  64058. "uc_match": "1f922",
  64059. "uc_greedy": "1f922",
  64060. "shortnames": [":sick:"],
  64061. "category": "people"
  64062. },
  64063. ":necktie:": {
  64064. "uc_base": "1f454",
  64065. "uc_output": "1f454",
  64066. "uc_match": "1f454",
  64067. "uc_greedy": "1f454",
  64068. "shortnames": [],
  64069. "category": "people"
  64070. },
  64071. ":nerd:": {
  64072. "uc_base": "1f913",
  64073. "uc_output": "1f913",
  64074. "uc_match": "1f913",
  64075. "uc_greedy": "1f913",
  64076. "shortnames": [":nerd_face:"],
  64077. "category": "people"
  64078. },
  64079. ":neutral_face:": {
  64080. "uc_base": "1f610",
  64081. "uc_output": "1f610",
  64082. "uc_match": "1f610-fe0f",
  64083. "uc_greedy": "1f610-fe0f",
  64084. "shortnames": [],
  64085. "category": "people"
  64086. },
  64087. ":new:": {
  64088. "uc_base": "1f195",
  64089. "uc_output": "1f195",
  64090. "uc_match": "1f195",
  64091. "uc_greedy": "1f195",
  64092. "shortnames": [],
  64093. "category": "symbols"
  64094. },
  64095. ":new_moon:": {
  64096. "uc_base": "1f311",
  64097. "uc_output": "1f311",
  64098. "uc_match": "1f311",
  64099. "uc_greedy": "1f311",
  64100. "shortnames": [],
  64101. "category": "nature"
  64102. },
  64103. ":new_moon_with_face:": {
  64104. "uc_base": "1f31a",
  64105. "uc_output": "1f31a",
  64106. "uc_match": "1f31a",
  64107. "uc_greedy": "1f31a",
  64108. "shortnames": [],
  64109. "category": "nature"
  64110. },
  64111. ":newspaper2:": {
  64112. "uc_base": "1f5de",
  64113. "uc_output": "1f5de",
  64114. "uc_match": "1f5de-fe0f",
  64115. "uc_greedy": "1f5de-fe0f",
  64116. "shortnames": [":rolled_up_newspaper:"],
  64117. "category": "objects"
  64118. },
  64119. ":newspaper:": {
  64120. "uc_base": "1f4f0",
  64121. "uc_output": "1f4f0",
  64122. "uc_match": "1f4f0",
  64123. "uc_greedy": "1f4f0",
  64124. "shortnames": [],
  64125. "category": "objects"
  64126. },
  64127. ":ng:": {
  64128. "uc_base": "1f196",
  64129. "uc_output": "1f196",
  64130. "uc_match": "1f196",
  64131. "uc_greedy": "1f196",
  64132. "shortnames": [],
  64133. "category": "symbols"
  64134. },
  64135. ":night_with_stars:": {
  64136. "uc_base": "1f303",
  64137. "uc_output": "1f303",
  64138. "uc_match": "1f303",
  64139. "uc_greedy": "1f303",
  64140. "shortnames": [],
  64141. "category": "travel"
  64142. },
  64143. ":no_bell:": {
  64144. "uc_base": "1f515",
  64145. "uc_output": "1f515",
  64146. "uc_match": "1f515",
  64147. "uc_greedy": "1f515",
  64148. "shortnames": [],
  64149. "category": "symbols"
  64150. },
  64151. ":no_bicycles:": {
  64152. "uc_base": "1f6b3",
  64153. "uc_output": "1f6b3",
  64154. "uc_match": "1f6b3",
  64155. "uc_greedy": "1f6b3",
  64156. "shortnames": [],
  64157. "category": "symbols"
  64158. },
  64159. ":no_entry_sign:": {
  64160. "uc_base": "1f6ab",
  64161. "uc_output": "1f6ab",
  64162. "uc_match": "1f6ab",
  64163. "uc_greedy": "1f6ab",
  64164. "shortnames": [],
  64165. "category": "symbols"
  64166. },
  64167. ":no_mobile_phones:": {
  64168. "uc_base": "1f4f5",
  64169. "uc_output": "1f4f5",
  64170. "uc_match": "1f4f5",
  64171. "uc_greedy": "1f4f5",
  64172. "shortnames": [],
  64173. "category": "symbols"
  64174. },
  64175. ":no_mouth:": {
  64176. "uc_base": "1f636",
  64177. "uc_output": "1f636",
  64178. "uc_match": "1f636",
  64179. "uc_greedy": "1f636",
  64180. "shortnames": [],
  64181. "category": "people"
  64182. },
  64183. ":no_pedestrians:": {
  64184. "uc_base": "1f6b7",
  64185. "uc_output": "1f6b7",
  64186. "uc_match": "1f6b7",
  64187. "uc_greedy": "1f6b7",
  64188. "shortnames": [],
  64189. "category": "symbols"
  64190. },
  64191. ":no_smoking:": {
  64192. "uc_base": "1f6ad",
  64193. "uc_output": "1f6ad",
  64194. "uc_match": "1f6ad-fe0f",
  64195. "uc_greedy": "1f6ad-fe0f",
  64196. "shortnames": [],
  64197. "category": "symbols"
  64198. },
  64199. ":non-potable_water:": {
  64200. "uc_base": "1f6b1",
  64201. "uc_output": "1f6b1",
  64202. "uc_match": "1f6b1",
  64203. "uc_greedy": "1f6b1",
  64204. "shortnames": [],
  64205. "category": "symbols"
  64206. },
  64207. ":nose:": {
  64208. "uc_base": "1f443",
  64209. "uc_output": "1f443",
  64210. "uc_match": "1f443",
  64211. "uc_greedy": "1f443",
  64212. "shortnames": [],
  64213. "category": "people"
  64214. },
  64215. ":notebook:": {
  64216. "uc_base": "1f4d3",
  64217. "uc_output": "1f4d3",
  64218. "uc_match": "1f4d3",
  64219. "uc_greedy": "1f4d3",
  64220. "shortnames": [],
  64221. "category": "objects"
  64222. },
  64223. ":notebook_with_decorative_cover:": {
  64224. "uc_base": "1f4d4",
  64225. "uc_output": "1f4d4",
  64226. "uc_match": "1f4d4",
  64227. "uc_greedy": "1f4d4",
  64228. "shortnames": [],
  64229. "category": "objects"
  64230. },
  64231. ":notepad_spiral:": {
  64232. "uc_base": "1f5d2",
  64233. "uc_output": "1f5d2",
  64234. "uc_match": "1f5d2-fe0f",
  64235. "uc_greedy": "1f5d2-fe0f",
  64236. "shortnames": [":spiral_note_pad:"],
  64237. "category": "objects"
  64238. },
  64239. ":notes:": {
  64240. "uc_base": "1f3b6",
  64241. "uc_output": "1f3b6",
  64242. "uc_match": "1f3b6",
  64243. "uc_greedy": "1f3b6",
  64244. "shortnames": [],
  64245. "category": "symbols"
  64246. },
  64247. ":nut_and_bolt:": {
  64248. "uc_base": "1f529",
  64249. "uc_output": "1f529",
  64250. "uc_match": "1f529",
  64251. "uc_greedy": "1f529",
  64252. "shortnames": [],
  64253. "category": "objects"
  64254. },
  64255. ":o2:": {
  64256. "uc_base": "1f17e",
  64257. "uc_output": "1f17e",
  64258. "uc_match": "1f17e-fe0f",
  64259. "uc_greedy": "1f17e-fe0f",
  64260. "shortnames": [],
  64261. "category": "symbols"
  64262. },
  64263. ":ocean:": {
  64264. "uc_base": "1f30a",
  64265. "uc_output": "1f30a",
  64266. "uc_match": "1f30a",
  64267. "uc_greedy": "1f30a",
  64268. "shortnames": [],
  64269. "category": "nature"
  64270. },
  64271. ":octagonal_sign:": {
  64272. "uc_base": "1f6d1",
  64273. "uc_output": "1f6d1",
  64274. "uc_match": "1f6d1",
  64275. "uc_greedy": "1f6d1",
  64276. "shortnames": [":stop_sign:"],
  64277. "category": "symbols"
  64278. },
  64279. ":octopus:": {
  64280. "uc_base": "1f419",
  64281. "uc_output": "1f419",
  64282. "uc_match": "1f419",
  64283. "uc_greedy": "1f419",
  64284. "shortnames": [],
  64285. "category": "nature"
  64286. },
  64287. ":oden:": {
  64288. "uc_base": "1f362",
  64289. "uc_output": "1f362",
  64290. "uc_match": "1f362",
  64291. "uc_greedy": "1f362",
  64292. "shortnames": [],
  64293. "category": "food"
  64294. },
  64295. ":office:": {
  64296. "uc_base": "1f3e2",
  64297. "uc_output": "1f3e2",
  64298. "uc_match": "1f3e2",
  64299. "uc_greedy": "1f3e2",
  64300. "shortnames": [],
  64301. "category": "travel"
  64302. },
  64303. ":oil:": {
  64304. "uc_base": "1f6e2",
  64305. "uc_output": "1f6e2",
  64306. "uc_match": "1f6e2-fe0f",
  64307. "uc_greedy": "1f6e2-fe0f",
  64308. "shortnames": [":oil_drum:"],
  64309. "category": "objects"
  64310. },
  64311. ":ok:": {
  64312. "uc_base": "1f197",
  64313. "uc_output": "1f197",
  64314. "uc_match": "1f197",
  64315. "uc_greedy": "1f197",
  64316. "shortnames": [],
  64317. "category": "symbols"
  64318. },
  64319. ":ok_hand:": {
  64320. "uc_base": "1f44c",
  64321. "uc_output": "1f44c",
  64322. "uc_match": "1f44c",
  64323. "uc_greedy": "1f44c",
  64324. "shortnames": [],
  64325. "category": "people"
  64326. },
  64327. ":older_adult:": {
  64328. "uc_base": "1f9d3",
  64329. "uc_output": "1f9d3",
  64330. "uc_match": "1f9d3",
  64331. "uc_greedy": "1f9d3",
  64332. "shortnames": [],
  64333. "category": "people"
  64334. },
  64335. ":older_man:": {
  64336. "uc_base": "1f474",
  64337. "uc_output": "1f474",
  64338. "uc_match": "1f474",
  64339. "uc_greedy": "1f474",
  64340. "shortnames": [],
  64341. "category": "people"
  64342. },
  64343. ":older_woman:": {
  64344. "uc_base": "1f475",
  64345. "uc_output": "1f475",
  64346. "uc_match": "1f475",
  64347. "uc_greedy": "1f475",
  64348. "shortnames": [":grandma:"],
  64349. "category": "people"
  64350. },
  64351. ":om_symbol:": {
  64352. "uc_base": "1f549",
  64353. "uc_output": "1f549",
  64354. "uc_match": "1f549-fe0f",
  64355. "uc_greedy": "1f549",
  64356. "shortnames": [],
  64357. "category": "symbols"
  64358. },
  64359. ":on:": {
  64360. "uc_base": "1f51b",
  64361. "uc_output": "1f51b",
  64362. "uc_match": "1f51b",
  64363. "uc_greedy": "1f51b",
  64364. "shortnames": [],
  64365. "category": "symbols"
  64366. },
  64367. ":oncoming_automobile:": {
  64368. "uc_base": "1f698",
  64369. "uc_output": "1f698",
  64370. "uc_match": "1f698-fe0f",
  64371. "uc_greedy": "1f698-fe0f",
  64372. "shortnames": [],
  64373. "category": "travel"
  64374. },
  64375. ":oncoming_bus:": {
  64376. "uc_base": "1f68d",
  64377. "uc_output": "1f68d",
  64378. "uc_match": "1f68d-fe0f",
  64379. "uc_greedy": "1f68d-fe0f",
  64380. "shortnames": [],
  64381. "category": "travel"
  64382. },
  64383. ":oncoming_police_car:": {
  64384. "uc_base": "1f694",
  64385. "uc_output": "1f694",
  64386. "uc_match": "1f694-fe0f",
  64387. "uc_greedy": "1f694-fe0f",
  64388. "shortnames": [],
  64389. "category": "travel"
  64390. },
  64391. ":oncoming_taxi:": {
  64392. "uc_base": "1f696",
  64393. "uc_output": "1f696",
  64394. "uc_match": "1f696",
  64395. "uc_greedy": "1f696",
  64396. "shortnames": [],
  64397. "category": "travel"
  64398. },
  64399. ":open_file_folder:": {
  64400. "uc_base": "1f4c2",
  64401. "uc_output": "1f4c2",
  64402. "uc_match": "1f4c2",
  64403. "uc_greedy": "1f4c2",
  64404. "shortnames": [],
  64405. "category": "objects"
  64406. },
  64407. ":open_hands:": {
  64408. "uc_base": "1f450",
  64409. "uc_output": "1f450",
  64410. "uc_match": "1f450",
  64411. "uc_greedy": "1f450",
  64412. "shortnames": [],
  64413. "category": "people"
  64414. },
  64415. ":open_mouth:": {
  64416. "uc_base": "1f62e",
  64417. "uc_output": "1f62e",
  64418. "uc_match": "1f62e",
  64419. "uc_greedy": "1f62e",
  64420. "shortnames": [],
  64421. "category": "people"
  64422. },
  64423. ":orange_book:": {
  64424. "uc_base": "1f4d9",
  64425. "uc_output": "1f4d9",
  64426. "uc_match": "1f4d9",
  64427. "uc_greedy": "1f4d9",
  64428. "shortnames": [],
  64429. "category": "objects"
  64430. },
  64431. ":orange_heart:": {
  64432. "uc_base": "1f9e1",
  64433. "uc_output": "1f9e1",
  64434. "uc_match": "1f9e1",
  64435. "uc_greedy": "1f9e1",
  64436. "shortnames": [],
  64437. "category": "symbols"
  64438. },
  64439. ":outbox_tray:": {
  64440. "uc_base": "1f4e4",
  64441. "uc_output": "1f4e4",
  64442. "uc_match": "1f4e4-fe0f",
  64443. "uc_greedy": "1f4e4-fe0f",
  64444. "shortnames": [],
  64445. "category": "objects"
  64446. },
  64447. ":owl:": {
  64448. "uc_base": "1f989",
  64449. "uc_output": "1f989",
  64450. "uc_match": "1f989",
  64451. "uc_greedy": "1f989",
  64452. "shortnames": [],
  64453. "category": "nature"
  64454. },
  64455. ":ox:": {
  64456. "uc_base": "1f402",
  64457. "uc_output": "1f402",
  64458. "uc_match": "1f402",
  64459. "uc_greedy": "1f402",
  64460. "shortnames": [],
  64461. "category": "nature"
  64462. },
  64463. ":package:": {
  64464. "uc_base": "1f4e6",
  64465. "uc_output": "1f4e6",
  64466. "uc_match": "1f4e6-fe0f",
  64467. "uc_greedy": "1f4e6-fe0f",
  64468. "shortnames": [],
  64469. "category": "objects"
  64470. },
  64471. ":page_facing_up:": {
  64472. "uc_base": "1f4c4",
  64473. "uc_output": "1f4c4",
  64474. "uc_match": "1f4c4",
  64475. "uc_greedy": "1f4c4",
  64476. "shortnames": [],
  64477. "category": "objects"
  64478. },
  64479. ":page_with_curl:": {
  64480. "uc_base": "1f4c3",
  64481. "uc_output": "1f4c3",
  64482. "uc_match": "1f4c3",
  64483. "uc_greedy": "1f4c3",
  64484. "shortnames": [],
  64485. "category": "objects"
  64486. },
  64487. ":pager:": {
  64488. "uc_base": "1f4df",
  64489. "uc_output": "1f4df",
  64490. "uc_match": "1f4df-fe0f",
  64491. "uc_greedy": "1f4df-fe0f",
  64492. "shortnames": [],
  64493. "category": "objects"
  64494. },
  64495. ":paintbrush:": {
  64496. "uc_base": "1f58c",
  64497. "uc_output": "1f58c",
  64498. "uc_match": "1f58c-fe0f",
  64499. "uc_greedy": "1f58c-fe0f",
  64500. "shortnames": [":lower_left_paintbrush:"],
  64501. "category": "objects"
  64502. },
  64503. ":palm_tree:": {
  64504. "uc_base": "1f334",
  64505. "uc_output": "1f334",
  64506. "uc_match": "1f334",
  64507. "uc_greedy": "1f334",
  64508. "shortnames": [],
  64509. "category": "nature"
  64510. },
  64511. ":palms_up_together:": {
  64512. "uc_base": "1f932",
  64513. "uc_output": "1f932",
  64514. "uc_match": "1f932",
  64515. "uc_greedy": "1f932",
  64516. "shortnames": [],
  64517. "category": "people"
  64518. },
  64519. ":pancakes:": {
  64520. "uc_base": "1f95e",
  64521. "uc_output": "1f95e",
  64522. "uc_match": "1f95e",
  64523. "uc_greedy": "1f95e",
  64524. "shortnames": [],
  64525. "category": "food"
  64526. },
  64527. ":panda_face:": {
  64528. "uc_base": "1f43c",
  64529. "uc_output": "1f43c",
  64530. "uc_match": "1f43c",
  64531. "uc_greedy": "1f43c",
  64532. "shortnames": [],
  64533. "category": "nature"
  64534. },
  64535. ":paperclip:": {
  64536. "uc_base": "1f4ce",
  64537. "uc_output": "1f4ce",
  64538. "uc_match": "1f4ce",
  64539. "uc_greedy": "1f4ce",
  64540. "shortnames": [],
  64541. "category": "objects"
  64542. },
  64543. ":paperclips:": {
  64544. "uc_base": "1f587",
  64545. "uc_output": "1f587",
  64546. "uc_match": "1f587-fe0f",
  64547. "uc_greedy": "1f587-fe0f",
  64548. "shortnames": [":linked_paperclips:"],
  64549. "category": "objects"
  64550. },
  64551. ":park:": {
  64552. "uc_base": "1f3de",
  64553. "uc_output": "1f3de",
  64554. "uc_match": "1f3de-fe0f",
  64555. "uc_greedy": "1f3de-fe0f",
  64556. "shortnames": [":national_park:"],
  64557. "category": "travel"
  64558. },
  64559. ":parking:": {
  64560. "uc_base": "1f17f",
  64561. "uc_output": "1f17f",
  64562. "uc_match": "1f17f-fe0f",
  64563. "uc_greedy": "1f17f-fe0f",
  64564. "shortnames": [],
  64565. "category": "symbols"
  64566. },
  64567. ":passport_control:": {
  64568. "uc_base": "1f6c2",
  64569. "uc_output": "1f6c2",
  64570. "uc_match": "1f6c2",
  64571. "uc_greedy": "1f6c2",
  64572. "shortnames": [],
  64573. "category": "symbols"
  64574. },
  64575. ":peach:": {
  64576. "uc_base": "1f351",
  64577. "uc_output": "1f351",
  64578. "uc_match": "1f351",
  64579. "uc_greedy": "1f351",
  64580. "shortnames": [],
  64581. "category": "food"
  64582. },
  64583. ":peanuts:": {
  64584. "uc_base": "1f95c",
  64585. "uc_output": "1f95c",
  64586. "uc_match": "1f95c",
  64587. "uc_greedy": "1f95c",
  64588. "shortnames": [":shelled_peanut:"],
  64589. "category": "food"
  64590. },
  64591. ":pear:": {
  64592. "uc_base": "1f350",
  64593. "uc_output": "1f350",
  64594. "uc_match": "1f350",
  64595. "uc_greedy": "1f350",
  64596. "shortnames": [],
  64597. "category": "food"
  64598. },
  64599. ":pen_ballpoint:": {
  64600. "uc_base": "1f58a",
  64601. "uc_output": "1f58a",
  64602. "uc_match": "1f58a-fe0f",
  64603. "uc_greedy": "1f58a-fe0f",
  64604. "shortnames": [":lower_left_ballpoint_pen:"],
  64605. "category": "objects"
  64606. },
  64607. ":pen_fountain:": {
  64608. "uc_base": "1f58b",
  64609. "uc_output": "1f58b",
  64610. "uc_match": "1f58b-fe0f",
  64611. "uc_greedy": "1f58b-fe0f",
  64612. "shortnames": [":lower_left_fountain_pen:"],
  64613. "category": "objects"
  64614. },
  64615. ":pencil:": {
  64616. "uc_base": "1f4dd",
  64617. "uc_output": "1f4dd",
  64618. "uc_match": "1f4dd",
  64619. "uc_greedy": "1f4dd",
  64620. "shortnames": [":memo:"],
  64621. "category": "objects"
  64622. },
  64623. ":penguin:": {
  64624. "uc_base": "1f427",
  64625. "uc_output": "1f427",
  64626. "uc_match": "1f427",
  64627. "uc_greedy": "1f427",
  64628. "shortnames": [],
  64629. "category": "nature"
  64630. },
  64631. ":pensive:": {
  64632. "uc_base": "1f614",
  64633. "uc_output": "1f614",
  64634. "uc_match": "1f614",
  64635. "uc_greedy": "1f614",
  64636. "shortnames": [],
  64637. "category": "people"
  64638. },
  64639. ":people_with_bunny_ears_partying:": {
  64640. "uc_base": "1f46f",
  64641. "uc_output": "1f46f",
  64642. "uc_match": "1f46f",
  64643. "uc_greedy": "1f46f",
  64644. "shortnames": [":dancers:"],
  64645. "category": "people"
  64646. },
  64647. ":people_wrestling:": {
  64648. "uc_base": "1f93c",
  64649. "uc_output": "1f93c",
  64650. "uc_match": "1f93c",
  64651. "uc_greedy": "1f93c",
  64652. "shortnames": [":wrestlers:", ":wrestling:"],
  64653. "category": "activity"
  64654. },
  64655. ":performing_arts:": {
  64656. "uc_base": "1f3ad",
  64657. "uc_output": "1f3ad",
  64658. "uc_match": "1f3ad-fe0f",
  64659. "uc_greedy": "1f3ad-fe0f",
  64660. "shortnames": [],
  64661. "category": "activity"
  64662. },
  64663. ":persevere:": {
  64664. "uc_base": "1f623",
  64665. "uc_output": "1f623",
  64666. "uc_match": "1f623",
  64667. "uc_greedy": "1f623",
  64668. "shortnames": [],
  64669. "category": "people"
  64670. },
  64671. ":person_biking:": {
  64672. "uc_base": "1f6b4",
  64673. "uc_output": "1f6b4",
  64674. "uc_match": "1f6b4",
  64675. "uc_greedy": "1f6b4",
  64676. "shortnames": [":bicyclist:"],
  64677. "category": "activity"
  64678. },
  64679. ":person_bowing:": {
  64680. "uc_base": "1f647",
  64681. "uc_output": "1f647",
  64682. "uc_match": "1f647",
  64683. "uc_greedy": "1f647",
  64684. "shortnames": [":bow:"],
  64685. "category": "people"
  64686. },
  64687. ":person_climbing:": {
  64688. "uc_base": "1f9d7",
  64689. "uc_output": "1f9d7",
  64690. "uc_match": "1f9d7",
  64691. "uc_greedy": "1f9d7",
  64692. "shortnames": [],
  64693. "category": "activity"
  64694. },
  64695. ":person_doing_cartwheel:": {
  64696. "uc_base": "1f938",
  64697. "uc_output": "1f938",
  64698. "uc_match": "1f938",
  64699. "uc_greedy": "1f938",
  64700. "shortnames": [":cartwheel:"],
  64701. "category": "activity"
  64702. },
  64703. ":person_facepalming:": {
  64704. "uc_base": "1f926",
  64705. "uc_output": "1f926",
  64706. "uc_match": "1f926",
  64707. "uc_greedy": "1f926",
  64708. "shortnames": [":face_palm:", ":facepalm:"],
  64709. "category": "people"
  64710. },
  64711. ":person_fencing:": {
  64712. "uc_base": "1f93a",
  64713. "uc_output": "1f93a",
  64714. "uc_match": "1f93a",
  64715. "uc_greedy": "1f93a",
  64716. "shortnames": [":fencer:", ":fencing:"],
  64717. "category": "activity"
  64718. },
  64719. ":person_frowning:": {
  64720. "uc_base": "1f64d",
  64721. "uc_output": "1f64d",
  64722. "uc_match": "1f64d",
  64723. "uc_greedy": "1f64d",
  64724. "shortnames": [],
  64725. "category": "people"
  64726. },
  64727. ":person_gesturing_no:": {
  64728. "uc_base": "1f645",
  64729. "uc_output": "1f645",
  64730. "uc_match": "1f645",
  64731. "uc_greedy": "1f645",
  64732. "shortnames": [":no_good:"],
  64733. "category": "people"
  64734. },
  64735. ":person_gesturing_ok:": {
  64736. "uc_base": "1f646",
  64737. "uc_output": "1f646",
  64738. "uc_match": "1f646",
  64739. "uc_greedy": "1f646",
  64740. "shortnames": [":ok_woman:"],
  64741. "category": "people"
  64742. },
  64743. ":person_getting_haircut:": {
  64744. "uc_base": "1f487",
  64745. "uc_output": "1f487",
  64746. "uc_match": "1f487",
  64747. "uc_greedy": "1f487",
  64748. "shortnames": [":haircut:"],
  64749. "category": "people"
  64750. },
  64751. ":person_getting_massage:": {
  64752. "uc_base": "1f486",
  64753. "uc_output": "1f486",
  64754. "uc_match": "1f486",
  64755. "uc_greedy": "1f486",
  64756. "shortnames": [":massage:"],
  64757. "category": "people"
  64758. },
  64759. ":person_golfing:": {
  64760. "uc_base": "1f3cc",
  64761. "uc_output": "1f3cc",
  64762. "uc_match": "1f3cc-fe0f",
  64763. "uc_greedy": "1f3cc-fe0f",
  64764. "shortnames": [":golfer:"],
  64765. "category": "activity"
  64766. },
  64767. ":person_in_lotus_position:": {
  64768. "uc_base": "1f9d8",
  64769. "uc_output": "1f9d8",
  64770. "uc_match": "1f9d8",
  64771. "uc_greedy": "1f9d8",
  64772. "shortnames": [],
  64773. "category": "activity"
  64774. },
  64775. ":person_in_steamy_room:": {
  64776. "uc_base": "1f9d6",
  64777. "uc_output": "1f9d6",
  64778. "uc_match": "1f9d6",
  64779. "uc_greedy": "1f9d6",
  64780. "shortnames": [],
  64781. "category": "people"
  64782. },
  64783. ":person_juggling:": {
  64784. "uc_base": "1f939",
  64785. "uc_output": "1f939",
  64786. "uc_match": "1f939",
  64787. "uc_greedy": "1f939",
  64788. "shortnames": [":juggling:", ":juggler:"],
  64789. "category": "activity"
  64790. },
  64791. ":person_lifting_weights:": {
  64792. "uc_base": "1f3cb",
  64793. "uc_output": "1f3cb",
  64794. "uc_match": "1f3cb-fe0f",
  64795. "uc_greedy": "1f3cb-fe0f",
  64796. "shortnames": [":lifter:", ":weight_lifter:"],
  64797. "category": "activity"
  64798. },
  64799. ":person_mountain_biking:": {
  64800. "uc_base": "1f6b5",
  64801. "uc_output": "1f6b5",
  64802. "uc_match": "1f6b5",
  64803. "uc_greedy": "1f6b5",
  64804. "shortnames": [":mountain_bicyclist:"],
  64805. "category": "activity"
  64806. },
  64807. ":person_playing_handball:": {
  64808. "uc_base": "1f93e",
  64809. "uc_output": "1f93e",
  64810. "uc_match": "1f93e",
  64811. "uc_greedy": "1f93e",
  64812. "shortnames": [":handball:"],
  64813. "category": "activity"
  64814. },
  64815. ":person_playing_water_polo:": {
  64816. "uc_base": "1f93d",
  64817. "uc_output": "1f93d",
  64818. "uc_match": "1f93d",
  64819. "uc_greedy": "1f93d",
  64820. "shortnames": [":water_polo:"],
  64821. "category": "activity"
  64822. },
  64823. ":person_pouting:": {
  64824. "uc_base": "1f64e",
  64825. "uc_output": "1f64e",
  64826. "uc_match": "1f64e",
  64827. "uc_greedy": "1f64e",
  64828. "shortnames": [":person_with_pouting_face:"],
  64829. "category": "people"
  64830. },
  64831. ":person_raising_hand:": {
  64832. "uc_base": "1f64b",
  64833. "uc_output": "1f64b",
  64834. "uc_match": "1f64b",
  64835. "uc_greedy": "1f64b",
  64836. "shortnames": [":raising_hand:"],
  64837. "category": "people"
  64838. },
  64839. ":person_rowing_boat:": {
  64840. "uc_base": "1f6a3",
  64841. "uc_output": "1f6a3",
  64842. "uc_match": "1f6a3",
  64843. "uc_greedy": "1f6a3",
  64844. "shortnames": [":rowboat:"],
  64845. "category": "activity"
  64846. },
  64847. ":person_running:": {
  64848. "uc_base": "1f3c3",
  64849. "uc_output": "1f3c3",
  64850. "uc_match": "1f3c3",
  64851. "uc_greedy": "1f3c3",
  64852. "shortnames": [":runner:"],
  64853. "category": "people"
  64854. },
  64855. ":person_shrugging:": {
  64856. "uc_base": "1f937",
  64857. "uc_output": "1f937",
  64858. "uc_match": "1f937",
  64859. "uc_greedy": "1f937",
  64860. "shortnames": [":shrug:"],
  64861. "category": "people"
  64862. },
  64863. ":person_surfing:": {
  64864. "uc_base": "1f3c4",
  64865. "uc_output": "1f3c4",
  64866. "uc_match": "1f3c4-fe0f",
  64867. "uc_greedy": "1f3c4-fe0f",
  64868. "shortnames": [":surfer:"],
  64869. "category": "activity"
  64870. },
  64871. ":person_swimming:": {
  64872. "uc_base": "1f3ca",
  64873. "uc_output": "1f3ca",
  64874. "uc_match": "1f3ca-fe0f",
  64875. "uc_greedy": "1f3ca-fe0f",
  64876. "shortnames": [":swimmer:"],
  64877. "category": "activity"
  64878. },
  64879. ":person_tipping_hand:": {
  64880. "uc_base": "1f481",
  64881. "uc_output": "1f481",
  64882. "uc_match": "1f481",
  64883. "uc_greedy": "1f481",
  64884. "shortnames": [":information_desk_person:"],
  64885. "category": "people"
  64886. },
  64887. ":person_walking:": {
  64888. "uc_base": "1f6b6",
  64889. "uc_output": "1f6b6",
  64890. "uc_match": "1f6b6",
  64891. "uc_greedy": "1f6b6",
  64892. "shortnames": [":walking:"],
  64893. "category": "people"
  64894. },
  64895. ":person_wearing_turban:": {
  64896. "uc_base": "1f473",
  64897. "uc_output": "1f473",
  64898. "uc_match": "1f473",
  64899. "uc_greedy": "1f473",
  64900. "shortnames": [":man_with_turban:"],
  64901. "category": "people"
  64902. },
  64903. ":pie:": {
  64904. "uc_base": "1f967",
  64905. "uc_output": "1f967",
  64906. "uc_match": "1f967",
  64907. "uc_greedy": "1f967",
  64908. "shortnames": [],
  64909. "category": "food"
  64910. },
  64911. ":pig2:": {
  64912. "uc_base": "1f416",
  64913. "uc_output": "1f416",
  64914. "uc_match": "1f416",
  64915. "uc_greedy": "1f416",
  64916. "shortnames": [],
  64917. "category": "nature"
  64918. },
  64919. ":pig:": {
  64920. "uc_base": "1f437",
  64921. "uc_output": "1f437",
  64922. "uc_match": "1f437",
  64923. "uc_greedy": "1f437",
  64924. "shortnames": [],
  64925. "category": "nature"
  64926. },
  64927. ":pig_nose:": {
  64928. "uc_base": "1f43d",
  64929. "uc_output": "1f43d",
  64930. "uc_match": "1f43d",
  64931. "uc_greedy": "1f43d",
  64932. "shortnames": [],
  64933. "category": "nature"
  64934. },
  64935. ":pill:": {
  64936. "uc_base": "1f48a",
  64937. "uc_output": "1f48a",
  64938. "uc_match": "1f48a",
  64939. "uc_greedy": "1f48a",
  64940. "shortnames": [],
  64941. "category": "objects"
  64942. },
  64943. ":pineapple:": {
  64944. "uc_base": "1f34d",
  64945. "uc_output": "1f34d",
  64946. "uc_match": "1f34d",
  64947. "uc_greedy": "1f34d",
  64948. "shortnames": [],
  64949. "category": "food"
  64950. },
  64951. ":ping_pong:": {
  64952. "uc_base": "1f3d3",
  64953. "uc_output": "1f3d3",
  64954. "uc_match": "1f3d3",
  64955. "uc_greedy": "1f3d3",
  64956. "shortnames": [":table_tennis:"],
  64957. "category": "activity"
  64958. },
  64959. ":pizza:": {
  64960. "uc_base": "1f355",
  64961. "uc_output": "1f355",
  64962. "uc_match": "1f355",
  64963. "uc_greedy": "1f355",
  64964. "shortnames": [],
  64965. "category": "food"
  64966. },
  64967. ":place_of_worship:": {
  64968. "uc_base": "1f6d0",
  64969. "uc_output": "1f6d0",
  64970. "uc_match": "1f6d0",
  64971. "uc_greedy": "1f6d0",
  64972. "shortnames": [":worship_symbol:"],
  64973. "category": "symbols"
  64974. },
  64975. ":point_down:": {
  64976. "uc_base": "1f447",
  64977. "uc_output": "1f447",
  64978. "uc_match": "1f447-fe0f",
  64979. "uc_greedy": "1f447-fe0f",
  64980. "shortnames": [],
  64981. "category": "people"
  64982. },
  64983. ":point_left:": {
  64984. "uc_base": "1f448",
  64985. "uc_output": "1f448",
  64986. "uc_match": "1f448-fe0f",
  64987. "uc_greedy": "1f448-fe0f",
  64988. "shortnames": [],
  64989. "category": "people"
  64990. },
  64991. ":point_right:": {
  64992. "uc_base": "1f449",
  64993. "uc_output": "1f449",
  64994. "uc_match": "1f449-fe0f",
  64995. "uc_greedy": "1f449-fe0f",
  64996. "shortnames": [],
  64997. "category": "people"
  64998. },
  64999. ":point_up_2:": {
  65000. "uc_base": "1f446",
  65001. "uc_output": "1f446",
  65002. "uc_match": "1f446-fe0f",
  65003. "uc_greedy": "1f446-fe0f",
  65004. "shortnames": [],
  65005. "category": "people"
  65006. },
  65007. ":police_car:": {
  65008. "uc_base": "1f693",
  65009. "uc_output": "1f693",
  65010. "uc_match": "1f693",
  65011. "uc_greedy": "1f693",
  65012. "shortnames": [],
  65013. "category": "travel"
  65014. },
  65015. ":police_officer:": {
  65016. "uc_base": "1f46e",
  65017. "uc_output": "1f46e",
  65018. "uc_match": "1f46e",
  65019. "uc_greedy": "1f46e",
  65020. "shortnames": [":cop:"],
  65021. "category": "people"
  65022. },
  65023. ":poodle:": {
  65024. "uc_base": "1f429",
  65025. "uc_output": "1f429",
  65026. "uc_match": "1f429",
  65027. "uc_greedy": "1f429",
  65028. "shortnames": [],
  65029. "category": "nature"
  65030. },
  65031. ":poop:": {
  65032. "uc_base": "1f4a9",
  65033. "uc_output": "1f4a9",
  65034. "uc_match": "1f4a9",
  65035. "uc_greedy": "1f4a9",
  65036. "shortnames": [":shit:", ":hankey:", ":poo:"],
  65037. "category": "people"
  65038. },
  65039. ":popcorn:": {
  65040. "uc_base": "1f37f",
  65041. "uc_output": "1f37f",
  65042. "uc_match": "1f37f",
  65043. "uc_greedy": "1f37f",
  65044. "shortnames": [],
  65045. "category": "food"
  65046. },
  65047. ":post_office:": {
  65048. "uc_base": "1f3e3",
  65049. "uc_output": "1f3e3",
  65050. "uc_match": "1f3e3",
  65051. "uc_greedy": "1f3e3",
  65052. "shortnames": [],
  65053. "category": "travel"
  65054. },
  65055. ":postal_horn:": {
  65056. "uc_base": "1f4ef",
  65057. "uc_output": "1f4ef",
  65058. "uc_match": "1f4ef",
  65059. "uc_greedy": "1f4ef",
  65060. "shortnames": [],
  65061. "category": "objects"
  65062. },
  65063. ":postbox:": {
  65064. "uc_base": "1f4ee",
  65065. "uc_output": "1f4ee",
  65066. "uc_match": "1f4ee",
  65067. "uc_greedy": "1f4ee",
  65068. "shortnames": [],
  65069. "category": "objects"
  65070. },
  65071. ":potable_water:": {
  65072. "uc_base": "1f6b0",
  65073. "uc_output": "1f6b0",
  65074. "uc_match": "1f6b0",
  65075. "uc_greedy": "1f6b0",
  65076. "shortnames": [],
  65077. "category": "objects"
  65078. },
  65079. ":potato:": {
  65080. "uc_base": "1f954",
  65081. "uc_output": "1f954",
  65082. "uc_match": "1f954",
  65083. "uc_greedy": "1f954",
  65084. "shortnames": [],
  65085. "category": "food"
  65086. },
  65087. ":pouch:": {
  65088. "uc_base": "1f45d",
  65089. "uc_output": "1f45d",
  65090. "uc_match": "1f45d",
  65091. "uc_greedy": "1f45d",
  65092. "shortnames": [],
  65093. "category": "people"
  65094. },
  65095. ":poultry_leg:": {
  65096. "uc_base": "1f357",
  65097. "uc_output": "1f357",
  65098. "uc_match": "1f357",
  65099. "uc_greedy": "1f357",
  65100. "shortnames": [],
  65101. "category": "food"
  65102. },
  65103. ":pound:": {
  65104. "uc_base": "1f4b7",
  65105. "uc_output": "1f4b7",
  65106. "uc_match": "1f4b7",
  65107. "uc_greedy": "1f4b7",
  65108. "shortnames": [],
  65109. "category": "objects"
  65110. },
  65111. ":pouting_cat:": {
  65112. "uc_base": "1f63e",
  65113. "uc_output": "1f63e",
  65114. "uc_match": "1f63e",
  65115. "uc_greedy": "1f63e",
  65116. "shortnames": [],
  65117. "category": "people"
  65118. },
  65119. ":pray:": {
  65120. "uc_base": "1f64f",
  65121. "uc_output": "1f64f",
  65122. "uc_match": "1f64f",
  65123. "uc_greedy": "1f64f",
  65124. "shortnames": [],
  65125. "category": "people"
  65126. },
  65127. ":prayer_beads:": {
  65128. "uc_base": "1f4ff",
  65129. "uc_output": "1f4ff",
  65130. "uc_match": "1f4ff",
  65131. "uc_greedy": "1f4ff",
  65132. "shortnames": [],
  65133. "category": "objects"
  65134. },
  65135. ":pregnant_woman:": {
  65136. "uc_base": "1f930",
  65137. "uc_output": "1f930",
  65138. "uc_match": "1f930",
  65139. "uc_greedy": "1f930",
  65140. "shortnames": [":expecting_woman:"],
  65141. "category": "people"
  65142. },
  65143. ":pretzel:": {
  65144. "uc_base": "1f968",
  65145. "uc_output": "1f968",
  65146. "uc_match": "1f968",
  65147. "uc_greedy": "1f968",
  65148. "shortnames": [],
  65149. "category": "food"
  65150. },
  65151. ":prince:": {
  65152. "uc_base": "1f934",
  65153. "uc_output": "1f934",
  65154. "uc_match": "1f934",
  65155. "uc_greedy": "1f934",
  65156. "shortnames": [],
  65157. "category": "people"
  65158. },
  65159. ":princess:": {
  65160. "uc_base": "1f478",
  65161. "uc_output": "1f478",
  65162. "uc_match": "1f478",
  65163. "uc_greedy": "1f478",
  65164. "shortnames": [],
  65165. "category": "people"
  65166. },
  65167. ":printer:": {
  65168. "uc_base": "1f5a8",
  65169. "uc_output": "1f5a8",
  65170. "uc_match": "1f5a8-fe0f",
  65171. "uc_greedy": "1f5a8-fe0f",
  65172. "shortnames": [],
  65173. "category": "objects"
  65174. },
  65175. ":projector:": {
  65176. "uc_base": "1f4fd",
  65177. "uc_output": "1f4fd",
  65178. "uc_match": "1f4fd-fe0f",
  65179. "uc_greedy": "1f4fd-fe0f",
  65180. "shortnames": [":film_projector:"],
  65181. "category": "objects"
  65182. },
  65183. ":punch:": {
  65184. "uc_base": "1f44a",
  65185. "uc_output": "1f44a",
  65186. "uc_match": "1f44a",
  65187. "uc_greedy": "1f44a",
  65188. "shortnames": [],
  65189. "category": "people"
  65190. },
  65191. ":purple_heart:": {
  65192. "uc_base": "1f49c",
  65193. "uc_output": "1f49c",
  65194. "uc_match": "1f49c",
  65195. "uc_greedy": "1f49c",
  65196. "shortnames": [],
  65197. "category": "symbols"
  65198. },
  65199. ":purse:": {
  65200. "uc_base": "1f45b",
  65201. "uc_output": "1f45b",
  65202. "uc_match": "1f45b",
  65203. "uc_greedy": "1f45b",
  65204. "shortnames": [],
  65205. "category": "people"
  65206. },
  65207. ":pushpin:": {
  65208. "uc_base": "1f4cc",
  65209. "uc_output": "1f4cc",
  65210. "uc_match": "1f4cc",
  65211. "uc_greedy": "1f4cc",
  65212. "shortnames": [],
  65213. "category": "objects"
  65214. },
  65215. ":put_litter_in_its_place:": {
  65216. "uc_base": "1f6ae",
  65217. "uc_output": "1f6ae",
  65218. "uc_match": "1f6ae",
  65219. "uc_greedy": "1f6ae",
  65220. "shortnames": [],
  65221. "category": "symbols"
  65222. },
  65223. ":rabbit2:": {
  65224. "uc_base": "1f407",
  65225. "uc_output": "1f407",
  65226. "uc_match": "1f407",
  65227. "uc_greedy": "1f407",
  65228. "shortnames": [],
  65229. "category": "nature"
  65230. },
  65231. ":rabbit:": {
  65232. "uc_base": "1f430",
  65233. "uc_output": "1f430",
  65234. "uc_match": "1f430",
  65235. "uc_greedy": "1f430",
  65236. "shortnames": [],
  65237. "category": "nature"
  65238. },
  65239. ":race_car:": {
  65240. "uc_base": "1f3ce",
  65241. "uc_output": "1f3ce",
  65242. "uc_match": "1f3ce-fe0f",
  65243. "uc_greedy": "1f3ce-fe0f",
  65244. "shortnames": [":racing_car:"],
  65245. "category": "travel"
  65246. },
  65247. ":racehorse:": {
  65248. "uc_base": "1f40e",
  65249. "uc_output": "1f40e",
  65250. "uc_match": "1f40e",
  65251. "uc_greedy": "1f40e",
  65252. "shortnames": [],
  65253. "category": "nature"
  65254. },
  65255. ":radio:": {
  65256. "uc_base": "1f4fb",
  65257. "uc_output": "1f4fb",
  65258. "uc_match": "1f4fb-fe0f",
  65259. "uc_greedy": "1f4fb-fe0f",
  65260. "shortnames": [],
  65261. "category": "objects"
  65262. },
  65263. ":radio_button:": {
  65264. "uc_base": "1f518",
  65265. "uc_output": "1f518",
  65266. "uc_match": "1f518",
  65267. "uc_greedy": "1f518",
  65268. "shortnames": [],
  65269. "category": "symbols"
  65270. },
  65271. ":rage:": {
  65272. "uc_base": "1f621",
  65273. "uc_output": "1f621",
  65274. "uc_match": "1f621",
  65275. "uc_greedy": "1f621",
  65276. "shortnames": [],
  65277. "category": "people"
  65278. },
  65279. ":railway_car:": {
  65280. "uc_base": "1f683",
  65281. "uc_output": "1f683",
  65282. "uc_match": "1f683",
  65283. "uc_greedy": "1f683",
  65284. "shortnames": [],
  65285. "category": "travel"
  65286. },
  65287. ":railway_track:": {
  65288. "uc_base": "1f6e4",
  65289. "uc_output": "1f6e4",
  65290. "uc_match": "1f6e4-fe0f",
  65291. "uc_greedy": "1f6e4-fe0f",
  65292. "shortnames": [":railroad_track:"],
  65293. "category": "travel"
  65294. },
  65295. ":rainbow:": {
  65296. "uc_base": "1f308",
  65297. "uc_output": "1f308",
  65298. "uc_match": "1f308",
  65299. "uc_greedy": "1f308",
  65300. "shortnames": [],
  65301. "category": "nature"
  65302. },
  65303. ":raised_back_of_hand:": {
  65304. "uc_base": "1f91a",
  65305. "uc_output": "1f91a",
  65306. "uc_match": "1f91a",
  65307. "uc_greedy": "1f91a",
  65308. "shortnames": [":back_of_hand:"],
  65309. "category": "people"
  65310. },
  65311. ":raised_hands:": {
  65312. "uc_base": "1f64c",
  65313. "uc_output": "1f64c",
  65314. "uc_match": "1f64c",
  65315. "uc_greedy": "1f64c",
  65316. "shortnames": [],
  65317. "category": "people"
  65318. },
  65319. ":ram:": {
  65320. "uc_base": "1f40f",
  65321. "uc_output": "1f40f",
  65322. "uc_match": "1f40f",
  65323. "uc_greedy": "1f40f",
  65324. "shortnames": [],
  65325. "category": "nature"
  65326. },
  65327. ":ramen:": {
  65328. "uc_base": "1f35c",
  65329. "uc_output": "1f35c",
  65330. "uc_match": "1f35c",
  65331. "uc_greedy": "1f35c",
  65332. "shortnames": [],
  65333. "category": "food"
  65334. },
  65335. ":rat:": {
  65336. "uc_base": "1f400",
  65337. "uc_output": "1f400",
  65338. "uc_match": "1f400",
  65339. "uc_greedy": "1f400",
  65340. "shortnames": [],
  65341. "category": "nature"
  65342. },
  65343. ":red_car:": {
  65344. "uc_base": "1f697",
  65345. "uc_output": "1f697",
  65346. "uc_match": "1f697",
  65347. "uc_greedy": "1f697",
  65348. "shortnames": [],
  65349. "category": "travel"
  65350. },
  65351. ":red_circle:": {
  65352. "uc_base": "1f534",
  65353. "uc_output": "1f534",
  65354. "uc_match": "1f534",
  65355. "uc_greedy": "1f534",
  65356. "shortnames": [],
  65357. "category": "symbols"
  65358. },
  65359. ":regional_indicator_a:": {
  65360. "uc_base": "1f1e6",
  65361. "uc_output": "1f1e6",
  65362. "uc_match": "1f1e6",
  65363. "uc_greedy": "1f1e6",
  65364. "shortnames": [],
  65365. "category": "regional"
  65366. },
  65367. ":regional_indicator_b:": {
  65368. "uc_base": "1f1e7",
  65369. "uc_output": "1f1e7",
  65370. "uc_match": "1f1e7",
  65371. "uc_greedy": "1f1e7",
  65372. "shortnames": [],
  65373. "category": "regional"
  65374. },
  65375. ":regional_indicator_c:": {
  65376. "uc_base": "1f1e8",
  65377. "uc_output": "1f1e8",
  65378. "uc_match": "1f1e8",
  65379. "uc_greedy": "1f1e8",
  65380. "shortnames": [],
  65381. "category": "regional"
  65382. },
  65383. ":regional_indicator_d:": {
  65384. "uc_base": "1f1e9",
  65385. "uc_output": "1f1e9",
  65386. "uc_match": "1f1e9",
  65387. "uc_greedy": "1f1e9",
  65388. "shortnames": [],
  65389. "category": "regional"
  65390. },
  65391. ":regional_indicator_e:": {
  65392. "uc_base": "1f1ea",
  65393. "uc_output": "1f1ea",
  65394. "uc_match": "1f1ea",
  65395. "uc_greedy": "1f1ea",
  65396. "shortnames": [],
  65397. "category": "regional"
  65398. },
  65399. ":regional_indicator_f:": {
  65400. "uc_base": "1f1eb",
  65401. "uc_output": "1f1eb",
  65402. "uc_match": "1f1eb",
  65403. "uc_greedy": "1f1eb",
  65404. "shortnames": [],
  65405. "category": "regional"
  65406. },
  65407. ":regional_indicator_g:": {
  65408. "uc_base": "1f1ec",
  65409. "uc_output": "1f1ec",
  65410. "uc_match": "1f1ec",
  65411. "uc_greedy": "1f1ec",
  65412. "shortnames": [],
  65413. "category": "regional"
  65414. },
  65415. ":regional_indicator_h:": {
  65416. "uc_base": "1f1ed",
  65417. "uc_output": "1f1ed",
  65418. "uc_match": "1f1ed",
  65419. "uc_greedy": "1f1ed",
  65420. "shortnames": [],
  65421. "category": "regional"
  65422. },
  65423. ":regional_indicator_i:": {
  65424. "uc_base": "1f1ee",
  65425. "uc_output": "1f1ee",
  65426. "uc_match": "1f1ee",
  65427. "uc_greedy": "1f1ee",
  65428. "shortnames": [],
  65429. "category": "regional"
  65430. },
  65431. ":regional_indicator_j:": {
  65432. "uc_base": "1f1ef",
  65433. "uc_output": "1f1ef",
  65434. "uc_match": "1f1ef",
  65435. "uc_greedy": "1f1ef",
  65436. "shortnames": [],
  65437. "category": "regional"
  65438. },
  65439. ":regional_indicator_k:": {
  65440. "uc_base": "1f1f0",
  65441. "uc_output": "1f1f0",
  65442. "uc_match": "1f1f0",
  65443. "uc_greedy": "1f1f0",
  65444. "shortnames": [],
  65445. "category": "regional"
  65446. },
  65447. ":regional_indicator_l:": {
  65448. "uc_base": "1f1f1",
  65449. "uc_output": "1f1f1",
  65450. "uc_match": "1f1f1",
  65451. "uc_greedy": "1f1f1",
  65452. "shortnames": [],
  65453. "category": "regional"
  65454. },
  65455. ":regional_indicator_m:": {
  65456. "uc_base": "1f1f2",
  65457. "uc_output": "1f1f2",
  65458. "uc_match": "1f1f2",
  65459. "uc_greedy": "1f1f2",
  65460. "shortnames": [],
  65461. "category": "regional"
  65462. },
  65463. ":regional_indicator_n:": {
  65464. "uc_base": "1f1f3",
  65465. "uc_output": "1f1f3",
  65466. "uc_match": "1f1f3",
  65467. "uc_greedy": "1f1f3",
  65468. "shortnames": [],
  65469. "category": "regional"
  65470. },
  65471. ":regional_indicator_o:": {
  65472. "uc_base": "1f1f4",
  65473. "uc_output": "1f1f4",
  65474. "uc_match": "1f1f4",
  65475. "uc_greedy": "1f1f4",
  65476. "shortnames": [],
  65477. "category": "regional"
  65478. },
  65479. ":regional_indicator_p:": {
  65480. "uc_base": "1f1f5",
  65481. "uc_output": "1f1f5",
  65482. "uc_match": "1f1f5",
  65483. "uc_greedy": "1f1f5",
  65484. "shortnames": [],
  65485. "category": "regional"
  65486. },
  65487. ":regional_indicator_q:": {
  65488. "uc_base": "1f1f6",
  65489. "uc_output": "1f1f6",
  65490. "uc_match": "1f1f6",
  65491. "uc_greedy": "1f1f6",
  65492. "shortnames": [],
  65493. "category": "regional"
  65494. },
  65495. ":regional_indicator_r:": {
  65496. "uc_base": "1f1f7",
  65497. "uc_output": "1f1f7",
  65498. "uc_match": "1f1f7",
  65499. "uc_greedy": "1f1f7",
  65500. "shortnames": [],
  65501. "category": "regional"
  65502. },
  65503. ":regional_indicator_s:": {
  65504. "uc_base": "1f1f8",
  65505. "uc_output": "1f1f8",
  65506. "uc_match": "1f1f8",
  65507. "uc_greedy": "1f1f8",
  65508. "shortnames": [],
  65509. "category": "regional"
  65510. },
  65511. ":regional_indicator_t:": {
  65512. "uc_base": "1f1f9",
  65513. "uc_output": "1f1f9",
  65514. "uc_match": "1f1f9",
  65515. "uc_greedy": "1f1f9",
  65516. "shortnames": [],
  65517. "category": "regional"
  65518. },
  65519. ":regional_indicator_u:": {
  65520. "uc_base": "1f1fa",
  65521. "uc_output": "1f1fa",
  65522. "uc_match": "1f1fa",
  65523. "uc_greedy": "1f1fa",
  65524. "shortnames": [],
  65525. "category": "regional"
  65526. },
  65527. ":regional_indicator_v:": {
  65528. "uc_base": "1f1fb",
  65529. "uc_output": "1f1fb",
  65530. "uc_match": "1f1fb",
  65531. "uc_greedy": "1f1fb",
  65532. "shortnames": [],
  65533. "category": "regional"
  65534. },
  65535. ":regional_indicator_w:": {
  65536. "uc_base": "1f1fc",
  65537. "uc_output": "1f1fc",
  65538. "uc_match": "1f1fc",
  65539. "uc_greedy": "1f1fc",
  65540. "shortnames": [],
  65541. "category": "regional"
  65542. },
  65543. ":regional_indicator_x:": {
  65544. "uc_base": "1f1fd",
  65545. "uc_output": "1f1fd",
  65546. "uc_match": "1f1fd",
  65547. "uc_greedy": "1f1fd",
  65548. "shortnames": [],
  65549. "category": "regional"
  65550. },
  65551. ":regional_indicator_y:": {
  65552. "uc_base": "1f1fe",
  65553. "uc_output": "1f1fe",
  65554. "uc_match": "1f1fe",
  65555. "uc_greedy": "1f1fe",
  65556. "shortnames": [],
  65557. "category": "regional"
  65558. },
  65559. ":regional_indicator_z:": {
  65560. "uc_base": "1f1ff",
  65561. "uc_output": "1f1ff",
  65562. "uc_match": "1f1ff",
  65563. "uc_greedy": "1f1ff",
  65564. "shortnames": [],
  65565. "category": "regional"
  65566. },
  65567. ":relieved:": {
  65568. "uc_base": "1f60c",
  65569. "uc_output": "1f60c",
  65570. "uc_match": "1f60c",
  65571. "uc_greedy": "1f60c",
  65572. "shortnames": [],
  65573. "category": "people"
  65574. },
  65575. ":reminder_ribbon:": {
  65576. "uc_base": "1f397",
  65577. "uc_output": "1f397",
  65578. "uc_match": "1f397-fe0f",
  65579. "uc_greedy": "1f397-fe0f",
  65580. "shortnames": [],
  65581. "category": "activity"
  65582. },
  65583. ":repeat:": {
  65584. "uc_base": "1f501",
  65585. "uc_output": "1f501",
  65586. "uc_match": "1f501",
  65587. "uc_greedy": "1f501",
  65588. "shortnames": [],
  65589. "category": "symbols"
  65590. },
  65591. ":repeat_one:": {
  65592. "uc_base": "1f502",
  65593. "uc_output": "1f502",
  65594. "uc_match": "1f502",
  65595. "uc_greedy": "1f502",
  65596. "shortnames": [],
  65597. "category": "symbols"
  65598. },
  65599. ":restroom:": {
  65600. "uc_base": "1f6bb",
  65601. "uc_output": "1f6bb",
  65602. "uc_match": "1f6bb",
  65603. "uc_greedy": "1f6bb",
  65604. "shortnames": [],
  65605. "category": "symbols"
  65606. },
  65607. ":revolving_hearts:": {
  65608. "uc_base": "1f49e",
  65609. "uc_output": "1f49e",
  65610. "uc_match": "1f49e",
  65611. "uc_greedy": "1f49e",
  65612. "shortnames": [],
  65613. "category": "symbols"
  65614. },
  65615. ":rhino:": {
  65616. "uc_base": "1f98f",
  65617. "uc_output": "1f98f",
  65618. "uc_match": "1f98f",
  65619. "uc_greedy": "1f98f",
  65620. "shortnames": [":rhinoceros:"],
  65621. "category": "nature"
  65622. },
  65623. ":ribbon:": {
  65624. "uc_base": "1f380",
  65625. "uc_output": "1f380",
  65626. "uc_match": "1f380",
  65627. "uc_greedy": "1f380",
  65628. "shortnames": [],
  65629. "category": "objects"
  65630. },
  65631. ":rice:": {
  65632. "uc_base": "1f35a",
  65633. "uc_output": "1f35a",
  65634. "uc_match": "1f35a",
  65635. "uc_greedy": "1f35a",
  65636. "shortnames": [],
  65637. "category": "food"
  65638. },
  65639. ":rice_ball:": {
  65640. "uc_base": "1f359",
  65641. "uc_output": "1f359",
  65642. "uc_match": "1f359",
  65643. "uc_greedy": "1f359",
  65644. "shortnames": [],
  65645. "category": "food"
  65646. },
  65647. ":rice_cracker:": {
  65648. "uc_base": "1f358",
  65649. "uc_output": "1f358",
  65650. "uc_match": "1f358",
  65651. "uc_greedy": "1f358",
  65652. "shortnames": [],
  65653. "category": "food"
  65654. },
  65655. ":rice_scene:": {
  65656. "uc_base": "1f391",
  65657. "uc_output": "1f391",
  65658. "uc_match": "1f391",
  65659. "uc_greedy": "1f391",
  65660. "shortnames": [],
  65661. "category": "travel"
  65662. },
  65663. ":right_facing_fist:": {
  65664. "uc_base": "1f91c",
  65665. "uc_output": "1f91c",
  65666. "uc_match": "1f91c",
  65667. "uc_greedy": "1f91c",
  65668. "shortnames": [":right_fist:"],
  65669. "category": "people"
  65670. },
  65671. ":ring:": {
  65672. "uc_base": "1f48d",
  65673. "uc_output": "1f48d",
  65674. "uc_match": "1f48d",
  65675. "uc_greedy": "1f48d",
  65676. "shortnames": [],
  65677. "category": "people"
  65678. },
  65679. ":robot:": {
  65680. "uc_base": "1f916",
  65681. "uc_output": "1f916",
  65682. "uc_match": "1f916",
  65683. "uc_greedy": "1f916",
  65684. "shortnames": [":robot_face:"],
  65685. "category": "people"
  65686. },
  65687. ":rocket:": {
  65688. "uc_base": "1f680",
  65689. "uc_output": "1f680",
  65690. "uc_match": "1f680",
  65691. "uc_greedy": "1f680",
  65692. "shortnames": [],
  65693. "category": "travel"
  65694. },
  65695. ":rofl:": {
  65696. "uc_base": "1f923",
  65697. "uc_output": "1f923",
  65698. "uc_match": "1f923",
  65699. "uc_greedy": "1f923",
  65700. "shortnames": [":rolling_on_the_floor_laughing:"],
  65701. "category": "people"
  65702. },
  65703. ":roller_coaster:": {
  65704. "uc_base": "1f3a2",
  65705. "uc_output": "1f3a2",
  65706. "uc_match": "1f3a2",
  65707. "uc_greedy": "1f3a2",
  65708. "shortnames": [],
  65709. "category": "travel"
  65710. },
  65711. ":rolling_eyes:": {
  65712. "uc_base": "1f644",
  65713. "uc_output": "1f644",
  65714. "uc_match": "1f644",
  65715. "uc_greedy": "1f644",
  65716. "shortnames": [":face_with_rolling_eyes:"],
  65717. "category": "people"
  65718. },
  65719. ":rooster:": {
  65720. "uc_base": "1f413",
  65721. "uc_output": "1f413",
  65722. "uc_match": "1f413",
  65723. "uc_greedy": "1f413",
  65724. "shortnames": [],
  65725. "category": "nature"
  65726. },
  65727. ":rose:": {
  65728. "uc_base": "1f339",
  65729. "uc_output": "1f339",
  65730. "uc_match": "1f339",
  65731. "uc_greedy": "1f339",
  65732. "shortnames": [],
  65733. "category": "nature"
  65734. },
  65735. ":rosette:": {
  65736. "uc_base": "1f3f5",
  65737. "uc_output": "1f3f5",
  65738. "uc_match": "1f3f5-fe0f",
  65739. "uc_greedy": "1f3f5-fe0f",
  65740. "shortnames": [],
  65741. "category": "activity"
  65742. },
  65743. ":rotating_light:": {
  65744. "uc_base": "1f6a8",
  65745. "uc_output": "1f6a8",
  65746. "uc_match": "1f6a8",
  65747. "uc_greedy": "1f6a8",
  65748. "shortnames": [],
  65749. "category": "travel"
  65750. },
  65751. ":round_pushpin:": {
  65752. "uc_base": "1f4cd",
  65753. "uc_output": "1f4cd",
  65754. "uc_match": "1f4cd",
  65755. "uc_greedy": "1f4cd",
  65756. "shortnames": [],
  65757. "category": "objects"
  65758. },
  65759. ":rugby_football:": {
  65760. "uc_base": "1f3c9",
  65761. "uc_output": "1f3c9",
  65762. "uc_match": "1f3c9",
  65763. "uc_greedy": "1f3c9",
  65764. "shortnames": [],
  65765. "category": "activity"
  65766. },
  65767. ":running_shirt_with_sash:": {
  65768. "uc_base": "1f3bd",
  65769. "uc_output": "1f3bd",
  65770. "uc_match": "1f3bd",
  65771. "uc_greedy": "1f3bd",
  65772. "shortnames": [],
  65773. "category": "activity"
  65774. },
  65775. ":sa:": {
  65776. "uc_base": "1f202",
  65777. "uc_output": "1f202",
  65778. "uc_match": "1f202-fe0f",
  65779. "uc_greedy": "1f202-fe0f",
  65780. "shortnames": [],
  65781. "category": "symbols"
  65782. },
  65783. ":sake:": {
  65784. "uc_base": "1f376",
  65785. "uc_output": "1f376",
  65786. "uc_match": "1f376",
  65787. "uc_greedy": "1f376",
  65788. "shortnames": [],
  65789. "category": "food"
  65790. },
  65791. ":salad:": {
  65792. "uc_base": "1f957",
  65793. "uc_output": "1f957",
  65794. "uc_match": "1f957",
  65795. "uc_greedy": "1f957",
  65796. "shortnames": [":green_salad:"],
  65797. "category": "food"
  65798. },
  65799. ":sandal:": {
  65800. "uc_base": "1f461",
  65801. "uc_output": "1f461",
  65802. "uc_match": "1f461",
  65803. "uc_greedy": "1f461",
  65804. "shortnames": [],
  65805. "category": "people"
  65806. },
  65807. ":sandwich:": {
  65808. "uc_base": "1f96a",
  65809. "uc_output": "1f96a",
  65810. "uc_match": "1f96a",
  65811. "uc_greedy": "1f96a",
  65812. "shortnames": [],
  65813. "category": "food"
  65814. },
  65815. ":santa:": {
  65816. "uc_base": "1f385",
  65817. "uc_output": "1f385",
  65818. "uc_match": "1f385",
  65819. "uc_greedy": "1f385",
  65820. "shortnames": [],
  65821. "category": "people"
  65822. },
  65823. ":satellite:": {
  65824. "uc_base": "1f4e1",
  65825. "uc_output": "1f4e1",
  65826. "uc_match": "1f4e1",
  65827. "uc_greedy": "1f4e1",
  65828. "shortnames": [],
  65829. "category": "objects"
  65830. },
  65831. ":satellite_orbital:": {
  65832. "uc_base": "1f6f0",
  65833. "uc_output": "1f6f0",
  65834. "uc_match": "1f6f0-fe0f",
  65835. "uc_greedy": "1f6f0-fe0f",
  65836. "shortnames": [],
  65837. "category": "travel"
  65838. },
  65839. ":sauropod:": {
  65840. "uc_base": "1f995",
  65841. "uc_output": "1f995",
  65842. "uc_match": "1f995",
  65843. "uc_greedy": "1f995",
  65844. "shortnames": [],
  65845. "category": "nature"
  65846. },
  65847. ":saxophone:": {
  65848. "uc_base": "1f3b7",
  65849. "uc_output": "1f3b7",
  65850. "uc_match": "1f3b7",
  65851. "uc_greedy": "1f3b7",
  65852. "shortnames": [],
  65853. "category": "activity"
  65854. },
  65855. ":scarf:": {
  65856. "uc_base": "1f9e3",
  65857. "uc_output": "1f9e3",
  65858. "uc_match": "1f9e3",
  65859. "uc_greedy": "1f9e3",
  65860. "shortnames": [],
  65861. "category": "people"
  65862. },
  65863. ":school:": {
  65864. "uc_base": "1f3eb",
  65865. "uc_output": "1f3eb",
  65866. "uc_match": "1f3eb",
  65867. "uc_greedy": "1f3eb",
  65868. "shortnames": [],
  65869. "category": "travel"
  65870. },
  65871. ":school_satchel:": {
  65872. "uc_base": "1f392",
  65873. "uc_output": "1f392",
  65874. "uc_match": "1f392",
  65875. "uc_greedy": "1f392",
  65876. "shortnames": [],
  65877. "category": "people"
  65878. },
  65879. ":scooter:": {
  65880. "uc_base": "1f6f4",
  65881. "uc_output": "1f6f4",
  65882. "uc_match": "1f6f4",
  65883. "uc_greedy": "1f6f4",
  65884. "shortnames": [],
  65885. "category": "travel"
  65886. },
  65887. ":scorpion:": {
  65888. "uc_base": "1f982",
  65889. "uc_output": "1f982",
  65890. "uc_match": "1f982",
  65891. "uc_greedy": "1f982",
  65892. "shortnames": [],
  65893. "category": "nature"
  65894. },
  65895. ":scream:": {
  65896. "uc_base": "1f631",
  65897. "uc_output": "1f631",
  65898. "uc_match": "1f631",
  65899. "uc_greedy": "1f631",
  65900. "shortnames": [],
  65901. "category": "people"
  65902. },
  65903. ":scream_cat:": {
  65904. "uc_base": "1f640",
  65905. "uc_output": "1f640",
  65906. "uc_match": "1f640",
  65907. "uc_greedy": "1f640",
  65908. "shortnames": [],
  65909. "category": "people"
  65910. },
  65911. ":scroll:": {
  65912. "uc_base": "1f4dc",
  65913. "uc_output": "1f4dc",
  65914. "uc_match": "1f4dc",
  65915. "uc_greedy": "1f4dc",
  65916. "shortnames": [],
  65917. "category": "objects"
  65918. },
  65919. ":seat:": {
  65920. "uc_base": "1f4ba",
  65921. "uc_output": "1f4ba",
  65922. "uc_match": "1f4ba",
  65923. "uc_greedy": "1f4ba",
  65924. "shortnames": [],
  65925. "category": "travel"
  65926. },
  65927. ":second_place:": {
  65928. "uc_base": "1f948",
  65929. "uc_output": "1f948",
  65930. "uc_match": "1f948",
  65931. "uc_greedy": "1f948",
  65932. "shortnames": [":second_place_medal:"],
  65933. "category": "activity"
  65934. },
  65935. ":see_no_evil:": {
  65936. "uc_base": "1f648",
  65937. "uc_output": "1f648",
  65938. "uc_match": "1f648",
  65939. "uc_greedy": "1f648",
  65940. "shortnames": [],
  65941. "category": "nature"
  65942. },
  65943. ":seedling:": {
  65944. "uc_base": "1f331",
  65945. "uc_output": "1f331",
  65946. "uc_match": "1f331",
  65947. "uc_greedy": "1f331",
  65948. "shortnames": [],
  65949. "category": "nature"
  65950. },
  65951. ":selfie:": {
  65952. "uc_base": "1f933",
  65953. "uc_output": "1f933",
  65954. "uc_match": "1f933",
  65955. "uc_greedy": "1f933",
  65956. "shortnames": [],
  65957. "category": "people"
  65958. },
  65959. ":shallow_pan_of_food:": {
  65960. "uc_base": "1f958",
  65961. "uc_output": "1f958",
  65962. "uc_match": "1f958",
  65963. "uc_greedy": "1f958",
  65964. "shortnames": [":paella:"],
  65965. "category": "food"
  65966. },
  65967. ":shark:": {
  65968. "uc_base": "1f988",
  65969. "uc_output": "1f988",
  65970. "uc_match": "1f988",
  65971. "uc_greedy": "1f988",
  65972. "shortnames": [],
  65973. "category": "nature"
  65974. },
  65975. ":shaved_ice:": {
  65976. "uc_base": "1f367",
  65977. "uc_output": "1f367",
  65978. "uc_match": "1f367",
  65979. "uc_greedy": "1f367",
  65980. "shortnames": [],
  65981. "category": "food"
  65982. },
  65983. ":sheep:": {
  65984. "uc_base": "1f411",
  65985. "uc_output": "1f411",
  65986. "uc_match": "1f411",
  65987. "uc_greedy": "1f411",
  65988. "shortnames": [],
  65989. "category": "nature"
  65990. },
  65991. ":shell:": {
  65992. "uc_base": "1f41a",
  65993. "uc_output": "1f41a",
  65994. "uc_match": "1f41a",
  65995. "uc_greedy": "1f41a",
  65996. "shortnames": [],
  65997. "category": "nature"
  65998. },
  65999. ":shield:": {
  66000. "uc_base": "1f6e1",
  66001. "uc_output": "1f6e1",
  66002. "uc_match": "1f6e1-fe0f",
  66003. "uc_greedy": "1f6e1-fe0f",
  66004. "shortnames": [],
  66005. "category": "objects"
  66006. },
  66007. ":ship:": {
  66008. "uc_base": "1f6a2",
  66009. "uc_output": "1f6a2",
  66010. "uc_match": "1f6a2",
  66011. "uc_greedy": "1f6a2",
  66012. "shortnames": [],
  66013. "category": "travel"
  66014. },
  66015. ":shirt:": {
  66016. "uc_base": "1f455",
  66017. "uc_output": "1f455",
  66018. "uc_match": "1f455",
  66019. "uc_greedy": "1f455",
  66020. "shortnames": [],
  66021. "category": "people"
  66022. },
  66023. ":shopping_bags:": {
  66024. "uc_base": "1f6cd",
  66025. "uc_output": "1f6cd",
  66026. "uc_match": "1f6cd-fe0f",
  66027. "uc_greedy": "1f6cd-fe0f",
  66028. "shortnames": [],
  66029. "category": "objects"
  66030. },
  66031. ":shopping_cart:": {
  66032. "uc_base": "1f6d2",
  66033. "uc_output": "1f6d2",
  66034. "uc_match": "1f6d2",
  66035. "uc_greedy": "1f6d2",
  66036. "shortnames": [":shopping_trolley:"],
  66037. "category": "objects"
  66038. },
  66039. ":shower:": {
  66040. "uc_base": "1f6bf",
  66041. "uc_output": "1f6bf",
  66042. "uc_match": "1f6bf",
  66043. "uc_greedy": "1f6bf",
  66044. "shortnames": [],
  66045. "category": "objects"
  66046. },
  66047. ":shrimp:": {
  66048. "uc_base": "1f990",
  66049. "uc_output": "1f990",
  66050. "uc_match": "1f990",
  66051. "uc_greedy": "1f990",
  66052. "shortnames": [],
  66053. "category": "nature"
  66054. },
  66055. ":shushing_face:": {
  66056. "uc_base": "1f92b",
  66057. "uc_output": "1f92b",
  66058. "uc_match": "1f92b",
  66059. "uc_greedy": "1f92b",
  66060. "shortnames": [],
  66061. "category": "people"
  66062. },
  66063. ":signal_strength:": {
  66064. "uc_base": "1f4f6",
  66065. "uc_output": "1f4f6",
  66066. "uc_match": "1f4f6",
  66067. "uc_greedy": "1f4f6",
  66068. "shortnames": [],
  66069. "category": "symbols"
  66070. },
  66071. ":six_pointed_star:": {
  66072. "uc_base": "1f52f",
  66073. "uc_output": "1f52f",
  66074. "uc_match": "1f52f",
  66075. "uc_greedy": "1f52f",
  66076. "shortnames": [],
  66077. "category": "symbols"
  66078. },
  66079. ":ski:": {
  66080. "uc_base": "1f3bf",
  66081. "uc_output": "1f3bf",
  66082. "uc_match": "1f3bf",
  66083. "uc_greedy": "1f3bf",
  66084. "shortnames": [],
  66085. "category": "activity"
  66086. },
  66087. ":skull:": {
  66088. "uc_base": "1f480",
  66089. "uc_output": "1f480",
  66090. "uc_match": "1f480",
  66091. "uc_greedy": "1f480",
  66092. "shortnames": [":skeleton:"],
  66093. "category": "people"
  66094. },
  66095. ":sled:": {
  66096. "uc_base": "1f6f7",
  66097. "uc_output": "1f6f7",
  66098. "uc_match": "1f6f7",
  66099. "uc_greedy": "1f6f7",
  66100. "shortnames": [],
  66101. "category": "activity"
  66102. },
  66103. ":sleeping:": {
  66104. "uc_base": "1f634",
  66105. "uc_output": "1f634",
  66106. "uc_match": "1f634",
  66107. "uc_greedy": "1f634",
  66108. "shortnames": [],
  66109. "category": "people"
  66110. },
  66111. ":sleeping_accommodation:": {
  66112. "uc_base": "1f6cc",
  66113. "uc_output": "1f6cc",
  66114. "uc_match": "1f6cc",
  66115. "uc_greedy": "1f6cc",
  66116. "shortnames": [],
  66117. "category": "objects"
  66118. },
  66119. ":sleepy:": {
  66120. "uc_base": "1f62a",
  66121. "uc_output": "1f62a",
  66122. "uc_match": "1f62a",
  66123. "uc_greedy": "1f62a",
  66124. "shortnames": [],
  66125. "category": "people"
  66126. },
  66127. ":slight_frown:": {
  66128. "uc_base": "1f641",
  66129. "uc_output": "1f641",
  66130. "uc_match": "1f641",
  66131. "uc_greedy": "1f641",
  66132. "shortnames": [":slightly_frowning_face:"],
  66133. "category": "people"
  66134. },
  66135. ":slight_smile:": {
  66136. "uc_base": "1f642",
  66137. "uc_output": "1f642",
  66138. "uc_match": "1f642",
  66139. "uc_greedy": "1f642",
  66140. "shortnames": [":slightly_smiling_face:"],
  66141. "category": "people"
  66142. },
  66143. ":slot_machine:": {
  66144. "uc_base": "1f3b0",
  66145. "uc_output": "1f3b0",
  66146. "uc_match": "1f3b0",
  66147. "uc_greedy": "1f3b0",
  66148. "shortnames": [],
  66149. "category": "activity"
  66150. },
  66151. ":small_blue_diamond:": {
  66152. "uc_base": "1f539",
  66153. "uc_output": "1f539",
  66154. "uc_match": "1f539",
  66155. "uc_greedy": "1f539",
  66156. "shortnames": [],
  66157. "category": "symbols"
  66158. },
  66159. ":small_orange_diamond:": {
  66160. "uc_base": "1f538",
  66161. "uc_output": "1f538",
  66162. "uc_match": "1f538",
  66163. "uc_greedy": "1f538",
  66164. "shortnames": [],
  66165. "category": "symbols"
  66166. },
  66167. ":small_red_triangle:": {
  66168. "uc_base": "1f53a",
  66169. "uc_output": "1f53a",
  66170. "uc_match": "1f53a",
  66171. "uc_greedy": "1f53a",
  66172. "shortnames": [],
  66173. "category": "symbols"
  66174. },
  66175. ":small_red_triangle_down:": {
  66176. "uc_base": "1f53b",
  66177. "uc_output": "1f53b",
  66178. "uc_match": "1f53b",
  66179. "uc_greedy": "1f53b",
  66180. "shortnames": [],
  66181. "category": "symbols"
  66182. },
  66183. ":smile:": {
  66184. "uc_base": "1f604",
  66185. "uc_output": "1f604",
  66186. "uc_match": "1f604",
  66187. "uc_greedy": "1f604",
  66188. "shortnames": [],
  66189. "category": "people"
  66190. },
  66191. ":smile_cat:": {
  66192. "uc_base": "1f638",
  66193. "uc_output": "1f638",
  66194. "uc_match": "1f638",
  66195. "uc_greedy": "1f638",
  66196. "shortnames": [],
  66197. "category": "people"
  66198. },
  66199. ":smiley:": {
  66200. "uc_base": "1f603",
  66201. "uc_output": "1f603",
  66202. "uc_match": "1f603",
  66203. "uc_greedy": "1f603",
  66204. "shortnames": [],
  66205. "category": "people"
  66206. },
  66207. ":smiley_cat:": {
  66208. "uc_base": "1f63a",
  66209. "uc_output": "1f63a",
  66210. "uc_match": "1f63a",
  66211. "uc_greedy": "1f63a",
  66212. "shortnames": [],
  66213. "category": "people"
  66214. },
  66215. ":smiling_imp:": {
  66216. "uc_base": "1f608",
  66217. "uc_output": "1f608",
  66218. "uc_match": "1f608",
  66219. "uc_greedy": "1f608",
  66220. "shortnames": [],
  66221. "category": "people"
  66222. },
  66223. ":smirk:": {
  66224. "uc_base": "1f60f",
  66225. "uc_output": "1f60f",
  66226. "uc_match": "1f60f",
  66227. "uc_greedy": "1f60f",
  66228. "shortnames": [],
  66229. "category": "people"
  66230. },
  66231. ":smirk_cat:": {
  66232. "uc_base": "1f63c",
  66233. "uc_output": "1f63c",
  66234. "uc_match": "1f63c",
  66235. "uc_greedy": "1f63c",
  66236. "shortnames": [],
  66237. "category": "people"
  66238. },
  66239. ":smoking:": {
  66240. "uc_base": "1f6ac",
  66241. "uc_output": "1f6ac",
  66242. "uc_match": "1f6ac",
  66243. "uc_greedy": "1f6ac",
  66244. "shortnames": [],
  66245. "category": "objects"
  66246. },
  66247. ":snail:": {
  66248. "uc_base": "1f40c",
  66249. "uc_output": "1f40c",
  66250. "uc_match": "1f40c",
  66251. "uc_greedy": "1f40c",
  66252. "shortnames": [],
  66253. "category": "nature"
  66254. },
  66255. ":snake:": {
  66256. "uc_base": "1f40d",
  66257. "uc_output": "1f40d",
  66258. "uc_match": "1f40d",
  66259. "uc_greedy": "1f40d",
  66260. "shortnames": [],
  66261. "category": "nature"
  66262. },
  66263. ":sneezing_face:": {
  66264. "uc_base": "1f927",
  66265. "uc_output": "1f927",
  66266. "uc_match": "1f927",
  66267. "uc_greedy": "1f927",
  66268. "shortnames": [":sneeze:"],
  66269. "category": "people"
  66270. },
  66271. ":snowboarder:": {
  66272. "uc_base": "1f3c2",
  66273. "uc_output": "1f3c2",
  66274. "uc_match": "1f3c2-fe0f",
  66275. "uc_greedy": "1f3c2-fe0f",
  66276. "shortnames": [],
  66277. "category": "activity"
  66278. },
  66279. ":sob:": {
  66280. "uc_base": "1f62d",
  66281. "uc_output": "1f62d",
  66282. "uc_match": "1f62d",
  66283. "uc_greedy": "1f62d",
  66284. "shortnames": [],
  66285. "category": "people"
  66286. },
  66287. ":socks:": {
  66288. "uc_base": "1f9e6",
  66289. "uc_output": "1f9e6",
  66290. "uc_match": "1f9e6",
  66291. "uc_greedy": "1f9e6",
  66292. "shortnames": [],
  66293. "category": "people"
  66294. },
  66295. ":soon:": {
  66296. "uc_base": "1f51c",
  66297. "uc_output": "1f51c",
  66298. "uc_match": "1f51c",
  66299. "uc_greedy": "1f51c",
  66300. "shortnames": [],
  66301. "category": "symbols"
  66302. },
  66303. ":sos:": {
  66304. "uc_base": "1f198",
  66305. "uc_output": "1f198",
  66306. "uc_match": "1f198",
  66307. "uc_greedy": "1f198",
  66308. "shortnames": [],
  66309. "category": "symbols"
  66310. },
  66311. ":sound:": {
  66312. "uc_base": "1f509",
  66313. "uc_output": "1f509",
  66314. "uc_match": "1f509",
  66315. "uc_greedy": "1f509",
  66316. "shortnames": [],
  66317. "category": "symbols"
  66318. },
  66319. ":space_invader:": {
  66320. "uc_base": "1f47e",
  66321. "uc_output": "1f47e",
  66322. "uc_match": "1f47e",
  66323. "uc_greedy": "1f47e",
  66324. "shortnames": [],
  66325. "category": "people"
  66326. },
  66327. ":spaghetti:": {
  66328. "uc_base": "1f35d",
  66329. "uc_output": "1f35d",
  66330. "uc_match": "1f35d",
  66331. "uc_greedy": "1f35d",
  66332. "shortnames": [],
  66333. "category": "food"
  66334. },
  66335. ":sparkler:": {
  66336. "uc_base": "1f387",
  66337. "uc_output": "1f387",
  66338. "uc_match": "1f387",
  66339. "uc_greedy": "1f387",
  66340. "shortnames": [],
  66341. "category": "travel"
  66342. },
  66343. ":sparkling_heart:": {
  66344. "uc_base": "1f496",
  66345. "uc_output": "1f496",
  66346. "uc_match": "1f496",
  66347. "uc_greedy": "1f496",
  66348. "shortnames": [],
  66349. "category": "symbols"
  66350. },
  66351. ":speak_no_evil:": {
  66352. "uc_base": "1f64a",
  66353. "uc_output": "1f64a",
  66354. "uc_match": "1f64a",
  66355. "uc_greedy": "1f64a",
  66356. "shortnames": [],
  66357. "category": "nature"
  66358. },
  66359. ":speaker:": {
  66360. "uc_base": "1f508",
  66361. "uc_output": "1f508",
  66362. "uc_match": "1f508-fe0f",
  66363. "uc_greedy": "1f508-fe0f",
  66364. "shortnames": [],
  66365. "category": "symbols"
  66366. },
  66367. ":speaking_head:": {
  66368. "uc_base": "1f5e3",
  66369. "uc_output": "1f5e3",
  66370. "uc_match": "1f5e3-fe0f",
  66371. "uc_greedy": "1f5e3-fe0f",
  66372. "shortnames": [":speaking_head_in_silhouette:"],
  66373. "category": "people"
  66374. },
  66375. ":speech_balloon:": {
  66376. "uc_base": "1f4ac",
  66377. "uc_output": "1f4ac",
  66378. "uc_match": "1f4ac",
  66379. "uc_greedy": "1f4ac",
  66380. "shortnames": [],
  66381. "category": "symbols"
  66382. },
  66383. ":speech_left:": {
  66384. "uc_base": "1f5e8",
  66385. "uc_output": "1f5e8",
  66386. "uc_match": "1f5e8-fe0f",
  66387. "uc_greedy": "1f5e8-fe0f",
  66388. "shortnames": [":left_speech_bubble:"],
  66389. "category": "symbols"
  66390. },
  66391. ":speedboat:": {
  66392. "uc_base": "1f6a4",
  66393. "uc_output": "1f6a4",
  66394. "uc_match": "1f6a4",
  66395. "uc_greedy": "1f6a4",
  66396. "shortnames": [],
  66397. "category": "travel"
  66398. },
  66399. ":spider:": {
  66400. "uc_base": "1f577",
  66401. "uc_output": "1f577",
  66402. "uc_match": "1f577-fe0f",
  66403. "uc_greedy": "1f577-fe0f",
  66404. "shortnames": [],
  66405. "category": "nature"
  66406. },
  66407. ":spider_web:": {
  66408. "uc_base": "1f578",
  66409. "uc_output": "1f578",
  66410. "uc_match": "1f578-fe0f",
  66411. "uc_greedy": "1f578-fe0f",
  66412. "shortnames": [],
  66413. "category": "nature"
  66414. },
  66415. ":spoon:": {
  66416. "uc_base": "1f944",
  66417. "uc_output": "1f944",
  66418. "uc_match": "1f944",
  66419. "uc_greedy": "1f944",
  66420. "shortnames": [],
  66421. "category": "food"
  66422. },
  66423. ":squid:": {
  66424. "uc_base": "1f991",
  66425. "uc_output": "1f991",
  66426. "uc_match": "1f991",
  66427. "uc_greedy": "1f991",
  66428. "shortnames": [],
  66429. "category": "nature"
  66430. },
  66431. ":stadium:": {
  66432. "uc_base": "1f3df",
  66433. "uc_output": "1f3df",
  66434. "uc_match": "1f3df-fe0f",
  66435. "uc_greedy": "1f3df-fe0f",
  66436. "shortnames": [],
  66437. "category": "travel"
  66438. },
  66439. ":star2:": {
  66440. "uc_base": "1f31f",
  66441. "uc_output": "1f31f",
  66442. "uc_match": "1f31f",
  66443. "uc_greedy": "1f31f",
  66444. "shortnames": [],
  66445. "category": "nature"
  66446. },
  66447. ":star_struck:": {
  66448. "uc_base": "1f929",
  66449. "uc_output": "1f929",
  66450. "uc_match": "1f929",
  66451. "uc_greedy": "1f929",
  66452. "shortnames": [],
  66453. "category": "people"
  66454. },
  66455. ":stars:": {
  66456. "uc_base": "1f320",
  66457. "uc_output": "1f320",
  66458. "uc_match": "1f320",
  66459. "uc_greedy": "1f320",
  66460. "shortnames": [],
  66461. "category": "travel"
  66462. },
  66463. ":station:": {
  66464. "uc_base": "1f689",
  66465. "uc_output": "1f689",
  66466. "uc_match": "1f689",
  66467. "uc_greedy": "1f689",
  66468. "shortnames": [],
  66469. "category": "travel"
  66470. },
  66471. ":statue_of_liberty:": {
  66472. "uc_base": "1f5fd",
  66473. "uc_output": "1f5fd",
  66474. "uc_match": "1f5fd",
  66475. "uc_greedy": "1f5fd",
  66476. "shortnames": [],
  66477. "category": "travel"
  66478. },
  66479. ":steam_locomotive:": {
  66480. "uc_base": "1f682",
  66481. "uc_output": "1f682",
  66482. "uc_match": "1f682",
  66483. "uc_greedy": "1f682",
  66484. "shortnames": [],
  66485. "category": "travel"
  66486. },
  66487. ":stew:": {
  66488. "uc_base": "1f372",
  66489. "uc_output": "1f372",
  66490. "uc_match": "1f372",
  66491. "uc_greedy": "1f372",
  66492. "shortnames": [],
  66493. "category": "food"
  66494. },
  66495. ":straight_ruler:": {
  66496. "uc_base": "1f4cf",
  66497. "uc_output": "1f4cf",
  66498. "uc_match": "1f4cf",
  66499. "uc_greedy": "1f4cf",
  66500. "shortnames": [],
  66501. "category": "objects"
  66502. },
  66503. ":strawberry:": {
  66504. "uc_base": "1f353",
  66505. "uc_output": "1f353",
  66506. "uc_match": "1f353",
  66507. "uc_greedy": "1f353",
  66508. "shortnames": [],
  66509. "category": "food"
  66510. },
  66511. ":stuck_out_tongue:": {
  66512. "uc_base": "1f61b",
  66513. "uc_output": "1f61b",
  66514. "uc_match": "1f61b",
  66515. "uc_greedy": "1f61b",
  66516. "shortnames": [],
  66517. "category": "people"
  66518. },
  66519. ":stuck_out_tongue_closed_eyes:": {
  66520. "uc_base": "1f61d",
  66521. "uc_output": "1f61d",
  66522. "uc_match": "1f61d",
  66523. "uc_greedy": "1f61d",
  66524. "shortnames": [],
  66525. "category": "people"
  66526. },
  66527. ":stuck_out_tongue_winking_eye:": {
  66528. "uc_base": "1f61c",
  66529. "uc_output": "1f61c",
  66530. "uc_match": "1f61c",
  66531. "uc_greedy": "1f61c",
  66532. "shortnames": [],
  66533. "category": "people"
  66534. },
  66535. ":stuffed_flatbread:": {
  66536. "uc_base": "1f959",
  66537. "uc_output": "1f959",
  66538. "uc_match": "1f959",
  66539. "uc_greedy": "1f959",
  66540. "shortnames": [":stuffed_pita:"],
  66541. "category": "food"
  66542. },
  66543. ":sun_with_face:": {
  66544. "uc_base": "1f31e",
  66545. "uc_output": "1f31e",
  66546. "uc_match": "1f31e",
  66547. "uc_greedy": "1f31e",
  66548. "shortnames": [],
  66549. "category": "nature"
  66550. },
  66551. ":sunflower:": {
  66552. "uc_base": "1f33b",
  66553. "uc_output": "1f33b",
  66554. "uc_match": "1f33b",
  66555. "uc_greedy": "1f33b",
  66556. "shortnames": [],
  66557. "category": "nature"
  66558. },
  66559. ":sunglasses:": {
  66560. "uc_base": "1f60e",
  66561. "uc_output": "1f60e",
  66562. "uc_match": "1f60e",
  66563. "uc_greedy": "1f60e",
  66564. "shortnames": [],
  66565. "category": "people"
  66566. },
  66567. ":sunrise:": {
  66568. "uc_base": "1f305",
  66569. "uc_output": "1f305",
  66570. "uc_match": "1f305",
  66571. "uc_greedy": "1f305",
  66572. "shortnames": [],
  66573. "category": "travel"
  66574. },
  66575. ":sunrise_over_mountains:": {
  66576. "uc_base": "1f304",
  66577. "uc_output": "1f304",
  66578. "uc_match": "1f304",
  66579. "uc_greedy": "1f304",
  66580. "shortnames": [],
  66581. "category": "travel"
  66582. },
  66583. ":sushi:": {
  66584. "uc_base": "1f363",
  66585. "uc_output": "1f363",
  66586. "uc_match": "1f363",
  66587. "uc_greedy": "1f363",
  66588. "shortnames": [],
  66589. "category": "food"
  66590. },
  66591. ":suspension_railway:": {
  66592. "uc_base": "1f69f",
  66593. "uc_output": "1f69f",
  66594. "uc_match": "1f69f",
  66595. "uc_greedy": "1f69f",
  66596. "shortnames": [],
  66597. "category": "travel"
  66598. },
  66599. ":sweat:": {
  66600. "uc_base": "1f613",
  66601. "uc_output": "1f613",
  66602. "uc_match": "1f613",
  66603. "uc_greedy": "1f613",
  66604. "shortnames": [],
  66605. "category": "people"
  66606. },
  66607. ":sweat_drops:": {
  66608. "uc_base": "1f4a6",
  66609. "uc_output": "1f4a6",
  66610. "uc_match": "1f4a6",
  66611. "uc_greedy": "1f4a6",
  66612. "shortnames": [],
  66613. "category": "nature"
  66614. },
  66615. ":sweat_smile:": {
  66616. "uc_base": "1f605",
  66617. "uc_output": "1f605",
  66618. "uc_match": "1f605",
  66619. "uc_greedy": "1f605",
  66620. "shortnames": [],
  66621. "category": "people"
  66622. },
  66623. ":sweet_potato:": {
  66624. "uc_base": "1f360",
  66625. "uc_output": "1f360",
  66626. "uc_match": "1f360",
  66627. "uc_greedy": "1f360",
  66628. "shortnames": [],
  66629. "category": "food"
  66630. },
  66631. ":symbols:": {
  66632. "uc_base": "1f523",
  66633. "uc_output": "1f523",
  66634. "uc_match": "1f523",
  66635. "uc_greedy": "1f523",
  66636. "shortnames": [],
  66637. "category": "symbols"
  66638. },
  66639. ":synagogue:": {
  66640. "uc_base": "1f54d",
  66641. "uc_output": "1f54d",
  66642. "uc_match": "1f54d",
  66643. "uc_greedy": "1f54d",
  66644. "shortnames": [],
  66645. "category": "travel"
  66646. },
  66647. ":syringe:": {
  66648. "uc_base": "1f489",
  66649. "uc_output": "1f489",
  66650. "uc_match": "1f489",
  66651. "uc_greedy": "1f489",
  66652. "shortnames": [],
  66653. "category": "objects"
  66654. },
  66655. ":t_rex:": {
  66656. "uc_base": "1f996",
  66657. "uc_output": "1f996",
  66658. "uc_match": "1f996",
  66659. "uc_greedy": "1f996",
  66660. "shortnames": [],
  66661. "category": "nature"
  66662. },
  66663. ":taco:": {
  66664. "uc_base": "1f32e",
  66665. "uc_output": "1f32e",
  66666. "uc_match": "1f32e",
  66667. "uc_greedy": "1f32e",
  66668. "shortnames": [],
  66669. "category": "food"
  66670. },
  66671. ":tada:": {
  66672. "uc_base": "1f389",
  66673. "uc_output": "1f389",
  66674. "uc_match": "1f389",
  66675. "uc_greedy": "1f389",
  66676. "shortnames": [],
  66677. "category": "objects"
  66678. },
  66679. ":takeout_box:": {
  66680. "uc_base": "1f961",
  66681. "uc_output": "1f961",
  66682. "uc_match": "1f961",
  66683. "uc_greedy": "1f961",
  66684. "shortnames": [],
  66685. "category": "food"
  66686. },
  66687. ":tanabata_tree:": {
  66688. "uc_base": "1f38b",
  66689. "uc_output": "1f38b",
  66690. "uc_match": "1f38b",
  66691. "uc_greedy": "1f38b",
  66692. "shortnames": [],
  66693. "category": "nature"
  66694. },
  66695. ":tangerine:": {
  66696. "uc_base": "1f34a",
  66697. "uc_output": "1f34a",
  66698. "uc_match": "1f34a",
  66699. "uc_greedy": "1f34a",
  66700. "shortnames": [],
  66701. "category": "food"
  66702. },
  66703. ":taxi:": {
  66704. "uc_base": "1f695",
  66705. "uc_output": "1f695",
  66706. "uc_match": "1f695",
  66707. "uc_greedy": "1f695",
  66708. "shortnames": [],
  66709. "category": "travel"
  66710. },
  66711. ":tea:": {
  66712. "uc_base": "1f375",
  66713. "uc_output": "1f375",
  66714. "uc_match": "1f375",
  66715. "uc_greedy": "1f375",
  66716. "shortnames": [],
  66717. "category": "food"
  66718. },
  66719. ":telephone_receiver:": {
  66720. "uc_base": "1f4de",
  66721. "uc_output": "1f4de",
  66722. "uc_match": "1f4de",
  66723. "uc_greedy": "1f4de",
  66724. "shortnames": [],
  66725. "category": "objects"
  66726. },
  66727. ":telescope:": {
  66728. "uc_base": "1f52d",
  66729. "uc_output": "1f52d",
  66730. "uc_match": "1f52d",
  66731. "uc_greedy": "1f52d",
  66732. "shortnames": [],
  66733. "category": "objects"
  66734. },
  66735. ":tennis:": {
  66736. "uc_base": "1f3be",
  66737. "uc_output": "1f3be",
  66738. "uc_match": "1f3be",
  66739. "uc_greedy": "1f3be",
  66740. "shortnames": [],
  66741. "category": "activity"
  66742. },
  66743. ":thermometer:": {
  66744. "uc_base": "1f321",
  66745. "uc_output": "1f321",
  66746. "uc_match": "1f321-fe0f",
  66747. "uc_greedy": "1f321-fe0f",
  66748. "shortnames": [],
  66749. "category": "objects"
  66750. },
  66751. ":thermometer_face:": {
  66752. "uc_base": "1f912",
  66753. "uc_output": "1f912",
  66754. "uc_match": "1f912",
  66755. "uc_greedy": "1f912",
  66756. "shortnames": [":face_with_thermometer:"],
  66757. "category": "people"
  66758. },
  66759. ":thinking:": {
  66760. "uc_base": "1f914",
  66761. "uc_output": "1f914",
  66762. "uc_match": "1f914",
  66763. "uc_greedy": "1f914",
  66764. "shortnames": [":thinking_face:"],
  66765. "category": "people"
  66766. },
  66767. ":third_place:": {
  66768. "uc_base": "1f949",
  66769. "uc_output": "1f949",
  66770. "uc_match": "1f949",
  66771. "uc_greedy": "1f949",
  66772. "shortnames": [":third_place_medal:"],
  66773. "category": "activity"
  66774. },
  66775. ":thought_balloon:": {
  66776. "uc_base": "1f4ad",
  66777. "uc_output": "1f4ad",
  66778. "uc_match": "1f4ad",
  66779. "uc_greedy": "1f4ad",
  66780. "shortnames": [],
  66781. "category": "symbols"
  66782. },
  66783. ":thumbsdown:": {
  66784. "uc_base": "1f44e",
  66785. "uc_output": "1f44e",
  66786. "uc_match": "1f44e-fe0f",
  66787. "uc_greedy": "1f44e-fe0f",
  66788. "shortnames": [":-1:", ":thumbdown:"],
  66789. "category": "people"
  66790. },
  66791. ":thumbsup:": {
  66792. "uc_base": "1f44d",
  66793. "uc_output": "1f44d",
  66794. "uc_match": "1f44d-fe0f",
  66795. "uc_greedy": "1f44d-fe0f",
  66796. "shortnames": [":+1:", ":thumbup:"],
  66797. "category": "people"
  66798. },
  66799. ":ticket:": {
  66800. "uc_base": "1f3ab",
  66801. "uc_output": "1f3ab",
  66802. "uc_match": "1f3ab",
  66803. "uc_greedy": "1f3ab",
  66804. "shortnames": [],
  66805. "category": "activity"
  66806. },
  66807. ":tickets:": {
  66808. "uc_base": "1f39f",
  66809. "uc_output": "1f39f",
  66810. "uc_match": "1f39f-fe0f",
  66811. "uc_greedy": "1f39f-fe0f",
  66812. "shortnames": [":admission_tickets:"],
  66813. "category": "activity"
  66814. },
  66815. ":tiger2:": {
  66816. "uc_base": "1f405",
  66817. "uc_output": "1f405",
  66818. "uc_match": "1f405",
  66819. "uc_greedy": "1f405",
  66820. "shortnames": [],
  66821. "category": "nature"
  66822. },
  66823. ":tiger:": {
  66824. "uc_base": "1f42f",
  66825. "uc_output": "1f42f",
  66826. "uc_match": "1f42f",
  66827. "uc_greedy": "1f42f",
  66828. "shortnames": [],
  66829. "category": "nature"
  66830. },
  66831. ":tired_face:": {
  66832. "uc_base": "1f62b",
  66833. "uc_output": "1f62b",
  66834. "uc_match": "1f62b",
  66835. "uc_greedy": "1f62b",
  66836. "shortnames": [],
  66837. "category": "people"
  66838. },
  66839. ":toilet:": {
  66840. "uc_base": "1f6bd",
  66841. "uc_output": "1f6bd",
  66842. "uc_match": "1f6bd",
  66843. "uc_greedy": "1f6bd",
  66844. "shortnames": [],
  66845. "category": "objects"
  66846. },
  66847. ":tokyo_tower:": {
  66848. "uc_base": "1f5fc",
  66849. "uc_output": "1f5fc",
  66850. "uc_match": "1f5fc",
  66851. "uc_greedy": "1f5fc",
  66852. "shortnames": [],
  66853. "category": "travel"
  66854. },
  66855. ":tomato:": {
  66856. "uc_base": "1f345",
  66857. "uc_output": "1f345",
  66858. "uc_match": "1f345",
  66859. "uc_greedy": "1f345",
  66860. "shortnames": [],
  66861. "category": "food"
  66862. },
  66863. ":tone1:": {
  66864. "uc_base": "1f3fb",
  66865. "uc_output": "1f3fb",
  66866. "uc_match": "1f3fb",
  66867. "uc_greedy": "1f3fb",
  66868. "shortnames": [],
  66869. "category": "modifier"
  66870. },
  66871. ":tone2:": {
  66872. "uc_base": "1f3fc",
  66873. "uc_output": "1f3fc",
  66874. "uc_match": "1f3fc",
  66875. "uc_greedy": "1f3fc",
  66876. "shortnames": [],
  66877. "category": "modifier"
  66878. },
  66879. ":tone3:": {
  66880. "uc_base": "1f3fd",
  66881. "uc_output": "1f3fd",
  66882. "uc_match": "1f3fd",
  66883. "uc_greedy": "1f3fd",
  66884. "shortnames": [],
  66885. "category": "modifier"
  66886. },
  66887. ":tone4:": {
  66888. "uc_base": "1f3fe",
  66889. "uc_output": "1f3fe",
  66890. "uc_match": "1f3fe",
  66891. "uc_greedy": "1f3fe",
  66892. "shortnames": [],
  66893. "category": "modifier"
  66894. },
  66895. ":tone5:": {
  66896. "uc_base": "1f3ff",
  66897. "uc_output": "1f3ff",
  66898. "uc_match": "1f3ff",
  66899. "uc_greedy": "1f3ff",
  66900. "shortnames": [],
  66901. "category": "modifier"
  66902. },
  66903. ":tongue:": {
  66904. "uc_base": "1f445",
  66905. "uc_output": "1f445",
  66906. "uc_match": "1f445",
  66907. "uc_greedy": "1f445",
  66908. "shortnames": [],
  66909. "category": "people"
  66910. },
  66911. ":tools:": {
  66912. "uc_base": "1f6e0",
  66913. "uc_output": "1f6e0",
  66914. "uc_match": "1f6e0-fe0f",
  66915. "uc_greedy": "1f6e0-fe0f",
  66916. "shortnames": [":hammer_and_wrench:"],
  66917. "category": "objects"
  66918. },
  66919. ":top:": {
  66920. "uc_base": "1f51d",
  66921. "uc_output": "1f51d",
  66922. "uc_match": "1f51d",
  66923. "uc_greedy": "1f51d",
  66924. "shortnames": [],
  66925. "category": "symbols"
  66926. },
  66927. ":tophat:": {
  66928. "uc_base": "1f3a9",
  66929. "uc_output": "1f3a9",
  66930. "uc_match": "1f3a9",
  66931. "uc_greedy": "1f3a9",
  66932. "shortnames": [],
  66933. "category": "people"
  66934. },
  66935. ":trackball:": {
  66936. "uc_base": "1f5b2",
  66937. "uc_output": "1f5b2",
  66938. "uc_match": "1f5b2-fe0f",
  66939. "uc_greedy": "1f5b2-fe0f",
  66940. "shortnames": [],
  66941. "category": "objects"
  66942. },
  66943. ":tractor:": {
  66944. "uc_base": "1f69c",
  66945. "uc_output": "1f69c",
  66946. "uc_match": "1f69c",
  66947. "uc_greedy": "1f69c",
  66948. "shortnames": [],
  66949. "category": "travel"
  66950. },
  66951. ":traffic_light:": {
  66952. "uc_base": "1f6a5",
  66953. "uc_output": "1f6a5",
  66954. "uc_match": "1f6a5",
  66955. "uc_greedy": "1f6a5",
  66956. "shortnames": [],
  66957. "category": "travel"
  66958. },
  66959. ":train2:": {
  66960. "uc_base": "1f686",
  66961. "uc_output": "1f686",
  66962. "uc_match": "1f686",
  66963. "uc_greedy": "1f686",
  66964. "shortnames": [],
  66965. "category": "travel"
  66966. },
  66967. ":train:": {
  66968. "uc_base": "1f68b",
  66969. "uc_output": "1f68b",
  66970. "uc_match": "1f68b",
  66971. "uc_greedy": "1f68b",
  66972. "shortnames": [],
  66973. "category": "travel"
  66974. },
  66975. ":tram:": {
  66976. "uc_base": "1f68a",
  66977. "uc_output": "1f68a",
  66978. "uc_match": "1f68a",
  66979. "uc_greedy": "1f68a",
  66980. "shortnames": [],
  66981. "category": "travel"
  66982. },
  66983. ":triangular_flag_on_post:": {
  66984. "uc_base": "1f6a9",
  66985. "uc_output": "1f6a9",
  66986. "uc_match": "1f6a9",
  66987. "uc_greedy": "1f6a9",
  66988. "shortnames": [],
  66989. "category": "flags"
  66990. },
  66991. ":triangular_ruler:": {
  66992. "uc_base": "1f4d0",
  66993. "uc_output": "1f4d0",
  66994. "uc_match": "1f4d0",
  66995. "uc_greedy": "1f4d0",
  66996. "shortnames": [],
  66997. "category": "objects"
  66998. },
  66999. ":trident:": {
  67000. "uc_base": "1f531",
  67001. "uc_output": "1f531",
  67002. "uc_match": "1f531",
  67003. "uc_greedy": "1f531",
  67004. "shortnames": [],
  67005. "category": "symbols"
  67006. },
  67007. ":triumph:": {
  67008. "uc_base": "1f624",
  67009. "uc_output": "1f624",
  67010. "uc_match": "1f624",
  67011. "uc_greedy": "1f624",
  67012. "shortnames": [],
  67013. "category": "people"
  67014. },
  67015. ":trolleybus:": {
  67016. "uc_base": "1f68e",
  67017. "uc_output": "1f68e",
  67018. "uc_match": "1f68e",
  67019. "uc_greedy": "1f68e",
  67020. "shortnames": [],
  67021. "category": "travel"
  67022. },
  67023. ":trophy:": {
  67024. "uc_base": "1f3c6",
  67025. "uc_output": "1f3c6",
  67026. "uc_match": "1f3c6-fe0f",
  67027. "uc_greedy": "1f3c6-fe0f",
  67028. "shortnames": [],
  67029. "category": "activity"
  67030. },
  67031. ":tropical_drink:": {
  67032. "uc_base": "1f379",
  67033. "uc_output": "1f379",
  67034. "uc_match": "1f379",
  67035. "uc_greedy": "1f379",
  67036. "shortnames": [],
  67037. "category": "food"
  67038. },
  67039. ":tropical_fish:": {
  67040. "uc_base": "1f420",
  67041. "uc_output": "1f420",
  67042. "uc_match": "1f420",
  67043. "uc_greedy": "1f420",
  67044. "shortnames": [],
  67045. "category": "nature"
  67046. },
  67047. ":truck:": {
  67048. "uc_base": "1f69a",
  67049. "uc_output": "1f69a",
  67050. "uc_match": "1f69a",
  67051. "uc_greedy": "1f69a",
  67052. "shortnames": [],
  67053. "category": "travel"
  67054. },
  67055. ":trumpet:": {
  67056. "uc_base": "1f3ba",
  67057. "uc_output": "1f3ba",
  67058. "uc_match": "1f3ba",
  67059. "uc_greedy": "1f3ba",
  67060. "shortnames": [],
  67061. "category": "activity"
  67062. },
  67063. ":tulip:": {
  67064. "uc_base": "1f337",
  67065. "uc_output": "1f337",
  67066. "uc_match": "1f337",
  67067. "uc_greedy": "1f337",
  67068. "shortnames": [],
  67069. "category": "nature"
  67070. },
  67071. ":tumbler_glass:": {
  67072. "uc_base": "1f943",
  67073. "uc_output": "1f943",
  67074. "uc_match": "1f943",
  67075. "uc_greedy": "1f943",
  67076. "shortnames": [":whisky:"],
  67077. "category": "food"
  67078. },
  67079. ":turkey:": {
  67080. "uc_base": "1f983",
  67081. "uc_output": "1f983",
  67082. "uc_match": "1f983",
  67083. "uc_greedy": "1f983",
  67084. "shortnames": [],
  67085. "category": "nature"
  67086. },
  67087. ":turtle:": {
  67088. "uc_base": "1f422",
  67089. "uc_output": "1f422",
  67090. "uc_match": "1f422",
  67091. "uc_greedy": "1f422",
  67092. "shortnames": [],
  67093. "category": "nature"
  67094. },
  67095. ":tv:": {
  67096. "uc_base": "1f4fa",
  67097. "uc_output": "1f4fa",
  67098. "uc_match": "1f4fa-fe0f",
  67099. "uc_greedy": "1f4fa-fe0f",
  67100. "shortnames": [],
  67101. "category": "objects"
  67102. },
  67103. ":twisted_rightwards_arrows:": {
  67104. "uc_base": "1f500",
  67105. "uc_output": "1f500",
  67106. "uc_match": "1f500",
  67107. "uc_greedy": "1f500",
  67108. "shortnames": [],
  67109. "category": "symbols"
  67110. },
  67111. ":two_hearts:": {
  67112. "uc_base": "1f495",
  67113. "uc_output": "1f495",
  67114. "uc_match": "1f495",
  67115. "uc_greedy": "1f495",
  67116. "shortnames": [],
  67117. "category": "symbols"
  67118. },
  67119. ":two_men_holding_hands:": {
  67120. "uc_base": "1f46c",
  67121. "uc_output": "1f46c",
  67122. "uc_match": "1f46c",
  67123. "uc_greedy": "1f46c",
  67124. "shortnames": [],
  67125. "category": "people"
  67126. },
  67127. ":two_women_holding_hands:": {
  67128. "uc_base": "1f46d",
  67129. "uc_output": "1f46d",
  67130. "uc_match": "1f46d",
  67131. "uc_greedy": "1f46d",
  67132. "shortnames": [],
  67133. "category": "people"
  67134. },
  67135. ":u5272:": {
  67136. "uc_base": "1f239",
  67137. "uc_output": "1f239",
  67138. "uc_match": "1f239",
  67139. "uc_greedy": "1f239",
  67140. "shortnames": [],
  67141. "category": "symbols"
  67142. },
  67143. ":u5408:": {
  67144. "uc_base": "1f234",
  67145. "uc_output": "1f234",
  67146. "uc_match": "1f234",
  67147. "uc_greedy": "1f234",
  67148. "shortnames": [],
  67149. "category": "symbols"
  67150. },
  67151. ":u55b6:": {
  67152. "uc_base": "1f23a",
  67153. "uc_output": "1f23a",
  67154. "uc_match": "1f23a",
  67155. "uc_greedy": "1f23a",
  67156. "shortnames": [],
  67157. "category": "symbols"
  67158. },
  67159. ":u6307:": {
  67160. "uc_base": "1f22f",
  67161. "uc_output": "1f22f",
  67162. "uc_match": "1f22f-fe0f",
  67163. "uc_greedy": "1f22f-fe0f",
  67164. "shortnames": [],
  67165. "category": "symbols"
  67166. },
  67167. ":u6708:": {
  67168. "uc_base": "1f237",
  67169. "uc_output": "1f237",
  67170. "uc_match": "1f237-fe0f",
  67171. "uc_greedy": "1f237-fe0f",
  67172. "shortnames": [],
  67173. "category": "symbols"
  67174. },
  67175. ":u6709:": {
  67176. "uc_base": "1f236",
  67177. "uc_output": "1f236",
  67178. "uc_match": "1f236",
  67179. "uc_greedy": "1f236",
  67180. "shortnames": [],
  67181. "category": "symbols"
  67182. },
  67183. ":u6e80:": {
  67184. "uc_base": "1f235",
  67185. "uc_output": "1f235",
  67186. "uc_match": "1f235",
  67187. "uc_greedy": "1f235",
  67188. "shortnames": [],
  67189. "category": "symbols"
  67190. },
  67191. ":u7121:": {
  67192. "uc_base": "1f21a",
  67193. "uc_output": "1f21a",
  67194. "uc_match": "1f21a-fe0f",
  67195. "uc_greedy": "1f21a-fe0f",
  67196. "shortnames": [],
  67197. "category": "symbols"
  67198. },
  67199. ":u7533:": {
  67200. "uc_base": "1f238",
  67201. "uc_output": "1f238",
  67202. "uc_match": "1f238",
  67203. "uc_greedy": "1f238",
  67204. "shortnames": [],
  67205. "category": "symbols"
  67206. },
  67207. ":u7981:": {
  67208. "uc_base": "1f232",
  67209. "uc_output": "1f232",
  67210. "uc_match": "1f232",
  67211. "uc_greedy": "1f232",
  67212. "shortnames": [],
  67213. "category": "symbols"
  67214. },
  67215. ":u7a7a:": {
  67216. "uc_base": "1f233",
  67217. "uc_output": "1f233",
  67218. "uc_match": "1f233",
  67219. "uc_greedy": "1f233",
  67220. "shortnames": [],
  67221. "category": "symbols"
  67222. },
  67223. ":unamused:": {
  67224. "uc_base": "1f612",
  67225. "uc_output": "1f612",
  67226. "uc_match": "1f612",
  67227. "uc_greedy": "1f612",
  67228. "shortnames": [],
  67229. "category": "people"
  67230. },
  67231. ":underage:": {
  67232. "uc_base": "1f51e",
  67233. "uc_output": "1f51e",
  67234. "uc_match": "1f51e",
  67235. "uc_greedy": "1f51e",
  67236. "shortnames": [],
  67237. "category": "symbols"
  67238. },
  67239. ":unicorn:": {
  67240. "uc_base": "1f984",
  67241. "uc_output": "1f984",
  67242. "uc_match": "1f984",
  67243. "uc_greedy": "1f984",
  67244. "shortnames": [":unicorn_face:"],
  67245. "category": "nature"
  67246. },
  67247. ":unlock:": {
  67248. "uc_base": "1f513",
  67249. "uc_output": "1f513",
  67250. "uc_match": "1f513-fe0f",
  67251. "uc_greedy": "1f513-fe0f",
  67252. "shortnames": [],
  67253. "category": "objects"
  67254. },
  67255. ":up:": {
  67256. "uc_base": "1f199",
  67257. "uc_output": "1f199",
  67258. "uc_match": "1f199",
  67259. "uc_greedy": "1f199",
  67260. "shortnames": [],
  67261. "category": "symbols"
  67262. },
  67263. ":upside_down:": {
  67264. "uc_base": "1f643",
  67265. "uc_output": "1f643",
  67266. "uc_match": "1f643",
  67267. "uc_greedy": "1f643",
  67268. "shortnames": [":upside_down_face:"],
  67269. "category": "people"
  67270. },
  67271. ":vampire:": {
  67272. "uc_base": "1f9db",
  67273. "uc_output": "1f9db",
  67274. "uc_match": "1f9db",
  67275. "uc_greedy": "1f9db",
  67276. "shortnames": [],
  67277. "category": "people"
  67278. },
  67279. ":vertical_traffic_light:": {
  67280. "uc_base": "1f6a6",
  67281. "uc_output": "1f6a6",
  67282. "uc_match": "1f6a6",
  67283. "uc_greedy": "1f6a6",
  67284. "shortnames": [],
  67285. "category": "travel"
  67286. },
  67287. ":vhs:": {
  67288. "uc_base": "1f4fc",
  67289. "uc_output": "1f4fc",
  67290. "uc_match": "1f4fc",
  67291. "uc_greedy": "1f4fc",
  67292. "shortnames": [],
  67293. "category": "objects"
  67294. },
  67295. ":vibration_mode:": {
  67296. "uc_base": "1f4f3",
  67297. "uc_output": "1f4f3",
  67298. "uc_match": "1f4f3",
  67299. "uc_greedy": "1f4f3",
  67300. "shortnames": [],
  67301. "category": "symbols"
  67302. },
  67303. ":video_camera:": {
  67304. "uc_base": "1f4f9",
  67305. "uc_output": "1f4f9",
  67306. "uc_match": "1f4f9-fe0f",
  67307. "uc_greedy": "1f4f9-fe0f",
  67308. "shortnames": [],
  67309. "category": "objects"
  67310. },
  67311. ":video_game:": {
  67312. "uc_base": "1f3ae",
  67313. "uc_output": "1f3ae",
  67314. "uc_match": "1f3ae-fe0f",
  67315. "uc_greedy": "1f3ae-fe0f",
  67316. "shortnames": [],
  67317. "category": "activity"
  67318. },
  67319. ":violin:": {
  67320. "uc_base": "1f3bb",
  67321. "uc_output": "1f3bb",
  67322. "uc_match": "1f3bb",
  67323. "uc_greedy": "1f3bb",
  67324. "shortnames": [],
  67325. "category": "activity"
  67326. },
  67327. ":volcano:": {
  67328. "uc_base": "1f30b",
  67329. "uc_output": "1f30b",
  67330. "uc_match": "1f30b",
  67331. "uc_greedy": "1f30b",
  67332. "shortnames": [],
  67333. "category": "travel"
  67334. },
  67335. ":volleyball:": {
  67336. "uc_base": "1f3d0",
  67337. "uc_output": "1f3d0",
  67338. "uc_match": "1f3d0",
  67339. "uc_greedy": "1f3d0",
  67340. "shortnames": [],
  67341. "category": "activity"
  67342. },
  67343. ":vs:": {
  67344. "uc_base": "1f19a",
  67345. "uc_output": "1f19a",
  67346. "uc_match": "1f19a",
  67347. "uc_greedy": "1f19a",
  67348. "shortnames": [],
  67349. "category": "symbols"
  67350. },
  67351. ":vulcan:": {
  67352. "uc_base": "1f596",
  67353. "uc_output": "1f596",
  67354. "uc_match": "1f596",
  67355. "uc_greedy": "1f596",
  67356. "shortnames": [":raised_hand_with_part_between_middle_and_ring_fingers:"],
  67357. "category": "people"
  67358. },
  67359. ":waning_crescent_moon:": {
  67360. "uc_base": "1f318",
  67361. "uc_output": "1f318",
  67362. "uc_match": "1f318",
  67363. "uc_greedy": "1f318",
  67364. "shortnames": [],
  67365. "category": "nature"
  67366. },
  67367. ":waning_gibbous_moon:": {
  67368. "uc_base": "1f316",
  67369. "uc_output": "1f316",
  67370. "uc_match": "1f316",
  67371. "uc_greedy": "1f316",
  67372. "shortnames": [],
  67373. "category": "nature"
  67374. },
  67375. ":wastebasket:": {
  67376. "uc_base": "1f5d1",
  67377. "uc_output": "1f5d1",
  67378. "uc_match": "1f5d1-fe0f",
  67379. "uc_greedy": "1f5d1-fe0f",
  67380. "shortnames": [],
  67381. "category": "objects"
  67382. },
  67383. ":water_buffalo:": {
  67384. "uc_base": "1f403",
  67385. "uc_output": "1f403",
  67386. "uc_match": "1f403",
  67387. "uc_greedy": "1f403",
  67388. "shortnames": [],
  67389. "category": "nature"
  67390. },
  67391. ":watermelon:": {
  67392. "uc_base": "1f349",
  67393. "uc_output": "1f349",
  67394. "uc_match": "1f349",
  67395. "uc_greedy": "1f349",
  67396. "shortnames": [],
  67397. "category": "food"
  67398. },
  67399. ":wave:": {
  67400. "uc_base": "1f44b",
  67401. "uc_output": "1f44b",
  67402. "uc_match": "1f44b",
  67403. "uc_greedy": "1f44b",
  67404. "shortnames": [],
  67405. "category": "people"
  67406. },
  67407. ":waxing_crescent_moon:": {
  67408. "uc_base": "1f312",
  67409. "uc_output": "1f312",
  67410. "uc_match": "1f312",
  67411. "uc_greedy": "1f312",
  67412. "shortnames": [],
  67413. "category": "nature"
  67414. },
  67415. ":waxing_gibbous_moon:": {
  67416. "uc_base": "1f314",
  67417. "uc_output": "1f314",
  67418. "uc_match": "1f314",
  67419. "uc_greedy": "1f314",
  67420. "shortnames": [],
  67421. "category": "nature"
  67422. },
  67423. ":wc:": {
  67424. "uc_base": "1f6be",
  67425. "uc_output": "1f6be",
  67426. "uc_match": "1f6be",
  67427. "uc_greedy": "1f6be",
  67428. "shortnames": [],
  67429. "category": "symbols"
  67430. },
  67431. ":weary:": {
  67432. "uc_base": "1f629",
  67433. "uc_output": "1f629",
  67434. "uc_match": "1f629",
  67435. "uc_greedy": "1f629",
  67436. "shortnames": [],
  67437. "category": "people"
  67438. },
  67439. ":wedding:": {
  67440. "uc_base": "1f492",
  67441. "uc_output": "1f492",
  67442. "uc_match": "1f492",
  67443. "uc_greedy": "1f492",
  67444. "shortnames": [],
  67445. "category": "travel"
  67446. },
  67447. ":whale2:": {
  67448. "uc_base": "1f40b",
  67449. "uc_output": "1f40b",
  67450. "uc_match": "1f40b",
  67451. "uc_greedy": "1f40b",
  67452. "shortnames": [],
  67453. "category": "nature"
  67454. },
  67455. ":whale:": {
  67456. "uc_base": "1f433",
  67457. "uc_output": "1f433",
  67458. "uc_match": "1f433",
  67459. "uc_greedy": "1f433",
  67460. "shortnames": [],
  67461. "category": "nature"
  67462. },
  67463. ":white_flower:": {
  67464. "uc_base": "1f4ae",
  67465. "uc_output": "1f4ae",
  67466. "uc_match": "1f4ae",
  67467. "uc_greedy": "1f4ae",
  67468. "shortnames": [],
  67469. "category": "symbols"
  67470. },
  67471. ":white_square_button:": {
  67472. "uc_base": "1f533",
  67473. "uc_output": "1f533",
  67474. "uc_match": "1f533",
  67475. "uc_greedy": "1f533",
  67476. "shortnames": [],
  67477. "category": "symbols"
  67478. },
  67479. ":white_sun_cloud:": {
  67480. "uc_base": "1f325",
  67481. "uc_output": "1f325",
  67482. "uc_match": "1f325-fe0f",
  67483. "uc_greedy": "1f325-fe0f",
  67484. "shortnames": [":white_sun_behind_cloud:"],
  67485. "category": "nature"
  67486. },
  67487. ":white_sun_rain_cloud:": {
  67488. "uc_base": "1f326",
  67489. "uc_output": "1f326",
  67490. "uc_match": "1f326-fe0f",
  67491. "uc_greedy": "1f326-fe0f",
  67492. "shortnames": [":white_sun_behind_cloud_with_rain:"],
  67493. "category": "nature"
  67494. },
  67495. ":white_sun_small_cloud:": {
  67496. "uc_base": "1f324",
  67497. "uc_output": "1f324",
  67498. "uc_match": "1f324-fe0f",
  67499. "uc_greedy": "1f324-fe0f",
  67500. "shortnames": [":white_sun_with_small_cloud:"],
  67501. "category": "nature"
  67502. },
  67503. ":wilted_rose:": {
  67504. "uc_base": "1f940",
  67505. "uc_output": "1f940",
  67506. "uc_match": "1f940",
  67507. "uc_greedy": "1f940",
  67508. "shortnames": [":wilted_flower:"],
  67509. "category": "nature"
  67510. },
  67511. ":wind_blowing_face:": {
  67512. "uc_base": "1f32c",
  67513. "uc_output": "1f32c",
  67514. "uc_match": "1f32c-fe0f",
  67515. "uc_greedy": "1f32c-fe0f",
  67516. "shortnames": [],
  67517. "category": "nature"
  67518. },
  67519. ":wind_chime:": {
  67520. "uc_base": "1f390",
  67521. "uc_output": "1f390",
  67522. "uc_match": "1f390",
  67523. "uc_greedy": "1f390",
  67524. "shortnames": [],
  67525. "category": "objects"
  67526. },
  67527. ":wine_glass:": {
  67528. "uc_base": "1f377",
  67529. "uc_output": "1f377",
  67530. "uc_match": "1f377",
  67531. "uc_greedy": "1f377",
  67532. "shortnames": [],
  67533. "category": "food"
  67534. },
  67535. ":wink:": {
  67536. "uc_base": "1f609",
  67537. "uc_output": "1f609",
  67538. "uc_match": "1f609",
  67539. "uc_greedy": "1f609",
  67540. "shortnames": [],
  67541. "category": "people"
  67542. },
  67543. ":wolf:": {
  67544. "uc_base": "1f43a",
  67545. "uc_output": "1f43a",
  67546. "uc_match": "1f43a",
  67547. "uc_greedy": "1f43a",
  67548. "shortnames": [],
  67549. "category": "nature"
  67550. },
  67551. ":woman:": {
  67552. "uc_base": "1f469",
  67553. "uc_output": "1f469",
  67554. "uc_match": "1f469",
  67555. "uc_greedy": "1f469",
  67556. "shortnames": [],
  67557. "category": "people"
  67558. },
  67559. ":woman_with_headscarf:": {
  67560. "uc_base": "1f9d5",
  67561. "uc_output": "1f9d5",
  67562. "uc_match": "1f9d5",
  67563. "uc_greedy": "1f9d5",
  67564. "shortnames": [],
  67565. "category": "people"
  67566. },
  67567. ":womans_clothes:": {
  67568. "uc_base": "1f45a",
  67569. "uc_output": "1f45a",
  67570. "uc_match": "1f45a",
  67571. "uc_greedy": "1f45a",
  67572. "shortnames": [],
  67573. "category": "people"
  67574. },
  67575. ":womans_hat:": {
  67576. "uc_base": "1f452",
  67577. "uc_output": "1f452",
  67578. "uc_match": "1f452",
  67579. "uc_greedy": "1f452",
  67580. "shortnames": [],
  67581. "category": "people"
  67582. },
  67583. ":womens:": {
  67584. "uc_base": "1f6ba",
  67585. "uc_output": "1f6ba",
  67586. "uc_match": "1f6ba-fe0f",
  67587. "uc_greedy": "1f6ba-fe0f",
  67588. "shortnames": [],
  67589. "category": "symbols"
  67590. },
  67591. ":worried:": {
  67592. "uc_base": "1f61f",
  67593. "uc_output": "1f61f",
  67594. "uc_match": "1f61f",
  67595. "uc_greedy": "1f61f",
  67596. "shortnames": [],
  67597. "category": "people"
  67598. },
  67599. ":wrench:": {
  67600. "uc_base": "1f527",
  67601. "uc_output": "1f527",
  67602. "uc_match": "1f527",
  67603. "uc_greedy": "1f527",
  67604. "shortnames": [],
  67605. "category": "objects"
  67606. },
  67607. ":yellow_heart:": {
  67608. "uc_base": "1f49b",
  67609. "uc_output": "1f49b",
  67610. "uc_match": "1f49b",
  67611. "uc_greedy": "1f49b",
  67612. "shortnames": [],
  67613. "category": "symbols"
  67614. },
  67615. ":yen:": {
  67616. "uc_base": "1f4b4",
  67617. "uc_output": "1f4b4",
  67618. "uc_match": "1f4b4",
  67619. "uc_greedy": "1f4b4",
  67620. "shortnames": [],
  67621. "category": "objects"
  67622. },
  67623. ":yum:": {
  67624. "uc_base": "1f60b",
  67625. "uc_output": "1f60b",
  67626. "uc_match": "1f60b",
  67627. "uc_greedy": "1f60b",
  67628. "shortnames": [],
  67629. "category": "people"
  67630. },
  67631. ":zebra:": {
  67632. "uc_base": "1f993",
  67633. "uc_output": "1f993",
  67634. "uc_match": "1f993",
  67635. "uc_greedy": "1f993",
  67636. "shortnames": [],
  67637. "category": "nature"
  67638. },
  67639. ":zipper_mouth:": {
  67640. "uc_base": "1f910",
  67641. "uc_output": "1f910",
  67642. "uc_match": "1f910",
  67643. "uc_greedy": "1f910",
  67644. "shortnames": [":zipper_mouth_face:"],
  67645. "category": "people"
  67646. },
  67647. ":zombie:": {
  67648. "uc_base": "1f9df",
  67649. "uc_output": "1f9df",
  67650. "uc_match": "1f9df",
  67651. "uc_greedy": "1f9df",
  67652. "shortnames": [],
  67653. "category": "people"
  67654. },
  67655. ":zzz:": {
  67656. "uc_base": "1f4a4",
  67657. "uc_output": "1f4a4",
  67658. "uc_match": "1f4a4",
  67659. "uc_greedy": "1f4a4",
  67660. "shortnames": [],
  67661. "category": "symbols"
  67662. },
  67663. ":airplane:": {
  67664. "uc_base": "2708",
  67665. "uc_output": "2708",
  67666. "uc_match": "2708-fe0f",
  67667. "uc_greedy": "2708-fe0f",
  67668. "shortnames": [],
  67669. "category": "travel"
  67670. },
  67671. ":alarm_clock:": {
  67672. "uc_base": "23f0",
  67673. "uc_output": "23f0",
  67674. "uc_match": "23f0",
  67675. "uc_greedy": "23f0",
  67676. "shortnames": [],
  67677. "category": "objects"
  67678. },
  67679. ":alembic:": {
  67680. "uc_base": "2697",
  67681. "uc_output": "2697",
  67682. "uc_match": "2697-fe0f",
  67683. "uc_greedy": "2697-fe0f",
  67684. "shortnames": [],
  67685. "category": "objects"
  67686. },
  67687. ":anchor:": {
  67688. "uc_base": "2693",
  67689. "uc_output": "2693",
  67690. "uc_match": "2693-fe0f",
  67691. "uc_greedy": "2693-fe0f",
  67692. "shortnames": [],
  67693. "category": "travel"
  67694. },
  67695. ":aquarius:": {
  67696. "uc_base": "2652",
  67697. "uc_output": "2652",
  67698. "uc_match": "2652-fe0f",
  67699. "uc_greedy": "2652-fe0f",
  67700. "shortnames": [],
  67701. "category": "symbols"
  67702. },
  67703. ":aries:": {
  67704. "uc_base": "2648",
  67705. "uc_output": "2648",
  67706. "uc_match": "2648-fe0f",
  67707. "uc_greedy": "2648-fe0f",
  67708. "shortnames": [],
  67709. "category": "symbols"
  67710. },
  67711. ":arrow_backward:": {
  67712. "uc_base": "25c0",
  67713. "uc_output": "25c0",
  67714. "uc_match": "25c0-fe0f",
  67715. "uc_greedy": "25c0",
  67716. "shortnames": [],
  67717. "category": "symbols"
  67718. },
  67719. ":arrow_double_down:": {
  67720. "uc_base": "23ec",
  67721. "uc_output": "23ec",
  67722. "uc_match": "23ec",
  67723. "uc_greedy": "23ec",
  67724. "shortnames": [],
  67725. "category": "symbols"
  67726. },
  67727. ":arrow_double_up:": {
  67728. "uc_base": "23eb",
  67729. "uc_output": "23eb",
  67730. "uc_match": "23eb",
  67731. "uc_greedy": "23eb",
  67732. "shortnames": [],
  67733. "category": "symbols"
  67734. },
  67735. ":arrow_down:": {
  67736. "uc_base": "2b07",
  67737. "uc_output": "2b07",
  67738. "uc_match": "2b07-fe0f",
  67739. "uc_greedy": "2b07",
  67740. "shortnames": [],
  67741. "category": "symbols"
  67742. },
  67743. ":arrow_forward:": {
  67744. "uc_base": "25b6",
  67745. "uc_output": "25b6",
  67746. "uc_match": "25b6-fe0f",
  67747. "uc_greedy": "25b6",
  67748. "shortnames": [],
  67749. "category": "symbols"
  67750. },
  67751. ":arrow_heading_down:": {
  67752. "uc_base": "2935",
  67753. "uc_output": "2935",
  67754. "uc_match": "2935-fe0f",
  67755. "uc_greedy": "2935",
  67756. "shortnames": [],
  67757. "category": "symbols"
  67758. },
  67759. ":arrow_heading_up:": {
  67760. "uc_base": "2934",
  67761. "uc_output": "2934",
  67762. "uc_match": "2934-fe0f",
  67763. "uc_greedy": "2934",
  67764. "shortnames": [],
  67765. "category": "symbols"
  67766. },
  67767. ":arrow_left:": {
  67768. "uc_base": "2b05",
  67769. "uc_output": "2b05",
  67770. "uc_match": "2b05-fe0f",
  67771. "uc_greedy": "2b05",
  67772. "shortnames": [],
  67773. "category": "symbols"
  67774. },
  67775. ":arrow_lower_left:": {
  67776. "uc_base": "2199",
  67777. "uc_output": "2199",
  67778. "uc_match": "2199-fe0f",
  67779. "uc_greedy": "2199",
  67780. "shortnames": [],
  67781. "category": "symbols"
  67782. },
  67783. ":arrow_lower_right:": {
  67784. "uc_base": "2198",
  67785. "uc_output": "2198",
  67786. "uc_match": "2198-fe0f",
  67787. "uc_greedy": "2198",
  67788. "shortnames": [],
  67789. "category": "symbols"
  67790. },
  67791. ":arrow_right:": {
  67792. "uc_base": "27a1",
  67793. "uc_output": "27a1",
  67794. "uc_match": "27a1-fe0f",
  67795. "uc_greedy": "27a1",
  67796. "shortnames": [],
  67797. "category": "symbols"
  67798. },
  67799. ":arrow_right_hook:": {
  67800. "uc_base": "21aa",
  67801. "uc_output": "21aa",
  67802. "uc_match": "21aa-fe0f",
  67803. "uc_greedy": "21aa",
  67804. "shortnames": [],
  67805. "category": "symbols"
  67806. },
  67807. ":arrow_up:": {
  67808. "uc_base": "2b06",
  67809. "uc_output": "2b06",
  67810. "uc_match": "2b06-fe0f",
  67811. "uc_greedy": "2b06",
  67812. "shortnames": [],
  67813. "category": "symbols"
  67814. },
  67815. ":arrow_up_down:": {
  67816. "uc_base": "2195",
  67817. "uc_output": "2195",
  67818. "uc_match": "2195-fe0f",
  67819. "uc_greedy": "2195",
  67820. "shortnames": [],
  67821. "category": "symbols"
  67822. },
  67823. ":arrow_upper_left:": {
  67824. "uc_base": "2196",
  67825. "uc_output": "2196",
  67826. "uc_match": "2196-fe0f",
  67827. "uc_greedy": "2196",
  67828. "shortnames": [],
  67829. "category": "symbols"
  67830. },
  67831. ":arrow_upper_right:": {
  67832. "uc_base": "2197",
  67833. "uc_output": "2197",
  67834. "uc_match": "2197-fe0f",
  67835. "uc_greedy": "2197",
  67836. "shortnames": [],
  67837. "category": "symbols"
  67838. },
  67839. ":atom:": {
  67840. "uc_base": "269b",
  67841. "uc_output": "269b",
  67842. "uc_match": "269b-fe0f",
  67843. "uc_greedy": "269b",
  67844. "shortnames": [":atom_symbol:"],
  67845. "category": "symbols"
  67846. },
  67847. ":ballot_box_with_check:": {
  67848. "uc_base": "2611",
  67849. "uc_output": "2611",
  67850. "uc_match": "2611-fe0f",
  67851. "uc_greedy": "2611",
  67852. "shortnames": [],
  67853. "category": "symbols"
  67854. },
  67855. ":bangbang:": {
  67856. "uc_base": "203c",
  67857. "uc_output": "203c",
  67858. "uc_match": "203c-fe0f",
  67859. "uc_greedy": "203c",
  67860. "shortnames": [],
  67861. "category": "symbols"
  67862. },
  67863. ":baseball:": {
  67864. "uc_base": "26be",
  67865. "uc_output": "26be",
  67866. "uc_match": "26be-fe0f",
  67867. "uc_greedy": "26be-fe0f",
  67868. "shortnames": [],
  67869. "category": "activity"
  67870. },
  67871. ":beach_umbrella:": {
  67872. "uc_base": "26f1",
  67873. "uc_output": "26f1",
  67874. "uc_match": "26f1-fe0f",
  67875. "uc_greedy": "26f1-fe0f",
  67876. "shortnames": [":umbrella_on_ground:"],
  67877. "category": "travel"
  67878. },
  67879. ":biohazard:": {
  67880. "uc_base": "2623",
  67881. "uc_output": "2623",
  67882. "uc_match": "2623-fe0f",
  67883. "uc_greedy": "2623",
  67884. "shortnames": [":biohazard_sign:"],
  67885. "category": "symbols"
  67886. },
  67887. ":black_circle:": {
  67888. "uc_base": "26ab",
  67889. "uc_output": "26ab",
  67890. "uc_match": "26ab-fe0f",
  67891. "uc_greedy": "26ab-fe0f",
  67892. "shortnames": [],
  67893. "category": "symbols"
  67894. },
  67895. ":black_large_square:": {
  67896. "uc_base": "2b1b",
  67897. "uc_output": "2b1b",
  67898. "uc_match": "2b1b-fe0f",
  67899. "uc_greedy": "2b1b-fe0f",
  67900. "shortnames": [],
  67901. "category": "symbols"
  67902. },
  67903. ":black_medium_small_square:": {
  67904. "uc_base": "25fe",
  67905. "uc_output": "25fe",
  67906. "uc_match": "25fe-fe0f",
  67907. "uc_greedy": "25fe-fe0f",
  67908. "shortnames": [],
  67909. "category": "symbols"
  67910. },
  67911. ":black_medium_square:": {
  67912. "uc_base": "25fc",
  67913. "uc_output": "25fc",
  67914. "uc_match": "25fc-fe0f",
  67915. "uc_greedy": "25fc",
  67916. "shortnames": [],
  67917. "category": "symbols"
  67918. },
  67919. ":black_nib:": {
  67920. "uc_base": "2712",
  67921. "uc_output": "2712",
  67922. "uc_match": "2712-fe0f",
  67923. "uc_greedy": "2712-fe0f",
  67924. "shortnames": [],
  67925. "category": "objects"
  67926. },
  67927. ":black_small_square:": {
  67928. "uc_base": "25aa",
  67929. "uc_output": "25aa",
  67930. "uc_match": "25aa-fe0f",
  67931. "uc_greedy": "25aa",
  67932. "shortnames": [],
  67933. "category": "symbols"
  67934. },
  67935. ":cancer:": {
  67936. "uc_base": "264b",
  67937. "uc_output": "264b",
  67938. "uc_match": "264b-fe0f",
  67939. "uc_greedy": "264b-fe0f",
  67940. "shortnames": [],
  67941. "category": "symbols"
  67942. },
  67943. ":capricorn:": {
  67944. "uc_base": "2651",
  67945. "uc_output": "2651",
  67946. "uc_match": "2651-fe0f",
  67947. "uc_greedy": "2651-fe0f",
  67948. "shortnames": [],
  67949. "category": "symbols"
  67950. },
  67951. ":chains:": {
  67952. "uc_base": "26d3",
  67953. "uc_output": "26d3",
  67954. "uc_match": "26d3-fe0f",
  67955. "uc_greedy": "26d3-fe0f",
  67956. "shortnames": [],
  67957. "category": "objects"
  67958. },
  67959. ":church:": {
  67960. "uc_base": "26ea",
  67961. "uc_output": "26ea",
  67962. "uc_match": "26ea-fe0f",
  67963. "uc_greedy": "26ea-fe0f",
  67964. "shortnames": [],
  67965. "category": "travel"
  67966. },
  67967. ":cloud:": {
  67968. "uc_base": "2601",
  67969. "uc_output": "2601",
  67970. "uc_match": "2601-fe0f",
  67971. "uc_greedy": "2601-fe0f",
  67972. "shortnames": [],
  67973. "category": "nature"
  67974. },
  67975. ":clubs:": {
  67976. "uc_base": "2663",
  67977. "uc_output": "2663",
  67978. "uc_match": "2663-fe0f",
  67979. "uc_greedy": "2663-fe0f",
  67980. "shortnames": [],
  67981. "category": "symbols"
  67982. },
  67983. ":coffee:": {
  67984. "uc_base": "2615",
  67985. "uc_output": "2615",
  67986. "uc_match": "2615-fe0f",
  67987. "uc_greedy": "2615-fe0f",
  67988. "shortnames": [],
  67989. "category": "food"
  67990. },
  67991. ":coffin:": {
  67992. "uc_base": "26b0",
  67993. "uc_output": "26b0",
  67994. "uc_match": "26b0-fe0f",
  67995. "uc_greedy": "26b0-fe0f",
  67996. "shortnames": [],
  67997. "category": "objects"
  67998. },
  67999. ":comet:": {
  68000. "uc_base": "2604",
  68001. "uc_output": "2604",
  68002. "uc_match": "2604-fe0f",
  68003. "uc_greedy": "2604-fe0f",
  68004. "shortnames": [],
  68005. "category": "nature"
  68006. },
  68007. ":congratulations:": {
  68008. "uc_base": "3297",
  68009. "uc_output": "3297",
  68010. "uc_match": "3297-fe0f",
  68011. "uc_greedy": "3297-fe0f",
  68012. "shortnames": [],
  68013. "category": "symbols"
  68014. },
  68015. ":copyright:": {
  68016. "uc_base": "00a9",
  68017. "uc_output": "00a9",
  68018. "uc_match": "00a9-fe0f",
  68019. "uc_greedy": "00a9",
  68020. "shortnames": [],
  68021. "category": "symbols"
  68022. },
  68023. ":cross:": {
  68024. "uc_base": "271d",
  68025. "uc_output": "271d",
  68026. "uc_match": "271d-fe0f",
  68027. "uc_greedy": "271d",
  68028. "shortnames": [":latin_cross:"],
  68029. "category": "symbols"
  68030. },
  68031. ":crossed_swords:": {
  68032. "uc_base": "2694",
  68033. "uc_output": "2694",
  68034. "uc_match": "2694-fe0f",
  68035. "uc_greedy": "2694-fe0f",
  68036. "shortnames": [],
  68037. "category": "objects"
  68038. },
  68039. ":curly_loop:": {
  68040. "uc_base": "27b0",
  68041. "uc_output": "27b0",
  68042. "uc_match": "27b0",
  68043. "uc_greedy": "27b0",
  68044. "shortnames": [],
  68045. "category": "symbols"
  68046. },
  68047. ":diamonds:": {
  68048. "uc_base": "2666",
  68049. "uc_output": "2666",
  68050. "uc_match": "2666-fe0f",
  68051. "uc_greedy": "2666-fe0f",
  68052. "shortnames": [],
  68053. "category": "symbols"
  68054. },
  68055. ":eight_pointed_black_star:": {
  68056. "uc_base": "2734",
  68057. "uc_output": "2734",
  68058. "uc_match": "2734-fe0f",
  68059. "uc_greedy": "2734-fe0f",
  68060. "shortnames": [],
  68061. "category": "symbols"
  68062. },
  68063. ":eight_spoked_asterisk:": {
  68064. "uc_base": "2733",
  68065. "uc_output": "2733",
  68066. "uc_match": "2733-fe0f",
  68067. "uc_greedy": "2733-fe0f",
  68068. "shortnames": [],
  68069. "category": "symbols"
  68070. },
  68071. ":eject:": {
  68072. "uc_base": "23cf",
  68073. "uc_output": "23cf",
  68074. "uc_match": "23cf-fe0f",
  68075. "uc_greedy": "23cf",
  68076. "shortnames": [":eject_symbol:"],
  68077. "category": "symbols"
  68078. },
  68079. ":envelope:": {
  68080. "uc_base": "2709",
  68081. "uc_output": "2709",
  68082. "uc_match": "2709-fe0f",
  68083. "uc_greedy": "2709-fe0f",
  68084. "shortnames": [],
  68085. "category": "objects"
  68086. },
  68087. ":exclamation:": {
  68088. "uc_base": "2757",
  68089. "uc_output": "2757",
  68090. "uc_match": "2757-fe0f",
  68091. "uc_greedy": "2757-fe0f",
  68092. "shortnames": [],
  68093. "category": "symbols"
  68094. },
  68095. ":fast_forward:": {
  68096. "uc_base": "23e9",
  68097. "uc_output": "23e9",
  68098. "uc_match": "23e9-fe0f",
  68099. "uc_greedy": "23e9-fe0f",
  68100. "shortnames": [],
  68101. "category": "symbols"
  68102. },
  68103. ":female_sign:": {
  68104. "uc_base": "2640",
  68105. "uc_output": "2640",
  68106. "uc_match": "2640-fe0f",
  68107. "uc_greedy": "2640",
  68108. "shortnames": [],
  68109. "category": "symbols"
  68110. },
  68111. ":ferry:": {
  68112. "uc_base": "26f4",
  68113. "uc_output": "26f4",
  68114. "uc_match": "26f4-fe0f",
  68115. "uc_greedy": "26f4-fe0f",
  68116. "shortnames": [],
  68117. "category": "travel"
  68118. },
  68119. ":fist:": {
  68120. "uc_base": "270a",
  68121. "uc_output": "270a",
  68122. "uc_match": "270a",
  68123. "uc_greedy": "270a",
  68124. "shortnames": [],
  68125. "category": "people"
  68126. },
  68127. ":fleur-de-lis:": {
  68128. "uc_base": "269c",
  68129. "uc_output": "269c",
  68130. "uc_match": "269c-fe0f",
  68131. "uc_greedy": "269c-fe0f",
  68132. "shortnames": [],
  68133. "category": "symbols"
  68134. },
  68135. ":fountain:": {
  68136. "uc_base": "26f2",
  68137. "uc_output": "26f2",
  68138. "uc_match": "26f2-fe0f",
  68139. "uc_greedy": "26f2-fe0f",
  68140. "shortnames": [],
  68141. "category": "travel"
  68142. },
  68143. ":frowning2:": {
  68144. "uc_base": "2639",
  68145. "uc_output": "2639",
  68146. "uc_match": "2639-fe0f",
  68147. "uc_greedy": "2639-fe0f",
  68148. "shortnames": [":white_frowning_face:"],
  68149. "category": "people"
  68150. },
  68151. ":fuelpump:": {
  68152. "uc_base": "26fd",
  68153. "uc_output": "26fd",
  68154. "uc_match": "26fd-fe0f",
  68155. "uc_greedy": "26fd-fe0f",
  68156. "shortnames": [],
  68157. "category": "travel"
  68158. },
  68159. ":gear:": {
  68160. "uc_base": "2699",
  68161. "uc_output": "2699",
  68162. "uc_match": "2699-fe0f",
  68163. "uc_greedy": "2699-fe0f",
  68164. "shortnames": [],
  68165. "category": "objects"
  68166. },
  68167. ":gemini:": {
  68168. "uc_base": "264a",
  68169. "uc_output": "264a",
  68170. "uc_match": "264a-fe0f",
  68171. "uc_greedy": "264a-fe0f",
  68172. "shortnames": [],
  68173. "category": "symbols"
  68174. },
  68175. ":golf:": {
  68176. "uc_base": "26f3",
  68177. "uc_output": "26f3",
  68178. "uc_match": "26f3-fe0f",
  68179. "uc_greedy": "26f3-fe0f",
  68180. "shortnames": [],
  68181. "category": "activity"
  68182. },
  68183. ":grey_exclamation:": {
  68184. "uc_base": "2755",
  68185. "uc_output": "2755",
  68186. "uc_match": "2755",
  68187. "uc_greedy": "2755",
  68188. "shortnames": [],
  68189. "category": "symbols"
  68190. },
  68191. ":grey_question:": {
  68192. "uc_base": "2754",
  68193. "uc_output": "2754",
  68194. "uc_match": "2754",
  68195. "uc_greedy": "2754",
  68196. "shortnames": [],
  68197. "category": "symbols"
  68198. },
  68199. ":hammer_pick:": {
  68200. "uc_base": "2692",
  68201. "uc_output": "2692",
  68202. "uc_match": "2692-fe0f",
  68203. "uc_greedy": "2692-fe0f",
  68204. "shortnames": [":hammer_and_pick:"],
  68205. "category": "objects"
  68206. },
  68207. ":heart:": {
  68208. "uc_base": "2764",
  68209. "uc_output": "2764",
  68210. "uc_match": "2764-fe0f",
  68211. "uc_greedy": "2764-fe0f",
  68212. "shortnames": [],
  68213. "category": "symbols"
  68214. },
  68215. ":heart_exclamation:": {
  68216. "uc_base": "2763",
  68217. "uc_output": "2763",
  68218. "uc_match": "2763-fe0f",
  68219. "uc_greedy": "2763-fe0f",
  68220. "shortnames": [":heavy_heart_exclamation_mark_ornament:"],
  68221. "category": "symbols"
  68222. },
  68223. ":hearts:": {
  68224. "uc_base": "2665",
  68225. "uc_output": "2665",
  68226. "uc_match": "2665-fe0f",
  68227. "uc_greedy": "2665-fe0f",
  68228. "shortnames": [],
  68229. "category": "symbols"
  68230. },
  68231. ":heavy_check_mark:": {
  68232. "uc_base": "2714",
  68233. "uc_output": "2714",
  68234. "uc_match": "2714-fe0f",
  68235. "uc_greedy": "2714",
  68236. "shortnames": [],
  68237. "category": "symbols"
  68238. },
  68239. ":heavy_division_sign:": {
  68240. "uc_base": "2797",
  68241. "uc_output": "2797",
  68242. "uc_match": "2797",
  68243. "uc_greedy": "2797",
  68244. "shortnames": [],
  68245. "category": "symbols"
  68246. },
  68247. ":heavy_minus_sign:": {
  68248. "uc_base": "2796",
  68249. "uc_output": "2796",
  68250. "uc_match": "2796",
  68251. "uc_greedy": "2796",
  68252. "shortnames": [],
  68253. "category": "symbols"
  68254. },
  68255. ":heavy_multiplication_x:": {
  68256. "uc_base": "2716",
  68257. "uc_output": "2716",
  68258. "uc_match": "2716-fe0f",
  68259. "uc_greedy": "2716",
  68260. "shortnames": [],
  68261. "category": "symbols"
  68262. },
  68263. ":heavy_plus_sign:": {
  68264. "uc_base": "2795",
  68265. "uc_output": "2795",
  68266. "uc_match": "2795",
  68267. "uc_greedy": "2795",
  68268. "shortnames": [],
  68269. "category": "symbols"
  68270. },
  68271. ":helmet_with_cross:": {
  68272. "uc_base": "26d1",
  68273. "uc_output": "26d1",
  68274. "uc_match": "26d1-fe0f",
  68275. "uc_greedy": "26d1-fe0f",
  68276. "shortnames": [":helmet_with_white_cross:"],
  68277. "category": "people"
  68278. },
  68279. ":hotsprings:": {
  68280. "uc_base": "2668",
  68281. "uc_output": "2668",
  68282. "uc_match": "2668-fe0f",
  68283. "uc_greedy": "2668-fe0f",
  68284. "shortnames": [],
  68285. "category": "symbols"
  68286. },
  68287. ":hourglass:": {
  68288. "uc_base": "231b",
  68289. "uc_output": "231b",
  68290. "uc_match": "231b-fe0f",
  68291. "uc_greedy": "231b-fe0f",
  68292. "shortnames": [],
  68293. "category": "objects"
  68294. },
  68295. ":hourglass_flowing_sand:": {
  68296. "uc_base": "23f3",
  68297. "uc_output": "23f3",
  68298. "uc_match": "23f3-fe0f",
  68299. "uc_greedy": "23f3-fe0f",
  68300. "shortnames": [],
  68301. "category": "objects"
  68302. },
  68303. ":ice_skate:": {
  68304. "uc_base": "26f8",
  68305. "uc_output": "26f8",
  68306. "uc_match": "26f8-fe0f",
  68307. "uc_greedy": "26f8-fe0f",
  68308. "shortnames": [],
  68309. "category": "activity"
  68310. },
  68311. ":information_source:": {
  68312. "uc_base": "2139",
  68313. "uc_output": "2139",
  68314. "uc_match": "2139-fe0f",
  68315. "uc_greedy": "2139",
  68316. "shortnames": [],
  68317. "category": "symbols"
  68318. },
  68319. ":interrobang:": {
  68320. "uc_base": "2049",
  68321. "uc_output": "2049",
  68322. "uc_match": "2049-fe0f",
  68323. "uc_greedy": "2049",
  68324. "shortnames": [],
  68325. "category": "symbols"
  68326. },
  68327. ":keyboard:": {
  68328. "uc_base": "2328",
  68329. "uc_output": "2328",
  68330. "uc_match": "2328-fe0f",
  68331. "uc_greedy": "2328-fe0f",
  68332. "shortnames": [],
  68333. "category": "objects"
  68334. },
  68335. ":left_right_arrow:": {
  68336. "uc_base": "2194",
  68337. "uc_output": "2194",
  68338. "uc_match": "2194-fe0f",
  68339. "uc_greedy": "2194",
  68340. "shortnames": [],
  68341. "category": "symbols"
  68342. },
  68343. ":leftwards_arrow_with_hook:": {
  68344. "uc_base": "21a9",
  68345. "uc_output": "21a9",
  68346. "uc_match": "21a9-fe0f",
  68347. "uc_greedy": "21a9",
  68348. "shortnames": [],
  68349. "category": "symbols"
  68350. },
  68351. ":leo:": {
  68352. "uc_base": "264c",
  68353. "uc_output": "264c",
  68354. "uc_match": "264c-fe0f",
  68355. "uc_greedy": "264c-fe0f",
  68356. "shortnames": [],
  68357. "category": "symbols"
  68358. },
  68359. ":libra:": {
  68360. "uc_base": "264e",
  68361. "uc_output": "264e",
  68362. "uc_match": "264e-fe0f",
  68363. "uc_greedy": "264e-fe0f",
  68364. "shortnames": [],
  68365. "category": "symbols"
  68366. },
  68367. ":loop:": {
  68368. "uc_base": "27bf",
  68369. "uc_output": "27bf",
  68370. "uc_match": "27bf",
  68371. "uc_greedy": "27bf",
  68372. "shortnames": [],
  68373. "category": "symbols"
  68374. },
  68375. ":m:": {
  68376. "uc_base": "24c2",
  68377. "uc_output": "24c2",
  68378. "uc_match": "24c2-fe0f",
  68379. "uc_greedy": "24c2-fe0f",
  68380. "shortnames": [],
  68381. "category": "symbols"
  68382. },
  68383. ":male_sign:": {
  68384. "uc_base": "2642",
  68385. "uc_output": "2642",
  68386. "uc_match": "2642-fe0f",
  68387. "uc_greedy": "2642",
  68388. "shortnames": [],
  68389. "category": "symbols"
  68390. },
  68391. ":medical_symbol:": {
  68392. "uc_base": "2695",
  68393. "uc_output": "2695",
  68394. "uc_match": "2695-fe0f",
  68395. "uc_greedy": "2695",
  68396. "shortnames": [],
  68397. "category": "symbols"
  68398. },
  68399. ":mountain:": {
  68400. "uc_base": "26f0",
  68401. "uc_output": "26f0",
  68402. "uc_match": "26f0-fe0f",
  68403. "uc_greedy": "26f0-fe0f",
  68404. "shortnames": [],
  68405. "category": "travel"
  68406. },
  68407. ":negative_squared_cross_mark:": {
  68408. "uc_base": "274e",
  68409. "uc_output": "274e",
  68410. "uc_match": "274e",
  68411. "uc_greedy": "274e",
  68412. "shortnames": [],
  68413. "category": "symbols"
  68414. },
  68415. ":no_entry:": {
  68416. "uc_base": "26d4",
  68417. "uc_output": "26d4",
  68418. "uc_match": "26d4-fe0f",
  68419. "uc_greedy": "26d4-fe0f",
  68420. "shortnames": [],
  68421. "category": "symbols"
  68422. },
  68423. ":o:": {
  68424. "uc_base": "2b55",
  68425. "uc_output": "2b55",
  68426. "uc_match": "2b55-fe0f",
  68427. "uc_greedy": "2b55-fe0f",
  68428. "shortnames": [],
  68429. "category": "symbols"
  68430. },
  68431. ":ophiuchus:": {
  68432. "uc_base": "26ce",
  68433. "uc_output": "26ce",
  68434. "uc_match": "26ce",
  68435. "uc_greedy": "26ce",
  68436. "shortnames": [],
  68437. "category": "symbols"
  68438. },
  68439. ":orthodox_cross:": {
  68440. "uc_base": "2626",
  68441. "uc_output": "2626",
  68442. "uc_match": "2626-fe0f",
  68443. "uc_greedy": "2626",
  68444. "shortnames": [],
  68445. "category": "symbols"
  68446. },
  68447. ":part_alternation_mark:": {
  68448. "uc_base": "303d",
  68449. "uc_output": "303d",
  68450. "uc_match": "303d-fe0f",
  68451. "uc_greedy": "303d-fe0f",
  68452. "shortnames": [],
  68453. "category": "symbols"
  68454. },
  68455. ":partly_sunny:": {
  68456. "uc_base": "26c5",
  68457. "uc_output": "26c5",
  68458. "uc_match": "26c5-fe0f",
  68459. "uc_greedy": "26c5-fe0f",
  68460. "shortnames": [],
  68461. "category": "nature"
  68462. },
  68463. ":pause_button:": {
  68464. "uc_base": "23f8",
  68465. "uc_output": "23f8",
  68466. "uc_match": "23f8-fe0f",
  68467. "uc_greedy": "23f8",
  68468. "shortnames": [":double_vertical_bar:"],
  68469. "category": "symbols"
  68470. },
  68471. ":peace:": {
  68472. "uc_base": "262e",
  68473. "uc_output": "262e",
  68474. "uc_match": "262e-fe0f",
  68475. "uc_greedy": "262e",
  68476. "shortnames": [":peace_symbol:"],
  68477. "category": "symbols"
  68478. },
  68479. ":pencil2:": {
  68480. "uc_base": "270f",
  68481. "uc_output": "270f",
  68482. "uc_match": "270f-fe0f",
  68483. "uc_greedy": "270f-fe0f",
  68484. "shortnames": [],
  68485. "category": "objects"
  68486. },
  68487. ":person_bouncing_ball:": {
  68488. "uc_base": "26f9",
  68489. "uc_output": "26f9",
  68490. "uc_match": "26f9-fe0f",
  68491. "uc_greedy": "26f9-fe0f",
  68492. "shortnames": [":basketball_player:", ":person_with_ball:"],
  68493. "category": "activity"
  68494. },
  68495. ":pick:": {
  68496. "uc_base": "26cf",
  68497. "uc_output": "26cf",
  68498. "uc_match": "26cf-fe0f",
  68499. "uc_greedy": "26cf-fe0f",
  68500. "shortnames": [],
  68501. "category": "objects"
  68502. },
  68503. ":pisces:": {
  68504. "uc_base": "2653",
  68505. "uc_output": "2653",
  68506. "uc_match": "2653-fe0f",
  68507. "uc_greedy": "2653-fe0f",
  68508. "shortnames": [],
  68509. "category": "symbols"
  68510. },
  68511. ":play_pause:": {
  68512. "uc_base": "23ef",
  68513. "uc_output": "23ef",
  68514. "uc_match": "23ef-fe0f",
  68515. "uc_greedy": "23ef",
  68516. "shortnames": [],
  68517. "category": "symbols"
  68518. },
  68519. ":point_up:": {
  68520. "uc_base": "261d",
  68521. "uc_output": "261d",
  68522. "uc_match": "261d-fe0f",
  68523. "uc_greedy": "261d-fe0f",
  68524. "shortnames": [],
  68525. "category": "people"
  68526. },
  68527. ":question:": {
  68528. "uc_base": "2753",
  68529. "uc_output": "2753",
  68530. "uc_match": "2753-fe0f",
  68531. "uc_greedy": "2753-fe0f",
  68532. "shortnames": [],
  68533. "category": "symbols"
  68534. },
  68535. ":radioactive:": {
  68536. "uc_base": "2622",
  68537. "uc_output": "2622",
  68538. "uc_match": "2622-fe0f",
  68539. "uc_greedy": "2622",
  68540. "shortnames": [":radioactive_sign:"],
  68541. "category": "symbols"
  68542. },
  68543. ":raised_hand:": {
  68544. "uc_base": "270b",
  68545. "uc_output": "270b",
  68546. "uc_match": "270b",
  68547. "uc_greedy": "270b",
  68548. "shortnames": [],
  68549. "category": "people"
  68550. },
  68551. ":record_button:": {
  68552. "uc_base": "23fa",
  68553. "uc_output": "23fa",
  68554. "uc_match": "23fa-fe0f",
  68555. "uc_greedy": "23fa",
  68556. "shortnames": [],
  68557. "category": "symbols"
  68558. },
  68559. ":recycle:": {
  68560. "uc_base": "267b",
  68561. "uc_output": "267b",
  68562. "uc_match": "267b-fe0f",
  68563. "uc_greedy": "267b-fe0f",
  68564. "shortnames": [],
  68565. "category": "symbols"
  68566. },
  68567. ":registered:": {
  68568. "uc_base": "00ae",
  68569. "uc_output": "00ae",
  68570. "uc_match": "00ae-fe0f",
  68571. "uc_greedy": "00ae",
  68572. "shortnames": [],
  68573. "category": "symbols"
  68574. },
  68575. ":relaxed:": {
  68576. "uc_base": "263a",
  68577. "uc_output": "263a",
  68578. "uc_match": "263a-fe0f",
  68579. "uc_greedy": "263a-fe0f",
  68580. "shortnames": [],
  68581. "category": "people"
  68582. },
  68583. ":rewind:": {
  68584. "uc_base": "23ea",
  68585. "uc_output": "23ea",
  68586. "uc_match": "23ea-fe0f",
  68587. "uc_greedy": "23ea-fe0f",
  68588. "shortnames": [],
  68589. "category": "symbols"
  68590. },
  68591. ":sagittarius:": {
  68592. "uc_base": "2650",
  68593. "uc_output": "2650",
  68594. "uc_match": "2650-fe0f",
  68595. "uc_greedy": "2650-fe0f",
  68596. "shortnames": [],
  68597. "category": "symbols"
  68598. },
  68599. ":sailboat:": {
  68600. "uc_base": "26f5",
  68601. "uc_output": "26f5",
  68602. "uc_match": "26f5-fe0f",
  68603. "uc_greedy": "26f5-fe0f",
  68604. "shortnames": [],
  68605. "category": "travel"
  68606. },
  68607. ":scales:": {
  68608. "uc_base": "2696",
  68609. "uc_output": "2696",
  68610. "uc_match": "2696-fe0f",
  68611. "uc_greedy": "2696-fe0f",
  68612. "shortnames": [],
  68613. "category": "objects"
  68614. },
  68615. ":scissors:": {
  68616. "uc_base": "2702",
  68617. "uc_output": "2702",
  68618. "uc_match": "2702-fe0f",
  68619. "uc_greedy": "2702-fe0f",
  68620. "shortnames": [],
  68621. "category": "objects"
  68622. },
  68623. ":scorpius:": {
  68624. "uc_base": "264f",
  68625. "uc_output": "264f",
  68626. "uc_match": "264f-fe0f",
  68627. "uc_greedy": "264f-fe0f",
  68628. "shortnames": [],
  68629. "category": "symbols"
  68630. },
  68631. ":secret:": {
  68632. "uc_base": "3299",
  68633. "uc_output": "3299",
  68634. "uc_match": "3299-fe0f",
  68635. "uc_greedy": "3299-fe0f",
  68636. "shortnames": [],
  68637. "category": "symbols"
  68638. },
  68639. ":shamrock:": {
  68640. "uc_base": "2618",
  68641. "uc_output": "2618",
  68642. "uc_match": "2618-fe0f",
  68643. "uc_greedy": "2618-fe0f",
  68644. "shortnames": [],
  68645. "category": "nature"
  68646. },
  68647. ":shinto_shrine:": {
  68648. "uc_base": "26e9",
  68649. "uc_output": "26e9",
  68650. "uc_match": "26e9-fe0f",
  68651. "uc_greedy": "26e9-fe0f",
  68652. "shortnames": [],
  68653. "category": "travel"
  68654. },
  68655. ":skier:": {
  68656. "uc_base": "26f7",
  68657. "uc_output": "26f7",
  68658. "uc_match": "26f7-fe0f",
  68659. "uc_greedy": "26f7-fe0f",
  68660. "shortnames": [],
  68661. "category": "activity"
  68662. },
  68663. ":skull_crossbones:": {
  68664. "uc_base": "2620",
  68665. "uc_output": "2620",
  68666. "uc_match": "2620-fe0f",
  68667. "uc_greedy": "2620-fe0f",
  68668. "shortnames": [":skull_and_crossbones:"],
  68669. "category": "people"
  68670. },
  68671. ":snowflake:": {
  68672. "uc_base": "2744",
  68673. "uc_output": "2744",
  68674. "uc_match": "2744-fe0f",
  68675. "uc_greedy": "2744-fe0f",
  68676. "shortnames": [],
  68677. "category": "nature"
  68678. },
  68679. ":snowman2:": {
  68680. "uc_base": "2603",
  68681. "uc_output": "2603",
  68682. "uc_match": "2603-fe0f",
  68683. "uc_greedy": "2603-fe0f",
  68684. "shortnames": [],
  68685. "category": "nature"
  68686. },
  68687. ":snowman:": {
  68688. "uc_base": "26c4",
  68689. "uc_output": "26c4",
  68690. "uc_match": "26c4-fe0f",
  68691. "uc_greedy": "26c4-fe0f",
  68692. "shortnames": [],
  68693. "category": "nature"
  68694. },
  68695. ":soccer:": {
  68696. "uc_base": "26bd",
  68697. "uc_output": "26bd",
  68698. "uc_match": "26bd-fe0f",
  68699. "uc_greedy": "26bd-fe0f",
  68700. "shortnames": [],
  68701. "category": "activity"
  68702. },
  68703. ":spades:": {
  68704. "uc_base": "2660",
  68705. "uc_output": "2660",
  68706. "uc_match": "2660-fe0f",
  68707. "uc_greedy": "2660-fe0f",
  68708. "shortnames": [],
  68709. "category": "symbols"
  68710. },
  68711. ":sparkle:": {
  68712. "uc_base": "2747",
  68713. "uc_output": "2747",
  68714. "uc_match": "2747-fe0f",
  68715. "uc_greedy": "2747-fe0f",
  68716. "shortnames": [],
  68717. "category": "symbols"
  68718. },
  68719. ":sparkles:": {
  68720. "uc_base": "2728",
  68721. "uc_output": "2728",
  68722. "uc_match": "2728",
  68723. "uc_greedy": "2728",
  68724. "shortnames": [],
  68725. "category": "nature"
  68726. },
  68727. ":star:": {
  68728. "uc_base": "2b50",
  68729. "uc_output": "2b50",
  68730. "uc_match": "2b50-fe0f",
  68731. "uc_greedy": "2b50-fe0f",
  68732. "shortnames": [],
  68733. "category": "nature"
  68734. },
  68735. ":star_and_crescent:": {
  68736. "uc_base": "262a",
  68737. "uc_output": "262a",
  68738. "uc_match": "262a-fe0f",
  68739. "uc_greedy": "262a",
  68740. "shortnames": [],
  68741. "category": "symbols"
  68742. },
  68743. ":star_of_david:": {
  68744. "uc_base": "2721",
  68745. "uc_output": "2721",
  68746. "uc_match": "2721-fe0f",
  68747. "uc_greedy": "2721",
  68748. "shortnames": [],
  68749. "category": "symbols"
  68750. },
  68751. ":stop_button:": {
  68752. "uc_base": "23f9",
  68753. "uc_output": "23f9",
  68754. "uc_match": "23f9-fe0f",
  68755. "uc_greedy": "23f9",
  68756. "shortnames": [],
  68757. "category": "symbols"
  68758. },
  68759. ":stopwatch:": {
  68760. "uc_base": "23f1",
  68761. "uc_output": "23f1",
  68762. "uc_match": "23f1-fe0f",
  68763. "uc_greedy": "23f1-fe0f",
  68764. "shortnames": [],
  68765. "category": "objects"
  68766. },
  68767. ":sunny:": {
  68768. "uc_base": "2600",
  68769. "uc_output": "2600",
  68770. "uc_match": "2600-fe0f",
  68771. "uc_greedy": "2600-fe0f",
  68772. "shortnames": [],
  68773. "category": "nature"
  68774. },
  68775. ":taurus:": {
  68776. "uc_base": "2649",
  68777. "uc_output": "2649",
  68778. "uc_match": "2649-fe0f",
  68779. "uc_greedy": "2649-fe0f",
  68780. "shortnames": [],
  68781. "category": "symbols"
  68782. },
  68783. ":telephone:": {
  68784. "uc_base": "260e",
  68785. "uc_output": "260e",
  68786. "uc_match": "260e-fe0f",
  68787. "uc_greedy": "260e-fe0f",
  68788. "shortnames": [],
  68789. "category": "objects"
  68790. },
  68791. ":tent:": {
  68792. "uc_base": "26fa",
  68793. "uc_output": "26fa",
  68794. "uc_match": "26fa-fe0f",
  68795. "uc_greedy": "26fa-fe0f",
  68796. "shortnames": [],
  68797. "category": "travel"
  68798. },
  68799. ":thunder_cloud_rain:": {
  68800. "uc_base": "26c8",
  68801. "uc_output": "26c8",
  68802. "uc_match": "26c8-fe0f",
  68803. "uc_greedy": "26c8-fe0f",
  68804. "shortnames": [":thunder_cloud_and_rain:"],
  68805. "category": "nature"
  68806. },
  68807. ":timer:": {
  68808. "uc_base": "23f2",
  68809. "uc_output": "23f2",
  68810. "uc_match": "23f2-fe0f",
  68811. "uc_greedy": "23f2-fe0f",
  68812. "shortnames": [":timer_clock:"],
  68813. "category": "objects"
  68814. },
  68815. ":tm:": {
  68816. "uc_base": "2122",
  68817. "uc_output": "2122",
  68818. "uc_match": "2122-fe0f",
  68819. "uc_greedy": "2122",
  68820. "shortnames": [],
  68821. "category": "symbols"
  68822. },
  68823. ":track_next:": {
  68824. "uc_base": "23ed",
  68825. "uc_output": "23ed",
  68826. "uc_match": "23ed-fe0f",
  68827. "uc_greedy": "23ed",
  68828. "shortnames": [":next_track:"],
  68829. "category": "symbols"
  68830. },
  68831. ":track_previous:": {
  68832. "uc_base": "23ee",
  68833. "uc_output": "23ee",
  68834. "uc_match": "23ee-fe0f",
  68835. "uc_greedy": "23ee",
  68836. "shortnames": [":previous_track:"],
  68837. "category": "symbols"
  68838. },
  68839. ":umbrella2:": {
  68840. "uc_base": "2602",
  68841. "uc_output": "2602",
  68842. "uc_match": "2602-fe0f",
  68843. "uc_greedy": "2602-fe0f",
  68844. "shortnames": [],
  68845. "category": "nature"
  68846. },
  68847. ":umbrella:": {
  68848. "uc_base": "2614",
  68849. "uc_output": "2614",
  68850. "uc_match": "2614-fe0f",
  68851. "uc_greedy": "2614-fe0f",
  68852. "shortnames": [],
  68853. "category": "nature"
  68854. },
  68855. ":urn:": {
  68856. "uc_base": "26b1",
  68857. "uc_output": "26b1",
  68858. "uc_match": "26b1-fe0f",
  68859. "uc_greedy": "26b1-fe0f",
  68860. "shortnames": [":funeral_urn:"],
  68861. "category": "objects"
  68862. },
  68863. ":v:": {
  68864. "uc_base": "270c",
  68865. "uc_output": "270c",
  68866. "uc_match": "270c-fe0f",
  68867. "uc_greedy": "270c-fe0f",
  68868. "shortnames": [],
  68869. "category": "people"
  68870. },
  68871. ":virgo:": {
  68872. "uc_base": "264d",
  68873. "uc_output": "264d",
  68874. "uc_match": "264d-fe0f",
  68875. "uc_greedy": "264d-fe0f",
  68876. "shortnames": [],
  68877. "category": "symbols"
  68878. },
  68879. ":warning:": {
  68880. "uc_base": "26a0",
  68881. "uc_output": "26a0",
  68882. "uc_match": "26a0-fe0f",
  68883. "uc_greedy": "26a0",
  68884. "shortnames": [],
  68885. "category": "symbols"
  68886. },
  68887. ":watch:": {
  68888. "uc_base": "231a",
  68889. "uc_output": "231a",
  68890. "uc_match": "231a-fe0f",
  68891. "uc_greedy": "231a-fe0f",
  68892. "shortnames": [],
  68893. "category": "objects"
  68894. },
  68895. ":wavy_dash:": {
  68896. "uc_base": "3030",
  68897. "uc_output": "3030",
  68898. "uc_match": "3030-fe0f",
  68899. "uc_greedy": "3030",
  68900. "shortnames": [],
  68901. "category": "symbols"
  68902. },
  68903. ":wheel_of_dharma:": {
  68904. "uc_base": "2638",
  68905. "uc_output": "2638",
  68906. "uc_match": "2638-fe0f",
  68907. "uc_greedy": "2638",
  68908. "shortnames": [],
  68909. "category": "symbols"
  68910. },
  68911. ":wheelchair:": {
  68912. "uc_base": "267f",
  68913. "uc_output": "267f",
  68914. "uc_match": "267f-fe0f",
  68915. "uc_greedy": "267f-fe0f",
  68916. "shortnames": [],
  68917. "category": "symbols"
  68918. },
  68919. ":white_check_mark:": {
  68920. "uc_base": "2705",
  68921. "uc_output": "2705",
  68922. "uc_match": "2705",
  68923. "uc_greedy": "2705",
  68924. "shortnames": [],
  68925. "category": "symbols"
  68926. },
  68927. ":white_circle:": {
  68928. "uc_base": "26aa",
  68929. "uc_output": "26aa",
  68930. "uc_match": "26aa-fe0f",
  68931. "uc_greedy": "26aa-fe0f",
  68932. "shortnames": [],
  68933. "category": "symbols"
  68934. },
  68935. ":white_large_square:": {
  68936. "uc_base": "2b1c",
  68937. "uc_output": "2b1c",
  68938. "uc_match": "2b1c-fe0f",
  68939. "uc_greedy": "2b1c-fe0f",
  68940. "shortnames": [],
  68941. "category": "symbols"
  68942. },
  68943. ":white_medium_small_square:": {
  68944. "uc_base": "25fd",
  68945. "uc_output": "25fd",
  68946. "uc_match": "25fd-fe0f",
  68947. "uc_greedy": "25fd-fe0f",
  68948. "shortnames": [],
  68949. "category": "symbols"
  68950. },
  68951. ":white_medium_square:": {
  68952. "uc_base": "25fb",
  68953. "uc_output": "25fb",
  68954. "uc_match": "25fb-fe0f",
  68955. "uc_greedy": "25fb",
  68956. "shortnames": [],
  68957. "category": "symbols"
  68958. },
  68959. ":white_small_square:": {
  68960. "uc_base": "25ab",
  68961. "uc_output": "25ab",
  68962. "uc_match": "25ab-fe0f",
  68963. "uc_greedy": "25ab",
  68964. "shortnames": [],
  68965. "category": "symbols"
  68966. },
  68967. ":writing_hand:": {
  68968. "uc_base": "270d",
  68969. "uc_output": "270d",
  68970. "uc_match": "270d-fe0f",
  68971. "uc_greedy": "270d-fe0f",
  68972. "shortnames": [],
  68973. "category": "people"
  68974. },
  68975. ":x:": {
  68976. "uc_base": "274c",
  68977. "uc_output": "274c",
  68978. "uc_match": "274c",
  68979. "uc_greedy": "274c",
  68980. "shortnames": [],
  68981. "category": "symbols"
  68982. },
  68983. ":yin_yang:": {
  68984. "uc_base": "262f",
  68985. "uc_output": "262f",
  68986. "uc_match": "262f-fe0f",
  68987. "uc_greedy": "262f",
  68988. "shortnames": [],
  68989. "category": "symbols"
  68990. },
  68991. ":zap:": {
  68992. "uc_base": "26a1",
  68993. "uc_output": "26a1",
  68994. "uc_match": "26a1-fe0f",
  68995. "uc_greedy": "26a1-fe0f",
  68996. "shortnames": [],
  68997. "category": "nature"
  68998. }
  68999. };
  69000. var ascii_list = {
  69001. '*\\0/*': '1f646',
  69002. '*\\O/*': '1f646',
  69003. '-___-': '1f611',
  69004. ':\'-)': '1f602',
  69005. '\':-)': '1f605',
  69006. '\':-D': '1f605',
  69007. '>:-)': '1f606',
  69008. '\':-(': '1f613',
  69009. '>:-(': '1f620',
  69010. ':\'-(': '1f622',
  69011. 'O:-)': '1f607',
  69012. '0:-3': '1f607',
  69013. '0:-)': '1f607',
  69014. '0;^)': '1f607',
  69015. 'O;-)': '1f607',
  69016. '0;-)': '1f607',
  69017. 'O:-3': '1f607',
  69018. '-__-': '1f611',
  69019. ':-Þ': '1f61b',
  69020. '</3': '1f494',
  69021. ':\')': '1f602',
  69022. ':-D': '1f603',
  69023. '\':)': '1f605',
  69024. '\'=)': '1f605',
  69025. '\':D': '1f605',
  69026. '\'=D': '1f605',
  69027. '>:)': '1f606',
  69028. '>;)': '1f606',
  69029. '>=)': '1f606',
  69030. ';-)': '1f609',
  69031. '*-)': '1f609',
  69032. ';-]': '1f609',
  69033. ';^)': '1f609',
  69034. '\':(': '1f613',
  69035. '\'=(': '1f613',
  69036. ':-*': '1f618',
  69037. ':^*': '1f618',
  69038. '>:P': '1f61c',
  69039. 'X-P': '1f61c',
  69040. '>:[': '1f61e',
  69041. ':-(': '1f61e',
  69042. ':-[': '1f61e',
  69043. '>:(': '1f620',
  69044. ':\'(': '1f622',
  69045. ';-(': '1f622',
  69046. '>.<': '1f623',
  69047. '#-)': '1f635',
  69048. '%-)': '1f635',
  69049. 'X-)': '1f635',
  69050. '\\0/': '1f646',
  69051. '\\O/': '1f646',
  69052. '0:3': '1f607',
  69053. '0:)': '1f607',
  69054. 'O:)': '1f607',
  69055. 'O=)': '1f607',
  69056. 'O:3': '1f607',
  69057. 'B-)': '1f60e',
  69058. '8-)': '1f60e',
  69059. 'B-D': '1f60e',
  69060. '8-D': '1f60e',
  69061. '-_-': '1f611',
  69062. '>:\\': '1f615',
  69063. '>:/': '1f615',
  69064. ':-/': '1f615',
  69065. ':-.': '1f615',
  69066. ':-P': '1f61b',
  69067. ':Þ': '1f61b',
  69068. ':-b': '1f61b',
  69069. ':-O': '1f62e',
  69070. 'O_O': '1f62e',
  69071. '>:O': '1f62e',
  69072. ':-X': '1f636',
  69073. ':-#': '1f636',
  69074. ':-)': '1f642',
  69075. '(y)': '1f44d',
  69076. '<3': '2764',
  69077. ':D': '1f603',
  69078. '=D': '1f603',
  69079. ';)': '1f609',
  69080. '*)': '1f609',
  69081. ';]': '1f609',
  69082. ';D': '1f609',
  69083. ':*': '1f618',
  69084. '=*': '1f618',
  69085. ':(': '1f61e',
  69086. ':[': '1f61e',
  69087. '=(': '1f61e',
  69088. ':@': '1f620',
  69089. ';(': '1f622',
  69090. 'D:': '1f628',
  69091. ':$': '1f633',
  69092. '=$': '1f633',
  69093. '#)': '1f635',
  69094. '%)': '1f635',
  69095. 'X)': '1f635',
  69096. 'B)': '1f60e',
  69097. '8)': '1f60e',
  69098. ':/': '1f615',
  69099. ':\\': '1f615',
  69100. '=/': '1f615',
  69101. '=\\': '1f615',
  69102. ':L': '1f615',
  69103. '=L': '1f615',
  69104. ':P': '1f61b',
  69105. '=P': '1f61b',
  69106. ':b': '1f61b',
  69107. ':O': '1f62e',
  69108. ':X': '1f636',
  69109. ':#': '1f636',
  69110. '=X': '1f636',
  69111. '=#': '1f636',
  69112. ':)': '1f642',
  69113. '=]': '1f642',
  69114. '=)': '1f642',
  69115. ':]': '1f642'
  69116. };
  69117. var shortnames = [];
  69118. for (var emoji in emoji_list) {
  69119. if (!Object.prototype.hasOwnProperty.call(emoji_list, emoji) || emoji === '') continue;
  69120. shortnames.push(emoji.replace(/[+]/g, "\\$&"));
  69121. for (var i = 0; i < emoji_list[emoji].shortnames.length; i++) {
  69122. shortnames.push(emoji_list[emoji].shortnames[i].replace(/[+]/g, "\\$&"));
  69123. }
  69124. }
  69125. shortnames = shortnames.join('|');
  69126. var SHORTNAMES_REGEX = new RegExp("<object[^>]*>.*?<\/object>|<span[^>]*>.*?<\/span>|<(?:object|embed|svg|img|div|span|p|a)[^>]*>|(" + shortnames + ")", "gi");
  69127. var ASCII_REGEX = '(\\*\\\\0\\/\\*|\\*\\\\O\\/\\*|\\-___\\-|\\:\'\\-\\)|\'\\:\\-\\)|\'\\:\\-D|\\>\\:\\-\\)|>\\:\\-\\)|\'\\:\\-\\(|\\>\\:\\-\\(|>\\:\\-\\(|\\:\'\\-\\(|O\\:\\-\\)|0\\:\\-3|0\\:\\-\\)|0;\\^\\)|O;\\-\\)|0;\\-\\)|O\\:\\-3|\\-__\\-|\\:\\-Þ|\\:\\-Þ|\\<\\/3|<\\/3|\\:\'\\)|\\:\\-D|\'\\:\\)|\'\\=\\)|\'\\:D|\'\\=D|\\>\\:\\)|>\\:\\)|\\>;\\)|>;\\)|\\>\\=\\)|>\\=\\)|;\\-\\)|\\*\\-\\)|;\\-\\]|;\\^\\)|\'\\:\\(|\'\\=\\(|\\:\\-\\*|\\:\\^\\*|\\>\\:P|>\\:P|X\\-P|\\>\\:\\[|>\\:\\[|\\:\\-\\(|\\:\\-\\[|\\>\\:\\(|>\\:\\(|\\:\'\\(|;\\-\\(|\\>\\.\\<|>\\.<|#\\-\\)|%\\-\\)|X\\-\\)|\\\\0\\/|\\\\O\\/|0\\:3|0\\:\\)|O\\:\\)|O\\=\\)|O\\:3|B\\-\\)|8\\-\\)|B\\-D|8\\-D|\\-_\\-|\\>\\:\\\\|>\\:\\\\|\\>\\:\\/|>\\:\\/|\\:\\-\\/|\\:\\-\\.|\\:\\-P|\\:Þ|\\:Þ|\\:\\-b|\\:\\-O|O_O|\\>\\:O|>\\:O|\\:\\-X|\\:\\-#|\\:\\-\\)|\\(y\\)|\\<3|<3|\\:D|\\=D|;\\)|\\*\\)|;\\]|;D|\\:\\*|\\=\\*|\\:\\(|\\:\\[|\\=\\(|\\:@|;\\(|D\\:|\\:\\$|\\=\\$|#\\)|%\\)|X\\)|B\\)|8\\)|\\:\\/|\\:\\\\|\\=\\/|\\=\\\\|\\:L|\\=L|\\:P|\\=P|\\:b|\\:O|\\:X|\\:#|\\=X|\\=#|\\:\\)|\\=\\]|\\=\\)|\\:\\])';
  69128. var ASCII_REPLACE_REGEX = new RegExp("<object[^>]*>.*?<\/object>|<span[^>]*>.*?<\/span>|<(?:object|embed|svg|img|div|span|p|a)[^>]*>|((\\s|^)" + ASCII_REGEX + "(?=\\s|$|[!,.?]))", "gi");
  69129. function convert(unicode) {
  69130. /* For converting unicode code points and code pairs
  69131. * to their respective characters
  69132. */
  69133. if (unicode.indexOf("-") > -1) {
  69134. var parts = [],
  69135. s = unicode.split('-');
  69136. for (var _i = 0; _i < s.length; _i++) {
  69137. var part = parseInt(s[_i], 16);
  69138. if (part >= 0x10000 && part <= 0x10FFFF) {
  69139. var hi = Math.floor((part - 0x10000) / 0x400) + 0xD800;
  69140. var lo = (part - 0x10000) % 0x400 + 0xDC00;
  69141. part = String.fromCharCode(hi) + String.fromCharCode(lo);
  69142. } else {
  69143. part = String.fromCharCode(part);
  69144. }
  69145. parts.push(part);
  69146. }
  69147. return parts.join('');
  69148. }
  69149. return twemoji.default.convert.fromCodePoint(unicode);
  69150. }
  69151. u.shortnameToUnicode = function (str) {
  69152. /* will output unicode from shortname
  69153. * useful for sending emojis back to mobile devices
  69154. */
  69155. // Replace regular shortnames first
  69156. str = str.replace(SHORTNAMES_REGEX, function (shortname) {
  69157. if (typeof shortname === 'undefined' || shortname === '' || !(shortname in emoji_list)) {
  69158. // if the shortname doesnt exist just return the entire matchhju
  69159. return shortname;
  69160. }
  69161. var unicode = emoji_list[shortname].uc_output.toUpperCase();
  69162. return convert(unicode);
  69163. }); // Also replace ASCII smileys
  69164. str = str.replace(ASCII_REPLACE_REGEX, function (entire, m1, m2, m3) {
  69165. if (typeof m3 === 'undefined' || m3 === '' || !(u.unescapeHTML(m3) in ascii_list)) {
  69166. // if the ascii doesnt exist just return the entire match
  69167. return entire;
  69168. }
  69169. m3 = u.unescapeHTML(m3);
  69170. var unicode = ascii_list[m3].toUpperCase();
  69171. return m2 + convert(unicode);
  69172. });
  69173. return str;
  69174. };
  69175. u.addEmoji = function (_converse, text) {
  69176. if (_converse.use_system_emojis) {
  69177. return u.shortnameToUnicode(text);
  69178. } else {
  69179. return twemoji.default.parse(text);
  69180. }
  69181. };
  69182. u.getEmojisByCategory = function (_converse) {
  69183. /* Return a dict of emojis with the categories as keys and
  69184. * lists of emojis in that category as values.
  69185. */
  69186. if (_.isUndefined(_converse.emojis_by_category)) {
  69187. var emojis = _.values(_.mapValues(emoji_list, function (value, key, o) {
  69188. value._shortname = key;
  69189. return value;
  69190. }));
  69191. var tones = [':tone1:', ':tone2:', ':tone3:', ':tone4:', ':tone5:'];
  69192. var excluded = [':kiss_ww:', ':kiss_mm:', ':kiss_woman_man:'];
  69193. var excluded_substrings = [':woman', ':man', ':women_', ':men_', '_man_', '_woman_', '_woman:', '_man:'];
  69194. var excluded_categories = ['modifier', 'regional'];
  69195. var categories = _.difference(_.uniq(_.map(emojis, _.partial(_.get, _, 'category'))), excluded_categories);
  69196. var emojis_by_category = {};
  69197. _.forEach(categories, function (cat) {
  69198. var list = _.sortBy(_.filter(emojis, ['category', cat]), ['uc_base']);
  69199. list = _.filter(list, function (item) {
  69200. return !_.includes(_.concat(tones, excluded), item._shortname) && !_.some(excluded_substrings, _.partial(_.includes, item._shortname));
  69201. });
  69202. if (cat === 'people') {
  69203. var idx = _.findIndex(list, ['uc_base', '1f600']);
  69204. list = _.union(_.slice(list, idx), _.slice(list, 0, idx + 1));
  69205. } else if (cat === 'activity') {
  69206. list = _.union(_.slice(list, 27 - 1), _.slice(list, 0, 27));
  69207. } else if (cat === 'objects') {
  69208. list = _.union(_.slice(list, 24 - 1), _.slice(list, 0, 24));
  69209. } else if (cat === 'travel') {
  69210. list = _.union(_.slice(list, 17 - 1), _.slice(list, 0, 17));
  69211. } else if (cat === 'symbols') {
  69212. list = _.union(_.slice(list, 60 - 1), _.slice(list, 0, 60));
  69213. }
  69214. emojis_by_category[cat] = list;
  69215. });
  69216. _converse.emojis_by_category = emojis_by_category;
  69217. }
  69218. return _converse.emojis_by_category;
  69219. };
  69220. u.getTonedEmojis = function (_converse) {
  69221. _converse.toned_emojis = _.uniq(_.map(_.filter(u.getEmojisByCategory(_converse).people, function (person) {
  69222. return _.includes(person._shortname, '_tone');
  69223. }), function (person) {
  69224. return person._shortname.replace(/_tone[1-5]/, '');
  69225. }));
  69226. return _converse.toned_emojis;
  69227. };
  69228. u.getEmojiRenderer = function (_converse) {
  69229. return _converse.use_system_emojis ? u.shortnameToUnicode : _.flow(u.shortnameToUnicode, twemoji.default.parse);
  69230. };
  69231. return u;
  69232. });
  69233. /***/ }),
  69234. /***/ "./src/utils/form.js":
  69235. /*!***************************!*\
  69236. !*** ./src/utils/form.js ***!
  69237. \***************************/
  69238. /*! no static exports found */
  69239. /***/ (function(module, exports, __webpack_require__) {
  69240. "use strict";
  69241. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  69242. // Converse.js (A browser based XMPP chat client)
  69243. // http://conversejs.org
  69244. //
  69245. // This is the utilities module.
  69246. //
  69247. // Copyright (c) 2013-2018, Jan-Carel Brand <jc@opkode.com>
  69248. // Licensed under the Mozilla Public License (MPLv2)
  69249. //
  69250. /*global define, escape, Jed */
  69251. (function (root, factory) {
  69252. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! sizzle */ "./node_modules/sizzle/dist/sizzle.js"), __webpack_require__(/*! lodash.noconflict */ "lodash.noconflict"), __webpack_require__(/*! utils/core */ "./src/utils/core.js"), __webpack_require__(/*! templates/field.html */ "./src/templates/field.html"), __webpack_require__(/*! templates/select_option.html */ "./src/templates/select_option.html"), __webpack_require__(/*! templates/form_select.html */ "./src/templates/form_select.html"), __webpack_require__(/*! templates/form_textarea.html */ "./src/templates/form_textarea.html"), __webpack_require__(/*! templates/form_checkbox.html */ "./src/templates/form_checkbox.html"), __webpack_require__(/*! templates/form_username.html */ "./src/templates/form_username.html"), __webpack_require__(/*! templates/form_input.html */ "./src/templates/form_input.html"), __webpack_require__(/*! templates/form_captcha.html */ "./src/templates/form_captcha.html"), __webpack_require__(/*! templates/form_url.html */ "./src/templates/form_url.html")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  69253. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  69254. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  69255. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  69256. })(void 0, function (sizzle, _, u, tpl_field, tpl_select_option, tpl_form_select, tpl_form_textarea, tpl_form_checkbox, tpl_form_username, tpl_form_input, tpl_form_captcha, tpl_form_url) {
  69257. "use strict";
  69258. var XFORM_TYPE_MAP = {
  69259. 'text-private': 'password',
  69260. 'text-single': 'text',
  69261. 'fixed': 'label',
  69262. 'boolean': 'checkbox',
  69263. 'hidden': 'hidden',
  69264. 'jid-multi': 'textarea',
  69265. 'list-single': 'dropdown',
  69266. 'list-multi': 'dropdown'
  69267. };
  69268. u.webForm2xForm = function (field) {
  69269. /* Takes an HTML DOM and turns it into an XForm field.
  69270. *
  69271. * Parameters:
  69272. * (DOMElement) field - the field to convert
  69273. */
  69274. var value;
  69275. if (field.getAttribute('type') === 'checkbox') {
  69276. value = field.checked && 1 || 0;
  69277. } else if (field.tagName == "TEXTAREA") {
  69278. value = _.filter(field.value.split('\n'), _.trim);
  69279. } else if (field.tagName == "SELECT") {
  69280. value = u.getSelectValues(field);
  69281. } else {
  69282. value = field.value;
  69283. }
  69284. return u.stringToNode(tpl_field({
  69285. 'name': field.getAttribute('name'),
  69286. 'value': value
  69287. }));
  69288. };
  69289. u.xForm2webForm = function (field, stanza, domain) {
  69290. /* Takes a field in XMPP XForm (XEP-004: Data Forms) format
  69291. * and turns it into an HTML field.
  69292. *
  69293. * Returns either text or a DOM element (which is not ideal, but fine
  69294. * for now).
  69295. *
  69296. * Parameters:
  69297. * (XMLElement) field - the field to convert
  69298. */
  69299. if (field.getAttribute('type')) {
  69300. if (field.getAttribute('type') === 'list-single' || field.getAttribute('type') === 'list-multi') {
  69301. var values = _.map(u.queryChildren(field, 'value'), _.partial(_.get, _, 'textContent'));
  69302. var options = _.map(u.queryChildren(field, 'option'), function (option) {
  69303. var value = _.get(option.querySelector('value'), 'textContent');
  69304. return tpl_select_option({
  69305. 'value': value,
  69306. 'label': option.getAttribute('label'),
  69307. 'selected': _.includes(values, value),
  69308. 'required': !_.isNil(field.querySelector('required'))
  69309. });
  69310. });
  69311. return tpl_form_select({
  69312. 'id': u.getUniqueId(),
  69313. 'name': field.getAttribute('var'),
  69314. 'label': field.getAttribute('label'),
  69315. 'options': options.join(''),
  69316. 'multiple': field.getAttribute('type') === 'list-multi',
  69317. 'required': !_.isNil(field.querySelector('required'))
  69318. });
  69319. } else if (field.getAttribute('type') === 'fixed') {
  69320. var text = _.get(field.querySelector('value'), 'textContent');
  69321. return '<p class="form-help">' + text + '</p>';
  69322. } else if (field.getAttribute('type') === 'jid-multi') {
  69323. return tpl_form_textarea({
  69324. 'name': field.getAttribute('var'),
  69325. 'label': field.getAttribute('label') || '',
  69326. 'value': _.get(field.querySelector('value'), 'textContent'),
  69327. 'required': !_.isNil(field.querySelector('required'))
  69328. });
  69329. } else if (field.getAttribute('type') === 'boolean') {
  69330. return tpl_form_checkbox({
  69331. 'id': u.getUniqueId(),
  69332. 'name': field.getAttribute('var'),
  69333. 'label': field.getAttribute('label') || '',
  69334. 'checked': _.get(field.querySelector('value'), 'textContent') === "1" && 'checked="1"' || '',
  69335. 'required': !_.isNil(field.querySelector('required'))
  69336. });
  69337. } else if (field.getAttribute('var') === 'url') {
  69338. return tpl_form_url({
  69339. 'label': field.getAttribute('label') || '',
  69340. 'value': _.get(field.querySelector('value'), 'textContent')
  69341. });
  69342. } else if (field.getAttribute('var') === 'username') {
  69343. return tpl_form_username({
  69344. 'domain': ' @' + domain,
  69345. 'name': field.getAttribute('var'),
  69346. 'type': XFORM_TYPE_MAP[field.getAttribute('type')],
  69347. 'label': field.getAttribute('label') || '',
  69348. 'value': _.get(field.querySelector('value'), 'textContent'),
  69349. 'required': !_.isNil(field.querySelector('required'))
  69350. });
  69351. } else {
  69352. return tpl_form_input({
  69353. 'id': u.getUniqueId(),
  69354. 'label': field.getAttribute('label') || '',
  69355. 'name': field.getAttribute('var'),
  69356. 'placeholder': null,
  69357. 'required': !_.isNil(field.querySelector('required')),
  69358. 'type': XFORM_TYPE_MAP[field.getAttribute('type')],
  69359. 'value': _.get(field.querySelector('value'), 'textContent')
  69360. });
  69361. }
  69362. } else {
  69363. if (field.getAttribute('var') === 'ocr') {
  69364. // Captcha
  69365. var uri = field.querySelector('uri');
  69366. var el = sizzle('data[cid="' + uri.textContent.replace(/^cid:/, '') + '"]', stanza)[0];
  69367. return tpl_form_captcha({
  69368. 'label': field.getAttribute('label'),
  69369. 'name': field.getAttribute('var'),
  69370. 'data': _.get(el, 'textContent'),
  69371. 'type': uri.getAttribute('type'),
  69372. 'required': !_.isNil(field.querySelector('required'))
  69373. });
  69374. }
  69375. }
  69376. };
  69377. return u;
  69378. });
  69379. /***/ }),
  69380. /***/ "./src/utils/muc.js":
  69381. /*!**************************!*\
  69382. !*** ./src/utils/muc.js ***!
  69383. \**************************/
  69384. /*! no static exports found */
  69385. /***/ (function(module, exports, __webpack_require__) {
  69386. "use strict";
  69387. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;
  69388. // Converse.js (A browser based XMPP chat client)
  69389. // http://conversejs.org
  69390. //
  69391. // This is the utilities module.
  69392. //
  69393. // Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
  69394. // Licensed under the Mozilla Public License (MPLv2)
  69395. //
  69396. /*global define, escape, Jed */
  69397. (function (root, factory) {
  69398. !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! converse-core */ "./src/converse-core.js"), __webpack_require__(/*! utils/core */ "./src/utils/core.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  69399. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  69400. (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
  69401. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  69402. })(void 0, function (converse, u) {
  69403. "use strict";
  69404. var _converse$env = converse.env,
  69405. Strophe = _converse$env.Strophe,
  69406. sizzle = _converse$env.sizzle,
  69407. _ = _converse$env._;
  69408. u.computeAffiliationsDelta = function computeAffiliationsDelta(exclude_existing, remove_absentees, new_list, old_list) {
  69409. /* Given two lists of objects with 'jid', 'affiliation' and
  69410. * 'reason' properties, return a new list containing
  69411. * those objects that are new, changed or removed
  69412. * (depending on the 'remove_absentees' boolean).
  69413. *
  69414. * The affiliations for new and changed members stay the
  69415. * same, for removed members, the affiliation is set to 'none'.
  69416. *
  69417. * The 'reason' property is not taken into account when
  69418. * comparing whether affiliations have been changed.
  69419. *
  69420. * Parameters:
  69421. * (Boolean) exclude_existing: Indicates whether JIDs from
  69422. * the new list which are also in the old list
  69423. * (regardless of affiliation) should be excluded
  69424. * from the delta. One reason to do this
  69425. * would be when you want to add a JID only if it
  69426. * doesn't have *any* existing affiliation at all.
  69427. * (Boolean) remove_absentees: Indicates whether JIDs
  69428. * from the old list which are not in the new list
  69429. * should be considered removed and therefore be
  69430. * included in the delta with affiliation set
  69431. * to 'none'.
  69432. * (Array) new_list: Array containing the new affiliations
  69433. * (Array) old_list: Array containing the old affiliations
  69434. */
  69435. var new_jids = _.map(new_list, 'jid');
  69436. var old_jids = _.map(old_list, 'jid'); // Get the new affiliations
  69437. var delta = _.map(_.difference(new_jids, old_jids), function (jid) {
  69438. return new_list[_.indexOf(new_jids, jid)];
  69439. });
  69440. if (!exclude_existing) {
  69441. // Get the changed affiliations
  69442. delta = delta.concat(_.filter(new_list, function (item) {
  69443. var idx = _.indexOf(old_jids, item.jid);
  69444. if (idx >= 0) {
  69445. return item.affiliation !== old_list[idx].affiliation;
  69446. }
  69447. return false;
  69448. }));
  69449. }
  69450. if (remove_absentees) {
  69451. // Get the removed affiliations
  69452. delta = delta.concat(_.map(_.difference(old_jids, new_jids), function (jid) {
  69453. return {
  69454. 'jid': jid,
  69455. 'affiliation': 'none'
  69456. };
  69457. }));
  69458. }
  69459. return delta;
  69460. };
  69461. u.parseMemberListIQ = function parseMemberListIQ(iq) {
  69462. /* Given an IQ stanza with a member list, create an array of member objects.
  69463. */
  69464. return _.map(sizzle("query[xmlns=\"".concat(Strophe.NS.MUC_ADMIN, "\"] item"), iq), function (item) {
  69465. var data = {
  69466. 'affiliation': item.getAttribute('affiliation')
  69467. };
  69468. var jid = item.getAttribute('jid');
  69469. if (u.isValidJID(jid)) {
  69470. data['jid'] = jid;
  69471. } else {
  69472. // XXX: Prosody sends nick for the jid attribute value
  69473. // Perhaps for anonymous room?
  69474. data['nick'] = jid;
  69475. }
  69476. var nick = item.getAttribute('nick');
  69477. if (nick) {
  69478. data['nick'] = nick;
  69479. }
  69480. var role = item.getAttribute('role');
  69481. if (role) {
  69482. data['role'] = nick;
  69483. }
  69484. return data;
  69485. });
  69486. };
  69487. u.marshallAffiliationIQs = function marshallAffiliationIQs() {
  69488. /* Marshall a list of IQ stanzas into a map of JIDs and
  69489. * affiliations.
  69490. *
  69491. * Parameters:
  69492. * Any amount of XMLElement objects, representing the IQ
  69493. * stanzas.
  69494. */
  69495. return _.flatMap(arguments[0], u.parseMemberListIQ);
  69496. };
  69497. });
  69498. /***/ }),
  69499. /***/ "awesomplete":
  69500. /*!******************************!*\
  69501. !*** external "awesomplete" ***!
  69502. \******************************/
  69503. /*! no static exports found */
  69504. /***/ (function(module, exports) {
  69505. module.exports = awesomplete;
  69506. /***/ }),
  69507. /***/ "backbone.browserStorage":
  69508. /*!******************************************!*\
  69509. !*** external "backbone.browserStorage" ***!
  69510. \******************************************/
  69511. /*! no static exports found */
  69512. /***/ (function(module, exports) {
  69513. module.exports = backbone.browserStorage;
  69514. /***/ }),
  69515. /***/ "backbone.overview":
  69516. /*!************************************!*\
  69517. !*** external "backbone.overview" ***!
  69518. \************************************/
  69519. /*! no static exports found */
  69520. /***/ (function(module, exports) {
  69521. module.exports = backbone.overview;
  69522. /***/ }),
  69523. /***/ "es6-promise":
  69524. /*!******************************!*\
  69525. !*** external "es6-promise" ***!
  69526. \******************************/
  69527. /*! no static exports found */
  69528. /***/ (function(module, exports) {
  69529. module.exports = es6-promise;
  69530. /***/ }),
  69531. /***/ "lodash":
  69532. /*!*************************!*\
  69533. !*** external "lodash" ***!
  69534. \*************************/
  69535. /*! no static exports found */
  69536. /***/ (function(module, exports) {
  69537. module.exports = lodash;
  69538. /***/ }),
  69539. /***/ "lodash.converter":
  69540. /*!***********************************!*\
  69541. !*** external "lodash.converter" ***!
  69542. \***********************************/
  69543. /*! no static exports found */
  69544. /***/ (function(module, exports) {
  69545. module.exports = lodash.converter;
  69546. /***/ }),
  69547. /***/ "lodash.noconflict":
  69548. /*!************************************!*\
  69549. !*** external "lodash.noconflict" ***!
  69550. \************************************/
  69551. /*! no static exports found */
  69552. /***/ (function(module, exports) {
  69553. module.exports = lodash.noconflict;
  69554. /***/ }),
  69555. /***/ "moment":
  69556. /*!*************************!*\
  69557. !*** external "moment" ***!
  69558. \*************************/
  69559. /*! no static exports found */
  69560. /***/ (function(module, exports) {
  69561. module.exports = moment;
  69562. /***/ }),
  69563. /***/ "strophe":
  69564. /*!**************************!*\
  69565. !*** external "strophe" ***!
  69566. \**************************/
  69567. /*! no static exports found */
  69568. /***/ (function(module, exports) {
  69569. module.exports = strophe;
  69570. /***/ }),
  69571. /***/ "strophe.ping":
  69572. /*!*******************************!*\
  69573. !*** external "strophe.ping" ***!
  69574. \*******************************/
  69575. /*! no static exports found */
  69576. /***/ (function(module, exports) {
  69577. module.exports = strophe.ping;
  69578. /***/ }),
  69579. /***/ "strophe.rsm":
  69580. /*!******************************!*\
  69581. !*** external "strophe.rsm" ***!
  69582. \******************************/
  69583. /*! no static exports found */
  69584. /***/ (function(module, exports) {
  69585. module.exports = strophe.rsm;
  69586. /***/ })
  69587. /******/ });
  69588. //# sourceMappingURL=converse-no-dependencies.js.map