h5player.min.js 1.1 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130
  1. ! function(e, t) {
  2. if ("object" == typeof exports && "object" == typeof module) module.exports = t();
  3. else if ("function" == typeof define && define.amd) define([], t);
  4. else {
  5. var n, i = t();
  6. for (n in i)("object" == typeof exports ? exports : e)[n] = i[n]
  7. }
  8. }(window, function() {
  9. return n = [function(e, t, ls) {
  10. ! function(us) {
  11. var ds; //! moment.js
  12. //! version : 2.29.1
  13. //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
  14. //! license : MIT
  15. //! momentjs.com
  16. us.exports = function() {
  17. "use strict";
  18. var t, r;
  19. function l() {
  20. return t.apply(null, arguments)
  21. }
  22. function e(e) {
  23. t = e
  24. }
  25. function s(e) {
  26. return e instanceof Array || Object.prototype.toString.call(e) === "[object Array]"
  27. }
  28. function o(e) {
  29. return e != null && Object.prototype.toString.call(e) === "[object Object]"
  30. }
  31. function u(e, t) {
  32. return Object.prototype.hasOwnProperty.call(e, t)
  33. }
  34. function d(e) {
  35. if (Object.getOwnPropertyNames) return Object.getOwnPropertyNames(e).length === 0;
  36. else {
  37. var t;
  38. for (t in e)
  39. if (u(e, t)) return false;
  40. return true
  41. }
  42. }
  43. function a(e) {
  44. return e === void 0
  45. }
  46. function h(e) {
  47. return typeof e === "number" || Object.prototype.toString.call(e) ===
  48. "[object Number]"
  49. }
  50. function c(e) {
  51. return e instanceof Date || Object.prototype.toString.call(e) === "[object Date]"
  52. }
  53. function i(e, t) {
  54. var n = [],
  55. i;
  56. for (i = 0; i < e.length; ++i) n.push(t(e[i], i));
  57. return n
  58. }
  59. function _(e, t) {
  60. for (var n in t)
  61. if (u(t, n)) e[n] = t[n];
  62. if (u(t, "toString")) e.toString = t.toString;
  63. if (u(t, "valueOf")) e.valueOf = t.valueOf;
  64. return e
  65. }
  66. function f(e, t, n, i) {
  67. return Gn(e, t, n, i, true).utc()
  68. }
  69. function n() {
  70. return {
  71. empty: false,
  72. unusedTokens: [],
  73. unusedInput: [],
  74. overflow: -2,
  75. charsLeftOver: 0,
  76. nullInput: false,
  77. invalidEra: null,
  78. invalidMonth: null,
  79. invalidFormat: false,
  80. userInvalidated: false,
  81. iso: false,
  82. parsedDateParts: [],
  83. era: null,
  84. meridiem: null,
  85. rfc2822: false,
  86. weekdayMismatch: false
  87. }
  88. }
  89. function m(e) {
  90. if (e._pf == null) e._pf = n();
  91. return e._pf
  92. }
  93. if (Array.prototype.some) r = Array.prototype.some;
  94. else r = function(e) {
  95. var t = Object(this),
  96. n = t.length >>> 0,
  97. i;
  98. for (i = 0; i < n; i++)
  99. if (i in t && e.call(this, t[i], i, t)) return true;
  100. return false
  101. };
  102. function p(e) {
  103. if (e._isValid == null) {
  104. var t = m(e),
  105. n = r.call(t.parsedDateParts, function(e) {
  106. return e != null
  107. }),
  108. i = !isNaN(e._d.getTime()) && t.overflow < 0 && !t.empty && !t.invalidEra &&
  109. !t.invalidMonth && !t.invalidWeekday && !t.weekdayMismatch && !t
  110. .nullInput && !t.invalidFormat && !t.userInvalidated && (!t.meridiem || t
  111. .meridiem && n);
  112. if (e._strict) i = i && t.charsLeftOver === 0 && t.unusedTokens.length === 0 &&
  113. t.bigHour === undefined;
  114. if (Object.isFrozen == null || !Object.isFrozen(e)) e._isValid = i;
  115. else return i
  116. }
  117. return e._isValid
  118. }
  119. function y(e) {
  120. var t = f(NaN);
  121. if (e != null) _(m(t), e);
  122. else m(t).userInvalidated = true;
  123. return t
  124. }
  125. var v = l.momentProperties = [],
  126. g = false;
  127. function M(e, t) {
  128. var n, i, r;
  129. if (!a(t._isAMomentObject)) e._isAMomentObject = t._isAMomentObject;
  130. if (!a(t._i)) e._i = t._i;
  131. if (!a(t._f)) e._f = t._f;
  132. if (!a(t._l)) e._l = t._l;
  133. if (!a(t._strict)) e._strict = t._strict;
  134. if (!a(t._tzm)) e._tzm = t._tzm;
  135. if (!a(t._isUTC)) e._isUTC = t._isUTC;
  136. if (!a(t._offset)) e._offset = t._offset;
  137. if (!a(t._pf)) e._pf = m(t);
  138. if (!a(t._locale)) e._locale = t._locale;
  139. if (v.length > 0)
  140. for (n = 0; n < v.length; n++) {
  141. i = v[n];
  142. r = t[i];
  143. if (!a(r)) e[i] = r
  144. }
  145. return e
  146. }
  147. function L(e) {
  148. M(this, e);
  149. this._d = new Date(e._d != null ? e._d.getTime() : NaN);
  150. if (!this.isValid()) this._d = new Date(NaN);
  151. if (g === false) {
  152. g = true;
  153. l.updateOffset(this);
  154. g = false
  155. }
  156. }
  157. function S(e) {
  158. return e instanceof L || e != null && e._isAMomentObject != null
  159. }
  160. function k(e) {
  161. if (l.suppressDeprecationWarnings === false && typeof console !== "undefined" &&
  162. console.warn) console.warn("Deprecation warning: " + e)
  163. }
  164. function b(r, a) {
  165. var s = true;
  166. return _(function() {
  167. if (l.deprecationHandler != null) l.deprecationHandler(null, r);
  168. if (s) {
  169. var e = [],
  170. t, n, i;
  171. for (n = 0; n < arguments.length; n++) {
  172. t = "";
  173. if (typeof arguments[n] === "object") {
  174. t += "\n[" + n + "] ";
  175. for (i in arguments[0])
  176. if (u(arguments[0], i)) t += i + ": " + arguments[0][
  177. i
  178. ] + ", ";
  179. t = t.slice(0, -2)
  180. } else t = arguments[n];
  181. e.push(t)
  182. }
  183. k(r + "\nArguments: " + Array.prototype.slice.call(e).join("") +
  184. "\n" + (new Error).stack);
  185. s = false
  186. }
  187. return a.apply(this, arguments)
  188. }, a)
  189. }
  190. var w = {},
  191. D;
  192. function T(e, t) {
  193. if (l.deprecationHandler != null) l.deprecationHandler(e, t);
  194. if (!w[e]) {
  195. k(t);
  196. w[e] = true
  197. }
  198. }
  199. function E(e) {
  200. return typeof Function !== "undefined" && e instanceof Function || Object.prototype
  201. .toString.call(e) === "[object Function]"
  202. }
  203. function Y(e) {
  204. var t, n;
  205. for (n in e)
  206. if (u(e, n)) {
  207. t = e[n];
  208. if (E(t)) this[n] = t;
  209. else this["_" + n] = t
  210. } this._config = e;
  211. this._dayOfMonthOrdinalParseLenient = new RegExp((this._dayOfMonthOrdinalParse
  212. .source || this._ordinalParse.source) + "|" + /\d{1,2}/.source)
  213. }
  214. function P(e, t) {
  215. var n = _({}, e),
  216. i;
  217. for (i in t)
  218. if (u(t, i))
  219. if (o(e[i]) && o(t[i])) {
  220. n[i] = {};
  221. _(n[i], e[i]);
  222. _(n[i], t[i])
  223. } else if (t[i] != null) n[i] = t[i];
  224. else delete n[i];
  225. for (i in e)
  226. if (u(e, i) && !u(t, i) && o(e[i])) n[i] = _({}, n[i]);
  227. return n
  228. }
  229. function C(e) {
  230. if (e != null) this.set(e)
  231. }
  232. if (l.suppressDeprecationWarnings = false, l.deprecationHandler = null, Object.keys) D =
  233. Object.keys;
  234. else D = function(e) {
  235. var t, n = [];
  236. for (t in e)
  237. if (u(e, t)) n.push(t);
  238. return n
  239. };
  240. var A = {
  241. sameDay: "[Today at] LT",
  242. nextDay: "[Tomorrow at] LT",
  243. nextWeek: "dddd [at] LT",
  244. lastDay: "[Yesterday at] LT",
  245. lastWeek: "[Last] dddd [at] LT",
  246. sameElse: "L"
  247. };
  248. function R(e, t, n) {
  249. var i = this._calendar[e] || this._calendar["sameElse"];
  250. return E(i) ? i.call(t, n) : i
  251. }
  252. function x(e, t, n) {
  253. var i = "" + Math.abs(e),
  254. r = t - i.length,
  255. a = e >= 0;
  256. return (a ? n ? "+" : "" : "-") + Math.pow(10, Math.max(0, r)).toString().substr(
  257. 1) + i
  258. }
  259. var O =
  260. /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,
  261. I = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
  262. W = {},
  263. H = {};
  264. function j(e, t, n, i) {
  265. var r = i;
  266. if (typeof i === "string") r = function() {
  267. return this[i]()
  268. };
  269. if (e) H[e] = r;
  270. if (t) H[t[0]] = function() {
  271. return x(r.apply(this, arguments), t[1], t[2])
  272. };
  273. if (n) H[n] = function() {
  274. return this.localeData().ordinal(r.apply(this, arguments), e)
  275. }
  276. }
  277. function F(e) {
  278. if (e.match(/\[[\s\S]/)) return e.replace(/^\[|\]$/g, "");
  279. return e.replace(/\\/g, "")
  280. }
  281. function B(i) {
  282. var r = i.match(O),
  283. e, a;
  284. for (e = 0, a = r.length; e < a; e++)
  285. if (H[r[e]]) r[e] = H[r[e]];
  286. else r[e] = F(r[e]);
  287. return function(e) {
  288. var t = "",
  289. n;
  290. for (n = 0; n < a; n++) t += E(r[n]) ? r[n].call(e, i) : r[n];
  291. return t
  292. }
  293. }
  294. function N(e, t) {
  295. if (!e.isValid()) return e.localeData().invalidDate();
  296. t = z(t, e.localeData());
  297. W[t] = W[t] || B(t);
  298. return W[t](e)
  299. }
  300. function z(e, t) {
  301. var n = 5;
  302. function i(e) {
  303. return t.longDateFormat(e) || e
  304. }
  305. I.lastIndex = 0;
  306. while (n >= 0 && I.test(e)) {
  307. e = e.replace(I, i);
  308. I.lastIndex = 0;
  309. n -= 1
  310. }
  311. return e
  312. }
  313. var U = {
  314. LTS: "h:mm:ss A",
  315. LT: "h:mm A",
  316. L: "MM/DD/YYYY",
  317. LL: "MMMM D, YYYY",
  318. LLL: "MMMM D, YYYY h:mm A",
  319. LLLL: "dddd, MMMM D, YYYY h:mm A"
  320. };
  321. function V(e) {
  322. var t = this._longDateFormat[e],
  323. n = this._longDateFormat[e.toUpperCase()];
  324. if (t || !n) return t;
  325. this._longDateFormat[e] = n.match(O).map(function(e) {
  326. if (e === "MMMM" || e === "MM" || e === "DD" || e === "dddd") return e
  327. .slice(1);
  328. return e
  329. }).join("");
  330. return this._longDateFormat[e]
  331. }
  332. var G = "Invalid date";
  333. function J() {
  334. return this._invalidDate
  335. }
  336. var q = "%d",
  337. K = /\d{1,2}/;
  338. function X(e) {
  339. return this._ordinal.replace("%d", e)
  340. }
  341. var Z = {
  342. future: "in %s",
  343. past: "%s ago",
  344. s: "a few seconds",
  345. ss: "%d seconds",
  346. m: "a minute",
  347. mm: "%d minutes",
  348. h: "an hour",
  349. hh: "%d hours",
  350. d: "a day",
  351. dd: "%d days",
  352. w: "a week",
  353. ww: "%d weeks",
  354. M: "a month",
  355. MM: "%d months",
  356. y: "a year",
  357. yy: "%d years"
  358. };
  359. function $(e, t, n, i) {
  360. var r = this._relativeTime[n];
  361. return E(r) ? r(e, t, n, i) : r.replace(/%d/i, e)
  362. }
  363. function Q(e, t) {
  364. var n = this._relativeTime[e > 0 ? "future" : "past"];
  365. return E(n) ? n(t) : n.replace(/%s/i, t)
  366. }
  367. var ee = {};
  368. function te(e, t) {
  369. var n = e.toLowerCase();
  370. ee[n] = ee[n + "s"] = ee[t] = e
  371. }
  372. function ne(e) {
  373. return typeof e === "string" ? ee[e] || ee[e.toLowerCase()] : undefined
  374. }
  375. function ie(e) {
  376. var t = {},
  377. n, i;
  378. for (i in e)
  379. if (u(e, i)) {
  380. n = ne(i);
  381. if (n) t[n] = e[i]
  382. } return t
  383. }
  384. var re = {};
  385. function ae(e, t) {
  386. re[e] = t
  387. }
  388. function se(e) {
  389. var t = [],
  390. n;
  391. for (n in e)
  392. if (u(e, n)) t.push({
  393. unit: n,
  394. priority: re[n]
  395. });
  396. t.sort(function(e, t) {
  397. return e.priority - t.priority
  398. });
  399. return t
  400. }
  401. function oe(e) {
  402. return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0
  403. }
  404. function ue(e) {
  405. if (e < 0) return Math.ceil(e) || 0;
  406. else return Math.floor(e)
  407. }
  408. function de(e) {
  409. var t = +e,
  410. n = 0;
  411. if (t !== 0 && isFinite(t)) n = ue(t);
  412. return n
  413. }
  414. function le(t, n) {
  415. return function(e) {
  416. if (e != null) {
  417. ce(this, t, e);
  418. l.updateOffset(this, n);
  419. return this
  420. } else return he(this, t)
  421. }
  422. }
  423. function he(e, t) {
  424. return e.isValid() ? e._d["get" + (e._isUTC ? "UTC" : "") + t]() : NaN
  425. }
  426. function ce(e, t, n) {
  427. if (e.isValid() && !isNaN(n))
  428. if (t === "FullYear" && oe(e.year()) && e.month() === 1 && e.date() === 29) {
  429. n = de(n);
  430. e._d["set" + (e._isUTC ? "UTC" : "") + t](n, e.month(), $e(n, e.month()))
  431. } else e._d["set" + (e._isUTC ? "UTC" : "") + t](n)
  432. }
  433. function _e(e) {
  434. e = ne(e);
  435. if (E(this[e])) return this[e]();
  436. return this
  437. }
  438. function fe(e, t) {
  439. if (typeof e === "object") {
  440. e = ie(e);
  441. var n = se(e),
  442. i;
  443. for (i = 0; i < n.length; i++) this[n[i].unit](e[n[i].unit])
  444. } else {
  445. e = ne(e);
  446. if (E(this[e])) return this[e](t)
  447. }
  448. return this
  449. }
  450. var me = /\d/,
  451. pe = /\d\d/,
  452. ye = /\d{3}/,
  453. ve = /\d{4}/,
  454. ge = /[+-]?\d{6}/,
  455. Me = /\d\d?/,
  456. Le = /\d\d\d\d?/,
  457. Se = /\d\d\d\d\d\d?/,
  458. ke = /\d{1,3}/,
  459. be = /\d{1,4}/,
  460. we = /[+-]?\d{1,6}/,
  461. De = /\d+/,
  462. Te = /[+-]?\d+/,
  463. Ee = /Z|[+-]\d\d:?\d\d/gi,
  464. Ye = /Z|[+-]\d\d(?::?\d\d)?/gi,
  465. Pe = /[+-]?\d+(\.\d{1,3})?/,
  466. Ce =
  467. /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,
  468. Ae;
  469. function Re(e, n, i) {
  470. Ae[e] = E(n) ? n : function(e, t) {
  471. return e && i ? i : n
  472. }
  473. }
  474. function xe(e, t) {
  475. if (!u(Ae, e)) return new RegExp(Oe(e));
  476. return Ae[e](t._strict, t._locale)
  477. }
  478. function Oe(e) {
  479. return Ie(e.replace("\\", "").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
  480. function(e, t, n, i, r) {
  481. return t || n || i || r
  482. }))
  483. }
  484. function Ie(e) {
  485. return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&")
  486. }
  487. var Ae = {},
  488. We = {};
  489. function He(e, n) {
  490. var t, i = n;
  491. if (typeof e === "string") e = [e];
  492. if (h(n)) i = function(e, t) {
  493. t[n] = de(e)
  494. };
  495. for (t = 0; t < e.length; t++) We[e[t]] = i
  496. }
  497. function je(e, r) {
  498. He(e, function(e, t, n, i) {
  499. n._w = n._w || {};
  500. r(e, n._w, n, i)
  501. })
  502. }
  503. function Fe(e, t, n) {
  504. if (t != null && u(We, e)) We[e](t, n._a, n, e)
  505. }
  506. var Be = 0,
  507. Ne = 1,
  508. ze = 2,
  509. Ue = 3,
  510. Ve = 4,
  511. Ge = 5,
  512. Je = 6,
  513. qe = 7,
  514. Ke = 8,
  515. Xe;
  516. function Ze(e, t) {
  517. return (e % t + t) % t
  518. }
  519. if (Array.prototype.indexOf) Xe = Array.prototype.indexOf;
  520. else Xe = function(e) {
  521. var t;
  522. for (t = 0; t < this.length; ++t)
  523. if (this[t] === e) return t;
  524. return -1
  525. };
  526. function $e(e, t) {
  527. if (isNaN(e) || isNaN(t)) return NaN;
  528. var n = Ze(t, 12);
  529. e += (t - n) / 12;
  530. return n === 1 ? oe(e) ? 29 : 28 : 31 - n % 7 % 2
  531. }
  532. j("M", ["MM", 2], "Mo", function() {
  533. return this.month() + 1
  534. }), j("MMM", 0, 0, function(e) {
  535. return this.localeData().monthsShort(this, e)
  536. }), j("MMMM", 0, 0, function(e) {
  537. return this.localeData().months(this, e)
  538. }), te("month", "M"), ae("month", 8), Re("M", Me), Re("MM", Me, pe), Re("MMM",
  539. function(e, t) {
  540. return t.monthsShortRegex(e)
  541. }), Re("MMMM", function(e, t) {
  542. return t.monthsRegex(e)
  543. }), He(["M", "MM"], function(e, t) {
  544. t[Ne] = de(e) - 1
  545. }), He(["MMM", "MMMM"], function(e, t, n, i) {
  546. var r = n._locale.monthsParse(e, i, n._strict);
  547. if (r != null) t[Ne] = r;
  548. else m(n).invalidMonth = e
  549. });
  550. var Qe =
  551. "January_February_March_April_May_June_July_August_September_October_November_December"
  552. .split("_"),
  553. et = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),
  554. tt = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
  555. nt = Ce,
  556. it = Ce;
  557. function rt(e, t) {
  558. if (!e) return s(this._months) ? this._months : this._months["standalone"];
  559. return s(this._months) ? this._months[e.month()] : this._months[(this._months
  560. .isFormat || tt).test(t) ? "format" : "standalone"][e.month()]
  561. }
  562. function at(e, t) {
  563. if (!e) return s(this._monthsShort) ? this._monthsShort : this._monthsShort[
  564. "standalone"];
  565. return s(this._monthsShort) ? this._monthsShort[e.month()] : this._monthsShort[tt
  566. .test(t) ? "format" : "standalone"][e.month()]
  567. }
  568. function st(e, t, n) {
  569. var i, r, a, s = e.toLocaleLowerCase();
  570. if (!this._monthsParse) {
  571. this._monthsParse = [];
  572. this._longMonthsParse = [];
  573. this._shortMonthsParse = [];
  574. for (i = 0; i < 12; ++i) {
  575. a = f([2e3, i]);
  576. this._shortMonthsParse[i] = this.monthsShort(a, "").toLocaleLowerCase();
  577. this._longMonthsParse[i] = this.months(a, "").toLocaleLowerCase()
  578. }
  579. }
  580. if (n)
  581. if (t === "MMM") {
  582. r = Xe.call(this._shortMonthsParse, s);
  583. return r !== -1 ? r : null
  584. } else {
  585. r = Xe.call(this._longMonthsParse, s);
  586. return r !== -1 ? r : null
  587. }
  588. else if (t === "MMM") {
  589. r = Xe.call(this._shortMonthsParse, s);
  590. if (r !== -1) return r;
  591. r = Xe.call(this._longMonthsParse, s);
  592. return r !== -1 ? r : null
  593. } else {
  594. r = Xe.call(this._longMonthsParse, s);
  595. if (r !== -1) return r;
  596. r = Xe.call(this._shortMonthsParse, s);
  597. return r !== -1 ? r : null
  598. }
  599. }
  600. function ot(e, t, n) {
  601. var i, r, a;
  602. if (this._monthsParseExact) return st.call(this, e, t, n);
  603. if (!this._monthsParse) {
  604. this._monthsParse = [];
  605. this._longMonthsParse = [];
  606. this._shortMonthsParse = []
  607. }
  608. for (i = 0; i < 12; i++) {
  609. r = f([2e3, i]);
  610. if (n && !this._longMonthsParse[i]) {
  611. this._longMonthsParse[i] = new RegExp("^" + this.months(r, "").replace(".",
  612. "") + "$", "i");
  613. this._shortMonthsParse[i] = new RegExp("^" + this.monthsShort(r, "")
  614. .replace(".", "") + "$", "i")
  615. }
  616. if (!n && !this._monthsParse[i]) {
  617. a = "^" + this.months(r, "") + "|^" + this.monthsShort(r, "");
  618. this._monthsParse[i] = new RegExp(a.replace(".", ""), "i")
  619. }
  620. if (n && t === "MMMM" && this._longMonthsParse[i].test(e)) return i;
  621. else if (n && t === "MMM" && this._shortMonthsParse[i].test(e)) return i;
  622. else if (!n && this._monthsParse[i].test(e)) return i
  623. }
  624. }
  625. function ut(e, t) {
  626. var n;
  627. if (!e.isValid()) return e;
  628. if (typeof t === "string")
  629. if (/^\d+$/.test(t)) t = de(t);
  630. else {
  631. t = e.localeData().monthsParse(t);
  632. if (!h(t)) return e
  633. } n = Math.min(e.date(), $e(e.year(), t));
  634. e._d["set" + (e._isUTC ? "UTC" : "") + "Month"](t, n);
  635. return e
  636. }
  637. function dt(e) {
  638. if (e != null) {
  639. ut(this, e);
  640. l.updateOffset(this, true);
  641. return this
  642. } else return he(this, "Month")
  643. }
  644. function lt() {
  645. return $e(this.year(), this.month())
  646. }
  647. function ht(e) {
  648. if (this._monthsParseExact) {
  649. if (!u(this, "_monthsRegex")) _t.call(this);
  650. if (e) return this._monthsShortStrictRegex;
  651. else return this._monthsShortRegex
  652. } else {
  653. if (!u(this, "_monthsShortRegex")) this._monthsShortRegex = nt;
  654. return this._monthsShortStrictRegex && e ? this._monthsShortStrictRegex : this
  655. ._monthsShortRegex
  656. }
  657. }
  658. function ct(e) {
  659. if (this._monthsParseExact) {
  660. if (!u(this, "_monthsRegex")) _t.call(this);
  661. if (e) return this._monthsStrictRegex;
  662. else return this._monthsRegex
  663. } else {
  664. if (!u(this, "_monthsRegex")) this._monthsRegex = it;
  665. return this._monthsStrictRegex && e ? this._monthsStrictRegex : this
  666. ._monthsRegex
  667. }
  668. }
  669. function _t() {
  670. function e(e, t) {
  671. return t.length - e.length
  672. }
  673. var t = [],
  674. n = [],
  675. i = [],
  676. r, a;
  677. for (r = 0; r < 12; r++) {
  678. a = f([2e3, r]);
  679. t.push(this.monthsShort(a, ""));
  680. n.push(this.months(a, ""));
  681. i.push(this.months(a, ""));
  682. i.push(this.monthsShort(a, ""))
  683. }
  684. t.sort(e);
  685. n.sort(e);
  686. i.sort(e);
  687. for (r = 0; r < 12; r++) {
  688. t[r] = Ie(t[r]);
  689. n[r] = Ie(n[r])
  690. }
  691. for (r = 0; r < 24; r++) i[r] = Ie(i[r]);
  692. this._monthsRegex = new RegExp("^(" + i.join("|") + ")", "i");
  693. this._monthsShortRegex = this._monthsRegex;
  694. this._monthsStrictRegex = new RegExp("^(" + n.join("|") + ")", "i");
  695. this._monthsShortStrictRegex = new RegExp("^(" + t.join("|") + ")", "i")
  696. }
  697. function ft(e) {
  698. return oe(e) ? 366 : 365
  699. }
  700. j("Y", 0, 0, function() {
  701. var e = this.year();
  702. return e <= 9999 ? x(e, 4) : "+" + e
  703. }), j(0, ["YY", 2], 0, function() {
  704. return this.year() % 100
  705. }), j(0, ["YYYY", 4], 0, "year"), j(0, ["YYYYY", 5], 0, "year"), j(0, ["YYYYYY", 6,
  706. true
  707. ], 0, "year"), te("year", "y"), ae("year", 1), Re("Y", Te), Re("YY", Me, pe), Re(
  708. "YYYY", be, ve), Re("YYYYY", we, ge), Re("YYYYYY", we, ge), He(["YYYYY",
  709. "YYYYYY"
  710. ], Be), He("YYYY", function(e, t) {
  711. t[Be] = e.length === 2 ? l.parseTwoDigitYear(e) : de(e)
  712. }), He("YY", function(e, t) {
  713. t[Be] = l.parseTwoDigitYear(e)
  714. }), He("Y", function(e, t) {
  715. t[Be] = parseInt(e, 10)
  716. }), l.parseTwoDigitYear = function(e) {
  717. return de(e) + (de(e) > 68 ? 1900 : 2e3)
  718. };
  719. var mt = le("FullYear", true);
  720. function pt() {
  721. return oe(this.year())
  722. }
  723. function yt(e, t, n, i, r, a, s) {
  724. var o;
  725. if (e < 100 && e >= 0) {
  726. o = new Date(e + 400, t, n, i, r, a, s);
  727. if (isFinite(o.getFullYear())) o.setFullYear(e)
  728. } else o = new Date(e, t, n, i, r, a, s);
  729. return o
  730. }
  731. function vt(e) {
  732. var t, n;
  733. if (e < 100 && e >= 0) {
  734. n = Array.prototype.slice.call(arguments);
  735. n[0] = e + 400;
  736. t = new Date(Date.UTC.apply(null, n));
  737. if (isFinite(t.getUTCFullYear())) t.setUTCFullYear(e)
  738. } else t = new Date(Date.UTC.apply(null, arguments));
  739. return t
  740. }
  741. function gt(e, t, n) {
  742. var i = 7 + t - n,
  743. r = (7 + vt(e, 0, i).getUTCDay() - t) % 7;
  744. return -r + i - 1
  745. }
  746. function Mt(e, t, n, i, r) {
  747. var a = (7 + n - i) % 7,
  748. s = gt(e, i, r),
  749. o = 1 + 7 * (t - 1) + a + s,
  750. u, d;
  751. if (o <= 0) {
  752. u = e - 1;
  753. d = ft(u) + o
  754. } else if (o > ft(e)) {
  755. u = e + 1;
  756. d = o - ft(e)
  757. } else {
  758. u = e;
  759. d = o
  760. }
  761. return {
  762. year: u,
  763. dayOfYear: d
  764. }
  765. }
  766. function Lt(e, t, n) {
  767. var i = gt(e.year(), t, n),
  768. r = Math.floor((e.dayOfYear() - i - 1) / 7) + 1,
  769. a, s;
  770. if (r < 1) {
  771. s = e.year() - 1;
  772. a = r + St(s, t, n)
  773. } else if (r > St(e.year(), t, n)) {
  774. a = r - St(e.year(), t, n);
  775. s = e.year() + 1
  776. } else {
  777. s = e.year();
  778. a = r
  779. }
  780. return {
  781. week: a,
  782. year: s
  783. }
  784. }
  785. function St(e, t, n) {
  786. var i = gt(e, t, n),
  787. r = gt(e + 1, t, n);
  788. return (ft(e) - i + r) / 7
  789. }
  790. function kt(e) {
  791. return Lt(e, this._week.dow, this._week.doy).week
  792. }
  793. j("w", ["ww", 2], "wo", "week"), j("W", ["WW", 2], "Wo", "isoWeek"), te("week", "w"),
  794. te("isoWeek", "W"), ae("week", 5), ae("isoWeek", 5), Re("w", Me), Re("ww", Me, pe),
  795. Re("W", Me), Re("WW", Me, pe), je(["w", "ww", "W", "WW"], function(e, t, n, i) {
  796. t[i.substr(0, 1)] = de(e)
  797. });
  798. var bt = {
  799. dow: 0,
  800. doy: 6
  801. };
  802. function wt() {
  803. return this._week.dow
  804. }
  805. function Dt() {
  806. return this._week.doy
  807. }
  808. function Tt(e) {
  809. var t = this.localeData().week(this);
  810. return e == null ? t : this.add((e - t) * 7, "d")
  811. }
  812. function Et(e) {
  813. var t = Lt(this, 1, 4).week;
  814. return e == null ? t : this.add((e - t) * 7, "d")
  815. }
  816. function Yt(e, t) {
  817. if (typeof e !== "string") return e;
  818. if (!isNaN(e)) return parseInt(e, 10);
  819. e = t.weekdaysParse(e);
  820. if (typeof e === "number") return e;
  821. return null
  822. }
  823. function Pt(e, t) {
  824. if (typeof e === "string") return t.weekdaysParse(e) % 7 || 7;
  825. return isNaN(e) ? null : e
  826. }
  827. function Ct(e, t) {
  828. return e.slice(t, 7).concat(e.slice(0, t))
  829. }
  830. j("d", 0, "do", "day"), j("dd", 0, 0, function(e) {
  831. return this.localeData().weekdaysMin(this, e)
  832. }), j("ddd", 0, 0, function(e) {
  833. return this.localeData().weekdaysShort(this, e)
  834. }), j("dddd", 0, 0, function(e) {
  835. return this.localeData().weekdays(this, e)
  836. }), j("e", 0, 0, "weekday"), j("E", 0, 0, "isoWeekday"), te("day", "d"), te(
  837. "weekday", "e"), te("isoWeekday", "E"), ae("day", 11), ae("weekday", 11), ae(
  838. "isoWeekday", 11), Re("d", Me), Re("e", Me), Re("E", Me), Re("dd", function(e,
  839. t) {
  840. return t.weekdaysMinRegex(e)
  841. }), Re("ddd", function(e, t) {
  842. return t.weekdaysShortRegex(e)
  843. }), Re("dddd", function(e, t) {
  844. return t.weekdaysRegex(e)
  845. }), je(["dd", "ddd", "dddd"], function(e, t, n, i) {
  846. var r = n._locale.weekdaysParse(e, i, n._strict);
  847. if (r != null) t.d = r;
  848. else m(n).invalidWeekday = e
  849. }), je(["d", "e", "E"], function(e, t, n, i) {
  850. t[i] = de(e)
  851. });
  852. var At = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
  853. Rt = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),
  854. xt = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"),
  855. Ot = Ce,
  856. It = Ce,
  857. Wt = Ce;
  858. function Ht(e, t) {
  859. var n = s(this._weekdays) ? this._weekdays : this._weekdays[e && e !== true && this
  860. ._weekdays.isFormat.test(t) ? "format" : "standalone"];
  861. return e === true ? Ct(n, this._week.dow) : e ? n[e.day()] : n
  862. }
  863. function jt(e) {
  864. return e === true ? Ct(this._weekdaysShort, this._week.dow) : e ? this
  865. ._weekdaysShort[e.day()] : this._weekdaysShort
  866. }
  867. function Ft(e) {
  868. return e === true ? Ct(this._weekdaysMin, this._week.dow) : e ? this._weekdaysMin[e
  869. .day()] : this._weekdaysMin
  870. }
  871. function Bt(e, t, n) {
  872. var i, r, a, s = e.toLocaleLowerCase();
  873. if (!this._weekdaysParse) {
  874. this._weekdaysParse = [];
  875. this._shortWeekdaysParse = [];
  876. this._minWeekdaysParse = [];
  877. for (i = 0; i < 7; ++i) {
  878. a = f([2e3, 1]).day(i);
  879. this._minWeekdaysParse[i] = this.weekdaysMin(a, "").toLocaleLowerCase();
  880. this._shortWeekdaysParse[i] = this.weekdaysShort(a, "").toLocaleLowerCase();
  881. this._weekdaysParse[i] = this.weekdays(a, "").toLocaleLowerCase()
  882. }
  883. }
  884. if (n)
  885. if (t === "dddd") {
  886. r = Xe.call(this._weekdaysParse, s);
  887. return r !== -1 ? r : null
  888. } else if (t === "ddd") {
  889. r = Xe.call(this._shortWeekdaysParse, s);
  890. return r !== -1 ? r : null
  891. } else {
  892. r = Xe.call(this._minWeekdaysParse, s);
  893. return r !== -1 ? r : null
  894. } else if (t === "dddd") {
  895. r = Xe.call(this._weekdaysParse, s);
  896. if (r !== -1) return r;
  897. r = Xe.call(this._shortWeekdaysParse, s);
  898. if (r !== -1) return r;
  899. r = Xe.call(this._minWeekdaysParse, s);
  900. return r !== -1 ? r : null
  901. } else if (t === "ddd") {
  902. r = Xe.call(this._shortWeekdaysParse, s);
  903. if (r !== -1) return r;
  904. r = Xe.call(this._weekdaysParse, s);
  905. if (r !== -1) return r;
  906. r = Xe.call(this._minWeekdaysParse, s);
  907. return r !== -1 ? r : null
  908. } else {
  909. r = Xe.call(this._minWeekdaysParse, s);
  910. if (r !== -1) return r;
  911. r = Xe.call(this._weekdaysParse, s);
  912. if (r !== -1) return r;
  913. r = Xe.call(this._shortWeekdaysParse, s);
  914. return r !== -1 ? r : null
  915. }
  916. }
  917. function Nt(e, t, n) {
  918. var i, r, a;
  919. if (this._weekdaysParseExact) return Bt.call(this, e, t, n);
  920. if (!this._weekdaysParse) {
  921. this._weekdaysParse = [];
  922. this._minWeekdaysParse = [];
  923. this._shortWeekdaysParse = [];
  924. this._fullWeekdaysParse = []
  925. }
  926. for (i = 0; i < 7; i++) {
  927. r = f([2e3, 1]).day(i);
  928. if (n && !this._fullWeekdaysParse[i]) {
  929. this._fullWeekdaysParse[i] = new RegExp("^" + this.weekdays(r, "").replace(
  930. ".", "\\.?") + "$", "i");
  931. this._shortWeekdaysParse[i] = new RegExp("^" + this.weekdaysShort(r, "")
  932. .replace(".", "\\.?") + "$", "i");
  933. this._minWeekdaysParse[i] = new RegExp("^" + this.weekdaysMin(r, "")
  934. .replace(".", "\\.?") + "$", "i")
  935. }
  936. if (!this._weekdaysParse[i]) {
  937. a = "^" + this.weekdays(r, "") + "|^" + this.weekdaysShort(r, "") + "|^" +
  938. this.weekdaysMin(r, "");
  939. this._weekdaysParse[i] = new RegExp(a.replace(".", ""), "i")
  940. }
  941. if (n && t === "dddd" && this._fullWeekdaysParse[i].test(e)) return i;
  942. else if (n && t === "ddd" && this._shortWeekdaysParse[i].test(e)) return i;
  943. else if (n && t === "dd" && this._minWeekdaysParse[i].test(e)) return i;
  944. else if (!n && this._weekdaysParse[i].test(e)) return i
  945. }
  946. }
  947. function zt(e) {
  948. if (!this.isValid()) return e != null ? this : NaN;
  949. var t = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
  950. if (e != null) {
  951. e = Yt(e, this.localeData());
  952. return this.add(e - t, "d")
  953. } else return t
  954. }
  955. function Ut(e) {
  956. if (!this.isValid()) return e != null ? this : NaN;
  957. var t = (this.day() + 7 - this.localeData()._week.dow) % 7;
  958. return e == null ? t : this.add(e - t, "d")
  959. }
  960. function Vt(e) {
  961. if (!this.isValid()) return e != null ? this : NaN;
  962. if (e != null) {
  963. var t = Pt(e, this.localeData());
  964. return this.day(this.day() % 7 ? t : t - 7)
  965. } else return this.day() || 7
  966. }
  967. function Gt(e) {
  968. if (this._weekdaysParseExact) {
  969. if (!u(this, "_weekdaysRegex")) Kt.call(this);
  970. if (e) return this._weekdaysStrictRegex;
  971. else return this._weekdaysRegex
  972. } else {
  973. if (!u(this, "_weekdaysRegex")) this._weekdaysRegex = Ot;
  974. return this._weekdaysStrictRegex && e ? this._weekdaysStrictRegex : this
  975. ._weekdaysRegex
  976. }
  977. }
  978. function Jt(e) {
  979. if (this._weekdaysParseExact) {
  980. if (!u(this, "_weekdaysRegex")) Kt.call(this);
  981. if (e) return this._weekdaysShortStrictRegex;
  982. else return this._weekdaysShortRegex
  983. } else {
  984. if (!u(this, "_weekdaysShortRegex")) this._weekdaysShortRegex = It;
  985. return this._weekdaysShortStrictRegex && e ? this._weekdaysShortStrictRegex :
  986. this._weekdaysShortRegex
  987. }
  988. }
  989. function qt(e) {
  990. if (this._weekdaysParseExact) {
  991. if (!u(this, "_weekdaysRegex")) Kt.call(this);
  992. if (e) return this._weekdaysMinStrictRegex;
  993. else return this._weekdaysMinRegex
  994. } else {
  995. if (!u(this, "_weekdaysMinRegex")) this._weekdaysMinRegex = Wt;
  996. return this._weekdaysMinStrictRegex && e ? this._weekdaysMinStrictRegex : this
  997. ._weekdaysMinRegex
  998. }
  999. }
  1000. function Kt() {
  1001. function e(e, t) {
  1002. return t.length - e.length
  1003. }
  1004. var t = [],
  1005. n = [],
  1006. i = [],
  1007. r = [],
  1008. a, s, o, u, d;
  1009. for (a = 0; a < 7; a++) {
  1010. s = f([2e3, 1]).day(a);
  1011. o = Ie(this.weekdaysMin(s, ""));
  1012. u = Ie(this.weekdaysShort(s, ""));
  1013. d = Ie(this.weekdays(s, ""));
  1014. t.push(o);
  1015. n.push(u);
  1016. i.push(d);
  1017. r.push(o);
  1018. r.push(u);
  1019. r.push(d)
  1020. }
  1021. t.sort(e);
  1022. n.sort(e);
  1023. i.sort(e);
  1024. r.sort(e);
  1025. this._weekdaysRegex = new RegExp("^(" + r.join("|") + ")", "i");
  1026. this._weekdaysShortRegex = this._weekdaysRegex;
  1027. this._weekdaysMinRegex = this._weekdaysRegex;
  1028. this._weekdaysStrictRegex = new RegExp("^(" + i.join("|") + ")", "i");
  1029. this._weekdaysShortStrictRegex = new RegExp("^(" + n.join("|") + ")", "i");
  1030. this._weekdaysMinStrictRegex = new RegExp("^(" + t.join("|") + ")", "i")
  1031. }
  1032. function Xt() {
  1033. return this.hours() % 12 || 12
  1034. }
  1035. function Zt() {
  1036. return this.hours() || 24
  1037. }
  1038. function $t(e, t) {
  1039. j(e, 0, 0, function() {
  1040. return this.localeData().meridiem(this.hours(), this.minutes(), t)
  1041. })
  1042. }
  1043. function Qt(e, t) {
  1044. return t._meridiemParse
  1045. }
  1046. function en(e) {
  1047. return (e + "").toLowerCase().charAt(0) === "p"
  1048. }
  1049. j("H", ["HH", 2], 0, "hour"), j("h", ["hh", 2], 0, Xt), j("k", ["kk", 2], 0, Zt), j(
  1050. "hmm", 0, 0,
  1051. function() {
  1052. return "" + Xt.apply(this) + x(this.minutes(), 2)
  1053. }), j("hmmss", 0, 0, function() {
  1054. return "" + Xt.apply(this) + x(this.minutes(), 2) + x(this.seconds(), 2)
  1055. }), j("Hmm", 0, 0, function() {
  1056. return "" + this.hours() + x(this.minutes(), 2)
  1057. }), j("Hmmss", 0, 0, function() {
  1058. return "" + this.hours() + x(this.minutes(), 2) + x(this.seconds(), 2)
  1059. }), $t("a", true), $t("A", false), te("hour", "h"), ae("hour", 13), Re("a", Qt), Re(
  1060. "A", Qt), Re("H", Me), Re("h", Me), Re("k", Me), Re("HH", Me, pe), Re("hh", Me,
  1061. pe), Re("kk", Me, pe), Re("hmm", Le), Re("hmmss", Se), Re("Hmm", Le), Re(
  1062. "Hmmss", Se), He(["H", "HH"], Ue), He(["k", "kk"], function(e, t, n) {
  1063. var i = de(e);
  1064. t[Ue] = i === 24 ? 0 : i
  1065. }), He(["a", "A"], function(e, t, n) {
  1066. n._isPm = n._locale.isPM(e);
  1067. n._meridiem = e
  1068. }), He(["h", "hh"], function(e, t, n) {
  1069. t[Ue] = de(e);
  1070. m(n).bigHour = true
  1071. }), He("hmm", function(e, t, n) {
  1072. var i = e.length - 2;
  1073. t[Ue] = de(e.substr(0, i));
  1074. t[Ve] = de(e.substr(i));
  1075. m(n).bigHour = true
  1076. }), He("hmmss", function(e, t, n) {
  1077. var i = e.length - 4,
  1078. r = e.length - 2;
  1079. t[Ue] = de(e.substr(0, i));
  1080. t[Ve] = de(e.substr(i, 2));
  1081. t[Ge] = de(e.substr(r));
  1082. m(n).bigHour = true
  1083. }), He("Hmm", function(e, t, n) {
  1084. var i = e.length - 2;
  1085. t[Ue] = de(e.substr(0, i));
  1086. t[Ve] = de(e.substr(i))
  1087. }), He("Hmmss", function(e, t, n) {
  1088. var i = e.length - 4,
  1089. r = e.length - 2;
  1090. t[Ue] = de(e.substr(0, i));
  1091. t[Ve] = de(e.substr(i, 2));
  1092. t[Ge] = de(e.substr(r))
  1093. });
  1094. var tn, nn = le("Hours", true);
  1095. function rn(e, t, n) {
  1096. if (e > 11) return n ? "pm" : "PM";
  1097. else return n ? "am" : "AM"
  1098. }
  1099. var an = {
  1100. calendar: A,
  1101. longDateFormat: U,
  1102. invalidDate: G,
  1103. ordinal: q,
  1104. dayOfMonthOrdinalParse: K,
  1105. relativeTime: Z,
  1106. months: Qe,
  1107. monthsShort: et,
  1108. week: bt,
  1109. weekdays: At,
  1110. weekdaysMin: xt,
  1111. weekdaysShort: Rt,
  1112. meridiemParse: /[ap]\.?m?\.?/i
  1113. },
  1114. sn = {},
  1115. on = {},
  1116. un;
  1117. function dn(e, t) {
  1118. var n, i = Math.min(e.length, t.length);
  1119. for (n = 0; n < i; n += 1)
  1120. if (e[n] !== t[n]) return n;
  1121. return i
  1122. }
  1123. function ln(e) {
  1124. return e ? e.toLowerCase().replace("_", "-") : e
  1125. }
  1126. function hn(e) {
  1127. var t = 0,
  1128. n, i, r, a;
  1129. while (t < e.length) {
  1130. a = ln(e[t]).split("-");
  1131. n = a.length;
  1132. i = ln(e[t + 1]);
  1133. i = i ? i.split("-") : null;
  1134. while (n > 0) {
  1135. r = cn(a.slice(0, n).join("-"));
  1136. if (r) return r;
  1137. if (i && i.length >= n && dn(a, i) >= n - 1) break;
  1138. n--
  1139. }
  1140. t++
  1141. }
  1142. return un
  1143. }
  1144. function cn(t) {
  1145. var e = null,
  1146. n;
  1147. if (sn[t] === undefined && typeof us !== "undefined" && us && us.exports) try {
  1148. e = un._abbr;
  1149. n = ds;
  1150. ls(284)("./" + t);
  1151. _n(e)
  1152. } catch (e) {
  1153. sn[t] = null
  1154. }
  1155. return sn[t]
  1156. }
  1157. function _n(e, t) {
  1158. var n;
  1159. if (e) {
  1160. if (a(t)) n = pn(e);
  1161. else n = fn(e, t);
  1162. if (n) un = n;
  1163. else if (typeof console !== "undefined" && console.warn) console.warn(
  1164. "Locale " + e + " not found. Did you forget to load it?")
  1165. }
  1166. return un._abbr
  1167. }
  1168. function fn(e, t) {
  1169. if (t !== null) {
  1170. var n, i = an;
  1171. t.abbr = e;
  1172. if (sn[e] != null) {
  1173. T("defineLocaleOverride",
  1174. "use moment.updateLocale(localeName, config) to change " +
  1175. "an existing locale. moment.defineLocale(localeName, " +
  1176. "config) should only be used for creating a new locale " +
  1177. "See http://momentjs.com/guides/#/warnings/define-locale/ for more info."
  1178. );
  1179. i = sn[e]._config
  1180. } else if (t.parentLocale != null)
  1181. if (sn[t.parentLocale] != null) i = sn[t.parentLocale]._config;
  1182. else {
  1183. n = cn(t.parentLocale);
  1184. if (n != null) i = n._config;
  1185. else {
  1186. if (!on[t.parentLocale]) on[t.parentLocale] = [];
  1187. on[t.parentLocale].push({
  1188. name: e,
  1189. config: t
  1190. });
  1191. return null
  1192. }
  1193. } sn[e] = new C(P(i, t));
  1194. if (on[e]) on[e].forEach(function(e) {
  1195. fn(e.name, e.config)
  1196. });
  1197. _n(e);
  1198. return sn[e]
  1199. } else {
  1200. delete sn[e];
  1201. return null
  1202. }
  1203. }
  1204. function mn(e, t) {
  1205. if (t != null) {
  1206. var n, i, r = an;
  1207. if (sn[e] != null && sn[e].parentLocale != null) sn[e].set(P(sn[e]._config, t));
  1208. else {
  1209. i = cn(e);
  1210. if (i != null) r = i._config;
  1211. t = P(r, t);
  1212. if (i == null) t.abbr = e;
  1213. n = new C(t);
  1214. n.parentLocale = sn[e];
  1215. sn[e] = n
  1216. }
  1217. _n(e)
  1218. } else if (sn[e] != null)
  1219. if (sn[e].parentLocale != null) {
  1220. sn[e] = sn[e].parentLocale;
  1221. if (e === _n()) _n(e)
  1222. } else if (sn[e] != null) delete sn[e];
  1223. return sn[e]
  1224. }
  1225. function pn(e) {
  1226. var t;
  1227. if (e && e._locale && e._locale._abbr) e = e._locale._abbr;
  1228. if (!e) return un;
  1229. if (!s(e)) {
  1230. t = cn(e);
  1231. if (t) return t;
  1232. e = [e]
  1233. }
  1234. return hn(e)
  1235. }
  1236. function yn() {
  1237. return D(sn)
  1238. }
  1239. function vn(e) {
  1240. var t, n = e._a;
  1241. if (n && m(e).overflow === -2) {
  1242. t = n[Ne] < 0 || n[Ne] > 11 ? Ne : n[ze] < 1 || n[ze] > $e(n[Be], n[Ne]) ? ze :
  1243. n[Ue] < 0 || n[Ue] > 24 || n[Ue] === 24 && (n[Ve] !== 0 || n[Ge] !== 0 || n[
  1244. Je] !== 0) ? Ue : n[Ve] < 0 || n[Ve] > 59 ? Ve : n[Ge] < 0 || n[Ge] >
  1245. 59 ? Ge : n[Je] < 0 || n[Je] > 999 ? Je : -1;
  1246. if (m(e)._overflowDayOfYear && (t < Be || t > ze)) t = ze;
  1247. if (m(e)._overflowWeeks && t === -1) t = qe;
  1248. if (m(e)._overflowWeekday && t === -1) t = Ke;
  1249. m(e).overflow = t
  1250. }
  1251. return e
  1252. }
  1253. var gn =
  1254. /^\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)?)?$/,
  1255. Mn =
  1256. /^\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)?)?$/,
  1257. Ln = /Z|[+-]\d\d(?::?\d\d)?/,
  1258. Sn = [
  1259. ["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
  1260. ["YYYY-MM-DD", /\d{4}-\d\d-\d\d/],
  1261. ["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/],
  1262. ["GGGG-[W]WW", /\d{4}-W\d\d/, false],
  1263. ["YYYY-DDD", /\d{4}-\d{3}/],
  1264. ["YYYY-MM", /\d{4}-\d\d/, false],
  1265. ["YYYYYYMMDD", /[+-]\d{10}/],
  1266. ["YYYYMMDD", /\d{8}/],
  1267. ["GGGG[W]WWE", /\d{4}W\d{3}/],
  1268. ["GGGG[W]WW", /\d{4}W\d{2}/, false],
  1269. ["YYYYDDD", /\d{7}/],
  1270. ["YYYYMM", /\d{6}/, false],
  1271. ["YYYY", /\d{4}/, false]
  1272. ],
  1273. kn = [
  1274. ["HH:mm:ss.SSSS", /\d\d:\d\d:\d\d\.\d+/],
  1275. ["HH:mm:ss,SSSS", /\d\d:\d\d:\d\d,\d+/],
  1276. ["HH:mm:ss", /\d\d:\d\d:\d\d/],
  1277. ["HH:mm", /\d\d:\d\d/],
  1278. ["HHmmss.SSSS", /\d\d\d\d\d\d\.\d+/],
  1279. ["HHmmss,SSSS", /\d\d\d\d\d\d,\d+/],
  1280. ["HHmmss", /\d\d\d\d\d\d/],
  1281. ["HHmm", /\d\d\d\d/],
  1282. ["HH", /\d\d/]
  1283. ],
  1284. bn = /^\/?Date\((-?\d+)/i,
  1285. wn =
  1286. /^(?:(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}))$/,
  1287. Dn = {
  1288. UT: 0,
  1289. GMT: 0,
  1290. EDT: -4 * 60,
  1291. EST: -5 * 60,
  1292. CDT: -5 * 60,
  1293. CST: -6 * 60,
  1294. MDT: -6 * 60,
  1295. MST: -7 * 60,
  1296. PDT: -7 * 60,
  1297. PST: -8 * 60
  1298. };
  1299. function Tn(e) {
  1300. var t, n, i = e._i,
  1301. r = gn.exec(i) || Mn.exec(i),
  1302. a, s, o, u;
  1303. if (r) {
  1304. m(e).iso = true;
  1305. for (t = 0, n = Sn.length; t < n; t++)
  1306. if (Sn[t][1].exec(r[1])) {
  1307. s = Sn[t][0];
  1308. a = Sn[t][2] !== false;
  1309. break
  1310. } if (s == null) {
  1311. e._isValid = false;
  1312. return
  1313. }
  1314. if (r[3]) {
  1315. for (t = 0, n = kn.length; t < n; t++)
  1316. if (kn[t][1].exec(r[3])) {
  1317. o = (r[2] || " ") + kn[t][0];
  1318. break
  1319. } if (o == null) {
  1320. e._isValid = false;
  1321. return
  1322. }
  1323. }
  1324. if (!a && o != null) {
  1325. e._isValid = false;
  1326. return
  1327. }
  1328. if (r[4])
  1329. if (Ln.exec(r[4])) u = "Z";
  1330. else {
  1331. e._isValid = false;
  1332. return
  1333. } e._f = s + (o || "") + (u || "");
  1334. jn(e)
  1335. } else e._isValid = false
  1336. }
  1337. function En(e, t, n, i, r, a) {
  1338. var s = [Yn(e), et.indexOf(t), parseInt(n, 10), parseInt(i, 10), parseInt(r, 10)];
  1339. if (a) s.push(parseInt(a, 10));
  1340. return s
  1341. }
  1342. function Yn(e) {
  1343. var t = parseInt(e, 10);
  1344. if (t <= 49) return 2e3 + t;
  1345. else if (t <= 999) return 1900 + t;
  1346. return t
  1347. }
  1348. function Pn(e) {
  1349. return e.replace(/\([^)]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(
  1350. /^\s\s*/, "").replace(/\s\s*$/, "")
  1351. }
  1352. function Cn(e, t, n) {
  1353. if (e) {
  1354. var i = Rt.indexOf(e),
  1355. r = new Date(t[0], t[1], t[2]).getDay();
  1356. if (i !== r) {
  1357. m(n).weekdayMismatch = true;
  1358. n._isValid = false;
  1359. return false
  1360. }
  1361. }
  1362. return true
  1363. }
  1364. function An(e, t, n) {
  1365. if (e) return Dn[e];
  1366. else if (t) return 0;
  1367. else {
  1368. var i = parseInt(n, 10),
  1369. r = i % 100,
  1370. a = (i - r) / 100;
  1371. return a * 60 + r
  1372. }
  1373. }
  1374. function Rn(e) {
  1375. var t = wn.exec(Pn(e._i)),
  1376. n;
  1377. if (t) {
  1378. n = En(t[4], t[3], t[2], t[5], t[6], t[7]);
  1379. if (!Cn(t[1], n, e)) return;
  1380. e._a = n;
  1381. e._tzm = An(t[8], t[9], t[10]);
  1382. e._d = vt.apply(null, e._a);
  1383. e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm);
  1384. m(e).rfc2822 = true
  1385. } else e._isValid = false
  1386. }
  1387. function xn(e) {
  1388. var t = bn.exec(e._i);
  1389. if (t !== null) {
  1390. e._d = new Date(+t[1]);
  1391. return
  1392. }
  1393. Tn(e);
  1394. if (e._isValid === false) delete e._isValid;
  1395. else return;
  1396. Rn(e);
  1397. if (e._isValid === false) delete e._isValid;
  1398. else return;
  1399. if (e._strict) e._isValid = false;
  1400. else l.createFromInputFallback(e)
  1401. }
  1402. function On(e, t, n) {
  1403. if (e != null) return e;
  1404. if (t != null) return t;
  1405. return n
  1406. }
  1407. function In(e) {
  1408. var t = new Date(l.now());
  1409. if (e._useUTC) return [t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate()];
  1410. return [t.getFullYear(), t.getMonth(), t.getDate()]
  1411. }
  1412. function Wn(e) {
  1413. var t, n, i = [],
  1414. r, a, s;
  1415. if (e._d) return;
  1416. r = In(e);
  1417. if (e._w && e._a[ze] == null && e._a[Ne] == null) Hn(e);
  1418. if (e._dayOfYear != null) {
  1419. s = On(e._a[Be], r[Be]);
  1420. if (e._dayOfYear > ft(s) || e._dayOfYear === 0) m(e)._overflowDayOfYear = true;
  1421. n = vt(s, 0, e._dayOfYear);
  1422. e._a[Ne] = n.getUTCMonth();
  1423. e._a[ze] = n.getUTCDate()
  1424. }
  1425. for (t = 0; t < 3 && e._a[t] == null; ++t) e._a[t] = i[t] = r[t];
  1426. for (; t < 7; t++) e._a[t] = i[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
  1427. if (e._a[Ue] === 24 && e._a[Ve] === 0 && e._a[Ge] === 0 && e._a[Je] === 0) {
  1428. e._nextDay = true;
  1429. e._a[Ue] = 0
  1430. }
  1431. e._d = (e._useUTC ? vt : yt).apply(null, i);
  1432. a = e._useUTC ? e._d.getUTCDay() : e._d.getDay();
  1433. if (e._tzm != null) e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm);
  1434. if (e._nextDay) e._a[Ue] = 24;
  1435. if (e._w && typeof e._w.d !== "undefined" && e._w.d !== a) m(e).weekdayMismatch =
  1436. true
  1437. }
  1438. function Hn(e) {
  1439. var t, n, i, r, a, s, o, u, d;
  1440. t = e._w;
  1441. if (t.GG != null || t.W != null || t.E != null) {
  1442. a = 1;
  1443. s = 4;
  1444. n = On(t.GG, e._a[Be], Lt(Jn(), 1, 4).year);
  1445. i = On(t.W, 1);
  1446. r = On(t.E, 1);
  1447. if (r < 1 || r > 7) u = true
  1448. } else {
  1449. a = e._locale._week.dow;
  1450. s = e._locale._week.doy;
  1451. d = Lt(Jn(), a, s);
  1452. n = On(t.gg, e._a[Be], d.year);
  1453. i = On(t.w, d.week);
  1454. if (t.d != null) {
  1455. r = t.d;
  1456. if (r < 0 || r > 6) u = true
  1457. } else if (t.e != null) {
  1458. r = t.e + a;
  1459. if (t.e < 0 || t.e > 6) u = true
  1460. } else r = a
  1461. }
  1462. if (i < 1 || i > St(n, a, s)) m(e)._overflowWeeks = true;
  1463. else if (u != null) m(e)._overflowWeekday = true;
  1464. else {
  1465. o = Mt(n, i, r, a, s);
  1466. e._a[Be] = o.year;
  1467. e._dayOfYear = o.dayOfYear
  1468. }
  1469. }
  1470. function jn(e) {
  1471. if (e._f === l.ISO_8601) {
  1472. Tn(e);
  1473. return
  1474. }
  1475. if (e._f === l.RFC_2822) {
  1476. Rn(e);
  1477. return
  1478. }
  1479. e._a = [];
  1480. m(e).empty = true;
  1481. var t = "" + e._i,
  1482. n, i, r, a, s, o = t.length,
  1483. u = 0,
  1484. d;
  1485. r = z(e._f, e._locale).match(O) || [];
  1486. for (n = 0; n < r.length; n++) {
  1487. a = r[n];
  1488. i = (t.match(xe(a, e)) || [])[0];
  1489. if (i) {
  1490. s = t.substr(0, t.indexOf(i));
  1491. if (s.length > 0) m(e).unusedInput.push(s);
  1492. t = t.slice(t.indexOf(i) + i.length);
  1493. u += i.length
  1494. }
  1495. if (H[a]) {
  1496. if (i) m(e).empty = false;
  1497. else m(e).unusedTokens.push(a);
  1498. Fe(a, i, e)
  1499. } else if (e._strict && !i) m(e).unusedTokens.push(a)
  1500. }
  1501. m(e).charsLeftOver = o - u;
  1502. if (t.length > 0) m(e).unusedInput.push(t);
  1503. if (e._a[Ue] <= 12 && m(e).bigHour === true && e._a[Ue] > 0) m(e).bigHour =
  1504. undefined;
  1505. m(e).parsedDateParts = e._a.slice(0);
  1506. m(e).meridiem = e._meridiem;
  1507. e._a[Ue] = Fn(e._locale, e._a[Ue], e._meridiem);
  1508. d = m(e).era;
  1509. if (d !== null) e._a[Be] = e._locale.erasConvertYear(d, e._a[Be]);
  1510. Wn(e);
  1511. vn(e)
  1512. }
  1513. function Fn(e, t, n) {
  1514. var i;
  1515. if (n == null) return t;
  1516. if (e.meridiemHour != null) return e.meridiemHour(t, n);
  1517. else if (e.isPM != null) {
  1518. i = e.isPM(n);
  1519. if (i && t < 12) t += 12;
  1520. if (!i && t === 12) t = 0;
  1521. return t
  1522. } else return t
  1523. }
  1524. function Bn(e) {
  1525. var t, n, i, r, a, s, o = false;
  1526. if (e._f.length === 0) {
  1527. m(e).invalidFormat = true;
  1528. e._d = new Date(NaN);
  1529. return
  1530. }
  1531. for (r = 0; r < e._f.length; r++) {
  1532. a = 0;
  1533. s = false;
  1534. t = M({}, e);
  1535. if (e._useUTC != null) t._useUTC = e._useUTC;
  1536. t._f = e._f[r];
  1537. jn(t);
  1538. if (p(t)) s = true;
  1539. a += m(t).charsLeftOver;
  1540. a += m(t).unusedTokens.length * 10;
  1541. m(t).score = a;
  1542. if (!o) {
  1543. if (i == null || a < i || s) {
  1544. i = a;
  1545. n = t;
  1546. if (s) o = true
  1547. }
  1548. } else if (a < i) {
  1549. i = a;
  1550. n = t
  1551. }
  1552. }
  1553. _(e, n || t)
  1554. }
  1555. function Nn(e) {
  1556. if (e._d) return;
  1557. var t = ie(e._i),
  1558. n = t.day === undefined ? t.date : t.day;
  1559. e._a = i([t.year, t.month, n, t.hour, t.minute, t.second, t.millisecond], function(
  1560. e) {
  1561. return e && parseInt(e, 10)
  1562. });
  1563. Wn(e)
  1564. }
  1565. function zn(e) {
  1566. var t = new L(vn(Un(e)));
  1567. if (t._nextDay) {
  1568. t.add(1, "d");
  1569. t._nextDay = undefined
  1570. }
  1571. return t
  1572. }
  1573. function Un(e) {
  1574. var t = e._i,
  1575. n = e._f;
  1576. e._locale = e._locale || pn(e._l);
  1577. if (t === null || n === undefined && t === "") return y({
  1578. nullInput: true
  1579. });
  1580. if (typeof t === "string") e._i = t = e._locale.preparse(t);
  1581. if (S(t)) return new L(vn(t));
  1582. else if (c(t)) e._d = t;
  1583. else if (s(n)) Bn(e);
  1584. else if (n) jn(e);
  1585. else Vn(e);
  1586. if (!p(e)) e._d = null;
  1587. return e
  1588. }
  1589. function Vn(e) {
  1590. var t = e._i;
  1591. if (a(t)) e._d = new Date(l.now());
  1592. else if (c(t)) e._d = new Date(t.valueOf());
  1593. else if (typeof t === "string") xn(e);
  1594. else if (s(t)) {
  1595. e._a = i(t.slice(0), function(e) {
  1596. return parseInt(e, 10)
  1597. });
  1598. Wn(e)
  1599. } else if (o(t)) Nn(e);
  1600. else if (h(t)) e._d = new Date(t);
  1601. else l.createFromInputFallback(e)
  1602. }
  1603. function Gn(e, t, n, i, r) {
  1604. var a = {};
  1605. if (t === true || t === false) {
  1606. i = t;
  1607. t = undefined
  1608. }
  1609. if (n === true || n === false) {
  1610. i = n;
  1611. n = undefined
  1612. }
  1613. if (o(e) && d(e) || s(e) && e.length === 0) e = undefined;
  1614. a._isAMomentObject = true;
  1615. a._useUTC = a._isUTC = r;
  1616. a._l = n;
  1617. a._i = e;
  1618. a._f = t;
  1619. a._strict = i;
  1620. return zn(a)
  1621. }
  1622. function Jn(e, t, n, i) {
  1623. return Gn(e, t, n, i, false)
  1624. }
  1625. l.createFromInputFallback = b(
  1626. "value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), " +
  1627. "which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are " +
  1628. "discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",
  1629. function(e) {
  1630. e._d = new Date(e._i + (e._useUTC ? " UTC" : ""))
  1631. }), l.ISO_8601 = function() {}, l.RFC_2822 = function() {};
  1632. var qn = b(
  1633. "moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",
  1634. function() {
  1635. var e = Jn.apply(null, arguments);
  1636. if (this.isValid() && e.isValid()) return e < this ? this : e;
  1637. else return y()
  1638. }),
  1639. Kn = b(
  1640. "moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",
  1641. function() {
  1642. var e = Jn.apply(null, arguments);
  1643. if (this.isValid() && e.isValid()) return e > this ? this : e;
  1644. else return y()
  1645. });
  1646. function Xn(e, t) {
  1647. var n, i;
  1648. if (t.length === 1 && s(t[0])) t = t[0];
  1649. if (!t.length) return Jn();
  1650. n = t[0];
  1651. for (i = 1; i < t.length; ++i)
  1652. if (!t[i].isValid() || t[i][e](n)) n = t[i];
  1653. return n
  1654. }
  1655. function Zn() {
  1656. var e = [].slice.call(arguments, 0);
  1657. return Xn("isBefore", e)
  1658. }
  1659. function $n() {
  1660. var e = [].slice.call(arguments, 0);
  1661. return Xn("isAfter", e)
  1662. }
  1663. var Qn = function() {
  1664. return Date.now ? Date.now() : +new Date
  1665. },
  1666. ei = ["year", "quarter", "month", "week", "day", "hour", "minute", "second",
  1667. "millisecond"
  1668. ];
  1669. function ti(e) {
  1670. var t, n = false,
  1671. i;
  1672. for (t in e)
  1673. if (u(e, t) && !(Xe.call(ei, t) !== -1 && (e[t] == null || !isNaN(e[t]))))
  1674. return false;
  1675. for (i = 0; i < ei.length; ++i)
  1676. if (e[ei[i]]) {
  1677. if (n) return false;
  1678. if (parseFloat(e[ei[i]]) !== de(e[ei[i]])) n = true
  1679. } return true
  1680. }
  1681. function ni() {
  1682. return this._isValid
  1683. }
  1684. function ii() {
  1685. return Di(NaN)
  1686. }
  1687. function ri(e) {
  1688. var t = ie(e),
  1689. n = t.year || 0,
  1690. i = t.quarter || 0,
  1691. r = t.month || 0,
  1692. a = t.week || t.isoWeek || 0,
  1693. s = t.day || 0,
  1694. o = t.hour || 0,
  1695. u = t.minute || 0,
  1696. d = t.second || 0,
  1697. l = t.millisecond || 0;
  1698. this._isValid = ti(t);
  1699. this._milliseconds = +l + d * 1e3 + u * 6e4 + o * 1e3 * 60 * 60;
  1700. this._days = +s + a * 7;
  1701. this._months = +r + i * 3 + n * 12;
  1702. this._data = {};
  1703. this._locale = pn();
  1704. this._bubble()
  1705. }
  1706. function ai(e) {
  1707. return e instanceof ri
  1708. }
  1709. function si(e) {
  1710. if (e < 0) return Math.round(-1 * e) * -1;
  1711. else return Math.round(e)
  1712. }
  1713. function oi(e, t, n) {
  1714. var i = Math.min(e.length, t.length),
  1715. r = Math.abs(e.length - t.length),
  1716. a = 0,
  1717. s;
  1718. for (s = 0; s < i; s++)
  1719. if (n && e[s] !== t[s] || !n && de(e[s]) !== de(t[s])) a++;
  1720. return a + r
  1721. }
  1722. function ui(e, n) {
  1723. j(e, 0, 0, function() {
  1724. var e = this.utcOffset(),
  1725. t = "+";
  1726. if (e < 0) {
  1727. e = -e;
  1728. t = "-"
  1729. }
  1730. return t + x(~~(e / 60), 2) + n + x(~~e % 60, 2)
  1731. })
  1732. }
  1733. ui("Z", ":"), ui("ZZ", ""), Re("Z", Ye), Re("ZZ", Ye), He(["Z", "ZZ"], function(e, t,
  1734. n) {
  1735. n._useUTC = true;
  1736. n._tzm = li(Ye, e)
  1737. });
  1738. var di = /([\+\-]|\d\d)/gi;
  1739. function li(e, t) {
  1740. var n = (t || "").match(e),
  1741. i, r, a;
  1742. if (n === null) return null;
  1743. i = n[n.length - 1] || [];
  1744. r = (i + "").match(di) || ["-", 0, 0];
  1745. a = +(r[1] * 60) + de(r[2]);
  1746. return a === 0 ? 0 : r[0] === "+" ? a : -a
  1747. }
  1748. function hi(e, t) {
  1749. var n, i;
  1750. if (t._isUTC) {
  1751. n = t.clone();
  1752. i = (S(e) || c(e) ? e.valueOf() : Jn(e).valueOf()) - n.valueOf();
  1753. n._d.setTime(n._d.valueOf() + i);
  1754. l.updateOffset(n, false);
  1755. return n
  1756. } else return Jn(e).local()
  1757. }
  1758. function ci(e) {
  1759. return -Math.round(e._d.getTimezoneOffset())
  1760. }
  1761. function _i(e, t, n) {
  1762. var i = this._offset || 0,
  1763. r;
  1764. if (!this.isValid()) return e != null ? this : NaN;
  1765. if (e != null) {
  1766. if (typeof e === "string") {
  1767. e = li(Ye, e);
  1768. if (e === null) return this
  1769. } else if (Math.abs(e) < 16 && !n) e = e * 60;
  1770. if (!this._isUTC && t) r = ci(this);
  1771. this._offset = e;
  1772. this._isUTC = true;
  1773. if (r != null) this.add(r, "m");
  1774. if (i !== e)
  1775. if (!t || this._changeInProgress) Ci(this, Di(e - i, "m"), 1, false);
  1776. else if (!this._changeInProgress) {
  1777. this._changeInProgress = true;
  1778. l.updateOffset(this, true);
  1779. this._changeInProgress = null
  1780. }
  1781. return this
  1782. } else return this._isUTC ? i : ci(this)
  1783. }
  1784. function fi(e, t) {
  1785. if (e != null) {
  1786. if (typeof e !== "string") e = -e;
  1787. this.utcOffset(e, t);
  1788. return this
  1789. } else return -this.utcOffset()
  1790. }
  1791. function mi(e) {
  1792. return this.utcOffset(0, e)
  1793. }
  1794. function pi(e) {
  1795. if (this._isUTC) {
  1796. this.utcOffset(0, e);
  1797. this._isUTC = false;
  1798. if (e) this.subtract(ci(this), "m")
  1799. }
  1800. return this
  1801. }
  1802. function yi() {
  1803. if (this._tzm != null) this.utcOffset(this._tzm, false, true);
  1804. else if (typeof this._i === "string") {
  1805. var e = li(Ee, this._i);
  1806. if (e != null) this.utcOffset(e);
  1807. else this.utcOffset(0, true)
  1808. }
  1809. return this
  1810. }
  1811. function vi(e) {
  1812. if (!this.isValid()) return false;
  1813. e = e ? Jn(e).utcOffset() : 0;
  1814. return (this.utcOffset() - e) % 60 === 0
  1815. }
  1816. function gi() {
  1817. return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() >
  1818. this.clone().month(5).utcOffset()
  1819. }
  1820. function Mi() {
  1821. if (!a(this._isDSTShifted)) return this._isDSTShifted;
  1822. var e = {},
  1823. t;
  1824. M(e, this);
  1825. e = Un(e);
  1826. if (e._a) {
  1827. t = e._isUTC ? f(e._a) : Jn(e._a);
  1828. this._isDSTShifted = this.isValid() && oi(e._a, t.toArray()) > 0
  1829. } else this._isDSTShifted = false;
  1830. return this._isDSTShifted
  1831. }
  1832. function Li() {
  1833. return this.isValid() ? !this._isUTC : false
  1834. }
  1835. function Si() {
  1836. return this.isValid() ? this._isUTC : false
  1837. }
  1838. function ki() {
  1839. return this.isValid() ? this._isUTC && this._offset === 0 : false
  1840. }
  1841. l.updateOffset = function() {};
  1842. var bi = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,
  1843. wi =
  1844. /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
  1845. function Di(e, t) {
  1846. var n = e,
  1847. i = null,
  1848. r, a, s;
  1849. if (ai(e)) n = {
  1850. ms: e._milliseconds,
  1851. d: e._days,
  1852. M: e._months
  1853. };
  1854. else if (h(e) || !isNaN(+e)) {
  1855. n = {};
  1856. if (t) n[t] = +e;
  1857. else n.milliseconds = +e
  1858. } else if (i = bi.exec(e)) {
  1859. r = i[1] === "-" ? -1 : 1;
  1860. n = {
  1861. y: 0,
  1862. d: de(i[ze]) * r,
  1863. h: de(i[Ue]) * r,
  1864. m: de(i[Ve]) * r,
  1865. s: de(i[Ge]) * r,
  1866. ms: de(si(i[Je] * 1e3)) * r
  1867. }
  1868. } else if (i = wi.exec(e)) {
  1869. r = i[1] === "-" ? -1 : 1;
  1870. n = {
  1871. y: Ti(i[2], r),
  1872. M: Ti(i[3], r),
  1873. w: Ti(i[4], r),
  1874. d: Ti(i[5], r),
  1875. h: Ti(i[6], r),
  1876. m: Ti(i[7], r),
  1877. s: Ti(i[8], r)
  1878. }
  1879. } else if (n == null) n = {};
  1880. else if (typeof n === "object" && ("from" in n || "to" in n)) {
  1881. s = Yi(Jn(n.from), Jn(n.to));
  1882. n = {};
  1883. n.ms = s.milliseconds;
  1884. n.M = s.months
  1885. }
  1886. a = new ri(n);
  1887. if (ai(e) && u(e, "_locale")) a._locale = e._locale;
  1888. if (ai(e) && u(e, "_isValid")) a._isValid = e._isValid;
  1889. return a
  1890. }
  1891. function Ti(e, t) {
  1892. var n = e && parseFloat(e.replace(",", "."));
  1893. return (isNaN(n) ? 0 : n) * t
  1894. }
  1895. function Ei(e, t) {
  1896. var n = {};
  1897. n.months = t.month() - e.month() + (t.year() - e.year()) * 12;
  1898. if (e.clone().add(n.months, "M").isAfter(t)) --n.months;
  1899. n.milliseconds = +t - +e.clone().add(n.months, "M");
  1900. return n
  1901. }
  1902. function Yi(e, t) {
  1903. var n;
  1904. if (!(e.isValid() && t.isValid())) return {
  1905. milliseconds: 0,
  1906. months: 0
  1907. };
  1908. t = hi(t, e);
  1909. if (e.isBefore(t)) n = Ei(e, t);
  1910. else {
  1911. n = Ei(t, e);
  1912. n.milliseconds = -n.milliseconds;
  1913. n.months = -n.months
  1914. }
  1915. return n
  1916. }
  1917. function Pi(r, a) {
  1918. return function(e, t) {
  1919. var n, i;
  1920. if (t !== null && !isNaN(+t)) {
  1921. T(a, "moment()." + a +
  1922. "(period, number) is deprecated. Please use moment()." + a +
  1923. "(number, period). " +
  1924. "See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."
  1925. );
  1926. i = e;
  1927. e = t;
  1928. t = i
  1929. }
  1930. n = Di(e, t);
  1931. Ci(this, n, r);
  1932. return this
  1933. }
  1934. }
  1935. function Ci(e, t, n, i) {
  1936. var r = t._milliseconds,
  1937. a = si(t._days),
  1938. s = si(t._months);
  1939. if (!e.isValid()) return;
  1940. i = i == null ? true : i;
  1941. if (s) ut(e, he(e, "Month") + s * n);
  1942. if (a) ce(e, "Date", he(e, "Date") + a * n);
  1943. if (r) e._d.setTime(e._d.valueOf() + r * n);
  1944. if (i) l.updateOffset(e, a || s)
  1945. }
  1946. Di.fn = ri.prototype, Di.invalid = ii;
  1947. var Ai = Pi(1, "add"),
  1948. Ri = Pi(-1, "subtract");
  1949. function xi(e) {
  1950. return typeof e === "string" || e instanceof String
  1951. }
  1952. function Oi(e) {
  1953. return S(e) || c(e) || xi(e) || h(e) || Wi(e) || Ii(e) || e === null || e ===
  1954. undefined
  1955. }
  1956. function Ii(e) {
  1957. var t = o(e) && !d(e),
  1958. n = false,
  1959. i = ["years", "year", "y", "months", "month", "M", "days", "day", "d", "dates",
  1960. "date", "D", "hours", "hour", "h", "minutes", "minute", "m", "seconds",
  1961. "second", "s", "milliseconds", "millisecond", "ms"
  1962. ],
  1963. r, a;
  1964. for (r = 0; r < i.length; r += 1) {
  1965. a = i[r];
  1966. n = n || u(e, a)
  1967. }
  1968. return t && n
  1969. }
  1970. function Wi(t) {
  1971. var e = s(t),
  1972. n = false;
  1973. if (e) n = t.filter(function(e) {
  1974. return !h(e) && xi(t)
  1975. }).length === 0;
  1976. return e && n
  1977. }
  1978. function Hi(e) {
  1979. var t = o(e) && !d(e),
  1980. n = false,
  1981. i = ["sameDay", "nextDay", "lastDay", "nextWeek", "lastWeek", "sameElse"],
  1982. r, a;
  1983. for (r = 0; r < i.length; r += 1) {
  1984. a = i[r];
  1985. n = n || u(e, a)
  1986. }
  1987. return t && n
  1988. }
  1989. function ji(e, t) {
  1990. var n = e.diff(t, "days", true);
  1991. return n < -6 ? "sameElse" : n < -1 ? "lastWeek" : n < 0 ? "lastDay" : n < 1 ?
  1992. "sameDay" : n < 2 ? "nextDay" : n < 7 ? "nextWeek" : "sameElse"
  1993. }
  1994. function Fi(e, t) {
  1995. if (arguments.length === 1)
  1996. if (!arguments[0]) {
  1997. e = undefined;
  1998. t = undefined
  1999. } else if (Oi(arguments[0])) {
  2000. e = arguments[0];
  2001. t = undefined
  2002. } else if (Hi(arguments[0])) {
  2003. t = arguments[0];
  2004. e = undefined
  2005. }
  2006. var n = e || Jn(),
  2007. i = hi(n, this).startOf("day"),
  2008. r = l.calendarFormat(this, i) || "sameElse",
  2009. a = t && (E(t[r]) ? t[r].call(this, n) : t[r]);
  2010. return this.format(a || this.localeData().calendar(r, this, Jn(n)))
  2011. }
  2012. function Bi() {
  2013. return new L(this)
  2014. }
  2015. function Ni(e, t) {
  2016. var n = S(e) ? e : Jn(e);
  2017. if (!(this.isValid() && n.isValid())) return false;
  2018. t = ne(t) || "millisecond";
  2019. if (t === "millisecond") return this.valueOf() > n.valueOf();
  2020. else return n.valueOf() < this.clone().startOf(t).valueOf()
  2021. }
  2022. function zi(e, t) {
  2023. var n = S(e) ? e : Jn(e);
  2024. if (!(this.isValid() && n.isValid())) return false;
  2025. t = ne(t) || "millisecond";
  2026. if (t === "millisecond") return this.valueOf() < n.valueOf();
  2027. else return this.clone().endOf(t).valueOf() < n.valueOf()
  2028. }
  2029. function Ui(e, t, n, i) {
  2030. var r = S(e) ? e : Jn(e),
  2031. a = S(t) ? t : Jn(t);
  2032. if (!(this.isValid() && r.isValid() && a.isValid())) return false;
  2033. i = i || "()";
  2034. return (i[0] === "(" ? this.isAfter(r, n) : !this.isBefore(r, n)) && (i[1] === ")" ?
  2035. this.isBefore(a, n) : !this.isAfter(a, n))
  2036. }
  2037. function Vi(e, t) {
  2038. var n = S(e) ? e : Jn(e),
  2039. i;
  2040. if (!(this.isValid() && n.isValid())) return false;
  2041. t = ne(t) || "millisecond";
  2042. if (t === "millisecond") return this.valueOf() === n.valueOf();
  2043. else {
  2044. i = n.valueOf();
  2045. return this.clone().startOf(t).valueOf() <= i && i <= this.clone().endOf(t)
  2046. .valueOf()
  2047. }
  2048. }
  2049. function Gi(e, t) {
  2050. return this.isSame(e, t) || this.isAfter(e, t)
  2051. }
  2052. function Ji(e, t) {
  2053. return this.isSame(e, t) || this.isBefore(e, t)
  2054. }
  2055. function qi(e, t, n) {
  2056. var i, r, a;
  2057. if (!this.isValid()) return NaN;
  2058. i = hi(e, this);
  2059. if (!i.isValid()) return NaN;
  2060. r = (i.utcOffset() - this.utcOffset()) * 6e4;
  2061. t = ne(t);
  2062. switch (t) {
  2063. case "year":
  2064. a = Ki(this, i) / 12;
  2065. break;
  2066. case "month":
  2067. a = Ki(this, i);
  2068. break;
  2069. case "quarter":
  2070. a = Ki(this, i) / 3;
  2071. break;
  2072. case "second":
  2073. a = (this - i) / 1e3;
  2074. break;
  2075. case "minute":
  2076. a = (this - i) / 6e4;
  2077. break;
  2078. case "hour":
  2079. a = (this - i) / 36e5;
  2080. break;
  2081. case "day":
  2082. a = (this - i - r) / 864e5;
  2083. break;
  2084. case "week":
  2085. a = (this - i - r) / 6048e5;
  2086. break;
  2087. default:
  2088. a = this - i
  2089. }
  2090. return n ? a : ue(a)
  2091. }
  2092. function Ki(e, t) {
  2093. if (e.date() < t.date()) return -Ki(t, e);
  2094. var n = (t.year() - e.year()) * 12 + (t.month() - e.month()),
  2095. i = e.clone().add(n, "months"),
  2096. r, a;
  2097. if (t - i < 0) {
  2098. r = e.clone().add(n - 1, "months");
  2099. a = (t - i) / (i - r)
  2100. } else {
  2101. r = e.clone().add(n + 1, "months");
  2102. a = (t - i) / (r - i)
  2103. }
  2104. return -(n + a) || 0
  2105. }
  2106. function Xi() {
  2107. return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")
  2108. }
  2109. function Zi(e) {
  2110. if (!this.isValid()) return null;
  2111. var t = e !== true,
  2112. n = t ? this.clone().utc() : this;
  2113. if (n.year() < 0 || n.year() > 9999) return N(n, t ?
  2114. "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");
  2115. if (E(Date.prototype.toISOString))
  2116. if (t) return this.toDate().toISOString();
  2117. else return new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString()
  2118. .replace("Z", N(n, "Z"));
  2119. return N(n, t ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ")
  2120. }
  2121. function $i() {
  2122. if (!this.isValid()) return "moment.invalid(/* " + this._i + " */)";
  2123. var e = "moment",
  2124. t = "",
  2125. n, i, r, a;
  2126. if (!this.isLocal()) {
  2127. e = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone";
  2128. t = "Z"
  2129. }
  2130. n = "[" + e + '("]';
  2131. i = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY";
  2132. r = "-MM-DD[T]HH:mm:ss.SSS";
  2133. a = t + '[")]';
  2134. return this.format(n + i + r + a)
  2135. }
  2136. function Qi(e) {
  2137. if (!e) e = this.isUtc() ? l.defaultFormatUtc : l.defaultFormat;
  2138. var t = N(this, e);
  2139. return this.localeData().postformat(t)
  2140. }
  2141. function er(e, t) {
  2142. if (this.isValid() && (S(e) && e.isValid() || Jn(e).isValid())) return Di({
  2143. to: this,
  2144. from: e
  2145. }).locale(this.locale()).humanize(!t);
  2146. else return this.localeData().invalidDate()
  2147. }
  2148. function tr(e) {
  2149. return this.from(Jn(), e)
  2150. }
  2151. function nr(e, t) {
  2152. if (this.isValid() && (S(e) && e.isValid() || Jn(e).isValid())) return Di({
  2153. from: this,
  2154. to: e
  2155. }).locale(this.locale()).humanize(!t);
  2156. else return this.localeData().invalidDate()
  2157. }
  2158. function ir(e) {
  2159. return this.to(Jn(), e)
  2160. }
  2161. function rr(e) {
  2162. var t;
  2163. if (e === undefined) return this._locale._abbr;
  2164. else {
  2165. t = pn(e);
  2166. if (t != null) this._locale = t;
  2167. return this
  2168. }
  2169. }
  2170. l.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ", l.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
  2171. var ar = b(
  2172. "moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",
  2173. function(e) {
  2174. if (e === undefined) return this.localeData();
  2175. else return this.locale(e)
  2176. });
  2177. function sr() {
  2178. return this._locale
  2179. }
  2180. var or = 1e3,
  2181. ur = 60 * or,
  2182. dr = 60 * ur,
  2183. lr = (365 * 400 + 97) * 24 * dr;
  2184. function hr(e, t) {
  2185. return (e % t + t) % t
  2186. }
  2187. function cr(e, t, n) {
  2188. if (e < 100 && e >= 0) return new Date(e + 400, t, n) - lr;
  2189. else return new Date(e, t, n).valueOf()
  2190. }
  2191. function _r(e, t, n) {
  2192. if (e < 100 && e >= 0) return Date.UTC(e + 400, t, n) - lr;
  2193. else return Date.UTC(e, t, n)
  2194. }
  2195. function fr(e) {
  2196. var t, n;
  2197. e = ne(e);
  2198. if (e === undefined || e === "millisecond" || !this.isValid()) return this;
  2199. n = this._isUTC ? _r : cr;
  2200. switch (e) {
  2201. case "year":
  2202. t = n(this.year(), 0, 1);
  2203. break;
  2204. case "quarter":
  2205. t = n(this.year(), this.month() - this.month() % 3, 1);
  2206. break;
  2207. case "month":
  2208. t = n(this.year(), this.month(), 1);
  2209. break;
  2210. case "week":
  2211. t = n(this.year(), this.month(), this.date() - this.weekday());
  2212. break;
  2213. case "isoWeek":
  2214. t = n(this.year(), this.month(), this.date() - (this.isoWeekday() - 1));
  2215. break;
  2216. case "day":
  2217. case "date":
  2218. t = n(this.year(), this.month(), this.date());
  2219. break;
  2220. case "hour":
  2221. t = this._d.valueOf();
  2222. t -= hr(t + (this._isUTC ? 0 : this.utcOffset() * ur), dr);
  2223. break;
  2224. case "minute":
  2225. t = this._d.valueOf();
  2226. t -= hr(t, ur);
  2227. break;
  2228. case "second":
  2229. t = this._d.valueOf();
  2230. t -= hr(t, or);
  2231. break
  2232. }
  2233. this._d.setTime(t);
  2234. l.updateOffset(this, true);
  2235. return this
  2236. }
  2237. function mr(e) {
  2238. var t, n;
  2239. e = ne(e);
  2240. if (e === undefined || e === "millisecond" || !this.isValid()) return this;
  2241. n = this._isUTC ? _r : cr;
  2242. switch (e) {
  2243. case "year":
  2244. t = n(this.year() + 1, 0, 1) - 1;
  2245. break;
  2246. case "quarter":
  2247. t = n(this.year(), this.month() - this.month() % 3 + 3, 1) - 1;
  2248. break;
  2249. case "month":
  2250. t = n(this.year(), this.month() + 1, 1) - 1;
  2251. break;
  2252. case "week":
  2253. t = n(this.year(), this.month(), this.date() - this.weekday() + 7) - 1;
  2254. break;
  2255. case "isoWeek":
  2256. t = n(this.year(), this.month(), this.date() - (this.isoWeekday() - 1) +
  2257. 7) - 1;
  2258. break;
  2259. case "day":
  2260. case "date":
  2261. t = n(this.year(), this.month(), this.date() + 1) - 1;
  2262. break;
  2263. case "hour":
  2264. t = this._d.valueOf();
  2265. t += dr - hr(t + (this._isUTC ? 0 : this.utcOffset() * ur), dr) - 1;
  2266. break;
  2267. case "minute":
  2268. t = this._d.valueOf();
  2269. t += ur - hr(t, ur) - 1;
  2270. break;
  2271. case "second":
  2272. t = this._d.valueOf();
  2273. t += or - hr(t, or) - 1;
  2274. break
  2275. }
  2276. this._d.setTime(t);
  2277. l.updateOffset(this, true);
  2278. return this
  2279. }
  2280. function pr() {
  2281. return this._d.valueOf() - (this._offset || 0) * 6e4
  2282. }
  2283. function yr() {
  2284. return Math.floor(this.valueOf() / 1e3)
  2285. }
  2286. function vr() {
  2287. return new Date(this.valueOf())
  2288. }
  2289. function gr() {
  2290. var e = this;
  2291. return [e.year(), e.month(), e.date(), e.hour(), e.minute(), e.second(), e
  2292. .millisecond()
  2293. ]
  2294. }
  2295. function Mr() {
  2296. var e = this;
  2297. return {
  2298. years: e.year(),
  2299. months: e.month(),
  2300. date: e.date(),
  2301. hours: e.hours(),
  2302. minutes: e.minutes(),
  2303. seconds: e.seconds(),
  2304. milliseconds: e.milliseconds()
  2305. }
  2306. }
  2307. function Lr() {
  2308. return this.isValid() ? this.toISOString() : null
  2309. }
  2310. function Sr() {
  2311. return p(this)
  2312. }
  2313. function kr() {
  2314. return _({}, m(this))
  2315. }
  2316. function br() {
  2317. return m(this).overflow
  2318. }
  2319. function wr() {
  2320. return {
  2321. input: this._i,
  2322. format: this._f,
  2323. locale: this._locale,
  2324. isUTC: this._isUTC,
  2325. strict: this._strict
  2326. }
  2327. }
  2328. function Dr(e, t) {
  2329. var n, i, r, a = this._eras || pn("en")._eras;
  2330. for (n = 0, i = a.length; n < i; ++n) {
  2331. switch (typeof a[n].since) {
  2332. case "string":
  2333. r = l(a[n].since).startOf("day");
  2334. a[n].since = r.valueOf();
  2335. break
  2336. }
  2337. switch (typeof a[n].until) {
  2338. case "undefined":
  2339. a[n].until = +Infinity;
  2340. break;
  2341. case "string":
  2342. r = l(a[n].until).startOf("day").valueOf();
  2343. a[n].until = r.valueOf();
  2344. break
  2345. }
  2346. }
  2347. return a
  2348. }
  2349. function Tr(e, t, n) {
  2350. var i, r, a = this.eras(),
  2351. s, o, u;
  2352. e = e.toUpperCase();
  2353. for (i = 0, r = a.length; i < r; ++i) {
  2354. s = a[i].name.toUpperCase();
  2355. o = a[i].abbr.toUpperCase();
  2356. u = a[i].narrow.toUpperCase();
  2357. if (n) switch (t) {
  2358. case "N":
  2359. case "NN":
  2360. case "NNN":
  2361. if (o === e) return a[i];
  2362. break;
  2363. case "NNNN":
  2364. if (s === e) return a[i];
  2365. break;
  2366. case "NNNNN":
  2367. if (u === e) return a[i];
  2368. break
  2369. } else if ([s, o, u].indexOf(e) >= 0) return a[i]
  2370. }
  2371. }
  2372. function Er(e, t) {
  2373. var n = e.since <= e.until ? +1 : -1;
  2374. if (t === undefined) return l(e.since).year();
  2375. else return l(e.since).year() + (t - e.offset) * n
  2376. }
  2377. function Yr() {
  2378. var e, t, n, i = this.localeData().eras();
  2379. for (e = 0, t = i.length; e < t; ++e) {
  2380. n = this.clone().startOf("day").valueOf();
  2381. if (i[e].since <= n && n <= i[e].until) return i[e].name;
  2382. if (i[e].until <= n && n <= i[e].since) return i[e].name
  2383. }
  2384. return ""
  2385. }
  2386. function Pr() {
  2387. var e, t, n, i = this.localeData().eras();
  2388. for (e = 0, t = i.length; e < t; ++e) {
  2389. n = this.clone().startOf("day").valueOf();
  2390. if (i[e].since <= n && n <= i[e].until) return i[e].narrow;
  2391. if (i[e].until <= n && n <= i[e].since) return i[e].narrow
  2392. }
  2393. return ""
  2394. }
  2395. function Cr() {
  2396. var e, t, n, i = this.localeData().eras();
  2397. for (e = 0, t = i.length; e < t; ++e) {
  2398. n = this.clone().startOf("day").valueOf();
  2399. if (i[e].since <= n && n <= i[e].until) return i[e].abbr;
  2400. if (i[e].until <= n && n <= i[e].since) return i[e].abbr
  2401. }
  2402. return ""
  2403. }
  2404. function Ar() {
  2405. var e, t, n, i, r = this.localeData().eras();
  2406. for (e = 0, t = r.length; e < t; ++e) {
  2407. n = r[e].since <= r[e].until ? +1 : -1;
  2408. i = this.clone().startOf("day").valueOf();
  2409. if (r[e].since <= i && i <= r[e].until || r[e].until <= i && i <= r[e].since)
  2410. return (this.year() - l(r[e].since).year()) * n + r[e].offset
  2411. }
  2412. return this.year()
  2413. }
  2414. function Rr(e) {
  2415. if (!u(this, "_erasNameRegex")) Fr.call(this);
  2416. return e ? this._erasNameRegex : this._erasRegex
  2417. }
  2418. function xr(e) {
  2419. if (!u(this, "_erasAbbrRegex")) Fr.call(this);
  2420. return e ? this._erasAbbrRegex : this._erasRegex
  2421. }
  2422. function Or(e) {
  2423. if (!u(this, "_erasNarrowRegex")) Fr.call(this);
  2424. return e ? this._erasNarrowRegex : this._erasRegex
  2425. }
  2426. function Ir(e, t) {
  2427. return t.erasAbbrRegex(e)
  2428. }
  2429. function Wr(e, t) {
  2430. return t.erasNameRegex(e)
  2431. }
  2432. function Hr(e, t) {
  2433. return t.erasNarrowRegex(e)
  2434. }
  2435. function jr(e, t) {
  2436. return t._eraYearOrdinalRegex || De
  2437. }
  2438. function Fr() {
  2439. var e = [],
  2440. t = [],
  2441. n = [],
  2442. i = [],
  2443. r, a, s = this.eras();
  2444. for (r = 0, a = s.length; r < a; ++r) {
  2445. t.push(Ie(s[r].name));
  2446. e.push(Ie(s[r].abbr));
  2447. n.push(Ie(s[r].narrow));
  2448. i.push(Ie(s[r].name));
  2449. i.push(Ie(s[r].abbr));
  2450. i.push(Ie(s[r].narrow))
  2451. }
  2452. this._erasRegex = new RegExp("^(" + i.join("|") + ")", "i");
  2453. this._erasNameRegex = new RegExp("^(" + t.join("|") + ")", "i");
  2454. this._erasAbbrRegex = new RegExp("^(" + e.join("|") + ")", "i");
  2455. this._erasNarrowRegex = new RegExp("^(" + n.join("|") + ")", "i")
  2456. }
  2457. function Br(e, t) {
  2458. j(0, [e, e.length], 0, t)
  2459. }
  2460. function Nr(e) {
  2461. return qr.call(this, e, this.week(), this.weekday(), this.localeData()._week.dow,
  2462. this.localeData()._week.doy)
  2463. }
  2464. function zr(e) {
  2465. return qr.call(this, e, this.isoWeek(), this.isoWeekday(), 1, 4)
  2466. }
  2467. function Ur() {
  2468. return St(this.year(), 1, 4)
  2469. }
  2470. function Vr() {
  2471. return St(this.isoWeekYear(), 1, 4)
  2472. }
  2473. function Gr() {
  2474. var e = this.localeData()._week;
  2475. return St(this.year(), e.dow, e.doy)
  2476. }
  2477. function Jr() {
  2478. var e = this.localeData()._week;
  2479. return St(this.weekYear(), e.dow, e.doy)
  2480. }
  2481. function qr(e, t, n, i, r) {
  2482. var a;
  2483. if (e == null) return Lt(this, i, r).year;
  2484. else {
  2485. a = St(e, i, r);
  2486. if (t > a) t = a;
  2487. return Kr.call(this, e, t, n, i, r)
  2488. }
  2489. }
  2490. function Kr(e, t, n, i, r) {
  2491. var a = Mt(e, t, n, i, r),
  2492. s = vt(a.year, 0, a.dayOfYear);
  2493. this.year(s.getUTCFullYear());
  2494. this.month(s.getUTCMonth());
  2495. this.date(s.getUTCDate());
  2496. return this
  2497. }
  2498. function Xr(e) {
  2499. return e == null ? Math.ceil((this.month() + 1) / 3) : this.month((e - 1) * 3 + this
  2500. .month() % 3)
  2501. }
  2502. j("N", 0, 0, "eraAbbr"), j("NN", 0, 0, "eraAbbr"), j("NNN", 0, 0, "eraAbbr"), j("NNNN",
  2503. 0, 0, "eraName"), j("NNNNN", 0, 0, "eraNarrow"), j("y", ["y", 1], "yo",
  2504. "eraYear"), j("y", ["yy", 2], 0, "eraYear"), j("y", ["yyy", 3], 0, "eraYear"),
  2505. j("y", ["yyyy", 4], 0, "eraYear"), Re("N", Ir), Re("NN", Ir), Re("NNN", Ir), Re(
  2506. "NNNN", Wr), Re("NNNNN", Hr), He(["N", "NN", "NNN", "NNNN", "NNNNN"], function(
  2507. e, t, n, i) {
  2508. var r = n._locale.erasParse(e, i, n._strict);
  2509. if (r) m(n).era = r;
  2510. else m(n).invalidEra = e
  2511. }), Re("y", De), Re("yy", De), Re("yyy", De), Re("yyyy", De), Re("yo", jr), He(["y",
  2512. "yy", "yyy", "yyyy"
  2513. ], Be), He(["yo"], function(e, t, n, i) {
  2514. var r;
  2515. if (n._locale._eraYearOrdinalRegex) r = e.match(n._locale
  2516. ._eraYearOrdinalRegex);
  2517. if (n._locale.eraYearOrdinalParse) t[Be] = n._locale.eraYearOrdinalParse(e,
  2518. r);
  2519. else t[Be] = parseInt(e, 10)
  2520. }), j(0, ["gg", 2], 0, function() {
  2521. return this.weekYear() % 100
  2522. }), j(0, ["GG", 2], 0, function() {
  2523. return this.isoWeekYear() % 100
  2524. }), Br("gggg", "weekYear"), Br("ggggg", "weekYear"), Br("GGGG", "isoWeekYear"), Br(
  2525. "GGGGG", "isoWeekYear"), te("weekYear", "gg"), te("isoWeekYear", "GG"), ae(
  2526. "weekYear", 1), ae("isoWeekYear", 1), Re("G", Te), Re("g", Te), Re("GG", Me,
  2527. pe), Re("gg", Me, pe), Re("GGGG", be, ve), Re("gggg", be, ve), Re("GGGGG", we,
  2528. ge),
  2529. Re("ggggg", we, ge), je(["gggg", "ggggg", "GGGG", "GGGGG"], function(e, t, n, i) {
  2530. t[i.substr(0, 2)] = de(e)
  2531. }), je(["gg", "GG"], function(e, t, n, i) {
  2532. t[i] = l.parseTwoDigitYear(e)
  2533. }), j("Q", 0, "Qo", "quarter"), te("quarter", "Q"), ae("quarter", 7), Re("Q", me),
  2534. He("Q", function(e, t) {
  2535. t[Ne] = (de(e) - 1) * 3
  2536. }), j("D", ["DD", 2], "Do", "date"), te("date", "D"), ae("date", 9), Re("D", Me),
  2537. Re("DD", Me, pe), Re("Do", function(e, t) {
  2538. return e ? t._dayOfMonthOrdinalParse || t._ordinalParse : t
  2539. ._dayOfMonthOrdinalParseLenient
  2540. }), He(["D", "DD"], ze), He("Do", function(e, t) {
  2541. t[ze] = de(e.match(Me)[0])
  2542. });
  2543. var Zr = le("Date", true);
  2544. function $r(e) {
  2545. var t = Math.round((this.clone().startOf("day") - this.clone().startOf("year")) /
  2546. 864e5) + 1;
  2547. return e == null ? t : this.add(e - t, "d")
  2548. }
  2549. j("DDD", ["DDDD", 3], "DDDo", "dayOfYear"), te("dayOfYear", "DDD"), ae("dayOfYear", 4),
  2550. Re("DDD", ke), Re("DDDD", ye), He(["DDD", "DDDD"], function(e, t, n) {
  2551. n._dayOfYear = de(e)
  2552. }), j("m", ["mm", 2], 0, "minute"), te("minute", "m"), ae("minute", 14), Re("m",
  2553. Me), Re("mm", Me, pe), He(["m", "mm"], Ve);
  2554. var Qr = le("Minutes", false);
  2555. j("s", ["ss", 2], 0, "second"), te("second", "s"), ae("second", 15), Re("s", Me), Re(
  2556. "ss", Me, pe), He(["s", "ss"], Ge);
  2557. var ea = le("Seconds", false),
  2558. ta, na;
  2559. for (j("S", 0, 0, function() {
  2560. return ~~(this.millisecond() / 100)
  2561. }), j(0, ["SS", 2], 0, function() {
  2562. return ~~(this.millisecond() / 10)
  2563. }), j(0, ["SSS", 3], 0, "millisecond"), j(0, ["SSSS", 4], 0, function() {
  2564. return this.millisecond() * 10
  2565. }), j(0, ["SSSSS", 5], 0, function() {
  2566. return this.millisecond() * 100
  2567. }), j(0, ["SSSSSS", 6], 0, function() {
  2568. return this.millisecond() * 1e3
  2569. }), j(0, ["SSSSSSS", 7], 0, function() {
  2570. return this.millisecond() * 1e4
  2571. }), j(0, ["SSSSSSSS", 8], 0, function() {
  2572. return this.millisecond() * 1e5
  2573. }), j(0, ["SSSSSSSSS", 9], 0, function() {
  2574. return this.millisecond() * 1e6
  2575. }), te("millisecond", "ms"), ae("millisecond", 16), Re("S", ke, me), Re("SS", ke,
  2576. pe), Re("SSS", ke, ye), ta = "SSSS"; ta.length <= 9; ta += "S") Re(ta, De);
  2577. function ia(e, t) {
  2578. t[Je] = de(("0." + e) * 1e3)
  2579. }
  2580. for (ta = "S"; ta.length <= 9; ta += "S") He(ta, ia);
  2581. function ra() {
  2582. return this._isUTC ? "UTC" : ""
  2583. }
  2584. function aa() {
  2585. return this._isUTC ? "Coordinated Universal Time" : ""
  2586. }
  2587. na = le("Milliseconds", false), j("z", 0, 0, "zoneAbbr"), j("zz", 0, 0, "zoneName");
  2588. var sa = L.prototype;
  2589. if (sa.add = Ai, sa.calendar = Fi, sa.clone = Bi, sa.diff = qi, sa.endOf = mr, sa
  2590. .format = Qi, sa.from = er, sa.fromNow = tr, sa.to = nr, sa.toNow = ir, sa.get = _e,
  2591. sa.invalidAt = br, sa.isAfter = Ni, sa.isBefore = zi, sa.isBetween = Ui, sa.isSame =
  2592. Vi, sa.isSameOrAfter = Gi, sa.isSameOrBefore = Ji, sa.isValid = Sr, sa.lang = ar, sa
  2593. .locale = rr, sa.localeData = sr, sa.max = Kn, sa.min = qn, sa.parsingFlags = kr, sa
  2594. .set = fe, sa.startOf = fr, sa.subtract = Ri, sa.toArray = gr, sa.toObject = Mr, sa
  2595. .toDate = vr, sa.toISOString = Zi, sa.inspect = $i, typeof Symbol !== "undefined" &&
  2596. Symbol.for != null) sa[Symbol.for("nodejs.util.inspect.custom")] = function() {
  2597. return "Moment<" + this.format() + ">"
  2598. };
  2599. function oa(e) {
  2600. return Jn(e * 1e3)
  2601. }
  2602. function ua() {
  2603. return Jn.apply(null, arguments).parseZone()
  2604. }
  2605. function da(e) {
  2606. return e
  2607. }
  2608. sa.toJSON = Lr, sa.toString = Xi, sa.unix = yr, sa.valueOf = pr, sa.creationData = wr,
  2609. sa.eraName = Yr, sa.eraNarrow = Pr, sa.eraAbbr = Cr, sa.eraYear = Ar, sa.year = mt,
  2610. sa.isLeapYear = pt, sa.weekYear = Nr, sa.isoWeekYear = zr, sa.quarter = sa
  2611. .quarters = Xr, sa.month = dt, sa.daysInMonth = lt, sa.week = sa.weeks = Tt, sa
  2612. .isoWeek = sa.isoWeeks = Et, sa.weeksInYear = Gr, sa.weeksInWeekYear = Jr, sa
  2613. .isoWeeksInYear = Ur, sa.isoWeeksInISOWeekYear = Vr, sa.date = Zr, sa.day = sa
  2614. .days = zt, sa.weekday = Ut, sa.isoWeekday = Vt, sa.dayOfYear = $r, sa.hour = sa
  2615. .hours = nn, sa.minute = sa.minutes = Qr, sa.second = sa.seconds = ea, sa
  2616. .millisecond = sa.milliseconds = na, sa.utcOffset = _i, sa.utc = mi, sa.local = pi,
  2617. sa.parseZone = yi, sa.hasAlignedHourOffset = vi, sa.isDST = gi, sa.isLocal = Li, sa
  2618. .isUtcOffset = Si, sa.isUtc = ki, sa.isUTC = ki, sa.zoneAbbr = ra, sa.zoneName = aa,
  2619. sa.dates = b("dates accessor is deprecated. Use date instead.", Zr), sa.months = b(
  2620. "months accessor is deprecated. Use month instead", dt), sa.years = b(
  2621. "years accessor is deprecated. Use year instead", mt), sa.zone = b(
  2622. "moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",
  2623. fi), sa.isDSTShifted = b(
  2624. "isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",
  2625. Mi);
  2626. var la = C.prototype;
  2627. function ha(e, t, n, i) {
  2628. var r = pn(),
  2629. a = f().set(i, t);
  2630. return r[n](a, e)
  2631. }
  2632. function ca(e, t, n) {
  2633. if (h(e)) {
  2634. t = e;
  2635. e = undefined
  2636. }
  2637. e = e || "";
  2638. if (t != null) return ha(e, t, n, "month");
  2639. var i, r = [];
  2640. for (i = 0; i < 12; i++) r[i] = ha(e, i, n, "month");
  2641. return r
  2642. }
  2643. function _a(e, t, n, i) {
  2644. if (typeof e === "boolean") {
  2645. if (h(t)) {
  2646. n = t;
  2647. t = undefined
  2648. }
  2649. t = t || ""
  2650. } else {
  2651. t = e;
  2652. n = t;
  2653. e = false;
  2654. if (h(t)) {
  2655. n = t;
  2656. t = undefined
  2657. }
  2658. t = t || ""
  2659. }
  2660. var r = pn(),
  2661. a = e ? r._week.dow : 0,
  2662. s, o = [];
  2663. if (n != null) return ha(t, (n + a) % 7, i, "day");
  2664. for (s = 0; s < 7; s++) o[s] = ha(t, (s + a) % 7, i, "day");
  2665. return o
  2666. }
  2667. function fa(e, t) {
  2668. return ca(e, t, "months")
  2669. }
  2670. function ma(e, t) {
  2671. return ca(e, t, "monthsShort")
  2672. }
  2673. function pa(e, t, n) {
  2674. return _a(e, t, n, "weekdays")
  2675. }
  2676. function ya(e, t, n) {
  2677. return _a(e, t, n, "weekdaysShort")
  2678. }
  2679. function va(e, t, n) {
  2680. return _a(e, t, n, "weekdaysMin")
  2681. }
  2682. la.calendar = R, la.longDateFormat = V, la.invalidDate = J, la.ordinal = X, la
  2683. .preparse = da, la.postformat = da, la.relativeTime = $, la.pastFuture = Q, la.set =
  2684. Y, la.eras = Dr, la.erasParse = Tr, la.erasConvertYear = Er, la.erasAbbrRegex = xr,
  2685. la.erasNameRegex = Rr, la.erasNarrowRegex = Or, la.months = rt, la.monthsShort = at,
  2686. la.monthsParse = ot, la.monthsRegex = ct, la.monthsShortRegex = ht, la.week = kt, la
  2687. .firstDayOfYear = Dt, la.firstDayOfWeek = wt, la.weekdays = Ht, la.weekdaysMin = Ft,
  2688. la.weekdaysShort = jt, la.weekdaysParse = Nt, la.weekdaysRegex = Gt, la
  2689. .weekdaysShortRegex = Jt, la.weekdaysMinRegex = qt, la.isPM = en, la.meridiem = rn,
  2690. _n("en", {
  2691. eras: [{
  2692. since: "0001-01-01",
  2693. until: +Infinity,
  2694. offset: 1,
  2695. name: "Anno Domini",
  2696. narrow: "AD",
  2697. abbr: "AD"
  2698. }, {
  2699. since: "0000-12-31",
  2700. until: -Infinity,
  2701. offset: 1,
  2702. name: "Before Christ",
  2703. narrow: "BC",
  2704. abbr: "BC"
  2705. }],
  2706. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  2707. ordinal: function(e) {
  2708. var t = e % 10,
  2709. n = de(e % 100 / 10) === 1 ? "th" : t === 1 ? "st" : t === 2 ?
  2710. "nd" : t === 3 ? "rd" : "th";
  2711. return e + n
  2712. }
  2713. }), l.lang = b("moment.lang is deprecated. Use moment.locale instead.", _n), l
  2714. .langData = b("moment.langData is deprecated. Use moment.localeData instead.", pn);
  2715. var ga = Math.abs;
  2716. function Ma() {
  2717. var e = this._data;
  2718. this._milliseconds = ga(this._milliseconds);
  2719. this._days = ga(this._days);
  2720. this._months = ga(this._months);
  2721. e.milliseconds = ga(e.milliseconds);
  2722. e.seconds = ga(e.seconds);
  2723. e.minutes = ga(e.minutes);
  2724. e.hours = ga(e.hours);
  2725. e.months = ga(e.months);
  2726. e.years = ga(e.years);
  2727. return this
  2728. }
  2729. function La(e, t, n, i) {
  2730. var r = Di(t, n);
  2731. e._milliseconds += i * r._milliseconds;
  2732. e._days += i * r._days;
  2733. e._months += i * r._months;
  2734. return e._bubble()
  2735. }
  2736. function Sa(e, t) {
  2737. return La(this, e, t, 1)
  2738. }
  2739. function ka(e, t) {
  2740. return La(this, e, t, -1)
  2741. }
  2742. function ba(e) {
  2743. if (e < 0) return Math.floor(e);
  2744. else return Math.ceil(e)
  2745. }
  2746. function wa() {
  2747. var e = this._milliseconds,
  2748. t = this._days,
  2749. n = this._months,
  2750. i = this._data,
  2751. r, a, s, o, u;
  2752. if (!(e >= 0 && t >= 0 && n >= 0 || e <= 0 && t <= 0 && n <= 0)) {
  2753. e += ba(Ta(n) + t) * 864e5;
  2754. t = 0;
  2755. n = 0
  2756. }
  2757. i.milliseconds = e % 1e3;
  2758. r = ue(e / 1e3);
  2759. i.seconds = r % 60;
  2760. a = ue(r / 60);
  2761. i.minutes = a % 60;
  2762. s = ue(a / 60);
  2763. i.hours = s % 24;
  2764. t += ue(s / 24);
  2765. u = ue(Da(t));
  2766. n += u;
  2767. t -= ba(Ta(u));
  2768. o = ue(n / 12);
  2769. n %= 12;
  2770. i.days = t;
  2771. i.months = n;
  2772. i.years = o;
  2773. return this
  2774. }
  2775. function Da(e) {
  2776. return e * 4800 / 146097
  2777. }
  2778. function Ta(e) {
  2779. return e * 146097 / 4800
  2780. }
  2781. function Ea(e) {
  2782. if (!this.isValid()) return NaN;
  2783. var t, n, i = this._milliseconds;
  2784. e = ne(e);
  2785. if (e === "month" || e === "quarter" || e === "year") {
  2786. t = this._days + i / 864e5;
  2787. n = this._months + Da(t);
  2788. switch (e) {
  2789. case "month":
  2790. return n;
  2791. case "quarter":
  2792. return n / 3;
  2793. case "year":
  2794. return n / 12
  2795. }
  2796. } else {
  2797. t = this._days + Math.round(Ta(this._months));
  2798. switch (e) {
  2799. case "week":
  2800. return t / 7 + i / 6048e5;
  2801. case "day":
  2802. return t + i / 864e5;
  2803. case "hour":
  2804. return t * 24 + i / 36e5;
  2805. case "minute":
  2806. return t * 1440 + i / 6e4;
  2807. case "second":
  2808. return t * 86400 + i / 1e3;
  2809. case "millisecond":
  2810. return Math.floor(t * 864e5) + i;
  2811. default:
  2812. throw new Error("Unknown unit " + e)
  2813. }
  2814. }
  2815. }
  2816. function Ya() {
  2817. if (!this.isValid()) return NaN;
  2818. return this._milliseconds + this._days * 864e5 + this._months % 12 * 2592e6 + de(
  2819. this._months / 12) * 31536e6
  2820. }
  2821. function Pa(e) {
  2822. return function() {
  2823. return this.as(e)
  2824. }
  2825. }
  2826. var Ca = Pa("ms"),
  2827. Aa = Pa("s"),
  2828. Ra = Pa("m"),
  2829. xa = Pa("h"),
  2830. Oa = Pa("d"),
  2831. Ia = Pa("w"),
  2832. Wa = Pa("M"),
  2833. Ha = Pa("Q"),
  2834. ja = Pa("y");
  2835. function Fa() {
  2836. return Di(this)
  2837. }
  2838. function Ba(e) {
  2839. e = ne(e);
  2840. return this.isValid() ? this[e + "s"]() : NaN
  2841. }
  2842. function Na(e) {
  2843. return function() {
  2844. return this.isValid() ? this._data[e] : NaN
  2845. }
  2846. }
  2847. var za = Na("milliseconds"),
  2848. Ua = Na("seconds"),
  2849. Va = Na("minutes"),
  2850. Ga = Na("hours"),
  2851. Ja = Na("days"),
  2852. qa = Na("months"),
  2853. Ka = Na("years");
  2854. function Xa() {
  2855. return ue(this.days() / 7)
  2856. }
  2857. var Za = Math.round,
  2858. $a = {
  2859. ss: 44,
  2860. s: 45,
  2861. m: 45,
  2862. h: 22,
  2863. d: 26,
  2864. w: null,
  2865. M: 11
  2866. };
  2867. function Qa(e, t, n, i, r) {
  2868. return r.relativeTime(t || 1, !!n, e, i)
  2869. }
  2870. function es(e, t, n, i) {
  2871. var r = Di(e).abs(),
  2872. a = Za(r.as("s")),
  2873. s = Za(r.as("m")),
  2874. o = Za(r.as("h")),
  2875. u = Za(r.as("d")),
  2876. d = Za(r.as("M")),
  2877. l = Za(r.as("w")),
  2878. h = Za(r.as("y")),
  2879. c = a <= n.ss && ["s", a] || a < n.s && ["ss", a] || s <= 1 && ["m"] || s < n
  2880. .m && ["mm", s] || o <= 1 && ["h"] || o < n.h && ["hh", o] || u <= 1 && ["d"] ||
  2881. u < n.d && ["dd", u];
  2882. if (n.w != null) c = c || l <= 1 && ["w"] || l < n.w && ["ww", l];
  2883. c = c || d <= 1 && ["M"] || d < n.M && ["MM", d] || h <= 1 && ["y"] || ["yy", h];
  2884. c[2] = t;
  2885. c[3] = +e > 0;
  2886. c[4] = i;
  2887. return Qa.apply(null, c)
  2888. }
  2889. function ts(e) {
  2890. if (e === undefined) return Za;
  2891. if (typeof e === "function") {
  2892. Za = e;
  2893. return true
  2894. }
  2895. return false
  2896. }
  2897. function ns(e, t) {
  2898. if ($a[e] === undefined) return false;
  2899. if (t === undefined) return $a[e];
  2900. $a[e] = t;
  2901. if (e === "s") $a.ss = t - 1;
  2902. return true
  2903. }
  2904. function is(e, t) {
  2905. if (!this.isValid()) return this.localeData().invalidDate();
  2906. var n = false,
  2907. i = $a,
  2908. r, a;
  2909. if (typeof e === "object") {
  2910. t = e;
  2911. e = false
  2912. }
  2913. if (typeof e === "boolean") n = e;
  2914. if (typeof t === "object") {
  2915. i = Object.assign({}, $a, t);
  2916. if (t.s != null && t.ss == null) i.ss = t.s - 1
  2917. }
  2918. r = this.localeData();
  2919. a = es(this, !n, i, r);
  2920. if (n) a = r.pastFuture(+this, a);
  2921. return r.postformat(a)
  2922. }
  2923. var rs = Math.abs;
  2924. function as(e) {
  2925. return (e > 0) - (e < 0) || +e
  2926. }
  2927. function ss() {
  2928. if (!this.isValid()) return this.localeData().invalidDate();
  2929. var e = rs(this._milliseconds) / 1e3,
  2930. t = rs(this._days),
  2931. n = rs(this._months),
  2932. i, r, a, s, o = this.asSeconds(),
  2933. u, d, l, h;
  2934. if (!o) return "P0D";
  2935. i = ue(e / 60);
  2936. r = ue(i / 60);
  2937. e %= 60;
  2938. i %= 60;
  2939. a = ue(n / 12);
  2940. n %= 12;
  2941. s = e ? e.toFixed(3).replace(/\.?0+$/, "") : "";
  2942. u = o < 0 ? "-" : "";
  2943. d = as(this._months) !== as(o) ? "-" : "";
  2944. l = as(this._days) !== as(o) ? "-" : "";
  2945. h = as(this._milliseconds) !== as(o) ? "-" : "";
  2946. return u + "P" + (a ? d + a + "Y" : "") + (n ? d + n + "M" : "") + (t ? l + t +
  2947. "D" : "") + (r || i || e ? "T" : "") + (r ? h + r + "H" : "") + (i ? h + i +
  2948. "M" : "") + (e ? h + s + "S" : "")
  2949. }
  2950. var os = ri.prototype;
  2951. return os.isValid = ni, os.abs = Ma, os.add = Sa, os.subtract = ka, os.as = Ea, os
  2952. .asMilliseconds = Ca, os.asSeconds = Aa, os.asMinutes = Ra, os.asHours = xa, os
  2953. .asDays = Oa, os.asWeeks = Ia, os.asMonths = Wa, os.asQuarters = Ha, os.asYears =
  2954. ja, os.valueOf = Ya, os._bubble = wa, os.clone = Fa, os.get = Ba, os.milliseconds =
  2955. za, os.seconds = Ua, os.minutes = Va, os.hours = Ga, os.days = Ja, os.weeks = Xa, os
  2956. .months = qa, os.years = Ka, os.humanize = is, os.toISOString = ss, os.toString =
  2957. ss, os.toJSON = ss, os.locale = rr, os.localeData = sr, os.toIsoString = b(
  2958. "toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",
  2959. ss), os.lang = ar, j("X", 0, 0, "unix"), j("x", 0, 0, "valueOf"), Re("x", Te),
  2960. Re("X", Pe), He("X", function(e, t, n) {
  2961. n._d = new Date(parseFloat(e) * 1e3)
  2962. }), He("x", function(e, t, n) {
  2963. n._d = new Date(de(e))
  2964. }),
  2965. //! moment.js
  2966. l.version = "2.29.1", e(Jn), l.fn = sa, l.min = Zn, l.max = $n, l.now = Qn, l.utc =
  2967. f, l.unix = oa, l.months = fa, l.isDate = c, l.locale = _n, l.invalid = y, l
  2968. .duration = Di, l.isMoment = S, l.weekdays = pa, l.parseZone = ua, l.localeData =
  2969. pn, l.isDuration = ai, l.monthsShort = ma, l.weekdaysMin = va, l.defineLocale = fn,
  2970. l.updateLocale = mn, l.locales = yn, l.weekdaysShort = ya, l.normalizeUnits = ne, l
  2971. .relativeTimeRounding = ts, l.relativeTimeThreshold = ns, l.calendarFormat = ji, l
  2972. .prototype = sa, l.HTML5_FMT = {
  2973. DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
  2974. DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
  2975. DATETIME_LOCAL_MS: "YYYY-MM-DDTHH:mm:ss.SSS",
  2976. DATE: "YYYY-MM-DD",
  2977. TIME: "HH:mm",
  2978. TIME_SECONDS: "HH:mm:ss",
  2979. TIME_MS: "HH:mm:ss.SSS",
  2980. WEEK: "GGGG-[W]WW",
  2981. MONTH: "YYYY-MM"
  2982. }, l
  2983. }()
  2984. }.call(this, ls(283)(e))
  2985. }, function(e, t, n) {
  2986. "use strict";
  2987. t.__esModule = !0, t.default = function(e, t) {
  2988. if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
  2989. }
  2990. }, function(e, t, n) {
  2991. "use strict";
  2992. t.__esModule = !0;
  2993. var i, r = n(259),
  2994. a = (i = r) && i.__esModule ? i : {
  2995. default: i
  2996. };
  2997. function s(e, t) {
  2998. for (var n = 0; n < t.length; n++) {
  2999. var i = t[n];
  3000. i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), (
  3001. 0, a.default)(e, i.key, i)
  3002. }
  3003. }
  3004. t.default = function(e, t, n) {
  3005. return t && s(e.prototype, t), n && s(e, n), e
  3006. }
  3007. }, function(e, t) {
  3008. e = e.exports = {
  3009. version: "2.6.12"
  3010. };
  3011. "number" == typeof __e && (__e = e)
  3012. }, function(e, t, n) {
  3013. "use strict";
  3014. Object.defineProperty(t, "__esModule", {
  3015. value: !0
  3016. });
  3017. var i = a(n(1)),
  3018. r = a(n(2)),
  3019. n = a(n(10));
  3020. function a(e) {
  3021. return e && e.__esModule ? e : {
  3022. default: e
  3023. }
  3024. }(0, r.default)(s, null, [{
  3025. key: "e",
  3026. value: function(e, t) {
  3027. t = "[" + (e = !e || s.FORCE_GLOBAL_TAG ? s.GLOBAL_TAG : e) + "] > " + t;
  3028. s.ENABLE_CALLBACK && s.emitter.emit("log", "error", t), s.ENABLE_ERROR && (
  3029. console.error ? console.error(t) : console.warn ? console.warn(t) :
  3030. console.log(t))
  3031. }
  3032. }, {
  3033. key: "i",
  3034. value: function(e, t) {
  3035. t = "[" + (e = !e || s.FORCE_GLOBAL_TAG ? s.GLOBAL_TAG : e) + "] > " + t;
  3036. s.ENABLE_CALLBACK && s.emitter.emit("log", "info", t), s.ENABLE_INFO && (console
  3037. .info ? console.info(t) : console.log(t))
  3038. }
  3039. }, {
  3040. key: "w",
  3041. value: function(e, t) {
  3042. t = "[" + (e = !e || s.FORCE_GLOBAL_TAG ? s.GLOBAL_TAG : e) + "] > " + t;
  3043. s.ENABLE_CALLBACK && s.emitter.emit("log", "warn", t), s.ENABLE_WARN && (console
  3044. .warn ? console.warn(t) : console.log(t))
  3045. }
  3046. }, {
  3047. key: "d",
  3048. value: function(e, t) {
  3049. t = "[" + (e = !e || s.FORCE_GLOBAL_TAG ? s.GLOBAL_TAG : e) + "] > " + t;
  3050. s.ENABLE_CALLBACK && s.emitter.emit("log", "debug", t), s.ENABLE_DEBUG && (
  3051. console.debug ? console.debug(t) : console.log(t))
  3052. }
  3053. }, {
  3054. key: "v",
  3055. value: function(e, t) {
  3056. t = "[" + (e = !e || s.FORCE_GLOBAL_TAG ? s.GLOBAL_TAG : e) + "] > " + t;
  3057. s.ENABLE_CALLBACK && s.emitter.emit("log", "verbose", t), s.ENABLE_VERBOSE &&
  3058. console.log(t)
  3059. }
  3060. }]), r = s;
  3061. function s() {
  3062. (0, i.default)(this, s)
  3063. }
  3064. r.GLOBAL_TAG = "flv.js", r.FORCE_GLOBAL_TAG = !1, r.ENABLE_ERROR = !0, r.ENABLE_INFO = !0, r
  3065. .ENABLE_WARN = !0, r.ENABLE_DEBUG = !0, r.ENABLE_VERBOSE = !0, r.ENABLE_CALLBACK = !1, r
  3066. .emitter = new n.default, t.default = r
  3067. }, function(e, t, n) {
  3068. "use strict";
  3069. Object.defineProperty(t, "__esModule", {
  3070. value: !0
  3071. }), t.NotImplementedException = t.InvalidArgumentException = t.IllegalStateException = t
  3072. .RuntimeException = void 0;
  3073. var i = u(n(21)),
  3074. r = u(n(25)),
  3075. a = u(n(26)),
  3076. s = u(n(1)),
  3077. o = u(n(2));
  3078. function u(e) {
  3079. return e && e.__esModule ? e : {
  3080. default: e
  3081. }
  3082. }
  3083. n = t.RuntimeException = ((0, o.default)(d, [{
  3084. key: "toString",
  3085. value: function() {
  3086. return this.name + ": " + this.message
  3087. }
  3088. }, {
  3089. key: "name",
  3090. get: function() {
  3091. return "RuntimeException"
  3092. }
  3093. }, {
  3094. key: "message",
  3095. get: function() {
  3096. return this._message
  3097. }
  3098. }]), d);
  3099. function d(e) {
  3100. (0, s.default)(this, d), this._message = e
  3101. }
  3102. t.IllegalStateException = ((0, a.default)(l, n), (0, o.default)(l, [{
  3103. key: "name",
  3104. get: function() {
  3105. return "IllegalStateException"
  3106. }
  3107. }]), l);
  3108. function l(e) {
  3109. return (0, s.default)(this, l), (0, r.default)(this, (l.__proto__ || (0, i.default)(l)).call(
  3110. this, e))
  3111. }
  3112. t.InvalidArgumentException = ((0, a.default)(h, n), (0, o.default)(h, [{
  3113. key: "name",
  3114. get: function() {
  3115. return "InvalidArgumentException"
  3116. }
  3117. }]), h);
  3118. function h(e) {
  3119. return (0, s.default)(this, h), (0, r.default)(this, (h.__proto__ || (0, i.default)(h)).call(
  3120. this, e))
  3121. }
  3122. t.NotImplementedException = ((0, a.default)(c, n), (0, o.default)(c, [{
  3123. key: "name",
  3124. get: function() {
  3125. return "NotImplementedException"
  3126. }
  3127. }]), c);
  3128. function c(e) {
  3129. return (0, s.default)(this, c), (0, r.default)(this, (c.__proto__ || (0, i.default)(c)).call(
  3130. this, e))
  3131. }
  3132. }, function(e, t) {
  3133. e = e.exports = "undefined" != typeof window && window.Math == Math ? window : "undefined" !=
  3134. typeof self && self.Math == Math ? self : Function("return this")();
  3135. "number" == typeof __g && (__g = e)
  3136. }, function(e, t, n) {
  3137. var i = n(49)("wks"),
  3138. r = n(35),
  3139. a = n(6).Symbol,
  3140. s = "function" == typeof a;
  3141. (e.exports = function(e) {
  3142. return i[e] || (i[e] = s && a[e] || (s ? a : r)("Symbol." + e))
  3143. }).store = i
  3144. }, function(e, t, n) {
  3145. function m(e, t, n) {
  3146. var i, r, a, s = e & m.F,
  3147. o = e & m.G,
  3148. u = e & m.S,
  3149. d = e & m.P,
  3150. l = e & m.B,
  3151. h = e & m.W,
  3152. c = o ? y : y[t] || (y[t] = {}),
  3153. _ = c[L],
  3154. f = o ? p : u ? p[t] : (p[t] || {})[L];
  3155. for (i in n = o ? t : n)(r = !s && f && void 0 !== f[i]) && M(c, i) || (a = (r ? f : n)[i], c[
  3156. i] = o && "function" != typeof f[i] ? n[i] : l && r ? v(a, p) : h && f[i] == a ?
  3157. function(i) {
  3158. function e(e, t, n) {
  3159. if (this instanceof i) {
  3160. switch (arguments.length) {
  3161. case 0:
  3162. return new i;
  3163. case 1:
  3164. return new i(e);
  3165. case 2:
  3166. return new i(e, t)
  3167. }
  3168. return new i(e, t, n)
  3169. }
  3170. return i.apply(this, arguments)
  3171. }
  3172. return e[L] = i[L], e
  3173. }(a) : d && "function" == typeof a ? v(Function.call, a) : a, d && ((c.virtual || (c
  3174. .virtual = {}))[i] = a, e & m.R && _ && !_[i] && g(_, i, a)))
  3175. }
  3176. var p = n(6),
  3177. y = n(3),
  3178. v = n(22),
  3179. g = n(17),
  3180. M = n(18),
  3181. L = "prototype";
  3182. m.F = 1, m.G = 2, m.S = 4, m.P = 8, m.B = 16, m.W = 32, m.U = 64, m.R = 128, e.exports = m
  3183. }, function(e, t, n) {
  3184. "use strict";
  3185. t.__esModule = !0;
  3186. var i = s(n(270)),
  3187. r = s(n(272)),
  3188. a = "function" == typeof r.default && "symbol" == typeof i.default ? function(e) {
  3189. return typeof e
  3190. } : function(e) {
  3191. return e && "function" == typeof r.default && e.constructor === r.default && e !== r.default
  3192. .prototype ? "symbol" : typeof e
  3193. };
  3194. function s(e) {
  3195. return e && e.__esModule ? e : {
  3196. default: e
  3197. }
  3198. }
  3199. t.default = "function" == typeof r.default && "symbol" === a(i.default) ? function(e) {
  3200. return void 0 === e ? "undefined" : a(e)
  3201. } : function(e) {
  3202. return e && "function" == typeof r.default && e.constructor === r.default && e !== r.default
  3203. .prototype ? "symbol" : void 0 === e ? "undefined" : a(e)
  3204. }
  3205. }, function(e, t, n) {
  3206. "use strict";
  3207. var i = "object" == typeof Reflect ? Reflect : null,
  3208. u = i && "function" == typeof i.apply ? i.apply : function(e, t, n) {
  3209. return Function.prototype.apply.call(e, t, n)
  3210. };
  3211. var r = i && "function" == typeof i.ownKeys ? i.ownKeys : Object.getOwnPropertySymbols ? function(
  3212. e) {
  3213. return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))
  3214. } : function(e) {
  3215. return Object.getOwnPropertyNames(e)
  3216. },
  3217. a = Number.isNaN || function(e) {
  3218. return e != e
  3219. };
  3220. function s() {
  3221. s.init.call(this)
  3222. }
  3223. e.exports = s, e.exports.once = function(o, u) {
  3224. return new Promise(function(e, t) {
  3225. function n(e) {
  3226. o.removeListener(u, i), t(e)
  3227. }
  3228. function i() {
  3229. "function" == typeof o.removeListener && o.removeListener("error", n), e([]
  3230. .slice.call(arguments))
  3231. }
  3232. var r, a, s;
  3233. p(o, u, i, {
  3234. once: !0
  3235. }), "error" !== u && (a = n, s = {
  3236. once: !0
  3237. }, "function" == typeof(r = o).on && p(r, "error", a, s))
  3238. })
  3239. }, (s.EventEmitter = s).prototype._events = void 0, s.prototype._eventsCount = 0, s.prototype
  3240. ._maxListeners = void 0;
  3241. var o = 10;
  3242. function d(e) {
  3243. if ("function" != typeof e) throw new TypeError(
  3244. 'The "listener" argument must be of type Function. Received type ' + typeof e)
  3245. }
  3246. function l(e) {
  3247. return void 0 === e._maxListeners ? s.defaultMaxListeners : e._maxListeners
  3248. }
  3249. function h(e, t, n, i) {
  3250. var r, a;
  3251. return d(n), void 0 === (r = e._events) ? (r = e._events = Object.create(null), e._eventsCount =
  3252. 0) : (void 0 !== r.newListener && (e.emit("newListener", t, n.listener || n), r = e
  3253. ._events), a = r[t]), void 0 === a ? (a = r[t] = n, ++e._eventsCount) : ("function" ==
  3254. typeof a ? a = r[t] = i ? [n, a] : [a, n] : i ? a.unshift(n) : a.push(n), 0 < (n = l(
  3255. e)) && a.length > n && !a.warned && (a.warned = !0, (n = new Error(
  3256. "Possible EventEmitter memory leak detected. " + a.length + " " + String(
  3257. t) + " listeners added. Use emitter.setMaxListeners() to increase limit"
  3258. ))
  3259. .name = "MaxListenersExceededWarning", n.emitter = e, n.type = t, n.count = a
  3260. .length, n = n, console && console.warn && console.warn(n))), e
  3261. }
  3262. function c(e, t, n) {
  3263. e = {
  3264. fired: !1,
  3265. wrapFn: void 0,
  3266. target: e,
  3267. type: t,
  3268. listener: n
  3269. }, t = function() {
  3270. if (!this.fired) return this.target.removeListener(this.type, this.wrapFn), this
  3271. .fired = !0, 0 === arguments.length ? this.listener.call(this.target) : this
  3272. .listener.apply(this.target, arguments)
  3273. }.bind(e);
  3274. return t.listener = n, e.wrapFn = t
  3275. }
  3276. function _(e, t, n) {
  3277. e = e._events;
  3278. if (void 0 === e) return [];
  3279. t = e[t];
  3280. return void 0 === t ? [] : "function" == typeof t ? n ? [t.listener || t] : [t] : n ? function(
  3281. e) {
  3282. for (var t = new Array(e.length), n = 0; n < t.length; ++n) t[n] = e[n].listener || e[
  3283. n];
  3284. return t
  3285. }(t) : m(t, t.length)
  3286. }
  3287. function f(e) {
  3288. var t = this._events;
  3289. if (void 0 !== t) {
  3290. e = t[e];
  3291. if ("function" == typeof e) return 1;
  3292. if (void 0 !== e) return e.length
  3293. }
  3294. return 0
  3295. }
  3296. function m(e, t) {
  3297. for (var n = new Array(t), i = 0; i < t; ++i) n[i] = e[i];
  3298. return n
  3299. }
  3300. function p(n, i, r, a) {
  3301. if ("function" == typeof n.on) a.once ? n.once(i, r) : n.on(i, r);
  3302. else {
  3303. if ("function" != typeof n.addEventListener) throw new TypeError(
  3304. 'The "emitter" argument must be of type EventEmitter. Received type ' + typeof n
  3305. );
  3306. n.addEventListener(i, function e(t) {
  3307. a.once && n.removeEventListener(i, e), r(t)
  3308. })
  3309. }
  3310. }
  3311. Object.defineProperty(s, "defaultMaxListeners", {
  3312. enumerable: !0,
  3313. get: function() {
  3314. return o
  3315. },
  3316. set: function(e) {
  3317. if ("number" != typeof e || e < 0 || a(e)) throw new RangeError(
  3318. 'The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' +
  3319. e + ".");
  3320. o = e
  3321. }
  3322. }), s.init = function() {
  3323. void 0 !== this._events && this._events !== Object.getPrototypeOf(this)._events || (this
  3324. ._events = Object.create(null), this._eventsCount = 0), this._maxListeners = this
  3325. ._maxListeners || void 0
  3326. }, s.prototype.setMaxListeners = function(e) {
  3327. if ("number" != typeof e || e < 0 || a(e)) throw new RangeError(
  3328. 'The value of "n" is out of range. It must be a non-negative number. Received ' +
  3329. e + ".");
  3330. return this._maxListeners = e, this
  3331. }, s.prototype.getMaxListeners = function() {
  3332. return l(this)
  3333. }, s.prototype.emit = function(e) {
  3334. for (var t = [], n = 1; n < arguments.length; n++) t.push(arguments[n]);
  3335. var i, r = "error" === e,
  3336. a = this._events;
  3337. if (void 0 !== a) r = r && void 0 === a.error;
  3338. else if (!r) return !1;
  3339. if (r) {
  3340. if ((i = 0 < t.length ? t[0] : i) instanceof Error) throw i;
  3341. r = new Error("Unhandled error." + (i ? " (" + i.message + ")" : ""));
  3342. throw r.context = i, r
  3343. }
  3344. e = a[e];
  3345. if (void 0 === e) return !1;
  3346. if ("function" == typeof e) u(e, this, t);
  3347. else
  3348. for (var s = e.length, o = m(e, s), n = 0; n < s; ++n) u(o[n], this, t);
  3349. return !0
  3350. }, s.prototype.on = s.prototype.addListener = function(e, t) {
  3351. return h(this, e, t, !1)
  3352. }, s.prototype.prependListener = function(e, t) {
  3353. return h(this, e, t, !0)
  3354. }, s.prototype.once = function(e, t) {
  3355. return d(t), this.on(e, c(this, e, t)), this
  3356. }, s.prototype.prependOnceListener = function(e, t) {
  3357. return d(t), this.prependListener(e, c(this, e, t)), this
  3358. }, s.prototype.removeListener = function(e, t) {
  3359. var n, i, r, a, s;
  3360. if (d(t), void 0 === (i = this._events)) return this;
  3361. if (void 0 === (n = i[e])) return this;
  3362. if (n === t || n.listener === t) 0 == --this._eventsCount ? this._events = Object.create(
  3363. null) : (delete i[e], i.removeListener && this.emit("removeListener", e, n
  3364. .listener || t));
  3365. else if ("function" != typeof n) {
  3366. for (r = -1, a = n.length - 1; 0 <= a; a--)
  3367. if (n[a] === t || n[a].listener === t) {
  3368. s = n[a].listener, r = a;
  3369. break
  3370. } if (r < 0) return this;
  3371. 0 === r ? n.shift() : function(e, t) {
  3372. for (; t + 1 < e.length; t++) e[t] = e[t + 1];
  3373. e.pop()
  3374. }(n, r), 1 === n.length && (i[e] = n[0]), void 0 !== i.removeListener && this.emit(
  3375. "removeListener", e, s || t)
  3376. }
  3377. return this
  3378. }, s.prototype.off = s.prototype.removeListener, s.prototype.removeAllListeners = function(e) {
  3379. var t, n = this._events;
  3380. if (void 0 === n) return this;
  3381. if (void 0 === n.removeListener) return 0 === arguments.length ? (this._events = Object
  3382. .create(null), this._eventsCount = 0) : void 0 !== n[e] && (0 == --this
  3383. ._eventsCount ? this._events = Object.create(null) : delete n[e]), this;
  3384. if (0 === arguments.length) {
  3385. for (var i, r = Object.keys(n), a = 0; a < r.length; ++a) "removeListener" !== (i = r[
  3386. a]) && this.removeAllListeners(i);
  3387. return this.removeAllListeners("removeListener"), this._events = Object.create(null),
  3388. this._eventsCount = 0, this
  3389. }
  3390. if ("function" == typeof(t = n[e])) this.removeListener(e, t);
  3391. else if (void 0 !== t)
  3392. for (a = t.length - 1; 0 <= a; a--) this.removeListener(e, t[a]);
  3393. return this
  3394. }, s.prototype.listeners = function(e) {
  3395. return _(this, e, !0)
  3396. }, s.prototype.rawListeners = function(e) {
  3397. return _(this, e, !1)
  3398. }, s.listenerCount = function(e, t) {
  3399. return "function" == typeof e.listenerCount ? e.listenerCount(t) : f.call(e, t)
  3400. }, s.prototype.listenerCount = f, s.prototype.eventNames = function() {
  3401. return 0 < this._eventsCount ? r(this._events) : []
  3402. }
  3403. }, function(e, t, n) {
  3404. e.exports = {
  3405. default: n(236),
  3406. __esModule: !0
  3407. }
  3408. }, function(e, t, n) {
  3409. var i = n(13),
  3410. r = n(69),
  3411. a = n(45),
  3412. s = Object.defineProperty;
  3413. t.f = n(14) ? Object.defineProperty : function(e, t, n) {
  3414. if (i(e), t = a(t, !0), i(n), r) try {
  3415. return s(e, t, n)
  3416. } catch (e) {}
  3417. if ("get" in n || "set" in n) throw TypeError("Accessors not supported!");
  3418. return "value" in n && (e[t] = n.value), e
  3419. }
  3420. }, function(e, t, n) {
  3421. var i = n(16);
  3422. e.exports = function(e) {
  3423. if (!i(e)) throw TypeError(e + " is not an object!");
  3424. return e
  3425. }
  3426. }, function(e, t, n) {
  3427. e.exports = !n(23)(function() {
  3428. return 7 != Object.defineProperty({}, "a", {
  3429. get: function() {
  3430. return 7
  3431. }
  3432. }).a
  3433. })
  3434. }, function(e, t, n) {
  3435. "use strict";
  3436. Object.defineProperty(t, "__esModule", {
  3437. value: !0
  3438. }), t.BaseLoader = t.LoaderErrors = t.LoaderStatus = void 0;
  3439. var i = s(n(1)),
  3440. r = s(n(2)),
  3441. a = n(5);
  3442. function s(e) {
  3443. return e && e.__esModule ? e : {
  3444. default: e
  3445. }
  3446. }
  3447. var o = t.LoaderStatus = {
  3448. kIdle: 0,
  3449. kConnecting: 1,
  3450. kBuffering: 2,
  3451. kError: 3,
  3452. kComplete: 4
  3453. };
  3454. t.LoaderErrors = {
  3455. OK: "OK",
  3456. EXCEPTION: "Exception",
  3457. HTTP_STATUS_CODE_INVALID: "HttpStatusCodeInvalid",
  3458. CONNECTING_TIMEOUT: "ConnectingTimeout",
  3459. EARLY_EOF: "EarlyEof",
  3460. UNRECOVERABLE_EARLY_EOF: "UnrecoverableEarlyEof"
  3461. }, t.BaseLoader = ((0, r.default)(u, [{
  3462. key: "destroy",
  3463. value: function() {
  3464. this._status = o.kIdle, this._onContentLengthKnown = null, this
  3465. ._onURLRedirect = null, this._onDataArrival = null, this._onError =
  3466. null, this._onComplete = null
  3467. }
  3468. }, {
  3469. key: "isWorking",
  3470. value: function() {
  3471. return this._status === o.kConnecting || this._status === o.kBuffering
  3472. }
  3473. }, {
  3474. key: "open",
  3475. value: function(e, t) {
  3476. throw new a.NotImplementedException("Unimplemented abstract function!")
  3477. }
  3478. }, {
  3479. key: "abort",
  3480. value: function() {
  3481. throw new a.NotImplementedException("Unimplemented abstract function!")
  3482. }
  3483. }, {
  3484. key: "type",
  3485. get: function() {
  3486. return this._type
  3487. }
  3488. }, {
  3489. key: "status",
  3490. get: function() {
  3491. return this._status
  3492. }
  3493. }, {
  3494. key: "needStashBuffer",
  3495. get: function() {
  3496. return this._needStash
  3497. }
  3498. }, {
  3499. key: "onContentLengthKnown",
  3500. get: function() {
  3501. return this._onContentLengthKnown
  3502. },
  3503. set: function(e) {
  3504. this._onContentLengthKnown = e
  3505. }
  3506. }, {
  3507. key: "onURLRedirect",
  3508. get: function() {
  3509. return this._onURLRedirect
  3510. },
  3511. set: function(e) {
  3512. this._onURLRedirect = e
  3513. }
  3514. }, {
  3515. key: "onDataArrival",
  3516. get: function() {
  3517. return this._onDataArrival
  3518. },
  3519. set: function(e) {
  3520. this._onDataArrival = e
  3521. }
  3522. }, {
  3523. key: "onError",
  3524. get: function() {
  3525. return this._onError
  3526. },
  3527. set: function(e) {
  3528. this._onError = e
  3529. }
  3530. }, {
  3531. key: "onComplete",
  3532. get: function() {
  3533. return this._onComplete
  3534. },
  3535. set: function(e) {
  3536. this._onComplete = e
  3537. }
  3538. }]), u);
  3539. function u(e) {
  3540. (0, i.default)(this, u), this._type = e || "undefined", this._status = o.kIdle, this
  3541. ._needStash = !1, this._onContentLengthKnown = null, this._onURLRedirect = null, this
  3542. ._onDataArrival = null, this._onError = null, this._onComplete = null
  3543. }
  3544. }, function(e, t) {
  3545. e.exports = function(e) {
  3546. return "object" == typeof e ? null !== e : "function" == typeof e
  3547. }
  3548. }, function(e, t, n) {
  3549. var i = n(12),
  3550. r = n(28);
  3551. e.exports = n(14) ? function(e, t, n) {
  3552. return i.f(e, t, r(1, n))
  3553. } : function(e, t, n) {
  3554. return e[t] = n, e
  3555. }
  3556. }, function(e, t) {
  3557. var n = {}.hasOwnProperty;
  3558. e.exports = function(e, t) {
  3559. return n.call(e, t)
  3560. }
  3561. }, function(e, t, n) {
  3562. var i = n(72),
  3563. r = n(43);
  3564. e.exports = function(e) {
  3565. return i(r(e))
  3566. }
  3567. }, function(e, t, n) {
  3568. e.exports = {
  3569. default: n(292),
  3570. __esModule: !0
  3571. }
  3572. }, function(e, t, n) {
  3573. e.exports = {
  3574. default: n(302),
  3575. __esModule: !0
  3576. }
  3577. }, function(e, t, n) {
  3578. var a = n(34);
  3579. e.exports = function(i, r, e) {
  3580. if (a(i), void 0 === r) return i;
  3581. switch (e) {
  3582. case 1:
  3583. return function(e) {
  3584. return i.call(r, e)
  3585. };
  3586. case 2:
  3587. return function(e, t) {
  3588. return i.call(r, e, t)
  3589. };
  3590. case 3:
  3591. return function(e, t, n) {
  3592. return i.call(r, e, t, n)
  3593. }
  3594. }
  3595. return function() {
  3596. return i.apply(r, arguments)
  3597. }
  3598. }
  3599. }, function(e, t) {
  3600. e.exports = function(e) {
  3601. try {
  3602. return !!e()
  3603. } catch (e) {
  3604. return !0
  3605. }
  3606. }
  3607. }, function(e, t, n) {
  3608. var i = n(43);
  3609. e.exports = function(e) {
  3610. return Object(i(e))
  3611. }
  3612. }, function(e, t, n) {
  3613. "use strict";
  3614. t.__esModule = !0;
  3615. var i, r = n(9),
  3616. a = (i = r) && i.__esModule ? i : {
  3617. default: i
  3618. };
  3619. t.default = function(e, t) {
  3620. if (!e) throw new ReferenceError(
  3621. "this hasn't been initialised - super() hasn't been called");
  3622. return !t || "object" !== (void 0 === t ? "undefined" : (0, a.default)(t)) && "function" !=
  3623. typeof t ? e : t
  3624. }
  3625. }, function(e, t, n) {
  3626. "use strict";
  3627. t.__esModule = !0;
  3628. var i = s(n(38)),
  3629. r = s(n(304)),
  3630. a = s(n(9));
  3631. function s(e) {
  3632. return e && e.__esModule ? e : {
  3633. default: e
  3634. }
  3635. }
  3636. t.default = function(e, t) {
  3637. if ("function" != typeof t && null !== t) throw new TypeError(
  3638. "Super expression must either be null or a function, not " + (void 0 === t ?
  3639. "undefined" : (0, a.default)(t)));
  3640. e.prototype = (0, r.default)(t && t.prototype, {
  3641. constructor: {
  3642. value: e,
  3643. enumerable: !1,
  3644. writable: !0,
  3645. configurable: !0
  3646. }
  3647. }), t && (i.default ? (0, i.default)(e, t) : e.__proto__ = t)
  3648. }
  3649. }, function(e, t) {
  3650. e.exports = !0
  3651. }, function(e, t) {
  3652. e.exports = function(e, t) {
  3653. return {
  3654. enumerable: !(1 & e),
  3655. configurable: !(2 & e),
  3656. writable: !(4 & e),
  3657. value: t
  3658. }
  3659. }
  3660. }, function(e, t) {
  3661. e.exports = {}
  3662. }, function(e, t, n) {
  3663. var i = n(71),
  3664. r = n(50);
  3665. e.exports = Object.keys || function(e) {
  3666. return i(e, r)
  3667. }
  3668. }, function(e, t) {
  3669. var n = {}.toString;
  3670. e.exports = function(e) {
  3671. return n.call(e).slice(8, -1)
  3672. }
  3673. }, function(e, t, n) {
  3674. "use strict";
  3675. t.__esModule = !0;
  3676. var a = i(n(21)),
  3677. s = i(n(308));
  3678. function i(e) {
  3679. return e && e.__esModule ? e : {
  3680. default: e
  3681. }
  3682. }
  3683. t.default = function e(t, n, i) {
  3684. null === t && (t = Function.prototype);
  3685. var r = (0, s.default)(t, n);
  3686. if (void 0 !== r) {
  3687. if ("value" in r) return r.value;
  3688. r = r.get;
  3689. return void 0 !== r ? r.call(i) : void 0
  3690. }
  3691. t = (0, a.default)(t);
  3692. if (null !== t) return e(t, n, i)
  3693. }
  3694. }, function(e, t, n) {
  3695. "use strict";
  3696. Object.defineProperty(t, "__esModule", {
  3697. value: !0
  3698. });
  3699. var i, r = n(20),
  3700. a = (i = r) && i.__esModule ? i : {
  3701. default: i
  3702. };
  3703. var s = {};
  3704. ! function() {
  3705. var e, t = self.navigator.userAgent.toLowerCase(),
  3706. n = /(edge)\/([\w.]+)/.exec(t) || /(opr)[\/]([\w.]+)/.exec(t) || /(chrome)[ \/]([\w.]+)/
  3707. .exec(t) || /(iemobile)[\/]([\w.]+)/.exec(t) ||
  3708. /(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(t) ||
  3709. /(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(t) ||
  3710. /(webkit)[ \/]([\w.]+)/.exec(t) || /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t) ||
  3711. /(msie) ([\w.]+)/.exec(t) || 0 <= t.indexOf("trident") && /(rv)(?::| )([\w.]+)/.exec(t) || t
  3712. .indexOf("compatible") < 0 && /(firefox)[ \/]([\w.]+)/.exec(t) || [],
  3713. i = /(ipad)/.exec(t) || /(ipod)/.exec(t) || /(windows phone)/.exec(t) || /(iphone)/.exec(
  3714. t) || /(kindle)/.exec(t) || /(android)/.exec(t) || /(windows)/.exec(t) || /(mac)/.exec(
  3715. t) ||
  3716. /(linux)/.exec(t) || /(cros)/.exec(t) || [],
  3717. t = {
  3718. browser: n[5] || n[3] || n[1] || "",
  3719. version: n[2] || n[4] || "0",
  3720. majorVersion: n[4] || n[2] || "0",
  3721. platform: i[0] || ""
  3722. },
  3723. n = {};
  3724. for (e in t.browser && (n[t.browser] = !0, i = t.majorVersion.split("."), n.version = {
  3725. major: parseInt(t.majorVersion, 10),
  3726. string: t.version
  3727. }, 1 < i.length && (n.version.minor = parseInt(i[1], 10)), 2 < i.length && (n.version
  3728. .build = parseInt(i[2], 10))), t.platform && (n[t.platform] = !0), (n.chrome || n.opr ||
  3729. n.safari) && (n.webkit = !0), (n.rv || n.iemobile) && (n.rv && delete n.rv, t.browser =
  3730. "msie", n.msie = !0), n.edge && (delete n.edge, t.browser = "msedge", n.msedge = !0), n
  3731. .opr && (t.browser = "opera", n.opera = !0), n.safari && n.android && (n[t.browser =
  3732. "android"] = !0), n.name = t.browser, n.platform = t.platform, s) s.hasOwnProperty(e) &&
  3733. delete s[e];
  3734. (0, a.default)(s, n)
  3735. }(), t.default = s
  3736. }, function(e, t) {
  3737. e.exports = function(e) {
  3738. if ("function" != typeof e) throw TypeError(e + " is not a function!");
  3739. return e
  3740. }
  3741. }, function(e, t) {
  3742. var n = 0,
  3743. i = Math.random();
  3744. e.exports = function(e) {
  3745. return "Symbol(".concat(void 0 === e ? "" : e, ")_", (++n + i).toString(36))
  3746. }
  3747. }, function(e, t, n) {
  3748. var i = n(12).f,
  3749. r = n(18),
  3750. a = n(7)("toStringTag");
  3751. e.exports = function(e, t, n) {
  3752. e && !r(e = n ? e : e.prototype, a) && i(e, a, {
  3753. configurable: !0,
  3754. value: t
  3755. })
  3756. }
  3757. }, function(e, t) {
  3758. t.f = {}.propertyIsEnumerable
  3759. }, function(e, t, n) {
  3760. e.exports = {
  3761. default: n(295),
  3762. __esModule: !0
  3763. }
  3764. }, function(e, t, n) {
  3765. "use strict";
  3766. Object.defineProperty(t, "__esModule", {
  3767. value: !0
  3768. });
  3769. t.default = {
  3770. ERROR: "error",
  3771. LOADING_COMPLETE: "loading_complete",
  3772. RECOVERED_EARLY_EOF: "recovered_early_eof",
  3773. MEDIA_INFO: "media_info",
  3774. METADATA_ARRIVED: "metadata_arrived",
  3775. SCRIPTDATA_ARRIVED: "scriptdata_arrived",
  3776. STATISTICS_INFO: "statistics_info",
  3777. VIDEO_RESOLUTION_CHANGED: "video_resolution_changed",
  3778. MEDIA_SOURCE_ENDED: "media_source_ended",
  3779. MEDIA_SOURCE_CLOSE: "media_source_close",
  3780. VIDEO_FROZEN: "video_decoded_frame_frozen",
  3781. MS_BUFFER_FULL: "media_source_buffer_full",
  3782. LOADED_META_DATA: "loaded_meta_data",
  3783. MEDIA_SOURCE_ADD_ERROR: "media_source_add_error"
  3784. }
  3785. }, function(e, t, n) {
  3786. "use strict";
  3787. Object.defineProperty(t, "__esModule", {
  3788. value: !0
  3789. });
  3790. t.default = {
  3791. IO_ERROR: "io_error",
  3792. DEMUX_ERROR: "demux_error",
  3793. INIT_SEGMENT: "init_segment",
  3794. MEDIA_SEGMENT: "media_segment",
  3795. LOADING_COMPLETE: "loading_complete",
  3796. RECOVERED_EARLY_EOF: "recovered_early_eof",
  3797. MEDIA_INFO: "media_info",
  3798. METADATA_ARRIVED: "metadata_arrived",
  3799. SCRIPTDATA_ARRIVED: "scriptdata_arrived",
  3800. STATISTICS_INFO: "statistics_info",
  3801. RECOMMEND_SEEKPOINT: "recommend_seekpoint",
  3802. VIDEO_RESOLUTION_CHANGED: "video_resolution_changed",
  3803. PARSEDDATA_ARRIVED: "parseddata_arrived"
  3804. }
  3805. }, function(e, t, n) {
  3806. "use strict";
  3807. var i = n(237)(!0);
  3808. n(68)(String, "String", function(e) {
  3809. this._t = String(e), this._i = 0
  3810. }, function() {
  3811. var e = this._t,
  3812. t = this._i;
  3813. return t >= e.length ? {
  3814. value: void 0,
  3815. done: !0
  3816. } : (t = i(e, t), this._i += t.length, {
  3817. value: t,
  3818. done: !1
  3819. })
  3820. })
  3821. }, function(e, t) {
  3822. var n = Math.ceil,
  3823. i = Math.floor;
  3824. e.exports = function(e) {
  3825. return isNaN(e = +e) ? 0 : (0 < e ? i : n)(e)
  3826. }
  3827. }, function(e, t) {
  3828. e.exports = function(e) {
  3829. if (null == e) throw TypeError("Can't call method on " + e);
  3830. return e
  3831. }
  3832. }, function(e, t, n) {
  3833. var i = n(16),
  3834. r = n(6).document,
  3835. a = i(r) && i(r.createElement);
  3836. e.exports = function(e) {
  3837. return a ? r.createElement(e) : {}
  3838. }
  3839. }, function(e, t, n) {
  3840. var r = n(16);
  3841. e.exports = function(e, t) {
  3842. if (!r(e)) return e;
  3843. var n, i;
  3844. if (t && "function" == typeof(n = e.toString) && !r(i = n.call(e))) return i;
  3845. if ("function" == typeof(n = e.valueOf) && !r(i = n.call(e))) return i;
  3846. if (!t && "function" == typeof(n = e.toString) && !r(i = n.call(e))) return i;
  3847. throw TypeError("Can't convert object to primitive value")
  3848. }
  3849. }, function(e, t, n) {
  3850. function i() {}
  3851. var r = n(13),
  3852. a = n(239),
  3853. s = n(50),
  3854. o = n(48)("IE_PROTO"),
  3855. u = "prototype",
  3856. d = function() {
  3857. var e = n(44)("iframe"),
  3858. t = s.length;
  3859. for (e.style.display = "none", n(73).appendChild(e), e.src = "javascript:", (e = e
  3860. .contentWindow.document).open(), e.write("<script>document.F=Object<\/script>"), e
  3861. .close(), d = e.F; t--;) delete d[u][s[t]];
  3862. return d()
  3863. };
  3864. e.exports = Object.create || function(e, t) {
  3865. var n;
  3866. return null !== e ? (i[u] = r(e), n = new i, i[u] = null, n[o] = e) : n = d(), void 0 ===
  3867. t ? n : a(n, t)
  3868. }
  3869. }, function(e, t, n) {
  3870. var i = n(42),
  3871. r = Math.min;
  3872. e.exports = function(e) {
  3873. return 0 < e ? r(i(e), 9007199254740991) : 0
  3874. }
  3875. }, function(e, t, n) {
  3876. var i = n(49)("keys"),
  3877. r = n(35);
  3878. e.exports = function(e) {
  3879. return i[e] || (i[e] = r(e))
  3880. }
  3881. }, function(e, t, n) {
  3882. var i = n(3),
  3883. r = n(6),
  3884. a = "__core-js_shared__",
  3885. s = r[a] || (r[a] = {});
  3886. (e.exports = function(e, t) {
  3887. return s[e] || (s[e] = void 0 !== t ? t : {})
  3888. })("versions", []).push({
  3889. version: i.version,
  3890. mode: n(27) ? "pure" : "global",
  3891. copyright: "© 2020 Denis Pushkarev (zloirock.ru)"
  3892. })
  3893. }, function(e, t) {
  3894. e.exports =
  3895. "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf"
  3896. .split(",")
  3897. }, function(e, t, n) {
  3898. "use strict";
  3899. var r = n(34);
  3900. function i(e) {
  3901. var n, i;
  3902. this.promise = new e(function(e, t) {
  3903. if (void 0 !== n || void 0 !== i) throw TypeError("Bad Promise constructor");
  3904. n = e, i = t
  3905. }), this.resolve = r(n), this.reject = r(i)
  3906. }
  3907. e.exports.f = function(e) {
  3908. return new i(e)
  3909. }
  3910. }, function(e, t, n) {
  3911. var r = n(8),
  3912. a = n(3),
  3913. s = n(23);
  3914. e.exports = function(e, t) {
  3915. var n = (a.Object || {})[e] || Object[e],
  3916. i = {};
  3917. i[e] = t(n), r(r.S + r.F * s(function() {
  3918. n(1)
  3919. }), "Object", i)
  3920. }
  3921. }, function(e, t, n) {
  3922. e.exports = n(257)
  3923. }, function(e, t, n) {
  3924. "use strict";
  3925. t.__esModule = !0;
  3926. var i, r = n(11),
  3927. u = (i = r) && i.__esModule ? i : {
  3928. default: i
  3929. };
  3930. t.default = function(e) {
  3931. return function() {
  3932. var o = e.apply(this, arguments);
  3933. return new u.default(function(a, s) {
  3934. return function t(e, n) {
  3935. try {
  3936. var i = o[e](n),
  3937. r = i.value
  3938. } catch (e) {
  3939. return void s(e)
  3940. }
  3941. if (!i.done) return u.default.resolve(r).then(function(e) {
  3942. t("next", e)
  3943. }, function(e) {
  3944. t("throw", e)
  3945. });
  3946. a(r)
  3947. }("next")
  3948. })
  3949. }
  3950. }
  3951. }, function(Qt, en, e) {
  3952. var tn;
  3953. /*!
  3954. * jQuery JavaScript Library v3.6.0
  3955. * https://jquery.com/
  3956. *
  3957. * Includes Sizzle.js
  3958. * https://sizzlejs.com/
  3959. *
  3960. * Copyright OpenJS Foundation and other contributors
  3961. * Released under the MIT license
  3962. * https://jquery.org/license
  3963. *
  3964. * Date: 2021-03-02T17:08Z
  3965. */
  3966. ! function(e, t) {
  3967. "use strict";
  3968. "object" == typeof Qt.exports ? Qt.exports = e.document ? t(e, !0) : function(e) {
  3969. if (!e.document) throw new Error("jQuery requires a window with a document");
  3970. return t(e)
  3971. } : t(e)
  3972. }("undefined" != typeof window ? window : this, function(S, e) {
  3973. "use strict";
  3974. function m(e) {
  3975. return "function" == typeof e && "number" != typeof e.nodeType && "function" != typeof e
  3976. .item
  3977. }
  3978. function p(e) {
  3979. return null != e && e === e.window
  3980. }
  3981. var t = [],
  3982. n = Object.getPrototypeOf,
  3983. o = t.slice,
  3984. y = t.flat ? function(e) {
  3985. return t.flat.call(e)
  3986. } : function(e) {
  3987. return t.concat.apply([], e)
  3988. },
  3989. u = t.push,
  3990. r = t.indexOf,
  3991. i = {},
  3992. a = i.toString,
  3993. v = i.hasOwnProperty,
  3994. s = v.toString,
  3995. d = s.call(Object),
  3996. g = {},
  3997. k = S.document,
  3998. l = {
  3999. type: !0,
  4000. src: !0,
  4001. nonce: !0,
  4002. noModule: !0
  4003. };
  4004. function M(e, t, n) {
  4005. var i, r, a = (n = n || k).createElement("script");
  4006. if (a.text = e, t)
  4007. for (i in l)(r = t[i] || t.getAttribute && t.getAttribute(i)) && a.setAttribute(i,
  4008. r);
  4009. n.head.appendChild(a).parentNode.removeChild(a)
  4010. }
  4011. function f(e) {
  4012. return null == e ? e + "" : "object" == typeof e || "function" == typeof e ? i[a.call(
  4013. e)] || "object" : typeof e
  4014. }
  4015. var b = function(e, t) {
  4016. return new b.fn.init(e, t)
  4017. };
  4018. function h(e) {
  4019. var t = !!e && "length" in e && e.length,
  4020. n = f(e);
  4021. return !m(e) && !p(e) && ("array" === n || 0 === t || "number" == typeof t && 0 < t &&
  4022. t - 1 in e)
  4023. }
  4024. b.fn = b.prototype = {
  4025. jquery: "3.6.0",
  4026. constructor: b,
  4027. length: 0,
  4028. toArray: function() {
  4029. return o.call(this)
  4030. },
  4031. get: function(e) {
  4032. return null == e ? o.call(this) : e < 0 ? this[e + this.length] : this[e]
  4033. },
  4034. pushStack: function(e) {
  4035. e = b.merge(this.constructor(), e);
  4036. return e.prevObject = this, e
  4037. },
  4038. each: function(e) {
  4039. return b.each(this, e)
  4040. },
  4041. map: function(n) {
  4042. return this.pushStack(b.map(this, function(e, t) {
  4043. return n.call(e, t, e)
  4044. }))
  4045. },
  4046. slice: function() {
  4047. return this.pushStack(o.apply(this, arguments))
  4048. },
  4049. first: function() {
  4050. return this.eq(0)
  4051. },
  4052. last: function() {
  4053. return this.eq(-1)
  4054. },
  4055. even: function() {
  4056. return this.pushStack(b.grep(this, function(e, t) {
  4057. return (t + 1) % 2
  4058. }))
  4059. },
  4060. odd: function() {
  4061. return this.pushStack(b.grep(this, function(e, t) {
  4062. return t % 2
  4063. }))
  4064. },
  4065. eq: function(e) {
  4066. var t = this.length,
  4067. e = +e + (e < 0 ? t : 0);
  4068. return this.pushStack(0 <= e && e < t ? [this[e]] : [])
  4069. },
  4070. end: function() {
  4071. return this.prevObject || this.constructor()
  4072. },
  4073. push: u,
  4074. sort: t.sort,
  4075. splice: t.splice
  4076. }, b.extend = b.fn.extend = function() {
  4077. var e, t, n, i, r, a = arguments[0] || {},
  4078. s = 1,
  4079. o = arguments.length,
  4080. u = !1;
  4081. for ("boolean" == typeof a && (u = a, a = arguments[s] || {}, s++), "object" ==
  4082. typeof a || m(a) || (a = {}), s === o && (a = this, s--); s < o; s++)
  4083. if (null != (e = arguments[s]))
  4084. for (t in e) n = e[t], "__proto__" !== t && a !== n && (u && n && (b
  4085. .isPlainObject(n) || (i = Array.isArray(n))) ? (r = a[t], r =
  4086. i && !Array.isArray(r) ? [] : i || b.isPlainObject(r) ? r : {},
  4087. i = !1, a[t] = b.extend(u, r, n)) : void 0 !== n && (a[t] = n));
  4088. return a
  4089. }, b.extend({
  4090. expando: "jQuery" + ("3.6.0" + Math.random()).replace(/\D/g, ""),
  4091. isReady: !0,
  4092. error: function(e) {
  4093. throw new Error(e)
  4094. },
  4095. noop: function() {},
  4096. isPlainObject: function(e) {
  4097. return !(!e || "[object Object]" !== a.call(e)) && (!(e = n(e)) ||
  4098. "function" == typeof(e = v.call(e, "constructor") && e
  4099. .constructor) && s.call(e) === d)
  4100. },
  4101. isEmptyObject: function(e) {
  4102. for (var t in e) return !1;
  4103. return !0
  4104. },
  4105. globalEval: function(e, t, n) {
  4106. M(e, {
  4107. nonce: t && t.nonce
  4108. }, n)
  4109. },
  4110. each: function(e, t) {
  4111. var n, i = 0;
  4112. if (h(e))
  4113. for (n = e.length; i < n && !1 !== t.call(e[i], i, e[i]); i++);
  4114. else
  4115. for (i in e)
  4116. if (!1 === t.call(e[i], i, e[i])) break;
  4117. return e
  4118. },
  4119. makeArray: function(e, t) {
  4120. t = t || [];
  4121. return null != e && (h(Object(e)) ? b.merge(t, "string" == typeof e ? [
  4122. e
  4123. ] : e) : u.call(t, e)), t
  4124. },
  4125. inArray: function(e, t, n) {
  4126. return null == t ? -1 : r.call(t, e, n)
  4127. },
  4128. merge: function(e, t) {
  4129. for (var n = +t.length, i = 0, r = e.length; i < n; i++) e[r++] = t[i];
  4130. return e.length = r, e
  4131. },
  4132. grep: function(e, t, n) {
  4133. for (var i = [], r = 0, a = e.length, s = !n; r < a; r++) !t(e[r], r) !=
  4134. s && i.push(e[r]);
  4135. return i
  4136. },
  4137. map: function(e, t, n) {
  4138. var i, r, a = 0,
  4139. s = [];
  4140. if (h(e))
  4141. for (i = e.length; a < i; a++) null != (r = t(e[a], a, n)) && s
  4142. .push(r);
  4143. else
  4144. for (a in e) null != (r = t(e[a], a, n)) && s.push(r);
  4145. return y(s)
  4146. },
  4147. guid: 1,
  4148. support: g
  4149. }), "function" == typeof Symbol && (b.fn[Symbol.iterator] = t[Symbol.iterator]), b.each(
  4150. "Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),
  4151. function(e, t) {
  4152. i["[object " + t + "]"] = t.toLowerCase()
  4153. });
  4154. var c =
  4155. /*!
  4156. * Sizzle CSS Selector Engine v2.3.6
  4157. * https://sizzlejs.com/
  4158. *
  4159. * Copyright JS Foundation and other contributors
  4160. * Released under the MIT license
  4161. * https://js.foundation/
  4162. *
  4163. * Date: 2021-02-16
  4164. */
  4165. function(n) {
  4166. function h(e, t) {
  4167. return e = "0x" + e.slice(1) - 65536, t || (e < 0 ? String.fromCharCode(65536 +
  4168. e) : String.fromCharCode(e >> 10 | 55296, 1023 & e | 56320))
  4169. }
  4170. function c(e, t) {
  4171. return t ? "\0" === e ? "�" : e.slice(0, -1) + "\\" + e.charCodeAt(e.length - 1)
  4172. .toString(16) + " " : "\\" + e
  4173. }
  4174. function i() {
  4175. S()
  4176. }
  4177. var e, _, M, a, r, f, m, p, L, u, d, S, k, s, b, y, o, l, v, w = "sizzle" + +
  4178. new Date,
  4179. g = n.document,
  4180. D = 0,
  4181. T = 0,
  4182. E = ue(),
  4183. Y = ue(),
  4184. P = ue(),
  4185. C = ue(),
  4186. A = function(e, t) {
  4187. return e === t && (d = !0), 0
  4188. },
  4189. R = {}.hasOwnProperty,
  4190. t = [],
  4191. x = t.pop,
  4192. O = t.push,
  4193. I = t.push,
  4194. W = t.slice,
  4195. H = function(e, t) {
  4196. for (var n = 0, i = e.length; n < i; n++)
  4197. if (e[n] === t) return n;
  4198. return -1
  4199. },
  4200. j =
  4201. "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
  4202. F = "[\\x20\\t\\r\\n\\f]",
  4203. B = "(?:\\\\[\\da-fA-F]{1,6}" + F + "?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",
  4204. N = "\\[" + F + "*(" + B + ")(?:" + F + "*([*^$|!~]?=)" + F +
  4205. "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + B + "))|)" + F +
  4206. "*\\]",
  4207. z = ":(" + B +
  4208. ")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|" +
  4209. N + ")*)|.*)\\)|)",
  4210. U = new RegExp(F + "+", "g"),
  4211. V = new RegExp("^" + F + "+|((?:^|[^\\\\])(?:\\\\.)*)" + F + "+$", "g"),
  4212. G = new RegExp("^" + F + "*," + F + "*"),
  4213. J = new RegExp("^" + F + "*([>+~]|" + F + ")" + F + "*"),
  4214. q = new RegExp(F + "|>"),
  4215. K = new RegExp(z),
  4216. X = new RegExp("^" + B + "$"),
  4217. Z = {
  4218. ID: new RegExp("^#(" + B + ")"),
  4219. CLASS: new RegExp("^\\.(" + B + ")"),
  4220. TAG: new RegExp("^(" + B + "|[*])"),
  4221. ATTR: new RegExp("^" + N),
  4222. PSEUDO: new RegExp("^" + z),
  4223. CHILD: new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" +
  4224. F + "*(even|odd|(([+-]|)(\\d*)n|)" + F + "*(?:([+-]|)" + F +
  4225. "*(\\d+)|))" + F + "*\\)|)", "i"),
  4226. bool: new RegExp("^(?:" + j + ")$", "i"),
  4227. needsContext: new RegExp("^" + F +
  4228. "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + F +
  4229. "*((?:-\\d)?\\d*)" + F + "*\\)|)(?=[^-]|$)", "i")
  4230. },
  4231. $ = /HTML$/i,
  4232. Q = /^(?:input|select|textarea|button)$/i,
  4233. ee = /^h\d$/i,
  4234. te = /^[^{]+\{\s*\[native \w/,
  4235. ne = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
  4236. ie = /[+~]/,
  4237. re = new RegExp("\\\\[\\da-fA-F]{1,6}" + F + "?|\\\\([^\\r\\n\\f])", "g"),
  4238. ae = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,
  4239. se = ve(function(e) {
  4240. return !0 === e.disabled && "fieldset" === e.nodeName.toLowerCase()
  4241. }, {
  4242. dir: "parentNode",
  4243. next: "legend"
  4244. });
  4245. try {
  4246. I.apply(t = W.call(g.childNodes), g.childNodes), t[g.childNodes.length].nodeType
  4247. } catch (e) {
  4248. I = {
  4249. apply: t.length ? function(e, t) {
  4250. O.apply(e, W.call(t))
  4251. } : function(e, t) {
  4252. for (var n = e.length, i = 0; e[n++] = t[i++];);
  4253. e.length = n - 1
  4254. }
  4255. }
  4256. }
  4257. function oe(t, e, n, i) {
  4258. var r, a, s, o, u, d, l = e && e.ownerDocument,
  4259. h = e ? e.nodeType : 9;
  4260. if (n = n || [], "string" != typeof t || !t || 1 !== h && 9 !== h && 11 !== h)
  4261. return n;
  4262. if (!i && (S(e), e = e || k, b)) {
  4263. if (11 !== h && (o = ne.exec(t)))
  4264. if (d = o[1]) {
  4265. if (9 === h) {
  4266. if (!(a = e.getElementById(d))) return n;
  4267. if (a.id === d) return n.push(a), n
  4268. } else if (l && (a = l.getElementById(d)) && v(e, a) && a.id === d)
  4269. return n.push(a), n
  4270. } else {
  4271. if (o[2]) return I.apply(n, e.getElementsByTagName(t)), n;
  4272. if ((d = o[3]) && _.getElementsByClassName && e
  4273. .getElementsByClassName) return I.apply(n, e
  4274. .getElementsByClassName(d)), n
  4275. } if (_.qsa && !C[t + " "] && (!y || !y.test(t)) && (1 !== h ||
  4276. "object" !== e.nodeName.toLowerCase())) {
  4277. if (d = t, l = e, 1 === h && (q.test(t) || J.test(t))) {
  4278. for ((l = ie.test(t) && me(e.parentNode) || e) === e && _.scope || (
  4279. (s = e.getAttribute("id")) ? s = s.replace(ae, c) : e
  4280. .setAttribute("id", s = w)), r = (u = f(t)).length; r--;) u[
  4281. r] = (s ? "#" + s : ":scope") + " " + ye(u[r]);
  4282. d = u.join(",")
  4283. }
  4284. try {
  4285. return I.apply(n, l.querySelectorAll(d)), n
  4286. } catch (e) {
  4287. C(t, !0)
  4288. } finally {
  4289. s === w && e.removeAttribute("id")
  4290. }
  4291. }
  4292. }
  4293. return p(t.replace(V, "$1"), e, n, i)
  4294. }
  4295. function ue() {
  4296. var n = [];
  4297. function i(e, t) {
  4298. return n.push(e + " ") > M.cacheLength && delete i[n.shift()], i[e + " "] =
  4299. t
  4300. }
  4301. return i
  4302. }
  4303. function de(e) {
  4304. return e[w] = !0, e
  4305. }
  4306. function le(e) {
  4307. var t = k.createElement("fieldset");
  4308. try {
  4309. return !!e(t)
  4310. } catch (e) {
  4311. return !1
  4312. } finally {
  4313. t.parentNode && t.parentNode.removeChild(t)
  4314. }
  4315. }
  4316. function he(e, t) {
  4317. for (var n = e.split("|"), i = n.length; i--;) M.attrHandle[n[i]] = t
  4318. }
  4319. function ce(e, t) {
  4320. var n = t && e,
  4321. i = n && 1 === e.nodeType && 1 === t.nodeType && e.sourceIndex - t
  4322. .sourceIndex;
  4323. if (i) return i;
  4324. if (n)
  4325. for (; n = n.nextSibling;)
  4326. if (n === t) return -1;
  4327. return e ? 1 : -1
  4328. }
  4329. function _e(t) {
  4330. return function(e) {
  4331. return "form" in e ? e.parentNode && !1 === e.disabled ? "label" in e ?
  4332. "label" in e.parentNode ? e.parentNode.disabled === t : e
  4333. .disabled === t : e.isDisabled === t || e.isDisabled !== !t && se(
  4334. e) === t : e.disabled === t : "label" in e && e.disabled === t
  4335. }
  4336. }
  4337. function fe(s) {
  4338. return de(function(a) {
  4339. return a = +a, de(function(e, t) {
  4340. for (var n, i = s([], e.length, a), r = i.length; r--;)
  4341. e[n = i[r]] && (e[n] = !(t[n] = e[n]))
  4342. })
  4343. })
  4344. }
  4345. function me(e) {
  4346. return e && void 0 !== e.getElementsByTagName && e
  4347. }
  4348. for (e in _ = oe.support = {}, r = oe.isXML = function(e) {
  4349. var t = e && e.namespaceURI,
  4350. e = e && (e.ownerDocument || e).documentElement;
  4351. return !$.test(t || e && e.nodeName || "HTML")
  4352. }, S = oe.setDocument = function(e) {
  4353. var t, e = e ? e.ownerDocument || e : g;
  4354. return e != k && 9 === e.nodeType && e.documentElement && (s = (k = e)
  4355. .documentElement, b = !r(k), g != k && (t = k.defaultView) && t
  4356. .top !== t && (t.addEventListener ? t.addEventListener("unload", i,
  4357. !1) : t.attachEvent && t.attachEvent("onunload", i)), _.scope =
  4358. le(function(e) {
  4359. return s.appendChild(e).appendChild(k.createElement("div")),
  4360. void 0 !== e.querySelectorAll && !e.querySelectorAll(
  4361. ":scope fieldset div").length
  4362. }), _.attributes = le(function(e) {
  4363. return e.className = "i", !e.getAttribute("className")
  4364. }), _.getElementsByTagName = le(function(e) {
  4365. return e.appendChild(k.createComment("")), !e
  4366. .getElementsByTagName("*").length
  4367. }), _.getElementsByClassName = te.test(k.getElementsByClassName), _
  4368. .getById = le(function(e) {
  4369. return s.appendChild(e).id = w, !k.getElementsByName || !k
  4370. .getElementsByName(w).length
  4371. }), _.getById ? (M.filter.ID = function(e) {
  4372. var t = e.replace(re, h);
  4373. return function(e) {
  4374. return e.getAttribute("id") === t
  4375. }
  4376. }, M.find.ID = function(e, t) {
  4377. if (void 0 !== t.getElementById && b) {
  4378. e = t.getElementById(e);
  4379. return e ? [e] : []
  4380. }
  4381. }) : (M.filter.ID = function(e) {
  4382. var t = e.replace(re, h);
  4383. return function(e) {
  4384. e = void 0 !== e.getAttributeNode && e
  4385. .getAttributeNode("id");
  4386. return e && e.value === t
  4387. }
  4388. }, M.find.ID = function(e, t) {
  4389. if (void 0 !== t.getElementById && b) {
  4390. var n, i, r, a = t.getElementById(e);
  4391. if (a) {
  4392. if ((n = a.getAttributeNode("id")) && n.value === e)
  4393. return [a];
  4394. for (r = t.getElementsByName(e), i = 0; a = r[i++];)
  4395. if ((n = a.getAttributeNode("id")) && n
  4396. .value === e) return [a]
  4397. }
  4398. return []
  4399. }
  4400. }), M.find.TAG = _.getElementsByTagName ? function(e, t) {
  4401. return void 0 !== t.getElementsByTagName ? t
  4402. .getElementsByTagName(e) : _.qsa ? t.querySelectorAll(e) :
  4403. void 0
  4404. } : function(e, t) {
  4405. var n, i = [],
  4406. r = 0,
  4407. a = t.getElementsByTagName(e);
  4408. if ("*" !== e) return a;
  4409. for (; n = a[r++];) 1 === n.nodeType && i.push(n);
  4410. return i
  4411. }, M.find.CLASS = _.getElementsByClassName && function(e, t) {
  4412. if (void 0 !== t.getElementsByClassName && b) return t
  4413. .getElementsByClassName(e)
  4414. }, o = [], y = [], (_.qsa = te.test(k.querySelectorAll)) && (le(
  4415. function(e) {
  4416. var t;
  4417. s.appendChild(e).innerHTML = "<a id='" + w +
  4418. "'></a><select id='" + w +
  4419. "-\r\\' msallowcapture=''><option selected=''></option></select>",
  4420. e.querySelectorAll("[msallowcapture^='']").length &&
  4421. y.push("[*^$]=" + F + "*(?:''|\"\")"), e
  4422. .querySelectorAll("[selected]").length || y.push(
  4423. "\\[" + F + "*(?:value|" + j + ")"), e
  4424. .querySelectorAll("[id~=" + w + "-]").length || y
  4425. .push("~="), (t = k.createElement("input"))
  4426. .setAttribute("name", ""), e.appendChild(t), e
  4427. .querySelectorAll("[name='']").length || y.push(
  4428. "\\[" + F + "*name" + F + "*=" + F +
  4429. "*(?:''|\"\")"), e.querySelectorAll(":checked")
  4430. .length || y.push(":checked"), e.querySelectorAll(
  4431. "a#" + w + "+*").length || y.push(".#.+[+~]"), e
  4432. .querySelectorAll("\\\f"), y.push("[\\r\\n\\f]")
  4433. }), le(function(e) {
  4434. e.innerHTML =
  4435. "<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";
  4436. var t = k.createElement("input");
  4437. t.setAttribute("type", "hidden"), e.appendChild(t)
  4438. .setAttribute("name", "D"), e.querySelectorAll(
  4439. "[name=d]").length && y.push("name" + F +
  4440. "*[*^$|!~]?="), 2 !== e.querySelectorAll(
  4441. ":enabled").length && y.push(":enabled",
  4442. ":disabled"), s.appendChild(e).disabled = !0,
  4443. 2 !== e.querySelectorAll(":disabled").length && y
  4444. .push(":enabled", ":disabled"), e.querySelectorAll(
  4445. "*,:x"), y.push(",.*:")
  4446. })), (_.matchesSelector = te.test(l = s.matches || s
  4447. .webkitMatchesSelector || s.mozMatchesSelector || s
  4448. .oMatchesSelector || s.msMatchesSelector)) && le(function(e) {
  4449. _.disconnectedMatch = l.call(e, "*"), l.call(e,
  4450. "[s!='']:x"), o.push("!=", z)
  4451. }), y = y.length && new RegExp(y.join("|")), o = o.length &&
  4452. new RegExp(o.join("|")), t = te.test(s.compareDocumentPosition), v =
  4453. t || te.test(s.contains) ? function(e, t) {
  4454. var n = 9 === e.nodeType ? e.documentElement : e,
  4455. t = t && t.parentNode;
  4456. return e === t || !(!t || 1 !== t.nodeType || !(n.contains ? n
  4457. .contains(t) : e.compareDocumentPosition && 16 & e
  4458. .compareDocumentPosition(t)))
  4459. } : function(e, t) {
  4460. if (t)
  4461. for (; t = t.parentNode;)
  4462. if (t === e) return !0;
  4463. return !1
  4464. }, A = t ? function(e, t) {
  4465. if (e === t) return d = !0, 0;
  4466. var n = !e.compareDocumentPosition - !t.compareDocumentPosition;
  4467. return n || (1 & (n = (e.ownerDocument || e) == (t
  4468. .ownerDocument || t) ? e
  4469. .compareDocumentPosition(t) : 1) || !_
  4470. .sortDetached && t.compareDocumentPosition(e) === n ?
  4471. e == k || e.ownerDocument == g && v(g, e) ? -1 : t ==
  4472. k || t.ownerDocument == g && v(g, t) ? 1 : u ? H(u, e) -
  4473. H(u, t) : 0 : 4 & n ? -1 : 1)
  4474. } : function(e, t) {
  4475. if (e === t) return d = !0, 0;
  4476. var n, i = 0,
  4477. r = e.parentNode,
  4478. a = t.parentNode,
  4479. s = [e],
  4480. o = [t];
  4481. if (!r || !a) return e == k ? -1 : t == k ? 1 : r ? -1 : a ? 1 :
  4482. u ? H(u, e) - H(u, t) : 0;
  4483. if (r === a) return ce(e, t);
  4484. for (n = e; n = n.parentNode;) s.unshift(n);
  4485. for (n = t; n = n.parentNode;) o.unshift(n);
  4486. for (; s[i] === o[i];) i++;
  4487. return i ? ce(s[i], o[i]) : s[i] == g ? -1 : o[i] == g ? 1 : 0
  4488. }), k
  4489. }, oe.matches = function(e, t) {
  4490. return oe(e, null, null, t)
  4491. }, oe.matchesSelector = function(e, t) {
  4492. if (S(e), _.matchesSelector && b && !C[t + " "] && (!o || !o.test(t)) && (!
  4493. y || !y.test(t))) try {
  4494. var n = l.call(e, t);
  4495. if (n || _.disconnectedMatch || e.document && 11 !== e.document
  4496. .nodeType) return n
  4497. } catch (e) {
  4498. C(t, !0)
  4499. }
  4500. return 0 < oe(t, k, null, [e]).length
  4501. }, oe.contains = function(e, t) {
  4502. return (e.ownerDocument || e) != k && S(e), v(e, t)
  4503. }, oe.attr = function(e, t) {
  4504. (e.ownerDocument || e) != k && S(e);
  4505. var n = M.attrHandle[t.toLowerCase()],
  4506. n = n && R.call(M.attrHandle, t.toLowerCase()) ? n(e, t, !b) : void 0;
  4507. return void 0 !== n ? n : _.attributes || !b ? e.getAttribute(t) : (n = e
  4508. .getAttributeNode(t)) && n.specified ? n.value : null
  4509. }, oe.escape = function(e) {
  4510. return (e + "").replace(ae, c)
  4511. }, oe.error = function(e) {
  4512. throw new Error("Syntax error, unrecognized expression: " + e)
  4513. }, oe.uniqueSort = function(e) {
  4514. var t, n = [],
  4515. i = 0,
  4516. r = 0;
  4517. if (d = !_.detectDuplicates, u = !_.sortStable && e.slice(0), e.sort(A),
  4518. d) {
  4519. for (; t = e[r++];) t === e[r] && (i = n.push(r));
  4520. for (; i--;) e.splice(n[i], 1)
  4521. }
  4522. return u = null, e
  4523. }, a = oe.getText = function(e) {
  4524. var t, n = "",
  4525. i = 0,
  4526. r = e.nodeType;
  4527. if (r) {
  4528. if (1 === r || 9 === r || 11 === r) {
  4529. if ("string" == typeof e.textContent) return e.textContent;
  4530. for (e = e.firstChild; e; e = e.nextSibling) n += a(e)
  4531. } else if (3 === r || 4 === r) return e.nodeValue
  4532. } else
  4533. for (; t = e[i++];) n += a(t);
  4534. return n
  4535. }, (M = oe.selectors = {
  4536. cacheLength: 50,
  4537. createPseudo: de,
  4538. match: Z,
  4539. attrHandle: {},
  4540. find: {},
  4541. relative: {
  4542. ">": {
  4543. dir: "parentNode",
  4544. first: !0
  4545. },
  4546. " ": {
  4547. dir: "parentNode"
  4548. },
  4549. "+": {
  4550. dir: "previousSibling",
  4551. first: !0
  4552. },
  4553. "~": {
  4554. dir: "previousSibling"
  4555. }
  4556. },
  4557. preFilter: {
  4558. ATTR: function(e) {
  4559. return e[1] = e[1].replace(re, h), e[3] = (e[3] || e[4] ||
  4560. e[5] || "").replace(re, h), "~=" === e[2] && (e[3] =
  4561. " " + e[3] + " "), e.slice(0, 4)
  4562. },
  4563. CHILD: function(e) {
  4564. return e[1] = e[1].toLowerCase(), "nth" === e[1].slice(0,
  4565. 3) ? (e[3] || oe.error(e[0]), e[4] = +(e[4] ? e[5] +
  4566. (e[
  4567. 6] || 1) : 2 * ("even" === e[3] || "odd" ===
  4568. e[3])), e[5] = +(e[7] + e[8] || "odd" === e[
  4569. 3])) :
  4570. e[3] && oe.error(e[0]), e
  4571. },
  4572. PSEUDO: function(e) {
  4573. var t, n = !e[6] && e[2];
  4574. return Z.CHILD.test(e[0]) ? null : (e[3] ? e[2] = e[4] || e[
  4575. 5] || "" : n && K.test(n) && (t = f(n, !0)) && (
  4576. t = n.indexOf(")", n.length - t) - n.length) &&
  4577. (e[0] = e[0].slice(0, t), e[2] = n.slice(0, t)), e
  4578. .slice(0, 3))
  4579. }
  4580. },
  4581. filter: {
  4582. TAG: function(e) {
  4583. var t = e.replace(re, h).toLowerCase();
  4584. return "*" === e ? function() {
  4585. return !0
  4586. } : function(e) {
  4587. return e.nodeName && e.nodeName.toLowerCase() === t
  4588. }
  4589. },
  4590. CLASS: function(e) {
  4591. var t = E[e + " "];
  4592. return t || (t = new RegExp("(^|" + F + ")" + e + "(" + F +
  4593. "|$)")) && E(e, function(e) {
  4594. return t.test("string" == typeof e.className &&
  4595. e.className || void 0 !== e
  4596. .getAttribute && e.getAttribute(
  4597. "class") || "")
  4598. })
  4599. },
  4600. ATTR: function(t, n, i) {
  4601. return function(e) {
  4602. e = oe.attr(e, t);
  4603. return null == e ? "!=" === n : !n || (e += "",
  4604. "=" === n ? e === i : "!=" === n ? e !== i :
  4605. "^=" === n ? i && 0 === e.indexOf(i) :
  4606. "*=" === n ? i && -1 < e.indexOf(i) :
  4607. "$=" === n ? i && e.slice(-i.length) === i :
  4608. "~=" === n ? -1 < (" " + e.replace(U, " ") +
  4609. " ").indexOf(i) : "|=" === n && (e ===
  4610. i || e.slice(0, i.length + 1) === i +
  4611. "-"))
  4612. }
  4613. },
  4614. CHILD: function(f, e, t, m, p) {
  4615. var y = "nth" !== f.slice(0, 3),
  4616. v = "last" !== f.slice(-4),
  4617. g = "of-type" === e;
  4618. return 1 === m && 0 === p ? function(e) {
  4619. return !!e.parentNode
  4620. } : function(e, t, n) {
  4621. var i, r, a, s, o, u, d = y != v ? "nextSibling" :
  4622. "previousSibling",
  4623. l = e.parentNode,
  4624. h = g && e.nodeName.toLowerCase(),
  4625. c = !n && !g,
  4626. _ = !1;
  4627. if (l) {
  4628. if (y) {
  4629. for (; d;) {
  4630. for (s = e; s = s[d];)
  4631. if (g ? s.nodeName.toLowerCase() ===
  4632. h : 1 === s.nodeType) return !1;
  4633. u = d = "only" === f && !u &&
  4634. "nextSibling"
  4635. }
  4636. return !0
  4637. }
  4638. if (u = [v ? l.firstChild : l.lastChild], v &&
  4639. c) {
  4640. for (_ = (o = (i = (r = (a = (s = l)[w] || (
  4641. s[w] = {}))[s
  4642. .uniqueID] || (a[s
  4643. .uniqueID] = {}))[f] || [])[
  4644. 0] === D && i[1]) && i[2], s =
  4645. o && l.childNodes[o]; s = ++o && s && s[
  4646. d] || (_ = o = 0) || u.pop();)
  4647. if (1 === s.nodeType && ++_ && s ===
  4648. e) {
  4649. r[f] = [D, o, _];
  4650. break
  4651. }
  4652. } else if (!1 === (_ = c ? o = (i = (r = (a = (
  4653. s = e)[w] || (s[
  4654. w] = {}))[s.uniqueID] || (a[
  4655. s.uniqueID] = {}))[f] || [])[0] ===
  4656. D && i[1] : _))
  4657. for (;
  4658. (s = ++o && s && s[d] || (_ = o = 0) ||
  4659. u.pop()) && ((g ? s.nodeName
  4660. .toLowerCase() !== h : 1 !== s
  4661. .nodeType) || !++_ || (c && ((
  4662. r = (a = s[w] || (s[
  4663. w] = {}))[s
  4664. .uniqueID] ||
  4665. (a[s.uniqueID] = {}))[
  4666. f] = [D, _]), s !== e)););
  4667. return (_ -= p) === m || _ % m == 0 && 0 <= _ /
  4668. m
  4669. }
  4670. }
  4671. },
  4672. PSEUDO: function(e, a) {
  4673. var t, s = M.pseudos[e] || M.setFilters[e.toLowerCase()] ||
  4674. oe.error("unsupported pseudo: " + e);
  4675. return s[w] ? s(a) : 1 < s.length ? (t = [e, e, "", a], M
  4676. .setFilters.hasOwnProperty(e.toLowerCase()) ? de(
  4677. function(e, t) {
  4678. for (var n, i = s(e, a), r = i.length; r--;)
  4679. e[n = H(e, i[r])] = !(t[n] = i[r])
  4680. }) : function(e) {
  4681. return s(e, 0, t)
  4682. }) : s
  4683. }
  4684. },
  4685. pseudos: {
  4686. not: de(function(e) {
  4687. var i = [],
  4688. r = [],
  4689. o = m(e.replace(V, "$1"));
  4690. return o[w] ? de(function(e, t, n, i) {
  4691. for (var r, a = o(e, null, i, []), s = e
  4692. .length; s--;)(r = a[s]) && (e[
  4693. s] = !(t[s] = r))
  4694. }) : function(e, t, n) {
  4695. return i[0] = e, o(i, null, n, r), i[0] = null,
  4696. !r.pop()
  4697. }
  4698. }),
  4699. has: de(function(t) {
  4700. return function(e) {
  4701. return 0 < oe(t, e).length
  4702. }
  4703. }),
  4704. contains: de(function(t) {
  4705. return t = t.replace(re, h),
  4706. function(e) {
  4707. return -1 < (e.textContent || a(e)).indexOf(t)
  4708. }
  4709. }),
  4710. lang: de(function(n) {
  4711. return X.test(n || "") || oe.error(
  4712. "unsupported lang: " + n), n = n.replace(re, h)
  4713. .toLowerCase(),
  4714. function(e) {
  4715. var t;
  4716. do {
  4717. if (t = b ? e.lang : e.getAttribute(
  4718. "xml:lang") || e.getAttribute(
  4719. "lang")) return (t = t
  4720. .toLowerCase()) === n || 0 === t
  4721. .indexOf(n + "-")
  4722. } while ((e = e.parentNode) && 1 === e
  4723. .nodeType);
  4724. return !1
  4725. }
  4726. }),
  4727. target: function(e) {
  4728. var t = n.location && n.location.hash;
  4729. return t && t.slice(1) === e.id
  4730. },
  4731. root: function(e) {
  4732. return e === s
  4733. },
  4734. focus: function(e) {
  4735. return e === k.activeElement && (!k.hasFocus || k
  4736. .hasFocus()) && !!(e.type || e.href || ~e.tabIndex)
  4737. },
  4738. enabled: _e(!1),
  4739. disabled: _e(!0),
  4740. checked: function(e) {
  4741. var t = e.nodeName.toLowerCase();
  4742. return "input" === t && !!e.checked || "option" === t && !!e
  4743. .selected
  4744. },
  4745. selected: function(e) {
  4746. return e.parentNode && e.parentNode.selectedIndex, !0 === e
  4747. .selected
  4748. },
  4749. empty: function(e) {
  4750. for (e = e.firstChild; e; e = e.nextSibling)
  4751. if (e.nodeType < 6) return !1;
  4752. return !0
  4753. },
  4754. parent: function(e) {
  4755. return !M.pseudos.empty(e)
  4756. },
  4757. header: function(e) {
  4758. return ee.test(e.nodeName)
  4759. },
  4760. input: function(e) {
  4761. return Q.test(e.nodeName)
  4762. },
  4763. button: function(e) {
  4764. var t = e.nodeName.toLowerCase();
  4765. return "input" === t && "button" === e.type || "button" ===
  4766. t
  4767. },
  4768. text: function(e) {
  4769. return "input" === e.nodeName.toLowerCase() && "text" === e
  4770. .type && (null == (e = e.getAttribute("type")) ||
  4771. "text" === e.toLowerCase())
  4772. },
  4773. first: fe(function() {
  4774. return [0]
  4775. }),
  4776. last: fe(function(e, t) {
  4777. return [t - 1]
  4778. }),
  4779. eq: fe(function(e, t, n) {
  4780. return [n < 0 ? n + t : n]
  4781. }),
  4782. even: fe(function(e, t) {
  4783. for (var n = 0; n < t; n += 2) e.push(n);
  4784. return e
  4785. }),
  4786. odd: fe(function(e, t) {
  4787. for (var n = 1; n < t; n += 2) e.push(n);
  4788. return e
  4789. }),
  4790. lt: fe(function(e, t, n) {
  4791. for (var i = n < 0 ? n + t : t < n ? t : n; 0 <= --i;) e
  4792. .push(i);
  4793. return e
  4794. }),
  4795. gt: fe(function(e, t, n) {
  4796. for (var i = n < 0 ? n + t : n; ++i < t;) e.push(i);
  4797. return e
  4798. })
  4799. }
  4800. }).pseudos.nth = M.pseudos.eq, {
  4801. radio: !0,
  4802. checkbox: !0,
  4803. file: !0,
  4804. password: !0,
  4805. image: !0
  4806. }) M.pseudos[e] = function(t) {
  4807. return function(e) {
  4808. return "input" === e.nodeName.toLowerCase() && e.type === t
  4809. }
  4810. }(e);
  4811. for (e in {
  4812. submit: !0,
  4813. reset: !0
  4814. }) M.pseudos[e] = function(n) {
  4815. return function(e) {
  4816. var t = e.nodeName.toLowerCase();
  4817. return ("input" === t || "button" === t) && e.type === n
  4818. }
  4819. }(e);
  4820. function pe() {}
  4821. function ye(e) {
  4822. for (var t = 0, n = e.length, i = ""; t < n; t++) i += e[t].value;
  4823. return i
  4824. }
  4825. function ve(s, e, t) {
  4826. var o = e.dir,
  4827. u = e.next,
  4828. d = u || o,
  4829. l = t && "parentNode" === d,
  4830. h = T++;
  4831. return e.first ? function(e, t, n) {
  4832. for (; e = e[o];)
  4833. if (1 === e.nodeType || l) return s(e, t, n);
  4834. return !1
  4835. } : function(e, t, n) {
  4836. var i, r, a = [D, h];
  4837. if (n) {
  4838. for (; e = e[o];)
  4839. if ((1 === e.nodeType || l) && s(e, t, n)) return !0
  4840. } else
  4841. for (; e = e[o];)
  4842. if (1 === e.nodeType || l)
  4843. if (i = (r = e[w] || (e[w] = {}))[e.uniqueID] || (r[e
  4844. .uniqueID] = {}), u && u === e.nodeName
  4845. .toLowerCase()) e = e[o] || e;
  4846. else {
  4847. if ((r = i[d]) && r[0] === D && r[1] === h) return a[
  4848. 2] = r[2];
  4849. if ((i[d] = a)[2] = s(e, t, n)) return !0
  4850. } return !1
  4851. }
  4852. }
  4853. function ge(r) {
  4854. return 1 < r.length ? function(e, t, n) {
  4855. for (var i = r.length; i--;)
  4856. if (!r[i](e, t, n)) return !1;
  4857. return !0
  4858. } : r[0]
  4859. }
  4860. function Me(e, t, n, i, r) {
  4861. for (var a, s = [], o = 0, u = e.length, d = null != t; o < u; o++)(a = e[o]) &&
  4862. (n && !n(a, i, r) || (s.push(a), d && t.push(o)));
  4863. return s
  4864. }
  4865. function Le(_, f, m, p, y, e) {
  4866. return p && !p[w] && (p = Le(p)), y && !y[w] && (y = Le(y, e)), de(function(e,
  4867. t, n, i) {
  4868. var r, a, s, o = [],
  4869. u = [],
  4870. d = t.length,
  4871. l = e || function(e, t, n) {
  4872. for (var i = 0, r = t.length; i < r; i++) oe(e, t[i], n);
  4873. return n
  4874. }(f || "*", n.nodeType ? [n] : n, []),
  4875. h = !_ || !e && f ? l : Me(l, o, _, n, i),
  4876. c = m ? y || (e ? _ : d || p) ? [] : t : h;
  4877. if (m && m(h, c, n, i), p)
  4878. for (r = Me(c, u), p(r, [], n, i), a = r.length; a--;)(s = r[
  4879. a]) && (c[u[a]] = !(h[u[a]] = s));
  4880. if (e) {
  4881. if (y || _) {
  4882. if (y) {
  4883. for (r = [], a = c.length; a--;)(s = c[a]) && r.push(h[
  4884. a] = s);
  4885. y(null, c = [], r, i)
  4886. }
  4887. for (a = c.length; a--;)(s = c[a]) && -1 < (r = y ? H(e,
  4888. s) : o[a]) && (e[r] = !(t[r] = s))
  4889. }
  4890. } else c = Me(c === t ? c.splice(d, c.length) : c), y ? y(null, t,
  4891. c, i) : I.apply(t, c)
  4892. })
  4893. }
  4894. function Se(p, y) {
  4895. function e(e, t, n, i, r) {
  4896. var a, s, o, u = 0,
  4897. d = "0",
  4898. l = e && [],
  4899. h = [],
  4900. c = L,
  4901. _ = e || g && M.find.TAG("*", r),
  4902. f = D += null == c ? 1 : Math.random() || .1,
  4903. m = _.length;
  4904. for (r && (L = t == k || t || r); d !== m && null != (a = _[d]); d++) {
  4905. if (g && a) {
  4906. for (s = 0, t || a.ownerDocument == k || (S(a), n = !b); o = p[
  4907. s++];)
  4908. if (o(a, t || k, n)) {
  4909. i.push(a);
  4910. break
  4911. } r && (D = f)
  4912. }
  4913. v && ((a = !o && a) && u--, e && l.push(a))
  4914. }
  4915. if (u += d, v && d !== u) {
  4916. for (s = 0; o = y[s++];) o(l, h, t, n);
  4917. if (e) {
  4918. if (0 < u)
  4919. for (; d--;) l[d] || h[d] || (h[d] = x.call(i));
  4920. h = Me(h)
  4921. }
  4922. I.apply(i, h), r && !e && 0 < h.length && 1 < u + y.length && oe
  4923. .uniqueSort(i)
  4924. }
  4925. return r && (D = f, L = c), l
  4926. }
  4927. var v = 0 < y.length,
  4928. g = 0 < p.length;
  4929. return v ? de(e) : e
  4930. }
  4931. return pe.prototype = M.filters = M.pseudos, M.setFilters = new pe, f = oe
  4932. .tokenize = function(e, t) {
  4933. var n, i, r, a, s, o, u, d = Y[e + " "];
  4934. if (d) return t ? 0 : d.slice(0);
  4935. for (s = e, o = [], u = M.preFilter; s;) {
  4936. for (a in n && !(i = G.exec(s)) || (i && (s = s.slice(i[0].length) ||
  4937. s), o.push(r = [])), n = !1, (i = J.exec(s)) && (n = i.shift(),
  4938. r.push({
  4939. value: n,
  4940. type: i[0].replace(V, " ")
  4941. }), s = s.slice(n.length)), M.filter) !(i = Z[a].exec(s)) || u[
  4942. a] && !(i = u[a](i)) || (n = i.shift(), r.push({
  4943. value: n,
  4944. type: a,
  4945. matches: i
  4946. }), s = s.slice(n.length));
  4947. if (!n) break
  4948. }
  4949. return t ? s.length : s ? oe.error(e) : Y(e, o).slice(0)
  4950. }, m = oe.compile = function(e, t) {
  4951. var n, i = [],
  4952. r = [],
  4953. a = P[e + " "];
  4954. if (!a) {
  4955. for (n = (t = t || f(e)).length; n--;)((a = function e(t) {
  4956. for (var i, n, r, a = t.length, s = M.relative[t[0]
  4957. .type], o = s || M.relative[" "], u = s ?
  4958. 1 : 0, d = ve(function(e) {
  4959. return e === i
  4960. }, o, !0), l = ve(function(e) {
  4961. return -1 < H(i, e)
  4962. }, o, !0), h = [function(e, t, n) {
  4963. return n = !s && (n || t !== L) || ((i =
  4964. t).nodeType ? d : l)(e, t, n),
  4965. i = null, n
  4966. }]; u < a; u++)
  4967. if (n = M.relative[t[u].type]) h = [ve(ge(h), n)];
  4968. else {
  4969. if ((n = M.filter[t[u].type].apply(null, t[u]
  4970. .matches))[w]) {
  4971. for (r = ++u; r < a && !M.relative[t[r]
  4972. .type]; r++);
  4973. return Le(1 < u && ge(h), 1 < u && ye(t
  4974. .slice(0, u - 1).concat({
  4975. value: " " === t[u - 2]
  4976. .type ? "*" : ""
  4977. })).replace(V, "$1"), n, u <
  4978. r && e(t.slice(u, r)), r < a && e(
  4979. t = t.slice(r)), r < a && ye(t))
  4980. }
  4981. h.push(n)
  4982. } return ge(h)
  4983. }(t[n]))[w] ? i : r).push(a);
  4984. (a = P(e, Se(r, i))).selector = e
  4985. }
  4986. return a
  4987. }, p = oe.select = function(e, t, n, i) {
  4988. var r, a, s, o, u, d = "function" == typeof e && e,
  4989. l = !i && f(e = d.selector || e);
  4990. if (n = n || [], 1 === l.length) {
  4991. if (2 < (a = l[0] = l[0].slice(0)).length && "ID" === (s = a[0]).type &&
  4992. 9 === t.nodeType && b && M.relative[a[1].type]) {
  4993. if (!(t = (M.find.ID(s.matches[0].replace(re, h), t) || [])[0]))
  4994. return n;
  4995. d && (t = t.parentNode), e = e.slice(a.shift().value.length)
  4996. }
  4997. for (r = Z.needsContext.test(e) ? 0 : a.length; r-- && (s = a[r], !M
  4998. .relative[o = s.type]);)
  4999. if ((u = M.find[o]) && (i = u(s.matches[0].replace(re, h), ie.test(
  5000. a[0].type) && me(t.parentNode) || t))) {
  5001. if (a.splice(r, 1), !(e = i.length && ye(a))) return I.apply(n,
  5002. i), n;
  5003. break
  5004. }
  5005. }
  5006. return (d || m(e, l))(i, t, !b, n, !t || ie.test(e) && me(t.parentNode) ||
  5007. t), n
  5008. }, _.sortStable = w.split("").sort(A).join("") === w, _.detectDuplicates = !!d,
  5009. S(), _.sortDetached = le(function(e) {
  5010. return 1 & e.compareDocumentPosition(k.createElement("fieldset"))
  5011. }), le(function(e) {
  5012. return e.innerHTML = "<a href='#'></a>", "#" === e.firstChild
  5013. .getAttribute("href")
  5014. }) || he("type|href|height|width", function(e, t, n) {
  5015. if (!n) return e.getAttribute(t, "type" === t.toLowerCase() ? 1 : 2)
  5016. }), _.attributes && le(function(e) {
  5017. return e.innerHTML = "<input/>", e.firstChild.setAttribute("value", ""),
  5018. "" === e.firstChild.getAttribute("value")
  5019. }) || he("value", function(e, t, n) {
  5020. if (!n && "input" === e.nodeName.toLowerCase()) return e.defaultValue
  5021. }), le(function(e) {
  5022. return null == e.getAttribute("disabled")
  5023. }) || he(j, function(e, t, n) {
  5024. if (!n) return !0 === e[t] ? t.toLowerCase() : (t = e.getAttributeNode(
  5025. t)) && t.specified ? t.value : null
  5026. }), oe
  5027. }(S);
  5028. b.find = c, b.expr = c.selectors, b.expr[":"] = b.expr.pseudos, b.uniqueSort = b.unique = c
  5029. .uniqueSort, b.text = c.getText, b.isXMLDoc = c.isXML, b.contains = c.contains, b
  5030. .escapeSelector = c.escape;
  5031. function _(e, t, n) {
  5032. for (var i = [], r = void 0 !== n;
  5033. (e = e[t]) && 9 !== e.nodeType;)
  5034. if (1 === e.nodeType) {
  5035. if (r && b(e).is(n)) break;
  5036. i.push(e)
  5037. } return i
  5038. }
  5039. function L(e, t) {
  5040. for (var n = []; e; e = e.nextSibling) 1 === e.nodeType && e !== t && n.push(e);
  5041. return n
  5042. }
  5043. var w = b.expr.match.needsContext;
  5044. function D(e, t) {
  5045. return e.nodeName && e.nodeName.toLowerCase() === t.toLowerCase()
  5046. }
  5047. var T = /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;
  5048. function E(e, n, i) {
  5049. return m(n) ? b.grep(e, function(e, t) {
  5050. return !!n.call(e, t, e) !== i
  5051. }) : n.nodeType ? b.grep(e, function(e) {
  5052. return e === n !== i
  5053. }) : "string" != typeof n ? b.grep(e, function(e) {
  5054. return -1 < r.call(n, e) !== i
  5055. }) : b.filter(n, e, i)
  5056. }
  5057. b.filter = function(e, t, n) {
  5058. var i = t[0];
  5059. return n && (e = ":not(" + e + ")"), 1 === t.length && 1 === i.nodeType ? b.find
  5060. .matchesSelector(i, e) ? [i] : [] : b.find.matches(e, b.grep(t, function(e) {
  5061. return 1 === e.nodeType
  5062. }))
  5063. }, b.fn.extend({
  5064. find: function(e) {
  5065. var t, n, i = this.length,
  5066. r = this;
  5067. if ("string" != typeof e) return this.pushStack(b(e).filter(function() {
  5068. for (t = 0; t < i; t++)
  5069. if (b.contains(r[t], this)) return !0
  5070. }));
  5071. for (n = this.pushStack([]), t = 0; t < i; t++) b.find(e, r[t], n);
  5072. return 1 < i ? b.uniqueSort(n) : n
  5073. },
  5074. filter: function(e) {
  5075. return this.pushStack(E(this, e || [], !1))
  5076. },
  5077. not: function(e) {
  5078. return this.pushStack(E(this, e || [], !0))
  5079. },
  5080. is: function(e) {
  5081. return !!E(this, "string" == typeof e && w.test(e) ? b(e) : e || [], !1)
  5082. .length
  5083. }
  5084. });
  5085. var Y = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;
  5086. (b.fn.init = function(e, t, n) {
  5087. if (!e) return this;
  5088. if (n = n || P, "string" != typeof e) return e.nodeType ? (this[0] = e, this
  5089. .length = 1, this) : m(e) ? void 0 !== n.ready ? n.ready(e) : e(b) : b
  5090. .makeArray(e, this);
  5091. if (!(i = "<" === e[0] && ">" === e[e.length - 1] && 3 <= e.length ? [null, e,
  5092. null
  5093. ] : Y.exec(e)) || !i[1] && t) return (!t || t.jquery ? t || n : this
  5094. .constructor(t)).find(e);
  5095. if (i[1]) {
  5096. if (t = t instanceof b ? t[0] : t, b.merge(this, b.parseHTML(i[1], t && t
  5097. .nodeType ? t.ownerDocument || t : k, !0)), T.test(i[1]) && b
  5098. .isPlainObject(t))
  5099. for (var i in t) m(this[i]) ? this[i](t[i]) : this.attr(i, t[i]);
  5100. return this
  5101. }
  5102. return (e = k.getElementById(i[2])) && (this[0] = e, this.length = 1), this
  5103. }).prototype = b.fn;
  5104. var P = b(k),
  5105. C = /^(?:parents|prev(?:Until|All))/,
  5106. A = {
  5107. children: !0,
  5108. contents: !0,
  5109. next: !0,
  5110. prev: !0
  5111. };
  5112. function R(e, t) {
  5113. for (;
  5114. (e = e[t]) && 1 !== e.nodeType;);
  5115. return e
  5116. }
  5117. b.fn.extend({
  5118. has: function(e) {
  5119. var t = b(e, this),
  5120. n = t.length;
  5121. return this.filter(function() {
  5122. for (var e = 0; e < n; e++)
  5123. if (b.contains(this, t[e])) return !0
  5124. })
  5125. },
  5126. closest: function(e, t) {
  5127. var n, i = 0,
  5128. r = this.length,
  5129. a = [],
  5130. s = "string" != typeof e && b(e);
  5131. if (!w.test(e))
  5132. for (; i < r; i++)
  5133. for (n = this[i]; n && n !== t; n = n.parentNode)
  5134. if (n.nodeType < 11 && (s ? -1 < s.index(n) : 1 === n
  5135. .nodeType && b.find.matchesSelector(n, e))) {
  5136. a.push(n);
  5137. break
  5138. } return this.pushStack(1 < a.length ? b.uniqueSort(a) : a)
  5139. },
  5140. index: function(e) {
  5141. return e ? "string" == typeof e ? r.call(b(e), this[0]) : r.call(this, e
  5142. .jquery ? e[0] : e) : this[0] && this[0].parentNode ? this
  5143. .first().prevAll().length : -1
  5144. },
  5145. add: function(e, t) {
  5146. return this.pushStack(b.uniqueSort(b.merge(this.get(), b(e, t))))
  5147. },
  5148. addBack: function(e) {
  5149. return this.add(null == e ? this.prevObject : this.prevObject.filter(e))
  5150. }
  5151. }), b.each({
  5152. parent: function(e) {
  5153. e = e.parentNode;
  5154. return e && 11 !== e.nodeType ? e : null
  5155. },
  5156. parents: function(e) {
  5157. return _(e, "parentNode")
  5158. },
  5159. parentsUntil: function(e, t, n) {
  5160. return _(e, "parentNode", n)
  5161. },
  5162. next: function(e) {
  5163. return R(e, "nextSibling")
  5164. },
  5165. prev: function(e) {
  5166. return R(e, "previousSibling")
  5167. },
  5168. nextAll: function(e) {
  5169. return _(e, "nextSibling")
  5170. },
  5171. prevAll: function(e) {
  5172. return _(e, "previousSibling")
  5173. },
  5174. nextUntil: function(e, t, n) {
  5175. return _(e, "nextSibling", n)
  5176. },
  5177. prevUntil: function(e, t, n) {
  5178. return _(e, "previousSibling", n)
  5179. },
  5180. siblings: function(e) {
  5181. return L((e.parentNode || {}).firstChild, e)
  5182. },
  5183. children: function(e) {
  5184. return L(e.firstChild)
  5185. },
  5186. contents: function(e) {
  5187. return null != e.contentDocument && n(e.contentDocument) ? e
  5188. .contentDocument : (D(e, "template") && (e = e.content || e), b
  5189. .merge([], e.childNodes))
  5190. }
  5191. }, function(i, r) {
  5192. b.fn[i] = function(e, t) {
  5193. var n = b.map(this, r, e);
  5194. return (t = "Until" !== i.slice(-5) ? e : t) && "string" == typeof t &&
  5195. (n = b.filter(t, n)), 1 < this.length && (A[i] || b.uniqueSort(n), C
  5196. .test(i) && n.reverse()), this.pushStack(n)
  5197. }
  5198. });
  5199. var x = /[^\x20\t\r\n\f]+/g;
  5200. function O(e) {
  5201. return e
  5202. }
  5203. function I(e) {
  5204. throw e
  5205. }
  5206. function W(e, t, n, i) {
  5207. var r;
  5208. try {
  5209. e && m(r = e.promise) ? r.call(e).done(t).fail(n) : e && m(r = e.then) ? r.call(e,
  5210. t, n) : t.apply(void 0, [e].slice(i))
  5211. } catch (e) {
  5212. n.apply(void 0, [e])
  5213. }
  5214. }
  5215. b.Callbacks = function(i) {
  5216. var e, n;
  5217. i = "string" == typeof i ? (e = i, n = {}, b.each(e.match(x) || [], function(e, t) {
  5218. n[t] = !0
  5219. }), n) : b.extend({}, i);
  5220. function r() {
  5221. for (o = o || i.once, s = a = !0; d.length; l = -1)
  5222. for (t = d.shift(); ++l < u.length;) !1 === u[l].apply(t[0], t[1]) && i
  5223. .stopOnFalse && (l = u.length, t = !1);
  5224. i.memory || (t = !1), a = !1, o && (u = t ? [] : "")
  5225. }
  5226. var a, t, s, o, u = [],
  5227. d = [],
  5228. l = -1,
  5229. h = {
  5230. add: function() {
  5231. return u && (t && !a && (l = u.length - 1, d.push(t)), function n(
  5232. e) {
  5233. b.each(e, function(e, t) {
  5234. m(t) ? i.unique && h.has(t) || u.push(t) :
  5235. t && t.length && "string" !== f(t) && n(
  5236. t)
  5237. })
  5238. }(arguments), t && !a && r()), this
  5239. },
  5240. remove: function() {
  5241. return b.each(arguments, function(e, t) {
  5242. for (var n; - 1 < (n = b.inArray(t, u, n));) u.splice(n,
  5243. 1), n <= l && l--
  5244. }), this
  5245. },
  5246. has: function(e) {
  5247. return e ? -1 < b.inArray(e, u) : 0 < u.length
  5248. },
  5249. empty: function() {
  5250. return u = u && [], this
  5251. },
  5252. disable: function() {
  5253. return o = d = [], u = t = "", this
  5254. },
  5255. disabled: function() {
  5256. return !u
  5257. },
  5258. lock: function() {
  5259. return o = d = [], t || a || (u = t = ""), this
  5260. },
  5261. locked: function() {
  5262. return !!o
  5263. },
  5264. fireWith: function(e, t) {
  5265. return o || (t = [e, (t = t || []).slice ? t.slice() : t], d.push(
  5266. t), a || r()), this
  5267. },
  5268. fire: function() {
  5269. return h.fireWith(this, arguments), this
  5270. },
  5271. fired: function() {
  5272. return !!s
  5273. }
  5274. };
  5275. return h
  5276. }, b.extend({
  5277. Deferred: function(e) {
  5278. var a = [
  5279. ["notify", "progress", b.Callbacks("memory"), b.Callbacks(
  5280. "memory"), 2],
  5281. ["resolve", "done", b.Callbacks("once memory"), b.Callbacks(
  5282. "once memory"), 0, "resolved"],
  5283. ["reject", "fail", b.Callbacks("once memory"), b.Callbacks(
  5284. "once memory"), 1, "rejected"]
  5285. ],
  5286. r = "pending",
  5287. s = {
  5288. state: function() {
  5289. return r
  5290. },
  5291. always: function() {
  5292. return o.done(arguments).fail(arguments), this
  5293. },
  5294. catch: function(e) {
  5295. return s.then(null, e)
  5296. },
  5297. pipe: function() {
  5298. var r = arguments;
  5299. return b.Deferred(function(i) {
  5300. b.each(a, function(e, t) {
  5301. var n = m(r[t[4]]) && r[t[4]];
  5302. o[t[1]](function() {
  5303. var e = n && n
  5304. .apply(this,
  5305. arguments);
  5306. e && m(e.promise) ?
  5307. e.promise()
  5308. .progress(i
  5309. .notify)
  5310. .done(i.resolve)
  5311. .fail(i
  5312. .reject) :
  5313. i[t[
  5314. 0] +
  5315. "With"](
  5316. this, n ? [
  5317. e
  5318. ] :
  5319. arguments)
  5320. })
  5321. }), r = null
  5322. }).promise()
  5323. },
  5324. then: function(t, n, i) {
  5325. var u = 0;
  5326. function d(r, a, s, o) {
  5327. return function() {
  5328. function e() {
  5329. var e, t;
  5330. if (!(r < u)) {
  5331. if ((e = s.apply(n, i)) === a
  5332. .promise()) throw new TypeError(
  5333. "Thenable self-resolution"
  5334. );
  5335. t = e && ("object" == typeof e ||
  5336. "function" == typeof e) && e
  5337. .then, m(t) ? o ? t.call(e, d(u,
  5338. a, O, o), d(u, a, I, o)) : (
  5339. u++, t.call(e, d(u, a, O,
  5340. o), d(u, a, I, o),
  5341. d(u,
  5342. a, O, a.notifyWith))
  5343. ) : (s !== O && (n = void 0,
  5344. i = [e]), (o || a
  5345. .resolveWith)(n, i))
  5346. }
  5347. }
  5348. var n = this,
  5349. i = arguments,
  5350. t = o ? e : function() {
  5351. try {
  5352. e()
  5353. } catch (e) {
  5354. b.Deferred.exceptionHook && b
  5355. .Deferred.exceptionHook(e, t
  5356. .stackTrace), u <= r +
  5357. 1 && (s !== I && (n =
  5358. void 0, i = [e]), a
  5359. .rejectWith(n, i))
  5360. }
  5361. };
  5362. r ? t() : (b.Deferred.getStackHook && (t
  5363. .stackTrace = b.Deferred
  5364. .getStackHook()), S.setTimeout(
  5365. t))
  5366. }
  5367. }
  5368. return b.Deferred(function(e) {
  5369. a[0][3].add(d(0, e, m(i) ? i : O, e
  5370. .notifyWith)), a[1][3].add(d(0, e,
  5371. m(t) ? t : O)), a[2][3].add(d(0, e,
  5372. m(n) ? n : I))
  5373. }).promise()
  5374. },
  5375. promise: function(e) {
  5376. return null != e ? b.extend(e, s) : s
  5377. }
  5378. },
  5379. o = {};
  5380. return b.each(a, function(e, t) {
  5381. var n = t[2],
  5382. i = t[5];
  5383. s[t[1]] = n.add, i && n.add(function() {
  5384. r = i
  5385. }, a[3 - e][2].disable, a[3 - e][3].disable, a[0][2]
  5386. .lock, a[0][3].lock), n.add(t[3].fire), o[t[0]] =
  5387. function() {
  5388. return o[t[0] + "With"](this === o ? void 0 : this,
  5389. arguments), this
  5390. }, o[t[0] + "With"] = n.fireWith
  5391. }), s.promise(o), e && e.call(o, o), o
  5392. },
  5393. when: function(e) {
  5394. function t(t) {
  5395. return function(e) {
  5396. r[t] = this, a[t] = 1 < arguments.length ? o.call(
  5397. arguments) : e, --n || s.resolveWith(r, a)
  5398. }
  5399. }
  5400. var n = arguments.length,
  5401. i = n,
  5402. r = Array(i),
  5403. a = o.call(arguments),
  5404. s = b.Deferred();
  5405. if (n <= 1 && (W(e, s.done(t(i)).resolve, s.reject, !n), "pending" === s
  5406. .state() || m(a[i] && a[i].then))) return s.then();
  5407. for (; i--;) W(a[i], t(i), s.reject);
  5408. return s.promise()
  5409. }
  5410. });
  5411. var H = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
  5412. b.Deferred.exceptionHook = function(e, t) {
  5413. S.console && S.console.warn && e && H.test(e.name) && S.console.warn(
  5414. "jQuery.Deferred exception: " + e.message, e.stack, t)
  5415. }, b.readyException = function(e) {
  5416. S.setTimeout(function() {
  5417. throw e
  5418. })
  5419. };
  5420. var j = b.Deferred();
  5421. function F() {
  5422. k.removeEventListener("DOMContentLoaded", F), S.removeEventListener("load", F), b
  5423. .ready()
  5424. }
  5425. b.fn.ready = function(e) {
  5426. return j.then(e).catch(function(e) {
  5427. b.readyException(e)
  5428. }), this
  5429. }, b.extend({
  5430. isReady: !1,
  5431. readyWait: 1,
  5432. ready: function(e) {
  5433. (!0 === e ? --b.readyWait : b.isReady) || (b.isReady = !0) !== e && 0 <
  5434. --b.readyWait || j.resolveWith(k, [b])
  5435. }
  5436. }), b.ready.then = j.then, "complete" === k.readyState || "loading" !== k.readyState &&
  5437. !k.documentElement.doScroll ? S.setTimeout(b.ready) : (k.addEventListener(
  5438. "DOMContentLoaded", F), S.addEventListener("load", F));
  5439. function B(e, t, n, i, r, a, s) {
  5440. var o = 0,
  5441. u = e.length,
  5442. d = null == n;
  5443. if ("object" === f(n))
  5444. for (o in r = !0, n) B(e, t, o, n[o], !0, a, s);
  5445. else if (void 0 !== i && (r = !0, m(i) || (s = !0), t = d ? s ? (t.call(e, i), null) : (
  5446. d = t,
  5447. function(e, t, n) {
  5448. return d.call(b(e), n)
  5449. }) : t))
  5450. for (; o < u; o++) t(e[o], n, s ? i : i.call(e[o], o, t(e[o], n)));
  5451. return r ? e : d ? t.call(e) : u ? t(e[0], n) : a
  5452. }
  5453. var N = /^-ms-/,
  5454. z = /-([a-z])/g;
  5455. function U(e, t) {
  5456. return t.toUpperCase()
  5457. }
  5458. function V(e) {
  5459. return e.replace(N, "ms-").replace(z, U)
  5460. }
  5461. function G(e) {
  5462. return 1 === e.nodeType || 9 === e.nodeType || !+e.nodeType
  5463. }
  5464. function J() {
  5465. this.expando = b.expando + J.uid++
  5466. }
  5467. J.uid = 1, J.prototype = {
  5468. cache: function(e) {
  5469. var t = e[this.expando];
  5470. return t || (t = {}, G(e) && (e.nodeType ? e[this.expando] = t : Object
  5471. .defineProperty(e, this.expando, {
  5472. value: t,
  5473. configurable: !0
  5474. }))), t
  5475. },
  5476. set: function(e, t, n) {
  5477. var i, r = this.cache(e);
  5478. if ("string" == typeof t) r[V(t)] = n;
  5479. else
  5480. for (i in t) r[V(i)] = t[i];
  5481. return r
  5482. },
  5483. get: function(e, t) {
  5484. return void 0 === t ? this.cache(e) : e[this.expando] && e[this.expando][V(
  5485. t)]
  5486. },
  5487. access: function(e, t, n) {
  5488. return void 0 === t || t && "string" == typeof t && void 0 === n ? this.get(
  5489. e, t) : (this.set(e, t, n), void 0 !== n ? n : t)
  5490. },
  5491. remove: function(e, t) {
  5492. var n, i = e[this.expando];
  5493. if (void 0 !== i) {
  5494. if (void 0 !== t) {
  5495. n = (t = Array.isArray(t) ? t.map(V) : (t = V(t)) in i ? [t] : t
  5496. .match(x) || []).length;
  5497. for (; n--;) delete i[t[n]]
  5498. }
  5499. void 0 !== t && !b.isEmptyObject(i) || (e.nodeType ? e[this.expando] =
  5500. void 0 : delete e[this.expando])
  5501. }
  5502. },
  5503. hasData: function(e) {
  5504. e = e[this.expando];
  5505. return void 0 !== e && !b.isEmptyObject(e)
  5506. }
  5507. };
  5508. var q = new J,
  5509. K = new J,
  5510. X = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
  5511. Z = /[A-Z]/g;
  5512. function $(e, t, n) {
  5513. var i, r;
  5514. if (void 0 === n && 1 === e.nodeType)
  5515. if (i = "data-" + t.replace(Z, "-$&").toLowerCase(), "string" == typeof(n = e
  5516. .getAttribute(i))) {
  5517. try {
  5518. n = "true" === (r = n) || "false" !== r && ("null" === r ? null : r === +r +
  5519. "" ? +r : X.test(r) ? JSON.parse(r) : r)
  5520. } catch (e) {}
  5521. K.set(e, t, n)
  5522. } else n = void 0;
  5523. return n
  5524. }
  5525. b.extend({
  5526. hasData: function(e) {
  5527. return K.hasData(e) || q.hasData(e)
  5528. },
  5529. data: function(e, t, n) {
  5530. return K.access(e, t, n)
  5531. },
  5532. removeData: function(e, t) {
  5533. K.remove(e, t)
  5534. },
  5535. _data: function(e, t, n) {
  5536. return q.access(e, t, n)
  5537. },
  5538. _removeData: function(e, t) {
  5539. q.remove(e, t)
  5540. }
  5541. }), b.fn.extend({
  5542. data: function(n, e) {
  5543. var t, i, r, a = this[0],
  5544. s = a && a.attributes;
  5545. if (void 0 !== n) return "object" == typeof n ? this.each(function() {
  5546. K.set(this, n)
  5547. }) : B(this, function(e) {
  5548. var t;
  5549. return a && void 0 === e ? void 0 !== (t = K.get(a,
  5550. n)) || void 0 !== (t = $(a, n)) ? t : void 0 :
  5551. void this.each(function() {
  5552. K.set(this, n, e)
  5553. })
  5554. }, null, e, 1 < arguments.length, null, !0);
  5555. if (this.length && (r = K.get(a), 1 === a.nodeType && !q.get(a,
  5556. "hasDataAttrs"))) {
  5557. for (t = s.length; t--;) s[t] && 0 === (i = s[t].name).indexOf(
  5558. "data-") && (i = V(i.slice(5)), $(a, i, r[i]));
  5559. q.set(a, "hasDataAttrs", !0)
  5560. }
  5561. return r
  5562. },
  5563. removeData: function(e) {
  5564. return this.each(function() {
  5565. K.remove(this, e)
  5566. })
  5567. }
  5568. }), b.extend({
  5569. queue: function(e, t, n) {
  5570. var i;
  5571. if (e) return i = q.get(e, t = (t || "fx") + "queue"), n && (!i || Array
  5572. .isArray(n) ? i = q.access(e, t, b.makeArray(n)) : i.push(n)
  5573. ), i || []
  5574. },
  5575. dequeue: function(e, t) {
  5576. t = t || "fx";
  5577. var n = b.queue(e, t),
  5578. i = n.length,
  5579. r = n.shift(),
  5580. a = b._queueHooks(e, t);
  5581. "inprogress" === r && (r = n.shift(), i--), r && ("fx" === t && n
  5582. .unshift("inprogress"), delete a.stop, r.call(e, function() {
  5583. b.dequeue(e, t)
  5584. }, a)), !i && a && a.empty.fire()
  5585. },
  5586. _queueHooks: function(e, t) {
  5587. var n = t + "queueHooks";
  5588. return q.get(e, n) || q.access(e, n, {
  5589. empty: b.Callbacks("once memory").add(function() {
  5590. q.remove(e, [t + "queue", n])
  5591. })
  5592. })
  5593. }
  5594. }), b.fn.extend({
  5595. queue: function(t, n) {
  5596. var e = 2;
  5597. return "string" != typeof t && (n = t, t = "fx", e--), arguments
  5598. .length < e ? b.queue(this[0], t) : void 0 === n ? this : this.each(
  5599. function() {
  5600. var e = b.queue(this, t, n);
  5601. b._queueHooks(this, t), "fx" === t && "inprogress" !== e[
  5602. 0] && b.dequeue(this, t)
  5603. })
  5604. },
  5605. dequeue: function(e) {
  5606. return this.each(function() {
  5607. b.dequeue(this, e)
  5608. })
  5609. },
  5610. clearQueue: function(e) {
  5611. return this.queue(e || "fx", [])
  5612. },
  5613. promise: function(e, t) {
  5614. function n() {
  5615. --r || a.resolveWith(s, [s])
  5616. }
  5617. var i, r = 1,
  5618. a = b.Deferred(),
  5619. s = this,
  5620. o = this.length;
  5621. for ("string" != typeof e && (t = e, e = void 0), e = e || "fx"; o--;)(
  5622. i = q.get(s[o], e + "queueHooks")) && i.empty && (r++, i.empty
  5623. .add(n));
  5624. return n(), a.promise(t)
  5625. }
  5626. });
  5627. var Q = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,
  5628. ee = new RegExp("^(?:([+-])=|)(" + Q + ")([a-z%]*)$", "i"),
  5629. te = ["Top", "Right", "Bottom", "Left"],
  5630. ne = k.documentElement,
  5631. ie = function(e) {
  5632. return b.contains(e.ownerDocument, e)
  5633. },
  5634. re = {
  5635. composed: !0
  5636. };
  5637. ne.getRootNode && (ie = function(e) {
  5638. return b.contains(e.ownerDocument, e) || e.getRootNode(re) === e.ownerDocument
  5639. });
  5640. function ae(e, t) {
  5641. return "none" === (e = t || e).style.display || "" === e.style.display && ie(e) &&
  5642. "none" === b.css(e, "display")
  5643. }
  5644. function se(e, t, n, i) {
  5645. var r, a, s = 20,
  5646. o = i ? function() {
  5647. return i.cur()
  5648. } : function() {
  5649. return b.css(e, t, "")
  5650. },
  5651. u = o(),
  5652. d = n && n[3] || (b.cssNumber[t] ? "" : "px"),
  5653. l = e.nodeType && (b.cssNumber[t] || "px" !== d && +u) && ee.exec(b.css(e, t));
  5654. if (l && l[3] !== d) {
  5655. for (d = d || l[3], l = +(u /= 2) || 1; s--;) b.style(e, t, l + d), (1 - a) * (1 - (
  5656. a = o() / u || .5)) <= 0 && (s = 0), l /= a;
  5657. b.style(e, t, (l *= 2) + d), n = n || []
  5658. }
  5659. return n && (l = +l || +u || 0, r = n[1] ? l + (n[1] + 1) * n[2] : +n[2], i && (i.unit =
  5660. d, i.start = l, i.end = r)), r
  5661. }
  5662. var oe = {};
  5663. function ue(e, t) {
  5664. for (var n, i, r, a, s, o = [], u = 0, d = e.length; u < d; u++)(i = e[u]).style && (n =
  5665. i.style.display, t ? ("none" === n && (o[u] = q.get(i, "display") || null, o[
  5666. u] || (i.style.display = "")), "" === i.style.display && ae(i) && (o[
  5667. u] = (s = a = void 0, a = (r = i).ownerDocument, s = r.nodeName, (
  5668. r =
  5669. oe[s]) || (a = a.body.appendChild(a.createElement(s)), r = b
  5670. .css(a, "display"), a.parentNode.removeChild(a), oe[s] = r =
  5671. "none" === r ? "block" : r)))) : "none" !== n && (o[u] = "none", q.set(
  5672. i, "display", n)));
  5673. for (u = 0; u < d; u++) null != o[u] && (e[u].style.display = o[u]);
  5674. return e
  5675. }
  5676. b.fn.extend({
  5677. show: function() {
  5678. return ue(this, !0)
  5679. },
  5680. hide: function() {
  5681. return ue(this)
  5682. },
  5683. toggle: function(e) {
  5684. return "boolean" == typeof e ? e ? this.show() : this.hide() : this
  5685. .each(function() {
  5686. ae(this) ? b(this).show() : b(this).hide()
  5687. })
  5688. }
  5689. });
  5690. var de = /^(?:checkbox|radio)$/i,
  5691. le = /<([a-z][^\/\0>\x20\t\r\n\f]*)/i,
  5692. he = /^$|^module$|\/(?:java|ecma)script/i;
  5693. Jt = k.createDocumentFragment().appendChild(k.createElement("div")), (c = k.createElement(
  5694. "input")).setAttribute("type", "radio"), c.setAttribute("checked", "checked"), c
  5695. .setAttribute("name", "t"), Jt.appendChild(c), g.checkClone = Jt.cloneNode(!0)
  5696. .cloneNode(!0).lastChild.checked, Jt.innerHTML = "<textarea>x</textarea>", g
  5697. .noCloneChecked = !!Jt.cloneNode(!0).lastChild.defaultValue, Jt.innerHTML =
  5698. "<option></option>", g.option = !!Jt.lastChild;
  5699. var ce = {
  5700. thead: [1, "<table>", "</table>"],
  5701. col: [2, "<table><colgroup>", "</colgroup></table>"],
  5702. tr: [2, "<table><tbody>", "</tbody></table>"],
  5703. td: [3, "<table><tbody><tr>", "</tr></tbody></table>"],
  5704. _default: [0, "", ""]
  5705. };
  5706. function _e(e, t) {
  5707. var n = void 0 !== e.getElementsByTagName ? e.getElementsByTagName(t || "*") :
  5708. void 0 !== e.querySelectorAll ? e.querySelectorAll(t || "*") : [];
  5709. return void 0 === t || t && D(e, t) ? b.merge([e], n) : n
  5710. }
  5711. function fe(e, t) {
  5712. for (var n = 0, i = e.length; n < i; n++) q.set(e[n], "globalEval", !t || q.get(t[n],
  5713. "globalEval"))
  5714. }
  5715. ce.tbody = ce.tfoot = ce.colgroup = ce.caption = ce.thead, ce.th = ce.td, g.option || (ce
  5716. .optgroup = ce.option = [1, "<select multiple='multiple'>", "</select>"]);
  5717. var me = /<|&#?\w+;/;
  5718. function pe(e, t, n, i, r) {
  5719. for (var a, s, o, u, d, l = t.createDocumentFragment(), h = [], c = 0, _ = e.length; c <
  5720. _; c++)
  5721. if ((a = e[c]) || 0 === a)
  5722. if ("object" === f(a)) b.merge(h, a.nodeType ? [a] : a);
  5723. else if (me.test(a)) {
  5724. for (s = s || l.appendChild(t.createElement("div")), o = (le.exec(a) || ["", ""])[1]
  5725. .toLowerCase(), o = ce[o] || ce._default, s.innerHTML = o[1] + b.htmlPrefilter(
  5726. a) + o[2], d = o[0]; d--;) s = s.lastChild;
  5727. b.merge(h, s.childNodes), (s = l.firstChild).textContent = ""
  5728. } else h.push(t.createTextNode(a));
  5729. for (l.textContent = "", c = 0; a = h[c++];)
  5730. if (i && -1 < b.inArray(a, i)) r && r.push(a);
  5731. else if (u = ie(a), s = _e(l.appendChild(a), "script"), u && fe(s), n)
  5732. for (d = 0; a = s[d++];) he.test(a.type || "") && n.push(a);
  5733. return l
  5734. }
  5735. var ye = /^([^.]*)(?:\.(.+)|)/;
  5736. function ve() {
  5737. return !0
  5738. }
  5739. function ge() {
  5740. return !1
  5741. }
  5742. function Me(e, t) {
  5743. return e === function() {
  5744. try {
  5745. return k.activeElement
  5746. } catch (e) {}
  5747. }() == ("focus" === t)
  5748. }
  5749. function Le(e, t, n, i, r, a) {
  5750. var s, o;
  5751. if ("object" == typeof t) {
  5752. for (o in "string" != typeof n && (i = i || n, n = void 0), t) Le(e, o, n, i, t[o],
  5753. a);
  5754. return e
  5755. }
  5756. if (null == i && null == r ? (r = n, i = n = void 0) : null == r && ("string" ==
  5757. typeof n ? (r = i, i = void 0) : (r = i, i = n, n = void 0)), !1 === r) r = ge;
  5758. else if (!r) return e;
  5759. return 1 === a && (s = r, (r = function(e) {
  5760. return b().off(e), s.apply(this, arguments)
  5761. }).guid = s.guid || (s.guid = b.guid++)), e.each(function() {
  5762. b.event.add(this, t, r, i, n)
  5763. })
  5764. }
  5765. function Se(e, r, a) {
  5766. a ? (q.set(e, r, !1), b.event.add(e, r, {
  5767. namespace: !1,
  5768. handler: function(e) {
  5769. var t, n, i = q.get(this, r);
  5770. if (1 & e.isTrigger && this[r]) {
  5771. if (i.length)(b.event.special[r] || {}).delegateType && e
  5772. .stopPropagation();
  5773. else if (i = o.call(arguments), q.set(this, r, i), t = a(
  5774. this, r), this[r](), i !== (n = q.get(this, r)) ||
  5775. t ? q.set(this, r, !1) : n = {}, i !== n) return e
  5776. .stopImmediatePropagation(), e.preventDefault(),
  5777. n && n.value
  5778. } else i.length && (q.set(this, r, {
  5779. value: b.event.trigger(b.extend(i[0], b.Event
  5780. .prototype), i.slice(1), this)
  5781. }), e.stopImmediatePropagation())
  5782. }
  5783. })) : void 0 === q.get(e, r) && b.event.add(e, r, ve)
  5784. }
  5785. b.event = {
  5786. global: {},
  5787. add: function(t, e, n, i, r) {
  5788. var a, s, o, u, d, l, h, c, _, f = q.get(t);
  5789. if (G(t))
  5790. for (n.handler && (n = (a = n).handler, r = a.selector), r && b.find
  5791. .matchesSelector(ne, r), n.guid || (n.guid = b.guid++), (o = f
  5792. .events) || (o = f.events = Object.create(null)), (s = f
  5793. .handle) || (s = f.handle = function(e) {
  5794. return void 0 !== b && b.event.triggered !== e.type ? b
  5795. .event.dispatch.apply(t, arguments) : void 0
  5796. }), u = (e = (e || "").match(x) || [""]).length; u--;) h = _ = (d =
  5797. ye.exec(e[u]) || [])[1], c = (d[2] || "").split(".").sort(),
  5798. h && (l = b.event.special[h] || {}, h = (r ? l.delegateType : l
  5799. .bindType) || h, l = b.event.special[h] || {}, d = b
  5800. .extend({
  5801. type: h,
  5802. origType: _,
  5803. data: i,
  5804. handler: n,
  5805. guid: n.guid,
  5806. selector: r,
  5807. needsContext: r && b.expr.match.needsContext.test(r),
  5808. namespace: c.join(".")
  5809. }, a), (_ = o[h]) || ((_ = o[h] = []).delegateCount = 0, l
  5810. .setup && !1 !== l.setup.call(t, i, c, s) || t
  5811. .addEventListener && t.addEventListener(h, s)), l.add && (l
  5812. .add.call(t, d), d.handler.guid || (d.handler.guid = n.guid)
  5813. ), r ? _.splice(_.delegateCount++, 0, d) : _.push(d), b
  5814. .event.global[h] = !0)
  5815. },
  5816. remove: function(e, t, n, i, r) {
  5817. var a, s, o, u, d, l, h, c, _, f, m, p = q.hasData(e) && q.get(e);
  5818. if (p && (u = p.events)) {
  5819. for (d = (t = (t || "").match(x) || [""]).length; d--;)
  5820. if (_ = m = (o = ye.exec(t[d]) || [])[1], f = (o[2] || "").split(
  5821. ".").sort(), _) {
  5822. for (h = b.event.special[_] || {}, c = u[_ = (i ? h
  5823. .delegateType : h.bindType) || _] || [], o = o[2] &&
  5824. new RegExp("(^|\\.)" + f.join("\\.(?:.*\\.|)") + "(\\.|$)"),
  5825. s = a = c.length; a--;) l = c[a], !r && m !== l.origType ||
  5826. n && n.guid !== l.guid || o && !o.test(l.namespace) || i &&
  5827. i !== l.selector && ("**" !== i || !l.selector) || (c
  5828. .splice(a, 1), l.selector && c.delegateCount--, h
  5829. .remove && h.remove.call(e, l));
  5830. s && !c.length && (h.teardown && !1 !== h.teardown.call(e, f, p
  5831. .handle) || b.removeEvent(e, _, p.handle), delete u[
  5832. _])
  5833. } else
  5834. for (_ in u) b.event.remove(e, _ + t[d], n, i, !0);
  5835. b.isEmptyObject(u) && q.remove(e, "handle events")
  5836. }
  5837. },
  5838. dispatch: function(e) {
  5839. var t, n, i, r, a, s = new Array(arguments.length),
  5840. o = b.event.fix(e),
  5841. u = (q.get(this, "events") || Object.create(null))[o.type] || [],
  5842. e = b.event.special[o.type] || {};
  5843. for (s[0] = o, t = 1; t < arguments.length; t++) s[t] = arguments[t];
  5844. if (o.delegateTarget = this, !e.preDispatch || !1 !== e.preDispatch.call(
  5845. this, o)) {
  5846. for (a = b.event.handlers.call(this, o, u), t = 0;
  5847. (i = a[t++]) && !o.isPropagationStopped();)
  5848. for (o.currentTarget = i.elem, n = 0;
  5849. (r = i.handlers[n++]) && !o.isImmediatePropagationStopped();) o
  5850. .rnamespace && !1 !== r.namespace && !o.rnamespace.test(r
  5851. .namespace) || (o.handleObj = r, o.data = r.data, void 0 !==
  5852. (r = ((b.event.special[r.origType] || {}).handle || r
  5853. .handler).apply(i.elem, s)) && !1 === (o.result = r) &&
  5854. (o.preventDefault(), o.stopPropagation()));
  5855. return e.postDispatch && e.postDispatch.call(this, o), o.result
  5856. }
  5857. },
  5858. handlers: function(e, t) {
  5859. var n, i, r, a, s, o = [],
  5860. u = t.delegateCount,
  5861. d = e.target;
  5862. if (u && d.nodeType && !("click" === e.type && 1 <= e.button))
  5863. for (; d !== this; d = d.parentNode || this)
  5864. if (1 === d.nodeType && ("click" !== e.type || !0 !== d.disabled)) {
  5865. for (a = [], s = {}, n = 0; n < u; n++) void 0 === s[r = (i = t[
  5866. n]).selector + " "] && (s[r] = i.needsContext ? -1 < b(
  5867. r, this).index(d) : b.find(r, this, null, [d])
  5868. .length), s[r] && a.push(i);
  5869. a.length && o.push({
  5870. elem: d,
  5871. handlers: a
  5872. })
  5873. } return d = this, u < t.length && o.push({
  5874. elem: d,
  5875. handlers: t.slice(u)
  5876. }), o
  5877. },
  5878. addProp: function(t, e) {
  5879. Object.defineProperty(b.Event.prototype, t, {
  5880. enumerable: !0,
  5881. configurable: !0,
  5882. get: m(e) ? function() {
  5883. if (this.originalEvent) return e(this.originalEvent)
  5884. } : function() {
  5885. if (this.originalEvent) return this.originalEvent[t]
  5886. },
  5887. set: function(e) {
  5888. Object.defineProperty(this, t, {
  5889. enumerable: !0,
  5890. configurable: !0,
  5891. writable: !0,
  5892. value: e
  5893. })
  5894. }
  5895. })
  5896. },
  5897. fix: function(e) {
  5898. return e[b.expando] ? e : new b.Event(e)
  5899. },
  5900. special: {
  5901. load: {
  5902. noBubble: !0
  5903. },
  5904. click: {
  5905. setup: function(e) {
  5906. e = this || e;
  5907. return de.test(e.type) && e.click && D(e, "input") && Se(e, "click",
  5908. ve), !1
  5909. },
  5910. trigger: function(e) {
  5911. e = this || e;
  5912. return de.test(e.type) && e.click && D(e, "input") && Se(e,
  5913. "click"), !0
  5914. },
  5915. _default: function(e) {
  5916. e = e.target;
  5917. return de.test(e.type) && e.click && D(e, "input") && q.get(e,
  5918. "click") || D(e, "a")
  5919. }
  5920. },
  5921. beforeunload: {
  5922. postDispatch: function(e) {
  5923. void 0 !== e.result && e.originalEvent && (e.originalEvent
  5924. .returnValue = e.result)
  5925. }
  5926. }
  5927. }
  5928. }, b.removeEvent = function(e, t, n) {
  5929. e.removeEventListener && e.removeEventListener(t, n)
  5930. }, b.Event = function(e, t) {
  5931. if (!(this instanceof b.Event)) return new b.Event(e, t);
  5932. e && e.type ? (this.originalEvent = e, this.type = e.type, this.isDefaultPrevented =
  5933. e.defaultPrevented || void 0 === e.defaultPrevented && !1 === e
  5934. .returnValue ? ve : ge, this.target = e.target && 3 === e.target.nodeType ?
  5935. e.target.parentNode : e.target, this.currentTarget = e.currentTarget, this
  5936. .relatedTarget = e.relatedTarget) : this.type = e, t && b.extend(this, t),
  5937. this.timeStamp = e && e.timeStamp || Date.now(), this[b.expando] = !0
  5938. }, b.Event.prototype = {
  5939. constructor: b.Event,
  5940. isDefaultPrevented: ge,
  5941. isPropagationStopped: ge,
  5942. isImmediatePropagationStopped: ge,
  5943. isSimulated: !1,
  5944. preventDefault: function() {
  5945. var e = this.originalEvent;
  5946. this.isDefaultPrevented = ve, e && !this.isSimulated && e.preventDefault()
  5947. },
  5948. stopPropagation: function() {
  5949. var e = this.originalEvent;
  5950. this.isPropagationStopped = ve, e && !this.isSimulated && e
  5951. .stopPropagation()
  5952. },
  5953. stopImmediatePropagation: function() {
  5954. var e = this.originalEvent;
  5955. this.isImmediatePropagationStopped = ve, e && !this.isSimulated && e
  5956. .stopImmediatePropagation(), this.stopPropagation()
  5957. }
  5958. }, b.each({
  5959. altKey: !0,
  5960. bubbles: !0,
  5961. cancelable: !0,
  5962. changedTouches: !0,
  5963. ctrlKey: !0,
  5964. detail: !0,
  5965. eventPhase: !0,
  5966. metaKey: !0,
  5967. pageX: !0,
  5968. pageY: !0,
  5969. shiftKey: !0,
  5970. view: !0,
  5971. char: !0,
  5972. code: !0,
  5973. charCode: !0,
  5974. key: !0,
  5975. keyCode: !0,
  5976. button: !0,
  5977. buttons: !0,
  5978. clientX: !0,
  5979. clientY: !0,
  5980. offsetX: !0,
  5981. offsetY: !0,
  5982. pointerId: !0,
  5983. pointerType: !0,
  5984. screenX: !0,
  5985. screenY: !0,
  5986. targetTouches: !0,
  5987. toElement: !0,
  5988. touches: !0,
  5989. which: !0
  5990. }, b.event.addProp), b.each({
  5991. focus: "focusin",
  5992. blur: "focusout"
  5993. }, function(e, t) {
  5994. b.event.special[e] = {
  5995. setup: function() {
  5996. return Se(this, e, Me), !1
  5997. },
  5998. trigger: function() {
  5999. return Se(this, e), !0
  6000. },
  6001. _default: function() {
  6002. return !0
  6003. },
  6004. delegateType: t
  6005. }
  6006. }), b.each({
  6007. mouseenter: "mouseover",
  6008. mouseleave: "mouseout",
  6009. pointerenter: "pointerover",
  6010. pointerleave: "pointerout"
  6011. }, function(e, r) {
  6012. b.event.special[e] = {
  6013. delegateType: r,
  6014. bindType: r,
  6015. handle: function(e) {
  6016. var t, n = e.relatedTarget,
  6017. i = e.handleObj;
  6018. return n && (n === this || b.contains(this, n)) || (e.type = i
  6019. .origType, t = i.handler.apply(this, arguments), e
  6020. .type = r), t
  6021. }
  6022. }
  6023. }), b.fn.extend({
  6024. on: function(e, t, n, i) {
  6025. return Le(this, e, t, n, i)
  6026. },
  6027. one: function(e, t, n, i) {
  6028. return Le(this, e, t, n, i, 1)
  6029. },
  6030. off: function(e, t, n) {
  6031. var i, r;
  6032. if (e && e.preventDefault && e.handleObj) return i = e.handleObj, b(e
  6033. .delegateTarget).off(i.namespace ? i.origType + "." + i
  6034. .namespace : i.origType, i.selector, i.handler), this;
  6035. if ("object" != typeof e) return !1 !== t && "function" != typeof t || (
  6036. n = t, t = void 0), !1 === n && (n = ge), this.each(
  6037. function() {
  6038. b.event.remove(this, e, n, t)
  6039. });
  6040. for (r in e) this.off(r, t, e[r]);
  6041. return this
  6042. }
  6043. });
  6044. var ke = /<script|<style|<link/i,
  6045. be = /checked\s*(?:[^=]|=\s*.checked.)/i,
  6046. we = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
  6047. function De(e, t) {
  6048. return D(e, "table") && D(11 !== t.nodeType ? t : t.firstChild, "tr") && b(e).children(
  6049. "tbody")[0] || e
  6050. }
  6051. function Te(e) {
  6052. return e.type = (null !== e.getAttribute("type")) + "/" + e.type, e
  6053. }
  6054. function Ee(e) {
  6055. return "true/" === (e.type || "").slice(0, 5) ? e.type = e.type.slice(5) : e
  6056. .removeAttribute("type"), e
  6057. }
  6058. function Ye(e, t) {
  6059. var n, i, r, a;
  6060. if (1 === t.nodeType) {
  6061. if (q.hasData(e) && (a = q.get(e).events))
  6062. for (r in q.remove(t, "handle events"), a)
  6063. for (n = 0, i = a[r].length; n < i; n++) b.event.add(t, r, a[r][n]);
  6064. K.hasData(e) && (e = K.access(e), e = b.extend({}, e), K.set(t, e))
  6065. }
  6066. }
  6067. function Pe(n, i, r, a) {
  6068. i = y(i);
  6069. var e, t, s, o, u, d, l = 0,
  6070. h = n.length,
  6071. c = h - 1,
  6072. _ = i[0],
  6073. f = m(_);
  6074. if (f || 1 < h && "string" == typeof _ && !g.checkClone && be.test(_)) return n.each(
  6075. function(e) {
  6076. var t = n.eq(e);
  6077. f && (i[0] = _.call(this, e, t.html())), Pe(t, i, r, a)
  6078. });
  6079. if (h && (t = (e = pe(i, n[0].ownerDocument, !1, n, a)).firstChild, 1 === e.childNodes
  6080. .length && (e = t), t || a)) {
  6081. for (o = (s = b.map(_e(e, "script"), Te)).length; l < h; l++) u = e, l !== c && (u =
  6082. b.clone(u, !0, !0), o && b.merge(s, _e(u, "script"))), r.call(n[l], u, l);
  6083. if (o)
  6084. for (d = s[s.length - 1].ownerDocument, b.map(s, Ee), l = 0; l < o; l++) u = s[
  6085. l], he.test(u.type || "") && !q.access(u, "globalEval") && b.contains(d,
  6086. u) && (u.src && "module" !== (u.type || "").toLowerCase() ? b
  6087. ._evalUrl && !u.noModule && b._evalUrl(u.src, {
  6088. nonce: u.nonce || u.getAttribute("nonce")
  6089. }, d) : M(u.textContent.replace(we, ""), u, d))
  6090. }
  6091. return n
  6092. }
  6093. function Ce(e, t, n) {
  6094. for (var i, r = t ? b.filter(t, e) : e, a = 0; null != (i = r[a]); a++) n || 1 !== i
  6095. .nodeType || b.cleanData(_e(i)), i.parentNode && (n && ie(i) && fe(_e(i, "script")),
  6096. i.parentNode.removeChild(i));
  6097. return e
  6098. }
  6099. b.extend({
  6100. htmlPrefilter: function(e) {
  6101. return e
  6102. },
  6103. clone: function(e, t, n) {
  6104. var i, r, a, s, o, u, d, l = e.cloneNode(!0),
  6105. h = ie(e);
  6106. if (!(g.noCloneChecked || 1 !== e.nodeType && 11 !== e.nodeType || b
  6107. .isXMLDoc(e)))
  6108. for (s = _e(l), i = 0, r = (a = _e(e)).length; i < r; i++) o = a[i],
  6109. u = s[i], d = void 0, "input" === (d = u.nodeName
  6110. .toLowerCase()) && de.test(o.type) ? u.checked = o.checked :
  6111. "input" !== d && "textarea" !== d || (u.defaultValue = o
  6112. .defaultValue);
  6113. if (t)
  6114. if (n)
  6115. for (a = a || _e(e), s = s || _e(l), i = 0, r = a.length; i <
  6116. r; i++) Ye(a[i], s[i]);
  6117. else Ye(e, l);
  6118. return 0 < (s = _e(l, "script")).length && fe(s, !h && _e(e, "script")),
  6119. l
  6120. },
  6121. cleanData: function(e) {
  6122. for (var t, n, i, r = b.event.special, a = 0; void 0 !== (n = e[
  6123. a]); a++)
  6124. if (G(n)) {
  6125. if (t = n[q.expando]) {
  6126. if (t.events)
  6127. for (i in t.events) r[i] ? b.event.remove(n, i) : b
  6128. .removeEvent(n, i, t.handle);
  6129. n[q.expando] = void 0
  6130. }
  6131. n[K.expando] && (n[K.expando] = void 0)
  6132. }
  6133. }
  6134. }), b.fn.extend({
  6135. detach: function(e) {
  6136. return Ce(this, e, !0)
  6137. },
  6138. remove: function(e) {
  6139. return Ce(this, e)
  6140. },
  6141. text: function(e) {
  6142. return B(this, function(e) {
  6143. return void 0 === e ? b.text(this) : this.empty().each(
  6144. function() {
  6145. 1 !== this.nodeType && 11 !== this.nodeType &&
  6146. 9 !== this.nodeType || (this.textContent =
  6147. e)
  6148. })
  6149. }, null, e, arguments.length)
  6150. },
  6151. append: function() {
  6152. return Pe(this, arguments, function(e) {
  6153. 1 !== this.nodeType && 11 !== this.nodeType && 9 !== this
  6154. .nodeType || De(this, e).appendChild(e)
  6155. })
  6156. },
  6157. prepend: function() {
  6158. return Pe(this, arguments, function(e) {
  6159. var t;
  6160. 1 !== this.nodeType && 11 !== this.nodeType && 9 !== this
  6161. .nodeType || (t = De(this, e)).insertBefore(e, t
  6162. .firstChild)
  6163. })
  6164. },
  6165. before: function() {
  6166. return Pe(this, arguments, function(e) {
  6167. this.parentNode && this.parentNode.insertBefore(e, this)
  6168. })
  6169. },
  6170. after: function() {
  6171. return Pe(this, arguments, function(e) {
  6172. this.parentNode && this.parentNode.insertBefore(e, this
  6173. .nextSibling)
  6174. })
  6175. },
  6176. empty: function() {
  6177. for (var e, t = 0; null != (e = this[t]); t++) 1 === e.nodeType && (b
  6178. .cleanData(_e(e, !1)), e.textContent = "");
  6179. return this
  6180. },
  6181. clone: function(e, t) {
  6182. return e = null != e && e, t = null == t ? e : t, this.map(function() {
  6183. return b.clone(this, e, t)
  6184. })
  6185. },
  6186. html: function(e) {
  6187. return B(this, function(e) {
  6188. var t = this[0] || {},
  6189. n = 0,
  6190. i = this.length;
  6191. if (void 0 === e && 1 === t.nodeType) return t.innerHTML;
  6192. if ("string" == typeof e && !ke.test(e) && !ce[(le.exec(
  6193. e) || ["", ""])[1].toLowerCase()]) {
  6194. e = b.htmlPrefilter(e);
  6195. try {
  6196. for (; n < i; n++) 1 === (t = this[n] || {})
  6197. .nodeType && (b.cleanData(_e(t, !1)), t
  6198. .innerHTML = e);
  6199. t = 0
  6200. } catch (e) {}
  6201. }
  6202. t && this.empty().append(e)
  6203. }, null, e, arguments.length)
  6204. },
  6205. replaceWith: function() {
  6206. var n = [];
  6207. return Pe(this, arguments, function(e) {
  6208. var t = this.parentNode;
  6209. b.inArray(this, n) < 0 && (b.cleanData(_e(this)), t && t
  6210. .replaceChild(e, this))
  6211. }, n)
  6212. }
  6213. }), b.each({
  6214. appendTo: "append",
  6215. prependTo: "prepend",
  6216. insertBefore: "before",
  6217. insertAfter: "after",
  6218. replaceAll: "replaceWith"
  6219. }, function(e, s) {
  6220. b.fn[e] = function(e) {
  6221. for (var t, n = [], i = b(e), r = i.length - 1, a = 0; a <= r; a++) t =
  6222. a === r ? this : this.clone(!0), b(i[a])[s](t), u.apply(n, t.get());
  6223. return this.pushStack(n)
  6224. }
  6225. });
  6226. function Ae(e) {
  6227. var t = e.ownerDocument.defaultView;
  6228. return (t = !t || !t.opener ? S : t).getComputedStyle(e)
  6229. }
  6230. function Re(e, t, n) {
  6231. var i, r = {};
  6232. for (i in t) r[i] = e.style[i], e.style[i] = t[i];
  6233. for (i in n = n.call(e), t) e.style[i] = r[i];
  6234. return n
  6235. }
  6236. var xe, Oe, Ie, We, He, je, Fe, Be, Ne = new RegExp("^(" + Q + ")(?!px)[a-z%]+$", "i"),
  6237. ze = new RegExp(te.join("|"), "i");
  6238. function Ue() {
  6239. var e;
  6240. Be && (Fe.style.cssText =
  6241. "position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",
  6242. Be.style.cssText =
  6243. "position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",
  6244. ne.appendChild(Fe).appendChild(Be), e = S.getComputedStyle(Be), xe = "1%" !== e
  6245. .top, je = 12 === Ve(e.marginLeft), Be.style.right = "60%", We = 36 === Ve(e
  6246. .right), Oe = 36 === Ve(e.width), Be.style.position = "absolute", Ie =
  6247. 12 === Ve(Be.offsetWidth / 3), ne.removeChild(Fe), Be = null)
  6248. }
  6249. function Ve(e) {
  6250. return Math.round(parseFloat(e))
  6251. }
  6252. function Ge(e, t, n) {
  6253. var i, r, a = e.style;
  6254. return (n = n || Ae(e)) && ("" !== (r = n.getPropertyValue(t) || n[t]) || ie(e) || (r =
  6255. b.style(e, t)), !g.pixelBoxStyles() && Ne.test(r) && ze.test(t) && (i = a
  6256. .width, e = a.minWidth, t = a.maxWidth, a.minWidth = a.maxWidth = a.width =
  6257. r, r = n.width, a.width = i, a.minWidth = e, a.maxWidth = t)), void 0 !== r ?
  6258. r + "" : r
  6259. }
  6260. function Je(e, t) {
  6261. return {
  6262. get: function() {
  6263. if (!e()) return (this.get = t).apply(this, arguments);
  6264. delete this.get
  6265. }
  6266. }
  6267. }
  6268. Fe = k.createElement("div"), (Be = k.createElement("div")).style && (Be.style
  6269. .backgroundClip = "content-box", Be.cloneNode(!0).style.backgroundClip = "", g
  6270. .clearCloneStyle = "content-box" === Be.style.backgroundClip, b.extend(g, {
  6271. boxSizingReliable: function() {
  6272. return Ue(), Oe
  6273. },
  6274. pixelBoxStyles: function() {
  6275. return Ue(), We
  6276. },
  6277. pixelPosition: function() {
  6278. return Ue(), xe
  6279. },
  6280. reliableMarginLeft: function() {
  6281. return Ue(), je
  6282. },
  6283. scrollboxSize: function() {
  6284. return Ue(), Ie
  6285. },
  6286. reliableTrDimensions: function() {
  6287. var e, t, n;
  6288. return null == He && (e = k.createElement("table"), t = k
  6289. .createElement("tr"), n = k.createElement("div"), e.style
  6290. .cssText =
  6291. "position:absolute;left:-11111px;border-collapse:separate",
  6292. t.style.cssText = "border:1px solid", t.style.height =
  6293. "1px", n.style.height = "9px", n.style.display = "block", ne
  6294. .appendChild(e).appendChild(t).appendChild(n), n = S
  6295. .getComputedStyle(t), He = parseInt(n.height, 10) +
  6296. parseInt(n.borderTopWidth, 10) + parseInt(n
  6297. .borderBottomWidth, 10) === t.offsetHeight, ne
  6298. .removeChild(e)), He
  6299. }
  6300. }));
  6301. var qe = ["Webkit", "Moz", "ms"],
  6302. Ke = k.createElement("div").style,
  6303. Xe = {};
  6304. function Ze(e) {
  6305. var t = b.cssProps[e] || Xe[e];
  6306. return t || (e in Ke ? e : Xe[e] = function(e) {
  6307. for (var t = e[0].toUpperCase() + e.slice(1), n = qe.length; n--;)
  6308. if ((e = qe[n] + t) in Ke) return e
  6309. }(e) || e)
  6310. }
  6311. var $e = /^(none|table(?!-c[ea]).+)/,
  6312. Qe = /^--/,
  6313. et = {
  6314. position: "absolute",
  6315. visibility: "hidden",
  6316. display: "block"
  6317. },
  6318. tt = {
  6319. letterSpacing: "0",
  6320. fontWeight: "400"
  6321. };
  6322. function nt(e, t, n) {
  6323. var i = ee.exec(t);
  6324. return i ? Math.max(0, i[2] - (n || 0)) + (i[3] || "px") : t
  6325. }
  6326. function it(e, t, n, i, r, a) {
  6327. var s = "width" === t ? 1 : 0,
  6328. o = 0,
  6329. u = 0;
  6330. if (n === (i ? "border" : "content")) return 0;
  6331. for (; s < 4; s += 2) "margin" === n && (u += b.css(e, n + te[s], !0, r)), i ? (
  6332. "content" === n && (u -= b.css(e, "padding" + te[s], !0, r)), "margin" !== n &&
  6333. (u -= b.css(e, "border" + te[s] + "Width", !0, r))) : (u += b.css(e, "padding" +
  6334. te[s], !0, r), "padding" !== n ? u += b.css(e, "border" + te[s] + "Width", !
  6335. 0, r) : o += b.css(e, "border" + te[s] + "Width", !0, r));
  6336. return !i && 0 <= a && (u += Math.max(0, Math.ceil(e["offset" + t[0].toUpperCase() + t
  6337. .slice(1)] - a - u - o - .5)) || 0), u
  6338. }
  6339. function rt(e, t, n) {
  6340. var i = Ae(e),
  6341. r = (!g.boxSizingReliable() || n) && "border-box" === b.css(e, "boxSizing", !1, i),
  6342. a = r,
  6343. s = Ge(e, t, i),
  6344. o = "offset" + t[0].toUpperCase() + t.slice(1);
  6345. if (Ne.test(s)) {
  6346. if (!n) return s;
  6347. s = "auto"
  6348. }
  6349. return (!g.boxSizingReliable() && r || !g.reliableTrDimensions() && D(e, "tr") ||
  6350. "auto" === s || !parseFloat(s) && "inline" === b.css(e, "display", !1, i)) && e
  6351. .getClientRects().length && (r = "border-box" === b.css(e, "boxSizing", !1, i), (a =
  6352. o in e) && (s = e[o])), (s = parseFloat(s) || 0) + it(e, t, n || (r ? "border" :
  6353. "content"), a, i, s) + "px"
  6354. }
  6355. function at(e, t, n, i, r) {
  6356. return new at.prototype.init(e, t, n, i, r)
  6357. }
  6358. b.extend({
  6359. cssHooks: {
  6360. opacity: {
  6361. get: function(e, t) {
  6362. if (t) {
  6363. e = Ge(e, "opacity");
  6364. return "" === e ? "1" : e
  6365. }
  6366. }
  6367. }
  6368. },
  6369. cssNumber: {
  6370. animationIterationCount: !0,
  6371. columnCount: !0,
  6372. fillOpacity: !0,
  6373. flexGrow: !0,
  6374. flexShrink: !0,
  6375. fontWeight: !0,
  6376. gridArea: !0,
  6377. gridColumn: !0,
  6378. gridColumnEnd: !0,
  6379. gridColumnStart: !0,
  6380. gridRow: !0,
  6381. gridRowEnd: !0,
  6382. gridRowStart: !0,
  6383. lineHeight: !0,
  6384. opacity: !0,
  6385. order: !0,
  6386. orphans: !0,
  6387. widows: !0,
  6388. zIndex: !0,
  6389. zoom: !0
  6390. },
  6391. cssProps: {},
  6392. style: function(e, t, n, i) {
  6393. if (e && 3 !== e.nodeType && 8 !== e.nodeType && e.style) {
  6394. var r, a, s, o = V(t),
  6395. u = Qe.test(t),
  6396. d = e.style;
  6397. if (u || (t = Ze(o)), s = b.cssHooks[t] || b.cssHooks[o], void 0 ===
  6398. n) return s && "get" in s && void 0 !== (r = s.get(e, !1, i)) ?
  6399. r : d[t];
  6400. "string" === (a = typeof n) && (r = ee.exec(n)) && r[1] && (n = se(
  6401. e, t, r), a = "number"), null != n && n == n && (
  6402. "number" !== a || u || (n += r && r[3] || (b.cssNumber[o] ?
  6403. "" : "px")), g.clearCloneStyle || "" !== n || 0 !== t
  6404. .indexOf("background") || (d[t] = "inherit"), s && "set" in
  6405. s && void 0 === (n = s.set(e, n, i)) || (u ? d.setProperty(
  6406. t, n) : d[t] = n))
  6407. }
  6408. },
  6409. css: function(e, t, n, i) {
  6410. var r, a = V(t);
  6411. return Qe.test(t) || (t = Ze(a)), "normal" === (r = void 0 === (r = (a =
  6412. b.cssHooks[t] || b.cssHooks[a]) && "get" in a ? a.get(e,
  6413. !0, n) : r) ? Ge(e, t, i) : r) && t in tt && (r = tt[t]), "" ===
  6414. n || n ? (t = parseFloat(r), !0 === n || isFinite(t) ? t || 0 : r) :
  6415. r
  6416. }
  6417. }), b.each(["height", "width"], function(e, o) {
  6418. b.cssHooks[o] = {
  6419. get: function(e, t, n) {
  6420. if (t) return !$e.test(b.css(e, "display")) || e
  6421. .getClientRects().length && e.getBoundingClientRect()
  6422. .width ? rt(e, o, n) : Re(e, et, function() {
  6423. return rt(e, o, n)
  6424. })
  6425. },
  6426. set: function(e, t, n) {
  6427. var i, r = Ae(e),
  6428. a = !g.scrollboxSize() && "absolute" === r.position,
  6429. s = (a || n) && "border-box" === b.css(e, "boxSizing", !1,
  6430. r),
  6431. n = n ? it(e, o, n, s, r) : 0;
  6432. return s && a && (n -= Math.ceil(e["offset" + o[0]
  6433. .toUpperCase() + o.slice(1)] - parseFloat(r[
  6434. o]) -
  6435. it(e, o, "border", !1, r) - .5)), n && (i = ee.exec(
  6436. t)) && "px" !== (i[3] || "px") && (e.style[o] = t, t = b
  6437. .css(e, o)), nt(0, t, n)
  6438. }
  6439. }
  6440. }), b.cssHooks.marginLeft = Je(g.reliableMarginLeft, function(e, t) {
  6441. if (t) return (parseFloat(Ge(e, "marginLeft")) || e.getBoundingClientRect()
  6442. .left - Re(e, {
  6443. marginLeft: 0
  6444. }, function() {
  6445. return e.getBoundingClientRect().left
  6446. })) + "px"
  6447. }), b.each({
  6448. margin: "",
  6449. padding: "",
  6450. border: "Width"
  6451. }, function(r, a) {
  6452. b.cssHooks[r + a] = {
  6453. expand: function(e) {
  6454. for (var t = 0, n = {}, i = "string" == typeof e ? e.split(
  6455. " ") : [e]; t < 4; t++) n[r + te[t] + a] = i[t] || i[t -
  6456. 2] || i[0];
  6457. return n
  6458. }
  6459. }, "margin" !== r && (b.cssHooks[r + a].set = nt)
  6460. }), b.fn.extend({
  6461. css: function(e, t) {
  6462. return B(this, function(e, t, n) {
  6463. var i, r, a = {},
  6464. s = 0;
  6465. if (Array.isArray(t)) {
  6466. for (i = Ae(e), r = t.length; s < r; s++) a[t[s]] = b
  6467. .css(e, t[s], !1, i);
  6468. return a
  6469. }
  6470. return void 0 !== n ? b.style(e, t, n) : b.css(e, t)
  6471. }, e, t, 1 < arguments.length)
  6472. }
  6473. }), ((b.Tween = at).prototype = {
  6474. constructor: at,
  6475. init: function(e, t, n, i, r, a) {
  6476. this.elem = e, this.prop = n, this.easing = r || b.easing._default, this
  6477. .options = t, this.start = this.now = this.cur(), this.end = i, this
  6478. .unit = a || (b.cssNumber[n] ? "" : "px")
  6479. },
  6480. cur: function() {
  6481. var e = at.propHooks[this.prop];
  6482. return (e && e.get ? e : at.propHooks._default).get(this)
  6483. },
  6484. run: function(e) {
  6485. var t, n = at.propHooks[this.prop];
  6486. return this.options.duration ? this.pos = t = b.easing[this.easing](e,
  6487. this.options.duration * e, 0, 1, this.options.duration) : this
  6488. .pos = t = e, this.now = (this.end - this.start) * t + this.start,
  6489. this.options.step && this.options.step.call(this.elem, this.now,
  6490. this), (n && n.set ? n : at.propHooks._default).set(this), this
  6491. }
  6492. }).init.prototype = at.prototype, (at.propHooks = {
  6493. _default: {
  6494. get: function(e) {
  6495. return 1 !== e.elem.nodeType || null != e.elem[e.prop] && null == e
  6496. .elem.style[e.prop] ? e.elem[e.prop] : (e = b.css(e.elem, e
  6497. .prop, "")) && "auto" !== e ? e : 0
  6498. },
  6499. set: function(e) {
  6500. b.fx.step[e.prop] ? b.fx.step[e.prop](e) : 1 !== e.elem.nodeType ||
  6501. !b.cssHooks[e.prop] && null == e.elem.style[Ze(e.prop)] ? e
  6502. .elem[e.prop] = e.now : b.style(e.elem, e.prop, e.now + e.unit)
  6503. }
  6504. }
  6505. }).scrollTop = at.propHooks.scrollLeft = {
  6506. set: function(e) {
  6507. e.elem.nodeType && e.elem.parentNode && (e.elem[e.prop] = e.now)
  6508. }
  6509. }, b.easing = {
  6510. linear: function(e) {
  6511. return e
  6512. },
  6513. swing: function(e) {
  6514. return .5 - Math.cos(e * Math.PI) / 2
  6515. },
  6516. _default: "swing"
  6517. }, b.fx = at.prototype.init, b.fx.step = {};
  6518. var st, ot, ut = /^(?:toggle|show|hide)$/,
  6519. dt = /queueHooks$/;
  6520. function lt() {
  6521. ot && (!1 === k.hidden && S.requestAnimationFrame ? S.requestAnimationFrame(lt) : S
  6522. .setTimeout(lt, b.fx.interval), b.fx.tick())
  6523. }
  6524. function ht() {
  6525. return S.setTimeout(function() {
  6526. st = void 0
  6527. }), st = Date.now()
  6528. }
  6529. function ct(e, t) {
  6530. var n, i = 0,
  6531. r = {
  6532. height: e
  6533. };
  6534. for (t = t ? 1 : 0; i < 4; i += 2 - t) r["margin" + (n = te[i])] = r["padding" + n] = e;
  6535. return t && (r.opacity = r.width = e), r
  6536. }
  6537. function _t(e, t, n) {
  6538. for (var i, r = (ft.tweeners[t] || []).concat(ft.tweeners["*"]), a = 0, s = r
  6539. .length; a < s; a++)
  6540. if (i = r[a].call(n, t, e)) return i
  6541. }
  6542. function ft(r, e, t) {
  6543. var n, a, i = 0,
  6544. s = ft.prefilters.length,
  6545. o = b.Deferred().always(function() {
  6546. delete u.elem
  6547. }),
  6548. u = function() {
  6549. if (a) return !1;
  6550. for (var e = st || ht(), e = Math.max(0, d.startTime + d.duration - e), t = 1 -
  6551. (e / d.duration || 0), n = 0, i = d.tweens.length; n < i; n++) d.tweens[
  6552. n].run(t);
  6553. return o.notifyWith(r, [d, t, e]), t < 1 && i ? e : (i || o.notifyWith(r, [d, 1,
  6554. 0
  6555. ]), o.resolveWith(r, [d]), !1)
  6556. },
  6557. d = o.promise({
  6558. elem: r,
  6559. props: b.extend({}, e),
  6560. opts: b.extend(!0, {
  6561. specialEasing: {},
  6562. easing: b.easing._default
  6563. }, t),
  6564. originalProperties: e,
  6565. originalOptions: t,
  6566. startTime: st || ht(),
  6567. duration: t.duration,
  6568. tweens: [],
  6569. createTween: function(e, t) {
  6570. e = b.Tween(r, d.opts, e, t, d.opts.specialEasing[e] || d.opts
  6571. .easing);
  6572. return d.tweens.push(e), e
  6573. },
  6574. stop: function(e) {
  6575. var t = 0,
  6576. n = e ? d.tweens.length : 0;
  6577. if (a) return this;
  6578. for (a = !0; t < n; t++) d.tweens[t].run(1);
  6579. return e ? (o.notifyWith(r, [d, 1, 0]), o.resolveWith(r, [d, e])) :
  6580. o.rejectWith(r, [d, e]), this
  6581. }
  6582. }),
  6583. l = d.props;
  6584. for (! function(e, t) {
  6585. var n, i, r, a, s;
  6586. for (n in e)
  6587. if (r = t[i = V(n)], a = e[n], Array.isArray(a) && (r = a[1], a = e[n] = a[
  6588. 0]), n !== i && (e[i] = a, delete e[n]), (s = b.cssHooks[i]) &&
  6589. "expand" in s)
  6590. for (n in a = s.expand(a), delete e[i], a) n in e || (e[n] = a[n], t[
  6591. n] = r);
  6592. else t[i] = r
  6593. }(l, d.opts.specialEasing); i < s; i++)
  6594. if (n = ft.prefilters[i].call(d, r, l, d.opts)) return m(n.stop) && (b._queueHooks(d
  6595. .elem, d.opts.queue).stop = n.stop.bind(n)), n;
  6596. return b.map(l, _t, d), m(d.opts.start) && d.opts.start.call(r, d), d.progress(d.opts
  6597. .progress).done(d.opts.done, d.opts.complete).fail(d.opts.fail).always(d.opts
  6598. .always), b.fx.timer(b.extend(u, {
  6599. elem: r,
  6600. anim: d,
  6601. queue: d.opts.queue
  6602. })), d
  6603. }
  6604. b.Animation = b.extend(ft, {
  6605. tweeners: {
  6606. "*": [function(e, t) {
  6607. var n = this.createTween(e, t);
  6608. return se(n.elem, e, ee.exec(t), n), n
  6609. }]
  6610. },
  6611. tweener: function(e, t) {
  6612. for (var n, i = 0, r = (e = m(e) ? (t = e, ["*"]) : e.match(x))
  6613. .length; i < r; i++) n = e[i], ft.tweeners[n] = ft.tweeners[
  6614. n] || [], ft.tweeners[n].unshift(t)
  6615. },
  6616. prefilters: [function(e, t, n) {
  6617. var i, r, a, s, o, u, d, l = "width" in t || "height" in t,
  6618. h = this,
  6619. c = {},
  6620. _ = e.style,
  6621. f = e.nodeType && ae(e),
  6622. m = q.get(e, "fxshow");
  6623. for (i in n.queue || (null == (s = b._queueHooks(e, "fx"))
  6624. .unqueued && (s.unqueued = 0, o = s.empty.fire, s.empty
  6625. .fire = function() {
  6626. s.unqueued || o()
  6627. }), s.unqueued++, h.always(function() {
  6628. h.always(function() {
  6629. s.unqueued--, b.queue(e, "fx").length ||
  6630. s.empty.fire()
  6631. })
  6632. })), t)
  6633. if (r = t[i], ut.test(r)) {
  6634. if (delete t[i], a = a || "toggle" === r, r === (f ?
  6635. "hide" : "show")) {
  6636. if ("show" !== r || !m || void 0 === m[i]) continue;
  6637. f = !0
  6638. }
  6639. c[i] = m && m[i] || b.style(e, i)
  6640. } if ((u = !b.isEmptyObject(t)) || !b.isEmptyObject(c))
  6641. for (i in l && 1 === e.nodeType && (n.overflow = [_.overflow, _
  6642. .overflowX, _.overflowY
  6643. ], null == (d = m && m.display) && (d = q.get(e,
  6644. "display")), "none" === (l = b.css(e, "display")) &&
  6645. (d ? l = d : (ue([e], !0), d = e.style.display || d, l =
  6646. b.css(e, "display"), ue([e]))), ("inline" === l ||
  6647. "inline-block" === l && null != d) && "none" === b
  6648. .css(e, "float") && (u || (h.done(function() {
  6649. _.display = d
  6650. }), null == d && (l = _.display, d = "none" ===
  6651. l ? "" : l)), _.display = "inline-block")), n
  6652. .overflow && (_.overflow = "hidden", h.always(function() {
  6653. _.overflow = n.overflow[0], _.overflowX = n
  6654. .overflow[1], _.overflowY = n.overflow[2]
  6655. })), u = !1, c) u || (m ? "hidden" in m && (f = m.hidden) :
  6656. m = q.access(e, "fxshow", {
  6657. display: d
  6658. }), a && (m.hidden = !f), f && ue([e], !0), h.done(
  6659. function() {
  6660. for (i in f || ue([e]), q.remove(e, "fxshow"),
  6661. c) b.style(e, i, c[i])
  6662. })), u = _t(f ? m[i] : 0, i, h), i in m || (m[i] = u
  6663. .start, f && (u.end = u.start, u.start = 0))
  6664. }],
  6665. prefilter: function(e, t) {
  6666. t ? ft.prefilters.unshift(e) : ft.prefilters.push(e)
  6667. }
  6668. }), b.speed = function(e, t, n) {
  6669. var i = e && "object" == typeof e ? b.extend({}, e) : {
  6670. complete: n || !n && t || m(e) && e,
  6671. duration: e,
  6672. easing: n && t || t && !m(t) && t
  6673. };
  6674. return b.fx.off ? i.duration = 0 : "number" != typeof i.duration && (i.duration in b
  6675. .fx.speeds ? i.duration = b.fx.speeds[i.duration] : i.duration = b.fx.speeds
  6676. ._default), null != i.queue && !0 !== i.queue || (i.queue = "fx"), i.old = i
  6677. .complete, i.complete = function() {
  6678. m(i.old) && i.old.call(this), i.queue && b.dequeue(this, i.queue)
  6679. }, i
  6680. }, b.fn.extend({
  6681. fadeTo: function(e, t, n, i) {
  6682. return this.filter(ae).css("opacity", 0).show().end().animate({
  6683. opacity: t
  6684. }, e, n, i)
  6685. },
  6686. animate: function(t, e, n, i) {
  6687. var r = b.isEmptyObject(t),
  6688. a = b.speed(e, n, i),
  6689. i = function() {
  6690. var e = ft(this, b.extend({}, t), a);
  6691. (r || q.get(this, "finish")) && e.stop(!0)
  6692. };
  6693. return i.finish = i, r || !1 === a.queue ? this.each(i) : this.queue(a
  6694. .queue, i)
  6695. },
  6696. stop: function(r, e, a) {
  6697. function s(e) {
  6698. var t = e.stop;
  6699. delete e.stop, t(a)
  6700. }
  6701. return "string" != typeof r && (a = e, e = r, r = void 0), e && this
  6702. .queue(r || "fx", []), this.each(function() {
  6703. var e = !0,
  6704. t = null != r && r + "queueHooks",
  6705. n = b.timers,
  6706. i = q.get(this);
  6707. if (t) i[t] && i[t].stop && s(i[t]);
  6708. else
  6709. for (t in i) i[t] && i[t].stop && dt.test(t) && s(i[t]);
  6710. for (t = n.length; t--;) n[t].elem !== this || null != r &&
  6711. n[t].queue !== r || (n[t].anim.stop(a), e = !1, n
  6712. .splice(t, 1));
  6713. !e && a || b.dequeue(this, r)
  6714. })
  6715. },
  6716. finish: function(s) {
  6717. return !1 !== s && (s = s || "fx"), this.each(function() {
  6718. var e, t = q.get(this),
  6719. n = t[s + "queue"],
  6720. i = t[s + "queueHooks"],
  6721. r = b.timers,
  6722. a = n ? n.length : 0;
  6723. for (t.finish = !0, b.queue(this, s, []), i && i.stop && i
  6724. .stop.call(this, !0), e = r.length; e--;) r[e].elem ===
  6725. this && r[e].queue === s && (r[e].anim.stop(!0), r
  6726. .splice(e, 1));
  6727. for (e = 0; e < a; e++) n[e] && n[e].finish && n[e].finish
  6728. .call(this);
  6729. delete t.finish
  6730. })
  6731. }
  6732. }), b.each(["toggle", "show", "hide"], function(e, i) {
  6733. var r = b.fn[i];
  6734. b.fn[i] = function(e, t, n) {
  6735. return null == e || "boolean" == typeof e ? r.apply(this, arguments) :
  6736. this.animate(ct(i, !0), e, t, n)
  6737. }
  6738. }), b.each({
  6739. slideDown: ct("show"),
  6740. slideUp: ct("hide"),
  6741. slideToggle: ct("toggle"),
  6742. fadeIn: {
  6743. opacity: "show"
  6744. },
  6745. fadeOut: {
  6746. opacity: "hide"
  6747. },
  6748. fadeToggle: {
  6749. opacity: "toggle"
  6750. }
  6751. }, function(e, i) {
  6752. b.fn[e] = function(e, t, n) {
  6753. return this.animate(i, e, t, n)
  6754. }
  6755. }), b.timers = [], b.fx.tick = function() {
  6756. var e, t = 0,
  6757. n = b.timers;
  6758. for (st = Date.now(); t < n.length; t++)(e = n[t])() || n[t] !== e || n.splice(t--,
  6759. 1);
  6760. n.length || b.fx.stop(), st = void 0
  6761. }, b.fx.timer = function(e) {
  6762. b.timers.push(e), b.fx.start()
  6763. }, b.fx.interval = 13, b.fx.start = function() {
  6764. ot || (ot = !0, lt())
  6765. }, b.fx.stop = function() {
  6766. ot = null
  6767. }, b.fx.speeds = {
  6768. slow: 600,
  6769. fast: 200,
  6770. _default: 400
  6771. }, b.fn.delay = function(i, e) {
  6772. return i = b.fx && b.fx.speeds[i] || i, this.queue(e = e || "fx", function(e, t) {
  6773. var n = S.setTimeout(e, i);
  6774. t.stop = function() {
  6775. S.clearTimeout(n)
  6776. }
  6777. })
  6778. }, Jt = k.createElement("input"), Q = k.createElement("select").appendChild(k
  6779. .createElement("option")), Jt.type = "checkbox", g.checkOn = "" !== Jt.value, g
  6780. .optSelected = Q.selected, (Jt = k.createElement("input")).value = "t", Jt.type =
  6781. "radio", g.radioValue = "t" === Jt.value;
  6782. var mt, pt = b.expr.attrHandle;
  6783. b.fn.extend({
  6784. attr: function(e, t) {
  6785. return B(this, b.attr, e, t, 1 < arguments.length)
  6786. },
  6787. removeAttr: function(e) {
  6788. return this.each(function() {
  6789. b.removeAttr(this, e)
  6790. })
  6791. }
  6792. }), b.extend({
  6793. attr: function(e, t, n) {
  6794. var i, r, a = e.nodeType;
  6795. if (3 !== a && 8 !== a && 2 !== a) return void 0 === e.getAttribute ? b
  6796. .prop(e, t, n) : (1 === a && b.isXMLDoc(e) || (r = b.attrHooks[t
  6797. .toLowerCase()] || (b.expr.match.bool.test(t) ? mt :
  6798. void 0)), void 0 !== n ? null === n ? void b.removeAttr(
  6799. e, t) : r && "set" in r && void 0 !== (i = r.set(e, n,
  6800. t)) ? i : (e.setAttribute(t, n + ""), n) : !(r &&
  6801. "get" in r && null !== (i = r.get(e, t))) && null == (
  6802. i = b.find.attr(e, t)) ? void 0 : i)
  6803. },
  6804. attrHooks: {
  6805. type: {
  6806. set: function(e, t) {
  6807. if (!g.radioValue && "radio" === t && D(e, "input")) {
  6808. var n = e.value;
  6809. return e.setAttribute("type", t), n && (e.value = n), t
  6810. }
  6811. }
  6812. }
  6813. },
  6814. removeAttr: function(e, t) {
  6815. var n, i = 0,
  6816. r = t && t.match(x);
  6817. if (r && 1 === e.nodeType)
  6818. for (; n = r[i++];) e.removeAttribute(n)
  6819. }
  6820. }), mt = {
  6821. set: function(e, t, n) {
  6822. return !1 === t ? b.removeAttr(e, n) : e.setAttribute(n, n), n
  6823. }
  6824. }, b.each(b.expr.match.bool.source.match(/\w+/g), function(e, t) {
  6825. var s = pt[t] || b.find.attr;
  6826. pt[t] = function(e, t, n) {
  6827. var i, r, a = t.toLowerCase();
  6828. return n || (r = pt[a], pt[a] = i, i = null != s(e, t, n) ? a : null,
  6829. pt[a] = r), i
  6830. }
  6831. });
  6832. var yt = /^(?:input|select|textarea|button)$/i,
  6833. vt = /^(?:a|area)$/i;
  6834. function gt(e) {
  6835. return (e.match(x) || []).join(" ")
  6836. }
  6837. function Mt(e) {
  6838. return e.getAttribute && e.getAttribute("class") || ""
  6839. }
  6840. function Lt(e) {
  6841. return Array.isArray(e) ? e : "string" == typeof e && e.match(x) || []
  6842. }
  6843. b.fn.extend({
  6844. prop: function(e, t) {
  6845. return B(this, b.prop, e, t, 1 < arguments.length)
  6846. },
  6847. removeProp: function(e) {
  6848. return this.each(function() {
  6849. delete this[b.propFix[e] || e]
  6850. })
  6851. }
  6852. }), b.extend({
  6853. prop: function(e, t, n) {
  6854. var i, r, a = e.nodeType;
  6855. if (3 !== a && 8 !== a && 2 !== a) return 1 === a && b.isXMLDoc(e) || (
  6856. t = b.propFix[t] || t, r = b.propHooks[t]), void 0 !== n ?
  6857. r && "set" in r && void 0 !== (i = r.set(e, n, t)) ? i : e[t] =
  6858. n : r && "get" in r && null !== (i = r.get(e, t)) ? i : e[t]
  6859. },
  6860. propHooks: {
  6861. tabIndex: {
  6862. get: function(e) {
  6863. var t = b.find.attr(e, "tabindex");
  6864. return t ? parseInt(t, 10) : yt.test(e.nodeName) || vt.test(e
  6865. .nodeName) && e.href ? 0 : -1
  6866. }
  6867. }
  6868. },
  6869. propFix: {
  6870. for: "htmlFor",
  6871. class: "className"
  6872. }
  6873. }), g.optSelected || (b.propHooks.selected = {
  6874. get: function(e) {
  6875. e = e.parentNode;
  6876. return e && e.parentNode && e.parentNode.selectedIndex, null
  6877. },
  6878. set: function(e) {
  6879. e = e.parentNode;
  6880. e && (e.selectedIndex, e.parentNode && e.parentNode.selectedIndex)
  6881. }
  6882. }), b.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding",
  6883. "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"
  6884. ], function() {
  6885. b.propFix[this.toLowerCase()] = this
  6886. }), b.fn.extend({
  6887. addClass: function(t) {
  6888. var e, n, i, r, a, s, o = 0;
  6889. if (m(t)) return this.each(function(e) {
  6890. b(this).addClass(t.call(this, e, Mt(this)))
  6891. });
  6892. if ((e = Lt(t)).length)
  6893. for (; n = this[o++];)
  6894. if (s = Mt(n), i = 1 === n.nodeType && " " + gt(s) + " ") {
  6895. for (a = 0; r = e[a++];) i.indexOf(" " + r + " ") < 0 && (
  6896. i += r + " ");
  6897. s !== (s = gt(i)) && n.setAttribute("class", s)
  6898. } return this
  6899. },
  6900. removeClass: function(t) {
  6901. var e, n, i, r, a, s, o = 0;
  6902. if (m(t)) return this.each(function(e) {
  6903. b(this).removeClass(t.call(this, e, Mt(this)))
  6904. });
  6905. if (!arguments.length) return this.attr("class", "");
  6906. if ((e = Lt(t)).length)
  6907. for (; n = this[o++];)
  6908. if (s = Mt(n), i = 1 === n.nodeType && " " + gt(s) + " ") {
  6909. for (a = 0; r = e[a++];)
  6910. for (; - 1 < i.indexOf(" " + r + " ");) i = i.replace(
  6911. " " + r + " ", " ");
  6912. s !== (s = gt(i)) && n.setAttribute("class", s)
  6913. } return this
  6914. },
  6915. toggleClass: function(r, t) {
  6916. var a = typeof r,
  6917. s = "string" == a || Array.isArray(r);
  6918. return "boolean" == typeof t && s ? t ? this.addClass(r) : this
  6919. .removeClass(r) : m(r) ? this.each(function(e) {
  6920. b(this).toggleClass(r.call(this, e, Mt(this), t), t)
  6921. }) : this.each(function() {
  6922. var e, t, n, i;
  6923. if (s)
  6924. for (t = 0, n = b(this), i = Lt(r); e = i[t++];) n
  6925. .hasClass(e) ? n.removeClass(e) : n.addClass(e);
  6926. else void 0 !== r && "boolean" != a || ((e = Mt(this)) && q
  6927. .set(this, "__className__", e), this.setAttribute &&
  6928. this.setAttribute("class", !e && !1 !== r && q.get(
  6929. this, "__className__") || ""))
  6930. })
  6931. },
  6932. hasClass: function(e) {
  6933. for (var t, n = 0, i = " " + e + " "; t = this[n++];)
  6934. if (1 === t.nodeType && -1 < (" " + gt(Mt(t)) + " ").indexOf(i))
  6935. return !0;
  6936. return !1
  6937. }
  6938. });
  6939. var St = /\r/g;
  6940. b.fn.extend({
  6941. val: function(t) {
  6942. var n, e, i, r = this[0];
  6943. return arguments.length ? (i = m(t), this.each(function(e) {
  6944. 1 === this.nodeType && (null == (e = i ? t.call(this, e,
  6945. b(this).val()) : t) ? e = "" : "number" ==
  6946. typeof e ? e += "" : Array.isArray(e) && (e = b
  6947. .map(e, function(e) {
  6948. return null == e ? "" : e + ""
  6949. })), (n = b.valHooks[this.type] || b
  6950. .valHooks[this.nodeName.toLowerCase()]) &&
  6951. "set" in n && void 0 !== n.set(this, e,
  6952. "value") || (this.value = e))
  6953. })) : r ? (n = b.valHooks[r.type] || b.valHooks[r.nodeName
  6954. .toLowerCase()]) && "get" in n && void 0 !== (e = n.get(r,
  6955. "value")) ? e : "string" == typeof(e = r.value) ? e.replace(St,
  6956. "") : null == e ? "" : e : void 0
  6957. }
  6958. }), b.extend({
  6959. valHooks: {
  6960. option: {
  6961. get: function(e) {
  6962. var t = b.find.attr(e, "value");
  6963. return null != t ? t : gt(b.text(e))
  6964. }
  6965. },
  6966. select: {
  6967. get: function(e) {
  6968. for (var t, n = e.options, i = e.selectedIndex, r =
  6969. "select-one" === e.type, a = r ? null : [], s = r ? i +
  6970. 1 : n.length, o = i < 0 ? s : r ? i : 0; o < s; o++)
  6971. if (((t = n[o]).selected || o === i) && !t.disabled && (!t
  6972. .parentNode.disabled || !D(t.parentNode, "optgroup")
  6973. )) {
  6974. if (t = b(t).val(), r) return t;
  6975. a.push(t)
  6976. } return a
  6977. },
  6978. set: function(e, t) {
  6979. for (var n, i, r = e.options, a = b.makeArray(t), s = r
  6980. .length; s--;)((i = r[s]).selected = -1 < b.inArray(b
  6981. .valHooks.option.get(i), a)) && (n = !0);
  6982. return n || (e.selectedIndex = -1), a
  6983. }
  6984. }
  6985. }
  6986. }), b.each(["radio", "checkbox"], function() {
  6987. b.valHooks[this] = {
  6988. set: function(e, t) {
  6989. if (Array.isArray(t)) return e.checked = -1 < b.inArray(b(e)
  6990. .val(), t)
  6991. }
  6992. }, g.checkOn || (b.valHooks[this].get = function(e) {
  6993. return null === e.getAttribute("value") ? "on" : e.value
  6994. })
  6995. }), g.focusin = "onfocusin" in S;
  6996. function kt(e) {
  6997. e.stopPropagation()
  6998. }
  6999. var bt = /^(?:focusinfocus|focusoutblur)$/;
  7000. b.extend(b.event, {
  7001. trigger: function(e, t, n, i) {
  7002. var r, a, s, o, u, d, l, h = [n || k],
  7003. c = v.call(e, "type") ? e.type : e,
  7004. _ = v.call(e, "namespace") ? e.namespace.split(".") : [],
  7005. f = l = a = n = n || k;
  7006. if (3 !== n.nodeType && 8 !== n.nodeType && !bt.test(c + b.event
  7007. .triggered) && (-1 < c.indexOf(".") && (c = (_ = c.split("."))
  7008. .shift(), _.sort()), o = c.indexOf(":") < 0 && "on" + c, (
  7009. e = e[b.expando] ? e : new b.Event(c, "object" ==
  7010. typeof e && e)).isTrigger = i ? 2 : 3, e.namespace = _
  7011. .join("."), e.rnamespace = e.namespace ? new RegExp("(^|\\.)" +
  7012. _.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, e.result =
  7013. void 0, e.target || (e.target = n), t = null == t ? [e] : b
  7014. .makeArray(t, [e]), d = b.event.special[c] || {}, i || !d
  7015. .trigger || !1 !== d.trigger.apply(n, t))) {
  7016. if (!i && !d.noBubble && !p(n)) {
  7017. for (s = d.delegateType || c, bt.test(s + c) || (f = f
  7018. .parentNode); f; f = f.parentNode) h.push(f), a = f;
  7019. a === (n.ownerDocument || k) && h.push(a.defaultView || a
  7020. .parentWindow || S)
  7021. }
  7022. for (r = 0;
  7023. (f = h[r++]) && !e.isPropagationStopped();) l = f, e.type = 1 <
  7024. r ? s : d.bindType || c, (u = (q.get(f, "events") || Object
  7025. .create(null))[e.type] && q.get(f, "handle")) && u.apply(f,
  7026. t), (u = o && f[o]) && u.apply && G(f) && (e.result = u
  7027. .apply(f, t), !1 === e.result && e.preventDefault());
  7028. return e.type = c, i || e.isDefaultPrevented() || d._default && !
  7029. 1 !== d._default.apply(h.pop(), t) || !G(n) || o && m(n[c]) && !
  7030. p(n) && ((a = n[o]) && (n[o] = null), b.event.triggered = c, e
  7031. .isPropagationStopped() && l.addEventListener(c, kt), n[c]
  7032. (), e.isPropagationStopped() && l.removeEventListener(c,
  7033. kt), b
  7034. .event.triggered = void 0, a && (n[o] = a)), e.result
  7035. }
  7036. },
  7037. simulate: function(e, t, n) {
  7038. e = b.extend(new b.Event, n, {
  7039. type: e,
  7040. isSimulated: !0
  7041. });
  7042. b.event.trigger(e, null, t)
  7043. }
  7044. }), b.fn.extend({
  7045. trigger: function(e, t) {
  7046. return this.each(function() {
  7047. b.event.trigger(e, t, this)
  7048. })
  7049. },
  7050. triggerHandler: function(e, t) {
  7051. var n = this[0];
  7052. if (n) return b.event.trigger(e, t, n, !0)
  7053. }
  7054. }), g.focusin || b.each({
  7055. focus: "focusin",
  7056. blur: "focusout"
  7057. }, function(n, i) {
  7058. function r(e) {
  7059. b.event.simulate(i, e.target, b.event.fix(e))
  7060. }
  7061. b.event.special[i] = {
  7062. setup: function() {
  7063. var e = this.ownerDocument || this.document || this,
  7064. t = q.access(e, i);
  7065. t || e.addEventListener(n, r, !0), q.access(e, i, (t || 0) + 1)
  7066. },
  7067. teardown: function() {
  7068. var e = this.ownerDocument || this.document || this,
  7069. t = q.access(e, i) - 1;
  7070. t ? q.access(e, i, t) : (e.removeEventListener(n, r, !0), q
  7071. .remove(e, i))
  7072. }
  7073. }
  7074. });
  7075. var wt = S.location,
  7076. Dt = {
  7077. guid: Date.now()
  7078. },
  7079. Tt = /\?/;
  7080. b.parseXML = function(e) {
  7081. var t, n;
  7082. if (!e || "string" != typeof e) return null;
  7083. try {
  7084. t = (new S.DOMParser).parseFromString(e, "text/xml")
  7085. } catch (e) {}
  7086. return n = t && t.getElementsByTagName("parsererror")[0], t && !n || b.error(
  7087. "Invalid XML: " + (n ? b.map(n.childNodes, function(e) {
  7088. return e.textContent
  7089. }).join("\n") : e)), t
  7090. };
  7091. var Et = /\[\]$/,
  7092. Yt = /\r?\n/g,
  7093. Pt = /^(?:submit|button|image|reset|file)$/i,
  7094. Ct = /^(?:input|select|textarea|keygen)/i;
  7095. b.param = function(e, t) {
  7096. function n(e, t) {
  7097. t = m(t) ? t() : t, r[r.length] = encodeURIComponent(e) + "=" +
  7098. encodeURIComponent(null == t ? "" : t)
  7099. }
  7100. var i, r = [];
  7101. if (null == e) return "";
  7102. if (Array.isArray(e) || e.jquery && !b.isPlainObject(e)) b.each(e, function() {
  7103. n(this.name, this.value)
  7104. });
  7105. else
  7106. for (i in e) ! function n(i, e, r, a) {
  7107. if (Array.isArray(e)) b.each(e, function(e, t) {
  7108. r || Et.test(i) ? a(i, t) : n(i + "[" + ("object" ==
  7109. typeof t && null != t ? e : "") + "]", t, r, a)
  7110. });
  7111. else if (r || "object" !== f(e)) a(i, e);
  7112. else
  7113. for (var t in e) n(i + "[" + t + "]", e[t], r, a)
  7114. }(i, e[i], t, n);
  7115. return r.join("&")
  7116. }, b.fn.extend({
  7117. serialize: function() {
  7118. return b.param(this.serializeArray())
  7119. },
  7120. serializeArray: function() {
  7121. return this.map(function() {
  7122. var e = b.prop(this, "elements");
  7123. return e ? b.makeArray(e) : this
  7124. }).filter(function() {
  7125. var e = this.type;
  7126. return this.name && !b(this).is(":disabled") && Ct.test(this
  7127. .nodeName) && !Pt.test(e) && (this.checked || !de
  7128. .test(e))
  7129. }).map(function(e, t) {
  7130. var n = b(this).val();
  7131. return null == n ? null : Array.isArray(n) ? b.map(n,
  7132. function(e) {
  7133. return {
  7134. name: t.name,
  7135. value: e.replace(Yt, "\r\n")
  7136. }
  7137. }) : {
  7138. name: t.name,
  7139. value: n.replace(Yt, "\r\n")
  7140. }
  7141. }).get()
  7142. }
  7143. });
  7144. var At = /%20/g,
  7145. Rt = /#.*$/,
  7146. xt = /([?&])_=[^&]*/,
  7147. Ot = /^(.*?):[ \t]*([^\r\n]*)$/gm,
  7148. It = /^(?:GET|HEAD)$/,
  7149. Wt = /^\/\//,
  7150. Ht = {},
  7151. jt = {},
  7152. Ft = "*/".concat("*"),
  7153. Bt = k.createElement("a");
  7154. function Nt(a) {
  7155. return function(e, t) {
  7156. "string" != typeof e && (t = e, e = "*");
  7157. var n, i = 0,
  7158. r = e.toLowerCase().match(x) || [];
  7159. if (m(t))
  7160. for (; n = r[i++];) "+" === n[0] ? (n = n.slice(1) || "*", (a[n] = a[n] ||
  7161. []).unshift(t)) : (a[n] = a[n] || []).push(t)
  7162. }
  7163. }
  7164. function zt(t, i, r, a) {
  7165. var s = {},
  7166. o = t === jt;
  7167. function u(e) {
  7168. var n;
  7169. return s[e] = !0, b.each(t[e] || [], function(e, t) {
  7170. t = t(i, r, a);
  7171. return "string" != typeof t || o || s[t] ? o ? !(n = t) : void 0 : (i
  7172. .dataTypes.unshift(t), u(t), !1)
  7173. }), n
  7174. }
  7175. return u(i.dataTypes[0]) || !s["*"] && u("*")
  7176. }
  7177. function Ut(e, t) {
  7178. var n, i, r = b.ajaxSettings.flatOptions || {};
  7179. for (n in t) void 0 !== t[n] && ((r[n] ? e : i = i || {})[n] = t[n]);
  7180. return i && b.extend(!0, e, i), e
  7181. }
  7182. Bt.href = wt.href, b.extend({
  7183. active: 0,
  7184. lastModified: {},
  7185. etag: {},
  7186. ajaxSettings: {
  7187. url: wt.href,
  7188. type: "GET",
  7189. isLocal: /^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(wt
  7190. .protocol),
  7191. global: !0,
  7192. processData: !0,
  7193. async: !0,
  7194. contentType: "application/x-www-form-urlencoded; charset=UTF-8",
  7195. accepts: {
  7196. "*": Ft,
  7197. text: "text/plain",
  7198. html: "text/html",
  7199. xml: "application/xml, text/xml",
  7200. json: "application/json, text/javascript"
  7201. },
  7202. contents: {
  7203. xml: /\bxml\b/,
  7204. html: /\bhtml/,
  7205. json: /\bjson\b/
  7206. },
  7207. responseFields: {
  7208. xml: "responseXML",
  7209. text: "responseText",
  7210. json: "responseJSON"
  7211. },
  7212. converters: {
  7213. "* text": String,
  7214. "text html": !0,
  7215. "text json": JSON.parse,
  7216. "text xml": b.parseXML
  7217. },
  7218. flatOptions: {
  7219. url: !0,
  7220. context: !0
  7221. }
  7222. },
  7223. ajaxSetup: function(e, t) {
  7224. return t ? Ut(Ut(e, b.ajaxSettings), t) : Ut(b.ajaxSettings, e)
  7225. },
  7226. ajaxPrefilter: Nt(Ht),
  7227. ajaxTransport: Nt(jt),
  7228. ajax: function(e, t) {
  7229. "object" == typeof e && (t = e, e = void 0);
  7230. var u, d, l, n, h, c, _, i, r, f = b.ajaxSetup({}, t = t || {}),
  7231. m = f.context || f,
  7232. p = f.context && (m.nodeType || m.jquery) ? b(m) : b.event,
  7233. y = b.Deferred(),
  7234. v = b.Callbacks("once memory"),
  7235. g = f.statusCode || {},
  7236. a = {},
  7237. s = {},
  7238. o = "canceled",
  7239. M = {
  7240. readyState: 0,
  7241. getResponseHeader: function(e) {
  7242. var t;
  7243. if (c) {
  7244. if (!n)
  7245. for (n = {}; t = Ot.exec(l);) n[t[1]
  7246. .toLowerCase() + " "] = (n[t[1]
  7247. .toLowerCase() + " "] || []).concat(t[
  7248. 2]);
  7249. t = n[e.toLowerCase() + " "]
  7250. }
  7251. return null == t ? null : t.join(", ")
  7252. },
  7253. getAllResponseHeaders: function() {
  7254. return c ? l : null
  7255. },
  7256. setRequestHeader: function(e, t) {
  7257. return null == c && (e = s[e.toLowerCase()] = s[e
  7258. .toLowerCase()] || e, a[e] = t), this
  7259. },
  7260. overrideMimeType: function(e) {
  7261. return null == c && (f.mimeType = e), this
  7262. },
  7263. statusCode: function(e) {
  7264. if (e)
  7265. if (c) M.always(e[M.status]);
  7266. else
  7267. for (var t in e) g[t] = [g[t], e[t]];
  7268. return this
  7269. },
  7270. abort: function(e) {
  7271. e = e || o;
  7272. return u && u.abort(e), L(0, e), this
  7273. }
  7274. };
  7275. if (y.promise(M), f.url = ((e || f.url || wt.href) + "").replace(Wt, wt
  7276. .protocol + "//"), f.type = t.method || t.type || f.method || f
  7277. .type, f.dataTypes = (f.dataType || "*").toLowerCase().match(x) || [
  7278. ""
  7279. ], null == f.crossDomain) {
  7280. r = k.createElement("a");
  7281. try {
  7282. r.href = f.url, r.href = r.href, f.crossDomain = Bt.protocol +
  7283. "//" + Bt.host != r.protocol + "//" + r.host
  7284. } catch (e) {
  7285. f.crossDomain = !0
  7286. }
  7287. }
  7288. if (f.data && f.processData && "string" != typeof f.data && (f.data = b
  7289. .param(f.data, f.traditional)), zt(Ht, f, t, M), c) return M;
  7290. for (i in (_ = b.event && f.global) && 0 == b.active++ && b.event
  7291. .trigger("ajaxStart"), f.type = f.type.toUpperCase(), f
  7292. .hasContent = !It.test(f.type), d = f.url.replace(Rt, ""), f
  7293. .hasContent ? f.data && f.processData && 0 === (f.contentType || "")
  7294. .indexOf("application/x-www-form-urlencoded") && (f.data = f.data
  7295. .replace(At, "+")) : (r = f.url.slice(d.length), f.data && (f
  7296. .processData || "string" == typeof f.data) && (d += (Tt
  7297. .test(d) ? "&" : "?") + f.data, delete f.data), !1 === f
  7298. .cache && (d = d.replace(xt, "$1"), r = (Tt.test(d) ? "&" :
  7299. "?") + "_=" + Dt.guid++ + r), f.url = d + r), f
  7300. .ifModified && (b.lastModified[d] && M.setRequestHeader(
  7301. "If-Modified-Since", b.lastModified[d]), b.etag[d] && M
  7302. .setRequestHeader("If-None-Match", b.etag[d])), (f.data && f
  7303. .hasContent && !1 !== f.contentType || t.contentType) && M
  7304. .setRequestHeader("Content-Type", f.contentType), M
  7305. .setRequestHeader("Accept", f.dataTypes[0] && f.accepts[f.dataTypes[
  7306. 0]] ? f.accepts[f.dataTypes[0]] + ("*" !== f.dataTypes[0] ?
  7307. ", " + Ft + "; q=0.01" : "") : f.accepts["*"]), f.headers) M
  7308. .setRequestHeader(i, f.headers[i]);
  7309. if (f.beforeSend && (!1 === f.beforeSend.call(m, M, f) || c)) return M
  7310. .abort();
  7311. if (o = "abort", v.add(f.complete), M.done(f.success), M.fail(f.error),
  7312. u = zt(jt, f, t, M)) {
  7313. if (M.readyState = 1, _ && p.trigger("ajaxSend", [M, f]), c)
  7314. return M;
  7315. f.async && 0 < f.timeout && (h = S.setTimeout(function() {
  7316. M.abort("timeout")
  7317. }, f.timeout));
  7318. try {
  7319. c = !1, u.send(a, L)
  7320. } catch (e) {
  7321. if (c) throw e;
  7322. L(-1, e)
  7323. }
  7324. } else L(-1, "No Transport");
  7325. function L(e, t, n, i) {
  7326. var r, a, s, o = t;
  7327. c || (c = !0, h && S.clearTimeout(h), u = void 0, l = i || "", M
  7328. .readyState = 0 < e ? 4 : 0, i = 200 <= e && e < 300 ||
  7329. 304 === e, n && (s = function(e, t, n) {
  7330. for (var i, r, a, s, o = e.contents, u = e
  7331. .dataTypes;
  7332. "*" === u[0];) u.shift(), void 0 === i && (i = e
  7333. .mimeType || t.getResponseHeader(
  7334. "Content-Type"));
  7335. if (i)
  7336. for (r in o)
  7337. if (o[r] && o[r].test(i)) {
  7338. u.unshift(r);
  7339. break
  7340. } if (u[0] in n) a = u[0];
  7341. else {
  7342. for (r in n) {
  7343. if (!u[0] || e.converters[r + " " + u[0]]) {
  7344. a = r;
  7345. break
  7346. }
  7347. s = s || r
  7348. }
  7349. a = a || s
  7350. }
  7351. if (a) return a !== u[0] && u.unshift(a), n[a]
  7352. }(f, M, n)), !i && -1 < b.inArray("script", f.dataTypes) &&
  7353. b.inArray("json", f.dataTypes) < 0 && (f.converters[
  7354. "text script"] = function() {}), s = function(e, t, n,
  7355. i) {
  7356. var r, a, s, o, u, d = {},
  7357. l = e.dataTypes.slice();
  7358. if (l[1])
  7359. for (s in e.converters) d[s.toLowerCase()] = e
  7360. .converters[s];
  7361. for (a = l.shift(); a;)
  7362. if (e.responseFields[a] && (n[e.responseFields[a]] =
  7363. t), !u && i && e.dataFilter && (t = e
  7364. .dataFilter(t, e.dataType)), u = a, a = l
  7365. .shift())
  7366. if ("*" === a) a = u;
  7367. else if ("*" !== u && u !== a) {
  7368. if (!(s = d[u + " " + a] || d["* " + a]))
  7369. for (r in d)
  7370. if ((o = r.split(" "))[1] === a && (s = d[
  7371. u + " " + o[0]] || d["* " + o[
  7372. 0]])) {
  7373. !0 === s ? s = d[r] : !0 !== d[r] && (
  7374. a = o[0], l.unshift(o[1]));
  7375. break
  7376. } if (!0 !== s)
  7377. if (s && e.throws) t = s(t);
  7378. else try {
  7379. t = s(t)
  7380. } catch (e) {
  7381. return {
  7382. state: "parsererror",
  7383. error: s ? e :
  7384. "No conversion from " + u +
  7385. " to " + a
  7386. }
  7387. }
  7388. }
  7389. return {
  7390. state: "success",
  7391. data: t
  7392. }
  7393. }(f, s, M, i), i ? (f.ifModified && ((n = M
  7394. .getResponseHeader("Last-Modified")) && (b
  7395. .lastModified[d] = n), (n = M.getResponseHeader(
  7396. "etag")) && (b.etag[d] = n)), 204 === e ||
  7397. "HEAD" === f.type ? o = "nocontent" : 304 === e ? o =
  7398. "notmodified" : (o = s.state, r = s.data, i = !(a = s
  7399. .error))) : (a = o, !e && o || (o = "error", e <
  7400. 0 && (e = 0))), M.status = e, M.statusText = (t || o) +
  7401. "", i ? y.resolveWith(m, [r, o, M]) : y.rejectWith(m, [M, o,
  7402. a
  7403. ]), M.statusCode(g), g = void 0, _ && p.trigger(i ?
  7404. "ajaxSuccess" : "ajaxError", [M, f, i ? r : a]), v
  7405. .fireWith(m, [M, o]), _ && (p.trigger("ajaxComplete", [M,
  7406. f
  7407. ]), --b.active || b.event.trigger("ajaxStop")))
  7408. }
  7409. return M
  7410. },
  7411. getJSON: function(e, t, n) {
  7412. return b.get(e, t, n, "json")
  7413. },
  7414. getScript: function(e, t) {
  7415. return b.get(e, void 0, t, "script")
  7416. }
  7417. }), b.each(["get", "post"], function(e, r) {
  7418. b[r] = function(e, t, n, i) {
  7419. return m(t) && (i = i || n, n = t, t = void 0), b.ajax(b.extend({
  7420. url: e,
  7421. type: r,
  7422. dataType: i,
  7423. data: t,
  7424. success: n
  7425. }, b.isPlainObject(e) && e))
  7426. }
  7427. }), b.ajaxPrefilter(function(e) {
  7428. for (var t in e.headers) "content-type" === t.toLowerCase() && (e.contentType =
  7429. e.headers[t] || "")
  7430. }), b._evalUrl = function(e, t, n) {
  7431. return b.ajax({
  7432. url: e,
  7433. type: "GET",
  7434. dataType: "script",
  7435. cache: !0,
  7436. async: !1,
  7437. global: !1,
  7438. converters: {
  7439. "text script": function() {}
  7440. },
  7441. dataFilter: function(e) {
  7442. b.globalEval(e, t, n)
  7443. }
  7444. })
  7445. }, b.fn.extend({
  7446. wrapAll: function(e) {
  7447. return this[0] && (m(e) && (e = e.call(this[0])), e = b(e, this[0]
  7448. .ownerDocument).eq(0).clone(!0), this[0].parentNode && e
  7449. .insertBefore(this[0]), e.map(function() {
  7450. for (var e = this; e.firstElementChild;) e = e
  7451. .firstElementChild;
  7452. return e
  7453. }).append(this)), this
  7454. },
  7455. wrapInner: function(n) {
  7456. return m(n) ? this.each(function(e) {
  7457. b(this).wrapInner(n.call(this, e))
  7458. }) : this.each(function() {
  7459. var e = b(this),
  7460. t = e.contents();
  7461. t.length ? t.wrapAll(n) : e.append(n)
  7462. })
  7463. },
  7464. wrap: function(t) {
  7465. var n = m(t);
  7466. return this.each(function(e) {
  7467. b(this).wrapAll(n ? t.call(this, e) : t)
  7468. })
  7469. },
  7470. unwrap: function(e) {
  7471. return this.parent(e).not("body").each(function() {
  7472. b(this).replaceWith(this.childNodes)
  7473. }), this
  7474. }
  7475. }), b.expr.pseudos.hidden = function(e) {
  7476. return !b.expr.pseudos.visible(e)
  7477. }, b.expr.pseudos.visible = function(e) {
  7478. return !!(e.offsetWidth || e.offsetHeight || e.getClientRects().length)
  7479. }, b.ajaxSettings.xhr = function() {
  7480. try {
  7481. return new S.XMLHttpRequest
  7482. } catch (e) {}
  7483. };
  7484. var Vt = {
  7485. 0: 200,
  7486. 1223: 204
  7487. },
  7488. Gt = b.ajaxSettings.xhr();
  7489. g.cors = !!Gt && "withCredentials" in Gt, g.ajax = Gt = !!Gt, b.ajaxTransport(function(r) {
  7490. var a, s;
  7491. if (g.cors || Gt && !r.crossDomain) return {
  7492. send: function(e, t) {
  7493. var n, i = r.xhr();
  7494. if (i.open(r.type, r.url, r.async, r.username, r.password), r
  7495. .xhrFields)
  7496. for (n in r.xhrFields) i[n] = r.xhrFields[n];
  7497. for (n in r.mimeType && i.overrideMimeType && i
  7498. .overrideMimeType(r.mimeType), r.crossDomain || e[
  7499. "X-Requested-With"] || (e["X-Requested-With"] =
  7500. "XMLHttpRequest"), e) i.setRequestHeader(n, e[n]);
  7501. a = function(e) {
  7502. return function() {
  7503. a && (a = s = i.onload = i.onerror = i.onabort =
  7504. i.ontimeout = i.onreadystatechange =
  7505. null, "abort" === e ? i.abort() :
  7506. "error" === e ? "number" != typeof i
  7507. .status ? t(0, "error") : t(i.status, i
  7508. .statusText) : t(Vt[i.status] || i
  7509. .status, i.statusText, "text" !== (i
  7510. .responseType || "text") ||
  7511. "string" != typeof i.responseText ?
  7512. {
  7513. binary: i.response
  7514. } : {
  7515. text: i.responseText
  7516. }, i.getAllResponseHeaders()))
  7517. }
  7518. }, i.onload = a(), s = i.onerror = i.ontimeout = a("error"),
  7519. void 0 !== i.onabort ? i.onabort = s : i
  7520. .onreadystatechange = function() {
  7521. 4 === i.readyState && S.setTimeout(function() {
  7522. a && s()
  7523. })
  7524. }, a = a("abort");
  7525. try {
  7526. i.send(r.hasContent && r.data || null)
  7527. } catch (e) {
  7528. if (a) throw e
  7529. }
  7530. },
  7531. abort: function() {
  7532. a && a()
  7533. }
  7534. }
  7535. }), b.ajaxPrefilter(function(e) {
  7536. e.crossDomain && (e.contents.script = !1)
  7537. }), b.ajaxSetup({
  7538. accepts: {
  7539. script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
  7540. },
  7541. contents: {
  7542. script: /\b(?:java|ecma)script\b/
  7543. },
  7544. converters: {
  7545. "text script": function(e) {
  7546. return b.globalEval(e), e
  7547. }
  7548. }
  7549. }), b.ajaxPrefilter("script", function(e) {
  7550. void 0 === e.cache && (e.cache = !1), e.crossDomain && (e.type = "GET")
  7551. }), b.ajaxTransport("script", function(n) {
  7552. var i, r;
  7553. if (n.crossDomain || n.scriptAttrs) return {
  7554. send: function(e, t) {
  7555. i = b("<script>").attr(n.scriptAttrs || {}).prop({
  7556. charset: n.scriptCharset,
  7557. src: n.url
  7558. }).on("load error", r = function(e) {
  7559. i.remove(), r = null, e && t("error" === e.type ?
  7560. 404 : 200, e.type)
  7561. }), k.head.appendChild(i[0])
  7562. },
  7563. abort: function() {
  7564. r && r()
  7565. }
  7566. }
  7567. });
  7568. var Jt, qt = [],
  7569. Kt = /(=)\?(?=&|$)|\?\?/;
  7570. b.ajaxSetup({
  7571. jsonp: "callback",
  7572. jsonpCallback: function() {
  7573. var e = qt.pop() || b.expando + "_" + Dt.guid++;
  7574. return this[e] = !0, e
  7575. }
  7576. }), b.ajaxPrefilter("json jsonp", function(e, t, n) {
  7577. var i, r, a, s = !1 !== e.jsonp && (Kt.test(e.url) ? "url" : "string" ==
  7578. typeof e.data && 0 === (e.contentType || "").indexOf(
  7579. "application/x-www-form-urlencoded") && Kt.test(e.data) && "data");
  7580. if (s || "jsonp" === e.dataTypes[0]) return i = e.jsonpCallback = m(e
  7581. .jsonpCallback) ? e.jsonpCallback() : e.jsonpCallback, s ? e[s] = e[
  7582. s].replace(Kt, "$1" + i) : !1 !== e.jsonp && (e.url += (Tt.test(e
  7583. .url) ? "&" : "?") + e.jsonp + "=" + i), e.converters[
  7584. "script json"] = function() {
  7585. return a || b.error(i + " was not called"), a[0]
  7586. }, e.dataTypes[0] = "json", r = S[i], S[i] = function() {
  7587. a = arguments
  7588. }, n.always(function() {
  7589. void 0 === r ? b(S).removeProp(i) : S[i] = r, e[i] && (e
  7590. .jsonpCallback = t.jsonpCallback, qt.push(i)), a && m(
  7591. r) && r(a[0]), a = r = void 0
  7592. }), "script"
  7593. }), g.createHTMLDocument = ((Jt = k.implementation.createHTMLDocument("").body)
  7594. .innerHTML = "<form></form><form></form>", 2 === Jt.childNodes.length), b
  7595. .parseHTML = function(e, t, n) {
  7596. return "string" != typeof e ? [] : ("boolean" == typeof t && (n = t, t = !1), t || (
  7597. g.createHTMLDocument ? ((i = (t = k.implementation.createHTMLDocument(
  7598. "")).createElement("base")).href = k.location.href, t.head
  7599. .appendChild(i)) : t = k), i = !n && [], (n = T.exec(e)) ? [t
  7600. .createElement(n[1])
  7601. ] : (n = pe([e], t, i), i && i.length && b(i).remove(), b.merge([], n
  7602. .childNodes)));
  7603. var i
  7604. }, b.fn.load = function(e, t, n) {
  7605. var i, r, a, s = this,
  7606. o = e.indexOf(" ");
  7607. return -1 < o && (i = gt(e.slice(o)), e = e.slice(0, o)), m(t) ? (n = t, t =
  7608. void 0) : t && "object" == typeof t && (r = "POST"), 0 < s.length && b
  7609. .ajax({
  7610. url: e,
  7611. type: r || "GET",
  7612. dataType: "html",
  7613. data: t
  7614. }).done(function(e) {
  7615. a = arguments, s.html(i ? b("<div>").append(b.parseHTML(e)).find(i) : e)
  7616. }).always(n && function(e, t) {
  7617. s.each(function() {
  7618. n.apply(this, a || [e.responseText, t, e])
  7619. })
  7620. }), this
  7621. }, b.expr.pseudos.animated = function(t) {
  7622. return b.grep(b.timers, function(e) {
  7623. return t === e.elem
  7624. }).length
  7625. }, b.offset = {
  7626. setOffset: function(e, t, n) {
  7627. var i, r, a, s, o = b.css(e, "position"),
  7628. u = b(e),
  7629. d = {};
  7630. "static" === o && (e.style.position = "relative"), a = u.offset(), i = b
  7631. .css(e, "top"), s = b.css(e, "left"), s = ("absolute" === o ||
  7632. "fixed" === o) && -1 < (i + s).indexOf("auto") ? (r = (o = u
  7633. .position()).top, o.left) : (r = parseFloat(i) || 0, parseFloat(
  7634. s) || 0), null != (t = m(t) ? t.call(e, n, b.extend({}, a)) : t)
  7635. .top && (d.top = t.top - a.top + r), null != t.left && (d.left = t
  7636. .left - a.left + s), "using" in t ? t.using.call(e, d) : u.css(d)
  7637. }
  7638. }, b.fn.extend({
  7639. offset: function(t) {
  7640. if (arguments.length) return void 0 === t ? this : this.each(function(
  7641. e) {
  7642. b.offset.setOffset(this, t, e)
  7643. });
  7644. var e, n = this[0];
  7645. return n ? n.getClientRects().length ? (e = n.getBoundingClientRect(),
  7646. n = n.ownerDocument.defaultView, {
  7647. top: e.top + n.pageYOffset,
  7648. left: e.left + n.pageXOffset
  7649. }) : {
  7650. top: 0,
  7651. left: 0
  7652. } : void 0
  7653. },
  7654. position: function() {
  7655. if (this[0]) {
  7656. var e, t, n, i = this[0],
  7657. r = {
  7658. top: 0,
  7659. left: 0
  7660. };
  7661. if ("fixed" === b.css(i, "position")) t = i.getBoundingClientRect();
  7662. else {
  7663. for (t = this.offset(), n = i.ownerDocument, e = i
  7664. .offsetParent || n.documentElement; e && (e === n.body ||
  7665. e === n.documentElement) && "static" === b.css(e,
  7666. "position");) e = e.parentNode;
  7667. e && e !== i && 1 === e.nodeType && ((r = b(e).offset()).top +=
  7668. b.css(e, "borderTopWidth", !0), r.left += b.css(e,
  7669. "borderLeftWidth", !0))
  7670. }
  7671. return {
  7672. top: t.top - r.top - b.css(i, "marginTop", !0),
  7673. left: t.left - r.left - b.css(i, "marginLeft", !0)
  7674. }
  7675. }
  7676. },
  7677. offsetParent: function() {
  7678. return this.map(function() {
  7679. for (var e = this.offsetParent; e && "static" === b.css(e,
  7680. "position");) e = e.offsetParent;
  7681. return e || ne
  7682. })
  7683. }
  7684. }), b.each({
  7685. scrollLeft: "pageXOffset",
  7686. scrollTop: "pageYOffset"
  7687. }, function(t, r) {
  7688. var a = "pageYOffset" === r;
  7689. b.fn[t] = function(e) {
  7690. return B(this, function(e, t, n) {
  7691. var i;
  7692. return p(e) ? i = e : 9 === e.nodeType && (i = e
  7693. .defaultView), void 0 === n ? i ? i[r] : e[t] :
  7694. void(i ? i.scrollTo(a ? i.pageXOffset : n, a ? n : i
  7695. .pageYOffset) : e[t] = n)
  7696. }, t, e, arguments.length)
  7697. }
  7698. }), b.each(["top", "left"], function(e, n) {
  7699. b.cssHooks[n] = Je(g.pixelPosition, function(e, t) {
  7700. if (t) return t = Ge(e, n), Ne.test(t) ? b(e).position()[n] + "px" :
  7701. t
  7702. })
  7703. }), b.each({
  7704. Height: "height",
  7705. Width: "width"
  7706. }, function(s, o) {
  7707. b.each({
  7708. padding: "inner" + s,
  7709. content: o,
  7710. "": "outer" + s
  7711. }, function(i, a) {
  7712. b.fn[a] = function(e, t) {
  7713. var n = arguments.length && (i || "boolean" != typeof e),
  7714. r = i || (!0 === e || !0 === t ? "margin" : "border");
  7715. return B(this, function(e, t, n) {
  7716. var i;
  7717. return p(e) ? 0 === a.indexOf("outer") ? e[
  7718. "inner" + s] : e.document
  7719. .documentElement["client" + s] : 9 === e
  7720. .nodeType ? (i = e.documentElement, Math
  7721. .max(e.body["scroll" + s], i["scroll" +
  7722. s], e.body["offset" + s], i[
  7723. "offset" + s], i["client" + s])) :
  7724. void 0 === n ? b.css(e, t, r) : b.style(e,
  7725. t, n, r)
  7726. }, o, n ? e : void 0, n)
  7727. }
  7728. })
  7729. }), b.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess",
  7730. "ajaxSend"
  7731. ], function(e, t) {
  7732. b.fn[t] = function(e) {
  7733. return this.on(t, e)
  7734. }
  7735. }), b.fn.extend({
  7736. bind: function(e, t, n) {
  7737. return this.on(e, null, t, n)
  7738. },
  7739. unbind: function(e, t) {
  7740. return this.off(e, null, t)
  7741. },
  7742. delegate: function(e, t, n, i) {
  7743. return this.on(t, e, n, i)
  7744. },
  7745. undelegate: function(e, t, n) {
  7746. return 1 === arguments.length ? this.off(e, "**") : this.off(t, e ||
  7747. "**", n)
  7748. },
  7749. hover: function(e, t) {
  7750. return this.mouseenter(e).mouseleave(t || e)
  7751. }
  7752. }), b.each(
  7753. "blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu"
  7754. .split(" "),
  7755. function(e, n) {
  7756. b.fn[n] = function(e, t) {
  7757. return 0 < arguments.length ? this.on(n, null, e, t) : this.trigger(n)
  7758. }
  7759. });
  7760. var Xt = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
  7761. b.proxy = function(e, t) {
  7762. var n, i;
  7763. if ("string" == typeof t && (i = e[t], t = e, e = i), m(e)) return n = o.call(
  7764. arguments, 2), (i = function() {
  7765. return e.apply(t || this, n.concat(o.call(arguments)))
  7766. }).guid = e.guid = e.guid || b.guid++, i
  7767. }, b.holdReady = function(e) {
  7768. e ? b.readyWait++ : b.ready(!0)
  7769. }, b.isArray = Array.isArray, b.parseJSON = JSON.parse, b.nodeName = D, b.isFunction =
  7770. m, b.isWindow = p, b.camelCase = V, b.type = f, b.now = Date.now, b.isNumeric =
  7771. function(e) {
  7772. var t = b.type(e);
  7773. return ("number" === t || "string" === t) && !isNaN(e - parseFloat(e))
  7774. }, b.trim = function(e) {
  7775. return null == e ? "" : (e + "").replace(Xt, "")
  7776. }, void 0 === (tn = function() {
  7777. return b
  7778. }.apply(en, [])) || (Qt.exports = tn);
  7779. var Zt = S.jQuery,
  7780. $t = S.$;
  7781. return b.noConflict = function(e) {
  7782. return S.$ === b && (S.$ = $t), e && S.jQuery === b && (S.jQuery = Zt), b
  7783. }, void 0 === e && (S.jQuery = S.$ = b), b
  7784. })
  7785. }, function(e, t, n) {
  7786. e.exports = {
  7787. default: n(267),
  7788. __esModule: !0
  7789. }
  7790. }, function(e, t, n) {
  7791. t.f = n(7)
  7792. }, function(e, t, n) {
  7793. var i = n(6),
  7794. r = n(3),
  7795. a = n(27),
  7796. s = n(57),
  7797. o = n(12).f;
  7798. e.exports = function(e) {
  7799. var t = r.Symbol || (r.Symbol = !a && i.Symbol || {});
  7800. "_" == e.charAt(0) || e in t || o(t, e, {
  7801. value: s.f(e)
  7802. })
  7803. }
  7804. }, function(e, t) {
  7805. t.f = Object.getOwnPropertySymbols
  7806. }, function(e, t, n) {
  7807. var i = n(37),
  7808. r = n(28),
  7809. a = n(19),
  7810. s = n(45),
  7811. o = n(18),
  7812. u = n(69),
  7813. d = Object.getOwnPropertyDescriptor;
  7814. t.f = n(14) ? d : function(e, t) {
  7815. if (e = a(e), t = s(t, !0), u) try {
  7816. return d(e, t)
  7817. } catch (e) {}
  7818. if (o(e, t)) return r(!i.f.call(e, t), e[t])
  7819. }
  7820. }, function(e, t, n) {
  7821. "use strict";
  7822. Object.defineProperty(t, "__esModule", {
  7823. value: !0
  7824. });
  7825. var i = "0x12f9",
  7826. r = i + "0",
  7827. r = (t.ERR_COM_PARAM = r + "0001", t.ERR_COM_NOT_PLAYING = r + "0002", t.ERR_COM_NOT_PLAYBACK =
  7828. r + "0003", t.ERR_COM_IS_MSE = r + "0004", t.ERR_COM_IS_JSDECODER = r + "0005", t
  7829. .ERR_COM_LOAD_JSDECODER_ERROR = r + "0006", t.ERR_COM_URL_ERROR = r + "0008", t
  7830. .ERR_COM_RECV_STREAM_TIMEOUT = r + "0009", t.ERR_COM_SETORGET_VOLUME_ERROR = r + "0010", t
  7831. .ERR_COM_SETVOLUME_ERROR = r + "0011", t.ERR_COM_OPENSOUND_ERROR = r + "0012", i + "1"),
  7832. r = (t.ERR_STREAM_WS_ERROR = r + "0000", t.ERR_STREAM_OPEN_FAILED = r + "0010", t
  7833. .ERR_STREAM_INTERRUPT = r + "0011", t.ERR_STREAM_CMD_FAILED = r + "0012", t
  7834. .ERR_STREAM_SOUND_NOTHAS = r + "0014", t.ERR_STREAM_WS_UNFIND = r + "0015", t
  7835. .ERR_STREAM_WS_UNCONNECT = r + "0016", t.ERR_STREAM_INTEL_UNSUPPORT = r + "0017", t
  7836. .ERR_STREAM_TIMEOUT = r + "0018", t.ERR_STREAM_WSS_ERROR = r + "0019", t
  7837. .ERR_PLAYBACK_FRAMEFORWARD = r + "0020", t.ERR_PLAYBACK_MAX_RATE = r + "0021", t
  7838. .ERR_PLAYBACK_MIN_RATE = r + "0022", t.ERR_STREAM_WS_TIMEOUT = r + "0023", t
  7839. .ERR_STREAM_TRANS = r + "0024", t.ERR_STREAM_PLAYBACK_END = r + "0025", t
  7840. .ERR_STREAM_VIDEO_CODING = r + "0026", t.ERR_STREAM_CONNECT_CLOSED = r + "0027", t
  7841. .ERR_STREAM_BUFER_ERROR = r + "0028", t.ERR_STREAM_DATA_ERROR = r + "0029", t
  7842. .ERR_STREAM_LOCK_ERROR = r + "0030", t.ERR_STREAM_MSE_DATA_FULL = r + "0031", t
  7843. .ERR_STREAM_CODEC_UNSUPPORTED = r + "0032", t.ERR_STREAM_JSDECODER_CODEC_UNSUPPORTED = r +
  7844. "0033", i + "2");
  7845. t.ERR_PLAY_FILESYS_UNSUPPORT = r + "0000", t.ERR_PLAY_FILESYS_QUOTA = r + "0010", t
  7846. .ERR_PLAY_FILESYS_REQUEST = r + "0011", t.ERR_PLAY_FILESYS_GETFILE = r + "0012", t
  7847. .ERR_PLAY_FILESYS_CREATE = r + "0013", t.ERR_PLAY_FILESYS_WRITE = r + "0014", t
  7848. .ERR_PLAY_FILESYS_ALREADY_WRITING = r + "0015", t.ERR_PLAY_FILESYS_NOT_WRITING = r + "0016", t
  7849. .ERR_PLAY_FILESYS_NOT_SUPPORT_DSTTYPE = r + "0017", t.ERR_PLAY_FILESYS_FILENAME_ISNULL = r +
  7850. "0018", t.ERR_CAPTURE_RAM = "0x12f930010", t.ERR_CAPTURE_NO_PREPARED = "0x12f930011", t
  7851. .ERR_JSDECODER = i + "400", t.ERR_TALK = i + "500", t.ERR_TALK_GETUSERMEDIA_UNDEFINE =
  7852. "0x12f950000", t.ERR_TALK_UNSUPPORT_AUDIOTYPE = "0x12f950001"
  7853. }, function(e, t, n) {
  7854. "use strict";
  7855. Object.defineProperty(t, "__esModule", {
  7856. value: !0
  7857. });
  7858. var i = r(n(1));
  7859. function r(e) {
  7860. return e && e.__esModule ? e : {
  7861. default: e
  7862. }
  7863. }(0, r(n(2)).default)(a, [{
  7864. key: "reset",
  7865. value: function() {
  7866. this._firstCheckpoint = this._lastCheckpoint = 0, this._totalBytes = this
  7867. ._intervalBytes = 0, this._lastSecondBytes = 0
  7868. }
  7869. }, {
  7870. key: "addBytes",
  7871. value: function(e) {
  7872. 0 === this._firstCheckpoint ? (this._firstCheckpoint = this._now(), this
  7873. ._lastCheckpoint = this._firstCheckpoint, this._intervalBytes += e, this
  7874. ._totalBytes += e) : this._now() - this._lastCheckpoint < 1e3 ? (this
  7875. ._intervalBytes += e, this._totalBytes += e) : (this._lastSecondBytes =
  7876. this._intervalBytes, this._intervalBytes = e, this._totalBytes += e,
  7877. this._lastCheckpoint = this._now())
  7878. }
  7879. }, {
  7880. key: "currentKBps",
  7881. get: function() {
  7882. this.addBytes(0);
  7883. var e = (this._now() - this._lastCheckpoint) / 1e3;
  7884. return this._intervalBytes / (e = 0 == e ? 1 : e) / 1024
  7885. }
  7886. }, {
  7887. key: "lastSecondKBps",
  7888. get: function() {
  7889. return this.addBytes(0), 0 !== this._lastSecondBytes ? this._lastSecondBytes /
  7890. 1024 : 500 <= this._now() - this._lastCheckpoint ? this.currentKBps : 0
  7891. }
  7892. }, {
  7893. key: "averageKBps",
  7894. get: function() {
  7895. var e = (this._now() - this._firstCheckpoint) / 1e3;
  7896. return this._totalBytes / e / 1024
  7897. }
  7898. }]), n = a;
  7899. function a() {
  7900. (0, i.default)(this, a), this._firstCheckpoint = 0, this._lastCheckpoint = 0, this
  7901. ._intervalBytes = 0, this._totalBytes = 0, this._lastSecondBytes = 0, self.performance &&
  7902. self.performance.now ? this._now = self.performance.now.bind(self.performance) : this._now =
  7903. Date.now
  7904. }
  7905. t.default = n
  7906. }, function(e, t, n) {
  7907. "use strict";
  7908. Object.defineProperty(t, "__esModule", {
  7909. value: !0
  7910. }), t.defaultConfig = void 0;
  7911. var i, r = n(20),
  7912. a = (i = r) && i.__esModule ? i : {
  7913. default: i
  7914. };
  7915. t.createDefaultConfig = function() {
  7916. return (0, a.default)({}, s)
  7917. };
  7918. var s = t.defaultConfig = {
  7919. enableWorker: !1,
  7920. enableStashBuffer: !1,
  7921. stashInitialSize: void 0,
  7922. isLive: !1,
  7923. lazyLoad: !0,
  7924. lazyLoadMaxDuration: 180,
  7925. lazyLoadRecoverDuration: 30,
  7926. deferLoadAfterSourceOpen: !0,
  7927. autoCleanupMaxBackwardDuration: 180,
  7928. autoCleanupMinBackwardDuration: 120,
  7929. statisticsInfoReportInterval: 600,
  7930. fixAudioTimestampGap: !0,
  7931. accurateSeek: !1,
  7932. seekType: "range",
  7933. seekParamStart: "bstart",
  7934. seekParamEnd: "bend",
  7935. rangeLoadZeroStart: !1,
  7936. customSeekHandler: void 0,
  7937. reuseRedirectedURL: !1,
  7938. headers: void 0,
  7939. customLoader: void 0,
  7940. videoStateMonitorInterval: 1e3,
  7941. enableDurationMonitor: !1,
  7942. lowLatencyThreshold: 1.5,
  7943. highLatencyThreshold: 10,
  7944. decreaseDurationStep: .4,
  7945. enableVideoFrozenMonitor: !1,
  7946. frozenTimesThreshold: 5,
  7947. enableConstVideoViewSize: !1,
  7948. constVideoViewWidth: 1920,
  7949. constVideoViewHeight: 1080,
  7950. latencyDetectInterval: 6e4,
  7951. latencyDetectThreshold: 2,
  7952. latencyDetectAdjustStep: .1,
  7953. enableAudioGain: !0,
  7954. audioGainLevel: 2
  7955. }
  7956. }, function(e, t, n) {
  7957. "use strict";
  7958. Object.defineProperty(t, "__esModule", {
  7959. value: !0
  7960. });
  7961. var i = o(n(1)),
  7962. r = o(n(2)),
  7963. a = o(n(10)),
  7964. s = o(n(4));
  7965. function o(e) {
  7966. return e && e.__esModule ? e : {
  7967. default: e
  7968. }
  7969. }(0, r.default)(u, null, [{
  7970. key: "getConfig",
  7971. value: function() {
  7972. return {
  7973. globalTag: s.default.GLOBAL_TAG,
  7974. forceGlobalTag: s.default.FORCE_GLOBAL_TAG,
  7975. enableVerbose: s.default.ENABLE_VERBOSE,
  7976. enableDebug: s.default.ENABLE_DEBUG,
  7977. enableInfo: s.default.ENABLE_INFO,
  7978. enableWarn: s.default.ENABLE_WARN,
  7979. enableError: s.default.ENABLE_ERROR,
  7980. enableCallback: s.default.ENABLE_CALLBACK
  7981. }
  7982. }
  7983. }, {
  7984. key: "applyConfig",
  7985. value: function(e) {
  7986. s.default.GLOBAL_TAG = e.globalTag, s.default.FORCE_GLOBAL_TAG = e
  7987. .forceGlobalTag, s.default.ENABLE_VERBOSE = e.enableVerbose, s.default
  7988. .ENABLE_DEBUG = e.enableDebug, s.default.ENABLE_INFO = e.enableInfo, s
  7989. .default.ENABLE_WARN = e.enableWarn, s.default.ENABLE_ERROR = e.enableError,
  7990. s.default.ENABLE_CALLBACK = e.enableCallback
  7991. }
  7992. }, {
  7993. key: "_notifyChange",
  7994. value: function() {
  7995. var e, t = u.emitter;
  7996. 0 < t.listenerCount("change") && (e = u.getConfig(), t.emit("change", e))
  7997. }
  7998. }, {
  7999. key: "registerListener",
  8000. value: function(e) {
  8001. u.emitter.addListener("change", e)
  8002. }
  8003. }, {
  8004. key: "removeListener",
  8005. value: function(e) {
  8006. u.emitter.removeListener("change", e)
  8007. }
  8008. }, {
  8009. key: "addLogListener",
  8010. value: function(e) {
  8011. s.default.emitter.addListener("log", e), 0 < s.default.emitter.listenerCount(
  8012. "log") && (s.default.ENABLE_CALLBACK = !0, u._notifyChange())
  8013. }
  8014. }, {
  8015. key: "removeLogListener",
  8016. value: function(e) {
  8017. s.default.emitter.removeListener("log", e), 0 === s.default.emitter
  8018. .listenerCount("log") && (s.default.ENABLE_CALLBACK = !1, u._notifyChange())
  8019. }
  8020. }, {
  8021. key: "forceGlobalTag",
  8022. get: function() {
  8023. return s.default.FORCE_GLOBAL_TAG
  8024. },
  8025. set: function(e) {
  8026. s.default.FORCE_GLOBAL_TAG = e, u._notifyChange()
  8027. }
  8028. }, {
  8029. key: "globalTag",
  8030. get: function() {
  8031. return s.default.GLOBAL_TAG
  8032. },
  8033. set: function(e) {
  8034. s.default.GLOBAL_TAG = e, u._notifyChange()
  8035. }
  8036. }, {
  8037. key: "enableAll",
  8038. get: function() {
  8039. return s.default.ENABLE_VERBOSE && s.default.ENABLE_DEBUG && s.default
  8040. .ENABLE_INFO && s.default.ENABLE_WARN && s.default.ENABLE_ERROR
  8041. },
  8042. set: function(e) {
  8043. s.default.ENABLE_VERBOSE = e, s.default.ENABLE_DEBUG = e, s.default
  8044. .ENABLE_INFO = e, s.default.ENABLE_WARN = e, s.default.ENABLE_ERROR = e, u
  8045. ._notifyChange()
  8046. }
  8047. }, {
  8048. key: "enableDebug",
  8049. get: function() {
  8050. return s.default.ENABLE_DEBUG
  8051. },
  8052. set: function(e) {
  8053. s.default.ENABLE_DEBUG = e, u._notifyChange()
  8054. }
  8055. }, {
  8056. key: "enableVerbose",
  8057. get: function() {
  8058. return s.default.ENABLE_VERBOSE
  8059. },
  8060. set: function(e) {
  8061. s.default.ENABLE_VERBOSE = e, u._notifyChange()
  8062. }
  8063. }, {
  8064. key: "enableInfo",
  8065. get: function() {
  8066. return s.default.ENABLE_INFO
  8067. },
  8068. set: function(e) {
  8069. s.default.ENABLE_INFO = e, u._notifyChange()
  8070. }
  8071. }, {
  8072. key: "enableWarn",
  8073. get: function() {
  8074. return s.default.ENABLE_WARN
  8075. },
  8076. set: function(e) {
  8077. s.default.ENABLE_WARN = e, u._notifyChange()
  8078. }
  8079. }, {
  8080. key: "enableError",
  8081. get: function() {
  8082. return s.default.ENABLE_ERROR
  8083. },
  8084. set: function(e) {
  8085. s.default.ENABLE_ERROR = e, u._notifyChange()
  8086. }
  8087. }]), r = u;
  8088. function u() {
  8089. (0, i.default)(this, u)
  8090. }
  8091. r.emitter = new a.default, t.default = r
  8092. }, function(e, t, n) {
  8093. "use strict";
  8094. Object.defineProperty(t, "__esModule", {
  8095. value: !0
  8096. });
  8097. var i = r(n(1));
  8098. function r(e) {
  8099. return e && e.__esModule ? e : {
  8100. default: e
  8101. }
  8102. }(0, r(n(2)).default)(a, [{
  8103. key: "isComplete",
  8104. value: function() {
  8105. var e = !1 === this.hasAudio || !0 === this.hasAudio && null != this
  8106. .audioCodec && null != this.audioSampleRate && null != this
  8107. .audioChannelCount,
  8108. t = !1 === this.hasVideo || !0 === this.hasVideo && null != this
  8109. .videoCodec && null != this.width && null != this.height && null != this
  8110. .fps && null != this.profile && null != this.level && null != this
  8111. .refFrames && null != this.chromaFormat && null != this.sarNum && null !=
  8112. this.sarDen;
  8113. return null != this.mimeType && null != this.duration && null != this
  8114. .metadata && null != this.hasKeyframesIndex && e && t
  8115. }
  8116. }, {
  8117. key: "isSeekable",
  8118. value: function() {
  8119. return !0 === this.hasKeyframesIndex
  8120. }
  8121. }, {
  8122. key: "getNearestKeyframe",
  8123. value: function(e) {
  8124. if (null == this.keyframesIndex) return null;
  8125. var t = this.keyframesIndex,
  8126. e = this._search(t.times, e);
  8127. return {
  8128. index: e,
  8129. milliseconds: t.times[e],
  8130. fileposition: t.filepositions[e]
  8131. }
  8132. }
  8133. }, {
  8134. key: "_search",
  8135. value: function(e, t) {
  8136. var n, i = 0,
  8137. r = e.length - 1,
  8138. a = 0,
  8139. s = r;
  8140. for (t < e[0] && (i = 0, a = s + 1); a <= s;) {
  8141. if ((n = a + Math.floor((s - a) / 2)) === r || t >= e[n] && t < e[n + 1]) {
  8142. i = n;
  8143. break
  8144. }
  8145. e[n] < t ? a = n + 1 : s = n - 1
  8146. }
  8147. return i
  8148. }
  8149. }]), n = a;
  8150. function a() {
  8151. (0, i.default)(this, a), this.mimeType = null, this.duration = null, this.hasAudio = null, this
  8152. .hasVideo = null, this.audioCodec = null, this.videoCodec = null, this.audioDataRate = null,
  8153. this.videoDataRate = null, this.audioSampleRate = null, this.audioChannelCount = null, this
  8154. .width = null, this.height = null, this.fps = null, this.profile = null, this.level = null,
  8155. this.refFrames = null, this.chromaFormat = null, this.sarNum = null, this.sarDen = null,
  8156. this.metadata = null, this.segments = null, this.segmentCount = null, this
  8157. .hasKeyframesIndex = null, this.keyframesIndex = null
  8158. }
  8159. t.default = n
  8160. }, function(e, t, n) {
  8161. "use strict";
  8162. Object.defineProperty(t, "__esModule", {
  8163. value: !0
  8164. });
  8165. t.default = {
  8166. OK: "OK",
  8167. FORMAT_ERROR: "FormatError",
  8168. FORMAT_UNSUPPORTED: "FormatUnsupported",
  8169. CODEC_UNSUPPORTED: "CodecUnsupported"
  8170. }
  8171. }, function(e, t) {}, function(e, t, n) {
  8172. "use strict";
  8173. function v() {
  8174. return this
  8175. }
  8176. var g = n(27),
  8177. M = n(8),
  8178. L = n(70),
  8179. S = n(17),
  8180. k = n(29),
  8181. b = n(238),
  8182. w = n(36),
  8183. D = n(74),
  8184. T = n(7)("iterator"),
  8185. E = !([].keys && "next" in [].keys()),
  8186. Y = "values";
  8187. e.exports = function(e, t, n, i, r, a, s) {
  8188. b(n, t, i);
  8189. function o(e) {
  8190. if (!E && e in f) return f[e];
  8191. switch (e) {
  8192. case "keys":
  8193. case Y:
  8194. return function() {
  8195. return new n(this, e)
  8196. }
  8197. }
  8198. return function() {
  8199. return new n(this, e)
  8200. }
  8201. }
  8202. var u, d, l, h = t + " Iterator",
  8203. c = r == Y,
  8204. _ = !1,
  8205. f = e.prototype,
  8206. m = f[T] || f["@@iterator"] || r && f[r],
  8207. p = m || o(r),
  8208. y = r ? c ? o("entries") : p : void 0,
  8209. i = "Array" == t && f.entries || m;
  8210. if (i && (l = D(i.call(new e))) !== Object.prototype && l.next && (w(l, h, !0), g ||
  8211. "function" == typeof l[T] || S(l, T, v)), c && m && m.name !== Y && (_ = !0, p =
  8212. function() {
  8213. return m.call(this)
  8214. }), g && !s || !E && !_ && f[T] || S(f, T, p), k[t] = p, k[h] = v, r)
  8215. if (u = {
  8216. values: c ? p : o(Y),
  8217. keys: a ? p : o("keys"),
  8218. entries: y
  8219. }, s)
  8220. for (d in u) d in f || L(f, d, u[d]);
  8221. else M(M.P + M.F * (E || _), t, u);
  8222. return u
  8223. }
  8224. }, function(e, t, n) {
  8225. e.exports = !n(14) && !n(23)(function() {
  8226. return 7 != Object.defineProperty(n(44)("div"), "a", {
  8227. get: function() {
  8228. return 7
  8229. }
  8230. }).a
  8231. })
  8232. }, function(e, t, n) {
  8233. e.exports = n(17)
  8234. }, function(e, t, n) {
  8235. var s = n(18),
  8236. o = n(19),
  8237. u = n(240)(!1),
  8238. d = n(48)("IE_PROTO");
  8239. e.exports = function(e, t) {
  8240. var n, i = o(e),
  8241. r = 0,
  8242. a = [];
  8243. for (n in i) n != d && s(i, n) && a.push(n);
  8244. for (; t.length > r;) s(i, n = t[r++]) && (~u(a, n) || a.push(n));
  8245. return a
  8246. }
  8247. }, function(e, t, n) {
  8248. var i = n(31);
  8249. e.exports = Object("z").propertyIsEnumerable(0) ? Object : function(e) {
  8250. return "String" == i(e) ? e.split("") : Object(e)
  8251. }
  8252. }, function(e, t, n) {
  8253. n = n(6).document;
  8254. e.exports = n && n.documentElement
  8255. }, function(e, t, n) {
  8256. var i = n(18),
  8257. r = n(24),
  8258. a = n(48)("IE_PROTO"),
  8259. s = Object.prototype;
  8260. e.exports = Object.getPrototypeOf || function(e) {
  8261. return e = r(e), i(e, a) ? e[a] : "function" == typeof e.constructor && e instanceof e
  8262. .constructor ? e.constructor.prototype : e instanceof Object ? s : null
  8263. }
  8264. }, function(e, t, n) {
  8265. n(242);
  8266. for (var i = n(6), r = n(17), a = n(29), s = n(7)("toStringTag"), o =
  8267. "CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList"
  8268. .split(","), u = 0; u < o.length; u++) {
  8269. var d = o[u],
  8270. l = i[d],
  8271. l = l && l.prototype;
  8272. l && !l[s] && r(l, s, d), a[d] = a.Array
  8273. }
  8274. }, function(e, t, n) {
  8275. var i = n(31),
  8276. r = n(7)("toStringTag"),
  8277. a = "Arguments" == i(function() {
  8278. return arguments
  8279. }());
  8280. e.exports = function(e) {
  8281. var t;
  8282. return void 0 === e ? "Undefined" : null === e ? "Null" : "string" == typeof(e = function(e,
  8283. t) {
  8284. try {
  8285. return e[t]
  8286. } catch (e) {}
  8287. }(t = Object(e), r)) ? e : a ? i(t) : "Object" == (e = i(t)) && "function" == typeof t
  8288. .callee ? "Arguments" : e
  8289. }
  8290. }, function(e, t, n) {
  8291. var r = n(13);
  8292. e.exports = function(t, e, n, i) {
  8293. try {
  8294. return i ? e(r(n)[0], n[1]) : e(n)
  8295. } catch (e) {
  8296. n = t.return;
  8297. throw void 0 !== n && r(n.call(t)), e
  8298. }
  8299. }
  8300. }, function(e, t, n) {
  8301. var i = n(29),
  8302. r = n(7)("iterator"),
  8303. a = Array.prototype;
  8304. e.exports = function(e) {
  8305. return void 0 !== e && (i.Array === e || a[r] === e)
  8306. }
  8307. }, function(e, t, n) {
  8308. var i = n(76),
  8309. r = n(7)("iterator"),
  8310. a = n(29);
  8311. e.exports = n(3).getIteratorMethod = function(e) {
  8312. if (null != e) return e[r] || e["@@iterator"] || a[i(e)]
  8313. }
  8314. }, function(e, t, n) {
  8315. var i = n(13),
  8316. r = n(34),
  8317. a = n(7)("species");
  8318. e.exports = function(e, t) {
  8319. var n, e = i(e).constructor;
  8320. return void 0 === e || null == (n = i(e)[a]) ? t : r(n)
  8321. }
  8322. }, function(e, t, n) {
  8323. function i() {
  8324. var e, t = +this;
  8325. y.hasOwnProperty(t) && (e = y[t], delete y[t], e())
  8326. }
  8327. function r(e) {
  8328. i.call(e.data)
  8329. }
  8330. var a, s = n(22),
  8331. o = n(248),
  8332. u = n(73),
  8333. d = n(44),
  8334. l = n(6),
  8335. h = l.process,
  8336. c = l.setImmediate,
  8337. _ = l.clearImmediate,
  8338. f = l.MessageChannel,
  8339. m = l.Dispatch,
  8340. p = 0,
  8341. y = {},
  8342. v = "onreadystatechange";
  8343. c && _ || (c = function(e) {
  8344. for (var t = [], n = 1; n < arguments.length;) t.push(arguments[n++]);
  8345. return y[++p] = function() {
  8346. o("function" == typeof e ? e : Function(e), t)
  8347. }, a(p), p
  8348. }, _ = function(e) {
  8349. delete y[e]
  8350. }, "process" == n(31)(h) ? a = function(e) {
  8351. h.nextTick(s(i, e, 1))
  8352. } : m && m.now ? a = function(e) {
  8353. m.now(s(i, e, 1))
  8354. } : f ? (f = (n = new f).port2, n.port1.onmessage = r, a = s(f.postMessage, f, 1)) : l
  8355. .addEventListener && "function" == typeof postMessage && !l.importScripts ? (a = function(
  8356. e) {
  8357. l.postMessage(e + "", "*")
  8358. }, l.addEventListener("message", r, !1)) : a = v in d("script") ? function(e) {
  8359. u.appendChild(d("script"))[v] = function() {
  8360. u.removeChild(this), i.call(e)
  8361. }
  8362. } : function(e) {
  8363. setTimeout(s(i, e, 1), 0)
  8364. }), e.exports = {
  8365. set: c,
  8366. clear: _
  8367. }
  8368. }, function(e, t) {
  8369. e.exports = function(e) {
  8370. try {
  8371. return {
  8372. e: !1,
  8373. v: e()
  8374. }
  8375. } catch (e) {
  8376. return {
  8377. e: !0,
  8378. v: e
  8379. }
  8380. }
  8381. }
  8382. }, function(e, t, n) {
  8383. var i = n(13),
  8384. r = n(16),
  8385. a = n(51);
  8386. e.exports = function(e, t) {
  8387. if (i(e), r(t) && t.constructor === e) return t;
  8388. e = a.f(e);
  8389. return (0, e.resolve)(t), e.promise
  8390. }
  8391. }, function(e, t, n) {
  8392. var a = n(7)("iterator"),
  8393. s = !1;
  8394. try {
  8395. var i = [7][a]();
  8396. i.return = function() {
  8397. s = !0
  8398. }, Array.from(i, function() {
  8399. throw 2
  8400. })
  8401. } catch (e) {}
  8402. e.exports = function(e, t) {
  8403. if (!t && !s) return !1;
  8404. var n = !1;
  8405. try {
  8406. var i = [7],
  8407. r = i[a]();
  8408. r.next = function() {
  8409. return {
  8410. done: n = !0
  8411. }
  8412. }, i[a] = function() {
  8413. return r
  8414. }, e(i)
  8415. } catch (e) {}
  8416. return n
  8417. }
  8418. }, function(e, t, n) {
  8419. e.exports = {
  8420. default: n(255),
  8421. __esModule: !0
  8422. }
  8423. }, function(e, t, n) {
  8424. "use strict";
  8425. Object.defineProperty(t, "__esModule", {
  8426. value: !0
  8427. }), t.oTool = void 0;
  8428. var i = r(n(1));
  8429. function r(e) {
  8430. return e && e.__esModule ? e : {
  8431. default: e
  8432. }
  8433. }(0, r(n(2)).default)(a, [{
  8434. key: "$",
  8435. value: function(e) {
  8436. var t = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,
  8437. n = /^(?:\s*(<[\w\W]+>)[^>]*|.([\w-]*))$/;
  8438. if (t.test(e)) {
  8439. t = t.exec(e);
  8440. return document.getElementById(t[2])
  8441. }
  8442. if (n.test(e)) {
  8443. for (var i = n.exec(e), r = document.getElementsByTagName("*"), a = [], s =
  8444. 0, o = r.length; s < o; s++) r[s].className.match(new RegExp(
  8445. "(\\s|^)" + i[2] + "(\\s|$)")) && a.push(r[s]);
  8446. return a
  8447. }
  8448. }
  8449. }, {
  8450. key: "dateFormat",
  8451. value: function(e, t) {
  8452. var n, i = {
  8453. "M+": e.getMonth() + 1,
  8454. "d+": e.getDate(),
  8455. "h+": e.getHours(),
  8456. "m+": e.getMinutes(),
  8457. "s+": e.getSeconds(),
  8458. "q+": Math.floor((e.getMonth() + 3) / 3),
  8459. S: e.getMilliseconds()
  8460. };
  8461. for (n in /(y+)/.test(t) && (t = t.replace(RegExp.$1, (e.getFullYear() + "")
  8462. .substr(4 - RegExp.$1.length))), i) new RegExp("(" + n + ")").test(t) &&
  8463. (t = t.replace(RegExp.$1, 1 === RegExp.$1.length ? i[n] : ("00" + i[n])
  8464. .substr(("" + i[n]).length)));
  8465. return t
  8466. }
  8467. }, {
  8468. key: "downloadFile",
  8469. value: function(e, t) {
  8470. var n = e;
  8471. e instanceof Blob || e instanceof File || (n = new Blob([e]));
  8472. e = window.URL.createObjectURL(n), n = window.document.createElement("a");
  8473. n.href = e, n.download = t;
  8474. t = document.createEvent("MouseEvents");
  8475. t.initEvent("click", !0, !0), n.dispatchEvent(t)
  8476. }
  8477. }, {
  8478. key: "createxmlDoc",
  8479. value: function() {
  8480. for (var t, e = ["MSXML2.DOMDocument", "MSXML2.DOMDocument.5.0",
  8481. "MSXML2.DOMDocument.4.0", "MSXML2.DOMDocument.3.0",
  8482. "Microsoft.XmlDom"
  8483. ], n = 0, i = e.length; n < i; n++) try {
  8484. t = new ActiveXObject(e[n]);
  8485. break
  8486. } catch (e) {
  8487. t = document.implementation.createDocument("", "", null);
  8488. break
  8489. }
  8490. return t.async = "false", t
  8491. }
  8492. }, {
  8493. key: "parseXmlFromStr",
  8494. value: function(e) {
  8495. if (null === e || "" === e) return null;
  8496. var t = this.createxmlDoc();
  8497. return "Netscape" === navigator.appName || "Opera" === navigator.appName ? t = (
  8498. new DOMParser).parseFromString(e, "text/xml") : t.loadXML(e), t
  8499. }
  8500. }, {
  8501. key: "encode",
  8502. value: function(e) {
  8503. var t, n, i, r, a, s, o = "",
  8504. u = 0;
  8505. for (e = this._utf8_encode(e); u < e.length;) i = (s = e.charCodeAt(u++)) >> 2,
  8506. r = (3 & s) << 4 | (t = e.charCodeAt(u++)) >> 4, a = (15 & t) << 2 | (n = e
  8507. .charCodeAt(u++)) >> 6, s = 63 & n, isNaN(t) ? a = s = 64 : isNaN(n) &&
  8508. (s = 64), o = o + this._keyStr.charAt(i) + this._keyStr.charAt(r) + this
  8509. ._keyStr.charAt(a) + this._keyStr.charAt(s);
  8510. return o
  8511. }
  8512. }, {
  8513. key: "decode",
  8514. value: function(e) {
  8515. var t, n, i, r, a, s, o = "",
  8516. u = 0;
  8517. for (e = e.replace(/[^A-Za-z0-9+/=]/g, ""); u < e.length;) i = this._keyStr
  8518. .indexOf(e.charAt(u++)), t = (15 & (r = this._keyStr.indexOf(e.charAt(
  8519. u++)))) << 4 | (a = this._keyStr.indexOf(e.charAt(u++))) >> 2, n = (3 &
  8520. a) << 6 | (s = this._keyStr.indexOf(e.charAt(u++))), o += String
  8521. .fromCharCode(i << 2 | r >> 4), 64 !== a && (o += String.fromCharCode(t)),
  8522. 64 !== s && (o += String.fromCharCode(n));
  8523. return o = this._utf8_decode(o)
  8524. }
  8525. }, {
  8526. key: "_utf8_encode",
  8527. value: function(e) {
  8528. e = e.replace(/\r\n/g, "\n");
  8529. for (var t = "", n = 0; n < e.length; n++) {
  8530. var i = e.charCodeAt(n);
  8531. i < 128 ? t += String.fromCharCode(i) : (127 < i && i < 2048 ? t += String
  8532. .fromCharCode(i >> 6 | 192) : (t += String.fromCharCode(i >> 12 |
  8533. 224), t += String.fromCharCode(i >> 6 & 63 | 128)), t += String
  8534. .fromCharCode(63 & i | 128))
  8535. }
  8536. return t
  8537. }
  8538. }, {
  8539. key: "_utf8_decode",
  8540. value: function(e) {
  8541. for (var t, n = "", i = 0, r = 0, a = 0; i < e.length;)(r = e.charCodeAt(i)) <
  8542. 128 ? (n += String.fromCharCode(r), i++) : 191 < r && r < 224 ? (a = e
  8543. .charCodeAt(i + 1), n += String.fromCharCode((31 & r) << 6 | 63 & a),
  8544. i += 2) : (a = e.charCodeAt(i + 1), t = e.charCodeAt(i + 2), n += String
  8545. .fromCharCode((15 & r) << 12 | (63 & a) << 6 | 63 & t), i += 3);
  8546. return n
  8547. }
  8548. }, {
  8549. key: "isFirefox",
  8550. value: function() {
  8551. var e = !1,
  8552. t = navigator.userAgent.toLowerCase(),
  8553. n = "";
  8554. return t.match(/firefox\/([\d.]+)/) && (n = t.match(/firefox\/([\d.]+)/)[1], -
  8555. 1 < parseInt(n.split(".")[0], 10) && (e = !0)), e
  8556. }
  8557. }, {
  8558. key: "isSafari",
  8559. value: function() {
  8560. var e = !1,
  8561. t = navigator.userAgent.toLowerCase(),
  8562. n = "";
  8563. return t.match(/version\/([\d.]+).safari./) && (n = t.match(
  8564. /version\/([\d.]+).safari./)[1], -1 < parseInt(n.split(".")[0],
  8565. 10) && (e = !0)), e
  8566. }
  8567. }, {
  8568. key: "isEdge",
  8569. value: function() {
  8570. return -1 < navigator.userAgent.toLowerCase().indexOf("edge")
  8571. }
  8572. }, {
  8573. key: "dataURLtoBlob",
  8574. value: function(e) {
  8575. for (var t = e.split(","), e = t[0].match(/:(.*?);/)[1], n = atob(t[1]), i = n
  8576. .length, r = new Uint8Array(i); i--;) r[i] = n.charCodeAt(i);
  8577. return new Blob([r], {
  8578. type: e
  8579. })
  8580. }
  8581. }, {
  8582. key: "intToHexString",
  8583. value: function(e) {
  8584. e = e.toString(16);
  8585. return e = 1 === e.length ? "0" + e : e
  8586. }
  8587. }, {
  8588. key: "throttle",
  8589. value: function(n) {
  8590. function i() {
  8591. l = u.noStart ? 0 : +new Date, d = null, s = n.apply(r, a), d || (r = a =
  8592. null)
  8593. }
  8594. var r, a, s, o = 1 < arguments.length && void 0 !== arguments[1] ? arguments[
  8595. 1] : 16,
  8596. u = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : {
  8597. noStart: !1,
  8598. noEnd: !1
  8599. },
  8600. d = null,
  8601. l = 0;
  8602. return function() {
  8603. var e = +new Date;
  8604. !l && u.noStart && (l = e);
  8605. var t = o - (e - l);
  8606. return r = this, a = arguments, t <= 0 || o < t ? (clearTimeout(d), d =
  8607. null, l = e, s = n.apply(r, a), d || (r = a = null)) : d || u
  8608. .noEnd || (d = setTimeout(i, t)), s
  8609. }
  8610. }
  8611. }]), n = a;
  8612. function a() {
  8613. (0, i.default)(this, a), this._keyStr =
  8614. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
  8615. }
  8616. t.oTool = new n
  8617. }, function(e, t, n) {
  8618. var i = n(263),
  8619. r = n(264),
  8620. n = r;
  8621. n.v1 = i, n.v4 = r, e.exports = n
  8622. }, function(e, t) {
  8623. var n, i, r = "undefined" != typeof crypto && crypto.getRandomValues && crypto.getRandomValues.bind(
  8624. crypto) || "undefined" != typeof msCrypto && "function" == typeof window.msCrypto
  8625. .getRandomValues && msCrypto.getRandomValues.bind(msCrypto);
  8626. r ? (n = new Uint8Array(16), e.exports = function() {
  8627. return r(n), n
  8628. }) : (i = new Array(16), e.exports = function() {
  8629. for (var e, t = 0; t < 16; t++) 0 == (3 & t) && (e = 4294967296 * Math.random()), i[t] =
  8630. e >>> ((3 & t) << 3) & 255;
  8631. return i
  8632. })
  8633. }, function(e, t) {
  8634. for (var i = [], n = 0; n < 256; ++n) i[n] = (n + 256).toString(16).substr(1);
  8635. e.exports = function(e, t) {
  8636. var n = t || 0;
  8637. return [(t = i)[e[n++]], t[e[n++]], t[e[n++]], t[e[n++]], "-", t[e[n++]], t[e[n++]], "-", t[
  8638. e[n++]], t[e[n++]], "-", t[e[n++]], t[e[n++]], "-", t[e[n++]], t[e[n++]], t[e[
  8639. n++]], t[e[n++]], t[e[n++]], t[e[+n]]].join("")
  8640. }
  8641. }, function(e, t, n) {
  8642. var i = n(71),
  8643. r = n(50).concat("length", "prototype");
  8644. t.f = Object.getOwnPropertyNames || function(e) {
  8645. return i(e, r)
  8646. }
  8647. }, function(e, t, n) {
  8648. "use strict";
  8649. Object.defineProperty(t, "__esModule", {
  8650. value: !0
  8651. });
  8652. var i = s(n(1)),
  8653. r = s(n(2)),
  8654. a = s(n(0));
  8655. function s(e) {
  8656. return e && e.__esModule ? e : {
  8657. default: e
  8658. }
  8659. }(0, r.default)(o, [{
  8660. key: "D",
  8661. value: function() {
  8662. var e;
  8663. this._config.openDebug && (e = console).debug.apply(e, ["[" + this.TAG +
  8664. "] %c" + (0, a.default)().format("YYYY-MM-DD HH:mm:ss.SSS") + "%c",
  8665. "color: blue", "color: black"
  8666. ].concat(Array.prototype.slice.call(arguments)))
  8667. }
  8668. }, {
  8669. key: "I",
  8670. value: function() {
  8671. var e;
  8672. (e = console).info.apply(e, ["[" + this.TAG + "] %c" + (0, a.default)().format(
  8673. "YYYY-MM-DD HH:mm:ss.SSS") + "%c", "color: blue",
  8674. "color: black"
  8675. ].concat(Array.prototype.slice.call(arguments)))
  8676. }
  8677. }, {
  8678. key: "W",
  8679. value: function() {
  8680. var e;
  8681. (e = console).warn.apply(e, ["[" + this.TAG + "] %c" + (0, a.default)().format(
  8682. "YYYY-MM-DD HH:mm:ss.SSS") + "%c", "color: blue",
  8683. "color: black"
  8684. ].concat(Array.prototype.slice.call(arguments)))
  8685. }
  8686. }, {
  8687. key: "E",
  8688. value: function() {
  8689. var e;
  8690. (e = console).error.apply(e, ["[" + this.TAG + "] %c" + (0, a.default)().format(
  8691. "YYYY-MM-DD HH:mm:ss.SSS") + "%c", "color: blue",
  8692. "color: black"
  8693. ].concat(Array.prototype.slice.call(arguments)))
  8694. }
  8695. }]), r = o;
  8696. function o(e) {
  8697. (0, i.default)(this, o), this._bus = e, this.TAG = e.TAG || "Debug", this._config = e._config ||
  8698. e.options || {}
  8699. }
  8700. t.default = r
  8701. }, function(e, t, n) {
  8702. ! function(e) {
  8703. "use strict";
  8704. //! moment.js locale configuration
  8705. var t;
  8706. e.defineLocale("af", {
  8707. months: "Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember"
  8708. .split("_"),
  8709. monthsShort: "Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),
  8710. weekdays: "Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),
  8711. weekdaysShort: "Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),
  8712. weekdaysMin: "So_Ma_Di_Wo_Do_Vr_Sa".split("_"),
  8713. meridiemParse: /vm|nm/i,
  8714. isPM: function(e) {
  8715. return /^nm$/i.test(e)
  8716. },
  8717. meridiem: function(e, t, n) {
  8718. if (e < 12) return n ? "vm" : "VM";
  8719. else return n ? "nm" : "NM"
  8720. },
  8721. longDateFormat: {
  8722. LT: "HH:mm",
  8723. LTS: "HH:mm:ss",
  8724. L: "DD/MM/YYYY",
  8725. LL: "D MMMM YYYY",
  8726. LLL: "D MMMM YYYY HH:mm",
  8727. LLLL: "dddd, D MMMM YYYY HH:mm"
  8728. },
  8729. calendar: {
  8730. sameDay: "[Vandag om] LT",
  8731. nextDay: "[Môre om] LT",
  8732. nextWeek: "dddd [om] LT",
  8733. lastDay: "[Gister om] LT",
  8734. lastWeek: "[Laas] dddd [om] LT",
  8735. sameElse: "L"
  8736. },
  8737. relativeTime: {
  8738. future: "oor %s",
  8739. past: "%s gelede",
  8740. s: "'n paar sekondes",
  8741. ss: "%d sekondes",
  8742. m: "'n minuut",
  8743. mm: "%d minute",
  8744. h: "'n uur",
  8745. hh: "%d ure",
  8746. d: "'n dag",
  8747. dd: "%d dae",
  8748. M: "'n maand",
  8749. MM: "%d maande",
  8750. y: "'n jaar",
  8751. yy: "%d jaar"
  8752. },
  8753. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  8754. ordinal: function(e) {
  8755. return e + (e === 1 || e === 8 || e >= 20 ? "ste" : "de")
  8756. },
  8757. week: {
  8758. dow: 1,
  8759. doy: 4
  8760. }
  8761. })
  8762. }(n(0))
  8763. }, function(e, t, n) {
  8764. ! function(e) {
  8765. "use strict";
  8766. //! moment.js locale configuration
  8767. var t = {
  8768. 1: "١",
  8769. 2: "٢",
  8770. 3: "٣",
  8771. 4: "٤",
  8772. 5: "٥",
  8773. 6: "٦",
  8774. 7: "٧",
  8775. 8: "٨",
  8776. 9: "٩",
  8777. 0: "٠"
  8778. },
  8779. n = {
  8780. "١": "1",
  8781. "٢": "2",
  8782. "٣": "3",
  8783. "٤": "4",
  8784. "٥": "5",
  8785. "٦": "6",
  8786. "٧": "7",
  8787. "٨": "8",
  8788. "٩": "9",
  8789. "٠": "0"
  8790. },
  8791. o = function(e) {
  8792. return e === 0 ? 0 : e === 1 ? 1 : e === 2 ? 2 : e % 100 >= 3 && e % 100 <= 10 ? 3 : e %
  8793. 100 >= 11 ? 4 : 5
  8794. },
  8795. u = {
  8796. s: ["أقل من ثانية", "ثانية واحدة", ["ثانيتان", "ثانيتين"], "%d ثوان", "%d ثانية",
  8797. "%d ثانية"
  8798. ],
  8799. m: ["أقل من دقيقة", "دقيقة واحدة", ["دقيقتان", "دقيقتين"], "%d دقائق", "%d دقيقة",
  8800. "%d دقيقة"
  8801. ],
  8802. h: ["أقل من ساعة", "ساعة واحدة", ["ساعتان", "ساعتين"], "%d ساعات", "%d ساعة",
  8803. "%d ساعة"
  8804. ],
  8805. d: ["أقل من يوم", "يوم واحد", ["يومان", "يومين"], "%d أيام", "%d يومًا", "%d يوم"],
  8806. M: ["أقل من شهر", "شهر واحد", ["شهران", "شهرين"], "%d أشهر", "%d شهرا", "%d شهر"],
  8807. y: ["أقل من عام", "عام واحد", ["عامان", "عامين"], "%d أعوام", "%d عامًا", "%d عام"]
  8808. },
  8809. i = function(s) {
  8810. return function(e, t, n, i) {
  8811. var r = o(e),
  8812. a = u[s][o(e)];
  8813. if (r === 2) a = a[t ? 0 : 1];
  8814. return a.replace(/%d/i, e)
  8815. }
  8816. },
  8817. r = ["يناير", "فبراير", "مارس", "أبريل", "مايو", "يونيو", "يوليو", "أغسطس", "سبتمبر",
  8818. "أكتوبر", "نوفمبر", "ديسمبر"
  8819. ],
  8820. a;
  8821. e.defineLocale("ar", {
  8822. months: r,
  8823. monthsShort: r,
  8824. weekdays: "الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),
  8825. weekdaysShort: "أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),
  8826. weekdaysMin: "ح_ن_ث_ر_خ_ج_س".split("_"),
  8827. weekdaysParseExact: true,
  8828. longDateFormat: {
  8829. LT: "HH:mm",
  8830. LTS: "HH:mm:ss",
  8831. L: "D/‏M/‏YYYY",
  8832. LL: "D MMMM YYYY",
  8833. LLL: "D MMMM YYYY HH:mm",
  8834. LLLL: "dddd D MMMM YYYY HH:mm"
  8835. },
  8836. meridiemParse: /ص|م/,
  8837. isPM: function(e) {
  8838. return "م" === e
  8839. },
  8840. meridiem: function(e, t, n) {
  8841. if (e < 12) return "ص";
  8842. else return "م"
  8843. },
  8844. calendar: {
  8845. sameDay: "[اليوم عند الساعة] LT",
  8846. nextDay: "[غدًا عند الساعة] LT",
  8847. nextWeek: "dddd [عند الساعة] LT",
  8848. lastDay: "[أمس عند الساعة] LT",
  8849. lastWeek: "dddd [عند الساعة] LT",
  8850. sameElse: "L"
  8851. },
  8852. relativeTime: {
  8853. future: "بعد %s",
  8854. past: "منذ %s",
  8855. s: i("s"),
  8856. ss: i("s"),
  8857. m: i("m"),
  8858. mm: i("m"),
  8859. h: i("h"),
  8860. hh: i("h"),
  8861. d: i("d"),
  8862. dd: i("d"),
  8863. M: i("M"),
  8864. MM: i("M"),
  8865. y: i("y"),
  8866. yy: i("y")
  8867. },
  8868. preparse: function(e) {
  8869. return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function(e) {
  8870. return n[e]
  8871. }).replace(/،/g, ",")
  8872. },
  8873. postformat: function(e) {
  8874. return e.replace(/\d/g, function(e) {
  8875. return t[e]
  8876. }).replace(/,/g, "،")
  8877. },
  8878. week: {
  8879. dow: 6,
  8880. doy: 12
  8881. }
  8882. })
  8883. }(n(0))
  8884. }, function(e, t, n) {
  8885. ! function(e) {
  8886. "use strict";
  8887. //! moment.js locale configuration
  8888. var o = function(e) {
  8889. return e === 0 ? 0 : e === 1 ? 1 : e === 2 ? 2 : e % 100 >= 3 && e % 100 <= 10 ? 3 : e %
  8890. 100 >= 11 ? 4 : 5
  8891. },
  8892. u = {
  8893. s: ["أقل من ثانية", "ثانية واحدة", ["ثانيتان", "ثانيتين"], "%d ثوان", "%d ثانية",
  8894. "%d ثانية"
  8895. ],
  8896. m: ["أقل من دقيقة", "دقيقة واحدة", ["دقيقتان", "دقيقتين"], "%d دقائق", "%d دقيقة",
  8897. "%d دقيقة"
  8898. ],
  8899. h: ["أقل من ساعة", "ساعة واحدة", ["ساعتان", "ساعتين"], "%d ساعات", "%d ساعة",
  8900. "%d ساعة"
  8901. ],
  8902. d: ["أقل من يوم", "يوم واحد", ["يومان", "يومين"], "%d أيام", "%d يومًا", "%d يوم"],
  8903. M: ["أقل من شهر", "شهر واحد", ["شهران", "شهرين"], "%d أشهر", "%d شهرا", "%d شهر"],
  8904. y: ["أقل من عام", "عام واحد", ["عامان", "عامين"], "%d أعوام", "%d عامًا", "%d عام"]
  8905. },
  8906. t = function(s) {
  8907. return function(e, t, n, i) {
  8908. var r = o(e),
  8909. a = u[s][o(e)];
  8910. if (r === 2) a = a[t ? 0 : 1];
  8911. return a.replace(/%d/i, e)
  8912. }
  8913. },
  8914. n = ["جانفي", "فيفري", "مارس", "أفريل", "ماي", "جوان", "جويلية", "أوت", "سبتمبر", "أكتوبر",
  8915. "نوفمبر", "ديسمبر"
  8916. ],
  8917. i;
  8918. e.defineLocale("ar-dz", {
  8919. months: n,
  8920. monthsShort: n,
  8921. weekdays: "الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),
  8922. weekdaysShort: "أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),
  8923. weekdaysMin: "ح_ن_ث_ر_خ_ج_س".split("_"),
  8924. weekdaysParseExact: true,
  8925. longDateFormat: {
  8926. LT: "HH:mm",
  8927. LTS: "HH:mm:ss",
  8928. L: "D/‏M/‏YYYY",
  8929. LL: "D MMMM YYYY",
  8930. LLL: "D MMMM YYYY HH:mm",
  8931. LLLL: "dddd D MMMM YYYY HH:mm"
  8932. },
  8933. meridiemParse: /ص|م/,
  8934. isPM: function(e) {
  8935. return "م" === e
  8936. },
  8937. meridiem: function(e, t, n) {
  8938. if (e < 12) return "ص";
  8939. else return "م"
  8940. },
  8941. calendar: {
  8942. sameDay: "[اليوم عند الساعة] LT",
  8943. nextDay: "[غدًا عند الساعة] LT",
  8944. nextWeek: "dddd [عند الساعة] LT",
  8945. lastDay: "[أمس عند الساعة] LT",
  8946. lastWeek: "dddd [عند الساعة] LT",
  8947. sameElse: "L"
  8948. },
  8949. relativeTime: {
  8950. future: "بعد %s",
  8951. past: "منذ %s",
  8952. s: t("s"),
  8953. ss: t("s"),
  8954. m: t("m"),
  8955. mm: t("m"),
  8956. h: t("h"),
  8957. hh: t("h"),
  8958. d: t("d"),
  8959. dd: t("d"),
  8960. M: t("M"),
  8961. MM: t("M"),
  8962. y: t("y"),
  8963. yy: t("y")
  8964. },
  8965. postformat: function(e) {
  8966. return e.replace(/,/g, "،")
  8967. },
  8968. week: {
  8969. dow: 0,
  8970. doy: 4
  8971. }
  8972. })
  8973. }(n(0))
  8974. }, function(e, t, n) {
  8975. ! function(e) {
  8976. "use strict";
  8977. //! moment.js locale configuration
  8978. var t;
  8979. e.defineLocale("ar-kw", {
  8980. months: "يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر"
  8981. .split("_"),
  8982. monthsShort: "يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر"
  8983. .split("_"),
  8984. weekdays: "الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),
  8985. weekdaysShort: "احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),
  8986. weekdaysMin: "ح_ن_ث_ر_خ_ج_س".split("_"),
  8987. weekdaysParseExact: true,
  8988. longDateFormat: {
  8989. LT: "HH:mm",
  8990. LTS: "HH:mm:ss",
  8991. L: "DD/MM/YYYY",
  8992. LL: "D MMMM YYYY",
  8993. LLL: "D MMMM YYYY HH:mm",
  8994. LLLL: "dddd D MMMM YYYY HH:mm"
  8995. },
  8996. calendar: {
  8997. sameDay: "[اليوم على الساعة] LT",
  8998. nextDay: "[غدا على الساعة] LT",
  8999. nextWeek: "dddd [على الساعة] LT",
  9000. lastDay: "[أمس على الساعة] LT",
  9001. lastWeek: "dddd [على الساعة] LT",
  9002. sameElse: "L"
  9003. },
  9004. relativeTime: {
  9005. future: "في %s",
  9006. past: "منذ %s",
  9007. s: "ثوان",
  9008. ss: "%d ثانية",
  9009. m: "دقيقة",
  9010. mm: "%d دقائق",
  9011. h: "ساعة",
  9012. hh: "%d ساعات",
  9013. d: "يوم",
  9014. dd: "%d أيام",
  9015. M: "شهر",
  9016. MM: "%d أشهر",
  9017. y: "سنة",
  9018. yy: "%d سنوات"
  9019. },
  9020. week: {
  9021. dow: 0,
  9022. doy: 12
  9023. }
  9024. })
  9025. }(n(0))
  9026. }, function(e, t, n) {
  9027. ! function(e) {
  9028. "use strict";
  9029. //! moment.js locale configuration
  9030. var t = {
  9031. 1: "1",
  9032. 2: "2",
  9033. 3: "3",
  9034. 4: "4",
  9035. 5: "5",
  9036. 6: "6",
  9037. 7: "7",
  9038. 8: "8",
  9039. 9: "9",
  9040. 0: "0"
  9041. },
  9042. o = function(e) {
  9043. return e === 0 ? 0 : e === 1 ? 1 : e === 2 ? 2 : e % 100 >= 3 && e % 100 <= 10 ? 3 : e %
  9044. 100 >= 11 ? 4 : 5
  9045. },
  9046. u = {
  9047. s: ["أقل من ثانية", "ثانية واحدة", ["ثانيتان", "ثانيتين"], "%d ثوان", "%d ثانية",
  9048. "%d ثانية"
  9049. ],
  9050. m: ["أقل من دقيقة", "دقيقة واحدة", ["دقيقتان", "دقيقتين"], "%d دقائق", "%d دقيقة",
  9051. "%d دقيقة"
  9052. ],
  9053. h: ["أقل من ساعة", "ساعة واحدة", ["ساعتان", "ساعتين"], "%d ساعات", "%d ساعة",
  9054. "%d ساعة"
  9055. ],
  9056. d: ["أقل من يوم", "يوم واحد", ["يومان", "يومين"], "%d أيام", "%d يومًا", "%d يوم"],
  9057. M: ["أقل من شهر", "شهر واحد", ["شهران", "شهرين"], "%d أشهر", "%d شهرا", "%d شهر"],
  9058. y: ["أقل من عام", "عام واحد", ["عامان", "عامين"], "%d أعوام", "%d عامًا", "%d عام"]
  9059. },
  9060. n = function(s) {
  9061. return function(e, t, n, i) {
  9062. var r = o(e),
  9063. a = u[s][o(e)];
  9064. if (r === 2) a = a[t ? 0 : 1];
  9065. return a.replace(/%d/i, e)
  9066. }
  9067. },
  9068. i = ["يناير", "فبراير", "مارس", "أبريل", "مايو", "يونيو", "يوليو", "أغسطس", "سبتمبر",
  9069. "أكتوبر", "نوفمبر", "ديسمبر"
  9070. ],
  9071. r;
  9072. e.defineLocale("ar-ly", {
  9073. months: i,
  9074. monthsShort: i,
  9075. weekdays: "الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),
  9076. weekdaysShort: "أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),
  9077. weekdaysMin: "ح_ن_ث_ر_خ_ج_س".split("_"),
  9078. weekdaysParseExact: true,
  9079. longDateFormat: {
  9080. LT: "HH:mm",
  9081. LTS: "HH:mm:ss",
  9082. L: "D/‏M/‏YYYY",
  9083. LL: "D MMMM YYYY",
  9084. LLL: "D MMMM YYYY HH:mm",
  9085. LLLL: "dddd D MMMM YYYY HH:mm"
  9086. },
  9087. meridiemParse: /ص|م/,
  9088. isPM: function(e) {
  9089. return "م" === e
  9090. },
  9091. meridiem: function(e, t, n) {
  9092. if (e < 12) return "ص";
  9093. else return "م"
  9094. },
  9095. calendar: {
  9096. sameDay: "[اليوم عند الساعة] LT",
  9097. nextDay: "[غدًا عند الساعة] LT",
  9098. nextWeek: "dddd [عند الساعة] LT",
  9099. lastDay: "[أمس عند الساعة] LT",
  9100. lastWeek: "dddd [عند الساعة] LT",
  9101. sameElse: "L"
  9102. },
  9103. relativeTime: {
  9104. future: "بعد %s",
  9105. past: "منذ %s",
  9106. s: n("s"),
  9107. ss: n("s"),
  9108. m: n("m"),
  9109. mm: n("m"),
  9110. h: n("h"),
  9111. hh: n("h"),
  9112. d: n("d"),
  9113. dd: n("d"),
  9114. M: n("M"),
  9115. MM: n("M"),
  9116. y: n("y"),
  9117. yy: n("y")
  9118. },
  9119. preparse: function(e) {
  9120. return e.replace(/،/g, ",")
  9121. },
  9122. postformat: function(e) {
  9123. return e.replace(/\d/g, function(e) {
  9124. return t[e]
  9125. }).replace(/,/g, "،")
  9126. },
  9127. week: {
  9128. dow: 6,
  9129. doy: 12
  9130. }
  9131. })
  9132. }(n(0))
  9133. }, function(e, t, n) {
  9134. ! function(e) {
  9135. "use strict";
  9136. //! moment.js locale configuration
  9137. var t;
  9138. e.defineLocale("ar-ma", {
  9139. months: "يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر"
  9140. .split("_"),
  9141. monthsShort: "يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر"
  9142. .split("_"),
  9143. weekdays: "الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),
  9144. weekdaysShort: "احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),
  9145. weekdaysMin: "ح_ن_ث_ر_خ_ج_س".split("_"),
  9146. weekdaysParseExact: true,
  9147. longDateFormat: {
  9148. LT: "HH:mm",
  9149. LTS: "HH:mm:ss",
  9150. L: "DD/MM/YYYY",
  9151. LL: "D MMMM YYYY",
  9152. LLL: "D MMMM YYYY HH:mm",
  9153. LLLL: "dddd D MMMM YYYY HH:mm"
  9154. },
  9155. calendar: {
  9156. sameDay: "[اليوم على الساعة] LT",
  9157. nextDay: "[غدا على الساعة] LT",
  9158. nextWeek: "dddd [على الساعة] LT",
  9159. lastDay: "[أمس على الساعة] LT",
  9160. lastWeek: "dddd [على الساعة] LT",
  9161. sameElse: "L"
  9162. },
  9163. relativeTime: {
  9164. future: "في %s",
  9165. past: "منذ %s",
  9166. s: "ثوان",
  9167. ss: "%d ثانية",
  9168. m: "دقيقة",
  9169. mm: "%d دقائق",
  9170. h: "ساعة",
  9171. hh: "%d ساعات",
  9172. d: "يوم",
  9173. dd: "%d أيام",
  9174. M: "شهر",
  9175. MM: "%d أشهر",
  9176. y: "سنة",
  9177. yy: "%d سنوات"
  9178. },
  9179. week: {
  9180. dow: 1,
  9181. doy: 4
  9182. }
  9183. })
  9184. }(n(0))
  9185. }, function(e, t, n) {
  9186. ! function(e) {
  9187. "use strict";
  9188. //! moment.js locale configuration
  9189. var t = {
  9190. 1: "١",
  9191. 2: "٢",
  9192. 3: "٣",
  9193. 4: "٤",
  9194. 5: "٥",
  9195. 6: "٦",
  9196. 7: "٧",
  9197. 8: "٨",
  9198. 9: "٩",
  9199. 0: "٠"
  9200. },
  9201. n = {
  9202. "١": "1",
  9203. "٢": "2",
  9204. "٣": "3",
  9205. "٤": "4",
  9206. "٥": "5",
  9207. "٦": "6",
  9208. "٧": "7",
  9209. "٨": "8",
  9210. "٩": "9",
  9211. "٠": "0"
  9212. },
  9213. i;
  9214. e.defineLocale("ar-sa", {
  9215. months: "يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر"
  9216. .split("_"),
  9217. monthsShort: "يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر"
  9218. .split("_"),
  9219. weekdays: "الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),
  9220. weekdaysShort: "أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),
  9221. weekdaysMin: "ح_ن_ث_ر_خ_ج_س".split("_"),
  9222. weekdaysParseExact: true,
  9223. longDateFormat: {
  9224. LT: "HH:mm",
  9225. LTS: "HH:mm:ss",
  9226. L: "DD/MM/YYYY",
  9227. LL: "D MMMM YYYY",
  9228. LLL: "D MMMM YYYY HH:mm",
  9229. LLLL: "dddd D MMMM YYYY HH:mm"
  9230. },
  9231. meridiemParse: /ص|م/,
  9232. isPM: function(e) {
  9233. return "م" === e
  9234. },
  9235. meridiem: function(e, t, n) {
  9236. if (e < 12) return "ص";
  9237. else return "م"
  9238. },
  9239. calendar: {
  9240. sameDay: "[اليوم على الساعة] LT",
  9241. nextDay: "[غدا على الساعة] LT",
  9242. nextWeek: "dddd [على الساعة] LT",
  9243. lastDay: "[أمس على الساعة] LT",
  9244. lastWeek: "dddd [على الساعة] LT",
  9245. sameElse: "L"
  9246. },
  9247. relativeTime: {
  9248. future: "في %s",
  9249. past: "منذ %s",
  9250. s: "ثوان",
  9251. ss: "%d ثانية",
  9252. m: "دقيقة",
  9253. mm: "%d دقائق",
  9254. h: "ساعة",
  9255. hh: "%d ساعات",
  9256. d: "يوم",
  9257. dd: "%d أيام",
  9258. M: "شهر",
  9259. MM: "%d أشهر",
  9260. y: "سنة",
  9261. yy: "%d سنوات"
  9262. },
  9263. preparse: function(e) {
  9264. return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function(e) {
  9265. return n[e]
  9266. }).replace(/،/g, ",")
  9267. },
  9268. postformat: function(e) {
  9269. return e.replace(/\d/g, function(e) {
  9270. return t[e]
  9271. }).replace(/,/g, "،")
  9272. },
  9273. week: {
  9274. dow: 0,
  9275. doy: 6
  9276. }
  9277. })
  9278. }(n(0))
  9279. }, function(e, t, n) {
  9280. ! function(e) {
  9281. "use strict";
  9282. //! moment.js locale configuration
  9283. var t;
  9284. e.defineLocale("ar-tn", {
  9285. months: "جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر"
  9286. .split("_"),
  9287. monthsShort: "جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر"
  9288. .split("_"),
  9289. weekdays: "الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),
  9290. weekdaysShort: "أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),
  9291. weekdaysMin: "ح_ن_ث_ر_خ_ج_س".split("_"),
  9292. weekdaysParseExact: true,
  9293. longDateFormat: {
  9294. LT: "HH:mm",
  9295. LTS: "HH:mm:ss",
  9296. L: "DD/MM/YYYY",
  9297. LL: "D MMMM YYYY",
  9298. LLL: "D MMMM YYYY HH:mm",
  9299. LLLL: "dddd D MMMM YYYY HH:mm"
  9300. },
  9301. calendar: {
  9302. sameDay: "[اليوم على الساعة] LT",
  9303. nextDay: "[غدا على الساعة] LT",
  9304. nextWeek: "dddd [على الساعة] LT",
  9305. lastDay: "[أمس على الساعة] LT",
  9306. lastWeek: "dddd [على الساعة] LT",
  9307. sameElse: "L"
  9308. },
  9309. relativeTime: {
  9310. future: "في %s",
  9311. past: "منذ %s",
  9312. s: "ثوان",
  9313. ss: "%d ثانية",
  9314. m: "دقيقة",
  9315. mm: "%d دقائق",
  9316. h: "ساعة",
  9317. hh: "%d ساعات",
  9318. d: "يوم",
  9319. dd: "%d أيام",
  9320. M: "شهر",
  9321. MM: "%d أشهر",
  9322. y: "سنة",
  9323. yy: "%d سنوات"
  9324. },
  9325. week: {
  9326. dow: 1,
  9327. doy: 4
  9328. }
  9329. })
  9330. }(n(0))
  9331. }, function(e, t, n) {
  9332. ! function(e) {
  9333. "use strict";
  9334. //! moment.js locale configuration
  9335. var r = {
  9336. 1: "-inci",
  9337. 5: "-inci",
  9338. 8: "-inci",
  9339. 70: "-inci",
  9340. 80: "-inci",
  9341. 2: "-nci",
  9342. 7: "-nci",
  9343. 20: "-nci",
  9344. 50: "-nci",
  9345. 3: "-üncü",
  9346. 4: "-üncü",
  9347. 100: "-üncü",
  9348. 6: "-ncı",
  9349. 9: "-uncu",
  9350. 10: "-uncu",
  9351. 30: "-uncu",
  9352. 60: "-ıncı",
  9353. 90: "-ıncı"
  9354. },
  9355. t;
  9356. e.defineLocale("az", {
  9357. months: "yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr"
  9358. .split("_"),
  9359. monthsShort: "yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),
  9360. weekdays: "Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə"
  9361. .split("_"),
  9362. weekdaysShort: "Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),
  9363. weekdaysMin: "Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),
  9364. weekdaysParseExact: true,
  9365. longDateFormat: {
  9366. LT: "HH:mm",
  9367. LTS: "HH:mm:ss",
  9368. L: "DD.MM.YYYY",
  9369. LL: "D MMMM YYYY",
  9370. LLL: "D MMMM YYYY HH:mm",
  9371. LLLL: "dddd, D MMMM YYYY HH:mm"
  9372. },
  9373. calendar: {
  9374. sameDay: "[bugün saat] LT",
  9375. nextDay: "[sabah saat] LT",
  9376. nextWeek: "[gələn həftə] dddd [saat] LT",
  9377. lastDay: "[dünən] LT",
  9378. lastWeek: "[keçən həftə] dddd [saat] LT",
  9379. sameElse: "L"
  9380. },
  9381. relativeTime: {
  9382. future: "%s sonra",
  9383. past: "%s əvvəl",
  9384. s: "bir neçə saniyə",
  9385. ss: "%d saniyə",
  9386. m: "bir dəqiqə",
  9387. mm: "%d dəqiqə",
  9388. h: "bir saat",
  9389. hh: "%d saat",
  9390. d: "bir gün",
  9391. dd: "%d gün",
  9392. M: "bir ay",
  9393. MM: "%d ay",
  9394. y: "bir il",
  9395. yy: "%d il"
  9396. },
  9397. meridiemParse: /gecə|səhər|gündüz|axşam/,
  9398. isPM: function(e) {
  9399. return /^(gündüz|axşam)$/.test(e)
  9400. },
  9401. meridiem: function(e, t, n) {
  9402. if (e < 4) return "gecə";
  9403. else if (e < 12) return "səhər";
  9404. else if (e < 17) return "gündüz";
  9405. else return "axşam"
  9406. },
  9407. dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
  9408. ordinal: function(e) {
  9409. if (e === 0) return e + "-ıncı";
  9410. var t = e % 10,
  9411. n = e % 100 - t,
  9412. i = e >= 100 ? 100 : null;
  9413. return e + (r[t] || r[n] || r[i])
  9414. },
  9415. week: {
  9416. dow: 1,
  9417. doy: 7
  9418. }
  9419. })
  9420. }(n(0))
  9421. }, function(e, t, n) {
  9422. ! function(e) {
  9423. "use strict";
  9424. //! moment.js locale configuration
  9425. function r(e, t) {
  9426. var n = e.split("_");
  9427. return t % 10 === 1 && t % 100 !== 11 ? n[0] : t % 10 >= 2 && t % 10 <= 4 && (t % 100 <
  9428. 10 || t % 100 >= 20) ? n[1] : n[2]
  9429. }
  9430. function t(e, t, n) {
  9431. var i = {
  9432. ss: t ? "секунда_секунды_секунд" : "секунду_секунды_секунд",
  9433. mm: t ? "хвіліна_хвіліны_хвілін" : "хвіліну_хвіліны_хвілін",
  9434. hh: t ? "гадзіна_гадзіны_гадзін" : "гадзіну_гадзіны_гадзін",
  9435. dd: "дзень_дні_дзён",
  9436. MM: "месяц_месяцы_месяцаў",
  9437. yy: "год_гады_гадоў"
  9438. };
  9439. if (n === "m") return t ? "хвіліна" : "хвіліну";
  9440. else if (n === "h") return t ? "гадзіна" : "гадзіну";
  9441. else return e + " " + r(i[n], +e)
  9442. }
  9443. var n;
  9444. e.defineLocale("be", {
  9445. months: {
  9446. format: "студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня"
  9447. .split("_"),
  9448. standalone: "студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань"
  9449. .split("_")
  9450. },
  9451. monthsShort: "студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),
  9452. weekdays: {
  9453. format: "нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),
  9454. standalone: "нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split(
  9455. "_"),
  9456. isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/
  9457. },
  9458. weekdaysShort: "нд_пн_ат_ср_чц_пт_сб".split("_"),
  9459. weekdaysMin: "нд_пн_ат_ср_чц_пт_сб".split("_"),
  9460. longDateFormat: {
  9461. LT: "HH:mm",
  9462. LTS: "HH:mm:ss",
  9463. L: "DD.MM.YYYY",
  9464. LL: "D MMMM YYYY г.",
  9465. LLL: "D MMMM YYYY г., HH:mm",
  9466. LLLL: "dddd, D MMMM YYYY г., HH:mm"
  9467. },
  9468. calendar: {
  9469. sameDay: "[Сёння ў] LT",
  9470. nextDay: "[Заўтра ў] LT",
  9471. lastDay: "[Учора ў] LT",
  9472. nextWeek: function() {
  9473. return "[У] dddd [ў] LT"
  9474. },
  9475. lastWeek: function() {
  9476. switch (this.day()) {
  9477. case 0:
  9478. case 3:
  9479. case 5:
  9480. case 6:
  9481. return "[У мінулую] dddd [ў] LT";
  9482. case 1:
  9483. case 2:
  9484. case 4:
  9485. return "[У мінулы] dddd [ў] LT"
  9486. }
  9487. },
  9488. sameElse: "L"
  9489. },
  9490. relativeTime: {
  9491. future: "праз %s",
  9492. past: "%s таму",
  9493. s: "некалькі секунд",
  9494. m: t,
  9495. mm: t,
  9496. h: t,
  9497. hh: t,
  9498. d: "дзень",
  9499. dd: t,
  9500. M: "месяц",
  9501. MM: t,
  9502. y: "год",
  9503. yy: t
  9504. },
  9505. meridiemParse: /ночы|раніцы|дня|вечара/,
  9506. isPM: function(e) {
  9507. return /^(дня|вечара)$/.test(e)
  9508. },
  9509. meridiem: function(e, t, n) {
  9510. if (e < 4) return "ночы";
  9511. else if (e < 12) return "раніцы";
  9512. else if (e < 17) return "дня";
  9513. else return "вечара"
  9514. },
  9515. dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/,
  9516. ordinal: function(e, t) {
  9517. switch (t) {
  9518. case "M":
  9519. case "d":
  9520. case "DDD":
  9521. case "w":
  9522. case "W":
  9523. return (e % 10 === 2 || e % 10 === 3) && e % 100 !== 12 && e %
  9524. 100 !== 13 ? e + "-і" : e + "-ы";
  9525. case "D":
  9526. return e + "-га";
  9527. default:
  9528. return e
  9529. }
  9530. },
  9531. week: {
  9532. dow: 1,
  9533. doy: 7
  9534. }
  9535. })
  9536. }(n(0))
  9537. }, function(e, t, n) {
  9538. ! function(e) {
  9539. "use strict";
  9540. //! moment.js locale configuration
  9541. var t;
  9542. e.defineLocale("bg", {
  9543. months: "януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември"
  9544. .split("_"),
  9545. monthsShort: "яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),
  9546. weekdays: "неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),
  9547. weekdaysShort: "нед_пон_вто_сря_чет_пет_съб".split("_"),
  9548. weekdaysMin: "нд_пн_вт_ср_чт_пт_сб".split("_"),
  9549. longDateFormat: {
  9550. LT: "H:mm",
  9551. LTS: "H:mm:ss",
  9552. L: "D.MM.YYYY",
  9553. LL: "D MMMM YYYY",
  9554. LLL: "D MMMM YYYY H:mm",
  9555. LLLL: "dddd, D MMMM YYYY H:mm"
  9556. },
  9557. calendar: {
  9558. sameDay: "[Днес в] LT",
  9559. nextDay: "[Утре в] LT",
  9560. nextWeek: "dddd [в] LT",
  9561. lastDay: "[Вчера в] LT",
  9562. lastWeek: function() {
  9563. switch (this.day()) {
  9564. case 0:
  9565. case 3:
  9566. case 6:
  9567. return "[Миналата] dddd [в] LT";
  9568. case 1:
  9569. case 2:
  9570. case 4:
  9571. case 5:
  9572. return "[Миналия] dddd [в] LT"
  9573. }
  9574. },
  9575. sameElse: "L"
  9576. },
  9577. relativeTime: {
  9578. future: "след %s",
  9579. past: "преди %s",
  9580. s: "няколко секунди",
  9581. ss: "%d секунди",
  9582. m: "минута",
  9583. mm: "%d минути",
  9584. h: "час",
  9585. hh: "%d часа",
  9586. d: "ден",
  9587. dd: "%d дена",
  9588. w: "седмица",
  9589. ww: "%d седмици",
  9590. M: "месец",
  9591. MM: "%d месеца",
  9592. y: "година",
  9593. yy: "%d години"
  9594. },
  9595. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  9596. ordinal: function(e) {
  9597. var t = e % 10,
  9598. n = e % 100;
  9599. if (e === 0) return e + "-ев";
  9600. else if (n === 0) return e + "-ен";
  9601. else if (n > 10 && n < 20) return e + "-ти";
  9602. else if (t === 1) return e + "-ви";
  9603. else if (t === 2) return e + "-ри";
  9604. else if (t === 7 || t === 8) return e + "-ми";
  9605. else return e + "-ти"
  9606. },
  9607. week: {
  9608. dow: 1,
  9609. doy: 7
  9610. }
  9611. })
  9612. }(n(0))
  9613. }, function(e, t, n) {
  9614. ! function(e) {
  9615. "use strict";
  9616. //! moment.js locale configuration
  9617. var t;
  9618. e.defineLocale("bm", {
  9619. months: "Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo"
  9620. .split("_"),
  9621. monthsShort: "Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),
  9622. weekdays: "Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),
  9623. weekdaysShort: "Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),
  9624. weekdaysMin: "Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),
  9625. longDateFormat: {
  9626. LT: "HH:mm",
  9627. LTS: "HH:mm:ss",
  9628. L: "DD/MM/YYYY",
  9629. LL: "MMMM [tile] D [san] YYYY",
  9630. LLL: "MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",
  9631. LLLL: "dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"
  9632. },
  9633. calendar: {
  9634. sameDay: "[Bi lɛrɛ] LT",
  9635. nextDay: "[Sini lɛrɛ] LT",
  9636. nextWeek: "dddd [don lɛrɛ] LT",
  9637. lastDay: "[Kunu lɛrɛ] LT",
  9638. lastWeek: "dddd [tɛmɛnen lɛrɛ] LT",
  9639. sameElse: "L"
  9640. },
  9641. relativeTime: {
  9642. future: "%s kɔnɔ",
  9643. past: "a bɛ %s bɔ",
  9644. s: "sanga dama dama",
  9645. ss: "sekondi %d",
  9646. m: "miniti kelen",
  9647. mm: "miniti %d",
  9648. h: "lɛrɛ kelen",
  9649. hh: "lɛrɛ %d",
  9650. d: "tile kelen",
  9651. dd: "tile %d",
  9652. M: "kalo kelen",
  9653. MM: "kalo %d",
  9654. y: "san kelen",
  9655. yy: "san %d"
  9656. },
  9657. week: {
  9658. dow: 1,
  9659. doy: 4
  9660. }
  9661. })
  9662. }(n(0))
  9663. }, function(e, t, n) {
  9664. ! function(e) {
  9665. "use strict";
  9666. //! moment.js locale configuration
  9667. var t = {
  9668. 1: "১",
  9669. 2: "২",
  9670. 3: "৩",
  9671. 4: "৪",
  9672. 5: "৫",
  9673. 6: "৬",
  9674. 7: "৭",
  9675. 8: "৮",
  9676. 9: "৯",
  9677. 0: "০"
  9678. },
  9679. n = {
  9680. "১": "1",
  9681. "২": "2",
  9682. "৩": "3",
  9683. "৪": "4",
  9684. "৫": "5",
  9685. "৬": "6",
  9686. "৭": "7",
  9687. "৮": "8",
  9688. "৯": "9",
  9689. "০": "0"
  9690. },
  9691. i;
  9692. e.defineLocale("bn", {
  9693. months: "জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর"
  9694. .split("_"),
  9695. monthsShort: "জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে"
  9696. .split("_"),
  9697. weekdays: "রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),
  9698. weekdaysShort: "রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),
  9699. weekdaysMin: "রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),
  9700. longDateFormat: {
  9701. LT: "A h:mm সময়",
  9702. LTS: "A h:mm:ss সময়",
  9703. L: "DD/MM/YYYY",
  9704. LL: "D MMMM YYYY",
  9705. LLL: "D MMMM YYYY, A h:mm সময়",
  9706. LLLL: "dddd, D MMMM YYYY, A h:mm সময়"
  9707. },
  9708. calendar: {
  9709. sameDay: "[আজ] LT",
  9710. nextDay: "[আগামীকাল] LT",
  9711. nextWeek: "dddd, LT",
  9712. lastDay: "[গতকাল] LT",
  9713. lastWeek: "[গত] dddd, LT",
  9714. sameElse: "L"
  9715. },
  9716. relativeTime: {
  9717. future: "%s পরে",
  9718. past: "%s আগে",
  9719. s: "কয়েক সেকেন্ড",
  9720. ss: "%d সেকেন্ড",
  9721. m: "এক মিনিট",
  9722. mm: "%d মিনিট",
  9723. h: "এক ঘন্টা",
  9724. hh: "%d ঘন্টা",
  9725. d: "এক দিন",
  9726. dd: "%d দিন",
  9727. M: "এক মাস",
  9728. MM: "%d মাস",
  9729. y: "এক বছর",
  9730. yy: "%d বছর"
  9731. },
  9732. preparse: function(e) {
  9733. return e.replace(/[১২৩৪৫৬৭৮৯০]/g, function(e) {
  9734. return n[e]
  9735. })
  9736. },
  9737. postformat: function(e) {
  9738. return e.replace(/\d/g, function(e) {
  9739. return t[e]
  9740. })
  9741. },
  9742. meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
  9743. meridiemHour: function(e, t) {
  9744. if (e === 12) e = 0;
  9745. if (t === "রাত" && e >= 4 || t === "দুপুর" && e < 5 || t === "বিকাল")
  9746. return e + 12;
  9747. else return e
  9748. },
  9749. meridiem: function(e, t, n) {
  9750. if (e < 4) return "রাত";
  9751. else if (e < 10) return "সকাল";
  9752. else if (e < 17) return "দুপুর";
  9753. else if (e < 20) return "বিকাল";
  9754. else return "রাত"
  9755. },
  9756. week: {
  9757. dow: 0,
  9758. doy: 6
  9759. }
  9760. })
  9761. }(n(0))
  9762. }, function(e, t, n) {
  9763. ! function(e) {
  9764. "use strict";
  9765. //! moment.js locale configuration
  9766. var t = {
  9767. 1: "১",
  9768. 2: "২",
  9769. 3: "৩",
  9770. 4: "৪",
  9771. 5: "৫",
  9772. 6: "৬",
  9773. 7: "৭",
  9774. 8: "৮",
  9775. 9: "৯",
  9776. 0: "০"
  9777. },
  9778. n = {
  9779. "১": "1",
  9780. "২": "2",
  9781. "৩": "3",
  9782. "৪": "4",
  9783. "৫": "5",
  9784. "৬": "6",
  9785. "৭": "7",
  9786. "৮": "8",
  9787. "৯": "9",
  9788. "০": "0"
  9789. },
  9790. i;
  9791. e.defineLocale("bn-bd", {
  9792. months: "জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর"
  9793. .split("_"),
  9794. monthsShort: "জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে"
  9795. .split("_"),
  9796. weekdays: "রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),
  9797. weekdaysShort: "রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),
  9798. weekdaysMin: "রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),
  9799. longDateFormat: {
  9800. LT: "A h:mm সময়",
  9801. LTS: "A h:mm:ss সময়",
  9802. L: "DD/MM/YYYY",
  9803. LL: "D MMMM YYYY",
  9804. LLL: "D MMMM YYYY, A h:mm সময়",
  9805. LLLL: "dddd, D MMMM YYYY, A h:mm সময়"
  9806. },
  9807. calendar: {
  9808. sameDay: "[আজ] LT",
  9809. nextDay: "[আগামীকাল] LT",
  9810. nextWeek: "dddd, LT",
  9811. lastDay: "[গতকাল] LT",
  9812. lastWeek: "[গত] dddd, LT",
  9813. sameElse: "L"
  9814. },
  9815. relativeTime: {
  9816. future: "%s পরে",
  9817. past: "%s আগে",
  9818. s: "কয়েক সেকেন্ড",
  9819. ss: "%d সেকেন্ড",
  9820. m: "এক মিনিট",
  9821. mm: "%d মিনিট",
  9822. h: "এক ঘন্টা",
  9823. hh: "%d ঘন্টা",
  9824. d: "এক দিন",
  9825. dd: "%d দিন",
  9826. M: "এক মাস",
  9827. MM: "%d মাস",
  9828. y: "এক বছর",
  9829. yy: "%d বছর"
  9830. },
  9831. preparse: function(e) {
  9832. return e.replace(/[১২৩৪৫৬৭৮৯০]/g, function(e) {
  9833. return n[e]
  9834. })
  9835. },
  9836. postformat: function(e) {
  9837. return e.replace(/\d/g, function(e) {
  9838. return t[e]
  9839. })
  9840. },
  9841. meridiemParse: /রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,
  9842. meridiemHour: function(e, t) {
  9843. if (e === 12) e = 0;
  9844. if (t === "রাত") return e < 4 ? e : e + 12;
  9845. else if (t === "ভোর") return e;
  9846. else if (t === "সকাল") return e;
  9847. else if (t === "দুপুর") return e >= 3 ? e : e + 12;
  9848. else if (t === "বিকাল") return e + 12;
  9849. else if (t === "সন্ধ্যা") return e + 12
  9850. },
  9851. meridiem: function(e, t, n) {
  9852. if (e < 4) return "রাত";
  9853. else if (e < 6) return "ভোর";
  9854. else if (e < 12) return "সকাল";
  9855. else if (e < 15) return "দুপুর";
  9856. else if (e < 18) return "বিকাল";
  9857. else if (e < 20) return "সন্ধ্যা";
  9858. else return "রাত"
  9859. },
  9860. week: {
  9861. dow: 0,
  9862. doy: 6
  9863. }
  9864. })
  9865. }(n(0))
  9866. }, function(e, t, n) {
  9867. ! function(e) {
  9868. "use strict";
  9869. //! moment.js locale configuration
  9870. var t = {
  9871. 1: "༡",
  9872. 2: "༢",
  9873. 3: "༣",
  9874. 4: "༤",
  9875. 5: "༥",
  9876. 6: "༦",
  9877. 7: "༧",
  9878. 8: "༨",
  9879. 9: "༩",
  9880. 0: "༠"
  9881. },
  9882. n = {
  9883. "༡": "1",
  9884. "༢": "2",
  9885. "༣": "3",
  9886. "༤": "4",
  9887. "༥": "5",
  9888. "༦": "6",
  9889. "༧": "7",
  9890. "༨": "8",
  9891. "༩": "9",
  9892. "༠": "0"
  9893. },
  9894. i;
  9895. e.defineLocale("bo", {
  9896. months: "ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ"
  9897. .split("_"),
  9898. monthsShort: "ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split(
  9899. "_"),
  9900. monthsShortRegex: /^(ཟླ་\d{1,2})/,
  9901. monthsParseExact: true,
  9902. weekdays: "གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་"
  9903. .split("_"),
  9904. weekdaysShort: "ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),
  9905. weekdaysMin: "ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),
  9906. longDateFormat: {
  9907. LT: "A h:mm",
  9908. LTS: "A h:mm:ss",
  9909. L: "DD/MM/YYYY",
  9910. LL: "D MMMM YYYY",
  9911. LLL: "D MMMM YYYY, A h:mm",
  9912. LLLL: "dddd, D MMMM YYYY, A h:mm"
  9913. },
  9914. calendar: {
  9915. sameDay: "[དི་རིང] LT",
  9916. nextDay: "[སང་ཉིན] LT",
  9917. nextWeek: "[བདུན་ཕྲག་རྗེས་མ], LT",
  9918. lastDay: "[ཁ་སང] LT",
  9919. lastWeek: "[བདུན་ཕྲག་མཐའ་མ] dddd, LT",
  9920. sameElse: "L"
  9921. },
  9922. relativeTime: {
  9923. future: "%s ལ་",
  9924. past: "%s སྔན་ལ",
  9925. s: "ལམ་སང",
  9926. ss: "%d སྐར་ཆ།",
  9927. m: "སྐར་མ་གཅིག",
  9928. mm: "%d སྐར་མ",
  9929. h: "ཆུ་ཚོད་གཅིག",
  9930. hh: "%d ཆུ་ཚོད",
  9931. d: "ཉིན་གཅིག",
  9932. dd: "%d ཉིན་",
  9933. M: "ཟླ་བ་གཅིག",
  9934. MM: "%d ཟླ་བ",
  9935. y: "ལོ་གཅིག",
  9936. yy: "%d ལོ"
  9937. },
  9938. preparse: function(e) {
  9939. return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function(e) {
  9940. return n[e]
  9941. })
  9942. },
  9943. postformat: function(e) {
  9944. return e.replace(/\d/g, function(e) {
  9945. return t[e]
  9946. })
  9947. },
  9948. meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
  9949. meridiemHour: function(e, t) {
  9950. if (e === 12) e = 0;
  9951. if (t === "མཚན་མོ" && e >= 4 || t === "ཉིན་གུང" && e < 5 || t === "དགོང་དག")
  9952. return e + 12;
  9953. else return e
  9954. },
  9955. meridiem: function(e, t, n) {
  9956. if (e < 4) return "མཚན་མོ";
  9957. else if (e < 10) return "ཞོགས་ཀས";
  9958. else if (e < 17) return "ཉིན་གུང";
  9959. else if (e < 20) return "དགོང་དག";
  9960. else return "མཚན་མོ"
  9961. },
  9962. week: {
  9963. dow: 0,
  9964. doy: 6
  9965. }
  9966. })
  9967. }(n(0))
  9968. }, function(e, t, n) {
  9969. ! function(e) {
  9970. "use strict";
  9971. //! moment.js locale configuration
  9972. function t(e, t, n) {
  9973. var i = {
  9974. mm: "munutenn",
  9975. MM: "miz",
  9976. dd: "devezh"
  9977. };
  9978. return e + " " + r(i[n], e)
  9979. }
  9980. function n(e) {
  9981. switch (i(e)) {
  9982. case 1:
  9983. case 3:
  9984. case 4:
  9985. case 5:
  9986. case 9:
  9987. return e + " bloaz";
  9988. default:
  9989. return e + " vloaz"
  9990. }
  9991. }
  9992. function i(e) {
  9993. if (e > 9) return i(e % 10);
  9994. return e
  9995. }
  9996. function r(e, t) {
  9997. if (t === 2) return a(e);
  9998. return e
  9999. }
  10000. function a(e) {
  10001. var t = {
  10002. m: "v",
  10003. b: "v",
  10004. d: "z"
  10005. };
  10006. if (t[e.charAt(0)] === undefined) return e;
  10007. return t[e.charAt(0)] + e.substring(1)
  10008. }
  10009. var s = [/^gen/i, /^c[ʼ\']hwe/i, /^meu/i, /^ebr/i, /^mae/i, /^(mez|eve)/i, /^gou/i, /^eos/i,
  10010. /^gwe/i, /^her/i, /^du/i, /^ker/i
  10011. ],
  10012. o =
  10013. /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
  10014. u = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,
  10015. d = /^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
  10016. l = [/^sul/i, /^lun/i, /^meurzh/i, /^merc[ʼ\']her/i, /^yaou/i, /^gwener/i, /^sadorn/i],
  10017. h = [/^Sul/i, /^Lun/i, /^Meu/i, /^Mer/i, /^Yao/i, /^Gwe/i, /^Sad/i],
  10018. c = [/^Su/i, /^Lu/i, /^Me([^r]|$)/i, /^Mer/i, /^Ya/i, /^Gw/i, /^Sa/i],
  10019. _;
  10020. e.defineLocale("br", {
  10021. months: "Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu"
  10022. .split("_"),
  10023. monthsShort: "Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),
  10024. weekdays: "Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),
  10025. weekdaysShort: "Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),
  10026. weekdaysMin: "Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),
  10027. weekdaysParse: c,
  10028. fullWeekdaysParse: l,
  10029. shortWeekdaysParse: h,
  10030. minWeekdaysParse: c,
  10031. monthsRegex: o,
  10032. monthsShortRegex: o,
  10033. monthsStrictRegex: u,
  10034. monthsShortStrictRegex: d,
  10035. monthsParse: s,
  10036. longMonthsParse: s,
  10037. shortMonthsParse: s,
  10038. longDateFormat: {
  10039. LT: "HH:mm",
  10040. LTS: "HH:mm:ss",
  10041. L: "DD/MM/YYYY",
  10042. LL: "D [a viz] MMMM YYYY",
  10043. LLL: "D [a viz] MMMM YYYY HH:mm",
  10044. LLLL: "dddd, D [a viz] MMMM YYYY HH:mm"
  10045. },
  10046. calendar: {
  10047. sameDay: "[Hiziv da] LT",
  10048. nextDay: "[Warcʼhoazh da] LT",
  10049. nextWeek: "dddd [da] LT",
  10050. lastDay: "[Decʼh da] LT",
  10051. lastWeek: "dddd [paset da] LT",
  10052. sameElse: "L"
  10053. },
  10054. relativeTime: {
  10055. future: "a-benn %s",
  10056. past: "%s ʼzo",
  10057. s: "un nebeud segondennoù",
  10058. ss: "%d eilenn",
  10059. m: "ur vunutenn",
  10060. mm: t,
  10061. h: "un eur",
  10062. hh: "%d eur",
  10063. d: "un devezh",
  10064. dd: t,
  10065. M: "ur miz",
  10066. MM: t,
  10067. y: "ur bloaz",
  10068. yy: n
  10069. },
  10070. dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
  10071. ordinal: function(e) {
  10072. var t = e === 1 ? "añ" : "vet";
  10073. return e + t
  10074. },
  10075. week: {
  10076. dow: 1,
  10077. doy: 4
  10078. },
  10079. meridiemParse: /a.m.|g.m./,
  10080. isPM: function(e) {
  10081. return e === "g.m."
  10082. },
  10083. meridiem: function(e, t, n) {
  10084. return e < 12 ? "a.m." : "g.m."
  10085. }
  10086. })
  10087. }(n(0))
  10088. }, function(e, t, n) {
  10089. ! function(e) {
  10090. "use strict";
  10091. //! moment.js locale configuration
  10092. function t(e, t, n) {
  10093. var i = e + " ";
  10094. switch (n) {
  10095. case "ss":
  10096. if (e === 1) i += "sekunda";
  10097. else if (e === 2 || e === 3 || e === 4) i += "sekunde";
  10098. else i += "sekundi";
  10099. return i;
  10100. case "m":
  10101. return t ? "jedna minuta" : "jedne minute";
  10102. case "mm":
  10103. if (e === 1) i += "minuta";
  10104. else if (e === 2 || e === 3 || e === 4) i += "minute";
  10105. else i += "minuta";
  10106. return i;
  10107. case "h":
  10108. return t ? "jedan sat" : "jednog sata";
  10109. case "hh":
  10110. if (e === 1) i += "sat";
  10111. else if (e === 2 || e === 3 || e === 4) i += "sata";
  10112. else i += "sati";
  10113. return i;
  10114. case "dd":
  10115. if (e === 1) i += "dan";
  10116. else i += "dana";
  10117. return i;
  10118. case "MM":
  10119. if (e === 1) i += "mjesec";
  10120. else if (e === 2 || e === 3 || e === 4) i += "mjeseca";
  10121. else i += "mjeseci";
  10122. return i;
  10123. case "yy":
  10124. if (e === 1) i += "godina";
  10125. else if (e === 2 || e === 3 || e === 4) i += "godine";
  10126. else i += "godina";
  10127. return i
  10128. }
  10129. }
  10130. var n;
  10131. e.defineLocale("bs", {
  10132. months: "januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar"
  10133. .split("_"),
  10134. monthsShort: "jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split(
  10135. "_"),
  10136. monthsParseExact: true,
  10137. weekdays: "nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),
  10138. weekdaysShort: "ned._pon._uto._sri._čet._pet._sub.".split("_"),
  10139. weekdaysMin: "ne_po_ut_sr_če_pe_su".split("_"),
  10140. weekdaysParseExact: true,
  10141. longDateFormat: {
  10142. LT: "H:mm",
  10143. LTS: "H:mm:ss",
  10144. L: "DD.MM.YYYY",
  10145. LL: "D. MMMM YYYY",
  10146. LLL: "D. MMMM YYYY H:mm",
  10147. LLLL: "dddd, D. MMMM YYYY H:mm"
  10148. },
  10149. calendar: {
  10150. sameDay: "[danas u] LT",
  10151. nextDay: "[sutra u] LT",
  10152. nextWeek: function() {
  10153. switch (this.day()) {
  10154. case 0:
  10155. return "[u] [nedjelju] [u] LT";
  10156. case 3:
  10157. return "[u] [srijedu] [u] LT";
  10158. case 6:
  10159. return "[u] [subotu] [u] LT";
  10160. case 1:
  10161. case 2:
  10162. case 4:
  10163. case 5:
  10164. return "[u] dddd [u] LT"
  10165. }
  10166. },
  10167. lastDay: "[jučer u] LT",
  10168. lastWeek: function() {
  10169. switch (this.day()) {
  10170. case 0:
  10171. case 3:
  10172. return "[prošlu] dddd [u] LT";
  10173. case 6:
  10174. return "[prošle] [subote] [u] LT";
  10175. case 1:
  10176. case 2:
  10177. case 4:
  10178. case 5:
  10179. return "[prošli] dddd [u] LT"
  10180. }
  10181. },
  10182. sameElse: "L"
  10183. },
  10184. relativeTime: {
  10185. future: "za %s",
  10186. past: "prije %s",
  10187. s: "par sekundi",
  10188. ss: t,
  10189. m: t,
  10190. mm: t,
  10191. h: t,
  10192. hh: t,
  10193. d: "dan",
  10194. dd: t,
  10195. M: "mjesec",
  10196. MM: t,
  10197. y: "godinu",
  10198. yy: t
  10199. },
  10200. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10201. ordinal: "%d.",
  10202. week: {
  10203. dow: 1,
  10204. doy: 7
  10205. }
  10206. })
  10207. }(n(0))
  10208. }, function(e, t, n) {
  10209. ! function(e) {
  10210. "use strict";
  10211. //! moment.js locale configuration
  10212. var t;
  10213. e.defineLocale("ca", {
  10214. months: {
  10215. standalone: "gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre"
  10216. .split("_"),
  10217. 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"
  10218. .split("_"),
  10219. isFormat: /D[oD]?(\s)+MMMM/
  10220. },
  10221. monthsShort: "gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split(
  10222. "_"),
  10223. monthsParseExact: true,
  10224. weekdays: "diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),
  10225. weekdaysShort: "dg._dl._dt._dc._dj._dv._ds.".split("_"),
  10226. weekdaysMin: "dg_dl_dt_dc_dj_dv_ds".split("_"),
  10227. weekdaysParseExact: true,
  10228. longDateFormat: {
  10229. LT: "H:mm",
  10230. LTS: "H:mm:ss",
  10231. L: "DD/MM/YYYY",
  10232. LL: "D MMMM [de] YYYY",
  10233. ll: "D MMM YYYY",
  10234. LLL: "D MMMM [de] YYYY [a les] H:mm",
  10235. lll: "D MMM YYYY, H:mm",
  10236. LLLL: "dddd D MMMM [de] YYYY [a les] H:mm",
  10237. llll: "ddd D MMM YYYY, H:mm"
  10238. },
  10239. calendar: {
  10240. sameDay: function() {
  10241. return "[avui a " + (this.hours() !== 1 ? "les" : "la") + "] LT"
  10242. },
  10243. nextDay: function() {
  10244. return "[demà a " + (this.hours() !== 1 ? "les" : "la") + "] LT"
  10245. },
  10246. nextWeek: function() {
  10247. return "dddd [a " + (this.hours() !== 1 ? "les" : "la") + "] LT"
  10248. },
  10249. lastDay: function() {
  10250. return "[ahir a " + (this.hours() !== 1 ? "les" : "la") + "] LT"
  10251. },
  10252. lastWeek: function() {
  10253. return "[el] dddd [passat a " + (this.hours() !== 1 ? "les" : "la") +
  10254. "] LT"
  10255. },
  10256. sameElse: "L"
  10257. },
  10258. relativeTime: {
  10259. future: "d'aquí %s",
  10260. past: "fa %s",
  10261. s: "uns segons",
  10262. ss: "%d segons",
  10263. m: "un minut",
  10264. mm: "%d minuts",
  10265. h: "una hora",
  10266. hh: "%d hores",
  10267. d: "un dia",
  10268. dd: "%d dies",
  10269. M: "un mes",
  10270. MM: "%d mesos",
  10271. y: "un any",
  10272. yy: "%d anys"
  10273. },
  10274. dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
  10275. ordinal: function(e, t) {
  10276. var n = e === 1 ? "r" : e === 2 ? "n" : e === 3 ? "r" : e === 4 ? "t" : "è";
  10277. if (t === "w" || t === "W") n = "a";
  10278. return e + n
  10279. },
  10280. week: {
  10281. dow: 1,
  10282. doy: 4
  10283. }
  10284. })
  10285. }(n(0))
  10286. }, function(e, t, n) {
  10287. ! function(e) {
  10288. "use strict";
  10289. //! moment.js locale configuration
  10290. var t = "leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec"
  10291. .split("_"),
  10292. n = "led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),
  10293. i = [/^led/i, /^úno/i, /^bře/i, /^dub/i, /^kvě/i, /^(čvn|červen$|června)/i,
  10294. /^(čvc|červenec|července)/i, /^srp/i, /^zář/i, /^říj/i, /^lis/i, /^pro/i
  10295. ],
  10296. r =
  10297. /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,
  10298. a;
  10299. function s(e) {
  10300. return e > 1 && e < 5 && ~~(e / 10) !== 1
  10301. }
  10302. function o(e, t, n, i) {
  10303. var r = e + " ";
  10304. switch (n) {
  10305. case "s":
  10306. return t || i ? "pár sekund" : "pár sekundami";
  10307. case "ss":
  10308. if (t || i) return r + (s(e) ? "sekundy" : "sekund");
  10309. else return r + "sekundami";
  10310. case "m":
  10311. return t ? "minuta" : i ? "minutu" : "minutou";
  10312. case "mm":
  10313. if (t || i) return r + (s(e) ? "minuty" : "minut");
  10314. else return r + "minutami";
  10315. case "h":
  10316. return t ? "hodina" : i ? "hodinu" : "hodinou";
  10317. case "hh":
  10318. if (t || i) return r + (s(e) ? "hodiny" : "hodin");
  10319. else return r + "hodinami";
  10320. case "d":
  10321. return t || i ? "den" : "dnem";
  10322. case "dd":
  10323. if (t || i) return r + (s(e) ? "dny" : "dní");
  10324. else return r + "dny";
  10325. case "M":
  10326. return t || i ? "měsíc" : "měsícem";
  10327. case "MM":
  10328. if (t || i) return r + (s(e) ? "měsíce" : "měsíců");
  10329. else return r + "měsíci";
  10330. case "y":
  10331. return t || i ? "rok" : "rokem";
  10332. case "yy":
  10333. if (t || i) return r + (s(e) ? "roky" : "let");
  10334. else return r + "lety"
  10335. }
  10336. }
  10337. e.defineLocale("cs", {
  10338. months: t,
  10339. monthsShort: n,
  10340. monthsRegex: r,
  10341. monthsShortRegex: r,
  10342. monthsStrictRegex: /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,
  10343. monthsShortStrictRegex: /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,
  10344. monthsParse: i,
  10345. longMonthsParse: i,
  10346. shortMonthsParse: i,
  10347. weekdays: "neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),
  10348. weekdaysShort: "ne_po_út_st_čt_pá_so".split("_"),
  10349. weekdaysMin: "ne_po_út_st_čt_pá_so".split("_"),
  10350. longDateFormat: {
  10351. LT: "H:mm",
  10352. LTS: "H:mm:ss",
  10353. L: "DD.MM.YYYY",
  10354. LL: "D. MMMM YYYY",
  10355. LLL: "D. MMMM YYYY H:mm",
  10356. LLLL: "dddd D. MMMM YYYY H:mm",
  10357. l: "D. M. YYYY"
  10358. },
  10359. calendar: {
  10360. sameDay: "[dnes v] LT",
  10361. nextDay: "[zítra v] LT",
  10362. nextWeek: function() {
  10363. switch (this.day()) {
  10364. case 0:
  10365. return "[v neděli v] LT";
  10366. case 1:
  10367. case 2:
  10368. return "[v] dddd [v] LT";
  10369. case 3:
  10370. return "[ve středu v] LT";
  10371. case 4:
  10372. return "[ve čtvrtek v] LT";
  10373. case 5:
  10374. return "[v pátek v] LT";
  10375. case 6:
  10376. return "[v sobotu v] LT"
  10377. }
  10378. },
  10379. lastDay: "[včera v] LT",
  10380. lastWeek: function() {
  10381. switch (this.day()) {
  10382. case 0:
  10383. return "[minulou neděli v] LT";
  10384. case 1:
  10385. case 2:
  10386. return "[minulé] dddd [v] LT";
  10387. case 3:
  10388. return "[minulou středu v] LT";
  10389. case 4:
  10390. case 5:
  10391. return "[minulý] dddd [v] LT";
  10392. case 6:
  10393. return "[minulou sobotu v] LT"
  10394. }
  10395. },
  10396. sameElse: "L"
  10397. },
  10398. relativeTime: {
  10399. future: "za %s",
  10400. past: "před %s",
  10401. s: o,
  10402. ss: o,
  10403. m: o,
  10404. mm: o,
  10405. h: o,
  10406. hh: o,
  10407. d: o,
  10408. dd: o,
  10409. M: o,
  10410. MM: o,
  10411. y: o,
  10412. yy: o
  10413. },
  10414. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10415. ordinal: "%d.",
  10416. week: {
  10417. dow: 1,
  10418. doy: 4
  10419. }
  10420. })
  10421. }(n(0))
  10422. }, function(e, t, n) {
  10423. ! function(e) {
  10424. "use strict";
  10425. //! moment.js locale configuration
  10426. var t;
  10427. e.defineLocale("cv", {
  10428. months: "кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),
  10429. monthsShort: "кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),
  10430. weekdays: "вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split(
  10431. "_"),
  10432. weekdaysShort: "выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),
  10433. weekdaysMin: "вр_тн_ыт_юн_кҫ_эр_шм".split("_"),
  10434. longDateFormat: {
  10435. LT: "HH:mm",
  10436. LTS: "HH:mm:ss",
  10437. L: "DD-MM-YYYY",
  10438. LL: "YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",
  10439. LLL: "YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",
  10440. LLLL: "dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"
  10441. },
  10442. calendar: {
  10443. sameDay: "[Паян] LT [сехетре]",
  10444. nextDay: "[Ыран] LT [сехетре]",
  10445. lastDay: "[Ӗнер] LT [сехетре]",
  10446. nextWeek: "[Ҫитес] dddd LT [сехетре]",
  10447. lastWeek: "[Иртнӗ] dddd LT [сехетре]",
  10448. sameElse: "L"
  10449. },
  10450. relativeTime: {
  10451. future: function(e) {
  10452. var t = /сехет$/i.exec(e) ? "рен" : /ҫул$/i.exec(e) ? "тан" : "ран";
  10453. return e + t
  10454. },
  10455. past: "%s каялла",
  10456. s: "пӗр-ик ҫеккунт",
  10457. ss: "%d ҫеккунт",
  10458. m: "пӗр минут",
  10459. mm: "%d минут",
  10460. h: "пӗр сехет",
  10461. hh: "%d сехет",
  10462. d: "пӗр кун",
  10463. dd: "%d кун",
  10464. M: "пӗр уйӑх",
  10465. MM: "%d уйӑх",
  10466. y: "пӗр ҫул",
  10467. yy: "%d ҫул"
  10468. },
  10469. dayOfMonthOrdinalParse: /\d{1,2}-мӗш/,
  10470. ordinal: "%d-мӗш",
  10471. week: {
  10472. dow: 1,
  10473. doy: 7
  10474. }
  10475. })
  10476. }(n(0))
  10477. }, function(e, t, n) {
  10478. ! function(e) {
  10479. "use strict";
  10480. //! moment.js locale configuration
  10481. var t;
  10482. e.defineLocale("cy", {
  10483. months: "Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr"
  10484. .split("_"),
  10485. monthsShort: "Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),
  10486. weekdays: "Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn"
  10487. .split("_"),
  10488. weekdaysShort: "Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),
  10489. weekdaysMin: "Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),
  10490. weekdaysParseExact: true,
  10491. longDateFormat: {
  10492. LT: "HH:mm",
  10493. LTS: "HH:mm:ss",
  10494. L: "DD/MM/YYYY",
  10495. LL: "D MMMM YYYY",
  10496. LLL: "D MMMM YYYY HH:mm",
  10497. LLLL: "dddd, D MMMM YYYY HH:mm"
  10498. },
  10499. calendar: {
  10500. sameDay: "[Heddiw am] LT",
  10501. nextDay: "[Yfory am] LT",
  10502. nextWeek: "dddd [am] LT",
  10503. lastDay: "[Ddoe am] LT",
  10504. lastWeek: "dddd [diwethaf am] LT",
  10505. sameElse: "L"
  10506. },
  10507. relativeTime: {
  10508. future: "mewn %s",
  10509. past: "%s yn ôl",
  10510. s: "ychydig eiliadau",
  10511. ss: "%d eiliad",
  10512. m: "munud",
  10513. mm: "%d munud",
  10514. h: "awr",
  10515. hh: "%d awr",
  10516. d: "diwrnod",
  10517. dd: "%d diwrnod",
  10518. M: "mis",
  10519. MM: "%d mis",
  10520. y: "blwyddyn",
  10521. yy: "%d flynedd"
  10522. },
  10523. dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
  10524. ordinal: function(e) {
  10525. var t = e,
  10526. n = "",
  10527. i = ["", "af", "il", "ydd", "ydd", "ed", "ed", "ed", "fed", "fed",
  10528. "fed", "eg", "fed", "eg", "eg", "fed", "eg", "eg", "fed", "eg",
  10529. "fed"
  10530. ];
  10531. if (t > 20)
  10532. if (t === 40 || t === 50 || t === 60 || t === 80 || t === 100) n =
  10533. "fed";
  10534. else n = "ain";
  10535. else if (t > 0) n = i[t];
  10536. return e + n
  10537. },
  10538. week: {
  10539. dow: 1,
  10540. doy: 4
  10541. }
  10542. })
  10543. }(n(0))
  10544. }, function(e, t, n) {
  10545. ! function(e) {
  10546. "use strict";
  10547. //! moment.js locale configuration
  10548. var t;
  10549. e.defineLocale("da", {
  10550. months: "januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december"
  10551. .split("_"),
  10552. monthsShort: "jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),
  10553. weekdays: "søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),
  10554. weekdaysShort: "søn_man_tir_ons_tor_fre_lør".split("_"),
  10555. weekdaysMin: "sø_ma_ti_on_to_fr_lø".split("_"),
  10556. longDateFormat: {
  10557. LT: "HH:mm",
  10558. LTS: "HH:mm:ss",
  10559. L: "DD.MM.YYYY",
  10560. LL: "D. MMMM YYYY",
  10561. LLL: "D. MMMM YYYY HH:mm",
  10562. LLLL: "dddd [d.] D. MMMM YYYY [kl.] HH:mm"
  10563. },
  10564. calendar: {
  10565. sameDay: "[i dag kl.] LT",
  10566. nextDay: "[i morgen kl.] LT",
  10567. nextWeek: "på dddd [kl.] LT",
  10568. lastDay: "[i går kl.] LT",
  10569. lastWeek: "[i] dddd[s kl.] LT",
  10570. sameElse: "L"
  10571. },
  10572. relativeTime: {
  10573. future: "om %s",
  10574. past: "%s siden",
  10575. s: "få sekunder",
  10576. ss: "%d sekunder",
  10577. m: "et minut",
  10578. mm: "%d minutter",
  10579. h: "en time",
  10580. hh: "%d timer",
  10581. d: "en dag",
  10582. dd: "%d dage",
  10583. M: "en måned",
  10584. MM: "%d måneder",
  10585. y: "et år",
  10586. yy: "%d år"
  10587. },
  10588. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10589. ordinal: "%d.",
  10590. week: {
  10591. dow: 1,
  10592. doy: 4
  10593. }
  10594. })
  10595. }(n(0))
  10596. }, function(e, t, n) {
  10597. ! function(e) {
  10598. "use strict";
  10599. //! moment.js locale configuration
  10600. function t(e, t, n, i) {
  10601. var r = {
  10602. m: ["eine Minute", "einer Minute"],
  10603. h: ["eine Stunde", "einer Stunde"],
  10604. d: ["ein Tag", "einem Tag"],
  10605. dd: [e + " Tage", e + " Tagen"],
  10606. w: ["eine Woche", "einer Woche"],
  10607. M: ["ein Monat", "einem Monat"],
  10608. MM: [e + " Monate", e + " Monaten"],
  10609. y: ["ein Jahr", "einem Jahr"],
  10610. yy: [e + " Jahre", e + " Jahren"]
  10611. };
  10612. return t ? r[n][0] : r[n][1]
  10613. }
  10614. var n;
  10615. e.defineLocale("de", {
  10616. months: "Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember"
  10617. .split("_"),
  10618. monthsShort: "Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split(
  10619. "_"),
  10620. monthsParseExact: true,
  10621. weekdays: "Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),
  10622. weekdaysShort: "So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),
  10623. weekdaysMin: "So_Mo_Di_Mi_Do_Fr_Sa".split("_"),
  10624. weekdaysParseExact: true,
  10625. longDateFormat: {
  10626. LT: "HH:mm",
  10627. LTS: "HH:mm:ss",
  10628. L: "DD.MM.YYYY",
  10629. LL: "D. MMMM YYYY",
  10630. LLL: "D. MMMM YYYY HH:mm",
  10631. LLLL: "dddd, D. MMMM YYYY HH:mm"
  10632. },
  10633. calendar: {
  10634. sameDay: "[heute um] LT [Uhr]",
  10635. sameElse: "L",
  10636. nextDay: "[morgen um] LT [Uhr]",
  10637. nextWeek: "dddd [um] LT [Uhr]",
  10638. lastDay: "[gestern um] LT [Uhr]",
  10639. lastWeek: "[letzten] dddd [um] LT [Uhr]"
  10640. },
  10641. relativeTime: {
  10642. future: "in %s",
  10643. past: "vor %s",
  10644. s: "ein paar Sekunden",
  10645. ss: "%d Sekunden",
  10646. m: t,
  10647. mm: "%d Minuten",
  10648. h: t,
  10649. hh: "%d Stunden",
  10650. d: t,
  10651. dd: t,
  10652. w: t,
  10653. ww: "%d Wochen",
  10654. M: t,
  10655. MM: t,
  10656. y: t,
  10657. yy: t
  10658. },
  10659. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10660. ordinal: "%d.",
  10661. week: {
  10662. dow: 1,
  10663. doy: 4
  10664. }
  10665. })
  10666. }(n(0))
  10667. }, function(e, t, n) {
  10668. ! function(e) {
  10669. "use strict";
  10670. //! moment.js locale configuration
  10671. function t(e, t, n, i) {
  10672. var r = {
  10673. m: ["eine Minute", "einer Minute"],
  10674. h: ["eine Stunde", "einer Stunde"],
  10675. d: ["ein Tag", "einem Tag"],
  10676. dd: [e + " Tage", e + " Tagen"],
  10677. w: ["eine Woche", "einer Woche"],
  10678. M: ["ein Monat", "einem Monat"],
  10679. MM: [e + " Monate", e + " Monaten"],
  10680. y: ["ein Jahr", "einem Jahr"],
  10681. yy: [e + " Jahre", e + " Jahren"]
  10682. };
  10683. return t ? r[n][0] : r[n][1]
  10684. }
  10685. var n;
  10686. e.defineLocale("de-at", {
  10687. months: "Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember"
  10688. .split("_"),
  10689. monthsShort: "Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split(
  10690. "_"),
  10691. monthsParseExact: true,
  10692. weekdays: "Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),
  10693. weekdaysShort: "So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),
  10694. weekdaysMin: "So_Mo_Di_Mi_Do_Fr_Sa".split("_"),
  10695. weekdaysParseExact: true,
  10696. longDateFormat: {
  10697. LT: "HH:mm",
  10698. LTS: "HH:mm:ss",
  10699. L: "DD.MM.YYYY",
  10700. LL: "D. MMMM YYYY",
  10701. LLL: "D. MMMM YYYY HH:mm",
  10702. LLLL: "dddd, D. MMMM YYYY HH:mm"
  10703. },
  10704. calendar: {
  10705. sameDay: "[heute um] LT [Uhr]",
  10706. sameElse: "L",
  10707. nextDay: "[morgen um] LT [Uhr]",
  10708. nextWeek: "dddd [um] LT [Uhr]",
  10709. lastDay: "[gestern um] LT [Uhr]",
  10710. lastWeek: "[letzten] dddd [um] LT [Uhr]"
  10711. },
  10712. relativeTime: {
  10713. future: "in %s",
  10714. past: "vor %s",
  10715. s: "ein paar Sekunden",
  10716. ss: "%d Sekunden",
  10717. m: t,
  10718. mm: "%d Minuten",
  10719. h: t,
  10720. hh: "%d Stunden",
  10721. d: t,
  10722. dd: t,
  10723. w: t,
  10724. ww: "%d Wochen",
  10725. M: t,
  10726. MM: t,
  10727. y: t,
  10728. yy: t
  10729. },
  10730. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10731. ordinal: "%d.",
  10732. week: {
  10733. dow: 1,
  10734. doy: 4
  10735. }
  10736. })
  10737. }(n(0))
  10738. }, function(e, t, n) {
  10739. ! function(e) {
  10740. "use strict";
  10741. //! moment.js locale configuration
  10742. function t(e, t, n, i) {
  10743. var r = {
  10744. m: ["eine Minute", "einer Minute"],
  10745. h: ["eine Stunde", "einer Stunde"],
  10746. d: ["ein Tag", "einem Tag"],
  10747. dd: [e + " Tage", e + " Tagen"],
  10748. w: ["eine Woche", "einer Woche"],
  10749. M: ["ein Monat", "einem Monat"],
  10750. MM: [e + " Monate", e + " Monaten"],
  10751. y: ["ein Jahr", "einem Jahr"],
  10752. yy: [e + " Jahre", e + " Jahren"]
  10753. };
  10754. return t ? r[n][0] : r[n][1]
  10755. }
  10756. var n;
  10757. e.defineLocale("de-ch", {
  10758. months: "Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember"
  10759. .split("_"),
  10760. monthsShort: "Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split(
  10761. "_"),
  10762. monthsParseExact: true,
  10763. weekdays: "Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),
  10764. weekdaysShort: "So_Mo_Di_Mi_Do_Fr_Sa".split("_"),
  10765. weekdaysMin: "So_Mo_Di_Mi_Do_Fr_Sa".split("_"),
  10766. weekdaysParseExact: true,
  10767. longDateFormat: {
  10768. LT: "HH:mm",
  10769. LTS: "HH:mm:ss",
  10770. L: "DD.MM.YYYY",
  10771. LL: "D. MMMM YYYY",
  10772. LLL: "D. MMMM YYYY HH:mm",
  10773. LLLL: "dddd, D. MMMM YYYY HH:mm"
  10774. },
  10775. calendar: {
  10776. sameDay: "[heute um] LT [Uhr]",
  10777. sameElse: "L",
  10778. nextDay: "[morgen um] LT [Uhr]",
  10779. nextWeek: "dddd [um] LT [Uhr]",
  10780. lastDay: "[gestern um] LT [Uhr]",
  10781. lastWeek: "[letzten] dddd [um] LT [Uhr]"
  10782. },
  10783. relativeTime: {
  10784. future: "in %s",
  10785. past: "vor %s",
  10786. s: "ein paar Sekunden",
  10787. ss: "%d Sekunden",
  10788. m: t,
  10789. mm: "%d Minuten",
  10790. h: t,
  10791. hh: "%d Stunden",
  10792. d: t,
  10793. dd: t,
  10794. w: t,
  10795. ww: "%d Wochen",
  10796. M: t,
  10797. MM: t,
  10798. y: t,
  10799. yy: t
  10800. },
  10801. dayOfMonthOrdinalParse: /\d{1,2}\./,
  10802. ordinal: "%d.",
  10803. week: {
  10804. dow: 1,
  10805. doy: 4
  10806. }
  10807. })
  10808. }(n(0))
  10809. }, function(e, t, n) {
  10810. ! function(e) {
  10811. "use strict";
  10812. //! moment.js locale configuration
  10813. var t = ["ޖެނުއަރީ", "ފެބްރުއަރީ", "މާރިޗު", "އޭޕްރީލު", "މޭ", "ޖޫން", "ޖުލައި", "އޯގަސްޓު",
  10814. "ސެޕްޓެމްބަރު", "އޮކްޓޯބަރު", "ނޮވެމްބަރު", "ޑިސެމްބަރު"
  10815. ],
  10816. n = ["އާދިއްތަ", "ހޯމަ", "އަންގާރަ", "ބުދަ", "ބުރާސްފަތި", "ހުކުރު", "ހޮނިހިރު"],
  10817. i;
  10818. e.defineLocale("dv", {
  10819. months: t,
  10820. monthsShort: t,
  10821. weekdays: n,
  10822. weekdaysShort: n,
  10823. weekdaysMin: "އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),
  10824. longDateFormat: {
  10825. LT: "HH:mm",
  10826. LTS: "HH:mm:ss",
  10827. L: "D/M/YYYY",
  10828. LL: "D MMMM YYYY",
  10829. LLL: "D MMMM YYYY HH:mm",
  10830. LLLL: "dddd D MMMM YYYY HH:mm"
  10831. },
  10832. meridiemParse: /މކ|މފ/,
  10833. isPM: function(e) {
  10834. return "މފ" === e
  10835. },
  10836. meridiem: function(e, t, n) {
  10837. if (e < 12) return "މކ";
  10838. else return "މފ"
  10839. },
  10840. calendar: {
  10841. sameDay: "[މިއަދު] LT",
  10842. nextDay: "[މާދަމާ] LT",
  10843. nextWeek: "dddd LT",
  10844. lastDay: "[އިއްޔެ] LT",
  10845. lastWeek: "[ފާއިތުވި] dddd LT",
  10846. sameElse: "L"
  10847. },
  10848. relativeTime: {
  10849. future: "ތެރޭގައި %s",
  10850. past: "ކުރިން %s",
  10851. s: "ސިކުންތުކޮޅެއް",
  10852. ss: "d% ސިކުންތު",
  10853. m: "މިނިޓެއް",
  10854. mm: "މިނިޓު %d",
  10855. h: "ގަޑިއިރެއް",
  10856. hh: "ގަޑިއިރު %d",
  10857. d: "ދުވަހެއް",
  10858. dd: "ދުވަސް %d",
  10859. M: "މަހެއް",
  10860. MM: "މަސް %d",
  10861. y: "އަހަރެއް",
  10862. yy: "އަހަރު %d"
  10863. },
  10864. preparse: function(e) {
  10865. return e.replace(/،/g, ",")
  10866. },
  10867. postformat: function(e) {
  10868. return e.replace(/,/g, "،")
  10869. },
  10870. week: {
  10871. dow: 7,
  10872. doy: 12
  10873. }
  10874. })
  10875. }(n(0))
  10876. }, function(e, t, n) {
  10877. ! function(e) {
  10878. "use strict";
  10879. //! moment.js locale configuration
  10880. function r(e) {
  10881. return typeof Function !== "undefined" && e instanceof Function || Object.prototype.toString
  10882. .call(e) === "[object Function]"
  10883. }
  10884. var t;
  10885. e.defineLocale("el", {
  10886. monthsNominativeEl: "Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος"
  10887. .split("_"),
  10888. monthsGenitiveEl: "Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου"
  10889. .split("_"),
  10890. months: function(e, t) {
  10891. if (!e) return this._monthsNominativeEl;
  10892. else if (typeof t === "string" && /D/.test(t.substring(0, t.indexOf(
  10893. "MMMM")))) return this._monthsGenitiveEl[e.month()];
  10894. else return this._monthsNominativeEl[e.month()]
  10895. },
  10896. monthsShort: "Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),
  10897. weekdays: "Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),
  10898. weekdaysShort: "Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),
  10899. weekdaysMin: "Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),
  10900. meridiem: function(e, t, n) {
  10901. if (e > 11) return n ? "μμ" : "ΜΜ";
  10902. else return n ? "πμ" : "ΠΜ"
  10903. },
  10904. isPM: function(e) {
  10905. return (e + "").toLowerCase()[0] === "μ"
  10906. },
  10907. meridiemParse: /[ΠΜ]\.?Μ?\.?/i,
  10908. longDateFormat: {
  10909. LT: "h:mm A",
  10910. LTS: "h:mm:ss A",
  10911. L: "DD/MM/YYYY",
  10912. LL: "D MMMM YYYY",
  10913. LLL: "D MMMM YYYY h:mm A",
  10914. LLLL: "dddd, D MMMM YYYY h:mm A"
  10915. },
  10916. calendarEl: {
  10917. sameDay: "[Σήμερα {}] LT",
  10918. nextDay: "[Αύριο {}] LT",
  10919. nextWeek: "dddd [{}] LT",
  10920. lastDay: "[Χθες {}] LT",
  10921. lastWeek: function() {
  10922. switch (this.day()) {
  10923. case 6:
  10924. return "[το προηγούμενο] dddd [{}] LT";
  10925. default:
  10926. return "[την προηγούμενη] dddd [{}] LT"
  10927. }
  10928. },
  10929. sameElse: "L"
  10930. },
  10931. calendar: function(e, t) {
  10932. var n = this._calendarEl[e],
  10933. i = t && t.hours();
  10934. if (r(n)) n = n.apply(t);
  10935. return n.replace("{}", i % 12 === 1 ? "στη" : "στις")
  10936. },
  10937. relativeTime: {
  10938. future: "σε %s",
  10939. past: "%s πριν",
  10940. s: "λίγα δευτερόλεπτα",
  10941. ss: "%d δευτερόλεπτα",
  10942. m: "ένα λεπτό",
  10943. mm: "%d λεπτά",
  10944. h: "μία ώρα",
  10945. hh: "%d ώρες",
  10946. d: "μία μέρα",
  10947. dd: "%d μέρες",
  10948. M: "ένας μήνας",
  10949. MM: "%d μήνες",
  10950. y: "ένας χρόνος",
  10951. yy: "%d χρόνια"
  10952. },
  10953. dayOfMonthOrdinalParse: /\d{1,2}η/,
  10954. ordinal: "%dη",
  10955. week: {
  10956. dow: 1,
  10957. doy: 4
  10958. }
  10959. })
  10960. }(n(0))
  10961. }, function(e, t, n) {
  10962. ! function(e) {
  10963. "use strict";
  10964. //! moment.js locale configuration
  10965. var t;
  10966. e.defineLocale("en-au", {
  10967. months: "January_February_March_April_May_June_July_August_September_October_November_December"
  10968. .split("_"),
  10969. monthsShort: "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),
  10970. weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
  10971. weekdaysShort: "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),
  10972. weekdaysMin: "Su_Mo_Tu_We_Th_Fr_Sa".split("_"),
  10973. longDateFormat: {
  10974. LT: "h:mm A",
  10975. LTS: "h:mm:ss A",
  10976. L: "DD/MM/YYYY",
  10977. LL: "D MMMM YYYY",
  10978. LLL: "D MMMM YYYY h:mm A",
  10979. LLLL: "dddd, D MMMM YYYY h:mm A"
  10980. },
  10981. calendar: {
  10982. sameDay: "[Today at] LT",
  10983. nextDay: "[Tomorrow at] LT",
  10984. nextWeek: "dddd [at] LT",
  10985. lastDay: "[Yesterday at] LT",
  10986. lastWeek: "[Last] dddd [at] LT",
  10987. sameElse: "L"
  10988. },
  10989. relativeTime: {
  10990. future: "in %s",
  10991. past: "%s ago",
  10992. s: "a few seconds",
  10993. ss: "%d seconds",
  10994. m: "a minute",
  10995. mm: "%d minutes",
  10996. h: "an hour",
  10997. hh: "%d hours",
  10998. d: "a day",
  10999. dd: "%d days",
  11000. M: "a month",
  11001. MM: "%d months",
  11002. y: "a year",
  11003. yy: "%d years"
  11004. },
  11005. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  11006. ordinal: function(e) {
  11007. var t = e % 10,
  11008. n = ~~(e % 100 / 10) === 1 ? "th" : t === 1 ? "st" : t === 2 ? "nd" :
  11009. t === 3 ? "rd" : "th";
  11010. return e + n
  11011. },
  11012. week: {
  11013. dow: 0,
  11014. doy: 4
  11015. }
  11016. })
  11017. }(n(0))
  11018. }, function(e, t, n) {
  11019. ! function(e) {
  11020. "use strict";
  11021. //! moment.js locale configuration
  11022. var t;
  11023. e.defineLocale("en-ca", {
  11024. months: "January_February_March_April_May_June_July_August_September_October_November_December"
  11025. .split("_"),
  11026. monthsShort: "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),
  11027. weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
  11028. weekdaysShort: "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),
  11029. weekdaysMin: "Su_Mo_Tu_We_Th_Fr_Sa".split("_"),
  11030. longDateFormat: {
  11031. LT: "h:mm A",
  11032. LTS: "h:mm:ss A",
  11033. L: "YYYY-MM-DD",
  11034. LL: "MMMM D, YYYY",
  11035. LLL: "MMMM D, YYYY h:mm A",
  11036. LLLL: "dddd, MMMM D, YYYY h:mm A"
  11037. },
  11038. calendar: {
  11039. sameDay: "[Today at] LT",
  11040. nextDay: "[Tomorrow at] LT",
  11041. nextWeek: "dddd [at] LT",
  11042. lastDay: "[Yesterday at] LT",
  11043. lastWeek: "[Last] dddd [at] LT",
  11044. sameElse: "L"
  11045. },
  11046. relativeTime: {
  11047. future: "in %s",
  11048. past: "%s ago",
  11049. s: "a few seconds",
  11050. ss: "%d seconds",
  11051. m: "a minute",
  11052. mm: "%d minutes",
  11053. h: "an hour",
  11054. hh: "%d hours",
  11055. d: "a day",
  11056. dd: "%d days",
  11057. M: "a month",
  11058. MM: "%d months",
  11059. y: "a year",
  11060. yy: "%d years"
  11061. },
  11062. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  11063. ordinal: function(e) {
  11064. var t = e % 10,
  11065. n = ~~(e % 100 / 10) === 1 ? "th" : t === 1 ? "st" : t === 2 ? "nd" :
  11066. t === 3 ? "rd" : "th";
  11067. return e + n
  11068. }
  11069. })
  11070. }(n(0))
  11071. }, function(e, t, n) {
  11072. ! function(e) {
  11073. "use strict";
  11074. //! moment.js locale configuration
  11075. var t;
  11076. e.defineLocale("en-gb", {
  11077. months: "January_February_March_April_May_June_July_August_September_October_November_December"
  11078. .split("_"),
  11079. monthsShort: "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),
  11080. weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
  11081. weekdaysShort: "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),
  11082. weekdaysMin: "Su_Mo_Tu_We_Th_Fr_Sa".split("_"),
  11083. longDateFormat: {
  11084. LT: "HH:mm",
  11085. LTS: "HH:mm:ss",
  11086. L: "DD/MM/YYYY",
  11087. LL: "D MMMM YYYY",
  11088. LLL: "D MMMM YYYY HH:mm",
  11089. LLLL: "dddd, D MMMM YYYY HH:mm"
  11090. },
  11091. calendar: {
  11092. sameDay: "[Today at] LT",
  11093. nextDay: "[Tomorrow at] LT",
  11094. nextWeek: "dddd [at] LT",
  11095. lastDay: "[Yesterday at] LT",
  11096. lastWeek: "[Last] dddd [at] LT",
  11097. sameElse: "L"
  11098. },
  11099. relativeTime: {
  11100. future: "in %s",
  11101. past: "%s ago",
  11102. s: "a few seconds",
  11103. ss: "%d seconds",
  11104. m: "a minute",
  11105. mm: "%d minutes",
  11106. h: "an hour",
  11107. hh: "%d hours",
  11108. d: "a day",
  11109. dd: "%d days",
  11110. M: "a month",
  11111. MM: "%d months",
  11112. y: "a year",
  11113. yy: "%d years"
  11114. },
  11115. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  11116. ordinal: function(e) {
  11117. var t = e % 10,
  11118. n = ~~(e % 100 / 10) === 1 ? "th" : t === 1 ? "st" : t === 2 ? "nd" :
  11119. t === 3 ? "rd" : "th";
  11120. return e + n
  11121. },
  11122. week: {
  11123. dow: 1,
  11124. doy: 4
  11125. }
  11126. })
  11127. }(n(0))
  11128. }, function(e, t, n) {
  11129. ! function(e) {
  11130. "use strict";
  11131. //! moment.js locale configuration
  11132. var t;
  11133. e.defineLocale("en-ie", {
  11134. months: "January_February_March_April_May_June_July_August_September_October_November_December"
  11135. .split("_"),
  11136. monthsShort: "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),
  11137. weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
  11138. weekdaysShort: "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),
  11139. weekdaysMin: "Su_Mo_Tu_We_Th_Fr_Sa".split("_"),
  11140. longDateFormat: {
  11141. LT: "HH:mm",
  11142. LTS: "HH:mm:ss",
  11143. L: "DD/MM/YYYY",
  11144. LL: "D MMMM YYYY",
  11145. LLL: "D MMMM YYYY HH:mm",
  11146. LLLL: "dddd D MMMM YYYY HH:mm"
  11147. },
  11148. calendar: {
  11149. sameDay: "[Today at] LT",
  11150. nextDay: "[Tomorrow at] LT",
  11151. nextWeek: "dddd [at] LT",
  11152. lastDay: "[Yesterday at] LT",
  11153. lastWeek: "[Last] dddd [at] LT",
  11154. sameElse: "L"
  11155. },
  11156. relativeTime: {
  11157. future: "in %s",
  11158. past: "%s ago",
  11159. s: "a few seconds",
  11160. ss: "%d seconds",
  11161. m: "a minute",
  11162. mm: "%d minutes",
  11163. h: "an hour",
  11164. hh: "%d hours",
  11165. d: "a day",
  11166. dd: "%d days",
  11167. M: "a month",
  11168. MM: "%d months",
  11169. y: "a year",
  11170. yy: "%d years"
  11171. },
  11172. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  11173. ordinal: function(e) {
  11174. var t = e % 10,
  11175. n = ~~(e % 100 / 10) === 1 ? "th" : t === 1 ? "st" : t === 2 ? "nd" :
  11176. t === 3 ? "rd" : "th";
  11177. return e + n
  11178. },
  11179. week: {
  11180. dow: 1,
  11181. doy: 4
  11182. }
  11183. })
  11184. }(n(0))
  11185. }, function(e, t, n) {
  11186. ! function(e) {
  11187. "use strict";
  11188. //! moment.js locale configuration
  11189. var t;
  11190. e.defineLocale("en-il", {
  11191. months: "January_February_March_April_May_June_July_August_September_October_November_December"
  11192. .split("_"),
  11193. monthsShort: "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),
  11194. weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
  11195. weekdaysShort: "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),
  11196. weekdaysMin: "Su_Mo_Tu_We_Th_Fr_Sa".split("_"),
  11197. longDateFormat: {
  11198. LT: "HH:mm",
  11199. LTS: "HH:mm:ss",
  11200. L: "DD/MM/YYYY",
  11201. LL: "D MMMM YYYY",
  11202. LLL: "D MMMM YYYY HH:mm",
  11203. LLLL: "dddd, D MMMM YYYY HH:mm"
  11204. },
  11205. calendar: {
  11206. sameDay: "[Today at] LT",
  11207. nextDay: "[Tomorrow at] LT",
  11208. nextWeek: "dddd [at] LT",
  11209. lastDay: "[Yesterday at] LT",
  11210. lastWeek: "[Last] dddd [at] LT",
  11211. sameElse: "L"
  11212. },
  11213. relativeTime: {
  11214. future: "in %s",
  11215. past: "%s ago",
  11216. s: "a few seconds",
  11217. ss: "%d seconds",
  11218. m: "a minute",
  11219. mm: "%d minutes",
  11220. h: "an hour",
  11221. hh: "%d hours",
  11222. d: "a day",
  11223. dd: "%d days",
  11224. M: "a month",
  11225. MM: "%d months",
  11226. y: "a year",
  11227. yy: "%d years"
  11228. },
  11229. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  11230. ordinal: function(e) {
  11231. var t = e % 10,
  11232. n = ~~(e % 100 / 10) === 1 ? "th" : t === 1 ? "st" : t === 2 ? "nd" :
  11233. t === 3 ? "rd" : "th";
  11234. return e + n
  11235. }
  11236. })
  11237. }(n(0))
  11238. }, function(e, t, n) {
  11239. ! function(e) {
  11240. "use strict";
  11241. //! moment.js locale configuration
  11242. var t;
  11243. e.defineLocale("en-in", {
  11244. months: "January_February_March_April_May_June_July_August_September_October_November_December"
  11245. .split("_"),
  11246. monthsShort: "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),
  11247. weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
  11248. weekdaysShort: "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),
  11249. weekdaysMin: "Su_Mo_Tu_We_Th_Fr_Sa".split("_"),
  11250. longDateFormat: {
  11251. LT: "h:mm A",
  11252. LTS: "h:mm:ss A",
  11253. L: "DD/MM/YYYY",
  11254. LL: "D MMMM YYYY",
  11255. LLL: "D MMMM YYYY h:mm A",
  11256. LLLL: "dddd, D MMMM YYYY h:mm A"
  11257. },
  11258. calendar: {
  11259. sameDay: "[Today at] LT",
  11260. nextDay: "[Tomorrow at] LT",
  11261. nextWeek: "dddd [at] LT",
  11262. lastDay: "[Yesterday at] LT",
  11263. lastWeek: "[Last] dddd [at] LT",
  11264. sameElse: "L"
  11265. },
  11266. relativeTime: {
  11267. future: "in %s",
  11268. past: "%s ago",
  11269. s: "a few seconds",
  11270. ss: "%d seconds",
  11271. m: "a minute",
  11272. mm: "%d minutes",
  11273. h: "an hour",
  11274. hh: "%d hours",
  11275. d: "a day",
  11276. dd: "%d days",
  11277. M: "a month",
  11278. MM: "%d months",
  11279. y: "a year",
  11280. yy: "%d years"
  11281. },
  11282. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  11283. ordinal: function(e) {
  11284. var t = e % 10,
  11285. n = ~~(e % 100 / 10) === 1 ? "th" : t === 1 ? "st" : t === 2 ? "nd" :
  11286. t === 3 ? "rd" : "th";
  11287. return e + n
  11288. },
  11289. week: {
  11290. dow: 0,
  11291. doy: 6
  11292. }
  11293. })
  11294. }(n(0))
  11295. }, function(e, t, n) {
  11296. ! function(e) {
  11297. "use strict";
  11298. //! moment.js locale configuration
  11299. var t;
  11300. e.defineLocale("en-nz", {
  11301. months: "January_February_March_April_May_June_July_August_September_October_November_December"
  11302. .split("_"),
  11303. monthsShort: "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),
  11304. weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
  11305. weekdaysShort: "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),
  11306. weekdaysMin: "Su_Mo_Tu_We_Th_Fr_Sa".split("_"),
  11307. longDateFormat: {
  11308. LT: "h:mm A",
  11309. LTS: "h:mm:ss A",
  11310. L: "DD/MM/YYYY",
  11311. LL: "D MMMM YYYY",
  11312. LLL: "D MMMM YYYY h:mm A",
  11313. LLLL: "dddd, D MMMM YYYY h:mm A"
  11314. },
  11315. calendar: {
  11316. sameDay: "[Today at] LT",
  11317. nextDay: "[Tomorrow at] LT",
  11318. nextWeek: "dddd [at] LT",
  11319. lastDay: "[Yesterday at] LT",
  11320. lastWeek: "[Last] dddd [at] LT",
  11321. sameElse: "L"
  11322. },
  11323. relativeTime: {
  11324. future: "in %s",
  11325. past: "%s ago",
  11326. s: "a few seconds",
  11327. ss: "%d seconds",
  11328. m: "a minute",
  11329. mm: "%d minutes",
  11330. h: "an hour",
  11331. hh: "%d hours",
  11332. d: "a day",
  11333. dd: "%d days",
  11334. M: "a month",
  11335. MM: "%d months",
  11336. y: "a year",
  11337. yy: "%d years"
  11338. },
  11339. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  11340. ordinal: function(e) {
  11341. var t = e % 10,
  11342. n = ~~(e % 100 / 10) === 1 ? "th" : t === 1 ? "st" : t === 2 ? "nd" :
  11343. t === 3 ? "rd" : "th";
  11344. return e + n
  11345. },
  11346. week: {
  11347. dow: 1,
  11348. doy: 4
  11349. }
  11350. })
  11351. }(n(0))
  11352. }, function(e, t, n) {
  11353. ! function(e) {
  11354. "use strict";
  11355. //! moment.js locale configuration
  11356. var t;
  11357. e.defineLocale("en-sg", {
  11358. months: "January_February_March_April_May_June_July_August_September_October_November_December"
  11359. .split("_"),
  11360. monthsShort: "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),
  11361. weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
  11362. weekdaysShort: "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),
  11363. weekdaysMin: "Su_Mo_Tu_We_Th_Fr_Sa".split("_"),
  11364. longDateFormat: {
  11365. LT: "HH:mm",
  11366. LTS: "HH:mm:ss",
  11367. L: "DD/MM/YYYY",
  11368. LL: "D MMMM YYYY",
  11369. LLL: "D MMMM YYYY HH:mm",
  11370. LLLL: "dddd, D MMMM YYYY HH:mm"
  11371. },
  11372. calendar: {
  11373. sameDay: "[Today at] LT",
  11374. nextDay: "[Tomorrow at] LT",
  11375. nextWeek: "dddd [at] LT",
  11376. lastDay: "[Yesterday at] LT",
  11377. lastWeek: "[Last] dddd [at] LT",
  11378. sameElse: "L"
  11379. },
  11380. relativeTime: {
  11381. future: "in %s",
  11382. past: "%s ago",
  11383. s: "a few seconds",
  11384. ss: "%d seconds",
  11385. m: "a minute",
  11386. mm: "%d minutes",
  11387. h: "an hour",
  11388. hh: "%d hours",
  11389. d: "a day",
  11390. dd: "%d days",
  11391. M: "a month",
  11392. MM: "%d months",
  11393. y: "a year",
  11394. yy: "%d years"
  11395. },
  11396. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  11397. ordinal: function(e) {
  11398. var t = e % 10,
  11399. n = ~~(e % 100 / 10) === 1 ? "th" : t === 1 ? "st" : t === 2 ? "nd" :
  11400. t === 3 ? "rd" : "th";
  11401. return e + n
  11402. },
  11403. week: {
  11404. dow: 1,
  11405. doy: 4
  11406. }
  11407. })
  11408. }(n(0))
  11409. }, function(e, t, n) {
  11410. ! function(e) {
  11411. "use strict";
  11412. //! moment.js locale configuration
  11413. var t;
  11414. e.defineLocale("eo", {
  11415. months: "januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro"
  11416. .split("_"),
  11417. monthsShort: "jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),
  11418. weekdays: "dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),
  11419. weekdaysShort: "dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),
  11420. weekdaysMin: "di_lu_ma_me_ĵa_ve_sa".split("_"),
  11421. longDateFormat: {
  11422. LT: "HH:mm",
  11423. LTS: "HH:mm:ss",
  11424. L: "YYYY-MM-DD",
  11425. LL: "[la] D[-an de] MMMM, YYYY",
  11426. LLL: "[la] D[-an de] MMMM, YYYY HH:mm",
  11427. LLLL: "dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",
  11428. llll: "ddd, [la] D[-an de] MMM, YYYY HH:mm"
  11429. },
  11430. meridiemParse: /[ap]\.t\.m/i,
  11431. isPM: function(e) {
  11432. return e.charAt(0).toLowerCase() === "p"
  11433. },
  11434. meridiem: function(e, t, n) {
  11435. if (e > 11) return n ? "p.t.m." : "P.T.M.";
  11436. else return n ? "a.t.m." : "A.T.M."
  11437. },
  11438. calendar: {
  11439. sameDay: "[Hodiaŭ je] LT",
  11440. nextDay: "[Morgaŭ je] LT",
  11441. nextWeek: "dddd[n je] LT",
  11442. lastDay: "[Hieraŭ je] LT",
  11443. lastWeek: "[pasintan] dddd[n je] LT",
  11444. sameElse: "L"
  11445. },
  11446. relativeTime: {
  11447. future: "post %s",
  11448. past: "antaŭ %s",
  11449. s: "kelkaj sekundoj",
  11450. ss: "%d sekundoj",
  11451. m: "unu minuto",
  11452. mm: "%d minutoj",
  11453. h: "unu horo",
  11454. hh: "%d horoj",
  11455. d: "unu tago",
  11456. dd: "%d tagoj",
  11457. M: "unu monato",
  11458. MM: "%d monatoj",
  11459. y: "unu jaro",
  11460. yy: "%d jaroj"
  11461. },
  11462. dayOfMonthOrdinalParse: /\d{1,2}a/,
  11463. ordinal: "%da",
  11464. week: {
  11465. dow: 1,
  11466. doy: 7
  11467. }
  11468. })
  11469. }(n(0))
  11470. }, function(e, t, n) {
  11471. ! function(e) {
  11472. "use strict";
  11473. //! moment.js locale configuration
  11474. var n = "ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),
  11475. i = "ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),
  11476. t = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i,
  11477. /^oct/i, /^nov/i, /^dic/i
  11478. ],
  11479. r =
  11480. /^(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,
  11481. a;
  11482. e.defineLocale("es", {
  11483. months: "enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre"
  11484. .split("_"),
  11485. monthsShort: function(e, t) {
  11486. if (!e) return n;
  11487. else if (/-MMM-/.test(t)) return i[e.month()];
  11488. else return n[e.month()]
  11489. },
  11490. monthsRegex: r,
  11491. monthsShortRegex: r,
  11492. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  11493. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  11494. monthsParse: t,
  11495. longMonthsParse: t,
  11496. shortMonthsParse: t,
  11497. weekdays: "domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),
  11498. weekdaysShort: "dom._lun._mar._mié._jue._vie._sáb.".split("_"),
  11499. weekdaysMin: "do_lu_ma_mi_ju_vi_sá".split("_"),
  11500. weekdaysParseExact: true,
  11501. longDateFormat: {
  11502. LT: "H:mm",
  11503. LTS: "H:mm:ss",
  11504. L: "DD/MM/YYYY",
  11505. LL: "D [de] MMMM [de] YYYY",
  11506. LLL: "D [de] MMMM [de] YYYY H:mm",
  11507. LLLL: "dddd, D [de] MMMM [de] YYYY H:mm"
  11508. },
  11509. calendar: {
  11510. sameDay: function() {
  11511. return "[hoy a la" + (this.hours() !== 1 ? "s" : "") + "] LT"
  11512. },
  11513. nextDay: function() {
  11514. return "[mañana a la" + (this.hours() !== 1 ? "s" : "") + "] LT"
  11515. },
  11516. nextWeek: function() {
  11517. return "dddd [a la" + (this.hours() !== 1 ? "s" : "") + "] LT"
  11518. },
  11519. lastDay: function() {
  11520. return "[ayer a la" + (this.hours() !== 1 ? "s" : "") + "] LT"
  11521. },
  11522. lastWeek: function() {
  11523. return "[el] dddd [pasado a la" + (this.hours() !== 1 ? "s" : "") +
  11524. "] LT"
  11525. },
  11526. sameElse: "L"
  11527. },
  11528. relativeTime: {
  11529. future: "en %s",
  11530. past: "hace %s",
  11531. s: "unos segundos",
  11532. ss: "%d segundos",
  11533. m: "un minuto",
  11534. mm: "%d minutos",
  11535. h: "una hora",
  11536. hh: "%d horas",
  11537. d: "un día",
  11538. dd: "%d días",
  11539. w: "una semana",
  11540. ww: "%d semanas",
  11541. M: "un mes",
  11542. MM: "%d meses",
  11543. y: "un año",
  11544. yy: "%d años"
  11545. },
  11546. dayOfMonthOrdinalParse: /\d{1,2}º/,
  11547. ordinal: "%dº",
  11548. week: {
  11549. dow: 1,
  11550. doy: 4
  11551. },
  11552. invalidDate: "Fecha inválida"
  11553. })
  11554. }(n(0))
  11555. }, function(e, t, n) {
  11556. ! function(e) {
  11557. "use strict";
  11558. //! moment.js locale configuration
  11559. var n = "ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),
  11560. i = "ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),
  11561. t = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i,
  11562. /^oct/i, /^nov/i, /^dic/i
  11563. ],
  11564. r =
  11565. /^(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,
  11566. a;
  11567. e.defineLocale("es-do", {
  11568. months: "enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre"
  11569. .split("_"),
  11570. monthsShort: function(e, t) {
  11571. if (!e) return n;
  11572. else if (/-MMM-/.test(t)) return i[e.month()];
  11573. else return n[e.month()]
  11574. },
  11575. monthsRegex: r,
  11576. monthsShortRegex: r,
  11577. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  11578. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  11579. monthsParse: t,
  11580. longMonthsParse: t,
  11581. shortMonthsParse: t,
  11582. weekdays: "domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),
  11583. weekdaysShort: "dom._lun._mar._mié._jue._vie._sáb.".split("_"),
  11584. weekdaysMin: "do_lu_ma_mi_ju_vi_sá".split("_"),
  11585. weekdaysParseExact: true,
  11586. longDateFormat: {
  11587. LT: "h:mm A",
  11588. LTS: "h:mm:ss A",
  11589. L: "DD/MM/YYYY",
  11590. LL: "D [de] MMMM [de] YYYY",
  11591. LLL: "D [de] MMMM [de] YYYY h:mm A",
  11592. LLLL: "dddd, D [de] MMMM [de] YYYY h:mm A"
  11593. },
  11594. calendar: {
  11595. sameDay: function() {
  11596. return "[hoy a la" + (this.hours() !== 1 ? "s" : "") + "] LT"
  11597. },
  11598. nextDay: function() {
  11599. return "[mañana a la" + (this.hours() !== 1 ? "s" : "") + "] LT"
  11600. },
  11601. nextWeek: function() {
  11602. return "dddd [a la" + (this.hours() !== 1 ? "s" : "") + "] LT"
  11603. },
  11604. lastDay: function() {
  11605. return "[ayer a la" + (this.hours() !== 1 ? "s" : "") + "] LT"
  11606. },
  11607. lastWeek: function() {
  11608. return "[el] dddd [pasado a la" + (this.hours() !== 1 ? "s" : "") +
  11609. "] LT"
  11610. },
  11611. sameElse: "L"
  11612. },
  11613. relativeTime: {
  11614. future: "en %s",
  11615. past: "hace %s",
  11616. s: "unos segundos",
  11617. ss: "%d segundos",
  11618. m: "un minuto",
  11619. mm: "%d minutos",
  11620. h: "una hora",
  11621. hh: "%d horas",
  11622. d: "un día",
  11623. dd: "%d días",
  11624. w: "una semana",
  11625. ww: "%d semanas",
  11626. M: "un mes",
  11627. MM: "%d meses",
  11628. y: "un año",
  11629. yy: "%d años"
  11630. },
  11631. dayOfMonthOrdinalParse: /\d{1,2}º/,
  11632. ordinal: "%dº",
  11633. week: {
  11634. dow: 1,
  11635. doy: 4
  11636. }
  11637. })
  11638. }(n(0))
  11639. }, function(e, t, n) {
  11640. ! function(e) {
  11641. "use strict";
  11642. //! moment.js locale configuration
  11643. var n = "ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),
  11644. i = "ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),
  11645. t = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i,
  11646. /^oct/i, /^nov/i, /^dic/i
  11647. ],
  11648. r =
  11649. /^(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,
  11650. a;
  11651. e.defineLocale("es-mx", {
  11652. months: "enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre"
  11653. .split("_"),
  11654. monthsShort: function(e, t) {
  11655. if (!e) return n;
  11656. else if (/-MMM-/.test(t)) return i[e.month()];
  11657. else return n[e.month()]
  11658. },
  11659. monthsRegex: r,
  11660. monthsShortRegex: r,
  11661. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  11662. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  11663. monthsParse: t,
  11664. longMonthsParse: t,
  11665. shortMonthsParse: t,
  11666. weekdays: "domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),
  11667. weekdaysShort: "dom._lun._mar._mié._jue._vie._sáb.".split("_"),
  11668. weekdaysMin: "do_lu_ma_mi_ju_vi_sá".split("_"),
  11669. weekdaysParseExact: true,
  11670. longDateFormat: {
  11671. LT: "H:mm",
  11672. LTS: "H:mm:ss",
  11673. L: "DD/MM/YYYY",
  11674. LL: "D [de] MMMM [de] YYYY",
  11675. LLL: "D [de] MMMM [de] YYYY H:mm",
  11676. LLLL: "dddd, D [de] MMMM [de] YYYY H:mm"
  11677. },
  11678. calendar: {
  11679. sameDay: function() {
  11680. return "[hoy a la" + (this.hours() !== 1 ? "s" : "") + "] LT"
  11681. },
  11682. nextDay: function() {
  11683. return "[mañana a la" + (this.hours() !== 1 ? "s" : "") + "] LT"
  11684. },
  11685. nextWeek: function() {
  11686. return "dddd [a la" + (this.hours() !== 1 ? "s" : "") + "] LT"
  11687. },
  11688. lastDay: function() {
  11689. return "[ayer a la" + (this.hours() !== 1 ? "s" : "") + "] LT"
  11690. },
  11691. lastWeek: function() {
  11692. return "[el] dddd [pasado a la" + (this.hours() !== 1 ? "s" : "") +
  11693. "] LT"
  11694. },
  11695. sameElse: "L"
  11696. },
  11697. relativeTime: {
  11698. future: "en %s",
  11699. past: "hace %s",
  11700. s: "unos segundos",
  11701. ss: "%d segundos",
  11702. m: "un minuto",
  11703. mm: "%d minutos",
  11704. h: "una hora",
  11705. hh: "%d horas",
  11706. d: "un día",
  11707. dd: "%d días",
  11708. w: "una semana",
  11709. ww: "%d semanas",
  11710. M: "un mes",
  11711. MM: "%d meses",
  11712. y: "un año",
  11713. yy: "%d años"
  11714. },
  11715. dayOfMonthOrdinalParse: /\d{1,2}º/,
  11716. ordinal: "%dº",
  11717. week: {
  11718. dow: 0,
  11719. doy: 4
  11720. },
  11721. invalidDate: "Fecha inválida"
  11722. })
  11723. }(n(0))
  11724. }, function(e, t, n) {
  11725. ! function(e) {
  11726. "use strict";
  11727. //! moment.js locale configuration
  11728. var n = "ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),
  11729. i = "ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),
  11730. t = [/^ene/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i,
  11731. /^oct/i, /^nov/i, /^dic/i
  11732. ],
  11733. r =
  11734. /^(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,
  11735. a;
  11736. e.defineLocale("es-us", {
  11737. months: "enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre"
  11738. .split("_"),
  11739. monthsShort: function(e, t) {
  11740. if (!e) return n;
  11741. else if (/-MMM-/.test(t)) return i[e.month()];
  11742. else return n[e.month()]
  11743. },
  11744. monthsRegex: r,
  11745. monthsShortRegex: r,
  11746. monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,
  11747. monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,
  11748. monthsParse: t,
  11749. longMonthsParse: t,
  11750. shortMonthsParse: t,
  11751. weekdays: "domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),
  11752. weekdaysShort: "dom._lun._mar._mié._jue._vie._sáb.".split("_"),
  11753. weekdaysMin: "do_lu_ma_mi_ju_vi_sá".split("_"),
  11754. weekdaysParseExact: true,
  11755. longDateFormat: {
  11756. LT: "h:mm A",
  11757. LTS: "h:mm:ss A",
  11758. L: "MM/DD/YYYY",
  11759. LL: "D [de] MMMM [de] YYYY",
  11760. LLL: "D [de] MMMM [de] YYYY h:mm A",
  11761. LLLL: "dddd, D [de] MMMM [de] YYYY h:mm A"
  11762. },
  11763. calendar: {
  11764. sameDay: function() {
  11765. return "[hoy a la" + (this.hours() !== 1 ? "s" : "") + "] LT"
  11766. },
  11767. nextDay: function() {
  11768. return "[mañana a la" + (this.hours() !== 1 ? "s" : "") + "] LT"
  11769. },
  11770. nextWeek: function() {
  11771. return "dddd [a la" + (this.hours() !== 1 ? "s" : "") + "] LT"
  11772. },
  11773. lastDay: function() {
  11774. return "[ayer a la" + (this.hours() !== 1 ? "s" : "") + "] LT"
  11775. },
  11776. lastWeek: function() {
  11777. return "[el] dddd [pasado a la" + (this.hours() !== 1 ? "s" : "") +
  11778. "] LT"
  11779. },
  11780. sameElse: "L"
  11781. },
  11782. relativeTime: {
  11783. future: "en %s",
  11784. past: "hace %s",
  11785. s: "unos segundos",
  11786. ss: "%d segundos",
  11787. m: "un minuto",
  11788. mm: "%d minutos",
  11789. h: "una hora",
  11790. hh: "%d horas",
  11791. d: "un día",
  11792. dd: "%d días",
  11793. w: "una semana",
  11794. ww: "%d semanas",
  11795. M: "un mes",
  11796. MM: "%d meses",
  11797. y: "un año",
  11798. yy: "%d años"
  11799. },
  11800. dayOfMonthOrdinalParse: /\d{1,2}º/,
  11801. ordinal: "%dº",
  11802. week: {
  11803. dow: 0,
  11804. doy: 6
  11805. }
  11806. })
  11807. }(n(0))
  11808. }, function(e, t, n) {
  11809. ! function(e) {
  11810. "use strict";
  11811. //! moment.js locale configuration
  11812. function t(e, t, n, i) {
  11813. var r = {
  11814. s: ["mõne sekundi", "mõni sekund", "paar sekundit"],
  11815. ss: [e + "sekundi", e + "sekundit"],
  11816. m: ["ühe minuti", "üks minut"],
  11817. mm: [e + " minuti", e + " minutit"],
  11818. h: ["ühe tunni", "tund aega", "üks tund"],
  11819. hh: [e + " tunni", e + " tundi"],
  11820. d: ["ühe päeva", "üks päev"],
  11821. M: ["kuu aja", "kuu aega", "üks kuu"],
  11822. MM: [e + " kuu", e + " kuud"],
  11823. y: ["ühe aasta", "aasta", "üks aasta"],
  11824. yy: [e + " aasta", e + " aastat"]
  11825. };
  11826. if (t) return r[n][2] ? r[n][2] : r[n][1];
  11827. return i ? r[n][0] : r[n][1]
  11828. }
  11829. var n;
  11830. e.defineLocale("et", {
  11831. months: "jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember"
  11832. .split("_"),
  11833. monthsShort: "jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split(
  11834. "_"),
  11835. weekdays: "pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split(
  11836. "_"),
  11837. weekdaysShort: "P_E_T_K_N_R_L".split("_"),
  11838. weekdaysMin: "P_E_T_K_N_R_L".split("_"),
  11839. longDateFormat: {
  11840. LT: "H:mm",
  11841. LTS: "H:mm:ss",
  11842. L: "DD.MM.YYYY",
  11843. LL: "D. MMMM YYYY",
  11844. LLL: "D. MMMM YYYY H:mm",
  11845. LLLL: "dddd, D. MMMM YYYY H:mm"
  11846. },
  11847. calendar: {
  11848. sameDay: "[Täna,] LT",
  11849. nextDay: "[Homme,] LT",
  11850. nextWeek: "[Järgmine] dddd LT",
  11851. lastDay: "[Eile,] LT",
  11852. lastWeek: "[Eelmine] dddd LT",
  11853. sameElse: "L"
  11854. },
  11855. relativeTime: {
  11856. future: "%s pärast",
  11857. past: "%s tagasi",
  11858. s: t,
  11859. ss: t,
  11860. m: t,
  11861. mm: t,
  11862. h: t,
  11863. hh: t,
  11864. d: t,
  11865. dd: "%d päeva",
  11866. M: t,
  11867. MM: t,
  11868. y: t,
  11869. yy: t
  11870. },
  11871. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11872. ordinal: "%d.",
  11873. week: {
  11874. dow: 1,
  11875. doy: 4
  11876. }
  11877. })
  11878. }(n(0))
  11879. }, function(e, t, n) {
  11880. ! function(e) {
  11881. "use strict";
  11882. //! moment.js locale configuration
  11883. var t;
  11884. e.defineLocale("eu", {
  11885. months: "urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua"
  11886. .split("_"),
  11887. monthsShort: "urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split(
  11888. "_"),
  11889. monthsParseExact: true,
  11890. weekdays: "igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata"
  11891. .split("_"),
  11892. weekdaysShort: "ig._al._ar._az._og._ol._lr.".split("_"),
  11893. weekdaysMin: "ig_al_ar_az_og_ol_lr".split("_"),
  11894. weekdaysParseExact: true,
  11895. longDateFormat: {
  11896. LT: "HH:mm",
  11897. LTS: "HH:mm:ss",
  11898. L: "YYYY-MM-DD",
  11899. LL: "YYYY[ko] MMMM[ren] D[a]",
  11900. LLL: "YYYY[ko] MMMM[ren] D[a] HH:mm",
  11901. LLLL: "dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",
  11902. l: "YYYY-M-D",
  11903. ll: "YYYY[ko] MMM D[a]",
  11904. lll: "YYYY[ko] MMM D[a] HH:mm",
  11905. llll: "ddd, YYYY[ko] MMM D[a] HH:mm"
  11906. },
  11907. calendar: {
  11908. sameDay: "[gaur] LT[etan]",
  11909. nextDay: "[bihar] LT[etan]",
  11910. nextWeek: "dddd LT[etan]",
  11911. lastDay: "[atzo] LT[etan]",
  11912. lastWeek: "[aurreko] dddd LT[etan]",
  11913. sameElse: "L"
  11914. },
  11915. relativeTime: {
  11916. future: "%s barru",
  11917. past: "duela %s",
  11918. s: "segundo batzuk",
  11919. ss: "%d segundo",
  11920. m: "minutu bat",
  11921. mm: "%d minutu",
  11922. h: "ordu bat",
  11923. hh: "%d ordu",
  11924. d: "egun bat",
  11925. dd: "%d egun",
  11926. M: "hilabete bat",
  11927. MM: "%d hilabete",
  11928. y: "urte bat",
  11929. yy: "%d urte"
  11930. },
  11931. dayOfMonthOrdinalParse: /\d{1,2}\./,
  11932. ordinal: "%d.",
  11933. week: {
  11934. dow: 1,
  11935. doy: 7
  11936. }
  11937. })
  11938. }(n(0))
  11939. }, function(e, t, n) {
  11940. ! function(e) {
  11941. "use strict";
  11942. //! moment.js locale configuration
  11943. var t = {
  11944. 1: "۱",
  11945. 2: "۲",
  11946. 3: "۳",
  11947. 4: "۴",
  11948. 5: "۵",
  11949. 6: "۶",
  11950. 7: "۷",
  11951. 8: "۸",
  11952. 9: "۹",
  11953. 0: "۰"
  11954. },
  11955. n = {
  11956. "۱": "1",
  11957. "۲": "2",
  11958. "۳": "3",
  11959. "۴": "4",
  11960. "۵": "5",
  11961. "۶": "6",
  11962. "۷": "7",
  11963. "۸": "8",
  11964. "۹": "9",
  11965. "۰": "0"
  11966. },
  11967. i;
  11968. e.defineLocale("fa", {
  11969. months: "ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر"
  11970. .split("_"),
  11971. monthsShort: "ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر"
  11972. .split("_"),
  11973. weekdays: "یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),
  11974. weekdaysShort: "یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),
  11975. weekdaysMin: "ی_د_س_چ_پ_ج_ش".split("_"),
  11976. weekdaysParseExact: true,
  11977. longDateFormat: {
  11978. LT: "HH:mm",
  11979. LTS: "HH:mm:ss",
  11980. L: "DD/MM/YYYY",
  11981. LL: "D MMMM YYYY",
  11982. LLL: "D MMMM YYYY HH:mm",
  11983. LLLL: "dddd, D MMMM YYYY HH:mm"
  11984. },
  11985. meridiemParse: /قبل از ظهر|بعد از ظهر/,
  11986. isPM: function(e) {
  11987. return /بعد از ظهر/.test(e)
  11988. },
  11989. meridiem: function(e, t, n) {
  11990. if (e < 12) return "قبل از ظهر";
  11991. else return "بعد از ظهر"
  11992. },
  11993. calendar: {
  11994. sameDay: "[امروز ساعت] LT",
  11995. nextDay: "[فردا ساعت] LT",
  11996. nextWeek: "dddd [ساعت] LT",
  11997. lastDay: "[دیروز ساعت] LT",
  11998. lastWeek: "dddd [پیش] [ساعت] LT",
  11999. sameElse: "L"
  12000. },
  12001. relativeTime: {
  12002. future: "در %s",
  12003. past: "%s پیش",
  12004. s: "چند ثانیه",
  12005. ss: "%d ثانیه",
  12006. m: "یک دقیقه",
  12007. mm: "%d دقیقه",
  12008. h: "یک ساعت",
  12009. hh: "%d ساعت",
  12010. d: "یک روز",
  12011. dd: "%d روز",
  12012. M: "یک ماه",
  12013. MM: "%d ماه",
  12014. y: "یک سال",
  12015. yy: "%d سال"
  12016. },
  12017. preparse: function(e) {
  12018. return e.replace(/[۰-۹]/g, function(e) {
  12019. return n[e]
  12020. }).replace(/،/g, ",")
  12021. },
  12022. postformat: function(e) {
  12023. return e.replace(/\d/g, function(e) {
  12024. return t[e]
  12025. }).replace(/,/g, "،")
  12026. },
  12027. dayOfMonthOrdinalParse: /\d{1,2}م/,
  12028. ordinal: "%dم",
  12029. week: {
  12030. dow: 6,
  12031. doy: 12
  12032. }
  12033. })
  12034. }(n(0))
  12035. }, function(e, t, n) {
  12036. ! function(e) {
  12037. "use strict";
  12038. //! moment.js locale configuration
  12039. var n = "nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),
  12040. i = ["nolla", "yhden", "kahden", "kolmen", "neljän", "viiden", "kuuden", n[7], n[8], n[9]],
  12041. t;
  12042. function r(e, t, n, i) {
  12043. var r = "";
  12044. switch (n) {
  12045. case "s":
  12046. return i ? "muutaman sekunnin" : "muutama sekunti";
  12047. case "ss":
  12048. r = i ? "sekunnin" : "sekuntia";
  12049. break;
  12050. case "m":
  12051. return i ? "minuutin" : "minuutti";
  12052. case "mm":
  12053. r = i ? "minuutin" : "minuuttia";
  12054. break;
  12055. case "h":
  12056. return i ? "tunnin" : "tunti";
  12057. case "hh":
  12058. r = i ? "tunnin" : "tuntia";
  12059. break;
  12060. case "d":
  12061. return i ? "päivän" : "päivä";
  12062. case "dd":
  12063. r = i ? "päivän" : "päivää";
  12064. break;
  12065. case "M":
  12066. return i ? "kuukauden" : "kuukausi";
  12067. case "MM":
  12068. r = i ? "kuukauden" : "kuukautta";
  12069. break;
  12070. case "y":
  12071. return i ? "vuoden" : "vuosi";
  12072. case "yy":
  12073. r = i ? "vuoden" : "vuotta";
  12074. break
  12075. }
  12076. r = a(e, i) + " " + r;
  12077. return r
  12078. }
  12079. function a(e, t) {
  12080. return e < 10 ? t ? i[e] : n[e] : e
  12081. }
  12082. e.defineLocale("fi", {
  12083. months: "tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu"
  12084. .split("_"),
  12085. monthsShort: "tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu"
  12086. .split("_"),
  12087. weekdays: "sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai"
  12088. .split("_"),
  12089. weekdaysShort: "su_ma_ti_ke_to_pe_la".split("_"),
  12090. weekdaysMin: "su_ma_ti_ke_to_pe_la".split("_"),
  12091. longDateFormat: {
  12092. LT: "HH.mm",
  12093. LTS: "HH.mm.ss",
  12094. L: "DD.MM.YYYY",
  12095. LL: "Do MMMM[ta] YYYY",
  12096. LLL: "Do MMMM[ta] YYYY, [klo] HH.mm",
  12097. LLLL: "dddd, Do MMMM[ta] YYYY, [klo] HH.mm",
  12098. l: "D.M.YYYY",
  12099. ll: "Do MMM YYYY",
  12100. lll: "Do MMM YYYY, [klo] HH.mm",
  12101. llll: "ddd, Do MMM YYYY, [klo] HH.mm"
  12102. },
  12103. calendar: {
  12104. sameDay: "[tänään] [klo] LT",
  12105. nextDay: "[huomenna] [klo] LT",
  12106. nextWeek: "dddd [klo] LT",
  12107. lastDay: "[eilen] [klo] LT",
  12108. lastWeek: "[viime] dddd[na] [klo] LT",
  12109. sameElse: "L"
  12110. },
  12111. relativeTime: {
  12112. future: "%s päästä",
  12113. past: "%s sitten",
  12114. s: r,
  12115. ss: r,
  12116. m: r,
  12117. mm: r,
  12118. h: r,
  12119. hh: r,
  12120. d: r,
  12121. dd: r,
  12122. M: r,
  12123. MM: r,
  12124. y: r,
  12125. yy: r
  12126. },
  12127. dayOfMonthOrdinalParse: /\d{1,2}\./,
  12128. ordinal: "%d.",
  12129. week: {
  12130. dow: 1,
  12131. doy: 4
  12132. }
  12133. })
  12134. }(n(0))
  12135. }, function(e, t, n) {
  12136. ! function(e) {
  12137. "use strict";
  12138. //! moment.js locale configuration
  12139. var t;
  12140. e.defineLocale("fil", {
  12141. months: "Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre"
  12142. .split("_"),
  12143. monthsShort: "Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),
  12144. weekdays: "Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),
  12145. weekdaysShort: "Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),
  12146. weekdaysMin: "Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),
  12147. longDateFormat: {
  12148. LT: "HH:mm",
  12149. LTS: "HH:mm:ss",
  12150. L: "MM/D/YYYY",
  12151. LL: "MMMM D, YYYY",
  12152. LLL: "MMMM D, YYYY HH:mm",
  12153. LLLL: "dddd, MMMM DD, YYYY HH:mm"
  12154. },
  12155. calendar: {
  12156. sameDay: "LT [ngayong araw]",
  12157. nextDay: "[Bukas ng] LT",
  12158. nextWeek: "LT [sa susunod na] dddd",
  12159. lastDay: "LT [kahapon]",
  12160. lastWeek: "LT [noong nakaraang] dddd",
  12161. sameElse: "L"
  12162. },
  12163. relativeTime: {
  12164. future: "sa loob ng %s",
  12165. past: "%s ang nakalipas",
  12166. s: "ilang segundo",
  12167. ss: "%d segundo",
  12168. m: "isang minuto",
  12169. mm: "%d minuto",
  12170. h: "isang oras",
  12171. hh: "%d oras",
  12172. d: "isang araw",
  12173. dd: "%d araw",
  12174. M: "isang buwan",
  12175. MM: "%d buwan",
  12176. y: "isang taon",
  12177. yy: "%d taon"
  12178. },
  12179. dayOfMonthOrdinalParse: /\d{1,2}/,
  12180. ordinal: function(e) {
  12181. return e
  12182. },
  12183. week: {
  12184. dow: 1,
  12185. doy: 4
  12186. }
  12187. })
  12188. }(n(0))
  12189. }, function(e, t, n) {
  12190. ! function(e) {
  12191. "use strict";
  12192. //! moment.js locale configuration
  12193. var t;
  12194. e.defineLocale("fo", {
  12195. months: "januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember"
  12196. .split("_"),
  12197. monthsShort: "jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),
  12198. weekdays: "sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur"
  12199. .split("_"),
  12200. weekdaysShort: "sun_mán_týs_mik_hós_frí_ley".split("_"),
  12201. weekdaysMin: "su_má_tý_mi_hó_fr_le".split("_"),
  12202. longDateFormat: {
  12203. LT: "HH:mm",
  12204. LTS: "HH:mm:ss",
  12205. L: "DD/MM/YYYY",
  12206. LL: "D MMMM YYYY",
  12207. LLL: "D MMMM YYYY HH:mm",
  12208. LLLL: "dddd D. MMMM, YYYY HH:mm"
  12209. },
  12210. calendar: {
  12211. sameDay: "[Í dag kl.] LT",
  12212. nextDay: "[Í morgin kl.] LT",
  12213. nextWeek: "dddd [kl.] LT",
  12214. lastDay: "[Í gjár kl.] LT",
  12215. lastWeek: "[síðstu] dddd [kl] LT",
  12216. sameElse: "L"
  12217. },
  12218. relativeTime: {
  12219. future: "um %s",
  12220. past: "%s síðani",
  12221. s: "fá sekund",
  12222. ss: "%d sekundir",
  12223. m: "ein minuttur",
  12224. mm: "%d minuttir",
  12225. h: "ein tími",
  12226. hh: "%d tímar",
  12227. d: "ein dagur",
  12228. dd: "%d dagar",
  12229. M: "ein mánaður",
  12230. MM: "%d mánaðir",
  12231. y: "eitt ár",
  12232. yy: "%d ár"
  12233. },
  12234. dayOfMonthOrdinalParse: /\d{1,2}\./,
  12235. ordinal: "%d.",
  12236. week: {
  12237. dow: 1,
  12238. doy: 4
  12239. }
  12240. })
  12241. }(n(0))
  12242. }, function(e, t, n) {
  12243. ! function(e) {
  12244. "use strict";
  12245. //! moment.js locale configuration
  12246. var t =
  12247. /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
  12248. n = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,
  12249. i =
  12250. /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
  12251. r = [/^janv/i, /^févr/i, /^mars/i, /^avr/i, /^mai/i, /^juin/i, /^juil/i, /^août/i, /^sept/i,
  12252. /^oct/i, /^nov/i, /^déc/i
  12253. ],
  12254. a;
  12255. e.defineLocale("fr", {
  12256. months: "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre"
  12257. .split("_"),
  12258. monthsShort: "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split(
  12259. "_"),
  12260. monthsRegex: i,
  12261. monthsShortRegex: i,
  12262. monthsStrictRegex: t,
  12263. monthsShortStrictRegex: n,
  12264. monthsParse: r,
  12265. longMonthsParse: r,
  12266. shortMonthsParse: r,
  12267. weekdays: "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),
  12268. weekdaysShort: "dim._lun._mar._mer._jeu._ven._sam.".split("_"),
  12269. weekdaysMin: "di_lu_ma_me_je_ve_sa".split("_"),
  12270. weekdaysParseExact: true,
  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: "[Aujourd’hui à] LT",
  12281. nextDay: "[Demain à] LT",
  12282. nextWeek: "dddd [à] LT",
  12283. lastDay: "[Hier à] LT",
  12284. lastWeek: "dddd [dernier à] LT",
  12285. sameElse: "L"
  12286. },
  12287. relativeTime: {
  12288. future: "dans %s",
  12289. past: "il y a %s",
  12290. s: "quelques secondes",
  12291. ss: "%d secondes",
  12292. m: "une minute",
  12293. mm: "%d minutes",
  12294. h: "une heure",
  12295. hh: "%d heures",
  12296. d: "un jour",
  12297. dd: "%d jours",
  12298. w: "une semaine",
  12299. ww: "%d semaines",
  12300. M: "un mois",
  12301. MM: "%d mois",
  12302. y: "un an",
  12303. yy: "%d ans"
  12304. },
  12305. dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
  12306. ordinal: function(e, t) {
  12307. switch (t) {
  12308. case "D":
  12309. return e + (e === 1 ? "er" : "");
  12310. default:
  12311. case "M":
  12312. case "Q":
  12313. case "DDD":
  12314. case "d":
  12315. return e + (e === 1 ? "er" : "e");
  12316. case "w":
  12317. case "W":
  12318. return e + (e === 1 ? "re" : "e")
  12319. }
  12320. },
  12321. week: {
  12322. dow: 1,
  12323. doy: 4
  12324. }
  12325. })
  12326. }(n(0))
  12327. }, function(e, t, n) {
  12328. ! function(e) {
  12329. "use strict";
  12330. //! moment.js locale configuration
  12331. var t;
  12332. e.defineLocale("fr-ca", {
  12333. months: "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre"
  12334. .split("_"),
  12335. monthsShort: "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split(
  12336. "_"),
  12337. monthsParseExact: true,
  12338. weekdays: "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),
  12339. weekdaysShort: "dim._lun._mar._mer._jeu._ven._sam.".split("_"),
  12340. weekdaysMin: "di_lu_ma_me_je_ve_sa".split("_"),
  12341. weekdaysParseExact: true,
  12342. longDateFormat: {
  12343. LT: "HH:mm",
  12344. LTS: "HH:mm:ss",
  12345. L: "YYYY-MM-DD",
  12346. LL: "D MMMM YYYY",
  12347. LLL: "D MMMM YYYY HH:mm",
  12348. LLLL: "dddd D MMMM YYYY HH:mm"
  12349. },
  12350. calendar: {
  12351. sameDay: "[Aujourd’hui à] LT",
  12352. nextDay: "[Demain à] LT",
  12353. nextWeek: "dddd [à] LT",
  12354. lastDay: "[Hier à] LT",
  12355. lastWeek: "dddd [dernier à] LT",
  12356. sameElse: "L"
  12357. },
  12358. relativeTime: {
  12359. future: "dans %s",
  12360. past: "il y a %s",
  12361. s: "quelques secondes",
  12362. ss: "%d secondes",
  12363. m: "une minute",
  12364. mm: "%d minutes",
  12365. h: "une heure",
  12366. hh: "%d heures",
  12367. d: "un jour",
  12368. dd: "%d jours",
  12369. M: "un mois",
  12370. MM: "%d mois",
  12371. y: "un an",
  12372. yy: "%d ans"
  12373. },
  12374. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  12375. ordinal: function(e, t) {
  12376. switch (t) {
  12377. default:
  12378. case "M":
  12379. case "Q":
  12380. case "D":
  12381. case "DDD":
  12382. case "d":
  12383. return e + (e === 1 ? "er" : "e");
  12384. case "w":
  12385. case "W":
  12386. return e + (e === 1 ? "re" : "e")
  12387. }
  12388. }
  12389. })
  12390. }(n(0))
  12391. }, function(e, t, n) {
  12392. ! function(e) {
  12393. "use strict";
  12394. //! moment.js locale configuration
  12395. var t;
  12396. e.defineLocale("fr-ch", {
  12397. months: "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre"
  12398. .split("_"),
  12399. monthsShort: "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split(
  12400. "_"),
  12401. monthsParseExact: true,
  12402. weekdays: "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),
  12403. weekdaysShort: "dim._lun._mar._mer._jeu._ven._sam.".split("_"),
  12404. weekdaysMin: "di_lu_ma_me_je_ve_sa".split("_"),
  12405. weekdaysParseExact: true,
  12406. longDateFormat: {
  12407. LT: "HH:mm",
  12408. LTS: "HH:mm:ss",
  12409. L: "DD.MM.YYYY",
  12410. LL: "D MMMM YYYY",
  12411. LLL: "D MMMM YYYY HH:mm",
  12412. LLLL: "dddd D MMMM YYYY HH:mm"
  12413. },
  12414. calendar: {
  12415. sameDay: "[Aujourd’hui à] LT",
  12416. nextDay: "[Demain à] LT",
  12417. nextWeek: "dddd [à] LT",
  12418. lastDay: "[Hier à] LT",
  12419. lastWeek: "dddd [dernier à] LT",
  12420. sameElse: "L"
  12421. },
  12422. relativeTime: {
  12423. future: "dans %s",
  12424. past: "il y a %s",
  12425. s: "quelques secondes",
  12426. ss: "%d secondes",
  12427. m: "une minute",
  12428. mm: "%d minutes",
  12429. h: "une heure",
  12430. hh: "%d heures",
  12431. d: "un jour",
  12432. dd: "%d jours",
  12433. M: "un mois",
  12434. MM: "%d mois",
  12435. y: "un an",
  12436. yy: "%d ans"
  12437. },
  12438. dayOfMonthOrdinalParse: /\d{1,2}(er|e)/,
  12439. ordinal: function(e, t) {
  12440. switch (t) {
  12441. default:
  12442. case "M":
  12443. case "Q":
  12444. case "D":
  12445. case "DDD":
  12446. case "d":
  12447. return e + (e === 1 ? "er" : "e");
  12448. case "w":
  12449. case "W":
  12450. return e + (e === 1 ? "re" : "e")
  12451. }
  12452. },
  12453. week: {
  12454. dow: 1,
  12455. doy: 4
  12456. }
  12457. })
  12458. }(n(0))
  12459. }, function(e, t, n) {
  12460. ! function(e) {
  12461. "use strict";
  12462. //! moment.js locale configuration
  12463. var n = "jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),
  12464. i = "jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),
  12465. t;
  12466. e.defineLocale("fy", {
  12467. months: "jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber"
  12468. .split("_"),
  12469. monthsShort: function(e, t) {
  12470. if (!e) return n;
  12471. else if (/-MMM-/.test(t)) return i[e.month()];
  12472. else return n[e.month()]
  12473. },
  12474. monthsParseExact: true,
  12475. weekdays: "snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),
  12476. weekdaysShort: "si._mo._ti._wo._to._fr._so.".split("_"),
  12477. weekdaysMin: "Si_Mo_Ti_Wo_To_Fr_So".split("_"),
  12478. weekdaysParseExact: true,
  12479. longDateFormat: {
  12480. LT: "HH:mm",
  12481. LTS: "HH:mm:ss",
  12482. L: "DD-MM-YYYY",
  12483. LL: "D MMMM YYYY",
  12484. LLL: "D MMMM YYYY HH:mm",
  12485. LLLL: "dddd D MMMM YYYY HH:mm"
  12486. },
  12487. calendar: {
  12488. sameDay: "[hjoed om] LT",
  12489. nextDay: "[moarn om] LT",
  12490. nextWeek: "dddd [om] LT",
  12491. lastDay: "[juster om] LT",
  12492. lastWeek: "[ôfrûne] dddd [om] LT",
  12493. sameElse: "L"
  12494. },
  12495. relativeTime: {
  12496. future: "oer %s",
  12497. past: "%s lyn",
  12498. s: "in pear sekonden",
  12499. ss: "%d sekonden",
  12500. m: "ien minút",
  12501. mm: "%d minuten",
  12502. h: "ien oere",
  12503. hh: "%d oeren",
  12504. d: "ien dei",
  12505. dd: "%d dagen",
  12506. M: "ien moanne",
  12507. MM: "%d moannen",
  12508. y: "ien jier",
  12509. yy: "%d jierren"
  12510. },
  12511. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  12512. ordinal: function(e) {
  12513. return e + (e === 1 || e === 8 || e >= 20 ? "ste" : "de")
  12514. },
  12515. week: {
  12516. dow: 1,
  12517. doy: 4
  12518. }
  12519. })
  12520. }(n(0))
  12521. }, function(e, t, n) {
  12522. ! function(e) {
  12523. "use strict";
  12524. //! moment.js locale configuration
  12525. var t, n, i, r, a, s;
  12526. e.defineLocale("ga", {
  12527. months: ["Eanáir", "Feabhra", "Márta", "Aibreán", "Bealtaine", "Meitheamh", "Iúil",
  12528. "Lúnasa", "Meán Fómhair", "Deireadh Fómhair", "Samhain", "Nollaig"
  12529. ],
  12530. monthsShort: ["Ean", "Feabh", "Márt", "Aib", "Beal", "Meith", "Iúil", "Lún", "M.F.",
  12531. "D.F.", "Samh", "Noll"
  12532. ],
  12533. monthsParseExact: true,
  12534. weekdays: ["Dé Domhnaigh", "Dé Luain", "Dé Máirt", "Dé Céadaoin", "Déardaoin",
  12535. "Dé hAoine", "Dé Sathairn"
  12536. ],
  12537. weekdaysShort: ["Domh", "Luan", "Máirt", "Céad", "Déar", "Aoine", "Sath"],
  12538. weekdaysMin: ["Do", "Lu", "Má", "Cé", "Dé", "A", "Sa"],
  12539. longDateFormat: {
  12540. LT: "HH:mm",
  12541. LTS: "HH:mm:ss",
  12542. L: "DD/MM/YYYY",
  12543. LL: "D MMMM YYYY",
  12544. LLL: "D MMMM YYYY HH:mm",
  12545. LLLL: "dddd, D MMMM YYYY HH:mm"
  12546. },
  12547. calendar: {
  12548. sameDay: "[Inniu ag] LT",
  12549. nextDay: "[Amárach ag] LT",
  12550. nextWeek: "dddd [ag] LT",
  12551. lastDay: "[Inné ag] LT",
  12552. lastWeek: "dddd [seo caite] [ag] LT",
  12553. sameElse: "L"
  12554. },
  12555. relativeTime: {
  12556. future: "i %s",
  12557. past: "%s ó shin",
  12558. s: "cúpla soicind",
  12559. ss: "%d soicind",
  12560. m: "nóiméad",
  12561. mm: "%d nóiméad",
  12562. h: "uair an chloig",
  12563. hh: "%d uair an chloig",
  12564. d: "lá",
  12565. dd: "%d lá",
  12566. M: "mí",
  12567. MM: "%d míonna",
  12568. y: "bliain",
  12569. yy: "%d bliain"
  12570. },
  12571. dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
  12572. ordinal: function(e) {
  12573. var t = e === 1 ? "d" : e % 10 === 2 ? "na" : "mh";
  12574. return e + t
  12575. },
  12576. week: {
  12577. dow: 1,
  12578. doy: 4
  12579. }
  12580. })
  12581. }(n(0))
  12582. }, function(e, t, n) {
  12583. ! function(e) {
  12584. "use strict";
  12585. //! moment.js locale configuration
  12586. var t, n, i, r, a, s;
  12587. e.defineLocale("gd", {
  12588. months: ["Am Faoilleach", "An Gearran", "Am Màrt", "An Giblean", "An Cèitean",
  12589. "An t-Ògmhios", "An t-Iuchar", "An Lùnastal", "An t-Sultain", "An Dàmhair",
  12590. "An t-Samhain", "An Dùbhlachd"
  12591. ],
  12592. monthsShort: ["Faoi", "Gear", "Màrt", "Gibl", "Cèit", "Ògmh", "Iuch", "Lùn", "Sult",
  12593. "Dàmh", "Samh", "Dùbh"
  12594. ],
  12595. monthsParseExact: true,
  12596. weekdays: ["Didòmhnaich", "Diluain", "Dimàirt", "Diciadain", "Diardaoin",
  12597. "Dihaoine", "Disathairne"
  12598. ],
  12599. weekdaysShort: ["Did", "Dil", "Dim", "Dic", "Dia", "Dih", "Dis"],
  12600. weekdaysMin: ["Dò", "Lu", "Mà", "Ci", "Ar", "Ha", "Sa"],
  12601. longDateFormat: {
  12602. LT: "HH:mm",
  12603. LTS: "HH:mm:ss",
  12604. L: "DD/MM/YYYY",
  12605. LL: "D MMMM YYYY",
  12606. LLL: "D MMMM YYYY HH:mm",
  12607. LLLL: "dddd, D MMMM YYYY HH:mm"
  12608. },
  12609. calendar: {
  12610. sameDay: "[An-diugh aig] LT",
  12611. nextDay: "[A-màireach aig] LT",
  12612. nextWeek: "dddd [aig] LT",
  12613. lastDay: "[An-dè aig] LT",
  12614. lastWeek: "dddd [seo chaidh] [aig] LT",
  12615. sameElse: "L"
  12616. },
  12617. relativeTime: {
  12618. future: "ann an %s",
  12619. past: "bho chionn %s",
  12620. s: "beagan diogan",
  12621. ss: "%d diogan",
  12622. m: "mionaid",
  12623. mm: "%d mionaidean",
  12624. h: "uair",
  12625. hh: "%d uairean",
  12626. d: "latha",
  12627. dd: "%d latha",
  12628. M: "mìos",
  12629. MM: "%d mìosan",
  12630. y: "bliadhna",
  12631. yy: "%d bliadhna"
  12632. },
  12633. dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/,
  12634. ordinal: function(e) {
  12635. var t = e === 1 ? "d" : e % 10 === 2 ? "na" : "mh";
  12636. return e + t
  12637. },
  12638. week: {
  12639. dow: 1,
  12640. doy: 4
  12641. }
  12642. })
  12643. }(n(0))
  12644. }, function(e, t, n) {
  12645. ! function(e) {
  12646. "use strict";
  12647. //! moment.js locale configuration
  12648. var t;
  12649. e.defineLocale("gl", {
  12650. months: "xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro"
  12651. .split("_"),
  12652. monthsShort: "xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split(
  12653. "_"),
  12654. monthsParseExact: true,
  12655. weekdays: "domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),
  12656. weekdaysShort: "dom._lun._mar._mér._xov._ven._sáb.".split("_"),
  12657. weekdaysMin: "do_lu_ma_mé_xo_ve_sá".split("_"),
  12658. weekdaysParseExact: true,
  12659. longDateFormat: {
  12660. LT: "H:mm",
  12661. LTS: "H:mm:ss",
  12662. L: "DD/MM/YYYY",
  12663. LL: "D [de] MMMM [de] YYYY",
  12664. LLL: "D [de] MMMM [de] YYYY H:mm",
  12665. LLLL: "dddd, D [de] MMMM [de] YYYY H:mm"
  12666. },
  12667. calendar: {
  12668. sameDay: function() {
  12669. return "[hoxe " + (this.hours() !== 1 ? "ás" : "á") + "] LT"
  12670. },
  12671. nextDay: function() {
  12672. return "[mañá " + (this.hours() !== 1 ? "ás" : "á") + "] LT"
  12673. },
  12674. nextWeek: function() {
  12675. return "dddd [" + (this.hours() !== 1 ? "ás" : "a") + "] LT"
  12676. },
  12677. lastDay: function() {
  12678. return "[onte " + (this.hours() !== 1 ? "á" : "a") + "] LT"
  12679. },
  12680. lastWeek: function() {
  12681. return "[o] dddd [pasado " + (this.hours() !== 1 ? "ás" : "a") + "] LT"
  12682. },
  12683. sameElse: "L"
  12684. },
  12685. relativeTime: {
  12686. future: function(e) {
  12687. if (e.indexOf("un") === 0) return "n" + e;
  12688. return "en " + e
  12689. },
  12690. past: "hai %s",
  12691. s: "uns segundos",
  12692. ss: "%d segundos",
  12693. m: "un minuto",
  12694. mm: "%d minutos",
  12695. h: "unha hora",
  12696. hh: "%d horas",
  12697. d: "un día",
  12698. dd: "%d días",
  12699. M: "un mes",
  12700. MM: "%d meses",
  12701. y: "un ano",
  12702. yy: "%d anos"
  12703. },
  12704. dayOfMonthOrdinalParse: /\d{1,2}º/,
  12705. ordinal: "%dº",
  12706. week: {
  12707. dow: 1,
  12708. doy: 4
  12709. }
  12710. })
  12711. }(n(0))
  12712. }, function(e, t, n) {
  12713. ! function(e) {
  12714. "use strict";
  12715. //! moment.js locale configuration
  12716. function t(e, t, n, i) {
  12717. var r = {
  12718. s: ["थोडया सॅकंडांनी", "थोडे सॅकंड"],
  12719. ss: [e + " सॅकंडांनी", e + " सॅकंड"],
  12720. m: ["एका मिणटान", "एक मिनूट"],
  12721. mm: [e + " मिणटांनी", e + " मिणटां"],
  12722. h: ["एका वरान", "एक वर"],
  12723. hh: [e + " वरांनी", e + " वरां"],
  12724. d: ["एका दिसान", "एक दीस"],
  12725. dd: [e + " दिसांनी", e + " दीस"],
  12726. M: ["एका म्हयन्यान", "एक म्हयनो"],
  12727. MM: [e + " म्हयन्यानी", e + " म्हयने"],
  12728. y: ["एका वर्सान", "एक वर्स"],
  12729. yy: [e + " वर्सांनी", e + " वर्सां"]
  12730. };
  12731. return i ? r[n][0] : r[n][1]
  12732. }
  12733. var n;
  12734. e.defineLocale("gom-deva", {
  12735. months: {
  12736. standalone: "जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर"
  12737. .split("_"),
  12738. format: "जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या"
  12739. .split("_"),
  12740. isFormat: /MMMM(\s)+D[oD]?/
  12741. },
  12742. monthsShort: "जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें."
  12743. .split("_"),
  12744. monthsParseExact: true,
  12745. weekdays: "आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),
  12746. weekdaysShort: "आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),
  12747. weekdaysMin: "आ_सो_मं_बु_ब्रे_सु_शे".split("_"),
  12748. weekdaysParseExact: true,
  12749. longDateFormat: {
  12750. LT: "A h:mm [वाजतां]",
  12751. LTS: "A h:mm:ss [वाजतां]",
  12752. L: "DD-MM-YYYY",
  12753. LL: "D MMMM YYYY",
  12754. LLL: "D MMMM YYYY A h:mm [वाजतां]",
  12755. LLLL: "dddd, MMMM Do, YYYY, A h:mm [वाजतां]",
  12756. llll: "ddd, D MMM YYYY, A h:mm [वाजतां]"
  12757. },
  12758. calendar: {
  12759. sameDay: "[आयज] LT",
  12760. nextDay: "[फाल्यां] LT",
  12761. nextWeek: "[फुडलो] dddd[,] LT",
  12762. lastDay: "[काल] LT",
  12763. lastWeek: "[फाटलो] dddd[,] LT",
  12764. sameElse: "L"
  12765. },
  12766. relativeTime: {
  12767. future: "%s",
  12768. past: "%s आदीं",
  12769. s: t,
  12770. ss: t,
  12771. m: t,
  12772. mm: t,
  12773. h: t,
  12774. hh: t,
  12775. d: t,
  12776. dd: t,
  12777. M: t,
  12778. MM: t,
  12779. y: t,
  12780. yy: t
  12781. },
  12782. dayOfMonthOrdinalParse: /\d{1,2}(वेर)/,
  12783. ordinal: function(e, t) {
  12784. switch (t) {
  12785. case "D":
  12786. return e + "वेर";
  12787. default:
  12788. case "M":
  12789. case "Q":
  12790. case "DDD":
  12791. case "d":
  12792. case "w":
  12793. case "W":
  12794. return e
  12795. }
  12796. },
  12797. week: {
  12798. dow: 0,
  12799. doy: 3
  12800. },
  12801. meridiemParse: /राती|सकाळीं|दनपारां|सांजे/,
  12802. meridiemHour: function(e, t) {
  12803. if (e === 12) e = 0;
  12804. if (t === "राती") return e < 4 ? e : e + 12;
  12805. else if (t === "सकाळीं") return e;
  12806. else if (t === "दनपारां") return e > 12 ? e : e + 12;
  12807. else if (t === "सांजे") return e + 12
  12808. },
  12809. meridiem: function(e, t, n) {
  12810. if (e < 4) return "राती";
  12811. else if (e < 12) return "सकाळीं";
  12812. else if (e < 16) return "दनपारां";
  12813. else if (e < 20) return "सांजे";
  12814. else return "राती"
  12815. }
  12816. })
  12817. }(n(0))
  12818. }, function(e, t, n) {
  12819. ! function(e) {
  12820. "use strict";
  12821. //! moment.js locale configuration
  12822. function t(e, t, n, i) {
  12823. var r = {
  12824. s: ["thoddea sekondamni", "thodde sekond"],
  12825. ss: [e + " sekondamni", e + " sekond"],
  12826. m: ["eka mintan", "ek minut"],
  12827. mm: [e + " mintamni", e + " mintam"],
  12828. h: ["eka voran", "ek vor"],
  12829. hh: [e + " voramni", e + " voram"],
  12830. d: ["eka disan", "ek dis"],
  12831. dd: [e + " disamni", e + " dis"],
  12832. M: ["eka mhoinean", "ek mhoino"],
  12833. MM: [e + " mhoineamni", e + " mhoine"],
  12834. y: ["eka vorsan", "ek voros"],
  12835. yy: [e + " vorsamni", e + " vorsam"]
  12836. };
  12837. return i ? r[n][0] : r[n][1]
  12838. }
  12839. var n;
  12840. e.defineLocale("gom-latn", {
  12841. months: {
  12842. standalone: "Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr"
  12843. .split("_"),
  12844. format: "Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea"
  12845. .split("_"),
  12846. isFormat: /MMMM(\s)+D[oD]?/
  12847. },
  12848. monthsShort: "Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),
  12849. monthsParseExact: true,
  12850. weekdays: "Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),
  12851. weekdaysShort: "Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),
  12852. weekdaysMin: "Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),
  12853. weekdaysParseExact: true,
  12854. longDateFormat: {
  12855. LT: "A h:mm [vazta]",
  12856. LTS: "A h:mm:ss [vazta]",
  12857. L: "DD-MM-YYYY",
  12858. LL: "D MMMM YYYY",
  12859. LLL: "D MMMM YYYY A h:mm [vazta]",
  12860. LLLL: "dddd, MMMM Do, YYYY, A h:mm [vazta]",
  12861. llll: "ddd, D MMM YYYY, A h:mm [vazta]"
  12862. },
  12863. calendar: {
  12864. sameDay: "[Aiz] LT",
  12865. nextDay: "[Faleam] LT",
  12866. nextWeek: "[Fuddlo] dddd[,] LT",
  12867. lastDay: "[Kal] LT",
  12868. lastWeek: "[Fattlo] dddd[,] LT",
  12869. sameElse: "L"
  12870. },
  12871. relativeTime: {
  12872. future: "%s",
  12873. past: "%s adim",
  12874. s: t,
  12875. ss: t,
  12876. m: t,
  12877. mm: t,
  12878. h: t,
  12879. hh: t,
  12880. d: t,
  12881. dd: t,
  12882. M: t,
  12883. MM: t,
  12884. y: t,
  12885. yy: t
  12886. },
  12887. dayOfMonthOrdinalParse: /\d{1,2}(er)/,
  12888. ordinal: function(e, t) {
  12889. switch (t) {
  12890. case "D":
  12891. return e + "er";
  12892. default:
  12893. case "M":
  12894. case "Q":
  12895. case "DDD":
  12896. case "d":
  12897. case "w":
  12898. case "W":
  12899. return e
  12900. }
  12901. },
  12902. week: {
  12903. dow: 0,
  12904. doy: 3
  12905. },
  12906. meridiemParse: /rati|sokallim|donparam|sanje/,
  12907. meridiemHour: function(e, t) {
  12908. if (e === 12) e = 0;
  12909. if (t === "rati") return e < 4 ? e : e + 12;
  12910. else if (t === "sokallim") return e;
  12911. else if (t === "donparam") return e > 12 ? e : e + 12;
  12912. else if (t === "sanje") return e + 12
  12913. },
  12914. meridiem: function(e, t, n) {
  12915. if (e < 4) return "rati";
  12916. else if (e < 12) return "sokallim";
  12917. else if (e < 16) return "donparam";
  12918. else if (e < 20) return "sanje";
  12919. else return "rati"
  12920. }
  12921. })
  12922. }(n(0))
  12923. }, function(e, t, n) {
  12924. ! function(e) {
  12925. "use strict";
  12926. //! moment.js locale configuration
  12927. var t = {
  12928. 1: "૧",
  12929. 2: "૨",
  12930. 3: "૩",
  12931. 4: "૪",
  12932. 5: "૫",
  12933. 6: "૬",
  12934. 7: "૭",
  12935. 8: "૮",
  12936. 9: "૯",
  12937. 0: "૦"
  12938. },
  12939. n = {
  12940. "૧": "1",
  12941. "૨": "2",
  12942. "૩": "3",
  12943. "૪": "4",
  12944. "૫": "5",
  12945. "૬": "6",
  12946. "૭": "7",
  12947. "૮": "8",
  12948. "૯": "9",
  12949. "૦": "0"
  12950. },
  12951. i;
  12952. e.defineLocale("gu", {
  12953. months: "જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર"
  12954. .split("_"),
  12955. monthsShort: "જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે."
  12956. .split("_"),
  12957. monthsParseExact: true,
  12958. weekdays: "રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),
  12959. weekdaysShort: "રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),
  12960. weekdaysMin: "ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),
  12961. longDateFormat: {
  12962. LT: "A h:mm વાગ્યે",
  12963. LTS: "A h:mm:ss વાગ્યે",
  12964. L: "DD/MM/YYYY",
  12965. LL: "D MMMM YYYY",
  12966. LLL: "D MMMM YYYY, A h:mm વાગ્યે",
  12967. LLLL: "dddd, D MMMM YYYY, A h:mm વાગ્યે"
  12968. },
  12969. calendar: {
  12970. sameDay: "[આજ] LT",
  12971. nextDay: "[કાલે] LT",
  12972. nextWeek: "dddd, LT",
  12973. lastDay: "[ગઇકાલે] LT",
  12974. lastWeek: "[પાછલા] dddd, LT",
  12975. sameElse: "L"
  12976. },
  12977. relativeTime: {
  12978. future: "%s મા",
  12979. past: "%s પહેલા",
  12980. s: "અમુક પળો",
  12981. ss: "%d સેકંડ",
  12982. m: "એક મિનિટ",
  12983. mm: "%d મિનિટ",
  12984. h: "એક કલાક",
  12985. hh: "%d કલાક",
  12986. d: "એક દિવસ",
  12987. dd: "%d દિવસ",
  12988. M: "એક મહિનો",
  12989. MM: "%d મહિનો",
  12990. y: "એક વર્ષ",
  12991. yy: "%d વર્ષ"
  12992. },
  12993. preparse: function(e) {
  12994. return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function(e) {
  12995. return n[e]
  12996. })
  12997. },
  12998. postformat: function(e) {
  12999. return e.replace(/\d/g, function(e) {
  13000. return t[e]
  13001. })
  13002. },
  13003. meridiemParse: /રાત|બપોર|સવાર|સાંજ/,
  13004. meridiemHour: function(e, t) {
  13005. if (e === 12) e = 0;
  13006. if (t === "રાત") return e < 4 ? e : e + 12;
  13007. else if (t === "સવાર") return e;
  13008. else if (t === "બપોર") return e >= 10 ? e : e + 12;
  13009. else if (t === "સાંજ") return e + 12
  13010. },
  13011. meridiem: function(e, t, n) {
  13012. if (e < 4) return "રાત";
  13013. else if (e < 10) return "સવાર";
  13014. else if (e < 17) return "બપોર";
  13015. else if (e < 20) return "સાંજ";
  13016. else return "રાત"
  13017. },
  13018. week: {
  13019. dow: 0,
  13020. doy: 6
  13021. }
  13022. })
  13023. }(n(0))
  13024. }, function(e, t, n) {
  13025. ! function(e) {
  13026. "use strict";
  13027. //! moment.js locale configuration
  13028. var t;
  13029. e.defineLocale("he", {
  13030. months: "ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר"
  13031. .split("_"),
  13032. monthsShort: "ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),
  13033. weekdays: "ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),
  13034. weekdaysShort: "א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),
  13035. weekdaysMin: "א_ב_ג_ד_ה_ו_ש".split("_"),
  13036. longDateFormat: {
  13037. LT: "HH:mm",
  13038. LTS: "HH:mm:ss",
  13039. L: "DD/MM/YYYY",
  13040. LL: "D [ב]MMMM YYYY",
  13041. LLL: "D [ב]MMMM YYYY HH:mm",
  13042. LLLL: "dddd, D [ב]MMMM YYYY HH:mm",
  13043. l: "D/M/YYYY",
  13044. ll: "D MMM YYYY",
  13045. lll: "D MMM YYYY HH:mm",
  13046. llll: "ddd, D MMM YYYY HH:mm"
  13047. },
  13048. calendar: {
  13049. sameDay: "[היום ב־]LT",
  13050. nextDay: "[מחר ב־]LT",
  13051. nextWeek: "dddd [בשעה] LT",
  13052. lastDay: "[אתמול ב־]LT",
  13053. lastWeek: "[ביום] dddd [האחרון בשעה] LT",
  13054. sameElse: "L"
  13055. },
  13056. relativeTime: {
  13057. future: "בעוד %s",
  13058. past: "לפני %s",
  13059. s: "מספר שניות",
  13060. ss: "%d שניות",
  13061. m: "דקה",
  13062. mm: "%d דקות",
  13063. h: "שעה",
  13064. hh: function(e) {
  13065. if (e === 2) return "שעתיים";
  13066. return e + " שעות"
  13067. },
  13068. d: "יום",
  13069. dd: function(e) {
  13070. if (e === 2) return "יומיים";
  13071. return e + " ימים"
  13072. },
  13073. M: "חודש",
  13074. MM: function(e) {
  13075. if (e === 2) return "חודשיים";
  13076. return e + " חודשים"
  13077. },
  13078. y: "שנה",
  13079. yy: function(e) {
  13080. if (e === 2) return "שנתיים";
  13081. else if (e % 10 === 0 && e !== 10) return e + " שנה";
  13082. return e + " שנים"
  13083. }
  13084. },
  13085. meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
  13086. isPM: function(e) {
  13087. return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)
  13088. },
  13089. meridiem: function(e, t, n) {
  13090. if (e < 5) return "לפנות בוקר";
  13091. else if (e < 10) return "בבוקר";
  13092. else if (e < 12) return n ? 'לפנה"צ' : "לפני הצהריים";
  13093. else if (e < 18) return n ? 'אחה"צ' : "אחרי הצהריים";
  13094. else return "בערב"
  13095. }
  13096. })
  13097. }(n(0))
  13098. }, function(e, t, n) {
  13099. ! function(e) {
  13100. "use strict";
  13101. //! moment.js locale configuration
  13102. var t = {
  13103. 1: "१",
  13104. 2: "२",
  13105. 3: "३",
  13106. 4: "४",
  13107. 5: "५",
  13108. 6: "६",
  13109. 7: "७",
  13110. 8: "८",
  13111. 9: "९",
  13112. 0: "०"
  13113. },
  13114. n = {
  13115. "१": "1",
  13116. "२": "2",
  13117. "३": "3",
  13118. "४": "4",
  13119. "५": "5",
  13120. "६": "6",
  13121. "७": "7",
  13122. "८": "8",
  13123. "९": "9",
  13124. "०": "0"
  13125. },
  13126. i = [/^जन/i, /^फ़र|फर/i, /^मार्च/i, /^अप्रै/i, /^मई/i, /^जून/i, /^जुल/i, /^अग/i,
  13127. /^सितं|सित/i, /^अक्टू/i, /^नव|नवं/i, /^दिसं|दिस/i
  13128. ],
  13129. r = [/^जन/i, /^फ़र/i, /^मार्च/i, /^अप्रै/i, /^मई/i, /^जून/i, /^जुल/i, /^अग/i, /^सित/i,
  13130. /^अक्टू/i, /^नव/i, /^दिस/i
  13131. ],
  13132. a;
  13133. e.defineLocale("hi", {
  13134. months: {
  13135. format: "जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर"
  13136. .split("_"),
  13137. standalone: "जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर"
  13138. .split("_")
  13139. },
  13140. monthsShort: "जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split(
  13141. "_"),
  13142. weekdays: "रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),
  13143. weekdaysShort: "रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),
  13144. weekdaysMin: "र_सो_मं_बु_गु_शु_श".split("_"),
  13145. longDateFormat: {
  13146. LT: "A h:mm बजे",
  13147. LTS: "A h:mm:ss बजे",
  13148. L: "DD/MM/YYYY",
  13149. LL: "D MMMM YYYY",
  13150. LLL: "D MMMM YYYY, A h:mm बजे",
  13151. LLLL: "dddd, D MMMM YYYY, A h:mm बजे"
  13152. },
  13153. monthsParse: i,
  13154. longMonthsParse: i,
  13155. shortMonthsParse: r,
  13156. monthsRegex: /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,
  13157. monthsShortRegex: /^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,
  13158. monthsStrictRegex: /^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,
  13159. monthsShortStrictRegex: /^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,
  13160. calendar: {
  13161. sameDay: "[आज] LT",
  13162. nextDay: "[कल] LT",
  13163. nextWeek: "dddd, LT",
  13164. lastDay: "[कल] LT",
  13165. lastWeek: "[पिछले] dddd, LT",
  13166. sameElse: "L"
  13167. },
  13168. relativeTime: {
  13169. future: "%s में",
  13170. past: "%s पहले",
  13171. s: "कुछ ही क्षण",
  13172. ss: "%d सेकंड",
  13173. m: "एक मिनट",
  13174. mm: "%d मिनट",
  13175. h: "एक घंटा",
  13176. hh: "%d घंटे",
  13177. d: "एक दिन",
  13178. dd: "%d दिन",
  13179. M: "एक महीने",
  13180. MM: "%d महीने",
  13181. y: "एक वर्ष",
  13182. yy: "%d वर्ष"
  13183. },
  13184. preparse: function(e) {
  13185. return e.replace(/[१२३४५६७८९०]/g, function(e) {
  13186. return n[e]
  13187. })
  13188. },
  13189. postformat: function(e) {
  13190. return e.replace(/\d/g, function(e) {
  13191. return t[e]
  13192. })
  13193. },
  13194. meridiemParse: /रात|सुबह|दोपहर|शाम/,
  13195. meridiemHour: function(e, t) {
  13196. if (e === 12) e = 0;
  13197. if (t === "रात") return e < 4 ? e : e + 12;
  13198. else if (t === "सुबह") return e;
  13199. else if (t === "दोपहर") return e >= 10 ? e : e + 12;
  13200. else if (t === "शाम") return e + 12
  13201. },
  13202. meridiem: function(e, t, n) {
  13203. if (e < 4) return "रात";
  13204. else if (e < 10) return "सुबह";
  13205. else if (e < 17) return "दोपहर";
  13206. else if (e < 20) return "शाम";
  13207. else return "रात"
  13208. },
  13209. week: {
  13210. dow: 0,
  13211. doy: 6
  13212. }
  13213. })
  13214. }(n(0))
  13215. }, function(e, t, n) {
  13216. ! function(e) {
  13217. "use strict";
  13218. //! moment.js locale configuration
  13219. function t(e, t, n) {
  13220. var i = e + " ";
  13221. switch (n) {
  13222. case "ss":
  13223. if (e === 1) i += "sekunda";
  13224. else if (e === 2 || e === 3 || e === 4) i += "sekunde";
  13225. else i += "sekundi";
  13226. return i;
  13227. case "m":
  13228. return t ? "jedna minuta" : "jedne minute";
  13229. case "mm":
  13230. if (e === 1) i += "minuta";
  13231. else if (e === 2 || e === 3 || e === 4) i += "minute";
  13232. else i += "minuta";
  13233. return i;
  13234. case "h":
  13235. return t ? "jedan sat" : "jednog sata";
  13236. case "hh":
  13237. if (e === 1) i += "sat";
  13238. else if (e === 2 || e === 3 || e === 4) i += "sata";
  13239. else i += "sati";
  13240. return i;
  13241. case "dd":
  13242. if (e === 1) i += "dan";
  13243. else i += "dana";
  13244. return i;
  13245. case "MM":
  13246. if (e === 1) i += "mjesec";
  13247. else if (e === 2 || e === 3 || e === 4) i += "mjeseca";
  13248. else i += "mjeseci";
  13249. return i;
  13250. case "yy":
  13251. if (e === 1) i += "godina";
  13252. else if (e === 2 || e === 3 || e === 4) i += "godine";
  13253. else i += "godina";
  13254. return i
  13255. }
  13256. }
  13257. var n;
  13258. e.defineLocale("hr", {
  13259. months: {
  13260. format: "siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca"
  13261. .split("_"),
  13262. standalone: "siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac"
  13263. .split("_")
  13264. },
  13265. monthsShort: "sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split(
  13266. "_"),
  13267. monthsParseExact: true,
  13268. weekdays: "nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),
  13269. weekdaysShort: "ned._pon._uto._sri._čet._pet._sub.".split("_"),
  13270. weekdaysMin: "ne_po_ut_sr_če_pe_su".split("_"),
  13271. weekdaysParseExact: true,
  13272. longDateFormat: {
  13273. LT: "H:mm",
  13274. LTS: "H:mm:ss",
  13275. L: "DD.MM.YYYY",
  13276. LL: "Do MMMM YYYY",
  13277. LLL: "Do MMMM YYYY H:mm",
  13278. LLLL: "dddd, Do MMMM YYYY H:mm"
  13279. },
  13280. calendar: {
  13281. sameDay: "[danas u] LT",
  13282. nextDay: "[sutra u] LT",
  13283. nextWeek: function() {
  13284. switch (this.day()) {
  13285. case 0:
  13286. return "[u] [nedjelju] [u] LT";
  13287. case 3:
  13288. return "[u] [srijedu] [u] LT";
  13289. case 6:
  13290. return "[u] [subotu] [u] LT";
  13291. case 1:
  13292. case 2:
  13293. case 4:
  13294. case 5:
  13295. return "[u] dddd [u] LT"
  13296. }
  13297. },
  13298. lastDay: "[jučer u] LT",
  13299. lastWeek: function() {
  13300. switch (this.day()) {
  13301. case 0:
  13302. return "[prošlu] [nedjelju] [u] LT";
  13303. case 3:
  13304. return "[prošlu] [srijedu] [u] LT";
  13305. case 6:
  13306. return "[prošle] [subote] [u] LT";
  13307. case 1:
  13308. case 2:
  13309. case 4:
  13310. case 5:
  13311. return "[prošli] dddd [u] LT"
  13312. }
  13313. },
  13314. sameElse: "L"
  13315. },
  13316. relativeTime: {
  13317. future: "za %s",
  13318. past: "prije %s",
  13319. s: "par sekundi",
  13320. ss: t,
  13321. m: t,
  13322. mm: t,
  13323. h: t,
  13324. hh: t,
  13325. d: "dan",
  13326. dd: t,
  13327. M: "mjesec",
  13328. MM: t,
  13329. y: "godinu",
  13330. yy: t
  13331. },
  13332. dayOfMonthOrdinalParse: /\d{1,2}\./,
  13333. ordinal: "%d.",
  13334. week: {
  13335. dow: 1,
  13336. doy: 7
  13337. }
  13338. })
  13339. }(n(0))
  13340. }, function(e, t, n) {
  13341. ! function(e) {
  13342. "use strict";
  13343. //! moment.js locale configuration
  13344. var t = "vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" "),
  13345. n;
  13346. function i(e, t, n, i) {
  13347. var r = e;
  13348. switch (n) {
  13349. case "s":
  13350. return i || t ? "néhány másodperc" : "néhány másodperce";
  13351. case "ss":
  13352. return r + (i || t) ? " másodperc" : " másodperce";
  13353. case "m":
  13354. return "egy" + (i || t ? " perc" : " perce");
  13355. case "mm":
  13356. return r + (i || t ? " perc" : " perce");
  13357. case "h":
  13358. return "egy" + (i || t ? " óra" : " órája");
  13359. case "hh":
  13360. return r + (i || t ? " óra" : " órája");
  13361. case "d":
  13362. return "egy" + (i || t ? " nap" : " napja");
  13363. case "dd":
  13364. return r + (i || t ? " nap" : " napja");
  13365. case "M":
  13366. return "egy" + (i || t ? " hónap" : " hónapja");
  13367. case "MM":
  13368. return r + (i || t ? " hónap" : " hónapja");
  13369. case "y":
  13370. return "egy" + (i || t ? " év" : " éve");
  13371. case "yy":
  13372. return r + (i || t ? " év" : " éve")
  13373. }
  13374. return ""
  13375. }
  13376. function r(e) {
  13377. return (e ? "" : "[múlt] ") + "[" + t[this.day()] + "] LT[-kor]"
  13378. }
  13379. e.defineLocale("hu", {
  13380. months: "január_február_március_április_május_június_július_augusztus_szeptember_október_november_december"
  13381. .split("_"),
  13382. monthsShort: "jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split(
  13383. "_"),
  13384. monthsParseExact: true,
  13385. weekdays: "vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),
  13386. weekdaysShort: "vas_hét_kedd_sze_csüt_pén_szo".split("_"),
  13387. weekdaysMin: "v_h_k_sze_cs_p_szo".split("_"),
  13388. longDateFormat: {
  13389. LT: "H:mm",
  13390. LTS: "H:mm:ss",
  13391. L: "YYYY.MM.DD.",
  13392. LL: "YYYY. MMMM D.",
  13393. LLL: "YYYY. MMMM D. H:mm",
  13394. LLLL: "YYYY. MMMM D., dddd H:mm"
  13395. },
  13396. meridiemParse: /de|du/i,
  13397. isPM: function(e) {
  13398. return e.charAt(1).toLowerCase() === "u"
  13399. },
  13400. meridiem: function(e, t, n) {
  13401. if (e < 12) return n === true ? "de" : "DE";
  13402. else return n === true ? "du" : "DU"
  13403. },
  13404. calendar: {
  13405. sameDay: "[ma] LT[-kor]",
  13406. nextDay: "[holnap] LT[-kor]",
  13407. nextWeek: function() {
  13408. return r.call(this, true)
  13409. },
  13410. lastDay: "[tegnap] LT[-kor]",
  13411. lastWeek: function() {
  13412. return r.call(this, false)
  13413. },
  13414. sameElse: "L"
  13415. },
  13416. relativeTime: {
  13417. future: "%s múlva",
  13418. past: "%s",
  13419. s: i,
  13420. ss: i,
  13421. m: i,
  13422. mm: i,
  13423. h: i,
  13424. hh: i,
  13425. d: i,
  13426. dd: i,
  13427. M: i,
  13428. MM: i,
  13429. y: i,
  13430. yy: i
  13431. },
  13432. dayOfMonthOrdinalParse: /\d{1,2}\./,
  13433. ordinal: "%d.",
  13434. week: {
  13435. dow: 1,
  13436. doy: 4
  13437. }
  13438. })
  13439. }(n(0))
  13440. }, function(e, t, n) {
  13441. ! function(e) {
  13442. "use strict";
  13443. //! moment.js locale configuration
  13444. var t;
  13445. e.defineLocale("hy-am", {
  13446. months: {
  13447. format: "հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի"
  13448. .split("_"),
  13449. standalone: "հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր"
  13450. .split("_")
  13451. },
  13452. monthsShort: "հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),
  13453. weekdays: "կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split(
  13454. "_"),
  13455. weekdaysShort: "կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),
  13456. weekdaysMin: "կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),
  13457. longDateFormat: {
  13458. LT: "HH:mm",
  13459. LTS: "HH:mm:ss",
  13460. L: "DD.MM.YYYY",
  13461. LL: "D MMMM YYYY թ.",
  13462. LLL: "D MMMM YYYY թ., HH:mm",
  13463. LLLL: "dddd, D MMMM YYYY թ., HH:mm"
  13464. },
  13465. calendar: {
  13466. sameDay: "[այսօր] LT",
  13467. nextDay: "[վաղը] LT",
  13468. lastDay: "[երեկ] LT",
  13469. nextWeek: function() {
  13470. return "dddd [օրը ժամը] LT"
  13471. },
  13472. lastWeek: function() {
  13473. return "[անցած] dddd [օրը ժամը] LT"
  13474. },
  13475. sameElse: "L"
  13476. },
  13477. relativeTime: {
  13478. future: "%s հետո",
  13479. past: "%s առաջ",
  13480. s: "մի քանի վայրկյան",
  13481. ss: "%d վայրկյան",
  13482. m: "րոպե",
  13483. mm: "%d րոպե",
  13484. h: "ժամ",
  13485. hh: "%d ժամ",
  13486. d: "օր",
  13487. dd: "%d օր",
  13488. M: "ամիս",
  13489. MM: "%d ամիս",
  13490. y: "տարի",
  13491. yy: "%d տարի"
  13492. },
  13493. meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
  13494. isPM: function(e) {
  13495. return /^(ցերեկվա|երեկոյան)$/.test(e)
  13496. },
  13497. meridiem: function(e) {
  13498. if (e < 4) return "գիշերվա";
  13499. else if (e < 12) return "առավոտվա";
  13500. else if (e < 17) return "ցերեկվա";
  13501. else return "երեկոյան"
  13502. },
  13503. dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
  13504. ordinal: function(e, t) {
  13505. switch (t) {
  13506. case "DDD":
  13507. case "w":
  13508. case "W":
  13509. case "DDDo":
  13510. if (e === 1) return e + "-ին";
  13511. return e + "-րդ";
  13512. default:
  13513. return e
  13514. }
  13515. },
  13516. week: {
  13517. dow: 1,
  13518. doy: 7
  13519. }
  13520. })
  13521. }(n(0))
  13522. }, function(e, t, n) {
  13523. ! function(e) {
  13524. "use strict";
  13525. //! moment.js locale configuration
  13526. var t;
  13527. e.defineLocale("id", {
  13528. months: "Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember"
  13529. .split("_"),
  13530. monthsShort: "Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),
  13531. weekdays: "Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),
  13532. weekdaysShort: "Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),
  13533. weekdaysMin: "Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),
  13534. longDateFormat: {
  13535. LT: "HH.mm",
  13536. LTS: "HH.mm.ss",
  13537. L: "DD/MM/YYYY",
  13538. LL: "D MMMM YYYY",
  13539. LLL: "D MMMM YYYY [pukul] HH.mm",
  13540. LLLL: "dddd, D MMMM YYYY [pukul] HH.mm"
  13541. },
  13542. meridiemParse: /pagi|siang|sore|malam/,
  13543. meridiemHour: function(e, t) {
  13544. if (e === 12) e = 0;
  13545. if (t === "pagi") return e;
  13546. else if (t === "siang") return e >= 11 ? e : e + 12;
  13547. else if (t === "sore" || t === "malam") return e + 12
  13548. },
  13549. meridiem: function(e, t, n) {
  13550. if (e < 11) return "pagi";
  13551. else if (e < 15) return "siang";
  13552. else if (e < 19) return "sore";
  13553. else return "malam"
  13554. },
  13555. calendar: {
  13556. sameDay: "[Hari ini pukul] LT",
  13557. nextDay: "[Besok pukul] LT",
  13558. nextWeek: "dddd [pukul] LT",
  13559. lastDay: "[Kemarin pukul] LT",
  13560. lastWeek: "dddd [lalu pukul] LT",
  13561. sameElse: "L"
  13562. },
  13563. relativeTime: {
  13564. future: "dalam %s",
  13565. past: "%s yang lalu",
  13566. s: "beberapa detik",
  13567. ss: "%d detik",
  13568. m: "semenit",
  13569. mm: "%d menit",
  13570. h: "sejam",
  13571. hh: "%d jam",
  13572. d: "sehari",
  13573. dd: "%d hari",
  13574. M: "sebulan",
  13575. MM: "%d bulan",
  13576. y: "setahun",
  13577. yy: "%d tahun"
  13578. },
  13579. week: {
  13580. dow: 0,
  13581. doy: 6
  13582. }
  13583. })
  13584. }(n(0))
  13585. }, function(e, t, n) {
  13586. ! function(e) {
  13587. "use strict";
  13588. //! moment.js locale configuration
  13589. function a(e) {
  13590. if (e % 100 === 11) return true;
  13591. else if (e % 10 === 1) return false;
  13592. return true
  13593. }
  13594. function t(e, t, n, i) {
  13595. var r = e + " ";
  13596. switch (n) {
  13597. case "s":
  13598. return t || i ? "nokkrar sekúndur" : "nokkrum sekúndum";
  13599. case "ss":
  13600. if (a(e)) return r + (t || i ? "sekúndur" : "sekúndum");
  13601. return r + "sekúnda";
  13602. case "m":
  13603. return t ? "mínúta" : "mínútu";
  13604. case "mm":
  13605. if (a(e)) return r + (t || i ? "mínútur" : "mínútum");
  13606. else if (t) return r + "mínúta";
  13607. return r + "mínútu";
  13608. case "hh":
  13609. if (a(e)) return r + (t || i ? "klukkustundir" : "klukkustundum");
  13610. return r + "klukkustund";
  13611. case "d":
  13612. if (t) return "dagur";
  13613. return i ? "dag" : "degi";
  13614. case "dd":
  13615. if (a(e)) {
  13616. if (t) return r + "dagar";
  13617. return r + (i ? "daga" : "dögum")
  13618. } else if (t) return r + "dagur";
  13619. return r + (i ? "dag" : "degi");
  13620. case "M":
  13621. if (t) return "mánuður";
  13622. return i ? "mánuð" : "mánuði";
  13623. case "MM":
  13624. if (a(e)) {
  13625. if (t) return r + "mánuðir";
  13626. return r + (i ? "mánuði" : "mánuðum")
  13627. } else if (t) return r + "mánuður";
  13628. return r + (i ? "mánuð" : "mánuði");
  13629. case "y":
  13630. return t || i ? "ár" : "ári";
  13631. case "yy":
  13632. if (a(e)) return r + (t || i ? "ár" : "árum");
  13633. return r + (t || i ? "ár" : "ári")
  13634. }
  13635. }
  13636. var n;
  13637. e.defineLocale("is", {
  13638. months: "janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember"
  13639. .split("_"),
  13640. monthsShort: "jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),
  13641. weekdays: "sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur"
  13642. .split("_"),
  13643. weekdaysShort: "sun_mán_þri_mið_fim_fös_lau".split("_"),
  13644. weekdaysMin: "Su_Má_Þr_Mi_Fi_Fö_La".split("_"),
  13645. longDateFormat: {
  13646. LT: "H:mm",
  13647. LTS: "H:mm:ss",
  13648. L: "DD.MM.YYYY",
  13649. LL: "D. MMMM YYYY",
  13650. LLL: "D. MMMM YYYY [kl.] H:mm",
  13651. LLLL: "dddd, D. MMMM YYYY [kl.] H:mm"
  13652. },
  13653. calendar: {
  13654. sameDay: "[í dag kl.] LT",
  13655. nextDay: "[á morgun kl.] LT",
  13656. nextWeek: "dddd [kl.] LT",
  13657. lastDay: "[í gær kl.] LT",
  13658. lastWeek: "[síðasta] dddd [kl.] LT",
  13659. sameElse: "L"
  13660. },
  13661. relativeTime: {
  13662. future: "eftir %s",
  13663. past: "fyrir %s síðan",
  13664. s: t,
  13665. ss: t,
  13666. m: t,
  13667. mm: t,
  13668. h: "klukkustund",
  13669. hh: t,
  13670. d: t,
  13671. dd: t,
  13672. M: t,
  13673. MM: t,
  13674. y: t,
  13675. yy: t
  13676. },
  13677. dayOfMonthOrdinalParse: /\d{1,2}\./,
  13678. ordinal: "%d.",
  13679. week: {
  13680. dow: 1,
  13681. doy: 4
  13682. }
  13683. })
  13684. }(n(0))
  13685. }, function(e, t, n) {
  13686. ! function(e) {
  13687. "use strict";
  13688. //! moment.js locale configuration
  13689. var t;
  13690. e.defineLocale("it", {
  13691. months: "gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre"
  13692. .split("_"),
  13693. monthsShort: "gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),
  13694. weekdays: "domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),
  13695. weekdaysShort: "dom_lun_mar_mer_gio_ven_sab".split("_"),
  13696. weekdaysMin: "do_lu_ma_me_gi_ve_sa".split("_"),
  13697. longDateFormat: {
  13698. LT: "HH:mm",
  13699. LTS: "HH:mm:ss",
  13700. L: "DD/MM/YYYY",
  13701. LL: "D MMMM YYYY",
  13702. LLL: "D MMMM YYYY HH:mm",
  13703. LLLL: "dddd D MMMM YYYY HH:mm"
  13704. },
  13705. calendar: {
  13706. sameDay: function() {
  13707. return "[Oggi a" + (this.hours() > 1 ? "lle " : this.hours() === 0 ?
  13708. " " : "ll'") + "]LT"
  13709. },
  13710. nextDay: function() {
  13711. return "[Domani a" + (this.hours() > 1 ? "lle " : this.hours() === 0 ?
  13712. " " : "ll'") + "]LT"
  13713. },
  13714. nextWeek: function() {
  13715. return "dddd [a" + (this.hours() > 1 ? "lle " : this.hours() === 0 ?
  13716. " " : "ll'") + "]LT"
  13717. },
  13718. lastDay: function() {
  13719. return "[Ieri a" + (this.hours() > 1 ? "lle " : this.hours() === 0 ?
  13720. " " : "ll'") + "]LT"
  13721. },
  13722. lastWeek: function() {
  13723. switch (this.day()) {
  13724. case 0:
  13725. return "[La scorsa] dddd [a" + (this.hours() > 1 ? "lle " : this
  13726. .hours() === 0 ? " " : "ll'") + "]LT";
  13727. default:
  13728. return "[Lo scorso] dddd [a" + (this.hours() > 1 ? "lle " : this
  13729. .hours() === 0 ? " " : "ll'") + "]LT"
  13730. }
  13731. },
  13732. sameElse: "L"
  13733. },
  13734. relativeTime: {
  13735. future: "tra %s",
  13736. past: "%s fa",
  13737. s: "alcuni secondi",
  13738. ss: "%d secondi",
  13739. m: "un minuto",
  13740. mm: "%d minuti",
  13741. h: "un'ora",
  13742. hh: "%d ore",
  13743. d: "un giorno",
  13744. dd: "%d giorni",
  13745. w: "una settimana",
  13746. ww: "%d settimane",
  13747. M: "un mese",
  13748. MM: "%d mesi",
  13749. y: "un anno",
  13750. yy: "%d anni"
  13751. },
  13752. dayOfMonthOrdinalParse: /\d{1,2}º/,
  13753. ordinal: "%dº",
  13754. week: {
  13755. dow: 1,
  13756. doy: 4
  13757. }
  13758. })
  13759. }(n(0))
  13760. }, function(e, t, n) {
  13761. ! function(e) {
  13762. "use strict";
  13763. //! moment.js locale configuration
  13764. var t;
  13765. e.defineLocale("it-ch", {
  13766. months: "gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre"
  13767. .split("_"),
  13768. monthsShort: "gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),
  13769. weekdays: "domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),
  13770. weekdaysShort: "dom_lun_mar_mer_gio_ven_sab".split("_"),
  13771. weekdaysMin: "do_lu_ma_me_gi_ve_sa".split("_"),
  13772. longDateFormat: {
  13773. LT: "HH:mm",
  13774. LTS: "HH:mm:ss",
  13775. L: "DD.MM.YYYY",
  13776. LL: "D MMMM YYYY",
  13777. LLL: "D MMMM YYYY HH:mm",
  13778. LLLL: "dddd D MMMM YYYY HH:mm"
  13779. },
  13780. calendar: {
  13781. sameDay: "[Oggi alle] LT",
  13782. nextDay: "[Domani alle] LT",
  13783. nextWeek: "dddd [alle] LT",
  13784. lastDay: "[Ieri alle] LT",
  13785. lastWeek: function() {
  13786. switch (this.day()) {
  13787. case 0:
  13788. return "[la scorsa] dddd [alle] LT";
  13789. default:
  13790. return "[lo scorso] dddd [alle] LT"
  13791. }
  13792. },
  13793. sameElse: "L"
  13794. },
  13795. relativeTime: {
  13796. future: function(e) {
  13797. return (/^[0-9].+$/.test(e) ? "tra" : "in") + " " + e
  13798. },
  13799. past: "%s fa",
  13800. s: "alcuni secondi",
  13801. ss: "%d secondi",
  13802. m: "un minuto",
  13803. mm: "%d minuti",
  13804. h: "un'ora",
  13805. hh: "%d ore",
  13806. d: "un giorno",
  13807. dd: "%d giorni",
  13808. M: "un mese",
  13809. MM: "%d mesi",
  13810. y: "un anno",
  13811. yy: "%d anni"
  13812. },
  13813. dayOfMonthOrdinalParse: /\d{1,2}º/,
  13814. ordinal: "%dº",
  13815. week: {
  13816. dow: 1,
  13817. doy: 4
  13818. }
  13819. })
  13820. }(n(0))
  13821. }, function(e, t, n) {
  13822. ! function(e) {
  13823. "use strict";
  13824. //! moment.js locale configuration
  13825. var t;
  13826. e.defineLocale("ja", {
  13827. eras: [{
  13828. since: "2019-05-01",
  13829. offset: 1,
  13830. name: "令和",
  13831. narrow: "㋿",
  13832. abbr: "R"
  13833. }, {
  13834. since: "1989-01-08",
  13835. until: "2019-04-30",
  13836. offset: 1,
  13837. name: "平成",
  13838. narrow: "㍻",
  13839. abbr: "H"
  13840. }, {
  13841. since: "1926-12-25",
  13842. until: "1989-01-07",
  13843. offset: 1,
  13844. name: "昭和",
  13845. narrow: "㍼",
  13846. abbr: "S"
  13847. }, {
  13848. since: "1912-07-30",
  13849. until: "1926-12-24",
  13850. offset: 1,
  13851. name: "大正",
  13852. narrow: "㍽",
  13853. abbr: "T"
  13854. }, {
  13855. since: "1873-01-01",
  13856. until: "1912-07-29",
  13857. offset: 6,
  13858. name: "明治",
  13859. narrow: "㍾",
  13860. abbr: "M"
  13861. }, {
  13862. since: "0001-01-01",
  13863. until: "1873-12-31",
  13864. offset: 1,
  13865. name: "西暦",
  13866. narrow: "AD",
  13867. abbr: "AD"
  13868. }, {
  13869. since: "0000-12-31",
  13870. until: -Infinity,
  13871. offset: 1,
  13872. name: "紀元前",
  13873. narrow: "BC",
  13874. abbr: "BC"
  13875. }],
  13876. eraYearOrdinalRegex: /(元|\d+)年/,
  13877. eraYearOrdinalParse: function(e, t) {
  13878. return t[1] === "元" ? 1 : parseInt(t[1] || e, 10)
  13879. },
  13880. months: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
  13881. monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
  13882. weekdays: "日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),
  13883. weekdaysShort: "日_月_火_水_木_金_土".split("_"),
  13884. weekdaysMin: "日_月_火_水_木_金_土".split("_"),
  13885. longDateFormat: {
  13886. LT: "HH:mm",
  13887. LTS: "HH:mm:ss",
  13888. L: "YYYY/MM/DD",
  13889. LL: "YYYY年M月D日",
  13890. LLL: "YYYY年M月D日 HH:mm",
  13891. LLLL: "YYYY年M月D日 dddd HH:mm",
  13892. l: "YYYY/MM/DD",
  13893. ll: "YYYY年M月D日",
  13894. lll: "YYYY年M月D日 HH:mm",
  13895. llll: "YYYY年M月D日(ddd) HH:mm"
  13896. },
  13897. meridiemParse: /午前|午後/i,
  13898. isPM: function(e) {
  13899. return e === "午後"
  13900. },
  13901. meridiem: function(e, t, n) {
  13902. if (e < 12) return "午前";
  13903. else return "午後"
  13904. },
  13905. calendar: {
  13906. sameDay: "[今日] LT",
  13907. nextDay: "[明日] LT",
  13908. nextWeek: function(e) {
  13909. if (e.week() !== this.week()) return "[来週]dddd LT";
  13910. else return "dddd LT"
  13911. },
  13912. lastDay: "[昨日] LT",
  13913. lastWeek: function(e) {
  13914. if (this.week() !== e.week()) return "[先週]dddd LT";
  13915. else return "dddd LT"
  13916. },
  13917. sameElse: "L"
  13918. },
  13919. dayOfMonthOrdinalParse: /\d{1,2}日/,
  13920. ordinal: function(e, t) {
  13921. switch (t) {
  13922. case "y":
  13923. return e === 1 ? "元年" : e + "年";
  13924. case "d":
  13925. case "D":
  13926. case "DDD":
  13927. return e + "日";
  13928. default:
  13929. return e
  13930. }
  13931. },
  13932. relativeTime: {
  13933. future: "%s後",
  13934. past: "%s前",
  13935. s: "数秒",
  13936. ss: "%d秒",
  13937. m: "1分",
  13938. mm: "%d分",
  13939. h: "1時間",
  13940. hh: "%d時間",
  13941. d: "1日",
  13942. dd: "%d日",
  13943. M: "1ヶ月",
  13944. MM: "%dヶ月",
  13945. y: "1年",
  13946. yy: "%d年"
  13947. }
  13948. })
  13949. }(n(0))
  13950. }, function(e, t, n) {
  13951. ! function(e) {
  13952. "use strict";
  13953. //! moment.js locale configuration
  13954. var t;
  13955. e.defineLocale("jv", {
  13956. months: "Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember"
  13957. .split("_"),
  13958. monthsShort: "Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),
  13959. weekdays: "Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),
  13960. weekdaysShort: "Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),
  13961. weekdaysMin: "Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),
  13962. longDateFormat: {
  13963. LT: "HH.mm",
  13964. LTS: "HH.mm.ss",
  13965. L: "DD/MM/YYYY",
  13966. LL: "D MMMM YYYY",
  13967. LLL: "D MMMM YYYY [pukul] HH.mm",
  13968. LLLL: "dddd, D MMMM YYYY [pukul] HH.mm"
  13969. },
  13970. meridiemParse: /enjing|siyang|sonten|ndalu/,
  13971. meridiemHour: function(e, t) {
  13972. if (e === 12) e = 0;
  13973. if (t === "enjing") return e;
  13974. else if (t === "siyang") return e >= 11 ? e : e + 12;
  13975. else if (t === "sonten" || t === "ndalu") return e + 12
  13976. },
  13977. meridiem: function(e, t, n) {
  13978. if (e < 11) return "enjing";
  13979. else if (e < 15) return "siyang";
  13980. else if (e < 19) return "sonten";
  13981. else return "ndalu"
  13982. },
  13983. calendar: {
  13984. sameDay: "[Dinten puniko pukul] LT",
  13985. nextDay: "[Mbenjang pukul] LT",
  13986. nextWeek: "dddd [pukul] LT",
  13987. lastDay: "[Kala wingi pukul] LT",
  13988. lastWeek: "dddd [kepengker pukul] LT",
  13989. sameElse: "L"
  13990. },
  13991. relativeTime: {
  13992. future: "wonten ing %s",
  13993. past: "%s ingkang kepengker",
  13994. s: "sawetawis detik",
  13995. ss: "%d detik",
  13996. m: "setunggal menit",
  13997. mm: "%d menit",
  13998. h: "setunggal jam",
  13999. hh: "%d jam",
  14000. d: "sedinten",
  14001. dd: "%d dinten",
  14002. M: "sewulan",
  14003. MM: "%d wulan",
  14004. y: "setaun",
  14005. yy: "%d taun"
  14006. },
  14007. week: {
  14008. dow: 1,
  14009. doy: 7
  14010. }
  14011. })
  14012. }(n(0))
  14013. }, function(e, t, n) {
  14014. ! function(e) {
  14015. "use strict";
  14016. //! moment.js locale configuration
  14017. var t;
  14018. e.defineLocale("ka", {
  14019. months: "იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი"
  14020. .split("_"),
  14021. monthsShort: "იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),
  14022. weekdays: {
  14023. standalone: "კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი"
  14024. .split("_"),
  14025. format: "კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split(
  14026. "_"),
  14027. isFormat: /(წინა|შემდეგ)/
  14028. },
  14029. weekdaysShort: "კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),
  14030. weekdaysMin: "კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),
  14031. longDateFormat: {
  14032. LT: "HH:mm",
  14033. LTS: "HH:mm:ss",
  14034. L: "DD/MM/YYYY",
  14035. LL: "D MMMM YYYY",
  14036. LLL: "D MMMM YYYY HH:mm",
  14037. LLLL: "dddd, D MMMM YYYY HH:mm"
  14038. },
  14039. calendar: {
  14040. sameDay: "[დღეს] LT[-ზე]",
  14041. nextDay: "[ხვალ] LT[-ზე]",
  14042. lastDay: "[გუშინ] LT[-ზე]",
  14043. nextWeek: "[შემდეგ] dddd LT[-ზე]",
  14044. lastWeek: "[წინა] dddd LT-ზე",
  14045. sameElse: "L"
  14046. },
  14047. relativeTime: {
  14048. future: function(e) {
  14049. return e.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/, function(e, t, n) {
  14050. return n === "ი" ? t + "ში" : t + n + "ში"
  14051. })
  14052. },
  14053. past: function(e) {
  14054. if (/(წამი|წუთი|საათი|დღე|თვე)/.test(e)) return e.replace(/(ი|ე)$/,
  14055. "ის წინ");
  14056. if (/წელი/.test(e)) return e.replace(/წელი$/, "წლის წინ");
  14057. return e
  14058. },
  14059. s: "რამდენიმე წამი",
  14060. ss: "%d წამი",
  14061. m: "წუთი",
  14062. mm: "%d წუთი",
  14063. h: "საათი",
  14064. hh: "%d საათი",
  14065. d: "დღე",
  14066. dd: "%d დღე",
  14067. M: "თვე",
  14068. MM: "%d თვე",
  14069. y: "წელი",
  14070. yy: "%d წელი"
  14071. },
  14072. dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,
  14073. ordinal: function(e) {
  14074. if (e === 0) return e;
  14075. if (e === 1) return e + "-ლი";
  14076. if (e < 20 || e <= 100 && e % 20 === 0 || e % 100 === 0) return "მე-" + e;
  14077. return e + "-ე"
  14078. },
  14079. week: {
  14080. dow: 1,
  14081. doy: 7
  14082. }
  14083. })
  14084. }(n(0))
  14085. }, function(e, t, n) {
  14086. ! function(e) {
  14087. "use strict";
  14088. //! moment.js locale configuration
  14089. var i = {
  14090. 0: "-ші",
  14091. 1: "-ші",
  14092. 2: "-ші",
  14093. 3: "-ші",
  14094. 4: "-ші",
  14095. 5: "-ші",
  14096. 6: "-шы",
  14097. 7: "-ші",
  14098. 8: "-ші",
  14099. 9: "-шы",
  14100. 10: "-шы",
  14101. 20: "-шы",
  14102. 30: "-шы",
  14103. 40: "-шы",
  14104. 50: "-ші",
  14105. 60: "-шы",
  14106. 70: "-ші",
  14107. 80: "-ші",
  14108. 90: "-шы",
  14109. 100: "-ші"
  14110. },
  14111. t;
  14112. e.defineLocale("kk", {
  14113. months: "қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан"
  14114. .split("_"),
  14115. monthsShort: "қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),
  14116. weekdays: "жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),
  14117. weekdaysShort: "жек_дүй_сей_сәр_бей_жұм_сен".split("_"),
  14118. weekdaysMin: "жк_дй_сй_ср_бй_жм_сн".split("_"),
  14119. longDateFormat: {
  14120. LT: "HH:mm",
  14121. LTS: "HH:mm:ss",
  14122. L: "DD.MM.YYYY",
  14123. LL: "D MMMM YYYY",
  14124. LLL: "D MMMM YYYY HH:mm",
  14125. LLLL: "dddd, D MMMM YYYY HH:mm"
  14126. },
  14127. calendar: {
  14128. sameDay: "[Бүгін сағат] LT",
  14129. nextDay: "[Ертең сағат] LT",
  14130. nextWeek: "dddd [сағат] LT",
  14131. lastDay: "[Кеше сағат] LT",
  14132. lastWeek: "[Өткен аптаның] dddd [сағат] LT",
  14133. sameElse: "L"
  14134. },
  14135. relativeTime: {
  14136. future: "%s ішінде",
  14137. past: "%s бұрын",
  14138. s: "бірнеше секунд",
  14139. ss: "%d секунд",
  14140. m: "бір минут",
  14141. mm: "%d минут",
  14142. h: "бір сағат",
  14143. hh: "%d сағат",
  14144. d: "бір күн",
  14145. dd: "%d күн",
  14146. M: "бір ай",
  14147. MM: "%d ай",
  14148. y: "бір жыл",
  14149. yy: "%d жыл"
  14150. },
  14151. dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/,
  14152. ordinal: function(e) {
  14153. var t = e % 10,
  14154. n = e >= 100 ? 100 : null;
  14155. return e + (i[e] || i[t] || i[n])
  14156. },
  14157. week: {
  14158. dow: 1,
  14159. doy: 7
  14160. }
  14161. })
  14162. }(n(0))
  14163. }, function(e, t, n) {
  14164. ! function(e) {
  14165. "use strict";
  14166. //! moment.js locale configuration
  14167. var t = {
  14168. 1: "១",
  14169. 2: "២",
  14170. 3: "៣",
  14171. 4: "៤",
  14172. 5: "៥",
  14173. 6: "៦",
  14174. 7: "៧",
  14175. 8: "៨",
  14176. 9: "៩",
  14177. 0: "០"
  14178. },
  14179. n = {
  14180. "១": "1",
  14181. "២": "2",
  14182. "៣": "3",
  14183. "៤": "4",
  14184. "៥": "5",
  14185. "៦": "6",
  14186. "៧": "7",
  14187. "៨": "8",
  14188. "៩": "9",
  14189. "០": "0"
  14190. },
  14191. i;
  14192. e.defineLocale("km", {
  14193. months: "មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ"
  14194. .split("_"),
  14195. monthsShort: "មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ"
  14196. .split("_"),
  14197. weekdays: "អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),
  14198. weekdaysShort: "អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),
  14199. weekdaysMin: "អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),
  14200. weekdaysParseExact: true,
  14201. longDateFormat: {
  14202. LT: "HH:mm",
  14203. LTS: "HH:mm:ss",
  14204. L: "DD/MM/YYYY",
  14205. LL: "D MMMM YYYY",
  14206. LLL: "D MMMM YYYY HH:mm",
  14207. LLLL: "dddd, D MMMM YYYY HH:mm"
  14208. },
  14209. meridiemParse: /ព្រឹក|ល្ងាច/,
  14210. isPM: function(e) {
  14211. return e === "ល្ងាច"
  14212. },
  14213. meridiem: function(e, t, n) {
  14214. if (e < 12) return "ព្រឹក";
  14215. else return "ល្ងាច"
  14216. },
  14217. calendar: {
  14218. sameDay: "[ថ្ងៃនេះ ម៉ោង] LT",
  14219. nextDay: "[ស្អែក ម៉ោង] LT",
  14220. nextWeek: "dddd [ម៉ោង] LT",
  14221. lastDay: "[ម្សិលមិញ ម៉ោង] LT",
  14222. lastWeek: "dddd [សប្តាហ៍មុន] [ម៉ោង] LT",
  14223. sameElse: "L"
  14224. },
  14225. relativeTime: {
  14226. future: "%sទៀត",
  14227. past: "%sមុន",
  14228. s: "ប៉ុន្មានវិនាទី",
  14229. ss: "%d វិនាទី",
  14230. m: "មួយនាទី",
  14231. mm: "%d នាទី",
  14232. h: "មួយម៉ោង",
  14233. hh: "%d ម៉ោង",
  14234. d: "មួយថ្ងៃ",
  14235. dd: "%d ថ្ងៃ",
  14236. M: "មួយខែ",
  14237. MM: "%d ខែ",
  14238. y: "មួយឆ្នាំ",
  14239. yy: "%d ឆ្នាំ"
  14240. },
  14241. dayOfMonthOrdinalParse: /ទី\d{1,2}/,
  14242. ordinal: "ទី%d",
  14243. preparse: function(e) {
  14244. return e.replace(/[១២៣៤៥៦៧៨៩០]/g, function(e) {
  14245. return n[e]
  14246. })
  14247. },
  14248. postformat: function(e) {
  14249. return e.replace(/\d/g, function(e) {
  14250. return t[e]
  14251. })
  14252. },
  14253. week: {
  14254. dow: 1,
  14255. doy: 4
  14256. }
  14257. })
  14258. }(n(0))
  14259. }, function(e, t, n) {
  14260. ! function(e) {
  14261. "use strict";
  14262. //! moment.js locale configuration
  14263. var t = {
  14264. 1: "೧",
  14265. 2: "೨",
  14266. 3: "೩",
  14267. 4: "೪",
  14268. 5: "೫",
  14269. 6: "೬",
  14270. 7: "೭",
  14271. 8: "೮",
  14272. 9: "೯",
  14273. 0: "೦"
  14274. },
  14275. n = {
  14276. "೧": "1",
  14277. "೨": "2",
  14278. "೩": "3",
  14279. "೪": "4",
  14280. "೫": "5",
  14281. "೬": "6",
  14282. "೭": "7",
  14283. "೮": "8",
  14284. "೯": "9",
  14285. "೦": "0"
  14286. },
  14287. i;
  14288. e.defineLocale("kn", {
  14289. months: "ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್"
  14290. .split("_"),
  14291. monthsShort: "ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ"
  14292. .split("_"),
  14293. monthsParseExact: true,
  14294. weekdays: "ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),
  14295. weekdaysShort: "ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),
  14296. weekdaysMin: "ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),
  14297. longDateFormat: {
  14298. LT: "A h:mm",
  14299. LTS: "A h:mm:ss",
  14300. L: "DD/MM/YYYY",
  14301. LL: "D MMMM YYYY",
  14302. LLL: "D MMMM YYYY, A h:mm",
  14303. LLLL: "dddd, D MMMM YYYY, A h:mm"
  14304. },
  14305. calendar: {
  14306. sameDay: "[ಇಂದು] LT",
  14307. nextDay: "[ನಾಳೆ] LT",
  14308. nextWeek: "dddd, LT",
  14309. lastDay: "[ನಿನ್ನೆ] LT",
  14310. lastWeek: "[ಕೊನೆಯ] dddd, LT",
  14311. sameElse: "L"
  14312. },
  14313. relativeTime: {
  14314. future: "%s ನಂತರ",
  14315. past: "%s ಹಿಂದೆ",
  14316. s: "ಕೆಲವು ಕ್ಷಣಗಳು",
  14317. ss: "%d ಸೆಕೆಂಡುಗಳು",
  14318. m: "ಒಂದು ನಿಮಿಷ",
  14319. mm: "%d ನಿಮಿಷ",
  14320. h: "ಒಂದು ಗಂಟೆ",
  14321. hh: "%d ಗಂಟೆ",
  14322. d: "ಒಂದು ದಿನ",
  14323. dd: "%d ದಿನ",
  14324. M: "ಒಂದು ತಿಂಗಳು",
  14325. MM: "%d ತಿಂಗಳು",
  14326. y: "ಒಂದು ವರ್ಷ",
  14327. yy: "%d ವರ್ಷ"
  14328. },
  14329. preparse: function(e) {
  14330. return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function(e) {
  14331. return n[e]
  14332. })
  14333. },
  14334. postformat: function(e) {
  14335. return e.replace(/\d/g, function(e) {
  14336. return t[e]
  14337. })
  14338. },
  14339. meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,
  14340. meridiemHour: function(e, t) {
  14341. if (e === 12) e = 0;
  14342. if (t === "ರಾತ್ರಿ") return e < 4 ? e : e + 12;
  14343. else if (t === "ಬೆಳಿಗ್ಗೆ") return e;
  14344. else if (t === "ಮಧ್ಯಾಹ್ನ") return e >= 10 ? e : e + 12;
  14345. else if (t === "ಸಂಜೆ") return e + 12
  14346. },
  14347. meridiem: function(e, t, n) {
  14348. if (e < 4) return "ರಾತ್ರಿ";
  14349. else if (e < 10) return "ಬೆಳಿಗ್ಗೆ";
  14350. else if (e < 17) return "ಮಧ್ಯಾಹ್ನ";
  14351. else if (e < 20) return "ಸಂಜೆ";
  14352. else return "ರಾತ್ರಿ"
  14353. },
  14354. dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/,
  14355. ordinal: function(e) {
  14356. return e + "ನೇ"
  14357. },
  14358. week: {
  14359. dow: 0,
  14360. doy: 6
  14361. }
  14362. })
  14363. }(n(0))
  14364. }, function(e, t, n) {
  14365. ! function(e) {
  14366. "use strict";
  14367. //! moment.js locale configuration
  14368. var t;
  14369. e.defineLocale("ko", {
  14370. months: "1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),
  14371. monthsShort: "1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),
  14372. weekdays: "일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),
  14373. weekdaysShort: "일_월_화_수_목_금_토".split("_"),
  14374. weekdaysMin: "일_월_화_수_목_금_토".split("_"),
  14375. longDateFormat: {
  14376. LT: "A h:mm",
  14377. LTS: "A h:mm:ss",
  14378. L: "YYYY.MM.DD.",
  14379. LL: "YYYY년 MMMM D일",
  14380. LLL: "YYYY년 MMMM D일 A h:mm",
  14381. LLLL: "YYYY년 MMMM D일 dddd A h:mm",
  14382. l: "YYYY.MM.DD.",
  14383. ll: "YYYY년 MMMM D일",
  14384. lll: "YYYY년 MMMM D일 A h:mm",
  14385. llll: "YYYY년 MMMM D일 dddd A h:mm"
  14386. },
  14387. calendar: {
  14388. sameDay: "오늘 LT",
  14389. nextDay: "내일 LT",
  14390. nextWeek: "dddd LT",
  14391. lastDay: "어제 LT",
  14392. lastWeek: "지난주 dddd LT",
  14393. sameElse: "L"
  14394. },
  14395. relativeTime: {
  14396. future: "%s 후",
  14397. past: "%s 전",
  14398. s: "몇 초",
  14399. ss: "%d초",
  14400. m: "1분",
  14401. mm: "%d분",
  14402. h: "한 시간",
  14403. hh: "%d시간",
  14404. d: "하루",
  14405. dd: "%d일",
  14406. M: "한 달",
  14407. MM: "%d달",
  14408. y: "일 년",
  14409. yy: "%d년"
  14410. },
  14411. dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/,
  14412. ordinal: function(e, t) {
  14413. switch (t) {
  14414. case "d":
  14415. case "D":
  14416. case "DDD":
  14417. return e + "일";
  14418. case "M":
  14419. return e + "월";
  14420. case "w":
  14421. case "W":
  14422. return e + "주";
  14423. default:
  14424. return e
  14425. }
  14426. },
  14427. meridiemParse: /오전|오후/,
  14428. isPM: function(e) {
  14429. return e === "오후"
  14430. },
  14431. meridiem: function(e, t, n) {
  14432. return e < 12 ? "오전" : "오후"
  14433. }
  14434. })
  14435. }(n(0))
  14436. }, function(e, t, n) {
  14437. ! function(e) {
  14438. "use strict";
  14439. //! moment.js locale configuration
  14440. var t = {
  14441. 1: "١",
  14442. 2: "٢",
  14443. 3: "٣",
  14444. 4: "٤",
  14445. 5: "٥",
  14446. 6: "٦",
  14447. 7: "٧",
  14448. 8: "٨",
  14449. 9: "٩",
  14450. 0: "٠"
  14451. },
  14452. n = {
  14453. "١": "1",
  14454. "٢": "2",
  14455. "٣": "3",
  14456. "٤": "4",
  14457. "٥": "5",
  14458. "٦": "6",
  14459. "٧": "7",
  14460. "٨": "8",
  14461. "٩": "9",
  14462. "٠": "0"
  14463. },
  14464. i = ["کانونی دووەم", "شوبات", "ئازار", "نیسان", "ئایار", "حوزەیران", "تەمموز", "ئاب",
  14465. "ئەیلوول", "تشرینی یەكەم", "تشرینی دووەم", "كانونی یەکەم"
  14466. ],
  14467. r;
  14468. e.defineLocale("ku", {
  14469. months: i,
  14470. monthsShort: i,
  14471. weekdays: "یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌"
  14472. .split("_"),
  14473. weekdaysShort: "یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split(
  14474. "_"),
  14475. weekdaysMin: "ی_د_س_چ_پ_ه_ش".split("_"),
  14476. weekdaysParseExact: true,
  14477. longDateFormat: {
  14478. LT: "HH:mm",
  14479. LTS: "HH:mm:ss",
  14480. L: "DD/MM/YYYY",
  14481. LL: "D MMMM YYYY",
  14482. LLL: "D MMMM YYYY HH:mm",
  14483. LLLL: "dddd, D MMMM YYYY HH:mm"
  14484. },
  14485. meridiemParse: /ئێواره‌|به‌یانی/,
  14486. isPM: function(e) {
  14487. return /ئێواره‌/.test(e)
  14488. },
  14489. meridiem: function(e, t, n) {
  14490. if (e < 12) return "به‌یانی";
  14491. else return "ئێواره‌"
  14492. },
  14493. calendar: {
  14494. sameDay: "[ئه‌مرۆ كاتژمێر] LT",
  14495. nextDay: "[به‌یانی كاتژمێر] LT",
  14496. nextWeek: "dddd [كاتژمێر] LT",
  14497. lastDay: "[دوێنێ كاتژمێر] LT",
  14498. lastWeek: "dddd [كاتژمێر] LT",
  14499. sameElse: "L"
  14500. },
  14501. relativeTime: {
  14502. future: "له‌ %s",
  14503. past: "%s",
  14504. s: "چه‌ند چركه‌یه‌ك",
  14505. ss: "چركه‌ %d",
  14506. m: "یه‌ك خوله‌ك",
  14507. mm: "%d خوله‌ك",
  14508. h: "یه‌ك كاتژمێر",
  14509. hh: "%d كاتژمێر",
  14510. d: "یه‌ك ڕۆژ",
  14511. dd: "%d ڕۆژ",
  14512. M: "یه‌ك مانگ",
  14513. MM: "%d مانگ",
  14514. y: "یه‌ك ساڵ",
  14515. yy: "%d ساڵ"
  14516. },
  14517. preparse: function(e) {
  14518. return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function(e) {
  14519. return n[e]
  14520. }).replace(/،/g, ",")
  14521. },
  14522. postformat: function(e) {
  14523. return e.replace(/\d/g, function(e) {
  14524. return t[e]
  14525. }).replace(/,/g, "،")
  14526. },
  14527. week: {
  14528. dow: 6,
  14529. doy: 12
  14530. }
  14531. })
  14532. }(n(0))
  14533. }, function(e, t, n) {
  14534. ! function(e) {
  14535. "use strict";
  14536. //! moment.js locale configuration
  14537. var i = {
  14538. 0: "-чү",
  14539. 1: "-чи",
  14540. 2: "-чи",
  14541. 3: "-чү",
  14542. 4: "-чү",
  14543. 5: "-чи",
  14544. 6: "-чы",
  14545. 7: "-чи",
  14546. 8: "-чи",
  14547. 9: "-чу",
  14548. 10: "-чу",
  14549. 20: "-чы",
  14550. 30: "-чу",
  14551. 40: "-чы",
  14552. 50: "-чү",
  14553. 60: "-чы",
  14554. 70: "-чи",
  14555. 80: "-чи",
  14556. 90: "-чу",
  14557. 100: "-чү"
  14558. },
  14559. t;
  14560. e.defineLocale("ky", {
  14561. months: "январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь"
  14562. .split("_"),
  14563. monthsShort: "янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),
  14564. weekdays: "Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),
  14565. weekdaysShort: "Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),
  14566. weekdaysMin: "Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),
  14567. longDateFormat: {
  14568. LT: "HH:mm",
  14569. LTS: "HH:mm:ss",
  14570. L: "DD.MM.YYYY",
  14571. LL: "D MMMM YYYY",
  14572. LLL: "D MMMM YYYY HH:mm",
  14573. LLLL: "dddd, D MMMM YYYY HH:mm"
  14574. },
  14575. calendar: {
  14576. sameDay: "[Бүгүн саат] LT",
  14577. nextDay: "[Эртең саат] LT",
  14578. nextWeek: "dddd [саат] LT",
  14579. lastDay: "[Кечээ саат] LT",
  14580. lastWeek: "[Өткөн аптанын] dddd [күнү] [саат] LT",
  14581. sameElse: "L"
  14582. },
  14583. relativeTime: {
  14584. future: "%s ичинде",
  14585. past: "%s мурун",
  14586. s: "бирнече секунд",
  14587. ss: "%d секунд",
  14588. m: "бир мүнөт",
  14589. mm: "%d мүнөт",
  14590. h: "бир саат",
  14591. hh: "%d саат",
  14592. d: "бир күн",
  14593. dd: "%d күн",
  14594. M: "бир ай",
  14595. MM: "%d ай",
  14596. y: "бир жыл",
  14597. yy: "%d жыл"
  14598. },
  14599. dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/,
  14600. ordinal: function(e) {
  14601. var t = e % 10,
  14602. n = e >= 100 ? 100 : null;
  14603. return e + (i[e] || i[t] || i[n])
  14604. },
  14605. week: {
  14606. dow: 1,
  14607. doy: 7
  14608. }
  14609. })
  14610. }(n(0))
  14611. }, function(e, t, n) {
  14612. ! function(e) {
  14613. "use strict";
  14614. //! moment.js locale configuration
  14615. function t(e, t, n, i) {
  14616. var r = {
  14617. m: ["eng Minutt", "enger Minutt"],
  14618. h: ["eng Stonn", "enger Stonn"],
  14619. d: ["een Dag", "engem Dag"],
  14620. M: ["ee Mount", "engem Mount"],
  14621. y: ["ee Joer", "engem Joer"]
  14622. };
  14623. return t ? r[n][0] : r[n][1]
  14624. }
  14625. function n(e) {
  14626. var t = e.substr(0, e.indexOf(" "));
  14627. if (r(t)) return "a " + e;
  14628. return "an " + e
  14629. }
  14630. function i(e) {
  14631. var t = e.substr(0, e.indexOf(" "));
  14632. if (r(t)) return "viru " + e;
  14633. return "virun " + e
  14634. }
  14635. function r(e) {
  14636. e = parseInt(e, 10);
  14637. if (isNaN(e)) return false;
  14638. if (e < 0) return true;
  14639. else if (e < 10) {
  14640. if (4 <= e && e <= 7) return true;
  14641. return false
  14642. } else if (e < 100) {
  14643. var t = e % 10,
  14644. n = e / 10;
  14645. if (t === 0) return r(n);
  14646. return r(t)
  14647. } else if (e < 1e4) {
  14648. while (e >= 10) e = e / 10;
  14649. return r(e)
  14650. } else {
  14651. e = e / 1e3;
  14652. return r(e)
  14653. }
  14654. }
  14655. var a;
  14656. e.defineLocale("lb", {
  14657. months: "Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember"
  14658. .split("_"),
  14659. monthsShort: "Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split(
  14660. "_"),
  14661. monthsParseExact: true,
  14662. weekdays: "Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split(
  14663. "_"),
  14664. weekdaysShort: "So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),
  14665. weekdaysMin: "So_Mé_Dë_Më_Do_Fr_Sa".split("_"),
  14666. weekdaysParseExact: true,
  14667. longDateFormat: {
  14668. LT: "H:mm [Auer]",
  14669. LTS: "H:mm:ss [Auer]",
  14670. L: "DD.MM.YYYY",
  14671. LL: "D. MMMM YYYY",
  14672. LLL: "D. MMMM YYYY H:mm [Auer]",
  14673. LLLL: "dddd, D. MMMM YYYY H:mm [Auer]"
  14674. },
  14675. calendar: {
  14676. sameDay: "[Haut um] LT",
  14677. sameElse: "L",
  14678. nextDay: "[Muer um] LT",
  14679. nextWeek: "dddd [um] LT",
  14680. lastDay: "[Gëschter um] LT",
  14681. lastWeek: function() {
  14682. switch (this.day()) {
  14683. case 2:
  14684. case 4:
  14685. return "[Leschten] dddd [um] LT";
  14686. default:
  14687. return "[Leschte] dddd [um] LT"
  14688. }
  14689. }
  14690. },
  14691. relativeTime: {
  14692. future: n,
  14693. past: i,
  14694. s: "e puer Sekonnen",
  14695. ss: "%d Sekonnen",
  14696. m: t,
  14697. mm: "%d Minutten",
  14698. h: t,
  14699. hh: "%d Stonnen",
  14700. d: t,
  14701. dd: "%d Deeg",
  14702. M: t,
  14703. MM: "%d Méint",
  14704. y: t,
  14705. yy: "%d Joer"
  14706. },
  14707. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14708. ordinal: "%d.",
  14709. week: {
  14710. dow: 1,
  14711. doy: 4
  14712. }
  14713. })
  14714. }(n(0))
  14715. }, function(e, t, n) {
  14716. ! function(e) {
  14717. "use strict";
  14718. //! moment.js locale configuration
  14719. var t;
  14720. e.defineLocale("lo", {
  14721. months: "ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ"
  14722. .split("_"),
  14723. monthsShort: "ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ"
  14724. .split("_"),
  14725. weekdays: "ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),
  14726. weekdaysShort: "ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),
  14727. weekdaysMin: "ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),
  14728. weekdaysParseExact: true,
  14729. longDateFormat: {
  14730. LT: "HH:mm",
  14731. LTS: "HH:mm:ss",
  14732. L: "DD/MM/YYYY",
  14733. LL: "D MMMM YYYY",
  14734. LLL: "D MMMM YYYY HH:mm",
  14735. LLLL: "ວັນdddd D MMMM YYYY HH:mm"
  14736. },
  14737. meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
  14738. isPM: function(e) {
  14739. return e === "ຕອນແລງ"
  14740. },
  14741. meridiem: function(e, t, n) {
  14742. if (e < 12) return "ຕອນເຊົ້າ";
  14743. else return "ຕອນແລງ"
  14744. },
  14745. calendar: {
  14746. sameDay: "[ມື້ນີ້ເວລາ] LT",
  14747. nextDay: "[ມື້ອື່ນເວລາ] LT",
  14748. nextWeek: "[ວັນ]dddd[ໜ້າເວລາ] LT",
  14749. lastDay: "[ມື້ວານນີ້ເວລາ] LT",
  14750. lastWeek: "[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",
  14751. sameElse: "L"
  14752. },
  14753. relativeTime: {
  14754. future: "ອີກ %s",
  14755. past: "%sຜ່ານມາ",
  14756. s: "ບໍ່ເທົ່າໃດວິນາທີ",
  14757. ss: "%d ວິນາທີ",
  14758. m: "1 ນາທີ",
  14759. mm: "%d ນາທີ",
  14760. h: "1 ຊົ່ວໂມງ",
  14761. hh: "%d ຊົ່ວໂມງ",
  14762. d: "1 ມື້",
  14763. dd: "%d ມື້",
  14764. M: "1 ເດືອນ",
  14765. MM: "%d ເດືອນ",
  14766. y: "1 ປີ",
  14767. yy: "%d ປີ"
  14768. },
  14769. dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
  14770. ordinal: function(e) {
  14771. return "ທີ່" + e
  14772. }
  14773. })
  14774. }(n(0))
  14775. }, function(e, t, n) {
  14776. ! function(e) {
  14777. "use strict";
  14778. //! moment.js locale configuration
  14779. var t = {
  14780. ss: "sekundė_sekundžių_sekundes",
  14781. m: "minutė_minutės_minutę",
  14782. mm: "minutės_minučių_minutes",
  14783. h: "valanda_valandos_valandą",
  14784. hh: "valandos_valandų_valandas",
  14785. d: "diena_dienos_dieną",
  14786. dd: "dienos_dienų_dienas",
  14787. M: "mėnuo_mėnesio_mėnesį",
  14788. MM: "mėnesiai_mėnesių_mėnesius",
  14789. y: "metai_metų_metus",
  14790. yy: "metai_metų_metus"
  14791. },
  14792. n;
  14793. function i(e, t, n, i) {
  14794. if (t) return "kelios sekundės";
  14795. else return i ? "kelių sekundžių" : "kelias sekundes"
  14796. }
  14797. function a(e, t, n, i) {
  14798. return t ? o(n)[0] : i ? o(n)[1] : o(n)[2]
  14799. }
  14800. function s(e) {
  14801. return e % 10 === 0 || e > 10 && e < 20
  14802. }
  14803. function o(e) {
  14804. return t[e].split("_")
  14805. }
  14806. function r(e, t, n, i) {
  14807. var r = e + " ";
  14808. if (e === 1) return r + a(e, t, n[0], i);
  14809. else if (t) return r + (s(e) ? o(n)[1] : o(n)[0]);
  14810. else if (i) return r + o(n)[1];
  14811. else return r + (s(e) ? o(n)[1] : o(n)[2])
  14812. }
  14813. e.defineLocale("lt", {
  14814. months: {
  14815. format: "sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio"
  14816. .split("_"),
  14817. standalone: "sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis"
  14818. .split("_"),
  14819. isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/
  14820. },
  14821. monthsShort: "sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),
  14822. weekdays: {
  14823. format: "sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį"
  14824. .split("_"),
  14825. standalone: "sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis"
  14826. .split("_"),
  14827. isFormat: /dddd HH:mm/
  14828. },
  14829. weekdaysShort: "Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),
  14830. weekdaysMin: "S_P_A_T_K_Pn_Š".split("_"),
  14831. weekdaysParseExact: true,
  14832. longDateFormat: {
  14833. LT: "HH:mm",
  14834. LTS: "HH:mm:ss",
  14835. L: "YYYY-MM-DD",
  14836. LL: "YYYY [m.] MMMM D [d.]",
  14837. LLL: "YYYY [m.] MMMM D [d.], HH:mm [val.]",
  14838. LLLL: "YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",
  14839. l: "YYYY-MM-DD",
  14840. ll: "YYYY [m.] MMMM D [d.]",
  14841. lll: "YYYY [m.] MMMM D [d.], HH:mm [val.]",
  14842. llll: "YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"
  14843. },
  14844. calendar: {
  14845. sameDay: "[Šiandien] LT",
  14846. nextDay: "[Rytoj] LT",
  14847. nextWeek: "dddd LT",
  14848. lastDay: "[Vakar] LT",
  14849. lastWeek: "[Praėjusį] dddd LT",
  14850. sameElse: "L"
  14851. },
  14852. relativeTime: {
  14853. future: "po %s",
  14854. past: "prieš %s",
  14855. s: i,
  14856. ss: r,
  14857. m: a,
  14858. mm: r,
  14859. h: a,
  14860. hh: r,
  14861. d: a,
  14862. dd: r,
  14863. M: a,
  14864. MM: r,
  14865. y: a,
  14866. yy: r
  14867. },
  14868. dayOfMonthOrdinalParse: /\d{1,2}-oji/,
  14869. ordinal: function(e) {
  14870. return e + "-oji"
  14871. },
  14872. week: {
  14873. dow: 1,
  14874. doy: 4
  14875. }
  14876. })
  14877. }(n(0))
  14878. }, function(e, t, n) {
  14879. ! function(e) {
  14880. "use strict";
  14881. //! moment.js locale configuration
  14882. var i = {
  14883. ss: "sekundes_sekundēm_sekunde_sekundes".split("_"),
  14884. m: "minūtes_minūtēm_minūte_minūtes".split("_"),
  14885. mm: "minūtes_minūtēm_minūte_minūtes".split("_"),
  14886. h: "stundas_stundām_stunda_stundas".split("_"),
  14887. hh: "stundas_stundām_stunda_stundas".split("_"),
  14888. d: "dienas_dienām_diena_dienas".split("_"),
  14889. dd: "dienas_dienām_diena_dienas".split("_"),
  14890. M: "mēneša_mēnešiem_mēnesis_mēneši".split("_"),
  14891. MM: "mēneša_mēnešiem_mēnesis_mēneši".split("_"),
  14892. y: "gada_gadiem_gads_gadi".split("_"),
  14893. yy: "gada_gadiem_gads_gadi".split("_")
  14894. },
  14895. t;
  14896. function r(e, t, n) {
  14897. if (n) return t % 10 === 1 && t % 100 !== 11 ? e[2] : e[3];
  14898. else return t % 10 === 1 && t % 100 !== 11 ? e[0] : e[1]
  14899. }
  14900. function n(e, t, n) {
  14901. return e + " " + r(i[n], e, t)
  14902. }
  14903. function a(e, t, n) {
  14904. return r(i[n], e, t)
  14905. }
  14906. function s(e, t) {
  14907. return t ? "dažas sekundes" : "dažām sekundēm"
  14908. }
  14909. e.defineLocale("lv", {
  14910. months: "janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris"
  14911. .split("_"),
  14912. monthsShort: "jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),
  14913. weekdays: "svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena"
  14914. .split("_"),
  14915. weekdaysShort: "Sv_P_O_T_C_Pk_S".split("_"),
  14916. weekdaysMin: "Sv_P_O_T_C_Pk_S".split("_"),
  14917. weekdaysParseExact: true,
  14918. longDateFormat: {
  14919. LT: "HH:mm",
  14920. LTS: "HH:mm:ss",
  14921. L: "DD.MM.YYYY.",
  14922. LL: "YYYY. [gada] D. MMMM",
  14923. LLL: "YYYY. [gada] D. MMMM, HH:mm",
  14924. LLLL: "YYYY. [gada] D. MMMM, dddd, HH:mm"
  14925. },
  14926. calendar: {
  14927. sameDay: "[Šodien pulksten] LT",
  14928. nextDay: "[Rīt pulksten] LT",
  14929. nextWeek: "dddd [pulksten] LT",
  14930. lastDay: "[Vakar pulksten] LT",
  14931. lastWeek: "[Pagājušā] dddd [pulksten] LT",
  14932. sameElse: "L"
  14933. },
  14934. relativeTime: {
  14935. future: "pēc %s",
  14936. past: "pirms %s",
  14937. s: s,
  14938. ss: n,
  14939. m: a,
  14940. mm: n,
  14941. h: a,
  14942. hh: n,
  14943. d: a,
  14944. dd: n,
  14945. M: a,
  14946. MM: n,
  14947. y: a,
  14948. yy: n
  14949. },
  14950. dayOfMonthOrdinalParse: /\d{1,2}\./,
  14951. ordinal: "%d.",
  14952. week: {
  14953. dow: 1,
  14954. doy: 4
  14955. }
  14956. })
  14957. }(n(0))
  14958. }, function(e, t, n) {
  14959. ! function(e) {
  14960. "use strict";
  14961. //! moment.js locale configuration
  14962. var r = {
  14963. words: {
  14964. ss: ["sekund", "sekunda", "sekundi"],
  14965. m: ["jedan minut", "jednog minuta"],
  14966. mm: ["minut", "minuta", "minuta"],
  14967. h: ["jedan sat", "jednog sata"],
  14968. hh: ["sat", "sata", "sati"],
  14969. dd: ["dan", "dana", "dana"],
  14970. MM: ["mjesec", "mjeseca", "mjeseci"],
  14971. yy: ["godina", "godine", "godina"]
  14972. },
  14973. correctGrammaticalCase: function(e, t) {
  14974. return e === 1 ? t[0] : e >= 2 && e <= 4 ? t[1] : t[2]
  14975. },
  14976. translate: function(e, t, n) {
  14977. var i = r.words[n];
  14978. if (n.length === 1) return t ? i[0] : i[1];
  14979. else return e + " " + r.correctGrammaticalCase(e, i)
  14980. }
  14981. },
  14982. t;
  14983. e.defineLocale("me", {
  14984. months: "januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar"
  14985. .split("_"),
  14986. monthsShort: "jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),
  14987. monthsParseExact: true,
  14988. weekdays: "nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),
  14989. weekdaysShort: "ned._pon._uto._sri._čet._pet._sub.".split("_"),
  14990. weekdaysMin: "ne_po_ut_sr_če_pe_su".split("_"),
  14991. weekdaysParseExact: true,
  14992. longDateFormat: {
  14993. LT: "H:mm",
  14994. LTS: "H:mm:ss",
  14995. L: "DD.MM.YYYY",
  14996. LL: "D. MMMM YYYY",
  14997. LLL: "D. MMMM YYYY H:mm",
  14998. LLLL: "dddd, D. MMMM YYYY H:mm"
  14999. },
  15000. calendar: {
  15001. sameDay: "[danas u] LT",
  15002. nextDay: "[sjutra u] LT",
  15003. nextWeek: function() {
  15004. switch (this.day()) {
  15005. case 0:
  15006. return "[u] [nedjelju] [u] LT";
  15007. case 3:
  15008. return "[u] [srijedu] [u] LT";
  15009. case 6:
  15010. return "[u] [subotu] [u] LT";
  15011. case 1:
  15012. case 2:
  15013. case 4:
  15014. case 5:
  15015. return "[u] dddd [u] LT"
  15016. }
  15017. },
  15018. lastDay: "[juče u] LT",
  15019. lastWeek: function() {
  15020. var e = ["[prošle] [nedjelje] [u] LT", "[prošlog] [ponedjeljka] [u] LT",
  15021. "[prošlog] [utorka] [u] LT", "[prošle] [srijede] [u] LT",
  15022. "[prošlog] [četvrtka] [u] LT", "[prošlog] [petka] [u] LT",
  15023. "[prošle] [subote] [u] LT"
  15024. ];
  15025. return e[this.day()]
  15026. },
  15027. sameElse: "L"
  15028. },
  15029. relativeTime: {
  15030. future: "za %s",
  15031. past: "prije %s",
  15032. s: "nekoliko sekundi",
  15033. ss: r.translate,
  15034. m: r.translate,
  15035. mm: r.translate,
  15036. h: r.translate,
  15037. hh: r.translate,
  15038. d: "dan",
  15039. dd: r.translate,
  15040. M: "mjesec",
  15041. MM: r.translate,
  15042. y: "godinu",
  15043. yy: r.translate
  15044. },
  15045. dayOfMonthOrdinalParse: /\d{1,2}\./,
  15046. ordinal: "%d.",
  15047. week: {
  15048. dow: 1,
  15049. doy: 7
  15050. }
  15051. })
  15052. }(n(0))
  15053. }, function(e, t, n) {
  15054. ! function(e) {
  15055. "use strict";
  15056. //! moment.js locale configuration
  15057. var t;
  15058. e.defineLocale("mi", {
  15059. 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"
  15060. .split("_"),
  15061. monthsShort: "Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split(
  15062. "_"),
  15063. monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  15064. monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  15065. monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
  15066. monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
  15067. weekdays: "Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),
  15068. weekdaysShort: "Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),
  15069. weekdaysMin: "Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),
  15070. longDateFormat: {
  15071. LT: "HH:mm",
  15072. LTS: "HH:mm:ss",
  15073. L: "DD/MM/YYYY",
  15074. LL: "D MMMM YYYY",
  15075. LLL: "D MMMM YYYY [i] HH:mm",
  15076. LLLL: "dddd, D MMMM YYYY [i] HH:mm"
  15077. },
  15078. calendar: {
  15079. sameDay: "[i teie mahana, i] LT",
  15080. nextDay: "[apopo i] LT",
  15081. nextWeek: "dddd [i] LT",
  15082. lastDay: "[inanahi i] LT",
  15083. lastWeek: "dddd [whakamutunga i] LT",
  15084. sameElse: "L"
  15085. },
  15086. relativeTime: {
  15087. future: "i roto i %s",
  15088. past: "%s i mua",
  15089. s: "te hēkona ruarua",
  15090. ss: "%d hēkona",
  15091. m: "he meneti",
  15092. mm: "%d meneti",
  15093. h: "te haora",
  15094. hh: "%d haora",
  15095. d: "he ra",
  15096. dd: "%d ra",
  15097. M: "he marama",
  15098. MM: "%d marama",
  15099. y: "he tau",
  15100. yy: "%d tau"
  15101. },
  15102. dayOfMonthOrdinalParse: /\d{1,2}º/,
  15103. ordinal: "%dº",
  15104. week: {
  15105. dow: 1,
  15106. doy: 4
  15107. }
  15108. })
  15109. }(n(0))
  15110. }, function(e, t, n) {
  15111. ! function(e) {
  15112. "use strict";
  15113. //! moment.js locale configuration
  15114. var t;
  15115. e.defineLocale("mk", {
  15116. months: "јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември"
  15117. .split("_"),
  15118. monthsShort: "јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),
  15119. weekdays: "недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),
  15120. weekdaysShort: "нед_пон_вто_сре_чет_пет_саб".split("_"),
  15121. weekdaysMin: "нe_пo_вт_ср_че_пе_сa".split("_"),
  15122. longDateFormat: {
  15123. LT: "H:mm",
  15124. LTS: "H:mm:ss",
  15125. L: "D.MM.YYYY",
  15126. LL: "D MMMM YYYY",
  15127. LLL: "D MMMM YYYY H:mm",
  15128. LLLL: "dddd, D MMMM YYYY H:mm"
  15129. },
  15130. calendar: {
  15131. sameDay: "[Денес во] LT",
  15132. nextDay: "[Утре во] LT",
  15133. nextWeek: "[Во] dddd [во] LT",
  15134. lastDay: "[Вчера во] LT",
  15135. lastWeek: function() {
  15136. switch (this.day()) {
  15137. case 0:
  15138. case 3:
  15139. case 6:
  15140. return "[Изминатата] dddd [во] LT";
  15141. case 1:
  15142. case 2:
  15143. case 4:
  15144. case 5:
  15145. return "[Изминатиот] dddd [во] LT"
  15146. }
  15147. },
  15148. sameElse: "L"
  15149. },
  15150. relativeTime: {
  15151. future: "за %s",
  15152. past: "пред %s",
  15153. s: "неколку секунди",
  15154. ss: "%d секунди",
  15155. m: "една минута",
  15156. mm: "%d минути",
  15157. h: "еден час",
  15158. hh: "%d часа",
  15159. d: "еден ден",
  15160. dd: "%d дена",
  15161. M: "еден месец",
  15162. MM: "%d месеци",
  15163. y: "една година",
  15164. yy: "%d години"
  15165. },
  15166. dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
  15167. ordinal: function(e) {
  15168. var t = e % 10,
  15169. n = e % 100;
  15170. if (e === 0) return e + "-ев";
  15171. else if (n === 0) return e + "-ен";
  15172. else if (n > 10 && n < 20) return e + "-ти";
  15173. else if (t === 1) return e + "-ви";
  15174. else if (t === 2) return e + "-ри";
  15175. else if (t === 7 || t === 8) return e + "-ми";
  15176. else return e + "-ти"
  15177. },
  15178. week: {
  15179. dow: 1,
  15180. doy: 7
  15181. }
  15182. })
  15183. }(n(0))
  15184. }, function(e, t, n) {
  15185. ! function(e) {
  15186. "use strict";
  15187. //! moment.js locale configuration
  15188. var t;
  15189. e.defineLocale("ml", {
  15190. months: "ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ"
  15191. .split("_"),
  15192. monthsShort: "ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം."
  15193. .split("_"),
  15194. monthsParseExact: true,
  15195. weekdays: "ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച"
  15196. .split("_"),
  15197. weekdaysShort: "ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),
  15198. weekdaysMin: "ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),
  15199. longDateFormat: {
  15200. LT: "A h:mm -നു",
  15201. LTS: "A h:mm:ss -നു",
  15202. L: "DD/MM/YYYY",
  15203. LL: "D MMMM YYYY",
  15204. LLL: "D MMMM YYYY, A h:mm -നു",
  15205. LLLL: "dddd, D MMMM YYYY, A h:mm -നു"
  15206. },
  15207. calendar: {
  15208. sameDay: "[ഇന്ന്] LT",
  15209. nextDay: "[നാളെ] LT",
  15210. nextWeek: "dddd, LT",
  15211. lastDay: "[ഇന്നലെ] LT",
  15212. lastWeek: "[കഴിഞ്ഞ] dddd, LT",
  15213. sameElse: "L"
  15214. },
  15215. relativeTime: {
  15216. future: "%s കഴിഞ്ഞ്",
  15217. past: "%s മുൻപ്",
  15218. s: "അൽപ നിമിഷങ്ങൾ",
  15219. ss: "%d സെക്കൻഡ്",
  15220. m: "ഒരു മിനിറ്റ്",
  15221. mm: "%d മിനിറ്റ്",
  15222. h: "ഒരു മണിക്കൂർ",
  15223. hh: "%d മണിക്കൂർ",
  15224. d: "ഒരു ദിവസം",
  15225. dd: "%d ദിവസം",
  15226. M: "ഒരു മാസം",
  15227. MM: "%d മാസം",
  15228. y: "ഒരു വർഷം",
  15229. yy: "%d വർഷം"
  15230. },
  15231. meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,
  15232. meridiemHour: function(e, t) {
  15233. if (e === 12) e = 0;
  15234. if (t === "രാത്രി" && e >= 4 || t === "ഉച്ച കഴിഞ്ഞ്" || t === "വൈകുന്നേരം")
  15235. return e + 12;
  15236. else return e
  15237. },
  15238. meridiem: function(e, t, n) {
  15239. if (e < 4) return "രാത്രി";
  15240. else if (e < 12) return "രാവിലെ";
  15241. else if (e < 17) return "ഉച്ച കഴിഞ്ഞ്";
  15242. else if (e < 20) return "വൈകുന്നേരം";
  15243. else return "രാത്രി"
  15244. }
  15245. })
  15246. }(n(0))
  15247. }, function(e, t, n) {
  15248. ! function(e) {
  15249. "use strict";
  15250. //! moment.js locale configuration
  15251. function t(e, t, n, i) {
  15252. switch (n) {
  15253. case "s":
  15254. return t ? "хэдхэн секунд" : "хэдхэн секундын";
  15255. case "ss":
  15256. return e + (t ? " секунд" : " секундын");
  15257. case "m":
  15258. case "mm":
  15259. return e + (t ? " минут" : " минутын");
  15260. case "h":
  15261. case "hh":
  15262. return e + (t ? " цаг" : " цагийн");
  15263. case "d":
  15264. case "dd":
  15265. return e + (t ? " өдөр" : " өдрийн");
  15266. case "M":
  15267. case "MM":
  15268. return e + (t ? " сар" : " сарын");
  15269. case "y":
  15270. case "yy":
  15271. return e + (t ? " жил" : " жилийн");
  15272. default:
  15273. return e
  15274. }
  15275. }
  15276. var n;
  15277. e.defineLocale("mn", {
  15278. months: "Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар"
  15279. .split("_"),
  15280. monthsShort: "1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар"
  15281. .split("_"),
  15282. monthsParseExact: true,
  15283. weekdays: "Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),
  15284. weekdaysShort: "Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),
  15285. weekdaysMin: "Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),
  15286. weekdaysParseExact: true,
  15287. longDateFormat: {
  15288. LT: "HH:mm",
  15289. LTS: "HH:mm:ss",
  15290. L: "YYYY-MM-DD",
  15291. LL: "YYYY оны MMMMын D",
  15292. LLL: "YYYY оны MMMMын D HH:mm",
  15293. LLLL: "dddd, YYYY оны MMMMын D HH:mm"
  15294. },
  15295. meridiemParse: /ҮӨ|ҮХ/i,
  15296. isPM: function(e) {
  15297. return e === "ҮХ"
  15298. },
  15299. meridiem: function(e, t, n) {
  15300. if (e < 12) return "ҮӨ";
  15301. else return "ҮХ"
  15302. },
  15303. calendar: {
  15304. sameDay: "[Өнөөдөр] LT",
  15305. nextDay: "[Маргааш] LT",
  15306. nextWeek: "[Ирэх] dddd LT",
  15307. lastDay: "[Өчигдөр] LT",
  15308. lastWeek: "[Өнгөрсөн] dddd LT",
  15309. sameElse: "L"
  15310. },
  15311. relativeTime: {
  15312. future: "%s дараа",
  15313. past: "%s өмнө",
  15314. s: t,
  15315. ss: t,
  15316. m: t,
  15317. mm: t,
  15318. h: t,
  15319. hh: t,
  15320. d: t,
  15321. dd: t,
  15322. M: t,
  15323. MM: t,
  15324. y: t,
  15325. yy: t
  15326. },
  15327. dayOfMonthOrdinalParse: /\d{1,2} өдөр/,
  15328. ordinal: function(e, t) {
  15329. switch (t) {
  15330. case "d":
  15331. case "D":
  15332. case "DDD":
  15333. return e + " өдөр";
  15334. default:
  15335. return e
  15336. }
  15337. }
  15338. })
  15339. }(n(0))
  15340. }, function(e, t, n) {
  15341. ! function(e) {
  15342. "use strict";
  15343. //! moment.js locale configuration
  15344. var t = {
  15345. 1: "१",
  15346. 2: "२",
  15347. 3: "३",
  15348. 4: "४",
  15349. 5: "५",
  15350. 6: "६",
  15351. 7: "७",
  15352. 8: "८",
  15353. 9: "९",
  15354. 0: "०"
  15355. },
  15356. n = {
  15357. "१": "1",
  15358. "२": "2",
  15359. "३": "3",
  15360. "४": "4",
  15361. "५": "5",
  15362. "६": "6",
  15363. "७": "7",
  15364. "८": "8",
  15365. "९": "9",
  15366. "०": "0"
  15367. },
  15368. i;
  15369. function r(e, t, n, i) {
  15370. var r = "";
  15371. if (t) switch (n) {
  15372. case "s":
  15373. r = "काही सेकंद";
  15374. break;
  15375. case "ss":
  15376. r = "%d सेकंद";
  15377. break;
  15378. case "m":
  15379. r = "एक मिनिट";
  15380. break;
  15381. case "mm":
  15382. r = "%d मिनिटे";
  15383. break;
  15384. case "h":
  15385. r = "एक तास";
  15386. break;
  15387. case "hh":
  15388. r = "%d तास";
  15389. break;
  15390. case "d":
  15391. r = "एक दिवस";
  15392. break;
  15393. case "dd":
  15394. r = "%d दिवस";
  15395. break;
  15396. case "M":
  15397. r = "एक महिना";
  15398. break;
  15399. case "MM":
  15400. r = "%d महिने";
  15401. break;
  15402. case "y":
  15403. r = "एक वर्ष";
  15404. break;
  15405. case "yy":
  15406. r = "%d वर्षे";
  15407. break
  15408. } else switch (n) {
  15409. case "s":
  15410. r = "काही सेकंदां";
  15411. break;
  15412. case "ss":
  15413. r = "%d सेकंदां";
  15414. break;
  15415. case "m":
  15416. r = "एका मिनिटा";
  15417. break;
  15418. case "mm":
  15419. r = "%d मिनिटां";
  15420. break;
  15421. case "h":
  15422. r = "एका तासा";
  15423. break;
  15424. case "hh":
  15425. r = "%d तासां";
  15426. break;
  15427. case "d":
  15428. r = "एका दिवसा";
  15429. break;
  15430. case "dd":
  15431. r = "%d दिवसां";
  15432. break;
  15433. case "M":
  15434. r = "एका महिन्या";
  15435. break;
  15436. case "MM":
  15437. r = "%d महिन्यां";
  15438. break;
  15439. case "y":
  15440. r = "एका वर्षा";
  15441. break;
  15442. case "yy":
  15443. r = "%d वर्षां";
  15444. break
  15445. }
  15446. return r.replace(/%d/i, e)
  15447. }
  15448. e.defineLocale("mr", {
  15449. months: "जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर"
  15450. .split("_"),
  15451. monthsShort: "जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें."
  15452. .split("_"),
  15453. monthsParseExact: true,
  15454. weekdays: "रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),
  15455. weekdaysShort: "रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),
  15456. weekdaysMin: "र_सो_मं_बु_गु_शु_श".split("_"),
  15457. longDateFormat: {
  15458. LT: "A h:mm वाजता",
  15459. LTS: "A h:mm:ss वाजता",
  15460. L: "DD/MM/YYYY",
  15461. LL: "D MMMM YYYY",
  15462. LLL: "D MMMM YYYY, A h:mm वाजता",
  15463. LLLL: "dddd, D MMMM YYYY, A h:mm वाजता"
  15464. },
  15465. calendar: {
  15466. sameDay: "[आज] LT",
  15467. nextDay: "[उद्या] LT",
  15468. nextWeek: "dddd, LT",
  15469. lastDay: "[काल] LT",
  15470. lastWeek: "[मागील] dddd, LT",
  15471. sameElse: "L"
  15472. },
  15473. relativeTime: {
  15474. future: "%sमध्ये",
  15475. past: "%sपूर्वी",
  15476. s: r,
  15477. ss: r,
  15478. m: r,
  15479. mm: r,
  15480. h: r,
  15481. hh: r,
  15482. d: r,
  15483. dd: r,
  15484. M: r,
  15485. MM: r,
  15486. y: r,
  15487. yy: r
  15488. },
  15489. preparse: function(e) {
  15490. return e.replace(/[१२३४५६७८९०]/g, function(e) {
  15491. return n[e]
  15492. })
  15493. },
  15494. postformat: function(e) {
  15495. return e.replace(/\d/g, function(e) {
  15496. return t[e]
  15497. })
  15498. },
  15499. meridiemParse: /पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,
  15500. meridiemHour: function(e, t) {
  15501. if (e === 12) e = 0;
  15502. if (t === "पहाटे" || t === "सकाळी") return e;
  15503. else if (t === "दुपारी" || t === "सायंकाळी" || t === "रात्री") return e >=
  15504. 12 ? e : e + 12
  15505. },
  15506. meridiem: function(e, t, n) {
  15507. if (e >= 0 && e < 6) return "पहाटे";
  15508. else if (e < 12) return "सकाळी";
  15509. else if (e < 17) return "दुपारी";
  15510. else if (e < 20) return "सायंकाळी";
  15511. else return "रात्री"
  15512. },
  15513. week: {
  15514. dow: 0,
  15515. doy: 6
  15516. }
  15517. })
  15518. }(n(0))
  15519. }, function(e, t, n) {
  15520. ! function(e) {
  15521. "use strict";
  15522. //! moment.js locale configuration
  15523. var t;
  15524. e.defineLocale("ms", {
  15525. months: "Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember"
  15526. .split("_"),
  15527. monthsShort: "Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),
  15528. weekdays: "Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),
  15529. weekdaysShort: "Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),
  15530. weekdaysMin: "Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),
  15531. longDateFormat: {
  15532. LT: "HH.mm",
  15533. LTS: "HH.mm.ss",
  15534. L: "DD/MM/YYYY",
  15535. LL: "D MMMM YYYY",
  15536. LLL: "D MMMM YYYY [pukul] HH.mm",
  15537. LLLL: "dddd, D MMMM YYYY [pukul] HH.mm"
  15538. },
  15539. meridiemParse: /pagi|tengahari|petang|malam/,
  15540. meridiemHour: function(e, t) {
  15541. if (e === 12) e = 0;
  15542. if (t === "pagi") return e;
  15543. else if (t === "tengahari") return e >= 11 ? e : e + 12;
  15544. else if (t === "petang" || t === "malam") return e + 12
  15545. },
  15546. meridiem: function(e, t, n) {
  15547. if (e < 11) return "pagi";
  15548. else if (e < 15) return "tengahari";
  15549. else if (e < 19) return "petang";
  15550. else return "malam"
  15551. },
  15552. calendar: {
  15553. sameDay: "[Hari ini pukul] LT",
  15554. nextDay: "[Esok pukul] LT",
  15555. nextWeek: "dddd [pukul] LT",
  15556. lastDay: "[Kelmarin pukul] LT",
  15557. lastWeek: "dddd [lepas pukul] LT",
  15558. sameElse: "L"
  15559. },
  15560. relativeTime: {
  15561. future: "dalam %s",
  15562. past: "%s yang lepas",
  15563. s: "beberapa saat",
  15564. ss: "%d saat",
  15565. m: "seminit",
  15566. mm: "%d minit",
  15567. h: "sejam",
  15568. hh: "%d jam",
  15569. d: "sehari",
  15570. dd: "%d hari",
  15571. M: "sebulan",
  15572. MM: "%d bulan",
  15573. y: "setahun",
  15574. yy: "%d tahun"
  15575. },
  15576. week: {
  15577. dow: 1,
  15578. doy: 7
  15579. }
  15580. })
  15581. }(n(0))
  15582. }, function(e, t, n) {
  15583. ! function(e) {
  15584. "use strict";
  15585. //! moment.js locale configuration
  15586. var t;
  15587. e.defineLocale("ms-my", {
  15588. months: "Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember"
  15589. .split("_"),
  15590. monthsShort: "Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),
  15591. weekdays: "Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),
  15592. weekdaysShort: "Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),
  15593. weekdaysMin: "Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),
  15594. longDateFormat: {
  15595. LT: "HH.mm",
  15596. LTS: "HH.mm.ss",
  15597. L: "DD/MM/YYYY",
  15598. LL: "D MMMM YYYY",
  15599. LLL: "D MMMM YYYY [pukul] HH.mm",
  15600. LLLL: "dddd, D MMMM YYYY [pukul] HH.mm"
  15601. },
  15602. meridiemParse: /pagi|tengahari|petang|malam/,
  15603. meridiemHour: function(e, t) {
  15604. if (e === 12) e = 0;
  15605. if (t === "pagi") return e;
  15606. else if (t === "tengahari") return e >= 11 ? e : e + 12;
  15607. else if (t === "petang" || t === "malam") return e + 12
  15608. },
  15609. meridiem: function(e, t, n) {
  15610. if (e < 11) return "pagi";
  15611. else if (e < 15) return "tengahari";
  15612. else if (e < 19) return "petang";
  15613. else return "malam"
  15614. },
  15615. calendar: {
  15616. sameDay: "[Hari ini pukul] LT",
  15617. nextDay: "[Esok pukul] LT",
  15618. nextWeek: "dddd [pukul] LT",
  15619. lastDay: "[Kelmarin pukul] LT",
  15620. lastWeek: "dddd [lepas pukul] LT",
  15621. sameElse: "L"
  15622. },
  15623. relativeTime: {
  15624. future: "dalam %s",
  15625. past: "%s yang lepas",
  15626. s: "beberapa saat",
  15627. ss: "%d saat",
  15628. m: "seminit",
  15629. mm: "%d minit",
  15630. h: "sejam",
  15631. hh: "%d jam",
  15632. d: "sehari",
  15633. dd: "%d hari",
  15634. M: "sebulan",
  15635. MM: "%d bulan",
  15636. y: "setahun",
  15637. yy: "%d tahun"
  15638. },
  15639. week: {
  15640. dow: 1,
  15641. doy: 7
  15642. }
  15643. })
  15644. }(n(0))
  15645. }, function(e, t, n) {
  15646. ! function(e) {
  15647. "use strict";
  15648. //! moment.js locale configuration
  15649. var t;
  15650. e.defineLocale("mt", {
  15651. months: "Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru"
  15652. .split("_"),
  15653. monthsShort: "Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),
  15654. weekdays: "Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split(
  15655. "_"),
  15656. weekdaysShort: "Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),
  15657. weekdaysMin: "Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),
  15658. longDateFormat: {
  15659. LT: "HH:mm",
  15660. LTS: "HH:mm:ss",
  15661. L: "DD/MM/YYYY",
  15662. LL: "D MMMM YYYY",
  15663. LLL: "D MMMM YYYY HH:mm",
  15664. LLLL: "dddd, D MMMM YYYY HH:mm"
  15665. },
  15666. calendar: {
  15667. sameDay: "[Illum fil-]LT",
  15668. nextDay: "[Għada fil-]LT",
  15669. nextWeek: "dddd [fil-]LT",
  15670. lastDay: "[Il-bieraħ fil-]LT",
  15671. lastWeek: "dddd [li għadda] [fil-]LT",
  15672. sameElse: "L"
  15673. },
  15674. relativeTime: {
  15675. future: "f’ %s",
  15676. past: "%s ilu",
  15677. s: "ftit sekondi",
  15678. ss: "%d sekondi",
  15679. m: "minuta",
  15680. mm: "%d minuti",
  15681. h: "siegħa",
  15682. hh: "%d siegħat",
  15683. d: "ġurnata",
  15684. dd: "%d ġranet",
  15685. M: "xahar",
  15686. MM: "%d xhur",
  15687. y: "sena",
  15688. yy: "%d sni"
  15689. },
  15690. dayOfMonthOrdinalParse: /\d{1,2}º/,
  15691. ordinal: "%dº",
  15692. week: {
  15693. dow: 1,
  15694. doy: 4
  15695. }
  15696. })
  15697. }(n(0))
  15698. }, function(e, t, n) {
  15699. ! function(e) {
  15700. "use strict";
  15701. //! moment.js locale configuration
  15702. var t = {
  15703. 1: "၁",
  15704. 2: "၂",
  15705. 3: "၃",
  15706. 4: "၄",
  15707. 5: "၅",
  15708. 6: "၆",
  15709. 7: "၇",
  15710. 8: "၈",
  15711. 9: "၉",
  15712. 0: "၀"
  15713. },
  15714. n = {
  15715. "၁": "1",
  15716. "၂": "2",
  15717. "၃": "3",
  15718. "၄": "4",
  15719. "၅": "5",
  15720. "၆": "6",
  15721. "၇": "7",
  15722. "၈": "8",
  15723. "၉": "9",
  15724. "၀": "0"
  15725. },
  15726. i;
  15727. e.defineLocale("my", {
  15728. months: "ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ"
  15729. .split("_"),
  15730. monthsShort: "ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),
  15731. weekdays: "တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),
  15732. weekdaysShort: "နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),
  15733. weekdaysMin: "နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),
  15734. longDateFormat: {
  15735. LT: "HH:mm",
  15736. LTS: "HH:mm:ss",
  15737. L: "DD/MM/YYYY",
  15738. LL: "D MMMM YYYY",
  15739. LLL: "D MMMM YYYY HH:mm",
  15740. LLLL: "dddd D MMMM YYYY HH:mm"
  15741. },
  15742. calendar: {
  15743. sameDay: "[ယနေ.] LT [မှာ]",
  15744. nextDay: "[မနက်ဖြန်] LT [မှာ]",
  15745. nextWeek: "dddd LT [မှာ]",
  15746. lastDay: "[မနေ.က] LT [မှာ]",
  15747. lastWeek: "[ပြီးခဲ့သော] dddd LT [မှာ]",
  15748. sameElse: "L"
  15749. },
  15750. relativeTime: {
  15751. future: "လာမည့် %s မှာ",
  15752. past: "လွန်ခဲ့သော %s က",
  15753. s: "စက္ကန်.အနည်းငယ်",
  15754. ss: "%d စက္ကန့်",
  15755. m: "တစ်မိနစ်",
  15756. mm: "%d မိနစ်",
  15757. h: "တစ်နာရီ",
  15758. hh: "%d နာရီ",
  15759. d: "တစ်ရက်",
  15760. dd: "%d ရက်",
  15761. M: "တစ်လ",
  15762. MM: "%d လ",
  15763. y: "တစ်နှစ်",
  15764. yy: "%d နှစ်"
  15765. },
  15766. preparse: function(e) {
  15767. return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function(e) {
  15768. return n[e]
  15769. })
  15770. },
  15771. postformat: function(e) {
  15772. return e.replace(/\d/g, function(e) {
  15773. return t[e]
  15774. })
  15775. },
  15776. week: {
  15777. dow: 1,
  15778. doy: 4
  15779. }
  15780. })
  15781. }(n(0))
  15782. }, function(e, t, n) {
  15783. ! function(e) {
  15784. "use strict";
  15785. //! moment.js locale configuration
  15786. var t;
  15787. e.defineLocale("nb", {
  15788. months: "januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember"
  15789. .split("_"),
  15790. monthsShort: "jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split(
  15791. "_"),
  15792. monthsParseExact: true,
  15793. weekdays: "søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),
  15794. weekdaysShort: "sø._ma._ti._on._to._fr._lø.".split("_"),
  15795. weekdaysMin: "sø_ma_ti_on_to_fr_lø".split("_"),
  15796. weekdaysParseExact: true,
  15797. longDateFormat: {
  15798. LT: "HH:mm",
  15799. LTS: "HH:mm:ss",
  15800. L: "DD.MM.YYYY",
  15801. LL: "D. MMMM YYYY",
  15802. LLL: "D. MMMM YYYY [kl.] HH:mm",
  15803. LLLL: "dddd D. MMMM YYYY [kl.] HH:mm"
  15804. },
  15805. calendar: {
  15806. sameDay: "[i dag kl.] LT",
  15807. nextDay: "[i morgen kl.] LT",
  15808. nextWeek: "dddd [kl.] LT",
  15809. lastDay: "[i går kl.] LT",
  15810. lastWeek: "[forrige] dddd [kl.] LT",
  15811. sameElse: "L"
  15812. },
  15813. relativeTime: {
  15814. future: "om %s",
  15815. past: "%s siden",
  15816. s: "noen sekunder",
  15817. ss: "%d sekunder",
  15818. m: "ett minutt",
  15819. mm: "%d minutter",
  15820. h: "en time",
  15821. hh: "%d timer",
  15822. d: "en dag",
  15823. dd: "%d dager",
  15824. w: "en uke",
  15825. ww: "%d uker",
  15826. M: "en måned",
  15827. MM: "%d måneder",
  15828. y: "ett år",
  15829. yy: "%d år"
  15830. },
  15831. dayOfMonthOrdinalParse: /\d{1,2}\./,
  15832. ordinal: "%d.",
  15833. week: {
  15834. dow: 1,
  15835. doy: 4
  15836. }
  15837. })
  15838. }(n(0))
  15839. }, function(e, t, n) {
  15840. ! function(e) {
  15841. "use strict";
  15842. //! moment.js locale configuration
  15843. var t = {
  15844. 1: "१",
  15845. 2: "२",
  15846. 3: "३",
  15847. 4: "४",
  15848. 5: "५",
  15849. 6: "६",
  15850. 7: "७",
  15851. 8: "८",
  15852. 9: "९",
  15853. 0: "०"
  15854. },
  15855. n = {
  15856. "१": "1",
  15857. "२": "2",
  15858. "३": "3",
  15859. "४": "4",
  15860. "५": "5",
  15861. "६": "6",
  15862. "७": "7",
  15863. "८": "8",
  15864. "९": "9",
  15865. "०": "0"
  15866. },
  15867. i;
  15868. e.defineLocale("ne", {
  15869. months: "जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर"
  15870. .split("_"),
  15871. monthsShort: "जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे."
  15872. .split("_"),
  15873. monthsParseExact: true,
  15874. weekdays: "आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),
  15875. weekdaysShort: "आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),
  15876. weekdaysMin: "आ._सो._मं._बु._बि._शु._श.".split("_"),
  15877. weekdaysParseExact: true,
  15878. longDateFormat: {
  15879. LT: "Aको h:mm बजे",
  15880. LTS: "Aको h:mm:ss बजे",
  15881. L: "DD/MM/YYYY",
  15882. LL: "D MMMM YYYY",
  15883. LLL: "D MMMM YYYY, Aको h:mm बजे",
  15884. LLLL: "dddd, D MMMM YYYY, Aको h:mm बजे"
  15885. },
  15886. preparse: function(e) {
  15887. return e.replace(/[१२३४५६७८९०]/g, function(e) {
  15888. return n[e]
  15889. })
  15890. },
  15891. postformat: function(e) {
  15892. return e.replace(/\d/g, function(e) {
  15893. return t[e]
  15894. })
  15895. },
  15896. meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
  15897. meridiemHour: function(e, t) {
  15898. if (e === 12) e = 0;
  15899. if (t === "राति") return e < 4 ? e : e + 12;
  15900. else if (t === "बिहान") return e;
  15901. else if (t === "दिउँसो") return e >= 10 ? e : e + 12;
  15902. else if (t === "साँझ") return e + 12
  15903. },
  15904. meridiem: function(e, t, n) {
  15905. if (e < 3) return "राति";
  15906. else if (e < 12) return "बिहान";
  15907. else if (e < 16) return "दिउँसो";
  15908. else if (e < 20) return "साँझ";
  15909. else return "राति"
  15910. },
  15911. calendar: {
  15912. sameDay: "[आज] LT",
  15913. nextDay: "[भोलि] LT",
  15914. nextWeek: "[आउँदो] dddd[,] LT",
  15915. lastDay: "[हिजो] LT",
  15916. lastWeek: "[गएको] dddd[,] LT",
  15917. sameElse: "L"
  15918. },
  15919. relativeTime: {
  15920. future: "%sमा",
  15921. past: "%s अगाडि",
  15922. s: "केही क्षण",
  15923. ss: "%d सेकेण्ड",
  15924. m: "एक मिनेट",
  15925. mm: "%d मिनेट",
  15926. h: "एक घण्टा",
  15927. hh: "%d घण्टा",
  15928. d: "एक दिन",
  15929. dd: "%d दिन",
  15930. M: "एक महिना",
  15931. MM: "%d महिना",
  15932. y: "एक बर्ष",
  15933. yy: "%d बर्ष"
  15934. },
  15935. week: {
  15936. dow: 0,
  15937. doy: 6
  15938. }
  15939. })
  15940. }(n(0))
  15941. }, function(e, t, n) {
  15942. ! function(e) {
  15943. "use strict";
  15944. //! moment.js locale configuration
  15945. var n = "jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),
  15946. i = "jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),
  15947. t = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i,
  15948. /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i
  15949. ],
  15950. r =
  15951. /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  15952. a;
  15953. e.defineLocale("nl", {
  15954. months: "januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december"
  15955. .split("_"),
  15956. monthsShort: function(e, t) {
  15957. if (!e) return n;
  15958. else if (/-MMM-/.test(t)) return i[e.month()];
  15959. else return n[e.month()]
  15960. },
  15961. monthsRegex: r,
  15962. monthsShortRegex: r,
  15963. monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
  15964. monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  15965. monthsParse: t,
  15966. longMonthsParse: t,
  15967. shortMonthsParse: t,
  15968. weekdays: "zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),
  15969. weekdaysShort: "zo._ma._di._wo._do._vr._za.".split("_"),
  15970. weekdaysMin: "zo_ma_di_wo_do_vr_za".split("_"),
  15971. weekdaysParseExact: true,
  15972. longDateFormat: {
  15973. LT: "HH:mm",
  15974. LTS: "HH:mm:ss",
  15975. L: "DD-MM-YYYY",
  15976. LL: "D MMMM YYYY",
  15977. LLL: "D MMMM YYYY HH:mm",
  15978. LLLL: "dddd D MMMM YYYY HH:mm"
  15979. },
  15980. calendar: {
  15981. sameDay: "[vandaag om] LT",
  15982. nextDay: "[morgen om] LT",
  15983. nextWeek: "dddd [om] LT",
  15984. lastDay: "[gisteren om] LT",
  15985. lastWeek: "[afgelopen] dddd [om] LT",
  15986. sameElse: "L"
  15987. },
  15988. relativeTime: {
  15989. future: "over %s",
  15990. past: "%s geleden",
  15991. s: "een paar seconden",
  15992. ss: "%d seconden",
  15993. m: "één minuut",
  15994. mm: "%d minuten",
  15995. h: "één uur",
  15996. hh: "%d uur",
  15997. d: "één dag",
  15998. dd: "%d dagen",
  15999. w: "één week",
  16000. ww: "%d weken",
  16001. M: "één maand",
  16002. MM: "%d maanden",
  16003. y: "één jaar",
  16004. yy: "%d jaar"
  16005. },
  16006. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  16007. ordinal: function(e) {
  16008. return e + (e === 1 || e === 8 || e >= 20 ? "ste" : "de")
  16009. },
  16010. week: {
  16011. dow: 1,
  16012. doy: 4
  16013. }
  16014. })
  16015. }(n(0))
  16016. }, function(e, t, n) {
  16017. ! function(e) {
  16018. "use strict";
  16019. //! moment.js locale configuration
  16020. var n = "jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),
  16021. i = "jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),
  16022. t = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i,
  16023. /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i
  16024. ],
  16025. r =
  16026. /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  16027. a;
  16028. e.defineLocale("nl-be", {
  16029. months: "januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december"
  16030. .split("_"),
  16031. monthsShort: function(e, t) {
  16032. if (!e) return n;
  16033. else if (/-MMM-/.test(t)) return i[e.month()];
  16034. else return n[e.month()]
  16035. },
  16036. monthsRegex: r,
  16037. monthsShortRegex: r,
  16038. monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
  16039. monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
  16040. monthsParse: t,
  16041. longMonthsParse: t,
  16042. shortMonthsParse: t,
  16043. weekdays: "zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),
  16044. weekdaysShort: "zo._ma._di._wo._do._vr._za.".split("_"),
  16045. weekdaysMin: "zo_ma_di_wo_do_vr_za".split("_"),
  16046. weekdaysParseExact: true,
  16047. longDateFormat: {
  16048. LT: "HH:mm",
  16049. LTS: "HH:mm:ss",
  16050. L: "DD/MM/YYYY",
  16051. LL: "D MMMM YYYY",
  16052. LLL: "D MMMM YYYY HH:mm",
  16053. LLLL: "dddd D MMMM YYYY HH:mm"
  16054. },
  16055. calendar: {
  16056. sameDay: "[vandaag om] LT",
  16057. nextDay: "[morgen om] LT",
  16058. nextWeek: "dddd [om] LT",
  16059. lastDay: "[gisteren om] LT",
  16060. lastWeek: "[afgelopen] dddd [om] LT",
  16061. sameElse: "L"
  16062. },
  16063. relativeTime: {
  16064. future: "over %s",
  16065. past: "%s geleden",
  16066. s: "een paar seconden",
  16067. ss: "%d seconden",
  16068. m: "één minuut",
  16069. mm: "%d minuten",
  16070. h: "één uur",
  16071. hh: "%d uur",
  16072. d: "één dag",
  16073. dd: "%d dagen",
  16074. M: "één maand",
  16075. MM: "%d maanden",
  16076. y: "één jaar",
  16077. yy: "%d jaar"
  16078. },
  16079. dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
  16080. ordinal: function(e) {
  16081. return e + (e === 1 || e === 8 || e >= 20 ? "ste" : "de")
  16082. },
  16083. week: {
  16084. dow: 1,
  16085. doy: 4
  16086. }
  16087. })
  16088. }(n(0))
  16089. }, function(e, t, n) {
  16090. ! function(e) {
  16091. "use strict";
  16092. //! moment.js locale configuration
  16093. var t;
  16094. e.defineLocale("nn", {
  16095. months: "januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember"
  16096. .split("_"),
  16097. monthsShort: "jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split(
  16098. "_"),
  16099. monthsParseExact: true,
  16100. weekdays: "sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),
  16101. weekdaysShort: "su._må._ty._on._to._fr._lau.".split("_"),
  16102. weekdaysMin: "su_må_ty_on_to_fr_la".split("_"),
  16103. weekdaysParseExact: true,
  16104. longDateFormat: {
  16105. LT: "HH:mm",
  16106. LTS: "HH:mm:ss",
  16107. L: "DD.MM.YYYY",
  16108. LL: "D. MMMM YYYY",
  16109. LLL: "D. MMMM YYYY [kl.] H:mm",
  16110. LLLL: "dddd D. MMMM YYYY [kl.] HH:mm"
  16111. },
  16112. calendar: {
  16113. sameDay: "[I dag klokka] LT",
  16114. nextDay: "[I morgon klokka] LT",
  16115. nextWeek: "dddd [klokka] LT",
  16116. lastDay: "[I går klokka] LT",
  16117. lastWeek: "[Føregåande] dddd [klokka] LT",
  16118. sameElse: "L"
  16119. },
  16120. relativeTime: {
  16121. future: "om %s",
  16122. past: "%s sidan",
  16123. s: "nokre sekund",
  16124. ss: "%d sekund",
  16125. m: "eit minutt",
  16126. mm: "%d minutt",
  16127. h: "ein time",
  16128. hh: "%d timar",
  16129. d: "ein dag",
  16130. dd: "%d dagar",
  16131. w: "ei veke",
  16132. ww: "%d veker",
  16133. M: "ein månad",
  16134. MM: "%d månader",
  16135. y: "eit år",
  16136. yy: "%d år"
  16137. },
  16138. dayOfMonthOrdinalParse: /\d{1,2}\./,
  16139. ordinal: "%d.",
  16140. week: {
  16141. dow: 1,
  16142. doy: 4
  16143. }
  16144. })
  16145. }(n(0))
  16146. }, function(e, t, n) {
  16147. ! function(e) {
  16148. "use strict";
  16149. //! moment.js locale configuration
  16150. var t;
  16151. e.defineLocale("oc-lnc", {
  16152. months: {
  16153. standalone: "genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre"
  16154. .split("_"),
  16155. format: "de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre"
  16156. .split("_"),
  16157. isFormat: /D[oD]?(\s)+MMMM/
  16158. },
  16159. monthsShort: "gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split(
  16160. "_"),
  16161. monthsParseExact: true,
  16162. weekdays: "dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),
  16163. weekdaysShort: "dg._dl._dm._dc._dj._dv._ds.".split("_"),
  16164. weekdaysMin: "dg_dl_dm_dc_dj_dv_ds".split("_"),
  16165. weekdaysParseExact: true,
  16166. longDateFormat: {
  16167. LT: "H:mm",
  16168. LTS: "H:mm:ss",
  16169. L: "DD/MM/YYYY",
  16170. LL: "D MMMM [de] YYYY",
  16171. ll: "D MMM YYYY",
  16172. LLL: "D MMMM [de] YYYY [a] H:mm",
  16173. lll: "D MMM YYYY, H:mm",
  16174. LLLL: "dddd D MMMM [de] YYYY [a] H:mm",
  16175. llll: "ddd D MMM YYYY, H:mm"
  16176. },
  16177. calendar: {
  16178. sameDay: "[uèi a] LT",
  16179. nextDay: "[deman a] LT",
  16180. nextWeek: "dddd [a] LT",
  16181. lastDay: "[ièr a] LT",
  16182. lastWeek: "dddd [passat a] LT",
  16183. sameElse: "L"
  16184. },
  16185. relativeTime: {
  16186. future: "d'aquí %s",
  16187. past: "fa %s",
  16188. s: "unas segondas",
  16189. ss: "%d segondas",
  16190. m: "una minuta",
  16191. mm: "%d minutas",
  16192. h: "una ora",
  16193. hh: "%d oras",
  16194. d: "un jorn",
  16195. dd: "%d jorns",
  16196. M: "un mes",
  16197. MM: "%d meses",
  16198. y: "un an",
  16199. yy: "%d ans"
  16200. },
  16201. dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
  16202. ordinal: function(e, t) {
  16203. var n = e === 1 ? "r" : e === 2 ? "n" : e === 3 ? "r" : e === 4 ? "t" : "è";
  16204. if (t === "w" || t === "W") n = "a";
  16205. return e + n
  16206. },
  16207. week: {
  16208. dow: 1,
  16209. doy: 4
  16210. }
  16211. })
  16212. }(n(0))
  16213. }, function(e, t, n) {
  16214. ! function(e) {
  16215. "use strict";
  16216. //! moment.js locale configuration
  16217. var t = {
  16218. 1: "੧",
  16219. 2: "੨",
  16220. 3: "੩",
  16221. 4: "੪",
  16222. 5: "੫",
  16223. 6: "੬",
  16224. 7: "੭",
  16225. 8: "੮",
  16226. 9: "੯",
  16227. 0: "੦"
  16228. },
  16229. n = {
  16230. "੧": "1",
  16231. "੨": "2",
  16232. "੩": "3",
  16233. "੪": "4",
  16234. "੫": "5",
  16235. "੬": "6",
  16236. "੭": "7",
  16237. "੮": "8",
  16238. "੯": "9",
  16239. "੦": "0"
  16240. },
  16241. i;
  16242. e.defineLocale("pa-in", {
  16243. months: "ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split(
  16244. "_"),
  16245. monthsShort: "ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ"
  16246. .split("_"),
  16247. weekdays: "ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),
  16248. weekdaysShort: "ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),
  16249. weekdaysMin: "ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),
  16250. longDateFormat: {
  16251. LT: "A h:mm ਵਜੇ",
  16252. LTS: "A h:mm:ss ਵਜੇ",
  16253. L: "DD/MM/YYYY",
  16254. LL: "D MMMM YYYY",
  16255. LLL: "D MMMM YYYY, A h:mm ਵਜੇ",
  16256. LLLL: "dddd, D MMMM YYYY, A h:mm ਵਜੇ"
  16257. },
  16258. calendar: {
  16259. sameDay: "[ਅਜ] LT",
  16260. nextDay: "[ਕਲ] LT",
  16261. nextWeek: "[ਅਗਲਾ] dddd, LT",
  16262. lastDay: "[ਕਲ] LT",
  16263. lastWeek: "[ਪਿਛਲੇ] dddd, LT",
  16264. sameElse: "L"
  16265. },
  16266. relativeTime: {
  16267. future: "%s ਵਿੱਚ",
  16268. past: "%s ਪਿਛਲੇ",
  16269. s: "ਕੁਝ ਸਕਿੰਟ",
  16270. ss: "%d ਸਕਿੰਟ",
  16271. m: "ਇਕ ਮਿੰਟ",
  16272. mm: "%d ਮਿੰਟ",
  16273. h: "ਇੱਕ ਘੰਟਾ",
  16274. hh: "%d ਘੰਟੇ",
  16275. d: "ਇੱਕ ਦਿਨ",
  16276. dd: "%d ਦਿਨ",
  16277. M: "ਇੱਕ ਮਹੀਨਾ",
  16278. MM: "%d ਮਹੀਨੇ",
  16279. y: "ਇੱਕ ਸਾਲ",
  16280. yy: "%d ਸਾਲ"
  16281. },
  16282. preparse: function(e) {
  16283. return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function(e) {
  16284. return n[e]
  16285. })
  16286. },
  16287. postformat: function(e) {
  16288. return e.replace(/\d/g, function(e) {
  16289. return t[e]
  16290. })
  16291. },
  16292. meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
  16293. meridiemHour: function(e, t) {
  16294. if (e === 12) e = 0;
  16295. if (t === "ਰਾਤ") return e < 4 ? e : e + 12;
  16296. else if (t === "ਸਵੇਰ") return e;
  16297. else if (t === "ਦੁਪਹਿਰ") return e >= 10 ? e : e + 12;
  16298. else if (t === "ਸ਼ਾਮ") return e + 12
  16299. },
  16300. meridiem: function(e, t, n) {
  16301. if (e < 4) return "ਰਾਤ";
  16302. else if (e < 10) return "ਸਵੇਰ";
  16303. else if (e < 17) return "ਦੁਪਹਿਰ";
  16304. else if (e < 20) return "ਸ਼ਾਮ";
  16305. else return "ਰਾਤ"
  16306. },
  16307. week: {
  16308. dow: 0,
  16309. doy: 6
  16310. }
  16311. })
  16312. }(n(0))
  16313. }, function(e, t, n) {
  16314. ! function(e) {
  16315. "use strict";
  16316. //! moment.js locale configuration
  16317. var n =
  16318. "styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień"
  16319. .split("_"),
  16320. i =
  16321. "stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia"
  16322. .split("_"),
  16323. t = [/^sty/i, /^lut/i, /^mar/i, /^kwi/i, /^maj/i, /^cze/i, /^lip/i, /^sie/i, /^wrz/i,
  16324. /^paź/i, /^lis/i, /^gru/i
  16325. ],
  16326. r;
  16327. function a(e) {
  16328. return e % 10 < 5 && e % 10 > 1 && ~~(e / 10) % 10 !== 1
  16329. }
  16330. function s(e, t, n) {
  16331. var i = e + " ";
  16332. switch (n) {
  16333. case "ss":
  16334. return i + (a(e) ? "sekundy" : "sekund");
  16335. case "m":
  16336. return t ? "minuta" : "minutę";
  16337. case "mm":
  16338. return i + (a(e) ? "minuty" : "minut");
  16339. case "h":
  16340. return t ? "godzina" : "godzinę";
  16341. case "hh":
  16342. return i + (a(e) ? "godziny" : "godzin");
  16343. case "ww":
  16344. return i + (a(e) ? "tygodnie" : "tygodni");
  16345. case "MM":
  16346. return i + (a(e) ? "miesiące" : "miesięcy");
  16347. case "yy":
  16348. return i + (a(e) ? "lata" : "lat")
  16349. }
  16350. }
  16351. e.defineLocale("pl", {
  16352. months: function(e, t) {
  16353. if (!e) return n;
  16354. else if (/D MMMM/.test(t)) return i[e.month()];
  16355. else return n[e.month()]
  16356. },
  16357. monthsShort: "sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),
  16358. monthsParse: t,
  16359. longMonthsParse: t,
  16360. shortMonthsParse: t,
  16361. weekdays: "niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),
  16362. weekdaysShort: "ndz_pon_wt_śr_czw_pt_sob".split("_"),
  16363. weekdaysMin: "Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),
  16364. longDateFormat: {
  16365. LT: "HH:mm",
  16366. LTS: "HH:mm:ss",
  16367. L: "DD.MM.YYYY",
  16368. LL: "D MMMM YYYY",
  16369. LLL: "D MMMM YYYY HH:mm",
  16370. LLLL: "dddd, D MMMM YYYY HH:mm"
  16371. },
  16372. calendar: {
  16373. sameDay: "[Dziś o] LT",
  16374. nextDay: "[Jutro o] LT",
  16375. nextWeek: function() {
  16376. switch (this.day()) {
  16377. case 0:
  16378. return "[W niedzielę o] LT";
  16379. case 2:
  16380. return "[We wtorek o] LT";
  16381. case 3:
  16382. return "[W środę o] LT";
  16383. case 6:
  16384. return "[W sobotę o] LT";
  16385. default:
  16386. return "[W] dddd [o] LT"
  16387. }
  16388. },
  16389. lastDay: "[Wczoraj o] LT",
  16390. lastWeek: function() {
  16391. switch (this.day()) {
  16392. case 0:
  16393. return "[W zeszłą niedzielę o] LT";
  16394. case 3:
  16395. return "[W zeszłą środę o] LT";
  16396. case 6:
  16397. return "[W zeszłą sobotę o] LT";
  16398. default:
  16399. return "[W zeszły] dddd [o] LT"
  16400. }
  16401. },
  16402. sameElse: "L"
  16403. },
  16404. relativeTime: {
  16405. future: "za %s",
  16406. past: "%s temu",
  16407. s: "kilka sekund",
  16408. ss: s,
  16409. m: s,
  16410. mm: s,
  16411. h: s,
  16412. hh: s,
  16413. d: "1 dzień",
  16414. dd: "%d dni",
  16415. w: "tydzień",
  16416. ww: s,
  16417. M: "miesiąc",
  16418. MM: s,
  16419. y: "rok",
  16420. yy: s
  16421. },
  16422. dayOfMonthOrdinalParse: /\d{1,2}\./,
  16423. ordinal: "%d.",
  16424. week: {
  16425. dow: 1,
  16426. doy: 4
  16427. }
  16428. })
  16429. }(n(0))
  16430. }, function(e, t, n) {
  16431. ! function(e) {
  16432. "use strict";
  16433. //! moment.js locale configuration
  16434. var t;
  16435. e.defineLocale("pt", {
  16436. months: "janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro"
  16437. .split("_"),
  16438. monthsShort: "jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),
  16439. weekdays: "Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado"
  16440. .split("_"),
  16441. weekdaysShort: "Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),
  16442. weekdaysMin: "Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),
  16443. weekdaysParseExact: true,
  16444. longDateFormat: {
  16445. LT: "HH:mm",
  16446. LTS: "HH:mm:ss",
  16447. L: "DD/MM/YYYY",
  16448. LL: "D [de] MMMM [de] YYYY",
  16449. LLL: "D [de] MMMM [de] YYYY HH:mm",
  16450. LLLL: "dddd, D [de] MMMM [de] YYYY HH:mm"
  16451. },
  16452. calendar: {
  16453. sameDay: "[Hoje às] LT",
  16454. nextDay: "[Amanhã às] LT",
  16455. nextWeek: "dddd [às] LT",
  16456. lastDay: "[Ontem às] LT",
  16457. lastWeek: function() {
  16458. return this.day() === 0 || this.day() === 6 ? "[Último] dddd [às] LT" :
  16459. "[Última] dddd [às] LT"
  16460. },
  16461. sameElse: "L"
  16462. },
  16463. relativeTime: {
  16464. future: "em %s",
  16465. past: "há %s",
  16466. s: "segundos",
  16467. ss: "%d segundos",
  16468. m: "um minuto",
  16469. mm: "%d minutos",
  16470. h: "uma hora",
  16471. hh: "%d horas",
  16472. d: "um dia",
  16473. dd: "%d dias",
  16474. w: "uma semana",
  16475. ww: "%d semanas",
  16476. M: "um mês",
  16477. MM: "%d meses",
  16478. y: "um ano",
  16479. yy: "%d anos"
  16480. },
  16481. dayOfMonthOrdinalParse: /\d{1,2}º/,
  16482. ordinal: "%dº",
  16483. week: {
  16484. dow: 1,
  16485. doy: 4
  16486. }
  16487. })
  16488. }(n(0))
  16489. }, function(e, t, n) {
  16490. ! function(e) {
  16491. "use strict";
  16492. //! moment.js locale configuration
  16493. var t;
  16494. e.defineLocale("pt-br", {
  16495. months: "janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro"
  16496. .split("_"),
  16497. monthsShort: "jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),
  16498. weekdays: "domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado"
  16499. .split("_"),
  16500. weekdaysShort: "dom_seg_ter_qua_qui_sex_sáb".split("_"),
  16501. weekdaysMin: "do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),
  16502. weekdaysParseExact: true,
  16503. longDateFormat: {
  16504. LT: "HH:mm",
  16505. LTS: "HH:mm:ss",
  16506. L: "DD/MM/YYYY",
  16507. LL: "D [de] MMMM [de] YYYY",
  16508. LLL: "D [de] MMMM [de] YYYY [às] HH:mm",
  16509. LLLL: "dddd, D [de] MMMM [de] YYYY [às] HH:mm"
  16510. },
  16511. calendar: {
  16512. sameDay: "[Hoje às] LT",
  16513. nextDay: "[Amanhã às] LT",
  16514. nextWeek: "dddd [às] LT",
  16515. lastDay: "[Ontem às] LT",
  16516. lastWeek: function() {
  16517. return this.day() === 0 || this.day() === 6 ? "[Último] dddd [às] LT" :
  16518. "[Última] dddd [às] LT"
  16519. },
  16520. sameElse: "L"
  16521. },
  16522. relativeTime: {
  16523. future: "em %s",
  16524. past: "há %s",
  16525. s: "poucos segundos",
  16526. ss: "%d segundos",
  16527. m: "um minuto",
  16528. mm: "%d minutos",
  16529. h: "uma hora",
  16530. hh: "%d horas",
  16531. d: "um dia",
  16532. dd: "%d dias",
  16533. M: "um mês",
  16534. MM: "%d meses",
  16535. y: "um ano",
  16536. yy: "%d anos"
  16537. },
  16538. dayOfMonthOrdinalParse: /\d{1,2}º/,
  16539. ordinal: "%dº",
  16540. invalidDate: "Data inválida"
  16541. })
  16542. }(n(0))
  16543. }, function(e, t, n) {
  16544. ! function(e) {
  16545. "use strict";
  16546. //! moment.js locale configuration
  16547. function t(e, t, n) {
  16548. var i = {
  16549. ss: "secunde",
  16550. mm: "minute",
  16551. hh: "ore",
  16552. dd: "zile",
  16553. ww: "săptămâni",
  16554. MM: "luni",
  16555. yy: "ani"
  16556. },
  16557. r = " ";
  16558. if (e % 100 >= 20 || e >= 100 && e % 100 === 0) r = " de ";
  16559. return e + r + i[n]
  16560. }
  16561. var n;
  16562. e.defineLocale("ro", {
  16563. months: "ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie"
  16564. .split("_"),
  16565. monthsShort: "ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split(
  16566. "_"),
  16567. monthsParseExact: true,
  16568. weekdays: "duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),
  16569. weekdaysShort: "Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),
  16570. weekdaysMin: "Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),
  16571. longDateFormat: {
  16572. LT: "H:mm",
  16573. LTS: "H:mm:ss",
  16574. L: "DD.MM.YYYY",
  16575. LL: "D MMMM YYYY",
  16576. LLL: "D MMMM YYYY H:mm",
  16577. LLLL: "dddd, D MMMM YYYY H:mm"
  16578. },
  16579. calendar: {
  16580. sameDay: "[azi la] LT",
  16581. nextDay: "[mâine la] LT",
  16582. nextWeek: "dddd [la] LT",
  16583. lastDay: "[ieri la] LT",
  16584. lastWeek: "[fosta] dddd [la] LT",
  16585. sameElse: "L"
  16586. },
  16587. relativeTime: {
  16588. future: "peste %s",
  16589. past: "%s în urmă",
  16590. s: "câteva secunde",
  16591. ss: t,
  16592. m: "un minut",
  16593. mm: t,
  16594. h: "o oră",
  16595. hh: t,
  16596. d: "o zi",
  16597. dd: t,
  16598. w: "o săptămână",
  16599. ww: t,
  16600. M: "o lună",
  16601. MM: t,
  16602. y: "un an",
  16603. yy: t
  16604. },
  16605. week: {
  16606. dow: 1,
  16607. doy: 7
  16608. }
  16609. })
  16610. }(n(0))
  16611. }, function(e, t, n) {
  16612. ! function(e) {
  16613. "use strict";
  16614. //! moment.js locale configuration
  16615. function r(e, t) {
  16616. var n = e.split("_");
  16617. return t % 10 === 1 && t % 100 !== 11 ? n[0] : t % 10 >= 2 && t % 10 <= 4 && (t % 100 <
  16618. 10 || t % 100 >= 20) ? n[1] : n[2]
  16619. }
  16620. function t(e, t, n) {
  16621. var i = {
  16622. ss: t ? "секунда_секунды_секунд" : "секунду_секунды_секунд",
  16623. mm: t ? "минута_минуты_минут" : "минуту_минуты_минут",
  16624. hh: "час_часа_часов",
  16625. dd: "день_дня_дней",
  16626. ww: "неделя_недели_недель",
  16627. MM: "месяц_месяца_месяцев",
  16628. yy: "год_года_лет"
  16629. };
  16630. if (n === "m") return t ? "минута" : "минуту";
  16631. else return e + " " + r(i[n], +e)
  16632. }
  16633. var n = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i,
  16634. /^окт/i, /^ноя/i, /^дек/i
  16635. ],
  16636. i;
  16637. e.defineLocale("ru", {
  16638. months: {
  16639. format: "января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря"
  16640. .split("_"),
  16641. standalone: "январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь"
  16642. .split("_")
  16643. },
  16644. monthsShort: {
  16645. format: "янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split(
  16646. "_"),
  16647. standalone: "янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек."
  16648. .split("_")
  16649. },
  16650. weekdays: {
  16651. standalone: "воскресенье_понедельник_вторник_среда_четверг_пятница_суббота"
  16652. .split("_"),
  16653. format: "воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split(
  16654. "_"),
  16655. isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/
  16656. },
  16657. weekdaysShort: "вс_пн_вт_ср_чт_пт_сб".split("_"),
  16658. weekdaysMin: "вс_пн_вт_ср_чт_пт_сб".split("_"),
  16659. monthsParse: n,
  16660. longMonthsParse: n,
  16661. shortMonthsParse: n,
  16662. monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  16663. monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
  16664. monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,
  16665. monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
  16666. longDateFormat: {
  16667. LT: "H:mm",
  16668. LTS: "H:mm:ss",
  16669. L: "DD.MM.YYYY",
  16670. LL: "D MMMM YYYY г.",
  16671. LLL: "D MMMM YYYY г., H:mm",
  16672. LLLL: "dddd, D MMMM YYYY г., H:mm"
  16673. },
  16674. calendar: {
  16675. sameDay: "[Сегодня, в] LT",
  16676. nextDay: "[Завтра, в] LT",
  16677. lastDay: "[Вчера, в] LT",
  16678. nextWeek: function(e) {
  16679. if (e.week() !== this.week()) switch (this.day()) {
  16680. case 0:
  16681. return "[В следующее] dddd, [в] LT";
  16682. case 1:
  16683. case 2:
  16684. case 4:
  16685. return "[В следующий] dddd, [в] LT";
  16686. case 3:
  16687. case 5:
  16688. case 6:
  16689. return "[В следующую] dddd, [в] LT"
  16690. } else if (this.day() === 2) return "[Во] dddd, [в] LT";
  16691. else return "[В] dddd, [в] LT"
  16692. },
  16693. lastWeek: function(e) {
  16694. if (e.week() !== this.week()) switch (this.day()) {
  16695. case 0:
  16696. return "[В прошлое] dddd, [в] LT";
  16697. case 1:
  16698. case 2:
  16699. case 4:
  16700. return "[В прошлый] dddd, [в] LT";
  16701. case 3:
  16702. case 5:
  16703. case 6:
  16704. return "[В прошлую] dddd, [в] LT"
  16705. } else if (this.day() === 2) return "[Во] dddd, [в] LT";
  16706. else return "[В] dddd, [в] LT"
  16707. },
  16708. sameElse: "L"
  16709. },
  16710. relativeTime: {
  16711. future: "через %s",
  16712. past: "%s назад",
  16713. s: "несколько секунд",
  16714. ss: t,
  16715. m: t,
  16716. mm: t,
  16717. h: "час",
  16718. hh: t,
  16719. d: "день",
  16720. dd: t,
  16721. w: "неделя",
  16722. ww: t,
  16723. M: "месяц",
  16724. MM: t,
  16725. y: "год",
  16726. yy: t
  16727. },
  16728. meridiemParse: /ночи|утра|дня|вечера/i,
  16729. isPM: function(e) {
  16730. return /^(дня|вечера)$/.test(e)
  16731. },
  16732. meridiem: function(e, t, n) {
  16733. if (e < 4) return "ночи";
  16734. else if (e < 12) return "утра";
  16735. else if (e < 17) return "дня";
  16736. else return "вечера"
  16737. },
  16738. dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/,
  16739. ordinal: function(e, t) {
  16740. switch (t) {
  16741. case "M":
  16742. case "d":
  16743. case "DDD":
  16744. return e + "-й";
  16745. case "D":
  16746. return e + "-го";
  16747. case "w":
  16748. case "W":
  16749. return e + "-я";
  16750. default:
  16751. return e
  16752. }
  16753. },
  16754. week: {
  16755. dow: 1,
  16756. doy: 4
  16757. }
  16758. })
  16759. }(n(0))
  16760. }, function(e, t, n) {
  16761. ! function(e) {
  16762. "use strict";
  16763. //! moment.js locale configuration
  16764. var t = ["جنوري", "فيبروري", "مارچ", "اپريل", "مئي", "جون", "جولاءِ", "آگسٽ", "سيپٽمبر",
  16765. "آڪٽوبر", "نومبر", "ڊسمبر"
  16766. ],
  16767. n = ["آچر", "سومر", "اڱارو", "اربع", "خميس", "جمع", "ڇنڇر"],
  16768. i;
  16769. e.defineLocale("sd", {
  16770. months: t,
  16771. monthsShort: t,
  16772. weekdays: n,
  16773. weekdaysShort: n,
  16774. weekdaysMin: n,
  16775. longDateFormat: {
  16776. LT: "HH:mm",
  16777. LTS: "HH:mm:ss",
  16778. L: "DD/MM/YYYY",
  16779. LL: "D MMMM YYYY",
  16780. LLL: "D MMMM YYYY HH:mm",
  16781. LLLL: "dddd، D MMMM YYYY HH:mm"
  16782. },
  16783. meridiemParse: /صبح|شام/,
  16784. isPM: function(e) {
  16785. return "شام" === e
  16786. },
  16787. meridiem: function(e, t, n) {
  16788. if (e < 12) return "صبح";
  16789. return "شام"
  16790. },
  16791. calendar: {
  16792. sameDay: "[اڄ] LT",
  16793. nextDay: "[سڀاڻي] LT",
  16794. nextWeek: "dddd [اڳين هفتي تي] LT",
  16795. lastDay: "[ڪالهه] LT",
  16796. lastWeek: "[گزريل هفتي] dddd [تي] LT",
  16797. sameElse: "L"
  16798. },
  16799. relativeTime: {
  16800. future: "%s پوء",
  16801. past: "%s اڳ",
  16802. s: "چند سيڪنڊ",
  16803. ss: "%d سيڪنڊ",
  16804. m: "هڪ منٽ",
  16805. mm: "%d منٽ",
  16806. h: "هڪ ڪلاڪ",
  16807. hh: "%d ڪلاڪ",
  16808. d: "هڪ ڏينهن",
  16809. dd: "%d ڏينهن",
  16810. M: "هڪ مهينو",
  16811. MM: "%d مهينا",
  16812. y: "هڪ سال",
  16813. yy: "%d سال"
  16814. },
  16815. preparse: function(e) {
  16816. return e.replace(/،/g, ",")
  16817. },
  16818. postformat: function(e) {
  16819. return e.replace(/,/g, "،")
  16820. },
  16821. week: {
  16822. dow: 1,
  16823. doy: 4
  16824. }
  16825. })
  16826. }(n(0))
  16827. }, function(e, t, n) {
  16828. ! function(e) {
  16829. "use strict";
  16830. //! moment.js locale configuration
  16831. var t;
  16832. e.defineLocale("se", {
  16833. 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"
  16834. .split("_"),
  16835. monthsShort: "ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split(
  16836. "_"),
  16837. weekdays: "sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat"
  16838. .split("_"),
  16839. weekdaysShort: "sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),
  16840. weekdaysMin: "s_v_m_g_d_b_L".split("_"),
  16841. longDateFormat: {
  16842. LT: "HH:mm",
  16843. LTS: "HH:mm:ss",
  16844. L: "DD.MM.YYYY",
  16845. LL: "MMMM D. [b.] YYYY",
  16846. LLL: "MMMM D. [b.] YYYY [ti.] HH:mm",
  16847. LLLL: "dddd, MMMM D. [b.] YYYY [ti.] HH:mm"
  16848. },
  16849. calendar: {
  16850. sameDay: "[otne ti] LT",
  16851. nextDay: "[ihttin ti] LT",
  16852. nextWeek: "dddd [ti] LT",
  16853. lastDay: "[ikte ti] LT",
  16854. lastWeek: "[ovddit] dddd [ti] LT",
  16855. sameElse: "L"
  16856. },
  16857. relativeTime: {
  16858. future: "%s geažes",
  16859. past: "maŋit %s",
  16860. s: "moadde sekunddat",
  16861. ss: "%d sekunddat",
  16862. m: "okta minuhta",
  16863. mm: "%d minuhtat",
  16864. h: "okta diimmu",
  16865. hh: "%d diimmut",
  16866. d: "okta beaivi",
  16867. dd: "%d beaivvit",
  16868. M: "okta mánnu",
  16869. MM: "%d mánut",
  16870. y: "okta jahki",
  16871. yy: "%d jagit"
  16872. },
  16873. dayOfMonthOrdinalParse: /\d{1,2}\./,
  16874. ordinal: "%d.",
  16875. week: {
  16876. dow: 1,
  16877. doy: 4
  16878. }
  16879. })
  16880. }(n(0))
  16881. }, function(e, t, n) {
  16882. ! function(e) {
  16883. "use strict";
  16884. //! moment.js locale configuration
  16885. var t;
  16886. e.defineLocale("si", {
  16887. months: "ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්"
  16888. .split("_"),
  16889. monthsShort: "ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),
  16890. weekdays: "ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split(
  16891. "_"),
  16892. weekdaysShort: "ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),
  16893. weekdaysMin: "ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),
  16894. weekdaysParseExact: true,
  16895. longDateFormat: {
  16896. LT: "a h:mm",
  16897. LTS: "a h:mm:ss",
  16898. L: "YYYY/MM/DD",
  16899. LL: "YYYY MMMM D",
  16900. LLL: "YYYY MMMM D, a h:mm",
  16901. LLLL: "YYYY MMMM D [වැනි] dddd, a h:mm:ss"
  16902. },
  16903. calendar: {
  16904. sameDay: "[අද] LT[ට]",
  16905. nextDay: "[හෙට] LT[ට]",
  16906. nextWeek: "dddd LT[ට]",
  16907. lastDay: "[ඊයේ] LT[ට]",
  16908. lastWeek: "[පසුගිය] dddd LT[ට]",
  16909. sameElse: "L"
  16910. },
  16911. relativeTime: {
  16912. future: "%sකින්",
  16913. past: "%sකට පෙර",
  16914. s: "තත්පර කිහිපය",
  16915. ss: "තත්පර %d",
  16916. m: "මිනිත්තුව",
  16917. mm: "මිනිත්තු %d",
  16918. h: "පැය",
  16919. hh: "පැය %d",
  16920. d: "දිනය",
  16921. dd: "දින %d",
  16922. M: "මාසය",
  16923. MM: "මාස %d",
  16924. y: "වසර",
  16925. yy: "වසර %d"
  16926. },
  16927. dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
  16928. ordinal: function(e) {
  16929. return e + " වැනි"
  16930. },
  16931. meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
  16932. isPM: function(e) {
  16933. return e === "ප.ව." || e === "පස් වරු"
  16934. },
  16935. meridiem: function(e, t, n) {
  16936. if (e > 11) return n ? "ප.ව." : "පස් වරු";
  16937. else return n ? "පෙ.ව." : "පෙර වරු"
  16938. }
  16939. })
  16940. }(n(0))
  16941. }, function(e, t, n) {
  16942. ! function(e) {
  16943. "use strict";
  16944. //! moment.js locale configuration
  16945. var t = "január_február_marec_apríl_máj_jún_júl_august_september_október_november_december"
  16946. .split("_"),
  16947. n = "jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_"),
  16948. i;
  16949. function a(e) {
  16950. return e > 1 && e < 5
  16951. }
  16952. function r(e, t, n, i) {
  16953. var r = e + " ";
  16954. switch (n) {
  16955. case "s":
  16956. return t || i ? "pár sekúnd" : "pár sekundami";
  16957. case "ss":
  16958. if (t || i) return r + (a(e) ? "sekundy" : "sekúnd");
  16959. else return r + "sekundami";
  16960. case "m":
  16961. return t ? "minúta" : i ? "minútu" : "minútou";
  16962. case "mm":
  16963. if (t || i) return r + (a(e) ? "minúty" : "minút");
  16964. else return r + "minútami";
  16965. case "h":
  16966. return t ? "hodina" : i ? "hodinu" : "hodinou";
  16967. case "hh":
  16968. if (t || i) return r + (a(e) ? "hodiny" : "hodín");
  16969. else return r + "hodinami";
  16970. case "d":
  16971. return t || i ? "deň" : "dňom";
  16972. case "dd":
  16973. if (t || i) return r + (a(e) ? "dni" : "dní");
  16974. else return r + "dňami";
  16975. case "M":
  16976. return t || i ? "mesiac" : "mesiacom";
  16977. case "MM":
  16978. if (t || i) return r + (a(e) ? "mesiace" : "mesiacov");
  16979. else return r + "mesiacmi";
  16980. case "y":
  16981. return t || i ? "rok" : "rokom";
  16982. case "yy":
  16983. if (t || i) return r + (a(e) ? "roky" : "rokov");
  16984. else return r + "rokmi"
  16985. }
  16986. }
  16987. e.defineLocale("sk", {
  16988. months: t,
  16989. monthsShort: n,
  16990. weekdays: "nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),
  16991. weekdaysShort: "ne_po_ut_st_št_pi_so".split("_"),
  16992. weekdaysMin: "ne_po_ut_st_št_pi_so".split("_"),
  16993. longDateFormat: {
  16994. LT: "H:mm",
  16995. LTS: "H:mm:ss",
  16996. L: "DD.MM.YYYY",
  16997. LL: "D. MMMM YYYY",
  16998. LLL: "D. MMMM YYYY H:mm",
  16999. LLLL: "dddd D. MMMM YYYY H:mm"
  17000. },
  17001. calendar: {
  17002. sameDay: "[dnes o] LT",
  17003. nextDay: "[zajtra o] LT",
  17004. nextWeek: function() {
  17005. switch (this.day()) {
  17006. case 0:
  17007. return "[v nedeľu o] LT";
  17008. case 1:
  17009. case 2:
  17010. return "[v] dddd [o] LT";
  17011. case 3:
  17012. return "[v stredu o] LT";
  17013. case 4:
  17014. return "[vo štvrtok o] LT";
  17015. case 5:
  17016. return "[v piatok o] LT";
  17017. case 6:
  17018. return "[v sobotu o] LT"
  17019. }
  17020. },
  17021. lastDay: "[včera o] LT",
  17022. lastWeek: function() {
  17023. switch (this.day()) {
  17024. case 0:
  17025. return "[minulú nedeľu o] LT";
  17026. case 1:
  17027. case 2:
  17028. return "[minulý] dddd [o] LT";
  17029. case 3:
  17030. return "[minulú stredu o] LT";
  17031. case 4:
  17032. case 5:
  17033. return "[minulý] dddd [o] LT";
  17034. case 6:
  17035. return "[minulú sobotu o] LT"
  17036. }
  17037. },
  17038. sameElse: "L"
  17039. },
  17040. relativeTime: {
  17041. future: "za %s",
  17042. past: "pred %s",
  17043. s: r,
  17044. ss: r,
  17045. m: r,
  17046. mm: r,
  17047. h: r,
  17048. hh: r,
  17049. d: r,
  17050. dd: r,
  17051. M: r,
  17052. MM: r,
  17053. y: r,
  17054. yy: r
  17055. },
  17056. dayOfMonthOrdinalParse: /\d{1,2}\./,
  17057. ordinal: "%d.",
  17058. week: {
  17059. dow: 1,
  17060. doy: 4
  17061. }
  17062. })
  17063. }(n(0))
  17064. }, function(e, t, n) {
  17065. ! function(e) {
  17066. "use strict";
  17067. //! moment.js locale configuration
  17068. function t(e, t, n, i) {
  17069. var r = e + " ";
  17070. switch (n) {
  17071. case "s":
  17072. return t || i ? "nekaj sekund" : "nekaj sekundami";
  17073. case "ss":
  17074. if (e === 1) r += t ? "sekundo" : "sekundi";
  17075. else if (e === 2) r += t || i ? "sekundi" : "sekundah";
  17076. else if (e < 5) r += t || i ? "sekunde" : "sekundah";
  17077. else r += "sekund";
  17078. return r;
  17079. case "m":
  17080. return t ? "ena minuta" : "eno minuto";
  17081. case "mm":
  17082. if (e === 1) r += t ? "minuta" : "minuto";
  17083. else if (e === 2) r += t || i ? "minuti" : "minutama";
  17084. else if (e < 5) r += t || i ? "minute" : "minutami";
  17085. else r += t || i ? "minut" : "minutami";
  17086. return r;
  17087. case "h":
  17088. return t ? "ena ura" : "eno uro";
  17089. case "hh":
  17090. if (e === 1) r += t ? "ura" : "uro";
  17091. else if (e === 2) r += t || i ? "uri" : "urama";
  17092. else if (e < 5) r += t || i ? "ure" : "urami";
  17093. else r += t || i ? "ur" : "urami";
  17094. return r;
  17095. case "d":
  17096. return t || i ? "en dan" : "enim dnem";
  17097. case "dd":
  17098. if (e === 1) r += t || i ? "dan" : "dnem";
  17099. else if (e === 2) r += t || i ? "dni" : "dnevoma";
  17100. else r += t || i ? "dni" : "dnevi";
  17101. return r;
  17102. case "M":
  17103. return t || i ? "en mesec" : "enim mesecem";
  17104. case "MM":
  17105. if (e === 1) r += t || i ? "mesec" : "mesecem";
  17106. else if (e === 2) r += t || i ? "meseca" : "mesecema";
  17107. else if (e < 5) r += t || i ? "mesece" : "meseci";
  17108. else r += t || i ? "mesecev" : "meseci";
  17109. return r;
  17110. case "y":
  17111. return t || i ? "eno leto" : "enim letom";
  17112. case "yy":
  17113. if (e === 1) r += t || i ? "leto" : "letom";
  17114. else if (e === 2) r += t || i ? "leti" : "letoma";
  17115. else if (e < 5) r += t || i ? "leta" : "leti";
  17116. else r += t || i ? "let" : "leti";
  17117. return r
  17118. }
  17119. }
  17120. var n;
  17121. e.defineLocale("sl", {
  17122. months: "januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december"
  17123. .split("_"),
  17124. monthsShort: "jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split(
  17125. "_"),
  17126. monthsParseExact: true,
  17127. weekdays: "nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),
  17128. weekdaysShort: "ned._pon._tor._sre._čet._pet._sob.".split("_"),
  17129. weekdaysMin: "ne_po_to_sr_če_pe_so".split("_"),
  17130. weekdaysParseExact: true,
  17131. longDateFormat: {
  17132. LT: "H:mm",
  17133. LTS: "H:mm:ss",
  17134. L: "DD. MM. YYYY",
  17135. LL: "D. MMMM YYYY",
  17136. LLL: "D. MMMM YYYY H:mm",
  17137. LLLL: "dddd, D. MMMM YYYY H:mm"
  17138. },
  17139. calendar: {
  17140. sameDay: "[danes ob] LT",
  17141. nextDay: "[jutri ob] LT",
  17142. nextWeek: function() {
  17143. switch (this.day()) {
  17144. case 0:
  17145. return "[v] [nedeljo] [ob] LT";
  17146. case 3:
  17147. return "[v] [sredo] [ob] LT";
  17148. case 6:
  17149. return "[v] [soboto] [ob] LT";
  17150. case 1:
  17151. case 2:
  17152. case 4:
  17153. case 5:
  17154. return "[v] dddd [ob] LT"
  17155. }
  17156. },
  17157. lastDay: "[včeraj ob] LT",
  17158. lastWeek: function() {
  17159. switch (this.day()) {
  17160. case 0:
  17161. return "[prejšnjo] [nedeljo] [ob] LT";
  17162. case 3:
  17163. return "[prejšnjo] [sredo] [ob] LT";
  17164. case 6:
  17165. return "[prejšnjo] [soboto] [ob] LT";
  17166. case 1:
  17167. case 2:
  17168. case 4:
  17169. case 5:
  17170. return "[prejšnji] dddd [ob] LT"
  17171. }
  17172. },
  17173. sameElse: "L"
  17174. },
  17175. relativeTime: {
  17176. future: "čez %s",
  17177. past: "pred %s",
  17178. s: t,
  17179. ss: t,
  17180. m: t,
  17181. mm: t,
  17182. h: t,
  17183. hh: t,
  17184. d: t,
  17185. dd: t,
  17186. M: t,
  17187. MM: t,
  17188. y: t,
  17189. yy: t
  17190. },
  17191. dayOfMonthOrdinalParse: /\d{1,2}\./,
  17192. ordinal: "%d.",
  17193. week: {
  17194. dow: 1,
  17195. doy: 7
  17196. }
  17197. })
  17198. }(n(0))
  17199. }, function(e, t, n) {
  17200. ! function(e) {
  17201. "use strict";
  17202. //! moment.js locale configuration
  17203. var t;
  17204. e.defineLocale("sq", {
  17205. months: "Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor"
  17206. .split("_"),
  17207. monthsShort: "Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),
  17208. weekdays: "E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),
  17209. weekdaysShort: "Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),
  17210. weekdaysMin: "D_H_Ma_Më_E_P_Sh".split("_"),
  17211. weekdaysParseExact: true,
  17212. meridiemParse: /PD|MD/,
  17213. isPM: function(e) {
  17214. return e.charAt(0) === "M"
  17215. },
  17216. meridiem: function(e, t, n) {
  17217. return e < 12 ? "PD" : "MD"
  17218. },
  17219. longDateFormat: {
  17220. LT: "HH:mm",
  17221. LTS: "HH:mm:ss",
  17222. L: "DD/MM/YYYY",
  17223. LL: "D MMMM YYYY",
  17224. LLL: "D MMMM YYYY HH:mm",
  17225. LLLL: "dddd, D MMMM YYYY HH:mm"
  17226. },
  17227. calendar: {
  17228. sameDay: "[Sot në] LT",
  17229. nextDay: "[Nesër në] LT",
  17230. nextWeek: "dddd [në] LT",
  17231. lastDay: "[Dje në] LT",
  17232. lastWeek: "dddd [e kaluar në] LT",
  17233. sameElse: "L"
  17234. },
  17235. relativeTime: {
  17236. future: "në %s",
  17237. past: "%s më parë",
  17238. s: "disa sekonda",
  17239. ss: "%d sekonda",
  17240. m: "një minutë",
  17241. mm: "%d minuta",
  17242. h: "një orë",
  17243. hh: "%d orë",
  17244. d: "një ditë",
  17245. dd: "%d ditë",
  17246. M: "një muaj",
  17247. MM: "%d muaj",
  17248. y: "një vit",
  17249. yy: "%d vite"
  17250. },
  17251. dayOfMonthOrdinalParse: /\d{1,2}\./,
  17252. ordinal: "%d.",
  17253. week: {
  17254. dow: 1,
  17255. doy: 4
  17256. }
  17257. })
  17258. }(n(0))
  17259. }, function(e, t, n) {
  17260. ! function(e) {
  17261. "use strict";
  17262. //! moment.js locale configuration
  17263. var r = {
  17264. words: {
  17265. ss: ["sekunda", "sekunde", "sekundi"],
  17266. m: ["jedan minut", "jedne minute"],
  17267. mm: ["minut", "minute", "minuta"],
  17268. h: ["jedan sat", "jednog sata"],
  17269. hh: ["sat", "sata", "sati"],
  17270. dd: ["dan", "dana", "dana"],
  17271. MM: ["mesec", "meseca", "meseci"],
  17272. yy: ["godina", "godine", "godina"]
  17273. },
  17274. correctGrammaticalCase: function(e, t) {
  17275. return e === 1 ? t[0] : e >= 2 && e <= 4 ? t[1] : t[2]
  17276. },
  17277. translate: function(e, t, n) {
  17278. var i = r.words[n];
  17279. if (n.length === 1) return t ? i[0] : i[1];
  17280. else return e + " " + r.correctGrammaticalCase(e, i)
  17281. }
  17282. },
  17283. t;
  17284. e.defineLocale("sr", {
  17285. months: "januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar"
  17286. .split("_"),
  17287. monthsShort: "jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),
  17288. monthsParseExact: true,
  17289. weekdays: "nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),
  17290. weekdaysShort: "ned._pon._uto._sre._čet._pet._sub.".split("_"),
  17291. weekdaysMin: "ne_po_ut_sr_če_pe_su".split("_"),
  17292. weekdaysParseExact: true,
  17293. longDateFormat: {
  17294. LT: "H:mm",
  17295. LTS: "H:mm:ss",
  17296. L: "D. M. YYYY.",
  17297. LL: "D. MMMM YYYY.",
  17298. LLL: "D. MMMM YYYY. H:mm",
  17299. LLLL: "dddd, D. MMMM YYYY. H:mm"
  17300. },
  17301. calendar: {
  17302. sameDay: "[danas u] LT",
  17303. nextDay: "[sutra u] LT",
  17304. nextWeek: function() {
  17305. switch (this.day()) {
  17306. case 0:
  17307. return "[u] [nedelju] [u] LT";
  17308. case 3:
  17309. return "[u] [sredu] [u] LT";
  17310. case 6:
  17311. return "[u] [subotu] [u] LT";
  17312. case 1:
  17313. case 2:
  17314. case 4:
  17315. case 5:
  17316. return "[u] dddd [u] LT"
  17317. }
  17318. },
  17319. lastDay: "[juče u] LT",
  17320. lastWeek: function() {
  17321. var e = ["[prošle] [nedelje] [u] LT", "[prošlog] [ponedeljka] [u] LT",
  17322. "[prošlog] [utorka] [u] LT", "[prošle] [srede] [u] LT",
  17323. "[prošlog] [četvrtka] [u] LT", "[prošlog] [petka] [u] LT",
  17324. "[prošle] [subote] [u] LT"
  17325. ];
  17326. return e[this.day()]
  17327. },
  17328. sameElse: "L"
  17329. },
  17330. relativeTime: {
  17331. future: "za %s",
  17332. past: "pre %s",
  17333. s: "nekoliko sekundi",
  17334. ss: r.translate,
  17335. m: r.translate,
  17336. mm: r.translate,
  17337. h: r.translate,
  17338. hh: r.translate,
  17339. d: "dan",
  17340. dd: r.translate,
  17341. M: "mesec",
  17342. MM: r.translate,
  17343. y: "godinu",
  17344. yy: r.translate
  17345. },
  17346. dayOfMonthOrdinalParse: /\d{1,2}\./,
  17347. ordinal: "%d.",
  17348. week: {
  17349. dow: 1,
  17350. doy: 7
  17351. }
  17352. })
  17353. }(n(0))
  17354. }, function(e, t, n) {
  17355. ! function(e) {
  17356. "use strict";
  17357. //! moment.js locale configuration
  17358. var r = {
  17359. words: {
  17360. ss: ["секунда", "секунде", "секунди"],
  17361. m: ["један минут", "једне минуте"],
  17362. mm: ["минут", "минуте", "минута"],
  17363. h: ["један сат", "једног сата"],
  17364. hh: ["сат", "сата", "сати"],
  17365. dd: ["дан", "дана", "дана"],
  17366. MM: ["месец", "месеца", "месеци"],
  17367. yy: ["година", "године", "година"]
  17368. },
  17369. correctGrammaticalCase: function(e, t) {
  17370. return e === 1 ? t[0] : e >= 2 && e <= 4 ? t[1] : t[2]
  17371. },
  17372. translate: function(e, t, n) {
  17373. var i = r.words[n];
  17374. if (n.length === 1) return t ? i[0] : i[1];
  17375. else return e + " " + r.correctGrammaticalCase(e, i)
  17376. }
  17377. },
  17378. t;
  17379. e.defineLocale("sr-cyrl", {
  17380. months: "јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар"
  17381. .split("_"),
  17382. monthsShort: "јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),
  17383. monthsParseExact: true,
  17384. weekdays: "недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),
  17385. weekdaysShort: "нед._пон._уто._сре._чет._пет._суб.".split("_"),
  17386. weekdaysMin: "не_по_ут_ср_че_пе_су".split("_"),
  17387. weekdaysParseExact: true,
  17388. longDateFormat: {
  17389. LT: "H:mm",
  17390. LTS: "H:mm:ss",
  17391. L: "D. M. YYYY.",
  17392. LL: "D. MMMM YYYY.",
  17393. LLL: "D. MMMM YYYY. H:mm",
  17394. LLLL: "dddd, D. MMMM YYYY. H:mm"
  17395. },
  17396. calendar: {
  17397. sameDay: "[данас у] LT",
  17398. nextDay: "[сутра у] LT",
  17399. nextWeek: function() {
  17400. switch (this.day()) {
  17401. case 0:
  17402. return "[у] [недељу] [у] LT";
  17403. case 3:
  17404. return "[у] [среду] [у] LT";
  17405. case 6:
  17406. return "[у] [суботу] [у] LT";
  17407. case 1:
  17408. case 2:
  17409. case 4:
  17410. case 5:
  17411. return "[у] dddd [у] LT"
  17412. }
  17413. },
  17414. lastDay: "[јуче у] LT",
  17415. lastWeek: function() {
  17416. var e = ["[прошле] [недеље] [у] LT", "[прошлог] [понедељка] [у] LT",
  17417. "[прошлог] [уторка] [у] LT", "[прошле] [среде] [у] LT",
  17418. "[прошлог] [четвртка] [у] LT", "[прошлог] [петка] [у] LT",
  17419. "[прошле] [суботе] [у] LT"
  17420. ];
  17421. return e[this.day()]
  17422. },
  17423. sameElse: "L"
  17424. },
  17425. relativeTime: {
  17426. future: "за %s",
  17427. past: "пре %s",
  17428. s: "неколико секунди",
  17429. ss: r.translate,
  17430. m: r.translate,
  17431. mm: r.translate,
  17432. h: r.translate,
  17433. hh: r.translate,
  17434. d: "дан",
  17435. dd: r.translate,
  17436. M: "месец",
  17437. MM: r.translate,
  17438. y: "годину",
  17439. yy: r.translate
  17440. },
  17441. dayOfMonthOrdinalParse: /\d{1,2}\./,
  17442. ordinal: "%d.",
  17443. week: {
  17444. dow: 1,
  17445. doy: 7
  17446. }
  17447. })
  17448. }(n(0))
  17449. }, function(e, t, n) {
  17450. ! function(e) {
  17451. "use strict";
  17452. //! moment.js locale configuration
  17453. var t;
  17454. e.defineLocale("ss", {
  17455. months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni"
  17456. .split("_"),
  17457. monthsShort: "Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),
  17458. weekdays: "Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo"
  17459. .split("_"),
  17460. weekdaysShort: "Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),
  17461. weekdaysMin: "Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),
  17462. weekdaysParseExact: true,
  17463. longDateFormat: {
  17464. LT: "h:mm A",
  17465. LTS: "h:mm:ss A",
  17466. L: "DD/MM/YYYY",
  17467. LL: "D MMMM YYYY",
  17468. LLL: "D MMMM YYYY h:mm A",
  17469. LLLL: "dddd, D MMMM YYYY h:mm A"
  17470. },
  17471. calendar: {
  17472. sameDay: "[Namuhla nga] LT",
  17473. nextDay: "[Kusasa nga] LT",
  17474. nextWeek: "dddd [nga] LT",
  17475. lastDay: "[Itolo nga] LT",
  17476. lastWeek: "dddd [leliphelile] [nga] LT",
  17477. sameElse: "L"
  17478. },
  17479. relativeTime: {
  17480. future: "nga %s",
  17481. past: "wenteka nga %s",
  17482. s: "emizuzwana lomcane",
  17483. ss: "%d mzuzwana",
  17484. m: "umzuzu",
  17485. mm: "%d emizuzu",
  17486. h: "lihora",
  17487. hh: "%d emahora",
  17488. d: "lilanga",
  17489. dd: "%d emalanga",
  17490. M: "inyanga",
  17491. MM: "%d tinyanga",
  17492. y: "umnyaka",
  17493. yy: "%d iminyaka"
  17494. },
  17495. meridiemParse: /ekuseni|emini|entsambama|ebusuku/,
  17496. meridiem: function(e, t, n) {
  17497. if (e < 11) return "ekuseni";
  17498. else if (e < 15) return "emini";
  17499. else if (e < 19) return "entsambama";
  17500. else return "ebusuku"
  17501. },
  17502. meridiemHour: function(e, t) {
  17503. if (e === 12) e = 0;
  17504. if (t === "ekuseni") return e;
  17505. else if (t === "emini") return e >= 11 ? e : e + 12;
  17506. else if (t === "entsambama" || t === "ebusuku") {
  17507. if (e === 0) return 0;
  17508. return e + 12
  17509. }
  17510. },
  17511. dayOfMonthOrdinalParse: /\d{1,2}/,
  17512. ordinal: "%d",
  17513. week: {
  17514. dow: 1,
  17515. doy: 4
  17516. }
  17517. })
  17518. }(n(0))
  17519. }, function(e, t, n) {
  17520. ! function(e) {
  17521. "use strict";
  17522. //! moment.js locale configuration
  17523. var t;
  17524. e.defineLocale("sv", {
  17525. months: "januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december"
  17526. .split("_"),
  17527. monthsShort: "jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),
  17528. weekdays: "söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),
  17529. weekdaysShort: "sön_mån_tis_ons_tor_fre_lör".split("_"),
  17530. weekdaysMin: "sö_må_ti_on_to_fr_lö".split("_"),
  17531. longDateFormat: {
  17532. LT: "HH:mm",
  17533. LTS: "HH:mm:ss",
  17534. L: "YYYY-MM-DD",
  17535. LL: "D MMMM YYYY",
  17536. LLL: "D MMMM YYYY [kl.] HH:mm",
  17537. LLLL: "dddd D MMMM YYYY [kl.] HH:mm",
  17538. lll: "D MMM YYYY HH:mm",
  17539. llll: "ddd D MMM YYYY HH:mm"
  17540. },
  17541. calendar: {
  17542. sameDay: "[Idag] LT",
  17543. nextDay: "[Imorgon] LT",
  17544. lastDay: "[Igår] LT",
  17545. nextWeek: "[På] dddd LT",
  17546. lastWeek: "[I] dddd[s] LT",
  17547. sameElse: "L"
  17548. },
  17549. relativeTime: {
  17550. future: "om %s",
  17551. past: "för %s sedan",
  17552. s: "några sekunder",
  17553. ss: "%d sekunder",
  17554. m: "en minut",
  17555. mm: "%d minuter",
  17556. h: "en timme",
  17557. hh: "%d timmar",
  17558. d: "en dag",
  17559. dd: "%d dagar",
  17560. M: "en månad",
  17561. MM: "%d månader",
  17562. y: "ett år",
  17563. yy: "%d år"
  17564. },
  17565. dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/,
  17566. ordinal: function(e) {
  17567. var t = e % 10,
  17568. n = ~~(e % 100 / 10) === 1 ? ":e" : t === 1 ? ":a" : t === 2 ? ":a" :
  17569. t === 3 ? ":e" : ":e";
  17570. return e + n
  17571. },
  17572. week: {
  17573. dow: 1,
  17574. doy: 4
  17575. }
  17576. })
  17577. }(n(0))
  17578. }, function(e, t, n) {
  17579. ! function(e) {
  17580. "use strict";
  17581. //! moment.js locale configuration
  17582. var t;
  17583. e.defineLocale("sw", {
  17584. months: "Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba"
  17585. .split("_"),
  17586. monthsShort: "Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),
  17587. weekdays: "Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),
  17588. weekdaysShort: "Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),
  17589. weekdaysMin: "J2_J3_J4_J5_Al_Ij_J1".split("_"),
  17590. weekdaysParseExact: true,
  17591. longDateFormat: {
  17592. LT: "hh:mm A",
  17593. LTS: "HH:mm:ss",
  17594. L: "DD.MM.YYYY",
  17595. LL: "D MMMM YYYY",
  17596. LLL: "D MMMM YYYY HH:mm",
  17597. LLLL: "dddd, D MMMM YYYY HH:mm"
  17598. },
  17599. calendar: {
  17600. sameDay: "[leo saa] LT",
  17601. nextDay: "[kesho saa] LT",
  17602. nextWeek: "[wiki ijayo] dddd [saat] LT",
  17603. lastDay: "[jana] LT",
  17604. lastWeek: "[wiki iliyopita] dddd [saat] LT",
  17605. sameElse: "L"
  17606. },
  17607. relativeTime: {
  17608. future: "%s baadaye",
  17609. past: "tokea %s",
  17610. s: "hivi punde",
  17611. ss: "sekunde %d",
  17612. m: "dakika moja",
  17613. mm: "dakika %d",
  17614. h: "saa limoja",
  17615. hh: "masaa %d",
  17616. d: "siku moja",
  17617. dd: "siku %d",
  17618. M: "mwezi mmoja",
  17619. MM: "miezi %d",
  17620. y: "mwaka mmoja",
  17621. yy: "miaka %d"
  17622. },
  17623. week: {
  17624. dow: 1,
  17625. doy: 7
  17626. }
  17627. })
  17628. }(n(0))
  17629. }, function(e, t, n) {
  17630. ! function(e) {
  17631. "use strict";
  17632. //! moment.js locale configuration
  17633. var t = {
  17634. 1: "௧",
  17635. 2: "௨",
  17636. 3: "௩",
  17637. 4: "௪",
  17638. 5: "௫",
  17639. 6: "௬",
  17640. 7: "௭",
  17641. 8: "௮",
  17642. 9: "௯",
  17643. 0: "௦"
  17644. },
  17645. n = {
  17646. "௧": "1",
  17647. "௨": "2",
  17648. "௩": "3",
  17649. "௪": "4",
  17650. "௫": "5",
  17651. "௬": "6",
  17652. "௭": "7",
  17653. "௮": "8",
  17654. "௯": "9",
  17655. "௦": "0"
  17656. },
  17657. i;
  17658. e.defineLocale("ta", {
  17659. months: "ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்"
  17660. .split("_"),
  17661. monthsShort: "ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்"
  17662. .split("_"),
  17663. weekdays: "ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை"
  17664. .split("_"),
  17665. weekdaysShort: "ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),
  17666. weekdaysMin: "ஞா_தி_செ_பு_வி_வெ_ச".split("_"),
  17667. longDateFormat: {
  17668. LT: "HH:mm",
  17669. LTS: "HH:mm:ss",
  17670. L: "DD/MM/YYYY",
  17671. LL: "D MMMM YYYY",
  17672. LLL: "D MMMM YYYY, HH:mm",
  17673. LLLL: "dddd, D MMMM YYYY, HH:mm"
  17674. },
  17675. calendar: {
  17676. sameDay: "[இன்று] LT",
  17677. nextDay: "[நாளை] LT",
  17678. nextWeek: "dddd, LT",
  17679. lastDay: "[நேற்று] LT",
  17680. lastWeek: "[கடந்த வாரம்] dddd, LT",
  17681. sameElse: "L"
  17682. },
  17683. relativeTime: {
  17684. future: "%s இல்",
  17685. past: "%s முன்",
  17686. s: "ஒரு சில விநாடிகள்",
  17687. ss: "%d விநாடிகள்",
  17688. m: "ஒரு நிமிடம்",
  17689. mm: "%d நிமிடங்கள்",
  17690. h: "ஒரு மணி நேரம்",
  17691. hh: "%d மணி நேரம்",
  17692. d: "ஒரு நாள்",
  17693. dd: "%d நாட்கள்",
  17694. M: "ஒரு மாதம்",
  17695. MM: "%d மாதங்கள்",
  17696. y: "ஒரு வருடம்",
  17697. yy: "%d ஆண்டுகள்"
  17698. },
  17699. dayOfMonthOrdinalParse: /\d{1,2}வது/,
  17700. ordinal: function(e) {
  17701. return e + "வது"
  17702. },
  17703. preparse: function(e) {
  17704. return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function(e) {
  17705. return n[e]
  17706. })
  17707. },
  17708. postformat: function(e) {
  17709. return e.replace(/\d/g, function(e) {
  17710. return t[e]
  17711. })
  17712. },
  17713. meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
  17714. meridiem: function(e, t, n) {
  17715. if (e < 2) return " யாமம்";
  17716. else if (e < 6) return " வைகறை";
  17717. else if (e < 10) return " காலை";
  17718. else if (e < 14) return " நண்பகல்";
  17719. else if (e < 18) return " எற்பாடு";
  17720. else if (e < 22) return " மாலை";
  17721. else return " யாமம்"
  17722. },
  17723. meridiemHour: function(e, t) {
  17724. if (e === 12) e = 0;
  17725. if (t === "யாமம்") return e < 2 ? e : e + 12;
  17726. else if (t === "வைகறை" || t === "காலை") return e;
  17727. else if (t === "நண்பகல்") return e >= 10 ? e : e + 12;
  17728. else return e + 12
  17729. },
  17730. week: {
  17731. dow: 0,
  17732. doy: 6
  17733. }
  17734. })
  17735. }(n(0))
  17736. }, function(e, t, n) {
  17737. ! function(e) {
  17738. "use strict";
  17739. //! moment.js locale configuration
  17740. var t;
  17741. e.defineLocale("te", {
  17742. months: "జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్"
  17743. .split("_"),
  17744. monthsShort: "జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె."
  17745. .split("_"),
  17746. monthsParseExact: true,
  17747. weekdays: "ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),
  17748. weekdaysShort: "ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),
  17749. weekdaysMin: "ఆ_సో_మం_బు_గు_శు_శ".split("_"),
  17750. longDateFormat: {
  17751. LT: "A h:mm",
  17752. LTS: "A h:mm:ss",
  17753. L: "DD/MM/YYYY",
  17754. LL: "D MMMM YYYY",
  17755. LLL: "D MMMM YYYY, A h:mm",
  17756. LLLL: "dddd, D MMMM YYYY, A h:mm"
  17757. },
  17758. calendar: {
  17759. sameDay: "[నేడు] LT",
  17760. nextDay: "[రేపు] LT",
  17761. nextWeek: "dddd, LT",
  17762. lastDay: "[నిన్న] LT",
  17763. lastWeek: "[గత] dddd, LT",
  17764. sameElse: "L"
  17765. },
  17766. relativeTime: {
  17767. future: "%s లో",
  17768. past: "%s క్రితం",
  17769. s: "కొన్ని క్షణాలు",
  17770. ss: "%d సెకన్లు",
  17771. m: "ఒక నిమిషం",
  17772. mm: "%d నిమిషాలు",
  17773. h: "ఒక గంట",
  17774. hh: "%d గంటలు",
  17775. d: "ఒక రోజు",
  17776. dd: "%d రోజులు",
  17777. M: "ఒక నెల",
  17778. MM: "%d నెలలు",
  17779. y: "ఒక సంవత్సరం",
  17780. yy: "%d సంవత్సరాలు"
  17781. },
  17782. dayOfMonthOrdinalParse: /\d{1,2}వ/,
  17783. ordinal: "%dవ",
  17784. meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,
  17785. meridiemHour: function(e, t) {
  17786. if (e === 12) e = 0;
  17787. if (t === "రాత్రి") return e < 4 ? e : e + 12;
  17788. else if (t === "ఉదయం") return e;
  17789. else if (t === "మధ్యాహ్నం") return e >= 10 ? e : e + 12;
  17790. else if (t === "సాయంత్రం") return e + 12
  17791. },
  17792. meridiem: function(e, t, n) {
  17793. if (e < 4) return "రాత్రి";
  17794. else if (e < 10) return "ఉదయం";
  17795. else if (e < 17) return "మధ్యాహ్నం";
  17796. else if (e < 20) return "సాయంత్రం";
  17797. else return "రాత్రి"
  17798. },
  17799. week: {
  17800. dow: 0,
  17801. doy: 6
  17802. }
  17803. })
  17804. }(n(0))
  17805. }, function(e, t, n) {
  17806. ! function(e) {
  17807. "use strict";
  17808. //! moment.js locale configuration
  17809. var t;
  17810. e.defineLocale("tet", {
  17811. months: "Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru"
  17812. .split("_"),
  17813. monthsShort: "Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),
  17814. weekdays: "Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),
  17815. weekdaysShort: "Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),
  17816. weekdaysMin: "Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),
  17817. longDateFormat: {
  17818. LT: "HH:mm",
  17819. LTS: "HH:mm:ss",
  17820. L: "DD/MM/YYYY",
  17821. LL: "D MMMM YYYY",
  17822. LLL: "D MMMM YYYY HH:mm",
  17823. LLLL: "dddd, D MMMM YYYY HH:mm"
  17824. },
  17825. calendar: {
  17826. sameDay: "[Ohin iha] LT",
  17827. nextDay: "[Aban iha] LT",
  17828. nextWeek: "dddd [iha] LT",
  17829. lastDay: "[Horiseik iha] LT",
  17830. lastWeek: "dddd [semana kotuk] [iha] LT",
  17831. sameElse: "L"
  17832. },
  17833. relativeTime: {
  17834. future: "iha %s",
  17835. past: "%s liuba",
  17836. s: "segundu balun",
  17837. ss: "segundu %d",
  17838. m: "minutu ida",
  17839. mm: "minutu %d",
  17840. h: "oras ida",
  17841. hh: "oras %d",
  17842. d: "loron ida",
  17843. dd: "loron %d",
  17844. M: "fulan ida",
  17845. MM: "fulan %d",
  17846. y: "tinan ida",
  17847. yy: "tinan %d"
  17848. },
  17849. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  17850. ordinal: function(e) {
  17851. var t = e % 10,
  17852. n = ~~(e % 100 / 10) === 1 ? "th" : t === 1 ? "st" : t === 2 ? "nd" :
  17853. t === 3 ? "rd" : "th";
  17854. return e + n
  17855. },
  17856. week: {
  17857. dow: 1,
  17858. doy: 4
  17859. }
  17860. })
  17861. }(n(0))
  17862. }, function(e, t, n) {
  17863. ! function(e) {
  17864. "use strict";
  17865. //! moment.js locale configuration
  17866. var i = {
  17867. 0: "-ум",
  17868. 1: "-ум",
  17869. 2: "-юм",
  17870. 3: "-юм",
  17871. 4: "-ум",
  17872. 5: "-ум",
  17873. 6: "-ум",
  17874. 7: "-ум",
  17875. 8: "-ум",
  17876. 9: "-ум",
  17877. 10: "-ум",
  17878. 12: "-ум",
  17879. 13: "-ум",
  17880. 20: "-ум",
  17881. 30: "-юм",
  17882. 40: "-ум",
  17883. 50: "-ум",
  17884. 60: "-ум",
  17885. 70: "-ум",
  17886. 80: "-ум",
  17887. 90: "-ум",
  17888. 100: "-ум"
  17889. },
  17890. t;
  17891. e.defineLocale("tg", {
  17892. months: {
  17893. format: "январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри"
  17894. .split("_"),
  17895. standalone: "январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр"
  17896. .split("_")
  17897. },
  17898. monthsShort: "янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),
  17899. weekdays: "якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),
  17900. weekdaysShort: "яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),
  17901. weekdaysMin: "яш_дш_сш_чш_пш_ҷм_шб".split("_"),
  17902. longDateFormat: {
  17903. LT: "HH:mm",
  17904. LTS: "HH:mm:ss",
  17905. L: "DD.MM.YYYY",
  17906. LL: "D MMMM YYYY",
  17907. LLL: "D MMMM YYYY HH:mm",
  17908. LLLL: "dddd, D MMMM YYYY HH:mm"
  17909. },
  17910. calendar: {
  17911. sameDay: "[Имрӯз соати] LT",
  17912. nextDay: "[Фардо соати] LT",
  17913. lastDay: "[Дирӯз соати] LT",
  17914. nextWeek: "dddd[и] [ҳафтаи оянда соати] LT",
  17915. lastWeek: "dddd[и] [ҳафтаи гузашта соати] LT",
  17916. sameElse: "L"
  17917. },
  17918. relativeTime: {
  17919. future: "баъди %s",
  17920. past: "%s пеш",
  17921. s: "якчанд сония",
  17922. m: "як дақиқа",
  17923. mm: "%d дақиқа",
  17924. h: "як соат",
  17925. hh: "%d соат",
  17926. d: "як рӯз",
  17927. dd: "%d рӯз",
  17928. M: "як моҳ",
  17929. MM: "%d моҳ",
  17930. y: "як сол",
  17931. yy: "%d сол"
  17932. },
  17933. meridiemParse: /шаб|субҳ|рӯз|бегоҳ/,
  17934. meridiemHour: function(e, t) {
  17935. if (e === 12) e = 0;
  17936. if (t === "шаб") return e < 4 ? e : e + 12;
  17937. else if (t === "субҳ") return e;
  17938. else if (t === "рӯз") return e >= 11 ? e : e + 12;
  17939. else if (t === "бегоҳ") return e + 12
  17940. },
  17941. meridiem: function(e, t, n) {
  17942. if (e < 4) return "шаб";
  17943. else if (e < 11) return "субҳ";
  17944. else if (e < 16) return "рӯз";
  17945. else if (e < 19) return "бегоҳ";
  17946. else return "шаб"
  17947. },
  17948. dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/,
  17949. ordinal: function(e) {
  17950. var t = e % 10,
  17951. n = e >= 100 ? 100 : null;
  17952. return e + (i[e] || i[t] || i[n])
  17953. },
  17954. week: {
  17955. dow: 1,
  17956. doy: 7
  17957. }
  17958. })
  17959. }(n(0))
  17960. }, function(e, t, n) {
  17961. ! function(e) {
  17962. "use strict";
  17963. //! moment.js locale configuration
  17964. var t;
  17965. e.defineLocale("th", {
  17966. months: "มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม"
  17967. .split("_"),
  17968. monthsShort: "ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split(
  17969. "_"),
  17970. monthsParseExact: true,
  17971. weekdays: "อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),
  17972. weekdaysShort: "อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),
  17973. weekdaysMin: "อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),
  17974. weekdaysParseExact: true,
  17975. longDateFormat: {
  17976. LT: "H:mm",
  17977. LTS: "H:mm:ss",
  17978. L: "DD/MM/YYYY",
  17979. LL: "D MMMM YYYY",
  17980. LLL: "D MMMM YYYY เวลา H:mm",
  17981. LLLL: "วันddddที่ D MMMM YYYY เวลา H:mm"
  17982. },
  17983. meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
  17984. isPM: function(e) {
  17985. return e === "หลังเที่ยง"
  17986. },
  17987. meridiem: function(e, t, n) {
  17988. if (e < 12) return "ก่อนเที่ยง";
  17989. else return "หลังเที่ยง"
  17990. },
  17991. calendar: {
  17992. sameDay: "[วันนี้ เวลา] LT",
  17993. nextDay: "[พรุ่งนี้ เวลา] LT",
  17994. nextWeek: "dddd[หน้า เวลา] LT",
  17995. lastDay: "[เมื่อวานนี้ เวลา] LT",
  17996. lastWeek: "[วัน]dddd[ที่แล้ว เวลา] LT",
  17997. sameElse: "L"
  17998. },
  17999. relativeTime: {
  18000. future: "อีก %s",
  18001. past: "%sที่แล้ว",
  18002. s: "ไม่กี่วินาที",
  18003. ss: "%d วินาที",
  18004. m: "1 นาที",
  18005. mm: "%d นาที",
  18006. h: "1 ชั่วโมง",
  18007. hh: "%d ชั่วโมง",
  18008. d: "1 วัน",
  18009. dd: "%d วัน",
  18010. w: "1 สัปดาห์",
  18011. ww: "%d สัปดาห์",
  18012. M: "1 เดือน",
  18013. MM: "%d เดือน",
  18014. y: "1 ปี",
  18015. yy: "%d ปี"
  18016. }
  18017. })
  18018. }(n(0))
  18019. }, function(e, t, n) {
  18020. ! function(e) {
  18021. "use strict";
  18022. //! moment.js locale configuration
  18023. var a = {
  18024. 1: "'inji",
  18025. 5: "'inji",
  18026. 8: "'inji",
  18027. 70: "'inji",
  18028. 80: "'inji",
  18029. 2: "'nji",
  18030. 7: "'nji",
  18031. 20: "'nji",
  18032. 50: "'nji",
  18033. 3: "'ünji",
  18034. 4: "'ünji",
  18035. 100: "'ünji",
  18036. 6: "'njy",
  18037. 9: "'unjy",
  18038. 10: "'unjy",
  18039. 30: "'unjy",
  18040. 60: "'ynjy",
  18041. 90: "'ynjy"
  18042. },
  18043. t;
  18044. e.defineLocale("tk", {
  18045. months: "Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr"
  18046. .split("_"),
  18047. monthsShort: "Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),
  18048. weekdays: "Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),
  18049. weekdaysShort: "Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),
  18050. weekdaysMin: "Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),
  18051. longDateFormat: {
  18052. LT: "HH:mm",
  18053. LTS: "HH:mm:ss",
  18054. L: "DD.MM.YYYY",
  18055. LL: "D MMMM YYYY",
  18056. LLL: "D MMMM YYYY HH:mm",
  18057. LLLL: "dddd, D MMMM YYYY HH:mm"
  18058. },
  18059. calendar: {
  18060. sameDay: "[bugün sagat] LT",
  18061. nextDay: "[ertir sagat] LT",
  18062. nextWeek: "[indiki] dddd [sagat] LT",
  18063. lastDay: "[düýn] LT",
  18064. lastWeek: "[geçen] dddd [sagat] LT",
  18065. sameElse: "L"
  18066. },
  18067. relativeTime: {
  18068. future: "%s soň",
  18069. past: "%s öň",
  18070. s: "birnäçe sekunt",
  18071. m: "bir minut",
  18072. mm: "%d minut",
  18073. h: "bir sagat",
  18074. hh: "%d sagat",
  18075. d: "bir gün",
  18076. dd: "%d gün",
  18077. M: "bir aý",
  18078. MM: "%d aý",
  18079. y: "bir ýyl",
  18080. yy: "%d ýyl"
  18081. },
  18082. ordinal: function(e, t) {
  18083. switch (t) {
  18084. case "d":
  18085. case "D":
  18086. case "Do":
  18087. case "DD":
  18088. return e;
  18089. default:
  18090. if (e === 0) return e + "'unjy";
  18091. var n = e % 10,
  18092. i = e % 100 - n,
  18093. r = e >= 100 ? 100 : null;
  18094. return e + (a[n] || a[i] || a[r])
  18095. }
  18096. },
  18097. week: {
  18098. dow: 1,
  18099. doy: 7
  18100. }
  18101. })
  18102. }(n(0))
  18103. }, function(e, t, n) {
  18104. ! function(e) {
  18105. "use strict";
  18106. //! moment.js locale configuration
  18107. var t;
  18108. e.defineLocale("tl-ph", {
  18109. months: "Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre"
  18110. .split("_"),
  18111. monthsShort: "Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),
  18112. weekdays: "Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),
  18113. weekdaysShort: "Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),
  18114. weekdaysMin: "Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),
  18115. longDateFormat: {
  18116. LT: "HH:mm",
  18117. LTS: "HH:mm:ss",
  18118. L: "MM/D/YYYY",
  18119. LL: "MMMM D, YYYY",
  18120. LLL: "MMMM D, YYYY HH:mm",
  18121. LLLL: "dddd, MMMM DD, YYYY HH:mm"
  18122. },
  18123. calendar: {
  18124. sameDay: "LT [ngayong araw]",
  18125. nextDay: "[Bukas ng] LT",
  18126. nextWeek: "LT [sa susunod na] dddd",
  18127. lastDay: "LT [kahapon]",
  18128. lastWeek: "LT [noong nakaraang] dddd",
  18129. sameElse: "L"
  18130. },
  18131. relativeTime: {
  18132. future: "sa loob ng %s",
  18133. past: "%s ang nakalipas",
  18134. s: "ilang segundo",
  18135. ss: "%d segundo",
  18136. m: "isang minuto",
  18137. mm: "%d minuto",
  18138. h: "isang oras",
  18139. hh: "%d oras",
  18140. d: "isang araw",
  18141. dd: "%d araw",
  18142. M: "isang buwan",
  18143. MM: "%d buwan",
  18144. y: "isang taon",
  18145. yy: "%d taon"
  18146. },
  18147. dayOfMonthOrdinalParse: /\d{1,2}/,
  18148. ordinal: function(e) {
  18149. return e
  18150. },
  18151. week: {
  18152. dow: 1,
  18153. doy: 4
  18154. }
  18155. })
  18156. }(n(0))
  18157. }, function(e, t, n) {
  18158. ! function(e) {
  18159. "use strict";
  18160. //! moment.js locale configuration
  18161. var a = "pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_"),
  18162. t;
  18163. function n(e) {
  18164. var t = e;
  18165. t = e.indexOf("jaj") !== -1 ? t.slice(0, -3) + "leS" : e.indexOf("jar") !== -1 ? t.slice(0,
  18166. -3) + "waQ" : e.indexOf("DIS") !== -1 ? t.slice(0, -3) + "nem" : t + " pIq";
  18167. return t
  18168. }
  18169. function i(e) {
  18170. var t = e;
  18171. t = e.indexOf("jaj") !== -1 ? t.slice(0, -3) + "Hu’" : e.indexOf("jar") !== -1 ? t.slice(0,
  18172. -3) + "wen" : e.indexOf("DIS") !== -1 ? t.slice(0, -3) + "ben" : t + " ret";
  18173. return t
  18174. }
  18175. function r(e, t, n, i) {
  18176. var r = s(e);
  18177. switch (n) {
  18178. case "ss":
  18179. return r + " lup";
  18180. case "mm":
  18181. return r + " tup";
  18182. case "hh":
  18183. return r + " rep";
  18184. case "dd":
  18185. return r + " jaj";
  18186. case "MM":
  18187. return r + " jar";
  18188. case "yy":
  18189. return r + " DIS"
  18190. }
  18191. }
  18192. function s(e) {
  18193. var t = Math.floor(e % 1e3 / 100),
  18194. n = Math.floor(e % 100 / 10),
  18195. i = e % 10,
  18196. r = "";
  18197. if (t > 0) r += a[t] + "vatlh";
  18198. if (n > 0) r += (r !== "" ? " " : "") + a[n] + "maH";
  18199. if (i > 0) r += (r !== "" ? " " : "") + a[i];
  18200. return r === "" ? "pagh" : r
  18201. }
  18202. e.defineLocale("tlh", {
  18203. 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’"
  18204. .split("_"),
  18205. 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’"
  18206. .split("_"),
  18207. monthsParseExact: true,
  18208. weekdays: "lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),
  18209. weekdaysShort: "lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split(
  18210. "_"),
  18211. weekdaysMin: "lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),
  18212. longDateFormat: {
  18213. LT: "HH:mm",
  18214. LTS: "HH:mm:ss",
  18215. L: "DD.MM.YYYY",
  18216. LL: "D MMMM YYYY",
  18217. LLL: "D MMMM YYYY HH:mm",
  18218. LLLL: "dddd, D MMMM YYYY HH:mm"
  18219. },
  18220. calendar: {
  18221. sameDay: "[DaHjaj] LT",
  18222. nextDay: "[wa’leS] LT",
  18223. nextWeek: "LLL",
  18224. lastDay: "[wa’Hu’] LT",
  18225. lastWeek: "LLL",
  18226. sameElse: "L"
  18227. },
  18228. relativeTime: {
  18229. future: n,
  18230. past: i,
  18231. s: "puS lup",
  18232. ss: r,
  18233. m: "wa’ tup",
  18234. mm: r,
  18235. h: "wa’ rep",
  18236. hh: r,
  18237. d: "wa’ jaj",
  18238. dd: r,
  18239. M: "wa’ jar",
  18240. MM: r,
  18241. y: "wa’ DIS",
  18242. yy: r
  18243. },
  18244. dayOfMonthOrdinalParse: /\d{1,2}\./,
  18245. ordinal: "%d.",
  18246. week: {
  18247. dow: 1,
  18248. doy: 4
  18249. }
  18250. })
  18251. }(n(0))
  18252. }, function(e, t, n) {
  18253. ! function(e) {
  18254. "use strict";
  18255. //! moment.js locale configuration
  18256. var a = {
  18257. 1: "'inci",
  18258. 5: "'inci",
  18259. 8: "'inci",
  18260. 70: "'inci",
  18261. 80: "'inci",
  18262. 2: "'nci",
  18263. 7: "'nci",
  18264. 20: "'nci",
  18265. 50: "'nci",
  18266. 3: "'üncü",
  18267. 4: "'üncü",
  18268. 100: "'üncü",
  18269. 6: "'ncı",
  18270. 9: "'uncu",
  18271. 10: "'uncu",
  18272. 30: "'uncu",
  18273. 60: "'ıncı",
  18274. 90: "'ıncı"
  18275. },
  18276. t;
  18277. e.defineLocale("tr", {
  18278. months: "Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık"
  18279. .split("_"),
  18280. monthsShort: "Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),
  18281. weekdays: "Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),
  18282. weekdaysShort: "Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),
  18283. weekdaysMin: "Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),
  18284. meridiem: function(e, t, n) {
  18285. if (e < 12) return n ? "öö" : "ÖÖ";
  18286. else return n ? "ös" : "ÖS"
  18287. },
  18288. meridiemParse: /öö|ÖÖ|ös|ÖS/,
  18289. isPM: function(e) {
  18290. return e === "ös" || e === "ÖS"
  18291. },
  18292. longDateFormat: {
  18293. LT: "HH:mm",
  18294. LTS: "HH:mm:ss",
  18295. L: "DD.MM.YYYY",
  18296. LL: "D MMMM YYYY",
  18297. LLL: "D MMMM YYYY HH:mm",
  18298. LLLL: "dddd, D MMMM YYYY HH:mm"
  18299. },
  18300. calendar: {
  18301. sameDay: "[bugün saat] LT",
  18302. nextDay: "[yarın saat] LT",
  18303. nextWeek: "[gelecek] dddd [saat] LT",
  18304. lastDay: "[dün] LT",
  18305. lastWeek: "[geçen] dddd [saat] LT",
  18306. sameElse: "L"
  18307. },
  18308. relativeTime: {
  18309. future: "%s sonra",
  18310. past: "%s önce",
  18311. s: "birkaç saniye",
  18312. ss: "%d saniye",
  18313. m: "bir dakika",
  18314. mm: "%d dakika",
  18315. h: "bir saat",
  18316. hh: "%d saat",
  18317. d: "bir gün",
  18318. dd: "%d gün",
  18319. w: "bir hafta",
  18320. ww: "%d hafta",
  18321. M: "bir ay",
  18322. MM: "%d ay",
  18323. y: "bir yıl",
  18324. yy: "%d yıl"
  18325. },
  18326. ordinal: function(e, t) {
  18327. switch (t) {
  18328. case "d":
  18329. case "D":
  18330. case "Do":
  18331. case "DD":
  18332. return e;
  18333. default:
  18334. if (e === 0) return e + "'ıncı";
  18335. var n = e % 10,
  18336. i = e % 100 - n,
  18337. r = e >= 100 ? 100 : null;
  18338. return e + (a[n] || a[i] || a[r])
  18339. }
  18340. },
  18341. week: {
  18342. dow: 1,
  18343. doy: 7
  18344. }
  18345. })
  18346. }(n(0))
  18347. }, function(e, t, n) {
  18348. ! function(e) {
  18349. "use strict";
  18350. //! moment.js locale configuration
  18351. var t;
  18352. function n(e, t, n, i) {
  18353. var r = {
  18354. s: ["viensas secunds", "'iensas secunds"],
  18355. ss: [e + " secunds", "" + e + " secunds"],
  18356. m: ["'n míut", "'iens míut"],
  18357. mm: [e + " míuts", "" + e + " míuts"],
  18358. h: ["'n þora", "'iensa þora"],
  18359. hh: [e + " þoras", "" + e + " þoras"],
  18360. d: ["'n ziua", "'iensa ziua"],
  18361. dd: [e + " ziuas", "" + e + " ziuas"],
  18362. M: ["'n mes", "'iens mes"],
  18363. MM: [e + " mesen", "" + e + " mesen"],
  18364. y: ["'n ar", "'iens ar"],
  18365. yy: [e + " ars", "" + e + " ars"]
  18366. };
  18367. return i ? r[n][0] : t ? r[n][0] : r[n][1]
  18368. }
  18369. e.defineLocale("tzl", {
  18370. months: "Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar"
  18371. .split("_"),
  18372. monthsShort: "Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),
  18373. weekdays: "Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),
  18374. weekdaysShort: "Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),
  18375. weekdaysMin: "Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),
  18376. longDateFormat: {
  18377. LT: "HH.mm",
  18378. LTS: "HH.mm.ss",
  18379. L: "DD.MM.YYYY",
  18380. LL: "D. MMMM [dallas] YYYY",
  18381. LLL: "D. MMMM [dallas] YYYY HH.mm",
  18382. LLLL: "dddd, [li] D. MMMM [dallas] YYYY HH.mm"
  18383. },
  18384. meridiemParse: /d\'o|d\'a/i,
  18385. isPM: function(e) {
  18386. return "d'o" === e.toLowerCase()
  18387. },
  18388. meridiem: function(e, t, n) {
  18389. if (e > 11) return n ? "d'o" : "D'O";
  18390. else return n ? "d'a" : "D'A"
  18391. },
  18392. calendar: {
  18393. sameDay: "[oxhi à] LT",
  18394. nextDay: "[demà à] LT",
  18395. nextWeek: "dddd [à] LT",
  18396. lastDay: "[ieiri à] LT",
  18397. lastWeek: "[sür el] dddd [lasteu à] LT",
  18398. sameElse: "L"
  18399. },
  18400. relativeTime: {
  18401. future: "osprei %s",
  18402. past: "ja%s",
  18403. s: n,
  18404. ss: n,
  18405. m: n,
  18406. mm: n,
  18407. h: n,
  18408. hh: n,
  18409. d: n,
  18410. dd: n,
  18411. M: n,
  18412. MM: n,
  18413. y: n,
  18414. yy: n
  18415. },
  18416. dayOfMonthOrdinalParse: /\d{1,2}\./,
  18417. ordinal: "%d.",
  18418. week: {
  18419. dow: 1,
  18420. doy: 4
  18421. }
  18422. })
  18423. }(n(0))
  18424. }, function(e, t, n) {
  18425. ! function(e) {
  18426. "use strict";
  18427. //! moment.js locale configuration
  18428. var t;
  18429. e.defineLocale("tzm", {
  18430. months: "ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ"
  18431. .split("_"),
  18432. monthsShort: "ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ"
  18433. .split("_"),
  18434. weekdays: "ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),
  18435. weekdaysShort: "ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),
  18436. weekdaysMin: "ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),
  18437. longDateFormat: {
  18438. LT: "HH:mm",
  18439. LTS: "HH:mm:ss",
  18440. L: "DD/MM/YYYY",
  18441. LL: "D MMMM YYYY",
  18442. LLL: "D MMMM YYYY HH:mm",
  18443. LLLL: "dddd D MMMM YYYY HH:mm"
  18444. },
  18445. calendar: {
  18446. sameDay: "[ⴰⵙⴷⵅ ⴴ] LT",
  18447. nextDay: "[ⴰⵙⴽⴰ ⴴ] LT",
  18448. nextWeek: "dddd [ⴴ] LT",
  18449. lastDay: "[ⴰⵚⴰⵏⵜ ⴴ] LT",
  18450. lastWeek: "dddd [ⴴ] LT",
  18451. sameElse: "L"
  18452. },
  18453. relativeTime: {
  18454. future: "ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",
  18455. past: "ⵢⴰⵏ %s",
  18456. s: "ⵉⵎⵉⴽ",
  18457. ss: "%d ⵉⵎⵉⴽ",
  18458. m: "ⵎⵉⵏⵓⴺ",
  18459. mm: "%d ⵎⵉⵏⵓⴺ",
  18460. h: "ⵙⴰⵄⴰ",
  18461. hh: "%d ⵜⴰⵙⵙⴰⵄⵉⵏ",
  18462. d: "ⴰⵙⵙ",
  18463. dd: "%d oⵙⵙⴰⵏ",
  18464. M: "ⴰⵢoⵓⵔ",
  18465. MM: "%d ⵉⵢⵢⵉⵔⵏ",
  18466. y: "ⴰⵙⴳⴰⵙ",
  18467. yy: "%d ⵉⵙⴳⴰⵙⵏ"
  18468. },
  18469. week: {
  18470. dow: 6,
  18471. doy: 12
  18472. }
  18473. })
  18474. }(n(0))
  18475. }, function(e, t, n) {
  18476. ! function(e) {
  18477. "use strict";
  18478. //! moment.js locale configuration
  18479. var t;
  18480. e.defineLocale("tzm-latn", {
  18481. months: "innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir"
  18482. .split("_"),
  18483. monthsShort: "innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir"
  18484. .split("_"),
  18485. weekdays: "asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),
  18486. weekdaysShort: "asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),
  18487. weekdaysMin: "asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),
  18488. longDateFormat: {
  18489. LT: "HH:mm",
  18490. LTS: "HH:mm:ss",
  18491. L: "DD/MM/YYYY",
  18492. LL: "D MMMM YYYY",
  18493. LLL: "D MMMM YYYY HH:mm",
  18494. LLLL: "dddd D MMMM YYYY HH:mm"
  18495. },
  18496. calendar: {
  18497. sameDay: "[asdkh g] LT",
  18498. nextDay: "[aska g] LT",
  18499. nextWeek: "dddd [g] LT",
  18500. lastDay: "[assant g] LT",
  18501. lastWeek: "dddd [g] LT",
  18502. sameElse: "L"
  18503. },
  18504. relativeTime: {
  18505. future: "dadkh s yan %s",
  18506. past: "yan %s",
  18507. s: "imik",
  18508. ss: "%d imik",
  18509. m: "minuḍ",
  18510. mm: "%d minuḍ",
  18511. h: "saɛa",
  18512. hh: "%d tassaɛin",
  18513. d: "ass",
  18514. dd: "%d ossan",
  18515. M: "ayowr",
  18516. MM: "%d iyyirn",
  18517. y: "asgas",
  18518. yy: "%d isgasn"
  18519. },
  18520. week: {
  18521. dow: 6,
  18522. doy: 12
  18523. }
  18524. })
  18525. }(n(0))
  18526. }, function(e, t, n) {
  18527. ! function(e) {
  18528. "use strict";
  18529. //! moment.js locale configuration
  18530. var t;
  18531. e.defineLocale("ug-cn", {
  18532. months: "يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر"
  18533. .split("_"),
  18534. monthsShort: "يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر"
  18535. .split("_"),
  18536. weekdays: "يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),
  18537. weekdaysShort: "يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),
  18538. weekdaysMin: "يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),
  18539. longDateFormat: {
  18540. LT: "HH:mm",
  18541. LTS: "HH:mm:ss",
  18542. L: "YYYY-MM-DD",
  18543. LL: "YYYY-يىلىM-ئاينىڭD-كۈنى",
  18544. LLL: "YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",
  18545. LLLL: "dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"
  18546. },
  18547. meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,
  18548. meridiemHour: function(e, t) {
  18549. if (e === 12) e = 0;
  18550. if (t === "يېرىم كېچە" || t === "سەھەر" || t === "چۈشتىن بۇرۇن") return e;
  18551. else if (t === "چۈشتىن كېيىن" || t === "كەچ") return e + 12;
  18552. else return e >= 11 ? e : e + 12
  18553. },
  18554. meridiem: function(e, t, n) {
  18555. var i = e * 100 + t;
  18556. if (i < 600) return "يېرىم كېچە";
  18557. else if (i < 900) return "سەھەر";
  18558. else if (i < 1130) return "چۈشتىن بۇرۇن";
  18559. else if (i < 1230) return "چۈش";
  18560. else if (i < 1800) return "چۈشتىن كېيىن";
  18561. else return "كەچ"
  18562. },
  18563. calendar: {
  18564. sameDay: "[بۈگۈن سائەت] LT",
  18565. nextDay: "[ئەتە سائەت] LT",
  18566. nextWeek: "[كېلەركى] dddd [سائەت] LT",
  18567. lastDay: "[تۆنۈگۈن] LT",
  18568. lastWeek: "[ئالدىنقى] dddd [سائەت] LT",
  18569. sameElse: "L"
  18570. },
  18571. relativeTime: {
  18572. future: "%s كېيىن",
  18573. past: "%s بۇرۇن",
  18574. s: "نەچچە سېكونت",
  18575. ss: "%d سېكونت",
  18576. m: "بىر مىنۇت",
  18577. mm: "%d مىنۇت",
  18578. h: "بىر سائەت",
  18579. hh: "%d سائەت",
  18580. d: "بىر كۈن",
  18581. dd: "%d كۈن",
  18582. M: "بىر ئاي",
  18583. MM: "%d ئاي",
  18584. y: "بىر يىل",
  18585. yy: "%d يىل"
  18586. },
  18587. dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,
  18588. ordinal: function(e, t) {
  18589. switch (t) {
  18590. case "d":
  18591. case "D":
  18592. case "DDD":
  18593. return e + "-كۈنى";
  18594. case "w":
  18595. case "W":
  18596. return e + "-ھەپتە";
  18597. default:
  18598. return e
  18599. }
  18600. },
  18601. preparse: function(e) {
  18602. return e.replace(/،/g, ",")
  18603. },
  18604. postformat: function(e) {
  18605. return e.replace(/,/g, "،")
  18606. },
  18607. week: {
  18608. dow: 1,
  18609. doy: 7
  18610. }
  18611. })
  18612. }(n(0))
  18613. }, function(e, t, n) {
  18614. ! function(e) {
  18615. "use strict";
  18616. //! moment.js locale configuration
  18617. function r(e, t) {
  18618. var n = e.split("_");
  18619. return t % 10 === 1 && t % 100 !== 11 ? n[0] : t % 10 >= 2 && t % 10 <= 4 && (t % 100 <
  18620. 10 || t % 100 >= 20) ? n[1] : n[2]
  18621. }
  18622. function t(e, t, n) {
  18623. var i = {
  18624. ss: t ? "секунда_секунди_секунд" : "секунду_секунди_секунд",
  18625. mm: t ? "хвилина_хвилини_хвилин" : "хвилину_хвилини_хвилин",
  18626. hh: t ? "година_години_годин" : "годину_години_годин",
  18627. dd: "день_дні_днів",
  18628. MM: "місяць_місяці_місяців",
  18629. yy: "рік_роки_років"
  18630. };
  18631. if (n === "m") return t ? "хвилина" : "хвилину";
  18632. else if (n === "h") return t ? "година" : "годину";
  18633. else return e + " " + r(i[n], +e)
  18634. }
  18635. function n(e, t) {
  18636. var n = {
  18637. nominative: "неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),
  18638. accusative: "неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),
  18639. genitive: "неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")
  18640. },
  18641. i;
  18642. if (e === true) return n["nominative"].slice(1, 7).concat(n["nominative"].slice(0, 1));
  18643. if (!e) return n["nominative"];
  18644. i = /(\[[ВвУу]\]) ?dddd/.test(t) ? "accusative" : /\[?(?:минулої|наступної)? ?\] ?dddd/
  18645. .test(t) ? "genitive" : "nominative";
  18646. return n[i][e.day()]
  18647. }
  18648. function i(e) {
  18649. return function() {
  18650. return e + "о" + (this.hours() === 11 ? "б" : "") + "] LT"
  18651. }
  18652. }
  18653. var a;
  18654. e.defineLocale("uk", {
  18655. months: {
  18656. format: "січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня"
  18657. .split("_"),
  18658. standalone: "січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень"
  18659. .split("_")
  18660. },
  18661. monthsShort: "січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),
  18662. weekdays: n,
  18663. weekdaysShort: "нд_пн_вт_ср_чт_пт_сб".split("_"),
  18664. weekdaysMin: "нд_пн_вт_ср_чт_пт_сб".split("_"),
  18665. longDateFormat: {
  18666. LT: "HH:mm",
  18667. LTS: "HH:mm:ss",
  18668. L: "DD.MM.YYYY",
  18669. LL: "D MMMM YYYY р.",
  18670. LLL: "D MMMM YYYY р., HH:mm",
  18671. LLLL: "dddd, D MMMM YYYY р., HH:mm"
  18672. },
  18673. calendar: {
  18674. sameDay: i("[Сьогодні "),
  18675. nextDay: i("[Завтра "),
  18676. lastDay: i("[Вчора "),
  18677. nextWeek: i("[У] dddd ["),
  18678. lastWeek: function() {
  18679. switch (this.day()) {
  18680. case 0:
  18681. case 3:
  18682. case 5:
  18683. case 6:
  18684. return i("[Минулої] dddd [").call(this);
  18685. case 1:
  18686. case 2:
  18687. case 4:
  18688. return i("[Минулого] dddd [").call(this)
  18689. }
  18690. },
  18691. sameElse: "L"
  18692. },
  18693. relativeTime: {
  18694. future: "за %s",
  18695. past: "%s тому",
  18696. s: "декілька секунд",
  18697. ss: t,
  18698. m: t,
  18699. mm: t,
  18700. h: "годину",
  18701. hh: t,
  18702. d: "день",
  18703. dd: t,
  18704. M: "місяць",
  18705. MM: t,
  18706. y: "рік",
  18707. yy: t
  18708. },
  18709. meridiemParse: /ночі|ранку|дня|вечора/,
  18710. isPM: function(e) {
  18711. return /^(дня|вечора)$/.test(e)
  18712. },
  18713. meridiem: function(e, t, n) {
  18714. if (e < 4) return "ночі";
  18715. else if (e < 12) return "ранку";
  18716. else if (e < 17) return "дня";
  18717. else return "вечора"
  18718. },
  18719. dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/,
  18720. ordinal: function(e, t) {
  18721. switch (t) {
  18722. case "M":
  18723. case "d":
  18724. case "DDD":
  18725. case "w":
  18726. case "W":
  18727. return e + "-й";
  18728. case "D":
  18729. return e + "-го";
  18730. default:
  18731. return e
  18732. }
  18733. },
  18734. week: {
  18735. dow: 1,
  18736. doy: 7
  18737. }
  18738. })
  18739. }(n(0))
  18740. }, function(e, t, n) {
  18741. ! function(e) {
  18742. "use strict";
  18743. //! moment.js locale configuration
  18744. var t = ["جنوری", "فروری", "مارچ", "اپریل", "مئی", "جون", "جولائی", "اگست", "ستمبر", "اکتوبر",
  18745. "نومبر", "دسمبر"
  18746. ],
  18747. n = ["اتوار", "پیر", "منگل", "بدھ", "جمعرات", "جمعہ", "ہفتہ"],
  18748. i;
  18749. e.defineLocale("ur", {
  18750. months: t,
  18751. monthsShort: t,
  18752. weekdays: n,
  18753. weekdaysShort: n,
  18754. weekdaysMin: n,
  18755. longDateFormat: {
  18756. LT: "HH:mm",
  18757. LTS: "HH:mm:ss",
  18758. L: "DD/MM/YYYY",
  18759. LL: "D MMMM YYYY",
  18760. LLL: "D MMMM YYYY HH:mm",
  18761. LLLL: "dddd، D MMMM YYYY HH:mm"
  18762. },
  18763. meridiemParse: /صبح|شام/,
  18764. isPM: function(e) {
  18765. return "شام" === e
  18766. },
  18767. meridiem: function(e, t, n) {
  18768. if (e < 12) return "صبح";
  18769. return "شام"
  18770. },
  18771. calendar: {
  18772. sameDay: "[آج بوقت] LT",
  18773. nextDay: "[کل بوقت] LT",
  18774. nextWeek: "dddd [بوقت] LT",
  18775. lastDay: "[گذشتہ روز بوقت] LT",
  18776. lastWeek: "[گذشتہ] dddd [بوقت] LT",
  18777. sameElse: "L"
  18778. },
  18779. relativeTime: {
  18780. future: "%s بعد",
  18781. past: "%s قبل",
  18782. s: "چند سیکنڈ",
  18783. ss: "%d سیکنڈ",
  18784. m: "ایک منٹ",
  18785. mm: "%d منٹ",
  18786. h: "ایک گھنٹہ",
  18787. hh: "%d گھنٹے",
  18788. d: "ایک دن",
  18789. dd: "%d دن",
  18790. M: "ایک ماہ",
  18791. MM: "%d ماہ",
  18792. y: "ایک سال",
  18793. yy: "%d سال"
  18794. },
  18795. preparse: function(e) {
  18796. return e.replace(/،/g, ",")
  18797. },
  18798. postformat: function(e) {
  18799. return e.replace(/,/g, "،")
  18800. },
  18801. week: {
  18802. dow: 1,
  18803. doy: 4
  18804. }
  18805. })
  18806. }(n(0))
  18807. }, function(e, t, n) {
  18808. ! function(e) {
  18809. "use strict";
  18810. //! moment.js locale configuration
  18811. var t;
  18812. e.defineLocale("uz", {
  18813. months: "январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр"
  18814. .split("_"),
  18815. monthsShort: "янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),
  18816. weekdays: "Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),
  18817. weekdaysShort: "Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),
  18818. weekdaysMin: "Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),
  18819. longDateFormat: {
  18820. LT: "HH:mm",
  18821. LTS: "HH:mm:ss",
  18822. L: "DD/MM/YYYY",
  18823. LL: "D MMMM YYYY",
  18824. LLL: "D MMMM YYYY HH:mm",
  18825. LLLL: "D MMMM YYYY, dddd HH:mm"
  18826. },
  18827. calendar: {
  18828. sameDay: "[Бугун соат] LT [да]",
  18829. nextDay: "[Эртага] LT [да]",
  18830. nextWeek: "dddd [куни соат] LT [да]",
  18831. lastDay: "[Кеча соат] LT [да]",
  18832. lastWeek: "[Утган] dddd [куни соат] LT [да]",
  18833. sameElse: "L"
  18834. },
  18835. relativeTime: {
  18836. future: "Якин %s ичида",
  18837. past: "Бир неча %s олдин",
  18838. s: "фурсат",
  18839. ss: "%d фурсат",
  18840. m: "бир дакика",
  18841. mm: "%d дакика",
  18842. h: "бир соат",
  18843. hh: "%d соат",
  18844. d: "бир кун",
  18845. dd: "%d кун",
  18846. M: "бир ой",
  18847. MM: "%d ой",
  18848. y: "бир йил",
  18849. yy: "%d йил"
  18850. },
  18851. week: {
  18852. dow: 1,
  18853. doy: 7
  18854. }
  18855. })
  18856. }(n(0))
  18857. }, function(e, t, n) {
  18858. ! function(e) {
  18859. "use strict";
  18860. //! moment.js locale configuration
  18861. var t;
  18862. e.defineLocale("uz-latn", {
  18863. months: "Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr"
  18864. .split("_"),
  18865. monthsShort: "Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),
  18866. weekdays: "Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),
  18867. weekdaysShort: "Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),
  18868. weekdaysMin: "Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),
  18869. longDateFormat: {
  18870. LT: "HH:mm",
  18871. LTS: "HH:mm:ss",
  18872. L: "DD/MM/YYYY",
  18873. LL: "D MMMM YYYY",
  18874. LLL: "D MMMM YYYY HH:mm",
  18875. LLLL: "D MMMM YYYY, dddd HH:mm"
  18876. },
  18877. calendar: {
  18878. sameDay: "[Bugun soat] LT [da]",
  18879. nextDay: "[Ertaga] LT [da]",
  18880. nextWeek: "dddd [kuni soat] LT [da]",
  18881. lastDay: "[Kecha soat] LT [da]",
  18882. lastWeek: "[O'tgan] dddd [kuni soat] LT [da]",
  18883. sameElse: "L"
  18884. },
  18885. relativeTime: {
  18886. future: "Yaqin %s ichida",
  18887. past: "Bir necha %s oldin",
  18888. s: "soniya",
  18889. ss: "%d soniya",
  18890. m: "bir daqiqa",
  18891. mm: "%d daqiqa",
  18892. h: "bir soat",
  18893. hh: "%d soat",
  18894. d: "bir kun",
  18895. dd: "%d kun",
  18896. M: "bir oy",
  18897. MM: "%d oy",
  18898. y: "bir yil",
  18899. yy: "%d yil"
  18900. },
  18901. week: {
  18902. dow: 1,
  18903. doy: 7
  18904. }
  18905. })
  18906. }(n(0))
  18907. }, function(e, t, n) {
  18908. ! function(e) {
  18909. "use strict";
  18910. //! moment.js locale configuration
  18911. var t;
  18912. e.defineLocale("vi", {
  18913. 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"
  18914. .split("_"),
  18915. monthsShort: "Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12"
  18916. .split("_"),
  18917. monthsParseExact: true,
  18918. weekdays: "chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),
  18919. weekdaysShort: "CN_T2_T3_T4_T5_T6_T7".split("_"),
  18920. weekdaysMin: "CN_T2_T3_T4_T5_T6_T7".split("_"),
  18921. weekdaysParseExact: true,
  18922. meridiemParse: /sa|ch/i,
  18923. isPM: function(e) {
  18924. return /^ch$/i.test(e)
  18925. },
  18926. meridiem: function(e, t, n) {
  18927. if (e < 12) return n ? "sa" : "SA";
  18928. else return n ? "ch" : "CH"
  18929. },
  18930. longDateFormat: {
  18931. LT: "HH:mm",
  18932. LTS: "HH:mm:ss",
  18933. L: "DD/MM/YYYY",
  18934. LL: "D MMMM [năm] YYYY",
  18935. LLL: "D MMMM [năm] YYYY HH:mm",
  18936. LLLL: "dddd, D MMMM [năm] YYYY HH:mm",
  18937. l: "DD/M/YYYY",
  18938. ll: "D MMM YYYY",
  18939. lll: "D MMM YYYY HH:mm",
  18940. llll: "ddd, D MMM YYYY HH:mm"
  18941. },
  18942. calendar: {
  18943. sameDay: "[Hôm nay lúc] LT",
  18944. nextDay: "[Ngày mai lúc] LT",
  18945. nextWeek: "dddd [tuần tới lúc] LT",
  18946. lastDay: "[Hôm qua lúc] LT",
  18947. lastWeek: "dddd [tuần trước lúc] LT",
  18948. sameElse: "L"
  18949. },
  18950. relativeTime: {
  18951. future: "%s tới",
  18952. past: "%s trước",
  18953. s: "vài giây",
  18954. ss: "%d giây",
  18955. m: "một phút",
  18956. mm: "%d phút",
  18957. h: "một giờ",
  18958. hh: "%d giờ",
  18959. d: "một ngày",
  18960. dd: "%d ngày",
  18961. w: "một tuần",
  18962. ww: "%d tuần",
  18963. M: "một tháng",
  18964. MM: "%d tháng",
  18965. y: "một năm",
  18966. yy: "%d năm"
  18967. },
  18968. dayOfMonthOrdinalParse: /\d{1,2}/,
  18969. ordinal: function(e) {
  18970. return e
  18971. },
  18972. week: {
  18973. dow: 1,
  18974. doy: 4
  18975. }
  18976. })
  18977. }(n(0))
  18978. }, function(e, t, n) {
  18979. ! function(e) {
  18980. "use strict";
  18981. //! moment.js locale configuration
  18982. var t;
  18983. e.defineLocale("x-pseudo", {
  18984. 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"
  18985. .split("_"),
  18986. monthsShort: "J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split(
  18987. "_"),
  18988. monthsParseExact: true,
  18989. weekdays: "S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý"
  18990. .split("_"),
  18991. weekdaysShort: "S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),
  18992. weekdaysMin: "S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),
  18993. weekdaysParseExact: true,
  18994. longDateFormat: {
  18995. LT: "HH:mm",
  18996. L: "DD/MM/YYYY",
  18997. LL: "D MMMM YYYY",
  18998. LLL: "D MMMM YYYY HH:mm",
  18999. LLLL: "dddd, D MMMM YYYY HH:mm"
  19000. },
  19001. calendar: {
  19002. sameDay: "[T~ódá~ý át] LT",
  19003. nextDay: "[T~ómó~rró~w át] LT",
  19004. nextWeek: "dddd [át] LT",
  19005. lastDay: "[Ý~ést~érdá~ý át] LT",
  19006. lastWeek: "[L~ást] dddd [át] LT",
  19007. sameElse: "L"
  19008. },
  19009. relativeTime: {
  19010. future: "í~ñ %s",
  19011. past: "%s á~gó",
  19012. s: "á ~féw ~sécó~ñds",
  19013. ss: "%d s~écóñ~ds",
  19014. m: "á ~míñ~úté",
  19015. mm: "%d m~íñú~tés",
  19016. h: "á~ñ hó~úr",
  19017. hh: "%d h~óúrs",
  19018. d: "á ~dáý",
  19019. dd: "%d d~áýs",
  19020. M: "á ~móñ~th",
  19021. MM: "%d m~óñt~hs",
  19022. y: "á ~ýéár",
  19023. yy: "%d ý~éárs"
  19024. },
  19025. dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
  19026. ordinal: function(e) {
  19027. var t = e % 10,
  19028. n = ~~(e % 100 / 10) === 1 ? "th" : t === 1 ? "st" : t === 2 ? "nd" :
  19029. t === 3 ? "rd" : "th";
  19030. return e + n
  19031. },
  19032. week: {
  19033. dow: 1,
  19034. doy: 4
  19035. }
  19036. })
  19037. }(n(0))
  19038. }, function(e, t, n) {
  19039. ! function(e) {
  19040. "use strict";
  19041. //! moment.js locale configuration
  19042. var t;
  19043. e.defineLocale("yo", {
  19044. months: "Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀"
  19045. .split("_"),
  19046. monthsShort: "Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split(
  19047. "_"),
  19048. weekdays: "Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),
  19049. weekdaysShort: "Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),
  19050. weekdaysMin: "Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),
  19051. longDateFormat: {
  19052. LT: "h:mm A",
  19053. LTS: "h:mm:ss A",
  19054. L: "DD/MM/YYYY",
  19055. LL: "D MMMM YYYY",
  19056. LLL: "D MMMM YYYY h:mm A",
  19057. LLLL: "dddd, D MMMM YYYY h:mm A"
  19058. },
  19059. calendar: {
  19060. sameDay: "[Ònì ni] LT",
  19061. nextDay: "[Ọ̀la ni] LT",
  19062. nextWeek: "dddd [Ọsẹ̀ tón'bọ] [ni] LT",
  19063. lastDay: "[Àna ni] LT",
  19064. lastWeek: "dddd [Ọsẹ̀ tólọ́] [ni] LT",
  19065. sameElse: "L"
  19066. },
  19067. relativeTime: {
  19068. future: "ní %s",
  19069. past: "%s kọjá",
  19070. s: "ìsẹjú aayá die",
  19071. ss: "aayá %d",
  19072. m: "ìsẹjú kan",
  19073. mm: "ìsẹjú %d",
  19074. h: "wákati kan",
  19075. hh: "wákati %d",
  19076. d: "ọjọ́ kan",
  19077. dd: "ọjọ́ %d",
  19078. M: "osù kan",
  19079. MM: "osù %d",
  19080. y: "ọdún kan",
  19081. yy: "ọdún %d"
  19082. },
  19083. dayOfMonthOrdinalParse: /ọjọ́\s\d{1,2}/,
  19084. ordinal: "ọjọ́ %d",
  19085. week: {
  19086. dow: 1,
  19087. doy: 4
  19088. }
  19089. })
  19090. }(n(0))
  19091. }, function(e, t, n) {
  19092. ! function(e) {
  19093. "use strict";
  19094. //! moment.js locale configuration
  19095. var t;
  19096. e.defineLocale("zh-cn", {
  19097. months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),
  19098. monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
  19099. weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),
  19100. weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"),
  19101. weekdaysMin: "日_一_二_三_四_五_六".split("_"),
  19102. longDateFormat: {
  19103. LT: "HH:mm",
  19104. LTS: "HH:mm:ss",
  19105. L: "YYYY/MM/DD",
  19106. LL: "YYYY年M月D日",
  19107. LLL: "YYYY年M月D日Ah点mm分",
  19108. LLLL: "YYYY年M月D日ddddAh点mm分",
  19109. l: "YYYY/M/D",
  19110. ll: "YYYY年M月D日",
  19111. lll: "YYYY年M月D日 HH:mm",
  19112. llll: "YYYY年M月D日dddd HH:mm"
  19113. },
  19114. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  19115. meridiemHour: function(e, t) {
  19116. if (e === 12) e = 0;
  19117. if (t === "凌晨" || t === "早上" || t === "上午") return e;
  19118. else if (t === "下午" || t === "晚上") return e + 12;
  19119. else return e >= 11 ? e : e + 12
  19120. },
  19121. meridiem: function(e, t, n) {
  19122. var i = e * 100 + t;
  19123. if (i < 600) return "凌晨";
  19124. else if (i < 900) return "早上";
  19125. else if (i < 1130) return "上午";
  19126. else if (i < 1230) return "中午";
  19127. else if (i < 1800) return "下午";
  19128. else return "晚上"
  19129. },
  19130. calendar: {
  19131. sameDay: "[今天]LT",
  19132. nextDay: "[明天]LT",
  19133. nextWeek: function(e) {
  19134. if (e.week() !== this.week()) return "[下]dddLT";
  19135. else return "[本]dddLT"
  19136. },
  19137. lastDay: "[昨天]LT",
  19138. lastWeek: function(e) {
  19139. if (this.week() !== e.week()) return "[上]dddLT";
  19140. else return "[本]dddLT"
  19141. },
  19142. sameElse: "L"
  19143. },
  19144. dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
  19145. ordinal: function(e, t) {
  19146. switch (t) {
  19147. case "d":
  19148. case "D":
  19149. case "DDD":
  19150. return e + "日";
  19151. case "M":
  19152. return e + "月";
  19153. case "w":
  19154. case "W":
  19155. return e + "周";
  19156. default:
  19157. return e
  19158. }
  19159. },
  19160. relativeTime: {
  19161. future: "%s后",
  19162. past: "%s前",
  19163. s: "几秒",
  19164. ss: "%d 秒",
  19165. m: "1 分钟",
  19166. mm: "%d 分钟",
  19167. h: "1 小时",
  19168. hh: "%d 小时",
  19169. d: "1 天",
  19170. dd: "%d 天",
  19171. w: "1 周",
  19172. ww: "%d 周",
  19173. M: "1 个月",
  19174. MM: "%d 个月",
  19175. y: "1 年",
  19176. yy: "%d 年"
  19177. },
  19178. week: {
  19179. dow: 1,
  19180. doy: 4
  19181. }
  19182. })
  19183. }(n(0))
  19184. }, function(e, t, n) {
  19185. ! function(e) {
  19186. "use strict";
  19187. //! moment.js locale configuration
  19188. var t;
  19189. e.defineLocale("zh-hk", {
  19190. months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),
  19191. monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
  19192. weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),
  19193. weekdaysShort: "週日_週一_週二_週三_週四_週五_週六".split("_"),
  19194. weekdaysMin: "日_一_二_三_四_五_六".split("_"),
  19195. longDateFormat: {
  19196. LT: "HH:mm",
  19197. LTS: "HH:mm:ss",
  19198. L: "YYYY/MM/DD",
  19199. LL: "YYYY年M月D日",
  19200. LLL: "YYYY年M月D日 HH:mm",
  19201. LLLL: "YYYY年M月D日dddd HH:mm",
  19202. l: "YYYY/M/D",
  19203. ll: "YYYY年M月D日",
  19204. lll: "YYYY年M月D日 HH:mm",
  19205. llll: "YYYY年M月D日dddd HH:mm"
  19206. },
  19207. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  19208. meridiemHour: function(e, t) {
  19209. if (e === 12) e = 0;
  19210. if (t === "凌晨" || t === "早上" || t === "上午") return e;
  19211. else if (t === "中午") return e >= 11 ? e : e + 12;
  19212. else if (t === "下午" || t === "晚上") return e + 12
  19213. },
  19214. meridiem: function(e, t, n) {
  19215. var i = e * 100 + t;
  19216. if (i < 600) return "凌晨";
  19217. else if (i < 900) return "早上";
  19218. else if (i < 1200) return "上午";
  19219. else if (i === 1200) return "中午";
  19220. else if (i < 1800) return "下午";
  19221. else return "晚上"
  19222. },
  19223. calendar: {
  19224. sameDay: "[今天]LT",
  19225. nextDay: "[明天]LT",
  19226. nextWeek: "[下]ddddLT",
  19227. lastDay: "[昨天]LT",
  19228. lastWeek: "[上]ddddLT",
  19229. sameElse: "L"
  19230. },
  19231. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  19232. ordinal: function(e, t) {
  19233. switch (t) {
  19234. case "d":
  19235. case "D":
  19236. case "DDD":
  19237. return e + "日";
  19238. case "M":
  19239. return e + "月";
  19240. case "w":
  19241. case "W":
  19242. return e + "週";
  19243. default:
  19244. return e
  19245. }
  19246. },
  19247. relativeTime: {
  19248. future: "%s後",
  19249. past: "%s前",
  19250. s: "幾秒",
  19251. ss: "%d 秒",
  19252. m: "1 分鐘",
  19253. mm: "%d 分鐘",
  19254. h: "1 小時",
  19255. hh: "%d 小時",
  19256. d: "1 天",
  19257. dd: "%d 天",
  19258. M: "1 個月",
  19259. MM: "%d 個月",
  19260. y: "1 年",
  19261. yy: "%d 年"
  19262. }
  19263. })
  19264. }(n(0))
  19265. }, function(e, t, n) {
  19266. ! function(e) {
  19267. "use strict";
  19268. //! moment.js locale configuration
  19269. var t;
  19270. e.defineLocale("zh-mo", {
  19271. months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),
  19272. monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
  19273. weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),
  19274. weekdaysShort: "週日_週一_週二_週三_週四_週五_週六".split("_"),
  19275. weekdaysMin: "日_一_二_三_四_五_六".split("_"),
  19276. longDateFormat: {
  19277. LT: "HH:mm",
  19278. LTS: "HH:mm:ss",
  19279. L: "DD/MM/YYYY",
  19280. LL: "YYYY年M月D日",
  19281. LLL: "YYYY年M月D日 HH:mm",
  19282. LLLL: "YYYY年M月D日dddd HH:mm",
  19283. l: "D/M/YYYY",
  19284. ll: "YYYY年M月D日",
  19285. lll: "YYYY年M月D日 HH:mm",
  19286. llll: "YYYY年M月D日dddd HH:mm"
  19287. },
  19288. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  19289. meridiemHour: function(e, t) {
  19290. if (e === 12) e = 0;
  19291. if (t === "凌晨" || t === "早上" || t === "上午") return e;
  19292. else if (t === "中午") return e >= 11 ? e : e + 12;
  19293. else if (t === "下午" || t === "晚上") return e + 12
  19294. },
  19295. meridiem: function(e, t, n) {
  19296. var i = e * 100 + t;
  19297. if (i < 600) return "凌晨";
  19298. else if (i < 900) return "早上";
  19299. else if (i < 1130) return "上午";
  19300. else if (i < 1230) return "中午";
  19301. else if (i < 1800) return "下午";
  19302. else return "晚上"
  19303. },
  19304. calendar: {
  19305. sameDay: "[今天] LT",
  19306. nextDay: "[明天] LT",
  19307. nextWeek: "[下]dddd LT",
  19308. lastDay: "[昨天] LT",
  19309. lastWeek: "[上]dddd LT",
  19310. sameElse: "L"
  19311. },
  19312. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  19313. ordinal: function(e, t) {
  19314. switch (t) {
  19315. case "d":
  19316. case "D":
  19317. case "DDD":
  19318. return e + "日";
  19319. case "M":
  19320. return e + "月";
  19321. case "w":
  19322. case "W":
  19323. return e + "週";
  19324. default:
  19325. return e
  19326. }
  19327. },
  19328. relativeTime: {
  19329. future: "%s內",
  19330. past: "%s前",
  19331. s: "幾秒",
  19332. ss: "%d 秒",
  19333. m: "1 分鐘",
  19334. mm: "%d 分鐘",
  19335. h: "1 小時",
  19336. hh: "%d 小時",
  19337. d: "1 天",
  19338. dd: "%d 天",
  19339. M: "1 個月",
  19340. MM: "%d 個月",
  19341. y: "1 年",
  19342. yy: "%d 年"
  19343. }
  19344. })
  19345. }(n(0))
  19346. }, function(e, t, n) {
  19347. ! function(e) {
  19348. "use strict";
  19349. //! moment.js locale configuration
  19350. var t;
  19351. e.defineLocale("zh-tw", {
  19352. months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),
  19353. monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
  19354. weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),
  19355. weekdaysShort: "週日_週一_週二_週三_週四_週五_週六".split("_"),
  19356. weekdaysMin: "日_一_二_三_四_五_六".split("_"),
  19357. longDateFormat: {
  19358. LT: "HH:mm",
  19359. LTS: "HH:mm:ss",
  19360. L: "YYYY/MM/DD",
  19361. LL: "YYYY年M月D日",
  19362. LLL: "YYYY年M月D日 HH:mm",
  19363. LLLL: "YYYY年M月D日dddd HH:mm",
  19364. l: "YYYY/M/D",
  19365. ll: "YYYY年M月D日",
  19366. lll: "YYYY年M月D日 HH:mm",
  19367. llll: "YYYY年M月D日dddd HH:mm"
  19368. },
  19369. meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
  19370. meridiemHour: function(e, t) {
  19371. if (e === 12) e = 0;
  19372. if (t === "凌晨" || t === "早上" || t === "上午") return e;
  19373. else if (t === "中午") return e >= 11 ? e : e + 12;
  19374. else if (t === "下午" || t === "晚上") return e + 12
  19375. },
  19376. meridiem: function(e, t, n) {
  19377. var i = e * 100 + t;
  19378. if (i < 600) return "凌晨";
  19379. else if (i < 900) return "早上";
  19380. else if (i < 1130) return "上午";
  19381. else if (i < 1230) return "中午";
  19382. else if (i < 1800) return "下午";
  19383. else return "晚上"
  19384. },
  19385. calendar: {
  19386. sameDay: "[今天] LT",
  19387. nextDay: "[明天] LT",
  19388. nextWeek: "[下]dddd LT",
  19389. lastDay: "[昨天] LT",
  19390. lastWeek: "[上]dddd LT",
  19391. sameElse: "L"
  19392. },
  19393. dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
  19394. ordinal: function(e, t) {
  19395. switch (t) {
  19396. case "d":
  19397. case "D":
  19398. case "DDD":
  19399. return e + "日";
  19400. case "M":
  19401. return e + "月";
  19402. case "w":
  19403. case "W":
  19404. return e + "週";
  19405. default:
  19406. return e
  19407. }
  19408. },
  19409. relativeTime: {
  19410. future: "%s後",
  19411. past: "%s前",
  19412. s: "幾秒",
  19413. ss: "%d 秒",
  19414. m: "1 分鐘",
  19415. mm: "%d 分鐘",
  19416. h: "1 小時",
  19417. hh: "%d 小時",
  19418. d: "1 天",
  19419. dd: "%d 天",
  19420. M: "1 個月",
  19421. MM: "%d 個月",
  19422. y: "1 年",
  19423. yy: "%d 年"
  19424. }
  19425. })
  19426. }(n(0))
  19427. }, function(e, t, n) {
  19428. "use strict";
  19429. Object.defineProperty(t, "__esModule", {
  19430. value: !0
  19431. });
  19432. var i = s(n(20)),
  19433. r = s(n(38)),
  19434. a = s(n(1));
  19435. function s(e) {
  19436. return e && e.__esModule ? e : {
  19437. default: e
  19438. }
  19439. }
  19440. var o = ((0, s(n(2)).default)(u, null, [{
  19441. key: "install",
  19442. value: function() {
  19443. Object.setPrototypeOf = r.default || function(e, t) {
  19444. return e.__proto__ = t, e
  19445. }, Object.assign = i.default || function(e) {
  19446. if (null == e) throw new TypeError(
  19447. "Cannot convert undefined or null to object");
  19448. for (var t = Object(e), n = 1; n < arguments.length; n++) {
  19449. var i = arguments[n];
  19450. if (null != i)
  19451. for (var r in i) i.hasOwnProperty(r) && (t[r] = i[r])
  19452. }
  19453. return t
  19454. }, "function" != typeof self.Promise && n(298).polyfill()
  19455. }
  19456. }]), u);
  19457. function u() {
  19458. (0, a.default)(this, u)
  19459. }
  19460. o.install(), t.default = o
  19461. }, function(e, t, n) {
  19462. "use strict";
  19463. Object.defineProperty(t, "__esModule", {
  19464. value: !0
  19465. });
  19466. var i = m(n(1)),
  19467. r = m(n(2)),
  19468. a = m(n(4)),
  19469. s = m(n(62)),
  19470. o = n(15),
  19471. u = m(n(307)),
  19472. d = m(n(311)),
  19473. l = (m(n(312)), m(n(313))),
  19474. h = m(n(314)),
  19475. c = m(n(315)),
  19476. _ = m(n(316)),
  19477. f = n(5);
  19478. function m(e) {
  19479. return e && e.__esModule ? e : {
  19480. default: e
  19481. }
  19482. }(0, r.default)(p, [{
  19483. key: "destroy",
  19484. value: function() {
  19485. this._loader.isWorking() && this._loader.abort(), this._loader.destroy(), this
  19486. ._loader = null, this._loaderClass = null, this._dataSource = null, this
  19487. ._stashBuffer = null, this._stashUsed = this._stashSize = this._bufferSize =
  19488. this._stashByteStart = 0, this._currentRange = null, this._speedSampler =
  19489. null, this._isEarlyEofReconnecting = !1, this._onDataArrival = null, this
  19490. ._onSeeked = null, this._onError = null, this._onComplete = null, this
  19491. ._onRedirect = null, this._onRecoveredEarlyEof = null, this._extraData =
  19492. null
  19493. }
  19494. }, {
  19495. key: "isWorking",
  19496. value: function() {
  19497. return this._loader && this._loader.isWorking() && !this._paused
  19498. }
  19499. }, {
  19500. key: "isPaused",
  19501. value: function() {
  19502. return this._paused
  19503. }
  19504. }, {
  19505. key: "_selectSeekHandler",
  19506. value: function() {
  19507. var e = this._config;
  19508. if ("range" === e.seekType) this._seekHandler = new c.default(this._config
  19509. .rangeLoadZeroStart);
  19510. else if ("param" === e.seekType) {
  19511. var t = e.seekParamStart || "bstart",
  19512. n = e.seekParamEnd || "bend";
  19513. this._seekHandler = new _.default(t, n)
  19514. } else {
  19515. if ("custom" !== e.seekType) throw new f.InvalidArgumentException(
  19516. "Invalid seekType in config: " + e.seekType);
  19517. if ("function" != typeof e.customSeekHandler) throw new f
  19518. .InvalidArgumentException(
  19519. "Custom seekType specified in config but invalid customSeekHandler!"
  19520. );
  19521. this._seekHandler = new e.customSeekHandler
  19522. }
  19523. }
  19524. }, {
  19525. key: "_selectLoader",
  19526. value: function() {
  19527. if (null != this._config.customLoader) this._loaderClass = this._config
  19528. .customLoader;
  19529. else if (this._isWebSocketURL) this._loaderClass = h.default;
  19530. else if (u.default.isSupported()) this._loaderClass = u.default;
  19531. else if (d.default.isSupported()) this._loaderClass = d.default;
  19532. else {
  19533. if (!l.default.isSupported()) throw new f.RuntimeException(
  19534. "Your browser doesn't support xhr with arraybuffer responseType!"
  19535. );
  19536. this._loaderClass = l.default
  19537. }
  19538. }
  19539. }, {
  19540. key: "_createLoader",
  19541. value: function() {
  19542. this._loader = new this._loaderClass(this._seekHandler, this._config), !1 ===
  19543. this._loader.needStashBuffer && (this._enableStash = !1), this._loader
  19544. .onContentLengthKnown = this._onContentLengthKnown.bind(this), this._loader
  19545. .onURLRedirect = this._onURLRedirect.bind(this), this._loader
  19546. .onDataArrival = this._onLoaderChunkArrival.bind(this), this._loader
  19547. .onComplete = this._onLoaderComplete.bind(this), this._loader.onError = this
  19548. ._onLoaderError.bind(this)
  19549. }
  19550. }, {
  19551. key: "open",
  19552. value: function(e) {
  19553. this._currentRange = {
  19554. from: 0,
  19555. to: -1
  19556. }, e && (this._currentRange.from = e), this._speedSampler.reset(), e || (
  19557. this._fullRequestFlag = !0)
  19558. }
  19559. }, {
  19560. key: "abort",
  19561. value: function() {
  19562. this._loader.abort(), this._paused && (this._paused = !1, this._resumeFrom = 0)
  19563. }
  19564. }, {
  19565. key: "pause",
  19566. value: function() {
  19567. this.isWorking() && (this._loader.abort(), 0 !== this._stashUsed ? (this
  19568. ._resumeFrom = this._stashByteStart, this._currentRange.to = this
  19569. ._stashByteStart - 1) : this._resumeFrom = this._currentRange.to +
  19570. 1, this._stashUsed = 0, this._stashByteStart = 0, this._paused = !0)
  19571. }
  19572. }, {
  19573. key: "resume",
  19574. value: function() {
  19575. var e;
  19576. this._paused && (this._paused = !1, e = this._resumeFrom, this._resumeFrom = 0,
  19577. this._internalSeek(e, !0))
  19578. }
  19579. }, {
  19580. key: "seek",
  19581. value: function(e) {
  19582. this._paused = !1, this._stashUsed = 0, this._stashByteStart = 0, this
  19583. ._internalSeek(e, !0)
  19584. }
  19585. }, {
  19586. key: "_internalSeek",
  19587. value: function(e, t) {
  19588. this._loader.isWorking() && this._loader.abort(), this._flushStashBuffer(t),
  19589. this._loader.destroy(), this._loader = null;
  19590. e = {
  19591. from: e,
  19592. to: -1
  19593. };
  19594. this._currentRange = {
  19595. from: e.from,
  19596. to: -1
  19597. }, this._speedSampler.reset(), this._stashSize = this._stashInitialSize,
  19598. this._createLoader(), this._loader.open(this._dataSource, e), this
  19599. ._onSeeked && this._onSeeked()
  19600. }
  19601. }, {
  19602. key: "updateUrl",
  19603. value: function(e) {
  19604. if (!e || "string" != typeof e || 0 === e.length) throw new f
  19605. .InvalidArgumentException("Url must be a non-empty string!");
  19606. this._dataSource.url = e
  19607. }
  19608. }, {
  19609. key: "_expandBuffer",
  19610. value: function(e) {
  19611. for (var t, n, i = this._stashSize; i + 1048576 < e;) i *= 2;
  19612. (i += 1048576) !== this._bufferSize && (t = new ArrayBuffer(i), 0 < this
  19613. ._stashUsed && (n = new Uint8Array(this._stashBuffer, 0, this
  19614. ._stashUsed), new Uint8Array(t, 0, i).set(n, 0)), this
  19615. ._stashBuffer = t, this._bufferSize = i)
  19616. }
  19617. }, {
  19618. key: "_normalizeSpeed",
  19619. value: function(e) {
  19620. var t, n = this._speedNormalizeList,
  19621. i = n.length - 1,
  19622. r = 0,
  19623. a = i;
  19624. if (e < n[0]) return n[0];
  19625. for (; r <= a;) {
  19626. if ((t = r + Math.floor((a - r) / 2)) === i || e >= n[t] && e < n[t + 1])
  19627. return n[t];
  19628. n[t] < e ? r = t + 1 : a = t - 1
  19629. }
  19630. }
  19631. }, {
  19632. key: "_adjustStashSize",
  19633. value: function(e) {
  19634. var t = 0,
  19635. e = 1024 * (t = 8192 < (t = this._config.isLive || e < 512 ? e : 512 <= e &&
  19636. e <= 1024 ? Math.floor(1.5 * e) : 2 * e) ? 8192 : t) + 1048576;
  19637. this._bufferSize < e && this._expandBuffer(e), this._stashSize = 1024 * t
  19638. }
  19639. }, {
  19640. key: "_dispatchChunks",
  19641. value: function(e, t) {
  19642. return this._currentRange.to = t + e.byteLength - 1, this._onDataArrival(e, t)
  19643. }
  19644. }, {
  19645. key: "_onURLRedirect",
  19646. value: function(e) {
  19647. this._redirectedURL = e, this._onRedirect && this._onRedirect(e)
  19648. }
  19649. }, {
  19650. key: "_onContentLengthKnown",
  19651. value: function(e) {
  19652. e && this._fullRequestFlag && (this._totalLength = e, this._fullRequestFlag = !
  19653. 1)
  19654. }
  19655. }, {
  19656. key: "_onLoaderChunkArrival",
  19657. value: function(e, t, n) {
  19658. if (!this._onDataArrival) throw new f.IllegalStateException(
  19659. "IOController: No existing consumer (onDataArrival) callback!");
  19660. var i, r, a, s, o;
  19661. this._paused || (this._isEarlyEofReconnecting && (this
  19662. ._isEarlyEofReconnecting = !1, this._onRecoveredEarlyEof && this
  19663. ._onRecoveredEarlyEof()), this._speedSampler.addBytes(e.byteLength),
  19664. 0 !== (i = this._speedSampler.lastSecondKBps) && (r = this
  19665. ._normalizeSpeed(i), this._speedNormalized !== r && (this
  19666. ._speedNormalized = r, this._adjustStashSize(r))), this
  19667. ._enableStash ? (0 === this._stashUsed && 0 === this._stashByteStart &&
  19668. (this._stashByteStart = t), this._stashUsed + e.byteLength <= this
  19669. ._stashSize ? (new Uint8Array(this._stashBuffer, 0, this._stashSize)
  19670. .set(new Uint8Array(e), this._stashUsed), this._stashUsed += e
  19671. .byteLength) : (i = new Uint8Array(this._stashBuffer, 0, this
  19672. ._bufferSize), 0 < this._stashUsed ? (r = this._stashBuffer
  19673. .slice(0, this._stashUsed), (a = this._dispatchChunks(r,
  19674. this._stashByteStart)) < r.byteLength ? 0 < a && (r =
  19675. new Uint8Array(r, a), i.set(r, 0), this._stashUsed = r
  19676. .byteLength, this._stashByteStart += a) : (this
  19677. ._stashUsed = 0, this._stashByteStart += a), this
  19678. ._stashUsed + e.byteLength > this._bufferSize && (this
  19679. ._expandBuffer(this._stashUsed + e.byteLength), i =
  19680. new Uint8Array(this._stashBuffer, 0, this._bufferSize)),
  19681. i.set(new Uint8Array(e), this._stashUsed), this
  19682. ._stashUsed += e.byteLength) : (s = this._dispatchChunks(e,
  19683. t)) < e.byteLength && ((a = e.byteLength - s) > this
  19684. ._bufferSize && (this._expandBuffer(a), i = new Uint8Array(
  19685. this._stashBuffer, 0, this._bufferSize)), i.set(
  19686. new Uint8Array(e, s), 0), this._stashUsed += a, this
  19687. ._stashByteStart = t + s))) : 0 === this._stashUsed ? (o = this
  19688. ._dispatchChunks(e, t)) < e.byteLength && ((s = e.byteLength - o) >
  19689. this._bufferSize && this._expandBuffer(s), new Uint8Array(this
  19690. ._stashBuffer, 0, this._bufferSize).set(new Uint8Array(e, o),
  19691. 0), this._stashUsed += s, this._stashByteStart = t + o) : (this
  19692. ._stashUsed + e.byteLength > this._bufferSize && this._expandBuffer(
  19693. this._stashUsed + e.byteLength), (t = new Uint8Array(this
  19694. ._stashBuffer, 0, this._bufferSize)).set(new Uint8Array(e), this
  19695. ._stashUsed), this._stashUsed += e.byteLength, (o = this
  19696. ._dispatchChunks(this._stashBuffer.slice(0, this._stashUsed),
  19697. this._stashByteStart)) < this._stashUsed && 0 < o && (e =
  19698. new Uint8Array(this._stashBuffer, o), t.set(e, 0)), this
  19699. ._stashUsed -= o, this._stashByteStart += o))
  19700. }
  19701. }, {
  19702. key: "_flushStashBuffer",
  19703. value: function(e) {
  19704. if (0 < this._stashUsed) {
  19705. var t = this._stashBuffer.slice(0, this._stashUsed),
  19706. n = this._dispatchChunks(t, this._stashByteStart),
  19707. i = t.byteLength - n;
  19708. if (n < t.byteLength) {
  19709. if (!e) return 0 < n && (e = new Uint8Array(this._stashBuffer, 0, this
  19710. ._bufferSize), t = new Uint8Array(t, n), e.set(t, 0),
  19711. this._stashUsed = t.byteLength, this._stashByteStart += n),
  19712. 0;
  19713. a.default.w(this.TAG, i +
  19714. " bytes unconsumed data remain when flush buffer, dropped")
  19715. }
  19716. return this._stashUsed = 0, this._stashByteStart = 0, i
  19717. }
  19718. return 0
  19719. }
  19720. }, {
  19721. key: "_onLoaderComplete",
  19722. value: function(e, t) {
  19723. this._flushStashBuffer(!0), this._onComplete && this._onComplete(this
  19724. ._extraData)
  19725. }
  19726. }, {
  19727. key: "_onLoaderError",
  19728. value: function(e, t) {
  19729. switch (a.default.e(this.TAG, "Loader error, code = " + t.code + ", msg = " + t
  19730. .msg), this._flushStashBuffer(!1), this._isEarlyEofReconnecting && (this
  19731. ._isEarlyEofReconnecting = !1, e = o.LoaderErrors
  19732. .UNRECOVERABLE_EARLY_EOF), e) {
  19733. case o.LoaderErrors.EARLY_EOF:
  19734. if (!this._config.isLive && this._totalLength) {
  19735. var n = this._currentRange.to + 1;
  19736. return void(n < this._totalLength && (a.default.w(this.TAG,
  19737. "Connection lost, trying reconnect..."), this
  19738. ._isEarlyEofReconnecting = !0, this._internalSeek(n, !1)
  19739. ))
  19740. }
  19741. e = o.LoaderErrors.UNRECOVERABLE_EARLY_EOF;
  19742. break;
  19743. case o.LoaderErrors.UNRECOVERABLE_EARLY_EOF:
  19744. case o.LoaderErrors.CONNECTING_TIMEOUT:
  19745. case o.LoaderErrors.HTTP_STATUS_CODE_INVALID:
  19746. case o.LoaderErrors.EXCEPTION:
  19747. }
  19748. if (!this._onError) throw new f.RuntimeException("IOException: " + t.msg);
  19749. this._onError(e, t)
  19750. }
  19751. }, {
  19752. key: "status",
  19753. get: function() {
  19754. return this._loader.status
  19755. }
  19756. }, {
  19757. key: "extraData",
  19758. get: function() {
  19759. return this._extraData
  19760. },
  19761. set: function(e) {
  19762. this._extraData = e
  19763. }
  19764. }, {
  19765. key: "onDataArrival",
  19766. get: function() {
  19767. return this._onDataArrival
  19768. },
  19769. set: function(e) {
  19770. this._onDataArrival = e
  19771. }
  19772. }, {
  19773. key: "onSeeked",
  19774. get: function() {
  19775. return this._onSeeked
  19776. },
  19777. set: function(e) {
  19778. this._onSeeked = e
  19779. }
  19780. }, {
  19781. key: "onError",
  19782. get: function() {
  19783. return this._onError
  19784. },
  19785. set: function(e) {
  19786. this._onError = e
  19787. }
  19788. }, {
  19789. key: "onComplete",
  19790. get: function() {
  19791. return this._onComplete
  19792. },
  19793. set: function(e) {
  19794. this._onComplete = e
  19795. }
  19796. }, {
  19797. key: "onRedirect",
  19798. get: function() {
  19799. return this._onRedirect
  19800. },
  19801. set: function(e) {
  19802. this._onRedirect = e
  19803. }
  19804. }, {
  19805. key: "onRecoveredEarlyEof",
  19806. get: function() {
  19807. return this._onRecoveredEarlyEof
  19808. },
  19809. set: function(e) {
  19810. this._onRecoveredEarlyEof = e
  19811. }
  19812. }, {
  19813. key: "currentURL",
  19814. get: function() {
  19815. return this._dataSource.url
  19816. }
  19817. }, {
  19818. key: "hasRedirect",
  19819. get: function() {
  19820. return null != this._redirectedURL || null != this._dataSource.redirectedURL
  19821. }
  19822. }, {
  19823. key: "currentRedirectedURL",
  19824. get: function() {
  19825. return this._redirectedURL || this._dataSource.redirectedURL
  19826. }
  19827. }, {
  19828. key: "currentSpeed",
  19829. get: function() {
  19830. return this._loaderClass === l.default ? this._loader.currentSpeed : this
  19831. ._speedSampler.lastSecondKBps
  19832. }
  19833. }, {
  19834. key: "loaderType",
  19835. get: function() {
  19836. return this._loader.type
  19837. }
  19838. }]), r = p;
  19839. function p(e, t, n) {
  19840. (0, i.default)(this, p), this.TAG = "IOController", this._config = t, this._extraData = n, this
  19841. ._stashInitialSize = 65536, null != t.stashInitialSize && 0 < t.stashInitialSize && (this
  19842. ._stashInitialSize = t.stashInitialSize), this._stashUsed = 0, this._stashSize = this
  19843. ._stashInitialSize, (this._bufferSize = 3145728) < t.stashInitialSize && (this._bufferSize =
  19844. t.stashInitialSize), this._stashBuffer = new ArrayBuffer(this._bufferSize), this
  19845. ._stashByteStart = 0, !(this._enableStash = !0) === t.enableStashBuffer && (this
  19846. ._enableStash = !1), this._loader = null, this._loaderClass = null, this._seekHandler =
  19847. null, this._dataSource = e, this._isWebSocketURL = /wss?:\/\/(.+?)/.test(e.url), this
  19848. ._refTotalLength = e.filesize || null, this._totalLength = this._refTotalLength, this
  19849. ._fullRequestFlag = !1, this._currentRange = null, this._redirectedURL = null, this
  19850. ._speedNormalized = 0, this._speedSampler = new s.default, this._speedNormalizeList = [64,
  19851. 128, 256, 384, 512, 768, 1024, 1536, 2048, 3072, 4096
  19852. ], this._isEarlyEofReconnecting = !1, this._paused = !1, this._resumeFrom = 0, this
  19853. ._onDataArrival = null, this._onSeeked = null, this._onError = null, this._onComplete =
  19854. null, this._onRedirect = null, this._onRecoveredEarlyEof = null, this._selectSeekHandler(),
  19855. this._selectLoader(), this._createLoader()
  19856. }
  19857. t.default = r
  19858. }, function(e, t, n) {
  19859. "use strict";
  19860. Object.defineProperty(t, "__esModule", {
  19861. value: !0
  19862. });
  19863. var i = y(n(38)),
  19864. r = y(n(20)),
  19865. a = y(n(11)),
  19866. s = y(n(1)),
  19867. o = y(n(2)),
  19868. u = y(n(10)),
  19869. d = y(n(4)),
  19870. l = y(n(33)),
  19871. h = y(n(65)),
  19872. c = y(n(319)),
  19873. _ = y(n(328)),
  19874. f = y(n(66)),
  19875. m = y(n(228)),
  19876. p = y(n(40));
  19877. n(15);
  19878. function y(e) {
  19879. return e && e.__esModule ? e : {
  19880. default: e
  19881. }
  19882. }(0, o.default)(v, [{
  19883. key: "destroy",
  19884. value: function() {
  19885. this._mediaInfo = null, this._mediaDataSource = null, this
  19886. ._statisticsReporter && this._disableStatisticsReporter(), this._ioctl && (
  19887. this._ioctl.destroy(), this._ioctl = null), this._demuxer && (this
  19888. ._demuxer.destroy(), this._demuxer = null), this._remuxer && (this
  19889. ._remuxer.destroy(), this._remuxer = null), this._emitter
  19890. .removeAllListeners(), this._emitter = null
  19891. }
  19892. }, {
  19893. key: "on",
  19894. value: function(e, t) {
  19895. this._emitter.addListener(e, t)
  19896. }
  19897. }, {
  19898. key: "off",
  19899. value: function(e, t) {
  19900. this._emitter.removeListener(e, t)
  19901. }
  19902. }, {
  19903. key: "start",
  19904. value: function() {
  19905. this._loadSegment(0), this._enableStatisticsReporter()
  19906. }
  19907. }, {
  19908. key: "_loadSegment",
  19909. value: function(e, t) {
  19910. this._currentSegmentIndex = e;
  19911. var n = this._mediaDataSource.segments[e],
  19912. e = this._ioctl = new m.default(n, this._config, e);
  19913. e.onError = this._onIOException.bind(this), e.onSeeked = this._onIOSeeked.bind(
  19914. this), e.onComplete = this._onIOComplete.bind(this), e.onRedirect = this
  19915. ._onIORedirect.bind(this), e.onRecoveredEarlyEof = this
  19916. ._onIORecoveredEarlyEof.bind(this), t ? this._demuxer.bindDataSource(this
  19917. ._ioctl) : e.onDataArrival = this._onInitChunkArrival.bind(this), e
  19918. .open(t)
  19919. }
  19920. }, {
  19921. key: "stop",
  19922. value: function() {
  19923. this._internalAbort(), this._disableStatisticsReporter()
  19924. }
  19925. }, {
  19926. key: "_internalAbort",
  19927. value: function() {
  19928. this._ioctl && (this._ioctl.destroy(), this._ioctl = null)
  19929. }
  19930. }, {
  19931. key: "pause",
  19932. value: function() {
  19933. this._ioctl && this._ioctl.isWorking() && (this._ioctl.pause(), this
  19934. ._disableStatisticsReporter())
  19935. }
  19936. }, {
  19937. key: "resume",
  19938. value: function() {
  19939. this._ioctl && this._ioctl.isPaused() && (this._ioctl.resume(), this
  19940. ._enableStatisticsReporter())
  19941. }
  19942. }, {
  19943. key: "seek",
  19944. value: function(e) {
  19945. var t, n, i;
  19946. null != this._mediaInfo && this._mediaInfo.isSeekable() && ((t = this
  19947. ._searchSegmentIndexContains(e)) === this._currentSegmentIndex ?
  19948. null == (n = this._mediaInfo.segments[t]) ? this._pendingSeekTime = e :
  19949. (i = n.getNearestKeyframe(e), this._remuxer.seek(i.milliseconds), this
  19950. ._ioctl.seek(i.fileposition), this._pendingResolveSeekPoint = i
  19951. .milliseconds) : null == (i = this._mediaInfo.segments[t]) ? (this
  19952. ._pendingSeekTime = e, this._internalAbort(), this._remuxer.seek(),
  19953. this._remuxer.insertDiscontinuity(), this._loadSegment(t)) : (i = i
  19954. .getNearestKeyframe(e), this._internalAbort(), this._remuxer.seek(
  19955. e), this._remuxer.insertDiscontinuity(), this._demuxer
  19956. .resetMediaInfo(), this._demuxer.timestampBase = this
  19957. ._mediaDataSource.segments[t].timestampBase, this._loadSegment(t, i
  19958. .fileposition), this._pendingResolveSeekPoint = i.milliseconds,
  19959. this._reportSegmentMediaInfo(t)), this._enableStatisticsReporter())
  19960. }
  19961. }, {
  19962. key: "_searchSegmentIndexContains",
  19963. value: function(e) {
  19964. for (var t = this._mediaDataSource.segments, n = t.length - 1, i = 0; i < t
  19965. .length; i++)
  19966. if (e < t[i].timestampBase) {
  19967. n = i - 1;
  19968. break
  19969. } return n
  19970. }
  19971. }, {
  19972. key: "_onInitChunkArrival",
  19973. value: function(e, t) {
  19974. var n, i = this,
  19975. r = null;
  19976. return 0 < t ? (this._demuxer.bindDataSource(this._ioctl), this._demuxer
  19977. .timestampBase = this._mediaDataSource.segments[this
  19978. ._currentSegmentIndex].timestampBase, this._demuxer.parseChunks(e,
  19979. t)) : (r = c.default.probe(e)).match ? (this._demuxer = new c
  19980. .default(r, this._config), this._remuxer || (this._remuxer = new _
  19981. .default(this._config)), null == (n = this._mediaDataSource)
  19982. .duration || isNaN(n.duration) || (this._demuxer.overridedDuration = n
  19983. .duration), "boolean" == typeof n.hasAudio && (this._demuxer
  19984. .overridedHasAudio = n.hasAudio), "boolean" == typeof n.hasVideo &&
  19985. (this._demuxer.overridedHasVideo = n.hasVideo), this._demuxer
  19986. .timestampBase = n.segments[this._currentSegmentIndex].timestampBase,
  19987. this._demuxer.onError = this._onDemuxException.bind(this), this._demuxer
  19988. .onMediaInfo = this._onMediaInfo.bind(this), this._demuxer
  19989. .onMetaDataArrived = this._onMetaDataArrived.bind(this), this._demuxer
  19990. .onScriptDataArrived = this._onScriptDataArrived.bind(this), this
  19991. ._demuxer.onVideoResolutionChanged = this._onVideoResolutionChanged
  19992. .bind(this), this._demuxer.onParsedData = this._onParsedData.bind(this),
  19993. this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),
  19994. this._remuxer.onInitSegment = this._onRemuxerInitSegmentArrival.bind(
  19995. this), this._remuxer.onMediaSegment = this
  19996. ._onRemuxerMediaSegmentArrival.bind(this), this._demuxer.parseChunks(e,
  19997. t)) : (r = null, d.default.e(this.TAG,
  19998. "Non-FLV, Unsupported media type!"), a.default.resolve().then(
  19999. function() {
  20000. i._internalAbort()
  20001. }), this._emitter.emit(p.default.DEMUX_ERROR, f.default
  20002. .FORMAT_UNSUPPORTED, "Non-FLV, Unsupported media type"), 0)
  20003. }
  20004. }, {
  20005. key: "_onMediaInfo",
  20006. value: function(e) {
  20007. var t = this;
  20008. null == this._mediaInfo && (this._mediaInfo = (0, r.default)({}, e), this
  20009. ._mediaInfo.keyframesIndex = null, this._mediaInfo.segments = [], this
  20010. ._mediaInfo.segmentCount = this._mediaDataSource.segments.length, (0, i
  20011. .default)(this._mediaInfo, h.default.prototype));
  20012. e = (0, r.default)({}, e);
  20013. (0, i.default)(e, h.default.prototype), this._mediaInfo.segments[this
  20014. ._currentSegmentIndex] = e, this._reportSegmentMediaInfo(this
  20015. ._currentSegmentIndex), null != this._pendingSeekTime && a.default
  20016. .resolve().then(function() {
  20017. var e = t._pendingSeekTime;
  20018. t._pendingSeekTime = null, t.seek(e)
  20019. })
  20020. }
  20021. }, {
  20022. key: "_onMetaDataArrived",
  20023. value: function(e) {
  20024. this._emitter.emit(p.default.METADATA_ARRIVED, e)
  20025. }
  20026. }, {
  20027. key: "_onScriptDataArrived",
  20028. value: function(e) {
  20029. this._emitter.emit(p.default.SCRIPTDATA_ARRIVED, e)
  20030. }
  20031. }, {
  20032. key: "_onIOSeeked",
  20033. value: function() {
  20034. this._remuxer.insertDiscontinuity()
  20035. }
  20036. }, {
  20037. key: "_onIOComplete",
  20038. value: function(e) {
  20039. e += 1;
  20040. e < this._mediaDataSource.segments.length ? (this._internalAbort(), this
  20041. ._remuxer.flushStashedSamples(), this._loadSegment(e)) : (this._remuxer
  20042. .flushStashedSamples(), this._emitter.emit(p.default.LOADING_COMPLETE),
  20043. this._disableStatisticsReporter())
  20044. }
  20045. }, {
  20046. key: "_onIORedirect",
  20047. value: function(e) {
  20048. var t = this._ioctl.extraData;
  20049. this._mediaDataSource.segments[t].redirectedURL = e
  20050. }
  20051. }, {
  20052. key: "_onIORecoveredEarlyEof",
  20053. value: function() {
  20054. this._emitter.emit(p.default.RECOVERED_EARLY_EOF)
  20055. }
  20056. }, {
  20057. key: "_onIOException",
  20058. value: function(e, t) {
  20059. d.default.e(this.TAG, "IOException: type = " + e + ", code = " + t.code +
  20060. ", msg = " + t.msg), this._emitter.emit(p.default.IO_ERROR, e, t), this
  20061. ._disableStatisticsReporter()
  20062. }
  20063. }, {
  20064. key: "_onDemuxException",
  20065. value: function(e, t) {
  20066. d.default.e(this.TAG, "DemuxException: type = " + e + ", info = " + t), this
  20067. ._emitter.emit(p.default.DEMUX_ERROR, e, t)
  20068. }
  20069. }, {
  20070. key: "_onRemuxerInitSegmentArrival",
  20071. value: function(e, t) {
  20072. this._emitter.emit(p.default.INIT_SEGMENT, e, t)
  20073. }
  20074. }, {
  20075. key: "_onRemuxerMediaSegmentArrival",
  20076. value: function(e, t) {
  20077. null == this._pendingSeekTime && (this._emitter.emit(p.default.MEDIA_SEGMENT, e,
  20078. t), null != this._pendingResolveSeekPoint && "video" === e && (e = t
  20079. .info.syncPoints, t = this._pendingResolveSeekPoint, this
  20080. ._pendingResolveSeekPoint = null, l.default.safari && 0 < e
  20081. .length && e[0].originalDts === t && (t = e[0].pts), this._emitter
  20082. .emit(p.default.RECOMMEND_SEEKPOINT, t)))
  20083. }
  20084. }, {
  20085. key: "_enableStatisticsReporter",
  20086. value: function() {
  20087. null == this._statisticsReporter && (this._statisticsReporter = self
  20088. .setInterval(this._reportStatisticsInfo.bind(this), this._config
  20089. .statisticsInfoReportInterval))
  20090. }
  20091. }, {
  20092. key: "_disableStatisticsReporter",
  20093. value: function() {
  20094. this._statisticsReporter && (self.clearInterval(this._statisticsReporter), this
  20095. ._statisticsReporter = null)
  20096. }
  20097. }, {
  20098. key: "_reportSegmentMediaInfo",
  20099. value: function(e) {
  20100. e = this._mediaInfo.segments[e], e = (0, r.default)({}, e);
  20101. e.duration = this._mediaInfo.duration, e.segmentCount = this._mediaInfo
  20102. .segmentCount, delete e.segments, delete e.keyframesIndex, this._emitter
  20103. .emit(p.default.MEDIA_INFO, e)
  20104. }
  20105. }, {
  20106. key: "_reportStatisticsInfo",
  20107. value: function() {
  20108. var e = {};
  20109. e.url = this._ioctl.currentURL, e.hasRedirect = this._ioctl.hasRedirect, e
  20110. .hasRedirect && (e.redirectedURL = this._ioctl.currentRedirectedURL), e
  20111. .speed = this._ioctl.currentSpeed, e.loaderType = this._ioctl.loaderType, e
  20112. .currentSegmentIndex = this._currentSegmentIndex, e.totalSegmentCount = this
  20113. ._mediaDataSource.segments.length, e.bps_audio = e.bps_video = 0, this
  20114. ._demuxer && this._demuxer._bpsInfo && (e.bps_video = this._demuxer._bpsInfo
  20115. .bps_video, e.bps_audio = this._demuxer._bpsInfo.bps_audio), this
  20116. ._emitter.emit(p.default.STATISTICS_INFO, e)
  20117. }
  20118. }, {
  20119. key: "_onVideoResolutionChanged",
  20120. value: function(e) {
  20121. this._emitter.emit(p.default.VIDEO_RESOLUTION_CHANGED, e)
  20122. }
  20123. }, {
  20124. key: "_onParsedData",
  20125. value: function(e, t) {
  20126. this._emitter.emit(p.default.PARSEDDATA_ARRIVED, e, t)
  20127. }
  20128. }]), o = v;
  20129. function v(t, n) {
  20130. (0, s.default)(this, v), this.TAG = "TransmuxingController", this._emitter = new u.default, this
  20131. ._config = n, t.segments || (t.segments = [{
  20132. duration: t.duration,
  20133. filesize: t.filesize,
  20134. url: t.url
  20135. }]), "boolean" != typeof t.cors && (t.cors = !0), "boolean" != typeof t.withCredentials && (
  20136. t.withCredentials = !1), this._mediaDataSource = t;
  20137. var i = this._currentSegmentIndex = 0;
  20138. this._mediaDataSource.segments.forEach(function(e) {
  20139. e.timestampBase = i, i += e.duration, e.cors = t.cors, e.withCredentials = t
  20140. .withCredentials, n.referrerPolicy && (e.referrerPolicy = n.referrerPolicy)
  20141. }), isNaN(i) || this._mediaDataSource.duration === i || (this._mediaDataSource.duration =
  20142. i), this._mediaInfo = null, this._demuxer = null, this._remuxer = null, this._ioctl =
  20143. null,
  20144. this._pendingSeekTime = null, this._pendingResolveSeekPoint = null, this
  20145. ._statisticsReporter = null
  20146. }
  20147. t.default = o
  20148. }, function(e, t, n) {
  20149. "use strict";
  20150. Object.defineProperty(t, "__esModule", {
  20151. value: !0
  20152. }), t.MediaSegmentInfoList = t.IDRSampleList = t.MediaSegmentInfo = t.SampleInfo = void 0;
  20153. var i = r(n(2)),
  20154. s = r(n(1));
  20155. function r(e) {
  20156. return e && e.__esModule ? e : {
  20157. default: e
  20158. }
  20159. }
  20160. t.SampleInfo = function e(t, n, i, r, a) {
  20161. (0, s.default)(this, e), this.dts = t, this.pts = n, this.duration = i, this.originalDts =
  20162. r, this.isSyncPoint = a, this.fileposition = null
  20163. }, t.MediaSegmentInfo = ((0, i.default)(a, [{
  20164. key: "appendSyncPoint",
  20165. value: function(e) {
  20166. e.isSyncPoint = !0, this.syncPoints.push(e)
  20167. }
  20168. }]), a);
  20169. function a() {
  20170. (0, s.default)(this, a), this.beginDts = 0, this.endDts = 0, this.beginPts = 0, this.endPts = 0,
  20171. this.originalBeginDts = 0, this.originalEndDts = 0, this.syncPoints = [], this.firstSample =
  20172. null, this.lastSample = null
  20173. }
  20174. t.IDRSampleList = ((0, i.default)(o, [{
  20175. key: "clear",
  20176. value: function() {
  20177. this._list = []
  20178. }
  20179. }, {
  20180. key: "appendArray",
  20181. value: function(e) {
  20182. var t = this._list;
  20183. 0 !== e.length && (0 < t.length && e[0].originalDts < t[t.length - 1]
  20184. .originalDts && this.clear(), Array.prototype.push.apply(t, e))
  20185. }
  20186. }, {
  20187. key: "getLastSyncPointBeforeDts",
  20188. value: function(e) {
  20189. if (0 == this._list.length) return null;
  20190. var t, n = this._list,
  20191. i = 0,
  20192. r = n.length - 1,
  20193. a = 0,
  20194. s = r;
  20195. for (e < n[0].dts && (i = 0, a = s + 1); a <= s;) {
  20196. if ((t = a + Math.floor((s - a) / 2)) === r || e >= n[t].dts && e <
  20197. n[t + 1].dts) {
  20198. i = t;
  20199. break
  20200. }
  20201. n[t].dts < e ? a = t + 1 : s = t - 1
  20202. }
  20203. return this._list[i]
  20204. }
  20205. }]), o);
  20206. function o() {
  20207. (0, s.default)(this, o), this._list = []
  20208. }
  20209. t.MediaSegmentInfoList = ((0, i.default)(u, [{
  20210. key: "isEmpty",
  20211. value: function() {
  20212. return 0 === this._list.length
  20213. }
  20214. }, {
  20215. key: "clear",
  20216. value: function() {
  20217. this._list = [], this._lastAppendLocation = -1
  20218. }
  20219. }, {
  20220. key: "_searchNearestSegmentBefore",
  20221. value: function(e) {
  20222. var t = this._list;
  20223. if (0 === t.length) return -2;
  20224. var n, i = t.length - 1,
  20225. r = 0,
  20226. a = i,
  20227. s = 0;
  20228. if (e < t[0].originalBeginDts) return s = -1;
  20229. for (; r <= a;) {
  20230. if ((n = r + Math.floor((a - r) / 2)) === i || e > t[n].lastSample
  20231. .originalDts && e < t[n + 1].originalBeginDts) {
  20232. s = n;
  20233. break
  20234. }
  20235. t[n].originalBeginDts < e ? r = n + 1 : a = n - 1
  20236. }
  20237. return s
  20238. }
  20239. }, {
  20240. key: "_searchNearestSegmentAfter",
  20241. value: function(e) {
  20242. return this._searchNearestSegmentBefore(e) + 1
  20243. }
  20244. }, {
  20245. key: "append",
  20246. value: function(e) {
  20247. var t = this._list,
  20248. n = e,
  20249. i = this._lastAppendLocation,
  20250. e = 0; - 1 !== i && i < t.length && n.originalBeginDts >= t[i]
  20251. .lastSample.originalDts && (i === t.length - 1 || i < t.length -
  20252. 1 && n.originalBeginDts < t[i + 1].originalBeginDts) ? e = i +
  20253. 1 : 0 < t.length && (e = this._searchNearestSegmentBefore(n
  20254. .originalBeginDts) + 1), this._lastAppendLocation = e, this
  20255. ._list.splice(e, 0, n)
  20256. }
  20257. }, {
  20258. key: "getLastSegmentBefore",
  20259. value: function(e) {
  20260. e = this._searchNearestSegmentBefore(e);
  20261. return 0 <= e ? this._list[e] : null
  20262. }
  20263. }, {
  20264. key: "getLastSampleBefore",
  20265. value: function(e) {
  20266. e = this.getLastSegmentBefore(e);
  20267. return null != e ? e.lastSample : null
  20268. }
  20269. }, {
  20270. key: "getLastSyncPointBefore",
  20271. value: function(e) {
  20272. for (var t = this._searchNearestSegmentBefore(e), n = this._list[t]
  20273. .syncPoints; 0 === n.length && 0 < t;) n = this._list[--t]
  20274. .syncPoints;
  20275. return 0 < n.length ? n[n.length - 1] : null
  20276. }
  20277. }, {
  20278. key: "type",
  20279. get: function() {
  20280. return this._type
  20281. }
  20282. }, {
  20283. key: "length",
  20284. get: function() {
  20285. return this._list.length
  20286. }
  20287. }]), u);
  20288. function u(e) {
  20289. (0, s.default)(this, u), this._type = e, this._list = [], this._lastAppendLocation = -1
  20290. }
  20291. }, function(e, t, n) {
  20292. "use strict";
  20293. Object.defineProperty(t, "__esModule", {
  20294. value: !0
  20295. });
  20296. r(n(4));
  20297. var o = r(n(64)),
  20298. i = r(n(227)),
  20299. u = r(n(229)),
  20300. d = r(n(40));
  20301. function r(e) {
  20302. return e && e.__esModule ? e : {
  20303. default: e
  20304. }
  20305. }
  20306. t.default = function(r) {
  20307. var a = null,
  20308. s = function(e, t) {
  20309. r.postMessage({
  20310. msg: "logcat_callback",
  20311. data: {
  20312. type: e,
  20313. logcat: t
  20314. }
  20315. })
  20316. }.bind(this);
  20317. i.default.install(), r.addEventListener("message", function(e) {
  20318. switch (e.data.cmd) {
  20319. case "init":
  20320. (a = new u.default(e.data.param[0], e.data.param[1])).on(d.default
  20321. .IO_ERROR,
  20322. function(e, t) {
  20323. r.postMessage({
  20324. msg: d.default.IO_ERROR,
  20325. data: {
  20326. type: e,
  20327. info: t
  20328. }
  20329. })
  20330. }.bind(this)), a.on(d.default.DEMUX_ERROR, function(e, t) {
  20331. r.postMessage({
  20332. msg: d.default.DEMUX_ERROR,
  20333. data: {
  20334. type: e,
  20335. info: t
  20336. }
  20337. })
  20338. }.bind(this)), a.on(d.default.INIT_SEGMENT, function(e, t) {
  20339. e = {
  20340. msg: d.default.INIT_SEGMENT,
  20341. data: {
  20342. type: e,
  20343. data: t
  20344. }
  20345. };
  20346. r.postMessage(e, [t.data])
  20347. }.bind(this)), a.on(d.default.MEDIA_SEGMENT, function(e, t) {
  20348. e = {
  20349. msg: d.default.MEDIA_SEGMENT,
  20350. data: {
  20351. type: e,
  20352. data: t
  20353. }
  20354. };
  20355. r.postMessage(e, [t.data])
  20356. }.bind(this)), a.on(d.default.LOADING_COMPLETE, function() {
  20357. var e = {
  20358. msg: d.default.LOADING_COMPLETE
  20359. };
  20360. r.postMessage(e)
  20361. }.bind(this)), a.on(d.default.RECOVERED_EARLY_EOF, function() {
  20362. var e = {
  20363. msg: d.default.RECOVERED_EARLY_EOF
  20364. };
  20365. r.postMessage(e)
  20366. }.bind(this)), a.on(d.default.MEDIA_INFO, function(e) {
  20367. e = {
  20368. msg: d.default.MEDIA_INFO,
  20369. data: e
  20370. };
  20371. r.postMessage(e)
  20372. }.bind(this)), a.on(d.default.METADATA_ARRIVED, function(e) {
  20373. e = {
  20374. msg: d.default.METADATA_ARRIVED,
  20375. data: e
  20376. };
  20377. r.postMessage(e)
  20378. }.bind(this)), a.on(d.default.SCRIPTDATA_ARRIVED, function(e) {
  20379. e = {
  20380. msg: d.default.SCRIPTDATA_ARRIVED,
  20381. data: e
  20382. };
  20383. r.postMessage(e)
  20384. }.bind(this)), a.on(d.default.STATISTICS_INFO, function(e) {
  20385. e = {
  20386. msg: d.default.STATISTICS_INFO,
  20387. data: e
  20388. };
  20389. r.postMessage(e)
  20390. }.bind(this)), a.on(d.default.RECOMMEND_SEEKPOINT, function(e) {
  20391. r.postMessage({
  20392. msg: d.default.RECOMMEND_SEEKPOINT,
  20393. data: e
  20394. })
  20395. }.bind(this)), a.on(d.default.VIDEO_RESOLUTION_CHANGED, function(
  20396. e) {
  20397. e = {
  20398. msg: d.default.VIDEO_RESOLUTION_CHANGED,
  20399. data: e
  20400. };
  20401. r.postMessage(e)
  20402. }.bind(this)), a.on(d.default.PARSEDDATA_ARRIVED, function(e, t) {
  20403. t = {
  20404. msg: d.default.PARSEDDATA_ARRIVED,
  20405. data: {
  20406. databuf: e,
  20407. dataType: t
  20408. }
  20409. };
  20410. r.postMessage(t)
  20411. }.bind(this));
  20412. break;
  20413. case "destroy":
  20414. a && (a.destroy(), a = null), r.postMessage({
  20415. msg: "destroyed"
  20416. });
  20417. break;
  20418. case "start":
  20419. a.start();
  20420. break;
  20421. case "stop":
  20422. a.stop();
  20423. break;
  20424. case "seek":
  20425. a.seek(e.data.param);
  20426. break;
  20427. case "pause":
  20428. a.pause();
  20429. break;
  20430. case "resume":
  20431. a.resume();
  20432. break;
  20433. case "logging_config":
  20434. var t = e.data.param;
  20435. o.default.applyConfig(t), !0 === t.enableCallback ? o.default
  20436. .addLogListener(s) : o.default.removeLogListener(s);
  20437. break;
  20438. case "feed":
  20439. var n = e.data.feedData,
  20440. i = n.data,
  20441. t = n.byteStart,
  20442. n = n.receivedLength;
  20443. a._ioctl._onLoaderChunkArrival(i, t, n);
  20444. break;
  20445. case "set_record_flag":
  20446. a._demuxer.recordFlag = e.data.value;
  20447. break;
  20448. case "cleancache":
  20449. a._ioctl._flushStashBuffer(!0)
  20450. }
  20451. })
  20452. }
  20453. }, function(e, t, n) {
  20454. "use strict";
  20455. Object.defineProperty(t, "__esModule", {
  20456. value: !0
  20457. });
  20458. t.default = {
  20459. ERROR: "error",
  20460. SOURCE_OPEN: "source_open",
  20461. UPDATE_END: "update_end",
  20462. BUFFER_FULL: "buffer_full",
  20463. SOURCE_END: "source_end",
  20464. SOURCE_CLOSE: "source_close",
  20465. SOURCE_ADD_ERROR: "source_add_error"
  20466. }
  20467. }, function(e, t, n) {
  20468. "use strict";
  20469. Object.defineProperty(t, "__esModule", {
  20470. value: !0
  20471. });
  20472. var i = o(n(1)),
  20473. r = o(n(2)),
  20474. a = o(n(10)),
  20475. s = function(e) {
  20476. {
  20477. if (e && e.__esModule) return e;
  20478. var t = {};
  20479. if (null != e)
  20480. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  20481. return t.default = e, t
  20482. }
  20483. }(n(61));
  20484. function o(e) {
  20485. return e && e.__esModule ? e : {
  20486. default: e
  20487. }
  20488. }
  20489. var u = "stashbuffer_changed",
  20490. d = "fileWrite_end";
  20491. window.requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem;
  20492. (0, r.default)(l, [{
  20493. key: "write",
  20494. value: function(e) {
  20495. this._stash(e)
  20496. }
  20497. }, {
  20498. key: "download",
  20499. value: function() {
  20500. this._fileEntry && this._fileWriter && (1 !== this._fileWriter.readyState ? this
  20501. ._fileEntry.file(function(e) {
  20502. this._downloadFile(e)
  20503. }.bind(this)) : this._emitter.once(d, this.download.apply(this)))
  20504. }
  20505. }, {
  20506. key: "_quota",
  20507. value: function() {
  20508. window.webkitStorageInfo.requestQuota(window.TEMPORARY, this._storageQuota, this
  20509. ._quotaSuccess.bind(this), this._errorHandlerQuta)
  20510. }
  20511. }, {
  20512. key: "_errorHandlerQuota",
  20513. value: function(e) {
  20514. console.error(s.ERR_PLAY_FILESYS_QUOTA, e)
  20515. }
  20516. }, {
  20517. key: "_quotaSuccess",
  20518. value: function(e) {
  20519. window.requestFileSystem(window.TEMPORARY, e, this._initFs.bind(this), this
  20520. ._errorHandlerRequestFileSystem)
  20521. }
  20522. }, {
  20523. key: "_errorHandlerRequestFileSystem",
  20524. value: function(e) {
  20525. console.error(s.ERR_PLAY_FILESYS_REQUEST, e)
  20526. }
  20527. }, {
  20528. key: "_initFs",
  20529. value: function(e) {
  20530. this._fileSystem = e, this._fileSystem.root.getFile(this._fileName, {
  20531. create: !0,
  20532. exclusive: !0
  20533. }, this._getFileSuccess.bind(this), this._errorHandlerGetFile)
  20534. }
  20535. }, {
  20536. key: "_errorHandlerGetFile",
  20537. value: function(e) {
  20538. console.error(s.ERR_PLAY_FILESYS_GETFILE, e)
  20539. }
  20540. }, {
  20541. key: "_getFileSuccess",
  20542. value: function(e) {
  20543. e.isFile && (e.createWriter(this._initFileWriter.bind(this), this
  20544. ._errorHandlerCreateWriter), this._fileEntry = e)
  20545. }
  20546. }, {
  20547. key: "_errorHandlerCreateWriter",
  20548. value: function(e) {
  20549. console.error(s.ERR_PLAY_FILESYS_CREATE, e)
  20550. }
  20551. }, {
  20552. key: "_initFileWriter",
  20553. value: function(e) {
  20554. e.onwriteend = this._fileWriteEnd.bind(this), e.onerror = this._fileWriteError
  20555. .bind(this), this._fileWriter = e, this._isStart = !0, this._emitter.on(u,
  20556. this._stashBufferChanged.bind(this))
  20557. }
  20558. }, {
  20559. key: "_stashBufferChanged",
  20560. value: function() {
  20561. var e;
  20562. (0 === this._fileWriter.readyState || 2 === this._fileWriter.readyState) && 0 <
  20563. this._stashUsed && (this._fileWriter.seek(this._fileWriter.length), e = this
  20564. ._stashBuffer.slice(0, this._stashUsed), this._fileWriter.write(
  20565. new Blob([e])), this._bufferSize = this._defaultBufferSize, this
  20566. ._stashBuffer = new Uint8Array(this._bufferSize), this._stashUsed = 0)
  20567. }
  20568. }, {
  20569. key: "_fileWriteEnd",
  20570. value: function(e) {
  20571. this._emitter.listeners(d) && this._emitter.emit(d)
  20572. }
  20573. }, {
  20574. key: "_fileWriteError",
  20575. value: function(e) {
  20576. console.error(s.ERR_PLAY_FILESYS_WRITE, e)
  20577. }
  20578. }, {
  20579. key: "_errorHandler",
  20580. value: function(e) {
  20581. console.error(e)
  20582. }
  20583. }, {
  20584. key: "_stash",
  20585. value: function(e) {
  20586. this._stashUsed + e.byteLength > this._bufferSize && this._expandBuffer(this
  20587. ._stashUsed + e.byteLength), this._stashBuffer.set(new Uint8Array(e),
  20588. this._stashUsed), this._stashUsed += e.byteLength, this._emitter
  20589. .listeners(u) && this._emitter.emit(u)
  20590. }
  20591. }, {
  20592. key: "_expandBuffer",
  20593. value: function(e) {
  20594. this._bufferSize = e;
  20595. e = this._stashBuffer.slice(0, this._stashUsed);
  20596. this._stashBuffer = new Uint8Array(this._bufferSize), this._stashBuffer.set(e,
  20597. 0)
  20598. }
  20599. }, {
  20600. key: "_downloadFile",
  20601. value: function(e) {
  20602. var t = e;
  20603. e instanceof Blob || e instanceof File || (t = new Blob([e]));
  20604. e = window.URL.createObjectURL(t), t = window.document.createElement("a");
  20605. t.href = e, t.download = this._fileName;
  20606. e = document.createEvent("MouseEvents");
  20607. e.initEvent("click", !0, !0), t.dispatchEvent(e)
  20608. }
  20609. }, {
  20610. key: "onReady",
  20611. set: function(e) {
  20612. this._fileWriterReady = e
  20613. }
  20614. }]), r = l;
  20615. function l(e, t) {
  20616. (0, i.default)(this, l), this._fileName = e, this._storageQuota = 268435456, this._fileSystem =
  20617. null, this._fileEntry = null, this._fileWriter = null, this._isStart = !1, this._emitter =
  20618. new a.default, this._defaultBufferSize = 134217728, this._bufferSize = this
  20619. ._defaultBufferSize, this._stashBuffer = new Uint8Array(this._bufferSize), this._stashUsed =
  20620. 0, this._stash(t), this._quota()
  20621. }
  20622. t.default = r
  20623. }, function(e, t, n) {
  20624. "use strict";
  20625. Object.defineProperty(t, "__esModule", {
  20626. value: !0
  20627. }), t.ErrorDetails = t.ErrorTypes = void 0;
  20628. var i, r = n(15),
  20629. a = n(66),
  20630. n = (i = a) && i.__esModule ? i : {
  20631. default: i
  20632. };
  20633. t.ErrorTypes = {
  20634. NETWORK_ERROR: "NetworkError",
  20635. MEDIA_ERROR: "MediaError",
  20636. OTHER_ERROR: "OtherError"
  20637. }, t.ErrorDetails = {
  20638. NETWORK_EXCEPTION: r.LoaderErrors.EXCEPTION,
  20639. NETWORK_STATUS_CODE_INVALID: r.LoaderErrors.HTTP_STATUS_CODE_INVALID,
  20640. NETWORK_TIMEOUT: r.LoaderErrors.CONNECTING_TIMEOUT,
  20641. NETWORK_UNRECOVERABLE_EARLY_EOF: r.LoaderErrors.UNRECOVERABLE_EARLY_EOF,
  20642. MEDIA_MSE_ERROR: "MediaMSEError",
  20643. MEDIA_FORMAT_ERROR: n.default.FORMAT_ERROR,
  20644. MEDIA_FORMAT_UNSUPPORTED: n.default.FORMAT_UNSUPPORTED,
  20645. MEDIA_CODEC_UNSUPPORTED: n.default.CODEC_UNSUPPORTED
  20646. }
  20647. }, function(e, t, n) {
  20648. "use strict";
  20649. Object.defineProperty(t, "__esModule", {
  20650. value: !0
  20651. }), t.JSPlugin = void 0;
  20652. var f = r(n(11)),
  20653. m = r(n(85)),
  20654. p = r(n(53)),
  20655. y = r(n(54)),
  20656. a = r(n(1)),
  20657. i = r(n(2)),
  20658. v = r(n(55)),
  20659. g = n(86),
  20660. s = n(262),
  20661. u = n(285),
  20662. d = n(286),
  20663. o = n(287),
  20664. l = n(288),
  20665. h = n(289),
  20666. c = r(n(290)),
  20667. _ = r(n(0)),
  20668. M = r(n(10)),
  20669. L = function(e) {
  20670. {
  20671. if (e && e.__esModule) return e;
  20672. var t = {};
  20673. if (null != e)
  20674. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  20675. return t.default = e, t
  20676. }
  20677. }(n(61)),
  20678. S = r(n(334)),
  20679. k = r(n(91)),
  20680. b = r(n(39)),
  20681. w = n(335);
  20682. function r(e) {
  20683. return e && e.__esModule ? e : {
  20684. default: e
  20685. }
  20686. }
  20687. var D = 4194304,
  20688. T = !1,
  20689. E = null,
  20690. Y = [];
  20691. window.JSPlayM4_AdditionDataCBFun = function(t, e) {
  20692. var n, i, r, a = Y.find(function(e) {
  20693. return e.port === t
  20694. }).belongWindowpoint,
  20695. s = Y.find(function(e) {
  20696. return e.port === t
  20697. }).belongWindowId,
  20698. o = a.aWndList[s];
  20699. o && o.AdditionDataCB && (n = E.HEAP32[e >> 2], i = E.HEAP32[e + 4 >> 2], r = E.HEAP32[e +
  20700. 8 >> 2], a = E.HEAP32[e + 12 >> 2], s = E.HEAP32[e + 16 >> 2], (e =
  20701. new Uint8Array(a)).set(E.HEAPU8.subarray(s, s + a)), o.AdditionDataCB(n, i, r,
  20702. e))
  20703. };
  20704. var P, C, i = ((0, i.default)(A, [{
  20705. key: "_getOSDTime",
  20706. value: function(e, t, n, i, r, a, s) {
  20707. var o = void 0,
  20708. o = "ios" === this._browserInfo._system || g.oTool.isEdge() ? t +
  20709. "/" + n + "/" + i + " " + r + ":" + a + ":" + s : t + "-" + n +
  20710. "-" + i + " " + r + ":" + a + ":" + s;
  20711. this.aWndList[e].iCurentOSDTime = new Date(o).getTime()
  20712. }
  20713. }, {
  20714. key: "_getWndIndexFromPort",
  20715. value: function(e) {
  20716. for (var t = this.aWndList.length, n = -1, i = 0; i < t; i++)
  20717. if (this.aWndList[i].oPlayCtrl && e === this.aWndList[i].oPlayCtrl
  20718. .iPort) {
  20719. n = i;
  20720. break
  20721. } return n
  20722. }
  20723. }, {
  20724. key: "_listenBrowserVisibility",
  20725. value: function() {
  20726. document.addEventListener("visibilitychange", this.e.visibilitychange)
  20727. }
  20728. }, {
  20729. key: "_createWindows",
  20730. value: function() {
  20731. var i = this,
  20732. e = document.getElementById(this.options.szId),
  20733. t = e.clientWidth,
  20734. n = e.clientHeight;
  20735. t && n || ((0, v.default)(e).width(this.options.iWidth), (0, v.default)(
  20736. e).height(this.options.iHeight)), 25e4 < t * n && (this
  20737. .bcloseAntialias = !0);
  20738. var n = this.options.oStyle,
  20739. r = n.borderWidth,
  20740. a = n.border,
  20741. s = n.borderSelect,
  20742. o = n.background,
  20743. u = this.options.iCurrentSplit;
  20744. e.innerHTML = "";
  20745. var d = document.createElement("div");
  20746. d.className = "parent-wnd", d.style =
  20747. "width: 100%; height: 100%; position: relative; overflow: hidden;",
  20748. e.appendChild(d);
  20749. for (var n = d.clientWidth, e = d.clientHeight, l = Math.floor((n - 1) /
  20750. u), h = Math.floor((e - 1) / u), e = parseFloat((window
  20751. .screen.width / window.innerWidth).toFixed(2)), c = Math
  20752. .floor(l - r / e * 2), _ = Math.floor(h - r / e * 2), f = 0; f <
  20753. this.iMaxWndNum; f++) ! function(e) {
  20754. var t = document.createElement("div");
  20755. t.className = "sub-wnd", t.id = "player-container-" + e;
  20756. var n = {
  20757. "box-sizing": "border-box",
  20758. overflow: "hidden",
  20759. width: l + "px",
  20760. height: h + "px",
  20761. border: r + "px solid " + (0 === e ? s : a),
  20762. "background-color": o,
  20763. position: "relative",
  20764. float: "left",
  20765. display: e < Math.pow(u, 2) ? "inline-block" : "none"
  20766. };
  20767. (0, m.default)(n).forEach(function(e) {
  20768. t.style.setProperty(e, n[e])
  20769. }), t.innerHTML =
  20770. '\n <video autoplay muted id="' + i.options
  20771. .szId + "_playVideo" + e + '" class="play-window" wid="' +
  20772. e + '" \n width="' + c + '" height="' +
  20773. _ +
  20774. '" style="object-fit: fill;">\n </video>\n <canvas id="' +
  20775. i.options.szId + "_playCanvas" + e +
  20776. '" class="play-window" wid="' + e +
  20777. '" \n width="' + (i.bcloseAntialias &&
  20778. 1 === u ? c : 2 * c) + '" height="' + (i
  20779. .bcloseAntialias && 1 === u ? _ : 2 * _) +
  20780. '"\n style="' + (i.bcloseAntialias &&
  20781. 1 === u ? "transform-origin: 0 0;" :
  20782. "transform: scale(0.5); transform-origin: 0 0;") +
  20783. '">\n </canvas>\n <canvas id="' +
  20784. i.options.szId + "_canvas_draw" + e +
  20785. '" class="draw-window" wid="' + e +
  20786. '" \n width="' + c + '" height="' + _ +
  20787. '" style="position: absolute; top: 0; left: 0;">\n </canvas>\n ',
  20788. d.appendChild(t)
  20789. }(f);
  20790. this.oJSPlugin.find("video.play-window").hide()
  20791. }
  20792. }, {
  20793. key: "_updateWnd",
  20794. value: function() {
  20795. var e = this.oJSPlugin.find(".parent-wnd").get(0),
  20796. t = e.clientWidth,
  20797. n = e.clientHeight;
  20798. t && n && (this.options.iWidth = t, this.options.iHeight = n);
  20799. for (var i = this.options.oStyle.borderWidth, r = this.options
  20800. .iCurrentSplit, a = Math.floor((t - 1) / r), t = Math.floor((n -
  20801. 1) / r), n = parseFloat((window.screen.width / window
  20802. .innerWidth).toFixed(2)), s = Math.floor(a - i / n * 2), o =
  20803. Math.floor(t - i / n * 2), u = 0; u < this.iMaxWndNum; u++) {
  20804. var d = (0, v.default)(e).find(".sub-wnd").get(u);
  20805. (0, v.default)(d).width(s).height(o).css("display", u < Math.pow(r,
  20806. 2) ? "inline-block" : "none").css("border", "1px solid " +
  20807. this.options.oStyle.border), u === this
  20808. .currentWindowIndex && (0, v.default)(d).css("border",
  20809. "1px solid " + this.options.oStyle.borderSelect), (0, v
  20810. .default)(d).find("video.play-window").attr("width", s)
  20811. .attr("height", o);
  20812. var l = this.bcloseAntialias && 1 === r ? s : 2 * s,
  20813. h = this.bcloseAntialias && 1 === r ? o : 2 * o,
  20814. c = this.bcloseAntialias && 1 === r ? "scale(1)" : "scale(0.5)";
  20815. (0, v.default)(d).find("canvas.play-window").attr("width", l).attr(
  20816. "height", h).css("transform", c);
  20817. c = this.aWndList[u];
  20818. c.bPlay && 0 === c.iMode && c.oPlayCtrl && c.oPlayCtrl
  20819. .PlayM4_SetCanvasSize && c.oPlayCtrl.PlayM4_SetCanvasSize(l, h),
  20820. (0, v.default)(d).find("canvas.draw-window").attr("width", s)
  20821. .attr("height", o), this.oDrawCanvas.resizeCanvas()
  20822. }
  20823. }
  20824. }, {
  20825. key: "_dealWndSelect",
  20826. value: function(t) {
  20827. var n = this;
  20828. this.iCurrentWndIndex = t, (this.aWndList[t].bEZoom || this.aWndList[t]
  20829. .b3DZoom) && (this.oJSPlugin.find(".draw-window").unbind(), this
  20830. .oDrawCanvas.setDrawStatus(!1), this.oDrawCanvas = null, this
  20831. .oDrawCanvas = new h.ESCanvas(this.options.szId +
  20832. "_canvas_draw" + t), this.oDrawCanvas.setShapeType("Rect"),
  20833. this.oDrawCanvas.setDrawStyle("#ff0000", "", 0), this.aWndList[
  20834. t].bEZoom ? this.oDrawCanvas.setDrawStatus(!0, function(e) {
  20835. e.startPos && e.endPos && (e.startPos[0] > e.endPos[0] ?
  20836. n.aWndList[t].oPlayCtrl
  20837. .PlayM4_SetDisplayRegion && n.aWndList[t]
  20838. .oPlayCtrl.PlayM4_SetDisplayRegion(null, !1) : n
  20839. .aWndList[t].oPlayCtrl
  20840. .PlayM4_SetDisplayRegion && n.aWndList[t]
  20841. .oPlayCtrl.PlayM4_SetDisplayRegion({
  20842. left: e.startPos[0],
  20843. top: e.startPos[1],
  20844. right: e.endPos[0],
  20845. bottom: e.endPos[1]
  20846. }, !0))
  20847. }) : this.aWndList[t].b3DZoom && this.oDrawCanvas.setDrawStatus(
  20848. !0,
  20849. function(e) {
  20850. n.fDrawCallback(e)
  20851. }))
  20852. }
  20853. }, {
  20854. key: "_initCallbackEvent",
  20855. value: function() {
  20856. this.oEventCallback = {
  20857. loadEventHandler: function() {
  20858. window.loadEventHandler && window.loadEventHandler()
  20859. },
  20860. windowEventSelect: function(e) {
  20861. window.getSelectWndInfo && window.getSelectWndInfo(e)
  20862. },
  20863. pluginErrorHandler: function(e, t, n) {
  20864. window.pluginEventHandler && window.pluginEventHandler(
  20865. e, t, n)
  20866. },
  20867. windowEventOver: function(e) {
  20868. window.windowEventOver && window.windowEventOver(e)
  20869. },
  20870. windowEventOut: function(e) {
  20871. window.windowEventOut && window.windowEventOut(e)
  20872. },
  20873. windowEventUp: function(e) {
  20874. window.windowEventUp && window.windowEventUp(e)
  20875. },
  20876. windowFullCcreenChange: function(e) {
  20877. window.windowFullCcreenChange && window
  20878. .windowFullCcreenChange(e)
  20879. },
  20880. firstFrameDisplay: function(e, t, n) {
  20881. window.firstFrameDisplay && window.firstFrameDisplay(e,
  20882. t, n)
  20883. },
  20884. performanceLack: function() {
  20885. window.performanceLack && window.performanceLack()
  20886. },
  20887. StreamEnd: function(e) {
  20888. window.StreamEnd && window.StreamEnd(e)
  20889. },
  20890. InterruptStream: function(e, t) {
  20891. window.InterruptStream && window.InterruptStream(e, t)
  20892. },
  20893. mouseEvent: function() {}
  20894. }
  20895. }
  20896. }, {
  20897. key: "_initEvent",
  20898. value: function() {
  20899. var a = this;
  20900. this._initCallbackEvent(), this.oJSPlugin.find(".parent-wnd").eq(0)
  20901. .children().each(function(i) {
  20902. var r = !1;
  20903. (0, v.default)(this).unbind().bind("click", function(e) {
  20904. var t, n;
  20905. 0 === e.button && (t = (n = a.options.oStyle)
  20906. .borderWidth, e = n.border, n = n
  20907. .borderSelect, a.oJSPlugin.find(
  20908. ".parent-wnd").eq(0).children().css(
  20909. "border", t + "px solid " + e), a
  20910. .oJSPlugin.find(".parent-wnd").eq(0)
  20911. .children().eq(i).css("border", t +
  20912. "px solid " + n), a.oEventCallback
  20913. .windowEventSelect(parseInt(a.oJSPlugin
  20914. .find(".parent-wnd").eq(0)
  20915. .children().eq(i).find(
  20916. ".play-window").eq(0).attr(
  20917. "wid"), 10)), a._dealWndSelect(
  20918. parseInt(a.oJSPlugin.find(
  20919. ".parent-wnd").eq(0)
  20920. .children().eq(i).find(
  20921. ".play-window").eq(0).attr(
  20922. "wid"), 10)))
  20923. }), (0, v.default)(this).bind("mouseover", function(e) {
  20924. a.oEventCallback.windowEventOver(i)
  20925. }), (0, v.default)(this).bind("mouseout", function(e) {
  20926. a.oEventCallback.windowEventOut(i)
  20927. }), (0, v.default)(this).bind("mousemove", function(e) {
  20928. var t = e.offsetX / a.oDrawCanvas
  20929. .m_iCanvasWidth,
  20930. e = e.offsetY / a.oDrawCanvas
  20931. .m_iCanvasHeight;
  20932. r ? a.oEventCallback.mouseEvent(7, t, e) : a
  20933. .oEventCallback.mouseEvent(6, t, e)
  20934. }), (0, v.default)(this).bind("mousewheel", function(
  20935. e) {
  20936. var t = e.offsetX / a.oDrawCanvas
  20937. .m_iCanvasWidth,
  20938. e = e.offsetY / a.oDrawCanvas
  20939. .m_iCanvasHeight;
  20940. a.oEventCallback.mouseEvent(8, t, e)
  20941. }), (0, v.default)(this).bind("mouseup", function(e) {
  20942. r = !1, a.oEventCallback.windowEventUp(i);
  20943. var t = e.offsetX / a.oDrawCanvas
  20944. .m_iCanvasWidth,
  20945. n = e.offsetY / a.oDrawCanvas
  20946. .m_iCanvasHeight;
  20947. 2 === e.button ? a.oEventCallback.mouseEvent(5,
  20948. t, n) : 0 === e.button && a
  20949. .oEventCallback.mouseEvent(3, t, n)
  20950. }), (0, v.default)(this).bind("dblclick", function(e) {
  20951. var t;
  20952. a.options.bSupporDoubleClickFull && (
  20953. "desktop" === a._browserInfo.platform ?
  20954. a.JS_FullScreenSingle(i) : a
  20955. .fullscreenElement ? a
  20956. ._triggerFullscreen(a
  20957. .fullscreenElement) : a
  20958. .JS_FullScreenSingle(a
  20959. .currentWindowIndex), t = e
  20960. .offsetX / a.oDrawCanvas.m_iCanvasWidth,
  20961. e = e.offsetX / a.oDrawCanvas
  20962. .m_iCanvasHeight, a.oEventCallback
  20963. .mouseEvent(2, t, e))
  20964. })
  20965. }), window.addEventListener("resize", this.e.resize), document
  20966. .addEventListener("fullscreenchange", this.e.fullscreenchange)
  20967. }
  20968. }, {
  20969. key: "_eventHandlerResize",
  20970. value: function() {
  20971. if (!(document.fullscreen || document.webkitIsFullScreen || document
  20972. .mozFullScreen || !1) && this.fullscreenElement) {
  20973. var e = this.fullscreenElement;
  20974. if (!(document.fullscreenEnabled || document.mozFullScreenEnabled ||
  20975. document.msFullscreenEnabled || e
  20976. .webkitSupportsFullscreen || !1)) return this
  20977. ._triggerFullscreen(e);
  20978. this.fullscreenElement = null, this.oEventCallback
  20979. .windowFullCcreenChange(!1)
  20980. }
  20981. this.JS_Resize()
  20982. }
  20983. }, {
  20984. key: "_eventHandlerFullscreenchange",
  20985. value: function() {
  20986. if (!(document.fullscreen || document.webkitIsFullScreen || document
  20987. .mozFullScreen || !1) && this.fullscreenElement) {
  20988. var e = this.fullscreenElement;
  20989. if (!(document.fullscreenEnabled || document.mozFullScreenEnabled ||
  20990. document.msFullscreenEnabled || e
  20991. .webkitSupportsFullscreen || !1)) return this
  20992. ._triggerFullscreen(e);
  20993. this.fullscreenElement = null, this.oEventCallback
  20994. .windowFullCcreenChange(!1)
  20995. }
  20996. this.JS_Resize()
  20997. }
  20998. }, {
  20999. key: "_eventHandlerVisibilitychange",
  21000. value: function() {
  21001. this.isBrowserVisible = !document.hidden
  21002. }
  21003. }, {
  21004. key: "removeAllListeners",
  21005. value: function() {
  21006. window.removeEventListener("resize", this.e.resize), document
  21007. .removeEventListener("fullscreenchange", this.e.fullscreenchange),
  21008. document.removeEventListener("visibilitychange", this.e
  21009. .visibilitychange)
  21010. }
  21011. }, {
  21012. key: "_debounse",
  21013. value: function(e, t) {
  21014. var n = this;
  21015. this._debounseTimer && clearTimeout(this._debounseTimer), this
  21016. ._debounseTimer = setTimeout(function() {
  21017. e.apply(n), clearTimeout(n._debounseTimer), n
  21018. ._debounseTimer = null
  21019. }, t)
  21020. }
  21021. }, {
  21022. key: "_initPlayCtrlOnlyAudio",
  21023. value: function(e, t) {
  21024. t = new Uint8Array(t);
  21025. t[10] = 0, t[11] = 0, this.aWndList[e].oPlayCtrl.PlayM4_OpenStream(t,
  21026. 40, 2097152), "" !== this.aWndList[e].szSecretKey && (this
  21027. .aWndList[e].oPlayCtrl.PlayM4_SetSecretKey(1, this.aWndList[e]
  21028. .szSecretKey, 128), this.aWndList[e].szSecretKey = ""), this
  21029. .aWndList[e].oPlayCtrl.PlayM4_SetStreamOpenMode(0), this.aWndList[e]
  21030. .oPlayCtrl.PlayM4_Play(null)
  21031. }
  21032. }, {
  21033. key: "flvtohikHead",
  21034. value: function(e) {
  21035. var t = new Uint8Array(40);
  21036. t[0] = 73, t[1] = 77, t[2] = 75, t[3] = 72, t[4] = 3, t[5] = 1, t[6] =
  21037. 0, t[7] = 0, t[8] = 10, t[9] = 0, t[10] = 0, t[11] = 1, t[12] = 1,
  21038. t[13] = 32, t[14] = 1, t[15] = 12;
  21039. e = this.aWndList[e]._videoInfo.audioSampleRate.toString(16);
  21040. return t[16] = parseInt(e[2] + e[3], 16), t[17] = parseInt(e[0] + e[1],
  21041. 16), t
  21042. }
  21043. }, {
  21044. key: "_changeHVAGHead",
  21045. value: function(e) {
  21046. var t = new Uint8Array(40);
  21047. return t[0] = 73, t[1] = 77, t[2] = 75, t[3] = 72, t[4] = 3, t[5] = 1,
  21048. t[6] = 0, t[7] = 0, 192 === e[8] && 0 === e[9] ? t[8] = 4 : t[8] =
  21049. 2, t[9] = 0, 100 === e[24] && 97 === e[25] && 104 === e[26] &&
  21050. 117 === e[27] && 97 === e[28] && (t[8] = 1, t[9] = 128), 0 !== e[
  21051. 11] && 1 !== e[11] || 192 !== e[10] ? 2 === e[11] && 192 === e[
  21052. 10] ?
  21053. t[10] = 3 : 3 === e[11] && 192 === e[10] ? t[10] = 5 : 4 === e[
  21054. 11] && 192 === e[10] ? t[10] = 4 : 5 === e[11] && 192 === e[
  21055. 10] ? t[
  21056. 10] = 2 : 6 === e[11] && 192 === e[10] ? t[10] = 6 : t[10] = 1 :
  21057. t[10] = 1, t[11] = 0, 1 === e[13] && 192 === e[12] ? (t[12] = 16, t[
  21058. 13] = 113) : 2 === e[13] && 192 === e[12] ? (t[12] = 17, t[13] =
  21059. 113) : 3 === e[13] && 192 === e[12] ? (t[12] = 33, t[13] =
  21060. 114) : 4 === e[13] && 192 === e[12] ? (t[12] = 96, t[13] =
  21061. 114) :
  21062. 5 === e[13] && 192 === e[12] ? (t[12] = 1, t[13] = 32) : 6 === e[
  21063. 13] && 192 === e[12] ? (t[12] = 0, t[13] = 32) : 7 === e[13] &&
  21064. 192 === e[12] ? (t[12] = 0, t[13] = 112) : (t[12] = 16, t[13] =
  21065. 113), t
  21066. }
  21067. }, {
  21068. key: "_parseHead",
  21069. value: function(e, t) {
  21070. 1 === t[8] && 0 === t[9] ? this.aWndList[e]._videoInfo.systemFormt =
  21071. "HIK" : 2 === t[8] && 0 === t[9] ? this.aWndList[e]._videoInfo
  21072. .systemFormt = "PS" : 4 === t[8] && 0 === t[9] ? this.aWndList[e]
  21073. ._videoInfo.systemFormt = "RTP" : 8 === t[8] && 0 === t[9] ? this
  21074. .aWndList[e]._videoInfo.systemFormt = "GB" : 16 === t[8] && 0 === t[
  21075. 9] ? this.aWndList[e]._videoInfo.systemFormt = "RAW" : 1 === t[
  21076. 8] && 128 === t[9] ? this.aWndList[e]._videoInfo.systemFormt =
  21077. "DAHUA" : this.aWndList[e]._videoInfo.systemFormt = "unkonw", 1 ===
  21078. t[11] && 0 === t[10] || 0 === t[11] && 1 === t[10] ? (this.aWndList[
  21079. e]._videoInfo.VideType = "H264", 129 === t[24] && (this
  21080. .aWndList[e]._videoInfo.VideType = "Smart264")) : 0 === t[11] &&
  21081. 5 === t[10] ? (this.aWndList[e]._videoInfo.VideType = "H265",
  21082. 129 === t[24] && (this.aWndList[e]._videoInfo.VideType =
  21083. "Smart265")) : 0 === t[11] && 6 === t[10] ? this.aWndList[e]
  21084. ._videoInfo.VideType = "SAC" : 0 === t[11] && 2 === t[10] ? this
  21085. .aWndList[e]._videoInfo.VideType = "MPEG2" : 0 === t[11] && 3 === t[
  21086. 10] ? this.aWndList[e]._videoInfo.VideType = "MPEG4" : this
  21087. .aWndList[e]._videoInfo.VideType = "unkonw", 113 === t[13] && 16 ===
  21088. t[12] ? this.aWndList[e]._videoInfo.audioType = "G711_U" : 113 ===
  21089. t[13] && 17 === t[12] ? this.aWndList[e]._videoInfo.audioType =
  21090. "G711_A" : 114 === t[13] && 33 === t[12] ? this.aWndList[e]
  21091. ._videoInfo.audioType = "G7221" : 114 === t[13] && 96 === t[12] ?
  21092. this.aWndList[e]._videoInfo.audioType = "G726_32" : 114 === t[13] &&
  21093. 98 === t[12] ? this.aWndList[e]._videoInfo.audioType = "G726_16" :
  21094. 114 === t[13] && 144 === t[12] ? this.aWndList[e]._videoInfo
  21095. .audioType = "G729" : 32 === t[13] && 1 === t[12] ? this.aWndList[e]
  21096. ._videoInfo.audioType = "AAC" : 16 === t[13] && 0 === t[12] ? this
  21097. .aWndList[e]._videoInfo.audioType = "ADPCM" : 32 === t[13] && 0 ===
  21098. t[12] ? this.aWndList[e]._videoInfo.audioType = "MP2L2" : 0 === t[
  21099. 13] && 0 === t[12] ? this.aWndList[e]._videoInfo.audioType =
  21100. "without" : this.aWndList[e]._videoInfo.audioType = "unknow"
  21101. }
  21102. }, {
  21103. key: "_stripRtpHead",
  21104. value: function(e) {
  21105. var t, n = new Uint8Array(e),
  21106. i = 32 & n[0],
  21107. r = 16 & n[0],
  21108. a = 15 & n[0],
  21109. s = 0,
  21110. e = 0;
  21111. return 32 == i && (s = n[n.byteLength - 1]), t = 4 * parseInt(a, 10),
  21112. 16 == r && (e = 4 * new window.DataView(n.buffer, 12 + t, 4)
  21113. .getUint16(2) + 4), n.length <= 12 + t + e ? -1 : n.slice(12 +
  21114. t + e, n.length - s)
  21115. }
  21116. }, {
  21117. key: "_openStream",
  21118. value: function(i, a, s, o, u) {
  21119. var d = this,
  21120. l = this.aWndList[s],
  21121. e = o;
  21122. return e && -1 !== e.search("Z") && (e = e.replace("Z", "+08:00")), this
  21123. .aWndList[s].iCurentOSDTime = this.aWndList[s].iGlobalBaseTime =
  21124. new Date(e).getTime(), new f.default(function(t, r) {
  21125. var n, e = o && u;
  21126. l.szPlayType = e ? "playback" : "realplay", 3 === a
  21127. .PlayBackMode && e && (l.szPlayType = "reverse"), l
  21128. ._emiter.on("firstframeload", function() {
  21129. l.asyncLock = !1, t()
  21130. }, {
  21131. once: !0
  21132. }), d.oStreamClient.openStream(i, a, (n = (0, y.default)
  21133. (p.default.mark(function e(t) {
  21134. var n, i;
  21135. return p.default.wrap(function(e) {
  21136. for (;;) switch (e
  21137. .prev = e.next
  21138. ) {
  21139. case 0:
  21140. if (!t
  21141. .bHead
  21142. ) {
  21143. e.next =
  21144. 49;
  21145. break
  21146. }
  21147. if (l
  21148. .oSdpInfo =
  21149. t, n = l
  21150. .aHead =
  21151. new Uint8Array(
  21152. t
  21153. .buf
  21154. ), d
  21155. ._log.I(
  21156. "headData arrive",
  21157. n),
  21158. l.isGB =
  21159. 0 === n[
  21160. 7
  21161. ] &&
  21162. 196 ===
  21163. n[8] &&
  21164. 100 ===
  21165. n[24] &&
  21166. 98 ===
  21167. n[25] &&
  21168. 51 ===
  21169. n[26] &&
  21170. 51 ===
  21171. n[27],
  21172. 72 ===
  21173. n[0] &&
  21174. 86 ===
  21175. n[1] &&
  21176. 65 ===
  21177. n[2] &&
  21178. 71 ===
  21179. n[3] ? (
  21180. l
  21181. .isHVAGHead = !
  21182. 0, l
  21183. .aHVAGHead =
  21184. new Uint8Array(
  21185. t
  21186. .buf
  21187. ),
  21188. l
  21189. .aHead =
  21190. d
  21191. ._changeHVAGHead(
  21192. t
  21193. .buf
  21194. )
  21195. ) :
  21196. l
  21197. .isHVAGHead = !
  21198. 1, l
  21199. .isHVAGHead &&
  21200. 1 === l
  21201. .aHead[
  21202. 8
  21203. ] &&
  21204. 128 ===
  21205. l.aHead[
  21206. 9
  21207. ] &&
  21208. "1" ===
  21209. d
  21210. ._decoderVersion
  21211. ) return d
  21212. ._log
  21213. .E(L.ERR_STREAM_VIDEO_CODING +
  21214. ": jsdecoder1.0 unsupport dahua video"
  21215. ),
  21216. l
  21217. .asyncLock = !
  21218. 1, d
  21219. ._closeStreamAndDestory(
  21220. s
  21221. ),
  21222. d
  21223. .oEventCallback
  21224. .pluginErrorHandler(
  21225. s,
  21226. L
  21227. .ERR_STREAM_VIDEO_CODING
  21228. ),
  21229. e
  21230. .abrupt(
  21231. "return",
  21232. r(L
  21233. .ERR_STREAM_VIDEO_CODING
  21234. )
  21235. );
  21236. e.next = 12;
  21237. break;
  21238. case 12:
  21239. if (d
  21240. .aWndList[
  21241. s]
  21242. ._bpsCalculator ||
  21243. (d.aWndList[
  21244. s
  21245. ]
  21246. ._bpsCalculator =
  21247. window
  21248. .setInterval(
  21249. d
  21250. ._calculateRealtimeBitrate
  21251. .bind(
  21252. d
  21253. ),
  21254. 1e3,
  21255. s
  21256. )
  21257. ), !
  21258. (70 ===
  21259. n[
  21260. 0
  21261. ] &&
  21262. 76 ===
  21263. n[
  21264. 1
  21265. ] &&
  21266. 86 ===
  21267. n[2]
  21268. )) {
  21269. e.next =
  21270. 20;
  21271. break
  21272. }
  21273. l.iMode = 1,
  21274. l
  21275. .isFlv = !
  21276. 0, d
  21277. ._createFlvPlayer(
  21278. s),
  21279. e.next =
  21280. 47;
  21281. break;
  21282. case 20:
  21283. if (!(5 ===
  21284. l
  21285. .aHead[
  21286. 10
  21287. ] &&
  21288. 0 ===
  21289. l
  21290. .aHead[
  21291. 11
  21292. ] ||
  21293. 1 ===
  21294. l
  21295. .aHead[
  21296. 10
  21297. ] &&
  21298. 0 ===
  21299. l
  21300. .aHead[
  21301. 11
  21302. ] ||
  21303. 0 ===
  21304. l
  21305. .aHead[
  21306. 10
  21307. ] &&
  21308. 1 ===
  21309. l
  21310. .aHead[
  21311. 11
  21312. ]
  21313. )) {
  21314. e.next =
  21315. 23;
  21316. break
  21317. }
  21318. e.next = 25;
  21319. break;
  21320. case 23:
  21321. return d
  21322. ._log.E(
  21323. L
  21324. .ERR_STREAM_JSDECODER_CODEC_UNSUPPORTED +
  21325. ": the stream not h264 h265 smart,unsupport .",
  21326. l
  21327. .aHead[
  21328. 10
  21329. ],
  21330. l
  21331. .aHead[
  21332. 11
  21333. ]
  21334. ), e
  21335. .abrupt(
  21336. "return",
  21337. r(L
  21338. .ERR_STREAM_JSDECODER_CODEC_UNSUPPORTED
  21339. )
  21340. );
  21341. case 25:
  21342. if (d
  21343. ._parseHead(
  21344. s, l
  21345. .aHead
  21346. ),
  21347. i = 1, d
  21348. .aWndList[
  21349. s]
  21350. .asyncLock &&
  21351. "2" ===
  21352. d
  21353. ._decoderVersion
  21354. ) return d
  21355. ._log
  21356. .E(L.ERR_STREAM_LOCK_ERROR +
  21357. ": Multiple call js_play API in a short time, please wait lasttime call over."
  21358. ),
  21359. e
  21360. .abrupt(
  21361. "return",
  21362. r(L
  21363. .ERR_STREAM_LOCK_ERROR
  21364. )
  21365. );
  21366. e.next = 30;
  21367. break;
  21368. case 30:
  21369. if (d
  21370. .aWndList[
  21371. s]
  21372. .asyncLock = !
  21373. 0, l
  21374. .oPlayCtrl
  21375. ) {
  21376. e.next =
  21377. 45;
  21378. break
  21379. }
  21380. if (E ||
  21381. "2" !==
  21382. d
  21383. ._decoderVersion
  21384. ) {
  21385. e.next =
  21386. 42;
  21387. break
  21388. }
  21389. return e
  21390. .prev =
  21391. 33, e
  21392. .next =
  21393. 36, d
  21394. ._decoder2Loaded();
  21395. case 36:
  21396. i = e.sent,
  21397. e.next =
  21398. 42;
  21399. break;
  21400. case 39:
  21401. e.prev = 39,
  21402. e.t0 = e
  21403. .catch(
  21404. 33),
  21405. 1 === e
  21406. .t0 ||
  21407. E || (l
  21408. .asyncLock = !
  21409. 1, d
  21410. .oEventCallback
  21411. .pluginErrorHandler(
  21412. s,
  21413. L
  21414. .ERR_COM_LOAD_JSDECODER_ERROR
  21415. ),
  21416. d
  21417. ._closeStreamAndDestory(
  21418. s
  21419. ),
  21420. d
  21421. ._log
  21422. .E(L.ERR_COM_LOAD_JSDECODER_ERROR +
  21423. ": load jsdecoder faild."
  21424. ),
  21425. r(L
  21426. .ERR_COM_LOAD_JSDECODER_ERROR
  21427. )
  21428. );
  21429. case 42:
  21430. d._createPlayCtrl(
  21431. s),
  21432. e.next =
  21433. 47;
  21434. break;
  21435. case 45:
  21436. 1 !== (i = d
  21437. ._playCtrlLoad(
  21438. s
  21439. )
  21440. ) &&
  21441. (l.asyncLock = !
  21442. 1, d
  21443. ._closeStreamAndDestory(
  21444. s
  21445. ),
  21446. d
  21447. .oEventCallback
  21448. .pluginErrorHandler(
  21449. s,
  21450. i
  21451. ),
  21452. d
  21453. ._log
  21454. .E(i +
  21455. ": jsdecoder open stream faild."
  21456. ),
  21457. r(i)
  21458. );
  21459. case 47:
  21460. e.next = 50;
  21461. break;
  21462. case 49:
  21463. t.cmd &&
  21464. "end" ===
  21465. t.cmd ?
  21466. (console
  21467. .log(
  21468. "[iWndNum-" +
  21469. s +
  21470. "] recv stream end"
  21471. ),
  21472. l
  21473. .asyncLock = !
  21474. 1, d
  21475. ._streamEndStop(
  21476. s
  21477. )
  21478. .then(
  21479. function() {
  21480. d.oEventCallback
  21481. .StreamEnd(
  21482. s
  21483. )
  21484. },
  21485. function(
  21486. e
  21487. ) {
  21488. console
  21489. .error(
  21490. "[iWndNum-" +
  21491. s +
  21492. "] recv stream end stop error:",
  21493. e
  21494. ),
  21495. d
  21496. .oEventCallback
  21497. .StreamEnd(
  21498. s
  21499. )
  21500. }
  21501. )
  21502. ) :
  21503. ("1" ===
  21504. d
  21505. ._decoderVersion ||
  21506. l
  21507. .bPlay
  21508. ) &&
  21509. l
  21510. .bSeekOk &&
  21511. d
  21512. ._feedData(
  21513. s, t
  21514. );
  21515. case 50:
  21516. case "end":
  21517. return e
  21518. .stop()
  21519. }
  21520. }, e, d, [
  21521. [33, 39]
  21522. ])
  21523. })),
  21524. function(e) {
  21525. return n.apply(this, arguments)
  21526. }), function(e) {
  21527. if (l.asyncLock = !1, d.aWndList[s].bPlay)
  21528. 1e3 === e.code || 1005 === e.code ? (d._log
  21529. .E(L.ERR_STREAM_CONNECT_CLOSED +
  21530. ": 送流异常,被后端关闭连接", i), d
  21531. .oEventCallback.pluginErrorHandler(s, L
  21532. .ERR_STREAM_CONNECT_CLOSED, e)) : (d
  21533. ._log.E(L.ERR_STREAM_INTERRUPT +
  21534. ": 流中断", i), d.oEventCallback
  21535. .pluginErrorHandler(s, L
  21536. .ERR_STREAM_INTERRUPT, e)), l
  21537. .szStreamUUID = "", d
  21538. ._closeStreamAndDestory(s);
  21539. else {
  21540. if (1e3 === e.code || 1005 === e.code)
  21541. return t();
  21542. d.aWndList[s].szStreamUUID ? (d
  21543. .oEventCallback.pluginErrorHandler(
  21544. s, L
  21545. .ERR_COM_RECV_STREAM_TIMEOUT, e
  21546. ), l.szStreamUUID = "", r(L
  21547. .ERR_COM_RECV_STREAM_TIMEOUT)) :
  21548. 1006 === e.code && -1 !== i.search(
  21549. "wss://") ? (d.oEventCallback
  21550. .pluginErrorHandler(s, L
  21551. .ERR_STREAM_WSS_ERROR, e), r(L
  21552. .ERR_STREAM_WSS_ERROR)) : (d
  21553. .oEventCallback.pluginErrorHandler(
  21554. s, L.ERR_STREAM_WS_ERROR, e), r(
  21555. L.ERR_STREAM_WS_ERROR)), d
  21556. .oStreamClient.closeTimer(l
  21557. .szStreamUUID)
  21558. }
  21559. }).then(function(e) {
  21560. d.aWndList[s].szStreamUUID && (d.oStreamClient
  21561. .stop(d.aWndList[s].szStreamUUID), d
  21562. .aWndList[s].szStreamUUID = ""), d
  21563. .aWndList[s].szStreamUUID = e, d
  21564. .oStreamClient && d.oStreamClient.startPlay(
  21565. e, o, u, l.szPlayType).then(
  21566. function() {},
  21567. function(e) {
  21568. l.szStreamUUID = "", l.asyncLock = !
  21569. 1;
  21570. var t = e;
  21571. "string" != typeof e && (t = "0x0" +
  21572. e.errorCode.toString(16)), l
  21573. .bPlay || (d._log.E(t +
  21574. ": 取流失败,详情根据错误码在运管后台进行查询."
  21575. ), d.oEventCallback
  21576. .pluginErrorHandler(s, t,
  21577. e), r(t)), r(L
  21578. .ERR_STREAM_OPEN_FAILED), d
  21579. .oStreamClient.closeTimer(l
  21580. .szStreamUUID)
  21581. })
  21582. }).catch(function(e) {
  21583. l.asyncLock = !1, d.oEventCallback
  21584. .pluginErrorHandler(s, L
  21585. .ERR_STREAM_WS_TIMEOUT, e), d
  21586. ._closeStreamAndDestory(s), r(L
  21587. .ERR_STREAM_WS_TIMEOUT)
  21588. })
  21589. })
  21590. }
  21591. }, {
  21592. key: "JS_GetPluginVersion",
  21593. value: function() {
  21594. var t = this;
  21595. return new f.default(function(e) {
  21596. e(t.szPluginVersion)
  21597. })
  21598. }
  21599. }, {
  21600. key: "JS_SetWindowControlCallback",
  21601. value: function(t) {
  21602. var n = this;
  21603. return new f.default(function(e) {
  21604. n.oEventCallback = v.default.extend(n.oEventCallback, t),
  21605. e()
  21606. })
  21607. }
  21608. }, {
  21609. key: "JS_SetSecretKey",
  21610. value: function(n, i) {
  21611. var r = this;
  21612. return new f.default(function(e, t) {
  21613. !(n < 0) && "" !== i && void 0 !== i ? (r.aWndList[n]
  21614. .szSecretKey = i, e()) : t()
  21615. })
  21616. }
  21617. }, {
  21618. key: "JS_ArrangeWindow",
  21619. value: function(i) {
  21620. var r = this;
  21621. return new f.default(function(e, t) {
  21622. if (i < 1 || "number" != typeof i) return t(L
  21623. .ERR_COM_PARAM);
  21624. if (i < r.options.iMaxSplit ? r.options.iCurrentSplit = i :
  21625. r.options.iCurrentSplit = r.options.iMaxSplit, g.oTool
  21626. .isFirefox())
  21627. for (var n = 0; n < r.options.iMaxSplit * r.options
  21628. .iMaxSplit; n++) r.aWndList[n].oPlayCtrl && r
  21629. .aWndList[n].oPlayCtrl.PlayM4_ClearCanvas && r
  21630. .aWndList[n].oPlayCtrl.PlayM4_ClearCanvas();
  21631. r.iCurrentWndIndex = 0, r.oEventCallback.windowEventSelect(
  21632. 0), r._updateWnd(), r._dealWndSelect(0), e()
  21633. })
  21634. }
  21635. }, {
  21636. key: "JS_Play",
  21637. value: function(r, a) {
  21638. var s = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] :
  21639. -1,
  21640. o = this,
  21641. u = arguments[3],
  21642. d = arguments[4];
  21643. return (s < 0 || s > this.iMaxWndNum - 1 || "number" != typeof s) && (
  21644. s = this.iCurrentWndIndex), new f.default(function(e, t) {
  21645. if ("string" != typeof r || -1 === r.search("wss://") && -
  21646. 1 === r.search("ws://")) return t(L.ERR_COM_URL_ERROR);
  21647. var n = 0;
  21648. a.mode && (n = a.mode);
  21649. var i = r;
  21650. 1 !== n && o._supportInfo.MSE && (i = /\?/g.test(r) ? r +
  21651. "&streamform=flv" : r + "?streamform=flv"), o
  21652. .aWndList[s].bopenTraceId && (-1 !== i.search(
  21653. "traceId=") && 0 < i.split("traceId=").pop()
  21654. .split("&").shift().length ? o.aWndList[s]
  21655. .szTraceId = i.split("traceId=").pop().split("&")
  21656. .shift() : (o.aWndList[s].szTraceId = o.uuid2(16,
  21657. 16), i = "" + i + (/\?/g.test(i) ? "&" :
  21658. "?") + "traceId=" + o.aWndList[s].szTraceId)),
  21659. r = i, a.playURL && (a.playURL = r), a.mode = "media", -
  21660. 1 !== i.search("wss://") && -1 !== i.search(
  21661. "/proxy/") && (a.proxy = i.split("/proxy/").pop()
  21662. .split(
  21663. "/").shift(), n = i.split("wss://").pop().split(
  21664. "/").shift(), a.playURL = i.replace("wss:",
  21665. "ws:").replace(n, "").replace("/proxy/", "")), o
  21666. .aWndList[s].szUrl = r, o.aWndList[s].oParams = a, o
  21667. .aWndList[s].szStartTime = u || "", o.aWndList[s]
  21668. .szStopTime = d || "", o.aWndList[s].pointSignNumber = r
  21669. .split("realplay/").pop().split("/").shift(), o
  21670. .aWndList[s].bPlay ? o.JS_Stop(s).then(function() {
  21671. o._openStream(r, a, s, u, d).then(function() {
  21672. e()
  21673. }, function(e) {
  21674. t(e)
  21675. })
  21676. }) : o._openStream(r, a, s, u, d).then(function() {
  21677. e()
  21678. }, function(e) {
  21679. t(e)
  21680. })
  21681. })
  21682. }
  21683. }, {
  21684. key: "JS_Seek",
  21685. value: function() {
  21686. var r = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] :
  21687. -1,
  21688. a = this,
  21689. s = arguments[1],
  21690. o = arguments[2];
  21691. return new f.default(function(t, n) {
  21692. if ((r < 0 || r > a.iMaxWndNum - 1 || "number" !=
  21693. typeof r) && (r = a.iCurrentWndIndex), "string" !=
  21694. typeof s || "string" != typeof o) return n(L
  21695. .ERR_COM_PARAM);
  21696. var e = s,
  21697. i = o;
  21698. if (-1 !== s.search("Z") && (e = e.replace("Z", "+08:00")),
  21699. -1 !== o.search("Z") && (i = i.replace("Z", "+08:00")),
  21700. e = new Date(e).getTime(), i = new Date(i).getTime(), !
  21701. e || !i || i <= e || -1 === s.search("T") || -1 === s
  21702. .search(":") || -1 === s.search("-") || -1 === o.search(
  21703. "T") || -1 === o.search(":") || -1 === o.search("-")
  21704. ) return n(L.ERR_COM_PARAM);
  21705. i = a._checkPlayback(r);
  21706. 0 === i ? (a.aWndList[r].bSeekOk = !1, a.aWndList[r]
  21707. .isFlv && ((e = s) && -1 !== e.search("Z") && (e = e
  21708. .replace("Z", "+08:00")), a.aWndList[r]
  21709. .iCurentOSDTime = new Date(e).getTime(), a
  21710. .aWndList[r].iGlobalBaseTime = new Date(e)
  21711. .getTime() - a.aWndList[r]._osdtimeInfo
  21712. .flvduration, a.aWndList[r].oMSE.CleanCache(), a
  21713. .aWndList[r]._resetFlvplayer = !0, a.aWndList[r]
  21714. ._receivedLength = 4), a.oStreamClient.seek(a
  21715. .aWndList[r].szStreamUUID, s, o).then(
  21716. function() {
  21717. var e;
  21718. !0 === a.aWndList[r].isPause && (1 === a
  21719. .aWndList[r].iMode ? (e = a
  21720. .oJSPlugin.find(
  21721. "video.play-window").eq(r))
  21722. .get(0).play && e.get(0).play() : a
  21723. .aWndList[r].oPlayCtrl && a
  21724. .aWndList[r].oPlayCtrl.PlayM4_Pause(
  21725. !1), a.aWndList[r].isPause = !1
  21726. ), a.aWndList[r].bSeekOk = !0, t()
  21727. },
  21728. function(e) {
  21729. e = "0x0" + e.errorCode.toString(16);
  21730. a._log.E(e +
  21731. ": 定位失败,可能是定位传的时间异常导致,详情根据错误码在运管后台进行查询."
  21732. ), n(e)
  21733. })) : n(i)
  21734. })
  21735. }
  21736. }, {
  21737. key: "JS_GetSdkVersion",
  21738. value: function() {
  21739. return this.aWndList[0].oPlayCtrl.PlayM4_GetSdkVersion()
  21740. }
  21741. }, {
  21742. key: "JS_DestroyWorker",
  21743. value: function() {
  21744. var t = this;
  21745. return new f.default(function(e) {
  21746. t.aWndList.forEach(function(e) {
  21747. e.oPlayCtrl = null
  21748. }), e()
  21749. })
  21750. }
  21751. }, {
  21752. key: "JS_Destroy",
  21753. value: function() {
  21754. var t = this;
  21755. return new f.default(function(e) {
  21756. t.JS_StopRealPlayAll(), t.oStreamClient.stopAll(), t
  21757. .oStreamClient = null, e()
  21758. })
  21759. }
  21760. }, {
  21761. key: "JS_Stop",
  21762. value: function() {
  21763. var n = this,
  21764. i = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] :
  21765. -1;
  21766. return new f.default(function(e, t) {
  21767. if ((i < 0 || i > n.iMaxWndNum - 1 || "number" !=
  21768. typeof i) && (i = n.iCurrentWndIndex), n.aWndList[i]
  21769. .asyncLock && "2" === n._decoderVersion) return n._log
  21770. .E(L.ERR_STREAM_LOCK_ERROR +
  21771. ": Multiple call js_stop API in a short time, please wait lasttime call over."
  21772. ), t(L.ERR_STREAM_LOCK_ERROR);
  21773. n.aWndList[i]._bpsCalculator && (self.clearInterval(n
  21774. .aWndList[i]._bpsCalculator), n.aWndList[i]
  21775. ._bpsCalculator = null, n.aWndList[i]._bpsInfo = {
  21776. lastVideoBytes: 0,
  21777. bps_video: 0,
  21778. data_updated_time: 0,
  21779. time_gap_factor: 1
  21780. }), n.aWndList[i].szStorageUUID && n.JS_StopSave(i),
  21781. n.aWndList[i].bEZoom && n.JS_DisableZoom(i), i === n
  21782. .iCurrentSoundWnd && (n.JS_CloseSound(), n.aWndList[i]
  21783. .MSEVolume = .5), clearInterval(n.aWndList[i]
  21784. .streamEndinter), n._closeStreamAndDestory(i), n
  21785. .aWndList[i].isPause = !1, n.aWndList[i].bFirstFrame = !
  21786. 1, n.aWndList[i]._emiter.removeAllListeners(), n
  21787. .aWndList[i]._resetFlvplayer = !1, e()
  21788. })
  21789. }
  21790. }, {
  21791. key: "JS_Pause",
  21792. value: function() {
  21793. var i = this,
  21794. r = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] :
  21795. -1;
  21796. return new f.default(function(t, n) {
  21797. (r < 0 || r > i.iMaxWndNum - 1 || "number" != typeof r) && (
  21798. r = i.iCurrentWndIndex);
  21799. var e = i._checkPlayback(r);
  21800. if (0 === e) return i.aWndList[r].bFrameForward ? (i._log.E(
  21801. L.ERR_PLAYBACK_FRAMEFORWARD +
  21802. ": status singleFrame not support this handle."
  21803. ), void n(L.ERR_PLAYBACK_FRAMEFORWARD)) : !0 ===
  21804. i.aWndList[r].isPause ? t() : void i.oStreamClient
  21805. .pause(i.aWndList[r].szStreamUUID).then(function() {
  21806. var e;
  21807. 1 === i.aWndList[r].iMode ? (e = i.oJSPlugin
  21808. .find("video.play-window").eq(r))
  21809. .get(0).pause && e.get(0).pause() : i
  21810. .aWndList[r].oPlayCtrl.PlayM4_Pause && i
  21811. .aWndList[r].oPlayCtrl.PlayM4_Pause(!0),
  21812. i.aWndList[r].isPause = !0, t()
  21813. }, function(e) {
  21814. n(e)
  21815. });
  21816. n(e)
  21817. })
  21818. }
  21819. }, {
  21820. key: "JS_Resume",
  21821. value: function() {
  21822. var i = this,
  21823. r = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] :
  21824. -1;
  21825. return new f.default(function(t, n) {
  21826. (r < 0 || r > i.iMaxWndNum - 1 || "number" != typeof r) && (
  21827. r = i.iCurrentWndIndex);
  21828. var e = i._checkPlay(r);
  21829. return 0 !== e ? n(e) : (i.aWndList[r].bFrameForward && (
  21830. "2" === i._decoderVersion ? i.aWndList[r]
  21831. .oPlayCtrl.PlayM4_OneByOne_Play && i.aWndList[r]
  21832. .oPlayCtrl.PlayM4_OneByOne_Play() : i.aWndList[
  21833. r].oPlayCtrl.PlayM4_Play(i.options.szId +
  21834. "_playCanvas" + r), i.aWndList[r]
  21835. .bFrameForward = !1), !1 === i.aWndList[r]
  21836. .isPause ? t() : void i.oStreamClient.resume(i
  21837. .aWndList[r].szStreamUUID).then(function() {
  21838. var e;
  21839. 1 === i.aWndList[r].iMode ? (e = i.oJSPlugin
  21840. .find("video.play-window").eq(r))
  21841. .get(0).play && e.get(0).play() : (1 !==
  21842. i.iCurrentPlayRate && (i.aWndList[r]
  21843. .iRate = i.iCurrentPlayRate, i
  21844. .oStreamClient.setPlayRate(i
  21845. .aWndList[r].szStreamUUID, i
  21846. .aWndList[r].iRate), i
  21847. .aWndList[r].oPlayCtrl
  21848. .PlayM4_PlayRate && i.aWndList[
  21849. r].oPlayCtrl
  21850. .PlayM4_PlayRate(i.aWndList[r]
  21851. .iRate), 1 < i
  21852. .iCurrentPlayRate ? i.aWndList[
  21853. r].oPlayCtrl
  21854. .PlayM4_SetDecodeFrameType && i
  21855. .aWndList[r].oPlayCtrl
  21856. .PlayM4_SetDecodeFrameType(1) :
  21857. i.aWndList[r].oPlayCtrl
  21858. .PlayM4_SetDecodeFrameType && i
  21859. .aWndList[r].oPlayCtrl
  21860. .PlayM4_SetDecodeFrameType(0)),
  21861. i.aWndList[r].oPlayCtrl && i
  21862. .aWndList[r].oPlayCtrl.PlayM4_Pause(
  21863. !1)), i.aWndList[r].isPause = !
  21864. 1, t()
  21865. }, function(e) {
  21866. n(e)
  21867. }))
  21868. })
  21869. }
  21870. }, {
  21871. key: "JS_Slow",
  21872. value: function() {
  21873. var i = this,
  21874. r = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] :
  21875. -1;
  21876. return new f.default(function(t, n) {
  21877. (r < 0 || r > i.iMaxWndNum - 1 || "number" != typeof r) && (
  21878. r = i.iCurrentWndIndex);
  21879. var e = i._checkPlayback(r);
  21880. return 0 !== e ? n(e) : i.aWndList[r].bFrameForward ? (i
  21881. ._log.E(L.ERR_PLAYBACK_FRAMEFORWARD +
  21882. ": status singleFrame not support this handle."
  21883. ), n(L.ERR_PLAYBACK_FRAMEFORWARD)) : -8 === i
  21884. .aWndList[r].iRate ? (i._log.E(L.ERR_PLAYBACK_MIN_RATE +
  21885. ": current rate is the min."), void n(L
  21886. .ERR_PLAYBACK_MIN_RATE)) : (i.aWndList[r].iRate <
  21887. 0 && -8 < i.aWndList[r].iRate && (i.aWndList[r]
  21888. .iRate *= 2), 1 === i.aWndList[r].iRate && (i
  21889. .aWndList[r].iRate *= -2), 1 < i.aWndList[r]
  21890. .iRate && (i.aWndList[r].iRate /= 2), void i
  21891. .oStreamClient.setPlayRate(i.aWndList[r]
  21892. .szStreamUUID, i.aWndList[r].iRate).then(
  21893. function() {
  21894. var e;
  21895. 1 === i.aWndList[r].iMode ? (e = i.oJSPlugin
  21896. .find("video.play-window").eq(r)
  21897. .get(0), i.aWndList[r].iRate < 0 ? e
  21898. .playbackRate = 1 / Math.abs(i
  21899. .aWndList[r].iRate) : e
  21900. .playbackRate = i.aWndList[r].iRate,
  21901. 1 === i.aWndList[r].iRate && i
  21902. .aWndList[r].bOpenSound ? i
  21903. .oJSPlugin.find("video.play-window")
  21904. .eq(r)[0].muted = !1 : i.oJSPlugin
  21905. .find("video.play-window").eq(r)[0]
  21906. .muted = !0) : (i.aWndList[r]
  21907. .iRate <= 2 && "2" === i
  21908. ._decoderVersion || i.aWndList[r]
  21909. .iRate < 2 && "2" !== i
  21910. ._decoderVersion ? i.aWndList[r]
  21911. .oPlayCtrl
  21912. .PlayM4_SetDecodeFrameType && i
  21913. .aWndList[r].oPlayCtrl
  21914. .PlayM4_SetDecodeFrameType(0) : i
  21915. .aWndList[r].oPlayCtrl
  21916. .PlayM4_SetDecodeFrameType(1), i
  21917. .aWndList[r].oPlayCtrl
  21918. .PlayM4_PlayRate && i.aWndList[r]
  21919. .oPlayCtrl.PlayM4_PlayRate(i
  21920. .aWndList[r].iRate), i.aWndList[
  21921. r].oPlayCtrl.PlayM4_Slow && i
  21922. .aWndList[r].oPlayCtrl.PlayM4_Slow(i
  21923. .aWndList[r].iRate)), t(i
  21924. .aWndList[r].iRate)
  21925. },
  21926. function(e) {
  21927. n(e)
  21928. }))
  21929. })
  21930. }
  21931. }, {
  21932. key: "JS_Fast",
  21933. value: function() {
  21934. var i = this,
  21935. r = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] :
  21936. -1;
  21937. return (r < 0 || r > this.iMaxWndNum - 1 || "number" != typeof r) && (
  21938. r = this.iCurrentWndIndex), new f.default(function(t, n) {
  21939. var e = i._checkPlayback(r);
  21940. return 0 !== e ? n(e) : i.aWndList[r].bFrameForward ? (i
  21941. ._log.E(L.ERR_PLAYBACK_FRAMEFORWARD +
  21942. ": status singleFrame not support this handle."
  21943. ), n(L.ERR_PLAYBACK_FRAMEFORWARD)) : 8 === i
  21944. .aWndList[r].iRate ? (i._log.E(L.ERR_PLAYBACK_MAX_RATE +
  21945. ": current rate is the max."), n(L
  21946. .ERR_PLAYBACK_MAX_RATE)) : (-2 === i.aWndList[r]
  21947. .iRate ? i.aWndList[r].iRate = 1 : i.aWndList[r]
  21948. .iRate < -2 ? i.aWndList[r].iRate /= 2 : 0 < i
  21949. .aWndList[r].iRate && i.aWndList[r].iRate < 8 && (i
  21950. .aWndList[r].iRate *= 2), void i.oStreamClient
  21951. .setPlayRate(i.aWndList[r].szStreamUUID, i.aWndList[
  21952. r].iRate).then(function() {
  21953. var e;
  21954. 1 === i.aWndList[r].iMode ? (i.aWndList[r]
  21955. .oMSE.closeLatencyMonitor(), e = i
  21956. .oJSPlugin.find("video.play-window")
  21957. .eq(r).get(0), i.aWndList[r].iRate <
  21958. 0 ? e.playbackRate = 1 / Math.abs(i
  21959. .aWndList[r].iRate) : e
  21960. .playbackRate = i.aWndList[r].iRate,
  21961. 1 === i.aWndList[r].iRate && i
  21962. .aWndList[r].bOpenSound ? i
  21963. .oJSPlugin.find("video.play-window")
  21964. .eq(r)[0].muted = !1 : i.oJSPlugin
  21965. .find("video.play-window").eq(r)[0]
  21966. .muted = !0) : (i.aWndList[r]
  21967. .iRate <= 2 && "2" === i
  21968. ._decoderVersion || i.aWndList[r]
  21969. .iRate < 2 && "2" !== i
  21970. ._decoderVersion ? i.aWndList[r]
  21971. .oPlayCtrl
  21972. .PlayM4_SetDecodeFrameType && i
  21973. .aWndList[r].oPlayCtrl
  21974. .PlayM4_SetDecodeFrameType(0) : i
  21975. .aWndList[r].oPlayCtrl
  21976. .PlayM4_SetDecodeFrameType && i
  21977. .aWndList[r].oPlayCtrl
  21978. .PlayM4_SetDecodeFrameType(1), i
  21979. .aWndList[r].oPlayCtrl
  21980. .PlayM4_PlayRate && i.aWndList[r]
  21981. .oPlayCtrl.PlayM4_PlayRate(i
  21982. .aWndList[r].iRate), i.aWndList[
  21983. r].oPlayCtrl.PlayM4_Fast && i
  21984. .aWndList[r].oPlayCtrl.PlayM4_Fast(i
  21985. .aWndList[r].iRate)), t(i
  21986. .aWndList[r].iRate)
  21987. }, function(e) {
  21988. n(e)
  21989. }))
  21990. })
  21991. }
  21992. }, {
  21993. key: "JS_Transmission",
  21994. value: function() {
  21995. var e = this,
  21996. i = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] :
  21997. -1,
  21998. r = arguments[1];
  21999. return new f.default(function(t, n) {
  22000. (i < 0 || i > e.iMaxWndNum - 1 || "number" != typeof i) && (
  22001. i = e.iCurrentWndIndex), e.aWndList[i].szStreamUUID ? e
  22002. .oStreamClient.transmission(e.aWndList[i].szStreamUUID,
  22003. r).then(function(e) {
  22004. t(e)
  22005. }, function(e) {
  22006. n(e)
  22007. }) : n()
  22008. })
  22009. }
  22010. }, {
  22011. key: "JS_FrameForward",
  22012. value: function() {
  22013. var i = this,
  22014. r = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] :
  22015. -1,
  22016. a = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] :
  22017. 1;
  22018. return new f.default(function(e, t) {
  22019. (r < 0 || r > i.iMaxWndNum - 1 || "number" != typeof r) && (
  22020. r = i.iCurrentWndIndex);
  22021. var n = i._checkPlayback(r);
  22022. return 0 !== n ? t(n) : 1 === i.aWndList[r].iMode ? (i._log
  22023. .E(L.ERR_COM_IS_MSE +
  22024. ": MSE unsupport this function."), t(L
  22025. .ERR_COM_IS_MSE)) : (1 !== i.aWndList[r].iRate ?
  22026. (i.aWndList[r].iRate = 1, i.iCurrentPlayRate = i
  22027. .aWndList[r].iRate, i.oStreamClient.setPlayRate(
  22028. i.aWndList[r].szStreamUUID, i.aWndList[r]
  22029. .iRate).then(function() {
  22030. i.aWndList[r].oPlayCtrl
  22031. .PlayM4_PlayRate && i.aWndList[r]
  22032. .oPlayCtrl.PlayM4_PlayRate(i
  22033. .aWndList[r].iRate), i.aWndList[
  22034. r].oPlayCtrl
  22035. .PlayM4_SetDecodeFrameType && i
  22036. .aWndList[r].oPlayCtrl
  22037. .PlayM4_SetDecodeFrameType(0), i
  22038. .aWndList[r].oPlayCtrl
  22039. .PlayM4_OneByOne && i.aWndList[r]
  22040. .oPlayCtrl.PlayM4_OneByOne(a), i
  22041. .aWndList[r].bFrameForward = !0
  22042. }, function(e) {
  22043. t(e)
  22044. })) : (i.aWndList[r].oPlayCtrl
  22045. .PlayM4_SetDecodeFrameType && i.aWndList[r]
  22046. .oPlayCtrl.PlayM4_SetDecodeFrameType(0), i
  22047. .aWndList[r].oPlayCtrl.PlayM4_OneByOne && i
  22048. .aWndList[r].oPlayCtrl.PlayM4_OneByOne(a), i
  22049. .aWndList[r].bFrameForward = !0), void e())
  22050. })
  22051. }
  22052. }, {
  22053. key: "JS_GetOSDTime",
  22054. value: function() {
  22055. var i = this,
  22056. r = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] :
  22057. -1;
  22058. return new f.default(function(n, e) {
  22059. (r < 0 || r > i.iMaxWndNum - 1 || "number" != typeof r) && (
  22060. r = i.iCurrentWndIndex);
  22061. var t = i._checkPlay(r);
  22062. 0 === t ? 1 === i.aWndList[r].iMode ? (i.oJSPlugin.find(
  22063. "video.play-window").eq(r).get(0), n(i.aWndList[
  22064. r].iCurentOSDTime)) : "1" === i._decoderVersion ? i
  22065. .aWndList[r].oPlayCtrl.PlayM4_GetOSDTime && i.aWndList[
  22066. r].oPlayCtrl.PlayM4_GetOSDTime(function(e) {
  22067. var t;
  22068. e ? (t = "ios" === i._browserInfo._system || g
  22069. .oTool.isEdge() ? "/" : " ", t = Date
  22070. .parse(e.replace(/-/g, t)), n(t)) : n(e)
  22071. }) : (i.aWndList[r].oPlayCtrl.PlayM4_GetFrameInfo && i
  22072. .aWndList[r].oPlayCtrl.PlayM4_GetFrameInfo(function(
  22073. e) {
  22074. i.aWndList[r].oPlayCtrl.iYUVWidth = e.width,
  22075. i.aWndList[r].oPlayCtrl.iYUVHeight = e
  22076. .height, i._getOSDTime(r, e.year, e
  22077. .month, e.day, e.hour, e.minute, e
  22078. .second), i.aWndList[r]._videoInfo
  22079. .height = e.height, i.aWndList[r]
  22080. ._videoInfo.width = e.width, i.aWndList[
  22081. r]._videoInfo.frameRate = e
  22082. .frameRate
  22083. }), n(i.aWndList[r].iCurentOSDTime)) : e(t)
  22084. })
  22085. }
  22086. }, {
  22087. key: "JS_SetNormalDecoderAudio",
  22088. value: function() {
  22089. var t = this,
  22090. n = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] :
  22091. -1,
  22092. i = arguments[1];
  22093. return new f.default(function(e) {
  22094. (n < 0 || n > t.iMaxWndNum - 1 || "number" != typeof n) && (
  22095. n = t.iCurrentWndIndex), t.aWndList[n].mseDecoderAudio =
  22096. i, e()
  22097. })
  22098. }
  22099. }, {
  22100. key: "JS_OpenSound",
  22101. value: function() {
  22102. var i = this,
  22103. r = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] :
  22104. -1;
  22105. return (r < 0 || r > this.iMaxWndNum - 1 || "number" != typeof r) && (
  22106. r = this.iCurrentWndIndex), new f.default(function(e, t) {
  22107. var n = i._checkPlay(r);
  22108. if (0 !== n) return t(n);
  22109. if (!i.aWndList[r].bFirstFrame) return t(L
  22110. .ERR_COM_OPENSOUND_ERROR);
  22111. n = i.iCurrentSoundWnd;
  22112. if (n !== r) {
  22113. if (-1 !== n && (1 === i.aWndList[n].iMode ? i.oJSPlugin
  22114. .find("video.play-window").eq(n)[0].muted = !0 :
  22115. i.aWndList[n].oPlayCtrl.PlayM4_StopSound && i
  22116. .aWndList[n].oPlayCtrl.PlayM4_StopSound()),
  22117. 1 === i.aWndList[r].iMode) {
  22118. if ("AAC" !== i.aWndList[r]._videoInfo.audioType)
  22119. return t(L.ERR_STREAM_SOUND_NOTHAS);
  22120. i.aWndList[r].mseDecoderAudio || (i.aWndList[r]
  22121. .bOpenSound = !0, i._streamReset(r));
  22122. n = i.oJSPlugin.find("video.play-window").eq(r)[0];
  22123. n.volume = i.aWndList[r].MSEVolume, n.muted = !1, n
  22124. .paused && n.play()
  22125. } else if (i.aWndList[r].oPlayCtrl.PlayM4_PlaySound &&
  22126. 1 !== i.aWndList[r].oPlayCtrl.PlayM4_PlaySound(r))
  22127. return void t(L.ERR_JSDECODER + i.aWndList[r]
  22128. .oPlayCtrl.PlayM4_GetLastError().toString());
  22129. i.iCurrentSoundWnd = r, i.aWndList[r].bOpenSound = !0,
  22130. e()
  22131. } else e()
  22132. })
  22133. }
  22134. }, {
  22135. key: "JS_GetVolume",
  22136. value: function() {
  22137. var t, i = this;
  22138. return new f.default(function(n, e) {
  22139. if (-1 === i.iCurrentSoundWnd) return e(L
  22140. .ERR_COM_SETORGET_VOLUME_ERROR);
  22141. t = i.iCurrentSoundWnd, 1 === i.aWndList[t].iMode ? (e =
  22142. 100 * i.oJSPlugin.find("video.play-window").eq(t)
  22143. .get(0).volume, n(e)) : i.aWndList[t].oPlayCtrl
  22144. .PlayM4_GetVolume && i.aWndList[t].oPlayCtrl
  22145. .PlayM4_GetVolume(function(e) {
  22146. var t = e;
  22147. "2" === i._decoderVersion && (t = Math.ceil(e /
  22148. 655)), n(t)
  22149. })
  22150. })
  22151. }
  22152. }, {
  22153. key: "JS_SetVolume",
  22154. value: function() {
  22155. var i, r = this,
  22156. a = arguments[1];
  22157. return new f.default(function(e, t) {
  22158. if (-1 === r.iCurrentSoundWnd) return t(L
  22159. .ERR_COM_SETORGET_VOLUME_ERROR);
  22160. if (i = r.iCurrentSoundWnd, a < 1 || 100 < a || "number" !=
  22161. typeof a) return t(L.ERR_COM_SETVOLUME_ERROR);
  22162. if (1 === r.aWndList[i].iMode) {
  22163. try {
  22164. var n = r.oJSPlugin.find("video.play-window").eq(i)
  22165. .get(0);
  22166. n.volume = a / 100, r.aWndList[i].MSEVolume = n
  22167. .volume
  22168. } catch (e) {
  22169. t(e)
  22170. }
  22171. e()
  22172. } else {
  22173. r.aWndList[i].oPlayCtrl.PlayM4_SetVolume || t();
  22174. n = a;
  22175. "2" === r._decoderVersion && (n = Math.ceil(655 * a)),
  22176. 0 === r.aWndList[i].oPlayCtrl.PlayM4_SetVolume(n) ?
  22177. t(L.ERR_JSDECODER + r.aWndList[i].oPlayCtrl
  22178. .PlayM4_GetLastError().toString()) : e()
  22179. }
  22180. })
  22181. }
  22182. }, {
  22183. key: "JS_CloseSound",
  22184. value: function() {
  22185. var r = this;
  22186. return new f.default(function(e, t) {
  22187. var n, i = r.iCurrentSoundWnd;
  22188. i < 0 || i > r.iMaxWndNum - 1 ? e() : 0 === (n = r
  22189. ._checkPlay(i)) ? (1 === r.aWndList[i].iMode ? r
  22190. .oJSPlugin.find("video.play-window").eq(i)[0]
  22191. .muted = !0 : r.aWndList[i].oPlayCtrl
  22192. .PlayM4_StopSound && 1 !== r.aWndList[i].oPlayCtrl
  22193. .PlayM4_StopSound() && t(L.ERR_JSDECODER + r
  22194. .aWndList[i].oPlayCtrl.PlayM4_GetLastError()
  22195. .toString()), r.iCurrentSoundWnd = -1, r
  22196. .aWndList[i].bOpenSound = !1, e()) : t(n)
  22197. })
  22198. }
  22199. }, {
  22200. key: "JS_EnableZoom",
  22201. value: function() {
  22202. var i = this,
  22203. r = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] :
  22204. -1;
  22205. return (r < 0 || r > this.iMaxWndNum - 1 || "number" != typeof r) && (
  22206. r = this.iCurrentWndIndex), new f.default(function(e, t) {
  22207. var n = i._checkPlay(r);
  22208. return 0 !== n ? t(n) : 1 === i.aWndList[r].iMode ? (i._log
  22209. .E(L.ERR_COM_IS_MSE +
  22210. ": MSE unsupport this function."), t(L
  22211. .ERR_COM_IS_MSE)) : (i.oJSPlugin.find(
  22212. ".draw-window").unbind(), i.oDrawCanvas = new h
  22213. .ESCanvas(i.options.szId + "_canvas_draw" + r), i
  22214. .oDrawCanvas.setShapeType("Rect"), i.oDrawCanvas
  22215. .setDrawStyle("#ff0000", "", 0), i.oDrawCanvas
  22216. .setDrawStatus(!0, function(e) {
  22217. e.startPos && e.endPos && (e.startPos[0] > e
  22218. .endPos[0] ? i.aWndList[r].oPlayCtrl
  22219. .PlayM4_SetDisplayRegion && i
  22220. .aWndList[r].oPlayCtrl
  22221. .PlayM4_SetDisplayRegion(null, !1) :
  22222. i.aWndList[r].oPlayCtrl
  22223. .PlayM4_SetDisplayRegion && i
  22224. .aWndList[r].oPlayCtrl
  22225. .PlayM4_SetDisplayRegion({
  22226. left: e.startPos[0],
  22227. top: e.startPos[1],
  22228. right: e.endPos[0],
  22229. bottom: e.endPos[1]
  22230. }, !0))
  22231. }), i.aWndList[r].bEZoom = !0, void e())
  22232. })
  22233. }
  22234. }, {
  22235. key: "JS_DisableZoom",
  22236. value: function() {
  22237. var i = this,
  22238. r = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] :
  22239. -1;
  22240. return (r < 0 || r > this.iMaxWndNum - 1 || "number" != typeof r) && (
  22241. r = this.iCurrentWndIndex), new f.default(function(e, t) {
  22242. var n = i._checkPlay(r);
  22243. return 0 !== n ? t(n) : 1 === i.aWndList[r].iMode ? (i._log
  22244. .E(L.ERR_COM_IS_MSE +
  22245. ": MSE unsupport this function."), t(L
  22246. .ERR_COM_IS_MSE)) : (i.oDrawCanvas
  22247. .setDrawStatus(!1), i.oDrawCanvas.clearAllShape(),
  22248. void(i.aWndList[r].oPlayCtrl
  22249. .PlayM4_SetDisplayRegion && 1 !== i.aWndList[r]
  22250. .oPlayCtrl.PlayM4_SetDisplayRegion(null, !1) ?
  22251. t(L.ERR_JSDECODER + i.aWndList[r].oPlayCtrl
  22252. .PlayM4_GetLastError().toString()) : (i
  22253. .aWndList[r].bEZoom = !1, e())))
  22254. })
  22255. }
  22256. }, {
  22257. key: "JS_Enable3DZoom",
  22258. value: function() {
  22259. var n = this,
  22260. i = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] :
  22261. -1,
  22262. r = arguments[1];
  22263. return new f.default(function(e, t) {
  22264. (i < 0 || i > n.iMaxWndNum - 1 || "number" != typeof i) && (
  22265. i = n.iCurrentWndIndex), n.aWndList[i].bPlay ? (n
  22266. .oJSPlugin.find(".draw-window").unbind(), n
  22267. .fDrawCallback = r, n.oDrawCanvas = new h.ESCanvas(
  22268. "canvas_draw" + i), n.oDrawCanvas.setShapeType(
  22269. "Rect"), n.oDrawCanvas.setDrawStyle("#ff0000",
  22270. "", 0), n.oDrawCanvas.setDrawStatus(!0,
  22271. function(e) {
  22272. r(e)
  22273. }), n.aWndList[i].b3DZoom = !0, e()) : t()
  22274. })
  22275. }
  22276. }, {
  22277. key: "JS_Disable3DZoom",
  22278. value: function() {
  22279. var n = this,
  22280. i = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] :
  22281. -1;
  22282. return new f.default(function(e, t) {
  22283. (i < 0 || i > n.iMaxWndNum - 1 || "number" != typeof i) && (
  22284. i = n.iCurrentWndIndex), n.aWndList[i].bPlay ? (n
  22285. .oDrawCanvas.setDrawStatus(!1), n.aWndList[i]
  22286. .b3DZoom = !1, e()) : t()
  22287. })
  22288. }
  22289. }, {
  22290. key: "JS_CapturePicture",
  22291. value: (C = (0, y.default)(p.default.mark(function e() {
  22292. var d = 0 < arguments.length && void 0 !== arguments[0] ?
  22293. arguments[0] : -1,
  22294. l = arguments[1],
  22295. h = this,
  22296. c = arguments[2],
  22297. _ = arguments[3];
  22298. return p.default.wrap(function(e) {
  22299. for (;;) switch (e.prev = e.next) {
  22300. case 0:
  22301. return e.abrupt("return", new f
  22302. .default(function() {
  22303. var n = (0, y
  22304. .default)(p
  22305. .default
  22306. .mark(
  22307. function e(
  22308. t, n
  22309. ) {
  22310. var i,
  22311. r,
  22312. a,
  22313. s,
  22314. o,
  22315. u;
  22316. return p
  22317. .default
  22318. .wrap(
  22319. function(
  22320. e
  22321. ) {
  22322. for (;;)
  22323. switch (
  22324. e
  22325. .prev =
  22326. e
  22327. .next
  22328. ) {
  22329. case 0:
  22330. if ((d < 0 ||
  22331. d >
  22332. h
  22333. .iMaxWndNum -
  22334. 1 ||
  22335. "number" !=
  22336. typeof d
  22337. ) &&
  22338. (d = h
  22339. .iCurrentWndIndex
  22340. ),
  22341. 0 !==
  22342. (a = h
  22343. ._checkPlay(
  22344. d
  22345. )
  22346. )
  22347. )
  22348. return n(
  22349. a
  22350. ),
  22351. e
  22352. .abrupt(
  22353. "return"
  22354. );
  22355. e.next =
  22356. 5;
  22357. break;
  22358. case 5:
  22359. if (h
  22360. .aWndList[
  22361. d
  22362. ]
  22363. .bFirstFrame
  22364. ) {
  22365. e.next =
  22366. 7;
  22367. break
  22368. }
  22369. return e
  22370. .abrupt(
  22371. "return",
  22372. n(L
  22373. .ERR_CAPTURE_NO_PREPARED
  22374. )
  22375. );
  22376. case 7:
  22377. if (c =
  22378. "JPEG",
  22379. i =
  22380. null,
  22381. 1 !==
  22382. (r = h
  22383. .aWndList[
  22384. d
  22385. ]
  22386. )
  22387. .iMode
  22388. ) {
  22389. e.next =
  22390. 21;
  22391. break
  22392. }
  22393. a = h
  22394. .oJSPlugin
  22395. .find(
  22396. "video.play-window"
  22397. )
  22398. .eq(
  22399. d
  22400. )
  22401. .get(
  22402. 0
  22403. ),
  22404. s =
  22405. a
  22406. .videoWidth,
  22407. o =
  22408. a
  22409. .videoHeight,
  22410. (u = document
  22411. .createElement(
  22412. "canvas"
  22413. )
  22414. )
  22415. .width =
  22416. s,
  22417. u
  22418. .height =
  22419. o,
  22420. u
  22421. .getContext(
  22422. "2d"
  22423. )
  22424. .drawImage(
  22425. a,
  22426. 0,
  22427. 0,
  22428. s,
  22429. o
  22430. ),
  22431. i =
  22432. u
  22433. .toDataURL(
  22434. "image/" +
  22435. c
  22436. ),
  22437. e
  22438. .next =
  22439. 24;
  22440. break;
  22441. case 21:
  22442. return e
  22443. .next =
  22444. 23,
  22445. h
  22446. ._jsdecoderCapture(
  22447. r,
  22448. c
  22449. );
  22450. case 23:
  22451. i = e
  22452. .sent;
  22453. case 24:
  22454. if (
  22455. _
  22456. )
  22457. return _(
  22458. i
  22459. ),
  22460. t(),
  22461. e
  22462. .abrupt(
  22463. "return"
  22464. );
  22465. e.next =
  22466. 28;
  22467. break;
  22468. case 28:
  22469. (s = i
  22470. .split(
  22471. ";"
  22472. )
  22473. .shift()
  22474. .split(
  22475. "/"
  22476. )
  22477. .pop()
  22478. ) !==
  22479. c.toLowerCase() &&
  22480. console
  22481. .warn(
  22482. "Current Browser is not support to capture '" +
  22483. c +
  22484. "' image type, auto capture '" +
  22485. s
  22486. .toUpperCase() +
  22487. "' image."
  22488. ),
  22489. (o = document
  22490. .createEvent(
  22491. "MouseEvents"
  22492. )
  22493. )
  22494. .initEvent(
  22495. "click",
  22496. !
  22497. 1,
  22498. !
  22499. 1
  22500. ),
  22501. (u = document
  22502. .createElement(
  22503. "a"
  22504. )
  22505. )
  22506. .href =
  22507. Blob ?
  22508. URL
  22509. .createObjectURL(
  22510. g
  22511. .oTool
  22512. .dataURLtoBlob(
  22513. i
  22514. )
  22515. ) :
  22516. i,
  22517. u
  22518. .download =
  22519. l +
  22520. "." +
  22521. s,
  22522. u
  22523. .dispatchEvent(
  22524. o
  22525. ),
  22526. t();
  22527. case 37:
  22528. case "end":
  22529. return e
  22530. .stop()
  22531. }
  22532. },
  22533. e,
  22534. h
  22535. )
  22536. }));
  22537. return function(e,
  22538. t) {
  22539. return n
  22540. .apply(
  22541. this,
  22542. arguments
  22543. )
  22544. }
  22545. }()));
  22546. case 1:
  22547. case "end":
  22548. return e.stop()
  22549. }
  22550. }, e, this)
  22551. })), function() {
  22552. return C.apply(this, arguments)
  22553. })
  22554. }, {
  22555. key: "_jsdecoderCapture",
  22556. value: function(t, o) {
  22557. var u = this;
  22558. return new f.default(function(a, s) {
  22559. function e(e) {
  22560. if (6 === e) return u._log.E(L.ERR_CAPTURE_RAM +
  22561. ": capture failed, memory not enough."), s(L
  22562. .ERR_CAPTURE_RAM);
  22563. for (var t = "", n = e.byteLength, i = 0; i < n; i++)
  22564. t += String.fromCharCode(e[i]);
  22565. var r = btoa(t),
  22566. r = "data:image/" + o.toLowerCase() + ";base64," +
  22567. r;
  22568. a(r)
  22569. }
  22570. "JPEG" === o ? t.oPlayCtrl.PlayM4_GetJPEG(e) : "BMP" ===
  22571. o && t.oPlayCtrl.PlayM4_GetBMP(e)
  22572. })
  22573. }
  22574. }, {
  22575. key: "JS_StopRealPlayAll",
  22576. value: function() {
  22577. var n = this;
  22578. return new f.default(function(e) {
  22579. n.aWndList.forEach(function(e, t) {
  22580. n.JS_Stop(t)
  22581. }), n.iCurrentSoundWnd = -1, e()
  22582. })
  22583. }
  22584. }, {
  22585. key: "JS_StartSave",
  22586. value: function() {
  22587. var n = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] :
  22588. -1,
  22589. i = this,
  22590. r = arguments[1],
  22591. a = arguments[2];
  22592. return new f.default(function(e, t) {
  22593. (n < 0 || n > i.iMaxWndNum - 1 || "number" != typeof n) && (
  22594. n = i.iCurrentWndIndex), i.JS_StartSaveEx(n, r, 2, a)
  22595. .then(function() {
  22596. e()
  22597. }, function(e) {
  22598. t(e)
  22599. })
  22600. })
  22601. }
  22602. }, {
  22603. key: "JS_StartSaveEx",
  22604. value: function() {
  22605. var o = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] :
  22606. -1,
  22607. u = arguments[1],
  22608. d = this,
  22609. l = arguments[2],
  22610. h = arguments[3];
  22611. return new f.default(function(t, e) {
  22612. var n, i, r, a, s;
  22613. (o < 0 || o > d.iMaxWndNum - 1 || "number" != typeof o) && (
  22614. o = d.iCurrentWndIndex), 2 === l || 5 === l ? null !==
  22615. u ? (n = 1, i = null, h && (n = h.irecordType, i = h
  22616. .cbStreamCB), 0 === (r = d._checkPlay(o)) ? d
  22617. .aWndList[o].szStorageUUID ? e(L
  22618. .ERR_PLAY_FILESYS_ALREADY_WRITING) : (u.indexOf(
  22619. ".mp4") < 0 && (u += ".mp4"), a = d
  22620. .aWndList[o].aHead, s = 0, "realplay" !== d
  22621. .aWndList[o].szPlayType && (s = 1), d.aWndList[
  22622. o].isFlv && (a = d.flvtohikHead(o)), (5 ===
  22623. l && 33 === a[12] && 114 === a[13] || 98 ===
  22624. a[12] && 114 === a[13] || 0 === a[12] &&
  22625. 32 === a[13]) && (a[12] = 0, a[13] = 0),
  22626. 129 === a[24] && (l = 1), d.oStorageManager
  22627. .startRecord(u, a, l, s, {
  22628. cbEventHandler: function(e) {
  22629. d._closeStreamAndDestory(o), d
  22630. .oEventCallback
  22631. .pluginErrorHandler(o, e)
  22632. },
  22633. irecordType: n,
  22634. cbStreamCB: i
  22635. }).then(function(e) {
  22636. d.aWndList[o].szStorageUUID = e, d
  22637. .aWndList[o].isFlv && d.aWndList[o]
  22638. .oMSE.setRecordFlag(!0), t()
  22639. }, function() {
  22640. e()
  22641. })) : e(r)) : e(L
  22642. .ERR_PLAY_FILESYS_FILENAME_ISNULL) : e(L
  22643. .ERR_PLAY_FILESYS_NOT_SUPPORT_DSTTYPE)
  22644. })
  22645. }
  22646. }, {
  22647. key: "JS_StopSave",
  22648. value: function() {
  22649. var n = this,
  22650. i = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] :
  22651. -1;
  22652. return new f.default(function(e, t) {
  22653. (i < 0 || i > n.iMaxWndNum - 1 || "number" != typeof i) && (
  22654. i = n.iCurrentWndIndex), n.aWndList[i].szStorageUUID ? (
  22655. n.aWndList[i].isFlv && n.aWndList[i].oMSE
  22656. .setRecordFlag(!1), n.oStorageManager.stopRecord(n
  22657. .aWndList[i].szStorageUUID).then(function() {
  22658. n.aWndList[i].szStorageUUID = "", e()
  22659. }, function(e) {
  22660. t(e)
  22661. })) : t(L.ERR_PLAY_FILESYS_NOT_WRITING)
  22662. })
  22663. }
  22664. }, {
  22665. key: "JS_SetDrawStatus",
  22666. value: function(n) {
  22667. var i = this;
  22668. return new f.default(function(e, t) {
  22669. i.oDrawCanvas ? (i.oDrawCanvas.setDrawStatus(n), e()) : t()
  22670. })
  22671. }
  22672. }, {
  22673. key: "JS_ClearRegion",
  22674. value: function() {
  22675. var n = this;
  22676. return new f.default(function(e, t) {
  22677. n.oDrawCanvas ? (n.oDrawCanvas.clearAllShape(), e()) : t()
  22678. })
  22679. }
  22680. }, {
  22681. key: "JS_SetGridInfo",
  22682. value: function(n) {
  22683. var i = this;
  22684. return new f.default(function(e) {
  22685. if (null == n) return -1;
  22686. var t = "#ff0000";
  22687. n.drawColor && (t = n.drawColor), i.oDrawCanvas
  22688. .setDrawStyle(t), i.oDrawCanvas.setShapesInfoByType(
  22689. "Grid", [{
  22690. szGridMap: n.gridMap,
  22691. iGridColNum: n.gridColNum,
  22692. iGridRowNum: n.gridRowNum
  22693. }]), e()
  22694. })
  22695. }
  22696. }, {
  22697. key: "JS_GetGridInfo",
  22698. value: function() {
  22699. var e, t = null;
  22700. return t = this.oDrawCanvas ? (e = this.oDrawCanvas.getShapesInfoByType(
  22701. "Grid")[0]) ? {
  22702. gridColNum: e.iGridColNum,
  22703. gridRowNum: e.iGridRowNum,
  22704. gridMap: e.szGridMap
  22705. } : {
  22706. iGridRowNum: 18,
  22707. iGridColNum: 22,
  22708. szGridMap: ""
  22709. } : {}, f.default.resolve(t)
  22710. }
  22711. }, {
  22712. key: "JS_SetDrawShapeInfo",
  22713. value: function(n, i) {
  22714. var r = this;
  22715. return new f.default(function(e, t) {
  22716. void 0 !== n && "" !== n ? (r.oDrawCanvas.setShapeType(n), r
  22717. .oDrawCanvas.setDrawStyle(i.szDrawColor || "", i
  22718. .szFillColor || "", i.iTranslucent || 0), i
  22719. .iMaxShapeSupport && 0 < i.iMaxShapeSupport && r
  22720. .oDrawCanvas.setMaxShapeSupport(i.iMaxShapeSupport),
  22721. i.iMaxPointSupport && 0 < i.iMaxPointSupport && r
  22722. .oDrawCanvas.setCurrentShapeInfo({
  22723. szId: "",
  22724. szTips: "",
  22725. iMinClosed: 3,
  22726. iMaxPointNum: i.iMaxPointSupport,
  22727. iPolygonType: 1,
  22728. szDrawColor: i.szDrawColor || "",
  22729. szFillColor: i.szFillColor || "",
  22730. iTranslucent: i.iTranslucent || 0
  22731. }), e()) : t()
  22732. })
  22733. }
  22734. }, {
  22735. key: "JS_SetPolygonInfo",
  22736. value: function(a) {
  22737. var s = this;
  22738. return new f.default(function(e, t) {
  22739. if (void 0 !== a && a.length) {
  22740. var n = [];
  22741. if (0 < a.length)
  22742. for (var i = 0, r = a.length; i < r; i++) 0 < a[i]
  22743. .aPoint.length && n.push(a[i]);
  22744. 0 < n.length ? (s.oDrawCanvas.setShapesInfoByType(
  22745. "Polygon", n), e()) : t()
  22746. } else t()
  22747. })
  22748. }
  22749. }, {
  22750. key: "JS_GetPolygonInfo",
  22751. value: function() {
  22752. var s = this;
  22753. return new f.default(function(e) {
  22754. for (var t = [], n = s.oDrawCanvas.getShapesInfoByType(
  22755. "Polygon"), i = 0, r = n.length; i < r; i++) {
  22756. var a = n[i],
  22757. a = {
  22758. aPoint: a.aPoint,
  22759. bClosed: a.bClosed,
  22760. szTips: a.szTips
  22761. };
  22762. t.push(a)
  22763. }
  22764. e(t)
  22765. })
  22766. }
  22767. }, {
  22768. key: "JS_SetLineInfo",
  22769. value: function(a) {
  22770. var s = this;
  22771. return new f.default(function(e, t) {
  22772. if (void 0 !== a && a.length) {
  22773. var n = [];
  22774. if (0 < a.length)
  22775. for (var i = 0, r = a.length; i < r; i++) 0 < a[i]
  22776. .aPoint.length && n.push(a[i]);
  22777. 0 < n.length ? (s.oDrawCanvas.setShapesInfoByType(
  22778. "Line", n), e()) : t()
  22779. } else t()
  22780. })
  22781. }
  22782. }, {
  22783. key: "JS_GetLineInfo",
  22784. value: function() {
  22785. var s = this;
  22786. return new f.default(function(e) {
  22787. for (var t = [], n = s.oDrawCanvas.getShapesInfoByType(
  22788. "Line"), i = 0, r = n.length; i < r; i++) {
  22789. var a = n[i],
  22790. a = {
  22791. iLineType: a.iLineType,
  22792. aPoint: a.aPoint,
  22793. szTips: a.szTips
  22794. };
  22795. t.push(a)
  22796. }
  22797. e(t)
  22798. })
  22799. }
  22800. }, {
  22801. key: "JS_SetRectInfo",
  22802. value: function(a) {
  22803. var s = this;
  22804. return new f.default(function(e, t) {
  22805. if (void 0 !== a && a.length) {
  22806. var n = [];
  22807. if (0 < a.length)
  22808. for (var i = 0, r = a.length; i < r; i++) 0 < a[i]
  22809. .aPoint.length && n.push(a[i]);
  22810. 0 < n.length ? (s.oDrawCanvas.setShapesInfoByType(
  22811. "Rect", n), e()) : t()
  22812. } else t()
  22813. })
  22814. }
  22815. }, {
  22816. key: "JS_GetRectInfo",
  22817. value: function() {
  22818. var s = this;
  22819. return new f.default(function(e) {
  22820. for (var t = [], n = s.oDrawCanvas.getShapesInfoByType(
  22821. "Rect"), i = 0, r = n.length; i < r; i++) {
  22822. var a = n[i],
  22823. a = {
  22824. aPoint: a.aPoint,
  22825. szTips: a.szTips
  22826. };
  22827. t.push(a)
  22828. }
  22829. e(t)
  22830. })
  22831. }
  22832. }, {
  22833. key: "JS_FullScreenDisplay",
  22834. value: function(e) {
  22835. var t = document.getElementById(this.options.szId).children[0];
  22836. return this._triggerFullscreen(t)
  22837. }
  22838. }, {
  22839. key: "JS_FullScreenSingle",
  22840. value: function() {
  22841. var e = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] :
  22842. -1;
  22843. (e < 0 || e > this.iMaxWndNum - 1 || "number" != typeof e) && (e = this
  22844. .iCurrentWndIndex);
  22845. var t = this.aWndList[e];
  22846. if (!t.bPlay) return f.default.reject("window " + e +
  22847. " is not playing.");
  22848. var n = null,
  22849. n = ("desktop" === this._browserInfo.platform || "ios" === this
  22850. ._browserInfo.system ? this.oJSPlugin.find(".sub-wnd") : 1 === t
  22851. .iMode ? this.oJSPlugin.find(".sub-wnd video.play-window") :
  22852. this.oJSPlugin.find(".sub-wnd canvas.play-window")).get(e);
  22853. return this._triggerFullscreen(n)
  22854. }
  22855. }, {
  22856. key: "_triggerFullscreen",
  22857. value: function(a, e) {
  22858. var n, s = this,
  22859. o = document.fullscreenEnabled || document.mozFullScreenEnabled ||
  22860. document.msFullscreenEnabled || a.webkitSupportsFullscreen || !1,
  22861. u = document.fullscreen || document.webkitIsFullScreen || document
  22862. .mozFullScreen || a.webkitDisplayingFullscreen || !1;
  22863. return a.requestFullscreen = a.requestFullscreen || a
  22864. .webkitRequestFullScreen || a.mozRequestFullScreen || a
  22865. .msRequestFullscreen || a.webkitEnterFullScreen || null, document
  22866. .exitFullscreen = document.exitFullscreen || document
  22867. .mozCancelFullScreen || document.msExitFullscreen || null, new f
  22868. .default((n = (0, y.default)(p.default.mark(function e(t, n) {
  22869. var i, r;
  22870. return p.default.wrap(function(e) {
  22871. for (;;) switch (e.prev = e.next) {
  22872. case 0:
  22873. if (!o) {
  22874. e.next = 13;
  22875. break
  22876. }
  22877. if (u && s
  22878. .fullscreenElement ===
  22879. a) return document
  22880. .exitFullscreen ?
  22881. document
  22882. .exitFullscreen() :
  22883. a
  22884. .webkitExitFullScreen(),
  22885. s
  22886. .fullscreenElement =
  22887. null, s
  22888. .JS_Resize(), s
  22889. .oEventCallback
  22890. .windowFullCcreenChange(
  22891. !1), e
  22892. .abrupt(
  22893. "return",
  22894. t());
  22895. e.next = 7;
  22896. break;
  22897. case 7:
  22898. return e.next = 9, a
  22899. .requestFullscreen();
  22900. case 9:
  22901. return s
  22902. .fullscreenElement =
  22903. a, s.JS_Resize(), s
  22904. .oEventCallback
  22905. .windowFullCcreenChange(
  22906. !0), e.abrupt(
  22907. "return", t());
  22908. case 13:
  22909. return s
  22910. .fullscreenElement ?
  22911. (document.body.style
  22912. .setProperty(
  22913. "overflow",
  22914. "unset"),
  22915. i = s.oJSPlugin
  22916. .width(), r = s
  22917. .oJSPlugin
  22918. .height(), (0, v
  22919. .default)(a)
  22920. .css("width", i)
  22921. .css("height",
  22922. r).css(
  22923. "z-index",
  22924. "").css(
  22925. "position",
  22926. "relative")
  22927. .css(
  22928. "transform",
  22929. "").css(
  22930. "transform-origin",
  22931. "").css(
  22932. "top", "")
  22933. .css("left",
  22934. ""), s
  22935. .fullscreenElement =
  22936. null, s
  22937. .JS_Resize(), s
  22938. .oEventCallback
  22939. .windowFullCcreenChange(
  22940. !1)) : (i =
  22941. document.body
  22942. .clientWidth,
  22943. r = document
  22944. .body
  22945. .clientHeight, s
  22946. .options
  22947. .openDebug &&
  22948. console.log(
  22949. "iphone fullscreen: body, window",
  22950. i, r, window
  22951. .screen
  22952. .width,
  22953. window
  22954. .screen
  22955. .height),
  22956. i < r ? (
  22957. document
  22958. .body.style
  22959. .setProperty(
  22960. "overflow",
  22961. "hidden"
  22962. ), (0, v
  22963. .default
  22964. )(a)
  22965. .css(
  22966. "width",
  22967. r).css(
  22968. "height",
  22969. i).css(
  22970. "z-index",
  22971. "1001")
  22972. .css(
  22973. "position",
  22974. "fixed")
  22975. .css(
  22976. "transform",
  22977. "rotate(90deg)"
  22978. ).css(
  22979. "transform-origin",
  22980. "0px 0px"
  22981. ).css(
  22982. "top",
  22983. "0px")
  22984. .css("left",
  22985. i + "px"
  22986. ), (0, v
  22987. .default
  22988. )(a)
  22989. .find(
  22990. "video.play-window"
  22991. ).attr(
  22992. "width",
  22993. r).attr(
  22994. "height",
  22995. i), (0,
  22996. v
  22997. .default
  22998. )(a)
  22999. .find(
  23000. "canvas.play-window"
  23001. ).attr(
  23002. "width",
  23003. r).attr(
  23004. "height",
  23005. i).css(
  23006. "transform",
  23007. "scale(1)"
  23008. ), (0, v
  23009. .default
  23010. )(a)
  23011. .find(
  23012. "canvas.draw-window"
  23013. ).attr(
  23014. "width",
  23015. r).attr(
  23016. "height",
  23017. i)) : (
  23018. 0, v.default
  23019. )(a).css(
  23020. "width", i)
  23021. .css("height",
  23022. r).css(
  23023. "z-index",
  23024. "1001").css(
  23025. "position",
  23026. "fixed"), s
  23027. .fullscreenElement =
  23028. a, s
  23029. .JS_Resize(), s
  23030. .oEventCallback
  23031. .windowFullCcreenChange(
  23032. !0)), e
  23033. .abrupt("return", f
  23034. .default
  23035. .resolve());
  23036. case 15:
  23037. case "end":
  23038. return e.stop()
  23039. }
  23040. }, e, s)
  23041. })), function(e, t) {
  23042. return n.apply(this, arguments)
  23043. }))
  23044. }
  23045. }, {
  23046. key: "JS_Resize",
  23047. value: function(s, o) {
  23048. var u = this;
  23049. return new f.default(function(a) {
  23050. u._debounse(function() {
  23051. var e, t, n, i, r;
  23052. s && o && "number" == typeof s && "number" ==
  23053. typeof o && (u.options.iWidth = s, u.options
  23054. .iHeight = o, u.oJSPlugin.width(s), u
  23055. .oJSPlugin.height(o)), u
  23056. .fullscreenElement && "sub-wnd" === u
  23057. .fullscreenElement.className ? (t = (e = (0,
  23058. v.default)(u.fullscreenElement))
  23059. .width(), n = e.height(), i = window
  23060. .screen.width, r = window.screen.height,
  23061. u.options.openDebug && console.log(
  23062. "singleFullscreen JS_Resize: ", i,
  23063. r, t, n), e.css("border",
  23064. "1px solid " + u.options.oStyle
  23065. .border), e.find(
  23066. "video.play-window").attr("width",
  23067. t).attr("height", n), e.find(
  23068. "canvas.play-window").css(
  23069. "transform", "unset").attr("width",
  23070. t).attr("height", n), (r = u
  23071. .aWndList[u.currentWindowIndex])
  23072. .bPlay && 0 === r.iMode && r
  23073. .oPlayCtrl && r.oPlayCtrl
  23074. .PlayM4_SetCanvasSize && r.oPlayCtrl
  23075. .PlayM4_SetCanvasSize(t, n), e.find(
  23076. "canvas.draw-window").attr("width",
  23077. t).attr("height", n)) : (u.options
  23078. .iWidth = u.oJSPlugin.width(), u.options
  23079. .iHeight = u.oJSPlugin.height(), u
  23080. ._updateWnd()), u.oDrawCanvas
  23081. .resizeCanvas(), u.oDrawCanvas
  23082. .canvasRedraw(), a()
  23083. }, 50)
  23084. })
  23085. }
  23086. }, {
  23087. key: "JS_SelectWnd",
  23088. value: function(n) {
  23089. var i = this;
  23090. return new f.default(function(e, t) {
  23091. if (n < 0 || n > i.iMaxWndNum - 1 || "number" != typeof n)
  23092. return t(L.ERR_COM_PARAM);
  23093. i.oJSPlugin.find(".sub-wnd").get(n).click(), e()
  23094. })
  23095. }
  23096. }, {
  23097. key: "JS_SetOptions",
  23098. value: function(t) {
  23099. var n = this;
  23100. return new f.default(function(e) {
  23101. !1 === t.bSupportSound && (n.options.bSupportSound = t
  23102. .bSupportSound), !1 === t.bSupporDoubleClickFull &&
  23103. (n.options.bSupporDoubleClickFull = t
  23104. .bSupporDoubleClickFull), !0 === t
  23105. .bOnlySupportMSE && (n.options.bOnlySupportMSE = t
  23106. .bOnlySupportMSE), !0 === t.bOnlySupportJSDecoder &&
  23107. (n.options.bOnlySupportJSDecoder = t
  23108. .bOnlySupportJSDecoder), e()
  23109. })
  23110. }
  23111. }, {
  23112. key: "JS_SetLogFlag",
  23113. value: function(n) {
  23114. var i = this;
  23115. return new f.default(function(e) {
  23116. for (var t = 0; t < i.iMaxWndNum; t++) i.aWndList[t]
  23117. .oPlayCtrl && i.aWndList[t].oPlayCtrl
  23118. .PlayM4_OpenPlayerSDKPrintLog(n);
  23119. e()
  23120. })
  23121. }
  23122. }, {
  23123. key: "JS_SetDecodeThreadNum",
  23124. value: function(n) {
  23125. var i = this;
  23126. return new f.default(function(e) {
  23127. for (var t = 0; t < i.iMaxWndNum; t++) i.aWndList[t]
  23128. .oPlayCtrl && i.aWndList[t].oPlayCtrl
  23129. .SetDecodeThreadNum(n);
  23130. e()
  23131. })
  23132. }
  23133. }, {
  23134. key: "JS_RenderPrivateData",
  23135. value: function(e, t) {
  23136. var n = this.iCurrentWndIndex,
  23137. i = this.aWndList[n],
  23138. r = this._checkPlay(n);
  23139. return 0 !== r || (1 === this.aWndList[n].iMode ? (r = L.ERR_COM_IS_MSE,
  23140. this._log.E(L.ERR_COM_IS_MSE +
  23141. ": MSE unsupport this function.")) : 1 !== i.oPlayCtrl
  23142. .PlayM4_RenderPrivateData(e, t) && (r = L.ERR_JSDECODER + i
  23143. .oPlayCtrl.PlayM4_GetLastError().toString(), this._log.E(r +
  23144. ": 播放库智能信息接口报错:"))), r
  23145. }
  23146. }, {
  23147. key: "JS_RenderPrivateDataEx",
  23148. value: function(e, t, n) {
  23149. var i = this.iCurrentWndIndex,
  23150. r = this.aWndList[i],
  23151. a = this._checkPlay(i);
  23152. return 0 !== a || (1 === this.aWndList[i].iMode && (a = L
  23153. .ERR_COM_IS_MSE, this._log.E(L.ERR_COM_IS_MSE +
  23154. ": MSE unsupport this function.")), 1 !== r.oPlayCtrl
  23155. .PlayM4_RenderPrivateDataEx(e, t, n) && (a = L.ERR_JSDECODER + r
  23156. .oPlayCtrl.PlayM4_GetLastError().toString(), this._log.E(a +
  23157. ": 播放库智能信息接口报错:", a))), a
  23158. }
  23159. }, {
  23160. key: "JS_RenderALLPrivateData",
  23161. value: function() {
  23162. var r = this,
  23163. a = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] :
  23164. -1,
  23165. s = arguments[1];
  23166. return new f.default(function(e, t) {
  23167. if ((a < 0 || a > r.iMaxWndNum - 1 || "number" !=
  23168. typeof a) && (a = r.iCurrentWndIndex), "boolean" !=
  23169. typeof s) return t(L.ERR_COM_PARAM);
  23170. var n = r.aWndList[a],
  23171. i = r._checkPlay(a);
  23172. if (0 !== i) return t(i);
  23173. if (0 !== n.iMode || "2" !== r._decoderVersion) return t(L
  23174. .ERR_STREAM_INTEL_UNSUPPORT);
  23175. [{
  23176. typeCode: "0x00000001",
  23177. desc: "智能分析(默认开)",
  23178. children: []
  23179. }, {
  23180. typeCode: "0x00000002",
  23181. desc: "移动侦测(默认开)",
  23182. children: []
  23183. }, {
  23184. typeCode: "0x00000004",
  23185. desc: "pos 信息叠加(默认关)",
  23186. children: []
  23187. }, {
  23188. typeCode: "0x00000008",
  23189. desc: "图片叠加(默认关)",
  23190. children: []
  23191. }, {
  23192. typeCode: "0x00000010",
  23193. desc: "火点信息(默认开)",
  23194. children: [{
  23195. typeCode: "0x00000001",
  23196. desc: "火点框显示"
  23197. }, {
  23198. typeCode: "0x00000002",
  23199. desc: "火点最高温显示"
  23200. }, {
  23201. typeCode: "0x00000004",
  23202. desc: "最高温位置显示"
  23203. }, {
  23204. typeCode: "0x00000008",
  23205. desc: "最高温度距离"
  23206. }]
  23207. }, {
  23208. typeCode: "0x00000020",
  23209. desc: "温度信息(默认关)",
  23210. children: [{
  23211. typeCode: "0x00000001",
  23212. desc: "框测温"
  23213. }, {
  23214. typeCode: "0x00000002",
  23215. desc: "线测温"
  23216. }, {
  23217. typeCode: "0x00000004",
  23218. desc: "点测温"
  23219. }]
  23220. }, {
  23221. typeCode: "0x00000040",
  23222. desc: "轨迹信息(默认关)",
  23223. children: [{
  23224. typeCode: "0x00000001",
  23225. desc: "人的轨迹信息"
  23226. }, {
  23227. typeCode: "0x00000002",
  23228. desc: "车的轨迹信息"
  23229. }]
  23230. }, {
  23231. typeCode: "0x00000080",
  23232. desc: "烟火屏蔽和废气监测(默认关)",
  23233. children: [{
  23234. typeCode: "0x00000001",
  23235. desc: "烟火屏蔽"
  23236. }, {
  23237. typeCode: "0x00000002",
  23238. desc: "规则废气检测"
  23239. }, {
  23240. typeCode: "0x00000004",
  23241. desc: "目标废气检测"
  23242. }]
  23243. }].forEach(function(t) {
  23244. 1 === n.oPlayCtrl.PlayM4_RenderPrivateData(t
  23245. .typeCode, s) ? s && t.children && 0 < t
  23246. .children.length && t.children.forEach(
  23247. function(e) {
  23248. 1 === n.oPlayCtrl
  23249. .PlayM4_RenderPrivateDataEx(t
  23250. .typeCode, e.typeCode, s) ||
  23251. (console.warn(
  23252. "trigger intelligence sub " +
  23253. e.typeCode + " " + (s ?
  23254. "open" : "close") +
  23255. " failed"), i = 1)
  23256. }) : (console.warn(
  23257. "trigger intelligence main " + t
  23258. .typeCode + " " + (s ? "open" :
  23259. "close") + " failed"), i = 1)
  23260. }), e()
  23261. })
  23262. }
  23263. }, {
  23264. key: "_checkPlay",
  23265. value: function(e) {
  23266. return e < 0 || e > this.iMaxWndNum - 1 ? (this._log.E(L.ERR_COM_PARAM +
  23267. ": unexpected window index."), L.ERR_COM_PARAM) : this.aWndList[
  23268. e].bPlay ? 0 : (this._log.E(L.ERR_COM_NOT_PLAYING +
  23269. ": this window is not playing."), L.ERR_COM_NOT_PLAYING)
  23270. }
  23271. }, {
  23272. key: "_checkPlayback",
  23273. value: function(e) {
  23274. var t = this._checkPlay(e);
  23275. return 0 === t && "realplay" === this.aWndList[e].szPlayType && (this
  23276. ._log.E(L.ERR_COM_NOT_PLAYBACK +
  23277. ": this function was only supported by playback."), t = L
  23278. .ERR_COM_NOT_PLAYBACK), t
  23279. }
  23280. }, {
  23281. key: "_createFlvPlayer",
  23282. value: function(i) {
  23283. var r = this,
  23284. a = this.aWndList[i];
  23285. a.oMSE && (a.bPlay = !1, a.oMSE.detachMediaElement(), a.oMSE.destroy(),
  23286. a.oMSE = null);
  23287. var e = this.oJSPlugin.find("video.play-window").eq(i),
  23288. t = this.oJSPlugin.find("canvas.play-window").eq(i);
  23289. e.show(), t.hide();
  23290. var n = {
  23291. isLive: !0,
  23292. type: "flv"
  23293. };
  23294. this.aWndList[i].mseDecoderAudio || (n = {
  23295. hasAudio: !1,
  23296. isLive: !0,
  23297. type: "flv"
  23298. });
  23299. var s = "realplay" === a.szPlayType,
  23300. o = !1,
  23301. u = 3,
  23302. t = 2;
  23303. 0 < a.szBufferSize && (o = !0, u = 5, t = 2);
  23304. t = a.oMSE = c.default.createPlayer(n, {
  23305. enableWorker: this.options.mseWorkerEnable,
  23306. lazyLoadMaxDuration: 180,
  23307. seekType: "range",
  23308. isLive: !0,
  23309. enableStashBuffer: o,
  23310. autoCleanupMaxBackwardDuration: 60,
  23311. autoCleanupMinBackwardDuration: 30,
  23312. statisticsInfoReportInterval: 1e3,
  23313. enableDurationMonitor: s,
  23314. lowLatencyThreshold: u,
  23315. decreaseDurationStep: t,
  23316. enableAudioGain: !1,
  23317. stashInitialSize: a.szBufferSize,
  23318. WDInfo: {
  23319. index: i,
  23320. pointSignNumber: a.pointSignNumber
  23321. }
  23322. });
  23323. t.on(b.default.ERROR, function(e, t, n) {
  23324. a.bFirstFrame ? (r._streamReset(i), window.console.warn(
  23325. "[iWndNum-" + i +
  23326. "] PlayerEvents.ERROR mediaElement error,reset decoder:",
  23327. e, t, n.code, n.message)) : ("MediaError" === e &&
  23328. "CodecUnsupported" === t ? (r.oEventCallback
  23329. .pluginErrorHandler(i, L
  23330. .ERR_STREAM_CODEC_UNSUPPORTED, n.message),
  23331. window.console.error("[iWndNum-" + i +
  23332. "] PlayerEvents.ERROR unsupport h265,please js_play change mode 1,stop decoder:",
  23333. e, t, n.code, n.message)) : (r
  23334. .oEventCallback.pluginErrorHandler(i, L
  23335. .ERR_STREAM_DATA_ERROR, n.message), window
  23336. .console.error("[iWndNum-" + i +
  23337. "] PlayerEvents.ERROR mediaElement error,stop decoder:",
  23338. e, t, n.code, n.message)), r.JS_Stop(i))
  23339. }), t.on(b.default.MEDIA_SOURCE_ADD_ERROR, function() {
  23340. r._streamReset(i, !0), window.console.warn("[iWndNum-" + i +
  23341. "] MEDIA_SOURCE_ADD_ERROR,reset decoder:")
  23342. }), t.on(b.default.MS_BUFFER_FULL, function() {
  23343. a.bFirstFrame ? (r._streamReset(i), window.console.warn(
  23344. "[iWndNum-" + i +
  23345. "] media_source_buffer_full,reset decoder:")) : (r
  23346. .oEventCallback.pluginErrorHandler(i, L
  23347. .ERR_STREAM_MSE_DATA_FULL), r.JS_Stop(i), window
  23348. .console.error("[iWndNum-" + i +
  23349. "] media_source_buffer_full,stop decoder:"))
  23350. });
  23351. var d = e.get(0),
  23352. l = this,
  23353. e = function e(t) {
  23354. console.info("[debug] [iWndNum-" + i + "] %c" + (0, _.default)()
  23355. .format("YYYY-MM-DD HH:mm:ss.SSS") + "%c 硬解首帧已经加载,编码:" +
  23356. a._videoInfo.VideType + ",分辨率:" + a._videoInfo.width +
  23357. "*" + a._videoInfo.height, "color: blue",
  23358. "color: black", d.paused, d.autoplay), d
  23359. .removeEventListener("loadeddata", e), a._emiter.emit(
  23360. "firstframeload"), d.poster = "", a.bFirstFrame = !0;
  23361. function n(e) {
  23362. window.console.warn("[iWndNum-" + i +
  23363. "] mediaElement error,reset decoder:", e.target
  23364. .error), d.removeEventListener("error", n), l
  23365. ._streamReset(i)
  23366. }
  23367. d.addEventListener("error", n), l.oEventCallback
  23368. .firstFrameDisplay(i, a._videoInfo.width, a._videoInfo
  23369. .height)
  23370. };
  23371. d.addEventListener("loadeddata", e), a._receivedLength = 0, t
  23372. .attachMediaElement(d), t.load(), a.bPlay = !0, a.asyncLock = !1, t
  23373. .onParsedData = this._onParsedData.bind(this)
  23374. }
  23375. }, {
  23376. key: "_streamReset",
  23377. value: function(e) {
  23378. var t = this.aWndList[e];
  23379. (t.bFirstFrame || 1 < arguments.length && void 0 !== arguments[1] &&
  23380. arguments[1]) && (t._resetFlvplayer = !1, t.bFirstFrame = !1, this
  23381. ._capturePoster(e), t.isFlv && (this._createFlvPlayer(e), t.oMSE
  23382. .onLoaderChunkArrival(t.szFlvhead.buffer, t._receivedLength), t
  23383. ._receivedLength += t.szFlvhead.length, t._resetFlvplayer = !0))
  23384. }
  23385. }, {
  23386. key: "_capturePoster",
  23387. value: function(e) {
  23388. var t = this.oJSPlugin.find("video.play-window").eq(e).get(0),
  23389. n = t.videoWidth,
  23390. i = t.videoHeight,
  23391. e = document.createElement("canvas");
  23392. e.width = n, e.height = i, e.getContext("2d").drawImage(t, 0, 0, n, i);
  23393. e = e.toDataURL("image/JPEG");
  23394. t.poster = e
  23395. }
  23396. }, {
  23397. key: "_createPlayCtrl",
  23398. value: function(r) {
  23399. var a = this,
  23400. s = this.aWndList[r];
  23401. console.info("[debug] %c" + (0, _.default)().format(
  23402. "YYYY-MM-DD HH:mm:ss.SSS") +
  23403. "%c _createPlayCtrl load start code", "color: blue",
  23404. "color: black");
  23405. var e, o = this._playCtrlLoad.bind(this);
  23406. this.oJSPlugin.find("video.play-window").eq(r).hide(), this.oJSPlugin
  23407. .find("canvas.play-window").eq(r).show(), "2" === this
  23408. ._decoderVersion ? E && (s.oPlayCtrl = new u.JSPlayCtrl(this.options
  23409. .szId + "_playCanvas" + r, E,
  23410. function(e) {
  23411. e.instance;
  23412. var t = e.cmd,
  23413. e = (e.data, e.errorCode, e.status);
  23414. "OnebyOne" === t && (e && s.isPause && (a.oStreamClient
  23415. .resume(s.szStreamUUID), s.isPause = !1),
  23416. e || s.isPause || (a.oStreamClient.pause(s
  23417. .szStreamUUID), s.isPause = !0))
  23418. }, r), s.bLoad = !0, this._playCtrlLoad(r)) : (s.oPlayCtrl =
  23419. new d.JSPlayCtrl(this.options.szBasePath +
  23420. "/static/h5player/playctrl1/",
  23421. function(e) {
  23422. e.instance;
  23423. var t = e.cmd,
  23424. n = e.errorCode,
  23425. i = e.status;
  23426. switch (t) {
  23427. case "loaded":
  23428. console.info("[debug] %c" + (0, _.default)()
  23429. .format("YYYY-MM-DD HH:mm:ss.SSS") +
  23430. "%c new JSDecoder1.0 received loaded message",
  23431. "color: blue", "color: black"), s
  23432. .bLoad || o(r), s.bLoad = !0;
  23433. break;
  23434. case "OnebyOne":
  23435. i && s.isPause && (a.oStreamClient.resume(s
  23436. .szStreamUUID), s.isPause = !1), i || s
  23437. .isPause || (a.oStreamClient.pause(s
  23438. .szStreamUUID), s.isPause = !0);
  23439. break;
  23440. case "GetFrameData":
  23441. return void(16 === n && (a
  23442. ._closeStreamAndDestory(r), a
  23443. .oEventCallback.pluginErrorHandler(
  23444. r, L.ERR_STREAM_VIDEO_CODING)))
  23445. }
  23446. }, r), e = 4 === s.aHead[8] ? 0 : 1, s.oPlayCtrl
  23447. .PlayM4_SetStreamOpenMode(e)), console.info("[debug] %c" + (0, _
  23448. .default)().format("YYYY-MM-DD HH:mm:ss.SSS") +
  23449. "%c _createPlayCtrl load end code", "color: blue",
  23450. "color: black")
  23451. }
  23452. }, {
  23453. key: "_playCtrlLoad",
  23454. value: function(e) {
  23455. var t = this.aWndList[e];
  23456. if ("2" === this._decoderVersion) {
  23457. var n = "realplay" === t.szPlayType ? 0 : 1,
  23458. i = t.isHVAGHead ? t.aHVAGHead : t.aHead;
  23459. if (t.oPlayCtrl && t.oPlayCtrl.PlayM4_SetStreamOpenMode(n), t
  23460. .oPlayCtrl && t.oPlayCtrl.PlayM4_OpenStream(i, 40, 8388608 + t
  23461. .szBufferSize), "realplay" !== t.szPlayType && t.oPlayCtrl
  23462. .PlayM4_SetGlobalBaseTime(new Date(this.aWndList[e]
  23463. .iGlobalBaseTime)), 1 !== t.oPlayCtrl.PlayM4_Play())
  23464. return L.ERR_JSDECODER + t.oPlayCtrl.PlayM4_GetLastError()
  23465. .toString();
  23466. if ("reverse" === t.szPlayType && 1 !== t.oPlayCtrl
  23467. .PlayM4_ReversePlay()) return L.ERR_JSDECODER + t.oPlayCtrl
  23468. .PlayM4_GetLastError().toString();
  23469. t.bPlay = !0, t.oPlayCtrl.iBufferValue = t.oPlayCtrl
  23470. .PlayM4_GetBufferValue(1), this._supportInfo.webGL2 && t
  23471. .oPlayCtrl.PlayM4_SetAntialias(1)
  23472. } else {
  23473. if (t.oPlayCtrl && t.oPlayCtrl.PlayM4_OpenStream(t.aHead, 40,
  23474. 2097152), t.oPlayCtrl && t.oPlayCtrl.PlayM4_SetInputBufSize(
  23475. D), 1 !== t.oPlayCtrl.PlayM4_Play(this.options.szId +
  23476. "_playCanvas" + e)) return L.ERR_JSDECODER + t.oPlayCtrl
  23477. .PlayM4_GetLastError().toString();
  23478. t.bPlay = !0
  23479. }
  23480. return Y.push({
  23481. port: t.oPlayCtrl.iPort,
  23482. belongWindowpoint: this,
  23483. belongWindowId: e
  23484. }), console.info("[debug] %c" + (0, _.default)().format(
  23485. "YYYY-MM-DD HH:mm:ss.SSS") + "%c call PlayM4_Play sucessed",
  23486. "color: blue", "color: black"), 1
  23487. }
  23488. }, {
  23489. key: "sleep",
  23490. value: function(e) {
  23491. for (var t = (new Date).getTime();
  23492. (new Date).getTime() - t < e;);
  23493. }
  23494. }, {
  23495. key: "_feedData",
  23496. value: function(n, e) {
  23497. var t, i, r, a, s = this,
  23498. o = e.type,
  23499. u = e.statusString,
  23500. d = e.buf,
  23501. l = this.aWndList[n],
  23502. h = this.oEventCallback.pluginErrorHandler.bind(this),
  23503. d = l.isGB ? this._stripRtpHead(d) : d;
  23504. l.isFlv ? l._resetFlvplayer ? 9 === new Uint8Array(d)[4] && (l.oMSE
  23505. .onLoaderChunkArrival(d, l._receivedLength), l
  23506. ._receivedLength += d.byteLength, l._resetFlvplayer = !1) : (l
  23507. .oMSE.onLoaderChunkArrival(d, l._receivedLength), l
  23508. ._receivedLength += d.byteLength) : "2" === this
  23509. ._decoderVersion ? (r = new Uint8Array(d), 1 === (a = l.oPlayCtrl
  23510. .PlayM4_InputData(r, r.byteLength)) ? 0 !== l.iDecodeType &&
  23511. l.oPlayCtrl.PlayM4_GetSourceBufferRemain() < l.oPlayCtrl
  23512. .iBufferValue / 2 && (l.oPlayCtrl.PlayM4_SetDecodeFrameType(0),
  23513. l.iDecodeType = 0) : 11 === a ? 1 === l.iDecodeType || l
  23514. .bFrameForward || (l.oPlayCtrl.PlayM4_SetDecodeFrameType(1), l
  23515. .iDecodeType = 1, this.oEventCallback.performanceLack()) :
  23516. this.oEventCallback.pluginErrorHandler(n, L.ERR_JSDECODER + l
  23517. .oPlayCtrl.PlayM4_GetLastError().toString(),
  23518. "PlayM4_InputData oError"), l.bFirstFrame || l.oPlayCtrl &&
  23519. l.oPlayCtrl.PlayM4_GetFrameInfo(function(e) {
  23520. var t = s._getWndIndexFromPort(e.port);
  23521. e.width && e.height && t === n && (l.bFirstFrame = !0, l
  23522. .oPlayCtrl.iYUVWidth = e.width, l.oPlayCtrl
  23523. .iYUVHeight = e.height, s._getOSDTime(n, e.year,
  23524. e.month, e.day, e.hour, e.minute, e.second),
  23525. l._videoInfo.height = e.height, l._videoInfo
  23526. .width = e.width, l._videoInfo.frameRate = e
  23527. .frameRate, l._emiter.emit("firstframeload"), s
  23528. .oEventCallback.firstFrameDisplay(n, l.oPlayCtrl
  23529. .iYUVWidth, l.oPlayCtrl.iYUVHeight), e =
  23530. "chrome" === s._browserInfo.supporter && 90 <
  23531. parseInt(s._browserInfo.supporterVersion.split(
  23532. ".").shift()) ? "3" : "2", console.info(
  23533. "[debug] [iWndNum-" + n + "] %c" + (0, _
  23534. .default)().format(
  23535. "YYYY-MM-DD HH:mm:ss.SSS") +
  23536. "%c jsdecoder" + e + ".0软解首帧已经加载,编码:" + l
  23537. ._videoInfo.VideType + ",分辨率:" + l
  23538. ._videoInfo.width + "*" + l._videoInfo
  23539. .height, "color: blue", "color: black"), l
  23540. .oPlayCtrl.PlayM4_SetDisplayBuf(6))
  23541. })) : (t = new Uint8Array(d), i = l.oPlayCtrl, e = l
  23542. .oPlayCtrl && i.PlayM4_GetYUVBufSize(), l.bFirstFrame || l
  23543. .oPlayCtrl && i.PlayM4_GetFrameResolution(function(e, t) {
  23544. l.bFirstFrame = !0, l._videoInfo.height = t, l
  23545. ._videoInfo.width = e, l._emiter.emit(
  23546. "firstframeload"), s.oEventCallback
  23547. .firstFrameDisplay(n, e, t), console.info(
  23548. "[debug] [iWndNum-" + n + "]%c" + (0, _.default)
  23549. ().format("YYYY-MM-DD HH:mm:ss.SSS") +
  23550. "%c jsdecoder1.0软解首帧已经加载,编码:" + l._videoInfo
  23551. .VideType + ",分辨率:" + e + "*" + t,
  23552. "color: blue", "color: black")
  23553. }), r = l.oPlayCtrl && i.PlayM4_GetInputBufSize(), a = l
  23554. .oPlayCtrl && i.PlayM4_GetDecodeFrameType(), .5 * D < r && r <
  23555. .8 * D && 1 === l.iRate && (1 === a || l.bFrameForward || (l
  23556. .oPlayCtrl && i.PlayM4_SetDecodeFrameType(1), this
  23557. .oEventCallback.performanceLack())), 10 < e && e < 15 && (
  23558. 1 === a || l.bFrameForward || (l.oPlayCtrl && i
  23559. .PlayM4_SetDecodeFrameType(1), this.oEventCallback
  23560. .performanceLack())), e < 10 && r < .5 * D && 0 !== a &&
  23561. 1 === l.iRate && l.oPlayCtrl && i.PlayM4_SetDecodeFrameType(0),
  23562. u ? (this._closeStreamAndDestory(n), h(n, L.ERR_STREAM_TRANS,
  23563. u)) : o && "exception" === o ? (this._closeStreamAndDestory(
  23564. n), h(n, L.ERR_STREAM_PLAYBACK_END, o)) : l.oPlayCtrl && l
  23565. .oPlayCtrl.PlayM4_InputData(t, t.byteLength)), l
  23566. .szStorageUUID && 0 === l.iMode && this.oStorageManager.inputData(l
  23567. .szStorageUUID, d), this.aWndList[n]._bpsCalculator && this
  23568. .aWndList[n]._bpsInfo && (this.aWndList[n]._bpsInfo
  23569. .lastVideoBytes += d.byteLength, this.aWndList[n]._bpsInfo
  23570. .data_updated_time = Date.now())
  23571. }
  23572. }, {
  23573. key: "_closeStreamAndDestory",
  23574. value: (P = (0, y.default)(p.default.mark(function e(t) {
  23575. var n, i;
  23576. return p.default.wrap(function(e) {
  23577. for (;;) switch (e.prev = e.next) {
  23578. case 0:
  23579. if (n = this.aWndList[t], this
  23580. .aWndList[t]._bpsCalculator && (
  23581. self.clearInterval(this
  23582. .aWndList[t]
  23583. ._bpsCalculator), this
  23584. .aWndList[t]
  23585. ._bpsCalculator = null, this
  23586. .aWndList[t]._bpsInfo = {
  23587. lastVideoBytes: 0,
  23588. bps_video: 0,
  23589. data_updated_time: 0,
  23590. time_gap_factor: 1
  23591. }), n.szStreamUUID) return e
  23592. .prev = 3, e.next = 6, this
  23593. .oStreamClient;
  23594. e.next = 15;
  23595. break;
  23596. case 6:
  23597. if (e.t0 = e.sent, !e.t0) {
  23598. e.next = 9;
  23599. break
  23600. }
  23601. this.oStreamClient.stop(n
  23602. .szStreamUUID);
  23603. case 9:
  23604. e.next = 14;
  23605. break;
  23606. case 11:
  23607. e.prev = 11, e.t1 = e.catch(3),
  23608. console.warn(e.t1);
  23609. case 14:
  23610. n.szStreamUUID = "";
  23611. case 15:
  23612. n.bPlay = !1, n.iRate = 1, n
  23613. .isGB = !1, n.bFrameForward = !
  23614. 1, n.iGlobalBaseTime = 0, this
  23615. .aWndList[t].iInterruptTimeCnt =
  23616. 1, this.aWndList[t]
  23617. .iCurentOSDTime = -1, this
  23618. .aWndList[t].bFirstFrame = !1, n
  23619. .isFlv && n.oMSE ? (n.oMSE
  23620. .destroy && n.oMSE
  23621. .destroy(), n.oMSE = null, n
  23622. .isFlv = !1, n.iMode = 0, n
  23623. ._receivedLength = 0, this
  23624. .oJSPlugin.find(
  23625. "video.play-window").eq(
  23626. t).get(0).poster = "") :
  23627. n.oPlayCtrl && ("1" === this
  23628. ._decoderVersion ? n
  23629. .oPlayCtrl
  23630. .PlayM4_Destroy() : (this
  23631. ._supportInfo.webGL2 &&
  23632. n.oPlayCtrl
  23633. .PlayM4_SetAntialias(0),
  23634. n.oPlayCtrl
  23635. .PlayM4_Stop(), i = Y
  23636. .findIndex(function(e) {
  23637. return e
  23638. .port === n
  23639. .oPlayCtrl
  23640. .iPort
  23641. }), Y.splice(i, 1), n
  23642. .AdditionDataCB = null),
  23643. n.oPlayCtrl = null, n
  23644. .bLoad = !1);
  23645. case 24:
  23646. case "end":
  23647. return e.stop()
  23648. }
  23649. }, e, this, [
  23650. [3, 11]
  23651. ])
  23652. })), function(e) {
  23653. return P.apply(this, arguments)
  23654. })
  23655. }, {
  23656. key: "_onParsedData",
  23657. value: function(e, t, n) {
  23658. switch (t) {
  23659. case 1:
  23660. this.aWndList[n].szStorageUUID && this.oStorageManager
  23661. .inputData(this.aWndList[n].szStorageUUID, e);
  23662. break;
  23663. case 2:
  23664. this.aWndList[n]._osdtimeInfo = e, 0 === this.aWndList[n]
  23665. ._osdtimeInfo.globalTime ? this.aWndList[n].iCurentOSDTime =
  23666. this.aWndList[n]._osdtimeInfo.flvduration + this.aWndList[n]
  23667. .iGlobalBaseTime : this.aWndList[n].iCurentOSDTime = this
  23668. .aWndList[n]._osdtimeInfo.globalTime;
  23669. break;
  23670. case 3:
  23671. this.aWndList[n]._videoInfo = e;
  23672. break;
  23673. case 4:
  23674. break;
  23675. case 5:
  23676. this.aWndList[n].szFlvhead = e.slice(0, e.byteLength - 4);
  23677. break;
  23678. case 11:
  23679. this.aWndList[n].bPlay && this.aWndList[n].bFirstFrame && this
  23680. ._streamReset(n)
  23681. }
  23682. }
  23683. }, {
  23684. key: "_captureAudio",
  23685. value: function(e, t, b, w, D) {
  23686. var n, T = this,
  23687. i = window.navigator,
  23688. E = new(window.AudioContext || window.webkitAudioContext);
  23689. return new f.default((n = (0, y.default)(p.default.mark(function e(t,
  23690. n) {
  23691. return p.default.wrap(function(e) {
  23692. for (;;) switch (e.prev = e.next) {
  23693. case 0:
  23694. void 0 === i
  23695. .mediaDevices && (i
  23696. .mediaDevices = {}
  23697. ), void 0 === i
  23698. .mediaDevices
  23699. .getUserMedia && (i
  23700. .mediaDevices
  23701. .getUserMedia =
  23702. function(e) {
  23703. if (!(i.getUserMedia ||
  23704. i
  23705. .webkitGetUserMedia ||
  23706. i
  23707. .mozGetUserMedia ||
  23708. i
  23709. .msGetUserMedia
  23710. ))
  23711. return f
  23712. .default
  23713. .reject(
  23714. new Error(
  23715. "getUserMedia is not implemented in this browser"
  23716. )
  23717. )
  23718. }), i
  23719. .mediaDevices
  23720. .getUserMedia({
  23721. audio: !0
  23722. }).then(function(
  23723. M) {
  23724. T.bTalkLoaded ||
  23725. M
  23726. .getTracks()
  23727. .forEach(
  23728. function(
  23729. e
  23730. ) {
  23731. e.stop()
  23732. });
  23733. var L = E
  23734. .createMediaStreamSource(
  23735. M),
  23736. e = L
  23737. .context,
  23738. S = e
  23739. .createScriptProcessor(
  23740. 512,
  23741. 1, 1
  23742. ),
  23743. k = [];
  23744. S.onaudioprocess =
  23745. function(
  23746. e) {
  23747. T.bTalkLoaded ||
  23748. T
  23749. ._audionodeClose ||
  23750. (T._audionodeClose = !
  23751. 0,
  23752. L
  23753. .disconnect(
  23754. S
  23755. ),
  23756. S
  23757. .disconnect(
  23758. E
  23759. .destination
  23760. ),
  23761. M
  23762. .getTracks()
  23763. .forEach(
  23764. function(
  23765. e
  23766. ) {
  23767. e.stop()
  23768. }
  23769. )
  23770. );
  23771. for (
  23772. var t =
  23773. e
  23774. .inputBuffer
  23775. .getChannelData(
  23776. 0
  23777. ),
  23778. n =
  23779. 48e3 /
  23780. b,
  23781. i =
  23782. t
  23783. .length /
  23784. n,
  23785. r =
  23786. new window
  23787. .Float32Array(
  23788. i
  23789. ),
  23790. a =
  23791. 0,
  23792. s =
  23793. 0; a <
  23794. i;
  23795. )
  23796. r[
  23797. a
  23798. ] =
  23799. t[
  23800. s
  23801. ],
  23802. s +=
  23803. n,
  23804. a++;
  23805. var o =
  23806. r
  23807. .length,
  23808. u =
  23809. null;
  23810. if (16 ===
  23811. w
  23812. )
  23813. for (
  23814. var e =
  23815. new window
  23816. .ArrayBuffer(
  23817. 2 *
  23818. o
  23819. ),
  23820. u =
  23821. new window
  23822. .DataView(
  23823. e
  23824. ),
  23825. d =
  23826. 0,
  23827. l =
  23828. 0; l <
  23829. r
  23830. .length; l++,
  23831. d +=
  23832. 2
  23833. ) {
  23834. var h =
  23835. Math
  23836. .max(
  23837. -
  23838. 1,
  23839. Math
  23840. .min(
  23841. 1,
  23842. r[
  23843. l
  23844. ]
  23845. )
  23846. );
  23847. u.setInt16(
  23848. d,
  23849. h <
  23850. 0 ?
  23851. 32768 *
  23852. h :
  23853. 32767 *
  23854. h,
  23855. !
  23856. 0
  23857. )
  23858. } else if (
  23859. 8 ===
  23860. w
  23861. ) {
  23862. o = new window
  23863. .ArrayBuffer(
  23864. o
  23865. );
  23866. u = new window
  23867. .DataView(
  23868. o
  23869. );
  23870. for (
  23871. var c =
  23872. 0,
  23873. _ =
  23874. 0; _ <
  23875. r
  23876. .length; _++,
  23877. c++
  23878. ) {
  23879. var f =
  23880. Math
  23881. .max(
  23882. -
  23883. 1,
  23884. Math
  23885. .min(
  23886. 1,
  23887. r[
  23888. _
  23889. ]
  23890. )
  23891. ),
  23892. f =
  23893. f <
  23894. 0 ?
  23895. 32768 *
  23896. f :
  23897. 32767 *
  23898. f,
  23899. f =
  23900. parseInt(
  23901. 255 /
  23902. (65535 /
  23903. (32768 +
  23904. f
  23905. )
  23906. ),
  23907. 10
  23908. );
  23909. u.setInt8(
  23910. c,
  23911. f,
  23912. !
  23913. 0
  23914. )
  23915. }
  23916. } if (
  23917. T
  23918. .bTalkLoaded &&
  23919. null !==
  23920. u
  23921. .buffer
  23922. )
  23923. for (
  23924. var m,
  23925. p =
  23926. new Uint8Array(
  23927. u
  23928. .buffer
  23929. ),
  23930. y =
  23931. k
  23932. .length,
  23933. v =
  23934. 0,
  23935. g =
  23936. p
  23937. .byteLength; v <
  23938. g; v++
  23939. )
  23940. k[
  23941. y++
  23942. ] =
  23943. p[
  23944. v
  23945. ],
  23946. 640 ===
  23947. k
  23948. .length &&
  23949. (T._saveAudioFlags &&
  23950. (m = T
  23951. .mixToWave(
  23952. new Uint8Array(
  23953. k
  23954. ),
  23955. b,
  23956. w,
  23957. D
  23958. ),
  23959. T
  23960. .szAudioStorageUUID &&
  23961. T
  23962. .oStorageManager
  23963. .inputData(
  23964. T
  23965. .szAudioStorageUUID,
  23966. new Uint8Array(
  23967. m
  23968. )
  23969. )
  23970. ),
  23971. T
  23972. .bTalkLoaded &&
  23973. T
  23974. .oTalkPlayCtrl
  23975. .Talk_InputAudEncodeData(
  23976. new Uint8Array(
  23977. k
  23978. ),
  23979. 640
  23980. ),
  23981. y =
  23982. k
  23983. .length =
  23984. 0
  23985. )
  23986. }, L
  23987. .connect(
  23988. S),
  23989. S
  23990. .connect(
  23991. e
  23992. .destination
  23993. ),
  23994. t()
  23995. }, function(e) {
  23996. return T
  23997. .oEventCallback
  23998. .pluginErrorHandler(
  23999. 0, L
  24000. .ERR_TALK_GETUSERMEDIA_UNDEFINE
  24001. ), T
  24002. ._log.E(
  24003. L
  24004. .ERR_TALK_GETUSERMEDIA_UNDEFINE +
  24005. ": 采集音频接口失败",
  24006. e),
  24007. T
  24008. .JS_StopTalk(),
  24009. n(L
  24010. .ERR_TALK_GETUSERMEDIA_UNDEFINE
  24011. )
  24012. });
  24013. case 3:
  24014. case "end":
  24015. return e.stop()
  24016. }
  24017. }, e, T)
  24018. })), function(e, t) {
  24019. return n.apply(this, arguments)
  24020. }))
  24021. }
  24022. }, {
  24023. key: "_loadTalk",
  24024. value: function(a) {
  24025. var s, o, u, d, l, h = this,
  24026. c = "",
  24027. _ = "";
  24028. return new f.default(function(i, r) {
  24029. var e, t, n;
  24030. c = -1 !== a.search("wss://") ? (e = a.indexOf("/proxy/") +
  24031. 7, t = a.indexOf("/", e), _ = a.substring(e, t), a
  24032. .replace("wss:", "ws:").replace(_, "").replace(
  24033. "/proxy/", "")) : a, h.oStreamClient.openStream(
  24034. a, {
  24035. playURL: c,
  24036. proxy: _,
  24037. mode: "media"
  24038. }, (n = (0, y.default)(p.default.mark(function e(
  24039. t) {
  24040. var n;
  24041. return p.default.wrap(function(e) {
  24042. for (;;) switch (e
  24043. .prev = e.next
  24044. ) {
  24045. case 0:
  24046. if (!t
  24047. .bHead
  24048. ) {
  24049. e.next =
  24050. 18;
  24051. break
  24052. }
  24053. s = t
  24054. .oParams
  24055. .iAudioType,
  24056. o = t
  24057. .oParams
  24058. .iAudioBitRate,
  24059. u = t
  24060. .oParams
  24061. .iAudioSamplingRate,
  24062. d = t
  24063. .oParams
  24064. .iAudioBitWidth,
  24065. l = t
  24066. .oParams
  24067. .iChannel,
  24068. 6 < s &&
  24069. (h.oEventCallback
  24070. .pluginErrorHandler(
  24071. 0,
  24072. L
  24073. .ERR_TALK_UNSUPPORT_AUDIOTYPE
  24074. ),
  24075. h
  24076. ._log
  24077. .E(L.ERR_TALK_UNSUPPORT_AUDIOTYPE +
  24078. ": 不支持该音频格式"
  24079. ),
  24080. h
  24081. .JS_StopTalk(),
  24082. r(L
  24083. .ERR_TALK_UNSUPPORT_AUDIOTYPE
  24084. )
  24085. ), h
  24086. .oTalkPlayCtrl
  24087. .Talk_CreateAudEncode(
  24088. s),
  24089. h
  24090. .oTalkPlayCtrl
  24091. .Talk_SetAudEncodeParam(
  24092. u,
  24093. l,
  24094. o, d
  24095. ), h
  24096. .oTalkPlayCtrl
  24097. .Talk_RegisterAudEncodeCB(
  24098. function(
  24099. e
  24100. ) {
  24101. h.oStreamClient
  24102. .transmission(
  24103. h
  24104. .szTalkStreamId,
  24105. e
  24106. )
  24107. }),
  24108. h
  24109. .oTalkPlayCtrl
  24110. .Talk_CreateAuDecode(),
  24111. h
  24112. .oTalkPlayCtrl
  24113. .Talk_SetAudDecodeParam(
  24114. u,
  24115. l,
  24116. o,
  24117. d, s
  24118. ), h
  24119. .oTalkPlayCtrl
  24120. .Talk_OpenStreamDecodeData(),
  24121. 1 !== h
  24122. .oTalkPlayCtrl
  24123. .Talk_GetLastError() &&
  24124. (n = L
  24125. .ERR_TALK +
  24126. h
  24127. .oTalkPlayCtrl
  24128. .Talk_GetLastError()
  24129. .toString(),
  24130. h
  24131. ._log
  24132. .E(n +
  24133. ": 对讲库初始化失败",
  24134. n
  24135. ),
  24136. h
  24137. .oEventCallback
  24138. .pluginErrorHandler(
  24139. 0,
  24140. n
  24141. ),
  24142. h
  24143. .JS_StopTalk(),
  24144. r(n)
  24145. ), h
  24146. .bTalkLoaded = !
  24147. 0, h
  24148. ._captureAudio(
  24149. s,
  24150. o,
  24151. u,
  24152. d, l
  24153. )
  24154. .then(
  24155. function() {
  24156. i()
  24157. },
  24158. function(
  24159. e
  24160. ) {
  24161. r(e)
  24162. }),
  24163. e.next =
  24164. 21;
  24165. break;
  24166. case 18:
  24167. if (t.buf
  24168. .byteLength <
  24169. 10)
  24170. return e
  24171. .abrupt(
  24172. "return"
  24173. );
  24174. e.next = 20;
  24175. break;
  24176. case 20:
  24177. h.oTalkPlayCtrl &&
  24178. h
  24179. .oTalkPlayCtrl
  24180. .Talk_InputAudDecodeData(
  24181. t
  24182. .buf,
  24183. t
  24184. .buf
  24185. .byteLength
  24186. );
  24187. case 21:
  24188. case "end":
  24189. return e
  24190. .stop()
  24191. }
  24192. }, e, h)
  24193. })), function(e) {
  24194. return n.apply(this, arguments)
  24195. }),
  24196. function(e) {
  24197. if (h.bTalkLoaded) 1e3 === e.code || 1005 === e
  24198. .code ? (h._log.E(L
  24199. .ERR_STREAM_CONNECT_CLOSED +
  24200. ": 送流异常,被后端关闭连接"), h.oEventCallback
  24201. .pluginErrorHandler(0, L
  24202. .ERR_STREAM_CONNECT_CLOSED, e)) : (h
  24203. ._log.E(L.ERR_STREAM_INTERRUPT +
  24204. ": 流中断"), h.oEventCallback
  24205. .pluginErrorHandler(0, L
  24206. .ERR_STREAM_INTERRUPT, e)), h
  24207. .szTalkStreamId = "", h.JS_StopTalk();
  24208. else {
  24209. if (1e3 === e.code || 1005 === e.code)
  24210. return r();
  24211. h.szTalkStreamId ? (h.oEventCallback
  24212. .pluginErrorHandler(0, L
  24213. .ERR_COM_RECV_STREAM_TIMEOUT, e
  24214. ), h.szTalkStreamId = "", r(L
  24215. .ERR_COM_RECV_STREAM_TIMEOUT)) :
  24216. 1006 === e.code && -1 !== a.search(
  24217. "wss://") ? (h.oEventCallback
  24218. .pluginErrorHandler(0, L
  24219. .ERR_STREAM_WSS_ERROR, e), r(L
  24220. .ERR_STREAM_WSS_ERROR)) : (h
  24221. .oEventCallback.pluginErrorHandler(
  24222. 0, L.ERR_STREAM_WS_ERROR, e), r(
  24223. L.ERR_STREAM_WS_ERROR))
  24224. }
  24225. }).then(function(e) {
  24226. h.szTalkStreamId = e, h.oStreamClient.startPlay(
  24227. e, "", "", "startTalk").then(
  24228. function() {
  24229. h.oStreamClient.closeTimer(e)
  24230. },
  24231. function(e) {
  24232. var t = e;
  24233. "string" != typeof e && (t = "0x0" +
  24234. e.errorCode.toString(16)), h
  24235. ._log.E(t +
  24236. ": 取流失败,详情根据错误码在运管后台进行查询."
  24237. ), h.oEventCallback
  24238. .pluginErrorHandler(0, t), r(t)
  24239. })
  24240. }, function(e) {
  24241. h._log.E(L.ERR_STREAM_INTERRUPT +
  24242. ": 对讲通道异常中断."), h.oEventCallback
  24243. .pluginErrorHandler(0, L
  24244. .ERR_STREAM_INTERRUPT, e), h
  24245. .JS_StopTalk()
  24246. })
  24247. })
  24248. }
  24249. }, {
  24250. key: "JS_StartTalk",
  24251. value: function(r) {
  24252. var n, a = this;
  24253. return this._audionodeClose = !1, new f.default((n = (0, y.default)(p
  24254. .default.mark(function e(n, i) {
  24255. var t;
  24256. return p.default.wrap(function(e) {
  24257. for (;;) switch (e.prev = e.next) {
  24258. case 0:
  24259. if ("string" !=
  24260. typeof r || -1 === r
  24261. .search("wss://") &&
  24262. -1 === r.search(
  24263. "ws://"))
  24264. return e.abrupt(
  24265. "return", i(
  24266. L
  24267. .ERR_COM_URL_ERROR
  24268. ));
  24269. e.next = 2;
  24270. break;
  24271. case 2:
  24272. t = "", t = "2" === a
  24273. ._decoderVersion ? a
  24274. .options
  24275. .szBasePath +
  24276. "talkW/AudioInterCom.js" :
  24277. a.options
  24278. .szBasePath +
  24279. "talk/AudioInterCom.js",
  24280. null === a
  24281. .oTalkPlayCtrl ? a
  24282. .oTalkPlayCtrl =
  24283. new o.JSTalkCtrl(t,
  24284. function(e) {
  24285. var t = e
  24286. .cmd;
  24287. e.status, e
  24288. .errorCode;
  24289. "loaded" ===
  24290. t && a
  24291. ._loadTalk(
  24292. r)
  24293. .then(
  24294. function() {
  24295. console
  24296. .info(
  24297. "[debug] %c" +
  24298. (0, _
  24299. .default
  24300. )
  24301. ()
  24302. .format(
  24303. "YYYY-MM-DD HH:mm:ss.SSS"
  24304. ) +
  24305. "%c oTalkPlayCtrl load end code",
  24306. "color: blue",
  24307. "color: black"
  24308. ),
  24309. n()
  24310. },
  24311. function(
  24312. e
  24313. ) {
  24314. i(e)
  24315. })
  24316. }) : a
  24317. .JS_StopTalk().then(
  24318. function() {
  24319. a.oTalkPlayCtrl =
  24320. new o
  24321. .JSTalkCtrl(
  24322. t,
  24323. function(
  24324. e
  24325. ) {
  24326. var t =
  24327. e
  24328. .cmd;
  24329. e.status,
  24330. e
  24331. .errorCode;
  24332. "loaded" ===
  24333. t && a
  24334. ._loadTalk(
  24335. r
  24336. )
  24337. .then(
  24338. function() {
  24339. console
  24340. .info(
  24341. "[debug] %c" +
  24342. (0, _
  24343. .default
  24344. )
  24345. ()
  24346. .format(
  24347. "YYYY-MM-DD HH:mm:ss.SSS"
  24348. ) +
  24349. "%c oTalkPlayCtrl load end code",
  24350. "color: blue",
  24351. "color: black"
  24352. ),
  24353. n()
  24354. },
  24355. function(
  24356. e
  24357. ) {
  24358. i(e)
  24359. }
  24360. )
  24361. })
  24362. });
  24363. case 5:
  24364. case "end":
  24365. return e.stop()
  24366. }
  24367. }, e, a)
  24368. })), function(e, t) {
  24369. return n.apply(this, arguments)
  24370. }))
  24371. }
  24372. }, {
  24373. key: "JS_StopTalk",
  24374. value: function() {
  24375. var n = this;
  24376. return new f.default(function(e, t) {
  24377. n.JS_StopSaveTalk(), n.bTalkLoaded = !1, n.szTalkStreamId &&
  24378. (n.oStreamClient.stop(n.szTalkStreamId), n
  24379. .szTalkStreamId = ""), n.oTalkPlayCtrl && (n
  24380. .oTalkPlayCtrl.Talk_DestroyAudEncode(), n
  24381. .oTalkPlayCtrl.Talk_DestroyAudDecode(), n
  24382. .oTalkPlayCtrl = null), e()
  24383. })
  24384. }
  24385. }, {
  24386. key: "JS_TalkSetVolume",
  24387. value: function(n) {
  24388. var i = this;
  24389. return new f.default(function(e, t) {
  24390. i.oTalkPlayCtrl && 0 === i.oTalkPlayCtrl.Talk_SetVolume(n /
  24391. 100) ? t(i.oTalkPlayCtrl.Talk_GetLastError() + L
  24392. .ERR_TALK) : e()
  24393. })
  24394. }
  24395. }, {
  24396. key: "JS_TalkGetVolume",
  24397. value: function() {
  24398. var e = this;
  24399. return new f.default(function(t) {
  24400. e.oTalkPlayCtrl && e.oTalkPlayCtrl.Talk_GetVolume(function(
  24401. e) {
  24402. e = Math.round(100 * e);
  24403. t(e)
  24404. })
  24405. })
  24406. }
  24407. }, {
  24408. key: "JS_SetTalkLogFlag",
  24409. value: function(t) {
  24410. var n = this;
  24411. return new f.default(function(e) {
  24412. n.oTalkPlayCtrl && n.oTalkPlayCtrl.Talk_SetTalkLogFlag(t),
  24413. e()
  24414. })
  24415. }
  24416. }, {
  24417. key: "addWavHeader",
  24418. value: function(e, t, n, i) {
  24419. var r = e.byteLength,
  24420. a = new ArrayBuffer(44 + r),
  24421. s = new DataView(a);
  24422. return R(s, 0, "RIFF"), s.setUint32(4, 36 + r, !0), R(s, 8, "WAVE"), R(
  24423. s, 12, "fmt "), s.setUint32(16, 16, !0), s.setUint16(20, 1, !0),
  24424. s.setUint16(22, i, !0), s.setUint32(24, t, !0), s.setUint32(28, t *
  24425. i * (n / 8), !0), s.setUint16(32, i * (n / 8), !0), s.setUint16(
  24426. 34, n, !0), R(s, 36, "data"), s.setUint32(40, 5242880, !0), s
  24427. .setUint16(44, e, !0), s.buffer
  24428. }
  24429. }, {
  24430. key: "mixToWave",
  24431. value: function(e, t, n, i) {
  24432. var r = void 0;
  24433. if (0 === this._saveAudioType) {
  24434. if (this._stashUsed <= 0) return;
  24435. r = this._stashBuffer.slice(0, this._stashUsed), this._stashUsed = 0
  24436. } else if (1 === this._saveAudioType) r = e;
  24437. else if (this._stashUsed >= e.byteLength) {
  24438. var a = new Uint8Array(this._stashBuffer, 0, this._bufferSize),
  24439. s = new Uint8Array(this._stashBuffer.slice(0, e.byteLength));
  24440. this._stashUsed -= e.byteLength;
  24441. for (var r = new Uint8Array(e.byteLength), o = 0; o < e
  24442. .byteLength; o++) r[o] = .5 * s[o] + .5 * e[o];
  24443. var u = new Uint8Array(this._stashBuffer, e.byteLength);
  24444. a.set(u, 0)
  24445. } else r = e;
  24446. return this._firstaddwave ? (this._firstaddwave = !1, this.addWavHeader(
  24447. r, t, n, i)) : r
  24448. }
  24449. }, {
  24450. key: "JS_StartSaveTalk",
  24451. value: function(e) {
  24452. var i = this,
  24453. r = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] :
  24454. 2;
  24455. return new f.default(function(t, n) {
  24456. i._saveAudioFlags = !1, i._stashBuffer = new ArrayBuffer(i
  24457. ._bufferSize), i._stashUsed = 0, i._firstaddwave = !
  24458. 0, i.szAudioStorageUUID ? n(L
  24459. .ERR_PLAY_FILESYS_ALREADY_WRITING) : i
  24460. .oStorageManager.startRecord(e, "audio", 0, 0, {
  24461. cbEventHandler: function(e) {
  24462. n(e)
  24463. },
  24464. iPackage: 0
  24465. }).then(function(e) {
  24466. i.szAudioStorageUUID = e, i._saveAudioFlags = !
  24467. 0, i._saveAudioType = r, i.oTalkPlayCtrl
  24468. .Talk_RegisterAudDecodeCB(function(e) {
  24469. i._saveAudioFlags && (
  24470. new Uint8Array(i
  24471. ._stashBuffer, 0, i
  24472. ._bufferSize).set(e, i
  24473. ._stashUsed), i
  24474. ._stashUsed += e.byteLength)
  24475. }), t()
  24476. }, function() {
  24477. n()
  24478. })
  24479. })
  24480. }
  24481. }, {
  24482. key: "JS_StopSaveTalk",
  24483. value: function() {
  24484. var n = this;
  24485. return new f.default(function(e, t) {
  24486. n._saveAudioFlags = !1, n._stashBuffer = null, n
  24487. ._stashUsed = 0, n.szAudioStorageUUID && n
  24488. .oStorageManager.stopRecord(n.szAudioStorageUUID).then(
  24489. function() {
  24490. n.szAudioStorageUUID = "", e()
  24491. },
  24492. function(e) {
  24493. t(e)
  24494. })
  24495. })
  24496. }
  24497. }, {
  24498. key: "JS_GetVideoInfo",
  24499. value: function() {
  24500. var i = this,
  24501. r = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] :
  24502. -1;
  24503. return new f.default(function(e, t) {
  24504. (r < 0 || r > i.iMaxWndNum - 1 || "number" != typeof r) && (
  24505. r = i.iCurrentWndIndex);
  24506. var n = i._checkPlay(r);
  24507. 0 !== n && t(n), e(i.aWndList[r]._videoInfo)
  24508. })
  24509. }
  24510. }, {
  24511. key: "JS_SetConnectTimeOut",
  24512. value: function() {
  24513. var n = this,
  24514. i = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] :
  24515. -1,
  24516. r = arguments[1];
  24517. return new f.default(function(e, t) {
  24518. (i < 0 || i > n.iMaxWndNum - 1 || "number" != typeof i) && (
  24519. i = n.iCurrentWndIndex), n.oStreamClient.setTimeOut(r)
  24520. .then(function() {
  24521. e()
  24522. }, function(e) {
  24523. t(e)
  24524. })
  24525. })
  24526. }
  24527. }, {
  24528. key: "JS_SetAdditionDataCB",
  24529. value: function() {
  24530. var n = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] :
  24531. -1,
  24532. i = this,
  24533. r = arguments[1],
  24534. a = arguments[2];
  24535. return new f.default(function(e, t) {
  24536. (n < 0 || n > i.iMaxWndNum - 1 || "number" != typeof n) && (
  24537. n = i.iCurrentWndIndex), i.aWndList[n].oPlayCtrl
  24538. .PlayM4_SetAdditionDataCallBack(r, 1), i.aWndList[n]
  24539. .AdditionDataCB = a, e()
  24540. })
  24541. }
  24542. }, {
  24543. key: "JS_SetStreamCacheBuf",
  24544. value: function() {
  24545. var n = this,
  24546. i = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] :
  24547. -1,
  24548. r = arguments[1];
  24549. return new f.default(function(e, t) {
  24550. (i < 0 || i > n.iMaxWndNum - 1 || "number" != typeof i) && (
  24551. i = n.iCurrentWndIndex), (r < 0 || 5242880 < r) && (r =
  24552. 5242880, n._log.E(L.ERR_STREAM_BUFER_ERROR +
  24553. ": JS_SetStreamCacheBuf size invaild,please set 0-5*1024*1024."
  24554. ), t(L.ERR_STREAM_BUFER_ERROR)), n.aWndList[i]
  24555. .szBufferSize = r, e()
  24556. })
  24557. }
  24558. }, {
  24559. key: "JS_SetTraceId",
  24560. value: function() {
  24561. var t = this,
  24562. n = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] :
  24563. -1,
  24564. i = arguments[1];
  24565. return new f.default(function(e) {
  24566. (n < 0 || n > t.iMaxWndNum - 1 || "number" != typeof n) && (
  24567. n = t.iCurrentWndIndex), t.aWndList[n].bopenTraceId = i,
  24568. e()
  24569. })
  24570. }
  24571. }, {
  24572. key: "JS_GetTraceId",
  24573. value: function() {
  24574. var t = this,
  24575. n = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] :
  24576. -1;
  24577. return new f.default(function(e) {
  24578. (n < 0 || n > t.iMaxWndNum - 1 || "number" != typeof n) && (
  24579. n = t.iCurrentWndIndex), e(t.aWndList[n].szTraceId)
  24580. })
  24581. }
  24582. }, {
  24583. key: "JS_SetInterruptTime",
  24584. value: function() {
  24585. var t = this,
  24586. n = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] :
  24587. -1,
  24588. i = arguments[1];
  24589. return new f.default(function(e) {
  24590. (n < 0 || n > t.iMaxWndNum - 1 || "number" != typeof n) && (
  24591. n = t.iCurrentWndIndex), t.aWndList[n].iInterruptTime =
  24592. 1e3 * i, e()
  24593. })
  24594. }
  24595. }, {
  24596. key: "_support",
  24597. value: function() {
  24598. var e = !!window.MediaSource,
  24599. t = !!window.WebGLRenderingContext,
  24600. n = !!window.WebGL2RenderingContext,
  24601. i = !!window.SharedArrayBuffer,
  24602. r = !!window.OffscreenCanvas,
  24603. a = !("windows" === this._browserInfo.system && "chrome" === this
  24604. ._browserInfo.supporter && parseInt(this._browserInfo
  24605. .supporterVersion.split(".").shift()) < 80),
  24606. s = "android" !== this._browserInfo.system && "ios" !== this
  24607. ._browserInfo.system;
  24608. return {
  24609. MSE: e,
  24610. webGL1: t,
  24611. webGL2: n,
  24612. SharedArrayBuffer: i,
  24613. OffscreenCanvas: r,
  24614. "decoder1.0": t,
  24615. "decoder2.0": t && i && r && a && s
  24616. }
  24617. }
  24618. }, {
  24619. key: "_decoder2Loaded",
  24620. value: function() {
  24621. return new f.default(function(e, t) {
  24622. var n = 0,
  24623. i = window.setInterval(function() {
  24624. 4e3 <= n && (clearInterval(i), t(L
  24625. .ERR_COM_LOAD_JSDECODER_ERROR)), E && (
  24626. clearInterval(i), console.log(
  24627. "clearInterval"), e(1)), n += 100
  24628. }, 100)
  24629. })
  24630. }
  24631. }, {
  24632. key: "_calculateRealtimeBitrate",
  24633. value: function(e) {
  24634. var t, n, i;
  24635. this.aWndList[e]._bpsInfo && 0 !== this.aWndList[e]._bpsInfo
  24636. .data_updated_time && (0 !== this.aWndList[e]._bpsInfo
  24637. .lastVideoBytes && (this.aWndList[e]._bpsInfo.bps_video = 8 *
  24638. this.aWndList[e]._bpsInfo.lastVideoBytes / 1024, this
  24639. .aWndList[e]._bpsInfo.lastVideoBytes = 0), this.aWndList[e]
  24640. ._videoInfo.bitRate = this.aWndList[e]._bpsInfo.bps_video, this
  24641. .aWndList[e]._bpsInfo.time_gap_factor = Date.now(), (i = Date
  24642. .now() - this.aWndList[e]._bpsInfo.data_updated_time) >=
  24643. this.aWndList[e].iInterruptTime * this.aWndList[e]
  24644. .iInterruptTimeCnt && !this.aWndList[e].isPause && (this
  24645. .aWndList[e].iInterruptTimeCnt++, this.oEventCallback
  24646. .InterruptStream(e, i / 1e3), this._log.W(
  24647. " stream Interrupt windowsId:" + e + ", time:" + i +
  24648. "ms")), 8e3 <= i && ((t = this.aWndList[e]
  24649. .szStartTime) && -1 !== t.search("Z") && (t = t.replace(
  24650. "Z",
  24651. "+08:00")), 0 === (n = this.aWndList[e].oExpandParams
  24652. .iduration) && ((i = this.aWndList[e].szStopTime) && -
  24653. 1 !== i.search("Z") && (i = i.replace("Z", "+08:00")),
  24654. n = (new Date(t).getTime() - new Date(i).getTime()) /
  24655. 1e3), n - (this.aWndList[e].iCurentOSDTime - new Date(t)
  24656. .getTime()) / 1e3 < 20 && (this.oEventCallback
  24657. .StreamEnd(e), this.JS_Stop(e))))
  24658. }
  24659. }, {
  24660. key: "_loadScript",
  24661. value: function(n) {
  24662. return new f.default(function(e) {
  24663. var t = document.createElement("script");
  24664. t.type = "text/javascript", t.src = n, t.onload =
  24665. function() {
  24666. e()
  24667. }, document.body.appendChild(t)
  24668. })
  24669. }
  24670. }, {
  24671. key: "_playerlocalFile",
  24672. value: function(e, t) {
  24673. var n = this.aWndList[e];
  24674. n.iMode = 1, n.isFlv = !0, n.bPlay || this._createFlvPlayer(e), n.oMSE
  24675. .onLoaderChunkArrival(t, n._receivedLength), n._receivedLength += t
  24676. .byteLength
  24677. }
  24678. }, {
  24679. key: "uuid2",
  24680. value: function(e, t) {
  24681. var n, i, r =
  24682. "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
  24683. .split(""),
  24684. a = [];
  24685. if (t = t || r.length, e)
  24686. for (n = 0; n < e; n++) a[n] = r[0 | Math.random() * t];
  24687. else
  24688. for (a[8] = a[13] = a[18] = a[23] = "-", a[14] = "4", n = 0; n <
  24689. 36; n++) a[n] || (i = 0 | 16 * Math.random(), a[n] = r[19 ===
  24690. n ? 3 & i | 8 : i]);
  24691. return a.join("")
  24692. }
  24693. }, {
  24694. key: "_streamEndStop",
  24695. value: function(i) {
  24696. var r = this.aWndList[i],
  24697. a = this;
  24698. return new f.default(function(n) {
  24699. a.aWndList[i].streamEndinter = window.setInterval(
  24700. function() {
  24701. if (r.isFlv) {
  24702. var e = a.oJSPlugin.find(
  24703. "video.play-window").eq(i).get(0);
  24704. if (console.log(
  24705. "videoElement.seekable.end(0):" + e
  24706. .seekable.end(0) +
  24707. " ,videoElement.currentTime:" + e
  24708. .currentTime), e.seekable.end(0) - e
  24709. .currentTime < 1) return clearInterval(r
  24710. .streamEndinter), a.JS_Stop(i),
  24711. n()
  24712. } else if (r.oPlayCtrl)
  24713. if ("1" === a._decoderVersion) {
  24714. var t = r.oPlayCtrl && r.oPlayCtrl
  24715. .PlayM4_GetYUVBufSize(),
  24716. e = r.oPlayCtrl && r.oPlayCtrl
  24717. .PlayM4_GetInputBufSize();
  24718. if (0 === t && 0 === e)
  24719. return clearInterval(r
  24720. .streamEndinter), a.JS_Stop(
  24721. i), n()
  24722. } else if (0 === r.oPlayCtrl
  24723. .PlayM4_GetSourceBufferRemain())
  24724. return clearInterval(r.streamEndinter), a
  24725. .JS_Stop(i), n();
  24726. 0
  24727. }, 500)
  24728. })
  24729. }
  24730. }, {
  24731. key: "currentWindowIndex",
  24732. get: function() {
  24733. return this.iCurrentWndIndex
  24734. }
  24735. }, {
  24736. key: "fileSysSwitch",
  24737. set: function(e) {
  24738. if ("boolean" != typeof e) return console.error(
  24739. "fileSysSwitch set should get a Boolean");
  24740. this._fileSysSwitch = e
  24741. }
  24742. }]), A);
  24743. function A(e) {
  24744. var t = this;
  24745. (0, a.default)(this, A), this.TAG = "H5player";
  24746. this.options = v.default.extend({
  24747. szId: "playWnd",
  24748. iWidth: 400,
  24749. iHeight: 300,
  24750. iMaxSplit: 1,
  24751. iCurrentSplit: 1,
  24752. szBasePath: "./",
  24753. bSupporDoubleClickFull: !0,
  24754. openDebug: !0,
  24755. mseWorkerEnable: !1
  24756. }, e);
  24757. var n = v.default.extend(n = {
  24758. borderWidth: 1,
  24759. border: "#343434",
  24760. borderSelect: "#FFCC00",
  24761. background: "#000"
  24762. }, e.oStyle);
  24763. this.options.oStyle = n, this._log = new k.default(this), this.e = {
  24764. resize: this._eventHandlerResize.bind(this),
  24765. fullscreenchange: this._eventHandlerFullscreenchange.bind(this),
  24766. visibilitychange: this._eventHandlerVisibilitychange.bind(this)
  24767. }, this.options.iCurrentSplit > this.options.iMaxSplit && (this.options.iCurrentSplit = this
  24768. .options.iMaxSplit), this.iCurrentPlayRate = 1, this.iCurrentSoundWnd = -1, this
  24769. .iMaxWndNum = this.options.iMaxSplit * this.options.iMaxSplit, this.bPluginFull = !1, this
  24770. .oVideoWindow = null, this.fullscreenElement = null, this.iCurrentWndIndex = -1, this
  24771. .fDrawCallback = null, this.szPluginVersion = w.version, this.isBrowserVisible = !0, this
  24772. ._decoderVersion = "1", "/" !== this.options.szBasePath.charAt(this.options.szBasePath
  24773. .length - 1) && (this.options.szBasePath = this.options.szBasePath + "/"), this
  24774. .oStorageManager = new l.StorageManager(this.options.szBasePath + "transform/"), this
  24775. .oStreamClient = new s.StreamClient(this.options), this.oJSPlugin = (0, v.default)("#" +
  24776. this.options.szId), this.bcloseAntialias = !1, this._listenBrowserVisibility(), this
  24777. ._createWindows(), this.aWndList = [];
  24778. for (var i, r = 0; r < this.iMaxWndNum; r++) this.aWndList[r] = {}, this.aWndList[r].bPlay = !1,
  24779. this.aWndList[r].bLoad = !1, this.aWndList[r].stashArray = [], this.aWndList[r]
  24780. .stashFeeding = !1, this.aWndList[r].szPlayType = "", this.aWndList[r].szStorageUUID = "",
  24781. this.aWndList[r].szStreamUUID = "", this.aWndList[r].aHead = [], this.aWndList[r].isGB = !1,
  24782. this.aWndList[r].isHVAGHead = !1, this.aWndList[r].aHVAGHead = [], this.aWndList[r].iRate =
  24783. 1, this.aWndList[r].bEZoom = !1, this.aWndList[r].b3DZoom = !1, this.aWndList[r]
  24784. .szSecretKey = "", this.aWndList[r].bFrameForward = !1, this.aWndList[r].aSamples = [], this
  24785. .aWndList[r].iRevBufferTimes = 0, this.aWndList[r].nalPackage = [0, 0, 0, 1, 97], this
  24786. .aWndList[r].iMode = 0, this.aWndList[r].iCurentOSDTime = -1, this.aWndList[r]
  24787. .oSdpInfo = {}, this.aWndList[r].iLastDuaration = -1, this.aWndList[r].iCurDuaration = -1,
  24788. this.aWndList[r].iTimeInterval = -1, this.aWndList[r].isPause = !1, this.aWndList[r]
  24789. .MSEVolume = .5, this.aWndList[r].iBufferValue = 0, this.aWndList[r]._videoInfo = {
  24790. VideType: "H264",
  24791. audioType: "without",
  24792. width: 0,
  24793. height: 0,
  24794. frameRate: 25,
  24795. bitRate: 0,
  24796. systemFormt: "ps",
  24797. audioSampleRate: 0
  24798. }, this.aWndList[r].asyncLock = !1, this.aWndList[r].AdditionDataCB = null, this.aWndList[r]
  24799. .bFirstFrame = !1, this.aWndList[r].iDecodeType = 0, this.aWndList[r]._bpsCalculator = null,
  24800. this.aWndList[r]._bpsInfo = {
  24801. lastVideoBytes: 0,
  24802. bps_video: 0,
  24803. data_updated_time: 0,
  24804. time_gap_factor: 1
  24805. }, this.aWndList[r]._emiter = new M.default, this.aWndList[r].bOpenSound = !1, this
  24806. .aWndList[r].szFlvhead = "", this.aWndList[r]._resetFlvplayer = !1, this.aWndList[r]
  24807. ._osdtimeInfo = {
  24808. flvstartTime: 0,
  24809. globalTime: 0,
  24810. flvduration: 0
  24811. }, this.aWndList[r].szBufferSize = 0, this.aWndList[r].iGlobalBaseTime = 0, this.aWndList[r]
  24812. .mseDecoderAudio = !0, this.aWndList[r].szTraceId = "", this.aWndList[r].bopenTraceId = !1,
  24813. this.aWndList[r].iInterruptTime = 5e3, this.aWndList[r].iInterruptTimeCnt = 1, this
  24814. .aWndList[r].streamEndinter = null, this.aWndList[r].bSeekOk = !0;
  24815. this.oTalkPlayCtrl = null, this.bTalkLoaded = !1, this.szAudioStorageUUID = "", this
  24816. .szEncodeAudioStorageUUID = "", this.szAudiorecvStorageUUID = "", this._audionodeClose = !1,
  24817. this._saveAudioType = 2, this._saveAudioFlags = !1, this._bufferSize = 655360, this
  24818. ._stashBuffer = null, this._stashUsed = 0, this._browserInfo = new S.default, this
  24819. ._supportInfo = this._support(), console.log("H5player" + w.version + " Support: ", this
  24820. ._supportInfo, this._browserInfo), this._decoderVersion = this._supportInfo[
  24821. "decoder2.0"] ? "2" : "1", "2" !== this._decoderVersion || E || T || (i = "chrome" ===
  24822. this._browserInfo.supporter && 90 < parseInt(this._browserInfo.supporterVersion.split(
  24823. ".").shift()) ? "3" : "2", n = this.options.szBasePath + "playctrl" + i +
  24824. "/Decoder.js", T = !0, this._loadScript(n).then((0, y.default)(p.default.mark(
  24825. function e() {
  24826. return p.default.wrap(function(e) {
  24827. for (;;) switch (e.prev = e.next) {
  24828. case 0:
  24829. return T = !1, e.next = 3, window
  24830. .JSPlayerModule();
  24831. case 3:
  24832. E = e.sent, console.info("[debug] %c" + (0, _
  24833. .default)().format(
  24834. "YYYY-MM-DD HH:mm:ss.SSS") +
  24835. "%c JSDecoder" + i + " load end ",
  24836. "color: blue", "color: black");
  24837. case 5:
  24838. case "end":
  24839. return e.stop()
  24840. }
  24841. }, e, t)
  24842. })))), this.oDrawCanvas = new h.ESCanvas(this.options.szId + "_canvas_draw0"), this
  24843. ._initEvent(), this.oEventCallback.windowEventSelect(0), this._dealWndSelect(0)
  24844. }
  24845. function R(e, t, n) {
  24846. for (var i = 0; i < n.length; i++) e.setUint8(t + i, n.charCodeAt(i))
  24847. }
  24848. i.version = w.version, t.JSPlugin = i
  24849. }, function(e, t, n) {
  24850. n(67), n(41), n(75), n(245), n(253), n(254), e.exports = n(3).Promise
  24851. }, function(e, t, n) {
  24852. var s = n(42),
  24853. o = n(43);
  24854. e.exports = function(a) {
  24855. return function(e, t) {
  24856. var n, i = String(o(e)),
  24857. r = s(t),
  24858. e = i.length;
  24859. return r < 0 || e <= r ? a ? "" : void 0 : (t = i.charCodeAt(r)) < 55296 || 56319 <
  24860. t || r + 1 === e || (n = i.charCodeAt(r + 1)) < 56320 || 57343 < n ? a ? i
  24861. .charAt(r) : t : a ? i.slice(r, r + 2) : n - 56320 + (t - 55296 << 10) + 65536
  24862. }
  24863. }
  24864. }, function(e, t, n) {
  24865. "use strict";
  24866. var i = n(46),
  24867. r = n(28),
  24868. a = n(36),
  24869. s = {};
  24870. n(17)(s, n(7)("iterator"), function() {
  24871. return this
  24872. }), e.exports = function(e, t, n) {
  24873. e.prototype = i(s, {
  24874. next: r(1, n)
  24875. }), a(e, t + " Iterator")
  24876. }
  24877. }, function(e, t, n) {
  24878. var s = n(12),
  24879. o = n(13),
  24880. u = n(30);
  24881. e.exports = n(14) ? Object.defineProperties : function(e, t) {
  24882. o(e);
  24883. for (var n, i = u(t), r = i.length, a = 0; a < r;) s.f(e, n = i[a++], t[n]);
  24884. return e
  24885. }
  24886. }, function(e, t, n) {
  24887. var u = n(19),
  24888. d = n(47),
  24889. l = n(241);
  24890. e.exports = function(o) {
  24891. return function(e, t, n) {
  24892. var i, r = u(e),
  24893. a = d(r.length),
  24894. s = l(n, a);
  24895. if (o && t != t) {
  24896. for (; s < a;)
  24897. if ((i = r[s++]) != i) return !0
  24898. } else
  24899. for (; s < a; s++)
  24900. if ((o || s in r) && r[s] === t) return o || s || 0;
  24901. return !o && -1
  24902. }
  24903. }
  24904. }, function(e, t, n) {
  24905. var i = n(42),
  24906. r = Math.max,
  24907. a = Math.min;
  24908. e.exports = function(e, t) {
  24909. return (e = i(e)) < 0 ? r(e + t, 0) : a(e, t)
  24910. }
  24911. }, function(e, t, n) {
  24912. "use strict";
  24913. var i = n(243),
  24914. r = n(244),
  24915. a = n(29),
  24916. s = n(19);
  24917. e.exports = n(68)(Array, "Array", function(e, t) {
  24918. this._t = s(e), this._i = 0, this._k = t
  24919. }, function() {
  24920. var e = this._t,
  24921. t = this._k,
  24922. n = this._i++;
  24923. return !e || n >= e.length ? (this._t = void 0, r(1)) : r(0, "keys" == t ? n :
  24924. "values" == t ? e[n] : [n, e[n]])
  24925. }, "values"), a.Arguments = a.Array, i("keys"), i("values"), i("entries")
  24926. }, function(e, t) {
  24927. e.exports = function() {}
  24928. }, function(e, t) {
  24929. e.exports = function(e, t) {
  24930. return {
  24931. value: t,
  24932. done: !!e
  24933. }
  24934. }
  24935. }, function(e, t, n) {
  24936. "use strict";
  24937. function i() {}
  24938. var r, a, s, o, u = n(27),
  24939. c = n(6),
  24940. d = n(22),
  24941. l = n(76),
  24942. h = n(8),
  24943. _ = n(16),
  24944. f = n(34),
  24945. m = n(246),
  24946. p = n(247),
  24947. y = n(80),
  24948. v = n(81).set,
  24949. g = n(249)(),
  24950. M = n(51),
  24951. L = n(82),
  24952. S = n(250),
  24953. k = n(83),
  24954. b = "Promise",
  24955. w = c.TypeError,
  24956. D = c.process,
  24957. T = D && D.versions,
  24958. E = T && T.v8 || "",
  24959. Y = c[b],
  24960. P = "process" == l(D),
  24961. C = a = M.f,
  24962. l = !! function() {
  24963. try {
  24964. var e = Y.resolve(1),
  24965. t = (e.constructor = {})[n(7)("species")] = function(e) {
  24966. e(i, i)
  24967. };
  24968. return (P || "function" == typeof PromiseRejectionEvent) && e.then(i) instanceof t &&
  24969. 0 !== E.indexOf("6.6") && -1 === S.indexOf("Chrome/66")
  24970. } catch (e) {}
  24971. }(),
  24972. A = function(e) {
  24973. var t;
  24974. return !(!_(e) || "function" != typeof(t = e.then)) && t
  24975. },
  24976. R = function(h, n) {
  24977. var i;
  24978. h._n || (h._n = !0, i = h._c, g(function() {
  24979. for (var r, d = h._v, l = 1 == h._s, e = 0, t = function(e) {
  24980. var t, n, i, r, a = l ? e.ok : e.fail,
  24981. s = e.resolve,
  24982. o = e.reject,
  24983. u = e.domain;
  24984. try {
  24985. a ? (l || (2 == h._h && (r = h, v.call(c, function() {
  24986. var e;
  24987. P ? D.emit("rejectionHandled", r) :
  24988. (e = c.onrejectionhandled) &&
  24989. e({
  24990. promise: r,
  24991. reason: r._v
  24992. })
  24993. })), h._h = 1), !0 === a ? t = d : (u && u.enter(),
  24994. t = a(d), u && (u.exit(), i = !0)), t === e
  24995. .promise ? o(w("Promise-chain cycle")) : (n = A(
  24996. t)) ? n.call(t, s, o) : s(t)) : o(d)
  24997. } catch (e) {
  24998. u && !i && u.exit(), o(e)
  24999. }
  25000. }; i.length > e;) t(i[e++]);
  25001. h._c = [], h._n = !1, n && !h._h && (r = h, v.call(c, function() {
  25002. var e, t, n = r._v,
  25003. i = x(r);
  25004. if (i && (e = L(function() {
  25005. P ? D.emit("unhandledRejection", n, r) : (
  25006. t = c.onunhandledrejection) ? t({
  25007. promise: r,
  25008. reason: n
  25009. }) : (t = c.console) && t.error && t
  25010. .error("Unhandled promise rejection", n)
  25011. }), r._h = P || x(r) ? 2 : 1), r._a = void 0, i && e.e)
  25012. throw e.v
  25013. }))
  25014. }))
  25015. },
  25016. x = function(e) {
  25017. return 1 !== e._h && 0 === (e._a || e._c).length
  25018. },
  25019. O = function(e) {
  25020. var t = this;
  25021. t._d || (t._d = !0, (t = t._w || t)._v = e, t._s = 2, t._a || (t._a = t._c.slice()), R(t, !
  25022. 0))
  25023. },
  25024. I = function(e) {
  25025. var n, i = this;
  25026. if (!i._d) {
  25027. i._d = !0, i = i._w || i;
  25028. try {
  25029. if (i === e) throw w("Promise can't be resolved itself");
  25030. (n = A(e)) ? g(function() {
  25031. var t = {
  25032. _w: i,
  25033. _d: !1
  25034. };
  25035. try {
  25036. n.call(e, d(I, t, 1), d(O, t, 1))
  25037. } catch (e) {
  25038. O.call(t, e)
  25039. }
  25040. }): (i._v = e, i._s = 1, R(i, !1))
  25041. } catch (e) {
  25042. O.call({
  25043. _w: i,
  25044. _d: !1
  25045. }, e)
  25046. }
  25047. }
  25048. };
  25049. l || (Y = function(e) {
  25050. m(this, Y, b, "_h"), f(e), r.call(this);
  25051. try {
  25052. e(d(I, this, 1), d(O, this, 1))
  25053. } catch (e) {
  25054. O.call(this, e)
  25055. }
  25056. }, (r = function(e) {
  25057. this._c = [], this._a = void 0, this._s = 0, this._d = !1, this._v = void 0, this
  25058. ._h = 0, this._n = !1
  25059. }).prototype = n(251)(Y.prototype, {
  25060. then: function(e, t) {
  25061. var n = C(y(this, Y));
  25062. return n.ok = "function" != typeof e || e, n.fail = "function" ==
  25063. typeof t && t, n.domain = P ? D.domain : void 0, this._c.push(n), this
  25064. ._a && this._a.push(n), this._s && R(this, !1), n.promise
  25065. },
  25066. catch: function(e) {
  25067. return this.then(void 0, e)
  25068. }
  25069. }), s = function() {
  25070. var e = new r;
  25071. this.promise = e, this.resolve = d(I, e, 1), this.reject = d(O, e, 1)
  25072. }, M.f = C = function(e) {
  25073. return e === Y || e === o ? new s : a(e)
  25074. }), h(h.G + h.W + h.F * !l, {
  25075. Promise: Y
  25076. }), n(36)(Y, b), n(252)(b), o = n(3)[b], h(h.S + h.F * !l, b, {
  25077. reject: function(e) {
  25078. var t = C(this);
  25079. return (0, t.reject)(e), t.promise
  25080. }
  25081. }), h(h.S + h.F * (u || !l), b, {
  25082. resolve: function(e) {
  25083. return k(u && this === o ? Y : this, e)
  25084. }
  25085. }), h(h.S + h.F * !(l && n(84)(function(e) {
  25086. Y.all(e).catch(i)
  25087. })), b, {
  25088. all: function(e) {
  25089. var s = this,
  25090. t = C(s),
  25091. o = t.resolve,
  25092. u = t.reject,
  25093. n = L(function() {
  25094. var i = [],
  25095. r = 0,
  25096. a = 1;
  25097. p(e, !1, function(e) {
  25098. var t = r++,
  25099. n = !1;
  25100. i.push(void 0), a++, s.resolve(e).then(function(e) {
  25101. n || (n = !0, i[t] = e, --a || o(i))
  25102. }, u)
  25103. }), --a || o(i)
  25104. });
  25105. return n.e && u(n.v), t.promise
  25106. },
  25107. race: function(e) {
  25108. var t = this,
  25109. n = C(t),
  25110. i = n.reject,
  25111. r = L(function() {
  25112. p(e, !1, function(e) {
  25113. t.resolve(e).then(n.resolve, i)
  25114. })
  25115. });
  25116. return r.e && i(r.v), n.promise
  25117. }
  25118. })
  25119. }, function(e, t) {
  25120. e.exports = function(e, t, n, i) {
  25121. if (!(e instanceof t) || void 0 !== i && i in e) throw TypeError(n +
  25122. ": incorrect invocation!");
  25123. return e
  25124. }
  25125. }, function(e, t, n) {
  25126. var h = n(22),
  25127. c = n(77),
  25128. _ = n(78),
  25129. f = n(13),
  25130. m = n(47),
  25131. p = n(79),
  25132. y = {},
  25133. v = {};
  25134. (t = e.exports = function(e, t, n, i, r) {
  25135. var a, s, o, u, r = r ? function() {
  25136. return e
  25137. } : p(e),
  25138. d = h(n, i, t ? 2 : 1),
  25139. l = 0;
  25140. if ("function" != typeof r) throw TypeError(e + " is not iterable!");
  25141. if (_(r)) {
  25142. for (a = m(e.length); l < a; l++)
  25143. if ((u = t ? d(f(s = e[l])[0], s[1]) : d(e[l])) === y || u === v) return u
  25144. } else
  25145. for (o = r.call(e); !(s = o.next()).done;)
  25146. if ((u = c(o, d, s.value, t)) === y || u === v) return u
  25147. }).BREAK = y, t.RETURN = v
  25148. }, function(e, t) {
  25149. e.exports = function(e, t, n) {
  25150. var i = void 0 === n;
  25151. switch (t.length) {
  25152. case 0:
  25153. return i ? e() : e.call(n);
  25154. case 1:
  25155. return i ? e(t[0]) : e.call(n, t[0]);
  25156. case 2:
  25157. return i ? e(t[0], t[1]) : e.call(n, t[0], t[1]);
  25158. case 3:
  25159. return i ? e(t[0], t[1], t[2]) : e.call(n, t[0], t[1], t[2]);
  25160. case 4:
  25161. return i ? e(t[0], t[1], t[2], t[3]) : e.call(n, t[0], t[1], t[2], t[3])
  25162. }
  25163. return e.apply(n, t)
  25164. }
  25165. }, function(e, t, n) {
  25166. var o = n(6),
  25167. u = n(81).set,
  25168. d = o.MutationObserver || o.WebKitMutationObserver,
  25169. l = o.process,
  25170. h = o.Promise,
  25171. c = "process" == n(31)(l);
  25172. e.exports = function() {
  25173. function e() {
  25174. var e, t;
  25175. for (c && (e = l.domain) && e.exit(); n;) {
  25176. t = n.fn, n = n.next;
  25177. try {
  25178. t()
  25179. } catch (e) {
  25180. throw n ? r() : i = void 0, e
  25181. }
  25182. }
  25183. i = void 0, e && e.enter()
  25184. }
  25185. var n, i, t, r, a, s;
  25186. return r = c ? function() {
  25187. l.nextTick(e)
  25188. } : !d || o.navigator && o.navigator.standalone ? h && h.resolve ? (t = h.resolve(
  25189. void 0), function() {
  25190. t.then(e)
  25191. }) : function() {
  25192. u.call(o, e)
  25193. } : (a = !0, s = document.createTextNode(""), new d(e).observe(s, {
  25194. characterData: !0
  25195. }), function() {
  25196. s.data = a = !a
  25197. }),
  25198. function(e) {
  25199. e = {
  25200. fn: e,
  25201. next: void 0
  25202. };
  25203. i && (i.next = e), n || (n = e, r()), i = e
  25204. }
  25205. }
  25206. }, function(e, t, n) {
  25207. n = n(6).navigator;
  25208. e.exports = n && n.userAgent || ""
  25209. }, function(e, t, n) {
  25210. var r = n(17);
  25211. e.exports = function(e, t, n) {
  25212. for (var i in t) n && e[i] ? e[i] = t[i] : r(e, i, t[i]);
  25213. return e
  25214. }
  25215. }, function(e, t, n) {
  25216. "use strict";
  25217. var i = n(6),
  25218. r = n(3),
  25219. a = n(12),
  25220. s = n(14),
  25221. o = n(7)("species");
  25222. e.exports = function(e) {
  25223. e = ("function" == typeof r[e] ? r : i)[e];
  25224. s && e && !e[o] && a.f(e, o, {
  25225. configurable: !0,
  25226. get: function() {
  25227. return this
  25228. }
  25229. })
  25230. }
  25231. }, function(e, t, n) {
  25232. "use strict";
  25233. var i = n(8),
  25234. r = n(3),
  25235. a = n(6),
  25236. s = n(80),
  25237. o = n(83);
  25238. i(i.P + i.R, "Promise", {
  25239. finally: function(t) {
  25240. var n = s(this, r.Promise || a.Promise),
  25241. e = "function" == typeof t;
  25242. return this.then(e ? function(e) {
  25243. return o(n, t()).then(function() {
  25244. return e
  25245. })
  25246. } : t, e ? function(e) {
  25247. return o(n, t()).then(function() {
  25248. throw e
  25249. })
  25250. } : t)
  25251. }
  25252. })
  25253. }, function(e, t, n) {
  25254. "use strict";
  25255. var i = n(8),
  25256. r = n(51),
  25257. a = n(82);
  25258. i(i.S, "Promise", {
  25259. try: function(e) {
  25260. var t = r.f(this),
  25261. e = a(e);
  25262. return (e.e ? t.reject : t.resolve)(e.v), t.promise
  25263. }
  25264. })
  25265. }, function(e, t, n) {
  25266. n(256), e.exports = n(3).Object.keys
  25267. }, function(e, t, n) {
  25268. var i = n(24),
  25269. r = n(30);
  25270. n(52)("keys", function() {
  25271. return function(e) {
  25272. return r(i(e))
  25273. }
  25274. })
  25275. }, function(e, t, n) {
  25276. var i = function() {
  25277. return this
  25278. }() || Function("return this")(),
  25279. r = i.regeneratorRuntime && 0 <= Object.getOwnPropertyNames(i).indexOf("regeneratorRuntime"),
  25280. a = r && i.regeneratorRuntime;
  25281. if (i.regeneratorRuntime = void 0, e.exports = n(258), r) i.regeneratorRuntime = a;
  25282. else try {
  25283. delete i.regeneratorRuntime
  25284. } catch (e) {
  25285. i.regeneratorRuntime = void 0
  25286. }
  25287. }, function(T, e) {
  25288. ! function(e) {
  25289. "use strict";
  25290. var u, d, l, h, c, _, t, n = Object.prototype,
  25291. f = n.hasOwnProperty,
  25292. i = "function" == typeof Symbol ? Symbol : {},
  25293. r = i.iterator || "@@iterator",
  25294. a = i.asyncIterator || "@@asyncIterator",
  25295. s = i.toStringTag || "@@toStringTag",
  25296. i = "object" == typeof T,
  25297. o = e.regeneratorRuntime;
  25298. function m(e, t, n, i) {
  25299. var r, a, s, o, t = t && t.prototype instanceof y ? t : y,
  25300. t = Object.create(t.prototype),
  25301. i = new b(i || []);
  25302. return t._invoke = (r = e, a = n, s = i, o = d, function(e, t) {
  25303. if (o === h) throw new Error("Generator is already running");
  25304. if (o === c) {
  25305. if ("throw" === e) throw t;
  25306. return D()
  25307. }
  25308. for (s.method = e, s.arg = t;;) {
  25309. var n = s.delegate;
  25310. if (n) {
  25311. var i = function e(t, n) {
  25312. var i = t.iterator[n.method];
  25313. if (i === u) {
  25314. if (n.delegate = null, "throw" === n.method) {
  25315. if (t.iterator.return && (n.method = "return", n.arg =
  25316. u, e(t, n), "throw" === n.method)) return _;
  25317. n.method = "throw", n.arg = new TypeError(
  25318. "The iterator does not provide a 'throw' method"
  25319. )
  25320. }
  25321. return _
  25322. }
  25323. var i = p(i, t.iterator, n.arg);
  25324. if ("throw" === i.type) return n.method = "throw", n.arg = i
  25325. .arg, n.delegate = null, _;
  25326. i = i.arg;
  25327. if (!i) return n.method = "throw", n.arg = new TypeError(
  25328. "iterator result is not an object"), n.delegate =
  25329. null, _; {
  25330. if (!i.done) return i;
  25331. n[t.resultName] = i.value, n.next = t.nextLoc, "return" !==
  25332. n.method && (n.method = "next", n.arg = u)
  25333. }
  25334. n.delegate = null;
  25335. return _
  25336. }(n, s);
  25337. if (i) {
  25338. if (i === _) continue;
  25339. return i
  25340. }
  25341. }
  25342. if ("next" === s.method) s.sent = s._sent = s.arg;
  25343. else if ("throw" === s.method) {
  25344. if (o === d) throw o = c, s.arg;
  25345. s.dispatchException(s.arg)
  25346. } else "return" === s.method && s.abrupt("return", s.arg);
  25347. o = h;
  25348. i = p(r, a, s);
  25349. if ("normal" === i.type) {
  25350. if (o = s.done ? c : l, i.arg !== _) return {
  25351. value: i.arg,
  25352. done: s.done
  25353. }
  25354. } else "throw" === i.type && (o = c, s.method = "throw", s.arg = i.arg)
  25355. }
  25356. }), t
  25357. }
  25358. function p(e, t, n) {
  25359. try {
  25360. return {
  25361. type: "normal",
  25362. arg: e.call(t, n)
  25363. }
  25364. } catch (e) {
  25365. return {
  25366. type: "throw",
  25367. arg: e
  25368. }
  25369. }
  25370. }
  25371. function y() {}
  25372. function v() {}
  25373. function g() {}
  25374. function M(e) {
  25375. ["next", "throw", "return"].forEach(function(t) {
  25376. e[t] = function(e) {
  25377. return this._invoke(t, e)
  25378. }
  25379. })
  25380. }
  25381. function L(s) {
  25382. var t;
  25383. this._invoke = function(n, i) {
  25384. function e() {
  25385. return new Promise(function(e, t) {
  25386. ! function t(e, n, i, r) {
  25387. e = p(s[e], s, n);
  25388. if ("throw" !== e.type) {
  25389. var a = e.arg;
  25390. return (n = a.value) && "object" == typeof n && f.call(n,
  25391. "__await") ? Promise.resolve(n.__await).then(
  25392. function(e) {
  25393. t("next", e, i, r)
  25394. },
  25395. function(e) {
  25396. t("throw", e, i, r)
  25397. }) : Promise.resolve(n).then(function(e) {
  25398. a.value = e, i(a)
  25399. }, r)
  25400. }
  25401. r(e.arg)
  25402. }(n, i, e, t)
  25403. })
  25404. }
  25405. return t = t ? t.then(e, e) : e()
  25406. }
  25407. }
  25408. function S(e) {
  25409. var t = {
  25410. tryLoc: e[0]
  25411. };
  25412. 1 in e && (t.catchLoc = e[1]), 2 in e && (t.finallyLoc = e[2], t.afterLoc = e[3]), this
  25413. .tryEntries.push(t)
  25414. }
  25415. function k(e) {
  25416. var t = e.completion || {};
  25417. t.type = "normal", delete t.arg, e.completion = t
  25418. }
  25419. function b(e) {
  25420. this.tryEntries = [{
  25421. tryLoc: "root"
  25422. }], e.forEach(S, this), this.reset(!0)
  25423. }
  25424. function w(t) {
  25425. if (t) {
  25426. var e = t[r];
  25427. if (e) return e.call(t);
  25428. if ("function" == typeof t.next) return t;
  25429. if (!isNaN(t.length)) {
  25430. var n = -1,
  25431. e = function e() {
  25432. for (; ++n < t.length;)
  25433. if (f.call(t, n)) return e.value = t[n], e.done = !1, e;
  25434. return e.value = u, e.done = !0, e
  25435. };
  25436. return e.next = e
  25437. }
  25438. }
  25439. return {
  25440. next: D
  25441. }
  25442. }
  25443. function D() {
  25444. return {
  25445. value: u,
  25446. done: !0
  25447. }
  25448. }
  25449. o ? i && (T.exports = o) : ((o = e.regeneratorRuntime = i ? T.exports : {}).wrap = m, d =
  25450. "suspendedStart", l = "suspendedYield", h = "executing", c = "completed", _ = {}, (
  25451. e = {})[r] = function() {
  25452. return this
  25453. }, (i = (i = Object.getPrototypeOf) && i(i(w([])))) && i !== n && f.call(i, r) && (e =
  25454. i), t = g.prototype = y.prototype = Object.create(e), (v.prototype = t.constructor =
  25455. g).constructor = v, g[s] = v.displayName = "GeneratorFunction", o
  25456. .isGeneratorFunction = function(e) {
  25457. e = "function" == typeof e && e.constructor;
  25458. return !!e && (e === v || "GeneratorFunction" === (e.displayName || e.name))
  25459. }, o.mark = function(e) {
  25460. return Object.setPrototypeOf ? Object.setPrototypeOf(e, g) : (e.__proto__ = g, s in
  25461. e || (e[s] = "GeneratorFunction")), e.prototype = Object.create(t), e
  25462. }, o.awrap = function(e) {
  25463. return {
  25464. __await: e
  25465. }
  25466. }, M(L.prototype), L.prototype[a] = function() {
  25467. return this
  25468. }, o.AsyncIterator = L, o.async = function(e, t, n, i) {
  25469. var r = new L(m(e, t, n, i));
  25470. return o.isGeneratorFunction(t) ? r : r.next().then(function(e) {
  25471. return e.done ? e.value : r.next()
  25472. })
  25473. }, M(t), t[s] = "Generator", t[r] = function() {
  25474. return this
  25475. }, t.toString = function() {
  25476. return "[object Generator]"
  25477. }, o.keys = function(n) {
  25478. var e, i = [];
  25479. for (e in n) i.push(e);
  25480. return i.reverse(),
  25481. function e() {
  25482. for (; i.length;) {
  25483. var t = i.pop();
  25484. if (t in n) return e.value = t, e.done = !1, e
  25485. }
  25486. return e.done = !0, e
  25487. }
  25488. }, o.values = w, b.prototype = {
  25489. constructor: b,
  25490. reset: function(e) {
  25491. if (this.prev = 0, this.next = 0, this.sent = this._sent = u, this.done = !
  25492. 1, this.delegate = null, this.method = "next", this.arg = u, this
  25493. .tryEntries.forEach(k), !e)
  25494. for (var t in this) "t" === t.charAt(0) && f.call(this, t) && !isNaN(+t
  25495. .slice(1)) && (this[t] = u)
  25496. },
  25497. stop: function() {
  25498. this.done = !0;
  25499. var e = this.tryEntries[0].completion;
  25500. if ("throw" === e.type) throw e.arg;
  25501. return this.rval
  25502. },
  25503. dispatchException: function(n) {
  25504. if (this.done) throw n;
  25505. var i = this;
  25506. function e(e, t) {
  25507. return a.type = "throw", a.arg = n, i.next = e, t && (i.method = "next",
  25508. i.arg = u), !!t
  25509. }
  25510. for (var t = this.tryEntries.length - 1; 0 <= t; --t) {
  25511. var r = this.tryEntries[t],
  25512. a = r.completion;
  25513. if ("root" === r.tryLoc) return e("end");
  25514. if (r.tryLoc <= this.prev) {
  25515. var s = f.call(r, "catchLoc"),
  25516. o = f.call(r, "finallyLoc");
  25517. if (s && o) {
  25518. if (this.prev < r.catchLoc) return e(r.catchLoc, !0);
  25519. if (this.prev < r.finallyLoc) return e(r.finallyLoc)
  25520. } else if (s) {
  25521. if (this.prev < r.catchLoc) return e(r.catchLoc, !0)
  25522. } else {
  25523. if (!o) throw new Error(
  25524. "try statement without catch or finally");
  25525. if (this.prev < r.finallyLoc) return e(r.finallyLoc)
  25526. }
  25527. }
  25528. }
  25529. },
  25530. abrupt: function(e, t) {
  25531. for (var n = this.tryEntries.length - 1; 0 <= n; --n) {
  25532. var i = this.tryEntries[n];
  25533. if (i.tryLoc <= this.prev && f.call(i, "finallyLoc") && this.prev < i
  25534. .finallyLoc) {
  25535. var r = i;
  25536. break
  25537. }
  25538. }
  25539. var a = (r = r && ("break" === e || "continue" === e) && r.tryLoc <= t &&
  25540. t <= r.finallyLoc ? null : r) ? r.completion : {};
  25541. return a.type = e, a.arg = t, r ? (this.method = "next", this.next = r
  25542. .finallyLoc, _) : this.complete(a)
  25543. },
  25544. complete: function(e, t) {
  25545. if ("throw" === e.type) throw e.arg;
  25546. return "break" === e.type || "continue" === e.type ? this.next = e.arg :
  25547. "return" === e.type ? (this.rval = this.arg = e.arg, this.method =
  25548. "return", this.next = "end") : "normal" === e.type && t && (this
  25549. .next = t), _
  25550. },
  25551. finish: function(e) {
  25552. for (var t = this.tryEntries.length - 1; 0 <= t; --t) {
  25553. var n = this.tryEntries[t];
  25554. if (n.finallyLoc === e) return this.complete(n.completion, n.afterLoc),
  25555. k(n), _
  25556. }
  25557. },
  25558. catch: function(e) {
  25559. for (var t = this.tryEntries.length - 1; 0 <= t; --t) {
  25560. var n = this.tryEntries[t];
  25561. if (n.tryLoc === e) {
  25562. var i, r = n.completion;
  25563. return "throw" === r.type && (i = r.arg, k(n)), i
  25564. }
  25565. }
  25566. throw new Error("illegal catch attempt")
  25567. },
  25568. delegateYield: function(e, t, n) {
  25569. return this.delegate = {
  25570. iterator: w(e),
  25571. resultName: t,
  25572. nextLoc: n
  25573. }, "next" === this.method && (this.arg = u), _
  25574. }
  25575. })
  25576. }(function() {
  25577. return this
  25578. }() || Function("return this")())
  25579. }, function(e, t, n) {
  25580. e.exports = {
  25581. default: n(260),
  25582. __esModule: !0
  25583. }
  25584. }, function(e, t, n) {
  25585. n(261);
  25586. var i = n(3).Object;
  25587. e.exports = function(e, t, n) {
  25588. return i.defineProperty(e, t, n)
  25589. }
  25590. }, function(e, t, n) {
  25591. var i = n(8);
  25592. i(i.S + i.F * !n(14), "Object", {
  25593. defineProperty: n(12).f
  25594. })
  25595. }, function(e, t, n) {
  25596. "use strict";
  25597. Object.defineProperty(t, "__esModule", {
  25598. value: !0
  25599. }), t.StreamClient = void 0;
  25600. var d = _(n(11)),
  25601. i = _(n(1)),
  25602. r = _(n(2)),
  25603. a = _(n(87)),
  25604. s = n(265),
  25605. o = n(266),
  25606. u = n(268),
  25607. l = n(282),
  25608. h = _(n(10)),
  25609. k = function(e) {
  25610. {
  25611. if (e && e.__esModule) return e;
  25612. var t = {};
  25613. if (null != e)
  25614. for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
  25615. return t.default = e, t
  25616. }
  25617. }(n(61)),
  25618. c = _(n(91));
  25619. function _(e) {
  25620. return e && e.__esModule ? e : {
  25621. default: e
  25622. }
  25623. }
  25624. var f, b, w, D, T, E, r = (f = new s.DirectDeviceCustom, b = new o.DirectDevice, w = new u
  25625. .LiveMedia, D = new l.LocalService, T = 6e3, E = {}, (0, r.default)(m, [{
  25626. key: "openStream",
  25627. value: function(e, c, _, n) {
  25628. var f = this,
  25629. m = !1,
  25630. t = !1; - 1 < e.indexOf("[") && (t = !0);
  25631. var i = e.split("://"),
  25632. e = i[0],
  25633. p = "",
  25634. y = 7681,
  25635. v = 1,
  25636. g = 0,
  25637. M = !1,
  25638. r = !1,
  25639. g = t ? (p = i[1].split("]:")[0] + "]", y = Math.floor(i[1].split(
  25640. "]:")[1].split("/")[0]), v = Math.floor(i[1].split("]:")[1]
  25641. .split("/")[1] / 100), Math.floor(i[1].split("]:")[1].split(
  25642. "/")[1] % 100) - 1) : (p = i[1].split(":")[0], y = Math.floor(i[
  25643. 1].split(":")[1].split("/")[0]), v = Math.floor(i[1].split(
  25644. ":")[1].split("/")[1] / 100), Math.floor(i[1].split(":")[1]
  25645. .split("/")[1] % 100) - 1);
  25646. 0 === v && (g = 0);
  25647. t = "&sessionID=";
  25648. (c = c || {}).token && !c.playURL && (t = "&token=");
  25649. var i = c.sessionID || c.session || (c.playURL ? "" : c.token) || "",
  25650. L = new window.WebSocket(e + "://" + p + ":" + y + (c.mode ? "/" + c
  25651. .mode : "") + "?version=" + this.szProtocolVersion +
  25652. "&cipherSuites=" + this.iCiphersuites + t + i + (c.proxy ?
  25653. "&proxy=" + c.proxy : ""));
  25654. L.binaryType = "arraybuffer";
  25655. var S = a.default.v4();
  25656. return new d.default(function(l, h) {
  25657. L.onopen = function() {
  25658. f._log.I("websocket onopen"), E[S] = setTimeout(
  25659. function() {
  25660. M || r || !L || (L.onopen = null, L
  25661. .onmessage = null, L.close(1e3,
  25662. "CLOSE"), L.close = null,
  25663. clearTimeout(E[S]), f._log.W(
  25664. "recv stream timeout"), h())
  25665. }, T)
  25666. }, L.onmessage = function(e) {
  25667. if ("string" == typeof e.data) {
  25668. var t, n = f.getIndex(S),
  25669. i = JSON.parse(e.data);
  25670. if (i && i.hasOwnProperty("statusCode") && (f
  25671. .aWebsocket[n].statusCode = i
  25672. .statusCode, 0 === i.statusCode ? -1 ===
  25673. n ? l() : f.aWebsocket[n].resolve() : -
  25674. 1 === n ? h(i) : f.aWebsocket[n].reject(
  25675. i)), !m && i.cmd && "end" === i.cmd)
  25676. return m = !0, f._log.I("回放结束,媒体流关闭"),
  25677. void _({
  25678. cmd: "end"
  25679. });
  25680. if (i && i.version && i.cipherSuite) {
  25681. f._log.D("websocket onmessage: PKD", i), f
  25682. .szProtocolVersion = i.version, f
  25683. .iCiphersuites = parseInt(i.cipherSuite,
  25684. 10), i && i.PKD && i.rand ? f
  25685. .aWebsocket.push(w.createClientObject(L,
  25686. S, i.PKD, i.rand, c)) : (t =
  25687. "live://" + p + ":" + y + "/" + v +
  25688. "/" + g, -1 === f.iCiphersuites ? f
  25689. .aWebsocket.push(D
  25690. .createClientObject(L, S, t, c)
  25691. ) : f.aWebsocket.push(b
  25692. .createClientObject(L, S, t)));
  25693. var r = f.getIndex(S);
  25694. return f.aWebsocket[r].statusCode = -1,
  25695. void l(S)
  25696. }
  25697. i && i.sdp && (f._log.I(
  25698. "websocket onmessage: sdp", i), t =
  25699. b.getMediaFromSdp(i.sdp), r = b
  25700. .getSdpParams(i.sdp), a = b.getSDPInfo(i
  25701. .sdp), _({
  25702. bHead: !0,
  25703. oParams: r,
  25704. buf: t,
  25705. iClockFrequency: a
  25706. .iClockFrequency,
  25707. iCurrentTime: a.iCurrentTime
  25708. }), -1 !== (a = f.aWebsocket.findIndex(
  25709. function(e) {
  25710. return e.id === S
  25711. })) && f.aWebsocket[a].resolve())
  25712. } else {
  25713. var a = {},
  25714. s = e.data;
  25715. if (64 === s.byteLength || 40 === s
  25716. .byteLength) {
  25717. for (var o = -1, u = s.byteLength, d =
  25718. 0; d < u; d++)
  25719. if (73 === s[d] && 77 === s[d + 1] &&
  25720. 75 === s[d + 2] && 72 === s[d + 3]
  25721. ) {
  25722. o = d;
  25723. break
  25724. } a = -1 !== o ? {
  25725. bHead: !0,
  25726. buf: s.slice(o, o + 40)
  25727. } : {
  25728. bHead: !1,
  25729. buf: s
  25730. }
  25731. } else a = {
  25732. bHead: !1,
  25733. buf: s
  25734. };
  25735. _(a), M = !(e = a = s = null)
  25736. }
  25737. }, L.onclose = function(e) {
  25738. var t;
  25739. 1e3 !== e.code && 1005 !== e.code || -1 === (t = f
  25740. .aWebsocket.findIndex(function(e) {
  25741. return e.id === S
  25742. })) || (f._log.I("Stream closed", e), 0 !==
  25743. f.aWebsocket[t].statusCode ? f.aWebsocket[t]
  25744. .reject(k.ERR_STREAM_CMD_FAILED) : f
  25745. .aWebsocket[t].resolve(), f.aWebsocket
  25746. .splice(t, 1)), n(e), r = !0
  25747. }
  25748. })
  25749. }
  25750. }, {
  25751. key: "startPlay",
  25752. value: function(e, i, r, a) {
  25753. var s = this,
  25754. o = this.getIndex(e);
  25755. return i && r && "0.1" === this.szProtocolVersion && (i = i.replace("-",
  25756. "").replace(":", ""), r = r.replace("-", "").replace(":",
  25757. "")), new d.default(function(e, t) {
  25758. if (-1 < o) {
  25759. s.aWebsocket[o].resolve = e, s.aWebsocket[o].reject = t;
  25760. var n = null;
  25761. i && r ? "0.1" !== s.szProtocolVersion ? 0 === s
  25762. .iCiphersuites ? n = w.playbackCmd(s.aWebsocket[o],
  25763. i, r, a) : 1 === s.iCiphersuites ? n = b
  25764. .playbackCmd(i, r, s.aWebsocket[o].playURL) : -1 ===
  25765. s.iCiphersuites && (n = D.playbackCmd(s.aWebsocket[
  25766. o], i, r)) : n = f.playbackCmd(i, r, s
  25767. .aWebsocket[o].iCurChannel, s.aWebsocket[o]
  25768. .iCurStream) : 0 === s.aWebsocket[o]
  25769. .iCurChannel && "0.1" === s.szProtocolVersion ? n =
  25770. f.zeroPlayCmd(s.aWebsocket[o].iCurChannel, s
  25771. .aWebsocket[o].iCurStream) : "0.1" !== s
  25772. .szProtocolVersion ? 0 === s.iCiphersuites ? n = w
  25773. .playCmd(s.aWebsocket[o], a) : 1 === s
  25774. .iCiphersuites ? n = b.playCmd(s.aWebsocket[o]
  25775. .playURL) : -1 === s.iCiphersuites && (n = D
  25776. .playCmd(s.aWebsocket[o])) : n = f.playCmd(s
  25777. .aWebsocket[o].iCurChannel, s.aWebsocket[o]
  25778. .iCurStream);
  25779. try {
  25780. s.aWebsocket[o].socket.send(n)
  25781. } catch (e) {
  25782. s._log.E(k.ERR_STREAM_CMD_FAILED), t(e)
  25783. }
  25784. "0.1" === s.szProtocolVersion && e()
  25785. } else "0.1" === s.szProtocolVersion && t()
  25786. })
  25787. }
  25788. }, {
  25789. key: "singleFrame",
  25790. value: function() {}
  25791. }, {
  25792. key: "setPlayRate",
  25793. value: function(a, s) {
  25794. var o = this;
  25795. return new d.default(function(e, t) {
  25796. for (var n = 0, i = o.aWebsocket.length; n < i; n++)
  25797. if (o.aWebsocket[n].id === a) {
  25798. if ("0.1" === o.szProtocolVersion) {
  25799. var r = f.playRateCmd(s);
  25800. o.aWebsocket[n].socket.send(r), e();
  25801. break
  25802. }
  25803. o.aWebsocket[n].resolve = e, o.aWebsocket[n]
  25804. .reject = t;
  25805. r = b.playRateCmd(s);
  25806. o.aWebsocket[n].socket.send(r)
  25807. }
  25808. })
  25809. }
  25810. }, {
  25811. key: "seek",
  25812. value: function(a, s, o) {
  25813. var u = this;
  25814. return new d.default(function(e, t) {
  25815. for (var n, i = 0, r = u.aWebsocket.length; i < r; i++) u
  25816. .aWebsocket[i].id === a && (u.aWebsocket[i].resolve = e,
  25817. u.aWebsocket[i].reject = t, n = w.seekCmd(s, o), u
  25818. .aWebsocket[i].socket.send(n))
  25819. })
  25820. }
  25821. }, {
  25822. key: "pause",
  25823. value: function(a) {
  25824. var s = this;
  25825. return new d.default(function(e, t) {
  25826. for (var n = 0, i = s.aWebsocket.length; n < i; n++)
  25827. if (s.aWebsocket[n].id === a) {
  25828. if ("0.1" === s.szProtocolVersion) {
  25829. var r = f.pauseCmd();
  25830. s.aWebsocket[n].socket.send(r), e();
  25831. break
  25832. }
  25833. s.aWebsocket[n].resolve = e, s.aWebsocket[n]
  25834. .reject = t;
  25835. r = b.pauseCmd();
  25836. s.aWebsocket[n].socket.send(r)
  25837. }
  25838. })
  25839. }
  25840. }, {
  25841. key: "transmission",
  25842. value: function(r, a) {
  25843. var s = this;
  25844. return new d.default(function(e, t) {
  25845. for (var n = 0, i = s.aWebsocket.length; n < i; n++) s
  25846. .aWebsocket[n].id === r && (s.aWebsocket[n].resolve = e,
  25847. s.aWebsocket[n].reject = t, s.aWebsocket[n].socket
  25848. .send(a))
  25849. })
  25850. }
  25851. }, {
  25852. key: "resume",
  25853. value: function(a) {
  25854. var s = this;
  25855. return new d.default(function(e, t) {
  25856. for (var n = 0, i = s.aWebsocket.length; n < i; n++)
  25857. if (s.aWebsocket[n].id === a) {
  25858. if ("0.1" === s.szProtocolVersion) {
  25859. var r = f.resumeCmd();
  25860. s.aWebsocket[n].socket.send(r), e();
  25861. break
  25862. }
  25863. s.aWebsocket[n].resolve = e, s.aWebsocket[n]
  25864. .reject = t;
  25865. r = b.resumeCmd();
  25866. s.aWebsocket[n].socket.send(r)
  25867. }
  25868. })
  25869. }
  25870. }, {
  25871. key: "stop",
  25872. value: function(r) {
  25873. var a = this;
  25874. return new d.default(function(e, t) {
  25875. var n = a.aWebsocket.find(function(e) {
  25876. return e.id === r
  25877. });
  25878. if (!n) return a._log.E(k.ERR_STREAM_WS_UNFIND +
  25879. ": can't find related websocket, check the index."
  25880. ), t(k.ERR_STREAM_WS_UNFIND);
  25881. if (0 === n.socket.readyState) return n.stoping = !0, n
  25882. .socket.onopen = null, n.socket.onmessage = null, n
  25883. .socket.onclose = null, n.socket = null, a._log.E(k
  25884. .ERR_STREAM_WS_UNCONNECT +
  25885. ": websocket is not connect, check the index."),
  25886. t(k.ERR_STREAM_WS_UNCONNECT);
  25887. try {
  25888. n.resolve = e;
  25889. var i = w.stopCmd();
  25890. n.socket.send(i), n.stoping = !0, n.socket.onopen =
  25891. null, n.socket.onmessage = null, n.socket.onclose =
  25892. null, n.socket = null, e()
  25893. } catch (e) {
  25894. a._log.E(k.ERR_STREAM_CMD_FAILED +
  25895. ": send signalCmd to websocket failed."), t(k
  25896. .ERR_STREAM_CMD_FAILED)
  25897. }
  25898. })
  25899. }
  25900. }, {
  25901. key: "stopAll",
  25902. value: function() {
  25903. for (var e = 0, t = this.aWebsocket.length; e < t; e++) this.aWebsocket[
  25904. e].socket.close(1e3, "CLOSE"), this.aWebsocket[e].stoping = !0,
  25905. this.aWebsocket[e].socket.onopen = null, this.aWebsocket[e].socket
  25906. .onmessage = null, this.aWebsocket[e].socket.onclose = null, this
  25907. .aWebsocket[e].socket = null
  25908. }
  25909. }, {
  25910. key: "setTimeOut",
  25911. value: function(n) {
  25912. return new d.default(function(e, t) {
  25913. T = 1e3 * n, e()
  25914. })
  25915. }
  25916. }, {
  25917. key: "closeTimer",
  25918. value: function(e) {
  25919. clearTimeout(E[e])
  25920. }
  25921. }]), m);
  25922. function m(e) {
  25923. var r = this;
  25924. (0, i.default)(this, m), this.TAG = "StreamClient", this._config = e, this._log = new c.default(
  25925. this), this._emiter = new h.default, this.szProtocolVersion = "0.1", this
  25926. .iCiphersuites = 0, this.aWebsocket = [], this.getIndex = function(e) {
  25927. for (var t = -1, n = 0, i = r.aWebsocket.length; n < i; n++)
  25928. if (r.aWebsocket[n].id === e) {
  25929. t = n;
  25930. break
  25931. } return t
  25932. }, this.autoCloseTime = 1e4, this.heartbeatTime = 2e3
  25933. }
  25934. t.StreamClient = r
  25935. }, function(e, t, n) {
  25936. var l, h, c = n(88),
  25937. _ = n(89),
  25938. f = 0,
  25939. m = 0;
  25940. e.exports = function(e, t, n) {
  25941. var i = t && n || 0,
  25942. r = t || [],
  25943. a = (e = e || {}).node || l,
  25944. s = void 0 !== e.clockseq ? e.clockseq : h;
  25945. null != a && null != s || (u = c(), null == a && (a = l = [1 | u[0], u[1], u[2], u[3], u[4],
  25946. u[5]
  25947. ]), null == s && (s = h = 16383 & (u[6] << 8 | u[7])));
  25948. var o = void 0 !== e.msecs ? e.msecs : (new Date).getTime(),
  25949. n = void 0 !== e.nsecs ? e.nsecs : m + 1,
  25950. u = o - f + (n - m) / 1e4;
  25951. if (u < 0 && void 0 === e.clockseq && (s = s + 1 & 16383), 1e4 <= (n = (u < 0 || f < o) &&
  25952. void 0 === e.nsecs ? 0 : n)) throw new Error(
  25953. "uuid.v1(): Can't create more than 10M uuids/sec");
  25954. f = o, h = s, n = (1e4 * (268435455 & (o += 122192928e5)) + (m = n)) % 4294967296, r[i++] =
  25955. n >>> 24 & 255, r[i++] = n >>> 16 & 255, r[i++] = n >>> 8 & 255, r[i++] = 255 & n, o =
  25956. o / 4294967296 * 1e4 & 268435455, r[i++] = o >>> 8 & 255, r[i++] = 255 & o, r[i++] =
  25957. o >>> 24 & 15 | 16, r[i++] = o >>> 16 & 255, r[i++] = s >>> 8 | 128, r[i++] = 255 & s;
  25958. for (var d = 0; d < 6; ++d) r[i + d] = a[d];
  25959. return t || _(r)
  25960. }
  25961. }, function(e, t, n) {
  25962. var s = n(88),
  25963. o = n(89);
  25964. e.exports = function(e, t, n) {
  25965. var i = t && n || 0;
  25966. "string" == typeof e && (t = "binary" === e ? new Array(16) : null, e = null);
  25967. var r = (e = e || {}).random || (e.rng || s)();
  25968. if (r[6] = 15 & r[6] | 64, r[8] = 63 & r[8] | 128, t)
  25969. for (var a = 0; a < 16; ++a) t[i + a] = r[a];
  25970. return t || o(r)
  25971. }
  25972. }, function(e, t, n) {
  25973. "use strict";
  25974. Object.defineProperty(t, "__esModule", {
  25975. value: !0
  25976. }), t.DirectDeviceCustom = void 0;
  25977. var i = r(n(1));
  25978. function r(e) {
  25979. return e && e.__esModule ? e : {
  25980. default: e
  25981. }
  25982. }(0, r(n(2)).default)(a, [{
  25983. key: "createClientObject",
  25984. value: function(e, t, n, i) {
  25985. return {
  25986. socket: e,
  25987. id: t,
  25988. iCurChannel: n,
  25989. iCurStream: i,
  25990. resolve: null,
  25991. reject: null,
  25992. stoping: !1
  25993. }
  25994. }
  25995. }, {
  25996. key: "zeroPlayCmd",
  25997. value: function(e, t) {
  25998. return new Uint8Array([0, 0, 0, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19, 0, 0, 0, 0,
  25999. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, e + 1, 0, 0, 0,
  26000. t, 0, 0, 4, 0
  26001. ])
  26002. }
  26003. }, {
  26004. key: "playCmd",
  26005. value: function(e, t) {
  26006. return new Uint8Array([0, 0, 0, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0,
  26007. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, e, 0, 0, 0, t, 0, 0,
  26008. 4, 0
  26009. ])
  26010. }
  26011. }, {
  26012. key: "playbackCmd",
  26013. value: function(e, t, n, i) {
  26014. var r = e.split("T")[0],
  26015. a = e.split("T")[1],
  26016. s = "0" + parseInt(r.substring(0, 4), 10).toString(16),
  26017. o = parseInt(r.substring(4, 6), 10),
  26018. u = parseInt(r.substring(6), 10),
  26019. d = parseInt(a.substring(0, 2), 10),
  26020. l = parseInt(a.substring(2, 4), 10),
  26021. h = parseInt(a.substring(4, 6), 10),
  26022. c = t.split("T")[0],
  26023. e = t.split("T")[1],
  26024. r = "0" + parseInt(c.substring(0, 4), 10).toString(16),
  26025. a = parseInt(c.substring(4, 6), 10),
  26026. t = parseInt(e.substring(0, 2), 10),
  26027. c = parseInt(e.substring(2, 4), 10),
  26028. e = parseInt(e.substring(4, 6), 10),
  26029. i = [0, 0, 0, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 1, 2, 0, 0, 0, 0, 0, 0, 0,
  26030. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, n, 0, 0, parseInt(s.substring(0, 2),
  26031. 16), parseInt(s.substring(2, 4), 16), 0, 0, 0, o, 0, 0, 0, u, 0, 0,
  26032. 0, d, 0, 0, 0, l, 0, 0, 0, h, 0, 0, parseInt(r.substring(0, 2), 16),
  26033. parseInt(r.substring(2, 4), 16), 0, 0, 0, a, 0, 0, 0, u, 0, 0, 0, t, 0,
  26034. 0, 0, c, 0, 0, 0, e, 0, 0, 0, 0, 0, 0, 0, 0, i, 0, 0, 0
  26035. ];
  26036. return new Uint8Array(i)
  26037. }
  26038. }, {
  26039. key: "playRateCmd",
  26040. value: function(e) {
  26041. for (var t = (parseInt(e, 10) >>> 0).toString(16).toLocaleUpperCase().toString(
  26042. 16), n = t.length; n < 8; n++) t = "0" + t;
  26043. for (var i = [0, 0, 0, 0], r = 0, a = t.length; r < a; r += 2) i[Math.floor(r /
  26044. 2)] = parseInt(t.substring(r, r + 2), 16);
  26045. e = [0, 0, 0, 36, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 1, 47, 0, 0, 0, 0, 0, 0, 0, 0,
  26046. 0, 0, 0, 0, 0, 0, 0, 0, i[0], i[1], i[2], i[3]
  26047. ];
  26048. return new Uint8Array(e)
  26049. }
  26050. }, {
  26051. key: "pauseCmd",
  26052. value: function() {
  26053. return new Uint8Array([0, 0, 0, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 1, 7, 0, 0, 0,
  26054. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
  26055. ])
  26056. }
  26057. }, {
  26058. key: "resumeCmd",
  26059. value: function() {
  26060. return new Uint8Array([0, 0, 0, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 1, 8, 0, 0, 0,
  26061. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
  26062. ])
  26063. }
  26064. }]), n = a;
  26065. function a() {
  26066. (0, i.default)(this, a)
  26067. }
  26068. t.DirectDeviceCustom = n
  26069. }, function(e, t, n) {
  26070. "use strict";
  26071. Object.defineProperty(t, "__esModule", {
  26072. value: !0
  26073. }), t.DirectDevice = void 0;
  26074. var i = a(n(56)),
  26075. r = a(n(1));
  26076. function a(e) {
  26077. return e && e.__esModule ? e : {
  26078. default: e
  26079. }
  26080. }(0, a(n(2)).default)(s, [{
  26081. key: "createClientObject",
  26082. value: function(e, t, n) {
  26083. return {
  26084. socket: e,
  26085. id: t,
  26086. playURL: n,
  26087. resolve: null,
  26088. reject: null,
  26089. stoping: !1
  26090. }
  26091. }
  26092. }, {
  26093. key: "getMediaFromSdp",
  26094. value: function(e) {
  26095. for (var t = e.indexOf("MEDIAINFO=") + 10, n = e.slice(t, t + 80), i = [], r =
  26096. 0, a = n.length / 2; r < a; r++) i[r] = parseInt(n.slice(2 * r, 2 * r +
  26097. 2), 16);
  26098. return new Uint8Array(i)
  26099. }
  26100. }, {
  26101. key: "sdpParamsReverse",
  26102. value: function(e) {
  26103. for (var t = [], n = 0, i = e.length / 2; n < i; n++) t[n] = e.slice(2 * n, 2 *
  26104. n + 2);
  26105. return t = parseInt(t.reverse().join(""), 16)
  26106. }
  26107. }, {
  26108. key: "getSdpParams",
  26109. value: function(e) {
  26110. var t = e.indexOf("MEDIAINFO=") + 10,
  26111. t = e.slice(t, t + 80),
  26112. n = this.sdpParamsReverse(t.slice(24, 28)),
  26113. i = this.sdpParamsReverse(t.slice(40, 48)),
  26114. r = this.sdpParamsReverse(t.slice(32, 40)),
  26115. a = parseInt(t.slice(30, 32), 16),
  26116. s = parseInt(t.slice(29, 30), 16);
  26117. switch (console.log("parse head iAudioType:" + n + ",iAudioSamplingRate:" + r +
  26118. ", iAudioBitRate:" + i + ", iAudioBitWidth:" + a + ", iChannel:" + s),
  26119. n) {
  26120. case 1984:
  26121. (n = 0) === i && (i = 32e3), 0 === r && (r = 8e3), 0 === a && (a = 16),
  26122. 0 === s && (s = 1);
  26123. break;
  26124. case 28945:
  26125. case 49154:
  26126. i = 64e3, r = 8e3, a = 16, s = n = 1;
  26127. break;
  26128. case 28944:
  26129. case 49153:
  26130. n = 2, i = 64e3, r = 8e3, a = 16, s = 1;
  26131. break;
  26132. case 29217:
  26133. case 49155:
  26134. n = 3, r = i = 16e3, a = 16, s = 1;
  26135. break;
  26136. case 29280:
  26137. case 29282:
  26138. case 49156:
  26139. n = 4, i = 16e3, r = 8e3, a = 16, s = 1;
  26140. break;
  26141. case 8193:
  26142. case 49157:
  26143. n = 6, 0 === i && (i = 32e3), 0 === r && (r = 16e3), 0 === a && (a =
  26144. 16), 0 === s && (s = 1)
  26145. }
  26146. return {
  26147. iAudioType: n,
  26148. iAudioBitRate: i,
  26149. iAudioSamplingRate: r,
  26150. iAudioBitWidth: a,
  26151. iChannel: s
  26152. }
  26153. }
  26154. }, {
  26155. key: "getSDPInfo",
  26156. value: function(e) {
  26157. var t = e.indexOf("rtpmap:96 H264/") + 15,
  26158. n = e.slice(t, t + 5),
  26159. i = parseInt(n, 10),
  26160. n = e.indexOf("o=- ") + 4,
  26161. n = e.slice(n, n + 16),
  26162. t = parseInt(n, 10) / 1e3,
  26163. n = 60 * (new Date).getTimezoneOffset() * 1e3;
  26164. return {
  26165. iClockFrequency: i,
  26166. iCurrentTime: Math.floor(t + n)
  26167. }
  26168. }
  26169. }, {
  26170. key: "playCmd",
  26171. value: function(e) {
  26172. return (0, i.default)({
  26173. sequence: 0,
  26174. cmd: "realplay",
  26175. url: e
  26176. })
  26177. }
  26178. }, {
  26179. key: "playbackCmd",
  26180. value: function(e, t, n) {
  26181. return (0, i.default)({
  26182. sequence: 0,
  26183. cmd: "playback",
  26184. url: n,
  26185. startTime: e,
  26186. endTime: t
  26187. })
  26188. }
  26189. }, {
  26190. key: "playRateCmd",
  26191. value: function(e) {
  26192. return (0, i.default)({
  26193. sequence: 0,
  26194. cmd: "speed",
  26195. rate: e
  26196. })
  26197. }
  26198. }, {
  26199. key: "pauseCmd",
  26200. value: function() {
  26201. return (0, i.default)({
  26202. sequence: 0,
  26203. cmd: "pause"
  26204. })
  26205. }
  26206. }, {
  26207. key: "resumeCmd",
  26208. value: function() {
  26209. return (0, i.default)({
  26210. sequence: 0,
  26211. cmd: "resume"
  26212. })
  26213. }
  26214. }]), n = s;
  26215. function s() {
  26216. (0, r.default)(this, s)
  26217. }
  26218. t.DirectDevice = n
  26219. }, function(e, t, n) {
  26220. var n = n(3),
  26221. i = n.JSON || (n.JSON = {
  26222. stringify: JSON.stringify
  26223. });
  26224. e.exports = function(e) {
  26225. return i.stringify.apply(i, arguments)
  26226. }
  26227. }, function(e, t, n) {
  26228. "use strict";
  26229. Object.defineProperty(t, "__esModule", {
  26230. value: !0
  26231. }), t.LiveMedia = void 0;
  26232. var r = u(n(56)),
  26233. i = u(n(1)),
  26234. a = u(n(2)),
  26235. s = u(n(269)),
  26236. o = u(n(281));
  26237. function u(e) {
  26238. return e && e.__esModule ? e : {
  26239. default: e
  26240. }
  26241. }(0, a.default)(d, [{
  26242. key: "createClientObject",
  26243. value: function(e, t, n, i, r) {
  26244. var a = o.default.AES.encrypt((new Date).getTime().toString(), o.default.enc.Hex
  26245. .parse(
  26246. "1234567891234567123456789123456712345678912345671234567891234567"
  26247. ), {
  26248. mode: o.default.mode.CBC,
  26249. iv: o.default.enc.Hex.parse("12345678912345671234567891234567"),
  26250. padding: o.default.pad.Pkcs7
  26251. }).ciphertext.toString();
  26252. a.length < 64 && (a += a);
  26253. var s = o.default.AES.encrypt((new Date).getTime().toString(), o.default.enc.Hex
  26254. .parse("12345678912345671234567891234567"), {
  26255. mode: o.default.mode.CBC,
  26256. iv: o.default.enc.Hex.parse("12345678912345671234567891234567"),
  26257. padding: o.default.pad.Pkcs7
  26258. }).ciphertext.toString();
  26259. return {
  26260. socket: e,
  26261. id: t,
  26262. PKD: n,
  26263. rand: i,
  26264. playURL: r.playURL || "",
  26265. auth: r.auth || "",
  26266. token: r.token || "",
  26267. key: a,
  26268. iv: s,
  26269. resolve: null,
  26270. reject: null,
  26271. stoping: !1
  26272. }
  26273. }
  26274. }, {
  26275. key: "playCmd",
  26276. value: function(e, t) {
  26277. e = {
  26278. sequence: 0,
  26279. cmd: t || "realplay",
  26280. url: e.playURL,
  26281. key: s.default.encrypt(e.iv + ":" + e.key, e.PKD).cipher.split("?")[0],
  26282. authorization: o.default.AES.encrypt(e.rand + ":" + e.auth, o.default
  26283. .enc.Hex.parse(e.key), {
  26284. mode: o.default.mode.CBC,
  26285. iv: o.default.enc.Hex.parse(e.iv),
  26286. padding: o.default.pad.Pkcs7
  26287. }).ciphertext.toString(),
  26288. token: o.default.AES.encrypt(e.token, o.default.enc.Hex.parse(e.key), {
  26289. mode: o.default.mode.CBC,
  26290. iv: o.default.enc.Hex.parse(e.iv),
  26291. padding: o.default.pad.Pkcs7
  26292. }).ciphertext.toString()
  26293. };
  26294. return (0, r.default)(e)
  26295. }
  26296. }, {
  26297. key: "playbackCmd",
  26298. value: function(e, t, n, i) {
  26299. n = {
  26300. sequence: 0,
  26301. cmd: i || "playback",
  26302. url: e.playURL,
  26303. key: s.default.encrypt(e.iv + ":" + e.key, e.PKD).cipher.split("?")[0],
  26304. authorization: o.default.AES.encrypt(e.rand + ":" + e.auth, o.default
  26305. .enc.Hex.parse(e.key), {
  26306. mode: o.default.mode.CBC,
  26307. iv: o.default.enc.Hex.parse(e.iv),
  26308. padding: o.default.pad.Pkcs7
  26309. }).ciphertext.toString(),
  26310. token: o.default.AES.encrypt(e.token, o.default.enc.Hex.parse(e.key), {
  26311. mode: o.default.mode.CBC,
  26312. iv: o.default.enc.Hex.parse(e.iv),
  26313. padding: o.default.pad.Pkcs7
  26314. }).ciphertext.toString(),
  26315. startTime: t,
  26316. endTime: n
  26317. };
  26318. return (0, r.default)(n)
  26319. }
  26320. }, {
  26321. key: "seekCmd",
  26322. value: function(e, t) {
  26323. return (0, r.default)({
  26324. sequence: 0,
  26325. cmd: "seek",
  26326. startTime: e,
  26327. endTime: t
  26328. })
  26329. }
  26330. }, {
  26331. key: "stopCmd",
  26332. value: function() {
  26333. return (0, r.default)({
  26334. sequence: 0,
  26335. cmd: "stop"
  26336. })
  26337. }
  26338. }]), a = d;
  26339. function d() {
  26340. (0, i.default)(this, d)
  26341. }
  26342. t.LiveMedia = a
  26343. }, function(e, t, n) {
  26344. "use strict";
  26345. var r, a = n(9),
  26346. s = (r = a) && r.__esModule ? r : {
  26347. default: r
  26348. };
  26349. var o = "Netscape",
  26350. u = 40;
  26351. function m(e, t, n) {
  26352. null != e && ("number" == typeof e ? this.fromNumber(e, t, n) : null == t && "string" !=
  26353. typeof e ? this.fromString(e, 256) : this.fromString(e, t))
  26354. }
  26355. function p() {
  26356. return new m(null)
  26357. }
  26358. n = "Microsoft Internet Explorer" == o ? (m.prototype.am = function(e, t, n, i, r, a) {
  26359. var s = 32767 & t;
  26360. for (t >>= 15; 0 <= --a;) {
  26361. var o = 32767 & this[e],
  26362. u = this[e++] >> 15,
  26363. d = t * o + u * s,
  26364. r = ((o = s * o + ((32767 & d) << 15) + n[i] + (1073741823 & r)) >>> 30) + (
  26365. d >>> 15) + t * u + (r >>> 30);
  26366. n[i++] = 1073741823 & o
  26367. }
  26368. return r
  26369. }, 30) : "Netscape" != o ? (m.prototype.am = function(e, t, n, i, r, a) {
  26370. for (; 0 <= --a;) {
  26371. var s = t * this[e++] + n[i] + r,
  26372. r = Math.floor(s / 67108864);
  26373. n[i++] = 67108863 & s
  26374. }
  26375. return r
  26376. }, 26) : (m.prototype.am = function(e, t, n, i, r, a) {
  26377. var s = 16383 & t;
  26378. for (t >>= 14; 0 <= --a;) {
  26379. var o = 16383 & this[e],
  26380. u = this[e++] >> 14,
  26381. d = t * o + u * s,
  26382. r = ((o = s * o + ((16383 & d) << 14) + n[i] + r) >> 28) + (d >> 14) + t * u;
  26383. n[i++] = 268435455 & o
  26384. }
  26385. return r
  26386. }, 28), m.prototype.DB = n, m.prototype.DM = (1 << n) - 1, m.prototype.DV = 1 << n;
  26387. m.prototype.FV = Math.pow(2, 52), m.prototype.F1 = 52 - n, m.prototype.F2 = 2 * n - 52;
  26388. for (var d = "0123456789abcdefghijklmnopqrstuvwxyz", l = [], h = "0".charCodeAt(0), c = 0; c <=
  26389. 9; ++c) l[h++] = c;
  26390. for (h = "a".charCodeAt(0), c = 10; c < 36; ++c) l[h++] = c;
  26391. for (h = "A".charCodeAt(0), c = 10; c < 36; ++c) l[h++] = c;
  26392. function _(e) {
  26393. return d.charAt(e)
  26394. }
  26395. function f(e, t) {
  26396. t = l[e.charCodeAt(t)];
  26397. return null == t ? -1 : t
  26398. }
  26399. function y(e) {
  26400. var t = p();
  26401. return t.fromInt(e), t
  26402. }
  26403. function g(e) {
  26404. var t, n = 1;
  26405. return 0 != (t = e >>> 16) && (e = t, n += 16), 0 != (t = e >> 8) && (e = t, n += 8), 0 != (t =
  26406. e >> 4) && (e = t, n += 4), 0 != (t = e >> 2) && (e = t, n += 2), e >> 1 != 0 && (n +=
  26407. 1), n
  26408. }
  26409. function M(e) {
  26410. this.m = e
  26411. }
  26412. function L(e) {
  26413. this.m = e, this.mp = e.invDigit(), this.mpl = 32767 & this.mp, this.mph = this.mp >> 15, this
  26414. .um = (1 << e.DB - 15) - 1, this.mt2 = 2 * e.t
  26415. }
  26416. function S(e, t) {
  26417. return e & t
  26418. }
  26419. function k(e, t) {
  26420. return e | t
  26421. }
  26422. function b(e, t) {
  26423. return e ^ t
  26424. }
  26425. function w(e, t) {
  26426. return e & ~t
  26427. }
  26428. function D() {}
  26429. function T(e) {
  26430. return e
  26431. }
  26432. function E(e) {
  26433. this.r2 = p(), this.q3 = p(), m.ONE.dlShiftTo(2 * e.t, this.r2), this.mu = this.r2.divide(e),
  26434. this.m = e
  26435. }
  26436. M.prototype.convert = function(e) {
  26437. return e.s < 0 || 0 <= e.compareTo(this.m) ? e.mod(this.m) : e
  26438. }, M.prototype.revert = function(e) {
  26439. return e
  26440. }, M.prototype.reduce = function(e) {
  26441. e.divRemTo(this.m, null, e)
  26442. }, M.prototype.mulTo = function(e, t, n) {
  26443. e.multiplyTo(t, n), this.reduce(n)
  26444. }, M.prototype.sqrTo = function(e, t) {
  26445. e.squareTo(t), this.reduce(t)
  26446. }, L.prototype.convert = function(e) {
  26447. var t = p();
  26448. return e.abs().dlShiftTo(this.m.t, t), t.divRemTo(this.m, null, t), e.s < 0 && 0 < t
  26449. .compareTo(m.ZERO) && this.m.subTo(t, t), t
  26450. }, L.prototype.revert = function(e) {
  26451. var t = p();
  26452. return e.copyTo(t), this.reduce(t), t
  26453. }, L.prototype.reduce = function(e) {
  26454. for (; e.t <= this.mt2;) e[e.t++] = 0;
  26455. for (var t = 0; t < this.m.t; ++t) {
  26456. var n = 32767 & e[t],
  26457. i = n * this.mpl + ((n * this.mph + (e[t] >> 15) * this.mpl & this.um) << 15) & e
  26458. .DM;
  26459. for (e[n = t + this.m.t] += this.m.am(0, i, e, t, 0, this.m.t); e[n] >= e.DV;) e[n] -= e
  26460. .DV, e[++n]++
  26461. }
  26462. e.clamp(), e.drShiftTo(this.m.t, e), 0 <= e.compareTo(this.m) && e.subTo(this.m, e)
  26463. }, L.prototype.mulTo = function(e, t, n) {
  26464. e.multiplyTo(t, n), this.reduce(n)
  26465. }, L.prototype.sqrTo = function(e, t) {
  26466. e.squareTo(t), this.reduce(t)
  26467. }, m.prototype.copyTo = function(e) {
  26468. for (var t = this.t - 1; 0 <= t; --t) e[t] = this[t];
  26469. e.t = this.t, e.s = this.s
  26470. }, m.prototype.fromInt = function(e) {
  26471. this.t = 1, this.s = e < 0 ? -1 : 0, 0 < e ? this[0] = e : e < -1 ? this[0] = e + DV : this
  26472. .t = 0
  26473. }, m.prototype.fromString = function(e, t) {
  26474. var n;
  26475. if (16 == t) n = 4;
  26476. else if (8 == t) n = 3;
  26477. else if (256 == t) n = 8;
  26478. else if (2 == t) n = 1;
  26479. else if (32 == t) n = 5;
  26480. else {
  26481. if (4 != t) return void this.fromRadix(e, t);
  26482. n = 2
  26483. }
  26484. this.s = this.t = 0;
  26485. for (var i = e.length, r = !1, a = 0; 0 <= --i;) {
  26486. var s = 8 == n ? 255 & e[i] : f(e, i);
  26487. s < 0 ? "-" == e.charAt(i) && (r = !0) : (r = !1, 0 == a ? this[this.t++] = s : a + n >
  26488. this.DB ? (this[this.t - 1] |= (s & (1 << this.DB - a) - 1) << a, this[this
  26489. .t++] = s >> this.DB - a) : this[this.t - 1] |= s << a, (a += n) >= this
  26490. .DB && (a -= this.DB))
  26491. }
  26492. 8 == n && 0 != (128 & e[0]) && (this.s = -1, 0 < a && (this[this.t - 1] |= (1 << this.DB -
  26493. a) - 1 << a)), this.clamp(), r && m.ZERO.subTo(this, this)
  26494. }, m.prototype.clamp = function() {
  26495. for (var e = this.s & this.DM; 0 < this.t && this[this.t - 1] == e;) --this.t
  26496. }, m.prototype.dlShiftTo = function(e, t) {
  26497. for (var n = this.t - 1; 0 <= n; --n) t[n + e] = this[n];
  26498. for (n = e - 1; 0 <= n; --n) t[n] = 0;
  26499. t.t = this.t + e, t.s = this.s
  26500. }, m.prototype.drShiftTo = function(e, t) {
  26501. for (var n = e; n < this.t; ++n) t[n - e] = this[n];
  26502. t.t = Math.max(this.t - e, 0), t.s = this.s
  26503. }, m.prototype.lShiftTo = function(e, t) {
  26504. for (var n = e % this.DB, i = this.DB - n, r = (1 << i) - 1, a = Math.floor(e / this.DB),
  26505. s = this.s << n & this.DM, o = this.t - 1; 0 <= o; --o) t[o + a + 1] = this[o] >>
  26506. i | s, s = (this[o] & r) << n;
  26507. for (o = a - 1; 0 <= o; --o) t[o] = 0;
  26508. t[a] = s, t.t = this.t + a + 1, t.s = this.s, t.clamp()
  26509. }, m.prototype.rShiftTo = function(e, t) {
  26510. t.s = this.s;
  26511. var n = Math.floor(e / this.DB);
  26512. if (n >= this.t) t.t = 0;
  26513. else {
  26514. var i = e % this.DB,
  26515. r = this.DB - i,
  26516. a = (1 << i) - 1;
  26517. t[0] = this[n] >> i;
  26518. for (var s = n + 1; s < this.t; ++s) t[s - n - 1] |= (this[s] & a) << r, t[s - n] =
  26519. this[s] >> i;
  26520. 0 < i && (t[this.t - n - 1] |= (this.s & a) << r), t.t = this.t - n, t.clamp()
  26521. }
  26522. }, m.prototype.subTo = function(e, t) {
  26523. for (var n = 0, i = 0, r = Math.min(e.t, this.t); n < r;) i += this[n] - e[n], t[n++] = i &
  26524. this.DM, i >>= this.DB;
  26525. if (e.t < this.t) {
  26526. for (i -= e.s; n < this.t;) i += this[n], t[n++] = i & this.DM, i >>= this.DB;
  26527. i += this.s
  26528. } else {
  26529. for (i += this.s; n < e.t;) i -= e[n], t[n++] = i & this.DM, i >>= this.DB;
  26530. i -= e.s
  26531. }
  26532. t.s = i < 0 ? -1 : 0, i < -1 ? t[n++] = this.DV + i : 0 < i && (t[n++] = i), t.t = n, t
  26533. .clamp()
  26534. }, m.prototype.multiplyTo = function(e, t) {
  26535. var n = this.abs(),
  26536. i = e.abs(),
  26537. r = n.t;
  26538. for (t.t = r + i.t; 0 <= --r;) t[r] = 0;
  26539. for (r = 0; r < i.t; ++r) t[r + n.t] = n.am(0, i[r], t, r, 0, n.t);
  26540. t.s = 0, t.clamp(), this.s != e.s && m.ZERO.subTo(t, t)
  26541. }, m.prototype.squareTo = function(e) {
  26542. for (var t = this.abs(), n = e.t = 2 * t.t; 0 <= --n;) e[n] = 0;
  26543. for (n = 0; n < t.t - 1; ++n) {
  26544. var i = t.am(n, t[n], e, 2 * n, 0, 1);
  26545. (e[n + t.t] += t.am(n + 1, 2 * t[n], e, 2 * n + 1, i, t.t - n - 1)) >= t.DV && (e[n + t
  26546. .t] -= t.DV, e[n + t.t + 1] = 1)
  26547. }
  26548. 0 < e.t && (e[e.t - 1] += t.am(n, t[n], e, 2 * n, 0, 1)), e.s = 0, e.clamp()
  26549. }, m.prototype.divRemTo = function(e, t, n) {
  26550. var i = e.abs();
  26551. if (!(i.t <= 0)) {
  26552. var r = this.abs();
  26553. if (r.t < i.t) null != t && t.fromInt(0), null != n && this.copyTo(n);
  26554. else {
  26555. null == n && (n = p());
  26556. var a = p(),
  26557. s = this.s,
  26558. e = e.s,
  26559. o = this.DB - g(i[i.t - 1]);
  26560. if (0 < o ? (i.lShiftTo(o, a), r.lShiftTo(o, n)) : (i.copyTo(a), r.copyTo(n)), 0 !=
  26561. (r = a[(i = a.t) - 1])) {
  26562. var u = r * (1 << this.F1) + (1 < i ? a[i - 2] >> this.F2 : 0),
  26563. d = this.FV / u,
  26564. u = (1 << this.F1) / u,
  26565. l = 1 << this.F2,
  26566. h = n.t,
  26567. c = h - i,
  26568. _ = null == t ? p() : t;
  26569. for (a.dlShiftTo(c, _), 0 <= n.compareTo(_) && (n[n.t++] = 1, n.subTo(_, n)), m
  26570. .ONE.dlShiftTo(i, _), _.subTo(a, a); a.t < i;) a[a.t++] = 0;
  26571. for (; 0 <= --c;) {
  26572. var f = n[--h] == r ? this.DM : Math.floor(n[h] * d + (n[h - 1] + l) * u);
  26573. if ((n[h] += a.am(0, f, n, c, 0, i)) < f)
  26574. for (a.dlShiftTo(c, _), n.subTo(_, n); n[h] < --f;) n.subTo(_, n)
  26575. }
  26576. null != t && (n.drShiftTo(i, t), s != e && m.ZERO.subTo(t, t)), n.t = i, n
  26577. .clamp(), 0 < o && n.rShiftTo(o, n), s < 0 && m.ZERO.subTo(n, n)
  26578. }
  26579. }
  26580. }
  26581. }, m.prototype.invDigit = function() {
  26582. if (this.t < 1) return 0;
  26583. var e = this[0];
  26584. if (0 == (1 & e)) return 0;
  26585. var t = 3 & e;
  26586. return 0 < (t = (t = (t = (t = t * (2 - (15 & e) * t) & 15) * (2 - (255 & e) * t) & 255) * (
  26587. 2 - ((65535 & e) * t & 65535)) & 65535) * (2 - e * t % this.DV) % this.DV) ? this
  26588. .DV - t : -t
  26589. }, m.prototype.isEven = function() {
  26590. return 0 == (0 < this.t ? 1 & this[0] : this.s)
  26591. }, m.prototype.exp = function(e, t) {
  26592. if (4294967295 < e || e < 1) return m.ONE;
  26593. var n, i = p(),
  26594. r = p(),
  26595. a = t.convert(this),
  26596. s = g(e) - 1;
  26597. for (a.copyTo(i); 0 <= --s;) t.sqrTo(i, r), 0 < (e & 1 << s) ? t.mulTo(r, a, i) : (n = i,
  26598. i = r, r = n);
  26599. return t.revert(i)
  26600. }, m.prototype.toString = function(e) {
  26601. if (this.s < 0) return "-" + this.negate().toString(e);
  26602. if (16 == e) e = 4;
  26603. else if (8 == e) e = 3;
  26604. else if (2 == e) e = 1;
  26605. else if (32 == e) e = 5;
  26606. else if (64 == e) e = 6;
  26607. else {
  26608. if (4 != e) return this.toRadix(e);
  26609. e = 2
  26610. }
  26611. var t, n = (1 << e) - 1,
  26612. i = !1,
  26613. r = "",
  26614. a = this.t,
  26615. s = this.DB - a * this.DB % e;
  26616. if (0 < a--)
  26617. for (s < this.DB && 0 < (t = this[a] >> s) && (i = !0, r = _(t)); 0 <= a;) s < e ? (t =
  26618. (this[a] & (1 << s) - 1) << e - s, t |= this[--a] >> (s += this.DB - e)) : (t =
  26619. this[a] >> (s -= e) & n, s <= 0 && (s += this.DB, --a)), (i = 0 < t ? !0 : i) &&
  26620. (r += _(t));
  26621. return i ? r : "0"
  26622. }, m.prototype.negate = function() {
  26623. var e = p();
  26624. return m.ZERO.subTo(this, e), e
  26625. }, m.prototype.abs = function() {
  26626. return this.s < 0 ? this.negate() : this
  26627. }, m.prototype.compareTo = function(e) {
  26628. var t = this.s - e.s;
  26629. if (0 != t) return t;
  26630. var n = this.t;
  26631. if (0 != (t = n - e.t)) return t;
  26632. for (; 0 <= --n;)
  26633. if (0 != (t = this[n] - e[n])) return t;
  26634. return 0
  26635. }, m.prototype.bitLength = function() {
  26636. return this.t <= 0 ? 0 : this.DB * (this.t - 1) + g(this[this.t - 1] ^ this.s & this.DM)
  26637. }, m.prototype.mod = function(e) {
  26638. var t = p();
  26639. return this.abs().divRemTo(e, null, t), this.s < 0 && 0 < t.compareTo(m.ZERO) && e.subTo(t,
  26640. t), t
  26641. }, m.prototype.modPowInt = function(e, t) {
  26642. return t = new(e < 256 || t.isEven() ? M : L)(t), this.exp(e, t)
  26643. }, m.ZERO = y(0), m.ONE = y(1), D.prototype.convert = T, D.prototype.revert = T, D.prototype
  26644. .mulTo = function(e, t, n) {
  26645. e.multiplyTo(t, n)
  26646. }, D.prototype.sqrTo = function(e, t) {
  26647. e.squareTo(t)
  26648. }, E.prototype.convert = function(e) {
  26649. if (e.s < 0 || e.t > 2 * this.m.t) return e.mod(this.m);
  26650. if (e.compareTo(this.m) < 0) return e;
  26651. var t = p();
  26652. return e.copyTo(t), this.reduce(t), t
  26653. }, E.prototype.revert = function(e) {
  26654. return e
  26655. }, E.prototype.reduce = function(e) {
  26656. for (e.drShiftTo(this.m.t - 1, this.r2), e.t > this.m.t + 1 && (e.t = this.m.t + 1, e
  26657. .clamp()), this.mu.multiplyUpperTo(this.r2, this.m.t + 1, this.q3), this.m
  26658. .multiplyLowerTo(this.q3, this.m.t + 1, this.r2); e.compareTo(this.r2) < 0;) e
  26659. .dAddOffset(1, this.m.t + 1);
  26660. for (e.subTo(this.r2, e); 0 <= e.compareTo(this.m);) e.subTo(this.m, e)
  26661. }, E.prototype.mulTo = function(e, t, n) {
  26662. e.multiplyTo(t, n), this.reduce(n)
  26663. }, E.prototype.sqrTo = function(e, t) {
  26664. e.squareTo(t), this.reduce(t)
  26665. };
  26666. var Y, P, C, A, R, x = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71,
  26667. 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167,
  26668. 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269,
  26669. 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379,
  26670. 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487,
  26671. 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607,
  26672. 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727,
  26673. 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, 829, 839, 853,
  26674. 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 941, 947, 953, 967, 971, 977,
  26675. 983, 991, 997
  26676. ],
  26677. O = 67108864 / x[x.length - 1];
  26678. function I(e) {
  26679. var t, n, o = this,
  26680. i = e.length,
  26681. r = 0,
  26682. a = o.i = o.j = o.m = 0;
  26683. for (o.S = [], o.c = [], i || (e = [i++]); r < 256;) o.S[r] = r++;
  26684. for (r = 0; r < 256; r++) a = a + (t = o.S[r]) + e[r % i] & 255, n = o.S[a], o.S[r] = n, o.S[
  26685. a] = t;
  26686. o.g = function(e) {
  26687. var t = o.S,
  26688. n = o.i + 1 & 255,
  26689. i = t[n],
  26690. r = o.j + i & 255,
  26691. a = t[r];
  26692. t[n] = a, t[r] = i;
  26693. for (var s = t[i + a & 255]; --e;) a = t[r = r + (i = t[n = n + 1 & 255]) & 255], t[n] =
  26694. a, t[r] = i, s = 256 * s + t[i + a & 255];
  26695. return o.i = n, o.j = r, s
  26696. }, o.g(256)
  26697. }
  26698. function W(e, t, n, i) {
  26699. for (e += "", i = n = 0; i < e.length; i++) {
  26700. var r = t,
  26701. a = 255 & i,
  26702. s = (n ^= 19 * t[255 & i]) + e.charCodeAt(i);
  26703. r[a] = 255 & s
  26704. }
  26705. for (i in e = "", t) e += String.fromCharCode(t[i]);
  26706. return e
  26707. }
  26708. function H() {}
  26709. function j() {
  26710. this.j = this.i = 0, this.S = []
  26711. }
  26712. m.prototype.chunkSize = function(e) {
  26713. return Math.floor(Math.LN2 * this.DB / Math.log(e))
  26714. }, m.prototype.toRadix = function(e) {
  26715. if (null == e && (e = 10), 0 == this.signum() || e < 2 || 36 < e) return "0";
  26716. var t = this.chunkSize(e),
  26717. n = y(t = Math.pow(e, t)),
  26718. i = p(),
  26719. r = p(),
  26720. a = "";
  26721. for (this.divRemTo(n, i, r); 0 < i.signum();) a = (t + r.intValue()).toString(e).substr(1) +
  26722. a, i.divRemTo(n, i, r);
  26723. return r.intValue().toString(e) + a
  26724. }, m.prototype.fromRadix = function(e, t) {
  26725. this.fromInt(0);
  26726. for (var n = this.chunkSize(t = null == t ? 10 : t), i = Math.pow(t, n), r = !1, a = 0, s =
  26727. 0, o = 0; o < e.length; ++o) {
  26728. var u = f(e, o);
  26729. u < 0 ? "-" == e.charAt(o) && 0 == this.signum() && (r = !0) : (s = t * s + u, ++a >=
  26730. n && (this.dMultiply(i), this.dAddOffset(s, 0), s = a = 0))
  26731. }
  26732. 0 < a && (this.dMultiply(Math.pow(t, a)), this.dAddOffset(s, 0)), r && m.ZERO.subTo(this,
  26733. this)
  26734. }, m.prototype.fromNumber = function(e, t, n) {
  26735. if ("number" == typeof t)
  26736. if (e < 2) this.fromInt(1);
  26737. else
  26738. for (this.fromNumber(e, n), this.testBit(e - 1) || this.bitwiseTo(m.ONE.shiftLeft(
  26739. e - 1), k, this), this.isEven() && this.dAddOffset(1, 0); !this
  26740. .isProbablePrime(t);) this.dAddOffset(2, 0), this.bitLength() > e && this.subTo(
  26741. m.ONE.shiftLeft(e - 1), this);
  26742. else {
  26743. var i = 7 & e;
  26744. (n = []).length = 1 + (e >> 3), t.nextBytes(n), 0 < i ? n[0] &= (1 << i) - 1 : n[0] = 0,
  26745. this.fromString(n, 256)
  26746. }
  26747. }, m.prototype.bitwiseTo = function(e, t, n) {
  26748. for (var i, r = Math.min(e.t, this.t), a = 0; a < r; ++a) n[a] = t(this[a], e[a]);
  26749. if (e.t < this.t) {
  26750. for (i = e.s & this.DM, a = r; a < this.t; ++a) n[a] = t(this[a], i);
  26751. n.t = this.t
  26752. } else {
  26753. for (i = this.s & this.DM, a = r; a < e.t; ++a) n[a] = t(i, e[a]);
  26754. n.t = e.t
  26755. }
  26756. n.s = t(this.s, e.s), n.clamp()
  26757. }, m.prototype.changeBit = function(e, t) {
  26758. return e = m.ONE.shiftLeft(e), this.bitwiseTo(e, t, e), e
  26759. }, m.prototype.addTo = function(e, t) {
  26760. for (var n = 0, i = 0, r = Math.min(e.t, this.t); n < r;) i += this[n] + e[n], t[n++] = i &
  26761. this.DM, i >>= this.DB;
  26762. if (e.t < this.t) {
  26763. for (i += e.s; n < this.t;) i += this[n], t[n++] = i & this.DM, i >>= this.DB;
  26764. i += this.s
  26765. } else {
  26766. for (i += this.s; n < e.t;) i += e[n], t[n++] = i & this.DM, i >>= this.DB;
  26767. i += e.s
  26768. }
  26769. t.s = i < 0 ? -1 : 0, 0 < i ? t[n++] = i : i < -1 && (t[n++] = this.DV + i), t.t = n, t
  26770. .clamp()
  26771. }, m.prototype.dMultiply = function(e) {
  26772. this[this.t] = this.am(0, e - 1, this, 0, 0, this.t), ++this.t, this.clamp()
  26773. }, m.prototype.dAddOffset = function(e, t) {
  26774. if (0 != e) {
  26775. for (; this.t <= t;) this[this.t++] = 0;
  26776. for (this[t] += e; this[t] >= this.DV;) this[t] -= this.DV, ++t >= this.t && (this[this
  26777. .t++] = 0), ++this[t]
  26778. }
  26779. }, m.prototype.multiplyLowerTo = function(e, t, n) {
  26780. var i, r = Math.min(this.t + e.t, t);
  26781. for (n.s = 0, n.t = r; 0 < r;) n[--r] = 0;
  26782. for (i = n.t - this.t; r < i; ++r) n[r + this.t] = this.am(0, e[r], n, r, 0, this.t);
  26783. for (i = Math.min(e.t, t); r < i; ++r) this.am(0, e[r], n, r, 0, t - r);
  26784. n.clamp()
  26785. }, m.prototype.multiplyUpperTo = function(e, t, n) {
  26786. var i = n.t = this.t + e.t - --t;
  26787. for (n.s = 0; 0 <= --i;) n[i] = 0;
  26788. for (i = Math.max(t - this.t, 0); i < e.t; ++i) n[this.t + i - t] = this.am(t - i, e[i], n,
  26789. 0, 0, this.t + i - t);
  26790. n.clamp(), n.drShiftTo(1, n)
  26791. }, m.prototype.modInt = function(e) {
  26792. if (e <= 0) return 0;
  26793. var t = this.DV % e,
  26794. n = this.s < 0 ? e - 1 : 0;
  26795. if (0 < this.t)
  26796. if (0 == t) n = this[0] % e;
  26797. else
  26798. for (var i = this.t - 1; 0 <= i; --i) n = (t * n + this[i]) % e;
  26799. return n
  26800. }, m.prototype.millerRabin = function(e) {
  26801. var t = this.subtract(m.ONE),
  26802. n = t.getLowestSetBit();
  26803. if (n <= 0) return !1;
  26804. var i = t.shiftRight(n),
  26805. e = e + 1 >> 1;
  26806. x.length < e && (e = x.length);
  26807. for (var r = p(), a = 0; a < e; ++a) {
  26808. r.fromInt(x[Math.floor(Math.random() * x.length)]);
  26809. var s = r.modPow(i, this);
  26810. if (0 != s.compareTo(m.ONE) && 0 != s.compareTo(t)) {
  26811. for (var o = 1; o++ < n && 0 != s.compareTo(t);)
  26812. if (0 == (s = s.modPowInt(2, this)).compareTo(m.ONE)) return !1;
  26813. if (0 != s.compareTo(t)) return !1
  26814. }
  26815. }
  26816. return !0
  26817. }, m.prototype.clone = function() {
  26818. var e = p();
  26819. return this.copyTo(e), e
  26820. }, m.prototype.intValue = function() {
  26821. if (this.s < 0) {
  26822. if (1 == this.t) return this[0] - this.DV;
  26823. if (0 == this.t) return -1
  26824. } else {
  26825. if (1 == this.t) return this[0];
  26826. if (0 == this.t) return 0
  26827. }
  26828. return (this[1] & (1 << 32 - this.DB) - 1) << this.DB | this[0]
  26829. }, m.prototype.byteValue = function() {
  26830. return 0 == this.t ? this.s : this[0] << 24 >> 24
  26831. }, m.prototype.shortValue = function() {
  26832. return 0 == this.t ? this.s : this[0] << 16 >> 16
  26833. }, m.prototype.signum = function() {
  26834. return this.s < 0 ? -1 : this.t <= 0 || 1 == this.t && this[0] <= 0 ? 0 : 1
  26835. }, m.prototype.toByteArray = function() {
  26836. var e = this.t,
  26837. t = [];
  26838. t[0] = this.s;
  26839. var n, i = this.DB - e * this.DB % 8,
  26840. r = 0;
  26841. if (0 < e--)
  26842. for (i < this.DB && (n = this[e] >> i) != (this.s & this.DM) >> i && (t[r++] = n | this
  26843. .s << this.DB - i); 0 <= e;) i < 8 ? (n = (this[e] & (1 << i) - 1) << 8 - i,
  26844. n |= this[--e] >> (i += this.DB - 8)) : (n = this[e] >> (i -= 8) & 255, i <=
  26845. 0 && (i += this.DB, --e)), 0 != (128 & n) && (n |= -256), 0 == r && (128 & this
  26846. .s) != (128 & n) && ++r, (0 < r || n != this.s) && (t[r++] = n);
  26847. return t
  26848. }, m.prototype.equals = function(e) {
  26849. return 0 == this.compareTo(e)
  26850. }, m.prototype.min = function(e) {
  26851. return this.compareTo(e) < 0 ? this : e
  26852. }, m.prototype.max = function(e) {
  26853. return 0 < this.compareTo(e) ? this : e
  26854. }, m.prototype.and = function(e) {
  26855. var t = p();
  26856. return this.bitwiseTo(e, S, t), t
  26857. }, m.prototype.or = function(e) {
  26858. var t = p();
  26859. return this.bitwiseTo(e, k, t), t
  26860. }, m.prototype.xor = function(e) {
  26861. var t = p();
  26862. return this.bitwiseTo(e, b, t), t
  26863. }, m.prototype.andNot = function(e) {
  26864. var t = p();
  26865. return this.bitwiseTo(e, w, t), t
  26866. }, m.prototype.not = function() {
  26867. for (var e = p(), t = 0; t < this.t; ++t) e[t] = this.DM & ~this[t];
  26868. return e.t = this.t, e.s = ~this.s, e
  26869. }, m.prototype.shiftLeft = function(e) {
  26870. var t = p();
  26871. return e < 0 ? this.rShiftTo(-e, t) : this.lShiftTo(e, t), t
  26872. }, m.prototype.shiftRight = function(e) {
  26873. var t = p();
  26874. return e < 0 ? this.lShiftTo(-e, t) : this.rShiftTo(e, t), t
  26875. }, m.prototype.getLowestSetBit = function() {
  26876. for (var e = 0; e < this.t; ++e)
  26877. if (0 != this[e]) return e * this.DB + function(e) {
  26878. if (0 == e) return -1;
  26879. var t = 0;
  26880. return 0 == (65535 & e) && (e >>= 16, t += 16), 0 == (255 & e) && (e >>= 8,
  26881. t += 8), 0 == (15 & e) && (e >>= 4, t += 4), 0 == (3 & e) && (e >>=
  26882. 2, t += 2), 0 == (1 & e) && ++t, t
  26883. }(this[e]);
  26884. return this.s < 0 ? this.t * this.DB : -1
  26885. }, m.prototype.bitCount = function() {
  26886. for (var e = 0, t = this.s & this.DM, n = 0; n < this.t; ++n) e += function(e) {
  26887. for (var t = 0; 0 != e;) e &= e - 1, ++t;
  26888. return t
  26889. }(this[n] ^ t);
  26890. return e
  26891. }, m.prototype.testBit = function(e) {
  26892. var t = Math.floor(e / this.DB);
  26893. return t >= this.t ? 0 != this.s : 0 != (this[t] & 1 << e % this.DB)
  26894. }, m.prototype.setBit = function(e) {
  26895. return this.changeBit(e, k)
  26896. }, m.prototype.clearBit = function(e) {
  26897. return this.changeBit(e, w)
  26898. }, m.prototype.flipBit = function(e) {
  26899. return this.changeBit(e, b)
  26900. }, m.prototype.add = function(e) {
  26901. var t = p();
  26902. return this.addTo(e, t), t
  26903. }, m.prototype.subtract = function(e) {
  26904. var t = p();
  26905. return this.subTo(e, t), t
  26906. }, m.prototype.multiply = function(e) {
  26907. var t = p();
  26908. return this.multiplyTo(e, t), t
  26909. }, m.prototype.divide = function(e) {
  26910. var t = p();
  26911. return this.divRemTo(e, t, null), t
  26912. }, m.prototype.remainder = function(e) {
  26913. var t = p();
  26914. return this.divRemTo(e, null, t), t
  26915. }, m.prototype.divideAndRemainder = function(e) {
  26916. var t = p(),
  26917. n = p();
  26918. return this.divRemTo(e, t, n), [t, n]
  26919. }, m.prototype.modPow = function(e, t) {
  26920. var n = e.bitLength(),
  26921. i = y(1);
  26922. if (n <= 0) return i;
  26923. var r = n < 18 ? 1 : n < 48 ? 3 : n < 144 ? 4 : n < 768 ? 5 : 6,
  26924. a = new(n < 8 ? M : t.isEven() ? E : L)(t),
  26925. s = [],
  26926. o = 3,
  26927. u = r - 1,
  26928. d = (1 << r) - 1;
  26929. if (s[1] = a.convert(this), 1 < r)
  26930. for (n = p(), a.sqrTo(s[1], n); o <= d;) s[o] = p(), a.mulTo(n, s[o - 2], s[o]), o += 2;
  26931. for (var l, h = e.t - 1, c = !0, _ = p(), n = g(e[h]) - 1; 0 <= h;) {
  26932. for (u <= n ? l = e[h] >> n - u & d : (l = (e[h] & (1 << n + 1) - 1) << u - n, 0 < h &&
  26933. (l |= e[h - 1] >> this.DB + n - u)), o = r; 0 == (1 & l);) l >>= 1, --o;
  26934. if ((n -= o) < 0 && (n += this.DB, --h), c) s[l].copyTo(i), c = !1;
  26935. else {
  26936. for (; 1 < o;) a.sqrTo(i, _), a.sqrTo(_, i), o -= 2;
  26937. 0 < o ? a.sqrTo(i, _) : (o = i, i = _, _ = o), a.mulTo(_, s[l], i)
  26938. }
  26939. for (; 0 <= h && 0 == (e[h] & 1 << n);) a.sqrTo(i, _), o = i, i = _, _ = o, --n < 0 && (
  26940. n = this.DB - 1, --h)
  26941. }
  26942. return a.revert(i)
  26943. }, m.prototype.modInverse = function(e) {
  26944. var t = e.isEven();
  26945. if (this.isEven() && t || 0 == e.signum()) return m.ZERO;
  26946. for (var n = e.clone(), i = this.clone(), r = y(1), a = y(0), s = y(0), o = y(1); 0 != n
  26947. .signum();) {
  26948. for (; n.isEven();) n.rShiftTo(1, n), t ? (r.isEven() && a.isEven() || (r.addTo(this,
  26949. r), a.subTo(e, a)), r.rShiftTo(1, r)) : a.isEven() || a.subTo(e, a), a.rShiftTo(
  26950. 1, a);
  26951. for (; i.isEven();) i.rShiftTo(1, i), t ? (s.isEven() && o.isEven() || (s.addTo(this,
  26952. s), o.subTo(e, o)), s.rShiftTo(1, s)) : o.isEven() || o.subTo(e, o), o.rShiftTo(
  26953. 1, o);
  26954. 0 <= n.compareTo(i) ? (n.subTo(i, n), t && r.subTo(s, r), a.subTo(o, a)) : (i.subTo(n,
  26955. i), t && s.subTo(r, s), o.subTo(a, o))
  26956. }
  26957. return 0 != i.compareTo(m.ONE) ? m.ZERO : 0 <= o.compareTo(e) ? o.subtract(e) : o.signum() <
  26958. 0 ? (o.addTo(e, o), o.signum() < 0 ? o.add(e) : o) : o
  26959. }, m.prototype.pow = function(e) {
  26960. return this.exp(e, new D)
  26961. }, m.prototype.gcd = function(e) {
  26962. var t = this.s < 0 ? this.negate() : this.clone(),
  26963. e = e.s < 0 ? e.negate() : e.clone();
  26964. t.compareTo(e) < 0 && (n = t, t = e, e = n);
  26965. var n = t.getLowestSetBit(),
  26966. i = e.getLowestSetBit();
  26967. if (i < 0) return t;
  26968. for (0 < (i = n < i ? n : i) && (t.rShiftTo(i, t), e.rShiftTo(i, e)); 0 < t.signum();) 0 < (
  26969. n = t.getLowestSetBit()) && t.rShiftTo(n, t), 0 < (n = e.getLowestSetBit()) && e
  26970. .rShiftTo(n, e), 0 <= t.compareTo(e) ? (t.subTo(e, t), t.rShiftTo(1, t)) : (e.subTo(t,
  26971. e), e.rShiftTo(1, e));
  26972. return 0 < i && e.lShiftTo(i, e), e
  26973. }, m.prototype.isProbablePrime = function(e) {
  26974. var t, n = this.abs();
  26975. if (1 == n.t && n[0] <= x[x.length - 1]) {
  26976. for (t = 0; t < x.length; ++t)
  26977. if (n[0] == x[t]) return !0;
  26978. return !1
  26979. }
  26980. if (n.isEven()) return !1;
  26981. for (t = 1; t < x.length;) {
  26982. for (var i = x[t], r = t + 1; r < x.length && i < O;) i *= x[r++];
  26983. for (i = n.modInt(i); t < r;)
  26984. if (i % x[t++] == 0) return !1
  26985. }
  26986. return n.millerRabin(e)
  26987. }, m.prototype.square = function() {
  26988. var e = p();
  26989. return this.squareTo(e), e
  26990. }, Y = [], P = Math, C = 52, P.seedrandom = function(e, t) {
  26991. var n = [],
  26992. e = W(function e(t, n, i, r, a) {
  26993. if (i = [], a = void 0 === t ? "undefined" : (0, s.default)(t), n && "object" ==
  26994. a)
  26995. for (r in t)
  26996. if (r.indexOf("S") < 5) try {
  26997. i.push(e(t[r], n - 1))
  26998. } catch (e) {}
  26999. return i.length ? i : t + ("string" != a ? "\0" : "")
  27000. }(t ? [e, Y] : arguments.length ? e : [(new Date).getTime(), Y, window], 3), n),
  27001. i = new I(n);
  27002. return W(i.S, Y), P.random = function() {
  27003. for (var e = i.g(6), t = R, n = 0; e < C;) e = 256 * (e + n), t *= 256, n = i.g(1);
  27004. for (; A <= e;) e /= 2, t /= 2, n >>>= 1;
  27005. return (e + n) / t
  27006. }, e
  27007. }, R = P.pow(256, 6), C = P.pow(2, C), A = 2 * C, W(P.random(), Y), H.prototype.nextBytes =
  27008. function(e) {
  27009. for (var t = 0; t < e.length; t++) e[t] = Math.floor(256 * Math.random())
  27010. }, j.prototype.init = function(e) {
  27011. for (var t, n, i = 0; i < 256; ++i) this.S[i] = i;
  27012. for (i = t = 0; i < 256; ++i) t = t + this.S[i] + e[i % e.length] & 255, n = this.S[i], this
  27013. .S[i] = this.S[t], this.S[t] = n;
  27014. this.j = this.i = 0
  27015. }, j.prototype.next = function() {
  27016. var e;
  27017. return this.i = this.i + 1 & 255, this.j = this.j + this.S[this.i] & 255, e = this.S[this
  27018. .i], this.S[this.i] = this.S[this.j], this.S[this.j] = e, this.S[e + this.S[this
  27019. .i] &
  27020. 255]
  27021. };
  27022. var F, B = 256;
  27023. function N() {
  27024. var e;
  27025. e = (new Date).getTime(), z[U++] ^= 255 & e, z[U++] ^= e >> 8 & 255, z[U++] ^= e >> 16 & 255, z[
  27026. U++] ^= e >> 24 & 255, B <= U && (U -= B)
  27027. }
  27028. if (null == z) {
  27029. var z = [],
  27030. U = 0;
  27031. if ("Netscape" == o && u < "5" && window.crypto)
  27032. for (var V = window.crypto.random(32), G = 0; G < V.length; ++G) z[U++] = 255 & V
  27033. .charCodeAt(G);
  27034. for (; U < B;) G = Math.floor(65536 * Math.random()), z[U++] = G >>> 8, z[U++] = 255 & G;
  27035. U = 0, N()
  27036. }
  27037. function J() {
  27038. if (null == F) {
  27039. for (N(), (F = new j).init(z), U = 0; U < z.length; ++U) z[U] = 0;
  27040. U = 0
  27041. }
  27042. return F.next()
  27043. }
  27044. function q() {}
  27045. q.prototype.nextBytes = function(e) {
  27046. for (var t = 0; t < e.length; ++t) e[t] = J()
  27047. };
  27048. var K = function(e) {
  27049. return function(e) {
  27050. for (var t = "", n = 0; n < 4 * e.length; n++) t += "0123456789abcdef".charAt(e[n >>
  27051. 2] >> 8 * (3 - n % 4) + 4 & 15) + "0123456789abcdef".charAt(e[n >> 2] >> 8 *
  27052. (3 - n % 4) & 15);
  27053. return t
  27054. }(function(e, t) {
  27055. var n, i, r, a, s, o, u, d, l, h, c, _, f = [1116352408, 1899447441, 3049323471,
  27056. 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080,
  27057. 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103,
  27058. 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983,
  27059. 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808,
  27060. 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205,
  27061. 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350,
  27062. 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817,
  27063. 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556,
  27064. 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222,
  27065. 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479,
  27066. 3329325298
  27067. ],
  27068. m = [1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924,
  27069. 528734635, 1541459225
  27070. ],
  27071. p = Array(64);
  27072. for (e[t >> 5] |= 128 << 24 - t % 32, e[15 + (64 + t >> 9 << 4)] = t, l = 0; l <
  27073. e.length; l += 16) {
  27074. for (n = m[0], i = m[1], r = m[2], a = m[3], s = m[4], o = m[5], u = m[6],
  27075. d = m[7], h = 0; h < 64; h++) p[h] = h < 16 ? e[h + l] : y(y(y(v(p[h -
  27076. 2], 17) ^ v(p[h - 2], 19) ^ p[h - 2] >>> 10, p[h - 7]), v(p[
  27077. h - 15], 7) ^ v(p[h - 15], 18) ^ p[h - 15] >>> 3), p[h - 16]), c =
  27078. y(y(y(y(d, v(s, 6) ^ v(s, 11) ^ v(s, 25)), s & o ^ ~s & u), f[h]), p[
  27079. h]), _ = y(v(n, 2) ^ v(n, 13) ^ v(n, 22), n & i ^ n & r ^ i & r),
  27080. d = u,
  27081. u = o, o = s, s = y(a, c), a = r, r = i, i = n, n = y(c, _);
  27082. m[0] = y(n, m[0]), m[1] = y(i, m[1]), m[2] = y(r, m[2]), m[3] = y(a, m[3]),
  27083. m[4] = y(s, m[4]), m[5] = y(o, m[5]), m[6] = y(u, m[6]), m[7] = y(d, m[
  27084. 7])
  27085. }
  27086. return m
  27087. }(function(e) {
  27088. for (var t = [], n = 0; n < 8 * e.length; n += 8) t[n >> 5] |= (255 & e
  27089. .charCodeAt(n / 8)) << 24 - n % 32;
  27090. return t
  27091. }(e = function(e) {
  27092. for (var e = e.replace(/\r\n/g, "\n"), t = "", n = 0; n < e
  27093. .length; n++) {
  27094. var i = e.charCodeAt(n);
  27095. i < 128 ? t += String.fromCharCode(i) : (127 < i && i < 2048 ? t +=
  27096. String.fromCharCode(i >> 6 | 192) : (t += String
  27097. .fromCharCode(i >> 12 | 224), t += String.fromCharCode(
  27098. i >> 6 & 63 | 128)), t += String.fromCharCode(63 &
  27099. i | 128))
  27100. }
  27101. return t
  27102. }(e = e)), 8 * e.length));
  27103. function y(e, t) {
  27104. var n = (65535 & e) + (65535 & t);
  27105. return (e >> 16) + (t >> 16) + (n >> 16) << 16 | 65535 & n
  27106. }
  27107. function v(e, t) {
  27108. return e >>> t | e << 32 - t
  27109. }
  27110. };
  27111. u = function(e) {
  27112. function t(e, t) {
  27113. return e << t | e >>> 32 - t
  27114. }
  27115. function n(e) {
  27116. for (var t = "", n = 7; 0 <= n; n--) t += (e >>> 4 * n & 15).toString(16);
  27117. return t
  27118. }
  27119. for (var i, r, a, s, o, u = Array(80), d = 1732584193, l = 4023233417, h = 2562383102, c =
  27120. 271733878, _ = 3285377520, f = (e = function(e) {
  27121. for (var e = e.replace(/\r\n/g, "\n"), t = "", n = 0; n < e.length; n++) {
  27122. var i = e.charCodeAt(n);
  27123. i < 128 ? t += String.fromCharCode(i) : (127 < i && i < 2048 ? t +=
  27124. String.fromCharCode(i >> 6 | 192) : (t += String.fromCharCode(
  27125. i >> 12 | 224), t += String.fromCharCode(i >> 6 & 63 |
  27126. 128)), t += String.fromCharCode(63 & i | 128))
  27127. }
  27128. return t
  27129. }(e)).length, m = [], p = 0; p < f - 3; p += 4) i = e.charCodeAt(p) << 24 | e
  27130. .charCodeAt(p + 1) << 16 | e.charCodeAt(p + 2) << 8 | e.charCodeAt(p + 3), m.push(i);
  27131. switch (f % 4) {
  27132. case 0:
  27133. p = 2147483648;
  27134. break;
  27135. case 1:
  27136. p = e.charCodeAt(f - 1) << 24 | 8388608;
  27137. break;
  27138. case 2:
  27139. p = e.charCodeAt(f - 2) << 24 | e.charCodeAt(f - 1) << 16 | 32768;
  27140. break;
  27141. case 3:
  27142. p = e.charCodeAt(f - 3) << 24 | e.charCodeAt(f - 2) << 16 | e.charCodeAt(f - 1) <<
  27143. 8 | 128
  27144. }
  27145. for (m.push(p); m.length % 16 != 14;) m.push(0);
  27146. for (m.push(f >>> 29), m.push(f << 3 & 4294967295), e = 0; e < m.length; e += 16) {
  27147. for (p = 0; p < 16; p++) u[p] = m[e + p];
  27148. for (p = 16; p <= 79; p++) u[p] = t(u[p - 3] ^ u[p - 8] ^ u[p - 14] ^ u[p - 16], 1);
  27149. for (i = d, f = l, r = h, a = c, s = _, p = 0; p <= 19; p++) o = t(i, 5) + (f & r | ~f &
  27150. a) + s + u[p] + 1518500249 & 4294967295, s = a, a = r, r = t(f, 30), f = i, i =
  27151. o;
  27152. for (p = 20; p <= 39; p++) o = t(i, 5) + (f ^ r ^ a) + s + u[p] + 1859775393 &
  27153. 4294967295, s = a, a = r, r = t(f, 30), f = i, i = o;
  27154. for (p = 40; p <= 59; p++) o = t(i, 5) + (f & r | f & a | r & a) + s + u[p] +
  27155. 2400959708 & 4294967295, s = a, a = r, r = t(f, 30), f = i, i = o;
  27156. for (p = 60; p <= 79; p++) o = t(i, 5) + (f ^ r ^ a) + s + u[p] + 3395469782 &
  27157. 4294967295, s = a, a = r, r = t(f, 30), f = i, i = o;
  27158. d = d + i & 4294967295, l = l + f & 4294967295, h = h + r & 4294967295, c = c + a &
  27159. 4294967295, _ = _ + s & 4294967295
  27160. }
  27161. return (o = n(d) + n(l) + n(h) + n(c) + n(_)).toLowerCase()
  27162. };
  27163. function X(e, t) {
  27164. return new m(e, t)
  27165. }
  27166. function Z() {
  27167. this.n = null, this.e = 0, this.coeff = this.dmq1 = this.dmp1 = this.q = this.p = this.d = null
  27168. }
  27169. Z.prototype.doPublic = function(e) {
  27170. return e.modPowInt(this.e, this.n)
  27171. }, Z.prototype.setPublic = function(e, t) {
  27172. null != e && null != t && 0 < e.length && 0 < t.length ? (this.n = X(e, 16), this.e =
  27173. parseInt(t, 16)) : alert("Invalid RSA public key")
  27174. }, Z.prototype.encrypt = function(e) {
  27175. return null == (e = function(e, t) {
  27176. if (t < e.length + 11) throw "Message too long for RSA (n=" + t + ", l=" + e
  27177. .length + ")";
  27178. for (var n = [], i = e.length - 1; 0 <= i && 0 < t;) {
  27179. var r = e.charCodeAt(i--);
  27180. r < 128 ? n[--t] = r : 127 < r && r < 2048 ? (n[--t] = 63 & r | 128, n[--
  27181. t] = r >> 6 | 192) : (n[--t] = 63 & r | 128, n[--t] = r >> 6 & 63 |
  27182. 128, n[--t] = r >> 12 | 224)
  27183. }
  27184. for (n[--t] = 0, i = new q, r = []; 2 < t;) {
  27185. for (r[0] = 0; 0 == r[0];) i.nextBytes(r);
  27186. n[--t] = r[0]
  27187. }
  27188. return n[--t] = 2, n[--t] = 0, new m(n)
  27189. }(e, this.n.bitLength() + 7 >> 3)) || null == (e = this.doPublic(e)) ? null : 0 == (1 &
  27190. (e = e.toString(16)).length) ? e : "0" + e
  27191. }, Z.prototype.doPrivate = function(e) {
  27192. if (null == this.p || null == this.q) return e.modPow(this.d, this.n);
  27193. for (var t = e.mod(this.p).modPow(this.dmp1, this.p), e = e.mod(this.q).modPow(this.dmq1,
  27194. this.q); t.compareTo(e) < 0;) t = t.add(this.p);
  27195. return t.subtract(e).multiply(this.coeff).mod(this.p).multiply(this.q).add(e)
  27196. }, Z.prototype.setPrivate = function(e, t, n) {
  27197. null != e && null != t && 0 < e.length && 0 < t.length ? (this.n = X(e, 16), this.e =
  27198. parseInt(t, 16), this.d = X(n, 16)) : alert("Invalid RSA private key")
  27199. }, Z.prototype.setPrivateEx = function(e, t, n, i, r, a, s, o) {
  27200. null != e && null != t && 0 < e.length && 0 < t.length ? (this.n = X(e, 16), this.e =
  27201. parseInt(t, 16), this.d = X(n, 16), this.p = X(i, 16), this.q = X(r, 16), this
  27202. .dmp1 = X(a, 16), this.dmq1 = X(s, 16), this.coeff = X(o, 16)) : alert(
  27203. "Invalid RSA private key")
  27204. }, Z.prototype.generate = function(e, t) {
  27205. var n = new H,
  27206. i = e >> 1;
  27207. this.e = parseInt(t, 16);
  27208. for (var r = new m(t, 16);;) {
  27209. for (; this.p = new m(e - i, 1, n), 0 != this.p.subtract(m.ONE).gcd(r).compareTo(m
  27210. .ONE) || !this.p.isProbablePrime(10););
  27211. for (; this.q = new m(i, 1, n), 0 != this.q.subtract(m.ONE).gcd(r).compareTo(m.ONE) || !
  27212. this.q.isProbablePrime(10););
  27213. this.p.compareTo(this.q) <= 0 && (a = this.p, this.p = this.q, this.q = a);
  27214. var a = this.p.subtract(m.ONE),
  27215. s = this.q.subtract(m.ONE),
  27216. o = a.multiply(s);
  27217. if (0 == o.gcd(r).compareTo(m.ONE)) {
  27218. this.n = this.p.multiply(this.q), this.d = r.modInverse(o), this.dmp1 = this.d.mod(
  27219. a), this.dmq1 = this.d.mod(s), this.coeff = this.q.modInverse(this.p);
  27220. break
  27221. }
  27222. }
  27223. }, Z.prototype.decrypt = function(e) {
  27224. return null == (e = this.doPrivate(X(e, 16))) ? null : function(e, t) {
  27225. for (var n = e.toByteArray(), i = 0; i < n.length && 0 == n[i];) ++i;
  27226. if (n.length - i != t - 1 || 2 != n[i]) return null;
  27227. for (++i; 0 != n[i];)
  27228. if (++i >= n.length) return null;
  27229. for (var r = ""; ++i < n.length;) {
  27230. var a = 255 & n[i];
  27231. a < 128 ? r += String.fromCharCode(a) : 191 < a && a < 224 ? (r += String
  27232. .fromCharCode((31 & a) << 6 | 63 & n[i + 1]), ++i) : (r += String
  27233. .fromCharCode((15 & a) << 12 | (63 & n[i + 1]) << 6 | 63 & n[i + 2]),
  27234. i += 2)
  27235. }
  27236. return r
  27237. }(e, this.n.bitLength() + 7 >> 3)
  27238. };
  27239. var $ = [];
  27240. $.sha1 = "3021300906052b0e03021a05000414", $.sha256 = "3031300d060960864801650304020105000420";
  27241. var Q = [];
  27242. function ee(e, t, n) {
  27243. t /= 4;
  27244. for (var e = (0, Q[n])(e), n = "00" + $[n] + e, e = "", t = t - 4 - n.length, i = 0; i < t; i +=
  27245. 2) e += "ff";
  27246. return sPaddedMessageHex = "0001" + e + n
  27247. }
  27248. function te(e, t, n) {
  27249. return i = e, e = t, t = n, (n = new Z).setPublic(e, t), n.doPublic(i).toString(16).replace(
  27250. /^1f+00/, "");
  27251. var i
  27252. }
  27253. function ne(e) {
  27254. for (var t in $) {
  27255. var n = $[t],
  27256. i = n.length;
  27257. if (e.substring(0, i) == n) return [t, e.substring(i)]
  27258. }
  27259. return []
  27260. }
  27261. Q.sha1 = u, Q.sha256 = K, Z.prototype.signString = function(e, t) {
  27262. return t = ee(e, this.n.bitLength(), t), this.doPrivate(X(t, 16)).toString(16)
  27263. }, Z.prototype.signStringWithSHA1 = function(e) {
  27264. return e = ee(e, this.n.bitLength(), "sha1"), this.doPrivate(X(e, 16)).toString(16)
  27265. }, Z.prototype.signStringWithSHA256 = function(e) {
  27266. return e = ee(e, this.n.bitLength(), "sha256"), this.doPrivate(X(e, 16)).toString(16)
  27267. }, Z.prototype.verifyString = function(e, t) {
  27268. return t = t.replace(/[ \n]+/g, ""), 0 != (t = ne(this.doPublic(X(t, 16)).toString(16)
  27269. .replace(/^1f+00/, ""))).length && t[1] == (t = (0, Q[t[0]])(e))
  27270. }, Z.prototype.verifyHexSignatureForMessage = function(e, t) {
  27271. var n, i = X(e, 16);
  27272. return n = t, e = i, t = this.n.toString(16), i = this.e.toString(16), 0 != (t = ne(e = te(
  27273. e, t, i))).length && (e = t[1]) == (n = (0, Q[t[0]])(n))
  27274. };
  27275. var ie, re, ae = re = {
  27276. Sbox: [99, 124, 119, 123, 242, 107, 111, 197, 48, 1, 103, 43, 254, 215, 171, 118, 202, 130,
  27277. 201, 125, 250, 89, 71, 240, 173, 212, 162, 175, 156, 164, 114, 192, 183, 253, 147,
  27278. 38, 54, 63, 247, 204, 52, 165, 229, 241, 113, 216, 49, 21, 4, 199, 35, 195, 24, 150,
  27279. 5, 154, 7, 18, 128, 226, 235, 39, 178, 117, 9, 131, 44, 26, 27, 110, 90, 160, 82,
  27280. 59, 214, 179, 41, 227, 47, 132, 83, 209, 0, 237, 32, 252, 177, 91, 106, 203, 190,
  27281. 57, 74, 76, 88, 207, 208, 239, 170, 251, 67, 77, 51, 133, 69, 249, 2, 127, 80, 60,
  27282. 159, 168, 81, 163, 64, 143, 146, 157, 56, 245, 188, 182, 218, 33, 16, 255, 243, 210,
  27283. 205, 12, 19, 236, 95, 151, 68, 23, 196, 167, 126, 61, 100, 93, 25, 115, 96, 129, 79,
  27284. 220, 34, 42, 144, 136, 70, 238, 184, 20, 222, 94, 11, 219, 224, 50, 58, 10, 73, 6,
  27285. 36, 92, 194, 211, 172, 98, 145, 149, 228, 121, 231, 200, 55, 109, 141, 213, 78, 169,
  27286. 108, 86, 244, 234, 101, 122, 174, 8, 186, 120, 37, 46, 28, 166, 180, 198, 232, 221,
  27287. 116, 31, 75, 189, 139, 138, 112, 62, 181, 102, 72, 3, 246, 14, 97, 53, 87, 185, 134,
  27288. 193, 29, 158, 225, 248, 152, 17, 105, 217, 142, 148, 155, 30, 135, 233, 206, 85, 40,
  27289. 223, 140, 161, 137, 13, 191, 230, 66, 104, 65, 153, 45, 15, 176, 84, 187, 22
  27290. ],
  27291. ShiftRowTab: [0, 5, 10, 15, 4, 9, 14, 3, 8, 13, 2, 7, 12, 1, 6, 11],
  27292. Init: function() {
  27293. re.Sbox_Inv = Array(256);
  27294. for (var e = 0; e < 256; e++) re.Sbox_Inv[re.Sbox[e]] = e;
  27295. for (re.ShiftRowTab_Inv = Array(16), e = 0; e < 16; e++) re.ShiftRowTab_Inv[re
  27296. .ShiftRowTab[e]] = e;
  27297. for (re.xtime = Array(256), e = 0; e < 128; e++) re.xtime[e] = e << 1, re.xtime[
  27298. 128 + e] = e << 1 ^ 27
  27299. },
  27300. Done: function() {
  27301. delete re.Sbox_Inv, delete re.ShiftRowTab_Inv, delete re.xtime
  27302. },
  27303. ExpandKey: function(e) {
  27304. var t, n = e.length,
  27305. i = 1;
  27306. switch (n) {
  27307. case 16:
  27308. t = 176;
  27309. break;
  27310. case 24:
  27311. t = 208;
  27312. break;
  27313. case 32:
  27314. t = 240;
  27315. break;
  27316. default:
  27317. alert("my.ExpandKey: Only key lengths of 16, 24 or 32 bytes allowed!")
  27318. }
  27319. for (var r = n; r < t; r += 4) {
  27320. var a = e.slice(r - 4, r);
  27321. r % n == 0 ? (a = [re.Sbox[a[1]] ^ i, re.Sbox[a[2]], re.Sbox[a[3]], re.Sbox[a[
  27322. 0]]], 256 <= (i <<= 1) && (i ^= 283)) : 24 < n && r % n == 16 && (a = [
  27323. re.Sbox[a[0]], re.Sbox[a[1]], re.Sbox[a[2]], re.Sbox[a[3]]
  27324. ]);
  27325. for (var s = 0; s < 4; s++) e[r + s] = e[r + s - n] ^ a[s]
  27326. }
  27327. },
  27328. Encrypt: function(e, t) {
  27329. var n = t.length;
  27330. re.AddRoundKey(e, t.slice(0, 16));
  27331. for (var i = 16; i < n - 16; i += 16) re.SubBytes(e, re.Sbox), re.ShiftRows(e, re
  27332. .ShiftRowTab), re.MixColumns(e), re.AddRoundKey(e, t.slice(i, i + 16));
  27333. re.SubBytes(e, re.Sbox), re.ShiftRows(e, re.ShiftRowTab), re.AddRoundKey(e, t.slice(
  27334. i, n))
  27335. },
  27336. Decrypt: function(e, t) {
  27337. var n = t.length;
  27338. for (re.AddRoundKey(e, t.slice(n - 16, n)), re.ShiftRows(e, re.ShiftRowTab_Inv), re
  27339. .SubBytes(e, re.Sbox_Inv), n -= 32; 16 <= n; n -= 16) re.AddRoundKey(e, t.slice(
  27340. n, n + 16)), re.MixColumns_Inv(e), re.ShiftRows(e, re.ShiftRowTab_Inv), re
  27341. .SubBytes(e, re.Sbox_Inv);
  27342. re.AddRoundKey(e, t.slice(0, 16))
  27343. },
  27344. SubBytes: function(e, t) {
  27345. for (var n = 0; n < 16; n++) e[n] = t[e[n]]
  27346. },
  27347. AddRoundKey: function(e, t) {
  27348. for (var n = 0; n < 16; n++) e[n] ^= t[n]
  27349. },
  27350. ShiftRows: function(e, t) {
  27351. for (var n = [].concat(e), i = 0; i < 16; i++) e[i] = n[t[i]]
  27352. },
  27353. MixColumns: function(e) {
  27354. for (var t = 0; t < 16; t += 4) {
  27355. var n = e[t + 0],
  27356. i = e[t + 1],
  27357. r = e[t + 2],
  27358. a = e[t + 3],
  27359. s = n ^ i ^ r ^ a;
  27360. e[t + 0] ^= s ^ re.xtime[n ^ i], e[t + 1] ^= s ^ re.xtime[i ^ r], e[t + 2] ^=
  27361. s ^ re.xtime[r ^ a], e[t + 3] ^= s ^ re.xtime[a ^ n]
  27362. }
  27363. },
  27364. MixColumns_Inv: function(e) {
  27365. for (var t = 0; t < 16; t += 4) {
  27366. var n = e[t + 0],
  27367. i = e[t + 1],
  27368. r = e[t + 2],
  27369. a = e[t + 3],
  27370. s = n ^ i ^ r ^ a,
  27371. o = re.xtime[s],
  27372. u = re.xtime[re.xtime[o ^ n ^ r]] ^ s;
  27373. s ^= re.xtime[re.xtime[o ^ i ^ a]], e[t + 0] ^= u ^ re.xtime[n ^ i], e[t + 1] ^=
  27374. s ^ re.xtime[i ^ r], e[t + 2] ^= u ^ re.xtime[r ^ a], e[t + 3] ^= s ^ re
  27375. .xtime[a ^ n]
  27376. }
  27377. }
  27378. },
  27379. u = (ie = {}, ae.Init(), ie.b256to64 = function(e) {
  27380. for (var t, n, i = "", r = 0, a = e.length, s = 0; s < a; s++) n = e.charCodeAt(s), 0 ==
  27381. r ? (i += "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(
  27382. n >> 2 & 63), t = (3 & n) << 4) : 1 == r ? (i +=
  27383. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t |
  27384. n >> 4 & 15), t = (15 & n) << 2) : 2 == r && (i +=
  27385. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t |
  27386. n >> 6 & 3), i +=
  27387. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63 &
  27388. n)), 3 == (r += 1) && (r = 0);
  27389. return 0 < r && (i += "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
  27390. .charAt(t), i += "="), 1 == r && (i += "="), i
  27391. }, ie.b64to256 = function(e) {
  27392. for (var t, n = "", i = 0, r = 0, a = e.length, s = 0; s < a; s++) 0 <= (t =
  27393. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(e
  27394. .charAt(s))) && (i && (n += String.fromCharCode(r | t >> 6 - i & 255)), r =
  27395. t << (i = i + 2 & 7) & 255);
  27396. return n
  27397. }, ie.b16to64 = function(e) {
  27398. var t, n, i = "";
  27399. for (e.length % 2 == 1 && (e = "0" + e), t = 0; t + 3 <= e.length; t += 3) n = parseInt(
  27400. e.substring(t, t + 3), 16), i +=
  27401. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n >> 6) +
  27402. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63 & n);
  27403. for (t + 1 == e.length ? (n = parseInt(e.substring(t, t + 1), 16), i +=
  27404. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n <<
  27405. 2)) : t + 2 == e.length && (n = parseInt(e.substring(t, t + 2), 16), i +=
  27406. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n >>
  27407. 2) + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
  27408. .charAt((3 & n) << 4)); 0 < (3 & i.length);) i += "=";
  27409. return i
  27410. }, ie.b64to16 = function(e) {
  27411. for (var t, n = "", i = 0, r = 0; r < e.length && "=" != e.charAt(r); ++r) v =
  27412. "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(e.charAt(
  27413. r)), v < 0 || (i = 0 == i ? (n += _(v >> 2), t = 3 & v, 1) : 1 == i ? (n += _(
  27414. t << 2 | v >> 4), t = 15 & v, 2) : 2 == i ? (n += _(t), n += _(v >> 2), t =
  27415. 3 & v, 3) : (n += _(t << 2 | v >> 4), n += _(15 & v), 0));
  27416. return 1 == i && (n += _(t << 2)), n
  27417. }, ie.string2bytes = function(e) {
  27418. for (var t = [], n = 0; n < e.length; n++) t.push(e.charCodeAt(n));
  27419. return t
  27420. }, ie.bytes2string = function(e) {
  27421. for (var t = "", n = 0; n < e.length; n++) t += String.fromCharCode(e[n]);
  27422. return t
  27423. }, ie.blockXOR = function(e, t) {
  27424. for (var n = Array(16), i = 0; i < 16; i++) n[i] = e[i] ^ t[i];
  27425. return n
  27426. }, ie.blockIV = function() {
  27427. var e = new q,
  27428. t = Array(16);
  27429. return e.nextBytes(t), t
  27430. }, ie.pad16 = function(e) {
  27431. var t = e.slice(0),
  27432. n = (16 - e.length % 16) % 16;
  27433. for (i = e.length; i < e.length + n; i++) t.push(0);
  27434. return t
  27435. }, ie.depad = function(e) {
  27436. for (e = e.slice(0); 0 == e[e.length - 1];) e = e.slice(0, e.length - 1);
  27437. return e
  27438. }, ie.encryptAESCBC = function(e, t) {
  27439. var n = t.slice(0);
  27440. ae.ExpandKey(n);
  27441. for (var i = ie.string2bytes(e), i = ie.pad16(i), r = ie.blockIV(), a = 0; a < i
  27442. .length / 16; a++) {
  27443. var s = i.slice(16 * a, 16 * a + 16),
  27444. o = r.slice(16 * a, 16 * a + 16),
  27445. s = ie.blockXOR(o, s);
  27446. ae.Encrypt(s, n), r = r.concat(s)
  27447. }
  27448. return n = ie.bytes2string(r), ie.b256to64(n)
  27449. }, ie.decryptAESCBC = function(e, t) {
  27450. var n = t.slice(0);
  27451. ae.ExpandKey(n);
  27452. for (var e = ie.b64to256(e), i = ie.string2bytes(e), r = [], a = 1; a < i.length /
  27453. 16; a++) {
  27454. var s = i.slice(16 * a, 16 * a + 16),
  27455. o = i.slice(16 * (a - 1), 16 * (a - 1) + 16);
  27456. ae.Decrypt(s, n), s = ie.blockXOR(o, s), r = r.concat(s)
  27457. }
  27458. return r = ie.depad(r), ie.bytes2string(r)
  27459. }, ie.wrap60 = function(e) {
  27460. for (var t = "", n = 0; n < e.length; n++) n % 60 == 0 && 0 != n && (t += "\n"), t += e[
  27461. n];
  27462. return t
  27463. }, ie.generateAESKey = function() {
  27464. var e = Array(16);
  27465. return (new q).nextBytes(e), e
  27466. }, ie.generateRSAKey = function(e, t) {
  27467. Math.seedrandom(K(e));
  27468. e = new Z;
  27469. return e.generate(t, "10001"), e
  27470. }, ie.publicKeyString = function(e) {
  27471. return pubkey = e.n.toString(16)
  27472. }, ie.publicKeyID = function(e) {
  27473. function o(e, t) {
  27474. var n = 2147483648 & e,
  27475. i = 2147483648 & t,
  27476. r = 1073741824 & e,
  27477. a = 1073741824 & t,
  27478. t = (1073741823 & e) + (1073741823 & t);
  27479. return r & a ? 2147483648 ^ t ^ n ^ i : r | a ? 1073741824 & t ? 3221225472 ^ t ^
  27480. n ^ i : 1073741824 ^ t ^ n ^ i : t ^ n ^ i
  27481. }
  27482. function t(e, t, n, i, r, a, s) {
  27483. return e = o(e, o(o(t & n | ~t & i, r), s)), o(e << a | e >>> 32 - a, t)
  27484. }
  27485. function n(e, t, n, i, r, a, s) {
  27486. return e = o(e, o(o(t & i | n & ~i, r), s)), o(e << a | e >>> 32 - a, t)
  27487. }
  27488. function i(e, t, n, i, r, a, s) {
  27489. return e = o(e, o(o(t ^ n ^ i, r), s)), o(e << a | e >>> 32 - a, t)
  27490. }
  27491. function r(e, t, n, i, r, a, s) {
  27492. return e = o(e, o(o(n ^ (t | ~i), r), s)), o(e << a | e >>> 32 - a, t)
  27493. }
  27494. function a(e) {
  27495. for (var t = "", n = "", i = 0; i <= 3; i++) t += (n = "0" + (n = e >>> 8 * i & 255)
  27496. .toString(16)).substr(n.length - 2, 2);
  27497. return t
  27498. }
  27499. var s, u, d, l, h = function(e) {
  27500. for (var t, n = e.length, i = n + 8, r = 16 * ((i - i % 64) / 64 + 1), a =
  27501. Array(r - 1), s = 0; s < n;) t = s % 4 * 8, a[(s - s % 4) / 4] |= e
  27502. .charCodeAt(s) << t, s++;
  27503. return a[(s - s % 4) / 4] |= 128 << s % 4 * 8, a[r - 2] = n << 3, a[r - 1] =
  27504. n >>> 29, a
  27505. }(e = function(e) {
  27506. for (var e = e.replace(/\r\n/g, "\n"), t = "", n = 0; n < e.length; n++) {
  27507. var i = e.charCodeAt(n);
  27508. i < 128 ? t += String.fromCharCode(i) : (127 < i && i < 2048 ? t +=
  27509. String.fromCharCode(i >> 6 | 192) : (t += String.fromCharCode(
  27510. i >> 12 | 224), t += String.fromCharCode(i >> 6 & 63 |
  27511. 128)), t += String.fromCharCode(63 & i | 128))
  27512. }
  27513. return t
  27514. }(e)),
  27515. c = 1732584193,
  27516. _ = 4023233417,
  27517. f = 2562383102,
  27518. m = 271733878;
  27519. for (e = 0; e < h.length; e += 16) c = t(s = c, u = _, d = f, l = m, h[e + 0], 7,
  27520. 3614090360), m = t(m, c, _, f, h[e + 1], 12, 3905402710), f = t(f, m, c, _, h[
  27521. e + 2], 17, 606105819), _ = t(_, f, m, c, h[e + 3], 22, 3250441966), c = t(c, _,
  27522. f, m, h[e + 4], 7, 4118548399), m = t(m, c, _, f, h[e + 5], 12, 1200080426), f =
  27523. t(f, m, c, _, h[e + 6], 17, 2821735955), _ = t(_, f, m, c, h[e + 7], 22,
  27524. 4249261313), c = t(c, _, f, m, h[e + 8], 7, 1770035416), m = t(m, c, _, f, h[e +
  27525. 9],
  27526. 12, 2336552879), f = t(f, m, c, _, h[e + 10], 17, 4294925233), _ = t(_, f, m, c,
  27527. h[e + 11], 22, 2304563134), c = t(c, _, f, m, h[e + 12], 7, 1804603682), m = t(
  27528. m, c, _, f, h[e + 13], 12, 4254626195), f = t(f, m, c, _, h[e + 14], 17,
  27529. 2792965006), c = n(c, _ = t(_, f, m, c, h[e + 15], 22, 1236535329), f, m, h[e +
  27530. 1], 5, 4129170786), m = n(m, c, _, f, h[e + 6], 9, 3225465664), f = n(f, m, c,
  27531. _, h[e + 11], 14, 643717713), _ = n(_, f, m, c, h[e + 0], 20, 3921069994), c =
  27532. n(c, _, f, m, h[e + 5], 5, 3593408605), m = n(m, c, _, f, h[e + 10], 9, 38016083),
  27533. f = n(f, m, c, _, h[e + 15], 14, 3634488961), _ = n(_, f, m, c, h[e + 4], 20,
  27534. 3889429448), c = n(c, _, f, m, h[e + 9], 5, 568446438), m = n(m, c, _, f, h[e +
  27535. 14], 9, 3275163606), f = n(f, m, c, _, h[e + 3], 14, 4107603335), _ = n(_, f, m,
  27536. c, h[e + 8], 20, 1163531501), c = n(c, _, f, m, h[e + 13], 5, 2850285829), m =
  27537. n(m, c, _, f, h[e + 2], 9, 4243563512), f = n(f, m, c, _, h[e + 7], 14, 1735328473),
  27538. c = i(c, _ = n(_, f, m, c, h[e + 12], 20, 2368359562), f, m, h[e + 5], 4,
  27539. 4294588738), m = i(m, c, _, f, h[e + 8], 11, 2272392833), f = i(f, m, c, _, h[
  27540. e + 11], 16, 1839030562), _ = i(_, f, m, c, h[e + 14], 23, 4259657740), c = i(c,
  27541. _, f, m, h[e + 1], 4, 2763975236), m = i(m, c, _, f, h[e + 4], 11, 1272893353),
  27542. f = i(f, m, c, _, h[e + 7], 16, 4139469664), _ = i(_, f, m, c, h[e + 10], 23,
  27543. 3200236656), c = i(c, _, f, m, h[e + 13], 4, 681279174), m = i(m, c, _, f, h[e +
  27544. 0], 11, 3936430074), f = i(f, m, c, _, h[e + 3], 16, 3572445317), _ = i(_, f, m,
  27545. c, h[e + 6], 23, 76029189), c = i(c, _, f, m, h[e + 9], 4, 3654602809), m = i(m,
  27546. c, _, f, h[e + 12], 11, 3873151461), f = i(f, m, c, _, h[e + 15], 16,
  27547. 530742520), c = r(c, _ = i(_, f, m, c, h[e + 2], 23, 3299628645), f, m, h[e +
  27548. 0], 6,
  27549. 4096336452), m = r(m, c, _, f, h[e + 7], 10, 1126891415), f = r(f, m, c, _, h[
  27550. e + 14], 15, 2878612391), _ = r(_, f, m, c, h[e + 5], 21, 4237533241), c = r(c,
  27551. _, f, m, h[e + 12], 6, 1700485571), m = r(m, c, _, f, h[e + 3], 10, 2399980690),
  27552. f = r(f, m, c, _, h[e + 10], 15, 4293915773), _ = r(_, f, m, c, h[e + 1], 21,
  27553. 2240044497), c = r(c, _, f, m, h[e + 8], 6, 1873313359), m = r(m, c, _, f, h[e +
  27554. 15], 10, 4264355552), f = r(f, m, c, _, h[e + 6], 15, 2734768916), _ = r(_, f,
  27555. m, c, h[e + 13], 21, 1309151649), c = r(c, _, f, m, h[e + 4], 6, 4149444226),
  27556. m = r(m, c, _, f, h[e + 11], 10, 3174756917), f = r(f, m, c, _, h[e + 2], 15,
  27557. 718787259), _ = r(_, f, m, c, h[e + 9], 21, 3951481745), c = o(c, s), _ = o(_,
  27558. u), f = o(f, d), m = o(m, l);
  27559. return (a(c) + a(_) + a(f) + a(m)).toLowerCase()
  27560. }, ie.publicKeyFromString = function(e) {
  27561. var e = e.split("|")[0],
  27562. t = new Z;
  27563. return t.setPublic(e, "10001"), t
  27564. }, ie.encrypt = function(e, t, n) {
  27565. var i = "";
  27566. try {
  27567. i += ie.publicKeyFromString(t).encrypt(e) + "?"
  27568. } catch (e) {
  27569. return {
  27570. status: "Invalid public key"
  27571. }
  27572. }
  27573. return {
  27574. status: "success",
  27575. cipher: i
  27576. }
  27577. }, ie.decrypt = function(e, t) {
  27578. e = e.split("?");
  27579. return {
  27580. status: "success",
  27581. plaintext: t.decrypt(e[0]),
  27582. signature: "unsigned"
  27583. }
  27584. }, ie);
  27585. e.exports = u
  27586. }, function(e, t, n) {
  27587. e.exports = {
  27588. default: n(271),
  27589. __esModule: !0
  27590. }
  27591. }, function(e, t, n) {
  27592. n(41), n(75), e.exports = n(57).f("iterator")
  27593. }, function(e, t, n) {
  27594. e.exports = {
  27595. default: n(273),
  27596. __esModule: !0
  27597. }
  27598. }, function(e, t, n) {
  27599. n(274), n(67), n(279), n(280), e.exports = n(3).Symbol
  27600. }, function(e, t, n) {
  27601. "use strict";
  27602. function i(e) {
  27603. var t = V[e] = E(W[F]);
  27604. return t._k = e, t
  27605. }
  27606. function r(e, t) {
  27607. S(e);
  27608. for (var n, i = M(t = w(t)), r = 0, a = i.length; r < a;) Q(e, n = i[r++], t[n]);
  27609. return e
  27610. }
  27611. function a(e) {
  27612. var t = z.call(this, e = D(e, !0));
  27613. return !(this === J && u(V, e) && !u(G, e)) && (!(t || !u(this, e) || !u(V, e) || u(this, B) &&
  27614. this[B][e]) || t)
  27615. }
  27616. function s(e, t) {
  27617. if (e = w(e), t = D(t, !0), e !== J || !u(V, t) || u(G, t)) {
  27618. var n = x(e, t);
  27619. return !n || !u(V, t) || u(e, B) && e[B][t] || (n.enumerable = !0), n
  27620. }
  27621. }
  27622. var o = n(6),
  27623. u = n(18),
  27624. d = n(14),
  27625. l = n(8),
  27626. h = n(70),
  27627. c = n(275).KEY,
  27628. _ = n(23),
  27629. f = n(49),
  27630. m = n(36),
  27631. p = n(35),
  27632. y = n(7),
  27633. v = n(57),
  27634. g = n(58),
  27635. M = n(276),
  27636. L = n(277),
  27637. S = n(13),
  27638. k = n(16),
  27639. b = n(24),
  27640. w = n(19),
  27641. D = n(45),
  27642. T = n(28),
  27643. E = n(46),
  27644. Y = n(278),
  27645. P = n(60),
  27646. C = n(59),
  27647. A = n(12),
  27648. R = n(30),
  27649. x = P.f,
  27650. O = A.f,
  27651. I = Y.f,
  27652. W = o.Symbol,
  27653. H = o.JSON,
  27654. j = H && H.stringify,
  27655. F = "prototype",
  27656. B = y("_hidden"),
  27657. N = y("toPrimitive"),
  27658. z = {}.propertyIsEnumerable,
  27659. U = f("symbol-registry"),
  27660. V = f("symbols"),
  27661. G = f("op-symbols"),
  27662. J = Object[F],
  27663. q = "function" == typeof W && !!C.f,
  27664. K = o.QObject,
  27665. X = !K || !K[F] || !K[F].findChild,
  27666. Z = d && _(function() {
  27667. return 7 != E(O({}, "a", {
  27668. get: function() {
  27669. return O(this, "a", {
  27670. value: 7
  27671. }).a
  27672. }
  27673. })).a
  27674. }) ? function(e, t, n) {
  27675. var i = x(J, t);
  27676. i && delete J[t], O(e, t, n), i && e !== J && O(J, t, i)
  27677. } : O,
  27678. $ = q && "symbol" == typeof W.iterator ? function(e) {
  27679. return "symbol" == typeof e
  27680. } : function(e) {
  27681. return e instanceof W
  27682. },
  27683. Q = function(e, t, n) {
  27684. return e === J && Q(G, t, n), S(e), t = D(t, !0), S(n), u(V, t) ? (n.enumerable ? (u(e,
  27685. B) && e[B][t] && (e[B][t] = !1), n = E(n, {
  27686. enumerable: T(0, !1)
  27687. })) : (u(e, B) || O(e, B, T(1, {})), e[B][t] = !0), Z(e, t, n)) : O(e, t, n)
  27688. },
  27689. f = function(e) {
  27690. for (var t, n = I(w(e)), i = [], r = 0; n.length > r;) u(V, t = n[r++]) || t == B || t ==
  27691. c || i.push(t);
  27692. return i
  27693. },
  27694. K = function(e) {
  27695. for (var t, n = e === J, i = I(n ? G : w(e)), r = [], a = 0; i.length > a;) !u(V, t = i[
  27696. a++]) || n && !u(J, t) || r.push(V[t]);
  27697. return r
  27698. };
  27699. q || (h((W = function() {
  27700. if (this instanceof W) throw TypeError("Symbol is not a constructor!");
  27701. var t = p(0 < arguments.length ? arguments[0] : void 0),
  27702. n = function(e) {
  27703. this === J && n.call(G, e), u(this, B) && u(this[B], t) && (this[B][
  27704. t
  27705. ] = !1), Z(this, t, T(1, e))
  27706. };
  27707. return d && X && Z(J, t, {
  27708. configurable: !0,
  27709. set: n
  27710. }), i(t)
  27711. })[F], "toString", function() {
  27712. return this._k
  27713. }), P.f = s, A.f = Q, n(90).f = Y.f = f, n(37).f = a, C.f = K, d && !n(27) && h(J,
  27714. "propertyIsEnumerable", a, !0), v.f = function(e) {
  27715. return i(y(e))
  27716. }), l(l.G + l.W + l.F * !q, {
  27717. Symbol: W
  27718. });
  27719. for (var ee =
  27720. "hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables"
  27721. .split(","), te = 0; ee.length > te;) y(ee[te++]);
  27722. for (var ne = R(y.store), ie = 0; ne.length > ie;) g(ne[ie++]);
  27723. l(l.S + l.F * !q, "Symbol", {
  27724. for: function(e) {
  27725. return u(U, e += "") ? U[e] : U[e] = W(e)
  27726. },
  27727. keyFor: function(e) {
  27728. if (!$(e)) throw TypeError(e + " is not a symbol!");
  27729. for (var t in U)
  27730. if (U[t] === e) return t
  27731. },
  27732. useSetter: function() {
  27733. X = !0
  27734. },
  27735. useSimple: function() {
  27736. X = !1
  27737. }
  27738. }), l(l.S + l.F * !q, "Object", {
  27739. create: function(e, t) {
  27740. return void 0 === t ? E(e) : r(E(e), t)
  27741. },
  27742. defineProperty: Q,
  27743. defineProperties: r,
  27744. getOwnPropertyDescriptor: s,
  27745. getOwnPropertyNames: f,
  27746. getOwnPropertySymbols: K
  27747. });
  27748. K = _(function() {
  27749. C.f(1)
  27750. });
  27751. l(l.S + l.F * K, "Object", {
  27752. getOwnPropertySymbols: function(e) {
  27753. return C.f(b(e))
  27754. }
  27755. }), H && l(l.S + l.F * (!q || _(function() {
  27756. var e = W();
  27757. return "[null]" != j([e]) || "{}" != j({
  27758. a: e
  27759. }) || "{}" != j(Object(e))
  27760. })), "JSON", {
  27761. stringify: function(e) {
  27762. for (var t, n, i = [e], r = 1; r < arguments.length;) i.push(arguments[r++]);
  27763. if (n = t = i[1], (k(t) || void 0 !== e) && !$(e)) return L(t) || (t = function(
  27764. e, t) {
  27765. if ("function" == typeof n && (t = n.call(this, e, t)), !$(t))
  27766. return t
  27767. }), i[1] = t, j.apply(H, i)
  27768. }
  27769. }), W[F][N] || n(17)(W[F], N, W[F].valueOf), m(W, "Symbol"), m(Math, "Math", !0), m(o.JSON,
  27770. "JSON", !0)
  27771. }, function(e, t, n) {
  27772. function i(e) {
  27773. o(e, r, {
  27774. value: {
  27775. i: "O" + ++u,
  27776. w: {}
  27777. }
  27778. })
  27779. }
  27780. var r = n(35)("meta"),
  27781. a = n(16),
  27782. s = n(18),
  27783. o = n(12).f,
  27784. u = 0,
  27785. d = Object.isExtensible || function() {
  27786. return !0
  27787. },
  27788. l = !n(23)(function() {
  27789. return d(Object.preventExtensions({}))
  27790. }),
  27791. h = e.exports = {
  27792. KEY: r,
  27793. NEED: !1,
  27794. fastKey: function(e, t) {
  27795. if (!a(e)) return "symbol" == typeof e ? e : ("string" == typeof e ? "S" : "P") + e;
  27796. if (!s(e, r)) {
  27797. if (!d(e)) return "F";
  27798. if (!t) return "E";
  27799. i(e)
  27800. }
  27801. return e[r].i
  27802. },
  27803. getWeak: function(e, t) {
  27804. if (!s(e, r)) {
  27805. if (!d(e)) return !0;
  27806. if (!t) return !1;
  27807. i(e)
  27808. }
  27809. return e[r].w
  27810. },
  27811. onFreeze: function(e) {
  27812. return l && h.NEED && d(e) && !s(e, r) && i(e), e
  27813. }
  27814. }
  27815. }, function(e, t, n) {
  27816. var o = n(30),
  27817. u = n(59),
  27818. d = n(37);
  27819. e.exports = function(e) {
  27820. var t = o(e),
  27821. n = u.f;
  27822. if (n)
  27823. for (var i, r = n(e), a = d.f, s = 0; r.length > s;) a.call(e, i = r[s++]) && t.push(i);
  27824. return t
  27825. }
  27826. }, function(e, t, n) {
  27827. var i = n(31);
  27828. e.exports = Array.isArray || function(e) {
  27829. return "Array" == i(e)
  27830. }
  27831. }, function(e, t, n) {
  27832. var i = n(19),
  27833. r = n(90).f,
  27834. a = {}.toString,
  27835. s = "object" == typeof window && window && Object.getOwnPropertyNames ? Object
  27836. .getOwnPropertyNames(window) : [];
  27837. e.exports.f = function(e) {
  27838. return s && "[object Window]" == a.call(e) ? function(e) {
  27839. try {
  27840. return r(e)
  27841. } catch (e) {
  27842. return s.slice()
  27843. }
  27844. }(e) : r(i(e))
  27845. }
  27846. }, function(e, t, n) {
  27847. n(58)("asyncIterator")
  27848. }, function(e, t, n) {
  27849. n(58)("observable")
  27850. }, function(e, t, n) {
  27851. "use strict";
  27852. Object.defineProperty(t, "__esModule", {
  27853. value: !0
  27854. });
  27855. var u, i, r, a, d, s, E = function(o) {
  27856. function n() {}
  27857. var e = {},
  27858. t = e.lib = {},
  27859. i = t.Base = {
  27860. extend: function(e) {
  27861. n.prototype = this;
  27862. var t = new n;
  27863. return e && t.mixIn(e), t.hasOwnProperty("init") || (t.init = function() {
  27864. t.$super.init.apply(this, arguments)
  27865. }), (t.init.prototype = t).$super = this, t
  27866. },
  27867. create: function() {
  27868. var e = this.extend();
  27869. return e.init.apply(e, arguments), e
  27870. },
  27871. init: function() {},
  27872. mixIn: function(e) {
  27873. for (var t in e) e.hasOwnProperty(t) && (this[t] = e[t]);
  27874. e.hasOwnProperty("toString") && (this.toString = e.toString)
  27875. },
  27876. clone: function() {
  27877. return this.init.prototype.extend(this)
  27878. }
  27879. },
  27880. u = t.WordArray = i.extend({
  27881. init: function(e, t) {
  27882. e = this.words = e || [], this.sigBytes = null != t ? t : 4 * e.length
  27883. },
  27884. toString: function(e) {
  27885. return (e || a).stringify(this)
  27886. },
  27887. concat: function(e) {
  27888. var t = this.words,
  27889. n = e.words,
  27890. i = this.sigBytes;
  27891. if (e = e.sigBytes, this.clamp(), i % 4)
  27892. for (var r = 0; r < e; r++) t[i + r >>> 2] |= (n[r >>> 2] >>> 24 -
  27893. r % 4 * 8 & 255) << 24 - (i + r) % 4 * 8;
  27894. else if (65535 < n.length)
  27895. for (r = 0; r < e; r += 4) t[i + r >>> 2] = n[r >>> 2];
  27896. else t.push.apply(t, n);
  27897. return this.sigBytes += e, this
  27898. },
  27899. clamp: function() {
  27900. var e = this.words,
  27901. t = this.sigBytes;
  27902. e[t >>> 2] &= 4294967295 << 32 - t % 4 * 8, e.length = o.ceil(t / 4)
  27903. },
  27904. clone: function() {
  27905. var e = i.clone.call(this);
  27906. return e.words = this.words.slice(0), e
  27907. },
  27908. random: function(e) {
  27909. for (var t = [], n = 0; n < e; n += 4) t.push(4294967296 * o.random() |
  27910. 0);
  27911. return new u.init(t, e)
  27912. }
  27913. }),
  27914. r = e.enc = {},
  27915. a = r.Hex = {
  27916. stringify: function(e) {
  27917. var t = e.words;
  27918. e = e.sigBytes;
  27919. for (var n = [], i = 0; i < e; i++) {
  27920. var r = t[i >>> 2] >>> 24 - i % 4 * 8 & 255;
  27921. n.push((r >>> 4).toString(16)), n.push((15 & r).toString(16))
  27922. }
  27923. return n.join("")
  27924. },
  27925. parse: function(e) {
  27926. for (var t = e.length, n = [], i = 0; i < t; i += 2) n[i >>> 3] |= parseInt(
  27927. e.substr(i, 2), 16) << 24 - i % 8 * 4;
  27928. return new u.init(n, t / 2)
  27929. }
  27930. },
  27931. s = r.Latin1 = {
  27932. stringify: function(e) {
  27933. var t = e.words;
  27934. e = e.sigBytes;
  27935. for (var n = [], i = 0; i < e; i++) n.push(String.fromCharCode(t[i >>>
  27936. 2] >>> 24 - i % 4 * 8 & 255));
  27937. return n.join("")
  27938. },
  27939. parse: function(e) {
  27940. for (var t = e.length, n = [], i = 0; i < t; i++) n[i >>> 2] |= (255 & e
  27941. .charCodeAt(i)) << 24 - i % 4 * 8;
  27942. return new u.init(n, t)
  27943. }
  27944. },
  27945. d = r.Utf8 = {
  27946. stringify: function(e) {
  27947. try {
  27948. return decodeURIComponent(escape(s.stringify(e)))
  27949. } catch (e) {
  27950. throw Error("Malformed UTF-8 data")
  27951. }
  27952. },
  27953. parse: function(e) {
  27954. return s.parse(unescape(encodeURIComponent(e)))
  27955. }
  27956. },
  27957. l = t.BufferedBlockAlgorithm = i.extend({
  27958. reset: function() {
  27959. this._data = new u.init, this._nDataBytes = 0
  27960. },
  27961. _append: function(e) {
  27962. "string" == typeof e && (e = d.parse(e)), this._data.concat(e), this
  27963. ._nDataBytes += e.sigBytes
  27964. },
  27965. _process: function(e) {
  27966. var t = this._data,
  27967. n = t.words,
  27968. i = t.sigBytes,
  27969. r = this.blockSize,
  27970. a = i / (4 * r),
  27971. a = e ? o.ceil(a) : o.max((0 | a) - this._minBufferSize, 0),
  27972. i = o.min(4 * (e = a * r), i);
  27973. if (e) {
  27974. for (var s = 0; s < e; s += r) this._doProcessBlock(n, s);
  27975. s = n.splice(0, e), t.sigBytes -= i
  27976. }
  27977. return new u.init(s, i)
  27978. },
  27979. clone: function() {
  27980. var e = i.clone.call(this);
  27981. return e._data = this._data.clone(), e
  27982. },
  27983. _minBufferSize: 0
  27984. });
  27985. t.Hasher = l.extend({
  27986. cfg: i.extend(),
  27987. init: function(e) {
  27988. this.cfg = this.cfg.extend(e), this.reset()
  27989. },
  27990. reset: function() {
  27991. l.reset.call(this), this._doReset()
  27992. },
  27993. update: function(e) {
  27994. return this._append(e), this._process(), this
  27995. },
  27996. finalize: function(e) {
  27997. return e && this._append(e), this._doFinalize()
  27998. },
  27999. blockSize: 16,
  28000. _createHelper: function(n) {
  28001. return function(e, t) {
  28002. return new n.init(t).finalize(e)
  28003. }
  28004. },
  28005. _createHmacHelper: function(n) {
  28006. return function(e, t) {
  28007. return new h.HMAC.init(n, t).finalize(e)
  28008. }
  28009. }
  28010. });
  28011. var h = e.algo = {};
  28012. return e
  28013. }(Math);
  28014. u = E.lib.WordArray, E.enc.Base64 = {
  28015. stringify: function(e) {
  28016. var t = e.words,
  28017. n = e.sigBytes,
  28018. i = this._map;
  28019. e.clamp(), e = [];
  28020. for (var r = 0; r < n; r += 3)
  28021. for (var a = (t[r >>> 2] >>> 24 - r % 4 * 8 & 255) << 16 | (t[r + 1 >>> 2] >>>
  28022. 24 - (r + 1) % 4 * 8 & 255) << 8 | t[r + 2 >>> 2] >>> 24 - (r + 2) %
  28023. 4 * 8 & 255, s = 0; s < 4 && r + .75 * s < n; s++) e.push(i.charAt(a >>>
  28024. 6 * (3 - s) & 63));
  28025. if (t = i.charAt(64))
  28026. for (; e.length % 4;) e.push(t);
  28027. return e.join("")
  28028. },
  28029. parse: function(e) {
  28030. var t = e.length,
  28031. n = this._map;
  28032. !(a = n.charAt(64)) || -1 != (a = e.indexOf(a)) && (t = a);
  28033. for (var i, r, a = [], s = 0, o = 0; o < t; o++) o % 4 && (i = n.indexOf(e.charAt(
  28034. o - 1)) << o % 4 * 2, r = n.indexOf(e.charAt(o)) >>> 6 - o % 4 * 2, a[
  28035. s >>> 2] |= (i | r) << 24 - s % 4 * 8, s++);
  28036. return u.create(a, s)
  28037. },
  28038. _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
  28039. },
  28040. function(a) {
  28041. function k(e, t, n, i, r, a, s) {
  28042. return ((e = e + (t & n | ~t & i) + r + s) << a | e >>> 32 - a) + t
  28043. }
  28044. function b(e, t, n, i, r, a, s) {
  28045. return ((e = e + (t & i | n & ~i) + r + s) << a | e >>> 32 - a) + t
  28046. }
  28047. function w(e, t, n, i, r, a, s) {
  28048. return ((e = e + (t ^ n ^ i) + r + s) << a | e >>> 32 - a) + t
  28049. }
  28050. function D(e, t, n, i, r, a, s) {
  28051. return ((e = e + (n ^ (t | ~i)) + r + s) << a | e >>> 32 - a) + t
  28052. }
  28053. for (var e = E, t = (i = e.lib).WordArray, n = i.Hasher, i = e.algo, T = [], r = 0; r <
  28054. 64; r++) T[r] = 4294967296 * a.abs(a.sin(r + 1)) | 0;
  28055. i = i.MD5 = n.extend({
  28056. _doReset: function() {
  28057. this._hash = new t.init([1732584193, 4023233417, 2562383102, 271733878])
  28058. },
  28059. _doProcessBlock: function(e, t) {
  28060. for (var n = 0; n < 16; n++) {
  28061. var i = e[r = t + n];
  28062. e[r] = 16711935 & (i << 8 | i >>> 24) | 4278255360 & (i << 24 |
  28063. i >>> 8)
  28064. }
  28065. var n = this._hash.words,
  28066. r = e[t + 0],
  28067. i = e[t + 1],
  28068. a = e[t + 2],
  28069. s = e[t + 3],
  28070. o = e[t + 4],
  28071. u = e[t + 5],
  28072. d = e[t + 6],
  28073. l = e[t + 7],
  28074. h = e[t + 8],
  28075. c = e[t + 9],
  28076. _ = e[t + 10],
  28077. f = e[t + 11],
  28078. m = e[t + 12],
  28079. p = e[t + 13],
  28080. y = e[t + 14],
  28081. v = e[t + 15],
  28082. g = k(g = n[0], S = n[1], L = n[2], M = n[3], r, 7, T[0]),
  28083. M = k(M, g, S, L, i, 12, T[1]),
  28084. L = k(L, M, g, S, a, 17, T[2]),
  28085. S = k(S, L, M, g, s, 22, T[3]),
  28086. g = k(g, S, L, M, o, 7, T[4]),
  28087. M = k(M, g, S, L, u, 12, T[5]),
  28088. L = k(L, M, g, S, d, 17, T[6]),
  28089. S = k(S, L, M, g, l, 22, T[7]),
  28090. g = k(g, S, L, M, h, 7, T[8]),
  28091. M = k(M, g, S, L, c, 12, T[9]),
  28092. L = k(L, M, g, S, _, 17, T[10]),
  28093. S = k(S, L, M, g, f, 22, T[11]),
  28094. g = k(g, S, L, M, m, 7, T[12]),
  28095. M = k(M, g, S, L, p, 12, T[13]),
  28096. L = k(L, M, g, S, y, 17, T[14]),
  28097. g = b(g, S = k(S, L, M, g, v, 22, T[15]), L, M, i, 5, T[16]),
  28098. M = b(M, g, S, L, d, 9, T[17]),
  28099. L = b(L, M, g, S, f, 14, T[18]),
  28100. S = b(S, L, M, g, r, 20, T[19]),
  28101. g = b(g, S, L, M, u, 5, T[20]),
  28102. M = b(M, g, S, L, _, 9, T[21]),
  28103. L = b(L, M, g, S, v, 14, T[22]),
  28104. S = b(S, L, M, g, o, 20, T[23]),
  28105. g = b(g, S, L, M, c, 5, T[24]),
  28106. M = b(M, g, S, L, y, 9, T[25]),
  28107. L = b(L, M, g, S, s, 14, T[26]),
  28108. S = b(S, L, M, g, h, 20, T[27]),
  28109. g = b(g, S, L, M, p, 5, T[28]),
  28110. M = b(M, g, S, L, a, 9, T[29]),
  28111. L = b(L, M, g, S, l, 14, T[30]),
  28112. g = w(g, S = b(S, L, M, g, m, 20, T[31]), L, M, u, 4, T[32]),
  28113. M = w(M, g, S, L, h, 11, T[33]),
  28114. L = w(L, M, g, S, f, 16, T[34]),
  28115. S = w(S, L, M, g, y, 23, T[35]),
  28116. g = w(g, S, L, M, i, 4, T[36]),
  28117. M = w(M, g, S, L, o, 11, T[37]),
  28118. L = w(L, M, g, S, l, 16, T[38]),
  28119. S = w(S, L, M, g, _, 23, T[39]),
  28120. g = w(g, S, L, M, p, 4, T[40]),
  28121. M = w(M, g, S, L, r, 11, T[41]),
  28122. L = w(L, M, g, S, s, 16, T[42]),
  28123. S = w(S, L, M, g, d, 23, T[43]),
  28124. g = w(g, S, L, M, c, 4, T[44]),
  28125. M = w(M, g, S, L, m, 11, T[45]),
  28126. L = w(L, M, g, S, v, 16, T[46]),
  28127. g = D(g, S = w(S, L, M, g, a, 23, T[47]), L, M, r, 6, T[48]),
  28128. M = D(M, g, S, L, l, 10, T[49]),
  28129. L = D(L, M, g, S, y, 15, T[50]),
  28130. S = D(S, L, M, g, u, 21, T[51]),
  28131. g = D(g, S, L, M, m, 6, T[52]),
  28132. M = D(M, g, S, L, s, 10, T[53]),
  28133. L = D(L, M, g, S, _, 15, T[54]),
  28134. S = D(S, L, M, g, i, 21, T[55]),
  28135. g = D(g, S, L, M, h, 6, T[56]),
  28136. M = D(M, g, S, L, v, 10, T[57]),
  28137. L = D(L, M, g, S, d, 15, T[58]),
  28138. S = D(S, L, M, g, p, 21, T[59]),
  28139. g = D(g, S, L, M, o, 6, T[60]),
  28140. M = D(M, g, S, L, f, 10, T[61]),
  28141. L = D(L, M, g, S, a, 15, T[62]),
  28142. S = D(S, L, M, g, c, 21, T[63]);
  28143. n[0] = n[0] + g | 0, n[1] = n[1] + S | 0, n[2] = n[2] + L | 0, n[3] = n[
  28144. 3] + M | 0
  28145. },
  28146. _doFinalize: function() {
  28147. var e = this._data,
  28148. t = e.words,
  28149. n = 8 * this._nDataBytes,
  28150. i = 8 * e.sigBytes;
  28151. t[i >>> 5] |= 128 << 24 - i % 32;
  28152. var r = a.floor(n / 4294967296);
  28153. for (t[15 + (64 + i >>> 9 << 4)] = 16711935 & (r << 8 | r >>> 24) |
  28154. 4278255360 & (r << 24 | r >>> 8), t[14 + (64 + i >>> 9 << 4)] =
  28155. 16711935 & (n << 8 | n >>> 24) | 4278255360 & (n << 24 | n >>> 8), e
  28156. .sigBytes = 4 * (t.length + 1), this._process(), t = (e = this
  28157. ._hash).words, n = 0; n < 4; n++) i = t[n], t[n] = 16711935 & (
  28158. i << 8 | i >>> 24) | 4278255360 & (i << 24 | i >>> 8);
  28159. return e
  28160. },
  28161. clone: function() {
  28162. var e = n.clone.call(this);
  28163. return e._hash = this._hash.clone(), e
  28164. }
  28165. }), e.MD5 = n._createHelper(i), e.HmacMD5 = n._createHmacHelper(i)
  28166. }(Math), r = (i = E).lib, a = r.Base, d = r.WordArray, s = (r = i.algo).EvpKDF = a.extend({
  28167. cfg: a.extend({
  28168. keySize: 4,
  28169. hasher: r.MD5,
  28170. iterations: 1
  28171. }),
  28172. init: function(e) {
  28173. this.cfg = this.cfg.extend(e)
  28174. },
  28175. compute: function(e, t) {
  28176. for (var n = (s = this.cfg).hasher.create(), i = d.create(), r = i.words, a = s
  28177. .keySize, s = s.iterations; r.length < a;) {
  28178. o && n.update(o);
  28179. var o = n.update(e).finalize(t);
  28180. n.reset();
  28181. for (var u = 1; u < s; u++) o = n.finalize(o), n.reset();
  28182. i.concat(o)
  28183. }
  28184. return i.sigBytes = 4 * a, i
  28185. }
  28186. }), i.EvpKDF = function(e, t, n) {
  28187. return s.create(n).compute(e, t)
  28188. }, E.lib.Cipher || function() {
  28189. var e = (c = E).lib,
  28190. t = e.Base,
  28191. s = e.WordArray,
  28192. n = e.BufferedBlockAlgorithm,
  28193. i = c.enc.Base64,
  28194. r = c.algo.EvpKDF,
  28195. a = e.Cipher = n.extend({
  28196. cfg: t.extend(),
  28197. createEncryptor: function(e, t) {
  28198. return this.create(this._ENC_XFORM_MODE, e, t)
  28199. },
  28200. createDecryptor: function(e, t) {
  28201. return this.create(this._DEC_XFORM_MODE, e, t)
  28202. },
  28203. init: function(e, t, n) {
  28204. this.cfg = this.cfg.extend(n), this._xformMode = e, this._key = t, this
  28205. .reset()
  28206. },
  28207. reset: function() {
  28208. n.reset.call(this), this._doReset()
  28209. },
  28210. process: function(e) {
  28211. return this._append(e), this._process()
  28212. },
  28213. finalize: function(e) {
  28214. return e && this._append(e), this._doFinalize()
  28215. },
  28216. keySize: 4,
  28217. ivSize: 4,
  28218. _ENC_XFORM_MODE: 1,
  28219. _DEC_XFORM_MODE: 2,
  28220. _createHelper: function(i) {
  28221. return {
  28222. encrypt: function(e, t, n) {
  28223. return ("string" == typeof t ? _ : h).encrypt(i, e, t, n)
  28224. },
  28225. decrypt: function(e, t, n) {
  28226. return ("string" == typeof t ? _ : h).decrypt(i, e, t, n)
  28227. }
  28228. }
  28229. }
  28230. });
  28231. e.StreamCipher = a.extend({
  28232. _doFinalize: function() {
  28233. return this._process(!0)
  28234. },
  28235. blockSize: 1
  28236. });
  28237. function o(e, t, n) {
  28238. var i = this._iv;
  28239. i ? this._iv = void 0 : i = this._prevBlock;
  28240. for (var r = 0; r < n; r++) e[t + r] ^= i[r]
  28241. }
  28242. var u = c.mode = {},
  28243. d = (e.BlockCipherMode = t.extend({
  28244. createEncryptor: function(e, t) {
  28245. return this.Encryptor.create(e, t)
  28246. },
  28247. createDecryptor: function(e, t) {
  28248. return this.Decryptor.create(e, t)
  28249. },
  28250. init: function(e, t) {
  28251. this._cipher = e, this._iv = t
  28252. }
  28253. })).extend();
  28254. d.Encryptor = d.extend({
  28255. processBlock: function(e, t) {
  28256. var n = this._cipher,
  28257. i = n.blockSize;
  28258. o.call(this, e, t, i), n.encryptBlock(e, t), this._prevBlock = e.slice(
  28259. t, t + i)
  28260. }
  28261. }), d.Decryptor = d.extend({
  28262. processBlock: function(e, t) {
  28263. var n = this._cipher,
  28264. i = n.blockSize,
  28265. r = e.slice(t, t + i);
  28266. n.decryptBlock(e, t), o.call(this, e, t, i), this._prevBlock = r
  28267. }
  28268. }), u = u.CBC = d, d = (c.pad = {}).Pkcs7 = {
  28269. pad: function(e, t) {
  28270. for (var n = 4 * t, i = (n = n - e.sigBytes % n) << 24 | n << 16 | n << 8 |
  28271. n, r = [], a = 0; a < n; a += 4) r.push(i);
  28272. n = s.create(r, n), e.concat(n)
  28273. },
  28274. unpad: function(e) {
  28275. e.sigBytes -= 255 & e.words[e.sigBytes - 1 >>> 2]
  28276. }
  28277. }, e.BlockCipher = a.extend({
  28278. cfg: a.cfg.extend({
  28279. mode: u,
  28280. padding: d
  28281. }),
  28282. reset: function() {
  28283. a.reset.call(this);
  28284. var e, t = (n = this.cfg).iv,
  28285. n = n.mode;
  28286. this._xformMode == this._ENC_XFORM_MODE ? e = n.createEncryptor : (e = n
  28287. .createDecryptor, this._minBufferSize = 1), this._mode = e.call(
  28288. n, this, t && t.words)
  28289. },
  28290. _doProcessBlock: function(e, t) {
  28291. this._mode.processBlock(e, t)
  28292. },
  28293. _doFinalize: function() {
  28294. var e, t = this.cfg.padding;
  28295. return this._xformMode == this._ENC_XFORM_MODE ? (t.pad(this._data, this
  28296. .blockSize), e = this._process(!0)) : (e = this._process(!0), t
  28297. .unpad(e)), e
  28298. },
  28299. blockSize: 4
  28300. });
  28301. var l = e.CipherParams = t.extend({
  28302. init: function(e) {
  28303. this.mixIn(e)
  28304. },
  28305. toString: function(e) {
  28306. return (e || this.formatter).stringify(this)
  28307. }
  28308. }),
  28309. u = (c.format = {}).OpenSSL = {
  28310. stringify: function(e) {
  28311. var t = e.ciphertext;
  28312. return ((e = e.salt) ? s.create([1398893684, 1701076831]).concat(e).concat(
  28313. t) : t).toString(i)
  28314. },
  28315. parse: function(e) {
  28316. var t, n = (e = i.parse(e)).words;
  28317. return 1398893684 == n[0] && 1701076831 == n[1] && (t = s.create(n.slice(2,
  28318. 4)), n.splice(0, 4), e.sigBytes -= 16), l.create({
  28319. ciphertext: e,
  28320. salt: t
  28321. })
  28322. }
  28323. },
  28324. h = e.SerializableCipher = t.extend({
  28325. cfg: t.extend({
  28326. format: u
  28327. }),
  28328. encrypt: function(e, t, n, i) {
  28329. i = this.cfg.extend(i);
  28330. var r = e.createEncryptor(n, i);
  28331. return t = r.finalize(t), r = r.cfg, l.create({
  28332. ciphertext: t,
  28333. key: n,
  28334. iv: r.iv,
  28335. algorithm: e,
  28336. mode: r.mode,
  28337. padding: r.padding,
  28338. blockSize: e.blockSize,
  28339. formatter: i.format
  28340. })
  28341. },
  28342. decrypt: function(e, t, n, i) {
  28343. return i = this.cfg.extend(i), t = this._parse(t, i.format), e
  28344. .createDecryptor(n, i).finalize(t.ciphertext)
  28345. },
  28346. _parse: function(e, t) {
  28347. return "string" == typeof e ? t.parse(e, this) : e
  28348. }
  28349. }),
  28350. c = (c.kdf = {}).OpenSSL = {
  28351. execute: function(e, t, n, i) {
  28352. return i = i || s.random(8), e = r.create({
  28353. keySize: t + n
  28354. }).compute(e, i), n = s.create(e.words.slice(t), 4 * n), e.sigBytes =
  28355. 4 * t, l.create({
  28356. key: e,
  28357. iv: n,
  28358. salt: i
  28359. })
  28360. }
  28361. },
  28362. _ = e.PasswordBasedCipher = h.extend({
  28363. cfg: h.cfg.extend({
  28364. kdf: c
  28365. }),
  28366. encrypt: function(e, t, n, i) {
  28367. return n = (i = this.cfg.extend(i)).kdf.execute(n, e.keySize, e.ivSize),
  28368. i.iv = n.iv, (e = h.encrypt.call(this, e, t, n.key, i)).mixIn(n), e
  28369. },
  28370. decrypt: function(e, t, n, i) {
  28371. return i = this.cfg.extend(i), t = this._parse(t, i.format), n = i.kdf
  28372. .execute(n, e.keySize, e.ivSize, t.salt), i.iv = n.iv, h.decrypt
  28373. .call(this, e, t, n.key, i)
  28374. }
  28375. })
  28376. }(),
  28377. function() {
  28378. for (var e = E, t = e.lib.BlockCipher, n = e.algo, s = [], i = [], r = [], a = [], o = [],
  28379. u = [], d = [], l = [], h = [], c = [], _ = [], f = 0; f < 256; f++) _[f] = f <
  28380. 128 ? f << 1 : f << 1 ^ 283;
  28381. for (var m = 0, p = 0, f = 0; f < 256; f++) {
  28382. var y = p ^ p << 1 ^ p << 2 ^ p << 3 ^ p << 4;
  28383. s[m] = y = y >>> 8 ^ 255 & y ^ 99;
  28384. var v = _[i[y] = m],
  28385. g = _[v],
  28386. M = _[g],
  28387. L = 257 * _[y] ^ 16843008 * y;
  28388. r[m] = L << 24 | L >>> 8, a[m] = L << 16 | L >>> 16, o[m] = L << 8 | L >>> 24, u[m] = L,
  28389. d[y] = (L = 16843009 * M ^ 65537 * g ^ 257 * v ^ 16843008 * m) << 24 | L >>> 8, l[
  28390. y] = L << 16 | L >>> 16, h[y] = L << 8 | L >>> 24, c[y] = L, m ? (m = v ^ _[_[_[
  28391. M ^
  28392. v]]], p ^= _[_[p]]) : m = p = 1
  28393. }
  28394. var S = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54],
  28395. n = n.AES = t.extend({
  28396. _doReset: function() {
  28397. for (var e, t = (i = this._key).words, n = i.sigBytes / 4, i = 4 * ((
  28398. this._nRounds = n + 6) + 1), r = this._keySchedule = [], a =
  28399. 0; a < i; a++) a < n ? r[a] = t[a] : (e = r[a - 1], a % n ? 6 <
  28400. n && 4 == a % n && (e = s[e >>> 24] << 24 | s[e >>> 16 & 255] <<
  28401. 16 | s[e >>> 8 & 255] << 8 | s[255 & e]) : (e = s[(e = e <<
  28402. 8 | e >>> 24) >>> 24] << 24 | s[e >>> 16 & 255] << 16 |
  28403. s[e >>> 8 & 255] << 8 | s[255 & e], e ^= S[a / n | 0] << 24
  28404. ), r[a] = r[a - n] ^ e);
  28405. for (t = this._invKeySchedule = [], n = 0; n < i; n++) a = i - n, e =
  28406. n % 4 ? r[a] : r[a - 4], t[n] = n < 4 || a <= 4 ? e : d[s[e >>>
  28407. 24]] ^ l[s[e >>> 16 & 255]] ^ h[s[e >>> 8 & 255]] ^ c[s[255 &
  28408. e]]
  28409. },
  28410. encryptBlock: function(e, t) {
  28411. this._doCryptBlock(e, t, this._keySchedule, r, a, o, u, s)
  28412. },
  28413. decryptBlock: function(e, t) {
  28414. var n = e[t + 1];
  28415. e[t + 1] = e[t + 3], e[t + 3] = n, this._doCryptBlock(e, t, this
  28416. ._invKeySchedule, d, l, h, c, i), n = e[t + 1], e[t + 1] = e[t +
  28417. 3], e[t + 3] = n
  28418. },
  28419. _doCryptBlock: function(e, t, n, i, r, a, s, o) {
  28420. for (var u = this._nRounds, d = e[t] ^ n[0], l = e[t + 1] ^ n[1], h = e[
  28421. t + 2] ^ n[2], c = e[t + 3] ^ n[3], _ = 4, f = 1; f < u; f++)
  28422. var m = i[d >>> 24] ^ r[l >>> 16 & 255] ^ a[h >>> 8 & 255] ^ s[255 &
  28423. c] ^ n[_++],
  28424. p = i[l >>> 24] ^ r[h >>> 16 & 255] ^ a[c >>> 8 & 255] ^ s[255 &
  28425. d] ^ n[_++],
  28426. y = i[h >>> 24] ^ r[c >>> 16 & 255] ^ a[d >>> 8 & 255] ^ s[255 &
  28427. l] ^ n[_++],
  28428. c = i[c >>> 24] ^ r[d >>> 16 & 255] ^ a[l >>> 8 & 255] ^ s[255 &
  28429. h] ^ n[_++],
  28430. d = m,
  28431. l = p,
  28432. h = y;
  28433. m = (o[d >>> 24] << 24 | o[l >>> 16 & 255] << 16 | o[h >>> 8 & 255] <<
  28434. 8 | o[255 & c]) ^ n[_++], p = (o[l >>> 24] << 24 | o[h >>> 16 &
  28435. 255] << 16 | o[c >>> 8 & 255] << 8 | o[255 & d]) ^ n[_++], y = (
  28436. o[h >>> 24] << 24 | o[c >>> 16 & 255] << 16 | o[d >>> 8 &
  28437. 255] << 8 | o[255 & l]) ^ n[_++], c = (o[c >>> 24] << 24 |
  28438. o[
  28439. d >>> 16 & 255] << 16 | o[l >>> 8 & 255] << 8 | o[255 & h]
  28440. ) ^ n[
  28441. _++], e[t] = m, e[t + 1] = p, e[t + 2] = y, e[t + 3] = c
  28442. },
  28443. keySize: 8
  28444. });
  28445. e.AES = t._createHelper(n)
  28446. }(), t.default = E
  28447. }, function(e, t, n) {
  28448. "use strict";
  28449. Object.defineProperty(t, "__esModule", {
  28450. value: !0
  28451. }), t.LocalService = void 0;
  28452. var i = a(n(56)),
  28453. r = a(n(1));
  28454. function a(e) {
  28455. return e && e.__esModule ? e : {
  28456. default: e
  28457. }
  28458. }(0, a(n(2)).default)(s, [{
  28459. key: "createClientObject",
  28460. value: function(e, t, n, i) {
  28461. return {
  28462. socket: e,
  28463. id: t,
  28464. playURL: n,
  28465. deviceSerial: i.deviceSerial || "",
  28466. verificationCode: i.verificationCode || "",
  28467. resolve: null,
  28468. reject: null,
  28469. stoping: !1
  28470. }
  28471. }
  28472. }, {
  28473. key: "playCmd",
  28474. value: function(e) {
  28475. e = {
  28476. sequence: 0,
  28477. cmd: "realplay",
  28478. deviceSerial: e.deviceSerial,
  28479. verificationCode: e.verificationCode,
  28480. url: e.playURL
  28481. };
  28482. return (0, i.default)(e)
  28483. }
  28484. }, {
  28485. key: "playbackCmd",
  28486. value: function(e, t, n) {
  28487. n = {
  28488. sequence: 0,
  28489. cmd: "playback",
  28490. deviceSerial: e.deviceSerial,
  28491. verificationCode: e.verificationCode,
  28492. url: e.playURL,
  28493. startTime: t,
  28494. endTime: n
  28495. };
  28496. return (0, i.default)(n)
  28497. }
  28498. }]), n = s;
  28499. function s() {
  28500. (0, r.default)(this, s)
  28501. }
  28502. t.LocalService = n
  28503. }, function(e, t) {
  28504. e.exports = function(e) {
  28505. return e.webpackPolyfill || (e.deprecate = function() {}, e.paths = [], e.children || (e
  28506. .children = []), Object.defineProperty(e, "loaded", {
  28507. enumerable: !0,
  28508. get: function() {
  28509. return e.l
  28510. }
  28511. }), Object.defineProperty(e, "id", {
  28512. enumerable: !0,
  28513. get: function() {
  28514. return e.i
  28515. }
  28516. }), e.webpackPolyfill = 1), e
  28517. }
  28518. }, function(e, t, n) {
  28519. var i = {
  28520. "./af": 92,
  28521. "./af.js": 92,
  28522. "./ar": 93,
  28523. "./ar-dz": 94,
  28524. "./ar-dz.js": 94,
  28525. "./ar-kw": 95,
  28526. "./ar-kw.js": 95,
  28527. "./ar-ly": 96,
  28528. "./ar-ly.js": 96,
  28529. "./ar-ma": 97,
  28530. "./ar-ma.js": 97,
  28531. "./ar-sa": 98,
  28532. "./ar-sa.js": 98,
  28533. "./ar-tn": 99,
  28534. "./ar-tn.js": 99,
  28535. "./ar.js": 93,
  28536. "./az": 100,
  28537. "./az.js": 100,
  28538. "./be": 101,
  28539. "./be.js": 101,
  28540. "./bg": 102,
  28541. "./bg.js": 102,
  28542. "./bm": 103,
  28543. "./bm.js": 103,
  28544. "./bn": 104,
  28545. "./bn-bd": 105,
  28546. "./bn-bd.js": 105,
  28547. "./bn.js": 104,
  28548. "./bo": 106,
  28549. "./bo.js": 106,
  28550. "./br": 107,
  28551. "./br.js": 107,
  28552. "./bs": 108,
  28553. "./bs.js": 108,
  28554. "./ca": 109,
  28555. "./ca.js": 109,
  28556. "./cs": 110,
  28557. "./cs.js": 110,
  28558. "./cv": 111,
  28559. "./cv.js": 111,
  28560. "./cy": 112,
  28561. "./cy.js": 112,
  28562. "./da": 113,
  28563. "./da.js": 113,
  28564. "./de": 114,
  28565. "./de-at": 115,
  28566. "./de-at.js": 115,
  28567. "./de-ch": 116,
  28568. "./de-ch.js": 116,
  28569. "./de.js": 114,
  28570. "./dv": 117,
  28571. "./dv.js": 117,
  28572. "./el": 118,
  28573. "./el.js": 118,
  28574. "./en-au": 119,
  28575. "./en-au.js": 119,
  28576. "./en-ca": 120,
  28577. "./en-ca.js": 120,
  28578. "./en-gb": 121,
  28579. "./en-gb.js": 121,
  28580. "./en-ie": 122,
  28581. "./en-ie.js": 122,
  28582. "./en-il": 123,
  28583. "./en-il.js": 123,
  28584. "./en-in": 124,
  28585. "./en-in.js": 124,
  28586. "./en-nz": 125,
  28587. "./en-nz.js": 125,
  28588. "./en-sg": 126,
  28589. "./en-sg.js": 126,
  28590. "./eo": 127,
  28591. "./eo.js": 127,
  28592. "./es": 128,
  28593. "./es-do": 129,
  28594. "./es-do.js": 129,
  28595. "./es-mx": 130,
  28596. "./es-mx.js": 130,
  28597. "./es-us": 131,
  28598. "./es-us.js": 131,
  28599. "./es.js": 128,
  28600. "./et": 132,
  28601. "./et.js": 132,
  28602. "./eu": 133,
  28603. "./eu.js": 133,
  28604. "./fa": 134,
  28605. "./fa.js": 134,
  28606. "./fi": 135,
  28607. "./fi.js": 135,
  28608. "./fil": 136,
  28609. "./fil.js": 136,
  28610. "./fo": 137,
  28611. "./fo.js": 137,
  28612. "./fr": 138,
  28613. "./fr-ca": 139,
  28614. "./fr-ca.js": 139,
  28615. "./fr-ch": 140,
  28616. "./fr-ch.js": 140,
  28617. "./fr.js": 138,
  28618. "./fy": 141,
  28619. "./fy.js": 141,
  28620. "./ga": 142,
  28621. "./ga.js": 142,
  28622. "./gd": 143,
  28623. "./gd.js": 143,
  28624. "./gl": 144,
  28625. "./gl.js": 144,
  28626. "./gom-deva": 145,
  28627. "./gom-deva.js": 145,
  28628. "./gom-latn": 146,
  28629. "./gom-latn.js": 146,
  28630. "./gu": 147,
  28631. "./gu.js": 147,
  28632. "./he": 148,
  28633. "./he.js": 148,
  28634. "./hi": 149,
  28635. "./hi.js": 149,
  28636. "./hr": 150,
  28637. "./hr.js": 150,
  28638. "./hu": 151,
  28639. "./hu.js": 151,
  28640. "./hy-am": 152,
  28641. "./hy-am.js": 152,
  28642. "./id": 153,
  28643. "./id.js": 153,
  28644. "./is": 154,
  28645. "./is.js": 154,
  28646. "./it": 155,
  28647. "./it-ch": 156,
  28648. "./it-ch.js": 156,
  28649. "./it.js": 155,
  28650. "./ja": 157,
  28651. "./ja.js": 157,
  28652. "./jv": 158,
  28653. "./jv.js": 158,
  28654. "./ka": 159,
  28655. "./ka.js": 159,
  28656. "./kk": 160,
  28657. "./kk.js": 160,
  28658. "./km": 161,
  28659. "./km.js": 161,
  28660. "./kn": 162,
  28661. "./kn.js": 162,
  28662. "./ko": 163,
  28663. "./ko.js": 163,
  28664. "./ku": 164,
  28665. "./ku.js": 164,
  28666. "./ky": 165,
  28667. "./ky.js": 165,
  28668. "./lb": 166,
  28669. "./lb.js": 166,
  28670. "./lo": 167,
  28671. "./lo.js": 167,
  28672. "./lt": 168,
  28673. "./lt.js": 168,
  28674. "./lv": 169,
  28675. "./lv.js": 169,
  28676. "./me": 170,
  28677. "./me.js": 170,
  28678. "./mi": 171,
  28679. "./mi.js": 171,
  28680. "./mk": 172,
  28681. "./mk.js": 172,
  28682. "./ml": 173,
  28683. "./ml.js": 173,
  28684. "./mn": 174,
  28685. "./mn.js": 174,
  28686. "./mr": 175,
  28687. "./mr.js": 175,
  28688. "./ms": 176,
  28689. "./ms-my": 177,
  28690. "./ms-my.js": 177,
  28691. "./ms.js": 176,
  28692. "./mt": 178,
  28693. "./mt.js": 178,
  28694. "./my": 179,
  28695. "./my.js": 179,
  28696. "./nb": 180,
  28697. "./nb.js": 180,
  28698. "./ne": 181,
  28699. "./ne.js": 181,
  28700. "./nl": 182,
  28701. "./nl-be": 183,
  28702. "./nl-be.js": 183,
  28703. "./nl.js": 182,
  28704. "./nn": 184,
  28705. "./nn.js": 184,
  28706. "./oc-lnc": 185,
  28707. "./oc-lnc.js": 185,
  28708. "./pa-in": 186,
  28709. "./pa-in.js": 186,
  28710. "./pl": 187,
  28711. "./pl.js": 187,
  28712. "./pt": 188,
  28713. "./pt-br": 189,
  28714. "./pt-br.js": 189,
  28715. "./pt.js": 188,
  28716. "./ro": 190,
  28717. "./ro.js": 190,
  28718. "./ru": 191,
  28719. "./ru.js": 191,
  28720. "./sd": 192,
  28721. "./sd.js": 192,
  28722. "./se": 193,
  28723. "./se.js": 193,
  28724. "./si": 194,
  28725. "./si.js": 194,
  28726. "./sk": 195,
  28727. "./sk.js": 195,
  28728. "./sl": 196,
  28729. "./sl.js": 196,
  28730. "./sq": 197,
  28731. "./sq.js": 197,
  28732. "./sr": 198,
  28733. "./sr-cyrl": 199,
  28734. "./sr-cyrl.js": 199,
  28735. "./sr.js": 198,
  28736. "./ss": 200,
  28737. "./ss.js": 200,
  28738. "./sv": 201,
  28739. "./sv.js": 201,
  28740. "./sw": 202,
  28741. "./sw.js": 202,
  28742. "./ta": 203,
  28743. "./ta.js": 203,
  28744. "./te": 204,
  28745. "./te.js": 204,
  28746. "./tet": 205,
  28747. "./tet.js": 205,
  28748. "./tg": 206,
  28749. "./tg.js": 206,
  28750. "./th": 207,
  28751. "./th.js": 207,
  28752. "./tk": 208,
  28753. "./tk.js": 208,
  28754. "./tl-ph": 209,
  28755. "./tl-ph.js": 209,
  28756. "./tlh": 210,
  28757. "./tlh.js": 210,
  28758. "./tr": 211,
  28759. "./tr.js": 211,
  28760. "./tzl": 212,
  28761. "./tzl.js": 212,
  28762. "./tzm": 213,
  28763. "./tzm-latn": 214,
  28764. "./tzm-latn.js": 214,
  28765. "./tzm.js": 213,
  28766. "./ug-cn": 215,
  28767. "./ug-cn.js": 215,
  28768. "./uk": 216,
  28769. "./uk.js": 216,
  28770. "./ur": 217,
  28771. "./ur.js": 217,
  28772. "./uz": 218,
  28773. "./uz-latn": 219,
  28774. "./uz-latn.js": 219,
  28775. "./uz.js": 218,
  28776. "./vi": 220,
  28777. "./vi.js": 220,
  28778. "./x-pseudo": 221,
  28779. "./x-pseudo.js": 221,
  28780. "./yo": 222,
  28781. "./yo.js": 222,
  28782. "./zh-cn": 223,
  28783. "./zh-cn.js": 223,
  28784. "./zh-hk": 224,
  28785. "./zh-hk.js": 224,
  28786. "./zh-mo": 225,
  28787. "./zh-mo.js": 225,
  28788. "./zh-tw": 226,
  28789. "./zh-tw.js": 226
  28790. };
  28791. function r(e) {
  28792. e = a(e);
  28793. return n(e)
  28794. }
  28795. function a(e) {
  28796. if (n.o(i, e)) return i[e];
  28797. e = new Error("Cannot find module '" + e + "'");
  28798. throw e.code = "MODULE_NOT_FOUND", e
  28799. }
  28800. r.keys = function() {
  28801. return Object.keys(i)
  28802. }, r.resolve = a, (e.exports = r).id = 284
  28803. }, function(e, t, n) {
  28804. "use strict";
  28805. Object.defineProperty(t, "__esModule", {
  28806. value: !0
  28807. }), t.JSPlayCtrl = void 0;
  28808. var i = r(n(1)),
  28809. n = r(n(2));
  28810. function r(e) {
  28811. return e && e.__esModule ? e : {
  28812. default: e
  28813. }
  28814. }
  28815. var o = {
  28816. id: null,
  28817. cmd: null,
  28818. data: null,
  28819. errorCode: 0,
  28820. status: null
  28821. },
  28822. n = ((0, n.default)(a, [{
  28823. key: "PlayM4_SetStreamOpenMode",
  28824. value: function(e) {
  28825. return this.iPort = this.oWASM._JSPlayM4_GetPort(), 1 !== this.oWASM
  28826. ._JSPlayM4_SetStreamOpenMode(this.iPort, e) ? 0 : 1
  28827. }
  28828. }, {
  28829. key: "PlayM4_OpenStream",
  28830. value: function(e, t, n) {
  28831. if (this.iPort < 0) return 0;
  28832. if (!e || t <= 0 || n <= 0) return 0;
  28833. this.bPlay = !1, this.bPause = !1, this.bOnebyOne = !1, this
  28834. .bIsFirstFrame = !0, this.bIsGetYUV = !1, this.bIsInput = !1;
  28835. var i = t,
  28836. t = this.oWASM._malloc(i);
  28837. return t ? (this.oWASM.writeArrayToMemory(e, t), 1 !== this.oWASM
  28838. ._JSPlayM4_OpenStream(this.iPort, t, i, n) ? (this.oWASM._free(
  28839. t), t = null, this.oWASM._JSPlayM4_FreePort(this.iPort),
  28840. this.iPort = -1, 0) : (this.oWASM._JSPlayM4_SetDisplayBuf(
  28841. this.iPort, 1), this.oWASM._free(t), t = null, 1)) : 0
  28842. }
  28843. }, {
  28844. key: "PlayM4_SetDisplayBuf",
  28845. value: function(e) {
  28846. this.oWASM._JSPlayM4_SetDisplayBuf(this.iPort, e)
  28847. }
  28848. }, {
  28849. key: "PlayM4_OpenPlayerSDKPrintLog",
  28850. value: function(e) {
  28851. e ? (console.log("JSPlaySDKInterface.js bFlag:" + e), this.oWASM
  28852. ._JSPlayM4_SetPrintLogFlag(this.iPort, 2)) : this.oWASM
  28853. ._JSPlayM4_SetPrintLogFlag(this.iPort, 0)
  28854. }
  28855. }, {
  28856. key: "SetDecodeThreadNum",
  28857. value: function(e) {
  28858. this.oWASM._JSPlayM4_SetDecodeThreadNum(this.iPort, e)
  28859. }
  28860. }, {
  28861. key: "PlayM4_SetSecretKey",
  28862. value: function() {
  28863. return 1
  28864. }
  28865. }, {
  28866. key: "PlayM4_RenderPrivateData",
  28867. value: function(e, t) {
  28868. return this.oWASM._JSPlayM4_RenderPrivateData(this.iPort, e, t)
  28869. }
  28870. }, {
  28871. key: "PlayM4_RenderPrivateDataEx",
  28872. value: function(e, t, n) {
  28873. return this.oWASM._JSPlayM4_RenderPrivateDataEx(this.iPort, e, t, n)
  28874. }
  28875. }, {
  28876. key: "stringToBytes",
  28877. value: function(e) {
  28878. for (var t = void 0, n = void 0, i = [], r = 0; r < e.length; r++) {
  28879. for (t = e.charCodeAt(r), n = []; n.push(255 & t), t >>= 8;);
  28880. i = i.concat(n.reverse())
  28881. }
  28882. return i
  28883. }
  28884. }, {
  28885. key: "PlayM4_Play",
  28886. value: function() {
  28887. if (this.pCanvasData = this.oWASM._malloc(128), null === this
  28888. .pCanvasData) return 0;
  28889. this.bOnebyOne && (this.bPlayRateChange = !1, this.bOnebyOne = !1, this
  28890. .bPause = !1), !document.getElementById(this.szCanvasID) && this
  28891. .clonedCanvas && this.clonedCanvasParentNode && this
  28892. .clonedCanvasParentNode.appendChild(this.clonedCanvas), 0 < this
  28893. .iCanvasWidth && 0 < this.iCanvasHeight && this
  28894. .PlayM4_SetCanvasSize(this.iCanvasWidth, this.iCanvasHeight);
  28895. var e = this.stringToBytes("#" + this.szCanvasID),
  28896. t = this.oWASM.HEAPU8.subarray(this.pCanvasData, this.pCanvasData +
  28897. 128),
  28898. n = new Uint8Array(128);
  28899. t.set(n, 0), t.set(new Uint8Array(e));
  28900. return 1 !== this.oWASM._JSPlayM4_Play(this.iPort, this.pCanvasData) ?
  28901. 0 : (this.oWASM._JSPlayM4_SetFrameInfoCallBack(this.iPort, 1), this
  28902. .bPlay = !0, this.bPause = !1, this.bOnebyOne = !1, this
  28903. .bPlaySound = !1, this.bPlayRateChange = !1, this
  28904. .bOnlyPlaySound = !1, 1)
  28905. }
  28906. }, {
  28907. key: "PlayM4_OneByOne_Play",
  28908. value: function() {
  28909. this.oWASM._JSPlayM4_Play(this.iPort, this.pCanvasData), this
  28910. .bPlayRateChange = !1, this.bOnebyOne = !1, this.bPause = !1
  28911. }
  28912. }, {
  28913. key: "Sleep",
  28914. value: function(e) {
  28915. for (var t = (new Date).getTime();
  28916. (new Date).getTime() - t < e;);
  28917. }
  28918. }, {
  28919. key: "PlayM4_InputData",
  28920. value: function(e, t) {
  28921. var n = t,
  28922. i = 1;
  28923. if (0 < n) {
  28924. var r = this.oWASM._malloc(n);
  28925. if (null === r) return 0;
  28926. t = new Uint8Array(e.buffer);
  28927. this.oWASM.writeArrayToMemory(t, r), t = null, this.bIsFirstFrame &&
  28928. this.inputDataFun(), this.bOnebyOne ? 1 !== this.oWASM
  28929. ._JSPlayM4_InputData(this.iPort, r, n) && (11 === (i = this
  28930. .oWASM._JSPlayM4_GetLastError(this.iPort)) && (this
  28931. .setCallBack(this, "OnebyOne", 0, 0, !1), this
  28932. .bIsFirstFrame = !0), this.aInputDataBuffer.push(e)) : 1 !==
  28933. this.oWASM._JSPlayM4_InputData(this.iPort, r, n) && (i = this
  28934. .oWASM._JSPlayM4_GetLastError(this.iPort)), this.oWASM
  28935. ._free(r), r = null
  28936. }
  28937. return i
  28938. }
  28939. }, {
  28940. key: "inputDataFun",
  28941. value: function() {
  28942. if (this.bIsGetYUV = !1, this.bPlay && (!this.bPause || this
  28943. .bOnebyOne) || this.bOnlyPlaySound)
  28944. for (; 0 < this.aInputDataBuffer.length;) {
  28945. var e = this.aInputDataBuffer.shift(),
  28946. t = this.oWASM._JSPlayM4_InputData(this.iPort, e, e
  28947. .byteLength);
  28948. if (1 !== t)
  28949. if (11 === this.oWASM._JSPlayM4_GetLastError(this.iPort)) {
  28950. this.bIsFirstFrame = !0, this.aInputDataBuffer.unshift(
  28951. e);
  28952. break
  28953. }
  28954. }
  28955. this.bIsFirstFrame = !1
  28956. }
  28957. }, {
  28958. key: "PlayM4_Stop",
  28959. value: function() {
  28960. this.bPlaySound && (this.PlayM4_StopSound(), this.bPlaySound = !1), this
  28961. .bPlay = !1, this.bOnebyOne = !1, this.bPause = !1, this.oWASM
  28962. ._JSPlayM4_SetFrameInfoCallBack(this.iPort, 0), this
  28963. .PlayM4_SetDisplayRegion(null, !1), this.oWASM._JSPlayM4_Stop(this
  28964. .iPort), this.oWASM._JSPlayM4_CloseStream(this.iPort), this
  28965. .oWASM._JSPlayM4_FreePort(this.iPort), this.iPort = -1;
  28966. var e = document.getElementById(this.szCanvasID);
  28967. e && (this.clonedCanvas = e.cloneNode(!0), this.clonedCanvasParentNode =
  28968. e.parentNode, this.clonedCanvasParentNode.replaceChild(this
  28969. .clonedCanvas, e)), null !== this.pCanvasData && (this.oWASM
  28970. ._free(this.pCanvasData), this.pCanvasData = null)
  28971. }
  28972. }, {
  28973. key: "PlayM4_PlayRate",
  28974. value: function(e) {
  28975. return this.bPlayRateChange = 1 !== e, this.iInputDataLen = 5e3 * e, 1
  28976. }
  28977. }, {
  28978. key: "PlayM4_Fast",
  28979. value: function(e) {
  28980. this.bPlayRateChange = 1 !== e, this.oWASM._JSPlayM4_Fast(this.iPort)
  28981. }
  28982. }, {
  28983. key: "PlayM4_Slow",
  28984. value: function(e) {
  28985. this.bPlayRateChange = 1 !== e, this.oWASM._JSPlayM4_Slow(this.iPort)
  28986. }
  28987. }, {
  28988. key: "PlayM4_Pause",
  28989. value: function(e) {
  28990. return !this.bPlay || this.bOnebyOne ? 2 : ("boolean" != typeof e || (
  28991. this.bPause = e, this.bIsFirstFrame = !0, e ? (this
  28992. .bPlaySound && (this.PlayM4_StopSound(), this
  28993. .bPlaySound = !0), this.oWASM._JSPlayM4_Pause(this
  28994. .iPort, 1)) : (this.bPlaySound && this
  28995. .PlayM4_PlaySound(), this.oWASM._JSPlayM4_Pause(this
  28996. .iPort, 0))), 1)
  28997. }
  28998. }, {
  28999. key: "PlayM4_OneByOne",
  29000. value: function() {
  29001. return this.bPlay ? (this.oWASM._JSPlayM4_GetSourceBufferRemain(this
  29002. .iPort) < this.oWASM._JSPlayM4_GetBufferValue(this.iPort,
  29003. 1) / 2 && (this.bIsInputBufOver = !1, this.setCallBack(this,
  29004. "OnebyOne", 0, 31, !0)), this.iInputDataLen = 5e3, this
  29005. .oWASM._JSPlayM4_OneByOne(this.iPort), this.bPause = !0, this
  29006. .bOnebyOne = !0, this.bPlayRateChange = !0, 1) : 2
  29007. }
  29008. }, {
  29009. key: "PlayM4_PlaySound",
  29010. value: function(e) {
  29011. return e < 0 || 16 < e || 1 === this.oWASM._JSPlayM4_PlaySound(this
  29012. .iPort) && (this.bPlaySound = !0, this.oWASM
  29013. ._JSPlayM4_SetANRParam(3)), 1
  29014. }
  29015. }, {
  29016. key: "PlayM4_StopSound",
  29017. value: function() {
  29018. return this.bPlaySound ? (1 === this.oWASM._JSPlayM4_StopSound(this
  29019. .iPort) && (this.bPlaySound = !1), 1) : 2
  29020. }
  29021. }, {
  29022. key: "PlayM4_SetSecretKey",
  29023. value: function() {}
  29024. }, {
  29025. key: "PlayM4_SetDecodeFrameType",
  29026. value: function(e) {
  29027. return 0 !== e && 1 !== e || (this.nDecFrameType = e, this.oWASM
  29028. ._JSPlayM4_SetDecodeFrameType(this.iPort, e)), 1
  29029. }
  29030. }, {
  29031. key: "PlayM4_SetIFrameDecInterval",
  29032. value: function(e) {
  29033. return 1 !== this.nDecFrameType ? 2 : (e < 0 || (this.oWASM
  29034. ._JSPlayM4_SetDecodeFrameType(this.iPort, 1), this.oWASM
  29035. ._JSPlayM4_SetIFrameDecInterval(this.iPort, e)), 1)
  29036. }
  29037. }, {
  29038. key: "PlayM4_SetDisplayRegion",
  29039. value: function(e, t) {
  29040. if (null === this.szCanvasID) return 2;
  29041. if (!0 !== t) return 1 === this.oWASM._JSPlayM4_SetDisplayRegion(this
  29042. .iPort, this.pCanvasData, 0, this.iYUVWidth, 0, this
  29043. .iYUVHeight) ? (this.iZoomNum = 0, this.bDisRect = !1, 1) :
  29044. this.PlayM4_GetLastError();
  29045. if (null == e) return 1;
  29046. if ("number" != typeof e.left || "number" != typeof e.top || "number" !=
  29047. typeof e.right || "number" != typeof e.bottom) return 1;
  29048. if (e.right < 0 || e.left < 0 || e.top < 0 || e.bottom < 0) return 1;
  29049. var n = e.left,
  29050. i = e.right,
  29051. r = e.top,
  29052. a = e.bottom,
  29053. t = document.getElementById(this.szCanvasID)
  29054. .getBoundingClientRect();
  29055. if (this.iCanvasWidth = t.width, this.iCanvasHeight = t.height, i - n <
  29056. 16 || a - r < 16 || i - n > this.iCanvasWidth || a - r > this
  29057. .iCanvasHeight) return 1;
  29058. a = 0 !== this.iZoomNum ? (n = Math.round(n / this.iRatio_x) + this
  29059. .stDisplayRect.left, r = Math.round(r / this.iRatio_y) + this
  29060. .stDisplayRect.top, i = Math.round(i / this.iRatio_x) + this
  29061. .stDisplayRect.left, Math.round(a / this.iRatio_y) + this
  29062. .stDisplayRect.top) : (e = this.iYUVWidth / this.iCanvasWidth,
  29063. t = this.iYUVHeight / this.iCanvasHeight, n = Math.round(n * e),
  29064. r = Math.round(r * t), i = Math.round(i * e), Math.round(a * t)
  29065. ), this.stDisplayRect = {
  29066. top: r,
  29067. left: n,
  29068. right: i,
  29069. bottom: a
  29070. }, this.bDisRect = !0;
  29071. r = a - r;
  29072. return this.iRatio_x = this.iCanvasWidth / (i - n), this.iRatio_y = this
  29073. .iCanvasHeight / r, this.iZoomNum++, this.oWASM
  29074. ._JSPlayM4_SetDisplayRegion(this.iPort, this.pCanvasData, this
  29075. .stDisplayRect.left, this.stDisplayRect.right, this
  29076. .stDisplayRect.top, this.stDisplayRect.bottom)
  29077. }
  29078. }, {
  29079. key: "PlayM4_GetJPEG",
  29080. value: function(e) {
  29081. var t, n = this.iYUVWidth * this.iYUVHeight * 4 + 60,
  29082. i = this.oWASM._malloc(n),
  29083. r = this.oWASM._malloc(4);
  29084. null !== i && (this.oWASM._JSPlayM4_GetJPEG(this.iPort, i, n, r), 0 < (
  29085. t = this.oWASM.getValue(r, "i32")) ? ((n = new Uint8Array(
  29086. t)).set(this.oWASM.HEAPU8.subarray(i, i + t)), e(n)) : e(6),
  29087. this.oWASM._free(i), this.oWASM._free(r), i = null)
  29088. }
  29089. }, {
  29090. key: "PlayM4_GetBMP",
  29091. value: function(e) {
  29092. var t, n = this.iYUVWidth * this.iYUVHeight * 4 + 60,
  29093. i = this.oWASM._malloc(n),
  29094. r = this.oWASM._malloc(4);
  29095. null !== i && (this.oWASM._JSPlayM4_GetBMP(this.iPort, i, n, r), 0 < (
  29096. t = this.oWASM.getValue(r, "i32")) ? ((n = new Uint8Array(
  29097. t)).set(this.oWASM.HEAPU8.subarray(i, i + t)), e(n)) : e(6),
  29098. this.oWASM._free(i), this.oWASM._free(r), i = null)
  29099. }
  29100. }, {
  29101. key: "PlayM4_SetVolume",
  29102. value: function(e) {
  29103. return this.oWASM._JSPlayM4_SetVolume(this.iPort, e)
  29104. }
  29105. }, {
  29106. key: "PlayM4_GetVolume",
  29107. value: function(e) {
  29108. if (e && "function" == typeof e) {
  29109. var t = this.oWASM._JSPlayM4_GetVolume(this.iPort);
  29110. return null === t ? 63 : (e(Math.round(t)), 1)
  29111. }
  29112. return 1
  29113. }
  29114. }, {
  29115. key: "PlayM4_GetDecodeFrameType",
  29116. value: function() {
  29117. return this.nDecFrameType
  29118. }
  29119. }, {
  29120. key: "PlayM4_GetSdkVersion",
  29121. value: function() {
  29122. return this.oWASM.JSPlayM4_GetSDKVersion()
  29123. }
  29124. }, {
  29125. key: "PlayM4_SetCanvasSize",
  29126. value: function(e, t) {
  29127. !document.getElementById(this.szCanvasID) && this.clonedCanvas && (this
  29128. .iCanvasWidth = e, this.iCanvasHeight = t, this.clonedCanvas
  29129. .width = e, this.clonedCanvas.height = t), -1 < this.iPort &&
  29130. this.oWASM._JSPlayM4_SetCanvasSize(this.iPort, e, t)
  29131. }
  29132. }, {
  29133. key: "PlayM4_SetAntialias",
  29134. value: function(e) {
  29135. return this.oWASM._JSPlayM4_SetAntialias(this.iPort, e)
  29136. }
  29137. }, {
  29138. key: "PlayM4_GetSourceBufferRemain",
  29139. value: function() {
  29140. return this.oWASM._JSPlayM4_GetSourceBufferRemain(this.iPort)
  29141. }
  29142. }, {
  29143. key: "PlayM4_GetBufferValue",
  29144. value: function(e) {
  29145. return this.oWASM._JSPlayM4_GetBufferValue(this.iPort, e)
  29146. }
  29147. }, {
  29148. key: "PlayM4_GetLastError",
  29149. value: function() {
  29150. return this.oWASM._JSPlayM4_GetLastError(this.iPort)
  29151. }
  29152. }, {
  29153. key: "PlayM4_GetFrameInfo",
  29154. value: function(e) {
  29155. var t, n;
  29156. e && "function" == typeof e && (t = {
  29157. port: 0,
  29158. frameType: 0,
  29159. frameSize: 0,
  29160. width: 0,
  29161. height: 0,
  29162. timeStamp: 0,
  29163. frameRate: 0,
  29164. bitPerSample: 0,
  29165. samplesPerSec: 0,
  29166. channel: 0,
  29167. frameNum: 0,
  29168. cropLeft: 0,
  29169. cropRight: 0,
  29170. cropTop: 0,
  29171. cropBottom: 0,
  29172. year: 0,
  29173. month: 0,
  29174. week: 0,
  29175. day: 0,
  29176. hour: 0,
  29177. minute: 0,
  29178. second: 0,
  29179. milliseconds: 0
  29180. }, n = this.oWASM._JSPlayM4_GetFrameInfo(this.iPort), t.port =
  29181. this.oWASM.HEAP32[n >> 2], t.frameType = this.oWASM.HEAP32[n +
  29182. 4 >> 2], t.frameSize = this.oWASM.HEAP32[n + 8 >> 2], t
  29183. .width = this.oWASM.HEAP32[n + 12 >> 2], t.height = this.oWASM
  29184. .HEAP32[n + 16 >> 2], t.timeStamp = this.oWASM.HEAP32[n + 20 >>
  29185. 2], t.frameRate = this.oWASM.HEAP32[n + 24 >> 2], t
  29186. .bitPerSample = this.oWASM.HEAP32[n + 28 >> 2], t
  29187. .samplesPerSec = this.oWASM.HEAP32[n + 32 >> 2], t.channel =
  29188. this.oWASM.HEAP32[n + 36 >> 2], t.frameNum = this.oWASM.HEAP32[
  29189. n + 40 >> 2], t.cropLeft = this.oWASM.HEAP32[n + 44 >> 2], t
  29190. .cropRight = this.oWASM.HEAP32[n + 48 >> 2], t.cropTop = this
  29191. .oWASM.HEAP32[n + 52 >> 2], t.cropBottom = this.oWASM.HEAP32[n +
  29192. 56 >> 2], t.year = this.oWASM.HEAP16[n + 60 >> 1], t.month =
  29193. this.oWASM.HEAP16[n + 62 >> 1], t.week = this.oWASM.HEAP16[n +
  29194. 64 >> 1], t.day = this.oWASM.HEAP16[n + 66 >> 1], t.hour =
  29195. this.oWASM.HEAP16[n + 68 >> 1], t.minute = this.oWASM.HEAP16[n +
  29196. 70 >> 1], t.second = this.oWASM.HEAP16[n + 72 >> 1], t
  29197. .milliseconds = this.oWASM.HEAP16[n + 74 >> 1], e(t))
  29198. }
  29199. }, {
  29200. key: "PlayM4_ReversePlay",
  29201. value: function() {
  29202. return this.oWASM._JSPlayM4_ReversePlay(this.iPort)
  29203. }
  29204. }, {
  29205. key: "PlayM4_SetAdditionDataCallBack",
  29206. value: function(e, t) {
  29207. return this.oWASM._JSPlayM4_SetAdditionDataCallBack(this.iPort, e, t)
  29208. }
  29209. }, {
  29210. key: "PlayM4_SetGlobalBaseTime",
  29211. value: function(e) {
  29212. var t = e.getFullYear(),
  29213. n = e.getMonth() + 1,
  29214. i = e.getDate(),
  29215. r = e.getHours(),
  29216. a = e.getMinutes(),
  29217. s = e.getSeconds(),
  29218. e = e.getMilliseconds();
  29219. this.oWASM._JSPlayM4_SetGlobalBaseTime(this.iPort, t, n, i, r, a, s, e)
  29220. }
  29221. }]), a);
  29222. function a(e, t, n, s) {
  29223. (0, i.default)(this, a), this.szCanvasID = e, this.clonedCanvas = null, this.oWASM = null, this
  29224. .iPort = -1, this.pCanvasData = null, this.iYUVWidth = 0, this.iYUVHeight = 0, this
  29225. .bPlay = !1, this.bPause = !1, this.bOnebyOne = !1, this.bIsFirstFrame = !0, this
  29226. .bIsGetYUV = !1, this.bIsInput = !1, this.iZoomNum = 0, this.iCanvasWidth = 0, this
  29227. .iCanvasHeight = 0, this.nDecFrameType = 0, n && "function" == typeof n && (this
  29228. .fnCallBack = n), this.aInputDataBuffer = [], this.setCallBack = function(e, t, n, i,
  29229. r) {
  29230. var a = o;
  29231. a.id = s, a.cmd = t, a.data = n, a.errorCode = i, a.status = r, (a.instance = e)
  29232. .fnCallBack(a)
  29233. }, this.aInputDataLens = [], this.aInputDataBuffer = [], this.bIsGetYUV = !1, this
  29234. .bIsFirstFrame = !0, this.iInputMaxBufSize = 5242880, this.bIsInput = !1, this
  29235. .bIsInputBufOver = !1, this.iInputDataLen = 5e3, t && (this.oWASM = t)
  29236. }
  29237. t.JSPlayCtrl = n
  29238. }, function(e, t, n) {
  29239. "use strict";
  29240. Object.defineProperty(t, "__esModule", {
  29241. value: !0
  29242. }), t.JSPlayCtrl = void 0;
  29243. var i = u(n(53)),
  29244. r = u(n(54)),
  29245. a = u(n(1)),
  29246. s = u(n(2)),
  29247. o = u(n(11));
  29248. function u(e) {
  29249. return e && e.__esModule ? e : {
  29250. default: e
  29251. }
  29252. }
  29253. var d = 28944,
  29254. l = 28945,
  29255. h = 29217,
  29256. c = 29280,
  29257. _ = 29281,
  29258. m = 29282,
  29259. p = 8193,
  29260. y = 8192,
  29261. v = 4096,
  29262. g = {
  29263. width: 0,
  29264. height: 0,
  29265. frameNum: 0,
  29266. yuvData: null
  29267. },
  29268. M = {
  29269. width: 0,
  29270. height: 0,
  29271. frameNum: 0,
  29272. yuvData: null
  29273. },
  29274. L = {
  29275. sampleRate: 0,
  29276. channel: 0,
  29277. bitsPerSample: 0,
  29278. length: 0,
  29279. pcmData: null
  29280. },
  29281. f = !1,
  29282. S = !1,
  29283. k = !1,
  29284. b = {
  29285. id: null,
  29286. cmd: null,
  29287. data: null,
  29288. errorCode: 0,
  29289. status: null
  29290. };
  29291. function w(n) {
  29292. return new o.default(function(e) {
  29293. var t = document.createElement("script");
  29294. t.type = "text/javascript", t.src = n, t.onload = function() {
  29295. e()
  29296. }, document.body.appendChild(t)
  29297. })
  29298. }
  29299. var D;
  29300. t.JSPlayCtrl = ((0, s.default)(T, [{
  29301. key: "_loadRenderFiles",
  29302. value: (D = (0, r.default)(i.default.mark(function e() {
  29303. return i.default.wrap(function(e) {
  29304. for (;;) switch (e.prev = e.next) {
  29305. case 0:
  29306. if (S && f) {
  29307. e.next = 5;
  29308. break
  29309. }
  29310. return e.next = 3, o.default.all([w(
  29311. this.szBasePath +
  29312. "AudioRenderer.js"),
  29313. w(this.szBasePath +
  29314. "SuperRender_10.js")
  29315. ]);
  29316. case 3:
  29317. f = S = !0;
  29318. case 5:
  29319. case "end":
  29320. return e.stop()
  29321. }
  29322. }, e, this)
  29323. })), function() {
  29324. return D.apply(this, arguments)
  29325. })
  29326. }, {
  29327. key: "PlayM4_SetCurrentFrameNum",
  29328. value: function(e, t) {
  29329. return null != this.decodeWorker && null != this.oSuperRender && this
  29330. .bPlay ? e < 0 || 0 !== t && 1 !== t ? this.iLastErrorCode = 0 :
  29331. this.PlayM4_SetPlayPosition(0, e, t) : this.iLastErrorCode = 2
  29332. }
  29333. }, {
  29334. key: "PlayM4_SetPlayPosition",
  29335. value: function(e, t, n) {
  29336. return null != this.decodeWorker && null != this.oSuperRender && this
  29337. .bPlay ? 0 !== e && 1 !== e || t < 0 || 0 !== n && 1 !== n ? this
  29338. .iLastErrorCode = 0 : (this.SetPlayPositionFlag = !0, this
  29339. .iFrameNumOrTime = t, this.bSetPlayPositionType = n, this
  29340. .decodeWorker.postMessage({
  29341. command: "SetPlayPosition",
  29342. data: this.iFrameNumOrTime,
  29343. type: e
  29344. }), this.aAudioBuffer.splice(0, this.aAudioBuffer.length), this
  29345. .iAudioBufferSize = 0, this.aVideoFrameBuffer.splice(0, this
  29346. .aVideoFrameBuffer.length), this.aInputDataBuffer.splice(0,
  29347. this.aInputDataBuffer.length), this.aInputDataLens.splice(0,
  29348. this.aInputDataLens.length), this.bIsFirstFrame = !0, this
  29349. .bIsInputBufOver = !1, this.iLastErrorCode = 1) : this
  29350. .iLastErrorCode = 2
  29351. }
  29352. }, {
  29353. key: "PlayM4_OpenPlayerSDKPrintLog",
  29354. value: function(e) {
  29355. return k = !0 === e, this.decodeWorker.postMessage({
  29356. command: "printLog",
  29357. data: e
  29358. }), this.iLastErrorCode = 1
  29359. }
  29360. }, {
  29361. key: "PlayM4_DownloadYUVdata",
  29362. value: function() {
  29363. return this.bWriteYUVData = !0, this.iLastErrorCode = 1
  29364. }
  29365. }, {
  29366. key: "PlayM4_DownloadPCMdata",
  29367. value: function() {
  29368. return this.bWritePCMData = !0, this.iLastErrorCode = 1
  29369. }
  29370. }, {
  29371. key: "PlayM4_SetDecCallBack",
  29372. value: function(e) {
  29373. return k && console.log(">>>JS MainThread-PlayM4_SetDecCallBack"), e &&
  29374. "function" == typeof e ? (this.DecCallBackFun = e, this
  29375. .iLastErrorCode = 1) : this.iLastErrorCode = 0
  29376. }
  29377. }, {
  29378. key: "PlayM4_SetDisplayCallBack",
  29379. value: function(e) {
  29380. return k && console.log(">>>JS MainThread-PlayM4_SetDisplayCallBack"),
  29381. e && "function" == typeof e ? (this.DisplayCallBackFun = e, this
  29382. .iLastErrorCode = 1) : this.iLastErrorCode = 0
  29383. }
  29384. }, {
  29385. key: "PlayM4_SetPCMCallBack",
  29386. value: function(e) {
  29387. return k && console.log(">>>JS MainThread-PlayM4_SetDisplayCallBack"),
  29388. e && "function" == typeof e ? (this.PCMCallBackFun = e, this
  29389. .iLastErrorCode = 1) : this.iLastErrorCode = 0
  29390. }
  29391. }, {
  29392. key: "PlayM4_SetStreamOpenMode",
  29393. value: function(e) {
  29394. return null == e || void 0 === e || 0 !== e && 1 !== e ? this
  29395. .iLastErrorCode = 0 : (this.streamOpenMode = e, k && console.log(
  29396. ">>>JS PlayM4_SetStreamOpenMode nMode:" + e), this
  29397. .iLastErrorCode = 1)
  29398. }
  29399. }, {
  29400. key: "PlayM4_DownloadRTPData",
  29401. value: function(e) {
  29402. this.downloadRTP = e
  29403. }
  29404. }, {
  29405. key: "PlayM4_OpenStream",
  29406. value: function(e, t, n) {
  29407. if (k && console.log(">>>JS PlayM4_OpenStream 1 nSysTime:" + ((new Date)
  29408. .getMonth() + 1) + "-" + (new Date).getDate() + " " + (
  29409. new Date).getHours() + ":" + (new Date).getMinutes() + ":" +
  29410. (new Date).getSeconds() + "." + (new Date).getMilliseconds()),
  29411. null == this.decodeWorker) return this.iLastErrorCode = 2;
  29412. if (this.downloadRTP && (i = new Uint8Array(e.buffer), this
  29413. .DownloadRTPData(i), console.log("write 40 hik head")), null ==
  29414. e || t <= 0 || n <= 0) return this.iLastErrorCode = 0;
  29415. this.bPlay = !1, this.bPause = !1, this.bOnebyOne = !1, this
  29416. .bIsFirstFrame = !0, this.bIsGetYUV = !1, this.bIsInput = !1;
  29417. var i = this.checkAudioType(e);
  29418. return this.bAudioTypeSupport = 1 === i, this.decodeWorker.postMessage({
  29419. command: "SetStreamOpenMode",
  29420. data: this.streamOpenMode
  29421. }), k && console.log(">>>JS PlayM4_OpenStream 2 nSysTime:" + ((
  29422. new Date).getMonth() + 1) + "-" + (new Date).getDate() +
  29423. " " + (new Date).getHours() + ":" + (new Date).getMinutes() +
  29424. ":" + (new Date).getSeconds() + "." + (new Date)
  29425. .getMilliseconds()), this.decodeWorker.postMessage({
  29426. command: "OpenStream",
  29427. data: e,
  29428. dataSize: t,
  29429. bufPoolSize: n
  29430. }), k && console.log(">>>JS PlayM4_OpenStream 3 nSysTime:" + ((
  29431. new Date).getMonth() + 1) + "-" + (new Date).getDate() +
  29432. " " + (new Date).getHours() + ":" + (new Date).getMinutes() +
  29433. ":" + (new Date).getSeconds() + "." + (new Date)
  29434. .getMilliseconds()), this.bOpenStream = !0, this
  29435. .iLastErrorCode = 1
  29436. }
  29437. }, {
  29438. key: "PlayM4_CloseStream",
  29439. value: function() {
  29440. return k && console.log(">>>JS PlayM4_CloseStream 1 nSysTime:" + ((
  29441. new Date).getMonth() + 1) + "-" + (new Date).getDate() +
  29442. " " + (new Date).getHours() + ":" + (new Date).getMinutes() +
  29443. ":" + (new Date).getSeconds() + "." + (new Date)
  29444. .getMilliseconds()), null === this.decodeWorker || !1 === this
  29445. .bOpenStream ? this.iLastErrorCode = 2 : (this.bOnlyPlaySound = !1,
  29446. this.PlayM4_Stop(), this.decodeWorker.postMessage({
  29447. command: "CloseStream"
  29448. }), null !== this.oSuperRender && (this.oSuperRender
  29449. .SR_Destroy(), this.oSuperRender = null), null !== this
  29450. .audioRenderer && (this.audioRenderer.Stop(), this
  29451. .audioRenderer = null), this.aAudioBuffer.splice(0, this
  29452. .aAudioBuffer.length), this.aVideoFrameBuffer.splice(0, this
  29453. .aVideoFrameBuffer.length), this.aInputDataBuffer.splice(0,
  29454. this.aInputDataBuffer.length), this.aInputDataLens.splice(0,
  29455. this.aInputDataLens.length), this.aAudioEncBuffer.splice(0,
  29456. this.aAudioEncBuffer.length), this.aVideoYUVBuffer.splice(0,
  29457. this.aVideoYUVBuffer.length), this.aAudioPCMBuffer.splice(0,
  29458. this.aAudioPCMBuffer.length), this.aRawDataBuffer.splice(0,
  29459. this.aRawDataBuffer.length), this.bOpenStream = !1, this
  29460. .iAudioBufferSize = 0, this.szOSDTime = null, this
  29461. .iLastErrorCode = 1)
  29462. }
  29463. }, {
  29464. key: "PlayM4_Destroy",
  29465. value: function() {
  29466. return k && console.log(">>>JS PlayM4_Destroy 1 nSysTime:" + ((new Date)
  29467. .getMonth() + 1) + "-" + (new Date).getDate() + " " + (
  29468. new Date).getHours() + ":" + (new Date).getMinutes() + ":" +
  29469. (new Date).getSeconds() + "." + (new Date).getMilliseconds()),
  29470. null === this.decodeWorker || (this.PlayM4_CloseStream(), this
  29471. .decodeWorker.terminate(), this.decodeWorker = null), this
  29472. .iLastErrorCode = 1
  29473. }
  29474. }, {
  29475. key: "PlayM4_InputData",
  29476. value: function(e, t) {
  29477. var n = this.aInputDataBuffer.length;
  29478. if (4 === t) {
  29479. var i = new Uint8Array(e.buffer);
  29480. if (1 === i[0] && 2 === i[1] && 3 === i[2] && 4 === i[3])
  29481. return k && console.log(
  29482. ">>>JS PlaySDKInterface PlayM4_InputData:intput end"),
  29483. this.bIsFirstFrame ? (k && console.log(
  29484. ">>>JS inputData FirstTime"), this.inputDataFun()) :
  29485. this.bIsGetYUV ? this.inputDataFun() : this.bIsInput = !0,
  29486. i = null, this.iLastErrorCode = 1
  29487. }
  29488. if (n + t > this.iInputMaxBufSize) return console.log("input over"),
  29489. this.inputDataFun(), this.iLastErrorCode = 11;
  29490. var r = null,
  29491. a = t;
  29492. switch (this.streamOpenMode) {
  29493. case 1:
  29494. r = new Uint8Array(e.buffer), this.downloadRTP && (this
  29495. .DownloadRTPData(r), this.rtpNum++, console.log(
  29496. "rtpNUm:" + this.rtpNum)), this.aInputDataLens.push(
  29497. t);
  29498. break;
  29499. case 0:
  29500. var a = t + 4,
  29501. s = new Uint32Array([t]),
  29502. o = new Uint8Array(s.buffer);
  29503. (r = new Uint8Array(a)).set(o, 0), r.set(e, 4), this
  29504. .downloadRTP && (this.DownloadRTPData(r), this.rtpNum++,
  29505. console.log("rtpNUm:" + this.rtpNum)), 0, this
  29506. .aInputDataLens.push(t + 4);
  29507. break;
  29508. default:
  29509. return this.iLastErrorCode = 16
  29510. }
  29511. for (var u = 0; u < a; u++) this.aInputDataBuffer[n + u] = r[u];
  29512. return this.bPlay && null !== this.decodeWorker && !1 !== this
  29513. .bOpenStream ? (r = null, k && console.log(
  29514. ">>>JS PlayM4_InputData 1: nSize:%d, iInputBufLen:%d, iInputMaxBufSize;%d",
  29515. t, this.aInputDataBuffer.length, this.iInputMaxBufSize),
  29516. this.bOnlyPlaySound ? (k && console.log(
  29517. ">>>JS PlayM4_InputData: OnlyPlaySound"), this
  29518. .inputDataFun()) : this.bIsFirstFrame ? (k && console.log(
  29519. ">>>JS PlayM4_InputData is firstFrame"), this
  29520. .inputDataFun()) : this.bIsGetYUV ? (k && console.log(
  29521. ">>>JS PlayM4_InputData is GetYUV"), this
  29522. .inputDataFun()) : (k && console.log(
  29523. ">>>JS PlayM4_InputData 1-3 sysTime:" + ((new Date)
  29524. .getMonth() + 1) + "-" + (new Date).getDate() +
  29525. " " + (new Date).getHours() + ":" + (new Date)
  29526. .getMinutes() + ":" + (new Date).getSeconds() + "." + (
  29527. new Date).getMilliseconds()), this.bIsInput = !0), this
  29528. .iLastErrorCode = 1) : 1
  29529. }
  29530. }, {
  29531. key: "DownloadRTPData",
  29532. value: function(e) {
  29533. if (this.bWriteRTPData) {
  29534. for (var t = new Uint8Array(e), n = this.aRTPDataBuffer.length, i =
  29535. 0, r = t.length; i < r; i++) this.aRTPDataBuffer[n + i] = t[
  29536. i];
  29537. this.iRTPDataSize++, t = null
  29538. }
  29539. this.bWriteRTPData && 200 <= this.iRTPDataSize && (console.log(
  29540. "download200RTPdata"), e = new Uint8Array(this
  29541. .aRTPDataBuffer), this.downloadFile(e, "RTP.data"), this
  29542. .aRTPDataBuffer.splice(0, this.aRTPDataBuffer.length), this
  29543. .bWriteRTPData = !1, this.iRTPDataSize = 0, this.rtpNum = 0,
  29544. this.downloadRTP = !1)
  29545. }
  29546. }, {
  29547. key: "PlayM4_Play",
  29548. value: function(e) {
  29549. if (null === this.decodeWorker) return this.iLastErrorCode = 2;
  29550. if (k && console.log(">>>JS PlayM4_Play canvasID: " + e), null === e)
  29551. this.bOnlyPlaySound = !0, this.sCanvasId = null;
  29552. else {
  29553. if ("string" != typeof e) return this.iLastErrorCode = 0;
  29554. if (this.bOnebyOne && (this.bPlayRateChange = !1, this.bOnebyOne = !
  29555. 1, this.bPause = !1, this.draw()), this.bPlay) return this
  29556. .iLastErrorCode = 1;
  29557. if (null == this.oSuperRender && (this.oSuperRender =
  29558. new SuperRender(e, this.szBasePath), null == this
  29559. .oSuperRender)) return this.iLastErrorCode = 61;
  29560. this.sCanvasId = e, this.bPlay = !0, this.bPause = !1, this
  29561. .bOnebyOne = !1, this.bPlaySound = !1, this.bPlayRateChange = !
  29562. 1, this.bOnlyPlaySound = !1, this.draw()
  29563. }
  29564. return null == this.audioRenderer && (this.audioRenderer =
  29565. new AudioRenderer, null == this.audioRenderer) ? this
  29566. .iLastErrorCode = 61 : this.iLastErrorCode = 1
  29567. }
  29568. }, {
  29569. key: "PlayM4_Stop",
  29570. value: function() {
  29571. if (k && console.log(">>>JS PlayM4_Stop 1"), null == this
  29572. .decodeWorker || null == this.oSuperRender) return this
  29573. .iLastErrorCode = 2;
  29574. if (!this.bPlay) return this.iLastErrorCode = 2;
  29575. this.bPlaySound && (this.PlayM4_StopSound(), this.bPlaySound = !0), this
  29576. .bPlay = !1, this.bOnebyOne = !1, this.bPause = !1, this
  29577. .oSuperRender.SR_SetDisplayRect(null), this.iZoomNum = 0, this
  29578. .bDisRect = !1, this.oSuperRender.SR_DisplayFrameData(this.nWidth,
  29579. this.nHeight, null);
  29580. var e = document.getElementById(this.sCanvasId);
  29581. return e && (this.clonedCanvas = e.cloneNode(!0), this
  29582. .clonedCanvasParentNode = e.parentNode, this
  29583. .clonedCanvasParentNode.replaceChild(this.clonedCanvas, e)),
  29584. this.iLastErrorCode = 1
  29585. }
  29586. }, {
  29587. key: "PlayM4_PlayRate",
  29588. value: function(e) {
  29589. return null == this.decodeWorker ? this.iLastErrorCode = 2 : (this
  29590. .bPlayRateChange = 1 !== e, this.iInputDataLen = 20480 * (e =
  29591. e < 1 ? 1 : e), this.iLastErrorCode = 1)
  29592. }
  29593. }, {
  29594. key: "PlayM4_Pause",
  29595. value: function(e) {
  29596. return null == this.decodeWorker || null == this.oSuperRender || !this
  29597. .bPlay || this.bOnebyOne ? this.iLastErrorCode = 2 : "boolean" !=
  29598. typeof e ? this.iLastErrorCode = 0 : (this.bPause = e, this
  29599. .bIsFirstFrame = !0, k && console.log(">>>JS PlayM4_Pause:" +
  29600. e), e ? this.bPlaySound && (this.PlayM4_StopSound(), this
  29601. .bPlaySound = !0) : (this.bPlaySound && this
  29602. .PlayM4_PlaySound(), this.draw()), this.iLastErrorCode = 1)
  29603. }
  29604. }, {
  29605. key: "PlayM4_OneByOne",
  29606. value: function(e) {
  29607. return null != this.decodeWorker && null != this.oSuperRender && this
  29608. .bPlay ? 10 < e || e <= 0 ? this.iLastErrorCode = 0 : (e = e || 1,
  29609. this.iInputDataLen = 20480, this.FrameForwardLen = e, this
  29610. .bPause = !0, this.bOnebyOne = !0, this.bIsFirstFrame = !0, this
  29611. .draw(), this.iLastErrorCode = 1) : this.iLastErrorCode = 2
  29612. }
  29613. }, {
  29614. key: "PlayM4_PlaySound",
  29615. value: function(e) {
  29616. return null === this.decodeWorker || !1 === this.bOpenStream ? this
  29617. .iLastErrorCode = 2 : this.bAudioTypeSupport ? e < 0 || 16 < e ?
  29618. this.iLastErrorCode = 0 : null == this.audioRenderer && (this
  29619. .audioRenderer = new AudioRenderer, null == this.audioRenderer
  29620. ) ? this.iLastErrorCode = 61 : (this.audioRenderer.SetWndNum(e),
  29621. this.audioRenderer.oAudioContext.resume(), this.bPlaySound = !0,
  29622. this.iLastErrorCode = 1) : this.iLastErrorCode = 16
  29623. }
  29624. }, {
  29625. key: "PlayM4_StopSound",
  29626. value: function() {
  29627. return null != this.decodeWorker && null != this.audioRenderer && this
  29628. .bPlaySound ? (this.bPlaySound = !1, this.iLastErrorCode = 1) : this
  29629. .iLastErrorCode = 2
  29630. }
  29631. }, {
  29632. key: "PlayM4_SetDisplayBuf",
  29633. value: function(e) {
  29634. return null == this.decodeWorker ? this.iLastErrorCode = 2 : e <= 0 ?
  29635. this.iLastErrorCode = 0 : (this.YUVBufferSize = e, this
  29636. .iLastErrorCode = 1)
  29637. }
  29638. }, {
  29639. key: "PlayM4_SetSecretKey",
  29640. value: function(e, t, n) {
  29641. if (null == this.decodeWorker || !1 === this.bOpenStream) return this
  29642. .iLastErrorCode = 2;
  29643. if (null == t) return this.iLastErrorCode = 0;
  29644. if (1 === e) {
  29645. if (128 !== n) return this.iLastErrorCode = 0;
  29646. if (null == t || void 0 === t) return this.iLastErrorCode = 0
  29647. } else if (0 !== e) return this.iLastErrorCode = 0;
  29648. return this.decodeWorker.postMessage({
  29649. command: "SetSecretKey",
  29650. data: t,
  29651. nKeyType: e,
  29652. nKeyLen: n
  29653. }), this.iLastErrorCode = 1
  29654. }
  29655. }, {
  29656. key: "PlayM4_SetDecodeFrameType",
  29657. value: function(e) {
  29658. return null == this.decodeWorker || null == this.oSuperRender ? this
  29659. .iLastErrorCode = 2 : 0 !== e && 1 !== e ? this.iLastErrorCode = 0 :
  29660. (k && (console.log(">>>JS PlayM4_SetDecodeFrameType"), console.log(
  29661. e)), this.nDecFrameType = e, this.decodeWorker.postMessage({
  29662. command: "SetDecodeFrameType",
  29663. data: e
  29664. }), this.iLastErrorCode = 1)
  29665. }
  29666. }, {
  29667. key: "PlayM4_SetIFrameDecInterval",
  29668. value: function(e) {
  29669. return 1 !== this.nDecFrameType ? this.iLastErrorCode = 2 : e < 0 ? this
  29670. .iLastErrorCode = 0 : (this.decodeWorker.postMessage({
  29671. command: "SetIFrameDecInterval",
  29672. data: e
  29673. }), this.iLastErrorCode = 1)
  29674. }
  29675. }, {
  29676. key: "PlayM4_SetLostFrameMode",
  29677. value: function(e) {
  29678. return e < 0 || 1 < e ? 0 : (this.decodeWorker.postMessage({
  29679. command: "SetLostFrameMode",
  29680. data: e
  29681. }), 1)
  29682. }
  29683. }, {
  29684. key: "PlayM4_SetDisplayRegion",
  29685. value: function(e, t) {
  29686. if (k && console.log("PlayM4_SetDisplayRegion "), null === this
  29687. .decodeWorker || !1 === this.bPlay || null === this.oSuperRender ||
  29688. null === this.canvasId) return this.iLastErrorCode = 2;
  29689. if (!0 === t) {
  29690. if (null == e) return k && console.log(
  29691. "PlayM4_SetDisplayRegion: dipalyRect is null"), this
  29692. .iLastErrorCode = 0;
  29693. if ("number" != typeof e.left || "number" != typeof e.top ||
  29694. "number" != typeof e.right || "number" != typeof e.bottom)
  29695. return this.iLastErrorCode = 0;
  29696. if (e.right < 0 || e.left < 0 || e.top < 0 || e.bottom < 0)
  29697. return k && console.log(
  29698. "PlayM4_SetDisplayRegion: dipalyRect rectParameter is wrong"
  29699. ), this.iLastErrorCode = 0;
  29700. var n = e.left,
  29701. i = e.right,
  29702. r = e.top,
  29703. t = e.bottom,
  29704. e = document.getElementById(this.sCanvasId)
  29705. .getBoundingClientRect();
  29706. if (this.iCanvasWidth = e.width, this.iCanvasHeight = e.height, i -
  29707. n < 16 || t - r < 16 || i - n > this.iCanvasWidth || t - r >
  29708. this.iCanvasHeight) return this.iLastErrorCode = 0;
  29709. 0 !== this.iZoomNum && (n = Math.round(n / this.iRatio_x) + this
  29710. .stDisplayRect.left, r = Math.round(r / this.iRatio_y) +
  29711. this.stDisplayRect.top, i = Math.round(i / this.iRatio_x) +
  29712. this.stDisplayRect.left, t = Math.round(t / this.iRatio_y) +
  29713. this.stDisplayRect.top), this.stDisplayRect = {
  29714. top: r,
  29715. left: n,
  29716. right: i,
  29717. bottom: t
  29718. }, this.oSuperRender.SR_SetDisplayRect(this.stDisplayRect), this
  29719. .bDisRect = !0;
  29720. r = t - r;
  29721. this.iRatio_x = this.iCanvasWidth / (i - n), this.iRatio_y = this
  29722. .iCanvasHeight / r, this.iZoomNum++
  29723. } else this.oSuperRender.SR_SetDisplayRect(null), this.iZoomNum = 0,
  29724. this.bDisRect = !1;
  29725. return (this.bPause || this.bOnebyOne || this.bPlayRateChange) && this
  29726. .oSuperRender.SR_DisplayFrameData(this.nWidth, this.nHeight,
  29727. new Uint8Array(this.aDisplayBuf)), this.iLastErrorCode = 1
  29728. }
  29729. }, {
  29730. key: "PlayM4_GetBMP",
  29731. value: function(e) {
  29732. return this.getPic(e, "GetBMP")
  29733. }
  29734. }, {
  29735. key: "PlayM4_GetJPEG",
  29736. value: function(e) {
  29737. return this.getPic(e, "GetJPEG")
  29738. }
  29739. }, {
  29740. key: "PlayM4_SetVolume",
  29741. value: function(e) {
  29742. return null == this.decodeWorker || null == this.audioRenderer ? this
  29743. .iLastErrorCode = 2 : e < 0 || 100 < e ? this.iLastErrorCode = 0 : (
  29744. this.audioRenderer.SetVolume(e / 100), this.iLastErrorCode = 1)
  29745. }
  29746. }, {
  29747. key: "PlayM4_GetVolume",
  29748. value: function(e) {
  29749. if (null == this.decodeWorker || null == this.audioRenderer) return this
  29750. .iLastErrorCode = 2;
  29751. if (e && "function" == typeof e) {
  29752. var t = this.audioRenderer.GetVolume();
  29753. return null === t ? 63 : (e(10 * Math.round(10 * t)), this
  29754. .iLastErrorCode = 1)
  29755. }
  29756. return this.iLastErrorCode = 0
  29757. }
  29758. }, {
  29759. key: "PlayM4_GetOSDTime",
  29760. value: function(e) {
  29761. return null != this.decodeWorker && this.bPlay ? e && "function" ==
  29762. typeof e ? (e(this.szOSDTime), this.iLastErrorCode = 1) : this
  29763. .iLastErrorCode = 0 : this.iLastErrorCode = 2
  29764. }
  29765. }, {
  29766. key: "PlayM4_IsVisible",
  29767. value: function(e) {
  29768. return this.bVisibility = e, k && console.log(
  29769. ">>>JS PlayM4_IsVisible visibility:" + e), this.iLastErrorCode =
  29770. 1
  29771. }
  29772. }, {
  29773. key: "PlayM4_GetSdkVersion",
  29774. value: function() {
  29775. return "20211104"
  29776. }
  29777. }, {
  29778. key: "PlayM4_GetBuildDate",
  29779. value: function() {
  29780. return "20210923"
  29781. }
  29782. }, {
  29783. key: "PlayM4_GetInputBufSize",
  29784. value: function() {
  29785. return this.aInputDataBuffer.length
  29786. }
  29787. }, {
  29788. key: "PlayM4_SetInputBufSize",
  29789. value: function(e) {
  29790. return 0 < e ? (this.iInputMaxBufSize = e, this.iLastErrorCode = 1) :
  29791. this.iLastErrorCode = 0
  29792. }
  29793. }, {
  29794. key: "PlayM4_GetYUVBufSize",
  29795. value: function() {
  29796. return this.aVideoFrameBuffer.length
  29797. }
  29798. }, {
  29799. key: "PlayM4_GetFrameResolution",
  29800. value: function(e) {
  29801. return null == this.decodeWorker ? this.iLastErrorCode = 2 : e &&
  29802. "function" == typeof e && 0 < this.nHeight && 0 < this.nWidth ? (e(
  29803. this.nWidth, this.nHeight), this.iLastErrorCode = 1) : this
  29804. .iLastErrorCode = 0
  29805. }
  29806. }, {
  29807. key: "PlayM4_RegisterYUVBufSizeCB",
  29808. value: function(e) {
  29809. return e && "function" == typeof e ? (this.YUVBufSizeCBFun = e, this
  29810. .iLastErrorCode = 1) : this.iLastErrorCode = 0
  29811. }
  29812. }, {
  29813. key: "PlayM4_UnRegisterYUVBufSizeCB",
  29814. value: function() {
  29815. return null != this.YUVBufSizeCBFun && (this.YUVBufSizeCBFun = null),
  29816. this.iLastErrorCode = 1
  29817. }
  29818. }, {
  29819. key: "PlayM4_ClearCanvas",
  29820. value: function() {
  29821. return null == this.oSuperRender ? this.iLastErrorCode = 2 : (this
  29822. .oSuperRender.SR_DisplayFrameData(this.nWidth, this.nHeight,
  29823. null), this.iLastErrorCode = 1)
  29824. }
  29825. }, {
  29826. key: "PlayM4_ReleaseInputBuffer",
  29827. value: function() {
  29828. return null === this.aInputDataBuffer ? this.iLastErrorCode = 2 : (this
  29829. .aInputDataBuffer.splice(0, this.aInputDataBuffer.length), this
  29830. .aInputDataLens.splice(0, this.aInputDataLens.length), this
  29831. .iLastErrorCode = 1)
  29832. }
  29833. }, {
  29834. key: "PlayM4_GetDecodeFrameType",
  29835. value: function() {
  29836. return this.nDecFrameType
  29837. }
  29838. }, {
  29839. key: "PlayM4_CreateAudEncode",
  29840. value: function(e) {
  29841. return k && console.log(">>>JS PlayM4_CreateAudEncode 1 nEncoderType:" +
  29842. e), null == this.decodeWorker ? 79 : e < 1 || 6 < e || 5 === e ?
  29843. 71 : (this.decodeWorker.postMessage({
  29844. command: "CreateAudEncode",
  29845. encodertype: e
  29846. }), k && console.log(
  29847. ">>>JS PlayM4_CreateAudEncode 2 nEncoderType:" + e), 1)
  29848. }
  29849. }, {
  29850. key: "PlayM4_SetAudEncodeParam",
  29851. value: function(e, t, n, i) {
  29852. return k && console.log(
  29853. ">>>JS PlayM4_SetAudEncodeParam 1 nSampleRate:" + e +
  29854. ",nChannel:" + t + " ,nBitRate:" + n + " ,nBitWidth:" + i),
  29855. null == this.decodeWorker ? 79 : 1 != t || 16 != i ? 71 : (this
  29856. .decodeWorker.postMessage({
  29857. command: "SetAudEncodeParam",
  29858. samplerate: e,
  29859. channel: t,
  29860. bitrate: n,
  29861. bitwidth: i
  29862. }), k && console.log(
  29863. ">>>JS PlayM4_SetAudEncodeParam 2 nSampleRate:" + e +
  29864. ",nChannel:" + t + " ,nBitRate:" + n + " ,nBitWidth:" + i),
  29865. 1)
  29866. }
  29867. }, {
  29868. key: "PlayM4_InputAudEncodeData",
  29869. value: function(e, t) {
  29870. return k && console.log(">>>JS PlayM4_InputAudEncodeData 1 dataSize:" +
  29871. t), null == this.decodeWorker ? 79 : (k && console.log(
  29872. ">>>JS PlayM4_InputAudEncodeData 2 dataSize:" + t +
  29873. ", nSysTime:" + (new Date).getMinutes() + ":" + (new Date)
  29874. .getSeconds() + "." + (new Date).getMilliseconds()), this
  29875. .decodeWorker.postMessage({
  29876. command: "InputAudEncodeData",
  29877. data: e,
  29878. dataSize: t
  29879. }), 1)
  29880. }
  29881. }, {
  29882. key: "PlayM4_DestroyAudEncode",
  29883. value: function() {
  29884. return k && console.log(">>>JS MainThread-PlayM4_DestroyAudEncode 1 "),
  29885. null == this.decodeWorker ? 79 : (this.aAudioEncBuffer.splice(0,
  29886. this.aAudioEncBuffer.length), this.iAudioEncBufferSize = 0,
  29887. this.decodeWorker.postMessage({
  29888. command: "DestroyAudEncode"
  29889. }), 1)
  29890. }
  29891. }, {
  29892. key: "PlayM4_GetAudioEmcBuf",
  29893. value: function() {
  29894. return this.aAudioEncBuffer
  29895. }
  29896. }, {
  29897. key: "PlayM4_RegisterAudEncodeCB",
  29898. value: function(e) {
  29899. return k && console.log(">>>JS PlayM4_RegisterAudEncodeCB 1 callback:" +
  29900. e), e && "function" == typeof e ? (this.AudEncodeDataCBFun = e,
  29901. k && console.log(
  29902. ">>>JS PlayM4_RegisterAudEncodeCB 2 callback:" + e), 1) : 0
  29903. }
  29904. }, {
  29905. key: "downloadFile",
  29906. value: function(e, t) {
  29907. var n = e;
  29908. e instanceof Blob || e instanceof File || (n = new Blob([e]));
  29909. e = window.URL.createObjectURL(n), n = window.document.createElement(
  29910. "a");
  29911. n.href = e, n.download = t;
  29912. t = document.createEvent("MouseEvents");
  29913. t.initEvent("click", !0, !0), n.dispatchEvent(t)
  29914. }
  29915. }, {
  29916. key: "PlayM4_GetLastError",
  29917. value: function() {
  29918. return this.iLastErrorCode
  29919. }
  29920. }]), T);
  29921. function T(e, t, s) {
  29922. if ((0, a.default)(this, T), null == e || void 0 === e || "string" != typeof e) return 0;
  29923. if (this.szBasePath = e, !t || "function" != typeof t) return 0;
  29924. this.fnCallBack = t, this.decodeWorker = null, this.streamOpenMode = null, this.bOpenStream = !
  29925. 1, this.iFrameNumOrTime = 0, this.bSetPlayPositionType = 0, this.audioRenderer = null, this
  29926. .aAudioBuffer = [], this.iAudioBufferSize = 0, this.bWriteAudEnc = !1, this
  29927. .iAudioEncBufferSize = 0, this.aAudioEncBuffer = [], this.oSuperRender = null, this
  29928. .aVideoFrameBuffer = [], this.YUVBufferSize = 1, this.szOSDTime = null, this
  29929. .bWriteYUVData = !1, this.iYUV10size = 0, this.aVideoYUVBuffer = [], this.bWritePCMData = !
  29930. 1, this.iAudioBuffer500Size = 0, this.aAudioPCMBuffer = [], this.bWriteRawData = !1, this
  29931. .iRawDataSize = 0, this.aRawDataBuffer = [], this.bWriteRTPData = !0, this.iRTPDataSize = 0,
  29932. this.aRTPDataBuffer = [], this.downloadRTP = !1, this.rtpNum = 0, this.bPlaySound = !1, this
  29933. .bPlay = !1, this.bPause = !1, this.bOnebyOne = !1, this.bPlayRateChange = !1, this
  29934. .bAudioTypeSupport = !0, this.audioNum = 0, this.videoNum = 0, this.SetPlayPositionFlag = !
  29935. 1, this.FrameForwardLen = 1, this.bOnlyPlaySound = !1, this.dataCallBackFun = null, this
  29936. .YUVBufSizeCBFun = null, this.AudEncodeDataCBFun = null, this.DecCallBackFun = null, this
  29937. .DisplayCallBackFun = null, this.PCMCallBackFun = null, this.DecInfoYUV = g, this
  29938. .DisplayInfoYUV = M, this.DecInfoPCM = L, this.nWidth = 0, this.nHeight = 0, this
  29939. .nSPSCropLeft = 0, this.nSPSCropRight = 0, this.nSPSCropTop = 0, this.nSPSCropBottom = 0,
  29940. this.sCanvasId = null, this.aDisplayBuf = null, this.bVisibility = !0, this.nDecFrameType =
  29941. 0, this.iCanvasWidth = 0, this.iCanvasHeight = 0, this.iZoomNum = 0, this.iRatio_x = 1, this
  29942. .iRatio_y = 1, this.stDisplayRect = {
  29943. top: 0,
  29944. left: 0,
  29945. right: 0,
  29946. bottom: 0
  29947. }, this.bDisRect = !1, this.stYUVRect = {
  29948. top: 0,
  29949. left: 0,
  29950. right: 0,
  29951. bottom: 0
  29952. }, this.aInputDataLens = [], this.aInputDataBuffer = [], this.bIsGetYUV = !1, this
  29953. .bIsFirstFrame = !0, this.iInputMaxBufSize = 5242880, this.bIsInput = !1, this
  29954. .bIsInputBufOver = !1, this.iInputDataLen = 20480;
  29955. var f = this;
  29956. this.iLastErrorCode = 1, this.setCallBack = function(e, t, n, i, r) {
  29957. var a = b;
  29958. a.id = s, a.cmd = t, a.data = n, a.errorCode = i, a.status = r, e.fnCallBack(a)
  29959. }, this._loadRenderFiles(), this.convertErrorCode = function(e) {
  29960. switch (e) {
  29961. case 1:
  29962. return this.iLastErrorCode = 1;
  29963. case 98:
  29964. return this.iLastErrorCode = 0;
  29965. default:
  29966. return this.iLastErrorCode = e
  29967. }
  29968. }, this.arrayBufferCopy = function(e) {
  29969. for (var t = e.byteLength, n = new Uint8Array(t), i = new Uint8Array(e), r = 0, r =
  29970. 0; r < t; r++) n[r] = i[r];
  29971. return n
  29972. }, this.inputDataFun = function() {
  29973. var e = 0;
  29974. if (f.bIsGetYUV = !1, f.bIsInputBufOver) {
  29975. k && console.log(">>>JS inputDataFun over!");
  29976. var t = new Uint8Array(1),
  29977. n = {
  29978. command: "InputData",
  29979. data: new Uint8Array(t).buffer,
  29980. dataSize: 0
  29981. };
  29982. f.decodeWorker.postMessage(n, [n.data])
  29983. } else if (f.bPlay && (!f.bPause || f.bOnebyOne) || this.bOnlyPlaySound) {
  29984. for (; 0 < f.aInputDataLens.length && !((e += f.aInputDataLens.shift()) > f
  29985. .iInputDataLen););
  29986. k && console.log(">>>JS inputDataFun-len:%d,totalSize:%d", e, f.aInputDataBuffer
  29987. .length), t = f.aInputDataBuffer.splice(0, e);
  29988. n = {
  29989. command: "InputData",
  29990. data: new Uint8Array(t).buffer,
  29991. dataSize: e
  29992. };
  29993. f.decodeWorker.postMessage(n, [n.data])
  29994. }
  29995. t = null
  29996. }, this.getPic = function(e, t) {
  29997. if (null == this.decodeWorker || null == this.oSuperRender) return this.iLastErrorCode =
  29998. 2;
  29999. if (!this.bPlay) return this.iLastErrorCode = 2;
  30000. if (!e || "function" != typeof e) return this.iLastErrorCode = 0;
  30001. var n;
  30002. if (this.dataCallBackFun = e, 0 === this.iZoomNum) this.stYUVRect.left = 0, this
  30003. .stYUVRect.top = 0, this.stYUVRect.right = 0, this.stYUVRect.bottom = 0;
  30004. else if (0 === this.iCanvasWidth || 0 === this.iCanvasHeight ? (this.stYUVRect.left = 0,
  30005. this.stYUVRect.top = 0, this.stYUVRect.right = 0, this.stYUVRect.bottom = 0) : (
  30006. n = this.nWidth / this.iCanvasWidth, e = this.nHeight / this.iCanvasHeight, this
  30007. .stYUVRect.left = Math.round(this.stDisplayRect.left * n), this.stYUVRect.top =
  30008. Math.round(this.stDisplayRect.top * e), this.stYUVRect.right = Math.round(this
  30009. .stDisplayRect.right * n), this.stYUVRect.bottom = Math.round(this
  30010. .stDisplayRect.bottom * e)), this.stYUVRect.right - this.stYUVRect.left <
  30011. 32 || this.stYUVRect.bottom - this.stYUVRect.top < 32) return this.iLastErrorCode =
  30012. 0;
  30013. if (null == this.aDisplayBuf) return this.iLastErrorCode = 2;
  30014. t = {
  30015. command: t,
  30016. data: this.arrayBufferCopy(this.aDisplayBuf).buffer,
  30017. width: this.nWidth,
  30018. height: this.nHeight,
  30019. rect: this.stYUVRect
  30020. };
  30021. return k && console.log(">>>JS capture nWidth = %d,nWidth = %d", this.nWidth, this
  30022. .nHeight), this.decodeWorker.postMessage(t), this.iLastErrorCode = 1
  30023. }, this.createWorker = function(_) {
  30024. if (window.Worker) {
  30025. if (null == this.decodeWorker && (this.decodeWorker = new Worker(f.szBasePath +
  30026. "DecodeWorker.js"), k && console.log(
  30027. ">>>JS createWorker success!!!!!!!!!!!!!!!!!!!!!!!!!"), null == this
  30028. .decodeWorker)) return this.iLastErrorCode = 60;
  30029. this.decodeWorker.onmessage = function(e) {
  30030. var t, n = null,
  30031. i = e.data;
  30032. switch (i.function) {
  30033. case "printLog":
  30034. console.log("print JSPlayerSDK log failed");
  30035. break;
  30036. case "loaded":
  30037. _.setCallBack(_, n = "loaded", 0, 0, !0);
  30038. break;
  30039. case "SetStreamOpenMode":
  30040. n = "SetStreamOpenMode";
  30041. break;
  30042. case "OpenStream":
  30043. if (n = "OpenStream", 1 === i.errorCode) return void(f
  30044. .bOpenStream = !0);
  30045. break;
  30046. case "InputData":
  30047. n = "InputData", 11 === i.errorCode && (f.bIsInputBufOver = !0, f
  30048. .inputDataFun(), k && console.log(
  30049. ">>>JS InputData PLAYM4_BUF_OVER")), 31 === i
  30050. .errorCode && (f.bIsInputBufOver = !1, k && console.log(
  30051. ">>>JS InputData PLAYM4_NEED_MORE_DATA"));
  30052. break;
  30053. case "GetFrameData":
  30054. if (n = "GetFrameData", !f.bOnlyPlaySound) {
  30055. if (k && console.log(
  30056. ">>>JS mainthread display GetFrameData 1-1"), null != i
  30057. .data && null != i.frameInfo && (i.frameInfo.width, i
  30058. .frameInfo.height), !f.bPlay) return;
  30059. if (!f.bIsFirstFrame && 31 === i.errorCode) {
  30060. f.bIsInputBufOver = !1, setTimeout(f.inputDataFun(), 5);
  30061. break
  30062. }
  30063. f.bIsInputBufOver ? f.inputDataFun() : "videoType" === i.type &&
  30064. (0 < f.aInputDataLens.length && f.bIsInput ? (f
  30065. .inputDataFun(), f.bIsInput = !1) : f.bIsGetYUV = !
  30066. 0, f.bIsFirstFrame = !1)
  30067. }
  30068. if (k && console.log(
  30069. ">>>JS mainthread display GetFrameData bVisibility:" + f
  30070. .bVisibility), f.bVisibility)
  30071. if (1 === i.errorCode) switch (i.type) {
  30072. case "videoType":
  30073. if (k && console.log(
  30074. ">>>JS mainthread display GetFrameData type:" +
  30075. i.type), null == i.data || null == i
  30076. .frameInfo) return this.iLastErrorCode = 0;
  30077. if (null != f.DecCallBackFun && (k && console.log(
  30078. ">>>JS MainThread-GetYUVData"), f
  30079. .DecInfoYUV.height = i.frameInfo.height, f
  30080. .DecInfoYUV.width = i.frameInfo.width, f
  30081. .DecInfoYUV.frameNum = i.frameInfo.frameNum,
  30082. f.DecInfoYUV.yuvData = new Uint8Array(i
  30083. .data), f.DecCallBackFun(f.DecInfoYUV)),
  30084. f.bIsFirstFrame = !1, _.nWidth = i.frameInfo
  30085. .width, _.nHeight = i.frameInfo.height, _
  30086. .nSPSCropLeft = i.frameInfo.cropLeft, _
  30087. .nSPSCropRight = i.frameInfo.cropRight, _
  30088. .nSPSCropTop = i.frameInfo.cropTop, _
  30089. .nSPSCropBottom = i.frameInfo.cropBottom, (u =
  30090. new Object).data = i.data, u.osdTime = i
  30091. .osd, u.nWidth = i.frameInfo.width, u.nHeight =
  30092. i.frameInfo.height, u.frameNum = i.frameInfo
  30093. .frameNum, u.timeStamp = i.frameInfo.timeStamp,
  30094. _.bWriteYUVData) {
  30095. for (var r = new Uint8Array(i.data), a = _
  30096. .aVideoYUVBuffer.length, s = 0, o = r
  30097. .length; s < o; s++) _.aVideoYUVBuffer[
  30098. a + s] = r[s];
  30099. _.iYUV10size++, r = null
  30100. }
  30101. _.bWriteYUVData && 20 <= _.iYUV10size && (t =
  30102. new Uint8Array(_.aVideoYUVBuffer), _
  30103. .downloadFile(t, "videoYUV.data"), _
  30104. .aVideoYUVBuffer.splice(0, _.aVideoYUVBuffer
  30105. .length), _.bWriteYUVData = !1, _
  30106. .iYUV10size = 0, t = null), k && console
  30107. .log(">>>JS mainthread getVideoInfo Width:" + u
  30108. .nWidth + ",height:" + u.nHeight +
  30109. ",frameNum:" + u.frameNum), _
  30110. .aVideoFrameBuffer.push(u);
  30111. var u = null,
  30112. u = _.aVideoFrameBuffer.length;
  30113. if (5 < u && (k && console.log(
  30114. ">>>JS render loose frame iYUVNum:%d", u
  30115. ), _.bOnebyOne || _.aVideoFrameBuffer
  30116. .splice(0, 2)), _.SetPlayPositionFlag &&
  30117. 1 === _.bSetPlayPositionType && (i.frameInfo
  30118. .frameNum === _.iFrameNumOrTime || i
  30119. .frameInfo.timeStamp === _.iFrameNumOrTime)
  30120. ) {
  30121. _.setCallBack(_, "SetFrameNum", 0, 0, !1), _
  30122. .bIsFirstFrame = !0;
  30123. break
  30124. }
  30125. if (_.bOnebyOne && 15 <= _.aVideoFrameBuffer
  30126. .length) {
  30127. _.setCallBack(_, "OnebyOne", 0, 0, !1), _
  30128. .bIsFirstFrame = !0;
  30129. break
  30130. }
  30131. break;
  30132. case "audioType":
  30133. if (k && console.log(
  30134. ">>>JS mainthread display GetFrameData 2-3 type:" +
  30135. i.type + ",bPlaySound:" + _.bPlaySound +
  30136. ",!bPlayRateChange:" + !_.bPlayRateChange +
  30137. ",bOnlyPlaySound:" + f.bOnlyPlaySound), _
  30138. .bPlaySound && !_.bPlayRateChange || f
  30139. .bOnlyPlaySound) {
  30140. k && console.log(
  30141. ">>>JS mainthread display GetFrameData 2-4 type" +
  30142. i.type + "bOnlyPlaySound:" + f
  30143. .bOnlyPlaySound), null != f
  30144. .PCMCallBackFun && (k && console.log(
  30145. ">>>JS MainThread-GetYUVData"), f
  30146. .DecInfoPCM.sampleRate = i.frameInfo
  30147. .samplesPerSec, f.DecInfoPCM.channel = i
  30148. .frameInfo.channels, f.DecInfoPCM
  30149. .bitsPerSample = i.frameInfo
  30150. .bitsPerSample, f.DecInfoPCM.pcmData =
  30151. new Uint8Array(i.data), f.DecInfoPCM
  30152. .length = f.DecInfoPCM.pcmData.length, f
  30153. .PCMCallBackFun(f.DecInfoPCM));
  30154. for (r = new Uint8Array(i.data), a = _
  30155. .aAudioBuffer.length, s = 0, o = r
  30156. .length; s < o; s++) _.aAudioBuffer[a + s] =
  30157. r[s];
  30158. if (_.iAudioBufferSize++, r = null, k && console
  30159. .log(
  30160. ">>>JS play sound 1 iAudioBufferNum:%d, BufferLen:%d",
  30161. _.iAudioBufferSize, _.aAudioBuffer
  30162. .length), _.bWritePCMData) {
  30163. for (r = new Uint8Array(i.data), a = _
  30164. .aAudioPCMBuffer.length, s = 0, o = r
  30165. .length; s < o; s++) _.aAudioPCMBuffer[
  30166. a + s] = r[s];
  30167. console.log("audio_type num:" + _
  30168. .iAudioBuffer500Size + ", len:" + r
  30169. .length), _.iAudioBuffer500Size++,
  30170. r = null
  30171. }
  30172. _.bWritePCMData && 100 <= _
  30173. .iAudioBuffer500Size && (u = new Uint8Array(
  30174. _.aAudioPCMBuffer), _.downloadFile(
  30175. u, "audioPCM.data"), _
  30176. .aAudioPCMBuffer.splice(0, _
  30177. .aAudioPCMBuffer.length), _
  30178. .bWritePCMData = !1, _
  30179. .iAudioBuffer500Size = 0, u = null),
  30180. 25 <= _.iAudioBufferSize && (k && console
  30181. .log(
  30182. ">>>JS play sound 2 iAudioBufferNum:%d, BufferLen:%d",
  30183. _.iAudioBufferSize, _.aAudioBuffer
  30184. .length), _.audioRenderer.Play(_
  30185. .aAudioBuffer, _.aAudioBuffer
  30186. .length, i.frameInfo), k && console
  30187. .log(
  30188. ">>>JS mainthread display Audio push 3 sysTime:" +
  30189. ((new Date).getMonth() + 1) + "-" +
  30190. (new Date).getDate() + " " + (
  30191. new Date).getHours() + ":" + (
  30192. new Date).getMinutes() + ":" + (
  30193. new Date).getSeconds() + "." + (
  30194. new Date).getMilliseconds()), _
  30195. .aAudioBuffer.splice(0, _.aAudioBuffer
  30196. .length), _.aAudioBuffer.length = 0,
  30197. _.iAudioBufferSize = 0)
  30198. }
  30199. break;
  30200. case "privateType":
  30201. k && console.log(
  30202. ">>>JS mainthread display GetFrameData 2-5 type" +
  30203. i.type + "bOnlyPlaySound:" + f
  30204. .bOnlyPlaySound);
  30205. break;
  30206. default:
  30207. k && console.log(
  30208. ">>>JS mainthread display GetFrameData 2-6 type:" +
  30209. i.type + ",bOnlyPlaySound:" + f
  30210. .bOnlyPlaySound)
  30211. } else k && console.log(
  30212. ">>>JS mainthread GetFrameData is not Ok,errorCode:" +
  30213. i.errorCode);
  30214. break;
  30215. case "GetRawData":
  30216. if (n = "GetRawData", _.bWriteRawData) {
  30217. for (var d = new Uint8Array(i.data), l = _.aRawDataBuffer
  30218. .length, s = 0, o = d.length; s < o; s++) _
  30219. .aRawDataBuffer[l + s] = d[s];
  30220. _.iRawDataSize++, d = null
  30221. }
  30222. _.bWriteRawData && 100 <= _.iRawDataSize && (h = new Uint8Array(_
  30223. .aRawDataBuffer), _.downloadFile(h, "rawBuffer.data"), _
  30224. .aRawDataBuffer.splice(0, _.aRawDataBuffer.length), _
  30225. .bWriteRawData = !1, _.iRawDataSize = 0, h = null);
  30226. break;
  30227. case "PlaySound":
  30228. n = "PlaySound";
  30229. break;
  30230. case "SetPlayPosition":
  30231. console.log(">>>JS mainthread SetPlayPosition error,errorCode:" + i
  30232. .errorCode);
  30233. break;
  30234. case "GetJPEG":
  30235. var n = "GetJPEG",
  30236. h = i.data;
  30237. _.dataCallBackFun(h);
  30238. break;
  30239. case "GetBMP":
  30240. n = "GetBMP";
  30241. var c = i.data;
  30242. _.dataCallBackFun(c);
  30243. break;
  30244. case "GetAudEncodeData":
  30245. if (k && console.log(">>>JS MainThread-GetAudEncodeData 1"), n =
  30246. "GetAudEncodeData", 1 === i.errorCode) {
  30247. if (null != f.AudEncodeDataCBFun && (k && console.log(
  30248. ">>>JS GetAudEncodeData 1 dataSize" + i.dataSize +
  30249. ", nSysTime:" + (new Date).getMinutes() + ":" + (
  30250. new Date).getSeconds() + "." + (new Date)
  30251. .getMilliseconds()), f.AudEncodeDataCBFun(
  30252. new Uint8Array(i.data)), k && console.log(
  30253. ">>>JS GetAudEncodeData 2 dataSize" + i.dataSize +
  30254. ", nSysTime:" + (new Date).getMinutes() + ":" + (
  30255. new Date).getSeconds() + "." + (new Date)
  30256. .getMilliseconds())), _.bWriteAudEnc) {
  30257. for (r = new Uint8Array(i.data), a = _.aAudioEncBuffer
  30258. .length, s = 0, o = r.length; s < o; s++) _
  30259. .aAudioEncBuffer[a + s] = r[s];
  30260. _.iAudioEncBufferSize++, r = null
  30261. }
  30262. _.bWriteAudEnc && 200 <= _.iAudioEncBufferSize && (c =
  30263. new Uint8Array(_.aAudioEncBuffer), _.downloadFile(c,
  30264. "Enc.AAC"), _.aAudioEncBuffer.splice(0, _
  30265. .aAudioEncBuffer.length), _.bWriteAudEnc = !1, _
  30266. .iAudioEncBufferSize = 0, c = null)
  30267. } else k && console.log(">>>JS MainThread-GetAudEncodeData 2 err")
  30268. }
  30269. "GetFrameData" === n && "GetAudEncodeData" === n && 16 !== i.errorCode &&
  30270. 101 !== i.errorCode && 100 !== i.errorCode && 48 !== i.errorCode || _
  30271. .setCallBack(_, n, 0, _.convertErrorCode(i.errorCode), !0)
  30272. }
  30273. }
  30274. }, this.createWorker(f), this.draw = function() {
  30275. if (f.bPlay) {
  30276. if (!f.bPause || f.bOnebyOne) {
  30277. requestAnimationFrame(f.draw);
  30278. var e = f.aVideoFrameBuffer.length;
  30279. if (null != f.YUVBufSizeCBFun && f.YUVBufSizeCBFun(e), f.bOnebyOne) {
  30280. if (e <= 8 && f.setCallBack(f, "OnebyOne", 0, 31, !0), e <= f
  30281. .FrameForwardLen + 1) return void f.setCallBack(f, "OnebyOne", 0, 31, !
  30282. 0);
  30283. for (var t = f.FrameForwardLen; 1 < t;) {
  30284. f.aVideoFrameBuffer.shift();
  30285. t--
  30286. }
  30287. f.bOnebyOne = !1
  30288. }
  30289. if (k && console.log(">>>JS Draw aVideoFrameBuffer.length == " + e), e > f
  30290. .YUVBufferSize) {
  30291. var n = f.aVideoFrameBuffer.shift();
  30292. if (f.SetPlayPositionFlag) {
  30293. if (k && console.log(">>>JS SetPlayPositionFlag frameNumOrTime:" + f
  30294. .iFrameNumOrTime + ",currentFrameNum:" + n.frameNum), n
  30295. .frameNum != f.iFrameNumOrTime) return void(k && console.log(
  30296. ">>>JS frameNum!= frameNumOrTime:" + n.frameNum));
  30297. 1 === f.bSetPlayPositionType && (f.bPause = !0), f
  30298. .SetPlayPositionFlag = !1
  30299. }
  30300. k && console.log(">>>after display frameNum:" + n.frameNum), f.aDisplayBuf =
  30301. n.data;
  30302. e = new Uint8Array(f.aDisplayBuf);
  30303. k && console.log(
  30304. ">>>JS SR_DisplayFrameData 1 nWidth:%d, nHeight:%d, nWidth1:%d, nHeight1:%d",
  30305. n.nWidth, n.nHeight, f.nWidth, f.nHeight), f.oSuperRender
  30306. .SR_DisplayFrameData(n.nWidth, n.nHeight, e, n.nWidth - f.nSPSCropLeft -
  30307. f.nSPSCropRight, n.nHeight - f.nSPSCropTop - f.nSPSCropBottom),
  30308. null != f.DisplayCallBackFun && (k && console.log(
  30309. ">>>JS MainThread-DisplayCallBackFun"), f.DisplayInfoYUV
  30310. .height = n.nHeight, f.DisplayInfoYUV.width = n.nWidth, f
  30311. .DisplayInfoYUV.frameNum = n.frameNum, f.DisplayInfoYUV.yuvData =
  30312. new Uint8Array(e), f.DisplayCallBackFun(f.DisplayInfoYUV)), k && f
  30313. .bOnebyOne && console.log("OneByOne frameNum:" + n.frameNum), k &&
  30314. console.log(
  30315. ">>>JS SR_DisplayFrameData 2 nWidth:%d, nHeight:%d, nWidth1:%d, nHeight1:%d",
  30316. n.nWidth, n.nHeight, f.nWidth, f.nHeight), e = null, f.szOSDTime = n
  30317. .osdTime
  30318. } else f.setCallBack(f, "Play", 0, 31, !0)
  30319. }
  30320. } else f.bPlay || (k && console.log(">>>JS mainThread stop play jsplaySDKInterface"), f
  30321. .aVideoFrameBuffer.splice(0, f.aVideoFrameBuffer.length), f.aAudioBuffer.splice(
  30322. 0, f.aAudioBuffer.length))
  30323. }, this.checkAudioType = function(e) {
  30324. var t, n = [e[12], e[13], 0, 0];
  30325. switch (255 & n[t = 0] | (255 & n[t + 1]) << 8 | (255 & n[t + 2]) << 16 | (255 & n[t +
  30326. 3]) << 24) {
  30327. case l:
  30328. case d:
  30329. case h:
  30330. case m:
  30331. case _:
  30332. case c:
  30333. case p:
  30334. case y:
  30335. case v:
  30336. return this.iLastErrorCode = 1;
  30337. default:
  30338. return this.iLastErrorCode = 16
  30339. }
  30340. }
  30341. }
  30342. }, function(e, t, n) {
  30343. "use strict";
  30344. Object.defineProperty(t, "__esModule", {
  30345. value: !0
  30346. }), t.JSTalkCtrl = void 0;
  30347. var i = r(n(1)),
  30348. n = r(n(2));
  30349. function r(e) {
  30350. return e && e.__esModule ? e : {
  30351. default: e
  30352. }
  30353. }
  30354. var s = {
  30355. id: null,
  30356. cmd: null,
  30357. data: null,
  30358. errorCode: 0,
  30359. status: null
  30360. },
  30361. a = null;
  30362. window.JSAUDIOCOM_EncodeDataCBFun = function(e, t, n, i) {
  30363. a && null != a.AudEncodeDataCBFun && a.AudEncodeDataCBFun(new Uint8Array(t))
  30364. }, window.JSAUDIOCOM_DecodeDataCBFun = function(e, t, n, i) {
  30365. a && null != a.AudDecodeDataCBFun && a.AudDecodeDataCBFun(new Uint8Array(t))
  30366. };
  30367. (0, n.default)(o, [{
  30368. key: "Talk_CreateAudEncode",
  30369. value: function(e) {
  30370. this.iTalkEncodePort = this.oTalkWASM._JSAUDIOCOM_CreateEncodeHandle(e), console
  30371. .log("_JSAUDIOCOM_CreateEncodeHandle port :" + this.iTalkEncodePort)
  30372. }
  30373. }, {
  30374. key: "Talk_SetAudEncodeParam",
  30375. value: function(e, t, n, i) {
  30376. var r;
  30377. 0 == this.oTalkWASM._JSAUDIOCOM_RegisterEncodeDataCallBack(this.iTalkEncodePort,
  30378. t, i, e, n) && (r = this.oTalkWASM._JSAUDIOCOM_GetLastError(this
  30379. .iTalkEncodePort), console.log("resEncodeDataCallBack resError :" +
  30380. r)), 1 !== this.oTalkWASM._JSAUDIOCOM_StartEncode(this
  30381. .iTalkEncodePort) && (r = this.oTalkWASM._JSAUDIOCOM_GetLastError(this
  30382. .iTalkEncodePort), console.log(
  30383. "_JSAUDIOCOM_StartEncode resError :" + r))
  30384. }
  30385. }, {
  30386. key: "Talk_RegisterAudEncodeCB",
  30387. value: function(e) {
  30388. return e && "function" == typeof e ? (this.AudEncodeDataCBFun = e, 1) : 0
  30389. }
  30390. }, {
  30391. key: "Talk_RegisterAudDecodeCB",
  30392. value: function(e) {
  30393. return e && "function" == typeof e ? (this.AudDecodeDataCBFun = e, 1) : 0
  30394. }
  30395. }, {
  30396. key: "Talk_InputAudEncodeData",
  30397. value: function(e, t) {
  30398. var n = this.oTalkWASM._malloc(t);
  30399. if (null === n) return console.log("inputdata malloc failed!!!"), -1;
  30400. e = new Uint8Array(e);
  30401. this.oTalkWASM.writeArrayToMemory(e, n);
  30402. e = void 0;
  30403. try {
  30404. e = this.oTalkWASM._JSAUDIOCOM_InputEncodeData(this.iTalkEncodePort, n, t)
  30405. } catch (e) {
  30406. console.error(e)
  30407. }
  30408. return 1 !== e && (e = this.oTalkWASM._JSAUDIOCOM_GetLastError(this
  30409. .iTalkEncodePort), console.log(
  30410. "_JSAUDIOCOM_InputEncodeData resError :" + e)), null !== n && (this
  30411. .oTalkWASM._free(n), n = null), 1
  30412. }
  30413. }, {
  30414. key: "Talk_DestroyAudEncode",
  30415. value: function() {
  30416. return this.oTalkWASM._JSAUDIOCOM_StopEncode(this.iTalkEncodePort), this
  30417. .oTalkWASM._JSAUDIOCOM_ReleaseEncodeHandle(this.iTalkEncodePort), this
  30418. .iTalkEncodePort = -1, 1
  30419. }
  30420. }, {
  30421. key: "Talk_CreateAuDecode",
  30422. value: function() {
  30423. this.oTalkWASM._JSAUDIOCOM_LoadLibrary(), this.oTalkWASM
  30424. ._JSAUDIOCOM_GetPlayDeviceNum();
  30425. var e = this.oTalkWASM._JSAUDIOCOM_GetOnePlayDeviceName(0);
  30426. this.iTalkDecodePort = this.oTalkWASM._JSAUDIOCOM_CreatePlayHandle(), console
  30427. .log("JSAUDIOCOM getNameRes:" + e + ", port:" + this.iTalkDecodePort)
  30428. }
  30429. }, {
  30430. key: "Talk_SetAudDecodeParam",
  30431. value: function(e, t, n, i, r) {
  30432. 1 !== this.oTalkWASM._JSAUDIOCOM_OpenStream(this.iTalkDecodePort, t, i, e, n,
  30433. r) && (r = this.oTalkWASM._JSAUDIOCOM_GetLastError(this
  30434. .iTalkDecodePort),
  30435. console.log("_JSAUDIOCOM_OpenStream resError :" + r)), this.oTalkWASM
  30436. ._JSAUDIOCOM_RegisterDecodeDataCallBack(this.iTalkDecodePort)
  30437. }
  30438. }, {
  30439. key: "Talk_OpenStreamDecodeData",
  30440. value: function() {
  30441. var e;
  30442. 1 !== this.oTalkWASM._JSAUDIOCOM_StartPlay(this.iTalkDecodePort) && (e = this
  30443. .oTalkWASM._JSAUDIOCOM_GetLastError(this.iTalkDecodePort), console.log(
  30444. "_JSAUDIOCOM_StartPlay resError :" + e))
  30445. }
  30446. }, {
  30447. key: "Talk_InputAudDecodeData",
  30448. value: function(e, t) {
  30449. var n = this.oTalkWASM._malloc(t);
  30450. if (null === n) return console.log("inputdata malloc failed!!!"), -1;
  30451. e = new Uint8Array(e);
  30452. return this.oTalkWASM.writeArrayToMemory(e, n), 1 !== this.oTalkWASM
  30453. ._JSAUDIOCOM_InputStreamData(this.iTalkDecodePort, n, t) && (t = this
  30454. .oTalkWASM._JSAUDIOCOM_GetLastError(this.iTalkDecodePort), console.log(
  30455. "_JSAUDIOCOM_InputStreamData resError :" + t)), null !== n && (this
  30456. .oTalkWASM._free(n), 0), 1
  30457. }
  30458. }, {
  30459. key: "Talk_DestroyAudDecode",
  30460. value: function() {
  30461. this.oTalkWASM._JSAUDIOCOM_StopPlay(this.iTalkDecodePort), this.oTalkWASM
  30462. ._JSAUDIOCOM_ReleasePlayHandle(this.iTalkDecodePort), this
  30463. .iTalkDecodePort = -1
  30464. }
  30465. }, {
  30466. key: "Talk_SetTalkLogFlag",
  30467. value: function(e) {
  30468. this.oTalkWASM._JSAUDIOCOM_SetPrintLogFlag(this.iTalkDecodePort, e), this
  30469. .oTalkWASM._JSAUDIOCOM_SetPrintLogFlag(this.iTalkEncodePort, e)
  30470. }
  30471. }, {
  30472. key: "Talk_SetVolume",
  30473. value: function(e) {
  30474. return this.oTalkWASM._JSAUDIOCOM_SetVolume(this.iTalkDecodePort, e)
  30475. }
  30476. }, {
  30477. key: "Talk_GetVolume",
  30478. value: function(e) {
  30479. if (e && "function" == typeof e) return e(this.oTalkWASM._JSAUDIOCOM_GetVolume(
  30480. this.iTalkDecodePort)), RETURN_OK
  30481. }
  30482. }, {
  30483. key: "Talk_GetLastError",
  30484. value: function() {
  30485. return this.oTalkWASM._JSAUDIOCOM_GetLastError(this.iTalkDecodePort)
  30486. }
  30487. }]), n = o;
  30488. function o(e, t) {
  30489. var n = this;
  30490. (0, i.default)(this, o), a = this, t && "function" == typeof t && (this.fnCallBack = t), this
  30491. .setCallBack = function(e, t, n, i, r) {
  30492. var a = s;
  30493. a.cmd = t, a.data = n, a.errorCode = i, a.status = r, e.fnCallBack(a)
  30494. }, this.iTalkEncodePort = -1, this.iTalkDecodePort = -1, this.AudEncodeDataCBFun = null,
  30495. this.AudDecodeDataCBFun = null, this.oTalkWASM = null;
  30496. t = e, e = document.createElement("script");
  30497. e.type = "text/javascript", e.src = t, e.onload = function() {
  30498. JSAudioInterComModule().then(function(e) {
  30499. n.oTalkWASM = e, n.setCallBack(n, "loaded")
  30500. })
  30501. }, document.body.appendChild(e)
  30502. }
  30503. t.JSTalkCtrl = n
  30504. }, function(e, t, n) {
  30505. "use strict";
  30506. Object.defineProperty(t, "__esModule", {
  30507. value: !0
  30508. }), t.StorageManager = void 0;
  30509. var i = h(n(53)),
  30510. r = h(n(54)),
  30511. u = h(n(11)),
  30512. o = h(n(1)),
  30513. a = h(n(2)),
  30514. d = h(n(87)),
  30515. s = n(86),
  30516. l = h(n(55));
  30517. function h(e) {
  30518. return e && e.__esModule ? e : {
  30519. default: e
  30520. }
  30521. }
  30522. var c = new Uint8Array([1, 2, 3, 4]);
  30523. window.requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem, window.URL =
  30524. window.URL || window.webkitURL;
  30525. var _ = ((0, a.default)(f, [{
  30526. key: "init",
  30527. value: function() {
  30528. var n = this;
  30529. 0 === this.iStreamType ? this.szPath = "Web/RecordFiles/" : 1 === this
  30530. .iStreamType && (this.szPath = "Web/PlaybackFiles/"), this.szPath +=
  30531. this.getDateDir();
  30532. var i = this.szPath.split("/");
  30533. return new u.default(function(t) {
  30534. window.requestFileSystem(window.TEMPORARY, n.options
  30535. .iFileSize,
  30536. function(e) {
  30537. n.createDir(e.root, i, function() {
  30538. t()
  30539. })
  30540. }, n.errorHandler)
  30541. })
  30542. }
  30543. }, {
  30544. key: "getDateDir",
  30545. value: function() {
  30546. return s.oTool.dateFormat(new Date, "yyyy-MM-dd")
  30547. }
  30548. }, {
  30549. key: "createDir",
  30550. value: function(e, t, n) {
  30551. var i = this;
  30552. t.length ? e.getDirectory(t[0], {
  30553. create: !0
  30554. }, function(e) {
  30555. i.createDir(e, t.slice(1), n)
  30556. }, this.errorHandler) : n()
  30557. }
  30558. }, {
  30559. key: "errorHandler",
  30560. value: function() {}
  30561. }, {
  30562. key: "openFile",
  30563. value: function() {
  30564. var t = this;
  30565. window.requestFileSystem(window.TEMPORARY, this.options.iFileSize,
  30566. function(e) {
  30567. e.root.getFile(t.szPath + "/" + t.szFileName, {
  30568. create: !0
  30569. }, function(e) {
  30570. e.createWriter(function(e) {
  30571. e.onwriteend = function() {
  30572. t.writeFile(e)
  30573. }, e.onerror = function() {}
  30574. }, t.errorHandler)
  30575. }, t.errorHandler)
  30576. }, this.errorHandler)
  30577. }
  30578. }, {
  30579. key: "writeFileHeader",
  30580. value: function(n) {
  30581. var i = this;
  30582. window.requestFileSystem(window.TEMPORARY, this.options.iFileSize,
  30583. function(e) {
  30584. e.root.getFile(i.szFileName, {
  30585. create: !0
  30586. }, function(e) {
  30587. e.createWriter(function(e) {
  30588. i.bStart = !0, e.onwriteend =
  30589. function() {
  30590. i.writeFile(e)
  30591. }, e.onerror = function() {}, e
  30592. .seek(e.length);
  30593. var t = new Blob([n]);
  30594. e.write(t)
  30595. }, i.errorHandler)
  30596. }, function(e) {
  30597. console.log("getFile error:", e.message)
  30598. })
  30599. }, this.errorHandler)
  30600. }
  30601. }, {
  30602. key: "writeFileContent",
  30603. value: function(e) {
  30604. this.aStreamList.push(e)
  30605. }
  30606. }, {
  30607. key: "writeFile",
  30608. value: function(e) {
  30609. var t = this;
  30610. if (0 < this.aStreamList.length) {
  30611. var n = this.aStreamList.shift();
  30612. if (e.seek(e.length), e.length >= this.options.iFileSize)
  30613. return void(this.options.cbEventHandler && this.options
  30614. .cbEventHandler(3001, this.szUUID));
  30615. n = new Blob([n]);
  30616. e.write(n)
  30617. } else !1 === this.bStop && setTimeout(function() {
  30618. t.writeFile(e)
  30619. }, 500);
  30620. 5 !== this.iPackType && 0 === this.aStreamList.length && !0 === this
  30621. .bStop && this.bStart && (this.bStart = !1, this.stopWriteFile()),
  30622. this.getStopData && 0 === this.aStreamList.length && (this
  30623. .bStart = !1, this.stopWriteFile(), this.getStopData = !1)
  30624. }
  30625. }, {
  30626. key: "stopWriteFile",
  30627. value: function() {
  30628. var t, a = this;
  30629. return new u.default((t = (0, r.default)(i.default.mark(function e(r) {
  30630. return i.default.wrap(function(e) {
  30631. for (;;) switch (e.prev = e.next) {
  30632. case 0:
  30633. if (a.bStop) {
  30634. e.next = 2;
  30635. break
  30636. }
  30637. return e.abrupt(
  30638. "return", r());
  30639. case 2:
  30640. if ((!a.getStopData ||
  30641. 0 < a
  30642. .aStreamList
  30643. .length) &&
  30644. 5 === a.iPackType)
  30645. return e.abrupt(
  30646. "return",
  30647. r());
  30648. e.next = 4;
  30649. break;
  30650. case 4:
  30651. if (0 < a.aStreamList
  30652. .length && 5 !== a
  30653. .iPackType) return e
  30654. .abrupt(
  30655. "return",
  30656. r());
  30657. e.next = 6;
  30658. break;
  30659. case 6:
  30660. return a.options
  30661. .cbStreamCB && a
  30662. .options.cbStreamCB(
  30663. c), a.options
  30664. .cbStreamCB = null,
  30665. e.next = 10, window
  30666. .requestFileSystem(
  30667. window
  30668. .TEMPORARY, a
  30669. .options
  30670. .iFileSize,
  30671. function(e) {
  30672. e.root
  30673. .getFile(
  30674. a
  30675. .szFileName, {
  30676. create:
  30677. !
  30678. 1
  30679. },
  30680. function(
  30681. i
  30682. ) {
  30683. i.file(function(
  30684. e
  30685. ) {
  30686. var t,
  30687. n;
  30688. r(), t =
  30689. i
  30690. .toURL(),
  30691. n =
  30692. e
  30693. .name,
  30694. (e = window
  30695. .document
  30696. .createElement(
  30697. "a"
  30698. )
  30699. )
  30700. .href =
  30701. t,
  30702. e
  30703. .download =
  30704. n,
  30705. (n = document
  30706. .createEvent(
  30707. "MouseEvents"
  30708. )
  30709. )
  30710. .initEvent(
  30711. "click",
  30712. !
  30713. 0,
  30714. !
  30715. 0
  30716. ),
  30717. e
  30718. .dispatchEvent(
  30719. n
  30720. ),
  30721. a
  30722. .bStop = !
  30723. 1
  30724. })
  30725. }, a
  30726. .errorHandler
  30727. )
  30728. }, a
  30729. .errorHandler);
  30730. case 10:
  30731. case "end":
  30732. return e.stop()
  30733. }
  30734. }, e, a)
  30735. })), function(e) {
  30736. return t.apply(this, arguments)
  30737. }))
  30738. }
  30739. }]), f);
  30740. function f(e, t, n, i, r) {
  30741. (0, o.default)(this, f), this.szUUID = e, this.szFileName = t, this.iStreamType = n, this
  30742. .szPath = "", this.bStart = !1, this.getStopData = !1, this.aStreamList = [], this.options =
  30743. r, this.iPackType = i, this.bStop = !1
  30744. }
  30745. var m = ((0, a.default)(p, [{
  30746. key: "init",
  30747. value: function() {
  30748. var n = this;
  30749. return new u.default(function(e, t) {
  30750. n.initFileSystem().then(function() {
  30751. !0 === n.isTranse ? n.initWorker().then(
  30752. function() {
  30753. e(n.szUUID)
  30754. },
  30755. function(e) {
  30756. t(e)
  30757. }) : e(n.szUUID)
  30758. }, function(e) {
  30759. t(e)
  30760. })
  30761. })
  30762. }
  30763. }, {
  30764. key: "initFileSystem",
  30765. value: function() {
  30766. var n = this;
  30767. return new u.default(function(e, t) {
  30768. 2 !== n.options.irecordType && (n.oFileSystem = new _(n
  30769. .szUUID, n.szFileName, n.iStreamType, n
  30770. .iPackType, n.options), n.oFileSystem.init()
  30771. .then(function() {
  30772. e()
  30773. }, function(e) {
  30774. t(e)
  30775. })), e()
  30776. })
  30777. }
  30778. }, {
  30779. key: "initWorker",
  30780. value: function() {
  30781. var i = this;
  30782. return new u.default(function(n) {
  30783. i.oWorker = new Worker(i.szBasePath +
  30784. "systemTransform-worker.js"), i.oWorker.onmessage =
  30785. function(e) {
  30786. var t = e.data,
  30787. e = i.iPackType;
  30788. 1 === i.options.iPackage && (e = 12), "loaded" === t
  30789. .type ? i.oWorker.postMessage({
  30790. type: "create",
  30791. buf: i.aHeadBuf.buffer,
  30792. len: 40,
  30793. packType: e
  30794. }) : "created" === t.type ? n() :
  30795. "outputData" === t.type && (e = new Uint8Array(t
  30796. .buf), 2 !== i.options.irecordType && (
  30797. 1 === t.dType ? i.oFileSystem
  30798. .writeFileHeader(e) : i.oFileSystem
  30799. .writeFileContent(e), 6 === t.dType && (
  30800. i.oFileSystem.getStopData = !0)),
  30801. 1 !== i.options.irecordType && (i.options
  30802. .cbStreamCB && i.options.cbStreamCB(e),
  30803. 6 === t.dType && 2 === i.options
  30804. .irecordType && (i.options.cbStreamCB &&
  30805. i.options.cbStreamCB(c), i.options
  30806. .cbStreamCB = null)))
  30807. }
  30808. })
  30809. }
  30810. }, {
  30811. key: "inputData",
  30812. value: function(e) {
  30813. var t;
  30814. !0 === this.isTranse ? this.oWorker && (t = new Uint8Array(e), this
  30815. .oWorker.postMessage({
  30816. type: "inputData",
  30817. buf: t.buffer,
  30818. len: t.length
  30819. })) : (2 !== this.options.irecordType && (!0 === this.bHead ? (
  30820. 1 === this.iPackType ? (this.oFileSystem
  30821. .writeFileHeader(this.aHeadBuf), this.oFileSystem
  30822. .writeFileContent(e)) : this.oFileSystem
  30823. .writeFileHeader(e), this.bHead = !1) : this.oFileSystem
  30824. .writeFileContent(e)), 1 !== this.options.irecordType && (!
  30825. 0 === this.bHead && (this.options.cbStreamCB && this.options
  30826. .cbStreamCB(this.aHeadBuf), this.bHead = !1), this
  30827. .options.cbStreamCB && this.options.cbStreamCB(e)))
  30828. }
  30829. }, {
  30830. key: "stopRecord",
  30831. value: function() {
  30832. var n = this;
  30833. return new u.default(function(e, t) {
  30834. !0 === n.isTranse && (n.oWorker ? n.oWorker.postMessage({
  30835. type: "release"
  30836. }) : t()), n.oFileSystem ? (n.oFileSystem.bStop = !0, n
  30837. .oFileSystem.stopWriteFile().then(function() {
  30838. n.bHead = !0, e()
  30839. }, function() {
  30840. t()
  30841. })) : (5 !== n.iPackType && (n.options.cbStreamCB &&
  30842. n.options.cbStreamCB(c), n.options.cbStreamCB =
  30843. null), e())
  30844. })
  30845. }
  30846. }]), p);
  30847. function p(e, t, n, i, r, a, s) {
  30848. (0, o.default)(this, p), this.szBasePath = e, this.szUUID = t, this.szFileName = n, this
  30849. .aHeadBuf = new Uint8Array(i), this.iPackType = r, this.iStreamType = a, this.oWorker =
  30850. null, this.oFileSystem = null, this.options = s, this.bHead = !0, this.isTranse = !0, (2 ===
  30851. i[8] && 0 === i[9] && 2 === r || "audio" === i || 1 === r) && (this.isTranse = !1)
  30852. }(0, a.default)(y, [{
  30853. key: "startRecord",
  30854. value: function(e, t, n, i, r) {
  30855. var a = this,
  30856. s = d.default.v4(),
  30857. r = l.default.extend(this.options, r),
  30858. o = new m(this.szBasePath, s, e, t, n, i, r);
  30859. return new u.default(function(t, n) {
  30860. o.init().then(function(e) {
  30861. a.oStorageList[e] = o, t(e)
  30862. }, function(e) {
  30863. n(e)
  30864. })
  30865. })
  30866. }
  30867. }, {
  30868. key: "inputData",
  30869. value: function(e, t) {
  30870. e = this.oStorageList[e];
  30871. e && e.inputData(t)
  30872. }
  30873. }, {
  30874. key: "stopRecord",
  30875. value: function(i) {
  30876. var r = this;
  30877. return new u.default(function(e, t) {
  30878. var n = r.oStorageList[i];
  30879. n ? n.stopRecord().then(function() {
  30880. delete r.oStorageList[i], e()
  30881. }, function() {
  30882. t()
  30883. }) : t()
  30884. })
  30885. }
  30886. }]), a = y;
  30887. function y(e, t) {
  30888. (0, o.default)(this, y), this.szBasePath = e, this.oStorageList = {}, this.options = {
  30889. iFileSize: 1073741824,
  30890. irecordType: 1,
  30891. cbStreamCB: null
  30892. }
  30893. }
  30894. t.StorageManager = a
  30895. }, function(e, t, n) {
  30896. "use strict";
  30897. Object.defineProperty(t, "__esModule", {
  30898. value: !0
  30899. }), t.ESCanvas = void 0;
  30900. var i = function(e, t, n) {
  30901. return t && r(e.prototype, t), n && r(e, n), e
  30902. };
  30903. function r(e, t) {
  30904. for (var n = 0; n < t.length; n++) {
  30905. var i = t[n];
  30906. i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0),
  30907. Object.defineProperty(e, i.key, i)
  30908. }
  30909. }
  30910. var a, s = n(55),
  30911. o = (a = s) && a.__esModule ? a : {
  30912. default: a
  30913. };
  30914. function u(e, t) {
  30915. if (!e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  30916. return !t || "object" != typeof t && "function" != typeof t ? e : t
  30917. }
  30918. function d(e, t) {
  30919. if ("function" != typeof t && null !== t) throw new TypeError(
  30920. "Super expression must either be null or a function, not " + typeof t);
  30921. e.prototype = Object.create(t && t.prototype, {
  30922. constructor: {
  30923. value: e,
  30924. enumerable: !1,
  30925. writable: !0,
  30926. configurable: !0
  30927. }
  30928. }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t)
  30929. }
  30930. function l(e, t) {
  30931. if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
  30932. }
  30933. var m, h, c, _, f, p, y, i = (m = null, i(L, [{
  30934. key: "draw",
  30935. value: function() {}
  30936. }, {
  30937. key: "drag",
  30938. value: function(e, t) {
  30939. for (var n = this.m_aPoint.length, i = 0, i = 0; i < n; i++)
  30940. if (this.m_aPoint[i][0] + e - this.m_iDriftStartX > m
  30941. .m_iCanvasWidth || this.m_aPoint[i][1] + t - this
  30942. .m_iDriftStartY > m.m_iCanvasHeight || this.m_aPoint[i][0] + e -
  30943. this.m_iDriftStartX < 0 || this.m_aPoint[i][1] + t - this
  30944. .m_iDriftStartY < 0) return this.m_iDriftStartX = e, void(this
  30945. .m_iDriftStartY = t);
  30946. for (i = 0; i < n; i++) this.m_aPoint[i][0] = this.m_aPoint[i][0] + e -
  30947. this.m_iDriftStartX, this.m_aPoint[i][1] = this.m_aPoint[i][1] + t -
  30948. this.m_iDriftStartY;
  30949. this.m_iDriftStartX = e, this.m_iDriftStartY = t, this.setPointInfo(this
  30950. .m_aPoint), v()
  30951. }
  30952. }, {
  30953. key: "stretch",
  30954. value: function(e, t) {
  30955. 0 === this.m_iEditType && (-1 !== this.m_iIndexChoosePoint && (this
  30956. .m_aPoint[this.m_iIndexChoosePoint][0] = e, this.m_aPoint[
  30957. this.m_iIndexChoosePoint][1] = t), this.setPointInfo(
  30958. this.m_aPoint), v())
  30959. }
  30960. }, {
  30961. key: "inShape",
  30962. value: function(e, t) {
  30963. for (var n = !1, i = this.m_aPoint.length, r = 0, a = i - 1; r < i; a =
  30964. r++) this.m_aPoint[r][1] > t != this.m_aPoint[a][1] > t && e < (this
  30965. .m_aPoint[a][0] - this.m_aPoint[r][0]) * (t - this.m_aPoint[r][
  30966. 1
  30967. ]) / (this.m_aPoint[a][1] - this.m_aPoint[r][1]) + this
  30968. .m_aPoint[r][0] && (n = !n);
  30969. return n
  30970. }
  30971. }, {
  30972. key: "inArc",
  30973. value: function(e, t, n) {
  30974. for (var i = !1, r = 0, a = this.m_aPoint.length; r < a; r++)
  30975. if (Math.sqrt((e - this.m_aPoint[r][0]) * (e - this.m_aPoint[r][
  30976. 0
  30977. ]) + (t - this.m_aPoint[r][1]) * (t - this.m_aPoint[r][1])) <
  30978. n) {
  30979. i = !0, this.m_iIndexChoosePoint = r;
  30980. break
  30981. } return i
  30982. }
  30983. }, {
  30984. key: "getMouseDownPoints",
  30985. value: function(e, t) {
  30986. this.m_iDriftStartX = e, this.m_iDriftStartY = t
  30987. }
  30988. }, {
  30989. key: "getPointInfo",
  30990. value: function() {
  30991. return this.m_aPoint
  30992. }
  30993. }, {
  30994. key: "setPointInfo",
  30995. value: function(e) {
  30996. null != e && 0 < e.length && (this.m_aPoint = e, this.setEdgePoints(e))
  30997. }
  30998. }, {
  30999. key: "addPoint",
  31000. value: function(e, t) {
  31001. this.m_aPoint.length < this.m_iMaxPointNum && this.m_aPoint.push([e,
  31002. t
  31003. ]), this.m_aPoint.length === this.m_iMaxPointNum && this
  31004. .setPointInfo(this.m_aPoint)
  31005. }
  31006. }, {
  31007. key: "setEdgePoints",
  31008. value: function(e) {
  31009. for (var t = 0, n = e.length; t < n; t++) 0 === t ? (this.m_oEdgePoints
  31010. .top.x = e[t][0], this.m_oEdgePoints.top.y = e[t][1], this
  31011. .m_oEdgePoints.left.x = e[t][0], this.m_oEdgePoints.left.y = e[
  31012. t][1], this.m_oEdgePoints.right.x = e[t][0], this
  31013. .m_oEdgePoints.right.y = e[t][1], this.m_oEdgePoints.bottom.x =
  31014. e[t][0], this.m_oEdgePoints.bottom.y = e[t][1]) : (e[t][1] <
  31015. this.m_oEdgePoints.top.y && (this.m_oEdgePoints.top.x = e[t][0],
  31016. this.m_oEdgePoints.top.y = e[t][1]), e[t][0] > this
  31017. .m_oEdgePoints.right.x && (this.m_oEdgePoints.right.x = e[t][0],
  31018. this.m_oEdgePoints.right.y = e[t][1]), e[t][1] > this
  31019. .m_oEdgePoints.bottom.y && (this.m_oEdgePoints.bottom.x = e[t][
  31020. 0
  31021. ], this.m_oEdgePoints.bottom.y = e[t][1]), e[t][0] < this
  31022. .m_oEdgePoints.left.x && (this.m_oEdgePoints.left.x = e[t][0],
  31023. this.m_oEdgePoints.left.y = e[t][1]))
  31024. }
  31025. }]), d(S, n = L), i(S, [{
  31026. key: "setPointInfo",
  31027. value: function(e) {
  31028. if (null != e) {
  31029. for (var t = e[0][0], n = e[0][1], i = e[0][0], r = e[0][1], a = 0,
  31030. s = e.length; a < s; a++) t > e[a][0] && (t = e[a][0]), n >
  31031. e[a][1] && (n = e[a][1]), i < e[a][0] && (i = e[a][0]), r < e[a]
  31032. [1] && (r = e[a][1]);
  31033. this.m_aPoint = [
  31034. [t, n],
  31035. [i, n],
  31036. [i, r],
  31037. [t, r]
  31038. ]
  31039. }
  31040. }
  31041. }, {
  31042. key: "draw",
  31043. value: function() {
  31044. m.oContext.fillStyle = this.m_szFillColor, m.oContext.strokeStyle = this
  31045. .m_szDrawColor;
  31046. var e = this.m_aPoint[0][0],
  31047. t = this.m_aPoint[0][1],
  31048. n = this.m_aPoint[2][0] - e,
  31049. i = this.m_aPoint[2][1] - t;
  31050. if (m.oContext.globalAlpha = this.m_iTranslucent, m.oContext.fillRect(e,
  31051. t, n, i), m.oContext.globalAlpha = 1, m.oContext.fillText(this
  31052. .m_szTips, (e + this.m_aPoint[2][0]) / 2, (t + this.m_aPoint[2][
  31053. 1
  31054. ]) / 2), this.m_bChoosed) {
  31055. var r = Math.round(n / 2),
  31056. a = Math.round(i / 2);
  31057. if (0 === this.m_iEditType)
  31058. for (var s = [e, e + r, e + n, e, e + n, e, e + r, e + n], o = [
  31059. t, t, t, t + a, t + a, t + i, t + i, t + i
  31060. ], u = 0; u < 8; u++) m.oContext.beginPath(), m.oContext
  31061. .arc(s[u], o[u], 3, 0, 360, !1), m.oContext.fillStyle = this
  31062. .m_szDrawColor, m.oContext.closePath(), m.oContext.fill()
  31063. }
  31064. m.oContext.strokeRect(e, t, n, i)
  31065. }
  31066. }, {
  31067. key: "stretch",
  31068. value: function(e, t) {
  31069. 0 === this.m_iEditType && (0 === this.m_iIndexChoosePoint ? e < this
  31070. .m_aPoint[2][0] && t < this.m_aPoint[2][1] && (this.m_aPoint[0][
  31071. 0
  31072. ] = e, this.m_aPoint[0][1] = t, this.m_aPoint[3][0] = e,
  31073. this.m_aPoint[1][1] = t) : 1 === this.m_iIndexChoosePoint ?
  31074. t < this.m_aPoint[2][1] && (this.m_aPoint[0][1] = t, this
  31075. .m_aPoint[1][1] = t) : 2 === this.m_iIndexChoosePoint ? e >
  31076. this.m_aPoint[3][0] && t < this.m_aPoint[3][1] && (this
  31077. .m_aPoint[1][0] = e, this.m_aPoint[1][1] = t, this.m_aPoint[
  31078. 2][0] = e, this.m_aPoint[0][1] = t) : 3 === this
  31079. .m_iIndexChoosePoint ? e < this.m_aPoint[2][0] && (this
  31080. .m_aPoint[0][0] = e, this.m_aPoint[3][0] = e) : 4 === this
  31081. .m_iIndexChoosePoint ? e > this.m_aPoint[0][0] && (this
  31082. .m_aPoint[1][0] = e, this.m_aPoint[2][0] = e) : 5 === this
  31083. .m_iIndexChoosePoint ? e < this.m_aPoint[1][0] && t > this
  31084. .m_aPoint[1][1] && (this.m_aPoint[3][0] = e, this.m_aPoint[3][
  31085. 1
  31086. ] = t, this.m_aPoint[0][0] = e, this.m_aPoint[2][1] = t) :
  31087. 6 === this.m_iIndexChoosePoint ? t > this.m_aPoint[1][1] && (
  31088. this.m_aPoint[2][1] = t, this.m_aPoint[3][1] = t) : 7 ===
  31089. this.m_iIndexChoosePoint && e > this.m_aPoint[0][0] && t > this
  31090. .m_aPoint[0][1] && (this.m_aPoint[2][0] = e, this.m_aPoint[2][
  31091. 1
  31092. ] = t, this.m_aPoint[1][0] = e, this.m_aPoint[3][1] = t),
  31093. v())
  31094. }
  31095. }, {
  31096. key: "move",
  31097. value: function(e) {
  31098. v(), this.m_bChoosed = !0;
  31099. var t = e[0][0],
  31100. n = e[0][1],
  31101. i = e[1][0],
  31102. e = e[1][1];
  31103. this.setPointInfo([
  31104. [t, n],
  31105. [i, n],
  31106. [i, e],
  31107. [t, e]
  31108. ]), this.draw()
  31109. }
  31110. }, {
  31111. key: "inArc",
  31112. value: function(e, t, n) {
  31113. for (var i = this.m_aPoint[0][0], r = this.m_aPoint[0][1], a = this
  31114. .m_aPoint[2][0] - i, s = this.m_aPoint[2][1] - r, o = Math
  31115. .round(a / 2), u = Math.round(s / 2), d = [i, i + o, i + a, i,
  31116. i + a, i, i + o, i + a
  31117. ], l = [r, r, r, r + u, r + u, r + s, r + s, r + s], h = 0; h <
  31118. 8; h++)
  31119. if (Math.sqrt((e - d[h]) * (e - d[h]) + (t - l[h]) * (t - l[h])) <
  31120. n) return this.m_iIndexChoosePoint = h, !0;
  31121. return !1
  31122. }
  31123. }]), h = S, d(k, n), i(k, [{
  31124. key: "draw",
  31125. value: function() {
  31126. var e, t, n, i;
  31127. "true" === this.m_szEnabled && (e = this.m_aPoint[0][0], t = this
  31128. .m_aPoint[0][1], n = this.m_aPoint[2][0] - e, i = this.m_aPoint[
  31129. 2][1] - t, m.oContext.beginPath(), m.oContext.strokeStyle =
  31130. this.m_szDrawColor, m.oContext.globalAlpha = 1, m.oContext.rect(
  31131. e, t, n, i), m.oContext.font = "15px serif", m.oContext
  31132. .strokeText(this.m_szText, e, t + 15), m.oContext.stroke())
  31133. }
  31134. }, {
  31135. key: "drag",
  31136. value: function(e, t) {
  31137. var n = this.m_aPoint.length,
  31138. i = 0;
  31139. if ("0" === this.m_szAlignment) {
  31140. for (i = 0; i < n; i++)
  31141. if (this.m_aPoint[i][1] + t - this.m_iDriftStartY > m
  31142. .m_iCanvasHeight || this.m_aPoint[i][0] + e - this
  31143. .m_iDriftStartX < 0 || this.m_aPoint[i][1] + t - this
  31144. .m_iDriftStartY < 0) return this.m_iDriftStartX = e, void(
  31145. this.m_iDriftStartY = t);
  31146. for (i = 0; i < n; i++) this.m_aPoint[i][0] = this.m_aPoint[i][0] +
  31147. e - this.m_iDriftStartX, this.m_aPoint[i][1] = this.m_aPoint[i][
  31148. 1
  31149. ] + t - this.m_iDriftStartY
  31150. } else if ("1" === this.m_szAlignment || "2" === this.m_szAlignment) {
  31151. for (i = 0; i < n; i++)
  31152. if (this.m_aPoint[i][1] + t - this.m_iDriftStartY > m
  31153. .m_iCanvasHeight || this.m_aPoint[i][1] + t - this
  31154. .m_iDriftStartY < 0) return this.m_iDriftStartX = e, void(
  31155. this.m_iDriftStartY = t);
  31156. for (i = 0; i < n; i++) this.m_aPoint[i][1] = this.m_aPoint[i][1] +
  31157. t - this.m_iDriftStartY
  31158. }
  31159. this.m_iDriftStartX = e, this.m_iDriftStartY = t, this.setEdgePoints(
  31160. this.m_aPoint), v()
  31161. }
  31162. }, {
  31163. key: "stretch",
  31164. value: function() {}
  31165. }]), c = k, d(b, n), i(b, [{
  31166. key: "draw",
  31167. value: function() {
  31168. for (var e = m.m_iCanvasWidth / this.m_iGridColNum, t = m
  31169. .m_iCanvasHeight / this.m_iGridRowNum, n = "", i = 0; i < this
  31170. .m_iGridRowNum; i++) {
  31171. for (var r = this.m_szGridMap.substring(6 * i, 6 * i + 6), a =
  31172. parseInt("f" + r, 16).toString(2).split("").slice(4), s =
  31173. "", o = 0; o < this.m_iGridColNum; o++) {
  31174. var u = "",
  31175. u = "1" === a[o] ? (m.oContext.strokeStyle = this
  31176. .m_szDrawColor, m.oContext.globalAlpha = 1, m.oContext
  31177. .strokeRect(e * o, t * i, e, t), "1") : "0";
  31178. this.m_aAddGridMap.length && 1 === this.m_aAddGridMap[i][o] && (
  31179. m.oContext.strokeStyle = this.m_szDrawColor, m.oContext
  31180. .strokeRect(e * o, t * i, e, t), u = "1"), s += u
  31181. }
  31182. n += parseInt("1111" + s + "00", 2).toString(16).substring(1)
  31183. }
  31184. this.m_szGridMap = n
  31185. }
  31186. }, {
  31187. key: "move",
  31188. value: function(e, t, n, i) {
  31189. for (var r = m.m_iCanvasWidth / this.m_iGridColNum, a = m
  31190. .m_iCanvasHeight / this.m_iGridRowNum, s = Math.floor(e / r),
  31191. o = Math.floor(t / a), u = Math.floor(Math.abs(n - e) / r), d =
  31192. Math.floor(Math.abs(i - t) / a), l = 1, h = 1, l = 0 < n - e ?
  31193. 1 : -1, h = 0 < i - t ? 1 : -1, c = [], _ = 0; _ < this
  31194. .m_iGridRowNum; _++) {
  31195. c[_] = [];
  31196. for (var f = 0; f < this.m_iGridColNum; f++) c[_][f] = 1 === l ?
  31197. 1 === h ? o <= _ && _ <= o + d && s <= f && f <= s + u ? 1 : 0 :
  31198. _ <= o && o - d <= _ && s <= f && f <= s + u ? 1 : 0 : 1 === h ?
  31199. o <= _ && _ <= o + d && f <= s && s - u <= f ? 1 : 0 : _ <= o &&
  31200. o - d <= _ && f <= s && s - u <= f ? 1 : 0
  31201. }
  31202. this.m_aAddGridMap = c, this.draw()
  31203. }
  31204. }]), _ = b, d(w, n), i(w, [{
  31205. key: "draw",
  31206. value: function() {
  31207. 0 === this.m_iLineType ? this.drawNormalLine() : 1 === this
  31208. .m_iLineType ? this.drawArrowLine() : 3 === this.m_iLineType ? this
  31209. .drawCrossLine() : 4 === this.m_iLineType && this.drawLineCount()
  31210. }
  31211. }, {
  31212. key: "drawNormalLine",
  31213. value: function() {
  31214. if (m.oContext.globalAlpha = 1, 0 < this.m_aPoint.length) {
  31215. m.oContext.beginPath(), m.oContext.strokeStyle = this.m_szDrawColor,
  31216. m.oContext.lineWidth = 2, m.oContext.moveTo(this.m_aPoint[0][0],
  31217. this.m_aPoint[0][1]);
  31218. for (var e = 1, t = this.m_aPoint.length; e < t; e++) m.oContext
  31219. .lineTo(this.m_aPoint[e][0], this.m_aPoint[e][1]);
  31220. if (m.oContext.stroke(), this.m_bChoosed)
  31221. for (var n = 0, i = this.m_aPoint.length; n < i; n++) m.oContext
  31222. .beginPath(), m.oContext.fillStyle = this.m_szDrawColor, m
  31223. .oContext.arc(this.m_aPoint[n][0], this.m_aPoint[n][1], 3,
  31224. 0, 2 * Math.PI, !0), m.oContext.closePath(), m.oContext
  31225. .fill();
  31226. "" !== this.m_szTips && (m.oContext.strokeStyle = this
  31227. .m_szDrawColor, m.oContext.fillText(this.m_szTips, this
  31228. .m_aPoint[0][0] + 10, this.m_aPoint[0][1] + 4))
  31229. }
  31230. }
  31231. }, {
  31232. key: "drawArrowLine",
  31233. value: function(e, t, n, i, r, a, s, o) {
  31234. a = void 0 !== a ? a : 30, s = void 0 !== s ? s : 10, o = void 0 !== o ?
  31235. o : 1;
  31236. var u = 180 * Math.atan2(n - r, t - i) / Math.PI,
  31237. d = (u + a) * Math.PI / 180,
  31238. l = (u - a) * Math.PI / 180,
  31239. u = s * Math.cos(d),
  31240. a = s * Math.sin(d),
  31241. d = s * Math.cos(l),
  31242. l = s * Math.sin(l);
  31243. m.oContext.save(), m.oContext.beginPath(), m.oContext.moveTo(t - u, n -
  31244. a), m.oContext.lineTo(t, n), m.oContext.lineTo(t - d, n - l), m
  31245. .oContext.moveTo(t, n), m.oContext.lineTo(i, r), 1 === e && (m
  31246. .oContext.moveTo(i + u, r + a), m.oContext.lineTo(i, r), m
  31247. .oContext.lineTo(i + d, r + l)), m.oContext.strokeStyle = this
  31248. .m_szDrawColor, m.oContext.lineWidth = o, m.oContext.stroke(), m
  31249. .oContext.restore()
  31250. }
  31251. }, {
  31252. key: "drawCrossLine",
  31253. value: function() {
  31254. this.drawNormalLine();
  31255. var e = (this.m_aPoint[0][0] + this.m_aPoint[1][0]) / 2,
  31256. t = (this.m_aPoint[0][1] + this.m_aPoint[1][1]) / 2,
  31257. n = 180 * Math.atan2(t - this.m_aPoint[0][1], e - this.m_aPoint[0][
  31258. 0
  31259. ]) / Math.PI,
  31260. i = (90 + n) * Math.PI / 180,
  31261. r = (n - 90) * Math.PI / 180,
  31262. a = 25 * Math.cos(i),
  31263. s = 25 * Math.sin(i),
  31264. o = 25 * Math.cos(r),
  31265. n = 25 * Math.sin(r),
  31266. i = 0,
  31267. r = 0,
  31268. i = e - a,
  31269. r = t - s,
  31270. a = 0,
  31271. s = 0,
  31272. s = 0 === this.m_iDirection ? (a = -10, -15) : 1 === this
  31273. .m_iDirection ? a = 10 : (a = 10, -15);
  31274. 0 !== this.m_iDirection && this.drawArrowLine(0, i, r, e, t), m.oContext
  31275. .strokeStyle = this.m_szDrawColor, m.oContext.font = "8px", m
  31276. .oContext.strokeText("A", i + a, r + 4), i = e - o, r = t - n, 1 !==
  31277. this.m_iDirection && this.drawArrowLine(0, i, r, e, t), m.oContext
  31278. .strokeStyle = this.m_szDrawColor, m.oContext.font = "8px", m
  31279. .oContext.strokeText("B", i + s, r + 4)
  31280. }
  31281. }, {
  31282. key: "drawLineCount",
  31283. value: function() {
  31284. this.drawNormalLine();
  31285. var e = (this.m_aPoint[0][0] + this.m_aPoint[1][0]) / 2,
  31286. t = (this.m_aPoint[0][1] + this.m_aPoint[1][1]) / 2,
  31287. n = 180 * Math.atan2(t - this.m_aPoint[0][1], e - this.m_aPoint[0][
  31288. 0
  31289. ]) / Math.PI,
  31290. i = (90 + n) * Math.PI / 180,
  31291. r = (n - 90) * Math.PI / 180,
  31292. a = 25 * Math.cos(i),
  31293. s = 25 * Math.sin(i),
  31294. o = 25 * Math.cos(r),
  31295. n = 25 * Math.sin(r),
  31296. i = 0,
  31297. r = 0,
  31298. i = e - a,
  31299. r = t - s;
  31300. 1 === this.m_iArrowType ? this.drawArrowLine(0, i = e - o, r = t - n, e,
  31301. t) : 0 === this.m_iArrowType && this.drawArrowLine(0, i, r, e,
  31302. t), this.m_aCrossArrowPoint = [
  31303. [e, t],
  31304. [i, r]
  31305. ]
  31306. }
  31307. }, {
  31308. key: "inShape",
  31309. value: function(e, t) {
  31310. for (var n = !1, i = 0, r = this.m_aPoint.length - 1; i < r; i++) {
  31311. var a = Math.sqrt((this.m_aPoint[i + 1][0] - this.m_aPoint[i][0]) *
  31312. (this.m_aPoint[i + 1][0] - this.m_aPoint[i][0]) + (this
  31313. .m_aPoint[i + 1][1] - this.m_aPoint[i][1]) * (this
  31314. .m_aPoint[i + 1][1] - this.m_aPoint[i][1]));
  31315. Math.sqrt((e - this.m_aPoint[i][0]) * (e - this.m_aPoint[i][0]) + (
  31316. t - this.m_aPoint[i][1]) * (t - this.m_aPoint[i][1])) + Math
  31317. .sqrt((e - this.m_aPoint[i + 1][0]) * (e - this.m_aPoint[i + 1][
  31318. 0
  31319. ]) + (t - this.m_aPoint[i + 1][1]) * (t - this.m_aPoint[i +
  31320. 1][1])) - a < 1 && (n = !0)
  31321. }
  31322. return n
  31323. }
  31324. }]), f = w, d(D, n), i(D, [{
  31325. key: "setPointInfo",
  31326. value: function(e) {
  31327. if (null != e) {
  31328. if (0 === this.m_iPolygonType) {
  31329. for (var t = e[0][0], n = e[0][1], i = e[0][0], r = e[0][1], a =
  31330. 0, s = e.length; a < s; a++) t > e[a][0] && (t = e[a][
  31331. 0
  31332. ]), n > e[a][1] && (n = e[a][1]), i < e[a][0] && (i =
  31333. e[a][0]), r < e[a][1] && (r = e[a][1]);
  31334. this.m_aPoint = [
  31335. [t, n],
  31336. [i, n],
  31337. [i, r],
  31338. [t, r]
  31339. ]
  31340. } else this.m_iPolygonType, this.m_aPoint = e;
  31341. this.setEdgePoints(e)
  31342. }
  31343. }
  31344. }, {
  31345. key: "draw",
  31346. value: function() {
  31347. if (0 < this.m_aPoint.length) {
  31348. m.oContext.fillStyle = this.m_szFillColor, m.oContext.strokeStyle =
  31349. this.m_szDrawColor, m.oContext.globalAlpha = 1;
  31350. var e = 0,
  31351. t = 0;
  31352. if (this.m_bChoosed)
  31353. for (e = 0, t = this.m_aPoint.length; e < t; e++) m.oContext
  31354. .beginPath(), m.oContext.arc(this.m_aPoint[e][0], this
  31355. .m_aPoint[e][1], 3, 0, 360, !1), m.oContext.fillStyle =
  31356. this.m_szDrawColor, m.oContext.closePath(), m.oContext
  31357. .fill();
  31358. for (m.oContext.beginPath(), m.oContext.moveTo(this.m_aPoint[0][0],
  31359. this.m_aPoint[0][1]), e = 0, t = this.m_aPoint.length; e <
  31360. t; e++) 0 !== e && m.oContext.lineTo(this.m_aPoint[e][0], this
  31361. .m_aPoint[e][1]);
  31362. m.oContext.stroke(), this.m_bClosed && (m.oContext.fillText(this
  31363. .m_szTips, (this.m_oEdgePoints.left.x + this
  31364. .m_oEdgePoints.right.x) / 2, (this.m_oEdgePoints.top
  31365. .y + this.m_oEdgePoints.bottom.y) / 2), m.oContext
  31366. .closePath(), m.oContext.stroke(), m.oContext.globalAlpha =
  31367. this.m_iTranslucent, m.oContext.fill())
  31368. }
  31369. }
  31370. }, {
  31371. key: "move",
  31372. value: function(e, t, n, i) {
  31373. if (1 === this.m_iPolygonType) {
  31374. if (this.m_aPoint.length < this.m_iMaxPointNum && 0 < this.m_aPoint
  31375. .length) {
  31376. m.oContext.fillStyle = this.m_szFillColor, m.oContext
  31377. .strokeStyle = this.m_szDrawColor, m.oContext.globalAlpha =
  31378. 1;
  31379. for (var r = 0, a = 0, r = 0, a = this.m_aPoint.length; r <
  31380. a; r++) m.oContext.beginPath(), m.oContext.arc(this
  31381. .m_aPoint[r][0], this.m_aPoint[r][1], 3, 0, 360, !1), m
  31382. .oContext.fillStyle = this.m_szDrawColor, m.oContext
  31383. .closePath(), m.oContext.fill();
  31384. for (m.oContext.beginPath(), m.oContext.moveTo(this.m_aPoint[0][
  31385. 0
  31386. ], this.m_aPoint[0][1]), r = 0, a = this.m_aPoint
  31387. .length; r < a; r++) 0 !== r && m.oContext.lineTo(this
  31388. .m_aPoint[r][0], this.m_aPoint[r][1]);
  31389. m.oContext.lineTo(e, t), m.oContext.closePath(), m.oContext
  31390. .stroke()
  31391. }
  31392. } else 0 === this.m_iPolygonType && (this.m_bChoosed = !0, this
  31393. .setPointInfo([
  31394. [n, i],
  31395. [e, i],
  31396. [e, t],
  31397. [n, t]
  31398. ]), this.draw())
  31399. }
  31400. }, {
  31401. key: "stretch",
  31402. value: function(e, t) {
  31403. 0 === this.m_iEditType && (1 === this.m_iPolygonType ? -1 !== this
  31404. .m_iIndexChoosePoint && (this.m_aPoint[this.m_iIndexChoosePoint]
  31405. [0] = e, this.m_aPoint[this.m_iIndexChoosePoint][1] = t) :
  31406. 0 === this.m_iIndexChoosePoint ? e < this.m_aPoint[2][0] && t <
  31407. this.m_aPoint[2][1] && (this.m_aPoint[0][0] = e, this.m_aPoint[
  31408. 0][1] = t, this.m_aPoint[3][0] = e, this.m_aPoint[1][
  31409. 1
  31410. ] = t) : 1 === this.m_iIndexChoosePoint ? e > this
  31411. .m_aPoint[3][0] && t < this.m_aPoint[3][1] && (this.m_aPoint[1][
  31412. 0
  31413. ] = e, this.m_aPoint[1][1] = t, this.m_aPoint[2][0] = e,
  31414. this.m_aPoint[0][1] = t) : 2 === this.m_iIndexChoosePoint ?
  31415. e > this.m_aPoint[0][0] && t > this.m_aPoint[0][1] && (this
  31416. .m_aPoint[2][0] = e, this.m_aPoint[2][1] = t, this.m_aPoint[
  31417. 1][0] = e, this.m_aPoint[3][1] = t) : 3 === this
  31418. .m_iIndexChoosePoint && e < this.m_aPoint[1][0] && t > this
  31419. .m_aPoint[1][1] && (this.m_aPoint[3][0] = e, this.m_aPoint[3][
  31420. 1
  31421. ] = t, this.m_aPoint[0][0] = e, this.m_aPoint[2][1] = t),
  31422. this.setPointInfo(this.m_aPoint), v())
  31423. }
  31424. }]), p = D, d(T, n), i(T, [{
  31425. key: "draw",
  31426. value: function() {
  31427. m.oContext.beginPath(), m.oContext.fillStyle = this.m_szDrawColor, m
  31428. .oContext.globalAlpha = 1, m.oContext.arc(this.m_aPoint[0][0], this
  31429. .m_aPoint[0][1], 10, 0, 2 * Math.PI, !0), m.oContext
  31430. .closePath(), m.oContext.fill()
  31431. }
  31432. }, {
  31433. key: "drag",
  31434. value: function() {}
  31435. }, {
  31436. key: "stretch",
  31437. value: function() {}
  31438. }]), y = T, i(E, [{
  31439. key: "setDrawMutiShapeOneTime",
  31440. value: function(e) {
  31441. this.bDrawShapeMultiOneTime = e
  31442. }
  31443. }, {
  31444. key: "setMaxShapeSupport",
  31445. value: function(e) {
  31446. this.iMaxShapeNumSupport = e
  31447. }
  31448. }, {
  31449. key: "getMaxShapeSupport",
  31450. value: function() {
  31451. return this.iMaxShapeNumSupport
  31452. }
  31453. }, {
  31454. key: "setDrawStatus",
  31455. value: function(e, t) {
  31456. this.bDrawStatus = e, t && e && (this.oEventCallback = t), e || (this
  31457. .oEventCallback = null)
  31458. }
  31459. }, {
  31460. key: "setShapeType",
  31461. value: function(e) {
  31462. this.szShapeType = e, v()
  31463. }
  31464. }, {
  31465. key: "setCurrentShapeInfo",
  31466. value: function(e) {
  31467. this.oCurrentShapeInfo = e || {
  31468. szId: "",
  31469. szTips: "",
  31470. iMinClosed: 3,
  31471. iMaxPointNum: 11,
  31472. iPolygonType: 1,
  31473. iRedrawMode: 0
  31474. }
  31475. }
  31476. }, {
  31477. key: "getShapeType",
  31478. value: function() {
  31479. return this.szShapeType
  31480. }
  31481. }, {
  31482. key: "getAllShapesInfo",
  31483. value: function() {
  31484. for (var e = [], t = 0, n = this.aShapes.length; t < n; t++) "Grid" ===
  31485. this.aShapes[t].m_szType ? e.push({
  31486. szType: this.aShapes[t].m_szType,
  31487. szGridMap: this.aShapes[t].m_szGridMap,
  31488. iGridColNum: this.aShapes[t].m_iGridColNum,
  31489. iGridRowNum: this.aShapes[t].m_iGridRowNum
  31490. }) : "RectOSD" === this.aShapes[t].m_szType ? e.push({
  31491. szType: this.aShapes[t].m_szType,
  31492. szText: this.aShapes[t].m_szText,
  31493. szEnabled: this.aShapes[t].m_szEnabled,
  31494. szOSDType: this.aShapes[t].m_szOSDType,
  31495. iPositionX: this.aShapes[t].m_aPoint[0][0],
  31496. iPositionY: this.aShapes[t].m_aPoint[0][1],
  31497. szDateStyle: this.aShapes[t].m_szDateStyle,
  31498. szClockType: this.aShapes[t].m_szClockType,
  31499. szDisplayWeek: this.aShapes[t].m_szDisplayWeek,
  31500. szId: this.aShapes[t].m_szId,
  31501. szAlignment: this.aShapes[t].m_szAlignment
  31502. }) : e.push({
  31503. szType: this.aShapes[t].m_szType,
  31504. aPoint: this.aShapes[t].m_aPoint,
  31505. szId: this.aShapes[t].m_szId,
  31506. bChoosed: this.aShapes[t].m_bChoosed
  31507. });
  31508. return e
  31509. }
  31510. }, {
  31511. key: "deleteRepeatPolyonById",
  31512. value: function(e) {
  31513. var t = this.getAllShapesInfo(),
  31514. n = t.length;
  31515. if (0 < n)
  31516. for (var i = 0; i < n; i++) "Polygon" === t[i].szType && t[i]
  31517. .szId === e && this.deleteShape(i)
  31518. }
  31519. }, {
  31520. key: "getShapesInfoByType",
  31521. value: function(e) {
  31522. for (var t = [], n = 0, i = this.aShapes.length; n < i; n++) this
  31523. .aShapes[n].m_szType === e && ("Grid" === this.aShapes[n].m_szType ?
  31524. t.push({
  31525. szType: this.aShapes[n].m_szType,
  31526. szGridMap: this.aShapes[n].m_szGridMap,
  31527. iGridColNum: this.aShapes[n].m_iGridColNum,
  31528. iGridRowNum: this.aShapes[n].m_iGridRowNum
  31529. }) : "RectOSD" === this.aShapes[n].m_szType ? t.push({
  31530. szType: this.aShapes[n].m_szType,
  31531. szText: this.aShapes[n].m_szText,
  31532. szEnabled: this.aShapes[n].m_szEnabled,
  31533. szOSDType: this.aShapes[n].m_szOSDType,
  31534. iPositionX: this.aShapes[n].m_aPoint[0][0],
  31535. iPositionY: this.aShapes[n].m_aPoint[0][1],
  31536. szDateStyle: this.aShapes[n].m_szDateStyle,
  31537. szClockType: this.aShapes[n].m_szClockType,
  31538. szDisplayWeek: this.aShapes[n].m_szDisplayWeek,
  31539. szId: this.aShapes[n].m_szId,
  31540. szAlignment: this.aShapes[n].m_szAlignment
  31541. }) : "Polygon" === e ? t.push({
  31542. szType: this.aShapes[n].m_szType,
  31543. szId: this.aShapes[n].m_szId,
  31544. iPolygonType: this.aShapes[n].m_iPolygonType,
  31545. iMinClosed: this.aShapes[n].m_iMinClosed,
  31546. iMaxPointNum: this.aShapes[n].m_iMaxPointNum,
  31547. iEditType: this.aShapes[n].m_iEditType,
  31548. aPoint: this.aShapes[n].m_aPoint,
  31549. bClosed: this.aShapes[n].m_bClosed,
  31550. szTips: this.aShapes[n].m_szTips,
  31551. szDrawColor: this.aShapes[n].m_szDrawColor,
  31552. szFillColor: this.aShapes[n].m_szFillColor,
  31553. iTranslucent: this.aShapes[n].m_iTranslucent
  31554. }) : "Line" === e ? t.push({
  31555. szType: this.aShapes[n].m_szType,
  31556. szId: this.aShapes[n].m_szId,
  31557. aPoint: this.aShapes[n].m_aPoint,
  31558. szTips: this.aShapes[n].m_szTips,
  31559. iLineType: this.aShapes[n].m_iLineType,
  31560. iDirection: this.aShapes[n].m_iDirection,
  31561. iArrowType: this.aShapes[n].m_iArrowType,
  31562. szDrawColor: this.aShapes[n].m_szDrawColor,
  31563. aCrossArrowPoint: this.aShapes[n].m_aCrossArrowPoint
  31564. }) : "Rect" === e ? t.push({
  31565. szType: this.aShapes[n].m_szType,
  31566. iEditType: this.aShapes[n].m_iEditType,
  31567. aPoint: this.aShapes[n].m_aPoint,
  31568. szTips: this.aShapes[n].m_szTips,
  31569. szDrawColor: this.aShapes[n].m_szDrawColor,
  31570. szFillColor: this.aShapes[n].m_szFillColor,
  31571. iTranslucent: this.aShapes[n].m_iTranslucent
  31572. }) : t.push({
  31573. szType: this.aShapes[n].m_szType,
  31574. aPoint: this.aShapes[n].m_aPoint
  31575. }));
  31576. return t
  31577. }
  31578. }, {
  31579. key: "setShapesInfoByType",
  31580. value: function(e, t) {
  31581. t = t || [];
  31582. var n = null;
  31583. if ("Rect" === e || "Polygon" === e || "Line" === e || "Point" === e)
  31584. for (var i = 0, r = t.length; i < r; i++) "Rect" === e ? ((n =
  31585. new h).m_iEditType = t[i].iEditType, n.m_szTips = t[i]
  31586. .szTips || "", n.m_szDrawColor = t[i].szDrawColor, n
  31587. .m_szFillColor = t[i].szFillColor, n.m_iTranslucent = t[i]
  31588. .iTranslucent, n.m_iRedrawMode = t[i].iRedrawMode) :
  31589. "Polygon" === e ? (n = new p, 0 === t[i].iPolygonType ? n
  31590. .m_bClosed = !0 : n.m_bClosed = t[i].bClosed, n.m_szTips =
  31591. t[i].szTips || "", n.m_szId = t[i].szId || "", n
  31592. .m_iPolygonType = t[i].iPolygonType, n.m_iMinClosed = t[i]
  31593. .iMinClosed || 3, n.m_iMaxPointNum = t[i].iMaxPointNum ||
  31594. 11, n.m_iEditType = t[i].iEditType, n.m_szDrawColor = t[i]
  31595. .szDrawColor, n.m_szFillColor = t[i].szFillColor, n
  31596. .m_iTranslucent = t[i].iTranslucent, n.m_iRedrawMode = t[i]
  31597. .iRedrawMode) : "Line" === e ? ((n = new f).m_iLineType = t[
  31598. i].iLineType, n.m_szTips = t[i].szTips || "", n.m_szId =
  31599. t[i].szId, n.m_iDirection = t[i].iDirection, n
  31600. .m_iArrowType = t[i].iArrowType, n.m_szDrawColor = t[i]
  31601. .szDrawColor, n.setPointInfo(t[i].aPoint)) : "Point" ===
  31602. e && ((n = new y).m_szId = t[i].szId, n.m_szDrawColor = t[i]
  31603. .szDrawColor, n.setPointInfo(t[i].aPoint)), n.setPointInfo(
  31604. t[i].aPoint), 0 === i && (n.m_bChoosed = !0), g(n);
  31605. else "Grid" === e && ((n = new _).m_szGridMap = t[0].szGridMap || "", n
  31606. .m_iGridColNum = t[0].iGridColNum || 22, n.m_iGridRowNum = t[0]
  31607. .iGridRowNum || 18, g(n));
  31608. v()
  31609. }
  31610. }, {
  31611. key: "addOSDShape",
  31612. value: function(e, t, n, i, r) {
  31613. n || i || (i = n = 0), r = r || {};
  31614. t = new c(e, t), e = 10 * e.length;
  31615. t.m_szOSDType = r.szOSDType || "", t.m_szDateStyle = r.szDateStyle ||
  31616. "", t.m_szClockType = r.szClockType || "", t.m_szDisplayWeek = r
  31617. .szDisplayWeek || "", t.m_szId = r.szId || "", t.m_szAlignment =
  31618. "" + r.szAlignment || "0", "0" === t.m_szAlignment ? t.m_aPoint = [
  31619. [n, i],
  31620. [e + n, i],
  31621. [e + n, i + 20],
  31622. [n, i + 20]
  31623. ] : "1" === t.m_szAlignment ? t.m_aPoint = [
  31624. [0, i],
  31625. [e, i],
  31626. [e, i + 20],
  31627. [0, i + 20]
  31628. ] : "2" === t.m_szAlignment ? t.m_aPoint = [
  31629. [this.m_iCanvasWidth - e, i],
  31630. [this.m_iCanvasWidth, i],
  31631. [this.m_iCanvasWidth, i + 20],
  31632. [this.m_iCanvasWidth - e, i + 20]
  31633. ] : t.m_aPoint = [
  31634. [n, i],
  31635. [e + n, i],
  31636. [e + n, i + 20],
  31637. [n, i + 20]
  31638. ], g(t), v()
  31639. }
  31640. }, {
  31641. key: "selectShapeById",
  31642. value: function(e, t) {
  31643. for (var n = 0, i = m.aShapes.length; n < i; n++) e === m.aShapes[n]
  31644. .m_szType && (t === m.aShapes[n].m_szId ? m.aShapes[n]
  31645. .m_bChoosed = !0 : m.aShapes[n].m_bChoosed = !1);
  31646. v()
  31647. }
  31648. }, {
  31649. key: "setCanvasSize",
  31650. value: function(e, t) {
  31651. 0 < e && 0 < t && (this.m_iCanvasWidth = e, this.m_iCanvasHeight = t,
  31652. v())
  31653. }
  31654. }, {
  31655. key: "setDrawStyle",
  31656. value: function(e, t, n) {
  31657. this.oShapeStyle = {
  31658. szDrawColor: e,
  31659. szFillColor: t,
  31660. iTranslucent: n
  31661. }
  31662. }
  31663. }, {
  31664. key: "clearAllShape",
  31665. value: function() {
  31666. this.aShapes.length = 0, m.bPolygonDrawing = !1, v()
  31667. }
  31668. }, {
  31669. key: "clearShapeByType",
  31670. value: function(e) {
  31671. for (var t = this.aShapes.length; 0 < t; t--) this.aShapes[t - 1]
  31672. .m_szType === e && ("Grid" === e ? (this.aShapes[t - 1]
  31673. .m_szGridMap = "", this.aShapes[t - 1].m_aAddGridMap = []) :
  31674. this.aShapes.splice(t - 1, 1));
  31675. "Polygon" === e && (m.bPolygonDrawing = !1), v()
  31676. }
  31677. }, {
  31678. key: "deleteShape",
  31679. value: function(e) {
  31680. this.aShapes.length > e && this.aShapes.splice(e, 1), v()
  31681. }
  31682. }, {
  31683. key: "updateCanvas",
  31684. value: function(e) {
  31685. this.oCanvas = (0, o.default)("#" + e), this.oContext = this.oCanvas[0]
  31686. .getContext("2d"), this.m_iCanvasWidth = this.oCanvas.width(), this
  31687. .m_iCanvasHeight = this.oCanvas.height(), M()
  31688. }
  31689. }, {
  31690. key: "resizeCanvas",
  31691. value: function() {
  31692. this.m_iCanvasWidth = this.oCanvas.width(), this.m_iCanvasHeight = this
  31693. .oCanvas.height()
  31694. }
  31695. }, {
  31696. key: "canvasRedraw",
  31697. value: function() {
  31698. v()
  31699. }
  31700. }]), E);
  31701. function v() {
  31702. m.oContext.clearRect(0, 0, m.m_iCanvasWidth, m.m_iCanvasHeight);
  31703. for (var e = 0, t = m.aShapes.length; e < t; e++) m.aShapes[e].draw()
  31704. }
  31705. function g(e) {
  31706. m.aShapes.length < m.iMaxShapeNumSupport && m.aShapes.push(e)
  31707. }
  31708. function M() {
  31709. var r = !1,
  31710. a = 0,
  31711. s = 0,
  31712. o = "draw",
  31713. u = null;
  31714. function d() {
  31715. for (var e = -1, t = 0, n = m.aShapes.length; t < n; t++)
  31716. if (m.aShapes[t].m_bChoosed) {
  31717. e = t;
  31718. break
  31719. } return e
  31720. }
  31721. m.oCanvas[0].oncontextmenu = function() {
  31722. return !1
  31723. }, m.oCanvas[0].onselectstart = function() {
  31724. return !1
  31725. }, m.oCanvas.unbind(), m.oCanvas.bind("mousedown", function(e) {
  31726. if (m.oCanvas[0].id === e.target.id)
  31727. if (2 === e.button) m.bPolygonDrawing && u && u.m_aPoint.length >= u
  31728. .m_iMinClosed && (u.m_bClosed = !0, m.bPolygonDrawing = !1, u.setPointInfo(u
  31729. .m_aPoint), g(u), v(), r = !1, m.bDrawShapeMultiOneTime || (m
  31730. .bDrawStatus = !1), window.onDrawShapeEvent && window
  31731. .onDrawShapeEvent(u.m_szType, "onDrawEnd", u.m_szId));
  31732. else if (0 === e.button) {
  31733. if (a = e.offsetX, s = e.offsetY, o = "draw", !m.bPolygonDrawing) {
  31734. var t = d();
  31735. if ("stretch" !== (o = -1 !== t && m.aShapes[t].inArc(e.offsetX, e.offsetY,
  31736. 5) ? "stretch" : o))
  31737. for (var n = 0, i = m.aShapes.length; n < i; n++) m.aShapes[n].inShape(e
  31738. .offsetX, e.offsetY) ? (m.aShapes[n].m_bChoosed = !0, m.aShapes[
  31739. n].getMouseDownPoints(e.offsetX, e.offsetY), o = "drag",
  31740. window.onDrawShapeEvent && window.onDrawShapeEvent(m.aShapes[n]
  31741. .m_szType, "onChoose", m.aShapes[n].m_szId)) : m.aShapes[n]
  31742. .m_bChoosed = !1;
  31743. m.oCanvas[0].style.cursor = "drag" === o ? "move" : "default", "draw" ===
  31744. o && 1 === m.aShapes.length && 1 === m.aShapes[0].m_iRedrawMode && (m
  31745. .deleteRepeatPolyonById(m.aShapes[0].m_szId), m.bDrawStatus = !0), m
  31746. .bDrawStatus && !m.bDrawShapeMultiOneTime && (o = "draw")
  31747. }
  31748. if ("draw" === o && m.bDrawStatus) {
  31749. if (m.iMaxShapeNumSupport <= m.aShapes.length && "Grid" !== m.szShapeType &&
  31750. "Point" !== m.szShapeType) return;
  31751. "Rect" === m.szShapeType ? u = new h : "Grid" === m.szShapeType ? 0 === m
  31752. .aShapes.length && g(u = new _) : "Polygon" === m.szShapeType ? (m
  31753. .bPolygonDrawing || (m.bPolygonDrawing = !0, (u = new p).m_szId = m
  31754. .oCurrentShapeInfo.szId || "", u.m_szTips = m.oCurrentShapeInfo
  31755. .szTips || "", u.m_iMinClosed = m.oCurrentShapeInfo
  31756. .iMinClosed || 3, u.m_iMaxPointNum = m.oCurrentShapeInfo
  31757. .iMaxPointNum || 11, u.m_iPolygonType = m.oCurrentShapeInfo
  31758. .iPolygonType, u.m_szDrawColor = m.oCurrentShapeInfo
  31759. .szDrawColor, u.m_szFillColor = m.oCurrentShapeInfo.szFillColor,
  31760. u.m_iTranslucent = m.oCurrentShapeInfo.iTranslucent, u
  31761. .m_iRedrawMode = m.oCurrentShapeInfo.iRedrawMode), 1 === u
  31762. .m_iPolygonType && (u.addPoint(a, s), u.m_aPoint.length === u
  31763. .m_iMaxPointNum && (u.m_bClosed = !0, m.bPolygonDrawing = !1, g(
  31764. u), v(), r = !1, m.bDrawShapeMultiOneTime || (m
  31765. .bDrawStatus = !1), window.onDrawShapeEvent && window
  31766. .onDrawShapeEvent(u.m_szType, "onDrawEnd", u.m_szId)))) :
  31767. "Point" === m.szShapeType && (m.clearShapeByType("Point"), (u = new y)
  31768. .m_szId = m.oCurrentShapeInfo.szId || "", u.m_szDrawColor = m
  31769. .oCurrentShapeInfo.szDrawColor, u.setPointInfo([
  31770. [a, s]
  31771. ]), g(u), v())
  31772. }
  31773. r = !0
  31774. }
  31775. }), m.oCanvas.bind("mousemove", function(e) {
  31776. var t;
  31777. m.bPolygonDrawing ? m.bDrawStatus && r && ("Polygon" === m.szShapeType && 0 === u
  31778. .m_iPolygonType && (u.m_bClosed = !0), v(), u.move(e.offsetX, e.offsetY, a,
  31779. s)) : -1 < (t = d()) ? r && ("drag" === o ? (m.aShapes[t].drag(e
  31780. .offsetX, e.offsetY), window.onDrawShapeEvent && window
  31781. .onDrawShapeEvent(m.aShapes[t].m_szType, "onDrag", m.aShapes[t].m_szId)
  31782. ) : "stretch" === o && (m.aShapes[t].stretch(e.offsetX, e.offsetY),
  31783. window.onDrawShapeEvent && window.onDrawShapeEvent(m.aShapes[t]
  31784. .m_szType, "onStretch", m.aShapes[t].m_szId))) : m.bDrawStatus &&
  31785. r && ("Rect" === m.szShapeType ? u.move([
  31786. [a, s],
  31787. [e.offsetX, e.offsetY]
  31788. ]) : "Grid" === m.szShapeType && m.aShapes[0].move(a, s, e.offsetX, e
  31789. .offsetY))
  31790. }), m.oCanvas.bind("mouseup", function(e) {
  31791. var t;
  31792. m.oCanvas[0].style.cursor = "default", null != u && "draw" === o && ("Rect" === m
  31793. .szShapeType ? (2 < Math.abs(e.offsetX - a) && 2 < Math.abs(e.offsetY -
  31794. s) && (g(u), m.bDrawShapeMultiOneTime || (m.bDrawStatus = !1)), m
  31795. .oEventCallback && (t = {
  31796. startPos: [],
  31797. endPos: []
  31798. }, e.offsetX > a && e.offsetY > s ? (t.startPos = u.m_aPoint[0] || [
  31799. e.offsetX, e.offsetY
  31800. ], t.endPos = u.m_aPoint[2] || [e.offsetX, e.offsetY]) : (t
  31801. .startPos = u.m_aPoint[2] || [e.offsetX, e.offsetY], t.endPos =
  31802. u.m_aPoint[0] || [e.offsetX, e.offsetY]), m.oEventCallback && m
  31803. .oEventCallback(t), m.clearAllShape()), u = null) : "Polygon" === m
  31804. .szShapeType && 0 === u.m_iPolygonType && m.bPolygonDrawing && 2 < Math.abs(
  31805. e.offsetX - a) && 2 < Math.abs(e.offsetY - s) && (g(u), m
  31806. .bPolygonDrawing = !1, m.bDrawShapeMultiOneTime || (m.bDrawStatus = !1),
  31807. window.onDrawShapeEvent && window.onDrawShapeEvent(u.m_szType,
  31808. "onDrawEnd", u.m_szId))), r = !!m.bPolygonDrawing, m
  31809. .bPolygonDrawing || v()
  31810. }), m.oCanvas.bind("dblclick", function() {
  31811. m.bDrawStatus && "Grid" === m.szShapeType && (m.aShapes[0].m_szGridMap =
  31812. "fffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffcfffffc",
  31813. v())
  31814. }), m.oCanvas.bind("mouseout", function() {
  31815. m.oCanvas[0].style.cursor = "default", r = !!m.bPolygonDrawing
  31816. })
  31817. }
  31818. function L() {
  31819. l(this, L), this.m_szId = "", this.m_aPoint = [], this.m_bChoosed = !1, this.m_szDrawColor = m
  31820. .oShapeStyle.szDrawColor, this.m_szFillColor = m.oShapeStyle.szFillColor, this
  31821. .m_iTranslucent = m.oShapeStyle.iTranslucent, this.m_iIndexChoosePoint = -1, this
  31822. .m_iDriftStartX = 0, this.m_iDriftStartY = 0, this.m_oEdgePoints = {
  31823. top: {
  31824. x: 0,
  31825. y: 0
  31826. },
  31827. left: {
  31828. x: 0,
  31829. y: 0
  31830. },
  31831. right: {
  31832. x: 0,
  31833. y: 0
  31834. },
  31835. bottom: {
  31836. x: 0,
  31837. y: 0
  31838. }
  31839. }, this.m_szTips = "", this.m_iEditType = 0, this.m_iMinClosed = 3, this.m_iMaxPointNum =
  31840. 11, this.m_bClosed = !1, this.m_iRedrawMode = 0
  31841. }
  31842. function S() {
  31843. l(this, S);
  31844. var e = u(this, (S.__proto__ || Object.getPrototypeOf(S)).call(this));
  31845. return e.m_szType = "Rect", e
  31846. }
  31847. function k(e, t) {
  31848. l(this, k);
  31849. var n = u(this, (k.__proto__ || Object.getPrototypeOf(k)).call(this));
  31850. return n.m_szType = "RectOSD", n.m_szOSDType = "overlay-date", n.m_szText = e || "", n
  31851. .m_szEnabled = t || "", n.m_szDateStyle = "", n.m_szClockType = "", n.m_szDisplayWeek = "",
  31852. n.m_szId = "", n.m_szAlignment = "0", n
  31853. }
  31854. function b() {
  31855. l(this, b);
  31856. var e = u(this, (b.__proto__ || Object.getPrototypeOf(b)).call(this));
  31857. return e.m_szType = "Grid", e.m_iGridColNum = 22, e.m_iGridRowNum = 18, e.m_szGridMap = "", e
  31858. .m_aAddGridMap = [], e
  31859. }
  31860. function w() {
  31861. l(this, w);
  31862. var e = u(this, (w.__proto__ || Object.getPrototypeOf(w)).call(this));
  31863. return e.m_szType = "Line", e.m_iLineType = 0, e.m_iDirection = 0, e.m_iArrowType = 0, e
  31864. .m_aCrossArrowPoint = [], e
  31865. }
  31866. function D() {
  31867. l(this, D);
  31868. var e = u(this, (D.__proto__ || Object.getPrototypeOf(D)).call(this));
  31869. return e.m_szType = "Polygon", e.m_iPolygonType = 1, e
  31870. }
  31871. function T() {
  31872. l(this, T);
  31873. var e = u(this, (T.__proto__ || Object.getPrototypeOf(T)).call(this));
  31874. return e.m_szType = "Point", e.m_szId = "", e
  31875. }
  31876. function E(e) {
  31877. l(this, E), (m = this).oCanvas = (0, o.default)("#" + e), this.oContext = this.oCanvas[0]
  31878. .getContext("2d"), this.aShapes = [], this.bDrawStatus = !1, this.szShapeType = "Rect", this
  31879. .iMaxShapeNumSupport = 10, this.bDrawShapeMultiOneTime = !0, this.oCurrentShapeInfo = {},
  31880. this.oEventCallback = null, this.oShapeStyle = {
  31881. szDrawColor: "#ff0000",
  31882. szFillColor: "#343434",
  31883. iTranslucent: .7
  31884. }, this.bPolygonDrawing = !1, this.m_iCanvasWidth = this.oCanvas.width(), this
  31885. .m_iCanvasHeight = this.oCanvas.height(), this.m_iHorizontalResolution = 0, this
  31886. .m_iVerticalResolution = 0, this.m_szDisplayMode = "", this.m_szVideoFormat = "", M(), this
  31887. .aShapes.length = 0
  31888. }
  31889. t.ESCanvas = i
  31890. }, function(e, t, n) {
  31891. "use strict";
  31892. e.exports = n(291).default
  31893. }, function(e, t, n) {
  31894. "use strict";
  31895. Object.defineProperty(t, "__esModule", {
  31896. value: !0
  31897. });
  31898. var i = _(n(9)),
  31899. r = _(n(227)),
  31900. a = _(n(301)),
  31901. s = n(15),
  31902. o = _(n(317)),
  31903. u = _(n(333)),
  31904. d = _(n(39)),
  31905. l = n(234),
  31906. h = _(n(64)),
  31907. c = n(5);
  31908. function _(e) {
  31909. return e && e.__esModule ? e : {
  31910. default: e
  31911. }
  31912. }
  31913. r.default.install();
  31914. r = {
  31915. createPlayer: function(e, t) {
  31916. if (null == e || "object" !== (void 0 === e ? "undefined" : (0, i.default)(e)))
  31917. throw new c.InvalidArgumentException(
  31918. "MediaDataSource must be an javascript object!");
  31919. if (!e.hasOwnProperty("type")) throw new c.InvalidArgumentException(
  31920. "MediaDataSource must has type field to indicate video file type!");
  31921. return new("flv" !== e.type ? u : o).default(e, t)
  31922. },
  31923. isSupported: function() {
  31924. return a.default.supportMSEH264Playback()
  31925. },
  31926. getFeatureList: function() {
  31927. return a.default.getFeatureList()
  31928. }
  31929. };
  31930. r.BaseLoader = s.BaseLoader, r.LoaderStatus = s.LoaderStatus, r.LoaderErrors = s.LoaderErrors, r
  31931. .Events = d.default, r.ErrorTypes = l.ErrorTypes, r.ErrorDetails = l.ErrorDetails, r.FlvPlayer =
  31932. o.default, r.NativePlayer = u.default, r.LoggingControl = h.default, Object.defineProperty(r,
  31933. "version", {
  31934. enumerable: !0,
  31935. get: function() {
  31936. return "__VERSION__"
  31937. }
  31938. }), t.default = r
  31939. }, function(e, t, n) {
  31940. n(293), e.exports = n(3).Object.assign
  31941. }, function(e, t, n) {
  31942. var i = n(8);
  31943. i(i.S + i.F, "Object", {
  31944. assign: n(294)
  31945. })
  31946. }, function(e, t, n) {
  31947. "use strict";
  31948. var c = n(14),
  31949. _ = n(30),
  31950. f = n(59),
  31951. m = n(37),
  31952. p = n(24),
  31953. y = n(72),
  31954. r = Object.assign;
  31955. e.exports = !r || n(23)(function() {
  31956. var e = {},
  31957. t = {},
  31958. n = Symbol(),
  31959. i = "abcdefghijklmnopqrst";
  31960. return e[n] = 7, i.split("").forEach(function(e) {
  31961. t[e] = e
  31962. }), 7 != r({}, e)[n] || Object.keys(r({}, t)).join("") != i
  31963. }) ? function(e, t) {
  31964. for (var n = p(e), i = arguments.length, r = 1, a = f.f, s = m.f; r < i;)
  31965. for (var o, u = y(arguments[r++]), d = a ? _(u).concat(a(u)) : _(u), l = d.length, h =
  31966. 0; h < l;) o = d[h++], c && !s.call(u, o) || (n[o] = u[o]);
  31967. return n
  31968. } : r
  31969. }, function(e, t, n) {
  31970. n(296), e.exports = n(3).Object.setPrototypeOf
  31971. }, function(e, t, n) {
  31972. var i = n(8);
  31973. i(i.S, "Object", {
  31974. setPrototypeOf: n(297).set
  31975. })
  31976. }, function(e, t, r) {
  31977. function a(e, t) {
  31978. if (i(e), !n(t) && null !== t) throw TypeError(t + ": can't set as prototype!")
  31979. }
  31980. var n = r(16),
  31981. i = r(13);
  31982. e.exports = {
  31983. set: Object.setPrototypeOf || ("__proto__" in {} ? function(e, n, i) {
  31984. try {
  31985. (i = r(22)(Function.call, r(60).f(Object.prototype, "__proto__").set, 2))(e,
  31986. []), n = !(e instanceof Array)
  31987. } catch (e) {
  31988. n = !0
  31989. }
  31990. return function(e, t) {
  31991. return a(e, t), n ? e.__proto__ = t : i(e, t), e
  31992. }
  31993. }({}, !1) : void 0),
  31994. check: a
  31995. }
  31996. }, function(e, t, n) {
  31997. ! function(ie, re) {
  31998. /*!
  31999. * @overview es6-promise - a tiny implementation of Promises/A+.
  32000. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
  32001. * @license Licensed under MIT license
  32002. * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
  32003. * @version v4.2.8+1e68dce6
  32004. */
  32005. e.exports = function() {
  32006. "use strict";
  32007. function i(e) {
  32008. var t = typeof e;
  32009. return e !== null && (t === "object" || t === "function")
  32010. }
  32011. function u(e) {
  32012. return typeof e === "function"
  32013. }
  32014. var e = void 0;
  32015. if (Array.isArray) e = Array.isArray;
  32016. else e = function(e) {
  32017. return Object.prototype.toString.call(e) === "[object Array]"
  32018. };
  32019. var n = e,
  32020. r = 0,
  32021. t = void 0,
  32022. a = void 0,
  32023. s = function e(t, n) {
  32024. M[r] = t;
  32025. M[r + 1] = n;
  32026. r += 2;
  32027. if (r === 2)
  32028. if (a) a(L);
  32029. else k()
  32030. };
  32031. function o(e) {
  32032. a = e
  32033. }
  32034. function d(e) {
  32035. s = e
  32036. }
  32037. var l = typeof window !== "undefined" ? window : undefined,
  32038. h = l || {},
  32039. c = h.MutationObserver || h.WebKitMutationObserver,
  32040. _ = typeof self === "undefined" && typeof ie !== "undefined" && {}.toString.call(
  32041. ie) === "[object process]",
  32042. f = typeof Uint8ClampedArray !== "undefined" && typeof importScripts !==
  32043. "undefined" && typeof MessageChannel !== "undefined";
  32044. function m() {
  32045. return function() {
  32046. return ie.nextTick(L)
  32047. }
  32048. }
  32049. function p() {
  32050. if (typeof t !== "undefined") return function() {
  32051. t(L)
  32052. };
  32053. return g()
  32054. }
  32055. function y() {
  32056. var e = 0;
  32057. var t = new c(L);
  32058. var n = document.createTextNode("");
  32059. t.observe(n, {
  32060. characterData: true
  32061. });
  32062. return function() {
  32063. n.data = e = ++e % 2
  32064. }
  32065. }
  32066. function v() {
  32067. var e = new MessageChannel;
  32068. e.port1.onmessage = L;
  32069. return function() {
  32070. return e.port2.postMessage(0)
  32071. }
  32072. }
  32073. function g() {
  32074. var e = setTimeout;
  32075. return function() {
  32076. return e(L, 1)
  32077. }
  32078. }
  32079. var M = new Array(1e3);
  32080. function L() {
  32081. for (var e = 0; e < r; e += 2) {
  32082. var t = M[e];
  32083. var n = M[e + 1];
  32084. t(n);
  32085. M[e] = undefined;
  32086. M[e + 1] = undefined
  32087. }
  32088. r = 0
  32089. }
  32090. function S() {
  32091. try {
  32092. var e = Function("return this")().require("vertx");
  32093. t = e.runOnLoop || e.runOnContext;
  32094. return p()
  32095. } catch (e) {
  32096. return g()
  32097. }
  32098. }
  32099. var k = void 0;
  32100. if (_) k = m();
  32101. else if (c) k = y();
  32102. else if (f) k = v();
  32103. else if (l === undefined && "function" === "function") k = S();
  32104. else k = g();
  32105. function b(e, t) {
  32106. var n = this;
  32107. var i = new this.constructor(T);
  32108. if (i[D] === undefined) J(i);
  32109. var r = n._state;
  32110. if (r) {
  32111. var a = arguments[r - 1];
  32112. s(function() {
  32113. return z(r, i, a, n._result)
  32114. })
  32115. } else B(n, i, e, t);
  32116. return i
  32117. }
  32118. function w(e) {
  32119. var t = this;
  32120. if (e && typeof e === "object" && e.constructor === t) return e;
  32121. var n = new t(T);
  32122. W(n, e);
  32123. return n
  32124. }
  32125. var D = Math.random().toString(36).substring(2);
  32126. function T() {}
  32127. var E = void 0,
  32128. Y = 1,
  32129. P = 2;
  32130. function C() {
  32131. return new TypeError("You cannot resolve a promise with itself")
  32132. }
  32133. function A() {
  32134. return new TypeError("A promises callback cannot return that same promise.")
  32135. }
  32136. function R(e, t, n, i) {
  32137. try {
  32138. e.call(t, n, i)
  32139. } catch (e) {
  32140. return e
  32141. }
  32142. }
  32143. function x(e, i, r) {
  32144. s(function(t) {
  32145. var n = false;
  32146. var e = R(r, i, function(e) {
  32147. if (n) return;
  32148. n = true;
  32149. if (i !== e) W(t, e);
  32150. else j(t, e)
  32151. }, function(e) {
  32152. if (n) return;
  32153. n = true;
  32154. F(t, e)
  32155. }, "Settle: " + (t._label || " unknown promise"));
  32156. if (!n && e) {
  32157. n = true;
  32158. F(t, e)
  32159. }
  32160. }, e)
  32161. }
  32162. function O(t, e) {
  32163. if (e._state === Y) j(t, e._result);
  32164. else if (e._state === P) F(t, e._result);
  32165. else B(e, undefined, function(e) {
  32166. return W(t, e)
  32167. }, function(e) {
  32168. return F(t, e)
  32169. })
  32170. }
  32171. function I(e, t, n) {
  32172. if (t.constructor === e.constructor && n === b && t.constructor.resolve === w) O(e,
  32173. t);
  32174. else if (n === undefined) j(e, t);
  32175. else if (u(n)) x(e, t, n);
  32176. else j(e, t)
  32177. }
  32178. function W(t, e) {
  32179. if (t === e) F(t, C());
  32180. else if (i(e)) {
  32181. var n = void 0;
  32182. try {
  32183. n = e.then
  32184. } catch (e) {
  32185. F(t, e);
  32186. return
  32187. }
  32188. I(t, e, n)
  32189. } else j(t, e)
  32190. }
  32191. function H(e) {
  32192. if (e._onerror) e._onerror(e._result);
  32193. N(e)
  32194. }
  32195. function j(e, t) {
  32196. if (e._state !== E) return;
  32197. e._result = t;
  32198. e._state = Y;
  32199. if (e._subscribers.length !== 0) s(N, e)
  32200. }
  32201. function F(e, t) {
  32202. if (e._state !== E) return;
  32203. e._state = P;
  32204. e._result = t;
  32205. s(H, e)
  32206. }
  32207. function B(e, t, n, i) {
  32208. var r = e._subscribers;
  32209. var a = r.length;
  32210. e._onerror = null;
  32211. r[a] = t;
  32212. r[a + Y] = n;
  32213. r[a + P] = i;
  32214. if (a === 0 && e._state) s(N, e)
  32215. }
  32216. function N(e) {
  32217. var t = e._subscribers;
  32218. var n = e._state;
  32219. if (t.length === 0) return;
  32220. var i = void 0,
  32221. r = void 0,
  32222. a = e._result;
  32223. for (var s = 0; s < t.length; s += 3) {
  32224. i = t[s];
  32225. r = t[s + n];
  32226. if (i) z(n, i, r, a);
  32227. else r(a)
  32228. }
  32229. e._subscribers.length = 0
  32230. }
  32231. function z(e, t, n, i) {
  32232. var r = u(n),
  32233. a = void 0,
  32234. s = void 0,
  32235. o = true;
  32236. if (r) {
  32237. try {
  32238. a = n(i)
  32239. } catch (e) {
  32240. o = false;
  32241. s = e
  32242. }
  32243. if (t === a) {
  32244. F(t, A());
  32245. return
  32246. }
  32247. } else a = i;
  32248. if (t._state !== E);
  32249. else if (r && o) W(t, a);
  32250. else if (o === false) F(t, s);
  32251. else if (e === Y) j(t, a);
  32252. else if (e === P) F(t, a)
  32253. }
  32254. function U(n, e) {
  32255. try {
  32256. e(function e(t) {
  32257. W(n, t)
  32258. }, function e(t) {
  32259. F(n, t)
  32260. })
  32261. } catch (e) {
  32262. F(n, e)
  32263. }
  32264. }
  32265. var V = 0;
  32266. function G() {
  32267. return V++
  32268. }
  32269. function J(e) {
  32270. e[D] = V++;
  32271. e._state = undefined;
  32272. e._result = undefined;
  32273. e._subscribers = []
  32274. }
  32275. function q() {
  32276. return new Error("Array Methods must be provided an Array")
  32277. }
  32278. var K = function() {
  32279. function e(e, t) {
  32280. this._instanceConstructor = e;
  32281. this.promise = new e(T);
  32282. if (!this.promise[D]) J(this.promise);
  32283. if (n(t)) {
  32284. this.length = t.length;
  32285. this._remaining = t.length;
  32286. this._result = new Array(this.length);
  32287. if (this.length === 0) j(this.promise, this._result);
  32288. else {
  32289. this.length = this.length || 0;
  32290. this._enumerate(t);
  32291. if (this._remaining === 0) j(this.promise, this._result)
  32292. }
  32293. } else F(this.promise, q())
  32294. }
  32295. e.prototype._enumerate = function e(t) {
  32296. for (var n = 0; this._state === E && n < t.length; n++) this._eachEntry(
  32297. t[n], n)
  32298. };
  32299. e.prototype._eachEntry = function e(t, n) {
  32300. var i = this._instanceConstructor;
  32301. var r = i.resolve;
  32302. if (r === w) {
  32303. var a = void 0;
  32304. var s = void 0;
  32305. var o = false;
  32306. try {
  32307. a = t.then
  32308. } catch (e) {
  32309. o = true;
  32310. s = e
  32311. }
  32312. if (a === b && t._state !== E) this._settledAt(t._state, n, t
  32313. ._result);
  32314. else if (typeof a !== "function") {
  32315. this._remaining--;
  32316. this._result[n] = t
  32317. } else if (i === te) {
  32318. var u = new i(T);
  32319. if (o) F(u, s);
  32320. else I(u, t, a);
  32321. this._willSettleAt(u, n)
  32322. } else this._willSettleAt(new i(function(e) {
  32323. return e(t)
  32324. }), n)
  32325. } else this._willSettleAt(r(t), n)
  32326. };
  32327. e.prototype._settledAt = function e(t, n, i) {
  32328. var r = this.promise;
  32329. if (r._state === E) {
  32330. this._remaining--;
  32331. if (t === P) F(r, i);
  32332. else this._result[n] = i
  32333. }
  32334. if (this._remaining === 0) j(r, this._result)
  32335. };
  32336. e.prototype._willSettleAt = function e(t, n) {
  32337. var i = this;
  32338. B(t, undefined, function(e) {
  32339. return i._settledAt(Y, n, e)
  32340. }, function(e) {
  32341. return i._settledAt(P, n, e)
  32342. })
  32343. };
  32344. return e
  32345. }();
  32346. function X(e) {
  32347. return new K(this, e).promise
  32348. }
  32349. function Z(r) {
  32350. var a = this;
  32351. if (!n(r)) return new a(function(e, t) {
  32352. return t(new TypeError("You must pass an array to race."))
  32353. });
  32354. else return new a(function(e, t) {
  32355. var n = r.length;
  32356. for (var i = 0; i < n; i++) a.resolve(r[i]).then(e, t)
  32357. })
  32358. }
  32359. function $(e) {
  32360. var t = this;
  32361. var n = new t(T);
  32362. F(n, e);
  32363. return n
  32364. }
  32365. function Q() {
  32366. throw new TypeError(
  32367. "You must pass a resolver function as the first argument to the promise constructor"
  32368. )
  32369. }
  32370. function ee() {
  32371. throw new TypeError(
  32372. "Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function."
  32373. )
  32374. }
  32375. var te = function() {
  32376. function t(e) {
  32377. this[D] = G();
  32378. this._result = this._state = undefined;
  32379. this._subscribers = [];
  32380. if (T !== e) {
  32381. typeof e !== "function" && Q();
  32382. this instanceof t ? U(this, e) : ee()
  32383. }
  32384. }
  32385. t.prototype.catch = function e(t) {
  32386. return this.then(null, t)
  32387. };
  32388. t.prototype.finally = function e(t) {
  32389. var n = this;
  32390. var i = n.constructor;
  32391. if (u(t)) return n.then(function(e) {
  32392. return i.resolve(t()).then(function() {
  32393. return e
  32394. })
  32395. }, function(e) {
  32396. return i.resolve(t()).then(function() {
  32397. throw e
  32398. })
  32399. });
  32400. return n.then(t, t)
  32401. };
  32402. return t
  32403. }();
  32404. function ne() {
  32405. var e = void 0;
  32406. if (typeof re !== "undefined") e = re;
  32407. else if (typeof self !== "undefined") e = self;
  32408. else try {
  32409. e = Function("return this")()
  32410. } catch (e) {
  32411. throw new Error(
  32412. "polyfill failed because global object is unavailable in this environment"
  32413. )
  32414. }
  32415. var t = e.Promise;
  32416. if (t) {
  32417. var n = null;
  32418. try {
  32419. n = Object.prototype.toString.call(t.resolve())
  32420. } catch (e) {}
  32421. if (n === "[object Promise]" && !t.cast) return
  32422. }
  32423. e.Promise = te
  32424. }
  32425. return te.prototype.then = b, te.all = X, te.race = Z, te.resolve = w, te.reject = $, te
  32426. ._setScheduler = o, te._setAsap = d, te._asap = s, te.polyfill = ne, te.Promise = te
  32427. }()
  32428. }.call(this, n(299), n(300))
  32429. }, function(e, t) {
  32430. var n, i, e = e.exports = {};
  32431. function r() {
  32432. throw new Error("setTimeout has not been defined")
  32433. }
  32434. function a() {
  32435. throw new Error("clearTimeout has not been defined")
  32436. }
  32437. function s(t) {
  32438. if (n === setTimeout) return setTimeout(t, 0);
  32439. if ((n === r || !n) && setTimeout) return n = setTimeout, setTimeout(t, 0);
  32440. try {
  32441. return n(t, 0)
  32442. } catch (e) {
  32443. try {
  32444. return n.call(null, t, 0)
  32445. } catch (e) {
  32446. return n.call(this, t, 0)
  32447. }
  32448. }
  32449. }! function() {
  32450. try {
  32451. n = "function" == typeof setTimeout ? setTimeout : r
  32452. } catch (e) {
  32453. n = r
  32454. }
  32455. try {
  32456. i = "function" == typeof clearTimeout ? clearTimeout : a
  32457. } catch (e) {
  32458. i = a
  32459. }
  32460. }();
  32461. var o, u = [],
  32462. d = !1,
  32463. l = -1;
  32464. function h() {
  32465. d && o && (d = !1, o.length ? u = o.concat(u) : l = -1, u.length && c())
  32466. }
  32467. function c() {
  32468. if (!d) {
  32469. var e = s(h);
  32470. d = !0;
  32471. for (var t = u.length; t;) {
  32472. for (o = u, u = []; ++l < t;) o && o[l].run();
  32473. l = -1, t = u.length
  32474. }
  32475. o = null, d = !1,
  32476. function(t) {
  32477. if (i === clearTimeout) return clearTimeout(t);
  32478. if ((i === a || !i) && clearTimeout) return i = clearTimeout, clearTimeout(t);
  32479. try {
  32480. i(t)
  32481. } catch (e) {
  32482. try {
  32483. return i.call(null, t)
  32484. } catch (e) {
  32485. return i.call(this, t)
  32486. }
  32487. }
  32488. }(e)
  32489. }
  32490. }
  32491. function _(e, t) {
  32492. this.fun = e, this.array = t
  32493. }
  32494. function f() {}
  32495. e.nextTick = function(e) {
  32496. var t = new Array(arguments.length - 1);
  32497. if (1 < arguments.length)
  32498. for (var n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
  32499. u.push(new _(e, t)), 1 !== u.length || d || s(c)
  32500. }, _.prototype.run = function() {
  32501. this.fun.apply(null, this.array)
  32502. }, e.title = "browser", e.browser = !0, e.env = {}, e.argv = [], e.version = "", e
  32503. .versions = {}, e.on = f, e.addListener = f, e.once = f, e.off = f, e.removeListener = f, e
  32504. .removeAllListeners = f, e.emit = f, e.prependListener = f, e.prependOnceListener = f, e
  32505. .listeners = function(e) {
  32506. return []
  32507. }, e.binding = function(e) {
  32508. throw new Error("process.binding is not supported")
  32509. }, e.cwd = function() {
  32510. return "/"
  32511. }, e.chdir = function(e) {
  32512. throw new Error("process.chdir is not supported")
  32513. }, e.umask = function() {
  32514. return 0
  32515. }
  32516. }, function(e, t) {
  32517. var n = function() {
  32518. return this
  32519. }();
  32520. try {
  32521. n = n || new Function("return this")()
  32522. } catch (e) {
  32523. "object" == typeof window && (n = window)
  32524. }
  32525. e.exports = n
  32526. }, function(e, t, n) {
  32527. "use strict";
  32528. Object.defineProperty(t, "__esModule", {
  32529. value: !0
  32530. });
  32531. var i = o(n(1)),
  32532. r = o(n(2)),
  32533. a = o(n(228)),
  32534. s = n(63);
  32535. function o(e) {
  32536. return e && e.__esModule ? e : {
  32537. default: e
  32538. }
  32539. }(0, r.default)(u, null, [{
  32540. key: "supportMSEH264Playback",
  32541. value: function() {
  32542. return window.MediaSource && window.MediaSource.isTypeSupported(
  32543. 'video/mp4; codecs="avc1.42E01E,mp4a.40.2"')
  32544. }
  32545. }, {
  32546. key: "supportNetworkStreamIO",
  32547. value: function() {
  32548. var e = new a.default({}, (0, s.createDefaultConfig)()),
  32549. t = e.loaderType;
  32550. return e.destroy(), "fetch-stream-loader" == t || "xhr-moz-chunked-loader" == t
  32551. }
  32552. }, {
  32553. key: "getNetworkLoaderTypeName",
  32554. value: function() {
  32555. var e = new a.default({}, (0, s.createDefaultConfig)()),
  32556. t = e.loaderType;
  32557. return e.destroy(), t
  32558. }
  32559. }, {
  32560. key: "supportNativeMediaPlayback",
  32561. value: function(e) {
  32562. e = (u.videoElement = null == u.videoElement ? window.document.createElement(
  32563. "video") : u.videoElement).canPlayType(e);
  32564. return "probably" === e || "maybe" == e
  32565. }
  32566. }, {
  32567. key: "getFeatureList",
  32568. value: function() {
  32569. var e = {
  32570. mseFlvPlayback: !1,
  32571. mseLiveFlvPlayback: !1,
  32572. networkStreamIO: !1,
  32573. networkLoaderName: "",
  32574. nativeMP4H264Playback: !1,
  32575. nativeWebmVP8Playback: !1,
  32576. nativeWebmVP9Playback: !1
  32577. };
  32578. return e.mseFlvPlayback = u.supportMSEH264Playback(), e.networkStreamIO = u
  32579. .supportNetworkStreamIO(), e.networkLoaderName = u
  32580. .getNetworkLoaderTypeName(), e.mseLiveFlvPlayback = e.mseFlvPlayback && e
  32581. .networkStreamIO, e.nativeMP4H264Playback = u.supportNativeMediaPlayback(
  32582. 'video/mp4; codecs="avc1.42001E, mp4a.40.2"'), e.nativeWebmVP8Playback =
  32583. u.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'), e
  32584. .nativeWebmVP9Playback = u.supportNativeMediaPlayback(
  32585. 'video/webm; codecs="vp9"'), e
  32586. }
  32587. }]), r = u;
  32588. function u() {
  32589. (0, i.default)(this, u)
  32590. }
  32591. t.default = r
  32592. }, function(e, t, n) {
  32593. n(303), e.exports = n(3).Object.getPrototypeOf
  32594. }, function(e, t, n) {
  32595. var i = n(24),
  32596. r = n(74);
  32597. n(52)("getPrototypeOf", function() {
  32598. return function(e) {
  32599. return r(i(e))
  32600. }
  32601. })
  32602. }, function(e, t, n) {
  32603. e.exports = {
  32604. default: n(305),
  32605. __esModule: !0
  32606. }
  32607. }, function(e, t, n) {
  32608. n(306);
  32609. var i = n(3).Object;
  32610. e.exports = function(e, t) {
  32611. return i.create(e, t)
  32612. }
  32613. }, function(e, t, n) {
  32614. var i = n(8);
  32615. i(i.S, "Object", {
  32616. create: n(46)
  32617. })
  32618. }, function(e, t, n) {
  32619. "use strict";
  32620. Object.defineProperty(t, "__esModule", {
  32621. value: !0
  32622. });
  32623. var d = _(n(9)),
  32624. i = _(n(21)),
  32625. r = _(n(1)),
  32626. a = _(n(25)),
  32627. s = _(n(32)),
  32628. o = _(n(2)),
  32629. u = _(n(26)),
  32630. l = (_(n(4)), _(n(33))),
  32631. h = n(15),
  32632. c = n(5);
  32633. function _(e) {
  32634. return e && e.__esModule ? e : {
  32635. default: e
  32636. }
  32637. }
  32638. n = h.BaseLoader, (0, u.default)(f, n), (0, o.default)(f, null, [{
  32639. key: "isSupported",
  32640. value: function() {
  32641. try {
  32642. var e = l.default.msedge && 15048 <= l.default.version.minor,
  32643. t = !l.default.msedge || e;
  32644. return self.fetch && self.ReadableStream && t
  32645. } catch (e) {
  32646. return !1
  32647. }
  32648. }
  32649. }]), (0, o.default)(f, [{
  32650. key: "destroy",
  32651. value: function() {
  32652. this.isWorking() && this.abort(), (0, s.default)(f.prototype.__proto__ || (
  32653. 0, i.default)(f.prototype), "destroy", this).call(this)
  32654. }
  32655. }, {
  32656. key: "open",
  32657. value: function(e, t) {
  32658. var n = this;
  32659. this._dataSource = e, this._range = t;
  32660. var i = e.url;
  32661. this._config.reuseRedirectedURL && null != e.redirectedURL && (i = e
  32662. .redirectedURL);
  32663. var r = this._seekHandler.getConfig(i, t),
  32664. a = new self.Headers;
  32665. if ("object" === (0, d.default)(r.headers)) {
  32666. var s, o = r.headers;
  32667. for (s in o) o.hasOwnProperty(s) && a.append(s, o[s])
  32668. }
  32669. t = {
  32670. method: "GET",
  32671. headers: a,
  32672. mode: "cors",
  32673. cache: "default",
  32674. referrerPolicy: "no-referrer-when-downgrade"
  32675. };
  32676. if ("object" === (0, d.default)(this._config.headers))
  32677. for (var u in this._config.headers) a.append(u, this._config.headers[
  32678. u]);
  32679. !1 === e.cors && (t.mode = "same-origin"), e.withCredentials && (t
  32680. .credentials = "include"), e.referrerPolicy && (t.referrerPolicy = e
  32681. .referrerPolicy), this._status = h.LoaderStatus.kConnecting, self
  32682. .fetch(r.url, t).then(function(e) {
  32683. if (n._requestAbort) return n._requestAbort = !1, void(n
  32684. ._status = h.LoaderStatus.kIdle);
  32685. if (e.ok && 200 <= e.status && e.status <= 299) {
  32686. e.url !== r.url && n._onURLRedirect && (t = n._seekHandler
  32687. .removeURLParameters(e.url), n._onURLRedirect(t));
  32688. var t = e.headers.get("Content-Length");
  32689. return null != t && (n._contentLength = parseInt(t), 0 !== n
  32690. ._contentLength && n._onContentLengthKnown && n
  32691. ._onContentLengthKnown(n._contentLength)), n._pump
  32692. .call(n, e.body.getReader())
  32693. }
  32694. if (n._status = h.LoaderStatus.kError, !n._onError) throw new c
  32695. .RuntimeException(
  32696. "FetchStreamLoader: Http code invalid, " + e
  32697. .status + " " + e.statusText);
  32698. n._onError(h.LoaderErrors.HTTP_STATUS_CODE_INVALID, {
  32699. code: e.status,
  32700. msg: e.statusText
  32701. })
  32702. }).catch(function(e) {
  32703. if (n._status = h.LoaderStatus.kError, !n._onError) throw e;
  32704. n._onError(h.LoaderErrors.EXCEPTION, {
  32705. code: -1,
  32706. msg: e.message
  32707. })
  32708. })
  32709. }
  32710. }, {
  32711. key: "abort",
  32712. value: function() {
  32713. this._requestAbort = !0
  32714. }
  32715. }, {
  32716. key: "_pump",
  32717. value: function(i) {
  32718. var r = this;
  32719. return i.read().then(function(e) {
  32720. if (e.done)
  32721. if (null !== r._contentLength && r._receivedLength < r
  32722. ._contentLength) {
  32723. r._status = h.LoaderStatus.kError;
  32724. var t = h.LoaderErrors.EARLY_EOF,
  32725. n = {
  32726. code: -1,
  32727. msg: "Fetch stream meet Early-EOF"
  32728. };
  32729. if (!r._onError) throw new c.RuntimeException(n.msg);
  32730. r._onError(t, n)
  32731. } else r._status = h.LoaderStatus.kComplete, r
  32732. ._onComplete && r._onComplete(r._range.from, r._range
  32733. .from + r._receivedLength - 1);
  32734. else {
  32735. if (!0 === r._requestAbort) return r._requestAbort = !1, r
  32736. ._status = h.LoaderStatus.kComplete, i.cancel();
  32737. r._status = h.LoaderStatus.kBuffering;
  32738. n = e.value.buffer, e = r._range.from + r._receivedLength;
  32739. r._receivedLength += n.byteLength, r._onDataArrival && r
  32740. ._onDataArrival(n, e, r._receivedLength), r._pump(i)
  32741. }
  32742. }).catch(function(e) {
  32743. if (11 !== e.code || !l.default.msedge) {
  32744. r._status = h.LoaderStatus.kError;
  32745. var t = 0,
  32746. n = null,
  32747. n = 19 !== e.code && "network error" !== e.message || !(
  32748. null === r._contentLength || null !== r
  32749. ._contentLength && r._receivedLength < r
  32750. ._contentLength) ? (t = h.LoaderErrors.EXCEPTION, {
  32751. code: e.code,
  32752. msg: e.message
  32753. }) : (t = h.LoaderErrors.EARLY_EOF, {
  32754. code: e.code,
  32755. msg: "Fetch stream meet Early-EOF"
  32756. });
  32757. if (!r._onError) throw new c.RuntimeException(n.msg);
  32758. r._onError(t, n)
  32759. }
  32760. })
  32761. }
  32762. }]), o = f;
  32763. function f(e, t) {
  32764. (0, r.default)(this, f);
  32765. var n = (0, a.default)(this, (f.__proto__ || (0, i.default)(f)).call(this,
  32766. "fetch-stream-loader"));
  32767. return n.TAG = "FetchStreamLoader", n._seekHandler = e, n._config = t, n._needStash = !0, n
  32768. ._requestAbort = !1, n._contentLength = null, n._receivedLength = 0, n
  32769. }
  32770. t.default = o
  32771. }, function(e, t, n) {
  32772. e.exports = {
  32773. default: n(309),
  32774. __esModule: !0
  32775. }
  32776. }, function(e, t, n) {
  32777. n(310);
  32778. var i = n(3).Object;
  32779. e.exports = function(e, t) {
  32780. return i.getOwnPropertyDescriptor(e, t)
  32781. }
  32782. }, function(e, t, n) {
  32783. var i = n(19),
  32784. r = n(60).f;
  32785. n(52)("getOwnPropertyDescriptor", function() {
  32786. return function(e, t) {
  32787. return r(i(e), t)
  32788. }
  32789. })
  32790. }, function(e, t, n) {
  32791. "use strict";
  32792. Object.defineProperty(t, "__esModule", {
  32793. value: !0
  32794. });
  32795. var u = _(n(9)),
  32796. i = _(n(21)),
  32797. r = _(n(1)),
  32798. a = _(n(25)),
  32799. s = _(n(32)),
  32800. o = _(n(2)),
  32801. d = _(n(26)),
  32802. l = _(n(4)),
  32803. h = n(15),
  32804. c = n(5);
  32805. function _(e) {
  32806. return e && e.__esModule ? e : {
  32807. default: e
  32808. }
  32809. }
  32810. n = h.BaseLoader, (0, d.default)(f, n), (0, o.default)(f, null, [{
  32811. key: "isSupported",
  32812. value: function() {
  32813. try {
  32814. var e = new XMLHttpRequest;
  32815. return e.open("GET", "https://example.com", !0), (e.responseType =
  32816. "moz-chunked-arraybuffer") === e.responseType
  32817. } catch (e) {
  32818. return l.default.w("MozChunkedLoader", e.message), !1
  32819. }
  32820. }
  32821. }]), (0, o.default)(f, [{
  32822. key: "destroy",
  32823. value: function() {
  32824. this.isWorking() && this.abort(), this._xhr && (this._xhr
  32825. .onreadystatechange = null, this._xhr.onprogress = null, this._xhr
  32826. .onloadend = null, this._xhr.onerror = null, this._xhr = null), (0,
  32827. s.default)(f.prototype.__proto__ || (0, i.default)(f.prototype),
  32828. "destroy", this).call(this)
  32829. }
  32830. }, {
  32831. key: "open",
  32832. value: function(e, t) {
  32833. this._dataSource = e, this._range = t;
  32834. var n = e.url;
  32835. this._config.reuseRedirectedURL && null != e.redirectedURL && (n = e
  32836. .redirectedURL);
  32837. t = this._seekHandler.getConfig(n, t);
  32838. this._requestURL = t.url;
  32839. var i = this._xhr = new XMLHttpRequest;
  32840. if (i.open("GET", t.url, !0), i.responseType = "moz-chunked-arraybuffer", i
  32841. .onreadystatechange = this._onReadyStateChange.bind(this), i
  32842. .onprogress = this._onProgress.bind(this), i.onloadend = this._onLoadEnd
  32843. .bind(this), i.onerror = this._onXhrError.bind(this), e
  32844. .withCredentials && (i.withCredentials = !0), "object" === (0, u
  32845. .default)(t.headers)) {
  32846. var r, a = t.headers;
  32847. for (r in a) a.hasOwnProperty(r) && i.setRequestHeader(r, a[r])
  32848. }
  32849. if ("object" === (0, u.default)(this._config.headers)) {
  32850. var s, o = this._config.headers;
  32851. for (s in o) o.hasOwnProperty(s) && i.setRequestHeader(s, o[s])
  32852. }
  32853. this._status = h.LoaderStatus.kConnecting, i.send()
  32854. }
  32855. }, {
  32856. key: "abort",
  32857. value: function() {
  32858. this._requestAbort = !0, this._xhr && this._xhr.abort(), this._status = h
  32859. .LoaderStatus.kComplete
  32860. }
  32861. }, {
  32862. key: "_onReadyStateChange",
  32863. value: function(e) {
  32864. var t = e.target;
  32865. if (2 === t.readyState)
  32866. if (null != t.responseURL && t.responseURL !== this._requestURL && this
  32867. ._onURLRedirect && (e = this._seekHandler.removeURLParameters(t
  32868. .responseURL), this._onURLRedirect(e)), 0 !== t.status && (t
  32869. .status < 200 || 299 < t.status)) {
  32870. if (this._status = h.LoaderStatus.kError, !this._onError)
  32871. throw new c.RuntimeException(
  32872. "MozChunkedLoader: Http code invalid, " + t.status +
  32873. " " + t.statusText);
  32874. this._onError(h.LoaderErrors.HTTP_STATUS_CODE_INVALID, {
  32875. code: t.status,
  32876. msg: t.statusText
  32877. })
  32878. } else this._status = h.LoaderStatus.kBuffering
  32879. }
  32880. }, {
  32881. key: "_onProgress",
  32882. value: function(e) {
  32883. var t;
  32884. this._status !== h.LoaderStatus.kError && (null === this._contentLength &&
  32885. null !== e.total && 0 !== e.total && (this._contentLength = e.total,
  32886. this._onContentLengthKnown && this._onContentLengthKnown(this
  32887. ._contentLength)), t = e.target.response, e = this._range
  32888. .from + this._receivedLength, this._receivedLength += t.byteLength,
  32889. this._onDataArrival && this._onDataArrival(t, e, this
  32890. ._receivedLength))
  32891. }
  32892. }, {
  32893. key: "_onLoadEnd",
  32894. value: function(e) {
  32895. !0 !== this._requestAbort ? this._status !== h.LoaderStatus.kError && (this
  32896. ._status = h.LoaderStatus.kComplete, this._onComplete && this
  32897. ._onComplete(this._range.from, this._range.from + this
  32898. ._receivedLength - 1)) : this._requestAbort = !1
  32899. }
  32900. }, {
  32901. key: "_onXhrError",
  32902. value: function(e) {
  32903. this._status = h.LoaderStatus.kError;
  32904. var t = 0,
  32905. n = null,
  32906. n = this._contentLength && e.loaded < this._contentLength ? (t = h
  32907. .LoaderErrors.EARLY_EOF, {
  32908. code: -1,
  32909. msg: "Moz-Chunked stream meet Early-Eof"
  32910. }) : (t = h.LoaderErrors.EXCEPTION, {
  32911. code: -1,
  32912. msg: e.constructor.name + " " + e.type
  32913. });
  32914. if (!this._onError) throw new c.RuntimeException(n.msg);
  32915. this._onError(t, n)
  32916. }
  32917. }]), o = f;
  32918. function f(e, t) {
  32919. (0, r.default)(this, f);
  32920. var n = (0, a.default)(this, (f.__proto__ || (0, i.default)(f)).call(this,
  32921. "xhr-moz-chunked-loader"));
  32922. return n.TAG = "MozChunkedLoader", n._seekHandler = e, n._config = t, n._needStash = !0, n
  32923. ._xhr = null, n._requestAbort = !1, n._contentLength = null, n._receivedLength = 0, n
  32924. }
  32925. t.default = o
  32926. }, function(e, t, n) {
  32927. "use strict";
  32928. Object.defineProperty(t, "__esModule", {
  32929. value: !0
  32930. });
  32931. var u = _(n(9)),
  32932. i = _(n(21)),
  32933. r = _(n(1)),
  32934. a = _(n(25)),
  32935. s = _(n(32)),
  32936. o = _(n(2)),
  32937. d = _(n(26)),
  32938. l = _(n(4)),
  32939. h = n(15),
  32940. c = n(5);
  32941. function _(e) {
  32942. return e && e.__esModule ? e : {
  32943. default: e
  32944. }
  32945. }
  32946. n = h.BaseLoader, (0, d.default)(f, n), (0, o.default)(f, null, [{
  32947. key: "isSupported",
  32948. value: function() {
  32949. try {
  32950. if (void 0 === self.MSStream || void 0 === self.MSStreamReader) return !
  32951. 1;
  32952. var e = new XMLHttpRequest;
  32953. return e.open("GET", "https://example.com", !0), (e.responseType =
  32954. "ms-stream") === e.responseType
  32955. } catch (e) {
  32956. return l.default.w("MSStreamLoader", e.message), !1
  32957. }
  32958. }
  32959. }]), (0, o.default)(f, [{
  32960. key: "destroy",
  32961. value: function() {
  32962. this.isWorking() && this.abort(), this._reader && (this._reader.onprogress =
  32963. null, this._reader.onload = null, this._reader.onerror = null, this
  32964. ._reader = null), this._xhr && (this._xhr.onreadystatechange = null,
  32965. this._xhr = null), (0, s.default)(f.prototype.__proto__ || (0, i
  32966. .default)(f.prototype), "destroy", this).call(this)
  32967. }
  32968. }, {
  32969. key: "open",
  32970. value: function(e, t) {
  32971. this._internalOpen(e, t, !1)
  32972. }
  32973. }, {
  32974. key: "_internalOpen",
  32975. value: function(e, t, n) {
  32976. this._dataSource = e, n ? this._currentRange = t : this._totalRange = t;
  32977. n = e.url;
  32978. this._config.reuseRedirectedURL && (null != this._currentRedirectedURL ? n =
  32979. this._currentRedirectedURL : null != e.redirectedURL && (n = e
  32980. .redirectedURL));
  32981. n = this._seekHandler.getConfig(n, t);
  32982. this._currentRequestURL = n.url;
  32983. t = this._reader = new self.MSStreamReader;
  32984. t.onprogress = this._msrOnProgress.bind(this), t.onload = this._msrOnLoad
  32985. .bind(this), t.onerror = this._msrOnError.bind(this);
  32986. var i = this._xhr = new XMLHttpRequest;
  32987. if (i.open("GET", n.url, !0), i.responseType = "ms-stream", i
  32988. .onreadystatechange = this._xhrOnReadyStateChange.bind(this), i
  32989. .onerror = this._xhrOnError.bind(this), e.withCredentials && (i
  32990. .withCredentials = !0), "object" === (0, u.default)(n.headers)) {
  32991. var r, a = n.headers;
  32992. for (r in a) a.hasOwnProperty(r) && i.setRequestHeader(r, a[r])
  32993. }
  32994. if ("object" === (0, u.default)(this._config.headers)) {
  32995. var s, o = this._config.headers;
  32996. for (s in o) o.hasOwnProperty(s) && i.setRequestHeader(s, o[s])
  32997. }
  32998. this._isReconnecting ? this._isReconnecting = !1 : this._status = h
  32999. .LoaderStatus.kConnecting, i.send()
  33000. }
  33001. }, {
  33002. key: "abort",
  33003. value: function() {
  33004. this._internalAbort(), this._status = h.LoaderStatus.kComplete
  33005. }
  33006. }, {
  33007. key: "_internalAbort",
  33008. value: function() {
  33009. this._reader && (1 === this._reader.readyState && this._reader.abort(), this
  33010. ._reader.onprogress = null, this._reader.onload = null, this._reader
  33011. .onerror = null, this._reader = null), this._xhr && (this._xhr
  33012. .abort(), this._xhr.onreadystatechange = null, this._xhr = null)
  33013. }
  33014. }, {
  33015. key: "_xhrOnReadyStateChange",
  33016. value: function(e) {
  33017. e = e.target;
  33018. if (2 === e.readyState)
  33019. if (200 <= e.status && e.status <= 299) {
  33020. this._status = h.LoaderStatus.kBuffering, null != e.responseURL && (
  33021. t = this._seekHandler.removeURLParameters(e.responseURL), e
  33022. .responseURL !== this._currentRequestURL && t !== this
  33023. ._currentRedirectedURL && (this._currentRedirectedURL = t,
  33024. this._onURLRedirect && this._onURLRedirect(t)));
  33025. var t = e.getResponseHeader("Content-Length");
  33026. null == t || null != this._contentLength || 0 < (t = parseInt(t)) &&
  33027. (this._contentLength = t, this._onContentLengthKnown && this
  33028. ._onContentLengthKnown(this._contentLength))
  33029. } else {
  33030. if (this._status = h.LoaderStatus.kError, !this._onError)
  33031. throw new c.RuntimeException(
  33032. "MSStreamLoader: Http code invalid, " + e.status + " " +
  33033. e.statusText);
  33034. this._onError(h.LoaderErrors.HTTP_STATUS_CODE_INVALID, {
  33035. code: e.status,
  33036. msg: e.statusText
  33037. })
  33038. }
  33039. else 3 === e.readyState && 200 <= e.status && e.status <= 299 && (this
  33040. ._status = h.LoaderStatus.kBuffering, e = e.response, this._reader
  33041. .readAsArrayBuffer(e))
  33042. }
  33043. }, {
  33044. key: "_xhrOnError",
  33045. value: function(e) {
  33046. this._status = h.LoaderStatus.kError;
  33047. var t = h.LoaderErrors.EXCEPTION,
  33048. e = {
  33049. code: -1,
  33050. msg: e.constructor.name + " " + e.type
  33051. };
  33052. if (!this._onError) throw new c.RuntimeException(e.msg);
  33053. this._onError(t, e)
  33054. }
  33055. }, {
  33056. key: "_msrOnProgress",
  33057. value: function(e) {
  33058. var t, n = e.target.result;
  33059. null != n ? (t = n.slice(this._lastTimeBufferSize), this
  33060. ._lastTimeBufferSize = n.byteLength, e = this._totalRange.from +
  33061. this._receivedLength, this._receivedLength += t.byteLength, this
  33062. ._onDataArrival && this._onDataArrival(t, e, this._receivedLength),
  33063. n.byteLength >= this._bufferLimit && (l.default.v(this.TAG,
  33064. "MSStream buffer exceeded max size near " + (e + t
  33065. .byteLength) + ", reconnecting..."), this
  33066. ._doReconnectIfNeeded())) : this._doReconnectIfNeeded()
  33067. }
  33068. }, {
  33069. key: "_doReconnectIfNeeded",
  33070. value: function() {
  33071. var e;
  33072. (null == this._contentLength || this._receivedLength < this
  33073. ._contentLength) && (this._isReconnecting = !0, this
  33074. ._lastTimeBufferSize =
  33075. 0, this._internalAbort(), e = {
  33076. from: this._totalRange.from + this._receivedLength,
  33077. to: -1
  33078. }, this._internalOpen(this._dataSource, e, !0))
  33079. }
  33080. }, {
  33081. key: "_msrOnLoad",
  33082. value: function(e) {
  33083. this._status = h.LoaderStatus.kComplete, this._onComplete && this
  33084. ._onComplete(this._totalRange.from, this._totalRange.from + this
  33085. ._receivedLength - 1)
  33086. }
  33087. }, {
  33088. key: "_msrOnError",
  33089. value: function(e) {
  33090. this._status = h.LoaderStatus.kError;
  33091. var t = 0,
  33092. n = null,
  33093. n = this._contentLength && this._receivedLength < this._contentLength ?
  33094. (t = h.LoaderErrors.EARLY_EOF, {
  33095. code: -1,
  33096. msg: "MSStream meet Early-Eof"
  33097. }) : (t = h.LoaderErrors.EARLY_EOF, {
  33098. code: -1,
  33099. msg: e.constructor.name + " " + e.type
  33100. });
  33101. if (!this._onError) throw new c.RuntimeException(n.msg);
  33102. this._onError(t, n)
  33103. }
  33104. }]), o = f;
  33105. function f(e, t) {
  33106. (0, r.default)(this, f);
  33107. var n = (0, a.default)(this, (f.__proto__ || (0, i.default)(f)).call(this,
  33108. "xhr-msstream-loader"));
  33109. return n.TAG = "MSStreamLoader", n._seekHandler = e, n._config = t, n._needStash = !0, n._xhr =
  33110. null, n._reader = null, n._totalRange = null, n._currentRange = null, n._currentRequestURL =
  33111. null, n._currentRedirectedURL = null, n._contentLength = null, n._receivedLength = 0, n
  33112. ._bufferLimit = 16777216, n._lastTimeBufferSize = 0, n._isReconnecting = !1, n
  33113. }
  33114. t.default = o
  33115. }, function(e, t, n) {
  33116. "use strict";
  33117. Object.defineProperty(t, "__esModule", {
  33118. value: !0
  33119. });
  33120. var u = f(n(9)),
  33121. i = f(n(21)),
  33122. r = f(n(1)),
  33123. a = f(n(25)),
  33124. s = f(n(32)),
  33125. o = f(n(2)),
  33126. d = f(n(26)),
  33127. l = f(n(4)),
  33128. h = f(n(62)),
  33129. c = n(15),
  33130. _ = n(5);
  33131. function f(e) {
  33132. return e && e.__esModule ? e : {
  33133. default: e
  33134. }
  33135. }
  33136. n = c.BaseLoader, (0, d.default)(m, n), (0, o.default)(m, null, [{
  33137. key: "isSupported",
  33138. value: function() {
  33139. try {
  33140. var e = new XMLHttpRequest;
  33141. return e.open("GET", "https://example.com", !0), (e.responseType =
  33142. "arraybuffer") === e.responseType
  33143. } catch (e) {
  33144. return l.default.w("RangeLoader", e.message), !1
  33145. }
  33146. }
  33147. }]), (0, o.default)(m, [{
  33148. key: "destroy",
  33149. value: function() {
  33150. this.isWorking() && this.abort(), this._xhr && (this._xhr
  33151. .onreadystatechange = null, this._xhr.onprogress = null, this._xhr
  33152. .onload = null, this._xhr.onerror = null, this._xhr = null), (0, s
  33153. .default)(m.prototype.__proto__ || (0, i.default)(m.prototype),
  33154. "destroy", this).call(this)
  33155. }
  33156. }, {
  33157. key: "open",
  33158. value: function(e, t) {
  33159. this._dataSource = e, this._range = t, this._status = c.LoaderStatus
  33160. .kConnecting;
  33161. t = !1;
  33162. null != this._dataSource.filesize && 0 !== this._dataSource.filesize && (
  33163. t = !0, this._totalLength = this._dataSource.filesize), this
  33164. ._totalLengthReceived || t ? this._openSubRange() : (this
  33165. ._waitForTotalLength = !0, this._internalOpen(this._dataSource, {
  33166. from: 0,
  33167. to: -1
  33168. }))
  33169. }
  33170. }, {
  33171. key: "_openSubRange",
  33172. value: function() {
  33173. var e = 1024 * this._currentChunkSizeKB,
  33174. t = this._range.from + this._receivedLength,
  33175. e = t + e;
  33176. null != this._contentLength && e - this._range.from >= this
  33177. ._contentLength && (e = this._range.from + this._contentLength - 1),
  33178. this._currentRequestRange = {
  33179. from: t,
  33180. to: e
  33181. }, this._internalOpen(this._dataSource, this._currentRequestRange)
  33182. }
  33183. }, {
  33184. key: "_internalOpen",
  33185. value: function(e, t) {
  33186. this._lastTimeLoaded = 0;
  33187. var n = e.url;
  33188. this._config.reuseRedirectedURL && (null != this._currentRedirectedURL ? n =
  33189. this._currentRedirectedURL : null != e.redirectedURL && (n = e
  33190. .redirectedURL));
  33191. t = this._seekHandler.getConfig(n, t);
  33192. this._currentRequestURL = t.url;
  33193. var i = this._xhr = new XMLHttpRequest;
  33194. if (i.open("GET", t.url, !0), i.responseType = "arraybuffer", i
  33195. .onreadystatechange = this._onReadyStateChange.bind(this), i
  33196. .onprogress = this._onProgress.bind(this), i.onload = this._onLoad.bind(
  33197. this), i.onerror = this._onXhrError.bind(this), e.withCredentials &&
  33198. (i.withCredentials = !0), "object" === (0, u.default)(t.headers)) {
  33199. var r, a = t.headers;
  33200. for (r in a) a.hasOwnProperty(r) && i.setRequestHeader(r, a[r])
  33201. }
  33202. if ("object" === (0, u.default)(this._config.headers)) {
  33203. var s, o = this._config.headers;
  33204. for (s in o) o.hasOwnProperty(s) && i.setRequestHeader(s, o[s])
  33205. }
  33206. i.send()
  33207. }
  33208. }, {
  33209. key: "abort",
  33210. value: function() {
  33211. this._requestAbort = !0, this._internalAbort(), this._status = c
  33212. .LoaderStatus.kComplete
  33213. }
  33214. }, {
  33215. key: "_internalAbort",
  33216. value: function() {
  33217. this._xhr && (this._xhr.onreadystatechange = null, this._xhr.onprogress =
  33218. null, this._xhr.onload = null, this._xhr.onerror = null, this._xhr
  33219. .abort(), this._xhr = null)
  33220. }
  33221. }, {
  33222. key: "_onReadyStateChange",
  33223. value: function(e) {
  33224. var t = e.target;
  33225. if (2 === t.readyState)
  33226. if (null != t.responseURL && (e = this._seekHandler.removeURLParameters(
  33227. t.responseURL), t.responseURL !== this._currentRequestURL &&
  33228. e !== this._currentRedirectedURL && (this
  33229. ._currentRedirectedURL = e, this._onURLRedirect && this
  33230. ._onURLRedirect(e))), 200 <= t.status && t.status <= 299)
  33231. this._waitForTotalLength || (this._status = c.LoaderStatus
  33232. .kBuffering);
  33233. else {
  33234. if (this._status = c.LoaderStatus.kError, !this._onError)
  33235. throw new _.RuntimeException(
  33236. "RangeLoader: Http code invalid, " + t.status + " " + t
  33237. .statusText);
  33238. this._onError(c.LoaderErrors.HTTP_STATUS_CODE_INVALID, {
  33239. code: t.status,
  33240. msg: t.statusText
  33241. })
  33242. }
  33243. }
  33244. }, {
  33245. key: "_onProgress",
  33246. value: function(e) {
  33247. if (this._status !== c.LoaderStatus.kError) {
  33248. if (null === this._contentLength) {
  33249. var t, n = !1;
  33250. if (this._waitForTotalLength && (this._waitForTotalLength = !1, n =
  33251. this._totalLengthReceived = !0, t = e.total, this
  33252. ._internalAbort(), null != t & 0 !== t && (this
  33253. ._totalLength = t)), -1 === this._range.to ? this
  33254. ._contentLength = this._totalLength - this._range.from : this
  33255. ._contentLength = this._range.to - this._range.from + 1, n)
  33256. return void this._openSubRange();
  33257. this._onContentLengthKnown && this._onContentLengthKnown(this
  33258. ._contentLength)
  33259. }
  33260. n = e.loaded - this._lastTimeLoaded;
  33261. this._lastTimeLoaded = e.loaded, this._speedSampler.addBytes(n)
  33262. }
  33263. }
  33264. }, {
  33265. key: "_normalizeSpeed",
  33266. value: function(e) {
  33267. var t, n = this._chunkSizeKBList,
  33268. i = n.length - 1,
  33269. r = 0,
  33270. a = i;
  33271. if (e < n[0]) return n[0];
  33272. for (; r <= a;) {
  33273. if ((t = r + Math.floor((a - r) / 2)) === i || e >= n[t] && e < n[t +
  33274. 1]) return n[t];
  33275. n[t] < e ? r = t + 1 : a = t - 1
  33276. }
  33277. }
  33278. }, {
  33279. key: "_onLoad",
  33280. value: function(e) {
  33281. var t, n;
  33282. this._status !== c.LoaderStatus.kError && (this._waitForTotalLength ? this
  33283. ._waitForTotalLength = !1 : ((this._lastTimeLoaded = 0) === (t =
  33284. this._speedSampler.lastSecondKBps) && (this
  33285. ._zeroSpeedChunkCount++, 3 <= this._zeroSpeedChunkCount && (
  33286. t = this._speedSampler.currentKBps)), 0 !== t && (n =
  33287. this._normalizeSpeed(t), this._currentSpeedNormalized !==
  33288. n && (this._currentSpeedNormalized = n, this
  33289. ._currentChunkSizeKB = n)), t = e.target.response, n =
  33290. this._range.from + this._receivedLength, this._receivedLength +=
  33291. t.byteLength, e = !1, null != this._contentLength && this
  33292. ._receivedLength < this._contentLength ? this._openSubRange() :
  33293. e = !0, this._onDataArrival && this._onDataArrival(t, n, this
  33294. ._receivedLength), e && (this._status = c.LoaderStatus
  33295. .kComplete, this._onComplete && this._onComplete(this._range
  33296. .from, this._range.from + this._receivedLength - 1))))
  33297. }
  33298. }, {
  33299. key: "_onXhrError",
  33300. value: function(e) {
  33301. this._status = c.LoaderStatus.kError;
  33302. var t = 0,
  33303. n = null,
  33304. n = this._contentLength && 0 < this._receivedLength && this
  33305. ._receivedLength < this._contentLength ? (t = c.LoaderErrors
  33306. .EARLY_EOF, {
  33307. code: -1,
  33308. msg: "RangeLoader meet Early-Eof"
  33309. }) : (t = c.LoaderErrors.EXCEPTION, {
  33310. code: -1,
  33311. msg: e.constructor.name + " " + e.type
  33312. });
  33313. if (!this._onError) throw new _.RuntimeException(n.msg);
  33314. this._onError(t, n)
  33315. }
  33316. }, {
  33317. key: "currentSpeed",
  33318. get: function() {
  33319. return this._speedSampler.lastSecondKBps
  33320. }
  33321. }]), o = m;
  33322. function m(e, t) {
  33323. (0, r.default)(this, m);
  33324. var n = (0, a.default)(this, (m.__proto__ || (0, i.default)(m)).call(this, "xhr-range-loader"));
  33325. return n.TAG = "RangeLoader", n._seekHandler = e, n._config = t, n._needStash = !1, n
  33326. ._chunkSizeKBList = [128, 256, 384, 512, 768, 1024, 1536, 2048, 3072, 4096, 5120, 6144,
  33327. 7168, 8192
  33328. ], n._currentChunkSizeKB = 384, n._currentSpeedNormalized = 0, n._zeroSpeedChunkCount = 0, n
  33329. ._xhr = null, n._speedSampler = new h.default, n._requestAbort = !1, n
  33330. ._waitForTotalLength = !1, n._totalLengthReceived = !1, n._currentRequestURL = null, n
  33331. ._currentRedirectedURL = null, n._currentRequestRange = null, n._totalLength = null, n
  33332. ._contentLength = null, n._receivedLength = 0, n._lastTimeLoaded = 0, n
  33333. }
  33334. t.default = o
  33335. }, function(e, t, n) {
  33336. "use strict";
  33337. Object.defineProperty(t, "__esModule", {
  33338. value: !0
  33339. });
  33340. var i = h(n(21)),
  33341. r = h(n(1)),
  33342. a = h(n(25)),
  33343. s = h(n(32)),
  33344. o = h(n(2)),
  33345. u = h(n(26)),
  33346. d = (h(n(4)), n(15)),
  33347. l = n(5);
  33348. function h(e) {
  33349. return e && e.__esModule ? e : {
  33350. default: e
  33351. }
  33352. }
  33353. n = d.BaseLoader, (0, u.default)(c, n), (0, o.default)(c, null, [{
  33354. key: "isSupported",
  33355. value: function() {
  33356. try {
  33357. return void 0 !== self.WebSocket
  33358. } catch (e) {
  33359. return !1
  33360. }
  33361. }
  33362. }]), (0, o.default)(c, [{
  33363. key: "destroy",
  33364. value: function() {
  33365. this._ws && this.abort(), (0, s.default)(c.prototype.__proto__ || (0, i
  33366. .default)(c.prototype), "destroy", this).call(this)
  33367. }
  33368. }, {
  33369. key: "open",
  33370. value: function(e) {
  33371. try {
  33372. var t = this._ws = new self.WebSocket(e.url);
  33373. t.binaryType = "arraybuffer", t.onopen = this._onWebSocketOpen.bind(
  33374. this), t.onclose = this._onWebSocketClose.bind(this), t
  33375. .onmessage = this._onWebSocketMessage.bind(this), t.onerror = this
  33376. ._onWebSocketError.bind(this), this._status = d.LoaderStatus
  33377. .kConnecting
  33378. } catch (e) {
  33379. this._status = d.LoaderStatus.kError;
  33380. t = {
  33381. code: e.code,
  33382. msg: e.message
  33383. };
  33384. if (!this._onError) throw new l.RuntimeException(t.msg);
  33385. this._onError(d.LoaderErrors.EXCEPTION, t)
  33386. }
  33387. }
  33388. }, {
  33389. key: "abort",
  33390. value: function() {
  33391. var e = this._ws;
  33392. !e || 0 !== e.readyState && 1 !== e.readyState || (this._requestAbort = !0,
  33393. e.close()), this._ws = null, this._status = d.LoaderStatus.kComplete
  33394. }
  33395. }, {
  33396. key: "_onWebSocketOpen",
  33397. value: function(e) {
  33398. this._status = d.LoaderStatus.kBuffering
  33399. }
  33400. }, {
  33401. key: "_onWebSocketClose",
  33402. value: function(e) {
  33403. !0 !== this._requestAbort ? (this._status = d.LoaderStatus.kComplete, this
  33404. ._onComplete && this._onComplete(0, this._receivedLength - 1)) :
  33405. this._requestAbort = !1
  33406. }
  33407. }, {
  33408. key: "_onWebSocketMessage",
  33409. value: function(e) {
  33410. var t = this;
  33411. if (e.data instanceof ArrayBuffer) this._dispatchArrayBuffer(e.data);
  33412. else if (e.data instanceof Blob) {
  33413. var n = new FileReader;
  33414. n.onload = function() {
  33415. t._dispatchArrayBuffer(n.result)
  33416. }, n.readAsArrayBuffer(e.data)
  33417. } else {
  33418. this._status = d.LoaderStatus.kError;
  33419. e = {
  33420. code: -1,
  33421. msg: "Unsupported WebSocket message type: " + e.data.constructor
  33422. .name
  33423. };
  33424. if (!this._onError) throw new l.RuntimeException(e.msg);
  33425. this._onError(d.LoaderErrors.EXCEPTION, e)
  33426. }
  33427. }
  33428. }, {
  33429. key: "_dispatchArrayBuffer",
  33430. value: function(e) {
  33431. var t = e,
  33432. e = this._receivedLength;
  33433. this._receivedLength += t.byteLength, this._onDataArrival && this
  33434. ._onDataArrival(t, e, this._receivedLength)
  33435. }
  33436. }, {
  33437. key: "_onWebSocketError",
  33438. value: function(e) {
  33439. this._status = d.LoaderStatus.kError;
  33440. e = {
  33441. code: e.code,
  33442. msg: e.message
  33443. };
  33444. if (!this._onError) throw new l.RuntimeException(e.msg);
  33445. this._onError(d.LoaderErrors.EXCEPTION, e)
  33446. }
  33447. }]), o = c;
  33448. function c() {
  33449. (0, r.default)(this, c);
  33450. var e = (0, a.default)(this, (c.__proto__ || (0, i.default)(c)).call(this, "websocket-loader"));
  33451. return e.TAG = "WebSocketLoader", e._needStash = !0, e._ws = null, e._requestAbort = !1, e
  33452. ._receivedLength = 0, e
  33453. }
  33454. t.default = o
  33455. }, function(e, t, n) {
  33456. "use strict";
  33457. Object.defineProperty(t, "__esModule", {
  33458. value: !0
  33459. });
  33460. var i = r(n(1));
  33461. function r(e) {
  33462. return e && e.__esModule ? e : {
  33463. default: e
  33464. }
  33465. }(0, r(n(2)).default)(a, [{
  33466. key: "getConfig",
  33467. value: function(e, t) {
  33468. var n, i = {};
  33469. return 0 !== t.from || -1 !== t.to ? (n = void 0, n = -1 !== t.to ? "bytes=" + t
  33470. .from.toString() + "-" + t.to.toString() : "bytes=" + t.from
  33471. .toString() + "-", i.Range = n) : this._zeroStart && (i.Range =
  33472. "bytes=0-"), {
  33473. url: e,
  33474. headers: i
  33475. }
  33476. }
  33477. }, {
  33478. key: "removeURLParameters",
  33479. value: function(e) {
  33480. return e
  33481. }
  33482. }]), n = a;
  33483. function a(e) {
  33484. (0, i.default)(this, a), this._zeroStart = e || !1
  33485. }
  33486. t.default = n
  33487. }, function(e, t, n) {
  33488. "use strict";
  33489. Object.defineProperty(t, "__esModule", {
  33490. value: !0
  33491. });
  33492. var i = r(n(1));
  33493. function r(e) {
  33494. return e && e.__esModule ? e : {
  33495. default: e
  33496. }
  33497. }(0, r(n(2)).default)(a, [{
  33498. key: "getConfig",
  33499. value: function(e, t) {
  33500. var n = e;
  33501. return 0 === t.from && -1 === t.to || (e = !0, -1 === n.indexOf("?") && (n +=
  33502. "?", e = !1), e && (n += "&"), n += this._startName + "=" + t.from
  33503. .toString(), -1 !== t.to && (n += "&" + this._endName + "=" + t.to
  33504. .toString())), {
  33505. url: n,
  33506. headers: {}
  33507. }
  33508. }
  33509. }, {
  33510. key: "removeURLParameters",
  33511. value: function(e) {
  33512. var t = e.split("?")[0],
  33513. n = void 0,
  33514. i = e.indexOf("?"),
  33515. r = "";
  33516. if (null != (n = -1 !== i ? e.substring(i + 1) : n) && 0 < n.length)
  33517. for (var a = n.split("&"), s = 0; s < a.length; s++) {
  33518. var o = a[s].split("=");
  33519. o[0] !== this._startName && o[0] !== this._endName && (0 < s && (r +=
  33520. "&"), r += a[s])
  33521. }
  33522. return 0 === r.length ? t : t + "?" + r
  33523. }
  33524. }]), n = a;
  33525. function a(e, t) {
  33526. (0, i.default)(this, a), this._startName = e, this._endName = t
  33527. }
  33528. t.default = n
  33529. }, function(e, t, n) {
  33530. "use strict";
  33531. Object.defineProperty(t, "__esModule", {
  33532. value: !0
  33533. });
  33534. var i = M(n(11)),
  33535. r = M(n(20)),
  33536. a = M(n(9)),
  33537. s = M(n(1)),
  33538. o = M(n(2)),
  33539. u = M(n(10)),
  33540. d = M(n(4)),
  33541. l = M(n(33)),
  33542. h = (M(n(62)), M(n(39))),
  33543. c = M(n(318)),
  33544. _ = M(n(40)),
  33545. f = M(n(332)),
  33546. m = M(n(232)),
  33547. p = n(234),
  33548. y = n(63),
  33549. v = n(5),
  33550. g = M(n(233));
  33551. function M(e) {
  33552. return e && e.__esModule ? e : {
  33553. default: e
  33554. }
  33555. }(0, o.default)(L, [{
  33556. key: "destroy",
  33557. value: function() {
  33558. null != this._progressChecker && (window.clearInterval(this._progressChecker),
  33559. this._progressChecker = null), this._transmuxer && this.unload(), this
  33560. ._mediaElement && this.detachMediaElement(), this.e = null, this
  33561. ._mediaDataSource = null, this._emitter && (this._emitter
  33562. .removeAllListeners(), this._emitter = null)
  33563. }
  33564. }, {
  33565. key: "on",
  33566. value: function(e, t) {
  33567. var n = this;
  33568. e === h.default.MEDIA_INFO ? null != this._mediaInfo && i.default.resolve()
  33569. .then(function() {
  33570. n._emitter.emit(h.default.MEDIA_INFO, n.mediaInfo)
  33571. }) : e === h.default.STATISTICS_INFO && null != this._statisticsInfo && i
  33572. .default.resolve().then(function() {
  33573. n._emitter.emit(h.default.STATISTICS_INFO, n.statisticsInfo)
  33574. }), this._emitter.addListener(e, t)
  33575. }
  33576. }, {
  33577. key: "off",
  33578. value: function(e, t) {
  33579. this._emitter.removeListener(e, t)
  33580. }
  33581. }, {
  33582. key: "attachMediaElement",
  33583. value: function(e) {
  33584. var t = this;
  33585. if ((this._mediaElement = e).addEventListener("loadedmetadata", this.e
  33586. .onvLoadedMetadata), e.addEventListener("seeking", this.e.onvSeeking), e
  33587. .addEventListener("canplay", this.e.onvCanPlay), e.addEventListener(
  33588. "stalled", this.e.onvStalled), e.addEventListener("progress", this.e
  33589. .onvProgress), e.addEventListener("timeupdate", this.e.onvTimeUpdate),
  33590. this._msectl = new f.default(this._config), this._msectl.on(m.default
  33591. .UPDATE_END, this._onmseUpdateEnd.bind(this)), this._msectl.on(m.default
  33592. .BUFFER_FULL, this._onmseBufferFull.bind(this)), this._msectl.on(m
  33593. .default.SOURCE_OPEN,
  33594. function() {
  33595. if (t._mseSourceOpened = !0, t._hasPendingLoad)
  33596. for (t._hasPendingLoad = !1, t.load(), 0 < t._stashArray
  33597. .length && console.warn("stash before source open", t
  33598. ._stashArray.length); 0 < t._stashArray.length;) {
  33599. var e = t._stashArray.shift();
  33600. t._onLoaderChunkArrival(e.data, e.byteStart)
  33601. }
  33602. }), this._msectl.on(m.default.SOURCE_END, function() {
  33603. t._emitter.emit(h.default.MEDIA_SOURCE_ENDED)
  33604. }), this._msectl.on(m.default.SOURCE_CLOSE, function() {
  33605. t._mseSourceOpened = !1, t._emitter.emit(h.default
  33606. .MEDIA_SOURCE_CLOSE)
  33607. }), this._msectl.on(m.default.ERROR, function(e) {
  33608. t._emitter.emit(h.default.ERROR, p.ErrorTypes.MEDIA_ERROR, p
  33609. .ErrorDetails.MEDIA_MSE_ERROR, e)
  33610. }), this._msectl.on(m.default.SOURCE_ADD_ERROR, function() {
  33611. t._emitter.emit(h.default.MEDIA_SOURCE_ADD_ERROR)
  33612. }), this._msectl.attachMediaElement(e), null != this._pendingSeekTime) try {
  33613. e.currentTime = this._pendingSeekTime, this._pendingSeekTime = null
  33614. } catch (e) {}
  33615. }
  33616. }, {
  33617. key: "detachMediaElement",
  33618. value: function() {
  33619. this._mediaElement && (this._msectl.detachMediaElement(), this._mediaElement
  33620. .removeEventListener("loadedmetadata", this.e.onvLoadedMetadata), this
  33621. ._mediaElement.removeEventListener("seeking", this.e.onvSeeking), this
  33622. ._mediaElement.removeEventListener("canplay", this.e.onvCanPlay), this
  33623. ._mediaElement.removeEventListener("stalled", this.e.onvStalled), this
  33624. ._mediaElement.removeEventListener("progress", this.e.onvProgress), this
  33625. ._mediaElement.removeEventListener("timeupdate", this.e.onvTimeUpdate),
  33626. this._mediaElement = null), this._msectl && (this._msectl.destroy(),
  33627. this._msectl = null), this._stashArray = []
  33628. }
  33629. }, {
  33630. key: "load",
  33631. value: function() {
  33632. var i = this;
  33633. if (!this._mediaElement) throw new v.IllegalStateException(
  33634. "HTMLMediaElement must be attached before load()!");
  33635. if (this._transmuxer) throw new v.IllegalStateException(
  33636. "FlvPlayer.load() has been called, please call unload() first!");
  33637. this._hasPendingLoad || (this._config.deferLoadAfterSourceOpen && !1 === this
  33638. ._mseSourceOpened ? this._hasPendingLoad = !0 : (0 < this._mediaElement
  33639. .readyState && (this._requestSetTime = !0, this._mediaElement
  33640. .currentTime = 0), this.openLatencyMonitor(), this._transmuxer =
  33641. new c.default(this._mediaDataSource, this._config), this._transmuxer
  33642. .on(_.default.INIT_SEGMENT, function(e, t) {
  33643. i._msectl.appendInitSegment(t)
  33644. }), this._transmuxer.on(_.default.MEDIA_SEGMENT, function(e, t) {
  33645. var n;
  33646. i._msectl.appendMediaSegment(t), i._config.lazyLoad && !i
  33647. ._config.isLive && (n = i._mediaElement.currentTime, t
  33648. .info.endDts >= 1e3 * (n + i._config
  33649. .lazyLoadMaxDuration) && null == i
  33650. ._progressChecker && (d.default.v(i.TAG,
  33651. "Maximum buffering duration exceeded, suspend transmuxing task"
  33652. ), i._suspendTransmuxer()))
  33653. }), this._transmuxer.on(_.default.LOADING_COMPLETE, function() {
  33654. i._msectl.endOfStream(), i._emitter.emit(h.default
  33655. .LOADING_COMPLETE)
  33656. }), this._transmuxer.on(_.default.RECOVERED_EARLY_EOF, function() {
  33657. i._emitter.emit(h.default.RECOVERED_EARLY_EOF)
  33658. }), this._transmuxer.on(_.default.IO_ERROR, function(e, t) {
  33659. i._emitter.emit(h.default.ERROR, p.ErrorTypes.NETWORK_ERROR,
  33660. e, t)
  33661. }), this._transmuxer.on(_.default.DEMUX_ERROR, function(e, t) {
  33662. i._emitter.emit(h.default.ERROR, p.ErrorTypes.MEDIA_ERROR,
  33663. e, {
  33664. code: -1,
  33665. msg: t
  33666. })
  33667. }), this._transmuxer.on(_.default.MEDIA_INFO, function(e) {
  33668. i._mediaInfo = e, i._emitter.emit(h.default.MEDIA_INFO, (0,
  33669. r.default)({}, e))
  33670. }), this._transmuxer.on(_.default.METADATA_ARRIVED, function(e) {
  33671. i._emitter.emit(h.default.METADATA_ARRIVED, e)
  33672. }), this._transmuxer.on(_.default.SCRIPTDATA_ARRIVED, function(e) {
  33673. i._emitter.emit(h.default.SCRIPTDATA_ARRIVED, e)
  33674. }), this._transmuxer.on(_.default.STATISTICS_INFO, function(e) {
  33675. i._statisticsInfo = i._fillStatisticsInfo(e), i._emitter
  33676. .emit(h.default.STATISTICS_INFO, (0, r.default)({}, i
  33677. ._statisticsInfo))
  33678. }), this._transmuxer.on(_.default.RECOMMEND_SEEKPOINT, function(e) {
  33679. i._mediaElement && !i._config.accurateSeek && (i
  33680. ._requestSetTime = !0, i._mediaElement.currentTime =
  33681. e / 1e3)
  33682. }), this._transmuxer.on(_.default.VIDEO_RESOLUTION_CHANGED,
  33683. function(e) {
  33684. i._emitter.emit(h.default.VIDEO_RESOLUTION_CHANGED, e)
  33685. }), this._transmuxer.on(_.default.PARSEDDATA_ARRIVED, function(
  33686. e, t) {
  33687. i._onParsedData(e, t, i.iWndNum)
  33688. }), this._transmuxer.open()))
  33689. }
  33690. }, {
  33691. key: "unload",
  33692. value: function() {
  33693. this._mediaElement && this._mediaElement.pause(), this._msectl && this._msectl
  33694. .seek(0), this._transmuxer && (this._transmuxer.close(), this._transmuxer
  33695. .destroy(), this._transmuxer = null), this._durationMonitor && (self
  33696. .clearInterval(this._durationMonitor), this._durationMonitor = null),
  33697. this._latencyDetectTimer && (self.clearInterval(this._latencyDetectTimer),
  33698. this._latencyDetectTimer = null, this._latencyAdjustCount = 0, d.default
  33699. .i(this.TAG, "--== Total latency adjust count : " + this
  33700. ._latencyAdjustCountTotal), this._latencyAdjustCountTotal = 0), this
  33701. ._forzenTimes = 0, this._lastDecodedFrames = 0
  33702. }
  33703. }, {
  33704. key: "play",
  33705. value: function() {
  33706. return this._mediaElement.play()
  33707. }
  33708. }, {
  33709. key: "pause",
  33710. value: function() {
  33711. this._mediaElement.pause()
  33712. }
  33713. }, {
  33714. key: "openFileSystem",
  33715. value: function(e) {
  33716. this._isRecord = !0, this._fs = new g.default(e, this._initSegment.data)
  33717. }
  33718. }, {
  33719. key: "downloadFile",
  33720. value: function() {
  33721. if (!this._isRecord || !this._fs) throw new Error("FileSystem is not ready");
  33722. this._fs.download(), this._isRecord = !1, this._fs = null
  33723. }
  33724. }, {
  33725. key: "setRecordFlag",
  33726. value: function(e) {
  33727. this._transmuxer.setRecordFlag(e)
  33728. }
  33729. }, {
  33730. key: "CleanCache",
  33731. value: function() {
  33732. this._transmuxer.CleanCache()
  33733. }
  33734. }, {
  33735. key: "_onLoaderChunkArrival",
  33736. value: function(e, t, n) {
  33737. this._transmuxer.feed(e, t, n)
  33738. }
  33739. }, {
  33740. key: "onLoaderChunkArrival",
  33741. value: function(e, t, n) {
  33742. this._mseSourceOpened ? (0 < this._stashArray.length && this._stashArray.push({
  33743. data: e,
  33744. byteStart: t
  33745. }), this._onLoaderChunkArrival(e, t, n)) : this._stashArray.push({
  33746. data: e,
  33747. byteStart: t
  33748. })
  33749. }
  33750. }, {
  33751. key: "_fillStatisticsInfo",
  33752. value: function(e) {
  33753. if (e.playerType = this._type, !(this
  33754. ._mediaElement instanceof HTMLVideoElement)) return e;
  33755. var t, n = !0,
  33756. i = 0,
  33757. r = 0;
  33758. return this._mediaElement.getVideoPlaybackQuality ? (i = (t = this._mediaElement
  33759. .getVideoPlaybackQuality()).totalVideoFrames, r = t
  33760. .droppedVideoFrames) : null != this._mediaElement
  33761. .webkitDecodedFrameCount ? (i = this._mediaElement.webkitDecodedFrameCount,
  33762. r = this._mediaElement.webkitDroppedFrameCount) : n = !1, n && (e
  33763. .decodedFrames = i, e.droppedFrames = r), e
  33764. }
  33765. }, {
  33766. key: "enableVideoStateMonitor",
  33767. value: function(e) {
  33768. this._enableDurationMonitor = e, this._enableVideoFrozenMonitor = e
  33769. }
  33770. }, {
  33771. key: "_increaseLatency",
  33772. value: function(e) {
  33773. this._curLatencyThreshold += e, this._curLatencyThreshold > this._config
  33774. .highLatencyThreshold && (this._curLatencyThreshold = this._config
  33775. .highLatencyThreshold), d.default.i(this.TAG, "latency +" + this
  33776. ._curLatencyThreshold)
  33777. }
  33778. }, {
  33779. key: "_decreaseLatency",
  33780. value: function(e) {
  33781. this._curLatencyThreshold -= e, this._curLatencyThreshold < this._config
  33782. .lowLatencyThreshold && (this._curLatencyThreshold = this._config
  33783. .lowLatencyThreshold), d.default.i(this.TAG, "latency -" + this
  33784. ._curLatencyThreshold)
  33785. }
  33786. }, {
  33787. key: "_updateCurrentLatencyThreshold",
  33788. value: function(e) {
  33789. this._curLatencyThreshold = e, this._curLatencyThreshold < this._config
  33790. .lowLatencyThreshold && (this._curLatencyThreshold = this._config
  33791. .lowLatencyThreshold), this._curLatencyThreshold > this._config
  33792. .highLatencyThreshold && (this._curLatencyThreshold = this._config
  33793. .highLatencyThreshold), d.default.i(this.TAG,
  33794. "update current latency threshold : " + this._curLatencyThreshold)
  33795. }
  33796. }, {
  33797. key: "_adjustDurationGap",
  33798. value: function() {
  33799. this._latencyAdjustCount < this._latencyDetectThreshold ? this._decreaseLatency(
  33800. this._latencyDetectAdjustStep) : this._latencyAdjustCount > this
  33801. ._latencyDetectThreshold && this._increaseLatency(5 * this
  33802. ._latencyDetectAdjustStep), this._latencyAdjustCount = 0
  33803. }
  33804. }, {
  33805. key: "_doDurationMonitor",
  33806. value: function() {
  33807. if (this._enableDurationMonitor && this._mseSourceOpened && (!this._msectl || !
  33808. this._msectl.checkSourceBufferNull())) {
  33809. var e = this._mediaElement.buffered,
  33810. t = this._mediaElement.currentTime,
  33811. n = this._mediaElement.paused;
  33812. if (null != e && 0 != e.length) {
  33813. e = e.end(0), t = e - t;
  33814. if (!n && t > this._curLatencyThreshold && (e = e - this
  33815. ._decreaseDurationStep, d.default.w(this.TAG,
  33816. "high latency gap {" + t + "}, decrease " + this
  33817. ._decreaseDurationStep + " and set to " + e), this
  33818. ._mediaElement.currentTime = e, this._requestSetTime = !0, this
  33819. ._latencyAdjustCountTotal++, 2 < this
  33820. ._latencyAdjustCountTotal && (++this._latencyAdjustCount, i =
  33821. t + this._latencyDetectAdjustStep, this
  33822. ._updateCurrentLatencyThreshold(i))), this
  33823. ._enableVideoFrozenMonitor) {
  33824. var i = 0;
  33825. if (this._mediaElement.getVideoPlaybackQuality) i = this
  33826. ._mediaElement.getVideoPlaybackQuality().totalVideoFrames;
  33827. else {
  33828. if (null == this._mediaElement.webkitDecodedFrameCount) return;
  33829. i = this._mediaElement.webkitDecodedFrameCount
  33830. }
  33831. 0 != this._lastDecodedFrames && (this._lastDecodedFrames == i ? this
  33832. ._forzenTimes++ : this._forzenTimes = 0), this
  33833. ._lastDecodedFrames = i, this._forzenTimes >= this
  33834. ._frozenTimesThreshold && (d.default.w(this.TAG,
  33835. "Report video frozen event"), this._emitter.emit(h
  33836. .default.VIDEO_FROZEN), this._forzenTimes = 0)
  33837. }
  33838. }
  33839. }
  33840. }
  33841. }, {
  33842. key: "openLatencyMonitor",
  33843. value: function() {
  33844. this._enableDurationMonitor && null == this._durationMonitor && (this
  33845. ._durationMonitor = self.setInterval(this._doDurationMonitor.bind(this),
  33846. this._videoStateMonitorInterval), this._forzenTimes = 0, this
  33847. ._lastDecodedFrames = 0, this._latencyDetectTimer = self.setInterval(
  33848. this._adjustDurationGap.bind(this), this._latencyDetectInterval))
  33849. }
  33850. }, {
  33851. key: "closeLatencyMonitor",
  33852. value: function() {
  33853. this._durationMonitor && (clearInterval(this._durationMonitor), this
  33854. ._durationMonitor = null), this._latencyDetectTimer && (clearInterval(
  33855. this._latencyDetectTimer), this._latencyDetectTimer = null), this
  33856. ._emitter.listeners("timeupdate") && this._mediaElement.removeEventListener(
  33857. "timeupdate", this.e.onvTimeUpdate)
  33858. }
  33859. }, {
  33860. key: "_onmseUpdateEnd",
  33861. value: function() {
  33862. if (this._config.lazyLoad && !this._config.isLive) {
  33863. for (var e = this._mediaElement.buffered, t = this._mediaElement
  33864. .currentTime, n = 0, i = 0; i < e.length; i++) {
  33865. var r = e.start(i),
  33866. a = e.end(i);
  33867. if (r <= t && t < a) {
  33868. n = a;
  33869. break
  33870. }
  33871. }
  33872. n >= t + this._config.lazyLoadMaxDuration && null == this
  33873. ._progressChecker && (d.default.v(this.TAG,
  33874. "Maximum buffering duration exceeded, suspend transmuxing task"
  33875. ), this._suspendTransmuxer())
  33876. }
  33877. }
  33878. }, {
  33879. key: "_onmseBufferFull",
  33880. value: function() {
  33881. d.default.v(this.TAG, "MSE SourceBuffer is full, suspend transmuxing task"),
  33882. null == this._progressChecker && this._suspendTransmuxer(), this._emitter
  33883. .emit(h.default.MS_BUFFER_FULL)
  33884. }
  33885. }, {
  33886. key: "_suspendTransmuxer",
  33887. value: function() {
  33888. this._transmuxer && (this._transmuxer.pause(), null == this._progressChecker &&
  33889. (this._progressChecker = window.setInterval(this._checkProgressAndResume
  33890. .bind(this), 1e3)))
  33891. }
  33892. }, {
  33893. key: "_checkProgressAndResume",
  33894. value: function() {
  33895. for (var e = this._mediaElement.currentTime, t = this._mediaElement.buffered,
  33896. n = !1, i = 0; i < t.length; i++) {
  33897. var r = t.start(i),
  33898. a = t.end(i);
  33899. if (r <= e && e < a) {
  33900. e >= a - this._config.lazyLoadRecoverDuration && (n = !0);
  33901. break
  33902. }
  33903. }
  33904. n && (window.clearInterval(this._progressChecker), this._progressChecker = null,
  33905. n && (d.default.v(this.TAG, "Continue loading from paused position"),
  33906. this._transmuxer.resume()))
  33907. }
  33908. }, {
  33909. key: "_isTimepointBuffered",
  33910. value: function(e) {
  33911. for (var t = this._mediaElement.buffered, n = 0; n < t.length; n++) {
  33912. var i = t.start(n),
  33913. r = t.end(n);
  33914. if (i <= e && e < r) return !0
  33915. }
  33916. return !1
  33917. }
  33918. }, {
  33919. key: "_internalSeek",
  33920. value: function(e) {
  33921. var t, n = this._isTimepointBuffered(e),
  33922. i = !1,
  33923. r = 0;
  33924. e < 1 && 0 < this._mediaElement.buffered.length && (((t = this._mediaElement
  33925. .buffered.start(0)) < 1 && e < t || l.default.safari) && (i = !0,
  33926. r = l.default.safari ? .1 : t)), i ? (this._requestSetTime = !0, this
  33927. ._mediaElement.currentTime = r) : n ? (this._alwaysSeekKeyframe ? (n =
  33928. this._msectl.getNearestKeyframe(Math.floor(1e3 * e)), this
  33929. ._requestSetTime = !0, this._mediaElement.currentTime = null != n ?
  33930. n.dts / 1e3 : e) : (this._requestSetTime = !0, this._mediaElement
  33931. .currentTime = e), null != this._progressChecker && this
  33932. ._checkProgressAndResume()) : (null != this._progressChecker && (window
  33933. .clearInterval(this._progressChecker), this._progressChecker = null
  33934. ), this._msectl.seek(e), this._transmuxer.seek(Math.floor(1e3 * e)),
  33935. this._config.accurateSeek && (this._requestSetTime = !0, this
  33936. ._mediaElement.currentTime = e))
  33937. }
  33938. }, {
  33939. key: "_checkAndApplyUnbufferedSeekpoint",
  33940. value: function() {
  33941. var e;
  33942. this._seekpointRecord && (this._seekpointRecord.recordTime <= this._now() -
  33943. 100 ? (e = this._mediaElement.currentTime, this._seekpointRecord = null,
  33944. this._isTimepointBuffered(e) || (null != this._progressChecker && (
  33945. window.clearTimeout(this._progressChecker), this
  33946. ._progressChecker = null), this._msectl.seek(e), this
  33947. ._transmuxer.seek(Math.floor(1e3 * e)), this._config
  33948. .accurateSeek && (this._requestSetTime = !0, this._mediaElement
  33949. .currentTime = e))) : window.setTimeout(this
  33950. ._checkAndApplyUnbufferedSeekpoint.bind(this), 50))
  33951. }
  33952. }, {
  33953. key: "_checkAndResumeStuckPlayback",
  33954. value: function(e) {
  33955. var t = this._mediaElement;
  33956. e || !this._receivedCanPlay || t.readyState < 2 ? 0 < (e = t.buffered).length &&
  33957. t.currentTime < e.start(0) && (d.default.w(this.TAG,
  33958. "Playback seems stuck at " + t.currentTime + ", seek to " + e.start(
  33959. 0)), this._requestSetTime = !0, this._mediaElement.currentTime =
  33960. e.start(0), this._mediaElement.removeEventListener("progress", this.e
  33961. .onvProgress)) : this._mediaElement.removeEventListener("progress",
  33962. this.e.onvProgress)
  33963. }
  33964. }, {
  33965. key: "_onvLoadedMetadata",
  33966. value: function(e) {
  33967. null != this._pendingSeekTime && (this._mediaElement.currentTime = this
  33968. ._pendingSeekTime, this._pendingSeekTime = null), this._emitter.emit(h
  33969. .default.LOADED_META_DATA)
  33970. }
  33971. }, {
  33972. key: "_onvSeeking",
  33973. value: function(e) {
  33974. var t = this._mediaElement.currentTime,
  33975. n = this._mediaElement.buffered;
  33976. if (this._requestSetTime) this._requestSetTime = !1;
  33977. else {
  33978. if (t < 1 && 0 < n.length) {
  33979. var i = n.start(0);
  33980. if (i < 1 && t < i || l.default.safari) return this._requestSetTime = !
  33981. 0, void(this._mediaElement.currentTime = l.default.safari ? .1 :
  33982. i)
  33983. }
  33984. if (this._isTimepointBuffered(t)) return !this._alwaysSeekKeyframe ||
  33985. null != (i = this._msectl.getNearestKeyframe(Math.floor(1e3 *
  33986. t))) && (this._requestSetTime = !0, this._mediaElement
  33987. .currentTime =
  33988. i.dts / 1e3), void(null != this._progressChecker && this
  33989. ._checkProgressAndResume());
  33990. this._seekpointRecord = {
  33991. seekPoint: t,
  33992. recordTime: this._now()
  33993. }, window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),
  33994. 50)
  33995. }
  33996. }
  33997. }, {
  33998. key: "_onvCanPlay",
  33999. value: function(e) {
  34000. var t;
  34001. this._receivedCanPlay = !0, this._mediaElement.removeEventListener("canplay",
  34002. this.e.onvCanPlay), this._mediaElement.play(), this._enableAudioGain &&
  34003. (g_audioSource || (t = this._mediaElement, g_audioSource = g_audioCtx
  34004. .createMediaElementSource(t)), g_audioSource.connect(g_audioGain), d
  34005. .default.d(this.TAG, "Enable audio gain, level = " + this
  34006. ._audioGainLevel))
  34007. }
  34008. }, {
  34009. key: "_onvStalled",
  34010. value: function(e) {
  34011. this._checkAndResumeStuckPlayback(!0)
  34012. }
  34013. }, {
  34014. key: "_onvProgress",
  34015. value: function(e) {
  34016. this._checkAndResumeStuckPlayback()
  34017. }
  34018. }, {
  34019. key: "_onvTimeUpdate",
  34020. value: function(e) {
  34021. var t, n, i = e.target;
  34022. i.currentTime && i.seekable && i.playbackRate && 0 != i.seekable.length && this
  34023. ._enableDurationMonitor && (n = i.currentTime, t = i.seekable.end(0), e = i
  34024. .playbackRate, (n = t - n) > this._fastvalue && 1 === e && (i
  34025. .playbackRate = 1.2), n < this._slowvalue && 1 < e && (i
  34026. .playbackRate = 1))
  34027. }
  34028. }, {
  34029. key: "type",
  34030. get: function() {
  34031. return this._type
  34032. }
  34033. }, {
  34034. key: "buffered",
  34035. get: function() {
  34036. return this._mediaElement.buffered
  34037. }
  34038. }, {
  34039. key: "duration",
  34040. get: function() {
  34041. return this._mediaElement.duration
  34042. }
  34043. }, {
  34044. key: "volume",
  34045. get: function() {
  34046. return this._mediaElement.volume
  34047. },
  34048. set: function(e) {
  34049. this._mediaElement.volume = e
  34050. }
  34051. }, {
  34052. key: "muted",
  34053. get: function() {
  34054. return this._mediaElement.muted
  34055. },
  34056. set: function(e) {
  34057. this._mediaElement.muted = e
  34058. }
  34059. }, {
  34060. key: "currentTime",
  34061. get: function() {
  34062. return this._mediaElement ? this._mediaElement.currentTime : 0
  34063. },
  34064. set: function(e) {
  34065. this._mediaElement ? this._internalSeek(e) : this._pendingSeekTime = e
  34066. }
  34067. }, {
  34068. key: "mediaInfo",
  34069. get: function() {
  34070. return (0, r.default)({}, this._mediaInfo)
  34071. }
  34072. }, {
  34073. key: "statisticsInfo",
  34074. get: function() {
  34075. return null == this._statisticsInfo && (this._statisticsInfo = {}), this
  34076. ._statisticsInfo = this._fillStatisticsInfo(this._statisticsInfo), (0, r
  34077. .default)({}, this._statisticsInfo)
  34078. }
  34079. }, {
  34080. key: "onParsedData",
  34081. set: function(e) {
  34082. this._onParsedData = e
  34083. }
  34084. }]), o = L;
  34085. function L(e, t) {
  34086. if ((0, s.default)(this, L), this.TAG = "FlvPlayer", this._type = "FlvPlayer", this._emitter =
  34087. new u.default, this._config = (0, y.createDefaultConfig)(), "object" === (void 0 === t ?
  34088. "undefined" : (0, a.default)(t)) && (0, r.default)(this._config, t), "flv" !== e.type
  34089. .toLowerCase()) throw new v.InvalidArgumentException(
  34090. "FlvPlayer requires an flv MediaDataSource input!");
  34091. !0 === e.isLive && (this._config.isLive = !0), this.e = {
  34092. onvLoadedMetadata: this._onvLoadedMetadata.bind(this),
  34093. onvSeeking: this._onvSeeking.bind(this),
  34094. onvCanPlay: this._onvCanPlay.bind(this),
  34095. onvStalled: this._onvStalled.bind(this),
  34096. onvProgress: this._onvProgress.bind(this),
  34097. onvTimeUpdate: this._onvTimeUpdate.bind(this)
  34098. }, self.performance && self.performance.now ? this._now = self.performance.now.bind(self
  34099. .performance) : this._now = Date.now, this._pendingSeekTime = null, this
  34100. ._requestSetTime = !1, this._seekpointRecord = null, this._progressChecker = null, this
  34101. ._mediaDataSource = e, this._mediaElement = null, this._msectl = null, this._transmuxer =
  34102. null, this._fastvalue = 1.5, this._slowvalue = .5, 0 < e.stashInitialSize && (this
  34103. ._fastvalue = 4, this._slowvalue = 2.5), this._stashArray = [], this
  34104. ._mseSourceOpened = !1, this._hasPendingLoad = !1, this._receivedCanPlay = !1, this
  34105. ._mediaInfo = null, this._statisticsInfo = null;
  34106. e = l.default.chrome && (l.default.version.major < 50 || 50 === l.default.version.major && l
  34107. .default.version.build < 2661);
  34108. this._alwaysSeekKeyframe = !!(e || l.default.msedge || l.default.msie), this
  34109. ._alwaysSeekKeyframe && (this._config.accurateSeek = !1), this._videoStateMonitorInterval =
  34110. this._config.videoStateMonitorInterval, this._enableDurationMonitor = this._config
  34111. .enableDurationMonitor, this._curLatencyThreshold = this._config.lowLatencyThreshold, this
  34112. ._decreaseDurationStep = this._config.decreaseDurationStep, this._durationMonitor = null,
  34113. this._enableVideoFrozenMonitor = this._config.enableVideoFrozenMonitor, this
  34114. ._frozenTimesThreshold = this._config.frozenTimesThreshold, this._forzenTimes = 0, this
  34115. ._lastDecodedFrames = 0, this._latencyDetectInterval = this._config.latencyDetectInterval,
  34116. this._latencyDetectThreshold = this._config.latencyDetectThreshold, this
  34117. ._latencyDetectAdjustStep = this._config.latencyDetectAdjustStep, this._latencyDetectTimer =
  34118. null, this._latencyAdjustCount = 0, this._latencyAdjustCountTotal = 0, this
  34119. ._enableAudioGain = this._config.enableAudioGain, this._audioGainLevel = 0 < this._config
  34120. .audioGainLevel ? this._config.audioGainLevel : 1, this.iWndNum = this._config.WDInfo.index
  34121. }
  34122. t.default = o
  34123. }, function(e, t, n) {
  34124. "use strict";
  34125. Object.defineProperty(t, "__esModule", {
  34126. value: !0
  34127. });
  34128. var i = f(n(38)),
  34129. a = f(n(11)),
  34130. r = f(n(1)),
  34131. s = f(n(2)),
  34132. o = f(n(10)),
  34133. u = f(n(4)),
  34134. d = f(n(64)),
  34135. l = f(n(229)),
  34136. h = f(n(40)),
  34137. c = (f(n(231)), f(n(65))),
  34138. _ = f(n(331));
  34139. function f(e) {
  34140. return e && e.__esModule ? e : {
  34141. default: e
  34142. }
  34143. }(0, s.default)(m, [{
  34144. key: "destroy",
  34145. value: function() {
  34146. this._worker ? this._workerDestroying || (this._workerDestroying = !0, this
  34147. ._worker.postMessage({
  34148. cmd: "destroy"
  34149. }), d.default.removeListener(this.e.onLoggingConfigChanged), this.e =
  34150. null) : (this._controller.destroy(), this._controller = null), this
  34151. ._emitter.removeAllListeners(), this._emitter = null
  34152. }
  34153. }, {
  34154. key: "on",
  34155. value: function(e, t) {
  34156. this._emitter.addListener(e, t)
  34157. }
  34158. }, {
  34159. key: "off",
  34160. value: function(e, t) {
  34161. this._emitter.removeListener(e, t)
  34162. }
  34163. }, {
  34164. key: "hasWorker",
  34165. value: function() {
  34166. return null != this._worker
  34167. }
  34168. }, {
  34169. key: "open",
  34170. value: function() {
  34171. this._worker ? this._worker.postMessage({
  34172. cmd: "start"
  34173. }) : this._controller.start()
  34174. }
  34175. }, {
  34176. key: "close",
  34177. value: function() {
  34178. this._worker ? this._worker.postMessage({
  34179. cmd: "stop"
  34180. }) : this._controller.stop()
  34181. }
  34182. }, {
  34183. key: "seek",
  34184. value: function(e) {
  34185. this._worker ? this._worker.postMessage({
  34186. cmd: "seek",
  34187. param: e
  34188. }) : this._controller.seek(e)
  34189. }
  34190. }, {
  34191. key: "pause",
  34192. value: function() {
  34193. this._worker ? this._worker.postMessage({
  34194. cmd: "pause"
  34195. }) : this._controller.pause()
  34196. }
  34197. }, {
  34198. key: "resume",
  34199. value: function() {
  34200. this._worker ? this._worker.postMessage({
  34201. cmd: "resume"
  34202. }) : this._controller.resume()
  34203. }
  34204. }, {
  34205. key: "feed",
  34206. value: function(e, t, n) {
  34207. this.hasWorker() ? this._worker.postMessage({
  34208. cmd: "feed",
  34209. feedData: {
  34210. data: e,
  34211. byteStart: t,
  34212. receivedLength: n
  34213. }
  34214. }) : this._controller._ioctl._onLoaderChunkArrival(e, t, n)
  34215. }
  34216. }, {
  34217. key: "setRecordFlag",
  34218. value: function(e) {
  34219. this.hasWorker() ? this._worker.postMessage({
  34220. cmd: "set_record_flag",
  34221. value: e
  34222. }) : this._controller._demuxer.recordFlag = e
  34223. }
  34224. }, {
  34225. key: "CleanCache",
  34226. value: function() {
  34227. this.hasWorker() ? this._worker.postMessage({
  34228. cmd: "cleancache"
  34229. }) : this._controller._ioctl._flushStashBuffer(!0)
  34230. }
  34231. }, {
  34232. key: "_onInitSegment",
  34233. value: function(e, t) {
  34234. var n = this;
  34235. a.default.resolve().then(function() {
  34236. null != n._emitter && n._emitter.emit(h.default.INIT_SEGMENT, e, t)
  34237. })
  34238. }
  34239. }, {
  34240. key: "_onMediaSegment",
  34241. value: function(e, t) {
  34242. var n = this;
  34243. a.default.resolve().then(function() {
  34244. null != n._emitter && n._emitter.emit(h.default.MEDIA_SEGMENT, e, t)
  34245. })
  34246. }
  34247. }, {
  34248. key: "_onLoadingComplete",
  34249. value: function() {
  34250. var e = this;
  34251. a.default.resolve().then(function() {
  34252. e._emitter.emit(h.default.LOADING_COMPLETE)
  34253. })
  34254. }
  34255. }, {
  34256. key: "_onRecoveredEarlyEof",
  34257. value: function() {
  34258. var e = this;
  34259. a.default.resolve().then(function() {
  34260. e._emitter.emit(h.default.RECOVERED_EARLY_EOF)
  34261. })
  34262. }
  34263. }, {
  34264. key: "_onMediaInfo",
  34265. value: function(e) {
  34266. var t = this;
  34267. a.default.resolve().then(function() {
  34268. null != t._emitter && t._emitter.emit(h.default.MEDIA_INFO, e)
  34269. })
  34270. }
  34271. }, {
  34272. key: "_onMetaDataArrived",
  34273. value: function(e) {
  34274. var t = this;
  34275. a.default.resolve().then(function() {
  34276. null != t._emitter && t._emitter.emit(h.default.METADATA_ARRIVED, e)
  34277. })
  34278. }
  34279. }, {
  34280. key: "_onScriptDataArrived",
  34281. value: function(e) {
  34282. var t = this;
  34283. a.default.resolve().then(function() {
  34284. null != t._emitter && t._emitter.emit(h.default.SCRIPTDATA_ARRIVED,
  34285. e)
  34286. })
  34287. }
  34288. }, {
  34289. key: "_onStatisticsInfo",
  34290. value: function(e) {
  34291. var t = this;
  34292. a.default.resolve().then(function() {
  34293. t._emitter.emit(h.default.STATISTICS_INFO, e)
  34294. })
  34295. }
  34296. }, {
  34297. key: "_onIOError",
  34298. value: function(e, t) {
  34299. var n = this;
  34300. a.default.resolve().then(function() {
  34301. null != n._emitter && n._emitter.emit(h.default.IO_ERROR, e, t)
  34302. })
  34303. }
  34304. }, {
  34305. key: "_onDemuxError",
  34306. value: function(e, t) {
  34307. var n = this;
  34308. a.default.resolve().then(function() {
  34309. null != n._emitter && n._emitter.emit(h.default.DEMUX_ERROR, e, t)
  34310. })
  34311. }
  34312. }, {
  34313. key: "_onRecommendSeekpoint",
  34314. value: function(e) {
  34315. var t = this;
  34316. a.default.resolve().then(function() {
  34317. t._emitter.emit(h.default.RECOMMEND_SEEKPOINT, e)
  34318. })
  34319. }
  34320. }, {
  34321. key: "_onLoggingConfigChanged",
  34322. value: function(e) {
  34323. this._worker && this._worker.postMessage({
  34324. cmd: "logging_config",
  34325. param: e
  34326. })
  34327. }
  34328. }, {
  34329. key: "_onVideoResolutionChanged",
  34330. value: function(e) {
  34331. var t = this;
  34332. a.default.resolve().then(function() {
  34333. null != t._emitter && t._emitter.emit(h.default
  34334. .VIDEO_RESOLUTION_CHANGED, e)
  34335. })
  34336. }
  34337. }, {
  34338. key: "_onWorkerMessage",
  34339. value: function(e) {
  34340. var t = e.data,
  34341. n = t.data;
  34342. if ("destroyed" === t.msg || this._workerDestroying) return this
  34343. ._workerDestroying = !1, this._worker.terminate(), void(this._worker =
  34344. null);
  34345. switch (t.msg) {
  34346. case h.default.INIT_SEGMENT:
  34347. case h.default.MEDIA_SEGMENT:
  34348. this._emitter.emit(t.msg, n.type, n.data);
  34349. break;
  34350. case h.default.LOADING_COMPLETE:
  34351. case h.default.RECOVERED_EARLY_EOF:
  34352. this._emitter.emit(t.msg);
  34353. break;
  34354. case h.default.MEDIA_INFO:
  34355. (0, i.default)(n, c.default.prototype), this._emitter.emit(t.msg, n);
  34356. break;
  34357. case h.default.METADATA_ARRIVED:
  34358. case h.default.SCRIPTDATA_ARRIVED:
  34359. case h.default.STATISTICS_INFO:
  34360. this._emitter.emit(t.msg, n);
  34361. break;
  34362. case h.default.IO_ERROR:
  34363. case h.default.DEMUX_ERROR:
  34364. this._emitter.emit(t.msg, n.type, n.info);
  34365. break;
  34366. case h.default.RECOMMEND_SEEKPOINT:
  34367. this._emitter.emit(t.msg, n);
  34368. break;
  34369. case "logcat_callback":
  34370. u.default.emitter.emit("log", n.type, n.logcat);
  34371. break;
  34372. case h.default.PARSEDDATA_ARRIVED:
  34373. this._emitter.emit(t.msg, n.databuf, n.dataType)
  34374. }
  34375. }
  34376. }, {
  34377. key: "_parsedDataArrived",
  34378. value: function(e, t, n, i) {
  34379. var r = this;
  34380. a.default.resolve().then(function() {
  34381. r._emitter && r._emitter.emit(h.default.PARSEDDATA_ARRIVED, e, t, n,
  34382. i)
  34383. })
  34384. }
  34385. }]), s = m;
  34386. function m(t, n) {
  34387. if ((0, r.default)(this, m), this.TAG = "Transmuxer", this._emitter = new o.default, n
  34388. .enableWorker && "undefined" != typeof Worker) try {
  34389. this._worker = (0, _.default)(231), this._workerDestroying = !1, this._worker
  34390. .addEventListener("message", this._onWorkerMessage.bind(this)), this._worker
  34391. .postMessage({
  34392. cmd: "init",
  34393. param: [t, n]
  34394. }), this.e = {
  34395. onLoggingConfigChanged: this._onLoggingConfigChanged.bind(this)
  34396. }, d.default.registerListener(this.e.onLoggingConfigChanged), this._worker
  34397. .postMessage({
  34398. cmd: "logging_config",
  34399. param: d.default.getConfig()
  34400. })
  34401. } catch (e) {
  34402. u.default.e(this.TAG,
  34403. "Error while initialize transmuxing worker, fallback to inline transmuxing"),
  34404. this._worker = null, this._controller = new l.default(t, n)
  34405. } else this._controller = new l.default(t, n);
  34406. this._controller && ((n = this._controller).on(h.default.IO_ERROR, this._onIOError.bind(this)),
  34407. n.on(h.default.DEMUX_ERROR, this._onDemuxError.bind(this)), n.on(h.default.INIT_SEGMENT,
  34408. this._onInitSegment.bind(this)), n.on(h.default.MEDIA_SEGMENT, this._onMediaSegment
  34409. .bind(this)), n.on(h.default.LOADING_COMPLETE, this._onLoadingComplete.bind(this)),
  34410. n.on(h.default.RECOVERED_EARLY_EOF, this._onRecoveredEarlyEof.bind(this)), n.on(h
  34411. .default.MEDIA_INFO, this._onMediaInfo.bind(this)), n.on(h.default.METADATA_ARRIVED,
  34412. this._onMetaDataArrived.bind(this)), n.on(h.default.SCRIPTDATA_ARRIVED, this
  34413. ._onScriptDataArrived.bind(this)), n.on(h.default.STATISTICS_INFO, this
  34414. ._onStatisticsInfo.bind(this)), n.on(h.default.RECOMMEND_SEEKPOINT, this
  34415. ._onRecommendSeekpoint.bind(this)), n.on(h.default.VIDEO_RESOLUTION_CHANGED, this
  34416. ._onVideoResolutionChanged.bind(this)), n.on(h.default.PARSEDDATA_ARRIVED, this
  34417. ._parsedDataArrived.bind(this)))
  34418. }
  34419. t.default = s
  34420. }, function(e, t, n) {
  34421. "use strict";
  34422. Object.defineProperty(t, "__esModule", {
  34423. value: !0
  34424. });
  34425. var a = l(n(85)),
  34426. s = l(n(20)),
  34427. o = l(n(9)),
  34428. p = l(n(320)),
  34429. i = l(n(1)),
  34430. r = l(n(2)),
  34431. b = l(n(4)),
  34432. u = l(n(324)),
  34433. w = l(n(326)),
  34434. D = l(n(66)),
  34435. d = l(n(65)),
  34436. y = n(5);
  34437. function l(e) {
  34438. return e && e.__esModule ? e : {
  34439. default: e
  34440. }
  34441. }(0, r.default)(v, [{
  34442. key: "destroy",
  34443. value: function() {
  34444. this._mediaInfo = null, this._metadata = null, this._audioMetadata = null, this
  34445. ._videoMetadata = null, this._videoTrack = null, this._audioTrack = null,
  34446. this._onError = null, this._onMediaInfo = null, this._onMetaDataArrived =
  34447. null, this._onScriptDataArrived = null, this._onTrackMetadata = null, this
  34448. ._onDataAvailable = null, this._lastVideoDimension = null, this
  34449. ._recordFlag = !1, this._firstrVideo = !0, this._firstAudio = !0, this
  34450. ._flvHead = "", this._firstParseAudio = !0, this._bpsCalculator && (self
  34451. .clearInterval(this._bpsCalculator), this._bpsCalculator = null, this
  34452. ._bpsInfo = null)
  34453. }
  34454. }, {
  34455. key: "bindDataSource",
  34456. value: function(e) {
  34457. return e.onDataArrival = this.parseChunks.bind(this), this
  34458. }
  34459. }, {
  34460. key: "resetMediaInfo",
  34461. value: function() {
  34462. this._mediaInfo = new d.default
  34463. }
  34464. }, {
  34465. key: "_isInitialMetadataDispatched",
  34466. value: function() {
  34467. return this._hasAudio && this._hasVideo ? this
  34468. ._audioInitialMetadataDispatched && this._videoInitialMetadataDispatched :
  34469. this._hasAudio && !this._hasVideo ? this._audioInitialMetadataDispatched : !
  34470. (this._hasAudio || !this._hasVideo) && this._videoInitialMetadataDispatched
  34471. }
  34472. }, {
  34473. key: "_calculateRealtimeBitrate",
  34474. value: function() {
  34475. this._bpsInfo && (this._bpsInfo.time_gap_factor < 1 && (this._bpsInfo
  34476. .time_gap_factor = 1), 0 != this._bpsInfo.lastVideoBytes && (this
  34477. ._bpsInfo.bps_video = 8 * this._bpsInfo.lastVideoBytes / 1024 / this
  34478. ._bpsInfo.time_gap_factor, this._bpsInfo.lastVideoBytes = 0), 0 !=
  34479. this._bpsInfo.lastAudioBytes && (this._bpsInfo.bps_audio = 8 * this
  34480. ._bpsInfo.lastAudioBytes / 1024 / this._bpsInfo.time_gap_factor,
  34481. this._bpsInfo.lastAudioBytes = 0), this._videoInfo.bitRate = this
  34482. ._bpsInfo.bps_video + this._bpsInfo.bps_audio)
  34483. }
  34484. }, {
  34485. key: "parseChunks",
  34486. value: function(e, t) {
  34487. if (!(this._onError && this._onMediaInfo && this._onTrackMetadata && this
  34488. ._onDataAvailable)) throw new y.IllegalStateException(
  34489. "Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified"
  34490. );
  34491. var n = 0,
  34492. i = this._littleEndian;
  34493. if (0 === t) {
  34494. if (!(13 < e.byteLength)) return 0;
  34495. n = v.probe(e).dataOffset
  34496. } else 4 === t && (n = 4);
  34497. this._bpsCalculator || (this._bpsCalculator = self.setInterval(this
  34498. ._calculateRealtimeBitrate.bind(this), 1e3)), this._firstParse && (this
  34499. ._firstParse = !1, t + n !== this._dataOffset && b.default.w(this.TAG,
  34500. "First time parsing but chunk byteStart invalid!"), 0 !==
  34501. new DataView(e, n).getUint32(0, !i) && b.default.w(this.TAG,
  34502. "PrevTagSize0 !== 0 !!!"), n += 4, this._flvHead = new Uint8Array(e,
  34503. 0, 13));
  34504. for (var r, a = 0, s = 0; n < e.byteLength;) {
  34505. this._dispatch = !0;
  34506. var o = new DataView(e, n);
  34507. if (n + 11 + 4 > e.byteLength) break;
  34508. var u = o.getUint8(0),
  34509. d = 16777215 & o.getUint32(0, !i);
  34510. if (n + 11 + d + 4 > e.byteLength) break;
  34511. if (8 === u || 9 === u || 18 === u || 191 === u) {
  34512. var l = o.getUint8(4),
  34513. h = o.getUint8(5),
  34514. c = o.getUint8(6) | h << 8 | l << 16 | o.getUint8(7) << 24;
  34515. 0 != (16777215 & o.getUint32(7, !i)) && b.default.w(this.TAG,
  34516. "Meet tag which has StreamID != 0!");
  34517. var _, f = n + 11;
  34518. switch (!this._recordFlag || 8 !== u && 9 !== u && 18 !== u || this
  34519. ._onParsedData(new Uint8Array(e, n, 11 + d + 4), 1), u) {
  34520. case 8:
  34521. this._firstAudio && (_ = (this._firstAudio = !1, p.default)(this
  34522. ._flvHead).concat((0, p.default)(new Uint8Array(e,
  34523. n, 11 + d + 4))), this._flvHead = new Uint8Array(_),
  34524. this._onParsedData(this._flvHead, 5)), this
  34525. ._parseAudioData(e, f, d, c), s += d;
  34526. break;
  34527. case 9:
  34528. this._firstrVideo && (m = (this._firstrVideo = !1, p.default)(
  34529. this._flvHead).concat((0, p.default)(new Uint8Array(
  34530. e, n, 11 + d + 4))), this._flvHead = new Uint8Array(
  34531. m), this._onParsedData(this._flvHead, 5), this
  34532. ._osdtimeInfo.flvstartTime = c), this._osdtimeInfo
  34533. .flvduration = c - this._osdtimeInfo.flvstartTime, this
  34534. ._parseVideoData(e, f, d, c, t + n), a += d, this
  34535. ._recvGlobeTimeFlag && 1e3 <= c - this._recvPreTime && (this
  34536. ._osdtimeInfo.globalTime = this._osdtimeInfo
  34537. .globalTime + 1e3, this._recvPreTime = c, this
  34538. ._onParsedData(this._osdtimeInfo, 2));
  34539. break;
  34540. case 18:
  34541. var m = (0, p.default)(this._flvHead).concat((0, p.default)(
  34542. new Uint8Array(e, n, 11 + d + 4)));
  34543. this._flvHead = new Uint8Array(m), this._parseScriptData(e, f,
  34544. d);
  34545. break;
  34546. case 191:
  34547. this._parsePrivateData(e, f, d, c)
  34548. }
  34549. o = o.getUint32(11 + d, !i);
  34550. o !== 11 + d && (b.default.w(this.TAG, "Invalid PrevTagSize " + o), (
  34551. 2097152 < o || o < 16) && this._onParsedData(
  34552. "reset decoder", 11)), n += 11 + d + 4
  34553. } else b.default.w(this.TAG, "Unsupported tag type " + u + ", skipped"),
  34554. n += 11 + d + 4
  34555. }
  34556. return this._bpsInfo && (this._bpsInfo.lastAudioBytes += s, this._bpsInfo
  34557. .lastVideoBytes += a, 0 != this._bpsInfo.data_updated_time && (r = (r =
  34558. (this._now() - this._bpsInfo.data_updated_time) / 1e3) < 1 ? 1 :
  34559. Math.round(r), this._bpsInfo.time_gap_factor = r), this._bpsInfo
  34560. .data_updated_time = this._now()), this
  34561. ._isInitialMetadataDispatched() && this._dispatch && (this._audioTrack
  34562. .length ||
  34563. this._videoTrack.length) && this._onDataAvailable(this._audioTrack, this
  34564. ._videoTrack), n
  34565. }
  34566. }, {
  34567. key: "_parseScriptData",
  34568. value: function(e, t, n) {
  34569. t = u.default.parseScriptData(e, t, n);
  34570. if (t.hasOwnProperty("onMetaData")) {
  34571. if (null == t.onMetaData || "object" !== (0, o.default)(t.onMetaData))
  34572. return void b.default.w(this.TAG, "Invalid onMetaData structure!");
  34573. this._metadata && b.default.w(this.TAG, "Found another onMetaData tag!"),
  34574. this._metadata = t;
  34575. var i, r, n = this._metadata.onMetaData;
  34576. this._onMetaDataArrived && this._onMetaDataArrived((0, s.default)({}, n)),
  34577. "boolean" == typeof n.hasAudio && !1 === this._hasAudioFlagOverrided &&
  34578. (this._hasAudio = n.hasAudio, this._mediaInfo.hasAudio = this
  34579. ._hasAudio), "boolean" == typeof n.hasVideo && !1 === this
  34580. ._hasVideoFlagOverrided && (this._hasVideo = n.hasVideo, this._mediaInfo
  34581. .hasVideo = this._hasVideo), "number" == typeof n.audiodatarate && (
  34582. this._mediaInfo.audioDataRate = n.audiodatarate), "number" ==
  34583. typeof n.videodatarate && (this._mediaInfo.videoDataRate = n
  34584. .videodatarate), "number" == typeof n.width && (this._mediaInfo
  34585. .width = n.width), "number" == typeof n.height && (this._mediaInfo
  34586. .height = n.height), "number" == typeof n.duration ? this
  34587. ._durationOverrided || (i = Math.floor(n.duration * this._timescale),
  34588. this._duration = i, this._mediaInfo.duration = i) : this._mediaInfo
  34589. .duration = 0, "number" != typeof n.framerate || 0 < (i = Math.floor(
  34590. 1e3 * n.framerate)) && (r = i / 1e3, this._referenceFrameRate
  34591. .fixed = !0, this._referenceFrameRate.fps = r, this
  34592. ._referenceFrameRate.fps_num = i, this._referenceFrameRate.fps_den =
  34593. 1e3, this._mediaInfo.fps = r), "object" === (0, o.default)(n
  34594. .keyframes) ? (this._mediaInfo.hasKeyframesIndex = !0, r = n
  34595. .keyframes, this._mediaInfo.keyframesIndex = this
  34596. ._parseKeyframesIndex(r), n.keyframes = null) : this._mediaInfo
  34597. .hasKeyframesIndex = !1, this._dispatch = !1, this._mediaInfo.metadata =
  34598. n, b.default.v(this.TAG, "Parsed onMetaData, hasAudio:" + this
  34599. ._mediaInfo.hasAudio + ", hasVideo:" + this._mediaInfo.hasVideo +
  34600. ", video demension:" + this._mediaInfo.width + "x" + this._mediaInfo
  34601. .height + "@" + this._mediaInfo.fps + " fps, hasKeyframesIndex=" +
  34602. this._mediaInfo.hasKeyframesIndex + ", video_bitrate=" + this
  34603. ._mediaInfo.videoDataRate + ", audio_bitrate=" + this._mediaInfo
  34604. .audioDataRate), this._mediaInfo.isComplete() && this._onMediaInfo(
  34605. this._mediaInfo)
  34606. }
  34607. 0 < (0, a.default)(t).length && this._onScriptDataArrived && this
  34608. ._onScriptDataArrived((0, s.default)({}, t))
  34609. }
  34610. }, {
  34611. key: "_parseKeyframesIndex",
  34612. value: function(e) {
  34613. for (var t = [], n = [], i = 1; i < e.times.length; i++) {
  34614. var r = this._timestampBase + Math.floor(1e3 * e.times[i]);
  34615. t.push(r), n.push(e.filepositions[i])
  34616. }
  34617. return {
  34618. times: t,
  34619. filepositions: n
  34620. }
  34621. }
  34622. }, {
  34623. key: "_parseAudioData",
  34624. value: function(e, t, n, i) {
  34625. if (n <= 1) b.default.w(this.TAG,
  34626. "Flv: Invalid audio packet, missing SoundData payload!");
  34627. else if (!0 !== this._hasAudioFlagOverrided || !1 !== this._hasAudio) {
  34628. this._littleEndian;
  34629. var r = new DataView(e, t, n).getUint8(0),
  34630. a = r >>> 4;
  34631. if (2 == a || 10 == a) {
  34632. var s = 0,
  34633. o = (12 & r) >>> 2;
  34634. if (0 <= o && o <= 4) {
  34635. var s = this._flvSoundRateTable[o],
  34636. u = 1 & r,
  34637. d = this._audioMetadata,
  34638. r = this._audioTrack;
  34639. if (d || (!1 === this._hasAudio && !1 === this
  34640. ._hasAudioFlagOverrided && (this._hasAudio = !0, this
  34641. ._mediaInfo.hasAudio = !0), (d = this
  34642. ._audioMetadata = {}).type = "audio", d.id = r.id, d
  34643. .timescale = this._timescale, d.duration = this._duration, d
  34644. .audioSampleRate = s, d.channelCount = 0 == u ? 1 : 2),
  34645. 10 == a) {
  34646. var l = this._parseAACAudioData(e, t + 1, n - 1);
  34647. if (null != l) {
  34648. if (0 === l.packetType) {
  34649. d.config && b.default.w(this.TAG,
  34650. "Found another AudioSpecificConfig!");
  34651. var h = l.data;
  34652. if (b.default.v(this.TAG, "old {channel:" + d
  34653. .channelCount + ", codec:" + d.codec +
  34654. ", sample rate:" + d.audioSampleRate +
  34655. ", orignal codec:" + h.originalCodec +
  34656. ", config:" + d.config + "}"), b.default.v(this
  34657. .TAG, "new {channel:" + h.channelCount +
  34658. ", codec:" + h.codec + ", sample rate:" + h
  34659. .samplingRate + ", orignal codec:" + h
  34660. .originalCodec + ", config:" + h.config + "}"),
  34661. this._videoInfo.audioSampleRate = h.samplingRate,
  34662. this._onParsedData(this._videoInfo, 3), d
  34663. .channelCount === h.channelCount && d
  34664. .audioSampleRate === h.samplingRate && d.codec === h
  34665. .codec && d.originalCodec === h.originalCodec)
  34666. return void b.default.w(this.TAG,
  34667. "audio specific config do not changed, discard it."
  34668. );
  34669. d.audioSampleRate = h.samplingRate, d.channelCount = h
  34670. .channelCount, d.codec = h.codec, d.originalCodec =
  34671. h.originalCodec, d.config = h.config, d
  34672. .refSampleDuration = 1024 / d.audioSampleRate * d
  34673. .timescale, this._isInitialMetadataDispatched() ?
  34674. this._dispatch && (this._audioTrack.length || this
  34675. ._videoTrack.length) && this._onDataAvailable(
  34676. this._audioTrack, this._videoTrack) : this
  34677. ._audioInitialMetadataDispatched = !0, this
  34678. ._dispatch = !1, this._onTrackMetadata("audio", d);
  34679. var h = this._mediaInfo;
  34680. h.audioCodec = d.originalCodec, h.audioSampleRate = d
  34681. .audioSampleRate, h.audioChannelCount = d
  34682. .channelCount, h.hasVideo ? null != h.videoCodec &&
  34683. (h.mimeType = 'video/x-flv; codecs="' + h
  34684. .videoCodec + "," + h.audioCodec + '"') : h
  34685. .mimeType = 'video/x-flv; codecs="' + h.audioCodec +
  34686. '"', h.isComplete() && this._onMediaInfo(h)
  34687. } else 1 === l.packetType ? (h = this._timestampBase + i,
  34688. h = {
  34689. unit: l.data,
  34690. length: l.data.byteLength,
  34691. dts: h,
  34692. pts: h
  34693. }, r.samples.push(h), r.length += l.data.length) : b
  34694. .default.e(this.TAG, "Flv: Unsupported AAC data type " +
  34695. l.packetType);
  34696. this._videoInfo.audioType = "AAC"
  34697. }
  34698. } else if (2 == a) {
  34699. if (!d.codec) {
  34700. l = this._parseMP3AudioData(e, t + 1, n - 1, !0);
  34701. if (null == l) return;
  34702. d.audioSampleRate = l.samplingRate, d.channelCount = l
  34703. .channelCount, d.codec = l.codec, d.originalCodec = l
  34704. .originalCodec, d.refSampleDuration = 1152 / d
  34705. .audioSampleRate * d.timescale, b.default.v(this.TAG,
  34706. "Parsed MPEG Audio Frame Header"), this
  34707. ._audioInitialMetadataDispatched = !0, this
  34708. ._onTrackMetadata("audio", d);
  34709. var c = this._mediaInfo;
  34710. c.audioCodec = d.codec, c.audioSampleRate = d
  34711. .audioSampleRate, c.audioChannelCount = d.channelCount,
  34712. c.audioDataRate = l.bitRate, c.hasVideo ? null != c
  34713. .videoCodec && (c.mimeType = 'video/x-flv; codecs="' + c
  34714. .videoCodec + "," + c.audioCodec + '"') : c
  34715. .mimeType = 'video/x-flv; codecs="' + c.audioCodec +
  34716. '"', c.isComplete() && this._onMediaInfo(c), this
  34717. ._videoInfo.audioType = "MP3"
  34718. }
  34719. c = this._parseMP3AudioData(e, t + 1, n - 1, !1);
  34720. null != c && (i = this._timestampBase + i, i = {
  34721. unit: c,
  34722. length: c.byteLength,
  34723. dts: i,
  34724. pts: i
  34725. }, r.samples.push(i), r.length += c.length)
  34726. }
  34727. } else this._onError(D.default.FORMAT_ERROR,
  34728. "Flv: Invalid audio sample rate idx: " + o)
  34729. } else this._onError(D.default.CODEC_UNSUPPORTED,
  34730. "Flv: Unsupported audio codec idx: " + a)
  34731. } else if (this._firstParseAudio) {
  34732. this._firstParseAudio = !1;
  34733. n = this._parseAACAudioData(e, t + 1, n - 1);
  34734. if (null == n) return;
  34735. this._videoInfo.audioType = "AAC", this._videoInfo.audioSampleRate = n.data
  34736. .samplingRate
  34737. }
  34738. }
  34739. }, {
  34740. key: "_parseAACAudioData",
  34741. value: function(e, t, n) {
  34742. if (!(n <= 1)) {
  34743. var i = {},
  34744. r = new Uint8Array(e, t, n);
  34745. return i.packetType = r[0], 0 === r[0] ? i.data = this
  34746. ._parseAACAudioSpecificConfig(e, t + 1, n - 1) : i.data = r.subarray(1),
  34747. i
  34748. }
  34749. b.default.w(this.TAG,
  34750. "Flv: Invalid AAC packet, missing AACPacketType or/and Data!")
  34751. }
  34752. }, {
  34753. key: "_parseAACAudioSpecificConfig",
  34754. value: function(e, t, n) {
  34755. var i, r = new Uint8Array(e, t, n),
  34756. a = null,
  34757. s = 0,
  34758. o = 0,
  34759. e = null,
  34760. s = i = r[0] >>> 3;
  34761. if ((o = (7 & r[0]) << 1 | r[1] >>> 7) < 0 || o >= this._mpegSamplingRates
  34762. .length) this._onError(D.default.FORMAT_ERROR,
  34763. "Flv: AAC invalid sampling frequency index!");
  34764. else {
  34765. t = this._mpegSamplingRates[o], n = (120 & r[1]) >>> 3;
  34766. if (!(n < 0 || 8 <= n)) {
  34767. 5 === s && (e = (7 & r[1]) << 1 | r[2] >>> 7, r[2]);
  34768. r = self.navigator.userAgent.toLowerCase();
  34769. return -1 !== r.indexOf("firefox") ? e = 6 <= o ? (s = 5, a = new Array(
  34770. 4), o - 3) : (s = 2, a = new Array(2), o) : -1 !== r.indexOf(
  34771. "android") ? (s = 2, a = new Array(2), e = o) : (s = 5, e = o,
  34772. a = new Array(4), 6 <= o ? e = o - 3 : 1 == n && (s = 2, a =
  34773. new Array(2), e = o)), a[0] = s << 3, a[0] |= (15 & o) >>>
  34774. 1, a[1] = (15 & o) << 7, a[1] |= (15 & n) << 3, 5 === s && (a[1] |=
  34775. (15 & e) >>> 1, a[2] = (1 & e) << 7, a[2] |= 8, a[3] = 0), {
  34776. config: a,
  34777. samplingRate: t,
  34778. channelCount: n,
  34779. codec: "mp4a.40." + s,
  34780. originalCodec: "mp4a.40." + i
  34781. }
  34782. }
  34783. this._onError(D.default.FORMAT_ERROR,
  34784. "Flv: AAC invalid channel configuration")
  34785. }
  34786. }
  34787. }, {
  34788. key: "_parseMP3AudioData",
  34789. value: function(e, t, n, i) {
  34790. if (!(n < 4)) {
  34791. this._littleEndian;
  34792. var r = new Uint8Array(e, t, n),
  34793. e = null;
  34794. if (i) {
  34795. if (255 !== r[0]) return;
  34796. var t = r[1] >>> 3 & 3,
  34797. n = (6 & r[1]) >> 1,
  34798. a = (240 & r[2]) >>> 4,
  34799. s = (12 & r[2]) >>> 2,
  34800. i = 3 != (r[3] >>> 6 & 3) ? 2 : 1,
  34801. o = 0,
  34802. u = 0;
  34803. switch (t) {
  34804. case 0:
  34805. o = this._mpegAudioV25SampleRateTable[s];
  34806. break;
  34807. case 2:
  34808. o = this._mpegAudioV20SampleRateTable[s];
  34809. break;
  34810. case 3:
  34811. o = this._mpegAudioV10SampleRateTable[s]
  34812. }
  34813. switch (n) {
  34814. case 1:
  34815. a < this._mpegAudioL3BitRateTable.length && (u = this
  34816. ._mpegAudioL3BitRateTable[a]);
  34817. break;
  34818. case 2:
  34819. a < this._mpegAudioL2BitRateTable.length && (u = this
  34820. ._mpegAudioL2BitRateTable[a]);
  34821. break;
  34822. case 3:
  34823. a < this._mpegAudioL1BitRateTable.length && (u = this
  34824. ._mpegAudioL1BitRateTable[a])
  34825. }
  34826. e = {
  34827. bitRate: u,
  34828. samplingRate: o,
  34829. channelCount: i,
  34830. codec: "mp3",
  34831. originalCodec: "mp3"
  34832. }
  34833. } else e = r;
  34834. return e
  34835. }
  34836. b.default.w(this.TAG, "Flv: Invalid MP3 packet, header missing!")
  34837. }
  34838. }, {
  34839. key: "_parseVideoData",
  34840. value: function(e, t, n, i, r) {
  34841. var a, s;
  34842. n <= 1 ? b.default.w(this.TAG,
  34843. "Flv: Invalid video packet, missing VideoData payload!") : !0 === this
  34844. ._hasVideoFlagOverrided && !1 === this._hasVideo || (7 == (s = 15 & (a =
  34845. new Uint8Array(e, t, n)[0])) ? this._parseAVCVideoPacket(e, t + 1,
  34846. n - 1, i, r, (240 & a) >>> 4) : this._onError(D.default
  34847. .CODEC_UNSUPPORTED, "Flv: Unsupported codec in video frame: " + s))
  34848. }
  34849. }, {
  34850. key: "_parseAVCVideoPacket",
  34851. value: function(e, t, n, i, r, a) {
  34852. var s, o, u;
  34853. n < 4 ? b.default.w(this.TAG,
  34854. "Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime"
  34855. ) : (u = this._littleEndian, o = (s = new DataView(e, t, n)).getUint8(
  34856. 0), u = (16777215 & s.getUint32(0, !u)) << 8 >> 8, 0 === o ? this
  34857. ._parseAVCDecoderConfigurationRecord(e, t + 4, n - 4) : 1 === o ? this
  34858. ._parseAVCVideoData(e, t + 4, n - 4, i, r, a, u) : 2 === o || this
  34859. ._onError(D.default.FORMAT_ERROR, "Flv: Invalid video packet type " + o)
  34860. )
  34861. }
  34862. }, {
  34863. key: "_parseAVCDecoderConfigurationRecord",
  34864. value: function(e, t, n) {
  34865. if (n < 7) b.default.w(this.TAG,
  34866. "Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");
  34867. else {
  34868. var i = this._videoMetadata,
  34869. r = this._videoTrack,
  34870. a = this._littleEndian,
  34871. s = new DataView(e, t, n),
  34872. o = !1;
  34873. i ? void 0 !== i.avcc && (o = !0) : (!1 === this._hasVideo && !1 === this
  34874. ._hasVideoFlagOverrided && (this._hasVideo = !0, this._mediaInfo
  34875. .hasVideo = !0), (i = this._videoMetadata = {}).type = "video",
  34876. i.id = r.id, i.timescale = this._timescale, i.duration = this
  34877. ._duration);
  34878. var u = s.getUint8(0),
  34879. r = s.getUint8(1);
  34880. s.getUint8(2), s.getUint8(3);
  34881. if (1 === u && 0 !== r)
  34882. if (this._naluLengthSize = 1 + (3 & s.getUint8(4)), 3 === this
  34883. ._naluLengthSize || 4 === this._naluLengthSize) {
  34884. var d = 31 & s.getUint8(5);
  34885. if (0 != d) {
  34886. 1 < d && b.default.w(this.TAG,
  34887. "Flv: Strange AVCDecoderConfigurationRecord: SPS Count = " +
  34888. d);
  34889. for (var l = !0, h = 6, c = 0; c < d; c++) {
  34890. var _ = s.getUint16(h, !a);
  34891. if (h += 2, 0 !== _) {
  34892. var f = new Uint8Array(e, t + h, _);
  34893. h += _;
  34894. var m = w.default.parseSPS(f);
  34895. if (0 === c) {
  34896. l = m.codec_size.width >= m.codec_size.height;
  34897. if (o && this._lastVideoDimension) {
  34898. if (this._lastVideoDimension.width != m
  34899. .codec_size.width || this
  34900. ._lastVideoDimension.height != m.codec_size
  34901. .height) {
  34902. this._resolutionChanged = !0, b.default.d(
  34903. this.TAG,
  34904. "video resolution changed from [" +
  34905. this._lastVideoDimension.width +
  34906. "x" + this._lastVideoDimension
  34907. .height + "] to [" + m.codec_size
  34908. .width + "x" + m.codec_size.height +
  34909. "]"), this._lastVideoDimension
  34910. .width = m.codec_size.width, this
  34911. ._lastVideoDimension.height = m
  34912. .codec_size.height, this
  34913. ._lastVideoDimension.profile = m
  34914. .profile_string, this
  34915. ._lastVideoDimension.level = m
  34916. .level_string;
  34917. var p = {};
  34918. p.width = m.codec_size.width, p.height = m
  34919. .codec_size.height, this
  34920. ._onVideoResolutionChanged(p)
  34921. } else if (this._lastVideoDimension.profile == m
  34922. .profile_string && this._lastVideoDimension
  34923. .level == m.level_string) return
  34924. } else this._lastVideoDimension.width = m.codec_size
  34925. .width, this._lastVideoDimension.height = m
  34926. .codec_size.height, this._lastVideoDimension
  34927. .profile = m.profile_string, this
  34928. ._lastVideoDimension.level = m.level_string, b
  34929. .default.d(this.TAG,
  34930. "got new video dimension: [" + this
  34931. ._lastVideoDimension.width + "x" + this
  34932. ._lastVideoDimension.height + "]");
  34933. i.codecWidth = m.codec_size.width, i.codecHeight = m
  34934. .codec_size.height, i.presentWidth = m
  34935. .present_size.width, i.presentHeight = m
  34936. .present_size.height, i.profile = m
  34937. .profile_string, i.level = m.level_string, i
  34938. .bitDepth = m.bit_depth, i.chromaFormat = m
  34939. .chroma_format, i.sarRatio = m.sar_ratio, i
  34940. .frameRate = m.frame_rate, !1 !== m.frame_rate
  34941. .fixed && 0 !== m.frame_rate.fps_num && 0 !== m
  34942. .frame_rate.fps_den || (i.frameRate = this
  34943. ._referenceFrameRate);
  34944. _ = i.frameRate.fps_den, p = i.frameRate.fps_num;
  34945. i.refSampleDuration = i.timescale * (_ / p);
  34946. for (var y = f.subarray(1, 4), v = "avc1.", g =
  34947. 0; g < 3; g++) {
  34948. var M = y[g].toString(16);
  34949. v += M = M.length < 2 ? "0" + M : M
  34950. }
  34951. i.codec = v;
  34952. f = this._mediaInfo;
  34953. f.width = i.codecWidth, f.height = i.codecHeight, f
  34954. .fps = i.frameRate.fps, f.profile = i.profile, f
  34955. .level = i.level, f.refFrames = m.ref_frames, f
  34956. .chromaFormat = m.chroma_format_string, f
  34957. .sarNum = i.sarRatio.width, f.sarDen = i
  34958. .sarRatio.height, f.videoCodec = v, f.hasAudio ?
  34959. null != f.audioCodec && (f.mimeType =
  34960. 'video/x-flv; codecs="' + f.videoCodec +
  34961. "," + f.audioCodec + '"') : f.mimeType =
  34962. 'video/x-flv; codecs="' + f.videoCodec + '"', f
  34963. .isComplete() && this._onMediaInfo(f)
  34964. }
  34965. }
  34966. }
  34967. var L = s.getUint8(h);
  34968. if (0 !== L) {
  34969. 1 < L && b.default.w(this.TAG,
  34970. "Flv: Strange AVCDecoderConfigurationRecord: PPS Count = " +
  34971. L), h++;
  34972. for (var S = 0; S < L; S++) {
  34973. var k = s.getUint16(h, !a);
  34974. h += 2, 0 !== k && (h += k)
  34975. }
  34976. i.avcc = new Uint8Array(n), i.avcc.set(new Uint8Array(e, t,
  34977. n), 0), b.default.v(this.TAG,
  34978. "Parsed AVCDecoderConfigurationRecord done, " + i
  34979. .codecWidth + "x" + i.codecHeight + "@" + i
  34980. .frameRate.fps + " fps, profile=" + i.profile +
  34981. ", level=" + i.level), this
  34982. ._isInitialMetadataDispatched() ? this._dispatch && (
  34983. this._audioTrack.length || this._videoTrack.length
  34984. ) && this._onDataAvailable(this._audioTrack, this
  34985. ._videoTrack) : this
  34986. ._videoInitialMetadataDispatched = !0, this
  34987. ._dispatch = !1, this._config
  34988. .enableConstVideoViewSize && (b.default.w(this.TAG,
  34989. "--== const video view size enabled, use {" +
  34990. this._config.constVideoViewWidth + "x" + this
  34991. ._config.constVideoViewHeight + "} ==--"), i
  34992. .codecWidth = l ? this._config.constVideoViewWidth :
  34993. this._config.constVideoViewHeight, i.codecHeight =
  34994. l ? this._config.constVideoViewHeight : this._config
  34995. .constVideoViewWidth), this._onTrackMetadata(
  34996. "video", i), this._videoInfo.bitRate = this
  34997. ._mediaInfo.videoDataRate, this._videoInfo.frameRate = i
  34998. .frameRate.fps, this._videoInfo.width = i.codecWidth,
  34999. this._videoInfo.height = i.codecHeight, this
  35000. ._onParsedData(this._videoInfo, 3)
  35001. } else this._onError(D.default.FORMAT_ERROR,
  35002. "Flv: Invalid AVCDecoderConfigurationRecord: No PPS")
  35003. } else this._onError(D.default.FORMAT_ERROR,
  35004. "Flv: Invalid AVCDecoderConfigurationRecord: No SPS")
  35005. } else this._onError(D.default.FORMAT_ERROR,
  35006. "Flv: Strange NaluLengthSizeMinusOne: " + (this
  35007. ._naluLengthSize - 1));
  35008. else this._onError(D.default.FORMAT_ERROR,
  35009. "Flv: Invalid AVCDecoderConfigurationRecord")
  35010. }
  35011. }
  35012. }, {
  35013. key: "_parseAVCVideoData",
  35014. value: function(e, t, n, i, r, a, s) {
  35015. for (var o = this._littleEndian, u = new DataView(e, t, n), d = [], l = 0, h =
  35016. 0, c = this._naluLengthSize, _ = this._timestampBase + i, f = 1 ===
  35017. a; h < n;) {
  35018. if (n <= h + 4) {
  35019. b.default.w(this.TAG, "Malformed Nalu near timestamp " + _ +
  35020. ", offset = " + h + ", dataSize = " + n);
  35021. break
  35022. }
  35023. var m = u.getUint32(h, !o);
  35024. if (3 === c && (m >>>= 8), n - c < m) return void b.default.w(this.TAG,
  35025. "Malformed Nalus near timestamp " + _ + ", NaluSize > DataSize!"
  35026. );
  35027. var p = 31 & u.getUint8(h + c);
  35028. 5 == p && (f = !0);
  35029. var y = new Uint8Array(e, t + h, c + m);
  35030. d.push({
  35031. type: p,
  35032. data: y
  35033. }), l += y.byteLength, h += c + m
  35034. }
  35035. f && this._onParsedData(this._osdtimeInfo, 2), d.length && (a = this
  35036. ._videoTrack, s = {
  35037. units: d,
  35038. length: l,
  35039. isKeyframe: f,
  35040. dts: _,
  35041. cts: s,
  35042. pts: _ + s
  35043. }, f && (s.fileposition = r), a.samples.push(s), a.length += l)
  35044. }
  35045. }, {
  35046. key: "_parsePrivateData",
  35047. value: function(e, t, n, i) {
  35048. var r, a, s = new Uint8Array(e, t, n);
  35049. 64 === s[0] && 14 === s[1] && (this._firstTimeStamp = !1, r = s[6] + 2e3, a = s[
  35050. 7] >> 4, e = (15 & s[7]) << 1 | s[8] >> 7, t = s[8] >> 2 & 31, n = (
  35051. 3 & s[8]) << 4 | s[9] >> 4, s = (15 & s[9]) << 2 | s[10] >> 6, this
  35052. ._osdtimeInfo.globalTime = new Date(r + "-" + a + "-" + e + " " + t +
  35053. ":" + n + ":" + s).getTime(), this._recvGlobeTimeFlag = !0, this
  35054. ._recvPreTime = i)
  35055. }
  35056. }, {
  35057. key: "recordFlag",
  35058. get: function() {
  35059. return this._recordFlag
  35060. },
  35061. set: function(e) {
  35062. e && this._onParsedData(this._flvHead, 1), this._recordFlag = e
  35063. }
  35064. }, {
  35065. key: "onTrackMetadata",
  35066. get: function() {
  35067. return this._onTrackMetadata
  35068. },
  35069. set: function(e) {
  35070. this._onTrackMetadata = e
  35071. }
  35072. }, {
  35073. key: "onMediaInfo",
  35074. get: function() {
  35075. return this._onMediaInfo
  35076. },
  35077. set: function(e) {
  35078. this._onMediaInfo = e
  35079. }
  35080. }, {
  35081. key: "onMetaDataArrived",
  35082. get: function() {
  35083. return this._onMetaDataArrived
  35084. },
  35085. set: function(e) {
  35086. this._onMetaDataArrived = e
  35087. }
  35088. }, {
  35089. key: "onScriptDataArrived",
  35090. get: function() {
  35091. return this._onScriptDataArrived
  35092. },
  35093. set: function(e) {
  35094. this._onScriptDataArrived = e
  35095. }
  35096. }, {
  35097. key: "onError",
  35098. get: function() {
  35099. return this._onError
  35100. },
  35101. set: function(e) {
  35102. this._onError = e
  35103. }
  35104. }, {
  35105. key: "onDataAvailable",
  35106. get: function() {
  35107. return this._onDataAvailable
  35108. },
  35109. set: function(e) {
  35110. this._onDataAvailable = e
  35111. }
  35112. }, {
  35113. key: "timestampBase",
  35114. get: function() {
  35115. return this._timestampBase
  35116. },
  35117. set: function(e) {
  35118. this._timestampBase = e
  35119. }
  35120. }, {
  35121. key: "overridedDuration",
  35122. get: function() {
  35123. return this._duration
  35124. },
  35125. set: function(e) {
  35126. this._durationOverrided = !0, this._duration = e, this._mediaInfo.duration = e
  35127. }
  35128. }, {
  35129. key: "overridedHasAudio",
  35130. set: function(e) {
  35131. this._hasAudioFlagOverrided = !0, this._hasAudio = e, this._mediaInfo.hasAudio =
  35132. e
  35133. }
  35134. }, {
  35135. key: "overridedHasVideo",
  35136. set: function(e) {
  35137. this._hasVideoFlagOverrided = !0, this._hasVideo = e, this._mediaInfo.hasVideo =
  35138. e
  35139. }
  35140. }, {
  35141. key: "onVideoResolutionChanged",
  35142. get: function() {
  35143. return this._onVideoResolutionChanged
  35144. },
  35145. set: function(e) {
  35146. this._onVideoResolutionChanged = e
  35147. }
  35148. }, {
  35149. key: "onParsedData",
  35150. set: function(e) {
  35151. this._onParsedData = e
  35152. }
  35153. }], [{
  35154. key: "probe",
  35155. value: function(e) {
  35156. var t = new Uint8Array(e),
  35157. n = {
  35158. match: !1
  35159. };
  35160. if (70 !== t[0] || 76 !== t[1] || 86 !== t[2] || 1 !== t[3]) return n;
  35161. var i = (4 & t[4]) >>> 2 != 0,
  35162. r = 0 != (1 & t[4]),
  35163. e = t[e = 5] << 24 | t[e + 1] << 16 | t[e + 2] << 8 | t[e + 3];
  35164. return e < 9 ? n : {
  35165. match: !0,
  35166. consumed: e,
  35167. dataOffset: e,
  35168. hasAudioTrack: i,
  35169. hasVideoTrack: r
  35170. }
  35171. }
  35172. }]), r = v;
  35173. function v(e, t) {
  35174. (0, i.default)(this, v), this.TAG = "FLVDemuxer", this._config = t, this._onError = null, this
  35175. ._onMediaInfo = null, this._onMetaDataArrived = null, this._onScriptDataArrived = null, this
  35176. ._onTrackMetadata = null, this._onDataAvailable = null, this._onVideoResolutionChanged =
  35177. null, this._onParsedData = null, this._dataOffset = e.dataOffset, this._firstParse = !0,
  35178. this._dispatch = !1, this._hasAudio = !1, this._hasVideo = e.hasVideoTrack, this
  35179. ._hasAudioFlagOverrided = !1, this._hasVideoFlagOverrided = !1, this
  35180. ._audioInitialMetadataDispatched = !1, this._videoInitialMetadataDispatched = !1, this
  35181. ._mediaInfo = new d.default, this._mediaInfo.hasAudio = this._hasAudio, this._mediaInfo
  35182. .hasVideo = this._hasVideo, this._metadata = null, this._audioMetadata = null, this
  35183. ._videoMetadata = null, this._naluLengthSize = 4, this._timestampBase = 0, this._timescale =
  35184. 1e3, this._duration = 0, this._durationOverrided = !1, this._referenceFrameRate = {
  35185. fixed: !0,
  35186. fps: 23.976,
  35187. fps_num: 23976,
  35188. fps_den: 1e3
  35189. }, this._flvSoundRateTable = [5500, 11025, 22050, 44100, 48e3], this._mpegSamplingRates = [
  35190. 96e3, 88200, 64e3, 48e3, 44100, 32e3, 24e3, 22050, 16e3, 12e3, 11025, 8e3, 7350
  35191. ], this._lastVideoDimension = {
  35192. width: -1,
  35193. height: -1,
  35194. profile: "",
  35195. level: ""
  35196. }, this._bpsCalculator = null, this._bpsInfo = {
  35197. lastVideoBytes: 0,
  35198. lastAudioBytes: 0,
  35199. bps_video: 0,
  35200. bps_audio: 0,
  35201. data_updated_time: 0,
  35202. time_gap_factor: 1
  35203. }, this._resolutionChanged = !1, self.performance && self.performance.now ? this._now = self
  35204. .performance.now.bind(self.performance) : this._now = Date.now, this
  35205. ._mpegAudioV10SampleRateTable = [44100, 48e3, 32e3, 0], this
  35206. ._mpegAudioV20SampleRateTable = [22050, 24e3, 16e3, 0], this
  35207. ._mpegAudioV25SampleRateTable = [11025, 12e3, 8e3, 0], this._mpegAudioL1BitRateTable = [0,
  35208. 32, 64, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384, 416, 448, -1
  35209. ], this._mpegAudioL2BitRateTable = [0, 32, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256,
  35210. 320, 384, -1
  35211. ], this._mpegAudioL3BitRateTable = [0, 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224,
  35212. 256, 320, -1
  35213. ], this._videoTrack = {
  35214. type: "video",
  35215. id: 1,
  35216. sequenceNumber: 0,
  35217. samples: [],
  35218. length: 0
  35219. }, this._audioTrack = {
  35220. type: "audio",
  35221. id: 2,
  35222. sequenceNumber: 0,
  35223. samples: [],
  35224. length: 0
  35225. }, this._littleEndian = (e = new ArrayBuffer(2), new DataView(e).setInt16(0, 256, !0),
  35226. 256 === new Int16Array(e)[0]), this._recordFlag = !1, this._firstrVideo = !0, this
  35227. ._firstAudio = !0, this._firstTimeStamp = !0, this._flvHead = "", this._videoInfo = {
  35228. VideType: "H264",
  35229. audioType: "without",
  35230. width: 0,
  35231. height: 0,
  35232. frameRate: 25,
  35233. bitRate: 0,
  35234. systemFormt: "flv",
  35235. audioSampleRate: 0
  35236. }, this._firstParseAudio = !0, this._osdtimeInfo = {
  35237. flvstartTime: 0,
  35238. globalTime: 0,
  35239. flvduration: 0
  35240. }
  35241. }
  35242. t.default = r
  35243. }, function(e, t, n) {
  35244. e.exports = {
  35245. default: n(321),
  35246. __esModule: !0
  35247. }
  35248. }, function(e, t, n) {
  35249. n(41), n(322), e.exports = n(3).Array.from
  35250. }, function(e, t, n) {
  35251. "use strict";
  35252. var h = n(22),
  35253. i = n(8),
  35254. c = n(24),
  35255. _ = n(77),
  35256. f = n(78),
  35257. m = n(47),
  35258. p = n(323),
  35259. y = n(79);
  35260. i(i.S + i.F * !n(84)(function(e) {
  35261. Array.from(e)
  35262. }), "Array", {
  35263. from: function(e) {
  35264. var t, n, i, r, a = c(e),
  35265. s = "function" == typeof this ? this : Array,
  35266. o = arguments.length,
  35267. u = 1 < o ? arguments[1] : void 0,
  35268. d = void 0 !== u,
  35269. l = 0,
  35270. e = y(a);
  35271. if (d && (u = h(u, 2 < o ? arguments[2] : void 0, 2)), null == e || s ==
  35272. Array && f(e))
  35273. for (n = new s(t = m(a.length)); l < t; l++) p(n, l, d ? u(a[l], l) : a[l]);
  35274. else
  35275. for (r = e.call(a), n = new s; !(i = r.next()).done; l++) p(n, l, d ? _(r,
  35276. u, [i.value, l], !0) : i.value);
  35277. return n.length = l, n
  35278. }
  35279. })
  35280. }, function(e, t, n) {
  35281. "use strict";
  35282. var i = n(12),
  35283. r = n(28);
  35284. e.exports = function(e, t, n) {
  35285. t in e ? i.f(e, t, r(0, n)) : e[t] = n
  35286. }
  35287. }, function(e, t, n) {
  35288. "use strict";
  35289. Object.defineProperty(t, "__esModule", {
  35290. value: !0
  35291. });
  35292. var i = s(n(1)),
  35293. r = s(n(2)),
  35294. v = s(n(4)),
  35295. a = s(n(325)),
  35296. g = n(5);
  35297. function s(e) {
  35298. return e && e.__esModule ? e : {
  35299. default: e
  35300. }
  35301. }
  35302. var M = (n = new ArrayBuffer(2), new DataView(n).setInt16(0, 256, !0), 256 === new Int16Array(n)[
  35303. 0]),
  35304. r = ((0, r.default)(L, null, [{
  35305. key: "parseScriptData",
  35306. value: function(e, t, n) {
  35307. var i = {};
  35308. try {
  35309. var r = L.parseValue(e, t, n),
  35310. a = L.parseValue(e, t + r.size, n - r.size);
  35311. i[r.data] = a.data
  35312. } catch (e) {
  35313. v.default.e("AMF", e.toString())
  35314. }
  35315. return i
  35316. }
  35317. }, {
  35318. key: "parseObject",
  35319. value: function(e, t, n) {
  35320. if (n < 3) throw new g.IllegalStateException(
  35321. "Data not enough when parse ScriptDataObject");
  35322. var i = L.parseString(e, t, n),
  35323. t = L.parseValue(e, t + i.size, n - i.size),
  35324. n = t.objectEnd;
  35325. return {
  35326. data: {
  35327. name: i.data,
  35328. value: t.data
  35329. },
  35330. size: i.size + t.size,
  35331. objectEnd: n
  35332. }
  35333. }
  35334. }, {
  35335. key: "parseVariable",
  35336. value: function(e, t, n) {
  35337. return L.parseObject(e, t, n)
  35338. }
  35339. }, {
  35340. key: "parseString",
  35341. value: function(e, t, n) {
  35342. if (n < 2) throw new g.IllegalStateException(
  35343. "Data not enough when parse String");
  35344. n = new DataView(e, t, n).getUint16(0, !M);
  35345. return {
  35346. data: 0 < n ? (0, a.default)(new Uint8Array(e, t + 2, n)) : "",
  35347. size: 2 + n
  35348. }
  35349. }
  35350. }, {
  35351. key: "parseLongString",
  35352. value: function(e, t, n) {
  35353. if (n < 4) throw new g.IllegalStateException(
  35354. "Data not enough when parse LongString");
  35355. n = new DataView(e, t, n).getUint32(0, !M);
  35356. return {
  35357. data: 0 < n ? (0, a.default)(new Uint8Array(e, t + 4, n)) : "",
  35358. size: 4 + n
  35359. }
  35360. }
  35361. }, {
  35362. key: "parseDate",
  35363. value: function(e, t, n) {
  35364. if (n < 10) throw new g.IllegalStateException(
  35365. "Data size invalid when parse Date");
  35366. t = new DataView(e, t, n), n = t.getFloat64(0, !M);
  35367. return n += 60 * t.getInt16(8, !M) * 1e3, {
  35368. data: new Date(n),
  35369. size: 10
  35370. }
  35371. }
  35372. }, {
  35373. key: "parseValue",
  35374. value: function(e, t, n) {
  35375. if (n < 1) throw new g.IllegalStateException(
  35376. "Data not enough when parse Value");
  35377. var i = new DataView(e, t, n),
  35378. r = 1,
  35379. a = i.getUint8(0),
  35380. s = void 0,
  35381. o = !1;
  35382. try {
  35383. switch (a) {
  35384. case 0:
  35385. s = i.getFloat64(1, !M), r += 8;
  35386. break;
  35387. case 1:
  35388. s = !!i.getUint8(1);
  35389. r += 1;
  35390. break;
  35391. case 2:
  35392. var u = L.parseString(e, t + 1, n - 1);
  35393. s = u.data, r += u.size;
  35394. break;
  35395. case 3:
  35396. s = {};
  35397. var d = 0;
  35398. for (9 == (16777215 & i.getUint32(n - 4, !M)) && (d =
  35399. 3); r < n - 4;) {
  35400. var l = L.parseObject(e, t + r, n - r - d);
  35401. if (l.objectEnd) break;
  35402. s[l.data.name] = l.data.value, r += l.size
  35403. }
  35404. r <= n - 3 && 9 == (16777215 & i.getUint32(r - 1, !M)) && (
  35405. r += 3);
  35406. break;
  35407. case 8:
  35408. s = {}, r += 4;
  35409. var h = 0;
  35410. for (9 == (16777215 & i.getUint32(n - 4, !M)) && (h =
  35411. 3); r < n - 8;) {
  35412. var c = L.parseVariable(e, t + r, n - r - h);
  35413. if (c.objectEnd) break;
  35414. s[c.data.name] = c.data.value, r += c.size
  35415. }
  35416. r <= n - 3 && 9 == (16777215 & i.getUint32(r - 1, !M)) && (
  35417. r += 3);
  35418. break;
  35419. case 9:
  35420. r = 1, o = !(s = void 0);
  35421. break;
  35422. case 10:
  35423. s = [];
  35424. var _ = i.getUint32(1, !M);
  35425. r += 4;
  35426. for (var f = 0; f < _; f++) {
  35427. var m = L.parseValue(e, t + r, n - r);
  35428. s.push(m.data), r += m.size
  35429. }
  35430. break;
  35431. case 11:
  35432. var p = L.parseDate(e, t + 1, n - 1);
  35433. s = p.data, r += p.size;
  35434. break;
  35435. case 12:
  35436. var y = L.parseString(e, t + 1, n - 1);
  35437. s = y.data, r += y.size;
  35438. break;
  35439. default:
  35440. r = n, v.default.w("AMF", "Unsupported AMF value type " + a)
  35441. }
  35442. } catch (e) {
  35443. v.default.e("AMF", e.toString())
  35444. }
  35445. return {
  35446. data: s,
  35447. size: r,
  35448. objectEnd: o
  35449. }
  35450. }
  35451. }]), L);
  35452. function L() {
  35453. (0, i.default)(this, L)
  35454. }
  35455. t.default = r
  35456. }, function(e, t, n) {
  35457. "use strict";
  35458. function o(e, t, n) {
  35459. var i = e;
  35460. if (t + n < i.length) {
  35461. for (; n--;)
  35462. if (128 != (192 & i[++t])) return;
  35463. return 1
  35464. }
  35465. }
  35466. Object.defineProperty(t, "__esModule", {
  35467. value: !0
  35468. }), t.default = function(e) {
  35469. for (var t = [], n = e, i = 0, r = e.length; i < r;)
  35470. if (n[i] < 128) t.push(String.fromCharCode(n[i])), ++i;
  35471. else {
  35472. if (!(n[i] < 192))
  35473. if (n[i] < 224) {
  35474. if (o(n, i, 1)) {
  35475. var a = (31 & n[i]) << 6 | 63 & n[i + 1];
  35476. if (128 <= a) {
  35477. t.push(String.fromCharCode(65535 & a)), i += 2;
  35478. continue
  35479. }
  35480. }
  35481. } else if (n[i] < 240) {
  35482. if (o(n, i, 2)) {
  35483. var s = (15 & n[i]) << 12 | (63 & n[i + 1]) << 6 | 63 & n[i + 2];
  35484. if (2048 <= s && 55296 != (63488 & s)) {
  35485. t.push(String.fromCharCode(65535 & s)), i += 3;
  35486. continue
  35487. }
  35488. }
  35489. } else if (n[i] < 248 && o(n, i, 3)) {
  35490. s = (7 & n[i]) << 18 | (63 & n[i + 1]) << 12 | (63 & n[i + 2]) << 6 | 63 & n[i +
  35491. 3];
  35492. if (65536 < s && s < 1114112) {
  35493. s -= 65536, t.push(String.fromCharCode(s >>> 10 | 55296)), t.push(String
  35494. .fromCharCode(1023 & s | 56320)), i += 4;
  35495. continue
  35496. }
  35497. }
  35498. t.push(String.fromCharCode(65533)), ++i
  35499. } return t.join("")
  35500. }
  35501. }, function(e, t, n) {
  35502. "use strict";
  35503. Object.defineProperty(t, "__esModule", {
  35504. value: !0
  35505. });
  35506. var i = a(n(1)),
  35507. r = a(n(2)),
  35508. T = a(n(327));
  35509. function a(e) {
  35510. return e && e.__esModule ? e : {
  35511. default: e
  35512. }
  35513. }(0, r.default)(E, null, [{
  35514. key: "_ebsp2rbsp",
  35515. value: function(e) {
  35516. for (var t = e, n = t.byteLength, i = new Uint8Array(n), r = 0, a = 0; a <
  35517. n; a++) 2 <= a && 3 === t[a] && 0 === t[a - 1] && 0 === t[a - 2] || (i[r] =
  35518. t[a], r++);
  35519. return new Uint8Array(i.buffer, 0, r)
  35520. }
  35521. }, {
  35522. key: "parseSPS",
  35523. value: function(e) {
  35524. var t = E._ebsp2rbsp(e),
  35525. n = new T.default(t);
  35526. n.readByte();
  35527. var i = n.readByte();
  35528. n.readByte();
  35529. var r = n.readByte();
  35530. n.readUEG();
  35531. var a = E.getProfileString(i),
  35532. s = E.getLevelString(r),
  35533. o = 1,
  35534. u = 420,
  35535. d = 8;
  35536. if ((100 === i || 110 === i || 122 === i || 244 === i || 44 === i || 83 === i ||
  35537. 86 === i || 118 === i || 128 === i || 138 === i || 144 === i) && (3 ===
  35538. (o = n.readUEG()) && n.readBits(1), o <= 3 && (u = [0, 420, 422, 444][
  35539. o
  35540. ]), d = n.readUEG() + 8, n.readUEG(), n.readBits(1), n.readBool()))
  35541. for (var l = 3 !== o ? 8 : 12, h = 0; h < l; h++) n.readBool() && E
  35542. ._skipScalingList(n, h < 6 ? 16 : 64);
  35543. n.readUEG();
  35544. var c = n.readUEG();
  35545. if (0 === c) n.readUEG();
  35546. else if (1 === c) {
  35547. n.readBits(1), n.readSEG(), n.readSEG();
  35548. for (var _ = n.readUEG(), f = 0; f < _; f++) n.readSEG()
  35549. }
  35550. var m = n.readUEG();
  35551. n.readBits(1);
  35552. var p = n.readUEG(),
  35553. y = n.readUEG(),
  35554. v = n.readBits(1);
  35555. 0 === v && n.readBits(1), n.readBits(1);
  35556. var g = 0,
  35557. M = 0,
  35558. L = 0,
  35559. S = 0;
  35560. n.readBool() && (g = n.readUEG(), M = n.readUEG(), L = n.readUEG(), S = n
  35561. .readUEG());
  35562. var k = 1,
  35563. e = 1,
  35564. t = 0,
  35565. r = !0,
  35566. i = 0,
  35567. c = 0;
  35568. n.readBool() && (n.readBool() && (0 < (b = n.readByte()) && b < 16 ? (k = [1,
  35569. 12, 10, 16, 40, 24, 20, 32, 80, 18, 15, 64, 160, 4, 3, 2
  35570. ][b - 1], e = [1, 11, 11, 11, 33, 11, 11, 11, 33, 11, 11, 33,
  35571. 99, 3, 2, 1
  35572. ][b - 1]) : 255 === b && (k = n.readByte() << 8 | n.readByte(), e =
  35573. n.readByte() << 8 | n.readByte())), n.readBool() && n.readBool(), n
  35574. .readBool() && (n.readBits(4), n.readBool() && n.readBits(24)), n
  35575. .readBool() && (n.readUEG(), n.readUEG()), n.readBool() && (D = n
  35576. .readBits(32), w = n.readBits(32), r = n.readBool(), t = (i = w) / (
  35577. c = 2 * D)));
  35578. var b = 1;
  35579. 1 === k && 1 === e || (b = k / e);
  35580. var w = 0,
  35581. D = 0;
  35582. D = 0 === o ? (w = 1, 2 - v) : (w = 3 === o ? 1 : 2, (1 === o ? 2 : 1) * (2 -
  35583. v));
  35584. p = 16 * (p + 1), v = 16 * (y + 1) * (2 - v);
  35585. p -= (g + M) * w, v -= (L + S) * D;
  35586. b = Math.ceil(p * b);
  35587. return n.destroy(), n = null, {
  35588. profile_string: a,
  35589. level_string: s,
  35590. bit_depth: d,
  35591. ref_frames: m,
  35592. chroma_format: u,
  35593. chroma_format_string: E.getChromaFormatString(u),
  35594. frame_rate: {
  35595. fixed: r,
  35596. fps: t,
  35597. fps_den: c,
  35598. fps_num: i
  35599. },
  35600. sar_ratio: {
  35601. width: k,
  35602. height: e
  35603. },
  35604. codec_size: {
  35605. width: p,
  35606. height: v
  35607. },
  35608. present_size: {
  35609. width: b,
  35610. height: v
  35611. }
  35612. }
  35613. }
  35614. }, {
  35615. key: "_skipScalingList",
  35616. value: function(e, t) {
  35617. for (var n = 8, i = 8, r = 0; r < t; r++) n = 0 === (i = 0 !== i ? (n + e
  35618. .readSEG() + 256) % 256 : i) ? n : i
  35619. }
  35620. }, {
  35621. key: "getProfileString",
  35622. value: function(e) {
  35623. switch (e) {
  35624. case 66:
  35625. return "Baseline";
  35626. case 77:
  35627. return "Main";
  35628. case 88:
  35629. return "Extended";
  35630. case 100:
  35631. return "High";
  35632. case 110:
  35633. return "High10";
  35634. case 122:
  35635. return "High422";
  35636. case 244:
  35637. return "High444";
  35638. default:
  35639. return "Unknown"
  35640. }
  35641. }
  35642. }, {
  35643. key: "getLevelString",
  35644. value: function(e) {
  35645. return (e / 10).toFixed(1)
  35646. }
  35647. }, {
  35648. key: "getChromaFormatString",
  35649. value: function(e) {
  35650. switch (e) {
  35651. case 420:
  35652. return "4:2:0";
  35653. case 422:
  35654. return "4:2:2";
  35655. case 444:
  35656. return "4:4:4";
  35657. default:
  35658. return "Unknown"
  35659. }
  35660. }
  35661. }]), r = E;
  35662. function E() {
  35663. (0, i.default)(this, E)
  35664. }
  35665. t.default = r
  35666. }, function(e, t, n) {
  35667. "use strict";
  35668. Object.defineProperty(t, "__esModule", {
  35669. value: !0
  35670. });
  35671. var i = s(n(1)),
  35672. r = s(n(2)),
  35673. a = n(5);
  35674. function s(e) {
  35675. return e && e.__esModule ? e : {
  35676. default: e
  35677. }
  35678. }(0, r.default)(o, [{
  35679. key: "destroy",
  35680. value: function() {
  35681. this._buffer = null
  35682. }
  35683. }, {
  35684. key: "_fillCurrentWord",
  35685. value: function() {
  35686. var e = this._total_bytes - this._buffer_index;
  35687. if (e <= 0) throw new a.IllegalStateException(
  35688. "ExpGolomb: _fillCurrentWord() but no bytes available");
  35689. var t = Math.min(4, e),
  35690. e = new Uint8Array(4);
  35691. e.set(this._buffer.subarray(this._buffer_index, this._buffer_index + t)), this
  35692. ._current_word = new DataView(e.buffer).getUint32(0, !1), this
  35693. ._buffer_index += t, this._current_word_bits_left = 8 * t
  35694. }
  35695. }, {
  35696. key: "readBits",
  35697. value: function(e) {
  35698. if (32 < e) throw new a.InvalidArgumentException(
  35699. "ExpGolomb: readBits() bits exceeded max 32bits!");
  35700. if (e <= this._current_word_bits_left) {
  35701. var t = this._current_word >>> 32 - e;
  35702. return this._current_word <<= e, this._current_word_bits_left -= e, t
  35703. }
  35704. var n = this._current_word_bits_left ? this._current_word : 0;
  35705. n >>>= 32 - this._current_word_bits_left;
  35706. t = e - this._current_word_bits_left;
  35707. this._fillCurrentWord();
  35708. e = Math.min(t, this._current_word_bits_left), t = this._current_word >>> 32 -
  35709. e;
  35710. return this._current_word <<= e, this._current_word_bits_left -= e, n = n << e |
  35711. t
  35712. }
  35713. }, {
  35714. key: "readBool",
  35715. value: function() {
  35716. return 1 === this.readBits(1)
  35717. }
  35718. }, {
  35719. key: "readByte",
  35720. value: function() {
  35721. return this.readBits(8)
  35722. }
  35723. }, {
  35724. key: "_skipLeadingZero",
  35725. value: function() {
  35726. for (var e = void 0, e = 0; e < this._current_word_bits_left; e++)
  35727. if (0 != (this._current_word & 2147483648 >>> e)) return this
  35728. ._current_word <<= e, this._current_word_bits_left -= e, e;
  35729. return this._fillCurrentWord(), e + this._skipLeadingZero()
  35730. }
  35731. }, {
  35732. key: "readUEG",
  35733. value: function() {
  35734. var e = this._skipLeadingZero();
  35735. return this.readBits(e + 1) - 1
  35736. }
  35737. }, {
  35738. key: "readSEG",
  35739. value: function() {
  35740. var e = this.readUEG();
  35741. return 1 & e ? e + 1 >>> 1 : -1 * (e >>> 1)
  35742. }
  35743. }]), r = o;
  35744. function o(e) {
  35745. (0, i.default)(this, o), this.TAG = "ExpGolomb", this._buffer = e, this._buffer_index = 0, this
  35746. ._total_bytes = e.byteLength, this._total_bits = 8 * e.byteLength, this._current_word = 0,
  35747. this._current_word_bits_left = 0
  35748. }
  35749. t.default = r
  35750. }, function(e, t, n) {
  35751. "use strict";
  35752. Object.defineProperty(t, "__esModule", {
  35753. value: !0
  35754. });
  35755. var i = s(n(1)),
  35756. r = s(n(2)),
  35757. O = s(n(4)),
  35758. I = s(n(329)),
  35759. W = s(n(330)),
  35760. H = s(n(33)),
  35761. j = n(230),
  35762. a = n(5);
  35763. function s(e) {
  35764. return e && e.__esModule ? e : {
  35765. default: e
  35766. }
  35767. }(0, r.default)(o, [{
  35768. key: "destroy",
  35769. value: function() {
  35770. this._dtsBase = -1, this._dtsBaseInited = !1, this._audioMeta = null, this
  35771. ._videoMeta = null, this._audioSegmentInfoList.clear(), this
  35772. ._audioSegmentInfoList = null, this._videoSegmentInfoList.clear(), this
  35773. ._videoSegmentInfoList = null, this._onInitSegment = null, this
  35774. ._onMediaSegment = null
  35775. }
  35776. }, {
  35777. key: "bindDataSource",
  35778. value: function(e) {
  35779. return e.onDataAvailable = this.remux.bind(this), e.onTrackMetadata = this
  35780. ._onTrackMetadataReceived.bind(this), this
  35781. }
  35782. }, {
  35783. key: "insertDiscontinuity",
  35784. value: function() {
  35785. this._audioNextDts = this._videoNextDts = void 0
  35786. }
  35787. }, {
  35788. key: "seek",
  35789. value: function(e) {
  35790. this._audioStashedLastSample = null, this._videoStashedLastSample = null, this
  35791. ._videoSegmentInfoList.clear(), this._audioSegmentInfoList.clear()
  35792. }
  35793. }, {
  35794. key: "remux",
  35795. value: function(e, t) {
  35796. if (!this._onMediaSegment) throw new a.IllegalStateException(
  35797. "MP4Remuxer: onMediaSegment callback must be specificed!");
  35798. this._dtsBaseInited || this._calculateDtsBase(e, t), this._remuxVideo(t), this
  35799. ._remuxAudio(e)
  35800. }
  35801. }, {
  35802. key: "_onTrackMetadataReceived",
  35803. value: function(e, t) {
  35804. var n = null,
  35805. i = "mp4",
  35806. r = t.codec;
  35807. if ("audio" === e) n = "mp3" === (this._audioMeta = t).codec && this
  35808. ._mp3UseMpegAudio ? (i = "mpeg", r = "", new Uint8Array) : I.default
  35809. .generateInitSegment(t);
  35810. else {
  35811. if ("video" !== e) return;
  35812. this._videoMeta = t, n = I.default.generateInitSegment(t)
  35813. }
  35814. if (!this._onInitSegment) throw new a.IllegalStateException(
  35815. "MP4Remuxer: onInitSegment callback must be specified!");
  35816. this._onInitSegment(e, {
  35817. type: e,
  35818. data: n.buffer,
  35819. codec: r,
  35820. container: e + "/" + i,
  35821. mediaDuration: t.duration
  35822. })
  35823. }
  35824. }, {
  35825. key: "_calculateDtsBase",
  35826. value: function(e, t) {
  35827. this._dtsBaseInited || (e.samples && e.samples.length && (this._audioDtsBase = e
  35828. .samples[0].dts), t.samples && t.samples.length && (this
  35829. ._videoDtsBase = t.samples[0].dts), this._dtsBase = Math.min(this
  35830. ._audioDtsBase, this._videoDtsBase), this._dtsBaseInited = !0)
  35831. }
  35832. }, {
  35833. key: "flushStashedSamples",
  35834. value: function() {
  35835. var e = this._videoStashedLastSample,
  35836. t = this._audioStashedLastSample,
  35837. n = {
  35838. type: "video",
  35839. id: 1,
  35840. sequenceNumber: 0,
  35841. samples: [],
  35842. length: 0
  35843. };
  35844. null != e && (n.samples.push(e), n.length = e.length);
  35845. e = {
  35846. type: "audio",
  35847. id: 2,
  35848. sequenceNumber: 0,
  35849. samples: [],
  35850. length: 0
  35851. };
  35852. null != t && (e.samples.push(t), e.length = t.length), this
  35853. ._videoStashedLastSample = null, this._audioStashedLastSample = null, this
  35854. ._remuxVideo(n, !0), this._remuxAudio(e, !0)
  35855. }
  35856. }, {
  35857. key: "_remuxAudio",
  35858. value: function(e, t) {
  35859. if (null != this._audioMeta) {
  35860. var n = e,
  35861. i = n.samples,
  35862. r = void 0,
  35863. a = -1,
  35864. s = this._audioMeta.refSampleDuration,
  35865. o = "mp3" === this._audioMeta.codec && this._mp3UseMpegAudio,
  35866. u = this._dtsBaseInited && void 0 === this._audioNextDts,
  35867. e = !1;
  35868. if (i && 0 !== i.length && (1 !== i.length || t)) {
  35869. var d = 0,
  35870. l = null,
  35871. h = 0,
  35872. h = o ? (d = 0, n.length) : (d = 8) + n.length,
  35873. c = null;
  35874. 1 < i.length && (h -= (c = i.pop()).length), null != this
  35875. ._audioStashedLastSample && (m = this._audioStashedLastSample, this
  35876. ._audioStashedLastSample = null, i.unshift(m), h += m.length),
  35877. null != c && (this._audioStashedLastSample = c);
  35878. var _, f, m = i[0].dts - this._dtsBase;
  35879. this._audioNextDts ? r = m - this._audioNextDts : this
  35880. ._audioSegmentInfoList.isEmpty() ? (r = 0, this
  35881. ._fillSilentAfterSeek && !this._videoSegmentInfoList
  35882. .isEmpty() && "mp3" !== this._audioMeta.originalCodec && (e = !
  35883. 0)) :
  35884. r = null != (_ = this._audioSegmentInfoList.getLastSampleBefore(
  35885. m)) ? (f = m - (_.originalDts + _.duration), m - (_.dts + _
  35886. .duration + (f = f <= 3 ? 0 : f))) : 0, e && (_ = m - r, null !=
  35887. (f = this._videoSegmentInfoList.getLastSegmentBefore(m)) && f
  35888. .beginDts < _ ? (R = W.default.getSilentFrame(this._audioMeta
  35889. .originalCodec, this._audioMeta.channelCount)) && (m = f
  35890. .beginDts, f = _ - f.beginDts, O.default.v(this.TAG,
  35891. "InsertPrefixSilentAudio: dts: " + m + ", duration: " +
  35892. f), i.unshift({
  35893. unit: R,
  35894. dts: m,
  35895. pts: m
  35896. }), h += R.byteLength) : e = !1);
  35897. for (var p = [], y = 0; y < i.length; y++) {
  35898. var v = i[y],
  35899. g = v.unit,
  35900. M = v.dts - this._dtsBase,
  35901. L = M,
  35902. S = !1,
  35903. k = null,
  35904. b = 0;
  35905. if (!(M < -.001)) {
  35906. if ("mp3" !== this._audioMeta.codec) {
  35907. var w = M;
  35908. if ((r = M - (w = this._audioNextDts ? this._audioNextDts :
  35909. w)) <= -5 * s) {
  35910. O.default.w(this.TAG,
  35911. "Dropping 1 audio frame (originalDts: " + M +
  35912. " ms ,curRefDts: " + w +
  35913. " ms) due to dtsCorrection: " + r +
  35914. " ms overlap.");
  35915. continue
  35916. }
  35917. if (5 * s <= r && this._fillAudioTimestampGap && !H.default
  35918. .safari) {
  35919. var S = !0,
  35920. D = Math.floor(r / s);
  35921. O.default.w(this.TAG,
  35922. "Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.\noriginalDts: " +
  35923. M + " ms, curRefDts: " + w +
  35924. " ms, dtsCorrection: " + Math.round(r) +
  35925. " ms, generate: " + D + " frames");
  35926. var L = Math.floor(w),
  35927. b = Math.floor(w + s) - L,
  35928. T = W.default.getSilentFrame(this._audioMeta
  35929. .originalCodec, this._audioMeta.channelCount);
  35930. null == T && (O.default.w(this.TAG,
  35931. "Unable to generate silent frame for " +
  35932. this._audioMeta.originalCodec + " with " +
  35933. this._audioMeta.channelCount +
  35934. " channels, repeat last frame"), T = g);
  35935. for (var k = [], E = 0; E < D; E++) {
  35936. w += s;
  35937. var Y = Math.floor(w),
  35938. P = Math.floor(w + s) - Y,
  35939. P = {
  35940. dts: Y,
  35941. pts: Y,
  35942. cts: 0,
  35943. unit: T,
  35944. size: T.byteLength,
  35945. duration: P,
  35946. originalDts: M,
  35947. flags: {
  35948. isLeading: 0,
  35949. dependsOn: 1,
  35950. isDependedOn: 0,
  35951. hasRedundancy: 0
  35952. }
  35953. };
  35954. k.push(P), h += g.byteLength
  35955. }
  35956. this._audioNextDts = w + s
  35957. } else L = Math.floor(w), b = Math.floor(w + s) - L, this
  35958. ._audioNextDts = w + s
  35959. } else L = M - r, b = y !== i.length - 1 ? i[y + 1].dts - this
  35960. ._dtsBase - r - L : null != c ? c.dts - this._dtsBase - r -
  35961. L : 1 <= p.length ? p[p.length - 1].duration : Math.floor(
  35962. s), this._audioNextDts = L + b; - 1 === a && (a = L), p
  35963. .push({
  35964. dts: L,
  35965. pts: L,
  35966. cts: 0,
  35967. unit: v.unit,
  35968. size: v.unit.byteLength,
  35969. duration: b,
  35970. originalDts: M,
  35971. flags: {
  35972. isLeading: 0,
  35973. dependsOn: 1,
  35974. isDependedOn: 0,
  35975. hasRedundancy: 0
  35976. }
  35977. }), S && p.push.apply(p, k)
  35978. }
  35979. }
  35980. if (0 === p.length) return n.samples = [], void(n.length = 0);
  35981. o ? l = new Uint8Array(h) : ((l = new Uint8Array(h))[0] = h >>> 24 &
  35982. 255, l[1] = h >>> 16 & 255, l[2] = h >>> 8 & 255, l[3] = 255 &
  35983. h, l.set(I.default.types.mdat, 4));
  35984. for (var C = 0; C < p.length; C++) {
  35985. var A = p[C].unit;
  35986. l.set(A, d), d += A.byteLength
  35987. }
  35988. var R = p[p.length - 1],
  35989. x = R.dts + R.duration,
  35990. e = new j.MediaSegmentInfo;
  35991. e.beginDts = a, e.endDts = x, e.beginPts = a, e.endPts = x, e
  35992. .originalBeginDts = p[0].originalDts, e.originalEndDts = R
  35993. .originalDts + R.duration, e.firstSample = new j.SampleInfo(p[0]
  35994. .dts, p[0].pts, p[0].duration, p[0].originalDts, !1), e
  35995. .lastSample = new j.SampleInfo(R.dts, R.pts, R.duration, R
  35996. .originalDts, !1), this._isLive || this._audioSegmentInfoList
  35997. .append(e), n.samples = p, n.sequenceNumber++;
  35998. R = null, R = o ? new Uint8Array : I.default.moof(n, a);
  35999. n.samples = [], n.length = 0;
  36000. e = {
  36001. type: "audio",
  36002. data: this._mergeBoxes(R, l).buffer,
  36003. sampleCount: p.length,
  36004. info: e
  36005. };
  36006. o && u && (e.timestampOffset = a), this._onMediaSegment("audio", e)
  36007. }
  36008. }
  36009. }
  36010. }, {
  36011. key: "_remuxVideo",
  36012. value: function(e, t) {
  36013. if (null != this._videoMeta) {
  36014. var n = e,
  36015. i = n.samples,
  36016. r = void 0,
  36017. a = -1,
  36018. s = -1;
  36019. if (i && 0 !== i.length && (1 !== i.length || t)) {
  36020. var o = 8,
  36021. u = null,
  36022. t = 8 + e.length,
  36023. d = null;
  36024. 1 < i.length && (t -= (d = i.pop()).length), null != this
  36025. ._videoStashedLastSample && (h = this._videoStashedLastSample, this
  36026. ._videoStashedLastSample = null, i.unshift(h), t += h.length),
  36027. null != d && (this._videoStashedLastSample = d);
  36028. var l, h, e = i[0].dts - this._dtsBase;
  36029. r = this._videoNextDts ? e - this._videoNextDts : !this
  36030. ._videoSegmentInfoList.isEmpty() && null != (l = this
  36031. ._videoSegmentInfoList.getLastSampleBefore(e)) ? (h = e - (l
  36032. .originalDts + l.duration), e - (l.dts + l.duration + (h =
  36033. h <= 3 ? 0 : h))) : 0;
  36034. for (var c = new j.MediaSegmentInfo, _ = [], f = 0; f < i.length; f++) {
  36035. var m = i[f],
  36036. p = m.dts - this._dtsBase,
  36037. y = m.isKeyframe,
  36038. v = p - r,
  36039. g = m.cts,
  36040. M = v + g; - 1 === a && (a = v, s = M);
  36041. var L, S = 0;
  36042. S = f !== i.length - 1 ? i[f + 1].dts - this._dtsBase - r - v :
  36043. null != d ? d.dts - this._dtsBase - r - v : 1 <= _.length ? _[_
  36044. .length - 1].duration : Math.floor(this._videoMeta
  36045. .refSampleDuration), y && ((L = new j.SampleInfo(v, M, S, m
  36046. .dts, !0)).fileposition = m.fileposition, c
  36047. .appendSyncPoint(L)), _.push({
  36048. dts: v,
  36049. pts: M,
  36050. cts: g,
  36051. units: m.units,
  36052. size: m.length,
  36053. isKeyframe: y,
  36054. duration: S,
  36055. originalDts: p,
  36056. flags: {
  36057. isLeading: 0,
  36058. dependsOn: y ? 2 : 1,
  36059. isDependedOn: y ? 1 : 0,
  36060. hasRedundancy: 0,
  36061. isNonSync: y ? 0 : 1
  36062. }
  36063. })
  36064. }(u = new Uint8Array(t))[0] = t >>> 24 & 255, u[1] = t >>> 16 & 255, u[
  36065. 2] = t >>> 8 & 255, u[3] = 255 & t, u.set(I.default.types.mdat,
  36066. 4);
  36067. for (var k = 0; k < _.length; k++)
  36068. for (var b = _[k].units; b.length;) {
  36069. var w = b.shift().data;
  36070. u.set(w, o), o += w.byteLength
  36071. }
  36072. var t = _[_.length - 1],
  36073. D = t.dts + t.duration,
  36074. T = t.pts + t.duration;
  36075. this._videoNextDts = D, c.beginDts = a, c.endDts = D, c.beginPts = s, c
  36076. .endPts = T, c.originalBeginDts = _[0].originalDts, c
  36077. .originalEndDts = t.originalDts + t.duration, c.firstSample = new j
  36078. .SampleInfo(_[0].dts, _[0].pts, _[0].duration, _[0].originalDts, _[
  36079. 0].isKeyframe), c.lastSample = new j.SampleInfo(t.dts, t.pts, t
  36080. .duration, t.originalDts, t.isKeyframe), this._isLive || this
  36081. ._videoSegmentInfoList.append(c), n.samples = _, n.sequenceNumber++,
  36082. this._forceFirstIDR && ((E = _[0].flags).dependsOn = 2, E
  36083. .isNonSync = 0);
  36084. var E = I.default.moof(n, a);
  36085. n.samples = [], n.length = 0, this._onMediaSegment("video", {
  36086. type: "video",
  36087. data: this._mergeBoxes(E, u).buffer,
  36088. sampleCount: _.length,
  36089. info: c
  36090. })
  36091. }
  36092. }
  36093. }
  36094. }, {
  36095. key: "_mergeBoxes",
  36096. value: function(e, t) {
  36097. var n = new Uint8Array(e.byteLength + t.byteLength);
  36098. return n.set(e, 0), n.set(t, e.byteLength), n
  36099. }
  36100. }, {
  36101. key: "onInitSegment",
  36102. get: function() {
  36103. return this._onInitSegment
  36104. },
  36105. set: function(e) {
  36106. this._onInitSegment = e
  36107. }
  36108. }, {
  36109. key: "onMediaSegment",
  36110. get: function() {
  36111. return this._onMediaSegment
  36112. },
  36113. set: function(e) {
  36114. this._onMediaSegment = e
  36115. }
  36116. }]), r = o;
  36117. function o(e) {
  36118. (0, i.default)(this, o), this.TAG = "MP4Remuxer", this._config = e, this._isLive = !0 === e
  36119. .isLive, this._dtsBase = -1, this._dtsBaseInited = !1, this._audioDtsBase = 1 / 0, this
  36120. ._videoDtsBase = 1 / 0, this._audioNextDts = void 0, this._videoNextDts = void 0, this
  36121. ._audioStashedLastSample = null, this._videoStashedLastSample = null, this._audioMeta =
  36122. null, this._videoMeta = null, this._audioSegmentInfoList = new j.MediaSegmentInfoList(
  36123. "audio"), this._videoSegmentInfoList = new j.MediaSegmentInfoList("video"), this
  36124. ._onInitSegment = null, this._onMediaSegment = null, this._forceFirstIDR = !(!H.default
  36125. .chrome || !(H.default.version.major < 50 || 50 === H.default.version.major && H.default
  36126. .version.build < 2661)), this._fillSilentAfterSeek = H.default.msedge || H.default
  36127. .msie, this._mp3UseMpegAudio = !H.default.firefox, this._fillAudioTimestampGap = this
  36128. ._config.fixAudioTimestampGap
  36129. }
  36130. t.default = r
  36131. }, function(e, t, n) {
  36132. "use strict";
  36133. Object.defineProperty(t, "__esModule", {
  36134. value: !0
  36135. });
  36136. var i = r(n(1));
  36137. function r(e) {
  36138. return e && e.__esModule ? e : {
  36139. default: e
  36140. }
  36141. }(0, r(n(2)).default)(l, null, [{
  36142. key: "init",
  36143. value: function() {
  36144. for (var e in l.types = {
  36145. avc1: [],
  36146. avcC: [],
  36147. btrt: [],
  36148. dinf: [],
  36149. dref: [],
  36150. esds: [],
  36151. ftyp: [],
  36152. hdlr: [],
  36153. mdat: [],
  36154. mdhd: [],
  36155. mdia: [],
  36156. mfhd: [],
  36157. minf: [],
  36158. moof: [],
  36159. moov: [],
  36160. mp4a: [],
  36161. mvex: [],
  36162. mvhd: [],
  36163. sdtp: [],
  36164. stbl: [],
  36165. stco: [],
  36166. stsc: [],
  36167. stsd: [],
  36168. stsz: [],
  36169. stts: [],
  36170. tfdt: [],
  36171. tfhd: [],
  36172. traf: [],
  36173. trak: [],
  36174. trun: [],
  36175. trex: [],
  36176. tkhd: [],
  36177. vmhd: [],
  36178. smhd: [],
  36179. ".mp3": []
  36180. }) l.types.hasOwnProperty(e) && (l.types[e] = [e.charCodeAt(0), e
  36181. .charCodeAt(1), e.charCodeAt(2), e.charCodeAt(3)
  36182. ]);
  36183. var t = l.constants = {};
  36184. t.FTYP = new Uint8Array([105, 115, 111, 109, 0, 0, 0, 1, 105, 115, 111, 109, 97,
  36185. 118, 99, 49
  36186. ]), t.STSD_PREFIX = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 1]), t.STTS =
  36187. new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0]), t.STSC = t.STCO = t.STTS, t.STSZ =
  36188. new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), t.HDLR_VIDEO =
  36189. new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 118, 105, 100, 101, 0, 0, 0, 0, 0,
  36190. 0, 0, 0, 0, 0, 0, 0, 86, 105, 100, 101, 111, 72, 97, 110, 100, 108,
  36191. 101, 114, 0
  36192. ]), t.HDLR_AUDIO = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 115, 111, 117,
  36193. 110, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 83, 111, 117, 110, 100, 72,
  36194. 97, 110, 100, 108, 101, 114, 0
  36195. ]), t.DREF = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 12, 117, 114,
  36196. 108, 32, 0, 0, 0, 1
  36197. ]), t.SMHD = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0]), t.VMHD =
  36198. new Uint8Array([0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0])
  36199. }
  36200. }, {
  36201. key: "box",
  36202. value: function(e) {
  36203. for (var t = 8, n = null, i = Array.prototype.slice.call(arguments, 1), r = i
  36204. .length, a = 0; a < r; a++) t += i[a].byteLength;
  36205. (n = new Uint8Array(t))[0] = t >>> 24 & 255, n[1] = t >>> 16 & 255, n[2] = t >>>
  36206. 8 & 255, n[3] = 255 & t, n.set(e, 4);
  36207. for (var s = 8, o = 0; o < r; o++) n.set(i[o], s), s += i[o].byteLength;
  36208. return n
  36209. }
  36210. }, {
  36211. key: "generateInitSegment",
  36212. value: function(e) {
  36213. var t = l.box(l.types.ftyp, l.constants.FTYP),
  36214. n = l.moov(e),
  36215. e = new Uint8Array(t.byteLength + n.byteLength);
  36216. return e.set(t, 0), e.set(n, t.byteLength), e
  36217. }
  36218. }, {
  36219. key: "moov",
  36220. value: function(e) {
  36221. var t = l.mvhd(e.timescale, e.duration),
  36222. n = l.trak(e),
  36223. e = l.mvex(e);
  36224. return l.box(l.types.moov, t, n, e)
  36225. }
  36226. }, {
  36227. key: "mvhd",
  36228. value: function(e, t) {
  36229. return l.box(l.types.mvhd, new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  36230. e >>> 24 & 255, e >>> 16 & 255, e >>> 8 & 255, 255 & e, t >>>
  36231. 24 & 255, t >>> 16 & 255, t >>> 8 & 255, 255 & t, 0, 1, 0, 0, 1,
  36232. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,
  36233. 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  36234. 0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  36235. 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255
  36236. ]))
  36237. }
  36238. }, {
  36239. key: "trak",
  36240. value: function(e) {
  36241. return l.box(l.types.trak, l.tkhd(e), l.mdia(e))
  36242. }
  36243. }, {
  36244. key: "tkhd",
  36245. value: function(e) {
  36246. var t = e.id,
  36247. n = e.duration,
  36248. i = e.presentWidth,
  36249. e = e.presentHeight;
  36250. return l.box(l.types.tkhd, new Uint8Array([0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0,
  36251. t >>> 24 & 255, t >>> 16 & 255, t >>> 8 & 255, 255 & t, 0, 0, 0,
  36252. 0, n >>> 24 & 255, n >>> 16 & 255, n >>> 8 & 255, 255 & n, 0, 0,
  36253. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0,
  36254. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  36255. 0, 0, 0, 0, 64, 0, 0, 0, i >>> 8 & 255, 255 & i, 0, 0, e >>> 8 &
  36256. 255, 255 & e, 0, 0
  36257. ]))
  36258. }
  36259. }, {
  36260. key: "mdia",
  36261. value: function(e) {
  36262. return l.box(l.types.mdia, l.mdhd(e), l.hdlr(e), l.minf(e))
  36263. }
  36264. }, {
  36265. key: "mdhd",
  36266. value: function(e) {
  36267. var t = e.timescale,
  36268. e = e.duration;
  36269. return l.box(l.types.mdhd, new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  36270. t >>> 24 & 255, t >>> 16 & 255, t >>> 8 & 255, 255 & t, e >>>
  36271. 24 & 255, e >>> 16 & 255, e >>> 8 & 255, 255 & e, 85, 196, 0, 0
  36272. ]))
  36273. }
  36274. }, {
  36275. key: "hdlr",
  36276. value: function(e) {
  36277. var t = null,
  36278. t = "audio" === e.type ? l.constants.HDLR_AUDIO : l.constants.HDLR_VIDEO;
  36279. return l.box(l.types.hdlr, t)
  36280. }
  36281. }, {
  36282. key: "minf",
  36283. value: function(e) {
  36284. var t = null,
  36285. t = "audio" === e.type ? l.box(l.types.smhd, l.constants.SMHD) : l.box(l
  36286. .types.vmhd, l.constants.VMHD);
  36287. return l.box(l.types.minf, t, l.dinf(), l.stbl(e))
  36288. }
  36289. }, {
  36290. key: "dinf",
  36291. value: function() {
  36292. return l.box(l.types.dinf, l.box(l.types.dref, l.constants.DREF))
  36293. }
  36294. }, {
  36295. key: "stbl",
  36296. value: function(e) {
  36297. return l.box(l.types.stbl, l.stsd(e), l.box(l.types.stts, l.constants.STTS), l
  36298. .box(l.types.stsc, l.constants.STSC), l.box(l.types.stsz, l.constants
  36299. .STSZ), l.box(l.types.stco, l.constants.STCO))
  36300. }
  36301. }, {
  36302. key: "stsd",
  36303. value: function(e) {
  36304. return "audio" === e.type ? "mp3" === e.codec ? l.box(l.types.stsd, l.constants
  36305. .STSD_PREFIX, l.mp3(e)) : l.box(l.types.stsd, l.constants.STSD_PREFIX, l
  36306. .mp4a(e)) : l.box(l.types.stsd, l.constants.STSD_PREFIX, l.avc1(e))
  36307. }
  36308. }, {
  36309. key: "mp3",
  36310. value: function(e) {
  36311. var t = e.channelCount,
  36312. e = e.audioSampleRate,
  36313. e = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, t, 0,
  36314. 16, 0, 0, 0, 0, e >>> 8 & 255, 255 & e, 0, 0
  36315. ]);
  36316. return l.box(l.types[".mp3"], e)
  36317. }
  36318. }, {
  36319. key: "mp4a",
  36320. value: function(e) {
  36321. var t = e.channelCount,
  36322. n = e.audioSampleRate,
  36323. n = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, t, 0,
  36324. 16, 0, 0, 0, 0, n >>> 8 & 255, 255 & n, 0, 0
  36325. ]);
  36326. return l.box(l.types.mp4a, n, l.esds(e))
  36327. }
  36328. }, {
  36329. key: "esds",
  36330. value: function(e) {
  36331. var t = e.config || [],
  36332. e = t.length,
  36333. t = new Uint8Array([0, 0, 0, 0, 3, 23 + e, 0, 1, 0, 4, 15 + e, 64, 21, 0, 0,
  36334. 0, 0, 0, 0, 0, 0, 0, 0, 0, 5
  36335. ].concat([e]).concat(t).concat([6, 1, 2]));
  36336. return l.box(l.types.esds, t)
  36337. }
  36338. }, {
  36339. key: "avc1",
  36340. value: function(e) {
  36341. var t = e.avcc,
  36342. n = e.codecWidth,
  36343. e = e.codecHeight,
  36344. e = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  36345. 0, 0, 0, 0, 0, n >>> 8 & 255, 255 & n, e >>> 8 & 255, 255 & e, 0,
  36346. 72, 0, 0, 0, 72, 0, 0, 0, 0, 0, 0, 0, 1, 10, 120, 113, 113, 47, 102,
  36347. 108, 118, 46, 106, 115, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  36348. 0, 0, 0, 0, 0, 0, 0, 24, 255, 255
  36349. ]);
  36350. return l.box(l.types.avc1, e, l.box(l.types.avcC, t))
  36351. }
  36352. }, {
  36353. key: "mvex",
  36354. value: function(e) {
  36355. return l.box(l.types.mvex, l.trex(e))
  36356. }
  36357. }, {
  36358. key: "trex",
  36359. value: function(e) {
  36360. e = e.id, e = new Uint8Array([0, 0, 0, 0, e >>> 24 & 255, e >>> 16 & 255, e >>>
  36361. 8 & 255, 255 & e, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1
  36362. ]);
  36363. return l.box(l.types.trex, e)
  36364. }
  36365. }, {
  36366. key: "moof",
  36367. value: function(e, t) {
  36368. return l.box(l.types.moof, l.mfhd(e.sequenceNumber), l.traf(e, t))
  36369. }
  36370. }, {
  36371. key: "mfhd",
  36372. value: function(e) {
  36373. e = new Uint8Array([0, 0, 0, 0, e >>> 24 & 255, e >>> 16 & 255, e >>> 8 & 255,
  36374. 255 & e
  36375. ]);
  36376. return l.box(l.types.mfhd, e)
  36377. }
  36378. }, {
  36379. key: "traf",
  36380. value: function(e, t) {
  36381. var n = e.id,
  36382. i = l.box(l.types.tfhd, new Uint8Array([0, 0, 0, 0, n >>> 24 & 255, n >>>
  36383. 16 & 255, n >>> 8 & 255, 255 & n
  36384. ])),
  36385. n = l.box(l.types.tfdt, new Uint8Array([0, 0, 0, 0, t >>> 24 & 255, t >>>
  36386. 16 & 255, t >>> 8 & 255, 255 & t
  36387. ])),
  36388. t = l.sdtp(e),
  36389. e = l.trun(e, t.byteLength + 16 + 16 + 8 + 16 + 8 + 8);
  36390. return l.box(l.types.traf, i, n, e, t)
  36391. }
  36392. }, {
  36393. key: "sdtp",
  36394. value: function(e) {
  36395. for (var t = e.samples || [], n = t.length, i = new Uint8Array(4 + n), r =
  36396. 0; r < n; r++) {
  36397. var a = t[r].flags;
  36398. i[r + 4] = a.isLeading << 6 | a.dependsOn << 4 | a.isDependedOn << 2 | a
  36399. .hasRedundancy
  36400. }
  36401. return l.box(l.types.sdtp, i)
  36402. }
  36403. }, {
  36404. key: "trun",
  36405. value: function(e, t) {
  36406. var n = e.samples || [],
  36407. i = n.length,
  36408. e = 12 + 16 * i,
  36409. r = new Uint8Array(e);
  36410. r.set([0, 0, 15, 1, i >>> 24 & 255, i >>> 16 & 255, i >>> 8 & 255, 255 & i, (
  36411. t += 8 + e) >>> 24 & 255, t >>> 16 & 255, t >>> 8 & 255, 255 &
  36412. t
  36413. ], 0);
  36414. for (var a = 0; a < i; a++) {
  36415. var s = n[a].duration,
  36416. o = n[a].size,
  36417. u = n[a].flags,
  36418. d = n[a].cts;
  36419. r.set([s >>> 24 & 255, s >>> 16 & 255, s >>> 8 & 255, 255 & s, o >>> 24 &
  36420. 255, o >>> 16 & 255, o >>> 8 & 255, 255 & o, u.isLeading << 2 |
  36421. u.dependsOn, u.isDependedOn << 6 | u.hasRedundancy << 4 | u
  36422. .isNonSync, 0, 0, d >>> 24 & 255, d >>> 16 & 255, d >>> 8 & 255,
  36423. 255 & d
  36424. ], 12 + 16 * a)
  36425. }
  36426. return l.box(l.types.trun, r)
  36427. }
  36428. }, {
  36429. key: "mdat",
  36430. value: function(e) {
  36431. return l.box(l.types.mdat, e)
  36432. }
  36433. }]), n = l;
  36434. function l() {
  36435. (0, i.default)(this, l)
  36436. }
  36437. n.init(), t.default = n
  36438. }, function(e, t, n) {
  36439. "use strict";
  36440. Object.defineProperty(t, "__esModule", {
  36441. value: !0
  36442. });
  36443. var i = r(n(1));
  36444. function r(e) {
  36445. return e && e.__esModule ? e : {
  36446. default: e
  36447. }
  36448. }(0, r(n(2)).default)(a, null, [{
  36449. key: "getSilentFrame",
  36450. value: function(e, t) {
  36451. if ("mp4a.40.2" === e) {
  36452. if (1 === t) return new Uint8Array([0, 200, 0, 128, 35, 128]);
  36453. if (2 === t) return new Uint8Array([33, 0, 73, 144, 2, 25, 0, 35, 128]);
  36454. if (3 === t) return new Uint8Array([0, 200, 0, 128, 32, 132, 1, 38, 64, 8,
  36455. 100, 0, 142
  36456. ]);
  36457. if (4 === t) return new Uint8Array([0, 200, 0, 128, 32, 132, 1, 38, 64, 8,
  36458. 100, 0, 128, 44, 128, 8, 2, 56
  36459. ]);
  36460. if (5 === t) return new Uint8Array([0, 200, 0, 128, 32, 132, 1, 38, 64, 8,
  36461. 100, 0, 130, 48, 4, 153, 0, 33, 144, 2, 56
  36462. ]);
  36463. if (6 === t) return new Uint8Array([0, 200, 0, 128, 32, 132, 1, 38, 64, 8,
  36464. 100, 0, 130, 48, 4, 153, 0, 33, 144, 2, 0, 178, 0, 32, 8,
  36465. 224
  36466. ])
  36467. } else {
  36468. if (1 === t) return new Uint8Array([1, 64, 34, 128, 163, 78, 230, 128, 186,
  36469. 8, 0, 0, 0, 28, 6, 241, 193, 10, 90, 90, 90, 90, 90, 90, 90,
  36470. 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90,
  36471. 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90,
  36472. 90, 90, 90, 94
  36473. ]);
  36474. if (2 === t) return new Uint8Array([1, 64, 34, 128, 163, 94, 230, 128, 186,
  36475. 8, 0, 0, 0, 0, 149, 0, 6, 241, 161, 10, 90, 90, 90, 90, 90,
  36476. 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90,
  36477. 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90,
  36478. 90, 90, 90, 94
  36479. ]);
  36480. if (3 === t) return new Uint8Array([1, 64, 34, 128, 163, 94, 230, 128, 186,
  36481. 8, 0, 0, 0, 0, 149, 0, 6, 241, 161, 10, 90, 90, 90, 90, 90,
  36482. 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90,
  36483. 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90,
  36484. 90, 90, 90, 94
  36485. ])
  36486. }
  36487. return null
  36488. }
  36489. }]), n = a;
  36490. function a() {
  36491. (0, i.default)(this, a)
  36492. }
  36493. t.default = n
  36494. }, function(e, t, h) {
  36495. function a(n) {
  36496. var i = {};
  36497. function r(e) {
  36498. if (i[e]) return i[e].exports;
  36499. var t = i[e] = {
  36500. i: e,
  36501. l: !1,
  36502. exports: {}
  36503. };
  36504. return n[e].call(t.exports, t, t.exports, r), t.l = !0, t.exports
  36505. }
  36506. r.m = n, r.c = i, r.i = function(e) {
  36507. return e
  36508. }, r.d = function(e, t, n) {
  36509. r.o(e, t) || Object.defineProperty(e, t, {
  36510. configurable: !1,
  36511. enumerable: !0,
  36512. get: n
  36513. })
  36514. }, r.r = function(e) {
  36515. Object.defineProperty(e, "__esModule", {
  36516. value: !0
  36517. })
  36518. }, r.n = function(e) {
  36519. var t = e && e.__esModule ? function() {
  36520. return e.default
  36521. } : function() {
  36522. return e
  36523. };
  36524. return r.d(t, "a", t), t
  36525. }, r.o = function(e, t) {
  36526. return Object.prototype.hasOwnProperty.call(e, t)
  36527. }, r.p = "/", r.oe = function(e) {
  36528. throw console.error(e), e
  36529. };
  36530. var e = r(r.s = ENTRY_MODULE);
  36531. return e.default || e
  36532. }
  36533. var c = "[\\.|\\-|\\+|\\w|/|@]+",
  36534. _ = "\\(\\s*(/\\*.*?\\*/)?\\s*.*?(" + c + ").*?\\)";
  36535. function f(e) {
  36536. return (e + "").replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&")
  36537. }
  36538. function m(e, t, n) {
  36539. var i = {};
  36540. i[n] = [];
  36541. var r = t.toString(),
  36542. t = r.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);
  36543. if (!t) return i;
  36544. for (var a, t = t[1], s = new RegExp("(\\\\n|\\W)" + f(t) + _, "g"); a = s.exec(r);)
  36545. "dll-reference" !== a[3] && i[n].push(a[3]);
  36546. for (s = new RegExp("\\(" + f(t) + '\\("(dll-reference\\s(' + c + '))"\\)\\)' + _, "g"); a = s
  36547. .exec(r);) e[a[2]] || (i[n].push(a[1]), e[a[2]] = h(a[1]).m), i[a[2]] = i[a[2]] || [], i[a[
  36548. 2]].push(a[4]);
  36549. for (var o, u = Object.keys(i), d = 0; d < u.length; d++)
  36550. for (var l = 0; l < i[u[d]].length; l++) o = i[u[d]][l], isNaN(+o) || (i[u[d]][l] = +i[u[d]]
  36551. [l]);
  36552. return i
  36553. }
  36554. function s(e, t) {
  36555. for (var n = {
  36556. main: [t]
  36557. }, i = {
  36558. main: []
  36559. }, r = {
  36560. main: {}
  36561. };
  36562. function(n) {
  36563. return Object.keys(n).reduce(function(e, t) {
  36564. return e || 0 < n[t].length
  36565. }, !1)
  36566. }(n);)
  36567. for (var a = Object.keys(n), s = 0; s < a.length; s++) {
  36568. var o = a[s],
  36569. u = n[o].pop();
  36570. if (r[o] = r[o] || {}, !r[o][u] && e[o][u]) {
  36571. r[o][u] = !0, i[o] = i[o] || [], i[o].push(u);
  36572. for (var d = m(e, e[o][u], o), l = Object.keys(d), h = 0; h < l.length; h++) n[l[
  36573. h]] = n[l[h]] || [], n[l[h]] = n[l[h]].concat(d[l[h]])
  36574. }
  36575. }
  36576. return i
  36577. }
  36578. e.exports = function(e, t) {
  36579. var n = {
  36580. main: h.m
  36581. },
  36582. i = (t = t || {}).all ? {
  36583. main: Object.keys(n.main)
  36584. } : s(n, e),
  36585. r = "";
  36586. Object.keys(i).filter(function(e) {
  36587. return "main" !== e
  36588. }).forEach(function(t) {
  36589. for (var e = 0; i[t][e];) e++;
  36590. i[t].push(e), n[t][e] =
  36591. "(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",
  36592. r = r + "var " + t + " = (" + a.toString().replace("ENTRY_MODULE", JSON
  36593. .stringify(e)) + ")({" + i[t].map(function(e) {
  36594. return JSON.stringify(e) + ": " + n[t][e].toString()
  36595. }).join(",") + "});\n"
  36596. });
  36597. r = r + "new ((" + a.toString().replace("ENTRY_MODULE", JSON.stringify(e)) + ")({" + i.main
  36598. .map(function(e) {
  36599. return JSON.stringify(e) + ": " + n.main[e].toString()
  36600. }).join(",") + "}))(self);", e = new window.Blob([r], {
  36601. type: "text/javascript"
  36602. });
  36603. if (t.bare) return e;
  36604. t = (window.URL || window.webkitURL || window.mozURL || window.msURL).createObjectURL(e),
  36605. e = new window.Worker(t);
  36606. return e.objectURL = t, e
  36607. }
  36608. }, function(e, t, n) {
  36609. "use strict";
  36610. Object.defineProperty(t, "__esModule", {
  36611. value: !0
  36612. });
  36613. var i = c(n(1)),
  36614. r = c(n(2)),
  36615. a = c(n(10)),
  36616. o = c(n(4)),
  36617. u = c(n(33)),
  36618. s = c(n(232)),
  36619. d = n(230),
  36620. l = n(5),
  36621. h = (c(n(233)), c(n(0)));
  36622. function c(e) {
  36623. return e && e.__esModule ? e : {
  36624. default: e
  36625. }
  36626. }(0, r.default)(_, [{
  36627. key: "destroy",
  36628. value: function() {
  36629. (this._mediaElement || this._mediaSource) && this.detachMediaElement(), this.e =
  36630. null, this._emitter.removeAllListeners(), this._emitter = null
  36631. }
  36632. }, {
  36633. key: "on",
  36634. value: function(e, t) {
  36635. this._emitter.addListener(e, t)
  36636. }
  36637. }, {
  36638. key: "off",
  36639. value: function(e, t) {
  36640. this._emitter.removeListener(e, t)
  36641. }
  36642. }, {
  36643. key: "attachMediaElement",
  36644. value: function(e) {
  36645. if (this._mediaSource) throw new l.IllegalStateException(
  36646. "MediaSource has been attached to an HTMLMediaElement!");
  36647. var t = this._mediaSource = new window.MediaSource;
  36648. t.addEventListener("sourceopen", this.e.onSourceOpen), t.addEventListener(
  36649. "sourceended", this.e.onSourceEnded), t.addEventListener("sourceclose",
  36650. this.e.onSourceClose), this._mediaElement = e, this
  36651. ._mediaSourceObjectURL = window.URL.createObjectURL(this._mediaSource), e
  36652. .src = this._mediaSourceObjectURL
  36653. }
  36654. }, {
  36655. key: "detachMediaElement",
  36656. value: function() {
  36657. if (this._mediaSource) {
  36658. var e, t = this._mediaSource;
  36659. for (e in this._sourceBuffers) {
  36660. var n = this._pendingSegments[e];
  36661. n.splice(0, n.length), this._pendingSegments[e] = null, this
  36662. ._pendingRemoveRanges[e] = null, this._lastInitSegments[e] = null;
  36663. n = this._sourceBuffers[e];
  36664. if (n) {
  36665. if ("closed" !== t.readyState) {
  36666. try {
  36667. t.removeSourceBuffer(n)
  36668. } catch (e) {
  36669. o.default.e(this.TAG, e.message)
  36670. }
  36671. n.removeEventListener("error", this.e.onSourceBufferError), n
  36672. .removeEventListener("updateend", this.e
  36673. .onSourceBufferUpdateEnd)
  36674. }
  36675. this._mimeTypes[e] = null, this._sourceBuffers[e] = null
  36676. }
  36677. }
  36678. if ("open" === t.readyState) try {
  36679. t.endOfStream()
  36680. } catch (e) {
  36681. o.default.e(this.TAG, e.message)
  36682. }
  36683. t.removeEventListener("sourceopen", this.e.onSourceOpen), t
  36684. .removeEventListener("sourceended", this.e.onSourceEnded), t
  36685. .removeEventListener("sourceclose", this.e.onSourceClose), this
  36686. ._pendingSourceBufferInit = [], this._isBufferFull = !1, this._idrList
  36687. .clear(), this._mediaSource = null
  36688. }
  36689. this._mediaElement && (this._mediaElement.src = "", this._mediaElement
  36690. .removeAttribute("src"), this._mediaElement = null), this
  36691. ._mediaSourceObjectURL && (window.URL.revokeObjectURL(this
  36692. ._mediaSourceObjectURL), this._mediaSourceObjectURL = null), this
  36693. ._hasAudio = !0
  36694. }
  36695. }, {
  36696. key: "checkAudioSourceBufferInit",
  36697. value: function(e) {
  36698. return this._sourceBuffers.audio || "audio" === e.type || !this._hasAudio
  36699. }
  36700. }, {
  36701. key: "_onAudioSourceBufferInited",
  36702. value: function() {
  36703. if (0 < this._pendingSourceBufferInit.length)
  36704. for (var e = this._pendingSourceBufferInit; e.length;) {
  36705. var t = e.shift();
  36706. this.appendInitSegment(t, !0)
  36707. }
  36708. this._hasPendingSegments() && this._doAppendSegments(), this._emitter.emit(s
  36709. .default.SOURCE_OPEN)
  36710. }
  36711. }, {
  36712. key: "checkMediaSource",
  36713. value: function(e) {
  36714. return !(!this._mediaSource || "open" !== this._mediaSource.readyState)
  36715. }
  36716. }, {
  36717. key: "appendInitSegment",
  36718. value: function(e, t) {
  36719. if (!this.checkMediaSource("appendInitSegment") || !this
  36720. .checkAudioSourceBufferInit(e)) return this._pendingSourceBufferInit.push(
  36721. e), void this._pendingSegments[e.type].push(e);
  36722. var n = e,
  36723. i = "" + n.container;
  36724. n.codec && 0 < n.codec.length && (i += ";codecs=" + n.codec);
  36725. e = !1;
  36726. if (this._lastInitSegments[n.type] = n, i !== this._mimeTypes[n.type]) {
  36727. if (this._mimeTypes[n.type]) o.default.v(this.TAG, "Notice: " + n.type +
  36728. " mimeType changed, origin: " + this._mimeTypes[n.type] +
  36729. ", target: " + i);
  36730. else {
  36731. e = !0, console.info("[debug] %c" + (0, h.default)().format(
  36732. "YYYY-MM-DD HH:mm:ss.SSS") + "%c appendInitSegment",
  36733. "color: blue", "color: black", this._mediaElement.readyState, i);
  36734. try {
  36735. var r = this._sourceBuffers[n.type] = this._mediaSource
  36736. .addSourceBuffer(i);
  36737. r.addEventListener("error", this.e.onSourceBufferError), r
  36738. .addEventListener("updateend", this.e.onSourceBufferUpdateEnd),
  36739. "audio" === n.type && this._onAudioSourceBufferInited()
  36740. } catch (e) {
  36741. return o.default.e(this.TAG, e.message, this._mediaElement.error),
  36742. void this._emitter.emit(s.default.SOURCE_ADD_ERROR, {
  36743. code: e.code,
  36744. msg: e.message
  36745. })
  36746. }
  36747. }
  36748. this._mimeTypes[n.type] = i
  36749. }
  36750. t || this._pendingSegments[n.type].push(n), e || this._sourceBuffers[n.type] &&
  36751. !this._sourceBuffers[n.type].updating && this._doAppendSegments(), u.default
  36752. .safari && "audio/mpeg" === n.container && 0 < n.mediaDuration && (this
  36753. ._requireSetMediaDuration = !0, this._pendingMediaDuration = n
  36754. .mediaDuration / 1e3, this._updateMediaSourceDuration())
  36755. }
  36756. }, {
  36757. key: "appendMediaSegment",
  36758. value: function(e) {
  36759. var t;
  36760. this.checkMediaSource("appendMediaSegment") && (this._pendingSegments[(t = e)
  36761. .type].push(t), this._config.autoCleanupSourceBuffer && this
  36762. ._needCleanupSourceBuffer() && this._doCleanupSourceBuffer(), !(e = this
  36763. ._sourceBuffers[t.type]) || e.updating || this
  36764. ._hasPendingRemoveRanges() ? this._hasAudio && 30 < this
  36765. ._pendingSegments[t.type].length && (this._hasAudio = !1, this
  36766. ._onAudioSourceBufferInited()) : this._doAppendSegments())
  36767. }
  36768. }, {
  36769. key: "seek",
  36770. value: function(e) {
  36771. if (this.checkMediaSource("seek"))
  36772. for (var t in this._sourceBuffers)
  36773. if (this._sourceBuffers[t]) {
  36774. var n = this._sourceBuffers[t];
  36775. if ("open" === this._mediaSource.readyState) try {
  36776. n.abort()
  36777. } catch (e) {
  36778. o.default.e(this.TAG, e.message)
  36779. }
  36780. this._idrList.clear();
  36781. var i = this._pendingSegments[t];
  36782. if (i.splice(0, i.length), "closed" !== this._mediaSource
  36783. .readyState) {
  36784. for (var r = 0; r < n.buffered.length; r++) {
  36785. var a = n.buffered.start(r),
  36786. s = n.buffered.end(r);
  36787. this._pendingRemoveRanges[t].push({
  36788. start: a,
  36789. end: s
  36790. })
  36791. }
  36792. n.updating || this._doRemoveRanges("seek"), !u.default.safari ||
  36793. (i = this._lastInitSegments[t]) && (this._pendingSegments[t]
  36794. .push(i), n.updating || this._doAppendSegments())
  36795. }
  36796. }
  36797. }
  36798. }, {
  36799. key: "endOfStream",
  36800. value: function() {
  36801. var e = this._mediaSource,
  36802. t = this._sourceBuffers;
  36803. e && "open" === e.readyState ? t.video && t.video.updating || t.audio && t.audio
  36804. .updating ? this._hasPendingEos = !0 : (this._hasPendingEos = !1, e
  36805. .endOfStream()) : e && "closed" === e.readyState && this
  36806. ._hasPendingSegments() && (this._hasPendingEos = !0)
  36807. }
  36808. }, {
  36809. key: "getNearestKeyframe",
  36810. value: function(e) {
  36811. return this._idrList.getLastSyncPointBeforeDts(e)
  36812. }
  36813. }, {
  36814. key: "checkSourceBufferNull",
  36815. value: function() {
  36816. var e, t = !0;
  36817. for (e in this._sourceBuffers)
  36818. if (null != this._sourceBuffers[e]) {
  36819. t = !1;
  36820. break
  36821. } return t
  36822. }
  36823. }, {
  36824. key: "_needCleanupSourceBuffer",
  36825. value: function() {
  36826. if (!this._config.autoCleanupSourceBuffer) return !1;
  36827. if (!this.checkMediaSource("_needCleanupSourceBuffer")) return !1;
  36828. var e, t = this._mediaElement.currentTime;
  36829. for (e in this._sourceBuffers) {
  36830. var n = this._sourceBuffers[e];
  36831. if (n) {
  36832. n = n.buffered;
  36833. if (1 <= n.length && t - n.start(0) >= this._config
  36834. .autoCleanupMaxBackwardDuration) return !0
  36835. }
  36836. }
  36837. return !1
  36838. }
  36839. }, {
  36840. key: "_doCleanupSourceBuffer",
  36841. value: function() {
  36842. var e = this._mediaElement.currentTime;
  36843. if (this.checkMediaSource("_doCleanupSourceBuffer"))
  36844. for (var t in this._sourceBuffers) {
  36845. var n = this._sourceBuffers[t];
  36846. if (n) {
  36847. for (var i = n.buffered, r = !1, a = 0; a < i.length; a++) {
  36848. var s, o = i.start(a),
  36849. u = i.end(a);
  36850. o <= e && e < u + 3 ? e - o >= this._config
  36851. .autoCleanupMaxBackwardDuration && (r = !0, s = e - this
  36852. ._config.autoCleanupMinBackwardDuration, this
  36853. ._pendingRemoveRanges[t].push({
  36854. start: o,
  36855. end: s
  36856. })) : u < e && (r = !0, this._pendingRemoveRanges[t]
  36857. .push({
  36858. start: o,
  36859. end: u
  36860. }))
  36861. }
  36862. r && !n.updating && this._doRemoveRanges("_doCleanupSourceBuffer")
  36863. }
  36864. }
  36865. }
  36866. }, {
  36867. key: "_updateMediaSourceDuration",
  36868. value: function() {
  36869. var e, t;
  36870. this.checkMediaSource("_updateMediaSourceDuration") && (t = this._sourceBuffers,
  36871. 0 !== this._mediaElement.readyState && "open" === this._mediaSource
  36872. .readyState && (t.video && t.video.updating || t.audio && t.audio
  36873. .updating || (e = this._mediaSource.duration, 0 < (t = this
  36874. ._pendingMediaDuration) && (isNaN(e) || e < t) && (o.default
  36875. .v(this.TAG, "Update MediaSource duration from " + e +
  36876. " to " + t), this._mediaSource.duration = t), this
  36877. ._requireSetMediaDuration = !1, this._pendingMediaDuration = 0))
  36878. )
  36879. }
  36880. }, {
  36881. key: "_doRemoveRanges",
  36882. value: function(e) {
  36883. if (this.checkMediaSource("_doRemoveRanges"))
  36884. for (var t in this._pendingRemoveRanges)
  36885. if (this._sourceBuffers[t] && !this._sourceBuffers[t].updating)
  36886. for (var n = this._sourceBuffers[t], i = this._pendingRemoveRanges[
  36887. t]; i.length && !n.updating;) {
  36888. var r = i.shift();
  36889. n.remove(r.start, r.end)
  36890. }
  36891. }
  36892. }, {
  36893. key: "_doAppendSegments",
  36894. value: function() {
  36895. if (this.checkMediaSource("_doAppendSegments")) {
  36896. var t, e = this._pendingSegments;
  36897. for (t in e)
  36898. if (this._sourceBuffers[t] && !this._sourceBuffers[t].updating && 0 < e[
  36899. t].length) {
  36900. var n, i, r = e[t].shift();
  36901. if (r.timestampOffset && (n = this._sourceBuffers[t]
  36902. .timestampOffset, i = r.timestampOffset / 1e3, .1 < Math
  36903. .abs(n - i) && (o.default.v(this.TAG,
  36904. "Update MPEG audio timestampOffset from " + n +
  36905. " to " + i), this._sourceBuffers[t]
  36906. .timestampOffset = i), delete r.timestampOffset), r
  36907. .data && 0 !== r.data.byteLength) try {
  36908. this._sourceBuffers[t].appendBuffer(r.data), this
  36909. ._isBufferFull = !1, "video" === t && r.hasOwnProperty(
  36910. "info") && this._idrList.appendArray(r.info
  36911. .syncPoints)
  36912. } catch (e) {
  36913. this._pendingSegments[t].unshift(r), 22 === e.code ? (this
  36914. ._isBufferFull || this._emitter.emit(s.default
  36915. .BUFFER_FULL), this._isBufferFull = !0) : (o
  36916. .default.e(this.TAG, e.message, this._mediaElement
  36917. .error), this._emitter.emit(s.default.ERROR, {
  36918. code: e.code,
  36919. msg: e.message
  36920. }))
  36921. }
  36922. }
  36923. }
  36924. }
  36925. }, {
  36926. key: "_onSourceOpen",
  36927. value: function() {
  36928. if (o.default.v(this.TAG, "MediaSource onSourceOpen"), this._mediaSource
  36929. .removeEventListener("sourceopen", this.e.onSourceOpen), 0 < this
  36930. ._pendingSourceBufferInit.length)
  36931. for (var e = this._pendingSourceBufferInit; e.length;) {
  36932. var t = e.shift();
  36933. this.appendInitSegment(t, !0)
  36934. }
  36935. this._hasPendingSegments() && this._doAppendSegments(), this._emitter.emit(s
  36936. .default.SOURCE_OPEN)
  36937. }
  36938. }, {
  36939. key: "_onSourceEnded",
  36940. value: function() {
  36941. o.default.v(this.TAG, "MediaSource onSourceEnded"), this._emitter.emit(s.default
  36942. .SOURCE_END)
  36943. }
  36944. }, {
  36945. key: "_onSourceClose",
  36946. value: function() {
  36947. o.default.v(this.TAG, "MediaSource onSourceClose"), this._mediaSource && null !=
  36948. this.e && (this._mediaSource.removeEventListener("sourceopen", this.e
  36949. .onSourceOpen), this._mediaSource.removeEventListener("sourceended",
  36950. this.e.onSourceEnded), this._mediaSource.removeEventListener(
  36951. "sourceclose", this.e.onSourceClose)), this._emitter.emit(s.default
  36952. .SOURCE_CLOSE)
  36953. }
  36954. }, {
  36955. key: "_hasPendingSegments",
  36956. value: function() {
  36957. var e = this._pendingSegments;
  36958. return 0 < e.video.length || 0 < e.audio.length
  36959. }
  36960. }, {
  36961. key: "_hasPendingRemoveRanges",
  36962. value: function() {
  36963. var e = this._pendingRemoveRanges;
  36964. return 0 < e.video.length || 0 < e.audio.length
  36965. }
  36966. }, {
  36967. key: "_onSourceBufferUpdateEnd",
  36968. value: function() {
  36969. this._requireSetMediaDuration ? this._updateMediaSourceDuration() : this
  36970. ._hasPendingRemoveRanges() ? this._doRemoveRanges(
  36971. "_onSourceBufferUpdateEnd") : this._hasPendingSegments() ? this
  36972. ._doAppendSegments() : this._hasPendingEos && this.endOfStream(), this
  36973. ._emitter.emit(s.default.UPDATE_END)
  36974. }
  36975. }, {
  36976. key: "_onSourceBufferError",
  36977. value: function(e) {
  36978. o.default.e(this.TAG, "SourceBuffer Error: ", e), this._emitter.emit(s.default
  36979. .ERROR, {
  36980. code: e.code,
  36981. msg: e.message
  36982. })
  36983. }
  36984. }]), r = _;
  36985. function _(e) {
  36986. (0, i.default)(this, _), this.TAG = "MSEController", this._config = e, this._emitter = new a
  36987. .default, this._config.isLive && null == this._config.autoCleanupSourceBuffer && (this
  36988. ._config.autoCleanupSourceBuffer = !0), this.e = {
  36989. onSourceOpen: this._onSourceOpen.bind(this),
  36990. onSourceEnded: this._onSourceEnded.bind(this),
  36991. onSourceClose: this._onSourceClose.bind(this),
  36992. onSourceBufferError: this._onSourceBufferError.bind(this),
  36993. onSourceBufferUpdateEnd: this._onSourceBufferUpdateEnd.bind(this)
  36994. }, this._mediaSource = null, this._mediaSourceObjectURL = null, this._mediaElement = null,
  36995. this._hasAudio = !0, this._isBufferFull = !1, this._hasPendingEos = !1, this
  36996. ._requireSetMediaDuration = !1, this._pendingMediaDuration = 0, this
  36997. ._pendingSourceBufferInit = [], this._mimeTypes = {
  36998. video: null,
  36999. audio: null
  37000. }, this._sourceBuffers = {
  37001. video: null,
  37002. audio: null
  37003. }, this._lastInitSegments = {
  37004. video: null,
  37005. audio: null
  37006. }, this._pendingSegments = {
  37007. video: [],
  37008. audio: []
  37009. }, this._pendingRemoveRanges = {
  37010. video: [],
  37011. audio: []
  37012. }, this._idrList = new d.IDRSampleList
  37013. }
  37014. t.default = r
  37015. }, function(e, t, n) {
  37016. "use strict";
  37017. Object.defineProperty(t, "__esModule", {
  37018. value: !0
  37019. });
  37020. var i = c(n(11)),
  37021. r = c(n(20)),
  37022. a = c(n(9)),
  37023. s = c(n(1)),
  37024. o = c(n(2)),
  37025. u = c(n(10)),
  37026. d = c(n(39)),
  37027. l = n(63),
  37028. h = n(5);
  37029. function c(e) {
  37030. return e && e.__esModule ? e : {
  37031. default: e
  37032. }
  37033. }(0, o.default)(_, [{
  37034. key: "destroy",
  37035. value: function() {
  37036. this._mediaElement && (this.unload(), this.detachMediaElement()), this.e = null,
  37037. this._mediaDataSource = null, this._emitter.removeAllListeners(), this
  37038. ._emitter = null
  37039. }
  37040. }, {
  37041. key: "on",
  37042. value: function(e, t) {
  37043. var n = this;
  37044. e === d.default.MEDIA_INFO ? null != this._mediaElement && 0 !== this
  37045. ._mediaElement.readyState && i.default.resolve().then(function() {
  37046. n._emitter.emit(d.default.MEDIA_INFO, n.mediaInfo)
  37047. }) : e === d.default.STATISTICS_INFO && null != this._mediaElement && 0 !==
  37048. this._mediaElement.readyState && i.default.resolve().then(function() {
  37049. n._emitter.emit(d.default.STATISTICS_INFO, n.statisticsInfo)
  37050. }), this._emitter.addListener(e, t)
  37051. }
  37052. }, {
  37053. key: "off",
  37054. value: function(e, t) {
  37055. this._emitter.removeListener(e, t)
  37056. }
  37057. }, {
  37058. key: "attachMediaElement",
  37059. value: function(e) {
  37060. if ((this._mediaElement = e).addEventListener("loadedmetadata", this.e
  37061. .onvLoadedMetadata), null != this._pendingSeekTime) try {
  37062. e.currentTime = this._pendingSeekTime, this._pendingSeekTime = null
  37063. } catch (e) {}
  37064. }
  37065. }, {
  37066. key: "detachMediaElement",
  37067. value: function() {
  37068. this._mediaElement && (this._mediaElement.src = "", this._mediaElement
  37069. .removeAttribute("src"), this._mediaElement.removeEventListener(
  37070. "loadedmetadata", this.e.onvLoadedMetadata), this._mediaElement =
  37071. null), null != this._statisticsReporter && (window.clearInterval(this
  37072. ._statisticsReporter), this._statisticsReporter = null)
  37073. }
  37074. }, {
  37075. key: "load",
  37076. value: function() {
  37077. if (!this._mediaElement) throw new h.IllegalStateException(
  37078. "HTMLMediaElement must be attached before load()!");
  37079. this._mediaElement.src = this._mediaDataSource.url, 0 < this._mediaElement
  37080. .readyState && (this._mediaElement.currentTime = 0), this._mediaElement
  37081. .preload = "auto", this._mediaElement.load(), this._statisticsReporter =
  37082. window.setInterval(this._reportStatisticsInfo.bind(this), this._config
  37083. .statisticsInfoReportInterval)
  37084. }
  37085. }, {
  37086. key: "unload",
  37087. value: function() {
  37088. this._mediaElement && (this._mediaElement.src = "", this._mediaElement
  37089. .removeAttribute("src")), null != this._statisticsReporter && (window
  37090. .clearInterval(this._statisticsReporter), this._statisticsReporter =
  37091. null)
  37092. }
  37093. }, {
  37094. key: "play",
  37095. value: function() {
  37096. return this._mediaElement.play()
  37097. }
  37098. }, {
  37099. key: "pause",
  37100. value: function() {
  37101. this._mediaElement.pause()
  37102. }
  37103. }, {
  37104. key: "_onvLoadedMetadata",
  37105. value: function(e) {
  37106. null != this._pendingSeekTime && (this._mediaElement.currentTime = this
  37107. ._pendingSeekTime, this._pendingSeekTime = null), this._emitter.emit(d
  37108. .default.MEDIA_INFO, this.mediaInfo)
  37109. }
  37110. }, {
  37111. key: "_reportStatisticsInfo",
  37112. value: function() {
  37113. this._emitter.emit(d.default.STATISTICS_INFO, this.statisticsInfo)
  37114. }
  37115. }, {
  37116. key: "type",
  37117. get: function() {
  37118. return this._type
  37119. }
  37120. }, {
  37121. key: "buffered",
  37122. get: function() {
  37123. return this._mediaElement.buffered
  37124. }
  37125. }, {
  37126. key: "duration",
  37127. get: function() {
  37128. return this._mediaElement.duration
  37129. }
  37130. }, {
  37131. key: "volume",
  37132. get: function() {
  37133. return this._mediaElement.volume
  37134. },
  37135. set: function(e) {
  37136. this._mediaElement.volume = e
  37137. }
  37138. }, {
  37139. key: "muted",
  37140. get: function() {
  37141. return this._mediaElement.muted
  37142. },
  37143. set: function(e) {
  37144. this._mediaElement.muted = e
  37145. }
  37146. }, {
  37147. key: "currentTime",
  37148. get: function() {
  37149. return this._mediaElement ? this._mediaElement.currentTime : 0
  37150. },
  37151. set: function(e) {
  37152. this._mediaElement ? this._mediaElement.currentTime = e : this
  37153. ._pendingSeekTime = e
  37154. }
  37155. }, {
  37156. key: "mediaInfo",
  37157. get: function() {
  37158. var e = {
  37159. mimeType: (this._mediaElement instanceof HTMLAudioElement ? "audio/" :
  37160. "video/") + this._mediaDataSource.type
  37161. };
  37162. return this._mediaElement && (e.duration = Math.floor(1e3 * this._mediaElement
  37163. .duration), this._mediaElement instanceof HTMLVideoElement && (e
  37164. .width = this._mediaElement.videoWidth, e.height = this
  37165. ._mediaElement.videoHeight)), e
  37166. }
  37167. }, {
  37168. key: "statisticsInfo",
  37169. get: function() {
  37170. var e = {
  37171. playerType: this._type,
  37172. url: this._mediaDataSource.url
  37173. };
  37174. if (!(this._mediaElement instanceof HTMLVideoElement)) return e;
  37175. var t, n = !0,
  37176. i = 0,
  37177. r = 0;
  37178. return this._mediaElement.getVideoPlaybackQuality ? (i = (t = this._mediaElement
  37179. .getVideoPlaybackQuality()).totalVideoFrames, r = t
  37180. .droppedVideoFrames) : null != this._mediaElement
  37181. .webkitDecodedFrameCount ? (i = this._mediaElement.webkitDecodedFrameCount,
  37182. r = this._mediaElement.webkitDroppedFrameCount) : n = !1, n && (e
  37183. .decodedFrames = i, e.droppedFrames = r), e
  37184. }
  37185. }]), o = _;
  37186. function _(e, t) {
  37187. if ((0, s.default)(this, _), this.TAG = "NativePlayer", this._type = "NativePlayer", this
  37188. ._emitter = new u.default, this._config = (0, l.createDefaultConfig)(), "object" === (
  37189. void 0 === t ? "undefined" : (0, a.default)(t)) && (0, r.default)(this._config, t),
  37190. "flv" === e.type.toLowerCase()) throw new h.InvalidArgumentException(
  37191. "NativePlayer does't support flv MediaDataSource input!");
  37192. if (e.hasOwnProperty("segments")) throw new h.InvalidArgumentException("NativePlayer(" + e
  37193. .type + ") doesn't support multipart playback!");
  37194. this.e = {
  37195. onvLoadedMetadata: this._onvLoadedMetadata.bind(this)
  37196. }, this._pendingSeekTime = null, this._statisticsReporter = null, this._mediaDataSource = e,
  37197. this._mediaElement = null
  37198. }
  37199. t.default = o
  37200. }, function(e, t, n) {
  37201. "use strict";
  37202. Object.defineProperty(t, "__esModule", {
  37203. value: !0
  37204. });
  37205. var i = r(n(1));
  37206. function r(e) {
  37207. return e && e.__esModule ? e : {
  37208. default: e
  37209. }
  37210. }(0, r(n(2)).default)(a, [{
  37211. key: "_start",
  37212. value: function() {
  37213. this._checkSystem(), this._checkPlatform(), this._checkEngine(), this
  37214. ._checkSupporter(), this._checkShell()
  37215. }
  37216. }, {
  37217. key: "_checkUa",
  37218. value: function(e) {
  37219. return e.test(this._ua)
  37220. }
  37221. }, {
  37222. key: "_getVersion",
  37223. value: function(e) {
  37224. e = e.exec(this._ua);
  37225. return e ? e.shift().split(/\s|\/|:/gi).pop() : null
  37226. }
  37227. }, {
  37228. key: "_checkSystem",
  37229. value: function() {
  37230. var t = this,
  37231. n = this._checkUa.bind(this),
  37232. e = [{
  37233. sys: "windows",
  37234. re: /windows|win32|win64|wow32|wow64/gi
  37235. }, {
  37236. sys: "osx",
  37237. re: /macintosh|macintel/gi
  37238. }, {
  37239. sys: "linux",
  37240. re: /x11/gi
  37241. }, {
  37242. sys: "android",
  37243. re: /android|adr/gi
  37244. }, {
  37245. sys: "ios",
  37246. re: /ios|iphone|ipad|iwatch/gi
  37247. }].find(function(e) {
  37248. return n(e.re)
  37249. });
  37250. this._system = e ? e.sys : void 0, this._systemByte = n(/win32|wow32|x32/gi) ?
  37251. 32 : 64;
  37252. var i = [{
  37253. sys: "osx",
  37254. re: /os x [\d(.|_)]+/gi
  37255. }, {
  37256. sys: "android",
  37257. re: /android [\d(.|_)]+/gi
  37258. }, {
  37259. sys: "ios",
  37260. re: /os [\d(.|_)]+/gi
  37261. }].find(function(e) {
  37262. return e.sys === t._system
  37263. });
  37264. "windows" === this._system ? (e = [{
  37265. vs: "2000",
  37266. re: /windows nt 5.0|windows 2000/gi
  37267. }, {
  37268. vs: "xp",
  37269. re: /windows nt 5.1|windows 2000/gi
  37270. }, {
  37271. vs: "2003",
  37272. re: /windows nt 5.2|windows 2003/gi
  37273. }, {
  37274. vs: "vista",
  37275. re: /windows nt 6.0|windows vista/gi
  37276. }, {
  37277. vs: "7",
  37278. re: /windows nt 6.1|windows 7/gi
  37279. }, {
  37280. vs: "8",
  37281. re: /windows nt 6.2|windows 8/gi
  37282. }, {
  37283. vs: "8.1",
  37284. re: /windows nt 6.3|windows 8.1/gi
  37285. }, {
  37286. vs: "10",
  37287. re: /windows nt 10.0|windows 10/gi
  37288. }].find(function(e) {
  37289. return n(e.re)
  37290. }), this._systemVersion = e ? e.vs : void 0) : this._systemVersion = i ?
  37291. this._getVersion(i.re) : void 0
  37292. }
  37293. }, {
  37294. key: "_checkPlatform",
  37295. value: function() {
  37296. var t = this;
  37297. ["windows", "osx"].find(function(e) {
  37298. return e === t._system
  37299. }) ? this._platform = "desktop" : ["ios", "android", "linux"].find(function(
  37300. e) {
  37301. return e === t._system
  37302. }) && (this._platform = "mobile")
  37303. }
  37304. }, {
  37305. key: "_checkEngine",
  37306. value: function() {
  37307. var t = this._checkUa.bind(this),
  37308. e = [{
  37309. eng: "webkit",
  37310. re: /applewebkit/gi,
  37311. vre: /applewebkit\/[\d(.|_)]+/gi
  37312. }, {
  37313. eng: "presto",
  37314. re: /presto/gi,
  37315. vre: /presto\/[\d(.|_)]+/gi
  37316. }, {
  37317. eng: "trident",
  37318. re: /trident|compatible|msie/gi,
  37319. vre: /(trident|compatible|msie)\/[\d(.|_)]+/gi
  37320. }, {
  37321. eng: "gecko",
  37322. re: /gecko|firefox/gi,
  37323. vre: /(gecko|firefox)\/[\d(.|_)]+/gi
  37324. }].find(function(e) {
  37325. return t(e.re)
  37326. });
  37327. e && (this._engine = e.eng, this._engineVersion = this._getVersion(e.vre))
  37328. }
  37329. }, {
  37330. key: "_checkSupporter",
  37331. value: function() {
  37332. var t = this._checkUa.bind(this),
  37333. e = this._system,
  37334. n = this._engine;
  37335. "android" !== e || "webkit" !== n ? "webkit" === n ? (e = [{
  37336. sp: "edge",
  37337. re: /edge/gi,
  37338. vre: /edge\/[\d(.|_)]+/gi
  37339. }, {
  37340. sp: "opera",
  37341. re: /opr/gi,
  37342. vre: /opr\/[\d(.|_)]+/gi
  37343. }, {
  37344. sp: "chrome",
  37345. re: /chrome|crios/gi,
  37346. vre: /(chrome|crios)\/[\d(.|_)]+/gi
  37347. }, {
  37348. sp: "safari",
  37349. re: /safari/gi,
  37350. vre: /version\/[\d(.|_)]+/gi
  37351. }].find(function(e) {
  37352. return t(e.re)
  37353. })) && (this._supporter = e.sp, this._supporterVersion = this._getVersion(e
  37354. .vre)) : "presto" === n ? (this.supporter = "opera", this
  37355. ._supporterVersion = this._getVersion(/opera\/[\d(.|_)]+/gi)) :
  37356. "trident" === n ? (this._supporter = "ie", this._supporterVersion = this
  37357. ._getVersion(/rv:[\d(.|_)]+/gi)) : "gecko" === n && (this._supporter =
  37358. "firefox", this._supporterVersion = this._getVersion(
  37359. /(rv:|firefox\/)[\d(.|_)]+/gi)) : (n = this._ua.match(
  37360. /chrome\/\d+[\.\d+]+/gi)) && (n = n.pop().split("/"), this
  37361. ._supporterVersion = n.pop(), this._supporter = n.pop())
  37362. }
  37363. }, {
  37364. key: "_checkShell",
  37365. value: function() {
  37366. var e, t = this._checkUa.bind(this),
  37367. n = this._system,
  37368. i = this._engine;
  37369. "android" !== n && "linux" !== n || "webkit" !== i ? (e = [{
  37370. sl: "weChat",
  37371. re: /micromessenger/gi,
  37372. vre: /micromessenger\/[\d(.|_)]+/gi
  37373. }, {
  37374. sl: "qq",
  37375. re: /qqbrowser/gi,
  37376. vre: /micromessenger\/[\d(.|_)]+/gi
  37377. }, {
  37378. sl: "uc",
  37379. re: /ucbrowser/gi,
  37380. vre: /ucbrowser\/[\d(.|_)]+/gi
  37381. }, {
  37382. sl: "baidu",
  37383. re: /baidu(boxapp|browser)/gi,
  37384. vre: /baidu(boxapp|browser)\/[\d(.|_)]+/gi
  37385. }].find(function(e) {
  37386. return t(e.re)
  37387. })) && (this._shell = e.sl, this._shellVersion = this._getVersion(e.vre)) :
  37388. (e = this._ua.match(/[\w|\/]+Browser\/\d+[\.\d+]+/gi)) && (e = e.pop()
  37389. .split("/"), this._shellVersion = e.pop(), this._shell = e.pop())
  37390. }
  37391. }, {
  37392. key: "system",
  37393. get: function() {
  37394. return this._system
  37395. }
  37396. }, {
  37397. key: "systemVersion",
  37398. get: function() {
  37399. return this._systemVersion
  37400. }
  37401. }, {
  37402. key: "systemByte",
  37403. get: function() {
  37404. return this._systemByte
  37405. }
  37406. }, {
  37407. key: "platform",
  37408. get: function() {
  37409. return this._platform
  37410. }
  37411. }, {
  37412. key: "engine",
  37413. get: function() {
  37414. return this._engine
  37415. }
  37416. }, {
  37417. key: "engineVersion",
  37418. get: function() {
  37419. return this._engineVersion
  37420. }
  37421. }, {
  37422. key: "supporter",
  37423. get: function() {
  37424. return this._supporter
  37425. }
  37426. }, {
  37427. key: "supporterVersion",
  37428. get: function() {
  37429. return this._supporterVersion
  37430. }
  37431. }, {
  37432. key: "shell",
  37433. get: function() {
  37434. return this._shell
  37435. }
  37436. }, {
  37437. key: "shellVersion",
  37438. get: function() {
  37439. return this._shellVersion
  37440. }
  37441. }]), n = a;
  37442. function a() {
  37443. (0, i.default)(this, a), this._ua = self.navigator.userAgent.toLowerCase(), this._system =
  37444. void 0, this._systemVersion = void 0, this._systemByte = void 0, this._platform = void 0,
  37445. this._engine = void 0, this._engineVersion = void 0, this._supporter = void 0, this
  37446. ._supporterVersion = void 0, this._shell = void 0, this._shellVersion = void 0, this
  37447. ._start()
  37448. }
  37449. t.default = n
  37450. }, function(e) {
  37451. e.exports = JSON.parse(
  37452. '{"name":"h5player","version":"2.1.2build202211","description":"player for h5 page without plugin","main":"./dist/h5player.min.js","scripts":{"start":"webpack --config build/webpack.dev.js --watch","dev":"webpack-dev-server --config build/webpack.dev.js","dev:https":"webpack-dev-server --config build/webpack.dev.js --https --coop","build":"npm run prod && npm run backup","build:dev":"webpack --config build/webpack.dev.js","prod":"webpack --config build/webpack.prod.js","backup":"webpack --config build/webpack.backup.js","http":"node dev/http.js","https":"node dev/https.js","preinstall":"node ./bin/preinstall.js","postinstall":"node ./bin/postinstall.js","preuninstall":"node ./bin/preuninstall.js","prepublishOnly":"npm run prod"},"author":"hezhuen","license":"MIT","dependencies":{"chalk":"^4.1.2","inquirer":"^8.2.0","shelljs":"^0.8.4","ws":"^8.8.1"},"devDependencies":{"@babel/polyfill":"^7.12.1","babel-core":"^6.26.3","babel-eslint":"^8.2.6","babel-loader":"^7.1.5","babel-plugin-syntax-dynamic-import":"^6.18.0","babel-plugin-transform-runtime":"^6.23.0","babel-preset-env":"^1.7.0","babel-preset-es2015":"^6.24.1","babel-runtime":"^6.26.0","copy-webpack-plugin":"^4.5.2","css-loader":"^1.0.0","es6-promise":"^4.2.8","eslint":"^5.1.0","eslint-loader":"^2.1.0","html-loader":"^0.5.5","jquery":"^3.6.0","json-loader":"^0.5.7","less":"^3.7.1","less-loader":"^4.1.0","mime":"^2.5.2","moment":"^2.0.0","style-loader":"^0.21.0","uglifyjs-webpack-plugin":"^2.2.0","url-loader":"^1.0.1","uuid":"^3.3.3","webpack":"^4.16.1","webpack-cli":"^3.1.0","webpack-dev-server":"^3.11.2","webpack-merge":"^5.7.3","webworkify":"^1.5.0","webworkify-webpack":"^2.1.5"},"publishConfig":{"registry":"https://af.hikvision.com.cn/artifactory/api/npm/npm-fsdmdept/","access":"public"},"files":["dist","bin"]}'
  37453. )
  37454. }], a = {}, r.m = n, r.c = a, r.d = function(e, t, n) {
  37455. r.o(e, t) || Object.defineProperty(e, t, {
  37456. enumerable: !0,
  37457. get: n
  37458. })
  37459. }, r.r = function(e) {
  37460. "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
  37461. value: "Module"
  37462. }), Object.defineProperty(e, "__esModule", {
  37463. value: !0
  37464. })
  37465. }, r.t = function(t, e) {
  37466. if (1 & e && (t = r(t)), 8 & e) return t;
  37467. if (4 & e && "object" == typeof t && t && t.__esModule) return t;
  37468. var n = Object.create(null);
  37469. if (r.r(n), Object.defineProperty(n, "default", {
  37470. enumerable: !0,
  37471. value: t
  37472. }), 2 & e && "string" != typeof t)
  37473. for (var i in t) r.d(n, i, function(e) {
  37474. return t[e]
  37475. }.bind(null, i));
  37476. return n
  37477. }, r.n = function(e) {
  37478. var t = e && e.__esModule ? function() {
  37479. return e.default
  37480. } : function() {
  37481. return e
  37482. };
  37483. return r.d(t, "a", t), t
  37484. }, r.o = function(e, t) {
  37485. return Object.prototype.hasOwnProperty.call(e, t)
  37486. }, r.p = "", r(r.s = 235);
  37487. function r(e) {
  37488. if (a[e]) return a[e].exports;
  37489. var t = a[e] = {
  37490. i: e,
  37491. l: !1,
  37492. exports: {}
  37493. };
  37494. return n[e].call(t.exports, t, t.exports, r), t.l = !0, t.exports
  37495. }
  37496. var n, a
  37497. });